Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pynecone/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def add_style(self, style: ComponentStyle) -> Component:
# 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
}
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/forms/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class Switch(ChakraComponent):
"""Togglable switch component."""
"""Toggleable switch component."""

tag = "Switch"

Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/layout/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/layout/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create(cls, *children, **props):
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:
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/overlay/alertdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/overlay/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/overlay/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/overlay/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion pynecone/components/overlay/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions pynecone/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]*)\]\]")


Expand Down
2 changes: 1 addition & 1 deletion pynecone/middleware/middleware.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Base Pynecone middelware."""
"""Base Pynecone middleware."""
from __future__ import annotations

from abc import ABC
Expand Down