@moduix/solid-tailwind 1.0.0 → 1.1.1

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.
Files changed (124) hide show
  1. package/dist/components/accordion/Accordion.js +19 -13
  2. package/dist/components/accordion/Accordion.jsx +7 -7
  3. package/dist/components/alert/Alert.js +19 -13
  4. package/dist/components/alert/Alert.jsx +7 -7
  5. package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
  6. package/dist/components/angle-slider/AngleSlider.js +21 -16
  7. package/dist/components/angle-slider/AngleSlider.jsx +10 -11
  8. package/dist/components/avatar/Avatar.js +10 -7
  9. package/dist/components/avatar/Avatar.jsx +6 -6
  10. package/dist/components/bleed/Bleed.js +1 -1
  11. package/dist/components/bleed/Bleed.jsx +1 -1
  12. package/dist/components/button/Button.js +1 -6
  13. package/dist/components/button/Button.jsx +2 -4
  14. package/dist/components/card/Card.js +54 -44
  15. package/dist/components/card/Card.jsx +12 -12
  16. package/dist/components/carousel/Carousel.d.ts +1 -1
  17. package/dist/components/carousel/Carousel.js +32 -23
  18. package/dist/components/carousel/Carousel.jsx +12 -13
  19. package/dist/components/checkbox/Checkbox.js +16 -14
  20. package/dist/components/checkbox/Checkbox.jsx +6 -6
  21. package/dist/components/clipboard/Clipboard.js +28 -17
  22. package/dist/components/clipboard/Clipboard.jsx +12 -11
  23. package/dist/components/collapsible/Collapsible.js +16 -11
  24. package/dist/components/collapsible/Collapsible.jsx +6 -6
  25. package/dist/components/color-picker/ColorPicker.js +69 -48
  26. package/dist/components/color-picker/ColorPicker.jsx +28 -28
  27. package/dist/components/combobox/Combobox.js +44 -31
  28. package/dist/components/combobox/Combobox.jsx +18 -18
  29. package/dist/components/command-palette/CommandPalette.js +72 -53
  30. package/dist/components/command-palette/CommandPalette.jsx +29 -32
  31. package/dist/components/container/Container.js +5 -5
  32. package/dist/components/container/Container.jsx +5 -5
  33. package/dist/components/date-input/DateInput.js +18 -12
  34. package/dist/components/date-input/DateInput.jsx +7 -7
  35. package/dist/components/date-picker/DatePicker.js +73 -51
  36. package/dist/components/date-picker/DatePicker.jsx +29 -29
  37. package/dist/components/dialog/Dialog.js +30 -20
  38. package/dist/components/dialog/Dialog.jsx +10 -10
  39. package/dist/components/drawer/Drawer.js +45 -30
  40. package/dist/components/drawer/Drawer.jsx +15 -15
  41. package/dist/components/editable/Editable.js +24 -17
  42. package/dist/components/editable/Editable.jsx +10 -10
  43. package/dist/components/empty/Empty.js +1 -1
  44. package/dist/components/empty/Empty.jsx +1 -1
  45. package/dist/components/file-upload/FileUpload.js +39 -28
  46. package/dist/components/file-upload/FileUpload.jsx +17 -17
  47. package/dist/components/floating-panel/FloatingPanel.js +35 -23
  48. package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
  49. package/dist/components/hover-card/HoverCard.js +16 -11
  50. package/dist/components/hover-card/HoverCard.jsx +6 -6
  51. package/dist/components/image-cropper/ImageCropper.js +21 -14
  52. package/dist/components/image-cropper/ImageCropper.jsx +7 -7
  53. package/dist/components/input-group/InputGroup.js +3 -2
  54. package/dist/components/input-group/InputGroup.jsx +3 -2
  55. package/dist/components/json-tree-view/JsonTreeView.js +1 -1
  56. package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
  57. package/dist/components/lightbox/Lightbox.d.ts +1 -0
  58. package/dist/components/lightbox/Lightbox.js +41 -27
  59. package/dist/components/lightbox/Lightbox.jsx +13 -12
  60. package/dist/components/listbox/Listbox.js +48 -32
  61. package/dist/components/listbox/Listbox.jsx +17 -17
  62. package/dist/components/marquee/Marquee.js +18 -12
  63. package/dist/components/marquee/Marquee.jsx +9 -9
  64. package/dist/components/menu/Menu.js +66 -44
  65. package/dist/components/menu/Menu.jsx +28 -28
  66. package/dist/components/navigation-menu/NavigationMenu.js +36 -24
  67. package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
  68. package/dist/components/number-input/NumberInput.js +19 -14
  69. package/dist/components/number-input/NumberInput.jsx +9 -9
  70. package/dist/components/pagination/Pagination.js +10 -9
  71. package/dist/components/pagination/Pagination.jsx +8 -8
  72. package/dist/components/password-input/PasswordInput.js +16 -11
  73. package/dist/components/password-input/PasswordInput.jsx +6 -6
  74. package/dist/components/pin-input/PinInput.js +15 -10
  75. package/dist/components/pin-input/PinInput.jsx +6 -6
  76. package/dist/components/popover/Popover.js +37 -25
  77. package/dist/components/popover/Popover.jsx +13 -13
  78. package/dist/components/progress-circular/ProgressCircular.js +18 -13
  79. package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
  80. package/dist/components/progress-linear/ProgressLinear.js +17 -12
  81. package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
  82. package/dist/components/qr-code/QrCode.js +8 -7
  83. package/dist/components/qr-code/QrCode.jsx +6 -6
  84. package/dist/components/rating-group/RatingGroup.js +15 -10
  85. package/dist/components/rating-group/RatingGroup.jsx +6 -6
  86. package/dist/components/segment-group/SegmentGroup.js +17 -12
  87. package/dist/components/segment-group/SegmentGroup.jsx +7 -7
  88. package/dist/components/select/Select.js +50 -35
  89. package/dist/components/select/Select.jsx +20 -20
  90. package/dist/components/sidebar/Sidebar.js +72 -43
  91. package/dist/components/sidebar/Sidebar.jsx +34 -27
  92. package/dist/components/signature-pad/SignaturePad.js +16 -12
  93. package/dist/components/signature-pad/SignaturePad.jsx +8 -8
  94. package/dist/components/slider/Slider.js +29 -20
  95. package/dist/components/slider/Slider.jsx +11 -11
  96. package/dist/components/split-button/SplitButton.d.ts +4 -3
  97. package/dist/components/split-button/SplitButton.js +20 -9
  98. package/dist/components/split-button/SplitButton.jsx +13 -7
  99. package/dist/components/splitter/Splitter.js +13 -9
  100. package/dist/components/splitter/Splitter.jsx +5 -5
  101. package/dist/components/steps/Steps.js +34 -23
  102. package/dist/components/steps/Steps.jsx +12 -12
  103. package/dist/components/swap/Swap.js +9 -6
  104. package/dist/components/swap/Swap.jsx +3 -3
  105. package/dist/components/switch/Switch.js +9 -7
  106. package/dist/components/switch/Switch.jsx +5 -5
  107. package/dist/components/tabs/Tabs.js +18 -12
  108. package/dist/components/tabs/Tabs.jsx +6 -6
  109. package/dist/components/tags-input/TagsInput.js +28 -20
  110. package/dist/components/tags-input/TagsInput.jsx +12 -12
  111. package/dist/components/timer/Timer.js +21 -14
  112. package/dist/components/timer/Timer.jsx +7 -7
  113. package/dist/components/toast/Toast.js +11 -9
  114. package/dist/components/toast/Toast.jsx +7 -7
  115. package/dist/components/toc/Toc.js +31 -20
  116. package/dist/components/toc/Toc.jsx +10 -10
  117. package/dist/components/tooltip/Tooltip.js +13 -9
  118. package/dist/components/tooltip/Tooltip.jsx +5 -5
  119. package/dist/components/tour/Tour.js +38 -26
  120. package/dist/components/tour/Tour.jsx +13 -13
  121. package/dist/components/tree-view/TreeView.js +39 -28
  122. package/dist/components/tree-view/TreeView.jsx +17 -17
  123. package/dist/styles/animations.css +8 -8
  124. package/package.json +10 -11
