@gemologic/sheen 0.2.1 → 0.4.0

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 (226) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/ai.d.ts +8 -0
  4. package/dist/ai.js +5 -0
  5. package/dist/core.d.ts +11 -4
  6. package/dist/core.js +32 -28
  7. package/dist/formisch.js +1 -2
  8. package/dist/forms.d.ts +2 -0
  9. package/dist/forms.js +16 -15
  10. package/dist/index.d.ts +27 -5
  11. package/dist/index.js +87 -76
  12. package/dist/layout/Layout.js +1 -2
  13. package/dist/metadata.js +1 -2
  14. package/dist/navigation.d.ts +2 -1
  15. package/dist/navigation.js +16 -16
  16. package/dist/overlays.d.ts +2 -0
  17. package/dist/overlays.js +9 -8
  18. package/dist/primitives/Accordion.js +9 -9
  19. package/dist/primitives/ActivityTimeline.js +57 -49
  20. package/dist/primitives/AlertDialog.js +1 -2
  21. package/dist/primitives/Avatar.js +16 -17
  22. package/dist/primitives/Board.d.ts +39 -0
  23. package/dist/primitives/Board.js +471 -0
  24. package/dist/primitives/Breadcrumb.js +1 -2
  25. package/dist/primitives/Button.js +38 -27
  26. package/dist/primitives/ButtonGroup.js +1 -2
  27. package/dist/primitives/Checkbox.d.ts +16 -2
  28. package/dist/primitives/Checkbox.js +46 -36
  29. package/dist/primitives/CheckboxGroup.js +11 -12
  30. package/dist/primitives/Collapsible.js +6 -6
  31. package/dist/primitives/Combobox.js +203 -201
  32. package/dist/primitives/CommandPalette.d.ts +4 -0
  33. package/dist/primitives/CommandPalette.js +138 -116
  34. package/dist/primitives/ConfirmDialog.js +5 -6
  35. package/dist/primitives/ContextMenu.js +7 -8
  36. package/dist/primitives/Conversation.d.ts +17 -0
  37. package/dist/primitives/Conversation.js +107 -0
  38. package/dist/primitives/DescriptionList.js +1 -2
  39. package/dist/primitives/Dialog.js +101 -68
  40. package/dist/primitives/Drawer.js +12 -13
  41. package/dist/primitives/DropdownMenu.js +163 -157
  42. package/dist/primitives/EditableTextField.js +3 -8
  43. package/dist/primitives/EmptyState.js +1 -2
  44. package/dist/primitives/Field.js +1 -2
  45. package/dist/primitives/FileDropzone.js +19 -18
  46. package/dist/primitives/Form.d.ts +23 -0
  47. package/dist/primitives/Form.js +76 -0
  48. package/dist/primitives/Glyph.d.ts +40 -0
  49. package/dist/primitives/Glyph.js +65 -0
  50. package/dist/primitives/IconButton.js +5 -6
  51. package/dist/primitives/Input.js +1 -2
  52. package/dist/primitives/InputGroup.js +8 -9
  53. package/dist/primitives/Link.d.ts +9 -1
  54. package/dist/primitives/Link.js +23 -17
  55. package/dist/primitives/LinkTooltip.js +6 -7
  56. package/dist/primitives/List.d.ts +34 -0
  57. package/dist/primitives/List.js +135 -0
  58. package/dist/primitives/Message.d.ts +13 -0
  59. package/dist/primitives/Message.js +75 -0
  60. package/dist/primitives/NavList.js +15 -16
  61. package/dist/primitives/Notice.d.ts +15 -1
  62. package/dist/primitives/Notice.js +91 -43
  63. package/dist/primitives/NumberField.js +81 -81
  64. package/dist/primitives/NumberText.d.ts +4 -0
  65. package/dist/primitives/NumberText.js +50 -25
  66. package/dist/primitives/Pagination.js +81 -60
  67. package/dist/primitives/Popover.d.ts +1 -0
  68. package/dist/primitives/Popover.js +65 -57
  69. package/dist/primitives/Progress.js +1 -2
  70. package/dist/primitives/PromptInput.d.ts +23 -0
  71. package/dist/primitives/PromptInput.js +135 -0
  72. package/dist/primitives/RadioGroup.js +12 -17
  73. package/dist/primitives/Resizable.js +1 -2
  74. package/dist/primitives/ScrollArea.js +1 -2
  75. package/dist/primitives/SearchInput.js +45 -38
  76. package/dist/primitives/SegmentedControl.d.ts +2 -0
  77. package/dist/primitives/SegmentedControl.js +92 -78
  78. package/dist/primitives/Select.js +105 -100
  79. package/dist/primitives/Separator.js +1 -2
  80. package/dist/primitives/ShortcutPending.js +11 -12
  81. package/dist/primitives/ShortcutProvider.d.ts +5 -0
  82. package/dist/primitives/ShortcutProvider.js +71 -65
  83. package/dist/primitives/ShortcutScope.js +8 -9
  84. package/dist/primitives/ShortcutSheet.js +30 -24
  85. package/dist/primitives/Skeleton.js +1 -2
  86. package/dist/primitives/Slider.js +1 -2
  87. package/dist/primitives/SortableList.d.ts +19 -0
  88. package/dist/primitives/SortableList.js +235 -0
  89. package/dist/primitives/Spinner.js +1 -2
  90. package/dist/primitives/Status.js +14 -14
  91. package/dist/primitives/Stepper.js +54 -52
  92. package/dist/primitives/StreamingText.d.ts +12 -0
  93. package/dist/primitives/StreamingText.js +42 -0
  94. package/dist/primitives/Surface.js +1 -2
  95. package/dist/primitives/Switch.d.ts +2 -2
  96. package/dist/primitives/Switch.js +1 -2
  97. package/dist/primitives/Table.js +1 -2
  98. package/dist/primitives/Tabs.js +20 -17
  99. package/dist/primitives/TagInput.js +6 -9
  100. package/dist/primitives/Textarea.js +37 -63
  101. package/dist/primitives/Toast.js +42 -41
  102. package/dist/primitives/Toaster.js +27 -28
  103. package/dist/primitives/Tooltip.js +32 -32
  104. package/dist/primitives/TooltipTrigger.d.ts +18 -0
  105. package/dist/primitives/TooltipTrigger.js +76 -0
  106. package/dist/primitives/Tree.js +1 -2
  107. package/dist/primitives/Typography.d.ts +6 -2
  108. package/dist/primitives/Typography.js +20 -12
  109. package/dist/primitives/boolean-input-state.js +3 -8
  110. package/dist/primitives/button-variants.js +2 -3
  111. package/dist/primitives/choice-options.js +1 -2
  112. package/dist/primitives/create-confirm.js +1 -2
  113. package/dist/primitives/create-toaster.js +1 -2
  114. package/dist/primitives/link-focus.js +1 -2
  115. package/dist/primitives/menu-focus.js +1 -2
  116. package/dist/primitives/sortable-core.d.ts +70 -0
  117. package/dist/primitives/sortable-core.js +109 -0
  118. package/dist/primitives/sortable-drag.d.ts +29 -0
  119. package/dist/primitives/sortable-drag.js +50 -0
  120. package/dist/primitives/tooltip-layer.js +26 -27
  121. package/dist/sortable.d.ts +6 -0
  122. package/dist/sortable.js +4 -0
  123. package/dist/theme/ThemeProvider.d.ts +6 -1
  124. package/dist/theme/ThemeProvider.js +65 -58
  125. package/dist/theme/intl.js +1 -2
  126. package/dist/theme/keyboard-script.js +1 -2
  127. package/dist/theme/layers.js +1 -2
  128. package/dist/theme/messages.d.ts +26 -0
  129. package/dist/theme/messages.js +9 -2
  130. package/dist/theme/number-format-cache.js +1 -2
  131. package/dist/theme/script.d.ts +1 -0
  132. package/dist/theme/script.js +3 -3
  133. package/dist/theme/state.d.ts +4 -4
  134. package/dist/theme/state.js +12 -13
  135. package/dist/utils/auto-resize.d.ts +6 -0
  136. package/dist/utils/auto-resize.js +31 -0
  137. package/dist/utils/browser-status.js +1 -2
  138. package/dist/utils/change-motion.d.ts +8 -0
  139. package/dist/utils/change-motion.js +19 -0
  140. package/dist/utils/cn.js +1 -2
  141. package/dist/utils/media-query.d.ts +10 -0
  142. package/dist/utils/media-query.js +16 -0
  143. package/dist/utils/optimistic.js +1 -2
  144. package/dist/utils/shortcut-platform.js +1 -2
  145. package/dist/utils/shortcut-registry.d.ts +5 -0
  146. package/dist/utils/shortcut-registry.js +61 -51
  147. package/dist/vite.js +3 -4
  148. package/package.json +23 -5
  149. package/src/ai.ts +8 -0
  150. package/src/core.ts +11 -4
  151. package/src/forms.ts +2 -0
  152. package/src/index.ts +27 -5
  153. package/src/navigation.ts +2 -1
  154. package/src/overlays.ts +2 -0
  155. package/src/primitives/Accordion.tsx +1 -1
  156. package/src/primitives/ActivityTimeline.tsx +12 -7
  157. package/src/primitives/Board.tsx +406 -0
  158. package/src/primitives/Button.tsx +15 -4
  159. package/src/primitives/Checkbox.tsx +14 -7
  160. package/src/primitives/Collapsible.tsx +1 -1
  161. package/src/primitives/Combobox.tsx +2 -1
  162. package/src/primitives/CommandPalette.tsx +13 -4
  163. package/src/primitives/Conversation.tsx +108 -0
  164. package/src/primitives/Dialog.tsx +5 -1
  165. package/src/primitives/DropdownMenu.tsx +12 -6
  166. package/src/primitives/FileDropzone.tsx +2 -2
  167. package/src/primitives/Form.tsx +58 -0
  168. package/src/primitives/Glyph.tsx +55 -0
  169. package/src/primitives/Link.tsx +15 -6
  170. package/src/primitives/List.tsx +68 -0
  171. package/src/primitives/Message.tsx +40 -0
  172. package/src/primitives/Notice.tsx +45 -12
  173. package/src/primitives/NumberField.tsx +3 -2
  174. package/src/primitives/NumberText.tsx +31 -4
  175. package/src/primitives/Pagination.tsx +6 -5
  176. package/src/primitives/Popover.tsx +7 -5
  177. package/src/primitives/PromptInput.tsx +116 -0
  178. package/src/primitives/SearchInput.tsx +4 -3
  179. package/src/primitives/SegmentedControl.tsx +29 -4
  180. package/src/primitives/Select.tsx +3 -2
  181. package/src/primitives/ShortcutProvider.tsx +14 -1
  182. package/src/primitives/ShortcutSheet.tsx +1 -1
  183. package/src/primitives/SortableList.tsx +208 -0
  184. package/src/primitives/Status.tsx +1 -1
  185. package/src/primitives/Stepper.tsx +7 -7
  186. package/src/primitives/StreamingText.tsx +32 -0
  187. package/src/primitives/Switch.tsx +2 -2
  188. package/src/primitives/Tabs.tsx +2 -1
  189. package/src/primitives/TagInput.tsx +1 -1
  190. package/src/primitives/Textarea.tsx +3 -47
  191. package/src/primitives/Toast.tsx +2 -1
  192. package/src/primitives/Tooltip.tsx +4 -2
  193. package/src/primitives/TooltipTrigger.tsx +60 -0
  194. package/src/primitives/Typography.tsx +11 -2
  195. package/src/primitives/button-variants.ts +1 -1
  196. package/src/primitives/sortable-core.ts +139 -0
  197. package/src/primitives/sortable-drag.ts +75 -0
  198. package/src/sortable.ts +6 -0
  199. package/src/styles/ai.css +57 -0
  200. package/src/styles/core.css +321 -0
  201. package/src/styles/forms.css +263 -0
  202. package/src/styles/navigation.css +137 -0
  203. package/src/styles/overlays.css +107 -0
  204. package/src/styles/sortable.css +87 -0
  205. package/src/styles.css +5 -658
  206. package/src/theme/ThemeProvider.tsx +20 -8
  207. package/src/theme/messages.ts +20 -1
  208. package/src/theme/script.ts +2 -2
  209. package/src/theme/state.ts +5 -5
  210. package/src/utils/auto-resize.ts +58 -0
  211. package/src/utils/change-motion.ts +28 -0
  212. package/src/utils/media-query.ts +26 -0
  213. package/src/utils/shortcut-registry.ts +19 -2
  214. package/src/vite.ts +3 -3
  215. package/vendor/integrity.json +13 -13
  216. package/vendor/kobalte-core/chunk/3D6FM2PJ.js +7 -1
  217. package/vendor/kobalte-core/chunk/G3KI2B4X.js +2 -1
  218. package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +2 -1
  219. package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +7 -1
  220. package/vendor/origins.json +4 -4
  221. package/vendor/solid-web/dev.cjs +21 -17
  222. package/vendor/solid-web/dev.js +21 -17
  223. package/vendor/solid-web/server.cjs +1 -1
  224. package/vendor/solid-web/server.js +1 -1
  225. package/vendor/solid-web/web.cjs +21 -17
  226. package/vendor/solid-web/web.js +21 -17
