@moduix/solid 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 (119) 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 +6 -6
  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 +9 -10
  8. package/dist/components/avatar/Avatar.js +10 -7
  9. package/dist/components/avatar/Avatar.jsx +4 -4
  10. package/dist/components/button/Button.js +0 -5
  11. package/dist/components/button/Button.jsx +1 -3
  12. package/dist/components/button/Button_module.css +1 -3
  13. package/dist/components/card/Card.js +45 -36
  14. package/dist/components/card/Card.jsx +9 -9
  15. package/dist/components/card/Card_module.css +1 -1
  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_module.css +1 -1
  32. package/dist/components/date-input/DateInput.js +18 -12
  33. package/dist/components/date-input/DateInput.jsx +7 -7
  34. package/dist/components/date-picker/DatePicker.js +73 -51
  35. package/dist/components/date-picker/DatePicker.jsx +29 -29
  36. package/dist/components/dialog/Dialog.js +30 -20
  37. package/dist/components/dialog/Dialog.jsx +10 -10
  38. package/dist/components/drawer/Drawer.js +45 -30
  39. package/dist/components/drawer/Drawer.jsx +15 -15
  40. package/dist/components/editable/Editable.js +24 -17
  41. package/dist/components/editable/Editable.jsx +10 -10
  42. package/dist/components/file-upload/FileUpload.js +39 -28
  43. package/dist/components/file-upload/FileUpload.jsx +17 -17
  44. package/dist/components/floating-panel/FloatingPanel.js +35 -23
  45. package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
  46. package/dist/components/hover-card/HoverCard.js +16 -11
  47. package/dist/components/hover-card/HoverCard.jsx +6 -6
  48. package/dist/components/image-cropper/ImageCropper.js +21 -14
  49. package/dist/components/image-cropper/ImageCropper.jsx +7 -7
  50. package/dist/components/kbd/Kbd.js +8 -8
  51. package/dist/components/kbd/Kbd.jsx +2 -2
  52. package/dist/components/lightbox/Lightbox.d.ts +1 -0
  53. package/dist/components/lightbox/Lightbox.js +41 -27
  54. package/dist/components/lightbox/Lightbox.jsx +13 -12
  55. package/dist/components/listbox/Listbox.js +48 -32
  56. package/dist/components/listbox/Listbox.jsx +17 -17
  57. package/dist/components/marquee/Marquee.js +18 -12
  58. package/dist/components/marquee/Marquee.jsx +6 -6
  59. package/dist/components/menu/Menu.js +64 -43
  60. package/dist/components/menu/Menu.jsx +24 -24
  61. package/dist/components/navigation-menu/NavigationMenu.js +36 -24
  62. package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
  63. package/dist/components/number-input/NumberInput.js +19 -14
  64. package/dist/components/number-input/NumberInput.jsx +9 -9
  65. package/dist/components/pagination/Pagination.js +10 -9
  66. package/dist/components/pagination/Pagination.jsx +8 -8
  67. package/dist/components/password-input/PasswordInput.js +16 -11
  68. package/dist/components/password-input/PasswordInput.jsx +6 -6
  69. package/dist/components/pin-input/PinInput.js +15 -10
  70. package/dist/components/pin-input/PinInput.jsx +6 -6
  71. package/dist/components/popover/Popover.js +37 -25
  72. package/dist/components/popover/Popover.jsx +13 -13
  73. package/dist/components/progress-circular/ProgressCircular.js +18 -13
  74. package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
  75. package/dist/components/progress-linear/ProgressLinear.js +21 -14
  76. package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
  77. package/dist/components/qr-code/QrCode.js +8 -7
  78. package/dist/components/qr-code/QrCode.jsx +6 -6
  79. package/dist/components/rating-group/RatingGroup.js +15 -10
  80. package/dist/components/rating-group/RatingGroup.jsx +6 -6
  81. package/dist/components/segment-group/SegmentGroup.js +17 -12
  82. package/dist/components/segment-group/SegmentGroup.jsx +7 -7
  83. package/dist/components/select/Select.js +50 -35
  84. package/dist/components/select/Select.jsx +20 -20
  85. package/dist/components/sidebar/Sidebar.js +73 -43
  86. package/dist/components/sidebar/Sidebar.jsx +35 -27
  87. package/dist/components/signature-pad/SignaturePad.js +16 -12
  88. package/dist/components/signature-pad/SignaturePad.jsx +8 -8
  89. package/dist/components/slider/Slider.js +29 -20
  90. package/dist/components/slider/Slider.jsx +11 -11
  91. package/dist/components/split-button/SplitButton.d.ts +4 -3
  92. package/dist/components/split-button/SplitButton.js +21 -9
  93. package/dist/components/split-button/SplitButton.jsx +14 -7
  94. package/dist/components/splitter/Splitter.js +13 -9
  95. package/dist/components/splitter/Splitter.jsx +5 -5
  96. package/dist/components/steps/Steps.js +34 -23
  97. package/dist/components/steps/Steps.jsx +12 -12
  98. package/dist/components/swap/Swap.js +9 -6
  99. package/dist/components/swap/Swap.jsx +3 -3
  100. package/dist/components/switch/Switch.js +9 -7
  101. package/dist/components/switch/Switch.jsx +5 -5
  102. package/dist/components/tabs/Tabs.js +18 -12
  103. package/dist/components/tabs/Tabs.jsx +6 -6
  104. package/dist/components/tags-input/TagsInput.js +28 -20
  105. package/dist/components/tags-input/TagsInput.jsx +12 -12
  106. package/dist/components/timer/Timer.js +21 -14
  107. package/dist/components/timer/Timer.jsx +7 -7
  108. package/dist/components/toast/Toast.js +11 -9
  109. package/dist/components/toast/Toast.jsx +7 -7
  110. package/dist/components/toc/Toc.js +31 -20
  111. package/dist/components/toc/Toc.jsx +10 -10
  112. package/dist/components/tooltip/Tooltip.js +13 -9
  113. package/dist/components/tooltip/Tooltip.jsx +5 -5
  114. package/dist/components/tour/Tour.js +37 -25
  115. package/dist/components/tour/Tour.jsx +13 -13
  116. package/dist/components/tree-view/TreeView.js +39 -28
  117. package/dist/components/tree-view/TreeView.jsx +17 -17
  118. package/dist/styles/animations.css +8 -8
  119. package/package.json +9 -10
