@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
@@ -15,11 +15,11 @@ function PaginationRoot(props) {
15
15
  get asChild () {
16
16
  return local.asChild;
17
17
  },
18
- "data-slot": "pagination-root",
19
18
  get ["class"] () {
20
19
  return clsx(Pagination_module.root, local.class);
21
20
  }
22
21
  }, others, {
22
+ "data-slot": "pagination-root",
23
23
  get children () {
24
24
  return local.children;
25
25
  }
@@ -35,11 +35,11 @@ function PaginationRootProvider(props) {
35
35
  get asChild () {
36
36
  return local.asChild;
37
37
  },
38
- "data-slot": "pagination-root-provider",
39
38
  get ["class"] () {
40
39
  return clsx(Pagination_module.root, local.class);
41
40
  }
42
41
  }, others, {
42
+ "data-slot": "pagination-root-provider",
43
43
  get children () {
44
44
  return local.children;
45
45
  }
@@ -54,11 +54,12 @@ function PaginationItem(props) {
54
54
  get asChild () {
55
55
  return local.asChild;
56
56
  },
57
- "data-slot": "pagination-item",
58
57
  get ["class"] () {
59
58
  return clsx(Pagination_module.item, local.class);
60
59
  }
61
- }, others));
60
+ }, others, {
61
+ "data-slot": "pagination-item"
62
+ }));
62
63
  }