@@ -9,44 +9,48 @@ function AccordionRoot(props) {
9
9
  'class'
10
10
  ]);
11
11
  return createComponent(Accordion.Root, mergeProps({
12
- "data-slot": "accordion-root",
13
12
  get ["class"] () {
14
13
  return cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class);
15
14
  }
16
- }, others));
15
+ }, others, {
16
+ "data-slot": "accordion-root"
17
+ }));
17
18
  }
18
19
  function AccordionRootProvider(props) {
19
20
  const [local, others] = splitProps(props, [
20
21
  'class'
21
22
  ]);
22
23
  return createComponent(Accordion.RootProvider, mergeProps({
23
- "data-slot": "accordion-root-provider",
24
24
  get ["class"] () {
25
25
  return cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class);
26
26
  }
27
- }, others));
27
+ }, others, {
28
+ "data-slot": "accordion-root-provider"
29
+ }));
28
30
  }
29
31
  function AccordionItem(props) {
30
32
  const [local, others] = splitProps(props, [
31
33
  'class'
32
34
  ]);
33
35
  return createComponent(Accordion.Item, mergeProps({
34
- "data-slot": "accordion-item",
35
36
  get ["class"] () {
36
37
  return cn("[overflow-anchor:none] data-[orientation=horizontal]:flex [&[data-orientation='horizontal']:not(:last-child)]:border-e [&[data-orientation='horizontal']:not(:last-child)]:border-border [&[data-orientation='vertical']:not(:last-child)]:border-b [&[data-orientation='vertical']:not(:last-child)]:border-border", local.class);
37
38
  }
38
- }, others));
39
+ }, others, {
40
+ "data-slot": "accordion-item"
41
+ }));
39
42
  }
40
43
  function AccordionItemTrigger(props) {
41
44
  const [local, others] = splitProps(props, [
42
45
  'class'
43
46
  ]);
44
47
  return createComponent(Accordion.ItemTrigger, mergeProps({
45
- "data-slot": "accordion-item-trigger",
46
48
  get ["class"] () {
47
49
  return cn('flex w-full cursor-pointer items-center justify-between gap-4 bg-muted px-3 py-2 text-start text-md outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-10 data-[orientation=horizontal]:justify-center data-[orientation=horizontal]:[writing-mode:sideways-lr] motion-reduce:transition-none [&:not([data-disabled]):active]:bg-accent [&:not([data-disabled]):hover]:bg-accent', local.class);
48
50
  }
49
- }, others));
51
+ }, others, {
52
+ "data-slot": "accordion-item-trigger"
53
+ }));
50
54
  }
51
55
  function AccordionItemIndicator(props) {
52
56
  const [local, others] = splitProps(props, [
@@ -55,11 +59,11 @@ function AccordionItemIndicator(props) {
55
59
  ]);
56
60
  const resolvedChildren = children(()=>local.children);
57
61
  return createComponent(Accordion.ItemIndicator, mergeProps({
58
- "data-slot": "accordion-item-indicator",
59
62
  get ["class"] () {
60
63
  return cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-[state=open]:scale-110 data-[state=open]:rotate-45 motion-reduce:transition-none [&_svg]:size-full', local.class);
61
64
  }
62
65
  }, others, {
66
+ "data-slot": "accordion-item-indicator",
63
67
  get children () {
64
68
  return resolvedChildren() ?? createComponent(PlusIcon, {});
65
69
  }
@@ -70,11 +74,12 @@ function AccordionItemContent(props) {
70
74
  'class'
71
75
  ]);
72
76
  return createComponent(Accordion.ItemContent, mergeProps({
73
- "data-slot": "accordion-item-content",
74
77
  get ["class"] () {
75
78
  return cn("overflow-hidden text-md text-muted-foreground data-[state=closed]:data-[orientation=horizontal]:animate-moduix-accordion-closed-horizontal data-[state=closed]:data-[orientation=vertical]:animate-moduix-accordion-closed data-[state=open]:data-[orientation=horizontal]:animate-moduix-accordion-open-horizontal data-[state=open]:data-[orientation=vertical]:animate-moduix-accordion-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] data-[orientation=horizontal]:[&>*]:w-64 [&[hidden]:not([hidden='until-found'])]:hidden", local.class);
76
79
  }
77
- }, others));
80
+ }, others, {
81
+ "data-slot": "accordion-item-content"
82
+ }));
78
83
  }
