@bolerish/ui 0.17.0 → 0.18.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/dist/alert-dialog.js +46 -9
- package/dist/alert-dialog.js.map +3 -3
- package/dist/attachment.js +13 -5
- package/dist/attachment.js.map +2 -2
- package/dist/button-group.js +13 -5
- package/dist/button-group.js.map +2 -2
- package/dist/button.js +13 -5
- package/dist/button.js.map +2 -2
- package/dist/calendar.js +3 -3
- package/dist/calendar.js.map +1 -1
- package/dist/card.js +13 -5
- package/dist/card.js.map +2 -2
- package/dist/carousel.d.ts +3 -1
- package/dist/carousel.js +298 -197
- package/dist/carousel.js.map +2 -2
- package/dist/combobox.js +14 -6
- package/dist/combobox.js.map +2 -2
- package/dist/date-picker.js +60 -35
- package/dist/date-picker.js.map +2 -2
- package/dist/dialog.js +46 -9
- package/dist/dialog.js.map +3 -3
- package/dist/drawer.js +68 -45
- package/dist/drawer.js.map +3 -3
- package/dist/dropdown-menu.js +14 -6
- package/dist/dropdown-menu.js.map +2 -2
- package/dist/global.css +204 -12
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +39 -25
- package/dist/hover-card.js.map +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +2 -2
- package/dist/input-group.js +13 -5
- package/dist/input-group.js.map +2 -2
- package/dist/input-otp.js +19 -9
- package/dist/input-otp.js.map +2 -2
- package/dist/input.js +13 -5
- package/dist/input.js.map +2 -2
- package/dist/item.js +13 -5
- package/dist/item.js.map +2 -2
- package/dist/liquid.js +13 -5
- package/dist/liquid.js.map +2 -2
- package/dist/menubar.js +14 -6
- package/dist/menubar.js.map +2 -2
- package/dist/native-select.js +13 -5
- package/dist/native-select.js.map +2 -2
- package/dist/navigation-menu.js +13 -5
- package/dist/navigation-menu.js.map +2 -2
- package/dist/popover.js +14 -6
- package/dist/popover.js.map +2 -2
- package/dist/select.js +14 -6
- package/dist/select.js.map +2 -2
- package/dist/snackbar.d.ts +49 -0
- package/dist/snackbar.js +262 -0
- package/dist/snackbar.js.map +7 -0
- package/dist/status-pill.d.ts +10 -0
- package/dist/status-pill.js +12 -0
- package/dist/status-pill.js.map +7 -0
- package/dist/styles/modal-overlay.d.ts +13 -0
- package/dist/styles/surface.d.ts +41 -7
- package/dist/stylex.css +164 -8
- package/dist/tabs.js +9 -1
- package/dist/tabs.js.map +2 -2
- package/dist/textarea.js +13 -5
- package/dist/textarea.js.map +2 -2
- package/dist/toast.js +13 -5
- package/dist/toast.js.map +2 -2
- package/dist/toggle-group.js +13 -5
- package/dist/toggle-group.js.map +2 -2
- package/dist/toggle.js +16 -12
- package/dist/toggle.js.map +2 -2
- package/dist/tooltip.d.ts +3 -3
- package/dist/tooltip.js +84 -31
- package/dist/tooltip.js.map +2 -2
- package/package.json +5 -3
package/dist/snackbar.js
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/snackbar.tsx
|
|
4
|
+
import { c as _c } from "react/compiler-runtime";
|
|
5
|
+
import * as stylex from "@stylexjs/stylex";
|
|
6
|
+
import { useSyncExternalStore, useEffect, useRef, useState } from "react";
|
|
7
|
+
import { createPortal } from "react-dom";
|
|
8
|
+
|
|
9
|
+
// src/styles/merge-styles.ts
|
|
10
|
+
function mergeStyles(base, className, style) {
|
|
11
|
+
if (className === void 0 && style === void 0) return base;
|
|
12
|
+
return {
|
|
13
|
+
...base,
|
|
14
|
+
className: [base.className, className].filter(Boolean).join(" ") || void 0,
|
|
15
|
+
style: base.style || style ? {
|
|
16
|
+
...base.style,
|
|
17
|
+
...style
|
|
18
|
+
} : void 0
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// src/snackbar.tsx
|
|
23
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
var styles = {
|
|
25
|
+
root: {
|
|
26
|
+
kGNEyG: "x6s0dn4",
|
|
27
|
+
kaIpWk: "xwhwt5f",
|
|
28
|
+
ksu8eU: "x1y0btm7",
|
|
29
|
+
kMzoRj: "xmkeg23",
|
|
30
|
+
k1xSpc: "x3nfvp2",
|
|
31
|
+
kMv6JI: "x1b1to7n",
|
|
32
|
+
kGuDYH: "x1gag4p9",
|
|
33
|
+
k63SB2: "xoop9yj",
|
|
34
|
+
kOIVth: "x136xbx3",
|
|
35
|
+
kHBbk8: "xc8icb0",
|
|
36
|
+
kLWn49: "x15rnifv",
|
|
37
|
+
k8WAf4: "x1mmca2r",
|
|
38
|
+
kg3NbH: "x5044ve",
|
|
39
|
+
kVAEAm: "x1n2onr6",
|
|
40
|
+
khDVqt: "xuxw1ft",
|
|
41
|
+
$$css: true
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var tones = {
|
|
45
|
+
success: {
|
|
46
|
+
kWkggS: "x1y4jrb8",
|
|
47
|
+
kMwMTN: "x1kmg14s",
|
|
48
|
+
kVAM5u: "xinhyjt",
|
|
49
|
+
$$css: true
|
|
50
|
+
},
|
|
51
|
+
warning: {
|
|
52
|
+
kWkggS: "x1ei3au1",
|
|
53
|
+
kMwMTN: "x1kmo6vn",
|
|
54
|
+
kVAM5u: "x1vl4jgv",
|
|
55
|
+
$$css: true
|
|
56
|
+
},
|
|
57
|
+
error: {
|
|
58
|
+
kWkggS: "x1joc7g2",
|
|
59
|
+
kMwMTN: "xat8mfl",
|
|
60
|
+
kVAM5u: "x165btzp",
|
|
61
|
+
$$css: true
|
|
62
|
+
},
|
|
63
|
+
info: {
|
|
64
|
+
kWkggS: "x173w07f",
|
|
65
|
+
kMwMTN: "xbpx0ws",
|
|
66
|
+
kVAM5u: "x17y0vtu",
|
|
67
|
+
$$css: true
|
|
68
|
+
},
|
|
69
|
+
neutral: {
|
|
70
|
+
kWkggS: "xmqg8ag",
|
|
71
|
+
kMwMTN: "xj9e3ow",
|
|
72
|
+
kVAM5u: "x1kqtvf4",
|
|
73
|
+
$$css: true
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var subscribe = () => () => {
|
|
77
|
+
};
|
|
78
|
+
var clientSnapshot = () => true;
|
|
79
|
+
var serverSnapshot = () => false;
|
|
80
|
+
function Snackbar(t0) {
|
|
81
|
+
const $ = _c(40);
|
|
82
|
+
let children;
|
|
83
|
+
let className;
|
|
84
|
+
let controlledOpen;
|
|
85
|
+
let offset;
|
|
86
|
+
let onOpenChange;
|
|
87
|
+
let props2;
|
|
88
|
+
let style;
|
|
89
|
+
let t1;
|
|
90
|
+
let t2;
|
|
91
|
+
let t3;
|
|
92
|
+
let t4;
|
|
93
|
+
let xstyle;
|
|
94
|
+
if ($[0] !== t0) {
|
|
95
|
+
({
|
|
96
|
+
tone: t1,
|
|
97
|
+
position: t2,
|
|
98
|
+
offset,
|
|
99
|
+
open: controlledOpen,
|
|
100
|
+
defaultOpen: t3,
|
|
101
|
+
onOpenChange,
|
|
102
|
+
duration: t4,
|
|
103
|
+
children,
|
|
104
|
+
className,
|
|
105
|
+
style,
|
|
106
|
+
xstyle,
|
|
107
|
+
...props2
|
|
108
|
+
} = t0);
|
|
109
|
+
$[0] = t0;
|
|
110
|
+
$[1] = children;
|
|
111
|
+
$[2] = className;
|
|
112
|
+
$[3] = controlledOpen;
|
|
113
|
+
$[4] = offset;
|
|
114
|
+
$[5] = onOpenChange;
|
|
115
|
+
$[6] = props2;
|
|
116
|
+
$[7] = style;
|
|
117
|
+
$[8] = t1;
|
|
118
|
+
$[9] = t2;
|
|
119
|
+
$[10] = t3;
|
|
120
|
+
$[11] = t4;
|
|
121
|
+
$[12] = xstyle;
|
|
122
|
+
} else {
|
|
123
|
+
children = $[1];
|
|
124
|
+
className = $[2];
|
|
125
|
+
controlledOpen = $[3];
|
|
126
|
+
offset = $[4];
|
|
127
|
+
onOpenChange = $[5];
|
|
128
|
+
props2 = $[6];
|
|
129
|
+
style = $[7];
|
|
130
|
+
t1 = $[8];
|
|
131
|
+
t2 = $[9];
|
|
132
|
+
t3 = $[10];
|
|
133
|
+
t4 = $[11];
|
|
134
|
+
xstyle = $[12];
|
|
135
|
+
}
|
|
136
|
+
const tone = t1 === void 0 ? "neutral" : t1;
|
|
137
|
+
const position = t2 === void 0 ? "bottom-center" : t2;
|
|
138
|
+
const defaultOpen = t3 === void 0 ? true : t3;
|
|
139
|
+
const duration = t4 === void 0 ? 3e3 : t4;
|
|
140
|
+
const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
|
|
141
|
+
const controlled = controlledOpen !== void 0;
|
|
142
|
+
const visible = controlled ? controlledOpen : uncontrolledOpen;
|
|
143
|
+
const onOpenChangeRef = useRef(onOpenChange);
|
|
144
|
+
let t5;
|
|
145
|
+
let t6;
|
|
146
|
+
if ($[13] !== onOpenChange) {
|
|
147
|
+
t5 = () => {
|
|
148
|
+
onOpenChangeRef.current = onOpenChange;
|
|
149
|
+
};
|
|
150
|
+
t6 = [onOpenChange];
|
|
151
|
+
$[13] = onOpenChange;
|
|
152
|
+
$[14] = t5;
|
|
153
|
+
$[15] = t6;
|
|
154
|
+
} else {
|
|
155
|
+
t5 = $[14];
|
|
156
|
+
t6 = $[15];
|
|
157
|
+
}
|
|
158
|
+
useEffect(t5, t6);
|
|
159
|
+
let t7;
|
|
160
|
+
let t8;
|
|
161
|
+
if ($[16] !== controlled || $[17] !== duration || $[18] !== visible) {
|
|
162
|
+
t7 = () => {
|
|
163
|
+
if (!visible || !Number.isFinite(duration) || duration <= 0) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const timer = window.setTimeout(() => {
|
|
167
|
+
if (!controlled) {
|
|
168
|
+
setUncontrolledOpen(false);
|
|
169
|
+
}
|
|
170
|
+
onOpenChangeRef.current?.(false);
|
|
171
|
+
}, duration);
|
|
172
|
+
return () => window.clearTimeout(timer);
|
|
173
|
+
};
|
|
174
|
+
t8 = [visible, duration, controlled];
|
|
175
|
+
$[16] = controlled;
|
|
176
|
+
$[17] = duration;
|
|
177
|
+
$[18] = visible;
|
|
178
|
+
$[19] = t7;
|
|
179
|
+
$[20] = t8;
|
|
180
|
+
} else {
|
|
181
|
+
t7 = $[19];
|
|
182
|
+
t8 = $[20];
|
|
183
|
+
}
|
|
184
|
+
useEffect(t7, t8);
|
|
185
|
+
const mounted = useSyncExternalStore(subscribe, clientSnapshot, serverSnapshot);
|
|
186
|
+
let t9;
|
|
187
|
+
if ($[21] !== className || $[22] !== style || $[23] !== tone || $[24] !== xstyle) {
|
|
188
|
+
t9 = mergeStyles(stylex.props(styles.root, tones[tone], xstyle), className, style);
|
|
189
|
+
$[21] = className;
|
|
190
|
+
$[22] = style;
|
|
191
|
+
$[23] = tone;
|
|
192
|
+
$[24] = xstyle;
|
|
193
|
+
$[25] = t9;
|
|
194
|
+
} else {
|
|
195
|
+
t9 = $[25];
|
|
196
|
+
}
|
|
197
|
+
const t10 = visible ? "true" : "false";
|
|
198
|
+
const t11 = visible ? props2["aria-hidden"] : true;
|
|
199
|
+
let t12;
|
|
200
|
+
if ($[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
201
|
+
t12 = /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "xtwfq29 xwhwt5f x2lah0s xols6we x1v4s8kt" });
|
|
202
|
+
$[26] = t12;
|
|
203
|
+
} else {
|
|
204
|
+
t12 = $[26];
|
|
205
|
+
}
|
|
206
|
+
let t13;
|
|
207
|
+
if ($[27] !== children || $[28] !== props2 || $[29] !== t10 || $[30] !== t11 || $[31] !== t9) {
|
|
208
|
+
t13 = /* @__PURE__ */ jsxs("span", { ...props2, ...t9, "data-bolerish-status-pill": "", "data-visible": t10, "aria-hidden": t11, children: [
|
|
209
|
+
t12,
|
|
210
|
+
children
|
|
211
|
+
] });
|
|
212
|
+
$[27] = children;
|
|
213
|
+
$[28] = props2;
|
|
214
|
+
$[29] = t10;
|
|
215
|
+
$[30] = t11;
|
|
216
|
+
$[31] = t9;
|
|
217
|
+
$[32] = t13;
|
|
218
|
+
} else {
|
|
219
|
+
t13 = $[32];
|
|
220
|
+
}
|
|
221
|
+
const pill = t13;
|
|
222
|
+
if (!position) {
|
|
223
|
+
return pill;
|
|
224
|
+
}
|
|
225
|
+
if (!mounted) {
|
|
226
|
+
return null;
|
|
227
|
+
}
|
|
228
|
+
let t14;
|
|
229
|
+
if ($[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
230
|
+
t14 = {
|
|
231
|
+
className: "x1p9f38c"
|
|
232
|
+
};
|
|
233
|
+
$[33] = t14;
|
|
234
|
+
} else {
|
|
235
|
+
t14 = $[33];
|
|
236
|
+
}
|
|
237
|
+
let t15;
|
|
238
|
+
if ($[34] !== offset) {
|
|
239
|
+
t15 = offset === void 0 ? void 0 : {
|
|
240
|
+
"--bolerish-status-offset": typeof offset === "number" ? `${offset}px` : offset
|
|
241
|
+
};
|
|
242
|
+
$[34] = offset;
|
|
243
|
+
$[35] = t15;
|
|
244
|
+
} else {
|
|
245
|
+
t15 = $[35];
|
|
246
|
+
}
|
|
247
|
+
let t16;
|
|
248
|
+
if ($[36] !== pill || $[37] !== position || $[38] !== t15) {
|
|
249
|
+
t16 = createPortal(/* @__PURE__ */ jsx("div", { ...t14, "data-bolerish-status-position": position, style: t15, children: pill }), document.body);
|
|
250
|
+
$[36] = pill;
|
|
251
|
+
$[37] = position;
|
|
252
|
+
$[38] = t15;
|
|
253
|
+
$[39] = t16;
|
|
254
|
+
} else {
|
|
255
|
+
t16 = $[39];
|
|
256
|
+
}
|
|
257
|
+
return t16;
|
|
258
|
+
}
|
|
259
|
+
export {
|
|
260
|
+
Snackbar
|
|
261
|
+
};
|
|
262
|
+
//# sourceMappingURL=snackbar.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/snackbar.tsx", "../src/styles/merge-styles.ts"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { c as _c } from \"react/compiler-runtime\";\nimport { colorVars, layerVars, radiusVars, spacingVars, typo } from \"@bolerish/tokens/semantic.stylex\";\nimport * as stylex from \"@stylexjs/stylex\";\nimport { useSyncExternalStore, useEffect, useRef, useState, type ComponentProps, type CSSProperties } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport type { ControlPlacementStyles } from \"./styles/control-layout\";\nimport { mergeStyles, type StyledProps } from \"./styles/merge-styles\";\nconst styles = {\n root: {\n kGNEyG: \"x6s0dn4\",\n kaIpWk: \"xwhwt5f\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xmkeg23\",\n k1xSpc: \"x3nfvp2\",\n kMv6JI: \"x1b1to7n\",\n kGuDYH: \"x1gag4p9\",\n k63SB2: \"xoop9yj\",\n kOIVth: \"x136xbx3\",\n kHBbk8: \"xc8icb0\",\n kLWn49: \"x15rnifv\",\n k8WAf4: \"x1mmca2r\",\n kg3NbH: \"x5044ve\",\n kVAEAm: \"x1n2onr6\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n }\n};\nconst tones = {\n success: {\n kWkggS: \"x1y4jrb8\",\n kMwMTN: \"x1kmg14s\",\n kVAM5u: \"xinhyjt\",\n $$css: true\n },\n warning: {\n kWkggS: \"x1ei3au1\",\n kMwMTN: \"x1kmo6vn\",\n kVAM5u: \"x1vl4jgv\",\n $$css: true\n },\n error: {\n kWkggS: \"x1joc7g2\",\n kMwMTN: \"xat8mfl\",\n kVAM5u: \"x165btzp\",\n $$css: true\n },\n info: {\n kWkggS: \"x173w07f\",\n kMwMTN: \"xbpx0ws\",\n kVAM5u: \"x17y0vtu\",\n $$css: true\n },\n neutral: {\n kWkggS: \"xmqg8ag\",\n kMwMTN: \"xj9e3ow\",\n kVAM5u: \"x1kqtvf4\",\n $$css: true\n }\n};\nconst subscribe = () => () => {};\nconst clientSnapshot = () => true;\nconst serverSnapshot = () => false;\nexport type SnackbarPosition = \"top-left\" | \"top-center\" | \"top-right\" | \"bottom-left\" | \"bottom-center\" | \"bottom-right\";\nexport type SnackbarProps = StyledProps<ComponentProps<\"span\">> & {\n tone?: keyof typeof tones;\n /** Defaults to bottom-center; null renders inline. Small screens center horizontally. */\n position?: SnackbarPosition | null;\n /** Edge gap, in px for numbers. Defaults to 16px mobile / 24px desktop, plus safe area. */\n offset?: string | number;\n /** Keep mounted while open changes so exit motion can finish. */\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n /** Milliseconds before dismissal; 0 disables the timer. */\n duration?: number;\n xstyle?: ControlPlacementStyles;\n};\n\n/** A non-interactive status label with a decorative color echo on visibility changes. */\nexport function Snackbar(t0) {\n const $ = _c(40);\n let children;\n let className;\n let controlledOpen;\n let offset;\n let onOpenChange;\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 tone: t1,\n position: t2,\n offset,\n open: controlledOpen,\n defaultOpen: t3,\n onOpenChange,\n duration: t4,\n children,\n className,\n style,\n xstyle,\n ...props\n } = t0);\n $[0] = t0;\n $[1] = children;\n $[2] = className;\n $[3] = controlledOpen;\n $[4] = offset;\n $[5] = onOpenChange;\n $[6] = props;\n $[7] = style;\n $[8] = t1;\n $[9] = t2;\n $[10] = t3;\n $[11] = t4;\n $[12] = xstyle;\n } else {\n children = $[1];\n className = $[2];\n controlledOpen = $[3];\n offset = $[4];\n onOpenChange = $[5];\n props = $[6];\n style = $[7];\n t1 = $[8];\n t2 = $[9];\n t3 = $[10];\n t4 = $[11];\n xstyle = $[12];\n }\n const tone = t1 === undefined ? \"neutral\" : t1;\n const position = t2 === undefined ? \"bottom-center\" : t2;\n const defaultOpen = t3 === undefined ? true : t3;\n const duration = t4 === undefined ? 3000 : t4;\n const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);\n const controlled = controlledOpen !== undefined;\n const visible = controlled ? controlledOpen : uncontrolledOpen;\n const onOpenChangeRef = useRef(onOpenChange);\n let t5;\n let t6;\n if ($[13] !== onOpenChange) {\n t5 = () => {\n onOpenChangeRef.current = onOpenChange;\n };\n t6 = [onOpenChange];\n $[13] = onOpenChange;\n $[14] = t5;\n $[15] = t6;\n } else {\n t5 = $[14];\n t6 = $[15];\n }\n useEffect(t5, t6);\n let t7;\n let t8;\n if ($[16] !== controlled || $[17] !== duration || $[18] !== visible) {\n t7 = () => {\n if (!visible || !Number.isFinite(duration) || duration <= 0) {\n return;\n }\n const timer = window.setTimeout(() => {\n if (!controlled) {\n setUncontrolledOpen(false);\n }\n onOpenChangeRef.current?.(false);\n }, duration);\n return () => window.clearTimeout(timer);\n };\n t8 = [visible, duration, controlled];\n $[16] = controlled;\n $[17] = duration;\n $[18] = visible;\n $[19] = t7;\n $[20] = t8;\n } else {\n t7 = $[19];\n t8 = $[20];\n }\n useEffect(t7, t8);\n const mounted = useSyncExternalStore(subscribe, clientSnapshot, serverSnapshot);\n let t9;\n if ($[21] !== className || $[22] !== style || $[23] !== tone || $[24] !== xstyle) {\n t9 = mergeStyles(stylex.props(styles.root, tones[tone], xstyle), className, style);\n $[21] = className;\n $[22] = style;\n $[23] = tone;\n $[24] = xstyle;\n $[25] = t9;\n } else {\n t9 = $[25];\n }\n const t10 = visible ? \"true\" : \"false\";\n const t11 = visible ? props[\"aria-hidden\"] : true;\n let t12;\n if ($[26] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t12 = <span aria-hidden=\"true\" className=\"xtwfq29 xwhwt5f x2lah0s xols6we x1v4s8kt\" />;\n $[26] = t12;\n } else {\n t12 = $[26];\n }\n let t13;\n if ($[27] !== children || $[28] !== props || $[29] !== t10 || $[30] !== t11 || $[31] !== t9) {\n t13 = <span {...props} {...t9} data-bolerish-status-pill=\"\" data-visible={t10} aria-hidden={t11}>{t12}{children}</span>;\n $[27] = children;\n $[28] = props;\n $[29] = t10;\n $[30] = t11;\n $[31] = t9;\n $[32] = t13;\n } else {\n t13 = $[32];\n }\n const pill = t13;\n if (!position) {\n return pill;\n }\n if (!mounted) {\n return null;\n }\n let t14;\n if ($[33] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t14 = {\n className: \"x1p9f38c\"\n };\n $[33] = t14;\n } else {\n t14 = $[33];\n }\n let t15;\n if ($[34] !== offset) {\n t15 = offset === undefined ? undefined : {\n \"--bolerish-status-offset\": typeof offset === \"number\" ? `${offset}px` : offset\n } as CSSProperties;\n $[34] = offset;\n $[35] = t15;\n } else {\n t15 = $[35];\n }\n let t16;\n if ($[36] !== pill || $[37] !== position || $[38] !== t15) {\n t16 = createPortal(<div {...t14} data-bolerish-status-position={position} style={t15}>{pill}</div>, document.body);\n $[36] = pill;\n $[37] = position;\n $[38] = t15;\n $[39] = t16;\n } else {\n t16 = $[39];\n }\n return t16;\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}"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,KAAK,UAAU;AAExB,YAAY,YAAY;AACxB,SAAS,sBAAsB,WAAW,QAAQ,gBAAyD;AAC3G,SAAS,oBAAoB;;;ACAtB,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;;;ADuLU,cAOA,YAPA;AAjMV,IAAM,SAAS;AAAA,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AAE,EAAE,MAAM,QAAQ,EAAE,EAAE,MAAM,YAAY,EAAE,EAAE,MAAM,KAAK;AACzD,UAAM,aAAa,oBAAC,SAAK,GAAG,KAAK,iCAA+B,UAAU,OAAO,KAAM,gBAAK,GAAQ,SAAS,IAAI;AACjH,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AACR,MAAE,EAAE,IAAI;AAAA,EACV,OAAO;AACL,UAAM,EAAE,EAAE;AAAA,EACZ;AACA,SAAO;AACT;",
|
|
6
|
+
"names": ["props"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type SnackbarProps, type SnackbarPosition } from "./snackbar";
|
|
2
|
+
/** @deprecated Use SnackbarPosition. */
|
|
3
|
+
export type StatusPillPosition = SnackbarPosition;
|
|
4
|
+
/** @deprecated Use SnackbarProps with open/onOpenChange. */
|
|
5
|
+
export type StatusPillProps = Omit<SnackbarProps, "open" | "defaultOpen" | "position"> & {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
position?: StatusPillPosition;
|
|
8
|
+
};
|
|
9
|
+
/** @deprecated Use Snackbar. This compatibility component retains persistent inline defaults. */
|
|
10
|
+
export declare function StatusPill({ visible, position, duration, ...props }: StatusPillProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/status-pill.tsx
|
|
4
|
+
import { Snackbar } from "./snackbar.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function StatusPill({ visible = true, position, duration = 0, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Snackbar, { ...props, open: visible, position: position ?? null, duration });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
StatusPill
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=status-pill.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/status-pill.tsx"],
|
|
4
|
+
"sourcesContent": ["\"use client\";\n\nimport { Snackbar, type SnackbarProps, type SnackbarPosition } from \"./snackbar\";\n\n/** @deprecated Use SnackbarPosition. */\nexport type StatusPillPosition = SnackbarPosition;\n/** @deprecated Use SnackbarProps with open/onOpenChange. */\nexport type StatusPillProps = Omit<SnackbarProps, \"open\" | \"defaultOpen\" | \"position\"> & {\n visible?: boolean;\n position?: StatusPillPosition;\n};\n/** @deprecated Use Snackbar. This compatibility component retains persistent inline defaults. */\nexport function StatusPill({ visible = true, position, duration = 0, ...props }: StatusPillProps) {\n return <Snackbar {...props} open={visible} position={position ?? null} duration={duration} />;\n}\n"],
|
|
5
|
+
"mappings": ";;;AAEA,SAAS,gBAA2D;AAW3D;AADF,SAAS,WAAW,EAAE,UAAU,MAAM,UAAU,WAAW,GAAG,GAAG,MAAM,GAAoB;AAChG,SAAO,oBAAC,YAAU,GAAG,OAAO,MAAM,SAAS,UAAU,YAAY,MAAM,UAAoB;AAC7F;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
export declare const modalOverlayStyles: Readonly<{
|
|
3
|
+
readonly backdrop: Readonly<{
|
|
4
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
|
|
5
|
+
}>;
|
|
6
|
+
readonly outsideScrim: Readonly<{
|
|
7
|
+
readonly ":is([data-nested])": stylex.StyleXClassNameFor<":is([data-nested])", {
|
|
8
|
+
readonly "--bolerish-modal-transition-opacity": "var(--bolerish-modal-nested-opacity, 0)";
|
|
9
|
+
}>;
|
|
10
|
+
readonly "--bolerish-modal-current-spread": stylex.StyleXClassNameFor<"--bolerish-modal-current-spread", "var(--bolerish-modal-scrim-spread, 0px)">;
|
|
11
|
+
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", `var(--bolerish-raised-shadow, ${stylex.StyleXVar<string>}), 0 0 0 var(--bolerish-modal-current-spread) ${stylex.StyleXVar<string>}`>;
|
|
12
|
+
}>;
|
|
13
|
+
}>;
|
package/dist/styles/surface.d.ts
CHANGED
|
@@ -2,24 +2,31 @@ import * as stylex from "@stylexjs/stylex";
|
|
|
2
2
|
export declare const surfaceStyles: {
|
|
3
3
|
edge: Readonly<{
|
|
4
4
|
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", string>;
|
|
5
|
+
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
6
|
+
readonly borderColor: stylex.StyleXVar<string>;
|
|
7
|
+
}>;
|
|
5
8
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
6
9
|
readonly borderColor: "CanvasText";
|
|
7
10
|
}>;
|
|
8
11
|
}>;
|
|
9
12
|
panel: (Readonly<{
|
|
13
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
10
14
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
11
15
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
12
16
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
17
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
13
18
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
14
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
19
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
15
20
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
16
21
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
22
|
+
readonly WebkitBackdropFilter: "none";
|
|
17
23
|
readonly backdropFilter: "none";
|
|
18
24
|
readonly backgroundImage: "none";
|
|
19
25
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
20
26
|
}>;
|
|
21
27
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
22
28
|
readonly backgroundColor: "Canvas";
|
|
29
|
+
readonly WebkitBackdropFilter: "none";
|
|
23
30
|
readonly backdropFilter: "none";
|
|
24
31
|
readonly backgroundImage: "none";
|
|
25
32
|
readonly boxShadow: "none";
|
|
@@ -30,88 +37,107 @@ export declare const surfaceStyles: {
|
|
|
30
37
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-panel-filter, none)">;
|
|
31
38
|
}>)[];
|
|
32
39
|
control: (Readonly<{
|
|
40
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
33
41
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
34
42
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
35
43
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
44
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
36
45
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
37
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
46
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
38
47
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
39
48
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
49
|
+
readonly WebkitBackdropFilter: "none";
|
|
40
50
|
readonly backdropFilter: "none";
|
|
41
51
|
readonly backgroundImage: "none";
|
|
42
52
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
43
53
|
}>;
|
|
44
54
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
45
55
|
readonly backgroundColor: "Canvas";
|
|
56
|
+
readonly WebkitBackdropFilter: "none";
|
|
46
57
|
readonly backdropFilter: "none";
|
|
47
58
|
readonly backgroundImage: "none";
|
|
48
59
|
readonly boxShadow: "none";
|
|
49
60
|
}>;
|
|
50
61
|
}> | Readonly<{
|
|
62
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-control-sheen, none)">;
|
|
51
63
|
readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
|
|
52
64
|
readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
|
|
53
65
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
|
|
54
66
|
}>)[];
|
|
55
67
|
subtle: (Readonly<{
|
|
68
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
56
69
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
57
70
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
58
71
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
72
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
59
73
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
60
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
74
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
61
75
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
62
76
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
77
|
+
readonly WebkitBackdropFilter: "none";
|
|
63
78
|
readonly backdropFilter: "none";
|
|
64
79
|
readonly backgroundImage: "none";
|
|
65
80
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
66
81
|
}>;
|
|
67
82
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
68
83
|
readonly backgroundColor: "Canvas";
|
|
84
|
+
readonly WebkitBackdropFilter: "none";
|
|
69
85
|
readonly backdropFilter: "none";
|
|
70
86
|
readonly backgroundImage: "none";
|
|
71
87
|
readonly boxShadow: "none";
|
|
72
88
|
}>;
|
|
73
89
|
}> | Readonly<{
|
|
90
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-control-sheen, none)">;
|
|
74
91
|
readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
|
|
75
92
|
readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
|
|
76
93
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
|
|
77
94
|
}>)[];
|
|
78
95
|
outline: (Readonly<{
|
|
96
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
79
97
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
80
98
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
81
99
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
100
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
82
101
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
83
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
102
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
84
103
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
85
104
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
105
|
+
readonly WebkitBackdropFilter: "none";
|
|
86
106
|
readonly backdropFilter: "none";
|
|
87
107
|
readonly backgroundImage: "none";
|
|
88
108
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
89
109
|
}>;
|
|
90
110
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
91
111
|
readonly backgroundColor: "Canvas";
|
|
112
|
+
readonly WebkitBackdropFilter: "none";
|
|
92
113
|
readonly backdropFilter: "none";
|
|
93
114
|
readonly backgroundImage: "none";
|
|
94
115
|
readonly boxShadow: "none";
|
|
95
116
|
}>;
|
|
96
117
|
}> | Readonly<{
|
|
118
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-control-sheen, none)">;
|
|
97
119
|
readonly "--bolerish-material-color": stylex.StyleXClassNameFor<"--bolerish-material-color", string>;
|
|
98
120
|
readonly "--bolerish-material-opacity": stylex.StyleXClassNameFor<"--bolerish-material-opacity", "var(--bolerish-control-opacity, 100%)">;
|
|
99
121
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-control-filter, none)">;
|
|
100
122
|
}>)[];
|
|
101
123
|
raised: (Readonly<{
|
|
124
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
102
125
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
103
126
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
104
127
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
128
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
105
129
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
106
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
130
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
107
131
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
108
132
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
133
|
+
readonly WebkitBackdropFilter: "none";
|
|
109
134
|
readonly backdropFilter: "none";
|
|
110
135
|
readonly backgroundImage: "none";
|
|
111
136
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
112
137
|
}>;
|
|
113
138
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
114
139
|
readonly backgroundColor: "Canvas";
|
|
140
|
+
readonly WebkitBackdropFilter: "none";
|
|
115
141
|
readonly backdropFilter: "none";
|
|
116
142
|
readonly backgroundImage: "none";
|
|
117
143
|
readonly boxShadow: "none";
|
|
@@ -123,19 +149,23 @@ export declare const surfaceStyles: {
|
|
|
123
149
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-floating-filter, none)">;
|
|
124
150
|
}>)[];
|
|
125
151
|
translucent: (Readonly<{
|
|
152
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
126
153
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
127
154
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
128
155
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
156
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
129
157
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
130
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
158
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
131
159
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
132
160
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
161
|
+
readonly WebkitBackdropFilter: "none";
|
|
133
162
|
readonly backdropFilter: "none";
|
|
134
163
|
readonly backgroundImage: "none";
|
|
135
164
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
136
165
|
}>;
|
|
137
166
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
138
167
|
readonly backgroundColor: "Canvas";
|
|
168
|
+
readonly WebkitBackdropFilter: "none";
|
|
139
169
|
readonly backdropFilter: "none";
|
|
140
170
|
readonly backgroundImage: "none";
|
|
141
171
|
readonly boxShadow: "none";
|
|
@@ -146,19 +176,23 @@ export declare const surfaceStyles: {
|
|
|
146
176
|
readonly "--bolerish-material-filter": stylex.StyleXClassNameFor<"--bolerish-material-filter", "var(--bolerish-panel-filter, blur(16px))">;
|
|
147
177
|
}>)[];
|
|
148
178
|
floating: (Readonly<{
|
|
179
|
+
readonly "--bolerish-material-sheen": stylex.StyleXClassNameFor<"--bolerish-material-sheen", "var(--bolerish-surface-sheen, none)">;
|
|
149
180
|
readonly "--bolerish-material-shadow": stylex.StyleXClassNameFor<"--bolerish-material-shadow", "0 0 transparent">;
|
|
150
181
|
readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", "var(--bolerish-material-shadow)" | "var(--bolerish-surface-reflection, 0 0 transparent), var(--bolerish-material-shadow)">;
|
|
151
182
|
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in srgb, var(--bolerish-material-color, ${stylex.StyleXVar<string>}) var(--bolerish-material-opacity), transparent)` | `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`>;
|
|
183
|
+
readonly WebkitBackdropFilter: stylex.StyleXClassNameFor<"WebkitBackdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
152
184
|
readonly backdropFilter: stylex.StyleXClassNameFor<"backdropFilter", "none" | "var(--bolerish-material-filter)">;
|
|
153
|
-
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-surface-sheen, none)">;
|
|
185
|
+
readonly backgroundImage: stylex.StyleXClassNameFor<"backgroundImage", "none" | "var(--bolerish-material-sheen, var(--bolerish-surface-sheen, none))">;
|
|
154
186
|
readonly "@media (prefers-reduced-transparency: reduce)": stylex.StyleXClassNameFor<"@media (prefers-reduced-transparency: reduce)", {
|
|
155
187
|
readonly backgroundColor: `var(--bolerish-material-color, ${stylex.StyleXVar<string>})`;
|
|
188
|
+
readonly WebkitBackdropFilter: "none";
|
|
156
189
|
readonly backdropFilter: "none";
|
|
157
190
|
readonly backgroundImage: "none";
|
|
158
191
|
readonly boxShadow: "var(--bolerish-material-shadow)";
|
|
159
192
|
}>;
|
|
160
193
|
readonly "@media (forced-colors: active)": stylex.StyleXClassNameFor<"@media (forced-colors: active)", {
|
|
161
194
|
readonly backgroundColor: "Canvas";
|
|
195
|
+
readonly WebkitBackdropFilter: "none";
|
|
162
196
|
readonly backdropFilter: "none";
|
|
163
197
|
readonly backgroundImage: "none";
|
|
164
198
|
readonly boxShadow: "none";
|