63
64
  function PaginationEllipsis(props) {
64
65
  const [local, others] = splitProps(props, [
@@ -71,11 +72,11 @@ function PaginationEllipsis(props) {
71
72
  get asChild () {
72
73
  return local.asChild;
73
74
  },
74
- "data-slot": "pagination-ellipsis",
75
75
  get ["class"] () {
76
76
  return clsx(Pagination_module.ellipsis, local.class);
77
77
  }
78
78
  }, others, {
79
+ "data-slot": "pagination-ellipsis",
79
80
  get children () {
80
81
  return resolvedChildren() ?? (!local.asChild && '...');
81
82
  }
@@ -107,11 +108,11 @@ function PaginationPrevTrigger(props) {
107
108
  get asChild () {
108
109
  return local.asChild;
109
110
  },
110
- "data-slot": "pagination-prev-trigger",
111
111
  get ["class"] () {
112
112
  return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
113
113
  }
114
114
  }, others, {
115
+ "data-slot": "pagination-prev-trigger",
115
116
  get children () {
116
117
  return resolvedChildren() ?? (!local.asChild && createComponent(ChevronLeftIcon, {}));
117
118
  }
@@ -128,11 +129,11 @@ function PaginationNextTrigger(props) {
128
129
  get asChild () {
129
130
  return local.asChild;
130
131
  },
131
- "data-slot": "pagination-next-trigger",
132
132
  get ["class"] () {
133
133
  return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
134
134
  }
135
135
  }, others, {
136
+ "data-slot": "pagination-next-trigger",
136
137
  get children () {
137
138
  return resolvedChildren() ?? (!local.asChild && createComponent(ChevronRightIcon, {}));
138
139
  }
@@ -149,11 +150,11 @@ function PaginationFirstTrigger(props) {
149
150
  get asChild () {
150
151
  return local.asChild;
151
152
  },
152
- "data-slot": "pagination-first-trigger",
153
153
  get ["class"] () {
154
154
  return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
155
155
  }
156
156
  }, others, {
157
+ "data-slot": "pagination-first-trigger",
157
158
  get children () {
158
159
  return resolvedChildren() ?? (!local.asChild && createComponent(EdgeIcon, {
159
160
  side: "left"
@@ -172,11 +173,11 @@ function PaginationLastTrigger(props) {
172
173
  get asChild () {
173
174
  return local.asChild;
174
175
  },
175
- "data-slot": "pagination-last-trigger",
176
176
  get ["class"] () {
177
177
  return clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class);
178
178
  }
179
179
  }, others, {
180
+ "data-slot": "pagination-last-trigger",
180
181
  get children () {
181
182
  return resolvedChildren() ?? (!local.asChild && createComponent(EdgeIcon, {
182
183
  side: "right"
@@ -9,7 +9,7 @@ function PaginationRoot(props) {
9
9
  'children',
10
10
  'class'
11
11
  ]);
12
- return <Pagination.Root asChild={local.asChild} data-slot="pagination-root" class={clsx(Pagination_module.root, local.class)} {...others}>
12
+ return <Pagination.Root asChild={local.asChild} class={clsx(Pagination_module.root, local.class)} {...others} data-slot="pagination-root">
13
13
  {local.children}
14
14
  </Pagination.Root>;
15
15
  }
@@ -19,7 +19,7 @@ function PaginationRootProvider(props) {
19
19
  'children',
20
20
  'class'
21
21
  ]);
22
- return <Pagination.RootProvider asChild={local.asChild} data-slot="pagination-root-provider" class={clsx(Pagination_module.root, local.class)} {...others}>
22
+ return <Pagination.RootProvider asChild={local.asChild} class={clsx(Pagination_module.root, local.class)} {...others} data-slot="pagination-root-provider">
23
23
  {local.children}
24
24
  </Pagination.RootProvider>;
25
25
  }
@@ -28,7 +28,7 @@ function PaginationItem(props) {
28
28
  'asChild',
29
29
  'class'
30
30
  ]);
31
- return <Pagination.Item asChild={local.asChild} data-slot="pagination-item" class={clsx(Pagination_module.item, local.class)} {...others}/>;
31
+ return <Pagination.Item asChild={local.asChild} class={clsx(Pagination_module.item, local.class)} {...others} data-slot="pagination-item"/>;
32
32
  }
33
33
  function PaginationEllipsis(props) {
34
34
  const [local, others] = splitProps(props, [
@@ -37,7 +37,7 @@ function PaginationEllipsis(props) {
37
37
  'class'
38
38
  ]);
39
39
  const resolvedChildren = children(()=>local.children);
40
- return <Pagination.Ellipsis asChild={local.asChild} data-slot="pagination-ellipsis" class={clsx(Pagination_module.ellipsis, local.class)} {...others}>
40
+ return <Pagination.Ellipsis asChild={local.asChild} class={clsx(Pagination_module.ellipsis, local.class)} {...others} data-slot="pagination-ellipsis">
41
41
  {resolvedChildren() ?? (!local.asChild && '...')}
42
42
  </Pagination.Ellipsis>;
43
43
  }
@@ -54,7 +54,7 @@ function PaginationPrevTrigger(props) {
54
54
  'class'
55
55
  ]);
56
56
  const resolvedChildren = children(()=>local.children);
57
- return <Pagination.PrevTrigger asChild={local.asChild} data-slot="pagination-prev-trigger" class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others}>
57
+ return <Pagination.PrevTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-prev-trigger">
58
58
  {resolvedChildren() ?? (!local.asChild && <ChevronLeftIcon/>)}
59
59
  </Pagination.PrevTrigger>;
60
60
  }
@@ -65,7 +65,7 @@ function PaginationNextTrigger(props) {
65
65
  'class'
66
66
  ]);
67
67
  const resolvedChildren = children(()=>local.children);
68
- return <Pagination.NextTrigger asChild={local.asChild} data-slot="pagination-next-trigger" class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others}>
68
+ return <Pagination.NextTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-next-trigger">
69
69
  {resolvedChildren() ?? (!local.asChild && <ChevronRightIcon/>)}
70
70
  </Pagination.NextTrigger>;
71
71
  }
@@ -76,7 +76,7 @@ function PaginationFirstTrigger(props) {
76
76
  'class'
77
77
  ]);
78
78
  const resolvedChildren = children(()=>local.children);
79
- return <Pagination.FirstTrigger asChild={local.asChild} data-slot="pagination-first-trigger" class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others}>
79
+ return <Pagination.FirstTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-first-trigger">
80
80
  {resolvedChildren() ?? (!local.asChild && <EdgeIcon side="left"/>)}
81
81
  </Pagination.FirstTrigger>;
82
82
  }
@@ -87,7 +87,7 @@ function PaginationLastTrigger(props) {
87
87
  'class'
88
88
  ]);
89
89
  const resolvedChildren = children(()=>local.children);