79
84
  function AccordionItemBody(props) {
80
85
  const [local, others] = splitProps(props, [
@@ -83,11 +88,12 @@ function AccordionItemBody(props) {
83
88
  return createComponent(ark.div, mergeProps({
84
89
  "data-scope": "accordion",
85
90
  "data-part": "item-body",
86
- "data-slot": "accordion-item-body",
87
91
  get ["class"] () {
88
92
  return cn('grid min-w-0 gap-3 p-3', local.class);
89
93
  }
90
- }, others));
94
+ }, others, {
95
+ "data-slot": "accordion-item-body"
96
+ }));
91
97
  }
92
98
  const Accordion_Accordion = Object.assign(AccordionRoot, {
93
99
  Root: AccordionRoot,
@@ -7,25 +7,25 @@ function AccordionRoot(props) {
7
7
  const [local, others] = splitProps(props, [
8
8
  'class'
9
9
  ]);
10
- return <Accordion.Root data-slot="accordion-root" class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others}/>;
10
+ return <Accordion.Root class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others} data-slot="accordion-root"/>;
11
11
  }
12
12
  function AccordionRootProvider(props) {
13
13
  const [local, others] = splitProps(props, [
14
14
  'class'
15
15
  ]);
16
- return <Accordion.RootProvider data-slot="accordion-root-provider" class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others}/>;
16
+ return <Accordion.RootProvider class={cn('box-border flex w-full max-w-full min-w-0 flex-col text-foreground data-[orientation=horizontal]:h-80 data-[orientation=horizontal]:max-h-full data-[orientation=horizontal]:w-auto data-[orientation=horizontal]:flex-row', local.class)} {...others} data-slot="accordion-root-provider"/>;
17
17
  }
18
18
  function AccordionItem(props) {
19
19
  const [local, others] = splitProps(props, [
20
20
  'class'
21
21
  ]);
22
- return <Accordion.Item data-slot="accordion-item" class={cn("[overflow-anchor:none] data-[orientation=horizontal]:flex [&[data-orientation='horizontal']:not(:last-child)]:border-e [&[data-orientation='horizontal']:not(:last-child)]:border-border [&[data-orientation='vertical']:not(:last-child)]:border-b [&[data-orientation='vertical']:not(:last-child)]:border-border", local.class)} {...others}/>;
22
+ return <Accordion.Item class={cn("[overflow-anchor:none] data-[orientation=horizontal]:flex [&[data-orientation='horizontal']:not(:last-child)]:border-e [&[data-orientation='horizontal']:not(:last-child)]:border-border [&[data-orientation='vertical']:not(:last-child)]:border-b [&[data-orientation='vertical']:not(:last-child)]:border-border", local.class)} {...others} data-slot="accordion-item"/>;
23
23
  }
24
24
  function AccordionItemTrigger(props) {
25
25
  const [local, others] = splitProps(props, [
26
26
  'class'
27
27
  ]);
28
- return <Accordion.ItemTrigger data-slot="accordion-item-trigger" class={cn('flex w-full cursor-pointer items-center justify-between gap-4 bg-muted px-3 py-2 text-start text-md outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-10 data-[orientation=horizontal]:justify-center data-[orientation=horizontal]:[writing-mode:sideways-lr] motion-reduce:transition-none [&:not([data-disabled]):active]:bg-accent [&:not([data-disabled]):hover]:bg-accent', local.class)} {...others}/>;
28
+ return <Accordion.ItemTrigger class={cn('flex w-full cursor-pointer items-center justify-between gap-4 bg-muted px-3 py-2 text-start text-md outline-0 transition-colors duration-200 select-none focus-visible:relative focus-visible:z-1 focus-visible:outline-2 focus-visible:-outline-offset-1 focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-10 data-[orientation=horizontal]:justify-center data-[orientation=horizontal]:[writing-mode:sideways-lr] motion-reduce:transition-none [&:not([data-disabled]):active]:bg-accent [&:not([data-disabled]):hover]:bg-accent', local.class)} {...others} data-slot="accordion-item-trigger"/>;
29
29
  }
30
30
  function AccordionItemIndicator(props) {
31
31
  const [local, others] = splitProps(props, [
@@ -33,7 +33,7 @@ function AccordionItemIndicator(props) {
33
33
  'children'
34
34
  ]);
35
35
  const resolvedChildren = children(()=>local.children);
36
- return <Accordion.ItemIndicator data-slot="accordion-item-indicator" class={cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-[state=open]:scale-110 data-[state=open]:rotate-45 motion-reduce:transition-none [&_svg]:size-full', local.class)} {...others}>
36
+ return <Accordion.ItemIndicator class={cn('inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-200 data-[state=open]:scale-110 data-[state=open]:rotate-45 motion-reduce:transition-none [&_svg]:size-full', local.class)} {...others} data-slot="accordion-item-indicator">
37
37
  {resolvedChildren() ?? <PlusIcon/>}
38
38
  </Accordion.ItemIndicator>;
39
39
  }
@@ -41,13 +41,13 @@ function AccordionItemContent(props) {
41
41
  const [local, others] = splitProps(props, [
42
42
  'class'
43
43
  ]);
44
- return <Accordion.ItemContent data-slot="accordion-item-content" class={cn("overflow-hidden text-md text-muted-foreground data-[state=closed]:data-[orientation=horizontal]:animate-moduix-accordion-closed-horizontal data-[state=closed]:data-[orientation=vertical]:animate-moduix-accordion-closed data-[state=open]:data-[orientation=horizontal]:animate-moduix-accordion-open-horizontal data-[state=open]:data-[orientation=vertical]:animate-moduix-accordion-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] data-[orientation=horizontal]:[&>*]:w-64 [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others}/>;
44
+ return <Accordion.ItemContent class={cn("overflow-hidden text-md text-muted-foreground data-[state=closed]:data-[orientation=horizontal]:animate-moduix-accordion-closed-horizontal data-[state=closed]:data-[orientation=vertical]:animate-moduix-accordion-closed data-[state=open]:data-[orientation=horizontal]:animate-moduix-accordion-open-horizontal data-[state=open]:data-[orientation=vertical]:animate-moduix-accordion-open motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms] data-[orientation=horizontal]:[&>*]:w-64 [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others} data-slot="accordion-item-content"/>;
45
45
  }
46
46
  function AccordionItemBody(props) {
47
47
  const [local, others] = splitProps(props, [
48
48
  'class'
49
49
  ]);
50
- return <ark.div data-scope="accordion" data-part="item-body" data-slot="accordion-item-body" class={cn('grid min-w-0 gap-3 p-3', local.class)} {...others}/>;
50
+ return <ark.div data-scope="accordion" data-part="item-body" class={cn('grid min-w-0 gap-3 p-3', local.class)} {...others} data-slot="accordion-item-body"/>;
51
51
  }
52
52
  const Accordion_Accordion = Object.assign(AccordionRoot, {
53
53
  Root: AccordionRoot,
@@ -24,11 +24,10 @@ function AlertRoot(props) {
24
24
  ]);
25
25
  return createComponent(ark.div, mergeProps({
26
26
  get role () {
27
- return local.role ?? ('error' === local.status ? 'alert' : 'status');
27
+ return local.role;
28
28
  },
29
29
  "data-scope": "alert",
30
30
  "data-part": "root",
31
- "data-slot": "alert-root",
32
31
  get ["data-status"] () {
33
32
  return local.status ?? 'info';
34
33
  },
@@ -37,7 +36,9 @@ function AlertRoot(props) {
37
36
  status: local.status
38
37
  }), local.class);
39
38
  }
40
- }, others));
39
+ }, others, {
40
+ "data-slot": "alert-root"
41
+ }));
41
42
  }
