reflex 0.4.9a2__py3-none-any.whl → 0.5.0__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.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (133) hide show
  1. reflex/.templates/apps/blank/code/blank.py +19 -16
  2. reflex/.templates/apps/demo/code/demo.py +1 -1
  3. reflex/.templates/apps/demo/code/pages/datatable.py +4 -4
  4. reflex/.templates/apps/demo/code/pages/forms.py +2 -2
  5. reflex/.templates/jinja/web/tailwind.config.js.jinja2 +12 -0
  6. reflex/.templates/web/utils/helpers/debounce.js +17 -0
  7. reflex/.templates/web/utils/helpers/throttle.js +22 -0
  8. reflex/.templates/web/utils/state.js +21 -3
  9. reflex/__init__.py +6 -1
  10. reflex/__init__.pyi +4 -1
  11. reflex/app.py +157 -140
  12. reflex/app_module_for_backend.py +1 -1
  13. reflex/base.py +13 -15
  14. reflex/compiler/compiler.py +10 -1
  15. reflex/compiler/utils.py +3 -30
  16. reflex/components/__init__.py +1 -0
  17. reflex/components/chakra/datadisplay/list.py +1 -3
  18. reflex/components/chakra/datadisplay/list.pyi +3 -3
  19. reflex/components/chakra/disclosure/accordion.py +1 -1
  20. reflex/components/chakra/forms/pininput.pyi +1 -1
  21. reflex/components/chakra/media/icon.py +2 -2
  22. reflex/components/component.py +275 -32
  23. reflex/components/core/__init__.py +2 -2
  24. reflex/components/core/cond.py +1 -10
  25. reflex/components/core/debounce.py +5 -2
  26. reflex/components/core/debounce.pyi +4 -2
  27. reflex/components/core/foreach.py +60 -49
  28. reflex/components/core/html.py +6 -0
  29. reflex/components/core/match.py +2 -17
  30. reflex/components/core/upload.py +42 -1
  31. reflex/components/core/upload.pyi +199 -1
  32. reflex/components/datadisplay/code.py +7 -3
  33. reflex/components/datadisplay/code.pyi +3 -1
  34. reflex/components/el/elements/forms.py +1 -1
  35. reflex/components/el/elements/forms.pyi +1 -1
  36. reflex/components/lucide/icon.py +5 -13
  37. reflex/components/lucide/icon.pyi +0 -1
  38. reflex/components/markdown/markdown.py +5 -23
  39. reflex/components/markdown/markdown.pyi +1 -4
  40. reflex/components/radix/primitives/accordion.py +265 -410
  41. reflex/components/radix/primitives/accordion.pyi +390 -36
  42. reflex/components/radix/primitives/form.py +33 -29
  43. reflex/components/radix/primitives/form.pyi +7 -2
  44. reflex/components/radix/primitives/progress.py +17 -9
  45. reflex/components/radix/primitives/progress.pyi +2 -0
  46. reflex/components/radix/primitives/slider.py +30 -18
  47. reflex/components/radix/primitives/slider.pyi +4 -0
  48. reflex/components/radix/themes/base.py +8 -1
  49. reflex/components/radix/themes/base.pyi +79 -1
  50. reflex/components/radix/themes/color_mode.py +88 -20
  51. reflex/components/radix/themes/color_mode.pyi +157 -139
  52. reflex/components/radix/themes/components/__init__.py +17 -0
  53. reflex/components/radix/themes/components/badge.py +2 -1
  54. reflex/components/radix/themes/components/badge.pyi +3 -1
  55. reflex/components/radix/themes/components/button.py +3 -1
  56. reflex/components/radix/themes/components/button.pyi +4 -1
  57. reflex/components/radix/themes/components/checkbox_cards.py +48 -0
  58. reflex/components/radix/themes/components/checkbox_cards.pyi +264 -0
  59. reflex/components/radix/themes/components/checkbox_group.py +42 -0
  60. reflex/components/radix/themes/components/checkbox_group.pyi +253 -0
  61. reflex/components/radix/themes/components/data_list.py +63 -0
  62. reflex/components/radix/themes/components/data_list.pyi +426 -0
  63. reflex/components/radix/themes/components/icon_button.py +20 -17
  64. reflex/components/radix/themes/components/icon_button.pyi +5 -1
  65. reflex/components/radix/themes/components/progress.py +55 -0
  66. reflex/components/radix/themes/components/progress.pyi +180 -0
  67. reflex/components/radix/themes/components/radio.py +31 -0
  68. reflex/components/radix/themes/components/radio.pyi +169 -0
  69. reflex/components/radix/themes/components/radio_cards.py +48 -0
  70. reflex/components/radix/themes/components/radio_cards.pyi +264 -0
  71. reflex/components/radix/themes/components/radio_group.py +2 -4
  72. reflex/components/radix/themes/components/segmented_control.py +48 -0
  73. reflex/components/radix/themes/components/segmented_control.pyi +262 -0
  74. reflex/components/radix/themes/components/skeleton.py +32 -0
  75. reflex/components/radix/themes/components/skeleton.pyi +106 -0
  76. reflex/components/radix/themes/components/spinner.py +26 -0
  77. reflex/components/radix/themes/components/spinner.pyi +101 -0
  78. reflex/components/radix/themes/components/tabs.py +26 -1
  79. reflex/components/radix/themes/components/tabs.pyi +69 -9
  80. reflex/components/radix/themes/components/text_field.py +101 -71
  81. reflex/components/radix/themes/components/text_field.pyi +81 -499
  82. reflex/components/radix/themes/layout/base.py +2 -2
  83. reflex/components/radix/themes/layout/base.pyi +4 -4
  84. reflex/components/radix/themes/layout/center.py +8 -3
  85. reflex/components/radix/themes/layout/center.pyi +2 -1
  86. reflex/components/radix/themes/layout/container.py +30 -2
  87. reflex/components/radix/themes/layout/container.pyi +9 -30
  88. reflex/components/radix/themes/layout/list.py +10 -5
  89. reflex/components/radix/themes/layout/list.pyi +5 -21
  90. reflex/components/radix/themes/layout/spacer.py +8 -3
  91. reflex/components/radix/themes/layout/spacer.pyi +2 -1
  92. reflex/components/radix/themes/layout/stack.py +7 -1
  93. reflex/components/radix/themes/layout/stack.pyi +3 -3
  94. reflex/components/radix/themes/typography/link.py +10 -2
  95. reflex/components/radix/themes/typography/link.pyi +5 -4
  96. reflex/components/sonner/__init__.py +3 -0
  97. reflex/components/sonner/toast.py +267 -0
  98. reflex/components/sonner/toast.pyi +205 -0
  99. reflex/components/tags/iter_tag.py +9 -6
  100. reflex/config.py +30 -54
  101. reflex/constants/__init__.py +0 -2
  102. reflex/constants/base.py +0 -5
  103. reflex/constants/colors.py +2 -0
  104. reflex/constants/installer.py +5 -1
  105. reflex/constants/route.py +4 -0
  106. reflex/custom_components/custom_components.py +24 -2
  107. reflex/event.py +75 -30
  108. reflex/experimental/__init__.py +5 -0
  109. reflex/experimental/layout.py +24 -6
  110. reflex/model.py +2 -1
  111. reflex/page.py +7 -4
  112. reflex/reflex.py +8 -3
  113. reflex/route.py +39 -0
  114. reflex/state.py +128 -131
  115. reflex/style.py +25 -3
  116. reflex/testing.py +10 -6
  117. reflex/utils/console.py +3 -1
  118. reflex/utils/exec.py +20 -7
  119. reflex/utils/format.py +1 -1
  120. reflex/utils/imports.py +3 -1
  121. reflex/utils/prerequisites.py +141 -20
  122. reflex/utils/processes.py +21 -1
  123. reflex/utils/pyi_generator.py +95 -5
  124. reflex/utils/serializers.py +1 -1
  125. reflex/utils/telemetry.py +26 -4
  126. reflex/utils/types.py +62 -18
  127. reflex/vars.py +11 -5
  128. {reflex-0.4.9a2.dist-info → reflex-0.5.0.dist-info}/METADATA +16 -4
  129. {reflex-0.4.9a2.dist-info → reflex-0.5.0.dist-info}/RECORD +132 -110
  130. {reflex-0.4.9a2.dist-info → reflex-0.5.0.dist-info}/WHEEL +1 -1
  131. reflex/app.pyi +0 -149
  132. {reflex-0.4.9a2.dist-info → reflex-0.5.0.dist-info}/LICENSE +0 -0
  133. {reflex-0.4.9a2.dist-info → reflex-0.5.0.dist-info}/entry_points.txt +0 -0
