From 1d22571829b089d2b7adc2091f89b3d7ecd32476 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Thu, 8 Dec 2022 17:02:16 -0800 Subject: [PATCH] Add props for wrap component (#41) --- pynecone/components/layout/wrap.py | 22 ++++++++++++++++++++++ pynecone/pc.py | 1 - pyproject.toml | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/pynecone/components/layout/wrap.py b/pynecone/components/layout/wrap.py index c4a01592a..f6c2d8a06 100644 --- a/pynecone/components/layout/wrap.py +++ b/pynecone/components/layout/wrap.py @@ -1,6 +1,7 @@ """Container to stack elements with spacing.""" from pynecone.components.libs.chakra import ChakraComponent +from pynecone.var import Var class Wrap(ChakraComponent): @@ -8,6 +9,27 @@ class Wrap(ChakraComponent): tag = "Wrap" + # How to align the items. + align: Var[str] + + # The flex direction of the wrap. + direction: Var[str] + + # How to justify the items. + justify: Var[str] + + # Whether to wrap children in `pc.wrap_item`. + should_wrap_children: Var[bool] + + # The spacing between the items. + spacing: Var[str] + + # The horizontal spacing between the items. + spacing_x: Var[str] + + # The vertical spacing between the items. + spacing_y: Var[str] + class WrapItem(ChakraComponent): """Item of the Wrap component.""" diff --git a/pynecone/pc.py b/pynecone/pc.py index 2c703df32..28b46f2b6 100644 --- a/pynecone/pc.py +++ b/pynecone/pc.py @@ -94,7 +94,6 @@ def deploy(dry_run: bool = False): # Check if the deploy url is set. if config.deploy_url is None: typer.echo("This feature is coming soon!") - typer.echo("Join our waitlist to be notified: https://pynecone.io/waitlist") return # Compile the app in production mode. diff --git a/pyproject.toml b/pyproject.toml index d0ab5902c..232d2eb3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pynecone-io" -version = "0.1.7" +version = "0.1.8" description = "The easiest way to build web apps." license = "Apache-2.0" authors = [