@@ -10,7 +10,7 @@ function CheckboxRoot(props) {
10
10
  'class',
11
11
  'size'
12
12
  ]);
13
- return <Checkbox.Root asChild={local.asChild} data-slot="checkbox-root" data-size={local.size ?? 'md'} class={clsx(Checkbox_module.root, local.class)} {...others}>
13
+ return <Checkbox.Root asChild={local.asChild} class={clsx(Checkbox_module.root, local.class)} {...others} data-size={local.size ?? 'md'} data-slot="checkbox-root">
14
14
  {local.children}
15
15
  </Checkbox.Root>;
16
16
  }
@@ -21,7 +21,7 @@ function CheckboxRootProvider(props) {
21
21
  'class',
22
22
  'size'
23
23
  ]);
24
- return <Checkbox.RootProvider asChild={local.asChild} data-slot="checkbox-root-provider" data-size={local.size ?? 'md'} class={clsx(Checkbox_module.root, local.class)} {...others}>
24
+ return <Checkbox.RootProvider asChild={local.asChild} class={clsx(Checkbox_module.root, local.class)} {...others} data-size={local.size ?? 'md'} data-slot="checkbox-root-provider">
25
25
  {local.children}
26
26
  </Checkbox.RootProvider>;
27
27
  }
@@ -33,7 +33,7 @@ function CheckboxIndicator(props) {
33
33
  ]);
34
34
  const resolvedChildren = children(()=>local.children);