@@ -9,41 +9,97 @@ from reflex.event import EventChain, EventHandler, EventSpec
9
9
  from reflex.style import Style
10
10
  from typing import Any, Dict, List, Literal, Optional, Union
11
11
  from reflex.components.component import Component, ComponentNamespace
12
- from reflex.components.core.match import Match
12
+ from reflex.components.core.colors import color
13
+ from reflex.components.core.cond import cond
13
14
  from reflex.components.lucide.icon import Icon
14
15
  from reflex.components.radix.primitives.base import RadixPrimitiveComponent
15
- from reflex.components.radix.themes.base import LiteralAccentColor
16
- from reflex.style import (
17
- Style,
18
- convert_dict_to_style_and_format_emotion,
19
- format_as_emotion,
20
- )
16
+ from reflex.components.radix.themes.base import LiteralAccentColor, LiteralRadius
17
+ from reflex.style import Style
21
18
  from reflex.utils import imports
22
- from reflex.vars import BaseVar, Var, VarData, get_uuid_string_var
19
+ from reflex.vars import Var, get_uuid_string_var
23
20
 
24
21
  LiteralAccordionType = Literal["single", "multiple"]
25
22
  LiteralAccordionDir = Literal["ltr", "rtl"]
26
23
  LiteralAccordionOrientation = Literal["vertical", "horizontal"]
