@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,246 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-code-badge {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
max-width: 100%;
|
|
5
|
+
min-height: var(--code-badge-height);
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--code-badge-gap);
|
|
8
|
+
padding-inline: var(--code-badge-padding-x);
|
|
9
|
+
border: 1px solid hsl(var(--code-badge-hsl) / var(--code-badge-border-alpha));
|
|
10
|
+
border-radius: var(--radius);
|
|
11
|
+
background: hsl(var(--code-badge-hsl) / var(--code-badge-bg-alpha));
|
|
12
|
+
color: hsl(var(--code-badge-hsl));
|
|
13
|
+
font-size: var(--font-size-xs);
|
|
14
|
+
font-weight: var(--font-weight-medium);
|
|
15
|
+
font-variant-numeric: tabular-nums;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ui-code-badge[data-kind="internal"] {
|
|
19
|
+
--code-badge-hsl: var(--tracking-internal);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ui-code-badge[data-kind="seller"] {
|
|
23
|
+
--code-badge-hsl: var(--tracking-seller);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ui-code-badge[data-kind="yamato"] {
|
|
27
|
+
--code-badge-hsl: var(--tracking-yamato);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ui-code-badge svg {
|
|
31
|
+
width: 0.875rem;
|
|
32
|
+
height: 0.875rem;
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
opacity: 0.82;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ui-code-badge-label {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--code-badge-gap);
|
|
42
|
+
color: hsl(var(--code-badge-hsl));
|
|
43
|
+
font-size: 0.625rem;
|
|
44
|
+
font-weight: var(--font-weight-semibold);
|
|
45
|
+
letter-spacing: 0;
|
|
46
|
+
line-height: 1rem;
|
|
47
|
+
text-align: center;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ui-code-badge-label::after {
|
|
51
|
+
width: 1px;
|
|
52
|
+
height: 0.875rem;
|
|
53
|
+
background: hsl(var(--code-badge-hsl) / var(--code-badge-separator-alpha));
|
|
54
|
+
content: "";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ui-code-badge-value {
|
|
58
|
+
min-width: 0;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ui-progress-meter {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: var(--space-2);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ui-progress-track {
|
|
71
|
+
height: 0.5rem;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
border-radius: 9999px;
|
|
74
|
+
background: hsl(var(--secondary));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ui-progress-bar {
|
|
78
|
+
height: 100%;
|
|
79
|
+
border-radius: inherit;
|
|
80
|
+
background: hsl(var(--success));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ui-progress-meter[data-tone="warning"] .ui-progress-bar {
|
|
84
|
+
background: hsl(var(--warning));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ui-progress-label {
|
|
88
|
+
color: hsl(var(--muted-foreground));
|
|
89
|
+
font-size: var(--font-size-xs);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ui-tree-list {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: var(--space-1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ui-tree-item {
|
|
99
|
+
display: flex;
|
|
100
|
+
min-height: 2.25rem;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: var(--space-2);
|
|
103
|
+
padding-inline: var(--space-3);
|
|
104
|
+
border: 1px solid hsl(var(--border));
|
|
105
|
+
border-radius: var(--radius);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ui-tree-item[data-active="true"] {
|
|
109
|
+
border-color: hsl(var(--primary) / 0.3);
|
|
110
|
+
background: hsl(var(--primary) / 0.05);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ui-tree-item[data-depth="1"] {
|
|
114
|
+
margin-left: 1.375rem;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ui-tree-item[data-depth="2"] {
|
|
118
|
+
margin-left: 2.75rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ui-tree-item > svg {
|
|
122
|
+
width: 1rem;
|
|
123
|
+
height: 1rem;
|
|
124
|
+
color: hsl(var(--primary));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ui-tree-item > svg:first-child {
|
|
128
|
+
width: 0.75rem;
|
|
129
|
+
height: 0.75rem;
|
|
130
|
+
color: hsl(var(--muted-foreground));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ui-tree-item-body {
|
|
134
|
+
min-width: 0;
|
|
135
|
+
flex: 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ui-tree-item-title {
|
|
139
|
+
font-family: var(--font-family-mono);
|
|
140
|
+
font-size: var(--font-size-xs);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ui-tree-item-description {
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
color: hsl(var(--muted-foreground));
|
|
146
|
+
font-size: var(--font-size-xs);
|
|
147
|
+
text-overflow: ellipsis;
|
|
148
|
+
white-space: nowrap;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ui-timeline {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
gap: var(--space-stack-md);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ui-timeline-item {
|
|
158
|
+
display: grid;
|
|
159
|
+
grid-template-columns: 1.5rem minmax(0, 1fr);
|
|
160
|
+
gap: var(--space-stack-md);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ui-timeline-rail {
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
align-items: center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ui-timeline-dot {
|
|
170
|
+
display: grid;
|
|
171
|
+
width: 1.5rem;
|
|
172
|
+
height: 1.5rem;
|
|
173
|
+
place-items: center;
|
|
174
|
+
border-radius: 9999px;
|
|
175
|
+
background: hsl(var(--success));
|
|
176
|
+
color: hsl(var(--success-foreground));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ui-timeline-dot[data-current="true"] {
|
|
180
|
+
background: hsl(var(--primary));
|
|
181
|
+
color: hsl(var(--primary-foreground));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ui-timeline-dot svg {
|
|
185
|
+
width: 0.75rem;
|
|
186
|
+
height: 0.75rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ui-timeline-line {
|
|
190
|
+
width: 1px;
|
|
191
|
+
min-height: 2.25rem;
|
|
192
|
+
flex: 1;
|
|
193
|
+
background: hsl(var(--border));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ui-timeline-head {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: space-between;
|
|
200
|
+
gap: var(--space-inline-sm);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ui-timeline-title {
|
|
204
|
+
font-weight: var(--font-weight-medium);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ui-timeline-time,
|
|
208
|
+
.ui-timeline-location,
|
|
209
|
+
.ui-timeline-note {
|
|
210
|
+
color: hsl(var(--muted-foreground));
|
|
211
|
+
font-size: var(--font-size-xs);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ui-timeline-note {
|
|
215
|
+
margin-top: var(--space-1);
|
|
216
|
+
font-size: var(--font-size-sm);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ui-scan-panel {
|
|
220
|
+
display: grid;
|
|
221
|
+
aspect-ratio: 1 / 1;
|
|
222
|
+
place-items: center;
|
|
223
|
+
border: 2px dashed hsl(var(--primary) / 0.3);
|
|
224
|
+
border-radius: calc(var(--radius) + 0.25rem);
|
|
225
|
+
background: hsl(var(--primary) / 0.05);
|
|
226
|
+
text-align: center;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ui-scan-panel svg {
|
|
230
|
+
width: 4rem;
|
|
231
|
+
height: 4rem;
|
|
232
|
+
margin-inline: auto;
|
|
233
|
+
color: hsl(var(--primary));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ui-scan-title {
|
|
237
|
+
margin-top: var(--space-3);
|
|
238
|
+
font-size: var(--font-size-lg);
|
|
239
|
+
font-weight: var(--font-weight-semibold);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ui-scan-description {
|
|
243
|
+
color: hsl(var(--muted-foreground));
|
|
244
|
+
font-size: var(--font-size-sm);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DENSITY — one knob retunes φ-unit, controls, tables (PageContainer density prop).
|
|
3
|
+
* Owner: .ui-density-* classes only. Apps use <PageContainer density>, never these classes.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.ui-density-compact {
|
|
8
|
+
--control-height: var(--control-height-compact);
|
|
9
|
+
--control-padding-x: var(--control-padding-x-compact);
|
|
10
|
+
--table-row-height: var(--table-row-height-compact);
|
|
11
|
+
--phi-unit: var(--space-3);
|
|
12
|
+
--checkbox-size: 0.875rem;
|
|
13
|
+
--switch-width: 2rem;
|
|
14
|
+
--switch-height: 1.125rem;
|
|
15
|
+
--switch-thumb-size: 0.875rem;
|
|
16
|
+
--switch-thumb-translate: 0.875rem;
|
|
17
|
+
--table-cell-padding-y: var(--space-1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ui-density-default {
|
|
21
|
+
--control-height: var(--control-height-default);
|
|
22
|
+
--control-padding-x: var(--control-padding-x-default);
|
|
23
|
+
--table-row-height: var(--table-row-height-default);
|
|
24
|
+
--table-cell-padding-y: var(--space-2);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ui-density-comfortable {
|
|
28
|
+
--control-height: var(--control-height-comfortable);
|
|
29
|
+
/* Comfortable steps 44 → 36 → 32 (design spacing-density), steeper than the
|
|
30
|
+
* default 4px step so sm/xs aren't left 4px too tall. */
|
|
31
|
+
--control-height-sm: calc(var(--control-height) - 0.5rem);
|
|
32
|
+
--control-height-xs: calc(var(--control-height) - 0.75rem);
|
|
33
|
+
--control-padding-x: var(--control-padding-x-comfortable);
|
|
34
|
+
--table-row-height: var(--table-row-height-comfortable);
|
|
35
|
+
--phi-unit: var(--space-6);
|
|
36
|
+
--checkbox-size: 1.125rem;
|
|
37
|
+
--switch-width: 2.5rem;
|
|
38
|
+
--switch-height: 1.375rem;
|
|
39
|
+
--switch-thumb-size: 1.125rem;
|
|
40
|
+
--switch-thumb-translate: 1.125rem;
|
|
41
|
+
--table-cell-padding-y: var(--space-2);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DIALOG — overlay content shell (form + confirm modes share tokens).
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.ui-dialog-overlay {
|
|
7
|
+
position: fixed;
|
|
8
|
+
inset: 0;
|
|
9
|
+
z-index: 50;
|
|
10
|
+
background-color: rgb(0 0 0 / 0.5);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-slot="dialog-content"] {
|
|
14
|
+
position: fixed;
|
|
15
|
+
left: 50%;
|
|
16
|
+
top: 50%;
|
|
17
|
+
z-index: 50;
|
|
18
|
+
display: grid;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: 32rem;
|
|
21
|
+
transform: translate(-50%, -50%);
|
|
22
|
+
gap: var(--space-dialog-gap);
|
|
23
|
+
border: 1px solid hsl(var(--border));
|
|
24
|
+
background-color: hsl(var(--background));
|
|
25
|
+
padding: var(--space-dialog-inset);
|
|
26
|
+
box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (min-width: 640px) {
|
|
30
|
+
[data-slot="dialog-content"] {
|
|
31
|
+
border-radius: var(--radius-lg);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot="dialog-header"] {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: var(--space-stack-xs);
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (min-width: 640px) {
|
|
43
|
+
[data-slot="dialog-header"] {
|
|
44
|
+
text-align: left;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-slot="dialog-footer"] {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column-reverse;
|
|
51
|
+
gap: var(--space-inline-sm);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media (min-width: 640px) {
|
|
55
|
+
[data-slot="dialog-footer"] {
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-slot="dialog-close"] {
|
|
62
|
+
position: absolute;
|
|
63
|
+
inset-inline-end: var(--space-dialog-close-offset);
|
|
64
|
+
top: var(--space-dialog-close-offset);
|
|
65
|
+
border-radius: var(--radius-sm);
|
|
66
|
+
opacity: 0.7;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-slot="dialog-close"]:hover {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-slot="dialog-title"] {
|
|
74
|
+
font-size: var(--font-size-lg);
|
|
75
|
+
font-weight: var(--font-weight-semibold);
|
|
76
|
+
line-height: var(--line-height-tight);
|
|
77
|
+
letter-spacing: var(--letter-spacing-tight);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="dialog-description"] {
|
|
81
|
+
font-size: var(--font-size-sm);
|
|
82
|
+
color: hsl(var(--muted-foreground));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import "sonner/dist/styles.css";
|
|
2
|
+
@import "react-day-picker/style.css";
|
|
3
|
+
/* Default sans font — self-contained so consumers need no font config (subsetted: latin/vi/jp). */
|
|
4
|
+
@import "@fontsource/m-plus-2/400.css";
|
|
5
|
+
@import "@fontsource/m-plus-2/500.css";
|
|
6
|
+
@import "@fontsource/m-plus-2/600.css";
|
|
7
|
+
@import "@fontsource/m-plus-2/700.css";
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
@source "../**/*.{tsx,ts}";
|
|
10
|
+
@import "../tokens/base.css";
|
|
11
|
+
@import "./density.css";
|
|
12
|
+
@import "./shell-layout.css";
|
|
13
|
+
@import "./layout.css";
|
|
14
|
+
@import "./control.css";
|
|
15
|
+
@import "./card-layout.css";
|
|
16
|
+
@import "./table-layout.css";
|
|
17
|
+
@import "./dialog-layout.css";
|
|
18
|
+
@import "./alert-layout.css";
|
|
19
|
+
@import "./badge-layout.css";
|
|
20
|
+
@import "./data-display-layout.css";
|
|
21
|
+
|
|
22
|
+
@theme {
|
|
23
|
+
--color-background: hsl(var(--background));
|
|
24
|
+
--color-foreground: hsl(var(--foreground));
|
|
25
|
+
--color-card: hsl(var(--card));
|
|
26
|
+
--color-card-foreground: hsl(var(--card-foreground));
|
|
27
|
+
--color-popover: hsl(var(--popover));
|
|
28
|
+
--color-popover-foreground: hsl(var(--popover-foreground));
|
|
29
|
+
--color-primary: hsl(var(--primary));
|
|
30
|
+
--color-primary-foreground: hsl(var(--primary-foreground));
|
|
31
|
+
--color-secondary: hsl(var(--secondary));
|
|
32
|
+
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
|
33
|
+
--color-muted: hsl(var(--muted));
|
|
34
|
+
--color-muted-foreground: hsl(var(--muted-foreground));
|
|
35
|
+
--color-accent: hsl(var(--accent));
|
|
36
|
+
--color-accent-foreground: hsl(var(--accent-foreground));
|
|
37
|
+
--color-destructive: hsl(var(--destructive));
|
|
38
|
+
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
|
39
|
+
--color-border: hsl(var(--border));
|
|
40
|
+
--color-input: hsl(var(--input));
|
|
41
|
+
--color-ring: hsl(var(--ring));
|
|
42
|
+
--color-success: hsl(var(--success));
|
|
43
|
+
--color-success-foreground: hsl(var(--success-foreground));
|
|
44
|
+
--color-warning: hsl(var(--warning));
|
|
45
|
+
--color-warning-foreground: hsl(var(--warning-foreground));
|
|
46
|
+
--color-info: hsl(var(--info));
|
|
47
|
+
--color-info-foreground: hsl(var(--info-foreground));
|
|
48
|
+
--color-attention: hsl(var(--attention));
|
|
49
|
+
--color-attention-foreground: hsl(var(--attention-foreground));
|
|
50
|
+
--color-tracking-internal: hsl(var(--tracking-internal));
|
|
51
|
+
--color-tracking-seller: hsl(var(--tracking-seller));
|
|
52
|
+
--color-tracking-yamato: hsl(var(--tracking-yamato));
|
|
53
|
+
--radius-lg: var(--radius);
|
|
54
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
55
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
56
|
+
/* Wire Tailwind's font-sans/mono (and preflight) to the design-system fonts. */
|
|
57
|
+
--font-sans: var(--font-family-sans);
|
|
58
|
+
--font-mono: var(--font-family-mono);
|
|
59
|
+
/* 和色 (wa-iro) accents → bg-wa / text-wa utilities (charts, tags, decoration). */
|
|
60
|
+
--color-wa-ai: var(--wa-ai);
|
|
61
|
+
--color-wa-gunjo: var(--wa-gunjo);
|
|
62
|
+
--color-wa-ruri: var(--wa-ruri);
|
|
63
|
+
--color-wa-kon: var(--wa-kon);
|
|
64
|
+
--color-wa-wakatake: var(--wa-wakatake);
|
|
65
|
+
--color-wa-moegi: var(--wa-moegi);
|
|
66
|
+
--color-wa-yamabuki: var(--wa-yamabuki);
|
|
67
|
+
--color-wa-shu: var(--wa-shu);
|
|
68
|
+
--color-wa-akane: var(--wa-akane);
|
|
69
|
+
--color-wa-enji: var(--wa-enji);
|
|
70
|
+
--color-wa-sakura: var(--wa-sakura);
|
|
71
|
+
--color-wa-sumi: var(--wa-sumi);
|
|
72
|
+
--color-wa-nezu: var(--wa-nezu);
|
|
73
|
+
/* Wire Tailwind text-* utilities to runtime typography tokens (fontSize toolbar). */
|
|
74
|
+
--text-xs: var(--font-size-xs);
|
|
75
|
+
--text-sm: var(--font-size-sm);
|
|
76
|
+
--text-base: var(--font-size-base);
|
|
77
|
+
--text-lg: var(--font-size-lg);
|
|
78
|
+
--text-xl: var(--font-size-xl);
|
|
79
|
+
--text-2xl: var(--font-size-2xl);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@layer base {
|
|
83
|
+
* {
|
|
84
|
+
border-color: hsl(var(--border));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
body {
|
|
88
|
+
background-color: hsl(var(--background));
|
|
89
|
+
color: hsl(var(--foreground));
|
|
90
|
+
font-family: var(--font-family-sans);
|
|
91
|
+
font-size: var(--font-size-sm);
|
|
92
|
+
line-height: var(--line-height-body);
|
|
93
|
+
font-feature-settings:
|
|
94
|
+
"cv02",
|
|
95
|
+
"cv03",
|
|
96
|
+
"cv04",
|
|
97
|
+
"cv11",
|
|
98
|
+
"rlig" 1,
|
|
99
|
+
"calt" 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
code {
|
|
103
|
+
font-family: var(--font-family-mono);
|
|
104
|
+
}
|
|
105
|
+
}
|