42
43
  function AlertIndicator(props) {
43
44
  const [local, others] = splitProps(props, [
@@ -46,12 +47,13 @@ function AlertIndicator(props) {
46
47
  return createComponent(ark.span, mergeProps({
47
48
  "data-scope": "alert",
48
49
  "data-part": "indicator",
49
- "data-slot": "alert-indicator",
50
50
  "aria-hidden": "true",
51
51
  get ["class"] () {
52
52
  return cn('mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground group-data-[status=error]/alert:text-destructive group-data-[status=success]/alert:text-success group-data-[status=warning]/alert:text-warning [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', local.class);
53
53
  }
54
- }, others));
54
+ }, others, {
55
+ "data-slot": "alert-indicator"
56
+ }));
55
57
  }
56
58
  function AlertContent(props) {
57
59
  const [local, others] = splitProps(props, [
@@ -60,11 +62,12 @@ function AlertContent(props) {
60
62
  return createComponent(ark.div, mergeProps({
61
63
  "data-scope": "alert",
62
64
  "data-part": "content",
63
- "data-slot": "alert-content",
64
65
  get ["class"] () {
65
66
  return cn('grid min-w-0 flex-1 gap-1', local.class);
66
67
  }
67
- }, others));
68
+ }, others, {
69
+ "data-slot": "alert-content"
70
+ }));
68
71
  }
69
72
  function AlertTitle(props) {
70
73
  const [local, others] = splitProps(props, [
@@ -73,11 +76,12 @@ function AlertTitle(props) {
73
76
  return createComponent(ark.p, mergeProps({
74
77
  "data-scope": "alert",
75
78
  "data-part": "title",
76
- "data-slot": "alert-title",
77
79
  get ["class"] () {
78
80
  return cn('m-0 min-w-0 text-sm font-semibold [overflow-wrap:anywhere]', local.class);
79
81
  }
80
- }, others));
82
+ }, others, {
83
+ "data-slot": "alert-title"
84
+ }));
81
85
  }
