Fix typos (#368)

This commit is contained in:
Dong-hyeon Shin 2023-01-29 02:26:25 +09:00 committed by GitHub
parent 0056d94d57
commit 5aae6a122d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 13 deletions

View File

@ -320,7 +320,7 @@ class Component(Base, ABC):
# Extract the style for this component.
component_style = Style(style[type(self)])
# Only add stylee props that are not overridden.
# Only add style props that are not overridden.
component_style = {
k: v for k, v in component_style.items() if k not in self.style
}

View File

@ -7,7 +7,7 @@ from pynecone.var import Var
class Switch(ChakraComponent):
"""Togglable switch component."""
"""Toggleable switch component."""
tag = "Switch"

View File

@ -80,7 +80,7 @@ class ResponsiveGrid(ChakraComponent):
# Shorthand prop for gridRow
row: Var[str]
# Alist that defines the number of columns for each breakpoint.
# A list that defines the number of columns for each breakpoint.
columns: Var[List[int]]
# The width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length.

View File

@ -30,7 +30,7 @@ class Html(Box):
Raises:
ValueError: If children are not provided or more than one child is provided.
"""
# If children are not prvided, throw an error.
# If children are not provided, throw an error.
if len(children) != 1:
raise ValueError("Must provide children to the html component.")
else:

View File

@ -48,7 +48,7 @@ class AlertDialog(ChakraComponent):
size: Var[str]
# If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert**
use_intert: Var[bool]
use_inert: Var[bool]
@classmethod
def get_triggers(cls) -> Set[str]:

View File

@ -51,7 +51,7 @@ class Drawer(ChakraComponent):
size: Var[str]
# A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert**
use_intert: Var[bool]
use_inert: Var[bool]
# Variant of drawer
variant: Var[str]

View File

@ -29,7 +29,7 @@ class Menu(ChakraComponent):
# If by default the menu is open.
default_is_open: Var[bool]
# If rtl, poper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl")
# If rtl, popper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl")
direction: Var[str]
# If true, the popper will change its placement and flip when it's about to overflow its boundary area.

View File

@ -48,7 +48,7 @@ class Modal(ChakraComponent):
size: Var[str]
# A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert**
use_intert: Var[bool]
use_inert: Var[bool]
@classmethod
def get_triggers(cls) -> Set[str]:

View File

@ -44,7 +44,7 @@ class Tooltip(ChakraComponent):
# If true, the tooltip will show an arrow tip
has_arrow: Var[bool]
# If true, th etooltip with be disabled.
# If true, the tooltip with be disabled.
is_disabled: Var[bool]
# If true, the tooltip will be open.

View File

@ -212,11 +212,11 @@ class RouteRegex(SimpleNamespace):
"""Regex used for extracting route args in route."""
ARG = re.compile(r"\[(?!\.)([^\[\]]+)\]")
# group return the catchall pattern (i.e "[[..slug]]")
# group return the catchall pattern (i.e. "[[..slug]]")
CATCHALL = re.compile(r"(\[?\[\.{3}(?![0-9]).*\]?\])")
# group return the argname (i.e "slug")
# group return the arg name (i.e. "slug")
STRICT_CATCHALL = re.compile(r"\[\.{3}([a-zA-Z_][\w]*)\]")
# group return the argname (i.e "slug")
# group return the arg name (i.e. "slug")
OPT_CATCHALL = re.compile(r"\[\[\.{3}([a-zA-Z_][\w]*)\]\]")

View File

@ -1,4 +1,4 @@
"""Base Pynecone middelware."""
"""Base Pynecone middleware."""
from __future__ import annotations
from abc import ABC