90
- return <Pagination.LastTrigger asChild={local.asChild} data-slot="pagination-last-trigger" class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others}>
90
+ return <Pagination.LastTrigger asChild={local.asChild} class={clsx(Pagination_module.trigger, null == local.children && Pagination_module.iconTrigger, local.class)} {...others} data-slot="pagination-last-trigger">
91
91
  {resolvedChildren() ?? (!local.asChild && <EdgeIcon side="right"/>)}
92
92
  </Pagination.LastTrigger>;
93
93
  }
@@ -9,44 +9,48 @@ function PasswordInputRoot(props) {
9
9
  'class'
10
10
  ]);
11
11
  return createComponent(PasswordInput.Root, mergeProps({
12
- "data-slot": "password-input-root",
13
12
  get ["class"] () {
14
13
  return clsx(PasswordInput_module.root, local.class);
15
14
  }
16
- }, others));
15
+ }, others, {
16
+ "data-slot": "password-input-root"
17
+ }));
17
18
  }
18
19
  function PasswordInputRootProvider(props) {
19
20
  const [local, others] = splitProps(props, [
20
21
  'class'
21
22
  ]);
22
23
  return createComponent(PasswordInput.RootProvider, mergeProps({
23
- "data-slot": "password-input-root-provider",
24
24
  get ["class"] () {
25
25
  return clsx(PasswordInput_module.root, local.class);
26
26
  }
27
- }, others));
27
+ }, others, {
28
+ "data-slot": "password-input-root-provider"
29
+ }));
28
30
  }
29
31
  function PasswordInputLabel(props) {
30
32
  const [local, others] = splitProps(props, [
31
33
  'class'
32
34
  ]);
33
35
  return createComponent(PasswordInput.Label, mergeProps({
34
- "data-slot": "password-input-label",
35
36
  get ["class"] () {
36
37
  return clsx(PasswordInput_module.label, local.class);
37
38
  }
38
- }, others));
39
+ }, others, {
40
+ "data-slot": "password-input-label"
41
+ }));
39
42
  }
40
43
  function PasswordInputControl(props) {
41
44
  const [local, others] = splitProps(props, [
42
45
  'class'
43
46
  ]);
44
47
  return createComponent(PasswordInput.Control, mergeProps({
45
- "data-slot": "password-input-control",
46
48
  get ["class"] () {
47
49
  return clsx(PasswordInput_module.control, local.class);
48
50
  }
49
- }, others));
51
+ }, others, {
52
+ "data-slot": "password-input-control"
53
+ }));
50
54
  }
51
55
  function PasswordInputInput(props) {
52
56
  const [local, others] = splitProps(props, [
@@ -81,11 +85,12 @@ function PasswordInputVisibilityTrigger(props) {
81
85
  'class'
82
86
  ]);
83
87
  return createComponent(PasswordInput.VisibilityTrigger, mergeProps({
84
- "data-slot": "password-input-visibility-trigger",
85
88
  get ["class"] () {
86
89
  return clsx(PasswordInput_module.visibilityTrigger, local.class);
87
90
  }
88
- }, others));
91
+ }, others, {
92
+ "data-slot": "password-input-visibility-trigger"
93
+ }));
89
94
  }