82
86
  function AlertDescription(props) {
83
87
  const [local, others] = splitProps(props, [
@@ -86,11 +90,12 @@ function AlertDescription(props) {
86
90
  return createComponent(ark.div, mergeProps({
87
91
  "data-scope": "alert",
88
92
  "data-part": "description",
89
- "data-slot": "alert-description",
90
93
  get ["class"] () {
91
94
  return cn('min-w-0 text-sm [overflow-wrap:anywhere] text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class);
92
95
  }
93
- }, others));
96
+ }, others, {
97
+ "data-slot": "alert-description"
98
+ }));
94
99
  }
95
100
  function AlertActions(props) {
96
101
  const [local, others] = splitProps(props, [
@@ -99,11 +104,12 @@ function AlertActions(props) {
99
104
  return createComponent(ark.div, mergeProps({
100
105
  "data-scope": "alert",
101
106
  "data-part": "actions",
102
- "data-slot": "alert-actions",
103
107
  get ["class"] () {
104
108
  return cn('mt-2 flex flex-wrap gap-2', local.class);
105
109
  }
106
- }, others));
110
+ }, others, {
111
+ "data-slot": "alert-actions"
112
+ }));
107
113
  }
108
114
  const Alert = Object.assign(AlertRoot, {
109
115
  Root: AlertRoot,
@@ -21,39 +21,39 @@ function AlertRoot(props) {
21
21
  'role',
22
22
  'status'
23
23
  ]);
24
- return <ark.div role={local.role ?? ('error' === local.status ? 'alert' : 'status')} data-scope="alert" data-part="root" data-slot="alert-root" data-status={local.status ?? 'info'} class={cn(alertVariants({
24
+ return <ark.div role={local.role} data-scope="alert" data-part="root" data-status={local.status ?? 'info'} class={cn(alertVariants({
25
25
  status: local.status
26
- }), local.class)} {...others}/>;
26
+ }), local.class)} {...others} data-slot="alert-root"/>;
27
27
  }
28
28
  function AlertIndicator(props) {
29
29
  const [local, others] = splitProps(props, [
30
30
  'class'
31
31
  ]);
32
- return <ark.span data-scope="alert" data-part="indicator" data-slot="alert-indicator" aria-hidden="true" class={cn('mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground group-data-[status=error]/alert:text-destructive group-data-[status=success]/alert:text-success group-data-[status=warning]/alert:text-warning [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others}/>;
32
+ return <ark.span data-scope="alert" data-part="indicator" aria-hidden="true" class={cn('mt-0.5 inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground group-data-[status=error]/alert:text-destructive group-data-[status=success]/alert:text-success group-data-[status=warning]/alert:text-warning [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', local.class)} {...others} data-slot="alert-indicator"/>;
33
33
  }
34
34
  function AlertContent(props) {
35
35
  const [local, others] = splitProps(props, [
36
36
  'class'
37
37
  ]);
38
- return <ark.div data-scope="alert" data-part="content" data-slot="alert-content" class={cn('grid min-w-0 flex-1 gap-1', local.class)} {...others}/>;
38
+ return <ark.div data-scope="alert" data-part="content" class={cn('grid min-w-0 flex-1 gap-1', local.class)} {...others} data-slot="alert-content"/>;
39
39
  }
40
40
  function AlertTitle(props) {
41
41
  const [local, others] = splitProps(props, [
42
42
  'class'
43
43
  ]);
44
- return <ark.p data-scope="alert" data-part="title" data-slot="alert-title" class={cn('m-0 min-w-0 text-sm font-semibold [overflow-wrap:anywhere]', local.class)} {...others}/>;
44
+ return <ark.p data-scope="alert" data-part="title" class={cn('m-0 min-w-0 text-sm font-semibold [overflow-wrap:anywhere]', local.class)} {...others} data-slot="alert-title"/>;
45
45
  }
46
46
  function AlertDescription(props) {
47
47
  const [local, others] = splitProps(props, [
48
48
  'class'
49
49
  ]);
50
- return <ark.div data-scope="alert" data-part="description" data-slot="alert-description" class={cn('min-w-0 text-sm [overflow-wrap:anywhere] text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class)} {...others}/>;
50
+ return <ark.div data-scope="alert" data-part="description" class={cn('min-w-0 text-sm [overflow-wrap:anywhere] text-muted-foreground [&>:first-child]:mt-0 [&>:last-child]:mb-0', local.class)} {...others} data-slot="alert-description"/>;
51
51
  }
52
52
  function AlertActions(props) {
53
53
  const [local, others] = splitProps(props, [
54
54
  'class'
55
55
  ]);
56
- return <ark.div data-scope="alert" data-part="actions" data-slot="alert-actions" class={cn('mt-2 flex flex-wrap gap-2', local.class)} {...others}/>;
56
+ return <ark.div data-scope="alert" data-part="actions" class={cn('mt-2 flex flex-wrap gap-2', local.class)} {...others} data-slot="alert-actions"/>;
57
57
  }
58
58
  const Alert = Object.assign(AlertRoot, {
59
59
  Root: AlertRoot,
@@ -1,11 +1,8 @@
1
- import { AngleSlider as AngleSliderPrimitive, useAngleSliderContext, type UseAngleSliderProps, type UseAngleSliderReturn } from '@ark-ui/solid/angle-slider';
1
+ import { AngleSlider as AngleSliderPrimitive, useAngleSlider, useAngleSliderContext } from '@ark-ui/solid/angle-slider';
2
2
  import type { ComponentProps, JSX } from 'solid-js';
3
3
  declare function AngleSliderRoot(props: ComponentProps<typeof AngleSliderPrimitive.Root>): JSX.Element;
4
4
  declare function AngleSliderLabel(props: ComponentProps<typeof AngleSliderPrimitive.Label>): JSX.Element;
5
- type AngleSliderRootProviderProps = ComponentProps<typeof AngleSliderPrimitive.RootProvider> & {
6
- form?: string;
7
- };
8
- declare function AngleSliderRootProvider(props: AngleSliderRootProviderProps): JSX.Element;
5
+ declare function AngleSliderRootProvider(props: ComponentProps<typeof AngleSliderPrimitive.RootProvider>): JSX.Element;
9
6
  declare function AngleSliderControl(props: ComponentProps<typeof AngleSliderPrimitive.Control>): JSX.Element;
10
7
  declare function AngleSliderThumb(props: ComponentProps<typeof AngleSliderPrimitive.Thumb>): JSX.Element;
11
8
  declare function AngleSliderMarkerGroup(props: ComponentProps<typeof AngleSliderPrimitive.MarkerGroup>): JSX.Element;
@@ -33,5 +30,4 @@ declare const AngleSlider: typeof AngleSliderRoot & {
33
30
  Marks: typeof AngleSliderMarks;
34
31
  ValueText: typeof AngleSliderValueText;
35
32
  };
36
- declare const useAngleSlider: (props?: UseAngleSliderProps | (() => UseAngleSliderProps)) => UseAngleSliderReturn;
37
33
  export { AngleSlider, useAngleSlider, useAngleSliderContext };
@@ -12,11 +12,11 @@ function AngleSliderRoot(props) {
12
12
  get asChild () {
13
13
  return local.asChild;
14
14
  },
15
- "data-slot": "angle-slider-root",
16
15
  get ["class"] () {
17
16
  return cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class);
18
17
  }
19
18
  }, others, {
19
+ "data-slot": "angle-slider-root",
20
20
  get children () {
21
21
  return local.children;
22
22
  }
@@ -27,11 +27,12 @@ function AngleSliderLabel(props) {
27
27
  'class'
28
28
  ]);
29
29
  return createComponent(AngleSlider.Label, mergeProps({
30
- "data-slot": "angle-slider-label",
31
30
  get ["class"] () {
32
31
  return cn('text-center text-sm font-medium text-foreground', local.class);
33
32
  }
34
- }, others));
33
+ }, others, {
34
+ "data-slot": "angle-slider-label"
35
+ }));
35
36
  }
36
37
  function AngleSliderRootProvider(props) {
37
38
  const [local, others] = splitProps(props, [
@@ -47,11 +48,11 @@ function AngleSliderRootProvider(props) {
47
48
  get value () {
48
49
  return local.value;
49
50
  },
50
- "data-slot": "angle-slider-root-provider",
51
51
  get ["class"] () {
52
52
  return cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class);
53
53
  }
54
54
  }, others, {
55
+ "data-slot": "angle-slider-root-provider",
55
56
  get children () {
56
57
  return local.children;
57
58
  }
@@ -63,7 +64,6 @@ function AngleSliderControl(props) {
63
64
  'onPointerDown'
64
65
  ]);
65
66
  return createComponent(AngleSlider.Control, mergeProps({
66
- "data-slot": "angle-slider-control",
67
67
  get ["class"] () {
68
68
  return cn("relative box-border flex aspect-square w-32 min-w-0 cursor-pointer items-center justify-center rounded-full bg-muted shadow-[inset_0_0_0_1px_var(--color-border)] outline-0 transition-colors duration-200 select-none before:absolute before:z-1 before:size-1.5 before:rounded-[inherit] before:bg-foreground before:content-[''] after:absolute after:inset-3.5 after:z-1 after:rounded-[inherit] after:bg-background after:shadow-[inset_0_0_0_1px_var(--color-border)] after:content-[''] data-disabled:cursor-default data-invalid:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-invalid:after:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-readonly:cursor-default motion-reduce:transition-none [&:has([data-scope='angle-slider'][data-part='thumb']:focus-visible)]:shadow-[inset_0_0_0_1px_var(--color-border),0_0_0_3px_var(--color-ring)] [&:not([data-disabled]):not([data-readonly]):active]:bg-muted [@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly]):hover]:bg-muted", local.class);
69
69
  },
@@ -71,40 +71,45 @@ function AngleSliderControl(props) {
71
71
  local.onPointerDown?.(event);
72
72
  event.currentTarget.querySelector('[data-scope="angle-slider"][data-part="thumb"]')?.blur();
73
73
  }
74
- }, others));
74
+ }, others, {
75
+ "data-slot": "angle-slider-control"
76
+ }));
75
77
  }
