appkit-ui 0.7.1__py3-none-any.whl → 0.7.3__py3-none-any.whl
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.
|
@@ -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
|
|
|
@@ -139,7 +138,7 @@ def form_field(
|
|
|
139
138
|
label=label,
|
|
140
139
|
description=hint,
|
|
141
140
|
error=validation_error,
|
|
142
|
-
required=
|
|
141
|
+
required=kwargs.get("required", False),
|
|
143
142
|
width="100%",
|
|
144
143
|
)
|
|
145
144
|
|
|
@@ -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.
|
|
395
|
-
rx.
|
|
396
|
-
rx.
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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
|
-
|
|
405
|
-
|
|
400
|
+
rx.form.message(
|
|
401
|
+
hint,
|
|
402
|
+
color="gray",
|
|
403
|
+
class_name="hint",
|
|
404
|
+
),
|
|
406
405
|
),
|
|
406
|
+
margin_bottom="-12px",
|
|
407
407
|
),
|
|
408
|
-
|
|
408
|
+
mn.rich_text_editor(
|
|
409
409
|
id=name,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
["
|
|
413
|
-
[
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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%",
|
appkit_ui/styles.py
ADDED
|
@@ -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
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
appkit_ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
appkit_ui/global_states.py,sha256=V-Tmz4nmAcn4NAtW-Q12xNZSbQdJe7Oexvf25WdEdVY,215
|
|
3
|
+
appkit_ui/styles.py,sha256=2L2ZVSRLrjNpuCWx8OthwcZZ3w1WXmioADVjY11t3BY,601
|
|
3
4
|
appkit_ui/components/__init__.py,sha256=DPKkO65DGtXfla1esbS9wkEpxbVlMTs45g6oqgJVQYo,321
|
|
4
5
|
appkit_ui/components/collabsible.py,sha256=JAAIEvwShHMhtcGfZwXkR59AC2hEgZrH4DGmuVTGWFE,2833
|
|
5
6
|
appkit_ui/components/dialogs.py,sha256=nc4-5PNUwzz-8ZB-Y3bUGkw6z6RlEfNto7icPHjycog,3916
|
|
6
7
|
appkit_ui/components/editor.py,sha256=Z9cew7hrLuBoXBYk7xW-OsbhIcdW4LFlBqi_8eYtCTY,7956
|
|
7
|
-
appkit_ui/components/form_inputs.py,sha256=
|
|
8
|
+
appkit_ui/components/form_inputs.py,sha256=L3akQp92N7M-2Yi0lLSg7rbZTijneLg3FiPwWF1wcik,11546
|
|
8
9
|
appkit_ui/components/header.py,sha256=JLAiDEVku99pRgAsQAMUIui7i70hS6H6Bbbe8FVj0DU,715
|
|
9
|
-
appkit_ui-0.7.
|
|
10
|
-
appkit_ui-0.7.
|
|
11
|
-
appkit_ui-0.7.
|
|
10
|
+
appkit_ui-0.7.3.dist-info/METADATA,sha256=W26Au3CnrvR2C2Dh9Ho6gguqouIcgWPLa3RxOjOpTAg,196
|
|
11
|
+
appkit_ui-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
appkit_ui-0.7.3.dist-info/RECORD,,
|
|
File without changes
|