90
95
  function PasswordInputIndicator(props) {
91
96
  const [local, others] = splitProps(props, [
@@ -95,7 +100,6 @@ function PasswordInputIndicator(props) {
95
100
  ]);
96
101
  const resolvedChildren = children(()=>local.children);
97
102
  return createComponent(PasswordInput.Indicator, mergeProps({
98
- "data-slot": "password-input-indicator",
99
103
  get ["class"] () {
100
104
  return clsx(PasswordInput_module.indicator, local.class);
101
105
  },
@@ -103,6 +107,7 @@ function PasswordInputIndicator(props) {
103
107
  return local.fallback ?? createComponent(EyeClosedIcon, {});
104
108
  }
105
109
  }, others, {
110
+ "data-slot": "password-input-indicator",
106
111
  get children () {
107
112
  return resolvedChildren() ?? createComponent(EyeIcon, {});
108
113
  }
@@ -7,25 +7,25 @@ function PasswordInputRoot(props) {
7
7
  const [local, others] = splitProps(props, [
8
8
  'class'
9
9
  ]);
10
- return <PasswordInput.Root data-slot="password-input-root" class={clsx(PasswordInput_module.root, local.class)} {...others}/>;
10
+ return <PasswordInput.Root class={clsx(PasswordInput_module.root, local.class)} {...others} data-slot="password-input-root"/>;
11
11
  }
12
12
  function PasswordInputRootProvider(props) {
13
13
  const [local, others] = splitProps(props, [
14
14
  'class'
15
15
  ]);
16
- return <PasswordInput.RootProvider data-slot="password-input-root-provider" class={clsx(PasswordInput_module.root, local.class)} {...others}/>;
16
+ return <PasswordInput.RootProvider class={clsx(PasswordInput_module.root, local.class)} {...others} data-slot="password-input-root-provider"/>;
17
17
  }
18
18
  function PasswordInputLabel(props) {
19
19
  const [local, others] = splitProps(props, [
20
20
  'class'
21
21
  ]);
22
- return <PasswordInput.Label data-slot="password-input-label" class={clsx(PasswordInput_module.label, local.class)} {...others}/>;
22
+ return <PasswordInput.Label class={clsx(PasswordInput_module.label, local.class)} {...others} data-slot="password-input-label"/>;
23
23
  }
24
24
  function PasswordInputControl(props) {
25
25
  const [local, others] = splitProps(props, [
26
26
  'class'
27
27
  ]);
28
- return <PasswordInput.Control data-slot="password-input-control" class={clsx(PasswordInput_module.control, local.class)} {...others}/>;
28
+ return <PasswordInput.Control class={clsx(PasswordInput_module.control, local.class)} {...others} data-slot="password-input-control"/>;
29
29
  }
30
30
  function PasswordInputInput(props) {
31
31
  const [local, others] = splitProps(props, [
@@ -49,7 +49,7 @@ function PasswordInputVisibilityTrigger(props) {
49
49
  const [local, others] = splitProps(props, [
50
50
  'class'
51
51
  ]);
52
- return <PasswordInput.VisibilityTrigger data-slot="password-input-visibility-trigger" class={clsx(PasswordInput_module.visibilityTrigger, local.class)} {...others}/>;
52
+ return <PasswordInput.VisibilityTrigger class={clsx(PasswordInput_module.visibilityTrigger, local.class)} {...others} data-slot="password-input-visibility-trigger"/>;
53
53
  }
54
54
  function PasswordInputIndicator(props) {
55
55
  const [local, others] = splitProps(props, [
@@ -58,7 +58,7 @@ function PasswordInputIndicator(props) {
58
58
  'fallback'
59
59
  ]);
60
60
  const resolvedChildren = children(()=>local.children);
61
- return <PasswordInput.Indicator data-slot="password-input-indicator" class={clsx(PasswordInput_module.indicator, local.class)} fallback={local.fallback ?? <EyeClosedIcon/>} {...others}>
61
+ return <PasswordInput.Indicator class={clsx(PasswordInput_module.indicator, local.class)} fallback={local.fallback ?? <EyeClosedIcon/>} {...others} data-slot="password-input-indicator">
62
62
  {resolvedChildren() ?? <EyeIcon/>}
63
63
  </PasswordInput.Indicator>;
64
64
  }
@@ -4,7 +4,7 @@ import { clsx } from "clsx";
4
4
  import { For, children, splitProps } from "solid-js";
5
5
  import { SeparatorMarkIcon } from "../../internal/icons/ui/Icons.js";
6
6
  import PinInput_module from "./PinInput.module.js";
7
- var _tmpl$ = /*#__PURE__*/ template("<span data-slot=pin-input-separator>");
7
+ var _tmpl$ = /*#__PURE__*/ template("<span>");
8
8
  function PinInputRoot(props) {
9
9
  const [local, others] = splitProps(props, [
10
10
  'asChild',
@@ -23,11 +23,11 @@ function PinInputRoot(props) {
23
23
  get placeholder () {
24
24
  return local.placeholder ?? '';
25
25
  },
26
- "data-slot": "pin-input-root",
27
26
  get ["class"] () {
28
27
  return clsx(PinInput_module.root, local.class);
29
28
  }
30
29
  }, others, {
30
+ "data-slot": "pin-input-root",
31
31
  get children () {
32
32
  return local.children;
33
33
  }
@@ -43,11 +43,11 @@ function PinInputRootProvider(props) {
43
43
  get asChild () {
44
44
  return local.asChild;
45
45
  },
46
- "data-slot": "pin-input-root-provider",
47
46
  get ["class"] () {
48
47
  return clsx(PinInput_module.root, local.class);
49
48
  }
50
49
  }, others, {
50
+ "data-slot": "pin-input-root-provider",
51
51
  get children () {
52
52
  return local.children;
53
53
  }
@@ -58,33 +58,36 @@ function PinInputLabel(props) {
58
58
  'class'
59
59
  ]);
60
60
  return createComponent(PinInput.Label, mergeProps({
61
- "data-slot": "pin-input-label",
62
61
  get ["class"] () {
63
62
  return clsx(PinInput_module.label, local.class);
64
63
  }
65
- }, others));
64
+ }, others, {
65
+ "data-slot": "pin-input-label"
66
+ }));
66
67
  }
67
68
  function PinInputControl(props) {
68
69
  const [local, others] = splitProps(props, [
69
70
  'class'
70
71
  ]);
71
72
  return createComponent(PinInput.Control, mergeProps({
72
- "data-slot": "pin-input-control",
73
73
  get ["class"] () {
74
74
  return clsx(PinInput_module.control, local.class);
75
75
  }
76
- }, others));
76
+ }, others, {
77
+ "data-slot": "pin-input-control"
78
+ }));
77
79
  }
78
80
  function PinInputInput(props) {
79
81
  const [local, others] = splitProps(props, [
80
82
  'class'
81
83
  ]);
82
84
  return createComponent(PinInput.Input, mergeProps({
83
- "data-slot": "pin-input-input",
84
85
  get ["class"] () {
85
86
  return clsx(PinInput_module.input, local.class);
86
87
  }
87
- }, others));
88
+ }, others, {
89
+ "data-slot": "pin-input-input"
90
+ }));
88
91
  }
89
92
  function PinInputInputs(props) {
90
93
  const pinInput = usePinInputContext();
@@ -120,7 +123,9 @@ function PinInputSeparator(props) {
120
123
  get ["class"] () {
121
124
  return clsx(PinInput_module.separator, local.class);
122
125
  }
123
- }, others), false, true);
126
+ }, others, {
127
+ "data-slot": "pin-input-separator"
128
+ }), false, true);
124
129
  insert(_el$, ()=>resolvedChildren() ?? createComponent(SeparatorMarkIcon, {}));