76
78
  function AngleSliderThumb(props) {
77
79
  const [local, others] = splitProps(props, [
78
80
  'class'
79
81
  ]);
80
82
  return createComponent(AngleSlider.Thumb, mergeProps({
81
- "data-slot": "angle-slider-thumb",
82
83
  get ["class"] () {
83
84
  return cn("absolute inset-y-0 left-[calc(50%-0.09375rem)] z-2 w-[0.1875rem] outline-0 before:absolute before:top-3.5 before:left-1/2 before:box-border before:size-4 before:-translate-x-1/2 before:rounded-full before:border before:border-border before:bg-primary before:shadow-sm before:transition-[border-color,box-shadow,background-color,scale] before:duration-200 before:content-[''] after:absolute after:top-[2.125rem] after:left-1/2 after:h-[calc(50%-2.25rem)] after:w-[0.1875rem] after:-translate-x-1/2 after:rounded-full after:bg-linear-to-b after:from-primary after:to-transparent after:content-[''] focus-visible:before:border-ring focus-visible:before:ring-1 focus-visible:before:ring-ring data-disabled:pointer-events-none data-invalid:before:border-destructive data-invalid:before:bg-destructive data-invalid:after:from-destructive motion-reduce:before:transition-none [&:active:not([data-disabled]):not([data-readonly])]:before:scale-[1.08]", local.class);
84
85
  }
85
- }, others));
86
+ }, others, {
87
+ "data-slot": "angle-slider-thumb"
88
+ }));
86
89
  }
87
90
  function AngleSliderMarkerGroup(props) {
88
91
  const [local, others] = splitProps(props, [
89
92
  'class'
90
93
  ]);
91
94
  return createComponent(AngleSlider.MarkerGroup, mergeProps({
92
- "data-slot": "angle-slider-marker-group",
93
95
  get ["class"] () {
94
96
  return cn('pointer-events-none absolute inset-0 z-1', local.class);
95
97
  }
96
- }, others));
98
+ }, others, {
99
+ "data-slot": "angle-slider-marker-group"
100
+ }));
97
101
  }
98
102
  function AngleSliderMarker(props) {
99
103
  const [local, others] = splitProps(props, [
100
104
  'class'
101
105
  ]);
102
106
  return createComponent(AngleSlider.Marker, mergeProps({
103
- "data-slot": "angle-slider-marker",
104
107
  get ["class"] () {
105
108
  return cn("absolute inset-0 before:absolute before:top-4 before:left-1/2 before:h-2.5 before:w-0.5 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-muted-foreground before:content-[''] data-[state=at-value]:before:bg-foreground data-[state=under-value]:before:bg-primary", local.class);
106
109
  }
107
- }, others));
110
+ }, others, {
111
+ "data-slot": "angle-slider-marker"
112
+ }));
108
113
  }
109
114
  function AngleSliderMarks(props) {
110
115
  const [local, others] = splitProps(props, [
@@ -141,11 +146,12 @@ function AngleSliderValueText(props) {
141
146
  'class'
142
147
  ]);
143
148
  return createComponent(AngleSlider.ValueText, mergeProps({
144
- "data-slot": "angle-slider-value-text",
145
149
  get ["class"] () {
146
150
  return cn('text-center text-sm font-medium text-foreground', local.class);
147
151
  }
148
- }, others));
152
+ }, others, {
153
+ "data-slot": "angle-slider-value-text"
154
+ }));
149
155
  }
150
156
  const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
151
157
  Root: AngleSliderRoot,
@@ -161,5 +167,4 @@ const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
161
167
  Marks: AngleSliderMarks,
162
168
  ValueText: AngleSliderValueText
163
169
  });
164
- const AngleSlider_useAngleSlider = useAngleSlider;
165
- export { AngleSlider_AngleSlider as AngleSlider, AngleSlider_useAngleSlider as useAngleSlider, useAngleSliderContext };
170
+ export { AngleSlider_AngleSlider as AngleSlider, useAngleSlider, useAngleSliderContext };
@@ -7,7 +7,7 @@ function AngleSliderRoot(props) {
7
7
  'children',
8
8
  'class'
9
9
  ]);
10
- return <AngleSlider.Root asChild={local.asChild} data-slot="angle-slider-root" class={cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class)} {...others}>
10
+ return <AngleSlider.Root asChild={local.asChild} class={cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class)} {...others} data-slot="angle-slider-root">
11
11
  {local.children}
12
12
  </AngleSlider.Root>;
13
13
  }
@@ -15,7 +15,7 @@ function AngleSliderLabel(props) {
15
15
  const [local, others] = splitProps(props, [
16
16
  'class'
17
17
  ]);
18
- return <AngleSlider.Label data-slot="angle-slider-label" class={cn('text-center text-sm font-medium text-foreground', local.class)} {...others}/>;
18
+ return <AngleSlider.Label class={cn('text-center text-sm font-medium text-foreground', local.class)} {...others} data-slot="angle-slider-label"/>;
19
19
  }
20
20
  function AngleSliderRootProvider(props) {
21
21
  const [local, others] = splitProps(props, [
@@ -24,7 +24,7 @@ function AngleSliderRootProvider(props) {
24
24
  'class',
25
25
  'value'
26
26
  ]);
27
- return <AngleSlider.RootProvider asChild={local.asChild} value={local.value} data-slot="angle-slider-root-provider" class={cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class)} {...others}>
27
+ return <AngleSlider.RootProvider asChild={local.asChild} value={local.value} class={cn('box-border inline-flex min-w-0 flex-col items-center gap-3 text-foreground data-disabled:opacity-50', local.class)} {...others} data-slot="angle-slider-root-provider">
28
28
  {local.children}
29
29
  </AngleSlider.RootProvider>;
30
30
  }