27
- LiteralAccordionRootVariant = Literal["classic", "soft", "surface", "outline", "ghost"]
28
- LiteralAccordionRootColorScheme = Literal["primary", "accent"]
24
+ LiteralAccordionVariant = Literal["classic", "soft", "surface", "outline", "ghost"]
29
25
  DEFAULT_ANIMATION_DURATION = 250
30
-
31
- def get_theme_accordion_root(variant: Var[str], color_scheme: Var[str]) -> BaseVar: ...
32
- def get_theme_accordion_item(): ...
33
- def get_theme_accordion_header() -> dict[str, str]: ...
34
- def get_theme_accordion_trigger(
35
- variant: str | Var, color_scheme: str | Var
36
- ) -> BaseVar: ...
37
- def get_theme_accordion_content(
38
- variant: str | Var, color_scheme: str | Var
39
- ) -> BaseVar: ...
26
+ DEFAULT_ANIMATION_EASING = "cubic-bezier(0.87, 0, 0.13, 1)"
40
27
 
41
28
  class AccordionComponent(RadixPrimitiveComponent):
29
+ def add_style(self) -> Style | None: ...
42
30
  @overload
43
31
  @classmethod
44
32
  def create( # type: ignore
45
33
  cls,
46
34
  *children,
35
+ color_scheme: Optional[
36
+ Union[
37
+ Var[
38
+ Literal[
39
+ "tomato",
40
+ "red",
41
+ "ruby",
42
+ "crimson",
43
+ "pink",
44
+ "plum",
45
+ "purple",
46
+ "violet",
47
+ "iris",
48
+ "indigo",
49
+ "blue",
50
+ "cyan",
51
+ "teal",
52
+ "jade",
53
+ "green",
54
+ "grass",
55
+ "brown",
56
+ "orange",
57
+ "sky",
58
+ "mint",
59
+ "lime",
60
+ "yellow",
61
+ "amber",
62
+ "gold",
63
+ "bronze",
64
+ "gray",
65
+ ]
66
+ ],
67
+ Literal[
68
+ "tomato",
69
+ "red",
70
+ "ruby",
71
+ "crimson",
72
+ "pink",
73
+ "plum",
74
+ "purple",
75
+ "violet",
76
+ "iris",
77
+ "indigo",
78
+ "blue",
79
+ "cyan",
80
+ "teal",
81
+ "jade",
82
+ "green",
83
+ "grass",
84
+ "brown",
85
+ "orange",
86
+ "sky",
87
+ "mint",
88
+ "lime",
89
+ "yellow",
90
+ "amber",
91
+ "gold",
92
+ "bronze",
93
+ "gray",
94
+ ],
95
+ ]
96
+ ] = None,
97
+ variant: Optional[
98
+ Union[
99
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
100
+ Literal["classic", "soft", "surface", "outline", "ghost"],
101
+ ]
102
+ ] = None,
47
103
  as_child: Optional[Union[Var[bool], bool]] = None,
48
104
  style: Optional[Style] = None,
49
105
  key: Optional[Any] = None,
@@ -102,6 +158,8 @@ class AccordionComponent(RadixPrimitiveComponent):
102
158
 
103
159
  Args:
104
160
  *children: The children of the component.
161
+ color_scheme: The color scheme of the component.
162
+ variant: The variant of the component.
105
163
  as_child: Change the default rendered element for the one passed as a child.
106
164
  style: The style of the component.
107
165
  key: A unique key for the component.
@@ -117,6 +175,8 @@ class AccordionComponent(RadixPrimitiveComponent):
117
175
  ...
118
176
 
119
177
  class AccordionRoot(AccordionComponent):
178
+ def get_event_triggers(self) -> Dict[str, Any]: ...
179
+ def add_style(self): ...
120
180
  @overload
121
181
  @classmethod
122
182
  def create( # type: ignore
@@ -140,12 +200,15 @@ class AccordionRoot(AccordionComponent):
140
200
  Literal["vertical", "horizontal"],
141
201
  ]
142
202
  ] = None,