35
35
  const slot = ()=>local.indeterminate ? 'checkbox-indicator-indeterminate-icon' : 'checkbox-indicator-checked-icon';
36
- return <Checkbox.Indicator data-slot="checkbox-indicator" class={clsx(Checkbox_module.indicator, local.class)} indeterminate={local.indeterminate} {...others}>
36
+ return <Checkbox.Indicator class={clsx(Checkbox_module.indicator, local.class)} indeterminate={local.indeterminate} {...others} data-slot="checkbox-indicator">
37
37
  {resolvedChildren() ?? <span aria-hidden="true" data-slot={slot()} class={Checkbox_module.icon}>
38
38
  {local.indeterminate ? <IndeterminateIcon/> : <CheckIcon/>}
39
39
  </span>}
@@ -45,7 +45,7 @@ function CheckboxControl(props) {
45
45
  'class'
46
46
  ]);
47
47
  const resolvedChildren = children(()=>local.children);
48
- return <Checkbox.Control data-slot="checkbox-control" class={clsx(Checkbox_module.control, local.class)} {...others}>
48
+ return <Checkbox.Control class={clsx(Checkbox_module.control, local.class)} {...others} data-slot="checkbox-control">
49
49
  {resolvedChildren() ?? <>
50
50
  <CheckboxIndicator/>
51
51
  <CheckboxIndicator indeterminate/>
@@ -56,13 +56,13 @@ function CheckboxLabel(props) {
56
56
  const [local, others] = splitProps(props, [
57
57
  'class'
58
58
  ]);
59
- return <Checkbox.Label data-slot="checkbox-label" class={clsx(Checkbox_module.label, local.class)} {...others}/>;
59
+ return <Checkbox.Label class={clsx(Checkbox_module.label, local.class)} {...others} data-slot="checkbox-label"/>;
60
60
  }
61
61
  function CheckboxGroup(props) {
62
62
  const [local, others] = splitProps(props, [
63
63
  'class'
64
64
  ]);
65
- return <Checkbox.Group data-slot="checkbox-group" class={clsx(Checkbox_module.group, local.class)} {...others}/>;
65
+ return <Checkbox.Group class={clsx(Checkbox_module.group, local.class)} {...others} data-slot="checkbox-group"/>;
66
66
  }
67
67
  const Checkbox_Checkbox = Object.assign(CheckboxRoot, {
68
68
  Root: CheckboxRoot,
@@ -10,66 +10,72 @@ function ClipboardRoot(props) {
10
10
  'class'
11
11
  ]);
12
12
  return createComponent(Clipboard.Root, mergeProps({
13
- "data-slot": "clipboard-root",
14
13
  get ["class"] () {
15
14
  return clsx(Clipboard_module.root, local.class);
16
15
  }
17
- }, others));
16
+ }, others, {
17
+ "data-slot": "clipboard-root"
18
+ }));
18
19
  }
19
20
  function ClipboardRootProvider(props) {
20
21
  const [local, others] = splitProps(props, [
21
22
  'class'
22
23
  ]);
23
24
  return createComponent(Clipboard.RootProvider, mergeProps({
24
- "data-slot": "clipboard-root-provider",
25
25
  get ["class"] () {
26
26
  return clsx(Clipboard_module.root, local.class);
27
27
  }
28
- }, others));
28
+ }, others, {
29
+ "data-slot": "clipboard-root-provider"
30
+ }));
29
31
  }
30
32
  function ClipboardLabel(props) {
31
33
  const [local, others] = splitProps(props, [
32
34
  'class'
33
35
  ]);
34
36
  return createComponent(Clipboard.Label, mergeProps({
35
- "data-slot": "clipboard-label",
36
37
  get ["class"] () {
37
38
  return clsx(Clipboard_module.label, local.class);
38
39
  }
39
- }, others));
40
+ }, others, {
41
+ "data-slot": "clipboard-label"
42
+ }));
40
43
  }