@@ -33,28 +33,28 @@ function AngleSliderControl(props) {
33
33
  'class',
34
34
  'onPointerDown'
35
35
  ]);
36
- return <AngleSlider.Control data-slot="angle-slider-control" class={cn("relative box-border flex aspect-square w-32 min-w-0 cursor-pointer items-center justify-center rounded-full bg-muted shadow-[inset_0_0_0_1px_var(--color-border)] outline-0 transition-colors duration-200 select-none before:absolute before:z-1 before:size-1.5 before:rounded-[inherit] before:bg-foreground before:content-[''] after:absolute after:inset-3.5 after:z-1 after:rounded-[inherit] after:bg-background after:shadow-[inset_0_0_0_1px_var(--color-border)] after:content-[''] data-disabled:cursor-default data-invalid:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-invalid:after:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-readonly:cursor-default motion-reduce:transition-none [&:has([data-scope='angle-slider'][data-part='thumb']:focus-visible)]:shadow-[inset_0_0_0_1px_var(--color-border),0_0_0_3px_var(--color-ring)] [&:not([data-disabled]):not([data-readonly]):active]:bg-muted [@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly]):hover]:bg-muted", local.class)} onPointerDown={(event)=>{
36
+ return <AngleSlider.Control class={cn("relative box-border flex aspect-square w-32 min-w-0 cursor-pointer items-center justify-center rounded-full bg-muted shadow-[inset_0_0_0_1px_var(--color-border)] outline-0 transition-colors duration-200 select-none before:absolute before:z-1 before:size-1.5 before:rounded-[inherit] before:bg-foreground before:content-[''] after:absolute after:inset-3.5 after:z-1 after:rounded-[inherit] after:bg-background after:shadow-[inset_0_0_0_1px_var(--color-border)] after:content-[''] data-disabled:cursor-default data-invalid:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-invalid:after:shadow-[inset_0_0_0_1px_var(--color-destructive)] data-readonly:cursor-default motion-reduce:transition-none [&:has([data-scope='angle-slider'][data-part='thumb']:focus-visible)]:shadow-[inset_0_0_0_1px_var(--color-border),0_0_0_3px_var(--color-ring)] [&:not([data-disabled]):not([data-readonly]):active]:bg-muted [@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly]):hover]:bg-muted", local.class)} onPointerDown={(event)=>{
37
37
  local.onPointerDown?.(event);
38
38
  event.currentTarget.querySelector('[data-scope="angle-slider"][data-part="thumb"]')?.blur();
39
- }} {...others}/>;
39
+ }} {...others} data-slot="angle-slider-control"/>;
40
40
  }
41
41
  function AngleSliderThumb(props) {
42
42
  const [local, others] = splitProps(props, [
43
43
  'class'
44
44
  ]);
45
- return <AngleSlider.Thumb data-slot="angle-slider-thumb" class={cn("absolute inset-y-0 left-[calc(50%-0.09375rem)] z-2 w-[0.1875rem] outline-0 before:absolute before:top-3.5 before:left-1/2 before:box-border before:size-4 before:-translate-x-1/2 before:rounded-full before:border before:border-border before:bg-primary before:shadow-sm before:transition-[border-color,box-shadow,background-color,scale] before:duration-200 before:content-[''] after:absolute after:top-[2.125rem] after:left-1/2 after:h-[calc(50%-2.25rem)] after:w-[0.1875rem] after:-translate-x-1/2 after:rounded-full after:bg-linear-to-b after:from-primary after:to-transparent after:content-[''] focus-visible:before:border-ring focus-visible:before:ring-1 focus-visible:before:ring-ring data-disabled:pointer-events-none data-invalid:before:border-destructive data-invalid:before:bg-destructive data-invalid:after:from-destructive motion-reduce:before:transition-none [&:active:not([data-disabled]):not([data-readonly])]:before:scale-[1.08]", local.class)} {...others}/>;
45
+ return <AngleSlider.Thumb class={cn("absolute inset-y-0 left-[calc(50%-0.09375rem)] z-2 w-[0.1875rem] outline-0 before:absolute before:top-3.5 before:left-1/2 before:box-border before:size-4 before:-translate-x-1/2 before:rounded-full before:border before:border-border before:bg-primary before:shadow-sm before:transition-[border-color,box-shadow,background-color,scale] before:duration-200 before:content-[''] after:absolute after:top-[2.125rem] after:left-1/2 after:h-[calc(50%-2.25rem)] after:w-[0.1875rem] after:-translate-x-1/2 after:rounded-full after:bg-linear-to-b after:from-primary after:to-transparent after:content-[''] focus-visible:before:border-ring focus-visible:before:ring-1 focus-visible:before:ring-ring data-disabled:pointer-events-none data-invalid:before:border-destructive data-invalid:before:bg-destructive data-invalid:after:from-destructive motion-reduce:before:transition-none [&:active:not([data-disabled]):not([data-readonly])]:before:scale-[1.08]", local.class)} {...others} data-slot="angle-slider-thumb"/>;
46
46
  }
47
47
  function AngleSliderMarkerGroup(props) {
48
48
  const [local, others] = splitProps(props, [
49
49
  'class'
50
50
  ]);
51
- return <AngleSlider.MarkerGroup data-slot="angle-slider-marker-group" class={cn('pointer-events-none absolute inset-0 z-1', local.class)} {...others}/>;
51
+ return <AngleSlider.MarkerGroup class={cn('pointer-events-none absolute inset-0 z-1', local.class)} {...others} data-slot="angle-slider-marker-group"/>;
52
52
  }
53
53
  function AngleSliderMarker(props) {
54
54
  const [local, others] = splitProps(props, [
55
55
  'class'
56
56
  ]);
57
- return <AngleSlider.Marker data-slot="angle-slider-marker" class={cn("absolute inset-0 before:absolute before:top-4 before:left-1/2 before:h-2.5 before:w-0.5 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-muted-foreground before:content-[''] data-[state=at-value]:before:bg-foreground data-[state=under-value]:before:bg-primary", local.class)} {...others}/>;
57
+ return <AngleSlider.Marker class={cn("absolute inset-0 before:absolute before:top-4 before:left-1/2 before:h-2.5 before:w-0.5 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-muted-foreground before:content-[''] data-[state=at-value]:before:bg-foreground data-[state=under-value]:before:bg-primary", local.class)} {...others} data-slot="angle-slider-marker"/>;
58
58
  }
