@octavius2929-personal/design-system 0.14.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/index.cjs +428 -217
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -594
- package/dist/index.d.ts +3 -594
- package/dist/index.js +333 -122
- package/dist/index.js.map +1 -1
- package/package.json +3 -11
- package/LICENSE +0 -21
- package/README.md +0 -117
package/dist/index.js
CHANGED
|
@@ -101,10 +101,264 @@ var Container = ContainerForwarded;
|
|
|
101
101
|
import { forwardRef as forwardRef2 } from "react";
|
|
102
102
|
|
|
103
103
|
// src/components/typography/use-styles.ts
|
|
104
|
-
import { useMemo as
|
|
104
|
+
import { useMemo as useMemo5 } from "react";
|
|
105
|
+
|
|
106
|
+
// ../core/dist/index.js
|
|
107
|
+
import { useEffect as useEffect2, useMemo as useMemo3, useState as useState2 } from "react";
|
|
108
|
+
var tokens = {
|
|
109
|
+
font: {
|
|
110
|
+
display: "'DM Serif Display', 'Times New Roman', serif",
|
|
111
|
+
text: "'Newsreader', Georgia, serif",
|
|
112
|
+
mono: "'IBM Plex Mono', 'SFMono-Regular', monospace",
|
|
113
|
+
black: "'UnifrakturMaguntia', 'Grenze Gotisch', serif"
|
|
114
|
+
},
|
|
115
|
+
// Roles tipográficos: tamaño/interlineado/peso/tracking listos para typography.css.ts.
|
|
116
|
+
text: {
|
|
117
|
+
eyebrow: { size: "0.694rem", lineHeight: "1.2", weight: "500", letterSpacing: "0.14em" },
|
|
118
|
+
display: { size: "5.6rem", lineHeight: "1.05", weight: "600", letterSpacing: "-0.01em" },
|
|
119
|
+
h1: { size: "2.9rem", lineHeight: "1.05", weight: "600", letterSpacing: "-0.01em" },
|
|
120
|
+
h2: { size: "2.1rem", lineHeight: "1.2", weight: "600", letterSpacing: "0" },
|
|
121
|
+
h3: { size: "1.563rem", lineHeight: "1.2", weight: "500", letterSpacing: "0" },
|
|
122
|
+
h4: { size: "1.25rem", lineHeight: "1.2", weight: "600", letterSpacing: "0" },
|
|
123
|
+
body: { size: "1rem", lineHeight: "1.7", weight: "400", letterSpacing: "0" },
|
|
124
|
+
lead: { size: "1.25rem", lineHeight: "1.7", weight: "400", letterSpacing: "0" },
|
|
125
|
+
small: { size: "0.95rem", lineHeight: "1.5", weight: "400", letterSpacing: "0" },
|
|
126
|
+
caption: { size: "0.833rem", lineHeight: "1.5", weight: "400", letterSpacing: "0.04em" }
|
|
127
|
+
},
|
|
128
|
+
space: {
|
|
129
|
+
s0: "0",
|
|
130
|
+
s1: "0.25rem",
|
|
131
|
+
// 4
|
|
132
|
+
s2: "0.5rem",
|
|
133
|
+
// 8
|
|
134
|
+
s3: "0.75rem",
|
|
135
|
+
// 12
|
|
136
|
+
s4: "1rem",
|
|
137
|
+
// 16
|
|
138
|
+
s5: "1.5rem",
|
|
139
|
+
// 24
|
|
140
|
+
s6: "2rem",
|
|
141
|
+
// 32
|
|
142
|
+
s7: "3rem",
|
|
143
|
+
// 48
|
|
144
|
+
s8: "4rem",
|
|
145
|
+
// 64
|
|
146
|
+
s9: "6rem"
|
|
147
|
+
// 96
|
|
148
|
+
},
|
|
149
|
+
radius: { none: "0px", sm: "3px", md: "5px", lg: "8px", base: "4px", full: "999px" },
|
|
150
|
+
border: { hair: "1px", rule: "1.5px", heavy: "2px" },
|
|
151
|
+
// Tracking de mayúsculas: escala coherente alineada al uso real (eyebrow = widest).
|
|
152
|
+
tracking: { tight: "-0.01em", normal: "0", wide: "0.04em", wider: "0.1em", widest: "0.14em" },
|
|
153
|
+
weight: { light: "300", regular: "400", medium: "500", semibold: "600", bold: "700" },
|
|
154
|
+
dur: { fast: "120ms", base: "200ms", slow: "360ms" },
|
|
155
|
+
ease: { ink: "cubic-bezier(0.2, 0, 0, 1)" },
|
|
156
|
+
shadow: {
|
|
157
|
+
sm: "0 1px 0 rgba(20,17,14,0.06)",
|
|
158
|
+
md: "0 2px 10px -4px rgba(20,17,14,0.22)",
|
|
159
|
+
lg: "0 12px 32px -10px rgba(20,17,14,0.34)"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
var tintaSchema = {
|
|
163
|
+
light: {
|
|
164
|
+
...tokens,
|
|
165
|
+
color: {
|
|
166
|
+
bg1: "#F8F7F4",
|
|
167
|
+
bg2: "#FFFFFF",
|
|
168
|
+
bg3: "#EDEBE6",
|
|
169
|
+
bgInset: "#E4E1DA",
|
|
170
|
+
fg1: "#15130F",
|
|
171
|
+
fg2: "#494640",
|
|
172
|
+
fg3: "#737069",
|
|
173
|
+
fgOnAccent: "#F8F7F4",
|
|
174
|
+
border1: "rgba(21, 19, 15, 0.12)",
|
|
175
|
+
border2: "rgba(21, 19, 15, 0.26)",
|
|
176
|
+
borderStrong: "rgba(21, 19, 15, 0.85)",
|
|
177
|
+
accent: "#7B1E1E",
|
|
178
|
+
accentHover: "#631616",
|
|
179
|
+
accentSoft: "rgba(123, 30, 30, 0.10)",
|
|
180
|
+
ok: "#3E5C3A",
|
|
181
|
+
warn: "#8A6A1E",
|
|
182
|
+
danger: "#7B1E1E",
|
|
183
|
+
dangerHover: "#631616",
|
|
184
|
+
dangerSoft: "rgba(123, 30, 30, 0.10)",
|
|
185
|
+
info: "#2E4257",
|
|
186
|
+
focus: "#7B1E1E",
|
|
187
|
+
scrim: "rgba(20, 17, 14, 0.55)"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
dark: {
|
|
191
|
+
...tokens,
|
|
192
|
+
color: {
|
|
193
|
+
bg1: "#100E0B",
|
|
194
|
+
bg2: "#1A1611",
|
|
195
|
+
bg3: "#070605",
|
|
196
|
+
bgInset: "#221D16",
|
|
197
|
+
fg1: "#F2EDE2",
|
|
198
|
+
fg2: "#B7AF9F",
|
|
199
|
+
fg3: "#878070",
|
|
200
|
+
fgOnAccent: "#F2EDE2",
|
|
201
|
+
border1: "rgba(242, 237, 226, 0.13)",
|
|
202
|
+
border2: "rgba(242, 237, 226, 0.26)",
|
|
203
|
+
borderStrong: "rgba(242, 237, 226, 0.80)",
|
|
204
|
+
accent: "#B23A3A",
|
|
205
|
+
accentHover: "#CC4A4A",
|
|
206
|
+
accentSoft: "rgba(178, 58, 58, 0.16)",
|
|
207
|
+
ok: "#7FA178",
|
|
208
|
+
warn: "#C7A04E",
|
|
209
|
+
danger: "#C24A4A",
|
|
210
|
+
dangerHover: "#D45C5C",
|
|
211
|
+
dangerSoft: "rgba(194, 74, 74, 0.16)",
|
|
212
|
+
info: "#6E92B4",
|
|
213
|
+
focus: "#CC4A4A",
|
|
214
|
+
scrim: "rgba(7, 6, 5, 0.65)"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
sepia: {
|
|
218
|
+
...tokens,
|
|
219
|
+
color: {
|
|
220
|
+
bg1: "#E9DDC4",
|
|
221
|
+
bg2: "#F2E9D5",
|
|
222
|
+
bg3: "#DCCDAC",
|
|
223
|
+
bgInset: "#D2C09B",
|
|
224
|
+
fg1: "#2A2013",
|
|
225
|
+
fg2: "#5A4A33",
|
|
226
|
+
fg3: "#6E6046",
|
|
227
|
+
fgOnAccent: "#F2E9D5",
|
|
228
|
+
border1: "rgba(42, 32, 19, 0.16)",
|
|
229
|
+
border2: "rgba(42, 32, 19, 0.32)",
|
|
230
|
+
borderStrong: "rgba(42, 32, 19, 0.82)",
|
|
231
|
+
accent: "#7A2E12",
|
|
232
|
+
accentHover: "#5F2109",
|
|
233
|
+
accentSoft: "rgba(122, 46, 18, 0.12)",
|
|
234
|
+
ok: "#4A5A2E",
|
|
235
|
+
warn: "#8A6A1E",
|
|
236
|
+
danger: "#7A2E12",
|
|
237
|
+
dangerHover: "#5F2109",
|
|
238
|
+
dangerSoft: "rgba(122, 46, 18, 0.12)",
|
|
239
|
+
info: "#3C4E57",
|
|
240
|
+
focus: "#7A2E12",
|
|
241
|
+
scrim: "rgba(42, 32, 19, 0.55)"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
contrast: {
|
|
245
|
+
...tokens,
|
|
246
|
+
color: {
|
|
247
|
+
bg1: "#FFFFFF",
|
|
248
|
+
bg2: "#FFFFFF",
|
|
249
|
+
bg3: "#F2F2F2",
|
|
250
|
+
bgInset: "#EAEAEA",
|
|
251
|
+
fg1: "#000000",
|
|
252
|
+
fg2: "#000000",
|
|
253
|
+
fg3: "#2B2B2B",
|
|
254
|
+
fgOnAccent: "#FFFFFF",
|
|
255
|
+
border1: "#000000",
|
|
256
|
+
border2: "#000000",
|
|
257
|
+
borderStrong: "#000000",
|
|
258
|
+
accent: "#000000",
|
|
259
|
+
accentHover: "#2B2B2B",
|
|
260
|
+
accentSoft: "rgba(0, 0, 0, 0.08)",
|
|
261
|
+
ok: "#000000",
|
|
262
|
+
warn: "#000000",
|
|
263
|
+
danger: "#8B0000",
|
|
264
|
+
dangerHover: "#6B0000",
|
|
265
|
+
dangerSoft: "rgba(139, 0, 0, 0.10)",
|
|
266
|
+
info: "#000000",
|
|
267
|
+
focus: "#000000",
|
|
268
|
+
scrim: "rgba(0, 0, 0, 0.7)"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
var schemas = { tinta: tintaSchema };
|
|
273
|
+
var modeNames2 = ["light", "dark", "sepia", "contrast"];
|
|
274
|
+
function resolveMode(preference, systemMode) {
|
|
275
|
+
return preference === "system" ? systemMode : preference;
|
|
276
|
+
}
|
|
277
|
+
function useThemeStore(options, storage, system) {
|
|
278
|
+
const { defaultSchema = "tinta", defaultMode = "light" } = options;
|
|
279
|
+
const [persisted] = useState2(() => storage.read());
|
|
280
|
+
const [schema, setSchema] = useState2(persisted?.schema ?? defaultSchema);
|
|
281
|
+
const [preference, setPreference] = useState2(
|
|
282
|
+
persisted?.preference ?? defaultMode
|
|
283
|
+
);
|
|
284
|
+
const [systemMode, setSystemMode] = useState2(() => system.get());
|
|
285
|
+
useEffect2(() => {
|
|
286
|
+
if (preference !== "system") return;
|
|
287
|
+
const update = () => setSystemMode(system.get());
|
|
288
|
+
update();
|
|
289
|
+
return system.subscribe(update);
|
|
290
|
+
}, [preference, system]);
|
|
291
|
+
const mode = resolveMode(preference, systemMode);
|
|
292
|
+
useEffect2(() => {
|
|
293
|
+
storage.write({ schema, preference });
|
|
294
|
+
}, [schema, preference, storage]);
|
|
295
|
+
return useMemo3(
|
|
296
|
+
() => ({
|
|
297
|
+
schema,
|
|
298
|
+
mode,
|
|
299
|
+
preference,
|
|
300
|
+
colorTokens: schemas[schema][mode].color,
|
|
301
|
+
setSchema,
|
|
302
|
+
setMode: setPreference,
|
|
303
|
+
toggleMode: () => setPreference(mode === "dark" ? "light" : "dark"),
|
|
304
|
+
cycleMode: () => {
|
|
305
|
+
const next = modeNames2[(modeNames2.indexOf(mode) + 1) % modeNames2.length];
|
|
306
|
+
if (next) setPreference(next);
|
|
307
|
+
}
|
|
308
|
+
}),
|
|
309
|
+
[schema, mode, preference]
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// src/theme/context/theme-context.tsx
|
|
314
|
+
import { createContext as createContext2, useContext as useContext2, useMemo as useMemo4 } from "react";
|
|
315
|
+
|
|
316
|
+
// src/theme/adapters.ts
|
|
317
|
+
var SYSTEM_QUERIES = ["(prefers-contrast: more)", "(prefers-color-scheme: dark)"];
|
|
318
|
+
function createWebStorageAdapter(storageKey, persist) {
|
|
319
|
+
return {
|
|
320
|
+
read() {
|
|
321
|
+
if (!persist || typeof window === "undefined") return null;
|
|
322
|
+
try {
|
|
323
|
+
const raw = window.localStorage.getItem(storageKey);
|
|
324
|
+
return raw ? JSON.parse(raw) : null;
|
|
325
|
+
} catch {
|
|
326
|
+
return null;
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
write(value) {
|
|
330
|
+
if (!persist || typeof window === "undefined") return;
|
|
331
|
+
try {
|
|
332
|
+
window.localStorage.setItem(storageKey, JSON.stringify(value));
|
|
333
|
+
} catch {
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function createWebSystemModeAdapter() {
|
|
339
|
+
function get() {
|
|
340
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return "light";
|
|
341
|
+
if (window.matchMedia("(prefers-contrast: more)").matches) return "contrast";
|
|
342
|
+
if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
|
343
|
+
return "light";
|
|
344
|
+
}
|
|
345
|
+
return {
|
|
346
|
+
get,
|
|
347
|
+
subscribe(onChange) {
|
|
348
|
+
if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
|
|
349
|
+
return () => {
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
const mqls = SYSTEM_QUERIES.map((q) => window.matchMedia(q));
|
|
353
|
+
for (const mql of mqls) mql.addEventListener?.("change", onChange);
|
|
354
|
+
return () => {
|
|
355
|
+
for (const mql of mqls) mql.removeEventListener?.("change", onChange);
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
}
|
|
105
360
|
|
|
106
361
|
// src/theme/context/theme-context.tsx
|
|
107
|
-
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useMemo as useMemo3, useState as useState2 } from "react";
|
|
108
362
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
109
363
|
var noop = () => {
|
|
110
364
|
};
|
|
@@ -119,28 +373,6 @@ var DEFAULT_VALUE = {
|
|
|
119
373
|
cycleMode: noop
|
|
120
374
|
};
|
|
121
375
|
var ThemeContext = createContext2(null);
|
|
122
|
-
function resolveSystemMode() {
|
|
123
|
-
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return "light";
|
|
124
|
-
if (window.matchMedia("(prefers-contrast: more)").matches) return "contrast";
|
|
125
|
-
if (window.matchMedia("(prefers-color-scheme: dark)").matches) return "dark";
|
|
126
|
-
return "light";
|
|
127
|
-
}
|
|
128
|
-
function readStored(key) {
|
|
129
|
-
if (typeof window === "undefined") return null;
|
|
130
|
-
try {
|
|
131
|
-
const raw = window.localStorage.getItem(key);
|
|
132
|
-
return raw ? JSON.parse(raw) : null;
|
|
133
|
-
} catch {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function writeStored(key, value) {
|
|
138
|
-
if (typeof window === "undefined") return;
|
|
139
|
-
try {
|
|
140
|
-
window.localStorage.setItem(key, JSON.stringify(value));
|
|
141
|
-
} catch {
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
376
|
function ThemeProvider({
|
|
145
377
|
children,
|
|
146
378
|
defaultSchema = "tinta",
|
|
@@ -148,45 +380,24 @@ function ThemeProvider({
|
|
|
148
380
|
storageKey = "ds-theme",
|
|
149
381
|
persist = true
|
|
150
382
|
}) {
|
|
151
|
-
const
|
|
152
|
-
() =>
|
|
383
|
+
const storage = useMemo4(
|
|
384
|
+
() => createWebStorageAdapter(storageKey, persist),
|
|
385
|
+
[storageKey, persist]
|
|
153
386
|
);
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const [systemMode, setSystemMode] = useState2(resolveSystemMode);
|
|
158
|
-
useEffect2(() => {
|
|
159
|
-
if (preference !== "system") return;
|
|
160
|
-
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
|
|
161
|
-
const mqls = ["(prefers-contrast: more)", "(prefers-color-scheme: dark)"].map(
|
|
162
|
-
(q) => window.matchMedia(q)
|
|
163
|
-
);
|
|
164
|
-
const onChange = () => setSystemMode(resolveSystemMode());
|
|
165
|
-
onChange();
|
|
166
|
-
for (const mql of mqls) mql.addEventListener?.("change", onChange);
|
|
167
|
-
return () => {
|
|
168
|
-
for (const mql of mqls) mql.removeEventListener?.("change", onChange);
|
|
169
|
-
};
|
|
170
|
-
}, [preference]);
|
|
171
|
-
const mode = preference === "system" ? systemMode : preference;
|
|
172
|
-
useEffect2(() => {
|
|
173
|
-
if (persist) writeStored(storageKey, { schema, preference });
|
|
174
|
-
}, [schema, preference, persist, storageKey]);
|
|
175
|
-
const value = useMemo3(
|
|
387
|
+
const system = useMemo4(() => createWebSystemModeAdapter(), []);
|
|
388
|
+
const store = useThemeStore({ defaultSchema, defaultMode }, storage, system);
|
|
389
|
+
const value = useMemo4(
|
|
176
390
|
() => ({
|
|
177
|
-
schema,
|
|
178
|
-
mode,
|
|
179
|
-
preference,
|
|
180
|
-
themeClass: themes[schema][mode],
|
|
181
|
-
setSchema,
|
|
182
|
-
setMode:
|
|
183
|
-
toggleMode:
|
|
184
|
-
cycleMode:
|
|
185
|
-
const next = modeNames[(modeNames.indexOf(mode) + 1) % modeNames.length];
|
|
186
|
-
if (next) setPreference(next);
|
|
187
|
-
}
|
|
391
|
+
schema: store.schema,
|
|
392
|
+
mode: store.mode,
|
|
393
|
+
preference: store.preference,
|
|
394
|
+
themeClass: themes[store.schema][store.mode],
|
|
395
|
+
setSchema: store.setSchema,
|
|
396
|
+
setMode: store.setMode,
|
|
397
|
+
toggleMode: store.toggleMode,
|
|
398
|
+
cycleMode: store.cycleMode
|
|
188
399
|
}),
|
|
189
|
-
[
|
|
400
|
+
[store]
|
|
190
401
|
);
|
|
191
402
|
return /* @__PURE__ */ jsx3(ThemeContext.Provider, { value, children });
|
|
192
403
|
}
|
|
@@ -209,7 +420,7 @@ function useStyles2({
|
|
|
209
420
|
align: align2
|
|
210
421
|
}) {
|
|
211
422
|
const { themeClass } = useTheme();
|
|
212
|
-
const className =
|
|
423
|
+
const className = useMemo5(
|
|
213
424
|
() => [
|
|
214
425
|
themeClass,
|
|
215
426
|
base,
|
|
@@ -260,7 +471,7 @@ function states(map) {
|
|
|
260
471
|
}
|
|
261
472
|
|
|
262
473
|
// src/components/button/use-styles.ts
|
|
263
|
-
import { useMemo as
|
|
474
|
+
import { useMemo as useMemo6 } from "react";
|
|
264
475
|
|
|
265
476
|
// src/components/button/use-styles.css.ts
|
|
266
477
|
var full = "use-styles_full__1pbtill4";
|
|
@@ -281,7 +492,7 @@ function useStyles3({
|
|
|
281
492
|
className
|
|
282
493
|
}) {
|
|
283
494
|
const { themeClass } = useTheme();
|
|
284
|
-
const container =
|
|
495
|
+
const container = useMemo6(
|
|
285
496
|
() => [
|
|
286
497
|
themeClass,
|
|
287
498
|
root,
|
|
@@ -336,7 +547,7 @@ var Button = forwardRef3(function Button2({
|
|
|
336
547
|
import { forwardRef as forwardRef4 } from "react";
|
|
337
548
|
|
|
338
549
|
// src/components/divider/use-styles.ts
|
|
339
|
-
import { useMemo as
|
|
550
|
+
import { useMemo as useMemo7 } from "react";
|
|
340
551
|
|
|
341
552
|
// src/components/divider/use-styles.css.ts
|
|
342
553
|
var horizontal = "use-styles_horizontal__1n7v7yj1";
|
|
@@ -349,7 +560,7 @@ var vertical = "use-styles_vertical__1n7v7yj2";
|
|
|
349
560
|
// src/components/divider/use-styles.ts
|
|
350
561
|
function useStyles4({ vertical: vertical2, hasLabel }) {
|
|
351
562
|
const { themeClass } = useTheme();
|
|
352
|
-
const root24 =
|
|
563
|
+
const root24 = useMemo7(
|
|
353
564
|
() => [
|
|
354
565
|
themeClass,
|
|
355
566
|
root2,
|
|
@@ -380,7 +591,7 @@ var Divider = forwardRef4(function Divider2({ vertical: vertical2, label: label7
|
|
|
380
591
|
import { forwardRef as forwardRef5 } from "react";
|
|
381
592
|
|
|
382
593
|
// src/components/avatar/use-styles.ts
|
|
383
|
-
import { useMemo as
|
|
594
|
+
import { useMemo as useMemo8 } from "react";
|
|
384
595
|
|
|
385
596
|
// src/components/avatar/use-styles.css.ts
|
|
386
597
|
var root3 = "use-styles_root__1mn1rmu0";
|
|
@@ -394,7 +605,7 @@ function useStyles5({
|
|
|
394
605
|
className
|
|
395
606
|
}) {
|
|
396
607
|
const { themeClass } = useTheme();
|
|
397
|
-
const root24 =
|
|
608
|
+
const root24 = useMemo8(
|
|
398
609
|
() => [
|
|
399
610
|
themeClass,
|
|
400
611
|
root3,
|
|
@@ -419,7 +630,7 @@ var Avatar = forwardRef5(function Avatar2({ size: size3, filled, className, chil
|
|
|
419
630
|
import { forwardRef as forwardRef6 } from "react";
|
|
420
631
|
|
|
421
632
|
// src/components/badge/use-styles.ts
|
|
422
|
-
import { useMemo as
|
|
633
|
+
import { useMemo as useMemo9 } from "react";
|
|
423
634
|
|
|
424
635
|
// src/components/badge/use-styles.css.ts
|
|
425
636
|
var dot = "use-styles_dot__1wpei6p1";
|
|
@@ -432,11 +643,11 @@ function useStyles6({
|
|
|
432
643
|
className
|
|
433
644
|
}) {
|
|
434
645
|
const { themeClass } = useTheme();
|
|
435
|
-
const root24 =
|
|
646
|
+
const root24 = useMemo9(
|
|
436
647
|
() => [themeClass, root4, className].filter(Boolean).join(" "),
|
|
437
648
|
[themeClass, className]
|
|
438
649
|
);
|
|
439
|
-
const dot3 =
|
|
650
|
+
const dot3 = useMemo9(() => [dot, tone2[tone4]].join(" "), [tone4]);
|
|
440
651
|
return { root: root24, dot: dot3 };
|
|
441
652
|
}
|
|
442
653
|
|
|
@@ -455,7 +666,7 @@ var Badge = forwardRef6(function Badge2({ count, tone: tone4, className, childre
|
|
|
455
666
|
import { forwardRef as forwardRef7 } from "react";
|
|
456
667
|
|
|
457
668
|
// src/components/progress/use-styles.ts
|
|
458
|
-
import { useMemo as
|
|
669
|
+
import { useMemo as useMemo10 } from "react";
|
|
459
670
|
|
|
460
671
|
// src/components/progress/use-styles.css.ts
|
|
461
672
|
var bar = "use-styles_bar__kbop7v3";
|
|
@@ -471,7 +682,7 @@ function useStyles7({
|
|
|
471
682
|
}) {
|
|
472
683
|
const { themeClass } = useTheme();
|
|
473
684
|
const indeterminate2 = value === void 0;
|
|
474
|
-
return
|
|
685
|
+
return useMemo10(() => {
|
|
475
686
|
const root24 = (...classes) => [themeClass, ...classes, className].filter(Boolean).join(" ");
|
|
476
687
|
if (variant2 === "circular") {
|
|
477
688
|
return { track: "", bar: "", spinner: root24(spinner) };
|
|
@@ -560,7 +771,7 @@ function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
560
771
|
}
|
|
561
772
|
|
|
562
773
|
// src/components/chip/use-styles.ts
|
|
563
|
-
import { useMemo as
|
|
774
|
+
import { useMemo as useMemo11 } from "react";
|
|
564
775
|
|
|
565
776
|
// src/components/chip/use-styles.css.ts
|
|
566
777
|
var clickable = "use-styles_clickable__1axilf44";
|
|
@@ -576,7 +787,7 @@ function useStyles8({
|
|
|
576
787
|
clickable: clickable2
|
|
577
788
|
}) {
|
|
578
789
|
const { themeClass } = useTheme();
|
|
579
|
-
const root24 =
|
|
790
|
+
const root24 = useMemo11(
|
|
580
791
|
() => [
|
|
581
792
|
themeClass,
|
|
582
793
|
root5,
|
|
@@ -651,7 +862,7 @@ function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
651
862
|
}
|
|
652
863
|
|
|
653
864
|
// src/components/checkbox/use-styles.ts
|
|
654
|
-
import { useMemo as
|
|
865
|
+
import { useMemo as useMemo12 } from "react";
|
|
655
866
|
|
|
656
867
|
// src/components/checkbox/use-styles.css.ts
|
|
657
868
|
var box = "use-styles_box__9zoga91";
|
|
@@ -664,11 +875,11 @@ var root6 = "use-styles_root__9zoga90";
|
|
|
664
875
|
// src/components/checkbox/use-styles.ts
|
|
665
876
|
function useStyles9({ checked, disabled: disabled3 }) {
|
|
666
877
|
const { themeClass } = useTheme();
|
|
667
|
-
const root24 =
|
|
878
|
+
const root24 = useMemo12(
|
|
668
879
|
() => [themeClass, root6, disabled3 && disabled].filter(Boolean).join(" "),
|
|
669
880
|
[themeClass, disabled3]
|
|
670
881
|
);
|
|
671
|
-
const box2 =
|
|
882
|
+
const box2 = useMemo12(
|
|
672
883
|
() => [box, checked && boxChecked].filter(Boolean).join(" "),
|
|
673
884
|
[checked]
|
|
674
885
|
);
|
|
@@ -707,7 +918,7 @@ var Checkbox = forwardRef9(function Checkbox2({ checked = false, onChange, label
|
|
|
707
918
|
import { forwardRef as forwardRef10 } from "react";
|
|
708
919
|
|
|
709
920
|
// src/components/radio/use-styles.ts
|
|
710
|
-
import { useMemo as
|
|
921
|
+
import { useMemo as useMemo13 } from "react";
|
|
711
922
|
|
|
712
923
|
// src/components/radio/use-styles.css.ts
|
|
713
924
|
var circle = "use-styles_circle__vy61b42";
|
|
@@ -723,7 +934,7 @@ function useStyles10({
|
|
|
723
934
|
className
|
|
724
935
|
}) {
|
|
725
936
|
const { themeClass } = useTheme();
|
|
726
|
-
const root24 =
|
|
937
|
+
const root24 = useMemo13(
|
|
727
938
|
() => [themeClass, root7, disabled3 && disabled2, className].filter(Boolean).join(" "),
|
|
728
939
|
[themeClass, disabled3, className]
|
|
729
940
|
);
|
|
@@ -765,7 +976,7 @@ var Radio = forwardRef10(function Radio2({ checked, onChange, label: label7, nam
|
|
|
765
976
|
import { forwardRef as forwardRef11 } from "react";
|
|
766
977
|
|
|
767
978
|
// src/components/switch/use-styles.ts
|
|
768
|
-
import { useMemo as
|
|
979
|
+
import { useMemo as useMemo14 } from "react";
|
|
769
980
|
|
|
770
981
|
// src/components/switch/use-styles.css.ts
|
|
771
982
|
var input3 = "surfaces_srOnly__1qa7atn0";
|
|
@@ -779,7 +990,7 @@ var trackChecked = "use-styles_trackChecked__1r6kem72";
|
|
|
779
990
|
// src/components/switch/use-styles.ts
|
|
780
991
|
function useStyles11({ checked }) {
|
|
781
992
|
const { themeClass } = useTheme();
|
|
782
|
-
return
|
|
993
|
+
return useMemo14(
|
|
783
994
|
() => ({
|
|
784
995
|
root: [themeClass, root8].filter(Boolean).join(" "),
|
|
785
996
|
input: input3,
|
|
@@ -826,7 +1037,7 @@ import { forwardRef as forwardRef13 } from "react";
|
|
|
826
1037
|
import { forwardRef as forwardRef12, useId } from "react";
|
|
827
1038
|
|
|
828
1039
|
// src/components/base-field/use-styles.ts
|
|
829
|
-
import { useMemo as
|
|
1040
|
+
import { useMemo as useMemo15 } from "react";
|
|
830
1041
|
|
|
831
1042
|
// src/components/base-field/use-styles.css.ts
|
|
832
1043
|
var field = "use-styles_field__1c3cgd3";
|
|
@@ -845,7 +1056,7 @@ var trailingSlot = "use-styles_trailingSlot__1c3cgdb";
|
|
|
845
1056
|
// src/components/base-field/use-styles.ts
|
|
846
1057
|
function useStyles12({ error, hasStartIcon, hasTrailing, className }) {
|
|
847
1058
|
const { themeClass } = useTheme();
|
|
848
|
-
return
|
|
1059
|
+
return useMemo15(() => {
|
|
849
1060
|
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
850
1061
|
const labelText2 = [labelText, error && labelTextError].filter(Boolean).join(" ");
|
|
851
1062
|
const input6 = [
|
|
@@ -1025,14 +1236,14 @@ function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1025
1236
|
}
|
|
1026
1237
|
|
|
1027
1238
|
// src/components/password-field/use-styles.ts
|
|
1028
|
-
import { useMemo as
|
|
1239
|
+
import { useMemo as useMemo16 } from "react";
|
|
1029
1240
|
|
|
1030
1241
|
// src/components/password-field/use-styles.css.ts
|
|
1031
1242
|
var revealButton = "use-styles_revealButton__rsu9d50";
|
|
1032
1243
|
|
|
1033
1244
|
// src/components/password-field/use-styles.ts
|
|
1034
1245
|
function useStyles13() {
|
|
1035
|
-
return
|
|
1246
|
+
return useMemo16(() => ({ revealButton }), []);
|
|
1036
1247
|
}
|
|
1037
1248
|
|
|
1038
1249
|
// src/components/password-field/index.tsx
|
|
@@ -1085,7 +1296,7 @@ var PasswordField = forwardRef14(
|
|
|
1085
1296
|
);
|
|
1086
1297
|
|
|
1087
1298
|
// src/components/money-field/index.tsx
|
|
1088
|
-
import { forwardRef as forwardRef15, useMemo as
|
|
1299
|
+
import { forwardRef as forwardRef15, useMemo as useMemo17, useState as useState4 } from "react";
|
|
1089
1300
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1090
1301
|
function parseAmount(raw) {
|
|
1091
1302
|
const cleaned = raw.replace(/[^0-9.-]/g, "");
|
|
@@ -1110,7 +1321,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1110
1321
|
}, ref) {
|
|
1111
1322
|
const [focused, setFocused] = useState4(false);
|
|
1112
1323
|
const [draft, setDraft] = useState4("");
|
|
1113
|
-
const formatter =
|
|
1324
|
+
const formatter = useMemo17(
|
|
1114
1325
|
() => new Intl.NumberFormat(locale, { style: "currency", currency }),
|
|
1115
1326
|
[locale, currency]
|
|
1116
1327
|
);
|
|
@@ -1156,7 +1367,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1156
1367
|
import { forwardRef as forwardRef16 } from "react";
|
|
1157
1368
|
|
|
1158
1369
|
// src/components/icon-button/use-styles.ts
|
|
1159
|
-
import { useMemo as
|
|
1370
|
+
import { useMemo as useMemo18 } from "react";
|
|
1160
1371
|
|
|
1161
1372
|
// src/components/icon-button/use-styles.css.ts
|
|
1162
1373
|
var accent = "use-styles_accent__18np0q02";
|
|
@@ -1169,7 +1380,7 @@ function useStyles14({
|
|
|
1169
1380
|
tone: tone4 = "ink"
|
|
1170
1381
|
}) {
|
|
1171
1382
|
const { themeClass } = useTheme();
|
|
1172
|
-
const root24 =
|
|
1383
|
+
const root24 = useMemo18(
|
|
1173
1384
|
() => [themeClass, root10, tone4 === "accent" && accent, active2 && active].filter(Boolean).join(" "),
|
|
1174
1385
|
[themeClass, active2, tone4]
|
|
1175
1386
|
);
|
|
@@ -1208,7 +1419,7 @@ var IconButton = forwardRef16(function IconButton2({ icon: Icon, active: active2
|
|
|
1208
1419
|
import { forwardRef as forwardRef17 } from "react";
|
|
1209
1420
|
|
|
1210
1421
|
// src/components/card/use-styles.ts
|
|
1211
|
-
import { useMemo as
|
|
1422
|
+
import { useMemo as useMemo19 } from "react";
|
|
1212
1423
|
|
|
1213
1424
|
// src/components/card/use-styles.css.ts
|
|
1214
1425
|
var body = "use-styles_body__1fuvd022";
|
|
@@ -1219,7 +1430,7 @@ var root11 = "use-styles_root__1fuvd020";
|
|
|
1219
1430
|
// src/components/card/use-styles.ts
|
|
1220
1431
|
function useStyles15() {
|
|
1221
1432
|
const { themeClass } = useTheme();
|
|
1222
|
-
const root24 =
|
|
1433
|
+
const root24 = useMemo19(() => `${themeClass} ${root11}`, [themeClass]);
|
|
1223
1434
|
return { root: root24, header, body, footer };
|
|
1224
1435
|
}
|
|
1225
1436
|
|
|
@@ -1359,7 +1570,7 @@ function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1359
1570
|
}
|
|
1360
1571
|
|
|
1361
1572
|
// src/components/alert/use-styles.ts
|
|
1362
|
-
import { useMemo as
|
|
1573
|
+
import { useMemo as useMemo20 } from "react";
|
|
1363
1574
|
|
|
1364
1575
|
// src/components/alert/use-styles.css.ts
|
|
1365
1576
|
var content = "use-styles_content__ivsh6u6";
|
|
@@ -1373,7 +1584,7 @@ function useStyles16({
|
|
|
1373
1584
|
className
|
|
1374
1585
|
}) {
|
|
1375
1586
|
const { themeClass } = useTheme();
|
|
1376
|
-
const root24 =
|
|
1587
|
+
const root24 = useMemo20(
|
|
1377
1588
|
() => [themeClass, root12, severity[severity2], className].filter(Boolean).join(" "),
|
|
1378
1589
|
[themeClass, severity2, className]
|
|
1379
1590
|
);
|
|
@@ -1416,7 +1627,7 @@ import {
|
|
|
1416
1627
|
} from "react";
|
|
1417
1628
|
|
|
1418
1629
|
// src/components/tooltip/use-styles.ts
|
|
1419
|
-
import { useMemo as
|
|
1630
|
+
import { useMemo as useMemo21 } from "react";
|
|
1420
1631
|
|
|
1421
1632
|
// src/components/tooltip/use-styles.css.ts
|
|
1422
1633
|
var bubble = "use-styles_bubble__h9kvh1 surfaces_inkySurface__1qa7atn2";
|
|
@@ -1428,11 +1639,11 @@ function useStyles17({
|
|
|
1428
1639
|
placement: placement2 = "top"
|
|
1429
1640
|
}) {
|
|
1430
1641
|
const { themeClass } = useTheme();
|
|
1431
|
-
const wrapper4 =
|
|
1642
|
+
const wrapper4 = useMemo21(
|
|
1432
1643
|
() => [themeClass, wrapper].filter(Boolean).join(" "),
|
|
1433
1644
|
[themeClass]
|
|
1434
1645
|
);
|
|
1435
|
-
const bubble2 =
|
|
1646
|
+
const bubble2 = useMemo21(
|
|
1436
1647
|
() => [bubble, placement[placement2]].filter(Boolean).join(" "),
|
|
1437
1648
|
[placement2]
|
|
1438
1649
|
);
|
|
@@ -1536,7 +1747,7 @@ function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1536
1747
|
}
|
|
1537
1748
|
|
|
1538
1749
|
// src/components/select/use-styles.ts
|
|
1539
|
-
import { useMemo as
|
|
1750
|
+
import { useMemo as useMemo22 } from "react";
|
|
1540
1751
|
|
|
1541
1752
|
// src/components/select/use-styles.css.ts
|
|
1542
1753
|
var chevron = "use-styles_chevron__1w1czpb4";
|
|
@@ -1555,7 +1766,7 @@ function useStyles18({
|
|
|
1555
1766
|
open = false
|
|
1556
1767
|
}) {
|
|
1557
1768
|
const { themeClass } = useTheme();
|
|
1558
|
-
return
|
|
1769
|
+
return useMemo22(() => {
|
|
1559
1770
|
const chevron3 = [chevron, open && chevronOpen].filter(Boolean).join(" ");
|
|
1560
1771
|
return {
|
|
1561
1772
|
root: [themeClass, root13].filter(Boolean).join(" "),
|
|
@@ -1706,7 +1917,7 @@ var Select = forwardRef20(function Select2({ options, value, onChange, placehold
|
|
|
1706
1917
|
import { forwardRef as forwardRef21 } from "react";
|
|
1707
1918
|
|
|
1708
1919
|
// src/components/slider/use-styles.ts
|
|
1709
|
-
import { useMemo as
|
|
1920
|
+
import { useMemo as useMemo23 } from "react";
|
|
1710
1921
|
|
|
1711
1922
|
// src/components/slider/use-styles.css.ts
|
|
1712
1923
|
var input5 = "use-styles_input__okw59n3";
|
|
@@ -1720,7 +1931,7 @@ var wrapper2 = "use-styles_wrapper__okw59n6";
|
|
|
1720
1931
|
// src/components/slider/use-styles.ts
|
|
1721
1932
|
function useStyles19() {
|
|
1722
1933
|
const { themeClass } = useTheme();
|
|
1723
|
-
return
|
|
1934
|
+
return useMemo23(() => {
|
|
1724
1935
|
const root24 = [themeClass, root14].filter(Boolean).join(" ");
|
|
1725
1936
|
return {
|
|
1726
1937
|
wrapper: wrapper2,
|
|
@@ -1773,7 +1984,7 @@ var Slider = forwardRef21(function Slider2({ value = 0, onChange, min = 0, max =
|
|
|
1773
1984
|
import { forwardRef as forwardRef22, useState as useState7 } from "react";
|
|
1774
1985
|
|
|
1775
1986
|
// src/components/accordion/use-styles.ts
|
|
1776
|
-
import { useMemo as
|
|
1987
|
+
import { useMemo as useMemo24 } from "react";
|
|
1777
1988
|
|
|
1778
1989
|
// src/components/accordion/use-styles.css.ts
|
|
1779
1990
|
var chevron2 = "use-styles_chevron__1cjrdh93";
|
|
@@ -1786,7 +1997,7 @@ var root15 = "use-styles_root__1cjrdh90";
|
|
|
1786
1997
|
// src/components/accordion/use-styles.ts
|
|
1787
1998
|
function useStyles20({ className }) {
|
|
1788
1999
|
const { themeClass } = useTheme();
|
|
1789
|
-
return
|
|
2000
|
+
return useMemo24(
|
|
1790
2001
|
() => ({
|
|
1791
2002
|
root: [themeClass, root15, className].filter(Boolean).join(" "),
|
|
1792
2003
|
item,
|
|
@@ -1883,7 +2094,7 @@ function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1883
2094
|
}
|
|
1884
2095
|
|
|
1885
2096
|
// src/components/breadcrumbs/use-styles.ts
|
|
1886
|
-
import { useMemo as
|
|
2097
|
+
import { useMemo as useMemo25 } from "react";
|
|
1887
2098
|
|
|
1888
2099
|
// src/components/breadcrumbs/use-styles.css.ts
|
|
1889
2100
|
var crumb = "use-styles_crumb__7u0du61";
|
|
@@ -1894,7 +2105,7 @@ var separator = "use-styles_separator__7u0du63";
|
|
|
1894
2105
|
// src/components/breadcrumbs/use-styles.ts
|
|
1895
2106
|
function useStyles21({ className }) {
|
|
1896
2107
|
const { themeClass } = useTheme();
|
|
1897
|
-
const root24 =
|
|
2108
|
+
const root24 = useMemo25(
|
|
1898
2109
|
() => [themeClass, root16, className].filter(Boolean).join(" "),
|
|
1899
2110
|
[themeClass, className]
|
|
1900
2111
|
);
|
|
@@ -1942,7 +2153,7 @@ function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1942
2153
|
}
|
|
1943
2154
|
|
|
1944
2155
|
// src/components/pagination/use-styles.ts
|
|
1945
|
-
import { useMemo as
|
|
2156
|
+
import { useMemo as useMemo26 } from "react";
|
|
1946
2157
|
|
|
1947
2158
|
// src/components/pagination/use-styles.css.ts
|
|
1948
2159
|
var ellipsis = "use-styles_ellipsis__1azgzoh3";
|
|
@@ -1954,7 +2165,7 @@ var root17 = "use-styles_root__1azgzoh0";
|
|
|
1954
2165
|
// src/components/pagination/use-styles.ts
|
|
1955
2166
|
function useStyles22() {
|
|
1956
2167
|
const { themeClass } = useTheme();
|
|
1957
|
-
return
|
|
2168
|
+
return useMemo26(
|
|
1958
2169
|
() => ({
|
|
1959
2170
|
root: [themeClass, root17].filter(Boolean).join(" "),
|
|
1960
2171
|
pageBtnFor: (active2) => [pageBtn, active2 && pageActive].filter(Boolean).join(" "),
|
|
@@ -2041,7 +2252,7 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
2041
2252
|
import { Fragment as Fragment2, forwardRef as forwardRef25 } from "react";
|
|
2042
2253
|
|
|
2043
2254
|
// src/components/stepper/use-styles.ts
|
|
2044
|
-
import { useMemo as
|
|
2255
|
+
import { useMemo as useMemo27 } from "react";
|
|
2045
2256
|
|
|
2046
2257
|
// src/components/stepper/use-styles.css.ts
|
|
2047
2258
|
var connector = "use-styles_connector__79pt4e7";
|
|
@@ -2056,7 +2267,7 @@ var step = "use-styles_step__79pt4e1";
|
|
|
2056
2267
|
// src/components/stepper/use-styles.ts
|
|
2057
2268
|
function useStyles23({ className }) {
|
|
2058
2269
|
const { themeClass } = useTheme();
|
|
2059
|
-
return
|
|
2270
|
+
return useMemo27(() => {
|
|
2060
2271
|
const root24 = [themeClass, root18, className].filter(Boolean).join(" ");
|
|
2061
2272
|
const markerFor = (state) => [
|
|
2062
2273
|
marker,
|
|
@@ -2102,7 +2313,7 @@ var Stepper = forwardRef25(function Stepper2({ steps, active: active2 = 0, class
|
|
|
2102
2313
|
import { forwardRef as forwardRef26, useId as useId4, useRef as useRef4 } from "react";
|
|
2103
2314
|
|
|
2104
2315
|
// src/components/tabs/use-styles.ts
|
|
2105
|
-
import { useMemo as
|
|
2316
|
+
import { useMemo as useMemo28 } from "react";
|
|
2106
2317
|
|
|
2107
2318
|
// src/components/tabs/use-styles.css.ts
|
|
2108
2319
|
var panel2 = "use-styles_panel__1l4m7t43";
|
|
@@ -2113,7 +2324,7 @@ var tabActive = "use-styles_tabActive__1l4m7t42";
|
|
|
2113
2324
|
// src/components/tabs/use-styles.ts
|
|
2114
2325
|
function useStyles24() {
|
|
2115
2326
|
const { themeClass } = useTheme();
|
|
2116
|
-
return
|
|
2327
|
+
return useMemo28(() => {
|
|
2117
2328
|
const root24 = [themeClass, root19].filter(Boolean).join(" ");
|
|
2118
2329
|
const tabClass = (active2) => [tab, active2 && tabActive].filter(Boolean).join(" ");
|
|
2119
2330
|
return { root: root24, tab, tabClass, panel: panel2 };
|
|
@@ -2212,7 +2423,7 @@ import {
|
|
|
2212
2423
|
} from "react";
|
|
2213
2424
|
|
|
2214
2425
|
// src/components/menu/use-styles.ts
|
|
2215
|
-
import { useMemo as
|
|
2426
|
+
import { useMemo as useMemo29 } from "react";
|
|
2216
2427
|
|
|
2217
2428
|
// src/components/menu/use-styles.css.ts
|
|
2218
2429
|
var danger = "use-styles_danger__1uyxaj3";
|
|
@@ -2223,7 +2434,7 @@ var wrapper3 = "use-styles_wrapper__1uyxaj0";
|
|
|
2223
2434
|
// src/components/menu/use-styles.ts
|
|
2224
2435
|
function useStyles25() {
|
|
2225
2436
|
const { themeClass } = useTheme();
|
|
2226
|
-
return
|
|
2437
|
+
return useMemo29(
|
|
2227
2438
|
() => ({
|
|
2228
2439
|
wrapper: [themeClass, wrapper3].filter(Boolean).join(" "),
|
|
2229
2440
|
list,
|
|
@@ -2391,7 +2602,7 @@ import {
|
|
|
2391
2602
|
import { createPortal } from "react-dom";
|
|
2392
2603
|
|
|
2393
2604
|
// src/components/dialog/use-styles.ts
|
|
2394
|
-
import { useMemo as
|
|
2605
|
+
import { useMemo as useMemo30 } from "react";
|
|
2395
2606
|
|
|
2396
2607
|
// src/components/dialog/use-styles.css.ts
|
|
2397
2608
|
var actions = "use-styles_actions__5tstu83";
|
|
@@ -2402,7 +2613,7 @@ var surface = "use-styles_surface__5tstu81";
|
|
|
2402
2613
|
// src/components/dialog/use-styles.ts
|
|
2403
2614
|
function useStyles26() {
|
|
2404
2615
|
const { themeClass } = useTheme();
|
|
2405
|
-
return
|
|
2616
|
+
return useMemo30(
|
|
2406
2617
|
() => ({
|
|
2407
2618
|
overlay: [themeClass, overlay].filter(Boolean).join(" "),
|
|
2408
2619
|
surface,
|
|
@@ -2511,7 +2722,7 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
2511
2722
|
import { createPortal as createPortal2 } from "react-dom";
|
|
2512
2723
|
|
|
2513
2724
|
// src/components/snackbar/use-styles.ts
|
|
2514
|
-
import { useMemo as
|
|
2725
|
+
import { useMemo as useMemo31 } from "react";
|
|
2515
2726
|
|
|
2516
2727
|
// src/components/snackbar/use-styles.css.ts
|
|
2517
2728
|
var closeBtn = "use-styles_closeBtn__ihzsep2";
|
|
@@ -2521,7 +2732,7 @@ var root20 = "use-styles_root__ihzsep0 surfaces_inkySurface__1qa7atn2";
|
|
|
2521
2732
|
// src/components/snackbar/use-styles.ts
|
|
2522
2733
|
function useStyles27() {
|
|
2523
2734
|
const { themeClass } = useTheme();
|
|
2524
|
-
return
|
|
2735
|
+
return useMemo31(
|
|
2525
2736
|
() => ({
|
|
2526
2737
|
root: [themeClass, root20].filter(Boolean).join(" "),
|
|
2527
2738
|
message,
|
|
@@ -2561,7 +2772,7 @@ var Snackbar = forwardRef29(function Snackbar2({ open, message: message2, action
|
|
|
2561
2772
|
import { forwardRef as forwardRef30 } from "react";
|
|
2562
2773
|
|
|
2563
2774
|
// src/components/table/use-styles.ts
|
|
2564
|
-
import { useMemo as
|
|
2775
|
+
import { useMemo as useMemo32 } from "react";
|
|
2565
2776
|
|
|
2566
2777
|
// src/components/table/use-styles.css.ts
|
|
2567
2778
|
var alignRight = "use-styles_alignRight__1n2cz6i3";
|
|
@@ -2573,7 +2784,7 @@ var th = "use-styles_th__1n2cz6i1";
|
|
|
2573
2784
|
// src/components/table/use-styles.ts
|
|
2574
2785
|
function useStyles28({ className }) {
|
|
2575
2786
|
const { themeClass } = useTheme();
|
|
2576
|
-
const root24 =
|
|
2787
|
+
const root24 = useMemo32(
|
|
2577
2788
|
() => [themeClass, root21, className].filter(Boolean).join(" "),
|
|
2578
2789
|
[themeClass, className]
|
|
2579
2790
|
);
|
|
@@ -2607,7 +2818,7 @@ var Table = TableForwarded;
|
|
|
2607
2818
|
import { forwardRef as forwardRef31 } from "react";
|
|
2608
2819
|
|
|
2609
2820
|
// src/components/app-bar/use-styles.ts
|
|
2610
|
-
import { useMemo as
|
|
2821
|
+
import { useMemo as useMemo33 } from "react";
|
|
2611
2822
|
|
|
2612
2823
|
// src/components/app-bar/use-styles.css.ts
|
|
2613
2824
|
var actions2 = "use-styles_actions__1h133nh2";
|
|
@@ -2617,7 +2828,7 @@ var root22 = "use-styles_root__1h133nh0";
|
|
|
2617
2828
|
// src/components/app-bar/use-styles.ts
|
|
2618
2829
|
function useStyles29({ className }) {
|
|
2619
2830
|
const { themeClass } = useTheme();
|
|
2620
|
-
const root24 =
|
|
2831
|
+
const root24 = useMemo33(
|
|
2621
2832
|
() => [themeClass, root22, className].filter(Boolean).join(" "),
|
|
2622
2833
|
[themeClass, className]
|
|
2623
2834
|
);
|
|
@@ -2640,7 +2851,7 @@ var AppBar = forwardRef31(function AppBar2({ brand: brand2, actions: actions3, c
|
|
|
2640
2851
|
import { forwardRef as forwardRef32 } from "react";
|
|
2641
2852
|
|
|
2642
2853
|
// src/components/list-item/use-styles.ts
|
|
2643
|
-
import { useMemo as
|
|
2854
|
+
import { useMemo as useMemo34 } from "react";
|
|
2644
2855
|
|
|
2645
2856
|
// src/components/list-item/use-styles.css.ts
|
|
2646
2857
|
var content2 = "use-styles_content__kbreq13";
|
|
@@ -2655,7 +2866,7 @@ function useStyles30({
|
|
|
2655
2866
|
className
|
|
2656
2867
|
}) {
|
|
2657
2868
|
const { themeClass } = useTheme();
|
|
2658
|
-
const root24 =
|
|
2869
|
+
const root24 = useMemo34(
|
|
2659
2870
|
() => [themeClass, root23, selected3 && selected2, className].filter(Boolean).join(" "),
|
|
2660
2871
|
[themeClass, selected3, className]
|
|
2661
2872
|
);
|