@godxjp/ui 5.0.2 → 6.0.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 +101 -142
- package/dist/app/index.d.ts +140 -0
- package/dist/app/index.js +38 -0
- package/dist/app.prop-IobwLwaM.d.ts +90 -0
- package/dist/checkbox-NkFkqsQ8.d.ts +13 -0
- package/dist/chunk-2XW7J3EI.js +226 -0
- package/dist/chunk-3F2AKYRD.js +416 -0
- package/dist/chunk-3KPEZ5CF.js +37 -0
- package/dist/chunk-3UGU5TYP.js +89 -0
- package/dist/chunk-6RA3KSVK.js +588 -0
- package/dist/chunk-7NZFVD24.js +122 -0
- package/dist/chunk-7PWBC4BY.js +25 -0
- package/dist/chunk-7S7MYFXE.js +61 -0
- package/dist/chunk-7WRZG2IG.js +71 -0
- package/dist/chunk-B775Y6BE.js +1 -0
- package/dist/chunk-BHV2FUOA.js +111 -0
- package/dist/chunk-BI3HERR7.js +70 -0
- package/dist/chunk-BPSKQUL2.js +68 -0
- package/dist/chunk-CDWPQ5RP.js +187 -0
- package/dist/chunk-CP2LET6N.js +244 -0
- package/dist/chunk-CQBADMFG.js +20 -0
- package/dist/chunk-CRERCLIZ.js +33 -0
- package/dist/chunk-DU6ZYZRP.js +238 -0
- package/dist/chunk-DY5C44UP.js +55 -0
- package/dist/chunk-E4HJNQ62.js +117 -0
- package/dist/chunk-E76QIYSY.js +93 -0
- package/dist/chunk-F7PG4OEV.js +37 -0
- package/dist/chunk-GDSVW62T.js +171 -0
- package/dist/chunk-H2FHJOLU.js +178 -0
- package/dist/chunk-HJEBRCXL.js +55 -0
- package/dist/chunk-ICM6XBST.js +16 -0
- package/dist/chunk-IK7I3ABN.js +88 -0
- package/dist/chunk-L6J44O74.js +144 -0
- package/dist/chunk-LDSLS6HE.js +1 -0
- package/dist/chunk-LVNUHUEZ.js +191 -0
- package/dist/chunk-M64MVRLS.js +92 -0
- package/dist/chunk-NGQW3KEM.js +402 -0
- package/dist/chunk-NZ4FOC5N.js +559 -0
- package/dist/chunk-PIIRNAXA.js +26 -0
- package/dist/chunk-S66TJXJU.js +33 -0
- package/dist/chunk-SMLKNECP.js +133 -0
- package/dist/chunk-TAHBM3F2.js +66 -0
- package/dist/chunk-TO33OY4L.js +150 -0
- package/dist/chunk-TO7URV7U.js +51 -0
- package/dist/chunk-TOO5AEKL.js +81 -0
- package/dist/chunk-U3GHAOIJ.js +299 -0
- package/dist/chunk-U7N2A7A3.js +9 -0
- package/dist/chunk-UX634MYF.js +123 -0
- package/dist/chunk-V6UWJKZF.js +28 -0
- package/dist/chunk-VOHTRR5X.js +28 -0
- package/dist/chunk-WRFKVUPW.js +332 -0
- package/dist/chunk-WXW43RK5.js +24 -0
- package/dist/chunk-XG7XDYIM.js +60 -0
- package/dist/chunk-YFCQKO3B.js +842 -0
- package/dist/chunk-ZDWXGWLY.js +73 -0
- package/dist/chunk-ZLK5SPT6.js +11 -0
- package/dist/chunk-ZS6DTAM2.js +31 -0
- package/dist/chunk-ZT5UEUBO.js +1 -0
- package/dist/components/admin/index.d.ts +80 -0
- package/dist/components/admin/index.js +38 -0
- package/dist/components/data-display/badge.d.ts +12 -0
- package/dist/components/data-display/badge.js +3 -0
- package/dist/components/data-display/card.d.ts +87 -0
- package/dist/components/data-display/card.js +2 -0
- package/dist/components/data-display/index.d.ts +72 -0
- package/dist/components/data-display/index.js +89 -0
- package/dist/components/data-display/popover.d.ts +13 -0
- package/dist/components/data-display/popover.js +2 -0
- package/dist/components/data-display/scroll-area.d.ts +7 -0
- package/dist/components/data-display/scroll-area.js +2 -0
- package/dist/components/data-display/table.d.ts +10 -0
- package/dist/components/data-display/table.js +3 -0
- package/dist/components/data-entry/autocomplete.d.ts +16 -0
- package/dist/components/data-entry/autocomplete.js +8 -0
- package/dist/components/data-entry/calendar.d.ts +16 -0
- package/dist/components/data-entry/calendar.js +4 -0
- package/dist/components/data-entry/cascader.d.ts +32 -0
- package/dist/components/data-entry/cascader.js +13 -0
- package/dist/components/data-entry/checkbox.d.ts +13 -0
- package/dist/components/data-entry/checkbox.js +4 -0
- package/dist/components/data-entry/color-picker.d.ts +16 -0
- package/dist/components/data-entry/color-picker.js +6 -0
- package/dist/components/data-entry/command.d.ts +69 -0
- package/dist/components/data-entry/command.js +3 -0
- package/dist/components/data-entry/date-picker.d.ts +16 -0
- package/dist/components/data-entry/date-picker.js +8 -0
- package/dist/components/data-entry/date-range-picker.d.ts +16 -0
- package/dist/components/data-entry/date-range-picker.js +8 -0
- package/dist/components/data-entry/index.d.ts +53 -0
- package/dist/components/data-entry/index.js +152 -0
- package/dist/components/data-entry/input.d.ts +6 -0
- package/dist/components/data-entry/input.js +2 -0
- package/dist/components/data-entry/label.d.ts +8 -0
- package/dist/components/data-entry/label.js +2 -0
- package/dist/components/data-entry/radio.d.ts +24 -0
- package/dist/components/data-entry/radio.js +4 -0
- package/dist/components/data-entry/select.d.ts +18 -0
- package/dist/components/data-entry/select.js +3 -0
- package/dist/components/data-entry/slider.d.ts +16 -0
- package/dist/components/data-entry/slider.js +2 -0
- package/dist/components/data-entry/switch.d.ts +17 -0
- package/dist/components/data-entry/switch.js +2 -0
- package/dist/components/data-entry/textarea.d.ts +6 -0
- package/dist/components/data-entry/textarea.js +3 -0
- package/dist/components/data-entry/time-picker.d.ts +16 -0
- package/dist/components/data-entry/time-picker.js +7 -0
- package/dist/components/data-entry/transfer.d.ts +17 -0
- package/dist/components/data-entry/transfer.js +11 -0
- package/dist/components/data-entry/tree-select.d.ts +26 -0
- package/dist/components/data-entry/tree-select.js +13 -0
- package/dist/components/data-entry/upload.d.ts +42 -0
- package/dist/components/data-entry/upload.js +11 -0
- package/dist/components/feedback/alert.d.ts +60 -0
- package/dist/components/feedback/alert.js +7 -0
- package/dist/components/feedback/dialog.d.ts +64 -0
- package/dist/components/feedback/dialog.js +7 -0
- package/dist/components/feedback/index.d.ts +16 -0
- package/dist/components/feedback/index.js +14 -0
- package/dist/components/feedback/sheet.d.ts +24 -0
- package/dist/components/feedback/sheet.js +2 -0
- package/dist/components/feedback/sonner.d.ts +6 -0
- package/dist/components/feedback/sonner.js +1 -0
- package/dist/components/general/button.d.ts +20 -0
- package/dist/components/general/button.js +2 -0
- package/dist/components/general/index.d.ts +6 -0
- package/dist/components/general/index.js +2 -0
- package/dist/components/layout/index.d.ts +71 -0
- package/dist/components/layout/index.js +5 -0
- package/dist/components/navigation/dropdown-menu.d.ts +28 -0
- package/dist/components/navigation/dropdown-menu.js +2 -0
- package/dist/components/navigation/index.d.ts +32 -0
- package/dist/components/navigation/index.js +12 -0
- package/dist/components/navigation/pagination.d.ts +11 -0
- package/dist/components/navigation/pagination.js +7 -0
- package/dist/components/navigation/steps.d.ts +12 -0
- package/dist/components/navigation/steps.js +3 -0
- package/dist/components/navigation/tabs-items.d.ts +12 -0
- package/dist/components/navigation/tabs-items.js +3 -0
- package/dist/components/navigation/tabs.d.ts +12 -0
- package/dist/components/navigation/tabs.js +2 -0
- package/dist/components/query/index.d.ts +43 -0
- package/dist/components/query/index.js +8 -0
- package/dist/components/ui/index.d.ts +57 -0
- package/dist/components/ui/index.js +37 -0
- package/dist/content.prop-D1Dd3TAc.d.ts +31 -0
- package/dist/data-display.prop-DNTAzmDy.d.ts +58 -0
- package/dist/data-entry.prop-BEGA1lTq.d.ts +323 -0
- package/dist/data-table-D1u_rKLK.d.ts +83 -0
- package/dist/data.prop-BVvfKC_g.d.ts +41 -0
- package/dist/feedback.prop-BmxUlpAW.d.ts +64 -0
- package/dist/filter-bar-B7OGFO9S.d.ts +10 -0
- package/dist/form/index.d.ts +21 -0
- package/dist/form/index.js +4 -0
- package/dist/form.prop-BHgpuFFm.d.ts +41 -0
- package/dist/format-date-ByyZoqI5.d.ts +51 -0
- package/dist/general.prop-D7brMPNL.d.ts +16 -0
- package/dist/i18n/index.d.ts +217 -0
- package/dist/i18n/index.js +2 -0
- package/dist/index.d.ts +46 -26
- package/dist/index.js +39 -13062
- package/dist/inline-C5u6ptJV.d.ts +10 -0
- package/dist/interaction.prop-Cdn7wOtq.d.ts +25 -0
- package/dist/layout.prop-4TCNvyQZ.d.ts +20 -0
- package/dist/layout.prop-C795F0qg.d.ts +112 -0
- package/dist/lib/datetime/index.d.ts +31 -0
- package/dist/lib/datetime/index.js +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +1 -0
- package/dist/navigation.prop-DpZqcXey.d.ts +78 -0
- package/dist/navigation.prop-DxBiClEH.d.ts +20 -0
- package/dist/props/components/index.d.ts +27 -0
- package/dist/props/components/index.js +1 -0
- package/dist/props/index.d.ts +28 -0
- package/dist/props/index.js +3 -0
- package/dist/props/registry.d.ts +649 -0
- package/dist/props/registry.js +1 -0
- package/dist/props/vocabulary/index.d.ts +7 -0
- package/dist/props/vocabulary/index.js +1 -0
- package/dist/query.prop-hIPrk2zI.d.ts +71 -0
- package/dist/search-input-uP01rY1L.d.ts +22 -0
- package/dist/shared.prop-BNRJc9K0.d.ts +45 -0
- package/dist/styles/alert-layout.css +191 -0
- package/dist/styles/badge-layout.css +22 -0
- package/dist/styles/card-layout.css +373 -0
- package/dist/styles/control.css +504 -0
- package/dist/styles/data-display-layout.css +246 -0
- package/dist/styles/density.css +43 -0
- package/dist/styles/dialog-layout.css +84 -0
- package/dist/styles/index.css +105 -0
- package/dist/styles/layout.css +479 -0
- package/dist/styles/shell-layout.css +604 -0
- package/dist/styles/table-layout.css +109 -0
- package/dist/theme/example.service.css +37 -0
- package/dist/tokens/base.css +13 -0
- package/dist/tokens/foundation.css +151 -0
- package/dist/tokens/primitives/badge.css +13 -0
- package/dist/tokens/primitives/card.css +29 -0
- package/dist/tokens/primitives/control.css +55 -0
- package/dist/tokens/primitives/feedback.css +17 -0
- package/dist/tokens/primitives/layout.css +20 -0
- package/dist/tokens/primitives/navigation.css +13 -0
- package/dist/tokens/primitives/table.css +10 -0
- package/dist/types-mvzYGrma.d.ts +37 -0
- package/dist/use-toast-Dol5bdY3.d.ts +34 -0
- package/package.json +279 -117
- package/scripts/ui-audit.mjs +179 -0
- package/BRAND.md +0 -296
- package/CHANGELOG.md +0 -668
- package/config/eslint.js +0 -54
- package/config/prettier.cjs +0 -20
- package/config/tsconfig.base.json +0 -22
- package/config/vitest.base.ts +0 -26
- package/dist/MiniMonth-YAmPGEpC.d.ts +0 -143
- package/dist/Table.types-BbsxoIYE.d.ts +0 -352
- package/dist/color-DO0qqUAb.d.ts +0 -38
- package/dist/components/composites.d.ts +0 -963
- package/dist/components/composites.js +0 -7343
- package/dist/components/composites.js.map +0 -1
- package/dist/components/primitives.d.ts +0 -2744
- package/dist/components/primitives.js +0 -7356
- package/dist/components/primitives.js.map +0 -1
- package/dist/components/shell.d.ts +0 -182
- package/dist/components/shell.js +0 -774
- package/dist/components/shell.js.map +0 -1
- package/dist/hooks.d.ts +0 -100
- package/dist/hooks.js +0 -558
- package/dist/hooks.js.map +0 -1
- package/dist/i18n.d.ts +0 -61
- package/dist/i18n.js +0 -860
- package/dist/i18n.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/padding-DY0JV5Ja.d.ts +0 -16
- package/dist/preferences.d.ts +0 -132
- package/dist/preferences.js +0 -262
- package/dist/preferences.js.map +0 -1
- package/dist/props.d.ts +0 -86
- package/dist/props.js +0 -16
- package/dist/props.js.map +0 -1
- package/dist/size-CQwNvOWd.d.ts +0 -19
- package/dist/types-LTj-2bl-.d.ts +0 -30
- package/dist/useTableViews-D5NIAJ7h.d.ts +0 -154
- package/src/tokens/tailwind.css +0 -158
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* APP SHELL — canonical chrome layout for admin surfaces.
|
|
3
|
+
* Slot-based composition: <AppShell sidebar={<Sidebar />} topbar={<Topbar />}>.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.app-root {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-areas:
|
|
10
|
+
"sidebar topbar"
|
|
11
|
+
"sidebar main"
|
|
12
|
+
"sidebar footer";
|
|
13
|
+
grid-template-columns: 16rem minmax(0, 1fr);
|
|
14
|
+
grid-template-rows: 3.25rem minmax(0, 1fr) auto;
|
|
15
|
+
height: 100vh;
|
|
16
|
+
background:
|
|
17
|
+
linear-gradient(180deg, hsl(var(--primary) / 0.035), transparent 14rem),
|
|
18
|
+
hsl(var(--background));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.app-root[data-collapsed="true"] {
|
|
22
|
+
grid-template-columns: 4rem minmax(0, 1fr);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.app-sidebar {
|
|
26
|
+
grid-area: sidebar;
|
|
27
|
+
display: flex;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
border-right: 1px solid hsl(var(--border));
|
|
32
|
+
background: hsl(var(--card));
|
|
33
|
+
color: hsl(var(--foreground));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.app-topbar {
|
|
37
|
+
grid-area: topbar;
|
|
38
|
+
display: flex;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--space-3);
|
|
42
|
+
padding-inline: var(--space-4);
|
|
43
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
44
|
+
background: hsl(var(--background) / 0.92);
|
|
45
|
+
backdrop-filter: blur(12px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.app-main {
|
|
49
|
+
grid-area: main;
|
|
50
|
+
min-width: 0;
|
|
51
|
+
overflow: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.app-footer {
|
|
55
|
+
grid-area: footer;
|
|
56
|
+
border-top: 1px solid hsl(var(--border));
|
|
57
|
+
background: hsl(var(--background));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.app-main .ui-page-container {
|
|
61
|
+
max-width: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.app-topbar-rail {
|
|
65
|
+
display: flex;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
flex: 1;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: var(--space-3);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.app-topbar-left,
|
|
73
|
+
.app-topbar-right {
|
|
74
|
+
display: flex;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: var(--space-2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.app-topbar-spacer {
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.app-breadcrumb {
|
|
85
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
86
|
+
padding: var(--space-2) var(--space-4);
|
|
87
|
+
color: hsl(var(--muted-foreground));
|
|
88
|
+
font-size: var(--font-size-sm);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sb-root {
|
|
92
|
+
display: contents;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sb-product,
|
|
96
|
+
.sb-brand {
|
|
97
|
+
display: flex;
|
|
98
|
+
min-height: 3.25rem;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: var(--space-2);
|
|
101
|
+
padding-inline: var(--space-4);
|
|
102
|
+
border: 0;
|
|
103
|
+
border-bottom: 1px solid hsl(var(--border));
|
|
104
|
+
background: transparent;
|
|
105
|
+
color: inherit;
|
|
106
|
+
font-family: inherit;
|
|
107
|
+
text-align: left;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sb-product {
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.sb-product:hover {
|
|
115
|
+
background: hsl(var(--accent));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.sb-logo-mark {
|
|
119
|
+
display: grid;
|
|
120
|
+
width: 1.75rem;
|
|
121
|
+
height: 1.75rem;
|
|
122
|
+
flex: 0 0 auto;
|
|
123
|
+
place-items: center;
|
|
124
|
+
border-radius: var(--radius);
|
|
125
|
+
color: white;
|
|
126
|
+
font-size: 0.75rem;
|
|
127
|
+
font-weight: 700;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sb-product-meta {
|
|
131
|
+
display: grid;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
flex: 1;
|
|
134
|
+
gap: 2px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.sb-product-name {
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
font-size: var(--font-size-sm);
|
|
140
|
+
font-weight: 700;
|
|
141
|
+
line-height: 1.2;
|
|
142
|
+
text-overflow: ellipsis;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.sb-product-tenant,
|
|
147
|
+
.sb-product-caret {
|
|
148
|
+
color: hsl(var(--muted-foreground));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.sb-product-tenant {
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
font-size: 10px;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
letter-spacing: 0.08em;
|
|
156
|
+
line-height: 1.2;
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
text-transform: uppercase;
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.sb-product-caret svg {
|
|
163
|
+
width: 0.875rem;
|
|
164
|
+
height: 0.875rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.sb-nav-scroll {
|
|
168
|
+
flex: 1;
|
|
169
|
+
overflow-y: auto;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.sb-section {
|
|
173
|
+
padding: var(--space-3) var(--space-2);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.sb-section + .sb-section {
|
|
177
|
+
border-top: 1px solid hsl(var(--border));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.sb-section-label {
|
|
181
|
+
padding: 0 var(--space-2) var(--space-1);
|
|
182
|
+
color: hsl(var(--muted-foreground));
|
|
183
|
+
font-size: 10px;
|
|
184
|
+
font-weight: 700;
|
|
185
|
+
letter-spacing: 0.08em;
|
|
186
|
+
line-height: 1.2;
|
|
187
|
+
text-transform: uppercase;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.sb-nav {
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-direction: column;
|
|
193
|
+
gap: 2px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.sb-nav-item {
|
|
197
|
+
display: flex;
|
|
198
|
+
height: var(--control-height);
|
|
199
|
+
min-width: 0;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: var(--space-2);
|
|
202
|
+
padding-inline: var(--space-2);
|
|
203
|
+
border: 0;
|
|
204
|
+
border-radius: calc(var(--radius) - 1px);
|
|
205
|
+
background: transparent;
|
|
206
|
+
color: hsl(var(--muted-foreground));
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
font-family: inherit;
|
|
209
|
+
font-size: var(--font-size-sm);
|
|
210
|
+
text-align: left;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.sb-nav-item:hover,
|
|
214
|
+
.sb-nav-item[data-active="true"] {
|
|
215
|
+
background: hsl(var(--accent));
|
|
216
|
+
color: hsl(var(--foreground));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.sb-nav-item[data-active="true"] {
|
|
220
|
+
font-weight: 600;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.sb-icon {
|
|
224
|
+
display: grid;
|
|
225
|
+
width: 1rem;
|
|
226
|
+
height: 1rem;
|
|
227
|
+
flex: 0 0 auto;
|
|
228
|
+
place-items: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sb-icon svg {
|
|
232
|
+
width: 1rem;
|
|
233
|
+
height: 1rem;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.sb-label {
|
|
237
|
+
min-width: 0;
|
|
238
|
+
flex: 1;
|
|
239
|
+
overflow: hidden;
|
|
240
|
+
text-overflow: ellipsis;
|
|
241
|
+
white-space: nowrap;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.sb-badge {
|
|
245
|
+
display: inline-flex;
|
|
246
|
+
min-width: 1.125rem;
|
|
247
|
+
align-items: center;
|
|
248
|
+
justify-content: center;
|
|
249
|
+
border-radius: 9999px;
|
|
250
|
+
background: hsl(var(--secondary));
|
|
251
|
+
color: hsl(var(--muted-foreground));
|
|
252
|
+
font-size: 10px;
|
|
253
|
+
font-weight: 600;
|
|
254
|
+
line-height: 1.125rem;
|
|
255
|
+
padding-inline: 0.375rem;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sb-footer {
|
|
259
|
+
margin-top: auto;
|
|
260
|
+
border-top: 1px solid hsl(var(--border));
|
|
261
|
+
padding: var(--space-2);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Collapsible group trigger chevron (rotates when open). */
|
|
265
|
+
.sb-nav-group-trigger .sb-chevron {
|
|
266
|
+
margin-left: auto;
|
|
267
|
+
flex: 0 0 auto;
|
|
268
|
+
opacity: 0.6;
|
|
269
|
+
transition: transform 150ms ease;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.sb-nav-group-trigger[data-state="open"] .sb-chevron {
|
|
273
|
+
transform: rotate(180deg);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* Nested rows (submenu) — left guide line + dot markers, design `.sb-nest`.
|
|
277
|
+
* Active child reads as primary-colored text, never a filled block. */
|
|
278
|
+
.sb-nav-sub {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex-direction: column;
|
|
281
|
+
gap: 2px;
|
|
282
|
+
margin: 2px 0 var(--space-1) calc(var(--space-2) + 0.6875rem);
|
|
283
|
+
padding-left: var(--space-3);
|
|
284
|
+
border-left: 1px solid hsl(var(--border));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.sb-nav-item--sub {
|
|
288
|
+
height: 1.75rem;
|
|
289
|
+
font-size: var(--font-size-xs);
|
|
290
|
+
color: hsl(var(--muted-foreground));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.sb-nav-item--sub::before {
|
|
294
|
+
content: "";
|
|
295
|
+
width: 4px;
|
|
296
|
+
height: 4px;
|
|
297
|
+
flex: 0 0 auto;
|
|
298
|
+
border-radius: 9999px;
|
|
299
|
+
background: currentColor;
|
|
300
|
+
opacity: 0.4;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.sb-nav-item--sub:hover {
|
|
304
|
+
background: transparent;
|
|
305
|
+
color: hsl(var(--foreground));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.sb-nav-item--sub[data-active="true"] {
|
|
309
|
+
background: transparent;
|
|
310
|
+
color: hsl(var(--primary));
|
|
311
|
+
font-weight: 500;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.sb-nav-item--sub[data-active="true"]::before {
|
|
315
|
+
background: hsl(var(--primary));
|
|
316
|
+
opacity: 1;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Footer user — circular avatar with live dot + overflow menu, design `.sb-user`. */
|
|
320
|
+
.sb-user {
|
|
321
|
+
display: flex;
|
|
322
|
+
width: 100%;
|
|
323
|
+
min-width: 0;
|
|
324
|
+
align-items: center;
|
|
325
|
+
gap: var(--space-2);
|
|
326
|
+
padding: var(--space-1) var(--space-2);
|
|
327
|
+
border: 0;
|
|
328
|
+
border-radius: var(--radius);
|
|
329
|
+
background: transparent;
|
|
330
|
+
color: inherit;
|
|
331
|
+
cursor: pointer;
|
|
332
|
+
font-family: inherit;
|
|
333
|
+
text-align: left;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.sb-user:hover,
|
|
337
|
+
.sb-user[data-state="open"] {
|
|
338
|
+
background: hsl(var(--accent));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.sb-user:focus {
|
|
342
|
+
outline: none;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.sb-user:focus-visible {
|
|
346
|
+
box-shadow: 0 0 0 var(--control-focus-ring-width) hsl(var(--ring) / 0.45);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.sb-user-avatar {
|
|
350
|
+
position: relative;
|
|
351
|
+
display: inline-flex;
|
|
352
|
+
width: 1.75rem;
|
|
353
|
+
height: 1.75rem;
|
|
354
|
+
flex: 0 0 auto;
|
|
355
|
+
align-items: center;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
border-radius: 9999px;
|
|
358
|
+
background: hsl(var(--secondary));
|
|
359
|
+
color: hsl(var(--muted-foreground));
|
|
360
|
+
font-size: 11px;
|
|
361
|
+
font-weight: 500;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.sb-user-live {
|
|
365
|
+
position: absolute;
|
|
366
|
+
right: -1px;
|
|
367
|
+
bottom: -1px;
|
|
368
|
+
width: 0.5625rem;
|
|
369
|
+
height: 0.5625rem;
|
|
370
|
+
border-radius: 9999px;
|
|
371
|
+
border: 1.5px solid hsl(var(--card));
|
|
372
|
+
background: hsl(var(--success));
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.sb-user-meta {
|
|
376
|
+
display: grid;
|
|
377
|
+
min-width: 0;
|
|
378
|
+
flex: 1;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.sb-user-name {
|
|
382
|
+
overflow: hidden;
|
|
383
|
+
font-size: 12px;
|
|
384
|
+
font-weight: 500;
|
|
385
|
+
line-height: 1.3;
|
|
386
|
+
text-overflow: ellipsis;
|
|
387
|
+
white-space: nowrap;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.sb-user-role {
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
color: hsl(var(--muted-foreground));
|
|
393
|
+
font-size: 10px;
|
|
394
|
+
line-height: 1.3;
|
|
395
|
+
text-overflow: ellipsis;
|
|
396
|
+
white-space: nowrap;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.sb-user-menu {
|
|
400
|
+
flex: 0 0 auto;
|
|
401
|
+
color: hsl(var(--muted-foreground));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
[data-collapsed="true"] .sb-user-meta,
|
|
405
|
+
[data-collapsed="true"] .sb-user-menu {
|
|
406
|
+
display: none;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
[data-collapsed="true"] .sb-product-name,
|
|
410
|
+
[data-collapsed="true"] .sb-product-tenant,
|
|
411
|
+
[data-collapsed="true"] .sb-product-caret,
|
|
412
|
+
[data-collapsed="true"] .sb-section-label,
|
|
413
|
+
[data-collapsed="true"] .sb-label,
|
|
414
|
+
[data-collapsed="true"] .sb-badge {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
[data-collapsed="true"] .sb-product {
|
|
419
|
+
justify-content: center;
|
|
420
|
+
padding: 0;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
[data-collapsed="true"] .sb-nav-item {
|
|
424
|
+
width: var(--control-height);
|
|
425
|
+
justify-content: center;
|
|
426
|
+
margin-inline: auto;
|
|
427
|
+
padding: 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.tb-switcher {
|
|
431
|
+
display: flex;
|
|
432
|
+
min-width: 0;
|
|
433
|
+
flex: 1;
|
|
434
|
+
align-items: center;
|
|
435
|
+
gap: 2px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.tb-chip {
|
|
439
|
+
display: inline-flex;
|
|
440
|
+
max-width: 15rem;
|
|
441
|
+
min-width: 0;
|
|
442
|
+
height: calc(var(--control-height) - 0.25rem);
|
|
443
|
+
align-items: center;
|
|
444
|
+
gap: var(--space-1);
|
|
445
|
+
padding-inline: var(--space-2);
|
|
446
|
+
border: 1px solid transparent;
|
|
447
|
+
border-radius: var(--radius);
|
|
448
|
+
background: transparent;
|
|
449
|
+
color: hsl(var(--foreground));
|
|
450
|
+
cursor: pointer;
|
|
451
|
+
font: inherit;
|
|
452
|
+
font-size: var(--font-size-sm);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.tb-chip:hover,
|
|
456
|
+
.tb-chip[data-open="true"] {
|
|
457
|
+
border-color: hsl(var(--border));
|
|
458
|
+
background: hsl(var(--accent));
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.tb-chip-empty {
|
|
462
|
+
border-color: hsl(var(--border));
|
|
463
|
+
border-style: dashed;
|
|
464
|
+
color: hsl(var(--muted-foreground));
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.tb-chip-icon {
|
|
468
|
+
display: grid;
|
|
469
|
+
width: 1.125rem;
|
|
470
|
+
height: 1.125rem;
|
|
471
|
+
flex: 0 0 auto;
|
|
472
|
+
place-items: center;
|
|
473
|
+
border-radius: calc(var(--radius) - 2px);
|
|
474
|
+
color: white;
|
|
475
|
+
font-size: 10px;
|
|
476
|
+
font-weight: 700;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.tb-chip-label {
|
|
480
|
+
min-width: 0;
|
|
481
|
+
overflow: hidden;
|
|
482
|
+
font-weight: 500;
|
|
483
|
+
text-overflow: ellipsis;
|
|
484
|
+
white-space: nowrap;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.tb-chip-caret,
|
|
488
|
+
.tb-chip-sep {
|
|
489
|
+
color: hsl(var(--muted-foreground));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.tb-chip-caret svg {
|
|
493
|
+
width: 0.75rem;
|
|
494
|
+
height: 0.75rem;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.tb-search {
|
|
498
|
+
display: flex;
|
|
499
|
+
width: min(20rem, 30vw);
|
|
500
|
+
height: calc(var(--control-height) - 0.25rem);
|
|
501
|
+
align-items: center;
|
|
502
|
+
gap: var(--space-2);
|
|
503
|
+
padding-inline: var(--space-2);
|
|
504
|
+
border: 1px solid hsl(var(--input));
|
|
505
|
+
border-radius: var(--radius);
|
|
506
|
+
background: hsl(var(--background));
|
|
507
|
+
color: hsl(var(--muted-foreground));
|
|
508
|
+
cursor: pointer;
|
|
509
|
+
font: inherit;
|
|
510
|
+
font-size: var(--font-size-sm);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.tb-search svg,
|
|
514
|
+
.tb-icon-btn svg {
|
|
515
|
+
width: 1rem;
|
|
516
|
+
height: 1rem;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.kbd {
|
|
520
|
+
display: inline-flex;
|
|
521
|
+
align-items: center;
|
|
522
|
+
margin-left: auto;
|
|
523
|
+
padding: 1px 5px;
|
|
524
|
+
border: 1px solid hsl(var(--border));
|
|
525
|
+
border-bottom-width: 2px;
|
|
526
|
+
border-radius: 4px;
|
|
527
|
+
background: hsl(var(--secondary));
|
|
528
|
+
color: hsl(var(--muted-foreground));
|
|
529
|
+
font-family: var(--font-family-mono);
|
|
530
|
+
font-size: 10px;
|
|
531
|
+
line-height: 1.2;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.tb-icon-btn {
|
|
535
|
+
display: grid;
|
|
536
|
+
width: calc(var(--control-height) - 0.25rem);
|
|
537
|
+
height: calc(var(--control-height) - 0.25rem);
|
|
538
|
+
flex: 0 0 auto;
|
|
539
|
+
place-items: center;
|
|
540
|
+
border: 0;
|
|
541
|
+
border-radius: var(--radius);
|
|
542
|
+
background: transparent;
|
|
543
|
+
color: hsl(var(--muted-foreground));
|
|
544
|
+
cursor: pointer;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.tb-icon-btn:hover {
|
|
548
|
+
background: hsl(var(--accent));
|
|
549
|
+
color: hsl(var(--accent-foreground));
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.tb-icon-btn:focus {
|
|
553
|
+
outline: none;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.tb-icon-btn:focus-visible {
|
|
557
|
+
box-shadow: 0 0 0 var(--control-focus-ring-width) hsl(var(--ring) / 0.45);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.tb-bell {
|
|
561
|
+
position: relative;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.tb-bell-dot {
|
|
565
|
+
position: absolute;
|
|
566
|
+
top: 0.35rem;
|
|
567
|
+
right: 0.35rem;
|
|
568
|
+
width: 0.375rem;
|
|
569
|
+
height: 0.375rem;
|
|
570
|
+
border-radius: 9999px;
|
|
571
|
+
background: hsl(var(--attention));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@media (max-width: 768px) {
|
|
575
|
+
.app-root,
|
|
576
|
+
.app-root[data-collapsed="true"] {
|
|
577
|
+
grid-template-areas:
|
|
578
|
+
"topbar"
|
|
579
|
+
"main";
|
|
580
|
+
grid-template-columns: minmax(0, 1fr);
|
|
581
|
+
grid-template-rows: 3rem minmax(0, 1fr);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.app-sidebar,
|
|
585
|
+
.app-footer,
|
|
586
|
+
.tb-chip-sep,
|
|
587
|
+
.tb-search .kbd {
|
|
588
|
+
display: none;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.app-topbar {
|
|
592
|
+
padding-inline: var(--space-3);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.tb-search {
|
|
596
|
+
width: auto;
|
|
597
|
+
min-width: var(--control-height);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.tb-search span {
|
|
601
|
+
display: none;
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* TABLE — cell padding + typography owned here (density-aware via --table-cell-* tokens).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
[data-slot="table-head"] {
|
|
7
|
+
height: var(--table-row-height);
|
|
8
|
+
padding: var(--table-cell-padding-y) var(--space-table-cell-x);
|
|
9
|
+
text-align: left;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
background: hsl(var(--secondary));
|
|
12
|
+
font-size: var(--font-size-xs);
|
|
13
|
+
font-weight: var(--font-weight-medium);
|
|
14
|
+
color: hsl(var(--muted-foreground));
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-slot="table-head"]:has([role="checkbox"]) {
|
|
19
|
+
padding-right: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-slot="table-cell"] {
|
|
23
|
+
padding: var(--table-cell-padding-y) var(--space-table-cell-x);
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot="table-cell"]:has([role="checkbox"]) {
|
|
28
|
+
padding-right: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ui-data-table-toolbar {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
gap: var(--space-inline-md);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ui-data-table-bulk {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--space-inline-sm);
|
|
43
|
+
font-size: var(--font-size-sm);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ui-data-table-bulk-actions {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--space-inline-sm);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ui-data-table-pagination {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: flex-end;
|
|
56
|
+
gap: var(--space-inline-sm);
|
|
57
|
+
padding-top: var(--space-stack-sm);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ui-data-table-root {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
gap: var(--space-stack-sm);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ui-data-table-surface {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
border: 1px solid hsl(var(--border));
|
|
69
|
+
border-radius: var(--radius-md);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot="card-content"][data-flush] .ui-data-table-root {
|
|
73
|
+
gap: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-slot="card-content"][data-flush] .ui-data-table-toolbar {
|
|
77
|
+
border-bottom: 1px solid hsl(var(--card-border-token));
|
|
78
|
+
padding: var(--card-space-header-y) var(--card-space-inset);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ui-data-table-sort-label {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: var(--space-inline-xs);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ui-data-table-scroll {
|
|
88
|
+
overflow-x: auto;
|
|
89
|
+
margin-inline: calc(-1 * var(--space-page-active-x));
|
|
90
|
+
padding-inline: var(--space-page-active-x);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-slot="card-content"][data-flush] .ui-data-table-scroll {
|
|
94
|
+
margin-inline: 0;
|
|
95
|
+
padding-inline: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="card-content"][data-flush] .ui-data-table-surface {
|
|
99
|
+
border-width: 0;
|
|
100
|
+
border-radius: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (min-width: 640px) {
|
|
104
|
+
.ui-data-table-scroll {
|
|
105
|
+
margin-inline: 0;
|
|
106
|
+
padding-inline: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|