143
- variant: Optional[
203
+ radius: Optional[
144
204
  Union[
145
- Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
146
- Literal["classic", "soft", "surface", "outline", "ghost"],
205
+ Var[Literal["none", "small", "medium", "large", "full"]],
206
+ Literal["none", "small", "medium", "large", "full"],
147
207
  ]
148
208
  ] = None,
209
+ duration: Optional[Union[Var[int], int]] = None,
210
+ easing: Optional[Union[Var[str], str]] = None,
211
+ show_dividers: Optional[Union[Var[bool], bool]] = None,
149
212
  color_scheme: Optional[
150
213
  Union[
151
214
  Var[
@@ -208,8 +271,12 @@ class AccordionRoot(AccordionComponent):
208
271
  ],
209
272
  ]
210
273
  ] = None,
211
- _dynamic_themes: Optional[Union[Var[dict], dict]] = None,
212
- _var_data: Optional[VarData] = None,
274
+ variant: Optional[
275
+ Union[
276
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
277
+ Literal["classic", "soft", "surface", "outline", "ghost"],
278
+ ]
279
+ ] = None,
213
280
  as_child: Optional[Union[Var[bool], bool]] = None,
214
281
  style: Optional[Style] = None,
215
282
  key: Optional[Any] = None,
@@ -267,7 +334,7 @@ class AccordionRoot(AccordionComponent):
267
334
  ] = None,
268
335
  **props
269
336
  ) -> "AccordionRoot":
270
- """Create the Accordion root component.
337
+ """Create the component.
271
338
 
272
339
  Args:
273
340
  *children: The children of the component.
@@ -278,10 +345,12 @@ class AccordionRoot(AccordionComponent):
278
345
  disabled: Whether or not the accordion is disabled.
279
346
  dir: The reading direction of the accordion when applicable.
280
347
  orientation: The orientation of the accordion.
281
- variant: The variant of the accordion.
282
- color_scheme: The color scheme of the accordion.
283
- _dynamic_themes: dynamic themes of the accordion generated at compile time.
284
- _var_data: The var_data associated with the component.
348
+ radius: The radius of the accordion corners.
349
+ duration: The time in milliseconds to animate open and close
350
+ easing: The easing function to use for the animation.
351
+ show_dividers: Whether to show divider lines between items.
352
+ color_scheme: The color scheme of the component.
353
+ variant: The variant of the component.
285
354
  as_child: Change the default rendered element for the one passed as a child.
