@bysages/solid 0.2.3 → 0.3.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 (154) hide show
  1. package/README.md +16 -2
  2. package/dist/{ai-response-B_586r27.mjs → ai-response-slzE03wh.mjs} +19 -17
  3. package/dist/chevron-D5RzcayK.mjs +9 -0
  4. package/dist/components/affix/index.mjs +15 -17
  5. package/dist/components/ai/index.d.mts +1 -1
  6. package/dist/components/ai/index.mjs +21 -22
  7. package/dist/components/ai-action/index.mjs +2 -2
  8. package/dist/components/ai-attachments/index.mjs +52 -38
  9. package/dist/components/ai-message/index.mjs +11 -13
  10. package/dist/components/ai-prompt-input/index.mjs +81 -55
  11. package/dist/components/ai-reasoning/index.mjs +10 -6
  12. package/dist/components/ai-response/index.mjs +1 -1
  13. package/dist/components/ai-source/index.mjs +23 -23
  14. package/dist/components/ai-suggestion/index.mjs +1 -1
  15. package/dist/components/ai-tool/index.mjs +29 -17
  16. package/dist/components/alert/index.mjs +37 -42
  17. package/dist/components/angle-slider/index.mjs +2 -2
  18. package/dist/components/aspect-ratio/index.mjs +14 -16
  19. package/dist/components/autocomplete/index.mjs +8 -3
  20. package/dist/components/avatar/index.d.mts +3 -0
  21. package/dist/components/avatar/index.mjs +10 -5
  22. package/dist/components/avatar-group/index.mjs +11 -13
  23. package/dist/components/back-top/index.mjs +31 -27
  24. package/dist/components/badge/index.mjs +14 -16
  25. package/dist/components/banner/index.mjs +26 -28
  26. package/dist/components/bento/index.d.mts +24 -0
  27. package/dist/components/bento/index.mjs +51 -0
  28. package/dist/components/block-ui/index.d.mts +12 -0
  29. package/dist/components/block-ui/index.mjs +43 -0
  30. package/dist/components/breadcrumb/index.mjs +12 -10
  31. package/dist/components/browser/index.d.mts +21 -0
  32. package/dist/components/browser/index.mjs +87 -0
  33. package/dist/components/button/index.mjs +27 -29
  34. package/dist/components/button-group/index.mjs +18 -20
  35. package/dist/components/calendar/index.mjs +141 -129
  36. package/dist/components/card/index.mjs +2 -2
  37. package/dist/components/cascade-select/index.mjs +167 -121
  38. package/dist/components/checkbox/index.mjs +2 -2
  39. package/dist/components/checkbox-group/index.mjs +53 -55
  40. package/dist/components/chip/index.mjs +22 -20
  41. package/dist/components/clipboard/index.mjs +2 -2
  42. package/dist/components/color-picker/index.mjs +2 -2
  43. package/dist/components/combobox/index.mjs +2 -2
  44. package/dist/components/command/index.mjs +83 -59
  45. package/dist/components/comment/index.mjs +77 -62
  46. package/dist/components/config-provider/index.d.mts +4 -1
  47. package/dist/components/config-provider/index.mjs +13 -9
  48. package/dist/components/container/index.mjs +14 -16
  49. package/dist/components/data-view/index.d.mts +18 -0
  50. package/dist/components/data-view/index.mjs +116 -0
  51. package/dist/components/date-input/index.mjs +2 -2
  52. package/dist/components/date-picker/index.mjs +2 -2
  53. package/dist/components/deferred-content/index.d.mts +16 -0
  54. package/dist/components/deferred-content/index.mjs +52 -0
  55. package/dist/components/descriptions/index.d.mts +9 -1
  56. package/dist/components/descriptions/index.mjs +43 -16
  57. package/dist/components/dock/index.d.mts +22 -0
  58. package/dist/components/dock/index.mjs +64 -0
  59. package/dist/components/dynamic-input/index.mjs +75 -68
  60. package/dist/components/editable/index.mjs +2 -2
  61. package/dist/components/ellipsis/index.mjs +17 -19
  62. package/dist/components/empty/index.mjs +2 -2
  63. package/dist/components/file-upload/index.d.mts +7 -1
  64. package/dist/components/file-upload/index.mjs +13 -3
  65. package/dist/components/float-button/index.mjs +42 -39
  66. package/dist/components/form/index.d.mts +1 -1
  67. package/dist/components/form/index.mjs +52 -37
  68. package/dist/components/grid/index.mjs +19 -21
  69. package/dist/components/icon/index.d.mts +9 -4
  70. package/dist/components/icon/index.mjs +37 -36
  71. package/dist/components/image/index.d.mts +4 -0
  72. package/dist/components/image/index.mjs +50 -43
  73. package/dist/components/image-viewer/index.d.mts +4 -0
  74. package/dist/components/image-viewer/index.mjs +54 -37
  75. package/dist/components/input/index.d.mts +3 -0
  76. package/dist/components/input/index.mjs +1 -41
  77. package/dist/components/input-group/index.mjs +14 -18
  78. package/dist/components/json-tree-view/index.d.mts +5 -2
  79. package/dist/components/json-tree-view/index.mjs +25 -2
  80. package/dist/components/kbd/index.mjs +8 -10
  81. package/dist/components/layout/index.mjs +81 -77
  82. package/dist/components/link/index.mjs +12 -13
  83. package/dist/components/list/index.d.mts +2 -1
  84. package/dist/components/list/index.mjs +62 -48
  85. package/dist/components/listbox/index.mjs +2 -2
  86. package/dist/components/masonry/index.mjs +15 -17
  87. package/dist/components/mentions/index.mjs +1 -1
  88. package/dist/components/menu/index.mjs +2 -2
  89. package/dist/components/menubar/index.mjs +59 -57
  90. package/dist/components/meter/index.mjs +41 -41
  91. package/dist/components/number-input/index.mjs +2 -2
  92. package/dist/components/order-list/index.d.mts +21 -0
  93. package/dist/components/order-list/index.mjs +168 -0
  94. package/dist/components/page-header/index.mjs +2 -2
  95. package/dist/components/pagination/index.mjs +2 -2
  96. package/dist/components/password-input/index.mjs +2 -2
  97. package/dist/components/pin-input/index.mjs +2 -2
  98. package/dist/components/popconfirm/index.mjs +19 -12
  99. package/dist/components/progress/index.mjs +2 -2
  100. package/dist/components/progress-group/index.mjs +65 -58
  101. package/dist/components/radio-group/index.mjs +2 -2
  102. package/dist/components/rating-group/index.mjs +2 -2
  103. package/dist/components/result/index.d.mts +22 -0
  104. package/dist/components/result/index.mjs +66 -0
  105. package/dist/components/select/index.d.mts +2 -17
  106. package/dist/components/select/index.mjs +2 -18
  107. package/dist/components/separator/index.mjs +17 -19
  108. package/dist/components/skeleton/index.mjs +8 -10
  109. package/dist/components/slider/index.mjs +2 -2
  110. package/dist/components/spinner/index.mjs +17 -17
  111. package/dist/components/split-button/index.mjs +88 -83
  112. package/dist/components/spotlight/index.d.mts +11 -0
  113. package/dist/components/spotlight/index.mjs +38 -0
  114. package/dist/components/stack/index.mjs +20 -22
  115. package/dist/components/stat/index.mjs +12 -14
  116. package/dist/components/steps/index.d.mts +6 -1
  117. package/dist/components/steps/index.mjs +9 -3
  118. package/dist/components/switch/index.mjs +2 -2
  119. package/dist/components/table/index.mjs +323 -214
  120. package/dist/components/tabs/index.d.mts +2 -0
  121. package/dist/components/tabs/index.mjs +10 -5
  122. package/dist/components/tags-input/index.mjs +2 -2
  123. package/dist/components/terminal/index.d.mts +17 -0
  124. package/dist/components/terminal/index.mjs +86 -0
  125. package/dist/components/textarea/index.mjs +8 -8
  126. package/dist/components/timeline/index.d.mts +9 -3
  127. package/dist/components/timeline/index.mjs +18 -3
  128. package/dist/components/toc/index.d.mts +2 -7
  129. package/dist/components/toc/index.mjs +1 -9
  130. package/dist/components/toggle-group/index.mjs +2 -2
  131. package/dist/components/toolbar/index.d.mts +17 -0
  132. package/dist/components/toolbar/index.mjs +46 -0
  133. package/dist/components/transfer/index.mjs +126 -107
  134. package/dist/components/tree-select/index.mjs +36 -25
  135. package/dist/components/tree-view/index.d.mts +8 -1
  136. package/dist/components/tree-view/index.mjs +29 -3
  137. package/dist/components/typography/index.mjs +2 -2
  138. package/dist/components/user/index.d.mts +19 -0
  139. package/dist/components/user/index.mjs +68 -0
  140. package/dist/components/virtual-list/index.d.mts +17 -0
  141. package/dist/components/virtual-list/index.mjs +72 -0
  142. package/dist/components/watermark/index.mjs +19 -13
  143. package/dist/index-DdsnfV4f.d.mts +16 -0
  144. package/dist/{index-B4XS2n2y.d.mts → index-IfofF-SW.d.mts} +718 -3773
  145. package/dist/index-YPUiqD3n.d.mts +42 -0
  146. package/dist/index.d.mts +17 -4
  147. package/dist/index.mjs +22 -9
  148. package/dist/input-DoFQ7RXh.mjs +78 -0
  149. package/dist/{mentions-xbI6vJAP.mjs → mentions-f5Js_2W7.mjs} +76 -70
  150. package/dist/select-CX6OuQlU.mjs +123 -0
  151. package/dist/toc-CZmYEaQR.mjs +21 -0
  152. package/dist/use-component-messages-C4SCVYjD.mjs +17 -0
  153. package/package.json +28 -7
  154. package/dist/chevron-GWEoEYdO.mjs +0 -9