125
130
  return _el$;
126
131
  })();
@@ -11,7 +11,7 @@ function PinInputRoot(props) {
11
11
  'count',
12
12
  'placeholder'
13
13
  ]);
14
- return <PinInput.Root asChild={local.asChild} count={local.count} placeholder={local.placeholder ?? ''} data-slot="pin-input-root" class={clsx(PinInput_module.root, local.class)} {...others}>
14
+ return <PinInput.Root asChild={local.asChild} count={local.count} placeholder={local.placeholder ?? ''} class={clsx(PinInput_module.root, local.class)} {...others} data-slot="pin-input-root">
15
15
  {local.children}
16
16
  </PinInput.Root>;
17
17
  }
@@ -21,7 +21,7 @@ function PinInputRootProvider(props) {
21
21
  'children',
22
22
  'class'
23
23
  ]);
24
- return <PinInput.RootProvider asChild={local.asChild} data-slot="pin-input-root-provider" class={clsx(PinInput_module.root, local.class)} {...others}>
24
+ return <PinInput.RootProvider asChild={local.asChild} class={clsx(PinInput_module.root, local.class)} {...others} data-slot="pin-input-root-provider">
25
25
  {local.children}
26
26
  </PinInput.RootProvider>;
27
27
  }
@@ -29,19 +29,19 @@ function PinInputLabel(props) {
29
29
  const [local, others] = splitProps(props, [
30
30
  'class'
31
31
  ]);
32
- return <PinInput.Label data-slot="pin-input-label" class={clsx(PinInput_module.label, local.class)} {...others}/>;
32
+ return <PinInput.Label class={clsx(PinInput_module.label, local.class)} {...others} data-slot="pin-input-label"/>;
33
33
  }