286
355
  style: The style of the component.
287
356
  key: A unique key for the component.
@@ -289,13 +358,12 @@ class AccordionRoot(AccordionComponent):
289
358
  class_name: The class name for the component.
290
359
  autofocus: Whether the component should take the focus once the page is loaded
291
360
  custom_attrs: custom attribute
292
- **props: The properties of the component.
361
+ **props: The props of the component.
293
362
 
294
363
  Returns:
295
- The Accordion root Component.
364
+ The component.
296
365
  """
297
366
  ...
298
- def get_event_triggers(self) -> Dict[str, Any]: ...
299
367
 
300
368
  class AccordionItem(AccordionComponent):
301
369
  @overload
@@ -303,10 +371,78 @@ class AccordionItem(AccordionComponent):
303
371
  def create( # type: ignore
304
372
  cls,
305
373
  *children,
306
- header: Optional[Component | Var] = None,
307
- content: Optional[Component | Var] = None,
374
+ header: Optional[Union[Component, Var]] = None,
375
+ content: Optional[Union[Component, Var]] = None,
308
376
  value: Optional[Union[Var[str], str]] = None,
309
377
  disabled: Optional[Union[Var[bool], bool]] = None,
378
+ color_scheme: Optional[
379
+ Union[
380
+ Var[
381
+ Literal[
382
+ "tomato",
383
+ "red",
384
+ "ruby",
385
+ "crimson",
386
+ "pink",
387
+ "plum",
388
+ "purple",
389
+ "violet",
390
+ "iris",
391
+ "indigo",
392
+ "blue",
393
+ "cyan",
394
+ "teal",
395
+ "jade",
396
+ "green",
397
+ "grass",
398
+ "brown",
399
+ "orange",
400
+ "sky",
401
+ "mint",
402
+ "lime",
403
+ "yellow",
404
+ "amber",
405
+ "gold",
406
+ "bronze",
407
+ "gray",
408
+ ]
409
+ ],
410
+ Literal[
411
+ "tomato",
412
+ "red",
413
+ "ruby",
414
+ "crimson",
415
+ "pink",
416
+ "plum",
417
+ "purple",
418
+ "violet",
419
+ "iris",
420
+ "indigo",
421
+ "blue",
422
+ "cyan",
423
+ "teal",
424
+ "jade",
425
+ "green",
426
+ "grass",
427
+ "brown",
428
+ "orange",
429
+ "sky",
430
+ "mint",
431
+ "lime",
432
+ "yellow",
433
+ "amber",
434
+ "gold",
435
+ "bronze",
436
+ "gray",
437
+ ],
438
+ ]
439
+ ] = None,
440
+ variant: Optional[
441
+ Union[
442
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
443
+ Literal["classic", "soft", "surface", "outline", "ghost"],
444
+ ]
445
+ ] = None,
310
446
  as_child: Optional[Union[Var[bool], bool]] = None,
311
447
  style: Optional[Style] = None,
312
448
  key: Optional[Any] = None,
@@ -364,11 +500,13 @@ class AccordionItem(AccordionComponent):
364
500
  """Create an accordion item.
365
501
 
366
502
  Args:
503
+ *children: The list of children to use if header and content are not provided.
367
504
  header: The header of the accordion item.
368
505
  content: The content of the accordion item.
369
- *children: The list of children to use if header and content are not provided.
370
506
  value: A unique identifier for the item.
371
507
  disabled: When true, prevents the user from interacting with the item.
508
+ color_scheme: The color scheme of the component.
509
+ variant: The variant of the component.
372
510
  as_child: Change the default rendered element for the one passed as a child.
373
511
  style: The style of the component.
374
512
  key: A unique key for the component.
@@ -382,6 +520,7 @@ class AccordionItem(AccordionComponent):
382
520
  The accordion item.