41
44
  function ClipboardControl(props) {
42
45
  const [local, others] = splitProps(props, [
43
46
  'class'
44
47
  ]);
45
48
  return createComponent(Clipboard.Control, mergeProps({
46
- "data-slot": "clipboard-control",
47
49
  get ["class"] () {
48
50
  return clsx(Clipboard_module.control, local.class);
49
51
  }
50
- }, others));
52
+ }, others, {
53
+ "data-slot": "clipboard-control"
54
+ }));
51
55
  }
52
56
  function ClipboardInput(props) {
53
57
  const [local, others] = splitProps(props, [
54
58
  'class'
55
59
  ]);
56
60
  return createComponent(Clipboard.Input, mergeProps({
57
- "data-slot": "clipboard-input",
58
61
  get ["class"] () {
59
62
  return clsx(Clipboard_module.input, local.class);
60
63
  }
61
- }, others));
64
+ }, others, {
65
+ "data-slot": "clipboard-input"
66
+ }));
62
67
  }
63
68
  function ClipboardTrigger(props) {
64
69
  const [local, others] = splitProps(props, [
65
70
  'class'
66
71
  ]);
67
72
  return createComponent(Clipboard.Trigger, mergeProps({
68
- "data-slot": "clipboard-trigger",
69
73
  get ["class"] () {
70
74
  return clsx(Clipboard_module.trigger, local.class);
71
75
  }
72
- }, others));
76
+ }, others, {
77
+ "data-slot": "clipboard-trigger"
78
+ }));
73
79
  }