@@ -0,0 +1,24 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/bento/index.d.ts
3
+ export interface BentoProps extends JSX.HTMLAttributes<HTMLDivElement> {
4
+ /** Tracks across the lattice. */
5
+ columns?: number;
6
+ }
7
+ export interface BentoCellProps extends JSX.HTMLAttributes<HTMLDivElement> {
8
+ /** Columns this tile claims. */
9
+ span?: number;
10
+ /** Rows this tile claims. */
11
+ rowSpan?: number;
12
+ }
13
+ /** The bento lattice: a grid of unequal tiles that reads as one plate.
14
+ * The container owns the track count; each cell claims its own span. */
15
+ export declare function BentoRoot(props: BentoProps): JSX.Element;
16
+ /** One tile: `span` claims columns, `rowSpan` claims rows — the rest
17
+ * of the plate stays in measure. */
18
+ export declare function BentoCell(props: BentoCellProps): JSX.Element;
19
+ /** The whole family under one handle — Bento.Root, Bento.Cell. */
20
+ export declare const Bento: typeof BentoRoot & {
21
+ Root: typeof BentoRoot;
22
+ Cell: typeof BentoCell;
23
+ };
24
+ //#endregion
@@ -0,0 +1,51 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { insert, spread, template } from "@solidjs/web";
3
+ import { splitProps } from "solid-js";
4
+ //#region src/components/bento/index.tsx
5
+ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
+ /** The bento lattice: a grid of unequal tiles that reads as one plate.
7
+ * The container owns the track count; each cell claims its own span. */
8
+ function BentoRoot(props) {
9
+ injectComponentStyle("bento");
10
+ const [own, rest] = splitProps(props, ["columns"]);
11
+ var _el$ = _tmpl$();
12
+ spread(_el$, [rest, {
13
+ "data-scope": "bento",
14
+ "data-part": "root",
15
+ get style() {
16
+ return { "--bs-bento-columns": String(own.columns ?? 3) };
17
+ }
18
+ }], true);
19
+ insert(_el$, () => {
20
+ return rest.children;
21
+ });
22
+ return _el$;
23
+ }
24
+ /** One tile: `span` claims columns, `rowSpan` claims rows — the rest
25
+ * of the plate stays in measure. */
26
+ function BentoCell(props) {
27
+ injectComponentStyle("bento");
28
+ const [own, rest] = splitProps(props, ["span", "rowSpan"]);
29
+ var _el$2 = _tmpl$();
30
+ spread(_el$2, [rest, {
31
+ "data-scope": "bento",
32
+ "data-part": "cell",
33
+ get style() {
34
+ return {
35
+ "--bs-bento-span-x": String(own.span ?? 1),
36
+ "--bs-bento-span-y": String(own.rowSpan ?? 1)
37
+ };
38
+ }
39
+ }], true);
40
+ insert(_el$2, () => {
41
+ return rest.children;
42
+ });
43
+ return _el$2;
44
+ }
45
+ /** The whole family under one handle — Bento.Root, Bento.Cell. */
46
+ const Bento = Object.assign(BentoRoot, {
47
+ Root: BentoRoot,
48
+ Cell: BentoCell
49
+ });
50
+ //#endregion
51
+ export { Bento, BentoCell, BentoRoot };
@@ -0,0 +1,12 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/block-ui/index.d.ts
3
+ export interface BlockUIProps extends JSX.HTMLAttributes<HTMLDivElement> {
4
+ /** Whether the curtain is drawn. */
5
+ blocked?: boolean;
6
+ children?: JSX.Element;
7
+ }
8
+ /** A curtain over content that must wait: the blocked region keeps its
9
+ * shape and dims under frosted paper while a quiet wheel reports the
10
+ * wait. Callers own the state; the curtain only answers it. */
11
+ export declare function BlockUI(props: BlockUIProps): JSX.Element;
12
+ //#endregion
@@ -0,0 +1,43 @@
1
+ import { Spinner } from "../spinner/index.mjs";
2
+ import { injectComponentStyle } from "@bysages/core";
3
+ import { createComponent, insert, spread, template } from "@solidjs/web";
4
+ import { Show, splitProps } from "solid-js";
5
+ //#region src/components/block-ui/index.tsx
6
+ var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=block-ui data-part=mask>`);
7
+ var _tmpl$2 = /* @__PURE__ */ template(`<div><!><!>`);
8
+ /** A curtain over content that must wait: the blocked region keeps its
9
+ * shape and dims under frosted paper while a quiet wheel reports the
10
+ * wait. Callers own the state; the curtain only answers it. */
11
+ function BlockUI(props) {
12
+ injectComponentStyle("block-ui");
13
+ const [own, rest] = splitProps(props, ["blocked", "children"]);
14
+ var _el$ = _tmpl$2();
15
+ var _el$2 = _el$.firstChild;
16
+ var _el$4 = _el$2.nextSibling;
17
+ spread(_el$, [rest, {
18
+ "data-scope": "block-ui",
19
+ "data-part": "root",
20
+ get "data-blocked"() {
21
+ return own.blocked ? "" : void 0;
22
+ },
23
+ get "aria-busy"() {
24
+ return own.blocked || void 0;
25
+ }
26
+ }], true);
27
+ insert(_el$, () => {
28
+ return own.children;
29
+ }, _el$2);
30
+ insert(_el$, createComponent(Show, {
31
+ get when() {
32
+ return own.blocked;
33
+ },
34
+ get children() {
35
+ var _el$3 = _tmpl$();
36
+ insert(_el$3, createComponent(Spinner, { size: "lg" }));
37
+ return _el$3;
38
+ }
39
+ }), _el$4);
40
+ return _el$;
41
+ }
42
+ //#endregion
43
+ export { BlockUI };
@@ -1,33 +1,35 @@
1
+ import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, mergeProps, spread, template } from "solid-js/web";
3
+ import { createComponent, mergeProps, spread, template } from "@solidjs/web";
3
4
  import { mergeProps as mergeProps$1 } from "solid-js";
4
5
  //#region src/components/breadcrumb/index.tsx
5
- var _tmpl$ = /*#__PURE__*/ template(`<span>`);
6
- /** A trail of waymarks: Root wraps the nav, List the ordered trail, and
7
- * each Item carries a Link — or the Current page — parted by a quiet
8
- * Separator. Links take href and the rest through attributes. */
6
+ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
9
7
  function part(name, tag, extra = {}) {
10
8
  return ((props) => {
11
- return createComponent(tag, mergeProps(extra, props, {
9
+ const messages = useComponentMessages();
10
+ const partExtra = typeof extra === "function" ? extra(messages()) : extra;
11
+ return createComponent(tag, mergeProps(partExtra, props, {
12
12
  "data-scope": "breadcrumb",
13
- get ["data-part"]() {
13
+ get "data-part"() {
14
14
  return name.toLowerCase();
15
15
  }
16
16
  }));
17
17
  });
18
18
  }
19
- const Root = part("Root", "nav", { "aria-label": "Breadcrumb" });
19
+ const Root = part("Root", "nav", (messages) => ({ "aria-label": messages.breadcrumb.label }));
20
20
  const List = part("List", "ol");
21
21
  const Item = part("Item", "li");
22
22
  const Link = part("Link", "a");
23
23
  const Current = part("Current", "span", { "aria-current": "page" });
24
24
  const Separator = (props) => (() => {
25
25
  var _el$ = _tmpl$();
26
- spread(_el$, mergeProps(() => mergeProps$1({ children: "/" }, props), {
26
+ spread(_el$, [() => {
27
+ return mergeProps$1({ children: "/" }, props);
28
+ }, {
27
29
  "aria-hidden": "true",
28
30
  "data-scope": "breadcrumb",
29
31
  "data-part": "separator"
30
- }), false, false);
32
+ }], false);
31
33
  return _el$;
32
34
  })();
33
35
  const Breadcrumb = Object.assign(Root, {
@@ -0,0 +1,21 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/browser/index.d.ts
3
+ export interface BrowserPartProps extends JSX.HTMLAttributes<HTMLDivElement> {}
4
+ /** The three lamps are the system's own fixed pigments — the same
5
+ * semantics reserved for danger, warning, and success. */
6
+ export declare function BrowserDots(props: BrowserPartProps): JSX.Element;
7
+ export declare function BrowserRoot(props: BrowserPartProps): JSX.Element;
8
+ export declare function BrowserTitleBar(props: BrowserPartProps): JSX.Element;
9
+ export declare function BrowserUrlBar(props: BrowserPartProps): JSX.Element;
10
+ export declare function BrowserBody(props: BrowserPartProps): JSX.Element;
11
+ /** A browser window as a vessel: title bar, the three lamps, the
12
+ * address well, and a body that carries whatever the site hangs in
13
+ * it — an iframe, a screenshot, a live page. */
14
+ export declare const Browser: typeof BrowserRoot & {
15
+ Root: typeof BrowserRoot;
16
+ TitleBar: typeof BrowserTitleBar;
17
+ Dots: typeof BrowserDots;
18
+ UrlBar: typeof BrowserUrlBar;
19
+ Body: typeof BrowserBody;
20
+ };
21
+ //#endregion
@@ -0,0 +1,87 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { insert, setAttribute, spread, template } from "@solidjs/web";
3
+ //#region src/components/browser/index.tsx
4
+ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
5
+ var _tmpl$2 = /* @__PURE__ */ template(`<span data-scope=browser data-part=dot>`);
6
+ /** The three lamps are the system's own fixed pigments — the same
7
+ * semantics reserved for danger, warning, and success. */
8
+ function BrowserDots(props) {
9
+ injectComponentStyle("browser");
10
+ var _el$ = _tmpl$();
11
+ spread(_el$, [props, {
12
+ "data-scope": "browser",
13
+ "data-part": "dots"
14
+ }], true);
15
+ insert(_el$, () => {
16
+ return [
17
+ "danger",
18
+ "warning",
19
+ "success"
20
+ ].map((tone) => (() => {
21
+ var _el$2 = _tmpl$2();
22
+ setAttribute(_el$2, "data-tone", tone);
23
+ return _el$2;
24
+ })());
25
+ });
26
+ return _el$;
27
+ }
28
+ function BrowserRoot(props) {
29
+ injectComponentStyle("browser");
30
+ var _el$3 = _tmpl$();
31
+ spread(_el$3, [props, {
32
+ "data-scope": "browser",
33
+ "data-part": "root"
34
+ }], true);
35
+ insert(_el$3, () => {
36
+ return props.children;
37
+ });
38
+ return _el$3;
39
+ }
40
+ function BrowserTitleBar(props) {
41
+ injectComponentStyle("browser");
42
+ var _el$4 = _tmpl$();
43
+ spread(_el$4, [props, {
44
+ "data-scope": "browser",
45
+ "data-part": "titlebar"
46
+ }], true);
47
+ insert(_el$4, () => {
48
+ return props.children;
49
+ });
50
+ return _el$4;
51
+ }
52
+ function BrowserUrlBar(props) {
53
+ injectComponentStyle("browser");
54
+ var _el$5 = _tmpl$();
55
+ spread(_el$5, [props, {
56
+ "data-scope": "browser",
57
+ "data-part": "urlbar"
58
+ }], true);
59
+ insert(_el$5, () => {
60
+ return props.children;
61
+ });
62
+ return _el$5;
63
+ }
64
+ function BrowserBody(props) {
65
+ injectComponentStyle("browser");
66
+ var _el$6 = _tmpl$();
67
+ spread(_el$6, [props, {
68
+ "data-scope": "browser",
69
+ "data-part": "body"
70
+ }], true);
71
+ insert(_el$6, () => {
72
+ return props.children;
73
+ });
74
+ return _el$6;
75
+ }
76
+ /** A browser window as a vessel: title bar, the three lamps, the
77
+ * address well, and a body that carries whatever the site hangs in
78
+ * it — an iframe, a screenshot, a live page. */
79
+ const Browser = Object.assign(BrowserRoot, {
80
+ Root: BrowserRoot,
81
+ TitleBar: BrowserTitleBar,
82
+ Dots: BrowserDots,
83
+ UrlBar: BrowserUrlBar,
84
+ Body: BrowserBody
85
+ });
86
+ //#endregion
87
+ export { Browser, BrowserBody, BrowserDots, BrowserRoot, BrowserTitleBar, BrowserUrlBar };
@@ -1,8 +1,8 @@
1
1
  import { injectComponentStyle } from "@bysages/core";
2
- import { mergeProps, spread, template } from "solid-js/web";
2
+ import { spread, template } from "@solidjs/web";
3
3
  import { splitProps } from "solid-js";
4
4
  //#region src/components/button/index.tsx
5
- var _tmpl$ = /*#__PURE__*/ template(`<button>`);
5
+ var _tmpl$ = /* @__PURE__ */ template(`<button>`);
6
6
  function Button(props) {
7
7
  injectComponentStyle("button");
8
8
  const [own, rest] = splitProps(props, [
@@ -13,33 +13,31 @@ function Button(props) {
13
13
  "type",
14
14
  "disabled"
15
15
  ]);
16
- return (() => {
17
- var _el$ = _tmpl$();
18
- spread(_el$, mergeProps(rest, {
19
- get type() {
20
- return own.type ?? "button";
21
- },
22
- get disabled() {
23
- return own.disabled;
24
- },
25
- "data-scope": "button",
26
- "data-part": "root",
27
- get ["data-variant"]() {
28
- return own.variant ?? "solid";
29
- },
30
- get ["data-tone"]() {
31
- return own.tone ?? "ink";
32
- },
33
- get ["data-size"]() {
34
- return own.size ?? "md";
35
- },
36
- get ["data-square"]() {
37
- return own.square ? "true" : void 0;
38
- },
39
- "data-motion": "ink-ripple lit"
40
- }), false, false);
41
- return _el$;
42
- })();
16
+ var _el$ = _tmpl$();
17
+ spread(_el$, [rest, {
18
+ get type() {
19
+ return own.type ?? "button";
20
+ },
21
+ get disabled() {
22
+ return own.disabled;
23
+ },
24
+ "data-scope": "button",
25
+ "data-part": "root",
26
+ get "data-variant"() {
27
+ return own.variant ?? "solid";
28
+ },
29
+ get "data-tone"() {
30
+ return own.tone ?? "ink";
31
+ },
32
+ get "data-size"() {
33
+ return own.size ?? "md";
34
+ },
35
+ get "data-square"() {
36
+ return own.square ? "true" : void 0;
37
+ },
38
+ "data-motion": "ink-ripple lit"
39
+ }], false);
40
+ return _el$;
43
41
  }
44
42
  //#endregion
45
43
  export { Button };
@@ -1,8 +1,8 @@
1
1
  import { injectComponentStyle } from "@bysages/core";
2
- import { mergeProps, spread, template } from "solid-js/web";
2
+ import { spread, template } from "@solidjs/web";
3
3
  import { splitProps } from "solid-js";
4
4
  //#region src/components/button-group/index.tsx
5
- var _tmpl$ = /*#__PURE__*/ template(`<div>`);
5
+ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
6
  /**
7
7
  * Buttons fused into one control: the group owns only the joinery, so
8
8
  * members keep every variant they were given — a solid action can sit
@@ -16,24 +16,22 @@ function ButtonGroupRoot(props) {
16
16
  "size",
17
17
  "radius"
18
18
  ]);
19
- return (() => {
20
- var _el$ = _tmpl$();
21
- spread(_el$, mergeProps(rest, {
22
- "role": "group",
23
- "data-scope": "button-group",
24
- "data-part": "root",
25
- get ["data-orientation"]() {
26
- return own.orientation ?? "horizontal";
27
- },
28
- get ["data-size"]() {
29
- return own.size;
30
- },
31
- get ["data-radius"]() {
32
- return own.radius;
33
- }
34
- }), false, false);
35
- return _el$;
36
- })();
19
+ var _el$ = _tmpl$();
20
+ spread(_el$, [rest, {
21
+ role: "group",
22
+ "data-scope": "button-group",
23
+ "data-part": "root",
24
+ get "data-orientation"() {
25
+ return own.orientation ?? "horizontal";
26
+ },
27
+ get "data-size"() {
28
+ return own.size;
29
+ },
30
+ get "data-radius"() {
31
+ return own.radius;
32
+ }
33
+ }], false);
34
+ return _el$;
37
35
  }
38
36
  const ButtonGroup = Object.assign(ButtonGroupRoot, { Root: ButtonGroupRoot });
39
37
  //#endregion