34
34
  function PinInputControl(props) {
35
35
  const [local, others] = splitProps(props, [
36
36
  'class'
37
37
  ]);
38
- return <PinInput.Control data-slot="pin-input-control" class={clsx(PinInput_module.control, local.class)} {...others}/>;
38
+ return <PinInput.Control class={clsx(PinInput_module.control, local.class)} {...others} data-slot="pin-input-control"/>;
39
39
  }
40
40
  function PinInputInput(props) {
41
41
  const [local, others] = splitProps(props, [
42
42
  'class'
43
43
  ]);
44
- return <PinInput.Input data-slot="pin-input-input" class={clsx(PinInput_module.input, local.class)} {...others}/>;
44
+ return <PinInput.Input class={clsx(PinInput_module.input, local.class)} {...others} data-slot="pin-input-input"/>;
45
45
  }
46
46
  function PinInputInputs(props) {
47
47
  const pinInput = usePinInputContext();
@@ -57,7 +57,7 @@ function PinInputSeparator(props) {
57
57
  'role'
58
58
  ]);
59
59
  const resolvedChildren = children(()=>local.children);
60
- return <span data-slot="pin-input-separator" aria-hidden={local['aria-hidden'] ?? true} role={local.role ?? 'presentation'} class={clsx(PinInput_module.separator, local.class)} {...others}>
60
+ return <span aria-hidden={local['aria-hidden'] ?? true} role={local.role ?? 'presentation'} class={clsx(PinInput_module.separator, local.class)} {...others} data-slot="pin-input-separator">
61
61
  {resolvedChildren() ?? <SeparatorMarkIcon/>}
62
62
  </span>;
63
63
  }
@@ -85,11 +85,12 @@ function PopoverAnchor(props) {
85
85
  'class'
86
86
  ]);
87
87
  return createComponent(Popover.Anchor, mergeProps({
88
- "data-slot": "popover-anchor",
89
88
  get ["class"] () {
90
89
  return local.class;
91
90
  }
92
- }, others));
91
+ }, others, {
92
+ "data-slot": "popover-anchor"
93
+ }));
93
94
  }
94
95
  function PopoverTrigger(props) {
95
96
  const [local, others] = splitProps(props, [
@@ -100,22 +101,24 @@ function PopoverTrigger(props) {
100
101
  get asChild () {
101
102
  return local.asChild;
102
103
  },
103
- "data-slot": "popover-trigger",
104
104
  get ["class"] () {
105
105
  return clsx(!local.asChild && Popover_module.trigger, local.class);
106
106
  }
107
- }, others));
107
+ }, others, {
108
+ "data-slot": "popover-trigger"
109
+ }));
108
110
  }
109
111
  function PopoverIndicator(props) {
110
112
  const [local, others] = splitProps(props, [
111
113
  'class'
112
114
  ]);
113
115
  return createComponent(Popover.Indicator, mergeProps({
114
- "data-slot": "popover-indicator",
115
116
  get ["class"] () {
116
117
  return local.class;
117
118
  }
118
- }, others));
119
+ }, others, {
120
+ "data-slot": "popover-indicator"
121
+ }));
119
122
  }
120
123
  function PopoverPositioner(props) {
121
124
  const [local, others] = splitProps(props, [
@@ -124,11 +127,12 @@ function PopoverPositioner(props) {
124
127
  return createComponent(OverlayPortal, {
125
128
  get children () {
126
129
  return createComponent(Popover.Positioner, mergeProps({
127
- "data-slot": "popover-positioner",
128
130
  get ["class"] () {
129
131
  return clsx(Popover_module.positioner, local.class);
130
132
  }
131
- }, others));
133
+ }, others, {
134
+ "data-slot": "popover-positioner"
135
+ }));
132
136
  }
133
137
  });
134
138
  }
@@ -137,11 +141,12 @@ function PopoverContent(props) {
137
141
  'class'
138
142
  ]);
139
143
  return createComponent(Popover.Content, mergeProps({
140
- "data-slot": "popover-content",
141
144
  get ["class"] () {
142
145
  return clsx(Popover_module.content, local.class);
143
146
  }
144
- }, others));
147
+ }, others, {
148
+ "data-slot": "popover-content"
149
+ }));
145
150
  }