59
59
  function AngleSliderMarks(props) {
60
60
  const [local, others] = splitProps(props, [
@@ -77,7 +77,7 @@ function AngleSliderValueText(props) {
77
77
  const [local, others] = splitProps(props, [
78
78
  'class'
79
79
  ]);
80
- return <AngleSlider.ValueText data-slot="angle-slider-value-text" class={cn('text-center text-sm font-medium text-foreground', local.class)} {...others}/>;
80
+ return <AngleSlider.ValueText class={cn('text-center text-sm font-medium text-foreground', local.class)} {...others} data-slot="angle-slider-value-text"/>;
81
81
  }
82
82
  const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
83
83
  Root: AngleSliderRoot,
@@ -93,5 +93,4 @@ const AngleSlider_AngleSlider = Object.assign(AngleSliderRoot, {
93
93
  Marks: AngleSliderMarks,
94
94
  ValueText: AngleSliderValueText
95
95
  });
96
- const AngleSlider_useAngleSlider = useAngleSlider;
97
- export { AngleSlider_AngleSlider as AngleSlider, AngleSlider_useAngleSlider as useAngleSlider, useAngleSliderContext };
96
+ export { AngleSlider_AngleSlider as AngleSlider, useAngleSlider, useAngleSliderContext };
@@ -23,7 +23,6 @@ function AvatarRoot(props) {
23
23
  'size'
24
24
  ]);
25
25
  return createComponent(Avatar.Root, mergeProps({
26
- "data-slot": "avatar-root",
27
26
  get ["data-size"] () {
28
27
  return local.size;
29
28
  },
@@ -32,7 +31,9 @@ function AvatarRoot(props) {
32
31
  size: local.size
33
32
  }), local.class);
34
33
  }
35
- }, others));
34
+ }, others, {
35
+ "data-slot": "avatar-root"
36
+ }));
36
37
  }
37
38
  function AvatarRootProvider(props) {
38
39
  const [local, others] = splitProps(props, [
@@ -40,7 +41,6 @@ function AvatarRootProvider(props) {
40
41
  'size'
41
42
  ]);
42
43
  return createComponent(Avatar.RootProvider, mergeProps({
43
- "data-slot": "avatar-root-provider",
44
44
  get ["data-size"] () {
45
45
  return local.size;
46
46
  },
@@ -49,18 +49,21 @@ function AvatarRootProvider(props) {
49
49
  size: local.size
50
50
  }), local.class);
51
51
  }
52
- }, others));
52
+ }, others, {
53
+ "data-slot": "avatar-root-provider"
54
+ }));
53
55
  }
54
56
  function AvatarImage(props) {
55
57
  const [local, others] = splitProps(props, [
56
58
  'class'
57
59
  ]);
58
60
  return createComponent(Avatar.Image, mergeProps({
59
- "data-slot": "avatar-image",
60
61
  get ["class"] () {
61
62
  return cn('block size-full rounded-[inherit] object-cover object-center data-[state=hidden]:hidden', local.class);
62
63
  }
63
- }, others));
64
+ }, others, {
65
+ "data-slot": "avatar-image"
66
+ }));
64
67
  }
65
68
  function AvatarFallback(props) {
66
69
  const [local, others] = splitProps(props, [
@@ -68,11 +71,11 @@ function AvatarFallback(props) {
68
71
  'class'
69
72
  ]);
70
73
  return createComponent(Avatar.Fallback, mergeProps({
71
- "data-slot": "avatar-fallback",
72
74
  get ["class"] () {
73
75
  return cn('inline-flex size-full items-center justify-center rounded-[inherit] bg-[inherit] data-[state=hidden]:hidden', local.class);
74
76
  }
75
77
  }, others, {
78
+ "data-slot": "avatar-fallback",
76
79
  get children () {
77
80
  return local.children;
78
81
  }
@@ -21,31 +21,31 @@ function AvatarRoot(props) {
21
21
  'class',
22
22
  'size'
23
23
  ]);
24
- return <Avatar.Root data-slot="avatar-root" data-size={local.size} class={cn(avatarVariants({
24
+ return <Avatar.Root data-size={local.size} class={cn(avatarVariants({
25
25
  size: local.size
26
- }), local.class)} {...others}/>;
26
+ }), local.class)} {...others} data-slot="avatar-root"/>;
27
27
  }
28
28
  function AvatarRootProvider(props) {
29
29
  const [local, others] = splitProps(props, [
30
30
  'class',
31
31
  'size'
32
32
  ]);
33
- return <Avatar.RootProvider data-slot="avatar-root-provider" data-size={local.size} class={cn(avatarVariants({
33
+ return <Avatar.RootProvider data-size={local.size} class={cn(avatarVariants({
34
34
  size: local.size
35
- }), local.class)} {...others}/>;
35
+ }), local.class)} {...others} data-slot="avatar-root-provider"/>;
36
36
  }
37
37
  function AvatarImage(props) {
38
38
  const [local, others] = splitProps(props, [
39
39
  'class'
40
40
  ]);
41
- return <Avatar.Image data-slot="avatar-image" class={cn('block size-full rounded-[inherit] object-cover object-center data-[state=hidden]:hidden', local.class)} {...others}/>;
41
+ return <Avatar.Image class={cn('block size-full rounded-[inherit] object-cover object-center data-[state=hidden]:hidden', local.class)} {...others} data-slot="avatar-image"/>;
42
42
  }
43
43
  function AvatarFallback(props) {
44
44
  const [local, others] = splitProps(props, [
45
45
  'children',
46
46
  'class'
47
47
  ]);
48
- return <Avatar.Fallback data-slot="avatar-fallback" class={cn('inline-flex size-full items-center justify-center rounded-[inherit] bg-[inherit] data-[state=hidden]:hidden', local.class)} {...others}>
48
+ return <Avatar.Fallback class={cn('inline-flex size-full items-center justify-center rounded-[inherit] bg-[inherit] data-[state=hidden]:hidden', local.class)} {...others} data-slot="avatar-fallback">
49
49
  {local.children}
50
50
  </Avatar.Fallback>;
51
51
  }