@ramme-io/ui 4.0.1 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -7
- package/dist/blocks/ai/Actions.js +2 -2
- package/dist/blocks/ai/PromptInput.js +6 -6
- package/dist/component-registry.js +389 -359
- package/dist/components/ai/AIChatThread/AIChatThread.js +81 -73
- package/dist/components/ai/ArchitectureReferenceCard/ArchitectureReferenceCard.d.ts +28 -0
- package/dist/components/ai/ArchitectureReferenceCard/ArchitectureReferenceCard.js +70 -0
- package/dist/components/ai/ArchitectureReferenceCard/index.d.ts +2 -0
- package/dist/components/ai/CounterpartyGraphCard/CounterpartyGraphCard.d.ts +30 -0
- package/dist/components/ai/CounterpartyGraphCard/CounterpartyGraphCard.js +82 -0
- package/dist/components/ai/CounterpartyGraphCard/index.d.ts +2 -0
- package/dist/components/ai/DivergenceMetricsCard/DivergenceMetricsCard.d.ts +29 -0
- package/dist/components/ai/DivergenceMetricsCard/DivergenceMetricsCard.js +69 -0
- package/dist/components/ai/DivergenceMetricsCard/index.d.ts +2 -0
- package/dist/components/ai/KeyInjectionOverlay.d.ts +10 -0
- package/dist/components/ai/KeyInjectionOverlay.js +11 -11
- package/dist/components/ai/NewsSummaryCard/NewsSummaryCard.js +17 -17
- package/dist/components/ai/StockChart/StockChart.js +4 -4
- package/dist/components/auth/AuthLayout.js +4 -4
- package/dist/components/auth/LoginPage.d.ts +22 -0
- package/dist/components/auth/LoginPage.js +50 -42
- package/dist/components/data-display/CodeBlock.d.ts +33 -7
- package/dist/components/data-display/CodeBlock.js +134 -41
- package/dist/components/data-display/Table.js +8 -8
- package/dist/components/feedback/EmptyState.js +9 -9
- package/dist/components/feedback/ToastProvider.js +4 -4
- package/dist/components/forms/Checkbox.js +5 -5
- package/dist/components/forms/ComboBox.js +2 -2
- package/dist/components/forms/DatePicker.js +37 -32
- package/dist/components/forms/FileUpload.js +39 -37
- package/dist/components/forms/Input.js +19 -18
- package/dist/components/forms/MultiSelect.js +9 -8
- package/dist/components/forms/Radio.js +6 -6
- package/dist/components/forms/SegmentedControl.d.ts +1 -1
- package/dist/components/forms/SegmentedControl.js +28 -11
- package/dist/components/forms/Select.js +9 -8
- package/dist/components/forms/Textarea.d.ts +13 -11
- package/dist/components/forms/Textarea.js +36 -16
- package/dist/components/forms/ToggleSwitch.js +9 -9
- package/dist/components/layout/AboutRamme.d.ts +8 -0
- package/dist/components/layout/Accordion.js +25 -32
- package/dist/components/layout/AppShell.js +7 -7
- package/dist/components/layout/Card.js +38 -21
- package/dist/components/layout/DetailDrawer.js +37 -38
- package/dist/components/layout/Drawer.js +50 -51
- package/dist/components/layout/List.js +9 -9
- package/dist/components/layout/Modal.js +5 -5
- package/dist/components/layout/PageHeader.js +7 -7
- package/dist/components/layout/SectionHeader.js +4 -4
- package/dist/components/layout/SettingsContainer.d.ts +12 -0
- package/dist/components/layout/SettingsContainer.js +30 -18
- package/dist/components/layout/Sheet.d.ts +58 -0
- package/dist/components/layout/Sheet.js +144 -0
- package/dist/components/layout/Sidebar.js +1 -1
- package/dist/components/layout/UserNav.d.ts +13 -0
- package/dist/components/layout/UserNav.js +17 -17
- package/dist/components/molecular/ConnectorOverlay.d.ts +12 -0
- package/dist/components/navigation/Breadcrumbs.js +8 -8
- package/dist/components/navigation/Menu.js +6 -6
- package/dist/components/navigation/MobileNav.d.ts +44 -1
- package/dist/components/navigation/MobileNav.js +97 -71
- package/dist/components/navigation/Pagination.js +46 -41
- package/dist/components/navigation/Stepper.js +17 -17
- package/dist/components/navigation/Tabs.js +18 -11
- package/dist/components/theme/ThemeLab.d.ts +7 -1
- package/dist/components/theme/ThemeLab.js +175 -154
- package/dist/components/ui/icon-loader.d.ts +1 -1
- package/dist/contexts/ThemeContext.js +111 -82
- package/dist/data/mockData.d.ts +0 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +222 -197
- package/dist/lib/hooks/useBodyScrollLock.d.ts +27 -0
- package/dist/lib/hooks/useBodyScrollLock.js +18 -0
- package/dist/lib/hooks/useSheetGesture.d.ts +81 -0
- package/dist/lib/hooks/useSheetGesture.js +70 -0
- package/dist/lib/theme/themeUtils.d.ts +21 -0
- package/dist/lib/theme/themeUtils.js +31 -17
- package/dist/setupTests.d.ts +1 -0
- package/dist/wizardManifest.js +364 -19
- package/package.json +10 -4
- package/src/wizardManifest.ts +364 -19
- package/tailwind.preset.js +98 -10
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,14 @@ export * from './blocks/ai/ChatFAB';
|
|
|
14
14
|
export { AIChatThread } from './components/ai/AIChatThread/AIChatThread';
|
|
15
15
|
export type { AIChatThreadProps, ChatConnectionStatus } from './components/ai/AIChatThread/AIChatThread';
|
|
16
16
|
export * from './components/ai/CompanyProfileCard';
|
|
17
|
+
export * from './components/ai/CounterpartyGraphCard';
|
|
18
|
+
export * from './components/ai/DivergenceMetricsCard';
|
|
19
|
+
export * from './components/ai/ArchitectureReferenceCard';
|
|
17
20
|
export * from './components/ai/KeyInjectionOverlay';
|
|
21
|
+
export * from './components/ai/LiveQuoteCard';
|
|
22
|
+
export * from './components/ai/NewsSummaryCard';
|
|
23
|
+
export * from './components/ai/StockChart';
|
|
24
|
+
export * from './components/ai/TelemetryGraph';
|
|
18
25
|
export * from './contexts/ThemeContext';
|
|
19
26
|
export { AuthLayout } from './components/auth/AuthLayout';
|
|
20
27
|
export { LoginPage } from './components/auth/LoginPage';
|
|
@@ -59,6 +66,8 @@ export { ToggleSwitch as Switch } from './components/forms/ToggleSwitch';
|
|
|
59
66
|
export * from './lib/hooks/useDataFetch';
|
|
60
67
|
export * from './lib/hooks/useChartTheme';
|
|
61
68
|
export * from './lib/hooks/useMediaQuery';
|
|
69
|
+
export * from './lib/hooks/useBodyScrollLock';
|
|
70
|
+
export * from './lib/hooks/useSheetGesture';
|
|
62
71
|
export * from './components/hardware/CircularDial';
|
|
63
72
|
export * from './components/hardware/HardwareCommandButton';
|
|
64
73
|
export * from './components/hardware/Sparkline';
|
|
@@ -81,6 +90,7 @@ export * from './components/layout/Statusbar';
|
|
|
81
90
|
export * from './components/layout/Accordion';
|
|
82
91
|
export * from './components/layout/Card';
|
|
83
92
|
export * from './components/layout/Drawer';
|
|
93
|
+
export * from './components/layout/Sheet';
|
|
84
94
|
export * from './components/layout/List';
|
|
85
95
|
export * from './components/layout/Modal';
|
|
86
96
|
export * from './components/layout/Sidebar';
|
package/dist/index.js
CHANGED
|
@@ -5,20 +5,20 @@ import { mockChartData as f, mockTableData as x } from "./data/mockData.js";
|
|
|
5
5
|
import { Loader as n } from "./blocks/ai/Loader.js";
|
|
6
6
|
import { Actions as s, Suggestion as T } from "./blocks/ai/Actions.js";
|
|
7
7
|
import { PromptInput as h } from "./blocks/ai/PromptInput.js";
|
|
8
|
-
import { Message as
|
|
9
|
-
import { Conversation as
|
|
8
|
+
import { Message as c } from "./blocks/ai/Message.js";
|
|
9
|
+
import { Conversation as g } from "./blocks/ai/Conversation.js";
|
|
10
10
|
import { ChatFAB as b } from "./blocks/ai/ChatFAB.js";
|
|
11
|
-
import { AIChatThread as
|
|
12
|
-
import { KeyInjectionOverlay as
|
|
13
|
-
import { TAY_DREAMBOAT_THEME as
|
|
14
|
-
import { AuthLayout as
|
|
15
|
-
import { LoginPage as
|
|
11
|
+
import { AIChatThread as I } from "./components/ai/AIChatThread/AIChatThread.js";
|
|
12
|
+
import { KeyInjectionOverlay as D } from "./components/ai/KeyInjectionOverlay.js";
|
|
13
|
+
import { TAY_DREAMBOAT_THEME as B, ThemeProvider as R, availableThemes as E, useTheme as v } from "./contexts/ThemeContext.js";
|
|
14
|
+
import { AuthLayout as y } from "./components/auth/AuthLayout.js";
|
|
15
|
+
import { LoginPage as w } from "./components/auth/LoginPage.js";
|
|
16
16
|
import { SignupPage as O } from "./components/auth/SignupPage.js";
|
|
17
17
|
import { DataTable as H } from "./components/data-display/DataTable.js";
|
|
18
18
|
import { ActivityFeed as V } from "./components/data-display/ActivityFeed.js";
|
|
19
19
|
import { Table as N } from "./components/data-display/Table.js";
|
|
20
|
-
import { AreaChart as
|
|
21
|
-
import { BarChart as
|
|
20
|
+
import { AreaChart as Y } from "./components/data-display/AreaChart.js";
|
|
21
|
+
import { BarChart as W } from "./components/data-display/BarChart.js";
|
|
22
22
|
import { ChartWithTable as j } from "./components/data-display/ChartWithTable.js";
|
|
23
23
|
import { LineChart as q } from "./components/data-display/LineChart.js";
|
|
24
24
|
import { PieChart as Z } from "./components/data-display/PieChart.js";
|
|
@@ -30,246 +30,271 @@ import { StatusBadge as xr } from "./components/data-display/StatusBadge.js";
|
|
|
30
30
|
import { Alert as nr } from "./components/feedback/Alert.js";
|
|
31
31
|
import { EmptyState as sr } from "./components/feedback/EmptyState.js";
|
|
32
32
|
import { Skeleton as dr } from "./components/feedback/Skeleton.js";
|
|
33
|
-
import { Plan as
|
|
34
|
-
import { TippyTooltip as
|
|
33
|
+
import { Plan as Cr } from "./components/feedback/Plan.js";
|
|
34
|
+
import { TippyTooltip as Sr } from "./components/feedback/TippyTooltip.js";
|
|
35
35
|
import { Toast as ur } from "./components/feedback/Toast.js";
|
|
36
|
-
import { ToastProvider as Pr, useToast as
|
|
37
|
-
import { Label as
|
|
38
|
-
import { ButtonGroup as
|
|
39
|
-
import { Checkbox as
|
|
40
|
-
import { ComboBox as
|
|
41
|
-
import { DatePicker as
|
|
36
|
+
import { ToastProvider as Pr, useToast as Ir } from "./components/feedback/ToastProvider.js";
|
|
37
|
+
import { Label as Dr } from "./components/forms/Label.js";
|
|
38
|
+
import { ButtonGroup as Br } from "./components/forms/ButtonGroup.js";
|
|
39
|
+
import { Checkbox as Er } from "./components/forms/Checkbox.js";
|
|
40
|
+
import { ComboBox as Mr } from "./components/forms/ComboBox.js";
|
|
41
|
+
import { DatePicker as Fr } from "./components/forms/DatePicker.js";
|
|
42
42
|
import { FileUpload as kr } from "./components/forms/FileUpload.js";
|
|
43
43
|
import { FormTemplate as _r } from "./components/forms/FormTemplate.js";
|
|
44
44
|
import { Input as Gr } from "./components/forms/Input.js";
|
|
45
45
|
import { MultiSelect as Kr } from "./components/forms/MultiSelect.js";
|
|
46
46
|
import { Radio as Ur } from "./components/forms/Radio.js";
|
|
47
|
-
import { SearchInput as
|
|
48
|
-
import { SegmentedControl as
|
|
47
|
+
import { SearchInput as Qr } from "./components/forms/SearchInput.js";
|
|
48
|
+
import { SegmentedControl as zr } from "./components/forms/SegmentedControl.js";
|
|
49
49
|
import { Select as Xr } from "./components/forms/Select.js";
|
|
50
50
|
import { Textarea as Jr } from "./components/forms/Textarea.js";
|
|
51
51
|
import { ToggleSwitch as $r, ToggleSwitch as ro } from "./components/forms/ToggleSwitch.js";
|
|
52
52
|
import { useDataFetch as eo } from "./lib/hooks/useDataFetch.js";
|
|
53
53
|
import { useChartTheme as mo } from "./lib/hooks/useChartTheme.js";
|
|
54
54
|
import { MOBILE_BREAKPOINT_PX as po, MOBILE_BREAKPOINT_QUERY as fo, useIsMobile as xo, useMediaQuery as io } from "./lib/hooks/useMediaQuery.js";
|
|
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 {
|
|
55
|
+
import { useBodyScrollLock as lo } from "./lib/hooks/useBodyScrollLock.js";
|
|
56
|
+
import { DISMISS_THRESHOLD as To, FLICK_VELOCITY as ho, settleTo as Co, useSheetGesture as co } from "./lib/hooks/useSheetGesture.js";
|
|
57
|
+
import { CircularDial as go } from "./components/hardware/CircularDial.js";
|
|
58
|
+
import { HardwareCommandButton as bo } from "./components/hardware/HardwareCommandButton.js";
|
|
59
|
+
import { Sparkline as Io } from "./components/hardware/Sparkline.js";
|
|
60
|
+
import { EdgeInsightTerminal as Do } from "./components/hardware/EdgeInsightTerminal.js";
|
|
61
|
+
import { DeviceCard as Bo } from "./blocks/iot/DeviceCard.js";
|
|
62
|
+
import { WaterPumpControl as Eo } from "./blocks/iot/WaterPumpControl.js";
|
|
63
|
+
import { TelemetryLog as Mo } from "./blocks/iot/TelemetryLog.js";
|
|
64
|
+
import { DataCard as Fo } from "./components/molecular/DataCard.js";
|
|
65
|
+
import { StateMatrix as ko } from "./components/molecular/StateMatrix.js";
|
|
66
|
+
import { ConnectorOverlay as _o } from "./components/molecular/ConnectorOverlay.js";
|
|
67
|
+
import { AppShell as Go } from "./components/layout/AppShell.js";
|
|
68
|
+
import { SettingsContainer as Ko } from "./components/layout/SettingsContainer.js";
|
|
69
|
+
import { DetailDrawer as Uo } from "./components/layout/DetailDrawer.js";
|
|
70
|
+
import { RammeInspectorTrigger as Qo } from "./components/layout/RammeInspectorTrigger.js";
|
|
71
|
+
import { AboutRamme as zo } from "./components/layout/AboutRamme.js";
|
|
72
|
+
import { Header as Xo } from "./components/layout/Header.js";
|
|
73
|
+
import { Toolbar as Jo } from "./components/layout/Toolbar.js";
|
|
74
|
+
import { FilterPanel as $o } from "./components/layout/FilterPanel.js";
|
|
75
|
+
import { Statusbar as oe } from "./components/layout/Statusbar.js";
|
|
76
|
+
import { Accordion as te, AccordionItem as me } from "./components/layout/Accordion.js";
|
|
77
|
+
import { Card as pe, CardContent as fe, CardDescription as xe, CardFooter as ie, CardHeader as ne, CardLabel as le, CardTitle as se } from "./components/layout/Card.js";
|
|
78
|
+
import { Drawer as de } from "./components/layout/Drawer.js";
|
|
79
|
+
import { Sheet as Ce } from "./components/layout/Sheet.js";
|
|
80
|
+
import { DefinitionDescription as Se, DefinitionList as ge, DefinitionTerm as ue, List as be, ListItem as Pe } from "./components/layout/List.js";
|
|
81
|
+
import { Modal as Ae } from "./components/layout/Modal.js";
|
|
82
|
+
import { Sidebar as Le } from "./components/layout/Sidebar.js";
|
|
83
|
+
import { ActionBar as Re } from "./components/layout/ActionBar.js";
|
|
84
|
+
import { PageContainer as ve } from "./components/layout/PageContainer.js";
|
|
85
|
+
import { PageHeader as ye } from "./components/layout/PageHeader.js";
|
|
86
|
+
import { SectionHeader as we } from "./components/layout/SectionHeader.js";
|
|
87
|
+
import { ButtonItem as Oe, UserNav as _e } from "./components/layout/UserNav.js";
|
|
88
|
+
import { CollectionLayout as Ge } from "./components/layout/CollectionLayout.js";
|
|
89
|
+
import { DenseMetricRibbon as Ke } from "./components/layout/DenseMetricRibbon.js";
|
|
90
|
+
import { BreadcrumbItem as Ue, Breadcrumbs as Ye } from "./components/navigation/Breadcrumbs.js";
|
|
91
|
+
import { Menu as We, MenuDivider as ze, MenuItem as je } from "./components/navigation/Menu.js";
|
|
92
|
+
import { MobileNav as qe } from "./components/navigation/MobileNav.js";
|
|
93
|
+
import { Pagination as Ze } from "./components/navigation/Pagination.js";
|
|
94
|
+
import { Stepper as rt } from "./components/navigation/Stepper.js";
|
|
95
|
+
import { TabPanel as et, Tabs as tt } from "./components/navigation/Tabs.js";
|
|
96
|
+
import { FinancialAssetSchema as at, WatchlistEngine as pt } from "./blocks/engines/WatchlistEngine.js";
|
|
97
|
+
import { Avatar as xt } from "./components/ui/Avatar.js";
|
|
98
|
+
import { Badge as nt, badgeVariants as lt } from "./components/ui/Badge.js";
|
|
99
|
+
import { Button as Tt, buttonVariants as dt } from "./components/ui/Button.js";
|
|
100
|
+
import { Icon as Ct } from "./components/ui/Icon.js";
|
|
101
|
+
import { BrandLogo as St } from "./components/ui/BrandLogo.js";
|
|
102
|
+
import { cn as ut } from "./utils/cn.js";
|
|
103
|
+
import { formatValue as Pt } from "./lib/formatters.js";
|
|
104
|
+
import { ThemeSynthesizer as At } from "./components/theme/ThemeSynthesizer.js";
|
|
105
|
+
import { AestheticProfileGrid as Lt } from "./components/theme/AestheticProfileGrid.js";
|
|
106
|
+
import { FineTuningControls as Rt } from "./components/theme/FineTuningControls.js";
|
|
107
|
+
import { PaletteSwatch as vt, ThemeLivePreview as Mt } from "./components/theme/ThemeLivePreview.js";
|
|
108
|
+
import { ThemeSettings as Ft } from "./components/theme/ThemeSettings.js";
|
|
109
|
+
import { ThemeLab as kt } from "./components/theme/ThemeLab.js";
|
|
110
|
+
import { AESTHETIC_PROFILES as _t, generateFromProfile as Ht, generateFromPrompt as Gt, generateRandom as Vt, hslToCssString as Kt, hslToRgb as Nt, hslToRgbString as Ut, lightToDark as Yt, paletteToRgbVars as Qt } from "./lib/theme/ThemeGenerator.logic.js";
|
|
111
|
+
import { THEME_TOKEN_VARS as zt, applyThemeToDom as jt, generateRandomTheme as Xt, getContrastColor as qt, hexToRgbTriplet as Jt, isCustomTheme as Zt, loadGoogleFont as $t, randomRgb as rm, tokensToVars as om } from "./lib/theme/themeUtils.js";
|
|
112
|
+
import { generateThemeFromPrompt as tm } from "./lib/theme/themeAgent.js";
|
|
113
|
+
import { CompanyProfileCard as am } from "./components/ai/CompanyProfileCard/CompanyProfileCard.js";
|
|
114
|
+
import { CounterpartyGraphCard as fm } from "./components/ai/CounterpartyGraphCard/CounterpartyGraphCard.js";
|
|
115
|
+
import { DivergenceMetricsCard as im } from "./components/ai/DivergenceMetricsCard/DivergenceMetricsCard.js";
|
|
116
|
+
import { ArchitectureReferenceCard as lm } from "./components/ai/ArchitectureReferenceCard/ArchitectureReferenceCard.js";
|
|
117
|
+
import { LiveQuoteCard as Tm } from "./components/ai/LiveQuoteCard/LiveQuoteCard.js";
|
|
118
|
+
import { NewsSummaryCard as hm } from "./components/ai/NewsSummaryCard/NewsSummaryCard.js";
|
|
119
|
+
import { StockChart as cm } from "./components/ai/StockChart/StockChart.js";
|
|
120
|
+
import { TelemetryGraph as gm } from "./components/ai/TelemetryGraph/TelemetryGraph.js";
|
|
121
|
+
import { ShowroomContainer as bm } from "./components/showroom/ShowroomContainer.js";
|
|
122
|
+
import { ShowroomSidebar as Im } from "./components/showroom/ShowroomSidebar.js";
|
|
123
|
+
import { ShowroomCanvas as Dm } from "./components/showroom/ShowroomCanvas.js";
|
|
124
|
+
import { SkuBadge as Bm } from "./components/showroom/SkuBadge.js";
|
|
125
|
+
import { resolvePreview as Em } from "./components/showroom/ShowroomRenderer.js";
|
|
116
126
|
export {
|
|
117
|
-
|
|
118
|
-
|
|
127
|
+
_t as AESTHETIC_PROFILES,
|
|
128
|
+
I as AIChatThread,
|
|
119
129
|
a as AUTO_REGISTRY,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
130
|
+
zo as AboutRamme,
|
|
131
|
+
te as Accordion,
|
|
132
|
+
me as AccordionItem,
|
|
133
|
+
Re as ActionBar,
|
|
124
134
|
s as Actions,
|
|
125
135
|
V as ActivityFeed,
|
|
126
|
-
|
|
136
|
+
Lt as AestheticProfileGrid,
|
|
127
137
|
nr as Alert,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
Go as AppShell,
|
|
139
|
+
lm as ArchitectureReferenceCard,
|
|
140
|
+
Y as AreaChart,
|
|
141
|
+
y as AuthLayout,
|
|
142
|
+
xt as Avatar,
|
|
143
|
+
nt as Badge,
|
|
144
|
+
W as BarChart,
|
|
145
|
+
St as BrandLogo,
|
|
146
|
+
Ue as BreadcrumbItem,
|
|
147
|
+
Ye as Breadcrumbs,
|
|
148
|
+
Tt as Button,
|
|
149
|
+
Br as ButtonGroup,
|
|
150
|
+
Oe as ButtonItem,
|
|
151
|
+
pe as Card,
|
|
152
|
+
fe as CardContent,
|
|
153
|
+
xe as CardDescription,
|
|
154
|
+
ie as CardFooter,
|
|
155
|
+
ne as CardHeader,
|
|
156
|
+
le as CardLabel,
|
|
157
|
+
se as CardTitle,
|
|
147
158
|
j as ChartWithTable,
|
|
148
159
|
b as ChatFAB,
|
|
149
|
-
|
|
150
|
-
|
|
160
|
+
Er as Checkbox,
|
|
161
|
+
go as CircularDial,
|
|
151
162
|
er as CodeBlock,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
163
|
+
Ge as CollectionLayout,
|
|
164
|
+
Mr as ComboBox,
|
|
165
|
+
am as CompanyProfileCard,
|
|
166
|
+
_o as ConnectorOverlay,
|
|
167
|
+
g as Conversation,
|
|
168
|
+
fm as CounterpartyGraphCard,
|
|
169
|
+
To as DISMISS_THRESHOLD,
|
|
170
|
+
Fo as DataCard,
|
|
158
171
|
H as DataTable,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
172
|
+
Fr as DatePicker,
|
|
173
|
+
Se as DefinitionDescription,
|
|
174
|
+
ge as DefinitionList,
|
|
175
|
+
ue as DefinitionTerm,
|
|
176
|
+
Ke as DenseMetricRibbon,
|
|
177
|
+
Uo as DetailDrawer,
|
|
178
|
+
Bo as DeviceCard,
|
|
179
|
+
im as DivergenceMetricsCard,
|
|
180
|
+
de as Drawer,
|
|
181
|
+
Do as EdgeInsightTerminal,
|
|
168
182
|
sr as EmptyState,
|
|
183
|
+
ho as FLICK_VELOCITY,
|
|
169
184
|
kr as FileUpload,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
185
|
+
$o as FilterPanel,
|
|
186
|
+
at as FinancialAssetSchema,
|
|
187
|
+
Rt as FineTuningControls,
|
|
173
188
|
_r as FormTemplate,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
189
|
+
bo as HardwareCommandButton,
|
|
190
|
+
Xo as Header,
|
|
191
|
+
Ct as Icon,
|
|
177
192
|
Gr as Input,
|
|
178
|
-
|
|
193
|
+
D as KeyInjectionOverlay,
|
|
179
194
|
pr as KpiGrid,
|
|
180
|
-
|
|
195
|
+
Dr as Label,
|
|
181
196
|
q as LineChart,
|
|
182
|
-
|
|
183
|
-
|
|
197
|
+
be as List,
|
|
198
|
+
Pe as ListItem,
|
|
199
|
+
Tm as LiveQuoteCard,
|
|
184
200
|
n as Loader,
|
|
185
|
-
|
|
201
|
+
w as LoginPage,
|
|
186
202
|
po as MOBILE_BREAKPOINT_PX,
|
|
187
203
|
fo as MOBILE_BREAKPOINT_QUERY,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
204
|
+
We as Menu,
|
|
205
|
+
ze as MenuDivider,
|
|
206
|
+
je as MenuItem,
|
|
207
|
+
c as Message,
|
|
208
|
+
qe as MobileNav,
|
|
209
|
+
Ae as Modal,
|
|
194
210
|
Kr as MultiSelect,
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
211
|
+
hm as NewsSummaryCard,
|
|
212
|
+
ve as PageContainer,
|
|
213
|
+
ye as PageHeader,
|
|
214
|
+
Ze as Pagination,
|
|
215
|
+
vt as PaletteSwatch,
|
|
199
216
|
Z as PieChart,
|
|
200
|
-
|
|
217
|
+
Cr as Plan,
|
|
201
218
|
h as PromptInput,
|
|
202
219
|
Ur as Radio,
|
|
203
|
-
|
|
220
|
+
Qo as RammeInspectorTrigger,
|
|
204
221
|
rr as ScatterChart,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
222
|
+
Qr as SearchInput,
|
|
223
|
+
we as SectionHeader,
|
|
224
|
+
zr as SegmentedControl,
|
|
208
225
|
Xr as Select,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
226
|
+
Ko as SettingsContainer,
|
|
227
|
+
Ce as Sheet,
|
|
228
|
+
Dm as ShowroomCanvas,
|
|
229
|
+
bm as ShowroomContainer,
|
|
230
|
+
Im as ShowroomSidebar,
|
|
231
|
+
Le as Sidebar,
|
|
214
232
|
O as SignupPage,
|
|
215
233
|
dr as Skeleton,
|
|
216
|
-
|
|
217
|
-
|
|
234
|
+
Bm as SkuBadge,
|
|
235
|
+
Io as Sparkline,
|
|
218
236
|
mr as StatCard,
|
|
219
|
-
|
|
237
|
+
ko as StateMatrix,
|
|
220
238
|
xr as StatusBadge,
|
|
221
|
-
|
|
222
|
-
|
|
239
|
+
oe as Statusbar,
|
|
240
|
+
rt as Stepper,
|
|
241
|
+
cm as StockChart,
|
|
223
242
|
T as Suggestion,
|
|
224
243
|
$r as Switch,
|
|
225
|
-
|
|
226
|
-
|
|
244
|
+
B as TAY_DREAMBOAT_THEME,
|
|
245
|
+
zt as THEME_TOKEN_VARS,
|
|
246
|
+
et as TabPanel,
|
|
227
247
|
N as Table,
|
|
228
|
-
|
|
229
|
-
|
|
248
|
+
tt as Tabs,
|
|
249
|
+
gm as TelemetryGraph,
|
|
250
|
+
Mo as TelemetryLog,
|
|
230
251
|
Jr as Textarea,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
252
|
+
kt as ThemeLab,
|
|
253
|
+
Mt as ThemeLivePreview,
|
|
254
|
+
R as ThemeProvider,
|
|
255
|
+
Ft as ThemeSettings,
|
|
256
|
+
At as ThemeSynthesizer,
|
|
257
|
+
Sr as TippyTooltip,
|
|
237
258
|
ur as Toast,
|
|
238
259
|
Pr as ToastProvider,
|
|
239
260
|
ro as ToggleSwitch,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
Jo as Toolbar,
|
|
262
|
+
_e as UserNav,
|
|
263
|
+
pt as WatchlistEngine,
|
|
264
|
+
Eo as WaterPumpControl,
|
|
265
|
+
jt as applyThemeToDom,
|
|
266
|
+
E as availableThemes,
|
|
267
|
+
lt as badgeVariants,
|
|
268
|
+
dt as buttonVariants,
|
|
269
|
+
ut as cn,
|
|
270
|
+
Pt as formatValue,
|
|
271
|
+
Ht as generateFromProfile,
|
|
272
|
+
Gt as generateFromPrompt,
|
|
273
|
+
Vt as generateRandom,
|
|
274
|
+
Xt as generateRandomTheme,
|
|
275
|
+
tm as generateThemeFromPrompt,
|
|
276
|
+
qt as getContrastColor,
|
|
277
|
+
Jt as hexToRgbTriplet,
|
|
278
|
+
Kt as hslToCssString,
|
|
279
|
+
Nt as hslToRgb,
|
|
280
|
+
Ut as hslToRgbString,
|
|
281
|
+
Zt as isCustomTheme,
|
|
282
|
+
Yt as lightToDark,
|
|
283
|
+
$t as loadGoogleFont,
|
|
262
284
|
f as mockChartData,
|
|
263
285
|
x as mockTableData,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
286
|
+
Qt as paletteToRgbVars,
|
|
287
|
+
rm as randomRgb,
|
|
288
|
+
Em as resolvePreview,
|
|
289
|
+
Co as settleTo,
|
|
290
|
+
om as tokensToVars,
|
|
291
|
+
lo as useBodyScrollLock,
|
|
268
292
|
mo as useChartTheme,
|
|
269
293
|
eo as useDataFetch,
|
|
270
294
|
xo as useIsMobile,
|
|
271
295
|
io as useMediaQuery,
|
|
272
|
-
|
|
273
|
-
|
|
296
|
+
co as useSheetGesture,
|
|
297
|
+
v as useTheme,
|
|
298
|
+
Ir as useToast,
|
|
274
299
|
t as wizardManifest
|
|
275
300
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locks background scrolling while an overlay is open, without moving the page.
|
|
3
|
+
*
|
|
4
|
+
* ZERO JANK (rule 6): a scroll lock must not shift the page or lose the
|
|
5
|
+
* reader's position. `overflow: hidden` on the body alone has two visible
|
|
6
|
+
* failure modes:
|
|
7
|
+
*
|
|
8
|
+
* - On desktop it removes the scrollbar, so the whole page jumps sideways by
|
|
9
|
+
* the scrollbar's width the instant the overlay opens. `scrollbar-gutter:
|
|
10
|
+
* stable` on <html> covers the common case, but only under a fine pointer.
|
|
11
|
+
* - On iOS Safari the body stops being the scroll container and the offset is
|
|
12
|
+
* discarded, so closing the overlay drops the reader at the top of the page.
|
|
13
|
+
*
|
|
14
|
+
* Pinning the body at a negative offset preserves the position, and restoring
|
|
15
|
+
* it scrolls back to where the reader was.
|
|
16
|
+
*
|
|
17
|
+
* Extracted from Drawer, which had the only correct implementation in the repo;
|
|
18
|
+
* ShowroomPage had hand-rolled a second one that set `overflow` alone and lost
|
|
19
|
+
* the position on every close. Reach for this rather than writing a third.
|
|
20
|
+
*
|
|
21
|
+
* @param isLocked - true while the overlay is open.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const [isOpen, setIsOpen] = useState(false);
|
|
25
|
+
* useBodyScrollLock(isOpen);
|
|
26
|
+
*/
|
|
27
|
+
export declare function useBodyScrollLock(isLocked: boolean): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useEffect as s } from "react";
|
|
2
|
+
function r(e) {
|
|
3
|
+
s(() => {
|
|
4
|
+
if (!e) return;
|
|
5
|
+
const { body: o } = document, l = window.scrollY, t = {
|
|
6
|
+
position: o.style.position,
|
|
7
|
+
top: o.style.top,
|
|
8
|
+
width: o.style.width,
|
|
9
|
+
overflow: o.style.overflow
|
|
10
|
+
};
|
|
11
|
+
return o.style.position = "fixed", o.style.top = `-${l}px`, o.style.width = "100%", o.style.overflow = "hidden", () => {
|
|
12
|
+
o.style.position = t.position, o.style.top = t.top, o.style.width = t.width, o.style.overflow = t.overflow, window.scrollTo(0, l);
|
|
13
|
+
};
|
|
14
|
+
}, [e]);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
r as useBodyScrollLock
|
|
18
|
+
};
|