146
151
  function PopoverArrow(props) {
147
152
  const [local, others] = splitProps(props, [
@@ -150,11 +155,11 @@ function PopoverArrow(props) {
150
155
  ]);
151
156
  const resolvedChildren = children(()=>local.children);
152
157
  return createComponent(Popover.Arrow, mergeProps({
153
- "data-slot": "popover-arrow",
154
158
  get ["class"] () {
155
159
  return clsx(Popover_module.arrow, local.class);
156
160
  }
157
161
  }, others, {
162
+ "data-slot": "popover-arrow",
158
163
  get children () {
159
164
  return resolvedChildren() ?? createComponent(PopoverArrowTip, {});
160
165
  }
@@ -165,33 +170,36 @@ function PopoverArrowTip(props) {
165
170
  'class'
166
171
  ]);
167
172
  return createComponent(Popover.ArrowTip, mergeProps({
168
- "data-slot": "popover-arrow-tip",
169
173
  get ["class"] () {
170
174
  return clsx(Popover_module.arrowTip, local.class);
171
175
  }
172
- }, others));
176
+ }, others, {
177
+ "data-slot": "popover-arrow-tip"
178
+ }));
173
179
  }
174
180
  function PopoverTitle(props) {
175
181
  const [local, others] = splitProps(props, [
176
182
  'class'
177
183
  ]);
178
184
  return createComponent(Popover.Title, mergeProps({
179
- "data-slot": "popover-title",
180
185
  get ["class"] () {
181
186
  return clsx(Popover_module.title, local.class);
182
187
  }
183
- }, others));
188
+ }, others, {
189
+ "data-slot": "popover-title"
190
+ }));
184
191
  }
185
192
  function PopoverDescription(props) {
186
193
  const [local, others] = splitProps(props, [
187
194
  'class'
188
195
  ]);
189
196
  return createComponent(Popover.Description, mergeProps({
190
- "data-slot": "popover-description",
191
197
  get ["class"] () {
192
198
  return clsx(Popover_module.description, local.class);
193
199
  }
194
- }, others));
200
+ }, others, {
201
+ "data-slot": "popover-description"
202
+ }));
195
203
  }
196
204
  function PopoverCloseTrigger(props) {
197
205
  const [local, others] = splitProps(props, [
@@ -202,11 +210,12 @@ function PopoverCloseTrigger(props) {
202
210
  get asChild () {
203
211
  return local.asChild;
204
212
  },
205
- "data-slot": "popover-close-trigger",
206
213
  get ["class"] () {
207
214
  return clsx(!local.asChild && Popover_module.closeTrigger, local.class);
208
215
  }
209
- }, others));
216
+ }, others, {
217
+ "data-slot": "popover-close-trigger"
218
+ }));
210
219
  }
211
220
  function PopoverCloseIcon(props) {
212
221
  const [local, others] = splitProps(props, [
@@ -239,33 +248,36 @@ function PopoverHeader(props) {
239
248
  'class'
240
249
  ]);
241
250
  return createComponent(ark.div, mergeProps({
242
- "data-slot": "popover-header",
243
251
  get ["class"] () {
244
252
  return clsx(Popover_module.header, local.class);
245
253
  }
246
- }, others));
254
+ }, others, {
255
+ "data-slot": "popover-header"
256
+ }));
247
257
  }
248
258
  function PopoverBody(props) {
249
259
  const [local, others] = splitProps(props, [
250
260
  'class'
251
261
  ]);
252
262
  return createComponent(ark.div, mergeProps({
253
- "data-slot": "popover-body",
254
263
  get ["class"] () {
255
264
  return clsx(Popover_module.body, local.class);
256
265
  }
257
- }, others));
266
+ }, others, {
267
+ "data-slot": "popover-body"
268
+ }));
258
269
  }
259
270
  function PopoverFooter(props) {
260
271
  const [local, others] = splitProps(props, [
261
272
  'class'
262
273
  ]);
263
274
  return createComponent(ark.div, mergeProps({
264
- "data-slot": "popover-footer",
265
275
  get ["class"] () {
266
276
  return clsx(Popover_module.footer, local.class);
267
277
  }
268
- }, others));
278
+ }, others, {
279
+ "data-slot": "popover-footer"
280
+ }));
269
281
  }
270
282
  const Popover_Popover = Object.assign(PopoverRoot, {
271
283
  Root: PopoverRoot,