@@ -1,12 +1,14 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { createBooleanInputState as t } from "./boolean-input-state.js";
3
- import { className as n, createComponent as r, delegateEvents as i, effect as a, insert as o, mergeProps as s, setAttribute as c, spread as l, template as u, use as d } from "solid-js/web";
4
- import { Show as f, createUniqueId as p, splitProps as m } from "solid-js";
5
- //#region src/primitives/Checkbox.tsx
6
- var h = /*#__PURE__*/ u("<span aria-hidden=true> *"), g = /*#__PURE__*/ u("<p>"), _ = /*#__PURE__*/ u("<div><div><input type=checkbox><span aria-hidden=true></span><label>"), v = /*#__PURE__*/ u("<span class=sheen-checkbox-indicator><span class=sheen-checkbox-mark>"), y = /*#__PURE__*/ u("<span class=sheen-switch-thumb>");
7
- function b(i, u) {
8
- let [b, x, S] = m(i, [
3
+ import { className as n, createComponent as r, effect as i, insert as a, mergeProps as o, setAttribute as s, spread as c, template as l, use as u } from "solid-js/web";
4
+ import { Show as d, createUniqueId as f, splitProps as p } from "solid-js";
5
+ // src/primitives/Checkbox.tsx
6
+ var m = /*#__PURE__*/ l("<p>"), h = /*#__PURE__*/ l("<div><div><input type=checkbox><span aria-hidden=true>"), g = /*#__PURE__*/ l("<span class=sheen-checkbox-indicator><span class=sheen-checkbox-mark>"), _ = /*#__PURE__*/ l("<span class=sheen-switch-thumb>"), v = /*#__PURE__*/ l("<span aria-hidden=true> *"), y = /*#__PURE__*/ l("<label>");
7
+ function b(l, b) {
8
+ let [x, S, C] = p(l, [
9
9
  "label",
10
+ "aria-label",
11
+ "aria-labelledby",
10
12
  "description",
11
13
  "error",
12
14
  "class",
@@ -22,56 +24,64 @@ function b(i, u) {
22
24
  "required",
23
25
  "name",
24
26
  "value"
25
- ]), C = `sheen-${u}`, w = p(), T = `${w}-input`, E, D = () => [b.description ? `${w}-description` : "", b.error ? `${w}-error` : ""].filter(Boolean).join(" ") || void 0, { checked: O, requestChange: k, setInput: A } = t(x, (e) => b.onCheckedChange?.(e));
27
+ ]), w = `sheen-${b}`, T = f(), E = `${T}-input`, D = () => [x.description ? `${T}-description` : "", x.error ? `${T}-error` : ""].filter(Boolean).join(" ") || void 0, { checked: O, requestChange: k, setInput: A } = t(S, (e) => x.onCheckedChange?.(e));
26
28
  return (() => {
27
- var t = _(), i = t.firstChild, p = i.firstChild, m = p.nextSibling, j = m.nextSibling;
28
- return l(t, s(S, {
29
+ var t = h(), l = t.firstChild, f = l.firstChild, p = f.nextSibling;
30
+ return c(t, o(C, {
29
31
  get class() {
30
- return e(C, b.class);
32
+ return e(w, x.class);
31
33
  },
32
34
  get "data-checked"() {
33
35
  return O() || void 0;
34
36
  },
35
37
  get "data-indeterminate"() {
36
- return x.indeterminate || void 0;
38
+ return S.indeterminate || void 0;
37
39
  },
38
40
  get "data-disabled"() {
39
- return x.disabled || void 0;
41
+ return S.disabled || void 0;
40
42
  },
41
43
  get "data-readonly"() {
42
- return x.readOnly || void 0;
44
+ return S.readOnly || void 0;
43
45
  },
44
46
  get "data-invalid"() {
45
- return b.error ? "" : void 0;
47
+ return x.error ? "" : void 0;
46
48
  }
47
- }), !1, !0), n(i, `${C}-row`), p.addEventListener("change", (e) => k(e.currentTarget)), d((e) => {
48
- E = e, A(e), b.inputRef?.(e);
49
- }, p), c(p, "id", T), c(p, "role", u === "switch" ? "switch" : void 0), n(p, `${C}-input`), m.$$click = () => E?.click(), n(m, `${C}-control`), o(m, u === "checkbox" ? v() : y()), c(j, "for", T), n(j, `${C}-label`), o(j, () => b.label, null), o(j, r(f, {
49
+ }), !1, !0), n(l, `${w}-row`), f.addEventListener("change", (e) => k(e.currentTarget)), u((e) => {
50
+ A(e), x.inputRef?.(e);
51
+ }, f), s(f, "id", E), s(f, "role", b === "switch" ? "switch" : void 0), n(f, `${w}-input`), n(p, `${w}-control`), a(p, b === "checkbox" ? g() : _()), a(l, r(d, {
50
52
  get when() {
51
- return x.required;
53
+ return x.label;
52
54
  },
53
- get children() {
54
- return h();
55
- }
56
- }), null), o(t, r(f, {
55
+ children: (e) => (() => {
56
+ var t = y();
57
+ return s(t, "for", E), n(t, `${w}-label`), a(t, e, null), a(t, r(d, {
58
+ get when() {
59
+ return S.required;
60
+ },
61
+ get children() {
62
+ return v();
63
+ }
64
+ }), null), t;
65
+ })()
66
+ }), null), a(t, r(d, {
57
67
  get when() {
58
- return b.description;
68
+ return x.description;
59
69
  },
60
70
  get children() {
61
- var e = g();
62
- return c(e, "id", `${w}-description`), n(e, `${C}-description`), o(e, () => b.description), e;
71
+ var e = m();
72
+ return s(e, "id", `${T}-description`), n(e, `${w}-description`), a(e, () => x.description), e;
63
73
  }
64
- }), null), o(t, r(f, {
74
+ }), null), a(t, r(d, {
65
75
  get when() {
66
- return b.error;
76
+ return x.error;
67
77
  },
68
78
  get children() {
69
- var e = g();
70
- return c(e, "id", `${w}-error`), n(e, `${C}-error`), o(e, () => b.error), e;
79
+ var e = m();
80
+ return s(e, "id", `${T}-error`), n(e, `${w}-error`), a(e, () => x.error), e;
71
81
  }
72
- }), null), a((e) => {
73
- var t = x.name ?? "", n = b.form, r = x.disabled, i = x.required, a = x.readOnly, o = x.readOnly || void 0, s = b.error ? "true" : void 0, l = D(), u = x.indeterminate || void 0;
74
- return t !== e.e && c(p, "name", e.e = t), n !== e.t && c(p, "form", e.t = n), r !== e.a && (p.disabled = e.a = r), i !== e.o && (p.required = e.o = i), a !== e.i && (p.readOnly = e.i = a), o !== e.n && c(p, "aria-readonly", e.n = o), s !== e.s && c(p, "aria-invalid", e.s = s), l !== e.h && c(p, "aria-describedby", e.h = l), u !== e.r && c(m, "data-indeterminate", e.r = u), e;
82
+ }), null), i((e) => {
83
+ var t = S.name ?? "", n = x.form, r = S.disabled, i = S.required, a = S.readOnly, o = x["aria-label"], c = x["aria-labelledby"], l = S.readOnly || void 0, u = x.error ? "true" : void 0, d = D(), m = S.indeterminate || void 0;
84
+ return t !== e.e && s(f, "name", e.e = t), n !== e.t && s(f, "form", e.t = n), r !== e.a && (f.disabled = e.a = r), i !== e.o && (f.required = e.o = i), a !== e.i && (f.readOnly = e.i = a), o !== e.n && s(f, "aria-label", e.n = o), c !== e.s && s(f, "aria-labelledby", e.s = c), l !== e.h && s(f, "aria-readonly", e.h = l), u !== e.r && s(f, "aria-invalid", e.r = u), d !== e.d && s(f, "aria-describedby", e.d = d), m !== e.l && s(p, "data-indeterminate", e.l = m), e;
75
85
  }, {
76
86
  e: void 0,
77
87
  t: void 0,
@@ -81,13 +91,13 @@ function b(i, u) {
81
91
  n: void 0,
82
92
  s: void 0,
83
93
  h: void 0,
84
- r: void 0
85
- }), a(() => p.value = x.value), a(() => p.checked = O()), t;
94
+ r: void 0,
95
+ d: void 0,
96
+ l: void 0
97
+ }), i(() => f.value = S.value), i(() => f.checked = O()), t;
86
98
  })();
87
99
  }
88
100
  function x(e) {
89
101
  return b(e, "checkbox");
90
102
  }
91
- i(["click"]);
92
- //#endregion
93
103
  export { x as Checkbox, b as createNativeBooleanControl };
@@ -1,9 +1,9 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { Checkbox as t } from "./Checkbox.js";
1
+ import { Checkbox as e } from "./Checkbox.js";
2
+ import { cn as t } from "../utils/cn.js";
3
3
  import { createChoiceOptions as n } from "./choice-options.js";
4
4
  import { createComponent as r, insert as i, mergeProps as a, setAttribute as o, spread as s, template as c, use as l } from "solid-js/web";
5
5
  import { For as u, Show as d, createSignal as f, createUniqueId as p, onCleanup as m, onMount as h, splitProps as g, untrack as _ } from "solid-js";
6
- //#region src/primitives/CheckboxGroup.tsx
6
+ // src/primitives/CheckboxGroup.tsx
7
7
  var v = /*#__PURE__*/ c("<p class=sheen-checkbox-group-description>"), y = /*#__PURE__*/ c("<p class=sheen-checkbox-group-error>"), b = /*#__PURE__*/ c("<fieldset><legend class=sheen-checkbox-group-label></legend><div class=sheen-checkbox-group-options>");
8
8
  function x(c) {
9
9
  let x = p(), [S, C] = g(c, [
@@ -53,7 +53,7 @@ function x(c) {
53
53
  return C.tabIndex ?? -1;
54
54
  },
55
55
  get class() {
56
- return e("sheen-checkbox-group", S.class);
56
+ return t("sheen-checkbox-group", S.class);
57
57
  },
58
58
  get disabled() {
59
59
  return S.disabled;
@@ -82,11 +82,11 @@ function x(c) {
82
82
  get each() {
83
83
  return A();
84
84
  },
85
- children: (e) => {
86
- let n = _(() => k().get(e));
85
+ children: (t) => {
86
+ let n = _(() => k().get(t));
87
87
  if (!n) throw Error("CheckboxGroup: missing option during creation");
88
- let i = () => k().get(e) ?? n;
89
- return r(t, a(i, {
88
+ let i = () => k().get(t) ?? n;
89
+ return r(e, a(i, {
90
90
  get name() {
91
91
  return S.name ?? "";
92
92
  },
@@ -94,7 +94,7 @@ function x(c) {
94
94
  return C.form;
95
95
  },
96
96
  get checked() {
97
- return D().includes(e);
97
+ return D().includes(t);
98
98
  },
99
99
  get disabled() {
100
100
  return !!S.disabled || !!i().disabled;
@@ -102,8 +102,8 @@ function x(c) {
102
102
  get readOnly() {
103
103
  return S.readOnly ?? !1;
104
104
  },
105
- onCheckedChange: (t) => {
106
- S.disabled || S.readOnly || i().disabled || j(t ? [...D(), e] : D().filter((t) => t !== e));
105
+ onCheckedChange: (e) => {
106
+ S.disabled || S.readOnly || i().disabled || j(e ? [...D(), t] : D().filter((e) => e !== t));
107
107
  }
108
108
  }));
109
109
  }
@@ -118,5 +118,4 @@ function x(c) {
118
118
  }), null), n;
119
119
  })();
120
120
  }
121
- //#endregion
122
121
  export { x as CheckboxGroup };
@@ -1,9 +1,9 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { Button as t } from "./Button.js";
1
+ import { Button as e } from "./Button.js";
2
+ import { cn as t } from "../utils/cn.js";
3
3
  import { createComponent as n, effect as r, insert as i, memo as a, mergeProps as o, setAttribute as s, template as c, use as l } from "solid-js/web";
4
4
  import { createEffect as u, createSignal as d, createUniqueId as f, splitProps as p } from "solid-js";
5
5
  import * as m from "#sheen-kobalte/collapsible";
6
- //#region src/primitives/Collapsible.tsx
6
+ // src/primitives/Collapsible.tsx
7
7
  var h = /*#__PURE__*/ c("<span class=sheen-collapsible-indicator aria-hidden=true>"), g = /*#__PURE__*/ c("<div class=sheen-collapsible-content><div class=sheen-collapsible-clip><div class=sheen-collapsible-body>");
8
8
  function _(c) {
9
9
  let [_, v] = p(c, [
@@ -25,7 +25,7 @@ function _(c) {
25
25
  return b();
26
26
  },
27
27
  get class() {
28
- return e("sheen-collapsible", _.class);
28
+ return t("sheen-collapsible", _.class);
29
29
  },
30
30
  get open() {
31
31
  return C();
@@ -38,7 +38,8 @@ function _(c) {
38
38
  },
39
39
  get children() {
40
40
  return [n(m.Trigger, {
41
- as: t,
41
+ as: e,
42
+ variant: "ghost",
42
43
  ref(e) {
43
44
  var t = w;
44
45
  typeof t == "function" ? t(e) : w = e;
@@ -68,5 +69,4 @@ function _(c) {
68
69
  }
69
70
  }));
70
71
  }
71
- //#endregion
72
72
  export { _ as Collapsible };