@bolerish/ui 0.12.0 → 0.15.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.
- package/dist/_tokens.js.map +1 -1
- package/dist/alert-dialog.js +69 -17
- package/dist/alert-dialog.js.map +3 -3
- package/dist/attachment.js +89 -10
- package/dist/attachment.js.map +4 -4
- package/dist/button-group.js +87 -8
- package/dist/button-group.js.map +4 -4
- package/dist/button.d.ts +12 -4
- package/dist/button.js +82 -31
- package/dist/button.js.map +4 -4
- package/dist/calendar.js +18 -13
- package/dist/calendar.js.map +2 -2
- package/dist/card.js +70 -18
- package/dist/card.js.map +3 -3
- package/dist/carousel.d.ts +2 -2
- package/dist/carousel.js +78 -43
- package/dist/carousel.js.map +2 -2
- package/dist/combobox.d.ts +2 -1
- package/dist/combobox.js +140 -77
- package/dist/combobox.js.map +3 -3
- package/dist/date-picker.js +152 -37
- package/dist/date-picker.js.map +4 -4
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +69 -17
- package/dist/dialog.js.map +3 -3
- package/dist/drawer.js +73 -21
- package/dist/drawer.js.map +3 -3
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +77 -21
- package/dist/dropdown-menu.js.map +3 -3
- package/dist/global.css +28 -0
- package/dist/gradient.d.ts +11 -0
- package/dist/gradient.js +34 -0
- package/dist/gradient.js.map +7 -0
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +66 -14
- package/dist/hover-card.js.map +3 -3
- package/dist/index.d.ts +4 -2
- package/dist/index.js +17 -15
- package/dist/index.js.map +2 -2
- package/dist/input-group.d.ts +1 -1
- package/dist/input-group.js +111 -44
- package/dist/input-group.js.map +4 -4
- package/dist/input-otp.js +85 -6
- package/dist/input-otp.js.map +4 -4
- package/dist/input.d.ts +1 -1
- package/dist/input.js +122 -17
- package/dist/input.js.map +4 -4
- package/dist/item.d.ts +32 -0
- package/dist/{content-row.js → item.js} +103 -24
- package/dist/item.js.map +7 -0
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.js +66 -14
- package/dist/menubar.js.map +3 -3
- package/dist/native-select.js +102 -22
- package/dist/native-select.js.map +4 -4
- package/dist/navigation-menu.js +71 -19
- package/dist/navigation-menu.js.map +3 -3
- package/dist/pagination.js +2 -0
- package/dist/pagination.js.map +2 -2
- package/dist/popover.js +70 -16
- package/dist/popover.js.map +3 -3
- package/dist/select.js +75 -18
- package/dist/select.js.map +3 -3
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +60 -48
- package/dist/slider.js.map +2 -2
- package/dist/styles/surface.d.ts +152 -13
- package/dist/stylex.css +236 -44
- package/dist/textarea.js +81 -2
- package/dist/textarea.js.map +4 -4
- package/dist/theme.js +2 -2
- package/dist/theme.js.map +1 -1
- package/dist/toast.d.ts +3 -1
- package/dist/toast.js +127 -61
- package/dist/toast.js.map +3 -3
- package/dist/toggle-group.js +83 -4
- package/dist/toggle-group.js.map +4 -4
- package/dist/toggle.js +81 -2
- package/dist/toggle.js.map +4 -4
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +85 -2
- package/dist/tooltip.js.map +4 -4
- package/package.json +12 -13
- package/configuration_schema.json +0 -105
- package/dist/cli.js +0 -6
- package/dist/cli.js.map +0 -7
- package/dist/content-row.d.ts +0 -32
- package/dist/content-row.js.map +0 -7
package/dist/input.js
CHANGED
|
@@ -18,10 +18,90 @@ function mergeStyles(base, className, style) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
// src/styles/surface.ts
|
|
22
|
+
var styles = {
|
|
23
|
+
edge: {
|
|
24
|
+
kVAM5u: "x1kqtvf4",
|
|
25
|
+
kFGkbq: "x1w1tqly",
|
|
26
|
+
$$css: true
|
|
27
|
+
},
|
|
28
|
+
material: {
|
|
29
|
+
"--bolerish-material-shadow": "xvd6nka",
|
|
30
|
+
kGVxlE: "x16ifxj2 xpqbwuo",
|
|
31
|
+
kWkggS: "x1s4uome x1u5mdis",
|
|
32
|
+
k6WDB: "x1t853zo x1o5bnqd",
|
|
33
|
+
kKwaWg: "x18o3ruo xxit9r9",
|
|
34
|
+
kTahiY: "x1cg02ou",
|
|
35
|
+
kEcs6k: "x11rvarm",
|
|
36
|
+
kWrjR8: "x1ile18z",
|
|
37
|
+
kfloDl: "x1m3y3zz",
|
|
38
|
+
kO6drA: "x9yvj25",
|
|
39
|
+
kkTUmj: "x14hm74v",
|
|
40
|
+
k11ilZ: "xhobzj1",
|
|
41
|
+
ktzNWN: "xwaqzdf",
|
|
42
|
+
$$css: true
|
|
43
|
+
},
|
|
44
|
+
panel: {
|
|
45
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
46
|
+
"--bolerish-material-opacity": "x8fe23t",
|
|
47
|
+
"--bolerish-material-filter": "x1n6mwez",
|
|
48
|
+
$$css: true
|
|
49
|
+
},
|
|
50
|
+
control: {
|
|
51
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
52
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
53
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
54
|
+
$$css: true
|
|
55
|
+
},
|
|
56
|
+
subtle: {
|
|
57
|
+
"--bolerish-material-color": "x1819ggx",
|
|
58
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
59
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
60
|
+
$$css: true
|
|
61
|
+
},
|
|
62
|
+
outline: {
|
|
63
|
+
"--bolerish-material-color": "x3m3fbl",
|
|
64
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
65
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
66
|
+
$$css: true
|
|
67
|
+
},
|
|
68
|
+
raised: {
|
|
69
|
+
"--bolerish-material-shadow": "x8605wn",
|
|
70
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
71
|
+
"--bolerish-material-opacity": "x1nqk09",
|
|
72
|
+
"--bolerish-material-filter": "x1gkvbmm",
|
|
73
|
+
$$css: true
|
|
74
|
+
},
|
|
75
|
+
translucent: {
|
|
76
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
77
|
+
"--bolerish-material-opacity": "xoh9gux",
|
|
78
|
+
"--bolerish-material-filter": "xhu24am",
|
|
79
|
+
$$css: true
|
|
80
|
+
},
|
|
81
|
+
floating: {
|
|
82
|
+
"--bolerish-material-shadow": "x1edk1m7",
|
|
83
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
84
|
+
"--bolerish-material-opacity": "x14p89z6",
|
|
85
|
+
"--bolerish-material-filter": "xunhrho",
|
|
86
|
+
$$css: true
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var surfaceStyles = {
|
|
90
|
+
edge: styles.edge,
|
|
91
|
+
panel: [styles.material, styles.panel],
|
|
92
|
+
control: [styles.material, styles.control],
|
|
93
|
+
subtle: [styles.material, styles.subtle],
|
|
94
|
+
outline: [styles.material, styles.outline],
|
|
95
|
+
raised: [styles.material, styles.raised],
|
|
96
|
+
translucent: [styles.material, styles.translucent],
|
|
97
|
+
floating: [styles.material, styles.floating]
|
|
98
|
+
};
|
|
99
|
+
|
|
21
100
|
// src/input.tsx
|
|
22
101
|
import { jsx } from "react/jsx-runtime";
|
|
23
|
-
var
|
|
102
|
+
var styles2 = {
|
|
24
103
|
root: {
|
|
104
|
+
"--bolerish-input-focus-color": "x10nrt0v",
|
|
25
105
|
kysU6D: "xjyslct",
|
|
26
106
|
kWkggS: "xcc0o6n",
|
|
27
107
|
kVAM5u: "x1kqtvf4",
|
|
@@ -42,7 +122,7 @@ var styles = {
|
|
|
42
122
|
kzqmXN: "xh8yej3",
|
|
43
123
|
k8Qsv1: "x15njwyp",
|
|
44
124
|
kOMSMr: "x1f9m9q7",
|
|
45
|
-
kZs9gx: "
|
|
125
|
+
kZs9gx: "xyz7ihz",
|
|
46
126
|
kiEn40: "x1p3hdyt",
|
|
47
127
|
k7shQP: "x9v5kkp",
|
|
48
128
|
kPJHz1: "x1k4h2j2",
|
|
@@ -51,6 +131,7 @@ var styles = {
|
|
|
51
131
|
kWC4TW: "x1vi5fzm",
|
|
52
132
|
kYPGJ8: "x1s07b3s",
|
|
53
133
|
kqcrZL: "x8jboxv",
|
|
134
|
+
kSAT4u: "x7dg23c",
|
|
54
135
|
kHRqo9: "x1sw6lzt",
|
|
55
136
|
kO0ooq: "xdz4axu",
|
|
56
137
|
$$css: true
|
|
@@ -65,20 +146,43 @@ var styles = {
|
|
|
65
146
|
k63SB2: "x1pd3egz",
|
|
66
147
|
kLWn49: "x15bjb6t",
|
|
67
148
|
kMwMTN: "x1heor9g",
|
|
68
|
-
kZs9gx: "
|
|
149
|
+
kZs9gx: "xyz7ihz",
|
|
69
150
|
k7shQP: "x9v5kkp",
|
|
70
151
|
kPJHz1: "x1k4h2j2",
|
|
71
152
|
kiEn40: "x1p3hdyt",
|
|
72
153
|
$$css: true
|
|
73
154
|
},
|
|
155
|
+
none: {
|
|
156
|
+
kWkggS: "xjbqb8w",
|
|
157
|
+
kMzoRj: "xc342km",
|
|
158
|
+
kpYc8J: "x7vy0yh",
|
|
159
|
+
k5HO7O: "x4w8ylm",
|
|
160
|
+
kGKRwq: "x4wip10",
|
|
161
|
+
kQgVTF: "x18myw3g",
|
|
162
|
+
kYLY2K: "x1pq16l0",
|
|
163
|
+
$$css: true
|
|
164
|
+
},
|
|
165
|
+
underline: {
|
|
166
|
+
kWkggS: "xjbqb8w",
|
|
167
|
+
kaIpWk: "x2u8bby",
|
|
168
|
+
kMzoRj: "xc342km",
|
|
169
|
+
kt9PQ7: "x1ue9prv",
|
|
170
|
+
kYO7Su: "x5swq7u",
|
|
171
|
+
kEtg5x: "xm8hp6d",
|
|
172
|
+
k7shQP: "xi5y0ii",
|
|
173
|
+
kM27pR: "x34zm41",
|
|
174
|
+
kWHsjt: "x1cg32vb",
|
|
175
|
+
$$css: true
|
|
176
|
+
},
|
|
74
177
|
invalid: {
|
|
178
|
+
"--bolerish-input-focus-color": "xnholtd",
|
|
75
179
|
kVAM5u: "x165btzp",
|
|
76
180
|
kZs9gx: "x1rovn1u",
|
|
77
181
|
$$css: true
|
|
78
182
|
}
|
|
79
183
|
};
|
|
80
184
|
function Input(t0) {
|
|
81
|
-
const $ = _c(
|
|
185
|
+
const $ = _c(18);
|
|
82
186
|
let ariaInvalid;
|
|
83
187
|
let className;
|
|
84
188
|
let props2;
|
|
@@ -112,26 +216,27 @@ function Input(t0) {
|
|
|
112
216
|
const variant = t1 === void 0 ? "outline" : t1;
|
|
113
217
|
const isInvalid = ariaInvalid === true || ariaInvalid === "true";
|
|
114
218
|
let t2;
|
|
115
|
-
if ($[7] !== className || $[8] !== isInvalid || $[9] !==
|
|
116
|
-
t2 = mergeStyles(stylex.props(
|
|
219
|
+
if ($[7] !== className || $[8] !== isInvalid || $[9] !== props2 || $[10] !== style || $[11] !== variant || $[12] !== xstyle) {
|
|
220
|
+
t2 = mergeStyles(stylex.props(styles2.root, variant === "outline" && !props2.disabled && surfaceStyles.control, variant === "inline" && styles2.inline, variant === "none" && styles2.none, variant === "underline" && styles2.underline, isInvalid && styles2.invalid, xstyle), className, style);
|
|
117
221
|
$[7] = className;
|
|
118
222
|
$[8] = isInvalid;
|
|
119
|
-
$[9] =
|
|
120
|
-
$[10] =
|
|
121
|
-
$[11] =
|
|
122
|
-
$[12] =
|
|
223
|
+
$[9] = props2;
|
|
224
|
+
$[10] = style;
|
|
225
|
+
$[11] = variant;
|
|
226
|
+
$[12] = xstyle;
|
|
227
|
+
$[13] = t2;
|
|
123
228
|
} else {
|
|
124
|
-
t2 = $[
|
|
229
|
+
t2 = $[13];
|
|
125
230
|
}
|
|
126
231
|
let t3;
|
|
127
|
-
if ($[
|
|
232
|
+
if ($[14] !== ariaInvalid || $[15] !== props2 || $[16] !== t2) {
|
|
128
233
|
t3 = /* @__PURE__ */ jsx(InputPrimitive, { ...props2, "aria-invalid": ariaInvalid, ...t2 });
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
234
|
+
$[14] = ariaInvalid;
|
|
235
|
+
$[15] = props2;
|
|
236
|
+
$[16] = t2;
|
|
237
|
+
$[17] = t3;
|
|
133
238
|
} else {
|
|
134
|
-
t3 = $[
|
|
239
|
+
t3 = $[17];
|
|
135
240
|
}
|
|
136
241
|
return t3;
|
|
137
242
|
}
|
package/dist/input.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/input.tsx", "../src/styles/merge-styles.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlLayoutStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nconst styles = {\n root: {\n kysU6D: \"xjyslct\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kGuDYH: \"x1lskvfa\",\n kMv6JI: \"x1b1to7n\",\n kZKoxP: \"x1f00wt4\",\n kLWn49: \"xipl0i2\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kg3NbH: \"x5044ve\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kOMSMr: \"x1f9m9q7\",\n kZs9gx: \"
|
|
5
|
-
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AACxB,SAAS,SAAS,sBAAsB;AAExC,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": ["props"]
|
|
3
|
+
"sources": ["../src/input.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport { colorVars, motionVars, radiusVars, sizeVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } 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 \"--bolerish-input-focus-color\": \"x10nrt0v\",\n kysU6D: \"xjyslct\",\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n kGuDYH: \"x1lskvfa\",\n kMv6JI: \"x1b1to7n\",\n kZKoxP: \"x1f00wt4\",\n kLWn49: \"xipl0i2\",\n k7Eaqz: \"xeuugli\",\n kI3sdo: \"x1a2a7pz\",\n kg3NbH: \"x5044ve\",\n kIyJzY: \"xznvecg\",\n k1ekBW: \"x13wuo2s\",\n kAMwcw: \"xrkjf8i\",\n kzqmXN: \"xh8yej3\",\n k8Qsv1: \"x15njwyp\",\n kOMSMr: \"x1f9m9q7\",\n kZs9gx: \"xyz7ihz\",\n kiEn40: \"x1p3hdyt\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kD2jPA: \"xjbuoma\",\n kdODIN: \"xwaks2a\",\n kWC4TW: \"x1vi5fzm\",\n kYPGJ8: \"x1s07b3s\",\n kqcrZL: \"x8jboxv\",\n kSAT4u: \"x7dg23c\",\n kHRqo9: \"x1sw6lzt\",\n kO0ooq: \"xdz4axu\",\n $$css: true\n },\n inline: {\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kaIpWk: \"x2u8bby\",\n kg3NbH: \"xblk7t1\",\n k8WAf4: \"xt970qd\",\n kGuDYH: \"x1qlqyl8\",\n k63SB2: \"x1pd3egz\",\n kLWn49: \"x15bjb6t\",\n kMwMTN: \"x1heor9g\",\n kZs9gx: \"xyz7ihz\",\n k7shQP: \"x9v5kkp\",\n kPJHz1: \"x1k4h2j2\",\n kiEn40: \"x1p3hdyt\",\n $$css: true\n },\n none: {\n kWkggS: \"xjbqb8w\",\n kMzoRj: \"xc342km\",\n kpYc8J: \"x7vy0yh\",\n k5HO7O: \"x4w8ylm\",\n kGKRwq: \"x4wip10\",\n kQgVTF: \"x18myw3g\",\n kYLY2K: \"x1pq16l0\",\n $$css: true\n },\n underline: {\n kWkggS: \"xjbqb8w\",\n kaIpWk: \"x2u8bby\",\n kMzoRj: \"xc342km\",\n kt9PQ7: \"x1ue9prv\",\n kYO7Su: \"x5swq7u\",\n kEtg5x: \"xm8hp6d\",\n k7shQP: \"xi5y0ii\",\n kM27pR: \"x34zm41\",\n kWHsjt: \"x1cg32vb\",\n $$css: true\n },\n invalid: {\n \"--bolerish-input-focus-color\": \"xnholtd\",\n kVAM5u: \"x165btzp\",\n kZs9gx: \"x1rovn1u\",\n $$css: true\n }\n};\nexport type InputProps = StyledProps<ComponentProps<typeof InputPrimitive>> & {\n xstyle?: ControlLayoutStyles;\n variant?: \"outline\" | \"inline\" | \"none\" | \"underline\";\n};\nexport function Input(t0) {\n const $ = _c(18);\n let ariaInvalid;\n let className;\n let props;\n let style;\n let t1;\n let xstyle;\n if ($[0] !== t0) {\n ({\n className,\n style,\n \"aria-invalid\": ariaInvalid,\n variant: t1,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = ariaInvalid;\n $[2] = className;\n $[3] = props;\n $[4] = style;\n $[5] = t1;\n $[6] = xstyle;\n } else {\n ariaInvalid = $[1];\n className = $[2];\n props = $[3];\n style = $[4];\n t1 = $[5];\n xstyle = $[6];\n }\n const variant = t1 === undefined ? \"outline\" : t1;\n const isInvalid = ariaInvalid === true || ariaInvalid === \"true\";\n let t2;\n if ($[7] !== className || $[8] !== isInvalid || $[9] !== props || $[10] !== style || $[11] !== variant || $[12] !== xstyle) {\n t2 = mergeStyles(stylex.props(styles.root, variant === \"outline\" && !props.disabled && surfaceStyles.control, variant === \"inline\" && styles.inline, variant === \"none\" && styles.none, variant === \"underline\" && styles.underline, isInvalid && styles.invalid, xstyle), className, style);\n $[7] = className;\n $[8] = isInvalid;\n $[9] = props;\n $[10] = style;\n $[11] = variant;\n $[12] = xstyle;\n $[13] = t2;\n } else {\n t2 = $[13];\n }\n let t3;\n if ($[14] !== ariaInvalid || $[15] !== props || $[16] !== t2) {\n t3 = <InputPrimitive {...props} aria-invalid={ariaInvalid} {...t2} />;\n $[14] = ariaInvalid;\n $[15] = props;\n $[16] = t2;\n $[17] = t3;\n } else {\n t3 = $[17];\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\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xpqbwuo\",\n kWkggS: \"x1s4uome x1u5mdis\",\n k6WDB: \"x1t853zo x1o5bnqd\",\n kKwaWg: \"x18o3ruo xxit9r9\",\n kTahiY: \"x1cg02ou\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\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-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\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\": \"x8605wn\",\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\": \"x1edk1m7\",\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,SAAS,sBAAsB;AAExC,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;;;ACjBA,IAAM,SAAS;AAAA,EACb,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,UAAU;AAAA,IACR,8BAA8B;AAAA,IAC9B,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,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C3R,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAI;AACP,MAAE,CAAC,IAAIC;AACP,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,MAAI;AACJ,MAAI,EAAE,EAAE,MAAM,eAAe,EAAE,EAAE,MAAMA,UAAS,EAAE,EAAE,MAAM,IAAI;AAC5D,SAAK,oBAAC,kBAAgB,GAAGA,QAAO,gBAAc,aAAc,GAAG,IAAI;AACnE,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAIA;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,SAAK,EAAE,EAAE;AAAA,EACX;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["styles", "props"]
|
|
7
7
|
}
|
package/dist/item.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
import type { ControlPlacementStyles } from "./styles/control-layout";
|
|
4
|
+
import type { StyledProps } from "./styles/merge-styles";
|
|
5
|
+
export type ItemSize = "default" | "sm" | "xs";
|
|
6
|
+
export type ItemVariant = "default" | "muted" | "outline";
|
|
7
|
+
export type ItemProps = StyledProps<ComponentProps<"div">> & {
|
|
8
|
+
size?: ItemSize;
|
|
9
|
+
variant?: ItemVariant;
|
|
10
|
+
xstyle?: stylex.StyleXStyles;
|
|
11
|
+
};
|
|
12
|
+
export declare function Item({ className, style, size, variant, xstyle, ...props }: ItemProps): import("react").JSX.Element;
|
|
13
|
+
export declare function ItemGroup({ className, style, xstyle, ...props }: StyledProps<ComponentProps<"div">> & {
|
|
14
|
+
xstyle?: stylex.StyleXStyles;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export type ItemMediaProps = StyledProps<ComponentProps<"div">> & {
|
|
17
|
+
variant?: "avatar" | "icon" | "image";
|
|
18
|
+
xstyle?: stylex.StyleXStyles;
|
|
19
|
+
};
|
|
20
|
+
export declare function ItemMedia({ className, style, xstyle, variant, ...props }: ItemMediaProps): import("react").JSX.Element;
|
|
21
|
+
export declare function ItemContent({ className, style, xstyle, ...props }: StyledProps<ComponentProps<"div">> & {
|
|
22
|
+
xstyle?: stylex.StyleXStyles;
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
export declare function ItemTitle({ className, style, xstyle, ...props }: StyledProps<ComponentProps<"div">> & {
|
|
25
|
+
xstyle?: ControlPlacementStyles;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
|
+
export declare function ItemDescription({ className, style, xstyle, ...props }: StyledProps<ComponentProps<"p">> & {
|
|
28
|
+
xstyle?: ControlPlacementStyles;
|
|
29
|
+
}): import("react").JSX.Element;
|
|
30
|
+
export declare function ItemActions({ className, style, xstyle, ...props }: StyledProps<ComponentProps<"div">> & {
|
|
31
|
+
xstyle?: stylex.StyleXStyles;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/item.tsx
|
|
2
2
|
import * as stylex from "@stylexjs/stylex";
|
|
3
3
|
|
|
4
4
|
// src/styles/merge-styles.ts
|
|
@@ -14,6 +14,85 @@ function mergeStyles(base, className, style) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
// src/styles/surface.ts
|
|
18
|
+
var styles = {
|
|
19
|
+
edge: {
|
|
20
|
+
kVAM5u: "x1kqtvf4",
|
|
21
|
+
kFGkbq: "x1w1tqly",
|
|
22
|
+
$$css: true
|
|
23
|
+
},
|
|
24
|
+
material: {
|
|
25
|
+
"--bolerish-material-shadow": "xvd6nka",
|
|
26
|
+
kGVxlE: "x16ifxj2 xpqbwuo",
|
|
27
|
+
kWkggS: "x1s4uome x1u5mdis",
|
|
28
|
+
k6WDB: "x1t853zo x1o5bnqd",
|
|
29
|
+
kKwaWg: "x18o3ruo xxit9r9",
|
|
30
|
+
kTahiY: "x1cg02ou",
|
|
31
|
+
kEcs6k: "x11rvarm",
|
|
32
|
+
kWrjR8: "x1ile18z",
|
|
33
|
+
kfloDl: "x1m3y3zz",
|
|
34
|
+
kO6drA: "x9yvj25",
|
|
35
|
+
kkTUmj: "x14hm74v",
|
|
36
|
+
k11ilZ: "xhobzj1",
|
|
37
|
+
ktzNWN: "xwaqzdf",
|
|
38
|
+
$$css: true
|
|
39
|
+
},
|
|
40
|
+
panel: {
|
|
41
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
42
|
+
"--bolerish-material-opacity": "x8fe23t",
|
|
43
|
+
"--bolerish-material-filter": "x1n6mwez",
|
|
44
|
+
$$css: true
|
|
45
|
+
},
|
|
46
|
+
control: {
|
|
47
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
48
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
49
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
50
|
+
$$css: true
|
|
51
|
+
},
|
|
52
|
+
subtle: {
|
|
53
|
+
"--bolerish-material-color": "x1819ggx",
|
|
54
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
55
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
56
|
+
$$css: true
|
|
57
|
+
},
|
|
58
|
+
outline: {
|
|
59
|
+
"--bolerish-material-color": "x3m3fbl",
|
|
60
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
61
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
62
|
+
$$css: true
|
|
63
|
+
},
|
|
64
|
+
raised: {
|
|
65
|
+
"--bolerish-material-shadow": "x8605wn",
|
|
66
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
67
|
+
"--bolerish-material-opacity": "x1nqk09",
|
|
68
|
+
"--bolerish-material-filter": "x1gkvbmm",
|
|
69
|
+
$$css: true
|
|
70
|
+
},
|
|
71
|
+
translucent: {
|
|
72
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
73
|
+
"--bolerish-material-opacity": "xoh9gux",
|
|
74
|
+
"--bolerish-material-filter": "xhu24am",
|
|
75
|
+
$$css: true
|
|
76
|
+
},
|
|
77
|
+
floating: {
|
|
78
|
+
"--bolerish-material-shadow": "x1edk1m7",
|
|
79
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
80
|
+
"--bolerish-material-opacity": "x14p89z6",
|
|
81
|
+
"--bolerish-material-filter": "xunhrho",
|
|
82
|
+
$$css: true
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
var surfaceStyles = {
|
|
86
|
+
edge: styles.edge,
|
|
87
|
+
panel: [styles.material, styles.panel],
|
|
88
|
+
control: [styles.material, styles.control],
|
|
89
|
+
subtle: [styles.material, styles.subtle],
|
|
90
|
+
outline: [styles.material, styles.outline],
|
|
91
|
+
raised: [styles.material, styles.raised],
|
|
92
|
+
translucent: [styles.material, styles.translucent],
|
|
93
|
+
floating: [styles.material, styles.floating]
|
|
94
|
+
};
|
|
95
|
+
|
|
17
96
|
// src/typography.ts
|
|
18
97
|
var typographyStyles = {
|
|
19
98
|
body: {
|
|
@@ -74,9 +153,9 @@ var typographyStyles = {
|
|
|
74
153
|
}
|
|
75
154
|
};
|
|
76
155
|
|
|
77
|
-
// src/
|
|
156
|
+
// src/item.tsx
|
|
78
157
|
import { jsx } from "react/jsx-runtime";
|
|
79
|
-
var
|
|
158
|
+
var styles2 = {
|
|
80
159
|
root: {
|
|
81
160
|
kGNEyG: "x6s0dn4",
|
|
82
161
|
kVAM5u: "x9r1u3d",
|
|
@@ -182,7 +261,7 @@ var variantStyles = {
|
|
|
182
261
|
$$css: true
|
|
183
262
|
}
|
|
184
263
|
};
|
|
185
|
-
function
|
|
264
|
+
function Item({
|
|
186
265
|
className,
|
|
187
266
|
style,
|
|
188
267
|
size = "default",
|
|
@@ -190,34 +269,34 @@ function ContentRow({
|
|
|
190
269
|
xstyle,
|
|
191
270
|
...props2
|
|
192
271
|
}) {
|
|
193
|
-
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(
|
|
272
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(styles2.root, sizeStyles[size], variantStyles[variant], variant === "outline" && surfaceStyles.panel, variant === "muted" && surfaceStyles.subtle, xstyle), className, style) });
|
|
194
273
|
}
|
|
195
|
-
function
|
|
274
|
+
function ItemGroup({
|
|
196
275
|
className,
|
|
197
276
|
style,
|
|
198
277
|
xstyle,
|
|
199
278
|
...props2
|
|
200
279
|
}) {
|
|
201
|
-
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(
|
|
280
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(styles2.group, xstyle), className, style) });
|
|
202
281
|
}
|
|
203
|
-
function
|
|
282
|
+
function ItemMedia({
|
|
204
283
|
className,
|
|
205
284
|
style,
|
|
206
285
|
xstyle,
|
|
207
286
|
variant = "icon",
|
|
208
287
|
...props2
|
|
209
288
|
}) {
|
|
210
|
-
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(
|
|
289
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(styles2.media, mediaVariantStyles[variant], xstyle), className, style) });
|
|
211
290
|
}
|
|
212
|
-
function
|
|
291
|
+
function ItemContent({
|
|
213
292
|
className,
|
|
214
293
|
style,
|
|
215
294
|
xstyle,
|
|
216
295
|
...props2
|
|
217
296
|
}) {
|
|
218
|
-
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(
|
|
297
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(styles2.content, xstyle), className, style) });
|
|
219
298
|
}
|
|
220
|
-
function
|
|
299
|
+
function ItemTitle({
|
|
221
300
|
className,
|
|
222
301
|
style,
|
|
223
302
|
xstyle,
|
|
@@ -225,29 +304,29 @@ function ContentRowTitle({
|
|
|
225
304
|
}) {
|
|
226
305
|
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(typographyStyles.title, xstyle), className, style) });
|
|
227
306
|
}
|
|
228
|
-
function
|
|
307
|
+
function ItemDescription({
|
|
229
308
|
className,
|
|
230
309
|
style,
|
|
231
310
|
xstyle,
|
|
232
311
|
...props2
|
|
233
312
|
}) {
|
|
234
|
-
return /* @__PURE__ */ jsx("p", { ...props2, ...mergeStyles(stylex.props(typographyStyles.description,
|
|
313
|
+
return /* @__PURE__ */ jsx("p", { ...props2, ...mergeStyles(stylex.props(typographyStyles.description, styles2.description, xstyle), className, style) });
|
|
235
314
|
}
|
|
236
|
-
function
|
|
315
|
+
function ItemActions({
|
|
237
316
|
className,
|
|
238
317
|
style,
|
|
239
318
|
xstyle,
|
|
240
319
|
...props2
|
|
241
320
|
}) {
|
|
242
|
-
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(
|
|
321
|
+
return /* @__PURE__ */ jsx("div", { ...props2, ...mergeStyles(stylex.props(styles2.actions, xstyle), className, style) });
|
|
243
322
|
}
|
|
244
323
|
export {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
324
|
+
Item,
|
|
325
|
+
ItemActions,
|
|
326
|
+
ItemContent,
|
|
327
|
+
ItemDescription,
|
|
328
|
+
ItemGroup,
|
|
329
|
+
ItemMedia,
|
|
330
|
+
ItemTitle
|
|
252
331
|
};
|
|
253
|
-
//# sourceMappingURL=
|
|
332
|
+
//# sourceMappingURL=item.js.map
|
package/dist/item.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/item.tsx", "../src/styles/merge-styles.ts", "../src/styles/surface.ts", "../src/typography.ts"],
|
|
4
|
+
"sourcesContent": ["import { colorVars, radiusVars, sizeVars, spacingVars } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport type { ComponentProps } from \"react\";\nimport type { ControlPlacementStyles } from \"./styles/control-layout\";\nimport { mergeStyles } from \"./styles/merge-styles\";\nimport type { StyledProps } from \"./styles/merge-styles\";\nimport { surfaceStyles } from \"./styles/surface\";\nimport { typographyStyles } from \"./typography\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kVAM5u: \"x9r1u3d\",\n kaIpWk: \"x1p5vitp\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"x1al7nqq\",\n kMwMTN: \"x1t28c4i\",\n k1xSpc: \"x78zum5\",\n k7Eaqz: \"xeuugli\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n group: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x136xbx3\",\n kzqmXN: \"xh8yej3\",\n $$css: true\n },\n media: {\n kGNEyG: \"x6s0dn4\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kjj79g: \"xl56j7k\",\n kVQacm: \"xb3r6kr\",\n $$css: true\n },\n content: {\n kSGwAc: \"xoi2r2e\",\n k1xSpc: \"x78zum5\",\n kUk6DE: \"x98rzlu\",\n kXwgrk: \"xdt5ytf\",\n kOIVth: \"x7gjopr\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n description: {\n kMwMTN: \"xj9e3ow\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n actions: {\n kGNEyG: \"x1pha0wt\",\n kSGwAc: \"xoi2r2e\",\n k1xSpc: \"x78zum5\",\n kmuXW: \"x2lah0s\",\n kOIVth: \"x136xbx3\",\n $$css: true\n }\n};\nconst mediaVariantStyles = {\n icon: {\n kWkggS: \"xmqg8ag\",\n kaIpWk: \"x1p5vitp\",\n kMwMTN: \"xj9e3ow\",\n kZKoxP: \"x1f00wt4\",\n kzqmXN: \"x18pndxb\",\n $$css: true\n },\n avatar: {\n kaIpWk: \"xwhwt5f\",\n $$css: true\n },\n image: {\n kaIpWk: \"x1p5vitp\",\n kZKoxP: \"x1rrewj3\",\n kzqmXN: \"xwuz77y\",\n $$css: true\n }\n};\nconst sizeStyles = {\n default: {\n kOIVth: \"x6tv65x\",\n kAzted: \"xd4eqea\",\n kmVPX3: \"xv3ig3d\",\n $$css: true\n },\n sm: {\n kOIVth: \"x6tv65x\",\n kAzted: \"x154sxmd\",\n kmVPX3: \"xha17u1\",\n $$css: true\n },\n xs: {\n kOIVth: \"x136xbx3\",\n kAzted: \"x1rwmkbm\",\n kmVPX3: \"xvoq6nx\",\n $$css: true\n }\n};\nconst variantStyles = {\n default: {\n kWkggS: \"xjbqb8w\",\n $$css: true\n },\n muted: {\n kWkggS: \"xmqg8ag\",\n $$css: true\n },\n outline: {\n kWkggS: \"xcc0o6n\",\n kVAM5u: \"x1kqtvf4\",\n $$css: true\n }\n};\nexport type ItemSize = \"default\" | \"sm\" | \"xs\";\nexport type ItemVariant = \"default\" | \"muted\" | \"outline\";\nexport type ItemProps = StyledProps<ComponentProps<\"div\">> & {\n size?: ItemSize;\n variant?: ItemVariant;\n xstyle?: stylex.StyleXStyles;\n};\nexport function Item({\n className,\n style,\n size = \"default\",\n variant = \"default\",\n xstyle,\n ...props\n}: ItemProps) {\n return <div {...props} {...mergeStyles(stylex.props(styles.root, sizeStyles[size], variantStyles[variant], variant === \"outline\" && surfaceStyles.panel, variant === \"muted\" && surfaceStyles.subtle, xstyle), className, style)} />;\n}\nexport function ItemGroup({\n className,\n style,\n xstyle,\n ...props\n}: StyledProps<ComponentProps<\"div\">> & {\n xstyle?: stylex.StyleXStyles;\n}) {\n return <div {...props} {...mergeStyles(stylex.props(styles.group, xstyle), className, style)} />;\n}\nexport type ItemMediaProps = StyledProps<ComponentProps<\"div\">> & {\n variant?: \"avatar\" | \"icon\" | \"image\";\n xstyle?: stylex.StyleXStyles;\n};\nexport function ItemMedia({\n className,\n style,\n xstyle,\n variant = \"icon\",\n ...props\n}: ItemMediaProps) {\n return <div {...props} {...mergeStyles(stylex.props(styles.media, mediaVariantStyles[variant], xstyle), className, style)} />;\n}\nexport function ItemContent({\n className,\n style,\n xstyle,\n ...props\n}: StyledProps<ComponentProps<\"div\">> & {\n xstyle?: stylex.StyleXStyles;\n}) {\n return <div {...props} {...mergeStyles(stylex.props(styles.content, xstyle), className, style)} />;\n}\nexport function ItemTitle({\n className,\n style,\n xstyle,\n ...props\n}: StyledProps<ComponentProps<\"div\">> & {\n xstyle?: ControlPlacementStyles;\n}) {\n return <div {...props} {...mergeStyles(stylex.props(typographyStyles.title, xstyle), className, style)} />;\n}\nexport function ItemDescription({\n className,\n style,\n xstyle,\n ...props\n}: StyledProps<ComponentProps<\"p\">> & {\n xstyle?: ControlPlacementStyles;\n}) {\n return <p {...props} {...mergeStyles(stylex.props(typographyStyles.description, styles.description, xstyle), className, style)} />;\n}\nexport function ItemActions({\n className,\n style,\n xstyle,\n ...props\n}: StyledProps<ComponentProps<\"div\">> & {\n xstyle?: stylex.StyleXStyles;\n}) {\n return <div {...props} {...mergeStyles(stylex.props(styles.actions, xstyle), className, style)} />;\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\",\n kFGkbq: \"x1w1tqly\",\n $$css: true\n },\n material: {\n \"--bolerish-material-shadow\": \"xvd6nka\",\n kGVxlE: \"x16ifxj2 xpqbwuo\",\n kWkggS: \"x1s4uome x1u5mdis\",\n k6WDB: \"x1t853zo x1o5bnqd\",\n kKwaWg: \"x18o3ruo xxit9r9\",\n kTahiY: \"x1cg02ou\",\n kEcs6k: \"x11rvarm\",\n kWrjR8: \"x1ile18z\",\n kfloDl: \"x1m3y3zz\",\n kO6drA: \"x9yvj25\",\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-color\": \"x14zkn9l\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n subtle: {\n \"--bolerish-material-color\": \"x1819ggx\",\n \"--bolerish-material-opacity\": \"xg4j6g8\",\n \"--bolerish-material-filter\": \"x1mpfm11\",\n $$css: true\n },\n outline: {\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\": \"x8605wn\",\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\": \"x1edk1m7\",\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};", "import { typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nexport const typographyStyles = {\n body: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n description: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n caption: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1gag4p9\",\n k63SB2: \"x6valzt\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n label: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"xipl0i2\",\n $$css: true\n },\n title: {\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1lskvfa\",\n k63SB2: \"xoop9yj\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n page: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xw8z6gz\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n section: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"xr5nsds\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n },\n subsection: {\n kMv6JI: \"x1yd4tj7\",\n kGuDYH: \"x199wi4b\",\n k63SB2: \"x5cgamv\",\n kLWn49: \"x15rnifv\",\n $$css: true\n }\n};"],
|
|
5
|
+
"mappings": ";AACA,YAAY,YAAY;;;ACKjB,SAAS,YAAY,MAAuC,WAAoB,OAGrF;AACA,MAAI,cAAc,UAAa,UAAU,OAAW,QAAO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K,GAAGA,QAAQ,GAAG,YAAmB,aAAMD,QAAO,OAAO,MAAM,GAAG,WAAW,KAAK,GAAG;AAChG;AAKO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAGC;AACL,GAAmB;AACjB,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAG,YAAmB,aAAMD,QAAO,OAAO,mBAAmB,OAAO,GAAG,MAAM,GAAG,WAAW,KAAK,GAAG;AAC7H;AACO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAGC;AACL,GAEG;AACD,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAG,YAAmB,aAAMD,QAAO,SAAS,MAAM,GAAG,WAAW,KAAK,GAAG;AAClG;AACO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAGC;AACL,GAEG;AACD,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAG,YAAmB,aAAM,iBAAiB,OAAO,MAAM,GAAG,WAAW,KAAK,GAAG;AAC1G;AACO,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAGA;AACL,GAEG;AACD,SAAO,oBAAC,OAAG,GAAGA,QAAQ,GAAG,YAAmB,aAAM,iBAAiB,aAAaD,QAAO,aAAa,MAAM,GAAG,WAAW,KAAK,GAAG;AAClI;AACO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAGC;AACL,GAEG;AACD,SAAO,oBAAC,SAAK,GAAGA,QAAQ,GAAG,YAAmB,aAAMD,QAAO,SAAS,MAAM,GAAG,WAAW,KAAK,GAAG;AAClG;",
|
|
6
|
+
"names": ["styles", "props"]
|
|
7
|
+
}
|
package/dist/menubar.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { StyledProps } from "./styles/merge-styles";
|
|
|
8
8
|
export declare function Menubar({ className, style, xstyle, ...props }: StyledProps<ComponentProps<typeof MenubarPrimitive>> & {
|
|
9
9
|
xstyle?: stylex.StyleXStyles;
|
|
10
10
|
}): import("react").JSX.Element;
|
|
11
|
-
export declare const MenubarMenu:
|
|
11
|
+
export declare const MenubarMenu: typeof MenuPrimitive.Root;
|
|
12
12
|
export declare function MenubarTrigger({ className, style, xstyle, ...props }: StyledProps<ComponentProps<typeof MenuPrimitive.Trigger>> & {
|
|
13
13
|
xstyle?: ControlLayoutStyles;
|
|
14
14
|
}): import("react").JSX.Element;
|
package/dist/menubar.js
CHANGED
|
@@ -21,35 +21,87 @@ function mergeStyles(base, className, style) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// src/styles/surface.ts
|
|
24
|
-
var
|
|
24
|
+
var styles = {
|
|
25
25
|
edge: {
|
|
26
26
|
kVAM5u: "x1kqtvf4",
|
|
27
27
|
kFGkbq: "x1w1tqly",
|
|
28
28
|
$$css: true
|
|
29
29
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
material: {
|
|
31
|
+
"--bolerish-material-shadow": "xvd6nka",
|
|
32
|
+
kGVxlE: "x16ifxj2 xpqbwuo",
|
|
33
|
+
kWkggS: "x1s4uome x1u5mdis",
|
|
34
|
+
k6WDB: "x1t853zo x1o5bnqd",
|
|
35
|
+
kKwaWg: "x18o3ruo xxit9r9",
|
|
36
|
+
kTahiY: "x1cg02ou",
|
|
34
37
|
kEcs6k: "x11rvarm",
|
|
38
|
+
kWrjR8: "x1ile18z",
|
|
39
|
+
kfloDl: "x1m3y3zz",
|
|
35
40
|
kO6drA: "x9yvj25",
|
|
36
41
|
kkTUmj: "x14hm74v",
|
|
42
|
+
k11ilZ: "xhobzj1",
|
|
43
|
+
ktzNWN: "xwaqzdf",
|
|
44
|
+
$$css: true
|
|
45
|
+
},
|
|
46
|
+
panel: {
|
|
47
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
48
|
+
"--bolerish-material-opacity": "x8fe23t",
|
|
49
|
+
"--bolerish-material-filter": "x1n6mwez",
|
|
50
|
+
$$css: true
|
|
51
|
+
},
|
|
52
|
+
control: {
|
|
53
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
54
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
55
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
56
|
+
$$css: true
|
|
57
|
+
},
|
|
58
|
+
subtle: {
|
|
59
|
+
"--bolerish-material-color": "x1819ggx",
|
|
60
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
61
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
62
|
+
$$css: true
|
|
63
|
+
},
|
|
64
|
+
outline: {
|
|
65
|
+
"--bolerish-material-color": "x3m3fbl",
|
|
66
|
+
"--bolerish-material-opacity": "xg4j6g8",
|
|
67
|
+
"--bolerish-material-filter": "x1mpfm11",
|
|
68
|
+
$$css: true
|
|
69
|
+
},
|
|
70
|
+
raised: {
|
|
71
|
+
"--bolerish-material-shadow": "x8605wn",
|
|
72
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
73
|
+
"--bolerish-material-opacity": "x1nqk09",
|
|
74
|
+
"--bolerish-material-filter": "x1gkvbmm",
|
|
75
|
+
$$css: true
|
|
76
|
+
},
|
|
77
|
+
translucent: {
|
|
78
|
+
"--bolerish-material-color": "x14zkn9l",
|
|
79
|
+
"--bolerish-material-opacity": "xoh9gux",
|
|
80
|
+
"--bolerish-material-filter": "xhu24am",
|
|
37
81
|
$$css: true
|
|
38
82
|
},
|
|
39
83
|
floating: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
kO6drA: "x9yvj25",
|
|
45
|
-
kkTUmj: "x14hm74v",
|
|
84
|
+
"--bolerish-material-shadow": "x1edk1m7",
|
|
85
|
+
"--bolerish-material-color": "x1y5ilfp",
|
|
86
|
+
"--bolerish-material-opacity": "x14p89z6",
|
|
87
|
+
"--bolerish-material-filter": "xunhrho",
|
|
46
88
|
$$css: true
|
|
47
89
|
}
|
|
48
90
|
};
|
|
91
|
+
var surfaceStyles = {
|
|
92
|
+
edge: styles.edge,
|
|
93
|
+
panel: [styles.material, styles.panel],
|
|
94
|
+
control: [styles.material, styles.control],
|
|
95
|
+
subtle: [styles.material, styles.subtle],
|
|
96
|
+
outline: [styles.material, styles.outline],
|
|
97
|
+
raised: [styles.material, styles.raised],
|
|
98
|
+
translucent: [styles.material, styles.translucent],
|
|
99
|
+
floating: [styles.material, styles.floating]
|
|
100
|
+
};
|
|
49
101
|
|
|
50
102
|
// src/menubar.tsx
|
|
51
103
|
import { jsx } from "react/jsx-runtime";
|
|
52
|
-
var
|
|
104
|
+
var styles2 = {
|
|
53
105
|
root: {
|
|
54
106
|
kGNEyG: "x6s0dn4",
|
|
55
107
|
kWkggS: "xcc0o6n",
|
|
@@ -125,7 +177,7 @@ function Menubar(t0) {
|
|
|
125
177
|
}
|
|
126
178
|
let t1;
|
|
127
179
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
128
|
-
t1 = mergeStyles(stylex.props(
|
|
180
|
+
t1 = mergeStyles(stylex.props(styles2.root, surfaceStyles.edge, surfaceStyles.translucent, xstyle), className, style);
|
|
129
181
|
$[5] = className;
|
|
130
182
|
$[6] = style;
|
|
131
183
|
$[7] = xstyle;
|
|
@@ -172,7 +224,7 @@ function MenubarTrigger(t0) {
|
|
|
172
224
|
let t1;
|
|
173
225
|
if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
|
|
174
226
|
t1 = function getTriggerStyles2(state) {
|
|
175
|
-
return mergeStyles(stylex.props(
|
|
227
|
+
return mergeStyles(stylex.props(styles2.trigger, state.open && styles2.triggerOpen, state.disabled && styles2.triggerDisabled, xstyle), className, style);
|
|
176
228
|
};
|
|
177
229
|
$[5] = className;
|
|
178
230
|
$[6] = style;
|