appkit-ui 0.7.1__tar.gz → 0.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: appkit-ui
3
- Version: 0.7.1
3
+ Version: 0.7.2
4
4
  Summary: Add your description here
5
5
  Author: Jens Rehpöhler
6
6
  Requires-Python: >=3.13
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "appkit-ui"
3
- version = "0.7.1"
3
+ version = "0.7.2"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Jens Rehpöhler" }]
@@ -4,7 +4,6 @@ import reflex as rx
4
4
  from pydantic import BaseModel
5
5
 
6
6
  import appkit_mantine as mn
7
- import appkit_ui.components as knai
8
7
 
9
8
  logger = logging.getLogger(__name__)
10
9
 
@@ -385,48 +384,40 @@ def form_text_editor(
385
384
  ) -> rx.Component:
386
385
  if kwargs.get("width") is None:
387
386
  kwargs["width"] = "100%"
388
- if kwargs.get("height") is None:
389
- kwargs["height"] = "240px"
390
387
 
391
388
  if on_blur is not None:
392
389
  kwargs["on_blur"] = on_blur
393
390
 
394
- return rx.form.field(
395
- rx.hstack(
396
- rx.icon(icon, size=16, stroke_width=1.5),
397
- rx.form.label(label),
398
- class_name="label",
399
- ),
400
- rx.cond(
401
- hint,
402
- rx.form.message(
391
+ return rx.vstack(
392
+ rx.form.field(
393
+ rx.hstack(
394
+ rx.icon(icon, size=16, stroke_width=1.5),
395
+ rx.form.label(label),
396
+ class_name="label",
397
+ ),
398
+ rx.cond(
403
399
  hint,
404
- color="gray",
405
- class_name="hint",
400
+ rx.form.message(
401
+ hint,
402
+ color="gray",
403
+ class_name="hint",
404
+ ),
406
405
  ),
406
+ margin_bottom="-12px",
407
407
  ),
408
- knai.editor(
408
+ mn.rich_text_editor(
409
409
  id=name,
410
- set_options=knai.EditorOptions(
411
- button_list=[
412
- ["formatBlock"],
413
- [
414
- "bold",
415
- "underline",
416
- "align",
417
- "outdent",
418
- "indent",
419
- "list",
420
- "table",
421
- "blockquote",
422
- ],
423
- [
424
- "link",
425
- "horizontalRule",
426
- ],
427
- ["removeFormat", "undo", "redo"],
428
- ],
410
+ toolbar_config=mn.EditorToolbarConfig(
411
+ control_groups=[
412
+ ["bold", "italic", "underline"],
413
+ ["h1", "h2", "h3"],
414
+ ["bulletList", "orderedList", "blockquote", "code"],
415
+ ["alignLeft", "alignCenter", "alignRight", "alignJustify"],
416
+ ["link", "unlink"],
417
+ ["image"],
418
+ ]
429
419
  ),
420
+ variant="subtle",
430
421
  **kwargs,
431
422
  ),
432
423
  width="100%",
@@ -0,0 +1,26 @@
1
+ import reflex as rx
2
+
3
+ splash_container: dict[str, str] = {
4
+ "background": (
5
+ f"linear-gradient(99deg, {rx.color('blue', 4)},"
6
+ f" {rx.color('pink', 3)}, {rx.color('mauve', 3)})"
7
+ ),
8
+ "background_size": "cover",
9
+ "background_position": "center",
10
+ "background_repeat": "no-repeat",
11
+ "min_height": "100vh",
12
+ "width": "100%",
13
+ }
14
+
15
+ dialog_styles = {
16
+ "max_width": "540px",
17
+ "padding": "1.5em",
18
+ "border": f"2px solid {rx.color('accent', 9)}",
19
+ "border_radius": "25px",
20
+ }
21
+
22
+ label_styles = {
23
+ "align": "center",
24
+ "spacing": "1",
25
+ "margin_bottom": "3px",
26
+ }
File without changes
File without changes