@bolerish/ui 0.18.1 → 1.0.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.
- package/README.md +11 -0
- package/dist/_tokens.js +4 -0
- package/dist/_tokens.js.map +2 -2
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +1 -1
- package/dist/alert-dialog.js +39 -82
- package/dist/alert-dialog.js.map +4 -4
- package/dist/attachment.js +28 -72
- package/dist/attachment.js.map +3 -3
- package/dist/banner.js +2 -2
- package/dist/banner.js.map +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/breadcrumb.js.map +1 -1
- package/dist/button-group.js +33 -77
- package/dist/button-group.js.map +3 -3
- package/dist/button.js +30 -70
- package/dist/button.js.map +3 -3
- package/dist/calendar.js +2 -1
- package/dist/calendar.js.map +2 -2
- package/dist/card.d.ts +1 -3
- package/dist/card.js +28 -73
- package/dist/card.js.map +3 -3
- package/dist/carousel.js +1 -1
- package/dist/carousel.js.map +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/collapsible.js +3 -2
- package/dist/collapsible.js.map +2 -2
- package/dist/combobox.js +35 -77
- package/dist/combobox.js.map +3 -3
- package/dist/date-picker.js +25 -70
- package/dist/date-picker.js.map +3 -3
- package/dist/dialog.js +41 -84
- package/dist/dialog.js.map +4 -4
- package/dist/drawer.js +78 -122
- package/dist/drawer.js.map +4 -4
- package/dist/dropdown-menu.js +33 -77
- package/dist/dropdown-menu.js.map +3 -3
- package/dist/empty.js +4 -4
- package/dist/empty.js.map +1 -1
- package/dist/field.js +2 -2
- package/dist/field.js.map +1 -1
- package/dist/global.css +13 -92
- package/dist/heading.js +2 -2
- package/dist/heading.js.map +1 -1
- package/dist/hover-card.js +22 -66
- package/dist/hover-card.js.map +3 -3
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/index.js.map +2 -2
- package/dist/input-group.js +30 -72
- package/dist/input-group.js.map +3 -3
- package/dist/input-otp.js +31 -74
- package/dist/input-otp.js.map +3 -3
- package/dist/input.js +23 -67
- package/dist/input.js.map +3 -3
- package/dist/item.js +30 -74
- package/dist/item.js.map +3 -3
- package/dist/label.js +2 -2
- package/dist/label.js.map +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.js +1 -1
- package/dist/link.js.map +1 -1
- package/dist/menubar.js +23 -67
- package/dist/menubar.js.map +3 -3
- package/dist/native-select.js +25 -69
- package/dist/native-select.js.map +3 -3
- package/dist/navigation-menu.js +30 -74
- package/dist/navigation-menu.js.map +3 -3
- package/dist/pagination.js +2 -2
- package/dist/pagination.js.map +1 -1
- package/dist/paragraph.js +2 -2
- package/dist/paragraph.js.map +1 -1
- package/dist/popover.js +24 -68
- package/dist/popover.js.map +3 -3
- package/dist/select.js +32 -76
- package/dist/select.js.map +3 -3
- package/dist/snackbar.js +53 -33
- package/dist/snackbar.js.map +2 -2
- package/dist/styles/modal-backdrop.d.ts +17 -0
- package/dist/styles/surface.d.ts +23 -180
- package/dist/stylex.css +294 -310
- package/dist/tabs.js +4 -4
- package/dist/tabs.js.map +1 -1
- package/dist/textarea.js +23 -67
- package/dist/textarea.js.map +3 -3
- package/dist/theme.js +4 -4
- package/dist/theme.js.map +1 -1
- package/dist/toast.js +32 -76
- package/dist/toast.js.map +3 -3
- package/dist/toggle-group.js +28 -72
- package/dist/toggle-group.js.map +3 -3
- package/dist/toggle.js +21 -65
- package/dist/toggle.js.map +3 -3
- package/dist/tooltip.js +21 -69
- package/dist/tooltip.js.map +3 -3
- package/package.json +5 -6
- package/dist/liquid-refraction.svg +0 -7
- package/dist/liquid.d.ts +0 -10
- package/dist/liquid.js +0 -237
- package/dist/liquid.js.map +0 -7
- package/dist/styles/liquid-map.d.ts +0 -5
- package/dist/styles/modal-overlay.d.ts +0 -13
- package/dist/surface.d.ts +0 -12
- package/dist/surface.js +0 -12
- package/dist/surface.js.map +0 -7
package/dist/button-group.js
CHANGED
|
@@ -20,95 +20,51 @@ function mergeStyles(base, className, style) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// src/styles/surface.ts
|
|
23
|
-
var
|
|
23
|
+
var surfaceStyles = {
|
|
24
24
|
edge: {
|
|
25
|
-
kVAM5u: "x1kqtvf4
|
|
26
|
-
kCdVP6: "x14oh5tl",
|
|
25
|
+
kVAM5u: "x1kqtvf4",
|
|
27
26
|
kFGkbq: "x1w1tqly",
|
|
28
27
|
$$css: true
|
|
29
28
|
},
|
|
30
|
-
material: {
|
|
31
|
-
"--bolerish-material-sheen": "x1kahndp",
|
|
32
|
-
"--bolerish-material-shadow": "xvd6nka",
|
|
33
|
-
kGVxlE: "x16ifxj2 xznghud",
|
|
34
|
-
kWkggS: "x1s4uome xphjgqo",
|
|
35
|
-
keRtuK: "xs1r7gh x1laxs1",
|
|
36
|
-
k6WDB: "x1t853zo x2e8en7",
|
|
37
|
-
kKwaWg: "x18o3ruo x1yv3zlm",
|
|
38
|
-
kTahiY: "x1cg02ou",
|
|
39
|
-
kK1uS5: "x1pe93vg",
|
|
40
|
-
kEcs6k: "x11rvarm",
|
|
41
|
-
kWrjR8: "x1ile18z",
|
|
42
|
-
kfloDl: "x1m3y3zz",
|
|
43
|
-
kO6drA: "x9yvj25",
|
|
44
|
-
kYe61M: "xiccrwd",
|
|
45
|
-
kkTUmj: "x14hm74v",
|
|
46
|
-
k11ilZ: "xhobzj1",
|
|
47
|
-
ktzNWN: "xwaqzdf",
|
|
48
|
-
$$css: true
|
|
49
|
-
},
|
|
50
29
|
panel: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"--bolerish-material-filter": "x1n6mwez",
|
|
30
|
+
kWkggS: "xcc0o6n",
|
|
31
|
+
kO6drA: "x9yvj25",
|
|
54
32
|
$$css: true
|
|
55
33
|
},
|
|
56
34
|
control: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
60
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
35
|
+
kWkggS: "xcc0o6n",
|
|
36
|
+
kO6drA: "x9yvj25",
|
|
61
37
|
$$css: true
|
|
62
38
|
},
|
|
63
39
|
subtle: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
67
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
40
|
+
kWkggS: "xmqg8ag",
|
|
41
|
+
kO6drA: "x9yvj25",
|
|
68
42
|
$$css: true
|
|
69
43
|
},
|
|
70
44
|
outline: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
74
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
45
|
+
kWkggS: "x1ail9j1",
|
|
46
|
+
kO6drA: "x9yvj25",
|
|
75
47
|
$$css: true
|
|
76
48
|
},
|
|
77
49
|
raised: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
$$css: true
|
|
83
|
-
},
|
|
84
|
-
translucent: {
|
|
85
|
-
"--bolerish-material-color": "x14zkn9l",
|
|
86
|
-
"--bolerish-material-opacity": "xoh9gux",
|
|
87
|
-
"--bolerish-material-filter": "xhu24am",
|
|
50
|
+
kWkggS: "xssngo0",
|
|
51
|
+
kGVxlE: "x1wlfqej",
|
|
52
|
+
kO6drA: "x9yvj25",
|
|
53
|
+
ktzNWN: "xwaqzdf",
|
|
88
54
|
$$css: true
|
|
89
55
|
},
|
|
90
56
|
floating: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
57
|
+
kWkggS: "xssngo0",
|
|
58
|
+
kGVxlE: "xms81ks",
|
|
59
|
+
kO6drA: "x9yvj25",
|
|
60
|
+
ktzNWN: "xwaqzdf",
|
|
95
61
|
$$css: true
|
|
96
62
|
}
|
|
97
63
|
};
|
|
98
|
-
var surfaceStyles = {
|
|
99
|
-
edge: styles.edge,
|
|
100
|
-
panel: [styles.material, styles.panel],
|
|
101
|
-
control: [styles.material, styles.control],
|
|
102
|
-
subtle: [styles.material, styles.subtle],
|
|
103
|
-
outline: [styles.material, styles.outline],
|
|
104
|
-
raised: [styles.material, styles.raised],
|
|
105
|
-
translucent: [styles.material, styles.translucent],
|
|
106
|
-
floating: [styles.material, styles.floating]
|
|
107
|
-
};
|
|
108
64
|
|
|
109
65
|
// src/button-group.tsx
|
|
110
66
|
import { jsx } from "react/jsx-runtime";
|
|
111
|
-
var
|
|
67
|
+
var styles = {
|
|
112
68
|
root: {
|
|
113
69
|
kGNEyG: "x1qjc9v5",
|
|
114
70
|
k1xSpc: "x3nfvp2",
|
|
@@ -177,27 +133,27 @@ var firstItemStyles = {
|
|
|
177
133
|
};
|
|
178
134
|
var onlyItemStyles = {
|
|
179
135
|
horizontal: {
|
|
180
|
-
kaIpWk: "
|
|
136
|
+
kaIpWk: "xf5ntmx",
|
|
181
137
|
$$css: true
|
|
182
138
|
},
|
|
183
139
|
vertical: {
|
|
184
|
-
kaIpWk: "
|
|
140
|
+
kaIpWk: "xf5ntmx",
|
|
185
141
|
$$css: true
|
|
186
142
|
}
|
|
187
143
|
};
|
|
188
144
|
var firstItemRadiusStyles = {
|
|
189
145
|
horizontal: {
|
|
190
|
-
kqGeR4: "
|
|
146
|
+
kqGeR4: "x1h3zsn4",
|
|
191
147
|
kYm2EN: "xjppbhk",
|
|
192
|
-
kIxVMA: "
|
|
148
|
+
kIxVMA: "xw0hx3x",
|
|
193
149
|
ksF3WI: "x1a2w583",
|
|
194
150
|
$$css: true
|
|
195
151
|
},
|
|
196
152
|
vertical: {
|
|
197
153
|
kqGeR4: "xfrllxf",
|
|
198
154
|
kYm2EN: "xjppbhk",
|
|
199
|
-
kIxVMA: "
|
|
200
|
-
ksF3WI: "
|
|
155
|
+
kIxVMA: "xw0hx3x",
|
|
156
|
+
ksF3WI: "x1885j96",
|
|
201
157
|
$$css: true
|
|
202
158
|
}
|
|
203
159
|
};
|
|
@@ -214,14 +170,14 @@ var middleItemStyles = {
|
|
|
214
170
|
var lastItemStyles = {
|
|
215
171
|
horizontal: {
|
|
216
172
|
kqGeR4: "xfrllxf",
|
|
217
|
-
kYm2EN: "
|
|
173
|
+
kYm2EN: "x1965139",
|
|
218
174
|
kIxVMA: "x1ia1hqs",
|
|
219
|
-
ksF3WI: "
|
|
175
|
+
ksF3WI: "x1885j96",
|
|
220
176
|
$$css: true
|
|
221
177
|
},
|
|
222
178
|
vertical: {
|
|
223
|
-
kqGeR4: "
|
|
224
|
-
kYm2EN: "
|
|
179
|
+
kqGeR4: "x1h3zsn4",
|
|
180
|
+
kYm2EN: "x1965139",
|
|
225
181
|
kIxVMA: "x1ia1hqs",
|
|
226
182
|
ksF3WI: "x1a2w583",
|
|
227
183
|
$$css: true
|
|
@@ -288,7 +244,7 @@ function ButtonGroup(t0) {
|
|
|
288
244
|
const isFirst = position === 0;
|
|
289
245
|
const isLast = position === groupItems.length - 1;
|
|
290
246
|
content.push(cloneElement(child, {
|
|
291
|
-
xstyle: [
|
|
247
|
+
xstyle: [styles.item, itemOrientationStyles[orientation], isFirst && firstItemStyles[orientation], getItemPositionStyle(orientation, isFirst, isLast), child.props.xstyle]
|
|
292
248
|
}));
|
|
293
249
|
}
|
|
294
250
|
$[8] = children;
|
|
@@ -300,7 +256,7 @@ function ButtonGroup(t0) {
|
|
|
300
256
|
const t2 = role ?? "group";
|
|
301
257
|
let t3;
|
|
302
258
|
if ($[11] !== className || $[12] !== orientation || $[13] !== style || $[14] !== xstyle) {
|
|
303
|
-
t3 = mergeStyles(stylex.props(
|
|
259
|
+
t3 = mergeStyles(stylex.props(styles.root, orientationStyles[orientation], xstyle), className, style);
|
|
304
260
|
$[11] = className;
|
|
305
261
|
$[12] = orientation;
|
|
306
262
|
$[13] = style;
|
|
@@ -349,7 +305,7 @@ function ButtonGroupText(t0) {
|
|
|
349
305
|
}
|
|
350
306
|
let t1;
|
|
351
307
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
352
|
-
t1 = mergeStyles(stylex.props(
|
|
308
|
+
t1 = mergeStyles(stylex.props(styles.text, surfaceStyles.control, xstyle), className, style);
|
|
353
309
|
$[5] = className;
|
|
354
310
|
$[6] = style;
|
|
355
311
|
$[7] = xstyle;
|
|
@@ -391,7 +347,7 @@ function ButtonGroupSeparator(t0) {
|
|
|
391
347
|
const orientation = t1 === void 0 ? "vertical" : t1;
|
|
392
348
|
let t2;
|
|
393
349
|
if ($[4] !== xstyle) {
|
|
394
|
-
t2 = [
|
|
350
|
+
t2 = [styles.separator, xstyle];
|
|
395
351
|
$[4] = xstyle;
|
|
396
352
|
$[5] = t2;
|
|
397
353
|
} else {
|
package/dist/button-group.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/button-group.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { Children, Fragment, cloneElement, isValidElement, type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport { Separator } from \"./separator\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nconst styles = {\n root: {\n kGNEyG: \"x1qjc9v5\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"xxhr3t\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n item: {\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n k9RWNo: \"x135w3n3\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"xj9e3ow\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x116rqyj\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n separator: {\n kSGwAc: \"xkh2ocl\",\n kZKoxP: \"xt7dq6l\",\n kUOVxO: \"x18nzy7w\",\n kAzted: \"x65nank\",\n $$css: true\n }\n};\nconst orientationStyles = {\n horizontal: {\n kXwgrk: \"x1q0g3np\",\n $$css: true\n },\n vertical: {\n kXwgrk: \"xdt5ytf\",\n $$css: true\n }\n};\nconst itemOrientationStyles = {\n horizontal: {\n keTefX: \"x2yqusi\",\n $$css: true\n },\n vertical: {\n keoZOQ: \"xpt9k8t\",\n $$css: true\n }\n};\nconst firstItemStyles = {\n horizontal: {\n keTefX: \"x1lziwak\",\n $$css: true\n },\n vertical: {\n keoZOQ: \"xdj266r\",\n $$css: true\n }\n};\nconst onlyItemStyles = {\n horizontal: {\n kaIpWk: \"x1p5vitp\",\n $$css: true\n },\n vertical: {\n kaIpWk: \"x1p5vitp\",\n $$css: true\n }\n};\nconst firstItemRadiusStyles = {\n horizontal: {\n kqGeR4: \"x10ipona\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"xzn2g6r\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n vertical: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"xzn2g6r\",\n ksF3WI: \"xz5i4qs\",\n $$css: true\n }\n};\nconst middleItemStyles = {\n horizontal: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n vertical: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n }\n};\nconst lastItemStyles = {\n horizontal: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"x1ca2soh\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"xz5i4qs\",\n $$css: true\n },\n vertical: {\n kqGeR4: \"x10ipona\",\n kYm2EN: \"x1ca2soh\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype GroupItem = ReactElement<StyleProps>;\nfunction isGroupItem(child: ReactNode): child is GroupItem {\n return isValidElement(child) && typeof child.type !== \"string\" && child.type !== Fragment && child.type !== ButtonGroupSeparator;\n}\nfunction getItemPositionStyle(orientation: \"horizontal\" | \"vertical\", isFirst: boolean, isLast: boolean) {\n if (isFirst && isLast) return onlyItemStyles[orientation];\n if (isFirst) return firstItemRadiusStyles[orientation];\n if (isLast) return lastItemStyles[orientation];\n return middleItemStyles[orientation];\n}\n\n/** Direct children must be Bolerish buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */\nexport type ButtonGroupProps = StyledProps<ComponentProps<\"div\">> & StyleProps & {\n orientation?: \"horizontal\" | \"vertical\";\n};\nexport function ButtonGroup(t0) {\n const $ = _c(22);\n let children;\n let className;\n let props;\n let role;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n children,\n orientation: t1,\n role,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = props;\n $[4] = role;\n $[5] = style;\n $[6] = t1;\n $[7] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n props = $[3];\n role = $[4];\n style = $[5];\n t1 = $[6];\n xstyle = $[7];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let content;\n if ($[8] !== children || $[9] !== orientation) {\n const childItems = Children.toArray(children);\n const groupItems = childItems.filter(isGroupItem);\n let position = -1;\n content = [];\n for (const child of childItems) {\n if (!isGroupItem(child)) {\n content.push(child);\n continue;\n }\n position = position + 1;\n const isFirst = position === 0;\n const isLast = position === groupItems.length - 1;\n content.push(cloneElement(child, {\n xstyle: [styles.item, itemOrientationStyles[orientation], isFirst && firstItemStyles[orientation], getItemPositionStyle(orientation, isFirst, isLast), child.props.xstyle]\n }));\n }\n $[8] = children;\n $[9] = orientation;\n $[10] = content;\n } else {\n content = $[10];\n }\n const t2 = role ?? \"group\";\n let t3;\n if ($[11] !== className || $[12] !== orientation || $[13] !== style || $[14] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, orientationStyles[orientation], xstyle), className, style);\n $[11] = className;\n $[12] = orientation;\n $[13] = style;\n $[14] = xstyle;\n $[15] = t3;\n } else {\n t3 = $[15];\n }\n let t4;\n if ($[16] !== content || $[17] !== orientation || $[18] !== props || $[19] !== t2 || $[20] !== t3) {\n t4 = <div {...props} data-orientation={orientation} role={t2} {...t3}>{content}</div>;\n $[16] = content;\n $[17] = orientation;\n $[18] = props;\n $[19] = t2;\n $[20] = t3;\n $[21] = t4;\n } else {\n t4 = $[21];\n }\n return t4;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.text, surfaceStyles.control, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function ButtonGroupSeparator(t0) {\n const $ = _c(10);\n let props;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n orientation: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n xstyle = $[3];\n }\n const orientation = t1 === undefined ? \"vertical\" : t1;\n let t2;\n if ($[4] !== xstyle) {\n t2 = [styles.separator, xstyle];\n $[4] = xstyle;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n let t3;\n if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {\n t3 = <Separator {...props} orientation={orientation} xstyle={t2} />;\n $[6] = orientation;\n $[7] = props;\n $[8] = t2;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nconst styles = {\n edge: {\n kVAM5u: \"x1kqtvf4 xqr73hj\",\n kCdVP6: \"x14oh5tl\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-sheen\": \"x1kahndp\",\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xznghud\",\n kWkggS: \"x1s4uome xphjgqo\",\n keRtuK: \"xs1r7gh x1laxs1\",\n k6WDB: \"x1t853zo x2e8en7\",\n kKwaWg: \"x18o3ruo x1yv3zlm\",\n kTahiY: \"x1cg02ou\",\n kK1uS5: \"x1pe93vg\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\n kYe61M: \"xiccrwd\",\n kkTUmj: \"x14hm74v\",\n k11ilZ: \"xhobzj1\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n panel: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"x8fe23t\",\n \"--bolerish-material-filter\": \"x1n6mwez\",\n $$css: true\n },\n control: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x3m3fbl\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n raised: {\n \"--bolerish-material-shadow\": \"x1l9gcvt\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x1nqk09\",\n \"--bolerish-material-filter\": \"x1gkvbmm\",\n $$css: true\n },\n translucent: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xoh9gux\",\n \"--bolerish-material-filter\": \"xhu24am\",\n $$css: true\n },\n floating: {\n \"--bolerish-material-shadow\": \"xu02b4h\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x14p89z6\",\n \"--bolerish-material-filter\": \"xunhrho\",\n $$css: true\n }\n};\nexport const surfaceStyles = {\n edge: styles.edge,\n panel: [styles.material, styles.panel],\n control: [styles.material, styles.control],\n subtle: [styles.material, styles.subtle],\n outline: [styles.material, styles.outline],\n raised: [styles.material, styles.raised],\n translucent: [styles.material, styles.translucent],\n floating: [styles.material, styles.floating]\n};"],
|
|
5
|
-
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;AACxB,SAAS,UAAU,UAAU,cAAc,sBAA8E;AACzH,SAAS,iBAAiB;;;ACAnB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { colorVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { Children, Fragment, cloneElement, isValidElement, type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport { Separator } from \"./separator\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nconst styles = {\n root: {\n kGNEyG: \"x1qjc9v5\",\n k1xSpc: \"x3nfvp2\",\n kOIVth: \"xxhr3t\",\n kzqmXN: \"xeq5yr9\",\n $$css: true\n },\n item: {\n k7Eaqz: \"xeuugli\",\n kVAEAm: \"x1n2onr6\",\n k9RWNo: \"x135w3n3\",\n $$css: true\n },\n text: {\n kGNEyG: \"x6s0dn4\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"xj9e3ow\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kjj79g: \"xl56j7k\",\n kAzted: \"x116rqyj\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n separator: {\n kSGwAc: \"xkh2ocl\",\n kZKoxP: \"xt7dq6l\",\n kUOVxO: \"x18nzy7w\",\n kAzted: \"x65nank\",\n $$css: true\n }\n};\nconst orientationStyles = {\n horizontal: {\n kXwgrk: \"x1q0g3np\",\n $$css: true\n },\n vertical: {\n kXwgrk: \"xdt5ytf\",\n $$css: true\n }\n};\nconst itemOrientationStyles = {\n horizontal: {\n keTefX: \"x2yqusi\",\n $$css: true\n },\n vertical: {\n keoZOQ: \"xpt9k8t\",\n $$css: true\n }\n};\nconst firstItemStyles = {\n horizontal: {\n keTefX: \"x1lziwak\",\n $$css: true\n },\n vertical: {\n keoZOQ: \"xdj266r\",\n $$css: true\n }\n};\nconst onlyItemStyles = {\n horizontal: {\n kaIpWk: \"xf5ntmx\",\n $$css: true\n },\n vertical: {\n kaIpWk: \"xf5ntmx\",\n $$css: true\n }\n};\nconst firstItemRadiusStyles = {\n horizontal: {\n kqGeR4: \"x1h3zsn4\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"xw0hx3x\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n },\n vertical: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"xjppbhk\",\n kIxVMA: \"xw0hx3x\",\n ksF3WI: \"x1885j96\",\n $$css: true\n }\n};\nconst middleItemStyles = {\n horizontal: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n },\n vertical: {\n kaIpWk: \"x2u8bby\",\n $$css: true\n }\n};\nconst lastItemStyles = {\n horizontal: {\n kqGeR4: \"xfrllxf\",\n kYm2EN: \"x1965139\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1885j96\",\n $$css: true\n },\n vertical: {\n kqGeR4: \"x1h3zsn4\",\n kYm2EN: \"x1965139\",\n kIxVMA: \"x1ia1hqs\",\n ksF3WI: \"x1a2w583\",\n $$css: true\n }\n};\ntype StyleProps = {\n xstyle?: stylex.StyleXStyles;\n};\ntype GroupItem = ReactElement<StyleProps>;\nfunction isGroupItem(child: ReactNode): child is GroupItem {\n return isValidElement(child) && typeof child.type !== \"string\" && child.type !== Fragment && child.type !== ButtonGroupSeparator;\n}\nfunction getItemPositionStyle(orientation: \"horizontal\" | \"vertical\", isFirst: boolean, isLast: boolean) {\n if (isFirst && isLast) return onlyItemStyles[orientation];\n if (isFirst) return firstItemRadiusStyles[orientation];\n if (isLast) return lastItemStyles[orientation];\n return middleItemStyles[orientation];\n}\n\n/** Direct children must be Bolerish buttons or components that forward xstyle. Fragments and native elements are not styled as group items. */\nexport type ButtonGroupProps = StyledProps<ComponentProps<\"div\">> & StyleProps & {\n orientation?: \"horizontal\" | \"vertical\";\n};\nexport function ButtonGroup(t0) {\n const $ = _c(22);\n let children;\n let className;\n let props;\n let role;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n children,\n orientation: t1,\n role,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = props;\n $[4] = role;\n $[5] = style;\n $[6] = t1;\n $[7] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n props = $[3];\n role = $[4];\n style = $[5];\n t1 = $[6];\n xstyle = $[7];\n }\n const orientation = t1 === undefined ? \"horizontal\" : t1;\n let content;\n if ($[8] !== children || $[9] !== orientation) {\n const childItems = Children.toArray(children);\n const groupItems = childItems.filter(isGroupItem);\n let position = -1;\n content = [];\n for (const child of childItems) {\n if (!isGroupItem(child)) {\n content.push(child);\n continue;\n }\n position = position + 1;\n const isFirst = position === 0;\n const isLast = position === groupItems.length - 1;\n content.push(cloneElement(child, {\n xstyle: [styles.item, itemOrientationStyles[orientation], isFirst && firstItemStyles[orientation], getItemPositionStyle(orientation, isFirst, isLast), child.props.xstyle]\n }));\n }\n $[8] = children;\n $[9] = orientation;\n $[10] = content;\n } else {\n content = $[10];\n }\n const t2 = role ?? \"group\";\n let t3;\n if ($[11] !== className || $[12] !== orientation || $[13] !== style || $[14] !== xstyle) {\n t3 = mergeStyles(stylex.props(styles.root, orientationStyles[orientation], xstyle), className, style);\n $[11] = className;\n $[12] = orientation;\n $[13] = style;\n $[14] = xstyle;\n $[15] = t3;\n } else {\n t3 = $[15];\n }\n let t4;\n if ($[16] !== content || $[17] !== orientation || $[18] !== props || $[19] !== t2 || $[20] !== t3) {\n t4 = <div {...props} data-orientation={orientation} role={t2} {...t3}>{content}</div>;\n $[16] = content;\n $[17] = orientation;\n $[18] = props;\n $[19] = t2;\n $[20] = t3;\n $[21] = t4;\n } else {\n t4 = $[21];\n }\n return t4;\n}\nexport function ButtonGroupText(t0) {\n const $ = _c(12);\n let className;\n let props;\n let style;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = className;\n $[2] = props;\n $[3] = style;\n $[4] = xstyle;\n } else {\n className = $[1];\n props = $[2];\n style = $[3];\n xstyle = $[4];\n }\n let t1;\n if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {\n t1 = mergeStyles(stylex.props(styles.text, surfaceStyles.control, xstyle), className, style);\n $[5] = className;\n $[6] = style;\n $[7] = xstyle;\n $[8] = t1;\n } else {\n t1 = $[8];\n }\n let t2;\n if ($[9] !== props || $[10] !== t1) {\n t2 = <span {...props} {...t1} />;\n $[9] = props;\n $[10] = t1;\n $[11] = t2;\n } else {\n t2 = $[11];\n }\n return t2;\n}\nexport function ButtonGroupSeparator(t0) {\n const $ = _c(10);\n let props;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n orientation: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = props;\n $[2] = t1;\n $[3] = xstyle;\n } else {\n props = $[1];\n t1 = $[2];\n xstyle = $[3];\n }\n const orientation = t1 === undefined ? \"vertical\" : t1;\n let t2;\n if ($[4] !== xstyle) {\n t2 = [styles.separator, xstyle];\n $[4] = xstyle;\n $[5] = t2;\n } else {\n t2 = $[5];\n }\n let t3;\n if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {\n t3 = <Separator {...props} orientation={orientation} xstyle={t2} />;\n $[6] = orientation;\n $[7] = props;\n $[8] = t2;\n $[9] = t3;\n } else {\n t3 = $[9];\n }\n return t3;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const surfaceStyles = {\n edge: {\n kVAM5u: \"x1kqtvf4\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n panel: {\n kWkggS: \"xcc0o6n\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n control: {\n kWkggS: \"xcc0o6n\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n subtle: {\n kWkggS: \"xmqg8ag\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n outline: {\n kWkggS: \"x1ail9j1\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n raised: {\n kWkggS: \"xssngo0\",\n kGVxlE: \"x1wlfqej\",\n kO6drA: \"x9yvj25\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n floating: {\n kWkggS: \"xssngo0\",\n kGVxlE: \"xms81ks\",\n kO6drA: \"x9yvj25\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n }\n};"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;AACxB,SAAS,UAAU,UAAU,cAA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,EAAE,CAAC;AAAA,EACV;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["props"]
|
|
7
7
|
}
|
package/dist/button.js
CHANGED
|
@@ -19,95 +19,51 @@ function mergeStyles(base, className, style) {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// src/styles/surface.ts
|
|
22
|
-
var
|
|
22
|
+
var surfaceStyles = {
|
|
23
23
|
edge: {
|
|
24
|
-
kVAM5u: "x1kqtvf4
|
|
25
|
-
kCdVP6: "x14oh5tl",
|
|
24
|
+
kVAM5u: "x1kqtvf4",
|
|
26
25
|
kFGkbq: "x1w1tqly",
|
|
27
26
|
$$css: true
|
|
28
27
|
},
|
|
29
|
-
material: {
|
|
30
|
-
"--bolerish-material-sheen": "x1kahndp",
|
|
31
|
-
"--bolerish-material-shadow": "xvd6nka",
|
|
32
|
-
kGVxlE: "x16ifxj2 xznghud",
|
|
33
|
-
kWkggS: "x1s4uome xphjgqo",
|
|
34
|
-
keRtuK: "xs1r7gh x1laxs1",
|
|
35
|
-
k6WDB: "x1t853zo x2e8en7",
|
|
36
|
-
kKwaWg: "x18o3ruo x1yv3zlm",
|
|
37
|
-
kTahiY: "x1cg02ou",
|
|
38
|
-
kK1uS5: "x1pe93vg",
|
|
39
|
-
kEcs6k: "x11rvarm",
|
|
40
|
-
kWrjR8: "x1ile18z",
|
|
41
|
-
kfloDl: "x1m3y3zz",
|
|
42
|
-
kO6drA: "x9yvj25",
|
|
43
|
-
kYe61M: "xiccrwd",
|
|
44
|
-
kkTUmj: "x14hm74v",
|
|
45
|
-
k11ilZ: "xhobzj1",
|
|
46
|
-
ktzNWN: "xwaqzdf",
|
|
47
|
-
$$css: true
|
|
48
|
-
},
|
|
49
28
|
panel: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"--bolerish-material-filter": "x1n6mwez",
|
|
29
|
+
kWkggS: "xcc0o6n",
|
|
30
|
+
kO6drA: "x9yvj25",
|
|
53
31
|
$$css: true
|
|
54
32
|
},
|
|
55
33
|
control: {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
59
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
34
|
+
kWkggS: "xcc0o6n",
|
|
35
|
+
kO6drA: "x9yvj25",
|
|
60
36
|
$$css: true
|
|
61
37
|
},
|
|
62
38
|
subtle: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
66
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
39
|
+
kWkggS: "xmqg8ag",
|
|
40
|
+
kO6drA: "x9yvj25",
|
|
67
41
|
$$css: true
|
|
68
42
|
},
|
|
69
43
|
outline: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"--bolerish-material-opacity": "xg4j6g8",
|
|
73
|
-
"--bolerish-material-filter": "x1mpfm11",
|
|
44
|
+
kWkggS: "x1ail9j1",
|
|
45
|
+
kO6drA: "x9yvj25",
|
|
74
46
|
$$css: true
|
|
75
47
|
},
|
|
76
48
|
raised: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
$$css: true
|
|
82
|
-
},
|
|
83
|
-
translucent: {
|
|
84
|
-
"--bolerish-material-color": "x14zkn9l",
|
|
85
|
-
"--bolerish-material-opacity": "xoh9gux",
|
|
86
|
-
"--bolerish-material-filter": "xhu24am",
|
|
49
|
+
kWkggS: "xssngo0",
|
|
50
|
+
kGVxlE: "x1wlfqej",
|
|
51
|
+
kO6drA: "x9yvj25",
|
|
52
|
+
ktzNWN: "xwaqzdf",
|
|
87
53
|
$$css: true
|
|
88
54
|
},
|
|
89
55
|
floating: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
56
|
+
kWkggS: "xssngo0",
|
|
57
|
+
kGVxlE: "xms81ks",
|
|
58
|
+
kO6drA: "x9yvj25",
|
|
59
|
+
ktzNWN: "xwaqzdf",
|
|
94
60
|
$$css: true
|
|
95
61
|
}
|
|
96
62
|
};
|
|
97
|
-
var surfaceStyles = {
|
|
98
|
-
edge: styles.edge,
|
|
99
|
-
panel: [styles.material, styles.panel],
|
|
100
|
-
control: [styles.material, styles.control],
|
|
101
|
-
subtle: [styles.material, styles.subtle],
|
|
102
|
-
outline: [styles.material, styles.outline],
|
|
103
|
-
raised: [styles.material, styles.raised],
|
|
104
|
-
translucent: [styles.material, styles.translucent],
|
|
105
|
-
floating: [styles.material, styles.floating]
|
|
106
|
-
};
|
|
107
63
|
|
|
108
64
|
// src/button.tsx
|
|
109
65
|
import { jsx } from "react/jsx-runtime";
|
|
110
|
-
var
|
|
66
|
+
var styles = {
|
|
111
67
|
root: {
|
|
112
68
|
kGNEyG: "x6s0dn4",
|
|
113
69
|
kysU6D: "xjyslct",
|
|
@@ -119,7 +75,7 @@ var styles2 = {
|
|
|
119
75
|
k63SB2: "xoop9yj",
|
|
120
76
|
kOIVth: "x136xbx3",
|
|
121
77
|
kHBbk8: "xc8icb0",
|
|
122
|
-
kLWn49: "
|
|
78
|
+
kLWn49: "xipl0i2",
|
|
123
79
|
kI3sdo: "x1a2a7pz",
|
|
124
80
|
kVQacm: "xb3r6kr",
|
|
125
81
|
kVAEAm: "x1n2onr6",
|
|
@@ -149,6 +105,10 @@ var styles2 = {
|
|
|
149
105
|
ks3ayO: "x17ctvpv",
|
|
150
106
|
$$css: true
|
|
151
107
|
},
|
|
108
|
+
destructiveInteraction: {
|
|
109
|
+
ks3ayO: "x17ctvpv x1t6cu6z x1diol45",
|
|
110
|
+
$$css: true
|
|
111
|
+
},
|
|
152
112
|
solidInteraction: {
|
|
153
113
|
ks3ayO: "x17ctvpv x1pcu9v8 xy53125",
|
|
154
114
|
$$css: true
|
|
@@ -195,25 +155,25 @@ var alignStyles = {
|
|
|
195
155
|
};
|
|
196
156
|
var sizeStyles = {
|
|
197
157
|
sm: {
|
|
198
|
-
kaIpWk: "
|
|
158
|
+
kaIpWk: "x9up7g5",
|
|
199
159
|
kZKoxP: "x1dvwle6",
|
|
200
160
|
kg3NbH: "x5044ve",
|
|
201
161
|
$$css: true
|
|
202
162
|
},
|
|
203
163
|
md: {
|
|
204
|
-
kaIpWk: "
|
|
164
|
+
kaIpWk: "xf5ntmx",
|
|
205
165
|
kZKoxP: "x1f00wt4",
|
|
206
166
|
kg3NbH: "x9eqyeb",
|
|
207
167
|
$$css: true
|
|
208
168
|
},
|
|
209
169
|
lg: {
|
|
210
|
-
kaIpWk: "
|
|
170
|
+
kaIpWk: "xf5ntmx",
|
|
211
171
|
kZKoxP: "x4rnblq",
|
|
212
172
|
kg3NbH: "x1tswxol",
|
|
213
173
|
$$css: true
|
|
214
174
|
},
|
|
215
175
|
icon: {
|
|
216
|
-
kaIpWk: "
|
|
176
|
+
kaIpWk: "xf5ntmx",
|
|
217
177
|
kZKoxP: "x1f00wt4",
|
|
218
178
|
kg3NbH: "xnjsko4",
|
|
219
179
|
kzqmXN: "x18pndxb",
|
|
@@ -247,7 +207,7 @@ var variantStyles = {
|
|
|
247
207
|
},
|
|
248
208
|
destructive: {
|
|
249
209
|
kWkggS: "xezvvoc",
|
|
250
|
-
kVAM5u: "
|
|
210
|
+
kVAM5u: "x1p2lc83",
|
|
251
211
|
kMwMTN: "xppjnsa",
|
|
252
212
|
$$css: true
|
|
253
213
|
}
|
|
@@ -337,7 +297,7 @@ function Button(t0) {
|
|
|
337
297
|
const hasSolidBackground = variant === "primary" || variant === "destructive";
|
|
338
298
|
let t5;
|
|
339
299
|
if ($[11] !== align || $[12] !== className || $[13] !== disabled || $[14] !== hasSolidBackground || $[15] !== isStandardSize || $[16] !== shape || $[17] !== shapeWidth || $[18] !== size || $[19] !== style || $[20] !== variant || $[21] !== xstyle) {
|
|
340
|
-
t5 = mergeStyles(stylex.props(
|
|
300
|
+
t5 = mergeStyles(stylex.props(styles.root, alignStyles[align], variantStyles[variant], !disabled && variant === "secondary" && surfaceStyles.subtle, !disabled && variant === "outline" && surfaceStyles.outline, sizeStyles[size], !isStandardSize && styles.iconContent, shapeStyles[shape], shapeWidth, hasSolidBackground ? styles.solidInteraction : styles.surfaceInteraction, variant === "primary" && styles.primaryInteraction, variant === "destructive" && styles.destructiveInteraction, disabled && styles.disabled, disabled && variant === "ghost" && styles.disabledGhost, xstyle), className, style);
|
|
341
301
|
$[11] = align;
|
|
342
302
|
$[12] = className;
|
|
343
303
|
$[13] = disabled;
|
package/dist/button.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/button.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Button as ButtonPrimitive } from \"@base-ui/react/button\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps, ReactNode } from \"react\";\nimport type { ControlLayoutStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kysU6D: \"xjyslct\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kOIVth: \"x136xbx3\",\n kHBbk8: \"xc8icb0\",\n kLWn49: \"x15rnifv\",\n kI3sdo: \"x1a2a7pz\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x1n2onr6\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x1qsmvhx\",\n kAMwcw: \"xrkjf8i\",\n kfSwDN: \"x87ps6o\",\n khDVqt: \"xuxw1ft\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1m0b1kh\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kYPGJ8: \"x1s07b3s\",\n ks3ayO: \"x17ctvpv\",\n k5JduY: \"x1s928wv\",\n kv0HGH: \"xarstr8\",\n kloYau: \"x2q1x1w\",\n kwXMNM: \"x1j6awrg\",\n kPNhGg: \"x1byudbu\",\n kRicXK: \"x1ywzrc5\",\n kA8PQs: \"xe2lpi4\",\n kDVEDD: \"xi4xitw\",\n $$css: true\n },\n primaryInteraction: {\n kWkggS: \"x1k98rc1 xgmwful x1bbutf3\",\n ks3ayO: \"x17ctvpv\",\n $$css: true\n },\n solidInteraction: {\n ks3ayO: \"x17ctvpv x1pcu9v8 xy53125\",\n $$css: true\n },\n surfaceInteraction: {\n ks3ayO: \"x17ctvpv x1l7l6la x1b6uf5z\",\n $$css: true\n },\n iconContent: {\n kOIVth: \"xxhr3t\",\n kgeoSG: \"x12vebyb\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xx34gk8\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"xdmzwdx\",\n ks3ayO: \"x17ctvpv\",\n $$css: true\n },\n disabledGhost: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1p2lc83\",\n $$css: true\n }\n};\nconst alignStyles = {\n start: {\n kjj79g: \"x1nhvcw1\",\n $$css: true\n },\n center: {\n kjj79g: \"xl56j7k\",\n $$css: true\n },\n end: {\n kjj79g: \"x13a6bvl\",\n $$css: true\n },\n \"space-between\": {\n kjj79g: \"x1qughib\",\n $$css: true\n }\n};\nconst sizeStyles = {\n sm: {\n kaIpWk: \"x1p5vitp\",\n kZKoxP: \"x1dvwle6\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n md: {\n kaIpWk: \"x1p5vitp\",\n kZKoxP: \"x1f00wt4\",\n kg3NbH: \"x9eqyeb\",\n $$css: true\n },\n lg: {\n kaIpWk: \"x1p5vitp\",\n kZKoxP: \"x4rnblq\",\n kg3NbH: \"x1tswxol\",\n $$css: true\n },\n icon: {\n kaIpWk: \"x1p5vitp\",\n kZKoxP: \"x1f00wt4\",\n kg3NbH: \"xnjsko4\",\n kzqmXN: \"x18pndxb\",\n $$css: true\n }\n};\nconst variantStyles = {\n primary: {\n kWkggS: \"x1k98rc1\",\n kVAM5u: \"x1lpgi1j\",\n kMwMTN: \"x8p6z4r\",\n $$css: true\n },\n secondary: {\n kWkggS: \"xmqg8ag\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n outline: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n ghost: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1p2lc83\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n destructive: {\n kWkggS: \"xezvvoc\",\n kVAM5u: \"x18a8tw4\",\n kMwMTN: \"xppjnsa\",\n $$css: true\n }\n};\nconst shapeStyles = {\n default: {\n $$css: true\n },\n square: {\n kg3NbH: \"xnjsko4\",\n $$css: true\n },\n circle: {\n kaIpWk: \"xwhwt5f\",\n kg3NbH: \"xnjsko4\",\n $$css: true\n }\n};\nconst squareStyles = {\n sm: {\n kzqmXN: \"x1g37zm5\",\n $$css: true\n },\n md: {\n kzqmXN: \"x18pndxb\",\n $$css: true\n },\n lg: {\n kzqmXN: \"x16zkcgh\",\n $$css: true\n }\n};\ntype ButtonVariant = \"primary\" | \"secondary\" | \"outline\" | \"ghost\" | \"destructive\";\ntype ButtonSize = \"sm\" | \"md\" | \"lg\" | \"icon\";\ntype AccessibleButtonName = {\n \"aria-label\": string;\n} | {\n \"aria-labelledby\": string;\n};\nexport type ButtonProps = StyledProps<ComponentProps<typeof ButtonPrimitive>> & {\n align?: \"start\" | \"center\" | \"end\" | \"space-between\";\n children: ReactNode;\n /** Use size=\"icon\" for icon-only buttons, and add an accessible name. */\n shape?: \"default\" | \"square\" | \"circle\";\n variant?: ButtonVariant;\n xstyle?: ControlLayoutStyles;\n} & ({\n size?: Exclude<ButtonSize, \"icon\">;\n} | ({\n size: ButtonSize;\n} & AccessibleButtonName));\nexport function Button(t0) {\n const $ = _c(28);\n let children;\n let className;\n let disabled;\n let props;\n let style;\n let t1;\n let t2;\n let t3;\n let t4;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n align: t1,\n children,\n disabled,\n size: t2,\n shape: t3,\n variant: t4,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = disabled;\n $[4] = props;\n $[5] = style;\n $[6] = t1;\n $[7] = t2;\n $[8] = t3;\n $[9] = t4;\n $[10] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n disabled = $[3];\n props = $[4];\n style = $[5];\n t1 = $[6];\n t2 = $[7];\n t3 = $[8];\n t4 = $[9];\n xstyle = $[10];\n }\n const align = t1 === undefined ? \"center\" : t1;\n const size = t2 === undefined ? \"md\" : t2;\n const shape = t3 === undefined ? \"default\" : t3;\n const variant = t4 === undefined ? \"primary\" : t4;\n const isStandardSize = size === \"sm\" || size === \"md\" || size === \"lg\";\n const shapeWidth = isStandardSize && shape !== \"default\" && squareStyles[size];\n const hasSolidBackground = variant === \"primary\" || variant === \"destructive\";\n let t5;\n if ($[11] !== align || $[12] !== className || $[13] !== disabled || $[14] !== hasSolidBackground || $[15] !== isStandardSize || $[16] !== shape || $[17] !== shapeWidth || $[18] !== size || $[19] !== style || $[20] !== variant || $[21] !== xstyle) {\n t5 = mergeStyles(stylex.props(styles.root, alignStyles[align], variantStyles[variant], !disabled && variant === \"secondary\" && surfaceStyles.subtle, !disabled && variant === \"outline\" && surfaceStyles.outline, sizeStyles[size], !isStandardSize && styles.iconContent, shapeStyles[shape], shapeWidth, hasSolidBackground ? styles.solidInteraction : styles.surfaceInteraction, variant === \"primary\" && styles.primaryInteraction, disabled && styles.disabled, disabled && variant === \"ghost\" && styles.disabledGhost, xstyle), className, style);\n $[11] = align;\n $[12] = className;\n $[13] = disabled;\n $[14] = hasSolidBackground;\n $[15] = isStandardSize;\n $[16] = shape;\n $[17] = shapeWidth;\n $[18] = size;\n $[19] = style;\n $[20] = variant;\n $[21] = xstyle;\n $[22] = t5;\n } else {\n t5 = $[22];\n }\n let t6;\n if ($[23] !== children || $[24] !== disabled || $[25] !== props || $[26] !== t5) {\n t6 = <ButtonPrimitive {...props} disabled={disabled} {...t5}>{children}</ButtonPrimitive>;\n $[23] = children;\n $[24] = disabled;\n $[25] = props;\n $[26] = t5;\n $[27] = t6;\n } else {\n t6 = $[27];\n }\n return t6;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nconst styles = {\n edge: {\n kVAM5u: \"x1kqtvf4 xqr73hj\",\n kCdVP6: \"x14oh5tl\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-sheen\": \"x1kahndp\",\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xznghud\",\n kWkggS: \"x1s4uome xphjgqo\",\n keRtuK: \"xs1r7gh x1laxs1\",\n k6WDB: \"x1t853zo x2e8en7\",\n kKwaWg: \"x18o3ruo x1yv3zlm\",\n kTahiY: \"x1cg02ou\",\n kK1uS5: \"x1pe93vg\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\n kYe61M: \"xiccrwd\",\n kkTUmj: \"x14hm74v\",\n k11ilZ: \"xhobzj1\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n panel: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"x8fe23t\",\n \"--bolerish-material-filter\": \"x1n6mwez\",\n $$css: true\n },\n control: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\n \"--bolerish-material-sheen\": \"xxptk9s\",\n \"--bolerish-material-color\": \"x3m3fbl\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n raised: {\n \"--bolerish-material-shadow\": \"x1l9gcvt\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x1nqk09\",\n \"--bolerish-material-filter\": \"x1gkvbmm\",\n $$css: true\n },\n translucent: {\n \"--bolerish-material-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xoh9gux\",\n \"--bolerish-material-filter\": \"xhu24am\",\n $$css: true\n },\n floating: {\n \"--bolerish-material-shadow\": \"xu02b4h\",\n \"--bolerish-material-color\": \"x1y5ilfp\",\n \"--bolerish-material-opacity\": \"x14p89z6\",\n \"--bolerish-material-filter\": \"xunhrho\",\n $$css: true\n }\n};\nexport const surfaceStyles = {\n edge: styles.edge,\n panel: [styles.material, styles.panel],\n control: [styles.material, styles.control],\n subtle: [styles.material, styles.subtle],\n outline: [styles.material, styles.outline],\n raised: [styles.material, styles.raised],\n translucent: [styles.material, styles.translucent],\n floating: [styles.material, styles.floating]\n};"],
|
|
5
|
-
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAE1C,YAAY,YAAY;;;ACCjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Button as ButtonPrimitive } from \"@base-ui/react/button\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps, ReactNode } from \"react\";\nimport type { ControlLayoutStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kysU6D: \"xjyslct\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kkrTdU: \"x1ypdohk\",\n k1xSpc: \"x3nfvp2\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kOIVth: \"x136xbx3\",\n kHBbk8: \"xc8icb0\",\n kLWn49: \"xipl0i2\",\n kI3sdo: \"x1a2a7pz\",\n kVQacm: \"xb3r6kr\",\n kVAEAm: \"x1n2onr6\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x1qsmvhx\",\n kAMwcw: \"xrkjf8i\",\n kfSwDN: \"x87ps6o\",\n khDVqt: \"xuxw1ft\",\n kZs9gx: \"x768paa\",\n kiEn40: \"x1m0b1kh\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kYPGJ8: \"x1s07b3s\",\n ks3ayO: \"x17ctvpv\",\n k5JduY: \"x1s928wv\",\n kv0HGH: \"xarstr8\",\n kloYau: \"x2q1x1w\",\n kwXMNM: \"x1j6awrg\",\n kPNhGg: \"x1byudbu\",\n kRicXK: \"x1ywzrc5\",\n kA8PQs: \"xe2lpi4\",\n kDVEDD: \"xi4xitw\",\n $$css: true\n },\n primaryInteraction: {\n kWkggS: \"x1k98rc1 xgmwful x1bbutf3\",\n ks3ayO: \"x17ctvpv\",\n $$css: true\n },\n destructiveInteraction: {\n ks3ayO: \"x17ctvpv x1t6cu6z x1diol45\",\n $$css: true\n },\n solidInteraction: {\n ks3ayO: \"x17ctvpv x1pcu9v8 xy53125\",\n $$css: true\n },\n surfaceInteraction: {\n ks3ayO: \"x17ctvpv x1l7l6la x1b6uf5z\",\n $$css: true\n },\n iconContent: {\n kOIVth: \"xxhr3t\",\n kgeoSG: \"x12vebyb\",\n $$css: true\n },\n disabled: {\n kWkggS: \"xx34gk8\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"xdmzwdx\",\n ks3ayO: \"x17ctvpv\",\n $$css: true\n },\n disabledGhost: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1p2lc83\",\n $$css: true\n }\n};\nconst alignStyles = {\n start: {\n kjj79g: \"x1nhvcw1\",\n $$css: true\n },\n center: {\n kjj79g: \"xl56j7k\",\n $$css: true\n },\n end: {\n kjj79g: \"x13a6bvl\",\n $$css: true\n },\n \"space-between\": {\n kjj79g: \"x1qughib\",\n $$css: true\n }\n};\nconst sizeStyles = {\n sm: {\n kaIpWk: \"x9up7g5\",\n kZKoxP: \"x1dvwle6\",\n kg3NbH: \"x5044ve\",\n $$css: true\n },\n md: {\n kaIpWk: \"xf5ntmx\",\n kZKoxP: \"x1f00wt4\",\n kg3NbH: \"x9eqyeb\",\n $$css: true\n },\n lg: {\n kaIpWk: \"xf5ntmx\",\n kZKoxP: \"x4rnblq\",\n kg3NbH: \"x1tswxol\",\n $$css: true\n },\n icon: {\n kaIpWk: \"xf5ntmx\",\n kZKoxP: \"x1f00wt4\",\n kg3NbH: \"xnjsko4\",\n kzqmXN: \"x18pndxb\",\n $$css: true\n }\n};\nconst variantStyles = {\n primary: {\n kWkggS: \"x1k98rc1\",\n kVAM5u: \"x1lpgi1j\",\n kMwMTN: \"x8p6z4r\",\n $$css: true\n },\n secondary: {\n kWkggS: \"xmqg8ag\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n outline: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1kqtvf4\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n ghost: {\n kWkggS: \"x1ail9j1\",\n kVAM5u: \"x1p2lc83\",\n kMwMTN: \"x1t28c4i\",\n $$css: true\n },\n destructive: {\n kWkggS: \"xezvvoc\",\n kVAM5u: \"x1p2lc83\",\n kMwMTN: \"xppjnsa\",\n $$css: true\n }\n};\nconst shapeStyles = {\n default: {\n $$css: true\n },\n square: {\n kg3NbH: \"xnjsko4\",\n $$css: true\n },\n circle: {\n kaIpWk: \"xwhwt5f\",\n kg3NbH: \"xnjsko4\",\n $$css: true\n }\n};\nconst squareStyles = {\n sm: {\n kzqmXN: \"x1g37zm5\",\n $$css: true\n },\n md: {\n kzqmXN: \"x18pndxb\",\n $$css: true\n },\n lg: {\n kzqmXN: \"x16zkcgh\",\n $$css: true\n }\n};\ntype ButtonVariant = \"primary\" | \"secondary\" | \"outline\" | \"ghost\" | \"destructive\";\ntype ButtonSize = \"sm\" | \"md\" | \"lg\" | \"icon\";\ntype AccessibleButtonName = {\n \"aria-label\": string;\n} | {\n \"aria-labelledby\": string;\n};\nexport type ButtonProps = StyledProps<ComponentProps<typeof ButtonPrimitive>> & {\n align?: \"start\" | \"center\" | \"end\" | \"space-between\";\n children: ReactNode;\n /** Use size=\"icon\" for icon-only buttons, and add an accessible name. */\n shape?: \"default\" | \"square\" | \"circle\";\n variant?: ButtonVariant;\n xstyle?: ControlLayoutStyles;\n} & ({\n size?: Exclude<ButtonSize, \"icon\">;\n} | ({\n size: ButtonSize;\n} & AccessibleButtonName));\nexport function Button(t0) {\n const $ = _c(28);\n let children;\n let className;\n let disabled;\n let props;\n let style;\n let t1;\n let t2;\n let t3;\n let t4;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n align: t1,\n children,\n disabled,\n size: t2,\n shape: t3,\n variant: t4,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = disabled;\n $[4] = props;\n $[5] = style;\n $[6] = t1;\n $[7] = t2;\n $[8] = t3;\n $[9] = t4;\n $[10] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n disabled = $[3];\n props = $[4];\n style = $[5];\n t1 = $[6];\n t2 = $[7];\n t3 = $[8];\n t4 = $[9];\n xstyle = $[10];\n }\n const align = t1 === undefined ? \"center\" : t1;\n const size = t2 === undefined ? \"md\" : t2;\n const shape = t3 === undefined ? \"default\" : t3;\n const variant = t4 === undefined ? \"primary\" : t4;\n const isStandardSize = size === \"sm\" || size === \"md\" || size === \"lg\";\n const shapeWidth = isStandardSize && shape !== \"default\" && squareStyles[size];\n const hasSolidBackground = variant === \"primary\" || variant === \"destructive\";\n let t5;\n if ($[11] !== align || $[12] !== className || $[13] !== disabled || $[14] !== hasSolidBackground || $[15] !== isStandardSize || $[16] !== shape || $[17] !== shapeWidth || $[18] !== size || $[19] !== style || $[20] !== variant || $[21] !== xstyle) {\n t5 = mergeStyles(stylex.props(styles.root, alignStyles[align], variantStyles[variant], !disabled && variant === \"secondary\" && surfaceStyles.subtle, !disabled && variant === \"outline\" && surfaceStyles.outline, sizeStyles[size], !isStandardSize && styles.iconContent, shapeStyles[shape], shapeWidth, hasSolidBackground ? styles.solidInteraction : styles.surfaceInteraction, variant === \"primary\" && styles.primaryInteraction, variant === \"destructive\" && styles.destructiveInteraction, disabled && styles.disabled, disabled && variant === \"ghost\" && styles.disabledGhost, xstyle), className, style);\n $[11] = align;\n $[12] = className;\n $[13] = disabled;\n $[14] = hasSolidBackground;\n $[15] = isStandardSize;\n $[16] = shape;\n $[17] = shapeWidth;\n $[18] = size;\n $[19] = style;\n $[20] = variant;\n $[21] = xstyle;\n $[22] = t5;\n } else {\n t5 = $[22];\n }\n let t6;\n if ($[23] !== children || $[24] !== disabled || $[25] !== props || $[26] !== t5) {\n t6 = <ButtonPrimitive {...props} disabled={disabled} {...t5}>{children}</ButtonPrimitive>;\n $[23] = children;\n $[24] = disabled;\n $[25] = props;\n $[26] = t5;\n $[27] = t6;\n } else {\n t6 = $[27];\n }\n return t6;\n}", "import type * as stylex from \"@stylexjs/stylex\";\nimport type { CSSProperties } from \"react\";\nexport type StyledProps<Props> = Props extends unknown ? Omit<Props, \"className\" | \"style\"> & {\n className?: string;\n style?: CSSProperties;\n} : never;\nexport function mergeStyles(base: ReturnType<typeof stylex.props>, className?: string, style?: CSSProperties): {\n className?: string;\n style?: CSSProperties;\n} {\n if (className === undefined && style === undefined) return base;\n return {\n ...base,\n className: [base.className, className].filter(Boolean).join(\" \") || undefined,\n style: base.style || style ? {\n ...base.style,\n ...style\n } : undefined\n };\n}", "import { colorVars, shadowVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const surfaceStyles = {\n edge: {\n kVAM5u: \"x1kqtvf4\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n panel: {\n kWkggS: \"xcc0o6n\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n control: {\n kWkggS: \"xcc0o6n\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n subtle: {\n kWkggS: \"xmqg8ag\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n outline: {\n kWkggS: \"x1ail9j1\",\n kO6drA: \"x9yvj25\",\n $$css: true\n },\n raised: {\n kWkggS: \"xssngo0\",\n kGVxlE: \"x1wlfqej\",\n kO6drA: \"x9yvj25\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n },\n floating: {\n kWkggS: \"xssngo0\",\n kGVxlE: \"xms81ks\",\n kO6drA: \"x9yvj25\",\n ktzNWN: \"xwaqzdf\",\n $$css: true\n }\n};"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,UAAU,uBAAuB;AAE1C,YAAY,YAAY;;;ACCjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,CAAC,KAAK,WAAW,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,KAAK;AAAA,IACpE,OAAO,KAAK,SAAS,QAAQ;AAAA,MAC3B,GAAG,KAAK;AAAA,MACR,GAAG;AAAA,IACL,IAAI;AAAA,EACN;AACF;;;ACjBO,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAA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