74
80
  function ClipboardIndicator(props) {
75
81
  const [local, others] = splitProps(props, [
@@ -79,7 +85,6 @@ function ClipboardIndicator(props) {
79
85
  ]);
80
86
  const resolvedChildren = children(()=>local.children);
81
87
  return createComponent(Clipboard.Indicator, mergeProps({
82
- "data-slot": "clipboard-indicator",
83
88
  get ["class"] () {
84
89
  return clsx(Clipboard_module.indicator, local.class);
85
90
  },
@@ -92,6 +97,7 @@ function ClipboardIndicator(props) {
92
97
  })();
93
98
  }
94
99
  }, others, {
100
+ "data-slot": "clipboard-indicator",
95
101
  get children () {
96
102
  return resolvedChildren() ?? (()=>{
97
103
  var _el$2 = _tmpl$2();
@@ -107,24 +113,29 @@ function ClipboardValueText(props) {
107
113
  'class'
108
114
  ]);
109
115
  return createComponent(Clipboard.ValueText, mergeProps({
110
- "data-slot": "clipboard-value-text",
111
116
  get ["class"] () {
112
117
  return clsx(Clipboard_module.valueText, local.class);
113
118
  }
114
- }, others));
119
+ }, others, {
120
+ "data-slot": "clipboard-value-text"
121
+ }));
115
122
  }
116
123
  function ClipboardCopyText(props) {
117
124
  const [local, others] = splitProps(props, [
118
125
  'children',
126
+ 'class',
119
127
  'copied'
120
128
  ]);
121
129
  const resolvedChildren = children(()=>local.children);
122
- return createComponent(ClipboardIndicator, mergeProps({
123
- "data-slot": "clipboard-copy-text",
130
+ return createComponent(Clipboard.Indicator, mergeProps({
131
+ get ["class"] () {
132
+ return clsx(Clipboard_module.indicator, local.class);
133
+ },
124
134
  get copied () {
125
135
  return memo(()=>void 0 === local.copied)() ? 'Copied' : local.copied;
126
136
  }
127
137
  }, others, {
138
+ "data-slot": "clipboard-copy-text",
128
139
  get children () {
129
140
  return memo(()=>void 0 === resolvedChildren())() ? 'Copy' : resolvedChildren();
130
141
  }
@@ -7,37 +7,37 @@ function ClipboardRoot(props) {
7
7
  const [local, others] = splitProps(props, [
8
8
  'class'
9
9
  ]);
10
- return <Clipboard.Root data-slot="clipboard-root" class={clsx(Clipboard_module.root, local.class)} {...others}/>;
10
+ return <Clipboard.Root class={clsx(Clipboard_module.root, local.class)} {...others} data-slot="clipboard-root"/>;
11
11
  }
12
12
  function ClipboardRootProvider(props) {
13
13
  const [local, others] = splitProps(props, [
14
14
  'class'
15
15
  ]);
16
- return <Clipboard.RootProvider data-slot="clipboard-root-provider" class={clsx(Clipboard_module.root, local.class)} {...others}/>;
16
+ return <Clipboard.RootProvider class={clsx(Clipboard_module.root, local.class)} {...others} data-slot="clipboard-root-provider"/>;
17
17
  }
18
18
  function ClipboardLabel(props) {
19
19
  const [local, others] = splitProps(props, [
20
20
  'class'
21
21
  ]);
22
- return <Clipboard.Label data-slot="clipboard-label" class={clsx(Clipboard_module.label, local.class)} {...others}/>;
22
+ return <Clipboard.Label class={clsx(Clipboard_module.label, local.class)} {...others} data-slot="clipboard-label"/>;
23
23
  }
24
24
  function ClipboardControl(props) {
25
25
  const [local, others] = splitProps(props, [
26
26
  'class'
27
27
  ]);
28
- return <Clipboard.Control data-slot="clipboard-control" class={clsx(Clipboard_module.control, local.class)} {...others}/>;
28
+ return <Clipboard.Control class={clsx(Clipboard_module.control, local.class)} {...others} data-slot="clipboard-control"/>;
29
29
  }
30
30
  function ClipboardInput(props) {
31
31
  const [local, others] = splitProps(props, [
32
32
  'class'
33
33
  ]);
34
- return <Clipboard.Input data-slot="clipboard-input" class={clsx(Clipboard_module.input, local.class)} {...others}/>;
34
+ return <Clipboard.Input class={clsx(Clipboard_module.input, local.class)} {...others} data-slot="clipboard-input"/>;
35
35
  }
36
36
  function ClipboardTrigger(props) {
37
37
  const [local, others] = splitProps(props, [
38
38
  'class'
39
39
  ]);
40
- return <Clipboard.Trigger data-slot="clipboard-trigger" class={clsx(Clipboard_module.trigger, local.class)} {...others}/>;
40
+ return <Clipboard.Trigger class={clsx(Clipboard_module.trigger, local.class)} {...others} data-slot="clipboard-trigger"/>;
41
41
  }
42
42
  function ClipboardIndicator(props) {
43
43
  const [local, others] = splitProps(props, [
@@ -46,9 +46,9 @@ function ClipboardIndicator(props) {
46
46
  'copied'
47
47
  ]);
48
48
  const resolvedChildren = children(()=>local.children);
49
- return <Clipboard.Indicator data-slot="clipboard-indicator" class={clsx(Clipboard_module.indicator, local.class)} copied={local.copied ?? <span aria-hidden="true" data-slot="clipboard-indicator-copied-icon" class={Clipboard_module.icon}>
49
+ return <Clipboard.Indicator class={clsx(Clipboard_module.indicator, local.class)} copied={local.copied ?? <span aria-hidden="true" data-slot="clipboard-indicator-copied-icon" class={Clipboard_module.icon}>
50
50
  <CheckIcon/>
51
- </span>} {...others}>
51
+ </span>} {...others} data-slot="clipboard-indicator">
52
52
  {resolvedChildren() ?? <span aria-hidden="true" data-slot="clipboard-indicator-idle-icon" class={Clipboard_module.icon}>
53
53
  <CopyIcon/>
54
54
  </span>}
@@ -58,17 +58,18 @@ function ClipboardValueText(props) {
58
58
  const [local, others] = splitProps(props, [
59
59
  'class'
60
60
  ]);
61
- return <Clipboard.ValueText data-slot="clipboard-value-text" class={clsx(Clipboard_module.valueText, local.class)} {...others}/>;
61
+ return <Clipboard.ValueText class={clsx(Clipboard_module.valueText, local.class)} {...others} data-slot="clipboard-value-text"/>;
62
62
  }
63
63
  function ClipboardCopyText(props) {
64
64
  const [local, others] = splitProps(props, [
65
65
  'children',
66
+ 'class',
66
67
  'copied'
67
68
  ]);
68
69
  const resolvedChildren = children(()=>local.children);
69
- return <ClipboardIndicator data-slot="clipboard-copy-text" copied={void 0 === local.copied ? 'Copied' : local.copied} {...others}>
70
+ return <Clipboard.Indicator class={clsx(Clipboard_module.indicator, local.class)} copied={void 0 === local.copied ? 'Copied' : local.copied} {...others} data-slot="clipboard-copy-text">
70
71
  {void 0 === resolvedChildren() ? 'Copy' : resolvedChildren()}
71
- </ClipboardIndicator>;
72
+ </Clipboard.Indicator>;
72
73
  }
73
74
  const Clipboard_Clipboard = Object.assign(ClipboardRoot, {
74
75
  Root: ClipboardRoot,
@@ -10,22 +10,24 @@ function CollapsibleRoot(props) {
10
10
  'class'
11
11
  ]);
12
12
  return createComponent(Collapsible.Root, mergeProps({
13
- "data-slot": "collapsible-root",
14
13
  get ["class"] () {
15
14
  return clsx(Collapsible_module.root, local.class);
16
15
  }
17
- }, others));
16
+ }, others, {
17
+ "data-slot": "collapsible-root"
18
+ }));
18
19
  }
19
20
  function CollapsibleRootProvider(props) {
20
21
  const [local, others] = splitProps(props, [
21
22
  'class'
22
23
  ]);
23
24
  return createComponent(Collapsible.RootProvider, mergeProps({
24
- "data-slot": "collapsible-root-provider",
25
25
  get ["class"] () {
26
26
  return clsx(Collapsible_module.root, local.class);
27
27
  }
28
- }, others));
28
+ }, others, {
29
+ "data-slot": "collapsible-root-provider"
30
+ }));
29
31
  }
30
32
  function CollapsibleTrigger(props) {
31
33
  const [local, others] = splitProps(props, [
@@ -36,11 +38,12 @@ function CollapsibleTrigger(props) {
36
38
  get asChild () {
37
39
  return local.asChild;
38
40
  },
39
- "data-slot": "collapsible-trigger",
40
41
  get ["class"] () {
41
42
  return clsx(!local.asChild && Collapsible_module.trigger, local.class);
42
43
  }
43
- }, others));
44
+ }, others, {
45
+ "data-slot": "collapsible-trigger"
46
+ }));
44
47
  }
45
48
  function CollapsibleIndicator(props) {
46
49
  const [local, others] = splitProps(props, [
@@ -49,11 +52,11 @@ function CollapsibleIndicator(props) {
49
52
  ]);
50
53
  const resolvedChildren = children(()=>local.children);
51
54
  return createComponent(Collapsible.Indicator, mergeProps({
52
- "data-slot": "collapsible-indicator",
53
55
  get ["class"] () {
54
56
  return clsx(Collapsible_module.indicator, local.class);
55
57
  }
56
58
  }, others, {
59
+ "data-slot": "collapsible-indicator",
57
60
  get children () {
58
61
  return resolvedChildren() ?? createComponent(ChevronDownIcon, {});
59
62
  }
@@ -64,22 +67,24 @@ function CollapsibleContent(props) {
64
67
  'class'
65
68
  ]);
66
69
  return createComponent(Collapsible.Content, mergeProps({
67
- "data-slot": "collapsible-content",
68
70
  get ["class"] () {
69
71
  return clsx(Collapsible_module.content, local.class);
70
72
  }
71
- }, others));
73
+ }, others, {
74
+ "data-slot": "collapsible-content"
75
+ }));
72
76
  }
73
77
  function CollapsibleBody(props) {
74
78
  const [local, others] = splitProps(props, [
75
79
  'class'
76
80
  ]);
77
81
  return createComponent(ark.div, mergeProps({
78
- "data-slot": "collapsible-body",
79
82
  get ["class"] () {
80
83
  return clsx(Collapsible_module.body, local.class);
81
84
  }
82
- }, others));
85
+ }, others, {
86
+ "data-slot": "collapsible-body"
87
+ }));
83
88
  }
