@lobehub/ui 6.0.0-beta.5 → 6.0.0-beta.6
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/es/Accordion/style.d.mts +1 -1
- package/es/ActionIcon/style.mjs +1 -1
- package/es/ActionIcon/style.mjs.map +1 -1
- package/es/ColorSwatches/ColorSwatches.mjs +17 -22
- package/es/ColorSwatches/ColorSwatches.mjs.map +1 -1
- package/es/ColorSwatches/CustomPicker.mjs +101 -0
- package/es/ColorSwatches/CustomPicker.mjs.map +1 -0
- package/es/ColorSwatches/index.d.mts +2 -2
- package/es/ColorSwatches/marker.stylex.mjs +9 -0
- package/es/ColorSwatches/marker.stylex.mjs.map +1 -0
- package/es/ColorSwatches/style.mjs +36 -0
- package/es/ColorSwatches/style.mjs.map +1 -1
- package/es/ColorSwatches/type.d.mts +9 -0
- package/es/Grid/style.mjs +1 -1
- package/es/Grid/style.mjs.map +1 -1
- package/es/Image/type.d.mts +1 -0
- package/es/Image/viewer/ImageViewer.mjs +1 -0
- package/es/Image/viewer/ImageViewer.mjs.map +1 -1
- package/es/Image/viewer/Toolbar.mjs +19 -6
- package/es/Image/viewer/Toolbar.mjs.map +1 -1
- package/es/Image/viewer/ViewerChrome.mjs.map +1 -1
- package/es/Input/style.mjs +3 -3
- package/es/Input/style.mjs.map +1 -1
- package/es/Text/style.d.mts +3 -3
- package/es/awesome/Grainient/Grainient.d.mts +11 -0
- package/es/awesome/Grainient/Grainient.mjs +314 -0
- package/es/awesome/Grainient/Grainient.mjs.map +1 -0
- package/es/awesome/Grainient/index.d.mts +3 -0
- package/es/awesome/Grainient/style.mjs +23 -0
- package/es/awesome/Grainient/style.mjs.map +1 -0
- package/es/awesome/Grainient/type.d.mts +121 -0
- package/es/awesome/index.d.mts +4 -1
- package/es/awesome/index.mjs +2 -1
- package/es/dashboard/AuthLayout/Aside.d.mts +10 -0
- package/es/dashboard/AuthLayout/Aside.mjs +31 -0
- package/es/dashboard/AuthLayout/Aside.mjs.map +1 -0
- package/es/dashboard/AuthLayout/AuthLayout.d.mts +3 -1
- package/es/dashboard/AuthLayout/AuthLayout.mjs +93 -37
- package/es/dashboard/AuthLayout/AuthLayout.mjs.map +1 -1
- package/es/dashboard/AuthLayout/index.d.mts +3 -2
- package/es/dashboard/AuthLayout/style.mjs +98 -1
- package/es/dashboard/AuthLayout/style.mjs.map +1 -1
- package/es/dashboard/AuthLayout/type.d.mts +38 -2
- package/es/dashboard/AuthTools/AuthLocaleSwitch.d.mts +10 -0
- package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs +33 -0
- package/es/dashboard/AuthTools/AuthLocaleSwitch.mjs.map +1 -0
- package/es/dashboard/AuthTools/AuthThemeSwitch.d.mts +10 -0
- package/es/dashboard/AuthTools/AuthThemeSwitch.mjs +59 -0
- package/es/dashboard/AuthTools/AuthThemeSwitch.mjs.map +1 -0
- package/es/dashboard/AuthTools/index.d.mts +4 -0
- package/es/dashboard/AuthTools/style.mjs +27 -0
- package/es/dashboard/AuthTools/style.mjs.map +1 -0
- package/es/dashboard/AuthTools/type.d.mts +29 -0
- package/es/dashboard/ChartGrid/ChartGrid.d.mts +10 -0
- package/es/dashboard/ChartGrid/ChartGrid.mjs +19 -0
- package/es/dashboard/ChartGrid/ChartGrid.mjs.map +1 -0
- package/es/dashboard/ChartGrid/index.d.mts +3 -0
- package/es/dashboard/ChartGrid/style.mjs +18 -0
- package/es/dashboard/ChartGrid/style.mjs.map +1 -0
- package/es/dashboard/ChartGrid/type.d.mts +8 -0
- package/es/dashboard/ConsoleNav/Skeleton.d.mts +15 -0
- package/es/dashboard/ConsoleNav/Skeleton.mjs +82 -0
- package/es/dashboard/ConsoleNav/Skeleton.mjs.map +1 -0
- package/es/dashboard/ConsoleNav/index.d.mts +3 -2
- package/es/dashboard/ConsoleNav/style.mjs +18 -0
- package/es/dashboard/ConsoleNav/style.mjs.map +1 -1
- package/es/dashboard/ConsoleNav/type.d.mts +13 -0
- package/es/dashboard/ConsoleShell/ConsoleShell.d.mts +1 -1
- package/es/dashboard/ConsoleShell/ConsoleShell.mjs +26 -6
- package/es/dashboard/ConsoleShell/ConsoleShell.mjs.map +1 -1
- package/es/dashboard/ConsoleShell/style.mjs +10 -0
- package/es/dashboard/ConsoleShell/style.mjs.map +1 -1
- package/es/dashboard/ConsoleShell/type.d.mts +11 -0
- package/es/dashboard/FilterSidebar/FilterSidebar.mjs +18 -17
- package/es/dashboard/FilterSidebar/FilterSidebar.mjs.map +1 -1
- package/es/dashboard/FilterStrip/FilterStrip.d.mts +11 -0
- package/es/dashboard/FilterStrip/FilterStrip.mjs +55 -0
- package/es/dashboard/FilterStrip/FilterStrip.mjs.map +1 -0
- package/es/dashboard/FilterStrip/index.d.mts +3 -0
- package/es/dashboard/FilterStrip/style.mjs +78 -0
- package/es/dashboard/FilterStrip/style.mjs.map +1 -0
- package/es/dashboard/FilterStrip/type.d.mts +25 -0
- package/es/dashboard/LabelWithKey/LabelWithKey.d.mts +10 -0
- package/es/dashboard/LabelWithKey/LabelWithKey.mjs +18 -0
- package/es/dashboard/LabelWithKey/LabelWithKey.mjs.map +1 -0
- package/es/dashboard/LabelWithKey/index.d.mts +3 -0
- package/es/dashboard/LabelWithKey/type.d.mts +11 -0
- package/es/dashboard/MetricStrip/MetricCell.mjs +81 -0
- package/es/dashboard/MetricStrip/MetricCell.mjs.map +1 -0
- package/es/dashboard/MetricStrip/MetricStrip.d.mts +13 -0
- package/es/dashboard/MetricStrip/MetricStrip.mjs +47 -0
- package/es/dashboard/MetricStrip/MetricStrip.mjs.map +1 -0
- package/es/dashboard/MetricStrip/index.d.mts +3 -0
- package/es/dashboard/MetricStrip/style.mjs +156 -0
- package/es/dashboard/MetricStrip/style.mjs.map +1 -0
- package/es/dashboard/MetricStrip/type.d.mts +36 -0
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs +20 -18
- package/es/dashboard/PageSkeleton/PageSkeleton.mjs.map +1 -1
- package/es/dashboard/PageSkeleton/style.mjs +1 -1
- package/es/dashboard/PageSkeleton/style.mjs.map +1 -1
- package/es/dashboard/PageToolbar/PageToolbar.d.mts +10 -0
- package/es/dashboard/PageToolbar/PageToolbar.mjs +22 -0
- package/es/dashboard/PageToolbar/PageToolbar.mjs.map +1 -0
- package/es/dashboard/PageToolbar/index.d.mts +3 -0
- package/es/dashboard/PageToolbar/style.mjs +36 -0
- package/es/dashboard/PageToolbar/style.mjs.map +1 -0
- package/es/dashboard/PageToolbar/type.d.mts +11 -0
- package/es/dashboard/PanelSurface/PanelSurface.d.mts +10 -0
- package/es/dashboard/PanelSurface/PanelSurface.mjs +40 -0
- package/es/dashboard/PanelSurface/PanelSurface.mjs.map +1 -0
- package/es/dashboard/PanelSurface/index.d.mts +3 -0
- package/es/dashboard/PanelSurface/style.mjs +25 -0
- package/es/dashboard/PanelSurface/style.mjs.map +1 -0
- package/es/dashboard/PanelSurface/type.d.mts +17 -0
- package/es/dashboard/Section/Section.d.mts +10 -0
- package/es/dashboard/Section/Section.mjs +81 -0
- package/es/dashboard/Section/Section.mjs.map +1 -0
- package/es/dashboard/Section/index.d.mts +3 -0
- package/es/dashboard/Section/style.mjs +31 -0
- package/es/dashboard/Section/style.mjs.map +1 -0
- package/es/dashboard/Section/type.d.mts +23 -0
- package/es/dashboard/StatCard/StatCard.d.mts +2 -1
- package/es/dashboard/StatCard/StatCard.mjs +28 -91
- package/es/dashboard/StatCard/StatCard.mjs.map +1 -1
- package/es/dashboard/StatCard/type.d.mts +16 -5
- package/es/dashboard/Surface/Surface.d.mts +4 -3
- package/es/dashboard/Surface/Surface.mjs +91 -8
- package/es/dashboard/Surface/Surface.mjs.map +1 -1
- package/es/dashboard/Surface/index.d.mts +3 -2
- package/es/dashboard/Surface/link.d.mts +16 -0
- package/es/dashboard/Surface/link.mjs +40 -0
- package/es/dashboard/Surface/link.mjs.map +1 -0
- package/es/dashboard/Surface/marker.stylex.mjs +9 -0
- package/es/dashboard/Surface/marker.stylex.mjs.map +1 -0
- package/es/dashboard/Surface/style.d.mts +2 -0
- package/es/dashboard/Surface/style.mjs +155 -14
- package/es/dashboard/Surface/style.mjs.map +1 -1
- package/es/dashboard/Surface/type.d.mts +29 -1
- package/es/dashboard/TableIconActions/TableIconActions.d.mts +17 -0
- package/es/dashboard/TableIconActions/TableIconActions.mjs +39 -0
- package/es/dashboard/TableIconActions/TableIconActions.mjs.map +1 -0
- package/es/dashboard/TableIconActions/index.d.mts +3 -0
- package/es/dashboard/TableIconActions/type.d.mts +17 -0
- package/es/dashboard/TitleWithTips/TitleWithTips.d.mts +10 -0
- package/es/dashboard/TitleWithTips/TitleWithTips.mjs +28 -0
- package/es/dashboard/TitleWithTips/TitleWithTips.mjs.map +1 -0
- package/es/dashboard/TitleWithTips/index.d.mts +3 -0
- package/es/dashboard/TitleWithTips/type.d.mts +10 -0
- package/es/dashboard/index.d.mts +38 -4
- package/es/dashboard/index.mjs +17 -3
- package/es/style.css +339 -32
- package/package.json +1 -1
- package/es/dashboard/StatCard/style.mjs +0 -105
- package/es/dashboard/StatCard/style.mjs.map +0 -1
|
@@ -2,21 +2,162 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* A content card sitting on the workspace.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
5
|
+
* Backgrounds: light mode uses `colorBgContainer`. Dark mode uses the translucent
|
|
6
|
+
* `colorFillTertiary` (white 6%): on the #0d0d0d workspace it reads as about #1c1c1c, a subtle
|
|
7
|
+
* raised step. `colorFillQuaternary` (white 2%, about #111) would barely separate from the page.
|
|
8
|
+
*
|
|
9
|
+
* Borders and inner dividers (table, header and cell lines, PageSkeleton) use `colorFillSecondary`
|
|
10
|
+
* (white 10% / black 6%); hover and focus use the stronger `colorFill`. Painted over the dark card
|
|
11
|
+
* the border lands near #2f2f2f against #1c1c1c, and in light near #f0f0f0 against #ffffff.
|
|
12
|
+
*
|
|
13
|
+
* Anything that must hide content scrolled beneath it (table header cells, pinned and sticky
|
|
14
|
+
* cells) uses `--lobe-surface-bg-solid`: the same white 6% blended onto `--lobe-surface-canvas`
|
|
15
|
+
* (default `colorBgContainer`, the ConsoleShell workspace). `color-mix` in srgb with an opaque
|
|
16
|
+
* base is plain alpha compositing, so it matches the translucent card. Set
|
|
17
|
+
* `--lobe-surface-canvas` when a card sits on another page color.
|
|
18
|
+
*
|
|
19
|
+
* A Surface inside another Surface (`useSurfaceDepth() > 0`) drops its own fill so fills do not
|
|
20
|
+
* stack. Row hover backgrounds keep their own mix. Layout containers (ConsoleShell, ConsoleNav,
|
|
21
|
+
* FilterSidebar split divider, AuthLayout page canvas) keep their own tokens.
|
|
22
|
+
*
|
|
23
|
+
* Apply the card with `useSurfaceCardStyles()` / `useSurfaceCardClassName()`; plain
|
|
24
|
+
* `surfaceStyles.card` is the light look. Table rules for consumer markup live in `style.css`.
|
|
8
25
|
*/
|
|
9
|
-
const styles = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
const styles = {
|
|
27
|
+
arrow: {
|
|
28
|
+
kUk6DE: "lb1okw0bk",
|
|
29
|
+
kmkexE: "lb1edyq7o",
|
|
30
|
+
kMwMTN: "lb53gy9q lb1yoes0a",
|
|
31
|
+
keoZOQ: "lb1xmf6yo",
|
|
32
|
+
keTefX: "lbvc5jky",
|
|
33
|
+
k3aq6I: "lb1fdxmpd",
|
|
34
|
+
$$css: true
|
|
35
|
+
},
|
|
36
|
+
arrowInLink: {
|
|
37
|
+
keoZOQ: "lbdj266r",
|
|
38
|
+
$$css: true
|
|
39
|
+
},
|
|
40
|
+
arrowLink: {
|
|
41
|
+
kUk6DE: "lb1okw0bk",
|
|
42
|
+
kGNEyG: "lb6s0dn4",
|
|
43
|
+
kMwMTN: "lb1heor9g",
|
|
44
|
+
k1xSpc: "lb78zum5",
|
|
45
|
+
$$css: true
|
|
46
|
+
},
|
|
47
|
+
body: {
|
|
48
|
+
"--surface-pad-block": "lb4vqstq",
|
|
49
|
+
"--surface-pad-inline": "lbssx8jz",
|
|
50
|
+
kmVPX3: "lb1tamke2",
|
|
51
|
+
$$css: true
|
|
52
|
+
},
|
|
53
|
+
card: {
|
|
54
|
+
"--lobe-surface-bg": "lbwvmpdu",
|
|
55
|
+
"--lobe-surface-bg-solid": "lb1hc46fh",
|
|
56
|
+
kVAM5u: "lb6d5vuu",
|
|
57
|
+
kaIpWk: "lb1ndkxwp",
|
|
58
|
+
ksu8eU: "lb1y0btm7",
|
|
59
|
+
kMzoRj: "lbmkeg23",
|
|
60
|
+
kWkggS: "lb1x6hv1e",
|
|
61
|
+
kGVxlE: "lb3b5rli",
|
|
62
|
+
$$css: true
|
|
63
|
+
},
|
|
64
|
+
cardDark: {
|
|
65
|
+
"--lobe-surface-bg": "lb3bfph8",
|
|
66
|
+
"--lobe-surface-bg-solid": "lb1l8ls3s",
|
|
67
|
+
$$css: true
|
|
68
|
+
},
|
|
69
|
+
cardLinked: {
|
|
70
|
+
kVAM5u: "lb6d5vuu lb1j0btqu lb13v5du5",
|
|
71
|
+
$$css: true
|
|
72
|
+
},
|
|
73
|
+
cardNested: {
|
|
74
|
+
kWkggS: "lbjbqb8w",
|
|
75
|
+
$$css: true
|
|
76
|
+
},
|
|
77
|
+
chart: {
|
|
78
|
+
k7Eaqz: "lbeuugli",
|
|
79
|
+
$$css: true
|
|
80
|
+
},
|
|
81
|
+
clip: {
|
|
82
|
+
kVQacm: "lbb3r6kr",
|
|
83
|
+
$$css: true
|
|
84
|
+
},
|
|
85
|
+
content: {
|
|
86
|
+
k7Eaqz: "lbeuugli",
|
|
87
|
+
$$css: true
|
|
88
|
+
},
|
|
89
|
+
desc: {
|
|
90
|
+
kMwMTN: "lbc77et8",
|
|
91
|
+
kGuDYH: "lb4z9k3i",
|
|
92
|
+
k63SB2: "lbo1l8bm",
|
|
93
|
+
kLWn49: "lbfrs9s4",
|
|
94
|
+
keoZOQ: "lb1rdy4ex",
|
|
95
|
+
$$css: true
|
|
96
|
+
},
|
|
97
|
+
extra: {
|
|
98
|
+
kUk6DE: "lb1okw0bk",
|
|
99
|
+
kOIVth: "lb167g77z",
|
|
100
|
+
kGNEyG: "lb6s0dn4",
|
|
101
|
+
kZKoxP: "lb10w6t97",
|
|
102
|
+
k1xSpc: "lb78zum5",
|
|
103
|
+
$$css: true
|
|
104
|
+
},
|
|
105
|
+
header: {
|
|
106
|
+
kOIVth: "lb1v2ro7d",
|
|
107
|
+
k8WAf4: "lb1vvogim",
|
|
108
|
+
kg3NbH: "lb1hr3lfm",
|
|
109
|
+
kGNEyG: "lb1cy8zhl",
|
|
110
|
+
kL6WhQ: "lb1ak05nl",
|
|
111
|
+
kfdmCh: "lb1q0q8m5",
|
|
112
|
+
kt9PQ7: "lbso031l",
|
|
113
|
+
kB7OPa: "lb9f619",
|
|
114
|
+
k1xSpc: "lb78zum5",
|
|
115
|
+
kjj79g: "lb1qughib",
|
|
116
|
+
kAzted: "lb1wxaq2x",
|
|
117
|
+
$$css: true
|
|
118
|
+
},
|
|
119
|
+
heading: {
|
|
120
|
+
k7Eaqz: "lbeuugli",
|
|
121
|
+
$$css: true
|
|
122
|
+
},
|
|
123
|
+
headingLink: {
|
|
124
|
+
kUk6DE: "lb98rzlu",
|
|
125
|
+
kOIVth: "lb1v2ro7d",
|
|
126
|
+
kybGjl: "lb1hl2dhg",
|
|
127
|
+
kGNEyG: "lb1cy8zhl",
|
|
128
|
+
kMwMTN: "lb1heor9g lb144v4sp",
|
|
129
|
+
k1xSpc: "lb78zum5",
|
|
130
|
+
k7Eaqz: "lbeuugli",
|
|
131
|
+
$$css: true
|
|
132
|
+
},
|
|
133
|
+
loading: {
|
|
134
|
+
kGO01o: "lbwib8y2",
|
|
135
|
+
kLKAdn: "lb1iorvi4",
|
|
136
|
+
$$css: true
|
|
137
|
+
},
|
|
138
|
+
title: {
|
|
139
|
+
kVQacm: "lbb3r6kr",
|
|
140
|
+
kMwMTN: "lb66ogz0",
|
|
141
|
+
kGuDYH: "lbif65rj",
|
|
142
|
+
k63SB2: "lbk50ysn",
|
|
143
|
+
kLWn49: "lbcgk4ki",
|
|
144
|
+
k7Eaqz: "lbeuugli",
|
|
145
|
+
kg5iWk: "lblyipyv",
|
|
146
|
+
khDVqt: "lbuxw1ft",
|
|
147
|
+
$$css: true
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const surfaceClassNames = {
|
|
151
|
+
bleed: "lobe-surface-bleed",
|
|
152
|
+
root: "lobe-surface",
|
|
153
|
+
tableBleed: "lobe-surface-table-bleed"
|
|
154
|
+
};
|
|
155
|
+
const surfaceStyles = {
|
|
156
|
+
card: { className: "lbwvmpdu lb1hc46fh lb6d5vuu lb1ndkxwp lb1y0btm7 lbmkeg23 lb1x6hv1e lb3b5rli" }.className ?? "",
|
|
157
|
+
clip: { className: "lbb3r6kr" }.className ?? "",
|
|
158
|
+
tableBleed: surfaceClassNames.tableBleed
|
|
159
|
+
};
|
|
19
160
|
//#endregion
|
|
20
|
-
export { styles, surfaceStyles };
|
|
161
|
+
export { styles, surfaceClassNames, surfaceStyles };
|
|
21
162
|
|
|
22
163
|
//# sourceMappingURL=style.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/dashboard/Surface/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\n/**\n * A content card sitting on the workspace.\n *\n *
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/dashboard/Surface/style.ts"],"sourcesContent":["import * as stylex from '@stylexjs/stylex';\n\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\n\nimport { surfaceMarker } from './marker.stylex';\n\n/**\n * A content card sitting on the workspace.\n *\n * Backgrounds: light mode uses `colorBgContainer`. Dark mode uses the translucent\n * `colorFillTertiary` (white 6%): on the #0d0d0d workspace it reads as about #1c1c1c, a subtle\n * raised step. `colorFillQuaternary` (white 2%, about #111) would barely separate from the page.\n *\n * Borders and inner dividers (table, header and cell lines, PageSkeleton) use `colorFillSecondary`\n * (white 10% / black 6%); hover and focus use the stronger `colorFill`. Painted over the dark card\n * the border lands near #2f2f2f against #1c1c1c, and in light near #f0f0f0 against #ffffff.\n *\n * Anything that must hide content scrolled beneath it (table header cells, pinned and sticky\n * cells) uses `--lobe-surface-bg-solid`: the same white 6% blended onto `--lobe-surface-canvas`\n * (default `colorBgContainer`, the ConsoleShell workspace). `color-mix` in srgb with an opaque\n * base is plain alpha compositing, so it matches the translucent card. Set\n * `--lobe-surface-canvas` when a card sits on another page color.\n *\n * A Surface inside another Surface (`useSurfaceDepth() > 0`) drops its own fill so fills do not\n * stack. Row hover backgrounds keep their own mix. Layout containers (ConsoleShell, ConsoleNav,\n * FilterSidebar split divider, AuthLayout page canvas) keep their own tokens.\n *\n * Apply the card with `useSurfaceCardStyles()` / `useSurfaceCardClassName()`; plain\n * `surfaceStyles.card` is the light look. Table rules for consumer markup live in `style.css`.\n */\nexport const styles = stylex.create({\n arrow: {\n flex: 'none',\n transition: 'color 150ms ease-out, transform 150ms ease-out',\n color: {\n default: cssVar.colorTextTertiary,\n [stylex.when.ancestor(':hover', surfaceMarker)]: cssVar.colorText,\n },\n marginBlockStart: 8,\n marginInlineStart: 'auto',\n transform: {\n default: null,\n [stylex.when.ancestor(':hover', surfaceMarker)]: 'translate(1px, -1px)',\n },\n },\n arrowInLink: {\n marginBlockStart: 0,\n },\n arrowLink: {\n flex: 'none',\n alignItems: 'center',\n color: 'inherit',\n display: 'flex',\n },\n body: {\n '--surface-pad-block': '16px',\n '--surface-pad-inline': '16px',\n 'padding': 16,\n },\n card: {\n '--lobe-surface-bg': cssVar.colorBgContainer,\n '--lobe-surface-bg-solid': cssVar.colorBgContainer,\n 'borderColor': cssVar.colorFillSecondary,\n 'borderRadius': cssVar.borderRadiusLG,\n 'borderStyle': 'solid',\n 'borderWidth': 1,\n 'backgroundColor': 'var(--lobe-surface-bg)',\n 'boxShadow': 'rgb(0 0 0 / 4%) 0 1px 2px 0',\n },\n cardDark: {\n '--lobe-surface-bg': cssVar.colorFillTertiary,\n '--lobe-surface-bg-solid': `color-mix(in srgb, #fff 6%, var(--lobe-surface-canvas, ${cssVar.colorBgContainer}))`,\n },\n cardLinked: {\n borderColor: {\n 'default': cssVar.colorFillSecondary,\n ':focus-within': cssVar.colorFill,\n ':hover': cssVar.colorFill,\n },\n },\n cardNested: {\n backgroundColor: 'transparent',\n },\n chart: {\n minInlineSize: 0,\n },\n clip: {\n overflow: 'hidden',\n },\n content: {\n minInlineSize: 0,\n },\n desc: {\n color: cssVar.colorTextSecondary,\n fontSize: 13,\n fontWeight: 400,\n lineHeight: 1.45,\n marginBlockStart: -4,\n },\n /* One fixed control row (32px, the height of a small Segmented or a default ActionIcon), so a\n header with controls is exactly as tall as one without, and the controls sit centered with\n 8px clear above the divider. */\n extra: {\n flex: 'none',\n gap: 8,\n alignItems: 'center',\n blockSize: 32,\n display: 'flex',\n },\n header: {\n gap: 12,\n paddingBlock: 8,\n paddingInline: 16,\n alignItems: 'flex-start',\n borderBlockEndColor: cssVar.colorFillSecondary,\n borderBlockEndStyle: 'solid',\n borderBlockEndWidth: 1,\n boxSizing: 'border-box',\n display: 'flex',\n justifyContent: 'space-between',\n minBlockSize: 48,\n },\n heading: {\n minInlineSize: 0,\n },\n headingLink: {\n flex: '1',\n gap: 12,\n textDecoration: 'none',\n alignItems: 'flex-start',\n color: { 'default': 'inherit', ':hover': 'inherit' },\n display: 'flex',\n minInlineSize: 0,\n },\n loading: {\n paddingBlockEnd: 8,\n paddingBlockStart: 4,\n },\n title: {\n overflow: 'hidden',\n color: cssVar.colorText,\n fontSize: 14,\n fontWeight: 500,\n /* The title line is the 32px control row; extra and the arrow center on it, and a\n description adds its own line below without moving them. */\n lineHeight: '32px',\n minInlineSize: 0,\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n});\n\nexport const surfaceClassNames = {\n bleed: 'lobe-surface-bleed',\n root: 'lobe-surface',\n tableBleed: 'lobe-surface-table-bleed',\n};\n\nexport const surfaceStyles = {\n card: stylex.props(styles.card).className ?? '',\n clip: stylex.props(styles.clip).className ?? '',\n tableBleed: surfaceClassNames.tableBleed,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,MAAa,SAAS;CACpB,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,OAAO;CACT;CACA,WAAW;EACT,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,uBAAuB;EACvB,wBAAwB;EACxB,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,qBAAqB;EACrB,2BAA2B;EAC3B,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,UAAU;EACR,qBAAqB;EACrB,2BAA2B;EAC3B,OAAO;CACT;CACA,YAAY;EACV,QAAQ;EACR,OAAO;CACT;CACA,YAAY;EACV,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,OAAO;CACT;CACA,SAAS;EACP,QAAQ;EACR,OAAO;CACT;CACA,MAAM;EACJ,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,QAAQ;EACN,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,SAAS;EACP,QAAQ;EACR,OAAO;CACT;CACA,aAAa;EACX,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,SAAS;EACP,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;CACA,OAAO;EACL,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,QAAQ;EACR,OAAO;CACT;AACF;AACA,MAAa,oBAAoB;CAC/B,OAAO;CACP,MAAM;CACN,YAAY;AACd;AACA,MAAa,gBAAgB;CAC3B,MAAM,EACJ,WAAW,8EACb,EAAE,aAAa;CACf,MAAM,EACJ,WAAW,WACb,EAAE,aAAa;CACf,YAAY,kBAAkB;AAChC"}
|
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
//#region src/dashboard/Surface/type.d.ts
|
|
3
|
-
export interface
|
|
3
|
+
export interface SurfaceLinkProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
href: string;
|
|
7
|
+
rel?: string;
|
|
8
|
+
target?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Renders a link with the app's router. Defaults to a plain `<a>`. */
|
|
11
|
+
export type SurfaceRenderLink = (props: SurfaceLinkProps) => ReactNode;
|
|
12
|
+
export interface SurfaceProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
13
|
+
/** Drop body padding and widen table cells so a table sits on the card edges. */
|
|
14
|
+
bleed?: boolean;
|
|
15
|
+
/** Full-width slot under the body, for a chart that meets the card edges. */
|
|
16
|
+
chart?: ReactNode;
|
|
4
17
|
children?: ReactNode;
|
|
18
|
+
description?: ReactNode;
|
|
19
|
+
extra?: ReactNode;
|
|
20
|
+
/** Makes the heading a link to the page this card summarises. */
|
|
21
|
+
href?: string;
|
|
22
|
+
/**
|
|
23
|
+
* First load: with no children the body is a placeholder block.
|
|
24
|
+
* A refresh with children keeps them and shows a small spinner in the header.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/** Pad the body. Defaults to on for a card with a header and off for a bare card. */
|
|
28
|
+
padded?: boolean;
|
|
29
|
+
/** Overrides the link renderer from `SurfaceLinkProvider`. */
|
|
30
|
+
renderLink?: SurfaceRenderLink;
|
|
31
|
+
/** Visible heading. */
|
|
32
|
+
title?: ReactNode;
|
|
5
33
|
}
|
|
6
34
|
//#endregion
|
|
7
35
|
//# sourceMappingURL=type.d.mts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TableIconActionProps, TableIconActionsProps } from "./type.mjs";
|
|
2
|
+
//#region src/dashboard/TableIconActions/TableIconActions.d.ts
|
|
3
|
+
/** Column width for a row of `count` small filled action icons. */
|
|
4
|
+
export declare const tableActionColumnWidth: (count: number) => number;
|
|
5
|
+
/** Right-aligned row of icon actions for a table's last column. */
|
|
6
|
+
declare const TableIconActions: {
|
|
7
|
+
({ children }: TableIconActionsProps): import("react").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
/** One row action: a small filled icon button whose label is its name and tooltip. */
|
|
11
|
+
export declare const TableIconAction: {
|
|
12
|
+
({ danger, disabled, icon, label, loading, onClick }: TableIconActionProps): import("react").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { TableIconActions as default };
|
|
17
|
+
//# sourceMappingURL=TableIconActions.d.mts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
3
|
+
import ActionIcon from "../../ActionIcon/ActionIcon.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/dashboard/TableIconActions/TableIconActions.tsx
|
|
6
|
+
/** `ActionIcon` `size="small"` is 24px. */
|
|
7
|
+
const ACTION_ICON_SIZE = 24;
|
|
8
|
+
const ACTION_ICON_GAP = 4;
|
|
9
|
+
/** Table cell horizontal padding, so the icons are not clipped by the column. */
|
|
10
|
+
const ACTION_CELL_PADDING = 32;
|
|
11
|
+
/** Column width for a row of `count` small filled action icons. */
|
|
12
|
+
const tableActionColumnWidth = (count) => count * ACTION_ICON_SIZE + Math.max(0, count - 1) * ACTION_ICON_GAP + ACTION_CELL_PADDING;
|
|
13
|
+
/** Right-aligned row of icon actions for a table's last column. */
|
|
14
|
+
const TableIconActions = ({ children }) => /* @__PURE__ */ jsx(FlexBasic_default, {
|
|
15
|
+
horizontal: true,
|
|
16
|
+
align: "center",
|
|
17
|
+
gap: ACTION_ICON_GAP,
|
|
18
|
+
justify: "flex-end",
|
|
19
|
+
width: "100%",
|
|
20
|
+
children
|
|
21
|
+
});
|
|
22
|
+
TableIconActions.displayName = "TableIconActions";
|
|
23
|
+
/** One row action: a small filled icon button whose label is its name and tooltip. */
|
|
24
|
+
const TableIconAction = ({ danger, disabled, icon, label, loading, onClick }) => /* @__PURE__ */ jsx(ActionIcon, {
|
|
25
|
+
"aria-label": label,
|
|
26
|
+
danger,
|
|
27
|
+
disabled,
|
|
28
|
+
icon,
|
|
29
|
+
loading,
|
|
30
|
+
size: "small",
|
|
31
|
+
title: label,
|
|
32
|
+
variant: "filled",
|
|
33
|
+
onClick
|
|
34
|
+
});
|
|
35
|
+
TableIconAction.displayName = "TableIconAction";
|
|
36
|
+
//#endregion
|
|
37
|
+
export { TableIconAction, TableIconActions as default, tableActionColumnWidth };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=TableIconActions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableIconActions.mjs","names":["Flexbox"],"sources":["../../../src/dashboard/TableIconActions/TableIconActions.tsx"],"sourcesContent":["'use client';\n\nimport ActionIcon from '@/ActionIcon';\nimport { Flexbox } from '@/Flex';\n\nimport type { TableIconActionProps, TableIconActionsProps } from './type';\n\n/** `ActionIcon` `size=\"small\"` is 24px. */\nconst ACTION_ICON_SIZE = 24;\nconst ACTION_ICON_GAP = 4;\n/** Table cell horizontal padding, so the icons are not clipped by the column. */\nconst ACTION_CELL_PADDING = 32;\n\n/** Column width for a row of `count` small filled action icons. */\nexport const tableActionColumnWidth = (count: number) =>\n count * ACTION_ICON_SIZE + Math.max(0, count - 1) * ACTION_ICON_GAP + ACTION_CELL_PADDING;\n\n/** Right-aligned row of icon actions for a table's last column. */\nconst TableIconActions = ({ children }: TableIconActionsProps) => (\n <Flexbox horizontal align={'center'} gap={ACTION_ICON_GAP} justify={'flex-end'} width={'100%'}>\n {children}\n </Flexbox>\n);\n\nTableIconActions.displayName = 'TableIconActions';\n\n/** One row action: a small filled icon button whose label is its name and tooltip. */\nexport const TableIconAction = ({\n danger,\n disabled,\n icon,\n label,\n loading,\n onClick,\n}: TableIconActionProps) => (\n <ActionIcon\n aria-label={label}\n danger={danger}\n disabled={disabled}\n icon={icon}\n loading={loading}\n size={'small'}\n title={label}\n variant={'filled'}\n onClick={onClick}\n />\n);\n\nTableIconAction.displayName = 'TableIconAction';\n\nexport default TableIconActions;\n"],"mappings":";;;;;;AAQA,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;;AAExB,MAAM,sBAAsB;;AAG5B,MAAa,0BAA0B,UACrC,QAAQ,mBAAmB,KAAK,IAAI,GAAG,QAAQ,CAAC,IAAI,kBAAkB;;AAGxE,MAAM,oBAAoB,EAAE,eAC1B,oBAACA,mBAAD;CAAS,YAAA;CAAW,OAAO;CAAU,KAAK;CAAiB,SAAS;CAAY,OAAO;CACpF;AACM,CAAA;AAGX,iBAAiB,cAAc;;AAG/B,MAAa,mBAAmB,EAC9B,QACA,UACA,MACA,OACA,SACA,cAEA,oBAAC,YAAD;CACE,cAAY;CACJ;CACE;CACJ;CACG;CACT,MAAM;CACN,OAAO;CACP,SAAS;CACA;AACV,CAAA;AAGH,gBAAgB,cAAc"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TableIconActionProps, TableIconActionsProps } from "./type.mjs";
|
|
2
|
+
import TableIconActions, { TableIconAction, tableActionColumnWidth } from "./TableIconActions.mjs";
|
|
3
|
+
export { TableIconAction, type TableIconActionProps, type TableIconActionsProps, TableIconActions as default, tableActionColumnWidth };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
//#region src/dashboard/TableIconActions/type.d.ts
|
|
4
|
+
export interface TableIconActionsProps {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface TableIconActionProps {
|
|
8
|
+
danger?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
icon: LucideIcon;
|
|
11
|
+
/** Accessible name and tooltip. Required: the button has no visible text. */
|
|
12
|
+
label: string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=type.d.mts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TitleWithTipsProps } from "./type.mjs";
|
|
2
|
+
//#region src/dashboard/TitleWithTips/TitleWithTips.d.ts
|
|
3
|
+
/** A column or field title with an info icon that explains it on hover. */
|
|
4
|
+
declare const TitleWithTips: {
|
|
5
|
+
({ className, tips, title }: TitleWithTipsProps): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { TitleWithTips as default };
|
|
10
|
+
//# sourceMappingURL=TitleWithTips.d.mts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cssVar } from "../../styles/stylex/cssVar.stylex.mjs";
|
|
3
|
+
import Icon from "../../Icon/Icon.mjs";
|
|
4
|
+
import FlexBasic_default from "../../Flex/FlexBasic.mjs";
|
|
5
|
+
import { Tooltip } from "../../Tooltip/Tooltip.mjs";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { InfoIcon } from "lucide-react";
|
|
8
|
+
//#region src/dashboard/TitleWithTips/TitleWithTips.tsx
|
|
9
|
+
/** A column or field title with an info icon that explains it on hover. */
|
|
10
|
+
const TitleWithTips = ({ className, tips, title }) => /* @__PURE__ */ jsxs(FlexBasic_default, {
|
|
11
|
+
horizontal: true,
|
|
12
|
+
align: "center",
|
|
13
|
+
className,
|
|
14
|
+
gap: 4,
|
|
15
|
+
children: [/* @__PURE__ */ jsx("span", { children: title }), /* @__PURE__ */ jsx(Tooltip, {
|
|
16
|
+
title: tips,
|
|
17
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
18
|
+
color: cssVar.colorTextTertiary,
|
|
19
|
+
icon: InfoIcon,
|
|
20
|
+
style: { cursor: "help" }
|
|
21
|
+
})
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
TitleWithTips.displayName = "TitleWithTips";
|
|
25
|
+
//#endregion
|
|
26
|
+
export { TitleWithTips as default };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=TitleWithTips.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleWithTips.mjs","names":["Flexbox"],"sources":["../../../src/dashboard/TitleWithTips/TitleWithTips.tsx"],"sourcesContent":["'use client';\n\nimport { InfoIcon } from 'lucide-react';\n\nimport { Flexbox } from '@/Flex';\nimport Icon from '@/Icon';\nimport { cssVar } from '@/styles/stylex/cssVar.stylex';\nimport Tooltip from '@/Tooltip';\n\nimport type { TitleWithTipsProps } from './type';\n\n/** A column or field title with an info icon that explains it on hover. */\nconst TitleWithTips = ({ className, tips, title }: TitleWithTipsProps) => (\n <Flexbox horizontal align={'center'} className={className} gap={4}>\n <span>{title}</span>\n <Tooltip title={tips}>\n <Icon color={cssVar.colorTextTertiary} icon={InfoIcon} style={{ cursor: 'help' }} />\n </Tooltip>\n </Flexbox>\n);\n\nTitleWithTips.displayName = 'TitleWithTips';\n\nexport default TitleWithTips;\n"],"mappings":";;;;;;;;;AAYA,MAAM,iBAAiB,EAAE,WAAW,MAAM,YACxC,qBAACA,mBAAD;CAAS,YAAA;CAAW,OAAO;CAAqB;CAAW,KAAK;CAAhE,UAAA,CACE,oBAAC,QAAD,EAAA,UAAO,MAAY,CAAA,GACnB,oBAAC,SAAD;EAAS,OAAO;EACd,UAAA,oBAAC,MAAD;GAAM,OAAO,OAAO;GAAmB,MAAM;GAAU,OAAO,EAAE,QAAQ,OAAO;EAAI,CAAA;CAC5E,CAAA,CACF;;AAGX,cAAc,cAAc"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/dashboard/TitleWithTips/type.d.ts
|
|
3
|
+
export interface TitleWithTipsProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Tooltip shown on the info icon. */
|
|
6
|
+
tips: ReactNode;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//# sourceMappingURL=type.d.mts.map
|
package/es/dashboard/index.d.mts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { AuthLayoutProps } from "./AuthLayout/type.mjs";
|
|
1
|
+
import { AuthLayoutAsideProps, AuthLayoutBackground, AuthLayoutProps, AuthLayoutVariant } from "./AuthLayout/type.mjs";
|
|
2
|
+
import AuthLayoutAside from "./AuthLayout/Aside.mjs";
|
|
2
3
|
import AuthLayout from "./AuthLayout/AuthLayout.mjs";
|
|
3
4
|
import "./AuthLayout/index.mjs";
|
|
5
|
+
import { AuthLocaleOption, AuthLocaleSwitchProps, AuthThemeMode, AuthThemeSwitchProps } from "./AuthTools/type.mjs";
|
|
6
|
+
import AuthLocaleSwitch from "./AuthTools/AuthLocaleSwitch.mjs";
|
|
7
|
+
import AuthThemeSwitch from "./AuthTools/AuthThemeSwitch.mjs";
|
|
8
|
+
import "./AuthTools/index.mjs";
|
|
4
9
|
import { BreadcrumbItem, BreadcrumbProps } from "./Breadcrumb/type.mjs";
|
|
5
10
|
import Breadcrumb from "./Breadcrumb/Breadcrumb.mjs";
|
|
6
11
|
import "./Breadcrumb/index.mjs";
|
|
7
|
-
import {
|
|
12
|
+
import { ChartGridProps } from "./ChartGrid/type.mjs";
|
|
13
|
+
import ChartGrid from "./ChartGrid/ChartGrid.mjs";
|
|
14
|
+
import "./ChartGrid/index.mjs";
|
|
15
|
+
import { ConsoleNavGroup, ConsoleNavItem, ConsoleNavProps, ConsoleNavSkeletonProps } from "./ConsoleNav/type.mjs";
|
|
8
16
|
import { resolveActiveHref } from "./ConsoleNav/active.mjs";
|
|
9
17
|
import ConsoleNav from "./ConsoleNav/ConsoleNav.mjs";
|
|
18
|
+
import ConsoleNavSkeleton, { ConsoleFooterSkeleton } from "./ConsoleNav/Skeleton.mjs";
|
|
10
19
|
import "./ConsoleNav/index.mjs";
|
|
11
20
|
import { ConsoleBrandProps, ConsoleShellProps, ConsoleShellState } from "./ConsoleShell/type.mjs";
|
|
12
21
|
import ConsoleBrand from "./ConsoleShell/ConsoleBrand.mjs";
|
|
@@ -17,6 +26,16 @@ import { useInFilterSplit } from "./FilterSidebar/context.mjs";
|
|
|
17
26
|
import { FilterOptionProps, FilterRowProps, FilterSidebarProps } from "./FilterSidebar/type.mjs";
|
|
18
27
|
import FilterSidebar, { FilterOption, FilterRow } from "./FilterSidebar/FilterSidebar.mjs";
|
|
19
28
|
import "./FilterSidebar/index.mjs";
|
|
29
|
+
import { FilterStripItem, FilterStripProps } from "./FilterStrip/type.mjs";
|
|
30
|
+
import FilterStrip, { formatInteger } from "./FilterStrip/FilterStrip.mjs";
|
|
31
|
+
import "./FilterStrip/index.mjs";
|
|
32
|
+
import { LabelWithKeyProps } from "./LabelWithKey/type.mjs";
|
|
33
|
+
import LabelWithKey from "./LabelWithKey/LabelWithKey.mjs";
|
|
34
|
+
import "./LabelWithKey/index.mjs";
|
|
35
|
+
import { SurfaceLinkProps, SurfaceProps, SurfaceRenderLink } from "./Surface/type.mjs";
|
|
36
|
+
import { MetricItem, MetricStripProps } from "./MetricStrip/type.mjs";
|
|
37
|
+
import MetricStrip from "./MetricStrip/MetricStrip.mjs";
|
|
38
|
+
import "./MetricStrip/index.mjs";
|
|
20
39
|
import { PageHeaderProps } from "./PageHeader/type.mjs";
|
|
21
40
|
import PageHeader from "./PageHeader/PageHeader.mjs";
|
|
22
41
|
import "./PageHeader/index.mjs";
|
|
@@ -25,13 +44,28 @@ import PageLoading, { LoadingAnnouncer, PageHeaderSkeleton, StatCardSkeleton, Ta
|
|
|
25
44
|
import { PageTab, PageTabsProps } from "./PageTabs/type.mjs";
|
|
26
45
|
import PageTabs from "./PageTabs/PageTabs.mjs";
|
|
27
46
|
import "./PageTabs/index.mjs";
|
|
47
|
+
import { PageToolbarProps } from "./PageToolbar/type.mjs";
|
|
48
|
+
import PageToolbar from "./PageToolbar/PageToolbar.mjs";
|
|
49
|
+
import "./PageToolbar/index.mjs";
|
|
50
|
+
import { PanelSurfaceProps } from "./PanelSurface/type.mjs";
|
|
51
|
+
import PanelSurface from "./PanelSurface/PanelSurface.mjs";
|
|
52
|
+
import "./PanelSurface/index.mjs";
|
|
28
53
|
import { RouteProgressProps } from "./RouteProgress/type.mjs";
|
|
29
54
|
import RouteProgress from "./RouteProgress/RouteProgress.mjs";
|
|
55
|
+
import { SectionProps } from "./Section/type.mjs";
|
|
56
|
+
import Section from "./Section/Section.mjs";
|
|
57
|
+
import "./Section/index.mjs";
|
|
30
58
|
import { StatCardProps, StatDirection } from "./StatCard/type.mjs";
|
|
31
59
|
import StatCard from "./StatCard/StatCard.mjs";
|
|
32
60
|
import "./StatCard/index.mjs";
|
|
61
|
+
import { SurfaceLinkProvider, useSurfaceCardClassName, useSurfaceDepth, useSurfaceLink } from "./Surface/link.mjs";
|
|
33
62
|
import { surfaceStyles } from "./Surface/style.mjs";
|
|
34
|
-
import { SurfaceProps } from "./Surface/type.mjs";
|
|
35
63
|
import Surface from "./Surface/Surface.mjs";
|
|
36
64
|
import "./Surface/index.mjs";
|
|
37
|
-
|
|
65
|
+
import { TableIconActionProps, TableIconActionsProps } from "./TableIconActions/type.mjs";
|
|
66
|
+
import TableIconActions, { TableIconAction, tableActionColumnWidth } from "./TableIconActions/TableIconActions.mjs";
|
|
67
|
+
import "./TableIconActions/index.mjs";
|
|
68
|
+
import { TitleWithTipsProps } from "./TitleWithTips/type.mjs";
|
|
69
|
+
import TitleWithTips from "./TitleWithTips/TitleWithTips.mjs";
|
|
70
|
+
import "./TitleWithTips/index.mjs";
|
|
71
|
+
export { AuthLayout, AuthLayoutAside, type AuthLayoutAsideProps, type AuthLayoutBackground, type AuthLayoutProps, type AuthLayoutVariant, type AuthLocaleOption, AuthLocaleSwitch, type AuthLocaleSwitchProps, type AuthThemeMode, AuthThemeSwitch, type AuthThemeSwitchProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, ChartGrid, type ChartGridProps, ConsoleBrand, type ConsoleBrandProps, ConsoleFooterSkeleton, ConsoleNav, type ConsoleNavGroup, type ConsoleNavItem, type ConsoleNavProps, ConsoleNavSkeleton, type ConsoleNavSkeletonProps, ConsoleShell, type ConsoleShellProps, type ConsoleShellState, FilterOption, type FilterOptionProps, FilterRow, type FilterRowProps, FilterSidebar, type FilterSidebarProps, FilterStrip, type FilterStripItem, type FilterStripProps, LabelWithKey, type LabelWithKeyProps, LoadingAnnouncer, type MetricItem, MetricStrip, type MetricStripProps, PageHeader, type PageHeaderProps, PageHeaderSkeleton, PageLoading, type PageLoadingProps, type PageTab, PageTabs, type PageTabsProps, PageToolbar, type PageToolbarProps, PanelSurface, type PanelSurfaceProps, RouteProgress, type RouteProgressProps, Section, type SectionProps, StatCard, type StatCardProps, StatCardSkeleton, type StatDirection, Surface, type SurfaceLinkProps, SurfaceLinkProvider, type SurfaceProps, type SurfaceRenderLink, TableIconAction, type TableIconActionProps, TableIconActions, type TableIconActionsProps, TableSkeleton, TitleWithTips, type TitleWithTipsProps, formatInteger, resolveActiveHref, surfaceStyles, tableActionColumnWidth, useConsoleShell, useInFilterSplit, useSurfaceCardClassName, useSurfaceDepth, useSurfaceLink };
|
package/es/dashboard/index.mjs
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
+
import AuthLayoutAside from "./AuthLayout/Aside.mjs";
|
|
1
2
|
import { surfaceStyles } from "./Surface/style.mjs";
|
|
3
|
+
import { SurfaceLinkProvider, useSurfaceCardClassName, useSurfaceDepth, useSurfaceLink } from "./Surface/link.mjs";
|
|
2
4
|
import AuthLayout from "./AuthLayout/AuthLayout.mjs";
|
|
5
|
+
import AuthLocaleSwitch from "./AuthTools/AuthLocaleSwitch.mjs";
|
|
6
|
+
import AuthThemeSwitch from "./AuthTools/AuthThemeSwitch.mjs";
|
|
3
7
|
import Breadcrumb from "./Breadcrumb/Breadcrumb.mjs";
|
|
8
|
+
import ChartGrid from "./ChartGrid/ChartGrid.mjs";
|
|
4
9
|
import { resolveActiveHref } from "./ConsoleNav/active.mjs";
|
|
5
10
|
import { useConsoleShell } from "./ConsoleShell/context.mjs";
|
|
6
11
|
import ConsoleNav from "./ConsoleNav/ConsoleNav.mjs";
|
|
12
|
+
import ConsoleNavSkeleton, { ConsoleFooterSkeleton } from "./ConsoleNav/Skeleton.mjs";
|
|
7
13
|
import ConsoleBrand from "./ConsoleShell/ConsoleBrand.mjs";
|
|
14
|
+
import PageLoading, { LoadingAnnouncer, PageHeaderSkeleton, StatCardSkeleton, TableSkeleton } from "./PageSkeleton/PageSkeleton.mjs";
|
|
8
15
|
import ConsoleShell from "./ConsoleShell/ConsoleShell.mjs";
|
|
9
16
|
import { useInFilterSplit } from "./FilterSidebar/context.mjs";
|
|
10
17
|
import FilterSidebar, { FilterOption, FilterRow } from "./FilterSidebar/FilterSidebar.mjs";
|
|
18
|
+
import Surface from "./Surface/Surface.mjs";
|
|
19
|
+
import FilterStrip, { formatInteger } from "./FilterStrip/FilterStrip.mjs";
|
|
20
|
+
import LabelWithKey from "./LabelWithKey/LabelWithKey.mjs";
|
|
21
|
+
import MetricStrip from "./MetricStrip/MetricStrip.mjs";
|
|
11
22
|
import PageHeader from "./PageHeader/PageHeader.mjs";
|
|
12
|
-
import PageLoading, { LoadingAnnouncer, PageHeaderSkeleton, StatCardSkeleton, TableSkeleton } from "./PageSkeleton/PageSkeleton.mjs";
|
|
13
23
|
import PageTabs from "./PageTabs/PageTabs.mjs";
|
|
24
|
+
import PageToolbar from "./PageToolbar/PageToolbar.mjs";
|
|
25
|
+
import PanelSurface from "./PanelSurface/PanelSurface.mjs";
|
|
14
26
|
import RouteProgress from "./RouteProgress/RouteProgress.mjs";
|
|
27
|
+
import Section from "./Section/Section.mjs";
|
|
15
28
|
import StatCard from "./StatCard/StatCard.mjs";
|
|
16
|
-
import
|
|
17
|
-
|
|
29
|
+
import TableIconActions, { TableIconAction, tableActionColumnWidth } from "./TableIconActions/TableIconActions.mjs";
|
|
30
|
+
import TitleWithTips from "./TitleWithTips/TitleWithTips.mjs";
|
|
31
|
+
export { AuthLayout, AuthLayoutAside, AuthLocaleSwitch, AuthThemeSwitch, Breadcrumb, ChartGrid, ConsoleBrand, ConsoleFooterSkeleton, ConsoleNav, ConsoleNavSkeleton, ConsoleShell, FilterOption, FilterRow, FilterSidebar, FilterStrip, LabelWithKey, LoadingAnnouncer, MetricStrip, PageHeader, PageHeaderSkeleton, PageLoading, PageTabs, PageToolbar, PanelSurface, RouteProgress, Section, StatCard, StatCardSkeleton, Surface, SurfaceLinkProvider, TableIconAction, TableIconActions, TableSkeleton, TitleWithTips, formatInteger, resolveActiveHref, surfaceStyles, tableActionColumnWidth, useConsoleShell, useInFilterSplit, useSurfaceCardClassName, useSurfaceDepth, useSurfaceLink };
|