383
521
  """
384
522
  ...
523
+ def add_style(self) -> Style | None: ...
385
524
 
386
525
  class AccordionHeader(AccordionComponent):
387
526
  @overload
@@ -389,6 +528,74 @@ class AccordionHeader(AccordionComponent):
389
528
  def create( # type: ignore
390
529
  cls,
391
530
  *children,
531
+ color_scheme: Optional[
532
+ Union[
533
+ Var[
534
+ Literal[
535
+ "tomato",
536
+ "red",
537
+ "ruby",
538
+ "crimson",
539
+ "pink",
540
+ "plum",
541
+ "purple",
542
+ "violet",
543
+ "iris",
544
+ "indigo",
545
+ "blue",
546
+ "cyan",
547
+ "teal",
548
+ "jade",
549
+ "green",
550
+ "grass",
551
+ "brown",
552
+ "orange",
553
+ "sky",
554
+ "mint",
555
+ "lime",
556
+ "yellow",
557
+ "amber",
558
+ "gold",
559
+ "bronze",
560
+ "gray",
561
+ ]
562
+ ],
563
+ Literal[
564
+ "tomato",
565
+ "red",
566
+ "ruby",
567
+ "crimson",
568
+ "pink",
569
+ "plum",
570
+ "purple",
571
+ "violet",
572
+ "iris",
573
+ "indigo",
574
+ "blue",
575
+ "cyan",
576
+ "teal",
577
+ "jade",
578
+ "green",
579
+ "grass",
580
+ "brown",
581
+ "orange",
582
+ "sky",
583
+ "mint",
584
+ "lime",
585
+ "yellow",
586
+ "amber",
587
+ "gold",
588
+ "bronze",
589
+ "gray",
590
+ ],
591
+ ]
592
+ ] = None,
593
+ variant: Optional[
594
+ Union[
595
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
596
+ Literal["classic", "soft", "surface", "outline", "ghost"],
597
+ ]
598
+ ] = None,
392
599
  as_child: Optional[Union[Var[bool], bool]] = None,
393
600
  style: Optional[Style] = None,
394
601
  key: Optional[Any] = None,
@@ -447,6 +654,8 @@ class AccordionHeader(AccordionComponent):
447
654
 
448
655
  Args:
449
656
  *children: The children of the component.
657
+ color_scheme: The color scheme of the component.
658
+ variant: The variant of the component.
450
659
  as_child: Change the default rendered element for the one passed as a child.
451
660
  style: The style of the component.
452
661
  key: A unique key for the component.
@@ -460,6 +669,7 @@ class AccordionHeader(AccordionComponent):
460
669
  The Accordion header Component.
461
670
  """
462
671
  ...
672
+ def add_style(self) -> Style | None: ...
463
673
 
464
674
  class AccordionTrigger(AccordionComponent):
465
675
  @overload