84
89
  const Collapsible_Collapsible = Object.assign(CollapsibleRoot, {
85
90
  Root: CollapsibleRoot,
@@ -8,20 +8,20 @@ function CollapsibleRoot(props) {
8
8
  const [local, others] = splitProps(props, [
9
9
  'class'
10
10
  ]);
11
- return <Collapsible.Root data-slot="collapsible-root" class={clsx(Collapsible_module.root, local.class)} {...others}/>;
11
+ return <Collapsible.Root class={clsx(Collapsible_module.root, local.class)} {...others} data-slot="collapsible-root"/>;
12
12
  }
13
13
  function CollapsibleRootProvider(props) {
14
14
  const [local, others] = splitProps(props, [
15
15
  'class'
16
16
  ]);
17
- return <Collapsible.RootProvider data-slot="collapsible-root-provider" class={clsx(Collapsible_module.root, local.class)} {...others}/>;
17
+ return <Collapsible.RootProvider class={clsx(Collapsible_module.root, local.class)} {...others} data-slot="collapsible-root-provider"/>;
18
18
  }
19
19
  function CollapsibleTrigger(props) {
20
20
  const [local, others] = splitProps(props, [
21
21
  'asChild',
22
22
  'class'
23
23
  ]);
24
- return <Collapsible.Trigger asChild={local.asChild} data-slot="collapsible-trigger" class={clsx(!local.asChild && Collapsible_module.trigger, local.class)} {...others}/>;
24
+ return <Collapsible.Trigger asChild={local.asChild} class={clsx(!local.asChild && Collapsible_module.trigger, local.class)} {...others} data-slot="collapsible-trigger"/>;
25
25
  }
26
26
  function CollapsibleIndicator(props) {
27
27
  const [local, others] = splitProps(props, [
@@ -29,7 +29,7 @@ function CollapsibleIndicator(props) {
29
29
  'class'
30
30
  ]);
31
31
  const resolvedChildren = children(()=>local.children);
32
- return <Collapsible.Indicator data-slot="collapsible-indicator" class={clsx(Collapsible_module.indicator, local.class)} {...others}>
32
+ return <Collapsible.Indicator class={clsx(Collapsible_module.indicator, local.class)} {...others} data-slot="collapsible-indicator">
33
33
  {resolvedChildren() ?? <ChevronDownIcon/>}
34
34
  </Collapsible.Indicator>;
35
35
  }
@@ -37,13 +37,13 @@ function CollapsibleContent(props) {
37
37
  const [local, others] = splitProps(props, [
38
38
  'class'
39
39
  ]);
40
- return <Collapsible.Content data-slot="collapsible-content" class={clsx(Collapsible_module.content, local.class)} {...others}/>;
40
+ return <Collapsible.Content class={clsx(Collapsible_module.content, local.class)} {...others} data-slot="collapsible-content"/>;
41
41
  }
42
42
  function CollapsibleBody(props) {
43
43
  const [local, others] = splitProps(props, [
44
44
  'class'
45
45
  ]);
46
- return <ark.div data-slot="collapsible-body" class={clsx(Collapsible_module.body, local.class)} {...others}/>;
46
+ return <ark.div class={clsx(Collapsible_module.body, local.class)} {...others} data-slot="collapsible-body"/>;
47
47
  }
48
48
  const Collapsible_Collapsible = Object.assign(CollapsibleRoot, {
49
49
  Root: CollapsibleRoot,