@ramme-io/ui 5.0.2 → 5.1.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/README.md +2 -1
- package/dist/component-registry.js +264 -260
- package/dist/components/forms/FontSelect.d.ts +26 -0
- package/dist/components/forms/FontSelect.js +33 -0
- package/dist/components/forms/MultiSelect.js +9 -6
- package/dist/components/forms/Select.d.ts +3 -0
- package/dist/components/forms/Select.js +38 -33
- package/dist/components/forms/fieldFontSize.d.ts +10 -0
- package/dist/components/forms/fieldFontSize.js +4 -0
- package/dist/components/theme/FineTuningControls.js +30 -66
- package/dist/components/ui/icon-loader.d.ts +1 -1
- package/dist/contexts/ThemeContext.js +16 -16
- package/dist/index.d.ts +1 -0
- package/dist/index.js +191 -189
- package/dist/lib/theme/fontSearch.d.ts +10 -0
- package/dist/lib/theme/fontSearch.js +16 -0
- package/dist/lib/theme/googleFonts.d.ts +6 -0
- package/dist/lib/theme/googleFonts.js +1840 -0
- package/dist/wizardManifest.js +53 -1
- package/package.json +3 -2
- package/src/wizardManifest.ts +53 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as W } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y, useEffect as M, useCallback as h, useMemo as X, createContext as Z, useContext as ee } from "react";
|
|
3
|
-
const
|
|
3
|
+
const E = [
|
|
4
4
|
"light",
|
|
5
5
|
"dark",
|
|
6
6
|
"system",
|
|
@@ -100,14 +100,14 @@ const L = [
|
|
|
100
100
|
children: S,
|
|
101
101
|
defaultTheme: l,
|
|
102
102
|
defaultCustomTheme: i,
|
|
103
|
-
appId:
|
|
103
|
+
appId: L,
|
|
104
104
|
instanceConfig: c
|
|
105
105
|
}) => {
|
|
106
106
|
var O, z, G;
|
|
107
|
-
const v = (O = c == null ? void 0 : c.fonts) == null ? void 0 : O.sans, F = (z = c == null ? void 0 : c.fonts) == null ? void 0 : z.serif, R = (G = c == null ? void 0 : c.fonts) == null ? void 0 : G.mono, t =
|
|
107
|
+
const v = (O = c == null ? void 0 : c.fonts) == null ? void 0 : O.sans, F = (z = c == null ? void 0 : c.fonts) == null ? void 0 : z.serif, R = (G = c == null ? void 0 : c.fonts) == null ? void 0 : G.mono, t = L ? `ramme:theme:${L}` : "ramme:theme:global", [f, T] = y(() => {
|
|
108
108
|
if (typeof window < "u") {
|
|
109
109
|
const o = localStorage.getItem(`${t}:mode`);
|
|
110
|
-
return i && !o ? l || "system" : o &&
|
|
110
|
+
return i && !o ? l || "system" : o && E.includes(o) ? o : l || "system";
|
|
111
111
|
}
|
|
112
112
|
return l || "system";
|
|
113
113
|
}), [x, _] = y("light"), [u, I] = y("0.5rem"), [w, k] = y("1rem"), [a, b] = y(() => {
|
|
@@ -132,8 +132,8 @@ const L = [
|
|
|
132
132
|
_(g.matches ? "dark" : "light");
|
|
133
133
|
};
|
|
134
134
|
o.addEventListener("change", e);
|
|
135
|
-
const d = localStorage.getItem(`${t}:borderRadius`),
|
|
136
|
-
return d && I(d),
|
|
135
|
+
const d = localStorage.getItem(`${t}:borderRadius`), $ = localStorage.getItem(`${t}:fontSize`);
|
|
136
|
+
return d && I(d), $ && k($), () => o.removeEventListener("change", e);
|
|
137
137
|
}
|
|
138
138
|
}, [i, t]);
|
|
139
139
|
const B = h(() => {
|
|
@@ -158,8 +158,8 @@ const L = [
|
|
|
158
158
|
};
|
|
159
159
|
}, []), M(() => {
|
|
160
160
|
const o = document.documentElement;
|
|
161
|
-
|
|
162
|
-
const e = (s, n) => o.style.setProperty(s, n), d = (s) => o.style.removeProperty(s),
|
|
161
|
+
E.forEach((s) => o.classList.remove(s)), o.classList.remove("custom-theme");
|
|
162
|
+
const e = (s, n) => o.style.setProperty(s, n), d = (s) => o.style.removeProperty(s), $ = [
|
|
163
163
|
"system-ui",
|
|
164
164
|
"Inter",
|
|
165
165
|
"Georgia",
|
|
@@ -178,11 +178,11 @@ const L = [
|
|
|
178
178
|
"TAYKula"
|
|
179
179
|
], g = (s) => {
|
|
180
180
|
const n = s.split(",")[0].replace(/['"]*/g, "").trim();
|
|
181
|
-
if (
|
|
181
|
+
if ($.some((p) => n.toLowerCase() === p.toLowerCase())) return;
|
|
182
182
|
const r = n.replace(/\s+/g, "+").toLowerCase();
|
|
183
183
|
if (Array.from(
|
|
184
184
|
document.querySelectorAll('link[rel="stylesheet"]')
|
|
185
|
-
).some((p) =>
|
|
185
|
+
).some((p) => new RegExp(`family=${r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}(?=[:&]|$)`).test(p.href.toLowerCase()))) return;
|
|
186
186
|
const C = `google-font-${n.replace(/\s+/g, "-")}`;
|
|
187
187
|
if (!document.getElementById(C)) {
|
|
188
188
|
const p = document.createElement("link");
|
|
@@ -219,10 +219,10 @@ const L = [
|
|
|
219
219
|
"--app-border-radius-sm",
|
|
220
220
|
"--app-border-radius-md",
|
|
221
221
|
"--app-border-radius-lg"
|
|
222
|
-
],
|
|
222
|
+
], A = f === "system" ? x : f;
|
|
223
223
|
if (a) {
|
|
224
224
|
o.classList.add("custom-theme");
|
|
225
|
-
const s =
|
|
225
|
+
const s = A === "dark" || A === "midnight";
|
|
226
226
|
s && o.classList.add("dark");
|
|
227
227
|
const n = a.colors, r = s ? a.darkColors || n : a.lightColors || n;
|
|
228
228
|
if (!r) {
|
|
@@ -231,8 +231,8 @@ const L = [
|
|
|
231
231
|
}
|
|
232
232
|
e("--app-primary-color", r.primary), e("--app-primary-foreground-color", r.primaryForeground), e("--app-secondary-color", r.secondary), e("--app-secondary-foreground-color", r.secondaryForeground), e("--app-accent-color", r.accent), e("--app-accent-foreground-color", r.accentForeground), e("--app-danger-color", r.danger), e("--app-danger-foreground-color", r.dangerForeground), r.success ? e("--app-success-color", r.success) : d("--app-success-color"), r.warning ? e("--app-warning-color", r.warning) : d("--app-warning-color"), e("--app-bg-color", r.background), e("--app-card-bg-color", r.card), e("--app-text-color", r.text), e("--app-border-color", r.border), e("--app-muted-bg", r.muted), e("--app-muted-text", r.mutedForeground), e("--app-input-bg-color", r.input), e("--app-input-border-color", r.inputBorder), e("--app-input-focus-ring-color", r.ring), e("--app-table-header-bg", r.muted), e("--app-table-header-text", r.text), e("--app-table-row-hover-bg", r.muted), e("--app-table-grid-line-color", r.border), a.fonts && (g(a.fonts.sans), a.fonts.serif && g(a.fonts.serif), e("--app-font-serif", a.fonts.serif), e("--app-font-sans", a.fonts.sans), e("--app-font-mono", a.fonts.mono)), document.body.style.backgroundColor = `rgb(${r.background})`, document.body.style.color = `rgb(${r.text})`, e("--app-border-radius-md", a.borderRadius), e("--app-border-radius-sm", `calc(${a.borderRadius} - 0.25rem)`), e("--app-border-radius-lg", `calc(${a.borderRadius} + 0.25rem)`);
|
|
233
233
|
} else {
|
|
234
|
-
o.classList.add(
|
|
235
|
-
const s = K[
|
|
234
|
+
o.classList.add(A), j.forEach(d);
|
|
235
|
+
const s = K[A] || K.light, n = v || s.sans, r = F || s.serif, H = R || s.mono;
|
|
236
236
|
v || g(n), F || g(r), e("--app-font-sans", n), e("--app-font-serif", r), e("--app-font-mono", H), document.body.style.backgroundColor = "", document.body.style.color = "", e("--app-border-radius-md", u), e("--app-border-radius-sm", `calc(${u} - 0.25rem)`), e("--app-border-radius-lg", `calc(${u} + 0.25rem)`);
|
|
237
237
|
}
|
|
238
238
|
if (e("--app-font-size-base", w), !o.hasAttribute("data-theme-ready")) return;
|
|
@@ -246,7 +246,7 @@ const L = [
|
|
|
246
246
|
const U = X(
|
|
247
247
|
() => ({
|
|
248
248
|
theme: f,
|
|
249
|
-
availableThemes:
|
|
249
|
+
availableThemes: E,
|
|
250
250
|
setTheme: N,
|
|
251
251
|
resetTheme: B,
|
|
252
252
|
borderRadius: u,
|
|
@@ -268,6 +268,6 @@ const L = [
|
|
|
268
268
|
export {
|
|
269
269
|
V as TAY_DREAMBOAT_THEME,
|
|
270
270
|
se as ThemeProvider,
|
|
271
|
-
|
|
271
|
+
E as availableThemes,
|
|
272
272
|
ne as useTheme
|
|
273
273
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export * from './components/forms/Radio';
|
|
|
56
56
|
export * from './components/forms/SearchInput';
|
|
57
57
|
export * from './components/forms/SegmentedControl';
|
|
58
58
|
export * from './components/forms/Select';
|
|
59
|
+
export * from './components/forms/FontSelect';
|
|
59
60
|
export * from './components/forms/Textarea';
|
|
60
61
|
export * from './components/forms/ToggleSwitch';
|
|
61
62
|
export { ToggleSwitch as Switch } from './components/forms/ToggleSwitch';
|
package/dist/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import { Loader as n } from "./blocks/ai/Loader.js";
|
|
|
6
6
|
import { Actions as T, Suggestion as s } from "./blocks/ai/Actions.js";
|
|
7
7
|
import { PromptInput as h } from "./blocks/ai/PromptInput.js";
|
|
8
8
|
import { Message as g } from "./blocks/ai/Message.js";
|
|
9
|
-
import { Conversation as
|
|
9
|
+
import { Conversation as c } from "./blocks/ai/Conversation.js";
|
|
10
10
|
import { ChatFAB as b } from "./blocks/ai/ChatFAB.js";
|
|
11
11
|
import { AIChatThread as P } from "./components/ai/AIChatThread/AIChatThread.js";
|
|
12
12
|
import { KeyInjectionOverlay as A } from "./components/ai/KeyInjectionOverlay.js";
|
|
13
13
|
import { TAY_DREAMBOAT_THEME as B, ThemeProvider as R, availableThemes as E, useTheme as M } from "./contexts/ThemeContext.js";
|
|
14
|
-
import { AuthLayout as
|
|
14
|
+
import { AuthLayout as F } from "./components/auth/AuthLayout.js";
|
|
15
15
|
import { LoginPage as w } from "./components/auth/LoginPage.js";
|
|
16
16
|
import { SignupPage as _ } from "./components/auth/SignupPage.js";
|
|
17
17
|
import { DataTable as H } from "./components/data-display/DataTable.js";
|
|
@@ -32,13 +32,13 @@ import { DocumentScanView as Tr } from "./components/data-display/DocumentScanVi
|
|
|
32
32
|
import { Alert as dr } from "./components/feedback/Alert.js";
|
|
33
33
|
import { EmptyState as Sr } from "./components/feedback/EmptyState.js";
|
|
34
34
|
import { Skeleton as Cr } from "./components/feedback/Skeleton.js";
|
|
35
|
-
import { Plan as
|
|
35
|
+
import { Plan as ur } from "./components/feedback/Plan.js";
|
|
36
36
|
import { TippyTooltip as Dr } from "./components/feedback/TippyTooltip.js";
|
|
37
37
|
import { Toast as Ir } from "./components/feedback/Toast.js";
|
|
38
38
|
import { ToastProvider as Lr, useToast as Br } from "./components/feedback/ToastProvider.js";
|
|
39
39
|
import { Label as Er } from "./components/forms/Label.js";
|
|
40
40
|
import { ButtonGroup as vr } from "./components/forms/ButtonGroup.js";
|
|
41
|
-
import { Checkbox as
|
|
41
|
+
import { Checkbox as yr } from "./components/forms/Checkbox.js";
|
|
42
42
|
import { ComboBox as Or } from "./components/forms/ComboBox.js";
|
|
43
43
|
import { DatePicker as kr } from "./components/forms/DatePicker.js";
|
|
44
44
|
import { FileUpload as Gr } from "./components/forms/FileUpload.js";
|
|
@@ -49,241 +49,243 @@ import { Radio as Wr } from "./components/forms/Radio.js";
|
|
|
49
49
|
import { SearchInput as Xr } from "./components/forms/SearchInput.js";
|
|
50
50
|
import { SegmentedControl as Jr } from "./components/forms/SegmentedControl.js";
|
|
51
51
|
import { Select as $r } from "./components/forms/Select.js";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
52
|
+
import { FontSelect as oo } from "./components/forms/FontSelect.js";
|
|
53
|
+
import { Textarea as to } from "./components/forms/Textarea.js";
|
|
54
|
+
import { ToggleSwitch as po, ToggleSwitch as ao } from "./components/forms/ToggleSwitch.js";
|
|
55
|
+
import { useDataFetch as xo } from "./lib/hooks/useDataFetch.js";
|
|
56
|
+
import { useChartTheme as no } from "./lib/hooks/useChartTheme.js";
|
|
57
|
+
import { MOBILE_BREAKPOINT_PX as To, MOBILE_BREAKPOINT_QUERY as so, useIsMobile as ho, useMediaQuery as So } from "./lib/hooks/useMediaQuery.js";
|
|
58
|
+
import { useBodyScrollLock as Co } from "./lib/hooks/useBodyScrollLock.js";
|
|
59
|
+
import { DISMISS_THRESHOLD as uo, DRAG_SLOP as bo, FLICK_VELOCITY as Do, settleTo as Po, useSheetGesture as Io } from "./lib/hooks/useSheetGesture.js";
|
|
60
|
+
import { useDialogFocus as Lo } from "./lib/hooks/useDialogFocus.js";
|
|
61
|
+
import { CircularDial as Ro } from "./components/hardware/CircularDial.js";
|
|
62
|
+
import { HardwareCommandButton as Mo } from "./components/hardware/HardwareCommandButton.js";
|
|
63
|
+
import { Sparkline as Fo } from "./components/hardware/Sparkline.js";
|
|
64
|
+
import { EdgeInsightTerminal as wo } from "./components/hardware/EdgeInsightTerminal.js";
|
|
65
|
+
import { DeviceCard as _o } from "./blocks/iot/DeviceCard.js";
|
|
66
|
+
import { WaterPumpControl as Ho } from "./blocks/iot/WaterPumpControl.js";
|
|
67
|
+
import { TelemetryLog as Vo } from "./blocks/iot/TelemetryLog.js";
|
|
68
|
+
import { DataCard as No } from "./components/molecular/DataCard.js";
|
|
69
|
+
import { StateMatrix as Yo } from "./components/molecular/StateMatrix.js";
|
|
70
|
+
import { ConnectorOverlay as Qo } from "./components/molecular/ConnectorOverlay.js";
|
|
71
|
+
import { AppShell as jo } from "./components/layout/AppShell.js";
|
|
72
|
+
import { SettingsContainer as qo } from "./components/layout/SettingsContainer.js";
|
|
73
|
+
import { DetailDrawer as Zo } from "./components/layout/DetailDrawer.js";
|
|
74
|
+
import { RammeInspectorTrigger as re } from "./components/layout/RammeInspectorTrigger.js";
|
|
75
|
+
import { AboutRamme as ee } from "./components/layout/AboutRamme.js";
|
|
76
|
+
import { Header as me } from "./components/layout/Header.js";
|
|
77
|
+
import { Toolbar as ae } from "./components/layout/Toolbar.js";
|
|
78
|
+
import { FilterPanel as xe } from "./components/layout/FilterPanel.js";
|
|
79
|
+
import { Statusbar as ne } from "./components/layout/Statusbar.js";
|
|
80
|
+
import { Accordion as Te, AccordionItem as se } from "./components/layout/Accordion.js";
|
|
81
|
+
import { Card as he, CardContent as Se, CardDescription as ge, CardFooter as Ce, CardHeader as ce, CardLabel as ue, CardTitle as be } from "./components/layout/Card.js";
|
|
82
|
+
import { Drawer as Pe } from "./components/layout/Drawer.js";
|
|
83
|
+
import { Sheet as Ae } from "./components/layout/Sheet.js";
|
|
84
|
+
import { DefinitionDescription as Be, DefinitionList as Re, DefinitionTerm as Ee, List as Me, ListItem as ve } from "./components/layout/List.js";
|
|
85
|
+
import { Modal as ye } from "./components/layout/Modal.js";
|
|
86
|
+
import { Sidebar as Oe } from "./components/layout/Sidebar.js";
|
|
87
|
+
import { ActionBar as ke } from "./components/layout/ActionBar.js";
|
|
88
|
+
import { PageContainer as Ge } from "./components/layout/PageContainer.js";
|
|
89
|
+
import { PageHeader as Ke } from "./components/layout/PageHeader.js";
|
|
90
|
+
import { SectionHeader as Ue } from "./components/layout/SectionHeader.js";
|
|
91
|
+
import { ButtonItem as ze, UserNav as Qe } from "./components/layout/UserNav.js";
|
|
92
|
+
import { CollectionLayout as je } from "./components/layout/CollectionLayout.js";
|
|
93
|
+
import { DenseMetricRibbon as qe } from "./components/layout/DenseMetricRibbon.js";
|
|
94
|
+
import { BreadcrumbItem as Ze, Breadcrumbs as $e } from "./components/navigation/Breadcrumbs.js";
|
|
95
|
+
import { Menu as ot, MenuDivider as et, MenuItem as tt } from "./components/navigation/Menu.js";
|
|
96
|
+
import { MobileNav as pt } from "./components/navigation/MobileNav.js";
|
|
97
|
+
import { Pagination as ft } from "./components/navigation/Pagination.js";
|
|
98
|
+
import { Stepper as it } from "./components/navigation/Stepper.js";
|
|
99
|
+
import { TabPanel as lt, Tabs as Tt } from "./components/navigation/Tabs.js";
|
|
100
|
+
import { Avatar as dt } from "./components/ui/Avatar.js";
|
|
101
|
+
import { Badge as St, badgeVariants as gt } from "./components/ui/Badge.js";
|
|
102
|
+
import { Button as ct, buttonVariants as ut } from "./components/ui/Button.js";
|
|
103
|
+
import { Icon as Dt } from "./components/ui/Icon.js";
|
|
104
|
+
import { BrandLogo as It } from "./components/ui/BrandLogo.js";
|
|
105
|
+
import { cn as Lt } from "./utils/cn.js";
|
|
106
|
+
import { formatValue as Rt } from "./lib/formatters.js";
|
|
107
|
+
import { ThemeSynthesizer as Mt } from "./components/theme/ThemeSynthesizer.js";
|
|
108
|
+
import { AestheticProfileGrid as Ft } from "./components/theme/AestheticProfileGrid.js";
|
|
109
|
+
import { FineTuningControls as wt } from "./components/theme/FineTuningControls.js";
|
|
110
|
+
import { PaletteSwatch as _t, ThemeLivePreview as kt } from "./components/theme/ThemeLivePreview.js";
|
|
111
|
+
import { ThemeSettings as Gt } from "./components/theme/ThemeSettings.js";
|
|
112
|
+
import { ThemeLab as Kt } from "./components/theme/ThemeLab.js";
|
|
113
|
+
import { AESTHETIC_PROFILES as Ut, generateFromProfile as Yt, generateFromPrompt as zt, generateRandom as Qt, hslToCssString as Wt, hslToRgb as jt, hslToRgbString as Xt, lightToDark as qt, paletteToRgbVars as Jt } from "./lib/theme/ThemeGenerator.logic.js";
|
|
114
|
+
import { THEME_TOKEN_VARS as $t, applyThemeToDom as rm, generateRandomTheme as om, getContrastColor as em, hexToRgbTriplet as tm, isCustomTheme as mm, loadGoogleFont as pm, randomRgb as am, tokensToVars as fm } from "./lib/theme/themeUtils.js";
|
|
115
|
+
import { generateThemeFromPrompt as im } from "./lib/theme/themeAgent.js";
|
|
116
|
+
import { TelemetryGraph as lm } from "./components/ai/TelemetryGraph/TelemetryGraph.js";
|
|
117
|
+
import { ShowroomContainer as sm } from "./components/showroom/ShowroomContainer.js";
|
|
118
|
+
import { ShowroomSidebar as hm } from "./components/showroom/ShowroomSidebar.js";
|
|
119
|
+
import { ShowroomCanvas as gm } from "./components/showroom/ShowroomCanvas.js";
|
|
120
|
+
import { SkuBadge as cm } from "./components/showroom/SkuBadge.js";
|
|
121
|
+
import { resolvePreview as bm } from "./components/showroom/ShowroomRenderer.js";
|
|
121
122
|
export {
|
|
122
|
-
|
|
123
|
+
Ut as AESTHETIC_PROFILES,
|
|
123
124
|
P as AIChatThread,
|
|
124
125
|
p as AUTO_REGISTRY,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
ee as AboutRamme,
|
|
127
|
+
Te as Accordion,
|
|
128
|
+
se as AccordionItem,
|
|
129
|
+
ke as ActionBar,
|
|
129
130
|
T as Actions,
|
|
130
131
|
V as ActivityFeed,
|
|
131
|
-
|
|
132
|
+
Ft as AestheticProfileGrid,
|
|
132
133
|
dr as Alert,
|
|
133
|
-
|
|
134
|
+
jo as AppShell,
|
|
134
135
|
Q as AreaChart,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
F as AuthLayout,
|
|
137
|
+
dt as Avatar,
|
|
138
|
+
St as Badge,
|
|
138
139
|
j as BarChart,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
It as BrandLogo,
|
|
141
|
+
Ze as BreadcrumbItem,
|
|
142
|
+
$e as Breadcrumbs,
|
|
143
|
+
ct as Button,
|
|
143
144
|
vr as ButtonGroup,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
145
|
+
ze as ButtonItem,
|
|
146
|
+
he as Card,
|
|
147
|
+
Se as CardContent,
|
|
148
|
+
ge as CardDescription,
|
|
149
|
+
Ce as CardFooter,
|
|
150
|
+
ce as CardHeader,
|
|
151
|
+
ue as CardLabel,
|
|
152
|
+
be as CardTitle,
|
|
152
153
|
q as ChartWithTable,
|
|
153
154
|
b as ChatFAB,
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
yr as Checkbox,
|
|
156
|
+
Ro as CircularDial,
|
|
156
157
|
mr as CodeBlock,
|
|
157
|
-
|
|
158
|
+
je as CollectionLayout,
|
|
158
159
|
Or as ComboBox,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
Qo as ConnectorOverlay,
|
|
161
|
+
c as Conversation,
|
|
162
|
+
uo as DISMISS_THRESHOLD,
|
|
163
|
+
bo as DRAG_SLOP,
|
|
164
|
+
No as DataCard,
|
|
164
165
|
H as DataTable,
|
|
165
166
|
kr as DatePicker,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
Be as DefinitionDescription,
|
|
168
|
+
Re as DefinitionList,
|
|
169
|
+
Ee as DefinitionTerm,
|
|
170
|
+
qe as DenseMetricRibbon,
|
|
171
|
+
Zo as DetailDrawer,
|
|
172
|
+
_o as DeviceCard,
|
|
172
173
|
Tr as DocumentScanView,
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
Pe as Drawer,
|
|
175
|
+
wo as EdgeInsightTerminal,
|
|
175
176
|
Sr as EmptyState,
|
|
176
|
-
|
|
177
|
+
Do as FLICK_VELOCITY,
|
|
177
178
|
Gr as FileUpload,
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
xe as FilterPanel,
|
|
180
|
+
wt as FineTuningControls,
|
|
181
|
+
oo as FontSelect,
|
|
180
182
|
Kr as FormTemplate,
|
|
181
183
|
Y as Gallery,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
Mo as HardwareCommandButton,
|
|
185
|
+
me as Header,
|
|
186
|
+
Dt as Icon,
|
|
185
187
|
Ur as Input,
|
|
186
188
|
A as KeyInjectionOverlay,
|
|
187
189
|
xr as KpiGrid,
|
|
188
190
|
Er as Label,
|
|
189
191
|
Z as LineChart,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
Me as List,
|
|
193
|
+
ve as ListItem,
|
|
192
194
|
n as Loader,
|
|
193
195
|
w as LoginPage,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
To as MOBILE_BREAKPOINT_PX,
|
|
197
|
+
so as MOBILE_BREAKPOINT_QUERY,
|
|
198
|
+
ot as Menu,
|
|
199
|
+
et as MenuDivider,
|
|
200
|
+
tt as MenuItem,
|
|
199
201
|
g as Message,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
+
pt as MobileNav,
|
|
203
|
+
ye as Modal,
|
|
202
204
|
zr as MultiSelect,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
Ge as PageContainer,
|
|
206
|
+
Ke as PageHeader,
|
|
207
|
+
ft as Pagination,
|
|
208
|
+
_t as PaletteSwatch,
|
|
207
209
|
rr as PieChart,
|
|
208
|
-
|
|
210
|
+
ur as Plan,
|
|
209
211
|
h as PromptInput,
|
|
210
212
|
Wr as Radio,
|
|
211
|
-
|
|
213
|
+
re as RammeInspectorTrigger,
|
|
212
214
|
er as ScatterChart,
|
|
213
215
|
Xr as SearchInput,
|
|
214
|
-
|
|
216
|
+
Ue as SectionHeader,
|
|
215
217
|
Jr as SegmentedControl,
|
|
216
218
|
$r as Select,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
qo as SettingsContainer,
|
|
220
|
+
Ae as Sheet,
|
|
221
|
+
gm as ShowroomCanvas,
|
|
222
|
+
sm as ShowroomContainer,
|
|
223
|
+
hm as ShowroomSidebar,
|
|
224
|
+
Oe as Sidebar,
|
|
223
225
|
_ as SignupPage,
|
|
224
226
|
Cr as Skeleton,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
cm as SkuBadge,
|
|
228
|
+
Fo as Sparkline,
|
|
227
229
|
ar as StatCard,
|
|
228
|
-
|
|
230
|
+
Yo as StateMatrix,
|
|
229
231
|
nr as StatusBadge,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
ne as Statusbar,
|
|
233
|
+
it as Stepper,
|
|
232
234
|
s as Suggestion,
|
|
233
|
-
|
|
235
|
+
po as Switch,
|
|
234
236
|
B as TAY_DREAMBOAT_THEME,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
+
$t as THEME_TOKEN_VARS,
|
|
238
|
+
lt as TabPanel,
|
|
237
239
|
N as Table,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
Tt as Tabs,
|
|
241
|
+
lm as TelemetryGraph,
|
|
242
|
+
Vo as TelemetryLog,
|
|
243
|
+
to as Textarea,
|
|
244
|
+
Kt as ThemeLab,
|
|
245
|
+
kt as ThemeLivePreview,
|
|
244
246
|
R as ThemeProvider,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
Gt as ThemeSettings,
|
|
248
|
+
Mt as ThemeSynthesizer,
|
|
247
249
|
Dr as TippyTooltip,
|
|
248
250
|
Ir as Toast,
|
|
249
251
|
Lr as ToastProvider,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
ao as ToggleSwitch,
|
|
253
|
+
ae as Toolbar,
|
|
254
|
+
Qe as UserNav,
|
|
255
|
+
Ho as WaterPumpControl,
|
|
256
|
+
rm as applyThemeToDom,
|
|
255
257
|
E as availableThemes,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
258
|
+
gt as badgeVariants,
|
|
259
|
+
ut as buttonVariants,
|
|
260
|
+
Lt as cn,
|
|
261
|
+
Rt as formatValue,
|
|
262
|
+
Yt as generateFromProfile,
|
|
263
|
+
zt as generateFromPrompt,
|
|
264
|
+
Qt as generateRandom,
|
|
265
|
+
om as generateRandomTheme,
|
|
266
|
+
im as generateThemeFromPrompt,
|
|
267
|
+
em as getContrastColor,
|
|
268
|
+
tm as hexToRgbTriplet,
|
|
269
|
+
Wt as hslToCssString,
|
|
270
|
+
jt as hslToRgb,
|
|
271
|
+
Xt as hslToRgbString,
|
|
272
|
+
mm as isCustomTheme,
|
|
273
|
+
qt as lightToDark,
|
|
274
|
+
pm as loadGoogleFont,
|
|
273
275
|
f as mockChartData,
|
|
274
276
|
x as mockTableData,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
277
|
+
Jt as paletteToRgbVars,
|
|
278
|
+
am as randomRgb,
|
|
279
|
+
bm as resolvePreview,
|
|
280
|
+
Po as settleTo,
|
|
281
|
+
fm as tokensToVars,
|
|
282
|
+
Co as useBodyScrollLock,
|
|
283
|
+
no as useChartTheme,
|
|
284
|
+
xo as useDataFetch,
|
|
285
|
+
Lo as useDialogFocus,
|
|
286
|
+
ho as useIsMobile,
|
|
287
|
+
So as useMediaQuery,
|
|
288
|
+
Io as useSheetGesture,
|
|
287
289
|
M as useTheme,
|
|
288
290
|
Br as useToast,
|
|
289
291
|
t as wizardManifest
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GoogleFont } from './googleFonts';
|
|
2
|
+
/** How many families the picker shows at once. Typing narrows the rest. */
|
|
3
|
+
export declare const FONT_RESULTS = 50;
|
|
4
|
+
/**
|
|
5
|
+
* The Google Fonts families matching what someone typed, best first: the
|
|
6
|
+
* exact name, then names that start with it, then names containing it, each
|
|
7
|
+
* in popularity order. With nothing typed, the most popular.
|
|
8
|
+
*/
|
|
9
|
+
export declare function searchGoogleFonts(query: string, limit?: number): GoogleFont[];
|
|
10
|
+
export declare const isGoogleFont: (family: string) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GOOGLE_FONTS as c } from "./googleFonts.js";
|
|
2
|
+
const f = 50;
|
|
3
|
+
function u(i, n = f) {
|
|
4
|
+
const s = i.trim().toLowerCase();
|
|
5
|
+
if (!s) return c.slice(0, n);
|
|
6
|
+
const o = [], r = [];
|
|
7
|
+
for (const t of c) {
|
|
8
|
+
const e = t.family.toLowerCase();
|
|
9
|
+
e === s ? o.unshift(t) : e.startsWith(s) ? o.push(t) : e.includes(s) && r.push(t);
|
|
10
|
+
}
|
|
11
|
+
return [...o, ...r].slice(0, n);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
f as FONT_RESULTS,
|
|
15
|
+
u as searchGoogleFonts
|
|
16
|
+
};
|