@@ -467,6 +677,74 @@ class AccordionTrigger(AccordionComponent):
467
677
  def create( # type: ignore
468
678
  cls,
469
679
  *children,
680
+ color_scheme: Optional[
681
+ Union[
682
+ Var[
683
+ Literal[
684
+ "tomato",
685
+ "red",
686
+ "ruby",
687
+ "crimson",
688
+ "pink",
689
+ "plum",
690
+ "purple",
691
+ "violet",
692
+ "iris",
693
+ "indigo",
694
+ "blue",
695
+ "cyan",
696
+ "teal",
697
+ "jade",
698
+ "green",
699
+ "grass",
700
+ "brown",
701
+ "orange",
702
+ "sky",
703
+ "mint",
704
+ "lime",
705
+ "yellow",
706
+ "amber",
707
+ "gold",
708
+ "bronze",
709
+ "gray",
710
+ ]
711
+ ],
712
+ Literal[
713
+ "tomato",
714
+ "red",
715
+ "ruby",
716
+ "crimson",
717
+ "pink",
718
+ "plum",
719
+ "purple",
720
+ "violet",
721
+ "iris",
722
+ "indigo",
723
+ "blue",
724
+ "cyan",
725
+ "teal",
726
+ "jade",
727
+ "green",
728
+ "grass",
729
+ "brown",
730
+ "orange",
731
+ "sky",
732
+ "mint",
733
+ "lime",
734
+ "yellow",
735
+ "amber",
736
+ "gold",
737
+ "bronze",
738
+ "gray",
739
+ ],
740
+ ]
741
+ ] = None,
742
+ variant: Optional[
743
+ Union[
744
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
745
+ Literal["classic", "soft", "surface", "outline", "ghost"],
746
+ ]
747
+ ] = None,
470
748
  as_child: Optional[Union[Var[bool], bool]] = None,
471
749
  style: Optional[Style] = None,
472
750
  key: Optional[Any] = None,
@@ -525,6 +803,8 @@ class AccordionTrigger(AccordionComponent):
525
803
 
526
804
  Args:
527
805
  *children: The children of the component.
806
+ color_scheme: The color scheme of the component.
807
+ variant: The variant of the component.
528
808
  as_child: Change the default rendered element for the one passed as a child.
529
809
  style: The style of the component.
530
810
  key: A unique key for the component.
@@ -538,6 +818,7 @@ class AccordionTrigger(AccordionComponent):
538
818
  The Accordion trigger Component.
539
819
  """
540
820
  ...
821
+ def add_style(self) -> Style | None: ...
541
822
 
542
823
  class AccordionIcon(Icon):
543
824
  @overload
@@ -618,11 +899,80 @@ class AccordionIcon(Icon):
618
899
  ...
619
900
 
620
901
  class AccordionContent(AccordionComponent):
902
+ def add_imports(self) -> imports.ImportDict: ...
621
903
  @overload
622
904
  @classmethod
623
905
  def create( # type: ignore
624
906
  cls,
625
907
  *children,
908
+ color_scheme: Optional[
909
+ Union[
910
+ Var[
911
+ Literal[
912
+ "tomato",
913
+ "red",
914
+ "ruby",
915
+ "crimson",
916
+ "pink",
917
+ "plum",
918
+ "purple",
919
+ "violet",
920
+ "iris",
921
+ "indigo",
922
+ "blue",
923
+ "cyan",
924
+ "teal",
925
+ "jade",
926
+ "green",
927
+ "grass",
928
+ "brown",
929
+ "orange",
930
+ "sky",
931
+ "mint",
932
+ "lime",
933
+ "yellow",
934
+ "amber",
935
+ "gold",
936
+ "bronze",
937
+ "gray",
938
+ ]
939
+ ],
940
+ Literal[
941
+ "tomato",
942
+ "red",
943
+ "ruby",
944
+ "crimson",
945
+ "pink",
946
+ "plum",
947
+ "purple",
948
+ "violet",
949
+ "iris",
950
+ "indigo",
951
+ "blue",
952
+ "cyan",
953
+ "teal",
954
+ "jade",
955
+ "green",
956
+ "grass",
957
+ "brown",
958
+ "orange",
959
+ "sky",
960
+ "mint",
961
+ "lime",
962
+ "yellow",
963
+ "amber",
964
+ "gold",
965
+ "bronze",
966
+ "gray",
967
+ ],
968
+ ]
969
+ ] = None,
970
+ variant: Optional[
971
+ Union[
972
+ Var[Literal["classic", "soft", "surface", "outline", "ghost"]],
973
+ Literal["classic", "soft", "surface", "outline", "ghost"],
974
+ ]
975
+ ] = None,
626
976
  as_child: Optional[Union[Var[bool], bool]] = None,
627
977
  style: Optional[Style] = None,
628
978
  key: Optional[Any] = None,
@@ -681,6 +1031,8 @@ class AccordionContent(AccordionComponent):
681
1031
 
682
1032
  Args:
683
1033
  *children: The children of the component.
1034
+ color_scheme: The color scheme of the component.
1035
+ variant: The variant of the component.
684
1036
  as_child: Change the default rendered element for the one passed as a child.
685
1037
  style: The style of the component.
686
1038
  key: A unique key for the component.
@@ -694,6 +1046,8 @@ class AccordionContent(AccordionComponent):
694
1046
  The Accordion content Component.
695
1047
  """
696
1048
  ...
1049
+ def add_custom_code(self) -> list[str]: ...
1050
+ def add_style(self) -> Style | None: ...
697
1051
 
698
1052
  class Accordion(ComponentNamespace):
699
1053
  content = staticmethod(AccordionContent.create)