@granularjs/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/fonts/Arimo-400.ttf +0 -0
- package/dist/fonts/Arimo-500.ttf +1449 -0
- package/dist/fonts/Arimo-600.ttf +1449 -0
- package/dist/fonts/Arimo-700.ttf +0 -0
- package/dist/fonts/Inter-400.woff2 +0 -0
- package/dist/fonts/Inter-500.woff2 +0 -0
- package/dist/fonts/Inter-600.woff2 +0 -0
- package/dist/fonts/Inter-700.woff2 +0 -0
- package/dist/fonts/Poppins-400.ttf +0 -0
- package/dist/fonts/Poppins-500.ttf +0 -0
- package/dist/fonts/Poppins-600.ttf +0 -0
- package/dist/fonts/Poppins-700.ttf +0 -0
- package/dist/granular-ui.min.js +3605 -0
- package/dist/granular-ui.min.js.map +7 -0
- package/package.json +55 -0
- package/src/components/Accordion.js +25 -0
- package/src/components/ActionIcon.js +20 -0
- package/src/components/Affix.js +11 -0
- package/src/components/Alert.js +33 -0
- package/src/components/Anchor.js +8 -0
- package/src/components/AppBar.js +14 -0
- package/src/components/Avatar.js +13 -0
- package/src/components/AvatarGroup.js +8 -0
- package/src/components/Badge.js +22 -0
- package/src/components/BadgeGroup.js +8 -0
- package/src/components/Blockquote.js +8 -0
- package/src/components/BottomBar.js +43 -0
- package/src/components/Breadcrumbs.js +19 -0
- package/src/components/Burger.js +13 -0
- package/src/components/Button.js +37 -0
- package/src/components/Calendar.js +109 -0
- package/src/components/Card.js +40 -0
- package/src/components/Center.js +8 -0
- package/src/components/Checkbox.js +46 -0
- package/src/components/CheckboxGroup.js +8 -0
- package/src/components/Chip.js +35 -0
- package/src/components/Code.js +8 -0
- package/src/components/Col.js +8 -0
- package/src/components/Collapse.js +8 -0
- package/src/components/Container.js +19 -0
- package/src/components/CopyButton.js +30 -0
- package/src/components/DateInput.js +123 -0
- package/src/components/DatePicker.js +7 -0
- package/src/components/Divider.js +22 -0
- package/src/components/Drawer.js +32 -0
- package/src/components/EventCalendar.js +972 -0
- package/src/components/Fieldset.js +12 -0
- package/src/components/Flex.js +25 -0
- package/src/components/Grid.js +8 -0
- package/src/components/GridTable.js +99 -0
- package/src/components/Group.js +29 -0
- package/src/components/HoverCard.js +24 -0
- package/src/components/Icon.js +19 -0
- package/src/components/Image.js +8 -0
- package/src/components/Indicator.js +21 -0
- package/src/components/Kbd.js +8 -0
- package/src/components/List.js +77 -0
- package/src/components/Loading.js +29 -0
- package/src/components/LoadingOverlay.js +9 -0
- package/src/components/Menu.js +129 -0
- package/src/components/Modal.js +61 -0
- package/src/components/MultiSelect.js +153 -0
- package/src/components/NavLink.js +72 -0
- package/src/components/Notification.js +42 -0
- package/src/components/Notifications.js +59 -0
- package/src/components/NumberField.js +389 -0
- package/src/components/NumberInput.js +5 -0
- package/src/components/Pagination.js +56 -0
- package/src/components/Paper.js +20 -0
- package/src/components/PasswordInput.js +29 -0
- package/src/components/PinInput.js +218 -0
- package/src/components/Popover.js +38 -0
- package/src/components/Popper.js +25 -0
- package/src/components/Progress.js +27 -0
- package/src/components/ProgressRing.js +11 -0
- package/src/components/Radio.js +22 -0
- package/src/components/RadioGroup.js +8 -0
- package/src/components/RangePicker.js +45 -0
- package/src/components/RangeSlider.js +143 -0
- package/src/components/Rating.js +42 -0
- package/src/components/ScrollArea.js +11 -0
- package/src/components/SearchInput.js +17 -0
- package/src/components/SegmentedControl.js +39 -0
- package/src/components/Select.js +71 -0
- package/src/components/SelectSearch.js +37 -0
- package/src/components/Sidebar.js +136 -0
- package/src/components/SimpleGrid.js +11 -0
- package/src/components/Skeleton.js +24 -0
- package/src/components/Slider.js +126 -0
- package/src/components/Space.js +8 -0
- package/src/components/Stack.js +27 -0
- package/src/components/Stepper.js +20 -0
- package/src/components/Switch.js +16 -0
- package/src/components/SwitchGroup.js +8 -0
- package/src/components/Table.js +42 -0
- package/src/components/Tabs.js +194 -0
- package/src/components/Tag.js +8 -0
- package/src/components/Text.js +42 -0
- package/src/components/TextInput.js +74 -0
- package/src/components/Textarea.js +15 -0
- package/src/components/Timeline.js +22 -0
- package/src/components/Title.js +18 -0
- package/src/components/Toast.js +16 -0
- package/src/components/ToastStack.js +21 -0
- package/src/components/Tooltip.js +12 -0
- package/src/hooks/useDisclosure.js +13 -0
- package/src/index.js +98 -0
- package/src/theme/fonts/Arimo-400.ttf +0 -0
- package/src/theme/fonts/Arimo-500.ttf +1449 -0
- package/src/theme/fonts/Arimo-600.ttf +1449 -0
- package/src/theme/fonts/Arimo-700.ttf +0 -0
- package/src/theme/fonts/Inter-400.woff2 +0 -0
- package/src/theme/fonts/Inter-500.woff2 +0 -0
- package/src/theme/fonts/Inter-600.woff2 +0 -0
- package/src/theme/fonts/Inter-700.woff2 +0 -0
- package/src/theme/fonts/Poppins-400.ttf +0 -0
- package/src/theme/fonts/Poppins-500.ttf +0 -0
- package/src/theme/fonts/Poppins-600.ttf +0 -0
- package/src/theme/fonts/Poppins-700.ttf +0 -0
- package/src/theme/icons.js +10 -0
- package/src/theme/styles.js +3630 -0
- package/src/theme/theme.js +71 -0
- package/src/utils.js +75 -0
- package/types/components/Accordion.d.ts +1 -0
- package/types/components/ActionIcon.d.ts +1 -0
- package/types/components/Affix.d.ts +1 -0
- package/types/components/Alert.d.ts +1 -0
- package/types/components/Anchor.d.ts +1 -0
- package/types/components/AppBar.d.ts +1 -0
- package/types/components/Avatar.d.ts +1 -0
- package/types/components/AvatarGroup.d.ts +1 -0
- package/types/components/Badge.d.ts +1 -0
- package/types/components/BadgeGroup.d.ts +1 -0
- package/types/components/Blockquote.d.ts +1 -0
- package/types/components/BottomBar.d.ts +4 -0
- package/types/components/Breadcrumbs.d.ts +1 -0
- package/types/components/Burger.d.ts +1 -0
- package/types/components/Button.d.ts +1 -0
- package/types/components/Calendar.d.ts +1 -0
- package/types/components/Card.d.ts +1 -0
- package/types/components/Center.d.ts +1 -0
- package/types/components/Checkbox.d.ts +1 -0
- package/types/components/CheckboxGroup.d.ts +1 -0
- package/types/components/Chip.d.ts +1 -0
- package/types/components/Code.d.ts +1 -0
- package/types/components/Col.d.ts +1 -0
- package/types/components/Collapse.d.ts +1 -0
- package/types/components/Container.d.ts +1 -0
- package/types/components/CopyButton.d.ts +1 -0
- package/types/components/DateInput.d.ts +1 -0
- package/types/components/DatePicker.d.ts +1 -0
- package/types/components/Divider.d.ts +1 -0
- package/types/components/Drawer.d.ts +1 -0
- package/types/components/EventCalendar.d.ts +1 -0
- package/types/components/Fieldset.d.ts +1 -0
- package/types/components/Flex.d.ts +1 -0
- package/types/components/Grid.d.ts +1 -0
- package/types/components/GridTable.d.ts +5 -0
- package/types/components/Group.d.ts +1 -0
- package/types/components/HoverCard.d.ts +1 -0
- package/types/components/Icon.d.ts +1 -0
- package/types/components/Image.d.ts +1 -0
- package/types/components/Indicator.d.ts +1 -0
- package/types/components/Kbd.d.ts +1 -0
- package/types/components/List.d.ts +5 -0
- package/types/components/Loading.d.ts +1 -0
- package/types/components/LoadingOverlay.d.ts +1 -0
- package/types/components/Menu.d.ts +2 -0
- package/types/components/Modal.d.ts +1 -0
- package/types/components/MultiSelect.d.ts +1 -0
- package/types/components/NavLink.d.ts +1 -0
- package/types/components/Notification.d.ts +1 -0
- package/types/components/Notifications.d.ts +1 -0
- package/types/components/NumberField.d.ts +1 -0
- package/types/components/NumberInput.d.ts +1 -0
- package/types/components/Pagination.d.ts +1 -0
- package/types/components/Paper.d.ts +1 -0
- package/types/components/PasswordInput.d.ts +1 -0
- package/types/components/PinInput.d.ts +1 -0
- package/types/components/Popover.d.ts +1 -0
- package/types/components/Popper.d.ts +1 -0
- package/types/components/Progress.d.ts +1 -0
- package/types/components/ProgressRing.d.ts +1 -0
- package/types/components/Radio.d.ts +1 -0
- package/types/components/RadioGroup.d.ts +1 -0
- package/types/components/RangePicker.d.ts +1 -0
- package/types/components/RangeSlider.d.ts +1 -0
- package/types/components/Rating.d.ts +1 -0
- package/types/components/ScrollArea.d.ts +1 -0
- package/types/components/SearchInput.d.ts +1 -0
- package/types/components/SegmentedControl.d.ts +1 -0
- package/types/components/Select.d.ts +1 -0
- package/types/components/SelectSearch.d.ts +1 -0
- package/types/components/Sidebar.d.ts +1 -0
- package/types/components/SimpleGrid.d.ts +1 -0
- package/types/components/Skeleton.d.ts +1 -0
- package/types/components/Slider.d.ts +5 -0
- package/types/components/Space.d.ts +1 -0
- package/types/components/Stack.d.ts +1 -0
- package/types/components/Stepper.d.ts +1 -0
- package/types/components/Switch.d.ts +1 -0
- package/types/components/SwitchGroup.d.ts +1 -0
- package/types/components/Table.d.ts +1 -0
- package/types/components/Tabs.d.ts +1 -0
- package/types/components/Tag.d.ts +1 -0
- package/types/components/Text.d.ts +1 -0
- package/types/components/TextInput.d.ts +1 -0
- package/types/components/Textarea.d.ts +1 -0
- package/types/components/Timeline.d.ts +1 -0
- package/types/components/Title.d.ts +1 -0
- package/types/components/Toast.d.ts +1 -0
- package/types/components/ToastStack.d.ts +1 -0
- package/types/components/Tooltip.d.ts +1 -0
- package/types/hooks/useDisclosure.d.ts +1 -0
- package/types/index.d.ts +93 -0
- package/types/theme/icons.d.ts +10 -0
- package/types/theme/styles.d.ts +1 -0
- package/types/theme/theme.d.ts +2 -0
- package/types/utils.d.ts +12 -0
|
@@ -0,0 +1,3605 @@
|
|
|
1
|
+
var zt="granular-ui-styles",Ir=new URL("./fonts/Poppins-400.ttf",import.meta.url).href,Br=new URL("./fonts/Poppins-500.ttf",import.meta.url).href,Ar=new URL("./fonts/Poppins-600.ttf",import.meta.url).href,Fr=new URL("./fonts/Poppins-700.ttf",import.meta.url).href,jr=new URL("./fonts/Arimo-400.ttf",import.meta.url).href,Er=new URL("./fonts/Arimo-500.ttf",import.meta.url).href,Rr=new URL("./fonts/Arimo-600.ttf",import.meta.url).href,Hr=new URL("./fonts/Arimo-700.ttf",import.meta.url).href,Or=new URL("./fonts/Inter-400.woff2",import.meta.url).href,qr=new URL("./fonts/Inter-500.woff2",import.meta.url).href,Yr=new URL("./fonts/Inter-600.woff2",import.meta.url).href,Wr=new URL("./fonts/Inter-700.woff2",import.meta.url).href,Gr=`
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Poppins';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src: url('${Ir}') format('truetype');
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Poppins';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url('${Br}') format('truetype');
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Poppins';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
font-display: swap;
|
|
21
|
+
src: url('${Ar}') format('truetype');
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: 'Poppins';
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
src: url('${Fr}') format('truetype');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@font-face {
|
|
32
|
+
font-family: 'Arimo';
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
src: url('${jr}') format('truetype');
|
|
37
|
+
}
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'Arimo';
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
src: url('${Er}') format('truetype');
|
|
44
|
+
}
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: 'Arimo';
|
|
47
|
+
font-style: normal;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
src: url('${Rr}') format('truetype');
|
|
51
|
+
}
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: 'Arimo';
|
|
54
|
+
font-style: normal;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
font-display: swap;
|
|
57
|
+
src: url('${Hr}') format('truetype');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: 'Inter';
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-display: swap;
|
|
65
|
+
src: url('${Or}') format('woff2');
|
|
66
|
+
}
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: 'Inter';
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
font-display: swap;
|
|
72
|
+
src: url('${qr}') format('woff2');
|
|
73
|
+
}
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: 'Inter';
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
font-display: swap;
|
|
79
|
+
src: url('${Yr}') format('woff2');
|
|
80
|
+
}
|
|
81
|
+
@font-face {
|
|
82
|
+
font-family: 'Inter';
|
|
83
|
+
font-style: normal;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
font-display: swap;
|
|
86
|
+
src: url('${Wr}') format('woff2');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:root {
|
|
90
|
+
/* Color scales - base colors */
|
|
91
|
+
--g-ui-white: #ffffff;
|
|
92
|
+
--g-ui-black: #000000;
|
|
93
|
+
|
|
94
|
+
--g-ui-gray-50: #f9fafb;
|
|
95
|
+
--g-ui-gray-100: #f2f4f7;
|
|
96
|
+
--g-ui-gray-200: #e4e7ec;
|
|
97
|
+
--g-ui-gray-300: #cdd1d9;
|
|
98
|
+
--g-ui-gray-400: #98a2b3;
|
|
99
|
+
--g-ui-gray-500: #667085;
|
|
100
|
+
--g-ui-gray-600: #475467;
|
|
101
|
+
--g-ui-gray-700: #344054;
|
|
102
|
+
--g-ui-gray-800: #1d2939;
|
|
103
|
+
--g-ui-gray-900: #101828;
|
|
104
|
+
--g-ui-gray-950: #0c111d;
|
|
105
|
+
|
|
106
|
+
--g-ui-red-50: #fef3f2;
|
|
107
|
+
--g-ui-red-100: #fee4e2;
|
|
108
|
+
--g-ui-red-200: #fecdca;
|
|
109
|
+
--g-ui-red-300: #fda29b;
|
|
110
|
+
--g-ui-red-400: #f97066;
|
|
111
|
+
--g-ui-red-500: #f04438;
|
|
112
|
+
--g-ui-red-600: #d92d20;
|
|
113
|
+
--g-ui-red-700: #b42318;
|
|
114
|
+
--g-ui-red-800: #912018;
|
|
115
|
+
--g-ui-red-900: #7a271a;
|
|
116
|
+
--g-ui-red-950: #55160c;
|
|
117
|
+
|
|
118
|
+
--g-ui-orange-50: #fff6ed;
|
|
119
|
+
--g-ui-orange-100: #ffead5;
|
|
120
|
+
--g-ui-orange-200: #fddcab;
|
|
121
|
+
--g-ui-orange-300: #feb273;
|
|
122
|
+
--g-ui-orange-400: #fd853a;
|
|
123
|
+
--g-ui-orange-500: #ef6820;
|
|
124
|
+
--g-ui-orange-600: #e04f16;
|
|
125
|
+
--g-ui-orange-700: #b93815;
|
|
126
|
+
--g-ui-orange-800: #932f19;
|
|
127
|
+
--g-ui-orange-900: #7a2e0e;
|
|
128
|
+
--g-ui-orange-950: #511c10;
|
|
129
|
+
|
|
130
|
+
--g-ui-green-50: #ecfdf3;
|
|
131
|
+
--g-ui-green-100: #dcfae6;
|
|
132
|
+
--g-ui-green-200: #abefc6;
|
|
133
|
+
--g-ui-green-300: #75e0a7;
|
|
134
|
+
--g-ui-green-400: #47cd89;
|
|
135
|
+
--g-ui-green-500: #17b26a;
|
|
136
|
+
--g-ui-green-600: #079455;
|
|
137
|
+
--g-ui-green-700: #067647;
|
|
138
|
+
--g-ui-green-800: #085d3a;
|
|
139
|
+
--g-ui-green-900: #074d31;
|
|
140
|
+
--g-ui-green-950: #053321;
|
|
141
|
+
|
|
142
|
+
--g-ui-blue-50: #eff8ff;
|
|
143
|
+
--g-ui-blue-100: #d1e9ff;
|
|
144
|
+
--g-ui-blue-200: #b2ddff;
|
|
145
|
+
--g-ui-blue-300: #84caff;
|
|
146
|
+
--g-ui-blue-400: #53b1fd;
|
|
147
|
+
--g-ui-blue-500: #2e90fa;
|
|
148
|
+
--g-ui-blue-600: #1570ef;
|
|
149
|
+
--g-ui-blue-700: #175cd3;
|
|
150
|
+
--g-ui-blue-800: #1849a9;
|
|
151
|
+
--g-ui-blue-900: #194185;
|
|
152
|
+
--g-ui-blue-950: #102a56;
|
|
153
|
+
|
|
154
|
+
--g-ui-yellow-50: #fefbe8;
|
|
155
|
+
--g-ui-yellow-100: #fef7c3;
|
|
156
|
+
--g-ui-yellow-200: #feee95;
|
|
157
|
+
--g-ui-yellow-300: #fde272;
|
|
158
|
+
--g-ui-yellow-400: #fac515;
|
|
159
|
+
--g-ui-yellow-500: #eaaa08;
|
|
160
|
+
--g-ui-yellow-600: #ca8504;
|
|
161
|
+
--g-ui-yellow-700: #a15c07;
|
|
162
|
+
--g-ui-yellow-800: #854a0e;
|
|
163
|
+
--g-ui-yellow-900: #713b12;
|
|
164
|
+
--g-ui-yellow-950: #422006;
|
|
165
|
+
|
|
166
|
+
--g-ui-teal-50: #f0fdf9;
|
|
167
|
+
--g-ui-teal-100: #ccfbef;
|
|
168
|
+
--g-ui-teal-200: #99f6e0;
|
|
169
|
+
--g-ui-teal-300: #5fe9d0;
|
|
170
|
+
--g-ui-teal-400: #2ed3b7;
|
|
171
|
+
--g-ui-teal-500: #15b79e;
|
|
172
|
+
--g-ui-teal-600: #0e9384;
|
|
173
|
+
--g-ui-teal-700: #107569;
|
|
174
|
+
--g-ui-teal-800: #125d56;
|
|
175
|
+
--g-ui-teal-900: #134e48;
|
|
176
|
+
--g-ui-teal-950: #0a2926;
|
|
177
|
+
|
|
178
|
+
--g-ui-purple-50: #f4f3ff;
|
|
179
|
+
--g-ui-purple-100: #ebe9fe;
|
|
180
|
+
--g-ui-purple-200: #d9d6fe;
|
|
181
|
+
--g-ui-purple-300: #bdb4fe;
|
|
182
|
+
--g-ui-purple-400: #9b8afb;
|
|
183
|
+
--g-ui-purple-500: #7a5af8;
|
|
184
|
+
--g-ui-purple-600: #6938ef;
|
|
185
|
+
--g-ui-purple-700: #5925dc;
|
|
186
|
+
--g-ui-purple-800: #4a1fb8;
|
|
187
|
+
--g-ui-purple-900: #3e1c96;
|
|
188
|
+
--g-ui-purple-950: #27115a;
|
|
189
|
+
|
|
190
|
+
--g-ui-pink-50: #fdf2fa;
|
|
191
|
+
--g-ui-pink-100: #fce7f6;
|
|
192
|
+
--g-ui-pink-200: #fcceee;
|
|
193
|
+
--g-ui-pink-300: #faa7e0;
|
|
194
|
+
--g-ui-pink-400: #f670c7;
|
|
195
|
+
--g-ui-pink-500: #ee46bc;
|
|
196
|
+
--g-ui-pink-600: #dd2590;
|
|
197
|
+
--g-ui-pink-700: #c11574;
|
|
198
|
+
--g-ui-pink-800: #9e165f;
|
|
199
|
+
--g-ui-pink-900: #851651;
|
|
200
|
+
--g-ui-pink-950: #4e0d30;
|
|
201
|
+
|
|
202
|
+
--g-ui-cyan-50: #ecfdff;
|
|
203
|
+
--g-ui-cyan-100: #cff9fe;
|
|
204
|
+
--g-ui-cyan-200: #a5f0fc;
|
|
205
|
+
--g-ui-cyan-300: #67e3f9;
|
|
206
|
+
--g-ui-cyan-400: #22ccee;
|
|
207
|
+
--g-ui-cyan-500: #06aed4;
|
|
208
|
+
--g-ui-cyan-600: #088ab2;
|
|
209
|
+
--g-ui-cyan-700: #0e7090;
|
|
210
|
+
--g-ui-cyan-800: #155b75;
|
|
211
|
+
--g-ui-cyan-900: #164c63;
|
|
212
|
+
--g-ui-cyan-950: #0d2d3a;
|
|
213
|
+
|
|
214
|
+
/* Semantic colors - Dark theme (default) */
|
|
215
|
+
--g-ui-bg: var(--g-ui-gray-950);
|
|
216
|
+
--g-ui-bg-subtle: var(--g-ui-gray-900);
|
|
217
|
+
--g-ui-bg-muted: var(--g-ui-gray-800);
|
|
218
|
+
--g-ui-bg-emphasized: var(--g-ui-gray-700);
|
|
219
|
+
--g-ui-bg-inverted: var(--g-ui-gray-50);
|
|
220
|
+
--g-ui-bg-panel: var(--g-ui-gray-900);
|
|
221
|
+
--g-ui-bg-error: var(--g-ui-red-950);
|
|
222
|
+
--g-ui-bg-warning: var(--g-ui-orange-950);
|
|
223
|
+
--g-ui-bg-success: var(--g-ui-green-950);
|
|
224
|
+
--g-ui-bg-info: var(--g-ui-blue-950);
|
|
225
|
+
|
|
226
|
+
--g-ui-fg: var(--g-ui-gray-50);
|
|
227
|
+
--g-ui-fg-muted: var(--g-ui-gray-400);
|
|
228
|
+
--g-ui-fg-subtle: var(--g-ui-gray-500);
|
|
229
|
+
--g-ui-fg-inverted: var(--g-ui-gray-950);
|
|
230
|
+
--g-ui-fg-error: var(--g-ui-red-400);
|
|
231
|
+
--g-ui-fg-warning: var(--g-ui-orange-300);
|
|
232
|
+
--g-ui-fg-success: var(--g-ui-green-400);
|
|
233
|
+
--g-ui-fg-info: var(--g-ui-blue-400);
|
|
234
|
+
|
|
235
|
+
--g-ui-border: var(--g-ui-gray-700);
|
|
236
|
+
--g-ui-border-subtle: var(--g-ui-gray-900);
|
|
237
|
+
--g-ui-border-muted: var(--g-ui-gray-800);
|
|
238
|
+
--g-ui-border-emphasized: var(--g-ui-gray-600);
|
|
239
|
+
--g-ui-border-inverted: var(--g-ui-gray-200);
|
|
240
|
+
--g-ui-border-error: var(--g-ui-red-400);
|
|
241
|
+
--g-ui-border-warning: var(--g-ui-orange-400);
|
|
242
|
+
--g-ui-border-success: var(--g-ui-green-400);
|
|
243
|
+
--g-ui-border-info: var(--g-ui-blue-400);
|
|
244
|
+
|
|
245
|
+
/* Gray semantic */
|
|
246
|
+
--g-ui-gray-contrast: var(--g-ui-gray-950);
|
|
247
|
+
--g-ui-gray-fg: var(--g-ui-gray-200);
|
|
248
|
+
--g-ui-gray-subtle: var(--g-ui-gray-800);
|
|
249
|
+
--g-ui-gray-muted: var(--g-ui-gray-700);
|
|
250
|
+
--g-ui-gray-emphasized: var(--g-ui-gray-600);
|
|
251
|
+
--g-ui-gray-solid: var(--g-ui-gray-50);
|
|
252
|
+
--g-ui-gray-focus-ring: var(--g-ui-gray-400);
|
|
253
|
+
--g-ui-gray-border: var(--g-ui-gray-700);
|
|
254
|
+
|
|
255
|
+
/* Red semantic */
|
|
256
|
+
--g-ui-red-contrast: white;
|
|
257
|
+
--g-ui-red-fg: var(--g-ui-red-300);
|
|
258
|
+
--g-ui-red-subtle: var(--g-ui-red-900);
|
|
259
|
+
--g-ui-red-muted: var(--g-ui-red-800);
|
|
260
|
+
--g-ui-red-emphasized: var(--g-ui-red-700);
|
|
261
|
+
--g-ui-red-solid: var(--g-ui-red-600);
|
|
262
|
+
--g-ui-red-focus-ring: var(--g-ui-red-500);
|
|
263
|
+
--g-ui-red-border: var(--g-ui-red-400);
|
|
264
|
+
|
|
265
|
+
/* Orange semantic */
|
|
266
|
+
--g-ui-orange-contrast: black;
|
|
267
|
+
--g-ui-orange-fg: var(--g-ui-orange-300);
|
|
268
|
+
--g-ui-orange-subtle: var(--g-ui-orange-900);
|
|
269
|
+
--g-ui-orange-muted: var(--g-ui-orange-800);
|
|
270
|
+
--g-ui-orange-emphasized: var(--g-ui-orange-700);
|
|
271
|
+
--g-ui-orange-solid: var(--g-ui-orange-500);
|
|
272
|
+
--g-ui-orange-focus-ring: var(--g-ui-orange-500);
|
|
273
|
+
--g-ui-orange-border: var(--g-ui-orange-400);
|
|
274
|
+
|
|
275
|
+
/* Green semantic */
|
|
276
|
+
--g-ui-green-contrast: white;
|
|
277
|
+
--g-ui-green-fg: var(--g-ui-green-300);
|
|
278
|
+
--g-ui-green-subtle: var(--g-ui-green-900);
|
|
279
|
+
--g-ui-green-muted: var(--g-ui-green-800);
|
|
280
|
+
--g-ui-green-emphasized: var(--g-ui-green-700);
|
|
281
|
+
--g-ui-green-solid: var(--g-ui-green-600);
|
|
282
|
+
--g-ui-green-focus-ring: var(--g-ui-green-500);
|
|
283
|
+
--g-ui-green-border: var(--g-ui-green-400);
|
|
284
|
+
|
|
285
|
+
/* Blue semantic */
|
|
286
|
+
--g-ui-blue-contrast: white;
|
|
287
|
+
--g-ui-blue-fg: var(--g-ui-blue-300);
|
|
288
|
+
--g-ui-blue-subtle: var(--g-ui-blue-900);
|
|
289
|
+
--g-ui-blue-muted: var(--g-ui-blue-800);
|
|
290
|
+
--g-ui-blue-emphasized: var(--g-ui-blue-700);
|
|
291
|
+
--g-ui-blue-solid: var(--g-ui-blue-600);
|
|
292
|
+
--g-ui-blue-focus-ring: var(--g-ui-blue-500);
|
|
293
|
+
--g-ui-blue-border: var(--g-ui-blue-400);
|
|
294
|
+
|
|
295
|
+
/* Yellow semantic */
|
|
296
|
+
--g-ui-yellow-contrast: black;
|
|
297
|
+
--g-ui-yellow-fg: var(--g-ui-yellow-300);
|
|
298
|
+
--g-ui-yellow-subtle: var(--g-ui-yellow-900);
|
|
299
|
+
--g-ui-yellow-muted: var(--g-ui-yellow-800);
|
|
300
|
+
--g-ui-yellow-emphasized: var(--g-ui-yellow-700);
|
|
301
|
+
--g-ui-yellow-solid: var(--g-ui-yellow-300);
|
|
302
|
+
--g-ui-yellow-focus-ring: var(--g-ui-yellow-500);
|
|
303
|
+
--g-ui-yellow-border: var(--g-ui-yellow-500);
|
|
304
|
+
|
|
305
|
+
/* Teal semantic */
|
|
306
|
+
--g-ui-teal-contrast: white;
|
|
307
|
+
--g-ui-teal-fg: var(--g-ui-teal-300);
|
|
308
|
+
--g-ui-teal-subtle: var(--g-ui-teal-900);
|
|
309
|
+
--g-ui-teal-muted: var(--g-ui-teal-800);
|
|
310
|
+
--g-ui-teal-emphasized: var(--g-ui-teal-700);
|
|
311
|
+
--g-ui-teal-solid: var(--g-ui-teal-600);
|
|
312
|
+
--g-ui-teal-focus-ring: var(--g-ui-teal-500);
|
|
313
|
+
--g-ui-teal-border: var(--g-ui-teal-400);
|
|
314
|
+
|
|
315
|
+
/* Purple semantic */
|
|
316
|
+
--g-ui-purple-contrast: white;
|
|
317
|
+
--g-ui-purple-fg: var(--g-ui-purple-300);
|
|
318
|
+
--g-ui-purple-subtle: var(--g-ui-purple-900);
|
|
319
|
+
--g-ui-purple-muted: var(--g-ui-purple-800);
|
|
320
|
+
--g-ui-purple-emphasized: var(--g-ui-purple-700);
|
|
321
|
+
--g-ui-purple-solid: var(--g-ui-purple-600);
|
|
322
|
+
--g-ui-purple-focus-ring: var(--g-ui-purple-500);
|
|
323
|
+
--g-ui-purple-border: var(--g-ui-purple-400);
|
|
324
|
+
|
|
325
|
+
/* Pink semantic */
|
|
326
|
+
--g-ui-pink-contrast: white;
|
|
327
|
+
--g-ui-pink-fg: var(--g-ui-pink-300);
|
|
328
|
+
--g-ui-pink-subtle: var(--g-ui-pink-900);
|
|
329
|
+
--g-ui-pink-muted: var(--g-ui-pink-800);
|
|
330
|
+
--g-ui-pink-emphasized: var(--g-ui-pink-700);
|
|
331
|
+
--g-ui-pink-solid: var(--g-ui-pink-600);
|
|
332
|
+
--g-ui-pink-focus-ring: var(--g-ui-pink-500);
|
|
333
|
+
--g-ui-pink-border: var(--g-ui-pink-400);
|
|
334
|
+
|
|
335
|
+
/* Cyan semantic */
|
|
336
|
+
--g-ui-cyan-contrast: white;
|
|
337
|
+
--g-ui-cyan-fg: var(--g-ui-cyan-300);
|
|
338
|
+
--g-ui-cyan-subtle: var(--g-ui-cyan-900);
|
|
339
|
+
--g-ui-cyan-muted: var(--g-ui-cyan-800);
|
|
340
|
+
--g-ui-cyan-emphasized: var(--g-ui-cyan-700);
|
|
341
|
+
--g-ui-cyan-solid: var(--g-ui-cyan-600);
|
|
342
|
+
--g-ui-cyan-focus-ring: var(--g-ui-cyan-500);
|
|
343
|
+
--g-ui-cyan-border: var(--g-ui-cyan-400);
|
|
344
|
+
|
|
345
|
+
/* Primary (indigo #6366f1 - Linear inspired) */
|
|
346
|
+
--g-ui-primary: #6366f1;
|
|
347
|
+
--g-ui-primary-hover: #818cf8;
|
|
348
|
+
--g-ui-primary-active: #4f46e5;
|
|
349
|
+
--g-ui-primary-subtle: rgba(99, 102, 241, 0.1);
|
|
350
|
+
--g-ui-primary-muted: rgba(99, 102, 241, 0.2);
|
|
351
|
+
--g-ui-primary-emphasized: rgba(99, 102, 241, 0.3);
|
|
352
|
+
--g-ui-primary-fg: var(--g-ui-white);
|
|
353
|
+
|
|
354
|
+
/* Aliases for common usage */
|
|
355
|
+
--g-ui-success: var(--g-ui-green-500);
|
|
356
|
+
--g-ui-danger: var(--g-ui-red-500);
|
|
357
|
+
--g-ui-warning: var(--g-ui-yellow-500);
|
|
358
|
+
--g-ui-info: var(--g-ui-cyan-500);
|
|
359
|
+
|
|
360
|
+
/* Shadows - Dark theme (dual-layer, Linear/Vercel inspired) */
|
|
361
|
+
--g-ui-shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.48);
|
|
362
|
+
--g-ui-shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.48), 0px 1px 2px rgba(0, 0, 0, 0.32);
|
|
363
|
+
--g-ui-shadow-md: 0px 4px 8px -2px rgba(0, 0, 0, 0.48), 0px 2px 4px -2px rgba(0, 0, 0, 0.32);
|
|
364
|
+
--g-ui-shadow-lg: 0px 12px 16px -4px rgba(0, 0, 0, 0.48), 0px 4px 6px -2px rgba(0, 0, 0, 0.24);
|
|
365
|
+
--g-ui-shadow-xl: 0px 20px 24px -4px rgba(0, 0, 0, 0.48), 0px 8px 8px -4px rgba(0, 0, 0, 0.24);
|
|
366
|
+
--g-ui-shadow-2xl: 0px 24px 48px -12px rgba(0, 0, 0, 0.64);
|
|
367
|
+
|
|
368
|
+
/* Legacy (compatibility) */
|
|
369
|
+
--g-ui-text: var(--g-ui-fg);
|
|
370
|
+
--g-ui-muted: var(--g-ui-fg-muted);
|
|
371
|
+
--g-ui-surface: var(--g-ui-bg-panel);
|
|
372
|
+
--g-ui-primary-strong: var(--g-ui-primary-active);
|
|
373
|
+
--g-ui-shadow: var(--g-ui-shadow-md);
|
|
374
|
+
|
|
375
|
+
/* Misc */
|
|
376
|
+
--g-ui-radius: 4px;
|
|
377
|
+
--g-ui-font: 'Inter', 'Arimo', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
378
|
+
--g-ui-space-2: 2px;
|
|
379
|
+
--g-ui-space-3: 3px;
|
|
380
|
+
--g-ui-space-4: 4px;
|
|
381
|
+
--g-ui-space-5: 5px;
|
|
382
|
+
--g-ui-space-6: 6px;
|
|
383
|
+
--g-ui-space-7: 7px;
|
|
384
|
+
--g-ui-space-8: 8px;
|
|
385
|
+
--g-ui-space-9: 9px;
|
|
386
|
+
--g-ui-space-10: 10px;
|
|
387
|
+
--g-ui-space-12: 12px;
|
|
388
|
+
--g-ui-space-13: 13px;
|
|
389
|
+
--g-ui-space-14: 14px;
|
|
390
|
+
--g-ui-space-15: 15px;
|
|
391
|
+
--g-ui-space-16: 16px;
|
|
392
|
+
--g-ui-space-18: 18px;
|
|
393
|
+
--g-ui-space-20: 20px;
|
|
394
|
+
--g-ui-space-22: 22px;
|
|
395
|
+
--g-ui-space-24: 24px;
|
|
396
|
+
--g-ui-space-26: 26px;
|
|
397
|
+
--g-ui-space-28: 28px;
|
|
398
|
+
--g-ui-space-30: 30px;
|
|
399
|
+
--g-ui-space-32: 32px;
|
|
400
|
+
--g-ui-space-36: 36px;
|
|
401
|
+
--g-ui-space-38: 38px;
|
|
402
|
+
--g-ui-space-40: 40px;
|
|
403
|
+
--g-ui-container-padding: var(--g-ui-space-16);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.g-ui-theme-dark {
|
|
407
|
+
--g-ui-bg: var(--g-ui-gray-950);
|
|
408
|
+
--g-ui-bg-subtle: var(--g-ui-gray-800);
|
|
409
|
+
--g-ui-bg-muted: var(--g-ui-gray-700);
|
|
410
|
+
--g-ui-bg-emphasized: var(--g-ui-gray-600);
|
|
411
|
+
--g-ui-bg-inverted: var(--g-ui-gray-50);
|
|
412
|
+
--g-ui-bg-panel: var(--g-ui-gray-900);
|
|
413
|
+
|
|
414
|
+
--g-ui-fg: var(--g-ui-gray-50);
|
|
415
|
+
--g-ui-fg-muted: var(--g-ui-gray-400);
|
|
416
|
+
--g-ui-fg-subtle: var(--g-ui-gray-500);
|
|
417
|
+
--g-ui-fg-inverted: var(--g-ui-gray-950);
|
|
418
|
+
|
|
419
|
+
--g-ui-border: var(--g-ui-gray-700);
|
|
420
|
+
--g-ui-border-subtle: var(--g-ui-gray-900);
|
|
421
|
+
--g-ui-border-muted: var(--g-ui-gray-800);
|
|
422
|
+
--g-ui-border-emphasized: var(--g-ui-gray-600);
|
|
423
|
+
|
|
424
|
+
/* Gray semantic */
|
|
425
|
+
--g-ui-gray-contrast: var(--g-ui-gray-950);
|
|
426
|
+
--g-ui-gray-subtle: var(--g-ui-gray-800);
|
|
427
|
+
--g-ui-gray-muted: var(--g-ui-gray-700);
|
|
428
|
+
--g-ui-gray-emphasized: var(--g-ui-gray-600);
|
|
429
|
+
--g-ui-gray-solid: var(--g-ui-gray-50);
|
|
430
|
+
--g-ui-gray-border: var(--g-ui-gray-700);
|
|
431
|
+
|
|
432
|
+
/* Primary (dark mode) */
|
|
433
|
+
--g-ui-primary-hover: #818cf8;
|
|
434
|
+
--g-ui-primary-active: #4f46e5;
|
|
435
|
+
|
|
436
|
+
--g-ui-shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.48);
|
|
437
|
+
--g-ui-shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.48), 0px 1px 2px rgba(0, 0, 0, 0.32);
|
|
438
|
+
--g-ui-shadow-md: 0px 4px 8px -2px rgba(0, 0, 0, 0.48), 0px 2px 4px -2px rgba(0, 0, 0, 0.32);
|
|
439
|
+
--g-ui-shadow-lg: 0px 12px 16px -4px rgba(0, 0, 0, 0.48), 0px 4px 6px -2px rgba(0, 0, 0, 0.24);
|
|
440
|
+
--g-ui-shadow-xl: 0px 20px 24px -4px rgba(0, 0, 0, 0.48), 0px 8px 8px -4px rgba(0, 0, 0, 0.24);
|
|
441
|
+
--g-ui-shadow-2xl: 0px 24px 48px -12px rgba(0, 0, 0, 0.64);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.g-ui-theme-light {
|
|
445
|
+
/* Semantic colors - Light theme */
|
|
446
|
+
--g-ui-bg: var(--g-ui-white);
|
|
447
|
+
--g-ui-bg-subtle: var(--g-ui-gray-50);
|
|
448
|
+
--g-ui-bg-muted: var(--g-ui-gray-100);
|
|
449
|
+
--g-ui-bg-emphasized: var(--g-ui-gray-200);
|
|
450
|
+
--g-ui-bg-inverted: var(--g-ui-gray-950);
|
|
451
|
+
--g-ui-bg-panel: var(--g-ui-white);
|
|
452
|
+
--g-ui-bg-error: var(--g-ui-red-50);
|
|
453
|
+
--g-ui-bg-warning: var(--g-ui-orange-50);
|
|
454
|
+
--g-ui-bg-success: var(--g-ui-green-50);
|
|
455
|
+
--g-ui-bg-info: var(--g-ui-blue-50);
|
|
456
|
+
|
|
457
|
+
--g-ui-fg: var(--g-ui-gray-900);
|
|
458
|
+
--g-ui-fg-muted: var(--g-ui-gray-600);
|
|
459
|
+
--g-ui-fg-subtle: var(--g-ui-gray-400);
|
|
460
|
+
--g-ui-fg-inverted: var(--g-ui-gray-50);
|
|
461
|
+
--g-ui-fg-error: var(--g-ui-red-600);
|
|
462
|
+
--g-ui-fg-warning: var(--g-ui-orange-600);
|
|
463
|
+
--g-ui-fg-success: var(--g-ui-green-600);
|
|
464
|
+
--g-ui-fg-info: var(--g-ui-blue-600);
|
|
465
|
+
|
|
466
|
+
/* Legacy override for light theme */
|
|
467
|
+
--g-ui-text: var(--g-ui-fg);
|
|
468
|
+
--g-ui-muted: var(--g-ui-fg-muted);
|
|
469
|
+
|
|
470
|
+
--g-ui-border: var(--g-ui-gray-200);
|
|
471
|
+
--g-ui-border-subtle: var(--g-ui-gray-100);
|
|
472
|
+
--g-ui-border-muted: var(--g-ui-gray-200);
|
|
473
|
+
--g-ui-border-emphasized: var(--g-ui-gray-300);
|
|
474
|
+
--g-ui-border-inverted: var(--g-ui-gray-800);
|
|
475
|
+
--g-ui-border-error: var(--g-ui-red-300);
|
|
476
|
+
--g-ui-border-warning: var(--g-ui-orange-300);
|
|
477
|
+
--g-ui-border-success: var(--g-ui-green-300);
|
|
478
|
+
--g-ui-border-info: var(--g-ui-blue-300);
|
|
479
|
+
|
|
480
|
+
/* Gray semantic */
|
|
481
|
+
--g-ui-gray-contrast: var(--g-ui-gray-50);
|
|
482
|
+
--g-ui-gray-fg: var(--g-ui-gray-700);
|
|
483
|
+
--g-ui-gray-subtle: var(--g-ui-gray-50);
|
|
484
|
+
--g-ui-gray-muted: var(--g-ui-gray-100);
|
|
485
|
+
--g-ui-gray-emphasized: var(--g-ui-gray-200);
|
|
486
|
+
--g-ui-gray-solid: var(--g-ui-gray-900);
|
|
487
|
+
--g-ui-gray-focus-ring: var(--g-ui-gray-400);
|
|
488
|
+
--g-ui-gray-border: var(--g-ui-gray-200);
|
|
489
|
+
|
|
490
|
+
/* Red semantic */
|
|
491
|
+
--g-ui-red-contrast: white;
|
|
492
|
+
--g-ui-red-fg: var(--g-ui-red-600);
|
|
493
|
+
--g-ui-red-subtle: var(--g-ui-red-50);
|
|
494
|
+
--g-ui-red-muted: var(--g-ui-red-100);
|
|
495
|
+
--g-ui-red-emphasized: var(--g-ui-red-200);
|
|
496
|
+
--g-ui-red-solid: var(--g-ui-red-600);
|
|
497
|
+
--g-ui-red-focus-ring: var(--g-ui-red-500);
|
|
498
|
+
--g-ui-red-border: var(--g-ui-red-300);
|
|
499
|
+
|
|
500
|
+
/* Orange semantic */
|
|
501
|
+
--g-ui-orange-contrast: white;
|
|
502
|
+
--g-ui-orange-fg: var(--g-ui-orange-600);
|
|
503
|
+
--g-ui-orange-subtle: var(--g-ui-orange-50);
|
|
504
|
+
--g-ui-orange-muted: var(--g-ui-orange-100);
|
|
505
|
+
--g-ui-orange-emphasized: var(--g-ui-orange-200);
|
|
506
|
+
--g-ui-orange-solid: var(--g-ui-orange-600);
|
|
507
|
+
--g-ui-orange-focus-ring: var(--g-ui-orange-500);
|
|
508
|
+
--g-ui-orange-border: var(--g-ui-orange-300);
|
|
509
|
+
|
|
510
|
+
/* Green semantic */
|
|
511
|
+
--g-ui-green-contrast: white;
|
|
512
|
+
--g-ui-green-fg: var(--g-ui-green-600);
|
|
513
|
+
--g-ui-green-subtle: var(--g-ui-green-50);
|
|
514
|
+
--g-ui-green-muted: var(--g-ui-green-100);
|
|
515
|
+
--g-ui-green-emphasized: var(--g-ui-green-200);
|
|
516
|
+
--g-ui-green-solid: var(--g-ui-green-600);
|
|
517
|
+
--g-ui-green-focus-ring: var(--g-ui-green-500);
|
|
518
|
+
--g-ui-green-border: var(--g-ui-green-300);
|
|
519
|
+
|
|
520
|
+
/* Blue semantic */
|
|
521
|
+
--g-ui-blue-contrast: white;
|
|
522
|
+
--g-ui-blue-fg: var(--g-ui-blue-600);
|
|
523
|
+
--g-ui-blue-subtle: var(--g-ui-blue-50);
|
|
524
|
+
--g-ui-blue-muted: var(--g-ui-blue-100);
|
|
525
|
+
--g-ui-blue-emphasized: var(--g-ui-blue-200);
|
|
526
|
+
--g-ui-blue-solid: var(--g-ui-blue-600);
|
|
527
|
+
--g-ui-blue-focus-ring: var(--g-ui-blue-500);
|
|
528
|
+
--g-ui-blue-border: var(--g-ui-blue-300);
|
|
529
|
+
|
|
530
|
+
/* Yellow semantic */
|
|
531
|
+
--g-ui-yellow-contrast: black;
|
|
532
|
+
--g-ui-yellow-fg: var(--g-ui-yellow-700);
|
|
533
|
+
--g-ui-yellow-subtle: var(--g-ui-yellow-50);
|
|
534
|
+
--g-ui-yellow-muted: var(--g-ui-yellow-100);
|
|
535
|
+
--g-ui-yellow-emphasized: var(--g-ui-yellow-200);
|
|
536
|
+
--g-ui-yellow-solid: var(--g-ui-yellow-400);
|
|
537
|
+
--g-ui-yellow-focus-ring: var(--g-ui-yellow-500);
|
|
538
|
+
--g-ui-yellow-border: var(--g-ui-yellow-300);
|
|
539
|
+
|
|
540
|
+
/* Teal semantic */
|
|
541
|
+
--g-ui-teal-contrast: white;
|
|
542
|
+
--g-ui-teal-fg: var(--g-ui-teal-600);
|
|
543
|
+
--g-ui-teal-subtle: var(--g-ui-teal-50);
|
|
544
|
+
--g-ui-teal-muted: var(--g-ui-teal-100);
|
|
545
|
+
--g-ui-teal-emphasized: var(--g-ui-teal-200);
|
|
546
|
+
--g-ui-teal-solid: var(--g-ui-teal-600);
|
|
547
|
+
--g-ui-teal-focus-ring: var(--g-ui-teal-500);
|
|
548
|
+
--g-ui-teal-border: var(--g-ui-teal-300);
|
|
549
|
+
|
|
550
|
+
/* Purple semantic */
|
|
551
|
+
--g-ui-purple-contrast: white;
|
|
552
|
+
--g-ui-purple-fg: var(--g-ui-purple-600);
|
|
553
|
+
--g-ui-purple-subtle: var(--g-ui-purple-50);
|
|
554
|
+
--g-ui-purple-muted: var(--g-ui-purple-100);
|
|
555
|
+
--g-ui-purple-emphasized: var(--g-ui-purple-200);
|
|
556
|
+
--g-ui-purple-solid: var(--g-ui-purple-600);
|
|
557
|
+
--g-ui-purple-focus-ring: var(--g-ui-purple-500);
|
|
558
|
+
--g-ui-purple-border: var(--g-ui-purple-300);
|
|
559
|
+
|
|
560
|
+
/* Pink semantic */
|
|
561
|
+
--g-ui-pink-contrast: white;
|
|
562
|
+
--g-ui-pink-fg: var(--g-ui-pink-600);
|
|
563
|
+
--g-ui-pink-subtle: var(--g-ui-pink-50);
|
|
564
|
+
--g-ui-pink-muted: var(--g-ui-pink-100);
|
|
565
|
+
--g-ui-pink-emphasized: var(--g-ui-pink-200);
|
|
566
|
+
--g-ui-pink-solid: var(--g-ui-pink-600);
|
|
567
|
+
--g-ui-pink-focus-ring: var(--g-ui-pink-500);
|
|
568
|
+
--g-ui-pink-border: var(--g-ui-pink-300);
|
|
569
|
+
|
|
570
|
+
/* Cyan semantic */
|
|
571
|
+
--g-ui-cyan-contrast: white;
|
|
572
|
+
--g-ui-cyan-fg: var(--g-ui-cyan-600);
|
|
573
|
+
--g-ui-cyan-subtle: var(--g-ui-cyan-50);
|
|
574
|
+
--g-ui-cyan-muted: var(--g-ui-cyan-100);
|
|
575
|
+
--g-ui-cyan-emphasized: var(--g-ui-cyan-200);
|
|
576
|
+
--g-ui-cyan-solid: var(--g-ui-cyan-600);
|
|
577
|
+
--g-ui-cyan-focus-ring: var(--g-ui-cyan-500);
|
|
578
|
+
--g-ui-cyan-border: var(--g-ui-cyan-300);
|
|
579
|
+
|
|
580
|
+
/* Primary overrides for light theme */
|
|
581
|
+
--g-ui-primary-hover: #4f46e5;
|
|
582
|
+
--g-ui-primary-active: #4338ca;
|
|
583
|
+
--g-ui-primary-subtle: rgba(99, 102, 241, 0.06);
|
|
584
|
+
--g-ui-primary-muted: rgba(99, 102, 241, 0.12);
|
|
585
|
+
--g-ui-primary-emphasized: rgba(99, 102, 241, 0.2);
|
|
586
|
+
|
|
587
|
+
/* Shadows - Light theme (dual-layer, Untitled UI inspired) */
|
|
588
|
+
--g-ui-shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
589
|
+
--g-ui-shadow-sm: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
|
|
590
|
+
--g-ui-shadow-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
|
|
591
|
+
--g-ui-shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
592
|
+
--g-ui-shadow-xl: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03);
|
|
593
|
+
--g-ui-shadow-2xl: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
|
|
594
|
+
}
|
|
595
|
+
body {
|
|
596
|
+
margin: 0;
|
|
597
|
+
padding: 0;
|
|
598
|
+
background: var(--g-ui-bg);
|
|
599
|
+
color: var(--g-ui-text);
|
|
600
|
+
font-family: var(--g-ui-font);
|
|
601
|
+
font-size: 14px;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.g-ui-reset {
|
|
605
|
+
font-family: var(--g-ui-font);
|
|
606
|
+
color: var(--g-ui-text);
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.g-ui-text {
|
|
610
|
+
font-family: var(--g-ui-font);
|
|
611
|
+
font-weight: 400;
|
|
612
|
+
color: var(--g-ui-text);
|
|
613
|
+
}
|
|
614
|
+
.g-ui-text-size-xs { font-size: 12px; line-height: 1.4; }
|
|
615
|
+
.g-ui-text-size-sm { font-size: 14px; line-height: 1.45; }
|
|
616
|
+
.g-ui-text-size-md { font-size: 16px; line-height: 1.5; }
|
|
617
|
+
.g-ui-text-size-lg { font-size: 18px; line-height: 1.55; }
|
|
618
|
+
.g-ui-text-size-xl { font-size: 20px; line-height: 1.6; }
|
|
619
|
+
.g-ui-text-weight-400 { font-weight: 400; }
|
|
620
|
+
.g-ui-text-weight-500 { font-weight: 500; }
|
|
621
|
+
.g-ui-text-weight-600 { font-weight: 600; }
|
|
622
|
+
.g-ui-text-weight-700 { font-weight: 700; }
|
|
623
|
+
.g-ui-text-dimmed { color: var(--g-ui-muted); }
|
|
624
|
+
.g-ui-text-muted { color: var(--g-ui-muted); }
|
|
625
|
+
.g-ui-text-primary { color: var(--g-ui-primary); }
|
|
626
|
+
.g-ui-text-success { color: var(--g-ui-success); }
|
|
627
|
+
.g-ui-text-danger { color: var(--g-ui-danger); }
|
|
628
|
+
.g-ui-text-align-left { text-align: left; }
|
|
629
|
+
.g-ui-text-align-center { text-align: center; }
|
|
630
|
+
.g-ui-text-align-right { text-align: right; }
|
|
631
|
+
|
|
632
|
+
.g-ui-title {
|
|
633
|
+
font-family: var(--g-ui-font);
|
|
634
|
+
color: var(--g-ui-text);
|
|
635
|
+
margin: 0;
|
|
636
|
+
font-weight: 700;
|
|
637
|
+
}
|
|
638
|
+
.g-ui-title-order-1 { font-size: 38px; }
|
|
639
|
+
.g-ui-title-order-2 { font-size: 32px; }
|
|
640
|
+
.g-ui-title-order-3 { font-size: 28px; }
|
|
641
|
+
.g-ui-title-order-4 { font-size: 22px; }
|
|
642
|
+
.g-ui-title-order-5 { font-size: 18px; }
|
|
643
|
+
.g-ui-title-order-6 { font-size: 16px; }
|
|
644
|
+
|
|
645
|
+
.g-ui-stack {
|
|
646
|
+
display: flex;
|
|
647
|
+
flex-direction: column;
|
|
648
|
+
gap: var(--g-ui-stack-gap, 0);
|
|
649
|
+
}
|
|
650
|
+
.g-ui-gap-none { gap: 0; }
|
|
651
|
+
.g-ui-gap-xs { gap: var(--g-ui-space-4); }
|
|
652
|
+
.g-ui-gap-sm { gap: var(--g-ui-space-8); }
|
|
653
|
+
.g-ui-gap-md { gap: var(--g-ui-space-12); }
|
|
654
|
+
.g-ui-gap-lg { gap: var(--g-ui-space-16); }
|
|
655
|
+
.g-ui-gap-xl { gap: var(--g-ui-space-20); }
|
|
656
|
+
.g-ui-align-start { align-items: flex-start; }
|
|
657
|
+
.g-ui-align-center { align-items: center; }
|
|
658
|
+
.g-ui-align-end { align-items: flex-end; }
|
|
659
|
+
.g-ui-justify-start { justify-content: flex-start; }
|
|
660
|
+
.g-ui-justify-center { justify-content: center; }
|
|
661
|
+
.g-ui-justify-end { justify-content: flex-end; }
|
|
662
|
+
.g-ui-justify-between { justify-content: space-between; }
|
|
663
|
+
|
|
664
|
+
.g-ui-group {
|
|
665
|
+
display: flex;
|
|
666
|
+
align-items: center;
|
|
667
|
+
flex-wrap: wrap;
|
|
668
|
+
}
|
|
669
|
+
.g-ui-no-wrap { flex-wrap: nowrap; }
|
|
670
|
+
|
|
671
|
+
.g-ui-container {
|
|
672
|
+
width: 100%;
|
|
673
|
+
margin: 0 auto;
|
|
674
|
+
padding: 0 var(--g-ui-container-padding, var(--g-ui-space-16));
|
|
675
|
+
box-sizing: border-box;
|
|
676
|
+
}
|
|
677
|
+
.g-ui-container-size-xs { max-width: 540px; }
|
|
678
|
+
.g-ui-container-size-sm { max-width: 720px; }
|
|
679
|
+
.g-ui-container-size-md { max-width: 960px; }
|
|
680
|
+
.g-ui-container-size-lg { max-width: 1140px; }
|
|
681
|
+
.g-ui-container-size-xl { max-width: 1320px; }
|
|
682
|
+
.g-ui-container-fluid { max-width: 100%; }
|
|
683
|
+
|
|
684
|
+
.g-ui-card {
|
|
685
|
+
background: var(--g-ui-surface);
|
|
686
|
+
border-radius: var(--g-ui-radius);
|
|
687
|
+
box-shadow: none;
|
|
688
|
+
border: 1px solid var(--g-ui-border);
|
|
689
|
+
}
|
|
690
|
+
.g-ui-card-border-default { border: 1px solid var(--g-ui-border); }
|
|
691
|
+
.g-ui-card-border-none { border: none; }
|
|
692
|
+
.g-ui-card-border-light { border: 1px solid var(--g-ui-border-light); }
|
|
693
|
+
.g-ui-card-border-dark { border: 1px solid var(--g-ui-border-dark); }
|
|
694
|
+
.g-ui-card-border-primary { border: 1px solid var(--g-ui-primary); }
|
|
695
|
+
.g-ui-card-border-success { border: 1px solid var(--g-ui-success); }
|
|
696
|
+
.g-ui-card-border-danger { border: 1px solid var(--g-ui-danger); }
|
|
697
|
+
.g-ui-card-border-warning { border: 1px solid var(--g-ui-warning); }
|
|
698
|
+
.g-ui-card-border-info { border: 1px solid var(--g-ui-info); }
|
|
699
|
+
.g-ui-card-border-subtle { border: 1px solid var(--g-ui-border-subtle); }
|
|
700
|
+
.g-ui-card-border-emphasized { border: 1px solid var(--g-ui-border-emphasized); }
|
|
701
|
+
.g-ui-card-border-inverted { border: 1px solid var(--g-ui-border-inverted); }
|
|
702
|
+
.g-ui-card-border-error { border: 1px solid var(--g-ui-border-error); }
|
|
703
|
+
.g-ui-card-border-warning { border: 1px solid var(--g-ui-border-warning); }
|
|
704
|
+
.g-ui-card-border-success { border: 1px solid var(--g-ui-border-success); }
|
|
705
|
+
.g-ui-card-border-info { border: 1px solid var(--g-ui-border-info); }
|
|
706
|
+
|
|
707
|
+
.g-ui-card-padding-xs { padding: var(--g-ui-space-10); }
|
|
708
|
+
.g-ui-card-padding-sm { padding: var(--g-ui-space-14); }
|
|
709
|
+
.g-ui-card-padding-md { padding: var(--g-ui-space-18); }
|
|
710
|
+
.g-ui-card-padding-lg { padding: var(--g-ui-space-24); }
|
|
711
|
+
.g-ui-card-radius-sm { border-radius: 8px; }
|
|
712
|
+
.g-ui-card-radius-md { border-radius: 10px; }
|
|
713
|
+
.g-ui-card-radius-lg { border-radius: 14px; }
|
|
714
|
+
.g-ui-card-shadow-none { box-shadow: none; }
|
|
715
|
+
.g-ui-card-shadow-sm { box-shadow: var(--g-ui-shadow-sm); }
|
|
716
|
+
.g-ui-card-shadow-md { box-shadow: var(--g-ui-shadow-md); }
|
|
717
|
+
.g-ui-card-shadow-lg { box-shadow: var(--g-ui-shadow-lg); }
|
|
718
|
+
.g-ui-card-title {
|
|
719
|
+
margin-bottom: var(--g-ui-space-8);
|
|
720
|
+
font-weight: 600;
|
|
721
|
+
font-size: 16px;
|
|
722
|
+
color: var(--g-ui-text);
|
|
723
|
+
}
|
|
724
|
+
.g-ui-card-content {
|
|
725
|
+
color: var(--g-ui-muted);
|
|
726
|
+
margin-bottom: var(--g-ui-space-10);
|
|
727
|
+
}
|
|
728
|
+
.g-ui-card-actions {
|
|
729
|
+
position:relative;
|
|
730
|
+
margin-top: var(--g-ui-space-10);
|
|
731
|
+
display: flex;
|
|
732
|
+
justify-content: flex-end;
|
|
733
|
+
gap: var(--g-ui-space-8);
|
|
734
|
+
border-top: 1px solid var(--g-ui-border);
|
|
735
|
+
box-sizing: border-box;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.g-ui-card-padding-xs .g-ui-card-title, .g-ui-card-padding-xs .g-ui-card-content { margin-bottom: var(--g-ui-space-10); }
|
|
739
|
+
.g-ui-card-padding-sm .g-ui-card-title, .g-ui-card-padding-sm .g-ui-card-content { margin-bottom: var(--g-ui-space-14); }
|
|
740
|
+
.g-ui-card-padding-md .g-ui-card-title, .g-ui-card-padding-md .g-ui-card-content { margin-bottom: var(--g-ui-space-18); }
|
|
741
|
+
.g-ui-card-padding-lg .g-ui-card-title, .g-ui-card-padding-lg .g-ui-card-content { margin-bottom: var(--g-ui-space-24); }
|
|
742
|
+
|
|
743
|
+
.g-ui-card-padding-xs .g-ui-card-actions { left: calc(0px - var(--g-ui-space-10)); width: calc(100% + var(--g-ui-space-10) + var(--g-ui-space-10)); padding: var(--g-ui-space-10) var(--g-ui-space-10) 0 var(--g-ui-space-10); }
|
|
744
|
+
.g-ui-card-padding-sm .g-ui-card-actions { left: calc(0px - var(--g-ui-space-14)); width: calc(100% + var(--g-ui-space-14) + var(--g-ui-space-14)); padding: var(--g-ui-space-14) var(--g-ui-space-14) 0 var(--g-ui-space-14); }
|
|
745
|
+
.g-ui-card-padding-md .g-ui-card-actions { left: calc(0px - var(--g-ui-space-18)); width: calc(100% + var(--g-ui-space-18) + var(--g-ui-space-18)); padding: var(--g-ui-space-18) var(--g-ui-space-18) 0 var(--g-ui-space-18); }
|
|
746
|
+
.g-ui-card-padding-lg .g-ui-card-actions { left: calc(0px - var(--g-ui-space-24)); width: calc(100% + var(--g-ui-space-24) + var(--g-ui-space-24)); padding: var(--g-ui-space-24) var(--g-ui-space-24) 0 var(--g-ui-space-24); }
|
|
747
|
+
|
|
748
|
+
.g-ui-badge {
|
|
749
|
+
display: inline-flex;
|
|
750
|
+
align-items: center;
|
|
751
|
+
gap: var(--g-ui-space-6);
|
|
752
|
+
border-radius: 999px;
|
|
753
|
+
font-weight: 700;
|
|
754
|
+
text-transform: uppercase;
|
|
755
|
+
letter-spacing: 0.25px;
|
|
756
|
+
white-space: nowrap;
|
|
757
|
+
}
|
|
758
|
+
.g-ui-badge-size-xs { font-size: 9px; height: 16px; padding: 0 var(--g-ui-space-6); }
|
|
759
|
+
.g-ui-badge-size-sm { font-size: 10px; height: 18px; padding: 0 var(--g-ui-space-8); }
|
|
760
|
+
.g-ui-badge-size-md { font-size: 11px; height: 20px; padding: 0 var(--g-ui-space-10); }
|
|
761
|
+
.g-ui-badge-size-lg { font-size: 13px; height: 26px; padding: 0 var(--g-ui-space-12); }
|
|
762
|
+
.g-ui-badge-size-xl { font-size: 16px; height: 32px; padding: 0 var(--g-ui-space-16); }
|
|
763
|
+
.g-ui-badge-variant-filled {
|
|
764
|
+
background: var(--g-ui-primary);
|
|
765
|
+
color: var(--g-ui-primary-fg);
|
|
766
|
+
border: 1px solid transparent;
|
|
767
|
+
}
|
|
768
|
+
.g-ui-badge-variant-light {
|
|
769
|
+
background: var(--g-ui-primary-subtle);
|
|
770
|
+
color: var(--g-ui-primary);
|
|
771
|
+
border: 1px solid var(--g-ui-primary-muted);
|
|
772
|
+
}
|
|
773
|
+
.g-ui-badge-variant-outline {
|
|
774
|
+
background: transparent;
|
|
775
|
+
color: var(--g-ui-primary);
|
|
776
|
+
border: 1px solid var(--g-ui-primary);
|
|
777
|
+
}
|
|
778
|
+
.g-ui-badge-variant-dot {
|
|
779
|
+
background: transparent;
|
|
780
|
+
color: var(--g-ui-text);
|
|
781
|
+
border: 1px solid var(--g-ui-border);
|
|
782
|
+
}
|
|
783
|
+
.g-ui-badge-dot {
|
|
784
|
+
display: inline-flex;
|
|
785
|
+
align-items: center;
|
|
786
|
+
gap: var(--g-ui-space-6);
|
|
787
|
+
}
|
|
788
|
+
.g-ui-badge-dot::before {
|
|
789
|
+
content: '';
|
|
790
|
+
width: 6px;
|
|
791
|
+
height: 6px;
|
|
792
|
+
border-radius: 50%;
|
|
793
|
+
background: var(--g-ui-success);
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.g-ui-button {
|
|
797
|
+
border: 0;
|
|
798
|
+
border-radius: 8px;
|
|
799
|
+
cursor: pointer;
|
|
800
|
+
font-weight: 600;
|
|
801
|
+
transition: transform .08s ease, background .12s ease, border .12s ease, color .12s ease;
|
|
802
|
+
line-height: 1;
|
|
803
|
+
display: inline-flex;
|
|
804
|
+
align-items: center;
|
|
805
|
+
justify-content: center;
|
|
806
|
+
}
|
|
807
|
+
.g-ui-button:active { transform: translateY(1px); }
|
|
808
|
+
.g-ui-button:disabled { opacity: 0.6; cursor: not-allowed; }
|
|
809
|
+
.g-ui-button-full { width: 100%; }
|
|
810
|
+
.g-ui-button-loading { opacity: 0.8; }
|
|
811
|
+
.g-ui-button-section-left { margin-right: var(--g-ui-space-8); display: inline-flex; }
|
|
812
|
+
.g-ui-button-section-right { margin-left: var(--g-ui-space-8); display: inline-flex; }
|
|
813
|
+
.g-ui-button-variant-filled { background: var(--g-ui-primary); color: var(--g-ui-primary-fg); border: 1px solid transparent; }
|
|
814
|
+
.g-ui-button-variant-light { background: var(--g-ui-primary-subtle); color: var(--g-ui-primary); border: 1px solid var(--g-ui-primary-muted); }
|
|
815
|
+
.g-ui-button-variant-outline { background: transparent; color: var(--g-ui-primary); border: 1px solid var(--g-ui-primary); }
|
|
816
|
+
.g-ui-button-variant-subtle { background: transparent; color: var(--g-ui-text); border: 1px solid var(--g-ui-border); }
|
|
817
|
+
.g-ui-button-variant-transparent { background: transparent; color: var(--g-ui-text); border: 1px solid transparent; }
|
|
818
|
+
.g-ui-button-variant-filled:hover { background: var(--g-ui-primary-hover); }
|
|
819
|
+
.g-ui-button-variant-light:hover { background: var(--g-ui-primary-muted); }
|
|
820
|
+
.g-ui-button-variant-outline:hover { background: var(--g-ui-primary-subtle); }
|
|
821
|
+
.g-ui-button-variant-subtle:hover { background: var(--g-ui-bg-muted); }
|
|
822
|
+
.g-ui-button-variant-transparent:hover { background: var(--g-ui-bg-muted); }
|
|
823
|
+
.g-ui-button-size-xs { font-size: 12px; height: 30px; padding: 0 var(--g-ui-space-8); }
|
|
824
|
+
.g-ui-button-size-sm { font-size: 13px; height: 36px; padding: 0 var(--g-ui-space-10); }
|
|
825
|
+
.g-ui-button-size-md { font-size: 14px; height: 42px; padding: 0 var(--g-ui-space-10); }
|
|
826
|
+
.g-ui-button-size-lg { font-size: 15px; height: 50px; padding: 0 var(--g-ui-space-11); }
|
|
827
|
+
.g-ui-button-size-xl { font-size: 16px; height: 60px; padding: 0 var(--g-ui-space-12); }
|
|
828
|
+
|
|
829
|
+
.g-ui-input-wrapper {
|
|
830
|
+
width: 100%;
|
|
831
|
+
border-radius: 8px;
|
|
832
|
+
border: 1px solid var(--g-ui-border);
|
|
833
|
+
background: var(--g-ui-surface);
|
|
834
|
+
color: var(--g-ui-text);
|
|
835
|
+
display: flex;
|
|
836
|
+
align-items: center;
|
|
837
|
+
gap: var(--g-ui-space-8);
|
|
838
|
+
padding: 0 var(--g-ui-space-12);
|
|
839
|
+
box-sizing: border-box;
|
|
840
|
+
}
|
|
841
|
+
.g-ui-input-wrapper:focus-within {
|
|
842
|
+
border-color: var(--g-ui-primary);
|
|
843
|
+
}
|
|
844
|
+
.g-ui-input {
|
|
845
|
+
width: 100%;
|
|
846
|
+
border: 0;
|
|
847
|
+
background: transparent;
|
|
848
|
+
color: inherit;
|
|
849
|
+
padding: 0;
|
|
850
|
+
height: 100%;
|
|
851
|
+
font-size: inherit;
|
|
852
|
+
}
|
|
853
|
+
.g-ui-input:focus,
|
|
854
|
+
.g-ui-input:focus-within {
|
|
855
|
+
outline: none;
|
|
856
|
+
}
|
|
857
|
+
.g-ui-input::placeholder {
|
|
858
|
+
color: var(--g-ui-muted);
|
|
859
|
+
transition: opacity .12s ease;
|
|
860
|
+
}
|
|
861
|
+
.g-ui-input:focus::placeholder {
|
|
862
|
+
opacity: 0.5;
|
|
863
|
+
}
|
|
864
|
+
.g-ui-input-section {
|
|
865
|
+
display: inline-flex;
|
|
866
|
+
align-items: center;
|
|
867
|
+
color: var(--g-ui-muted);
|
|
868
|
+
}
|
|
869
|
+
.g-ui-input-error {
|
|
870
|
+
border-color: var(--g-ui-danger);
|
|
871
|
+
}
|
|
872
|
+
.g-ui-input-size-xs { font-size: 12px; height: 30px; padding: 0 var(--g-ui-space-10); }
|
|
873
|
+
.g-ui-input-size-sm { font-size: 13px; height: 36px; padding: 0 var(--g-ui-space-12); }
|
|
874
|
+
.g-ui-input-size-md { font-size: 14px; height: 42px; padding: 0 var(--g-ui-space-14); }
|
|
875
|
+
.g-ui-input-size-lg { font-size: 15px; height: 50px; padding: 0 var(--g-ui-space-16); }
|
|
876
|
+
.g-ui-input-size-xl { font-size: 16px; height: 60px; padding: 0 var(--g-ui-space-20); }
|
|
877
|
+
.g-ui-text-input {
|
|
878
|
+
display: flex;
|
|
879
|
+
flex-direction: column;
|
|
880
|
+
gap: var(--g-ui-space-6);
|
|
881
|
+
}
|
|
882
|
+
.g-ui-text-input-label {
|
|
883
|
+
font-size: 13px;
|
|
884
|
+
font-weight: 500;
|
|
885
|
+
color: var(--g-ui-text);
|
|
886
|
+
}
|
|
887
|
+
.g-ui-text-input-description {
|
|
888
|
+
font-size: 12px;
|
|
889
|
+
color: var(--g-ui-muted);
|
|
890
|
+
}
|
|
891
|
+
.g-ui-text-input-error-text {
|
|
892
|
+
font-size: 12px;
|
|
893
|
+
color: var(--g-ui-danger);
|
|
894
|
+
}
|
|
895
|
+
.g-ui-date-input-popover .g-ui-popover-dropdown {
|
|
896
|
+
padding: 0;
|
|
897
|
+
border-width:0;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.g-ui-modal-overlay {
|
|
901
|
+
position: fixed;
|
|
902
|
+
inset: 0;
|
|
903
|
+
background: rgba(0,0,0,0.6);
|
|
904
|
+
display: flex;
|
|
905
|
+
align-items: center;
|
|
906
|
+
justify-content: center;
|
|
907
|
+
z-index: 999;
|
|
908
|
+
}
|
|
909
|
+
.g-ui-modal-overlay-light { background: rgba(0,0,0,0.4); }
|
|
910
|
+
.g-ui-modal-overlay-normal { background: rgba(0,0,0,0.6); }
|
|
911
|
+
.g-ui-modal-overlay-dark { background: rgba(0,0,0,0.8); }
|
|
912
|
+
.g-ui-modal-centered { align-items: center; justify-content: center; }
|
|
913
|
+
.g-ui-modal-top { align-items: flex-start; justify-content: center; padding-top: var(--g-ui-space-40); }
|
|
914
|
+
.g-ui-modal-position-top-left { align-items: flex-start; justify-content: flex-start; padding: var(--g-ui-space-40) var(--g-ui-space-20); }
|
|
915
|
+
.g-ui-modal-position-top-center { align-items: flex-start; justify-content: center; padding: var(--g-ui-space-40) var(--g-ui-space-20); }
|
|
916
|
+
.g-ui-modal-position-top-right { align-items: flex-start; justify-content: flex-end; padding: var(--g-ui-space-40) var(--g-ui-space-20); }
|
|
917
|
+
.g-ui-modal-position-center-left { align-items: center; justify-content: flex-start; padding: var(--g-ui-space-20); }
|
|
918
|
+
.g-ui-modal-position-center { align-items: center; justify-content: center; padding: var(--g-ui-space-20); }
|
|
919
|
+
.g-ui-modal-position-center-right { align-items: center; justify-content: flex-end; padding: var(--g-ui-space-20); }
|
|
920
|
+
.g-ui-modal-position-bottom-left { align-items: flex-end; justify-content: flex-start; padding: var(--g-ui-space-20); padding-bottom: var(--g-ui-space-40); }
|
|
921
|
+
.g-ui-modal-position-bottom-center { align-items: flex-end; justify-content: center; padding: var(--g-ui-space-20); padding-bottom: var(--g-ui-space-40); }
|
|
922
|
+
.g-ui-modal-position-bottom-right { align-items: flex-end; justify-content: flex-end; padding: var(--g-ui-space-20); padding-bottom: var(--g-ui-space-40); }
|
|
923
|
+
.g-ui-modal {
|
|
924
|
+
background: var(--g-ui-bg);
|
|
925
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
926
|
+
border-radius: 8px;
|
|
927
|
+
padding: var(--g-ui-space-16);
|
|
928
|
+
min-width: 320px;
|
|
929
|
+
max-width: 780px;
|
|
930
|
+
box-shadow: var(--g-ui-shadow-lg);
|
|
931
|
+
}
|
|
932
|
+
.g-ui-modal-size-sm { width: 380px; }
|
|
933
|
+
.g-ui-modal-size-md { width: 440px; }
|
|
934
|
+
.g-ui-modal-size-lg { width: 620px; }
|
|
935
|
+
.g-ui-modal-size-xl { width: 780px; }
|
|
936
|
+
.g-ui-modal-header {
|
|
937
|
+
display: flex;
|
|
938
|
+
justify-content: space-between;
|
|
939
|
+
align-items: center;
|
|
940
|
+
margin-bottom: var(--g-ui-space-12);
|
|
941
|
+
}
|
|
942
|
+
.g-ui-modal-title { font-weight: 700; }
|
|
943
|
+
.g-ui-modal-close {
|
|
944
|
+
padding: 0;
|
|
945
|
+
width: 28px;
|
|
946
|
+
height: 28px;
|
|
947
|
+
}
|
|
948
|
+
.g-ui-modal-close svg {
|
|
949
|
+
width: 16px;
|
|
950
|
+
height: 16px;
|
|
951
|
+
fill: currentColor;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.g-ui-checkbox {
|
|
955
|
+
display: flex;
|
|
956
|
+
flex-direction: column;
|
|
957
|
+
gap: var(--g-ui-space-6);
|
|
958
|
+
box-sizing: border-box;
|
|
959
|
+
}
|
|
960
|
+
.g-ui-checkbox-control {
|
|
961
|
+
position: relative;
|
|
962
|
+
display: inline-flex;
|
|
963
|
+
align-items: center;
|
|
964
|
+
gap: var(--g-ui-space-10);
|
|
965
|
+
cursor: pointer;
|
|
966
|
+
}
|
|
967
|
+
.g-ui-checkbox-indeterminate,
|
|
968
|
+
.g-ui-checkbox-checked {
|
|
969
|
+
position:absolute;
|
|
970
|
+
color: var(--g-ui-primary-fg);
|
|
971
|
+
fill: var(--g-ui-primary-fg);
|
|
972
|
+
}
|
|
973
|
+
.g-ui-checkbox-indeterminate svg,
|
|
974
|
+
.g-ui-checkbox-checked svg {
|
|
975
|
+
fill: var(--g-ui-primary-fg);
|
|
976
|
+
}
|
|
977
|
+
.g-ui-checkbox-input {
|
|
978
|
+
appearance: none;
|
|
979
|
+
width: var(--g-ui-control-size, 16px);
|
|
980
|
+
height: var(--g-ui-control-size, 16px);
|
|
981
|
+
border: 1px solid var(--g-ui-border);
|
|
982
|
+
border-radius: 4px;
|
|
983
|
+
background: var(--g-ui-bg);
|
|
984
|
+
position: relative;
|
|
985
|
+
transition: background-color .12s ease, border-color .12s ease;
|
|
986
|
+
}
|
|
987
|
+
.g-ui-checkbox-input:focus-visible {
|
|
988
|
+
outline: 2px solid var(--g-ui-primary);
|
|
989
|
+
outline-offset: 2px;
|
|
990
|
+
}
|
|
991
|
+
.g-ui-checkbox-input:checked {
|
|
992
|
+
background: var(--g-ui-primary);
|
|
993
|
+
border-color: var(--g-ui-primary);
|
|
994
|
+
}
|
|
995
|
+
.g-ui-checkbox-input:indeterminate {
|
|
996
|
+
background: var(--g-ui-primary);
|
|
997
|
+
border-color: var(--g-ui-primary);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.g-ui-checkbox-label { font-size: 14px; }
|
|
1001
|
+
.g-ui-checkbox-description { font-size: 12px; color: var(--g-ui-muted); }
|
|
1002
|
+
.g-ui-checkbox-size-xs { --g-ui-control-size: 16px; --g-ui-control-inner-offset: 4px; }
|
|
1003
|
+
.g-ui-checkbox-size-sm { --g-ui-control-size: 20px; --g-ui-control-inner-offset: 5px; }
|
|
1004
|
+
.g-ui-checkbox-size-md { --g-ui-control-size: 24px; --g-ui-control-inner-offset: 6px; }
|
|
1005
|
+
.g-ui-checkbox-size-lg { --g-ui-control-size: 30px; --g-ui-control-inner-offset: 7px; }
|
|
1006
|
+
.g-ui-checkbox-size-xl { --g-ui-control-size: 36px; --g-ui-control-inner-offset: 8px; }
|
|
1007
|
+
|
|
1008
|
+
.g-ui-checkbox-size-xs .g-ui-checkbox-indeterminate { top: 2px;left:4px; }
|
|
1009
|
+
.g-ui-checkbox-size-xs .g-ui-checkbox-indeterminate svg { width: 16px; height: 16px; }
|
|
1010
|
+
.g-ui-checkbox-size-sm .g-ui-checkbox-indeterminate { top:3px; left:4px; }
|
|
1011
|
+
.g-ui-checkbox-size-sm .g-ui-checkbox-indeterminate svg { width: 20px; height:20px; }
|
|
1012
|
+
.g-ui-checkbox-size-md .g-ui-checkbox-indeterminate { top:3px; left:4px; }
|
|
1013
|
+
.g-ui-checkbox-size-md .g-ui-checkbox-indeterminate svg { width: 24px; height: 24px; }
|
|
1014
|
+
.g-ui-checkbox-size-lg .g-ui-checkbox-indeterminate { top:4px; left:5px; }
|
|
1015
|
+
.g-ui-checkbox-size-lg .g-ui-checkbox-indeterminate svg { width: 28px; height: 28px; }
|
|
1016
|
+
.g-ui-checkbox-size-xl .g-ui-checkbox-indeterminate { top:5px; left:6px; }
|
|
1017
|
+
.g-ui-checkbox-size-xl .g-ui-checkbox-indeterminate svg { width: 32px; height: 32px; }
|
|
1018
|
+
|
|
1019
|
+
.g-ui-checkbox-size-xs .g-ui-checkbox-checked { top: 2px;left:4px; }
|
|
1020
|
+
.g-ui-checkbox-size-xs .g-ui-checkbox-checked svg { width: 16px; height: 16px; }
|
|
1021
|
+
.g-ui-checkbox-size-sm .g-ui-checkbox-checked { top:3px; left:4px; }
|
|
1022
|
+
.g-ui-checkbox-size-sm .g-ui-checkbox-checked svg { width: 20px; height:20px; }
|
|
1023
|
+
.g-ui-checkbox-size-md .g-ui-checkbox-checked { top:3px; left:4px; }
|
|
1024
|
+
.g-ui-checkbox-size-md .g-ui-checkbox-checked svg { width: 24px; height: 24px; }
|
|
1025
|
+
.g-ui-checkbox-size-lg .g-ui-checkbox-checked { top:4px; left:5px; }
|
|
1026
|
+
.g-ui-checkbox-size-lg .g-ui-checkbox-checked svg { width: 28px; height: 28px; }
|
|
1027
|
+
.g-ui-checkbox-size-xl .g-ui-checkbox-checked { top:5px; left:6px; }
|
|
1028
|
+
.g-ui-checkbox-size-xl .g-ui-checkbox-checked svg { width: 32px; height: 32px; }
|
|
1029
|
+
|
|
1030
|
+
.g-ui-switch {
|
|
1031
|
+
display: inline-flex;
|
|
1032
|
+
align-items: center;
|
|
1033
|
+
gap: var(--g-ui-space-10);
|
|
1034
|
+
cursor: pointer;
|
|
1035
|
+
}
|
|
1036
|
+
.g-ui-switch-input {
|
|
1037
|
+
appearance: none;
|
|
1038
|
+
width: var(--g-ui-switch-width, 36px);
|
|
1039
|
+
height: var(--g-ui-switch-height, 20px);
|
|
1040
|
+
border-radius: 999px;
|
|
1041
|
+
background: var(--g-ui-bg-muted);
|
|
1042
|
+
border: 1px solid var(--g-ui-border);
|
|
1043
|
+
position: relative;
|
|
1044
|
+
transition: background .15s ease, border .15s ease;
|
|
1045
|
+
}
|
|
1046
|
+
.g-ui-switch-input:focus-visible {
|
|
1047
|
+
outline: 2px solid var(--g-ui-primary);
|
|
1048
|
+
outline-offset: 2px;
|
|
1049
|
+
}
|
|
1050
|
+
.g-ui-switch-input::after {
|
|
1051
|
+
content: '';
|
|
1052
|
+
position: absolute;
|
|
1053
|
+
width: var(--g-ui-switch-thumb, 14px);
|
|
1054
|
+
height: var(--g-ui-switch-thumb, 14px);
|
|
1055
|
+
border-radius: 50%;
|
|
1056
|
+
background: #fff;
|
|
1057
|
+
top: var(--g-ui-switch-offset, 2px);
|
|
1058
|
+
left: var(--g-ui-switch-offset, 2px);
|
|
1059
|
+
transition: transform .15s ease;
|
|
1060
|
+
}
|
|
1061
|
+
.g-ui-switch-input:checked {
|
|
1062
|
+
background: var(--g-ui-primary);
|
|
1063
|
+
border-color: var(--g-ui-primary);
|
|
1064
|
+
}
|
|
1065
|
+
.g-ui-switch-input:checked::after {
|
|
1066
|
+
transform: translateX(calc(var(--g-ui-switch-width, 36px) - var(--g-ui-switch-thumb, 14px) - (var(--g-ui-switch-offset, 2px) * 2)));
|
|
1067
|
+
}
|
|
1068
|
+
.g-ui-switch-label { font-size: 14px; }
|
|
1069
|
+
.g-ui-switch-size-xs { --g-ui-switch-width: 32px; --g-ui-switch-height: 16px; --g-ui-switch-thumb: 12px; --g-ui-switch-offset: 2px; }
|
|
1070
|
+
.g-ui-switch-size-sm { --g-ui-switch-width: 38px; --g-ui-switch-height: 20px; --g-ui-switch-thumb: 14px; --g-ui-switch-offset: 3px; }
|
|
1071
|
+
.g-ui-switch-size-md { --g-ui-switch-width: 46px; --g-ui-switch-height: 24px; --g-ui-switch-thumb: 18px; --g-ui-switch-offset: 3px; }
|
|
1072
|
+
.g-ui-switch-size-lg { --g-ui-switch-width: 56px; --g-ui-switch-height: 30px; --g-ui-switch-thumb: 22px; --g-ui-switch-offset: 4px; }
|
|
1073
|
+
.g-ui-switch-size-xl { --g-ui-switch-width: 72px; --g-ui-switch-height: 36px; --g-ui-switch-thumb: 28px; --g-ui-switch-offset: 4px; }
|
|
1074
|
+
|
|
1075
|
+
.g-ui-select-root {
|
|
1076
|
+
position: relative;
|
|
1077
|
+
width: 100%;
|
|
1078
|
+
}
|
|
1079
|
+
.g-ui-select {
|
|
1080
|
+
flex: 1;
|
|
1081
|
+
display: flex;
|
|
1082
|
+
align-items: center;
|
|
1083
|
+
min-height: 100%;
|
|
1084
|
+
cursor: pointer;
|
|
1085
|
+
color: var(--g-ui-text);
|
|
1086
|
+
font-size: inherit;
|
|
1087
|
+
}
|
|
1088
|
+
.g-ui-select-value {
|
|
1089
|
+
flex: 1;
|
|
1090
|
+
}
|
|
1091
|
+
.g-ui-select-placeholder {
|
|
1092
|
+
color: var(--g-ui-muted);
|
|
1093
|
+
}
|
|
1094
|
+
.g-ui-select-caret {
|
|
1095
|
+
color: var(--g-ui-muted);
|
|
1096
|
+
font-size: 12px;
|
|
1097
|
+
}
|
|
1098
|
+
.g-ui-select-dropdown {
|
|
1099
|
+
position: absolute;
|
|
1100
|
+
top: calc(100% + var(--g-ui-space-6));
|
|
1101
|
+
left: 0;
|
|
1102
|
+
right: 0;
|
|
1103
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1104
|
+
border-radius: var(--g-ui-radius);
|
|
1105
|
+
background: var(--g-ui-bg);
|
|
1106
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
1107
|
+
padding: var(--g-ui-space-6);
|
|
1108
|
+
display: flex;
|
|
1109
|
+
flex-direction: column;
|
|
1110
|
+
gap: var(--g-ui-space-4);
|
|
1111
|
+
z-index: 60;
|
|
1112
|
+
max-height: 240px;
|
|
1113
|
+
overflow: auto;
|
|
1114
|
+
}
|
|
1115
|
+
.g-ui-select-item {
|
|
1116
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-8);
|
|
1117
|
+
border-radius: 6px;
|
|
1118
|
+
cursor: pointer;
|
|
1119
|
+
display: flex;
|
|
1120
|
+
align-items: center;
|
|
1121
|
+
gap: var(--g-ui-space-8);
|
|
1122
|
+
}
|
|
1123
|
+
.g-ui-select-item:hover {
|
|
1124
|
+
background: var(--g-ui-bg-subtle);
|
|
1125
|
+
}
|
|
1126
|
+
.g-ui-select-item-active {
|
|
1127
|
+
background: var(--g-ui-primary-subtle);
|
|
1128
|
+
color: var(--g-ui-primary);
|
|
1129
|
+
}
|
|
1130
|
+
.g-ui-select-item-disabled {
|
|
1131
|
+
opacity: 0.6;
|
|
1132
|
+
cursor: not-allowed;
|
|
1133
|
+
}
|
|
1134
|
+
.g-ui-select-item-disabled:hover {
|
|
1135
|
+
background: transparent;
|
|
1136
|
+
}
|
|
1137
|
+
.g-ui-select-size-xs { font-size: 12px; height: 30px; padding: 0 var(--g-ui-space-10); }
|
|
1138
|
+
.g-ui-select-size-sm { font-size: 13px; height: 36px; padding: 0 var(--g-ui-space-12); }
|
|
1139
|
+
.g-ui-select-size-md { font-size: 14px; height: 42px; padding: 0 var(--g-ui-space-14); }
|
|
1140
|
+
.g-ui-select-size-lg { font-size: 15px; height: 50px; padding: 0 var(--g-ui-space-16); }
|
|
1141
|
+
.g-ui-select-size-xl { font-size: 16px; height: 60px; padding: 0 var(--g-ui-space-20); }
|
|
1142
|
+
|
|
1143
|
+
.g-ui-tabs { display: flex; flex-direction: column; }
|
|
1144
|
+
.g-ui-tabs-list { display: flex; flex-wrap: wrap; gap: 0; }
|
|
1145
|
+
.g-ui-tabs-tab {
|
|
1146
|
+
position: relative;
|
|
1147
|
+
padding: var(--g-ui-space-8) var(--g-ui-space-16);
|
|
1148
|
+
font-size: 13px;
|
|
1149
|
+
line-height: 1;
|
|
1150
|
+
display: flex;
|
|
1151
|
+
align-items: center;
|
|
1152
|
+
cursor: pointer;
|
|
1153
|
+
background: transparent;
|
|
1154
|
+
border: 0;
|
|
1155
|
+
color: var(--g-ui-text);
|
|
1156
|
+
margin-bottom: calc(0px - var(--g-ui-space-2));
|
|
1157
|
+
}
|
|
1158
|
+
.g-ui-tabs-panel { padding-top: var(--g-ui-space-12); }
|
|
1159
|
+
.g-ui-tabs-variant-default .g-ui-tabs-list {
|
|
1160
|
+
border-bottom: 2px solid var(--g-ui-border-muted);
|
|
1161
|
+
}
|
|
1162
|
+
.g-ui-tabs-variant-default .g-ui-tabs-tab {
|
|
1163
|
+
border-bottom: 2px solid var(--g-ui-border-muted);
|
|
1164
|
+
border-radius: 4px 4px 0 0;
|
|
1165
|
+
}
|
|
1166
|
+
.g-ui-tabs-variant-default .g-ui-tabs-tab:hover {
|
|
1167
|
+
background: var(--g-ui-bg-muted);
|
|
1168
|
+
}
|
|
1169
|
+
.g-ui-tabs-variant-default .g-ui-tabs-tab-active {
|
|
1170
|
+
border-color: var(--g-ui-primary);
|
|
1171
|
+
color: var(--g-ui-primary);
|
|
1172
|
+
}
|
|
1173
|
+
.g-ui-tabs-variant-outline .g-ui-tabs-list {
|
|
1174
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
1175
|
+
}
|
|
1176
|
+
.g-ui-tabs-variant-outline .g-ui-tabs-tab {
|
|
1177
|
+
border: 1px solid transparent;
|
|
1178
|
+
border-bottom: 0;
|
|
1179
|
+
border-radius: 8px 8px 0 0;
|
|
1180
|
+
}
|
|
1181
|
+
.g-ui-tabs-variant-outline .g-ui-tabs-tab-active {
|
|
1182
|
+
border-color: var(--g-ui-border);
|
|
1183
|
+
background: var(--g-ui-bg);
|
|
1184
|
+
color: var(--g-ui-primary);
|
|
1185
|
+
}
|
|
1186
|
+
.g-ui-tabs-variant-pills .g-ui-tabs-list {
|
|
1187
|
+
gap: var(--g-ui-space-8);
|
|
1188
|
+
}
|
|
1189
|
+
.g-ui-tabs-variant-pills .g-ui-tabs-tab {
|
|
1190
|
+
border-radius: 8px;
|
|
1191
|
+
background: transparent;
|
|
1192
|
+
}
|
|
1193
|
+
.g-ui-tabs-variant-pills .g-ui-tabs-tab:hover {
|
|
1194
|
+
background: var(--g-ui-bg-muted);
|
|
1195
|
+
}
|
|
1196
|
+
.g-ui-tabs-variant-pills .g-ui-tabs-tab-active {
|
|
1197
|
+
background: var(--g-ui-primary);
|
|
1198
|
+
color: var(--g-ui-primary-fg);
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
.g-ui-table {
|
|
1202
|
+
width: 100%;
|
|
1203
|
+
border-collapse: collapse;
|
|
1204
|
+
color: var(--g-ui-text);
|
|
1205
|
+
font-size: 13px;
|
|
1206
|
+
}
|
|
1207
|
+
.g-ui-table-with-border {
|
|
1208
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1209
|
+
border-radius: var(--g-ui-radius);
|
|
1210
|
+
overflow: hidden;
|
|
1211
|
+
}
|
|
1212
|
+
.g-ui-table th,
|
|
1213
|
+
.g-ui-table td {
|
|
1214
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
1215
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12);
|
|
1216
|
+
text-align: left;
|
|
1217
|
+
}
|
|
1218
|
+
.g-ui-table th {
|
|
1219
|
+
font-weight: 500;
|
|
1220
|
+
color: var(--g-ui-muted);
|
|
1221
|
+
}
|
|
1222
|
+
.g-ui-table-column-borders th,
|
|
1223
|
+
.g-ui-table-column-borders td {
|
|
1224
|
+
border-right: 1px solid var(--g-ui-border);
|
|
1225
|
+
}
|
|
1226
|
+
.g-ui-table-column-borders th:last-child,
|
|
1227
|
+
.g-ui-table-column-borders td:last-child {
|
|
1228
|
+
border-right: 0;
|
|
1229
|
+
}
|
|
1230
|
+
.g-ui-table-striped tbody tr:nth-child(odd) { background: var(--g-ui-bg-subtle); }
|
|
1231
|
+
.g-ui-table-hover tbody tr:hover { background: var(--g-ui-bg-muted); }
|
|
1232
|
+
|
|
1233
|
+
.g-ui-accordion {
|
|
1234
|
+
width: calc(100%);
|
|
1235
|
+
display: flex;
|
|
1236
|
+
flex-direction: column;
|
|
1237
|
+
border-bottom: 1px solid var(--g-ui-border);
|
|
1238
|
+
}
|
|
1239
|
+
.g-ui-accordion-header {
|
|
1240
|
+
box-sizing: border-box;
|
|
1241
|
+
padding: var(--g-ui-space-12) var(--g-ui-space-15);
|
|
1242
|
+
font-size: 14px;
|
|
1243
|
+
display: flex;
|
|
1244
|
+
align-items: flex-start;
|
|
1245
|
+
flex-direction: column;
|
|
1246
|
+
justify-content: flex-start;
|
|
1247
|
+
cursor: pointer;
|
|
1248
|
+
}
|
|
1249
|
+
.g-ui-accordion-content {
|
|
1250
|
+
padding: var(--g-ui-space-12);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
.g-ui-tooltip {
|
|
1254
|
+
position: relative;
|
|
1255
|
+
display: inline-flex;
|
|
1256
|
+
}
|
|
1257
|
+
.g-ui-tooltip-content {
|
|
1258
|
+
position: absolute;
|
|
1259
|
+
bottom: calc(100% + var(--g-ui-space-8));
|
|
1260
|
+
left: 50%;
|
|
1261
|
+
transform: translateX(-50%);
|
|
1262
|
+
background: var(--g-ui-gray-900);
|
|
1263
|
+
color: var(--g-ui-gray-50);
|
|
1264
|
+
border: 0;
|
|
1265
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-10);
|
|
1266
|
+
border-radius: 6px;
|
|
1267
|
+
font-size: 12px;
|
|
1268
|
+
white-space: nowrap;
|
|
1269
|
+
opacity: 0;
|
|
1270
|
+
pointer-events: none;
|
|
1271
|
+
transition: opacity .12s ease, transform .12s ease;
|
|
1272
|
+
}
|
|
1273
|
+
.g-ui-tooltip:hover .g-ui-tooltip-content {
|
|
1274
|
+
opacity: 1;
|
|
1275
|
+
transform: translateX(-50%) translateY(-2px);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
.g-ui-menu {
|
|
1279
|
+
position: relative;
|
|
1280
|
+
display: inline-flex;
|
|
1281
|
+
}
|
|
1282
|
+
.g-ui-menu-dropdown {
|
|
1283
|
+
position: fixed;
|
|
1284
|
+
right: 0;
|
|
1285
|
+
width:10px;
|
|
1286
|
+
min-width: 180px;
|
|
1287
|
+
background: var(--g-ui-surface);
|
|
1288
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1289
|
+
border-radius: var(--g-ui-radius);
|
|
1290
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
1291
|
+
padding: var(--g-ui-space-4);
|
|
1292
|
+
z-index: 10000;
|
|
1293
|
+
}
|
|
1294
|
+
.g-ui-menu-left { left: 0; right: auto; }
|
|
1295
|
+
.g-ui-menu-center { left: 50%; right: auto; transform: translateX(-50%); }
|
|
1296
|
+
.g-ui-menu-right { right: 0; left: auto; }
|
|
1297
|
+
.g-ui-menu-item {
|
|
1298
|
+
display: flex;
|
|
1299
|
+
align-items: center;
|
|
1300
|
+
gap: var(--g-ui-space-8);
|
|
1301
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-12);
|
|
1302
|
+
border-radius: 8px;
|
|
1303
|
+
cursor: pointer;
|
|
1304
|
+
color: var(--g-ui-text);
|
|
1305
|
+
font-size: 13px;
|
|
1306
|
+
}
|
|
1307
|
+
.g-ui-menu-item:hover { background: var(--g-ui-bg-subtle); }
|
|
1308
|
+
|
|
1309
|
+
.g-ui-menu-overlay {
|
|
1310
|
+
position: fixed;
|
|
1311
|
+
top:0;
|
|
1312
|
+
left:0;
|
|
1313
|
+
right:0;
|
|
1314
|
+
bottom:0;
|
|
1315
|
+
inset: 0;
|
|
1316
|
+
z-index: 9999;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.g-ui-drawer-overlay {
|
|
1320
|
+
position: fixed;
|
|
1321
|
+
inset: 0;
|
|
1322
|
+
z-index: 998;
|
|
1323
|
+
}
|
|
1324
|
+
.g-ui-drawer-overlay-normal { background: rgba(0,0,0,0.6); }
|
|
1325
|
+
.g-ui-drawer-overlay-light { background: rgba(0,0,0,0.4); }
|
|
1326
|
+
.g-ui-drawer-overlay-dark { background: rgba(0,0,0,0.8); }
|
|
1327
|
+
.g-ui-drawer {
|
|
1328
|
+
position: fixed;
|
|
1329
|
+
top: 0;
|
|
1330
|
+
bottom: 0;
|
|
1331
|
+
width: 320px;
|
|
1332
|
+
background: var(--g-ui-bg);
|
|
1333
|
+
border-left: 1px solid var(--g-ui-border-muted);
|
|
1334
|
+
box-shadow: var(--g-ui-shadow-lg);
|
|
1335
|
+
z-index: 999;
|
|
1336
|
+
padding: var(--g-ui-space-16);
|
|
1337
|
+
}
|
|
1338
|
+
.g-ui-drawer-right { right: 0; }
|
|
1339
|
+
.g-ui-drawer-left { left: 0; border-left: 0; border-right: 1px solid var(--g-ui-border-muted); }
|
|
1340
|
+
.g-ui-drawer-size-sm { width: 380px; }
|
|
1341
|
+
.g-ui-drawer-size-md { width: 440px; }
|
|
1342
|
+
.g-ui-drawer-size-lg { width: 620px; }
|
|
1343
|
+
.g-ui-drawer-size-xl { width: 780px; }
|
|
1344
|
+
|
|
1345
|
+
.g-ui-notification {
|
|
1346
|
+
border-radius: var(--g-ui-radius);
|
|
1347
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12) var(--g-ui-space-10) var(--g-ui-space-22);
|
|
1348
|
+
background: var(--g-ui-surface);
|
|
1349
|
+
display: flex;
|
|
1350
|
+
align-items: center;
|
|
1351
|
+
gap: var(--g-ui-space-8);
|
|
1352
|
+
box-shadow: var(--g-ui-shadow-lg);
|
|
1353
|
+
position: relative;
|
|
1354
|
+
overflow: hidden;
|
|
1355
|
+
}
|
|
1356
|
+
.g-ui-notification-bordered {
|
|
1357
|
+
border: 1px solid var(--g-ui-border);
|
|
1358
|
+
}
|
|
1359
|
+
.g-ui-notification::before {
|
|
1360
|
+
content: '';
|
|
1361
|
+
position: absolute;
|
|
1362
|
+
left: 4px;
|
|
1363
|
+
top: 4px;
|
|
1364
|
+
bottom: 4px;
|
|
1365
|
+
width: 6px;
|
|
1366
|
+
border-radius: 999px;
|
|
1367
|
+
background: var(--g-ui-primary);
|
|
1368
|
+
}
|
|
1369
|
+
.g-ui-notification-with-icon::before {
|
|
1370
|
+
display: none;
|
|
1371
|
+
}
|
|
1372
|
+
.g-ui-notification-body {
|
|
1373
|
+
flex: 1;
|
|
1374
|
+
overflow: hidden;
|
|
1375
|
+
}
|
|
1376
|
+
.g-ui-notification-icon {
|
|
1377
|
+
display: inline-flex;
|
|
1378
|
+
align-items: center;
|
|
1379
|
+
justify-content: center;
|
|
1380
|
+
width: 28px;
|
|
1381
|
+
height: 28px;
|
|
1382
|
+
border-radius: 999px;
|
|
1383
|
+
background: var(--g-ui-primary);
|
|
1384
|
+
color: var(--g-ui-primary-fg);
|
|
1385
|
+
}
|
|
1386
|
+
.g-ui-notification-loader { margin-right: var(--g-ui-space-8); }
|
|
1387
|
+
.g-ui-notification-close {
|
|
1388
|
+
margin-left: auto;
|
|
1389
|
+
border: 0;
|
|
1390
|
+
background: transparent;
|
|
1391
|
+
color: var(--g-ui-muted);
|
|
1392
|
+
cursor: pointer;
|
|
1393
|
+
display: flex;
|
|
1394
|
+
align-items: center;
|
|
1395
|
+
justify-content: center;
|
|
1396
|
+
width: 24px;
|
|
1397
|
+
height: 24px;
|
|
1398
|
+
}
|
|
1399
|
+
.g-ui-notification-close span {
|
|
1400
|
+
display: flex;
|
|
1401
|
+
align-items: center;
|
|
1402
|
+
justify-content: center;
|
|
1403
|
+
width: 24px;
|
|
1404
|
+
height: 24px;
|
|
1405
|
+
}
|
|
1406
|
+
.g-ui-notification-close svg{
|
|
1407
|
+
width: 24px;
|
|
1408
|
+
height: 24px;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.g-ui-notification-title { font-weight: 500; font-size: 13px; line-height: 1.35; }
|
|
1412
|
+
.g-ui-notification-primary::before { background: var(--g-ui-primary); }
|
|
1413
|
+
.g-ui-notification-blue::before { background: var(--g-ui-blue-500); }
|
|
1414
|
+
.g-ui-notification-success::before { background: var(--g-ui-success); }
|
|
1415
|
+
.g-ui-notification-danger::before { background: var(--g-ui-danger); }
|
|
1416
|
+
.g-ui-notification-primary .g-ui-notification-icon { background: var(--g-ui-primary); }
|
|
1417
|
+
.g-ui-notification-blue .g-ui-notification-icon { background: var(--g-ui-blue-500); }
|
|
1418
|
+
.g-ui-notification-success .g-ui-notification-icon { background: var(--g-ui-success); }
|
|
1419
|
+
.g-ui-notification-danger .g-ui-notification-icon { background: var(--g-ui-danger); }
|
|
1420
|
+
|
|
1421
|
+
.g-ui-divider {
|
|
1422
|
+
width: 100%;
|
|
1423
|
+
border: 0;
|
|
1424
|
+
height: 1px;
|
|
1425
|
+
background: var(--g-ui-border);
|
|
1426
|
+
margin-top: var(--g-ui-space-9);
|
|
1427
|
+
margin-bottom: var(--g-ui-space-9);
|
|
1428
|
+
}
|
|
1429
|
+
.g-ui-divider-size-xs { height: 1px; }
|
|
1430
|
+
.g-ui-divider-size-sm { height: 2px; }
|
|
1431
|
+
.g-ui-divider-size-md { height: 3px; }
|
|
1432
|
+
.g-ui-divider-size-lg { height: 4px; }
|
|
1433
|
+
.g-ui-divider-size-xl { height: 5px; }
|
|
1434
|
+
.g-ui-divider.label {
|
|
1435
|
+
display: flex;
|
|
1436
|
+
align-items: center;
|
|
1437
|
+
gap: var(--g-ui-space-10);
|
|
1438
|
+
color: var(--g-ui-muted);
|
|
1439
|
+
font-size: 12px;
|
|
1440
|
+
background: transparent;
|
|
1441
|
+
}
|
|
1442
|
+
.g-ui-divider.label::before,
|
|
1443
|
+
.g-ui-divider.label::after {
|
|
1444
|
+
content: '';
|
|
1445
|
+
height: 1px;
|
|
1446
|
+
flex: 1;
|
|
1447
|
+
background: var(--g-ui-border);
|
|
1448
|
+
}
|
|
1449
|
+
.g-ui-divider-label-left.label::before { flex: 0 0 12px; }
|
|
1450
|
+
.g-ui-divider-label-right.label::after { flex: 0 0 12px; }
|
|
1451
|
+
.g-ui-divider-label-text {
|
|
1452
|
+
color: var(--g-ui-muted);
|
|
1453
|
+
font-size: 12px;
|
|
1454
|
+
padding: 0 var(--g-ui-space-10);
|
|
1455
|
+
position: relative;
|
|
1456
|
+
z-index: 1;
|
|
1457
|
+
}
|
|
1458
|
+
.g-ui-divider-vertical {
|
|
1459
|
+
width: 1px;
|
|
1460
|
+
height: 100%;
|
|
1461
|
+
background: var(--g-ui-border);
|
|
1462
|
+
margin: 0 var(--g-ui-space-10);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.g-ui-paper {
|
|
1466
|
+
background: var(--g-ui-surface);
|
|
1467
|
+
border: 0;
|
|
1468
|
+
border-radius: 10px;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.g-ui-textarea {
|
|
1472
|
+
min-height: 120px;
|
|
1473
|
+
resize: vertical;
|
|
1474
|
+
padding: var(--g-ui-space-8) 0;
|
|
1475
|
+
height: auto;
|
|
1476
|
+
}
|
|
1477
|
+
.g-ui-input-multiline {
|
|
1478
|
+
align-items: stretch;
|
|
1479
|
+
padding: 0 var(--g-ui-space-12);
|
|
1480
|
+
height: auto;
|
|
1481
|
+
}
|
|
1482
|
+
.g-ui-input-multiline .g-ui-input {
|
|
1483
|
+
padding: var(--g-ui-space-8) 0;
|
|
1484
|
+
height: auto;
|
|
1485
|
+
}
|
|
1486
|
+
.g-ui-number-field {
|
|
1487
|
+
width: 100%;
|
|
1488
|
+
}
|
|
1489
|
+
.g-ui-number-field-controls {
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-direction: column;
|
|
1492
|
+
gap: var(--g-ui-space-2);
|
|
1493
|
+
margin-left: auto;
|
|
1494
|
+
}
|
|
1495
|
+
.g-ui-number-field-control {
|
|
1496
|
+
width: 18px;
|
|
1497
|
+
height: 18px;
|
|
1498
|
+
border-radius: 6px;
|
|
1499
|
+
display: inline-flex;
|
|
1500
|
+
align-items: center;
|
|
1501
|
+
justify-content: center;
|
|
1502
|
+
border: 1px solid var(--g-ui-border);
|
|
1503
|
+
background: var(--g-ui-bg);
|
|
1504
|
+
color: var(--g-ui-text);
|
|
1505
|
+
cursor: pointer;
|
|
1506
|
+
user-select: none;
|
|
1507
|
+
font-size: 12px;
|
|
1508
|
+
line-height: 1;
|
|
1509
|
+
}
|
|
1510
|
+
.g-ui-number-field-control:hover {
|
|
1511
|
+
background: var(--g-ui-bg-subtle);
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
.g-ui-alert {
|
|
1515
|
+
border-radius: var(--g-ui-radius);
|
|
1516
|
+
border: 1px solid transparent;
|
|
1517
|
+
padding: var(--g-ui-space-16);
|
|
1518
|
+
background: var(--g-ui-primary-subtle);
|
|
1519
|
+
color: var(--g-ui-primary);
|
|
1520
|
+
display: flex;
|
|
1521
|
+
flex-direction: column;
|
|
1522
|
+
gap: var(--g-ui-space-6);
|
|
1523
|
+
}
|
|
1524
|
+
.g-ui-alert-header {
|
|
1525
|
+
display: flex;
|
|
1526
|
+
align-items: center;
|
|
1527
|
+
gap: var(--g-ui-space-8);
|
|
1528
|
+
}
|
|
1529
|
+
.g-ui-alert-icon {
|
|
1530
|
+
display: inline-flex;
|
|
1531
|
+
align-items: center;
|
|
1532
|
+
width: 20px;
|
|
1533
|
+
height: 20px;
|
|
1534
|
+
margin-right: var(--g-ui-space-8);
|
|
1535
|
+
}
|
|
1536
|
+
.g-ui-alert-close {
|
|
1537
|
+
margin-left: auto;
|
|
1538
|
+
border: 0;
|
|
1539
|
+
background: transparent;
|
|
1540
|
+
color: var(--g-ui-muted);
|
|
1541
|
+
cursor: pointer;
|
|
1542
|
+
}
|
|
1543
|
+
.g-ui-alert-title { font-weight: 700; }
|
|
1544
|
+
.g-ui-alert-primary { background: var(--g-ui-primary-subtle); color: var(--g-ui-primary); border-color: transparent; }
|
|
1545
|
+
.g-ui-alert-blue { background: var(--g-ui-blue-subtle); color: var(--g-ui-blue-fg); border-color: transparent; }
|
|
1546
|
+
.g-ui-alert-success { background: var(--g-ui-green-subtle); color: var(--g-ui-green-fg); border-color: transparent; }
|
|
1547
|
+
.g-ui-alert-danger { background: var(--g-ui-red-subtle); color: var(--g-ui-red-fg); border-color: transparent; }
|
|
1548
|
+
.g-ui-alert-warning { background: var(--g-ui-orange-subtle); color: var(--g-ui-orange-fg); border-color: transparent; }
|
|
1549
|
+
|
|
1550
|
+
.g-ui-avatar {
|
|
1551
|
+
display: inline-flex;
|
|
1552
|
+
align-items: center;
|
|
1553
|
+
justify-content: center;
|
|
1554
|
+
border-radius: 50%;
|
|
1555
|
+
background: var(--g-ui-bg-muted);
|
|
1556
|
+
color: var(--g-ui-text);
|
|
1557
|
+
overflow: hidden;
|
|
1558
|
+
border: 1px solid var(--g-ui-border);
|
|
1559
|
+
font-weight: 600;
|
|
1560
|
+
}
|
|
1561
|
+
.g-ui-avatar-size-xs { width: 16px; height: 16px; font-size: 8px; }
|
|
1562
|
+
.g-ui-avatar-size-sm { width: 26px; height: 26px; font-size: 10px; }
|
|
1563
|
+
.g-ui-avatar-size-md { width: 38px; height: 38px; font-size: 13px; }
|
|
1564
|
+
.g-ui-avatar-size-lg { width: 56px; height: 56px; font-size: 18px; }
|
|
1565
|
+
.g-ui-avatar-size-xl { width: 84px; height: 84px; font-size: 24px; }
|
|
1566
|
+
|
|
1567
|
+
.g-ui-icon {
|
|
1568
|
+
display: inline-flex;
|
|
1569
|
+
align-items: center;
|
|
1570
|
+
justify-content: center;
|
|
1571
|
+
flex-shrink: 0;
|
|
1572
|
+
line-height: 1;
|
|
1573
|
+
}
|
|
1574
|
+
.g-ui-icon-size-xs { font-size: 14px; }
|
|
1575
|
+
.g-ui-icon-size-sm { font-size: 18px; }
|
|
1576
|
+
.g-ui-icon-size-md { font-size: 22px; }
|
|
1577
|
+
.g-ui-icon-size-lg { font-size: 28px; }
|
|
1578
|
+
.g-ui-icon-size-xl { font-size: 36px; }
|
|
1579
|
+
.g-ui-icon-color-primary { color: var(--g-ui-primary); }
|
|
1580
|
+
.g-ui-icon-color-success { color: var(--g-ui-green-500); }
|
|
1581
|
+
.g-ui-icon-color-warning { color: var(--g-ui-yellow-500); }
|
|
1582
|
+
.g-ui-icon-color-error { color: var(--g-ui-red-500); }
|
|
1583
|
+
.g-ui-icon-color-muted { color: var(--g-ui-fg-muted); }
|
|
1584
|
+
.g-ui-avatar-img { width: 100%; height: 100%; object-fit: cover; }
|
|
1585
|
+
|
|
1586
|
+
.g-ui-kbd {
|
|
1587
|
+
display: inline-flex;
|
|
1588
|
+
align-items: center;
|
|
1589
|
+
padding: var(--g-ui-space-2) var(--g-ui-space-6);
|
|
1590
|
+
border-radius: 6px;
|
|
1591
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1592
|
+
border-bottom-width: 3px;
|
|
1593
|
+
background: var(--g-ui-bg-muted);
|
|
1594
|
+
font-size: 12px;
|
|
1595
|
+
color: var(--g-ui-text);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
.g-ui-code {
|
|
1599
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1600
|
+
background: var(--g-ui-bg-muted);
|
|
1601
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1602
|
+
border-radius: var(--g-ui-radius);
|
|
1603
|
+
padding: var(--g-ui-space-2) var(--g-ui-space-6);
|
|
1604
|
+
font-size: 11px;
|
|
1605
|
+
color: var(--g-ui-text);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
.g-ui-blockquote {
|
|
1609
|
+
border-left: 5px solid var(--g-ui-primary);
|
|
1610
|
+
padding: var(--g-ui-space-24) var(--g-ui-space-38);
|
|
1611
|
+
background: var(--g-ui-bg-muted);
|
|
1612
|
+
color: var(--g-ui-text);
|
|
1613
|
+
border-radius: 4px;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
.g-ui-grid {
|
|
1617
|
+
display: grid;
|
|
1618
|
+
}
|
|
1619
|
+
.g-ui-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
|
|
1620
|
+
.g-ui-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
1621
|
+
.g-ui-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
1622
|
+
.g-ui-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
1623
|
+
.g-ui-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
1624
|
+
.g-ui-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
1625
|
+
|
|
1626
|
+
.g-ui-list {
|
|
1627
|
+
margin: 0;
|
|
1628
|
+
color: var(--g-ui-text);
|
|
1629
|
+
list-style: none;
|
|
1630
|
+
padding-left: 0;
|
|
1631
|
+
}
|
|
1632
|
+
.g-ui-list-item {
|
|
1633
|
+
list-style: none;
|
|
1634
|
+
padding: var(--g-ui-space-6) 0;
|
|
1635
|
+
}
|
|
1636
|
+
.g-ui-list-item-border {
|
|
1637
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
1638
|
+
}
|
|
1639
|
+
.g-ui-list-item-section {
|
|
1640
|
+
display: inline-flex;
|
|
1641
|
+
align-items: center;
|
|
1642
|
+
flex-shrink: 0;
|
|
1643
|
+
}
|
|
1644
|
+
.g-ui-list-item-shell {
|
|
1645
|
+
display: flex;
|
|
1646
|
+
align-items: center;
|
|
1647
|
+
gap: var(--g-ui-space-10);
|
|
1648
|
+
grid-column: 2;
|
|
1649
|
+
flex-wrap: wrap;
|
|
1650
|
+
}
|
|
1651
|
+
.g-ui-list-item-content {
|
|
1652
|
+
display: flex;
|
|
1653
|
+
flex-direction: column;
|
|
1654
|
+
gap: var(--g-ui-space-2);
|
|
1655
|
+
flex: 1;
|
|
1656
|
+
}
|
|
1657
|
+
.g-ui-list-item-title {
|
|
1658
|
+
font-weight: 600;
|
|
1659
|
+
}
|
|
1660
|
+
.g-ui-list-item-body {
|
|
1661
|
+
color: var(--g-ui-muted);
|
|
1662
|
+
}
|
|
1663
|
+
.g-ui-list-unordered { padding-left: 0; }
|
|
1664
|
+
.g-ui-list-ordered { padding-left: 0; counter-reset: g-ui-list; }
|
|
1665
|
+
.g-ui-list-none { padding-left: 0; }
|
|
1666
|
+
.g-ui-list-unordered > li,
|
|
1667
|
+
.g-ui-list-ordered > li {
|
|
1668
|
+
display: grid;
|
|
1669
|
+
grid-template-columns: max-content 1fr;
|
|
1670
|
+
column-gap: var(--g-ui-space-8);
|
|
1671
|
+
align-items: center;
|
|
1672
|
+
}
|
|
1673
|
+
.g-ui-list-ordered > li:not(.g-ui-list-nested-item) { counter-increment: g-ui-list; }
|
|
1674
|
+
.g-ui-list-unordered > li:not(.g-ui-list-nested-item)::before,
|
|
1675
|
+
.g-ui-list-ordered > li:not(.g-ui-list-nested-item)::before {
|
|
1676
|
+
grid-column: 1;
|
|
1677
|
+
align-self: flex-start;
|
|
1678
|
+
justify-self: end;
|
|
1679
|
+
color: currentColor;
|
|
1680
|
+
}
|
|
1681
|
+
.g-ui-list-unordered > li:not(.g-ui-list-nested-item)::before {
|
|
1682
|
+
content: '\u2022';
|
|
1683
|
+
}
|
|
1684
|
+
.g-ui-list-ordered > li:not(.g-ui-list-nested-item)::before {
|
|
1685
|
+
content: counters(g-ui-list, '.') '.';
|
|
1686
|
+
}
|
|
1687
|
+
.g-ui-list-nested-item {
|
|
1688
|
+
list-style: none;
|
|
1689
|
+
padding-left: 0;
|
|
1690
|
+
grid-template-columns: 1fr;
|
|
1691
|
+
column-gap: 0;
|
|
1692
|
+
}
|
|
1693
|
+
.g-ui-list-nested-item::before {
|
|
1694
|
+
content: none;
|
|
1695
|
+
}
|
|
1696
|
+
.g-ui-list-unordered > li > :not(.g-ui-list-item-shell),
|
|
1697
|
+
.g-ui-list-ordered > li > :not(.g-ui-list-item-shell) {
|
|
1698
|
+
grid-column: 2;
|
|
1699
|
+
}
|
|
1700
|
+
.g-ui-list > li > .g-ui-list {
|
|
1701
|
+
grid-column: 2;
|
|
1702
|
+
margin-top: var(--g-ui-space-6);
|
|
1703
|
+
}
|
|
1704
|
+
.g-ui-list-item-shell > .g-ui-list {
|
|
1705
|
+
flex-basis: 100%;
|
|
1706
|
+
margin-left: 0;
|
|
1707
|
+
}
|
|
1708
|
+
.g-ui-list .g-ui-list {
|
|
1709
|
+
margin-left: var(--g-ui-space-12);
|
|
1710
|
+
}
|
|
1711
|
+
.g-ui-list .g-ui-list-unordered,
|
|
1712
|
+
.g-ui-list .g-ui-list-ordered {
|
|
1713
|
+
padding-left: 0;
|
|
1714
|
+
}
|
|
1715
|
+
.g-ui-list-with-padding { padding-left: var(--g-ui-space-36); }
|
|
1716
|
+
.g-ui-list-size-xs { font-size: 12px; line-height: 1.4; }
|
|
1717
|
+
.g-ui-list-size-sm { font-size: 13px; line-height: 1.45; }
|
|
1718
|
+
.g-ui-list-size-md { font-size: 14px; line-height: 1.5; }
|
|
1719
|
+
.g-ui-list-size-lg { font-size: 16px; line-height: 1.6; }
|
|
1720
|
+
.g-ui-list-size-xl { font-size: 18px; line-height: 1.65; }
|
|
1721
|
+
|
|
1722
|
+
.g-ui-anchor {
|
|
1723
|
+
color: var(--g-ui-primary);
|
|
1724
|
+
text-decoration: none;
|
|
1725
|
+
}
|
|
1726
|
+
.g-ui-anchor:hover { text-decoration: underline; }
|
|
1727
|
+
|
|
1728
|
+
.g-ui-image {
|
|
1729
|
+
max-width: 100%;
|
|
1730
|
+
border-radius: var(--g-ui-radius);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.g-ui-progress {
|
|
1734
|
+
width: 100%;
|
|
1735
|
+
height: 8px;
|
|
1736
|
+
border-radius: 999px;
|
|
1737
|
+
background: var(--g-ui-bg-muted);
|
|
1738
|
+
border: 0;
|
|
1739
|
+
overflow: hidden;
|
|
1740
|
+
}
|
|
1741
|
+
.g-ui-progress-bar {
|
|
1742
|
+
height: 100%;
|
|
1743
|
+
background: var(--g-ui-primary);
|
|
1744
|
+
}
|
|
1745
|
+
.g-ui-progress-size-xs { height: 3px; }
|
|
1746
|
+
.g-ui-progress-size-sm { height: 5px; }
|
|
1747
|
+
.g-ui-progress-size-md { height: 8px; }
|
|
1748
|
+
.g-ui-progress-size-lg { height: 12px; }
|
|
1749
|
+
.g-ui-progress-size-xl { height: 16px; }
|
|
1750
|
+
.g-ui-progress-0 .g-ui-progress-bar { width: 0%; }
|
|
1751
|
+
.g-ui-progress-5 .g-ui-progress-bar { width: 5%; }
|
|
1752
|
+
.g-ui-progress-10 .g-ui-progress-bar { width: 10%; }
|
|
1753
|
+
.g-ui-progress-15 .g-ui-progress-bar { width: 15%; }
|
|
1754
|
+
.g-ui-progress-20 .g-ui-progress-bar { width: 20%; }
|
|
1755
|
+
.g-ui-progress-25 .g-ui-progress-bar { width: 25%; }
|
|
1756
|
+
.g-ui-progress-30 .g-ui-progress-bar { width: 30%; }
|
|
1757
|
+
.g-ui-progress-35 .g-ui-progress-bar { width: 35%; }
|
|
1758
|
+
.g-ui-progress-40 .g-ui-progress-bar { width: 40%; }
|
|
1759
|
+
.g-ui-progress-45 .g-ui-progress-bar { width: 45%; }
|
|
1760
|
+
.g-ui-progress-50 .g-ui-progress-bar { width: 50%; }
|
|
1761
|
+
.g-ui-progress-55 .g-ui-progress-bar { width: 55%; }
|
|
1762
|
+
.g-ui-progress-60 .g-ui-progress-bar { width: 60%; }
|
|
1763
|
+
.g-ui-progress-65 .g-ui-progress-bar { width: 65%; }
|
|
1764
|
+
.g-ui-progress-70 .g-ui-progress-bar { width: 70%; }
|
|
1765
|
+
.g-ui-progress-75 .g-ui-progress-bar { width: 75%; }
|
|
1766
|
+
.g-ui-progress-80 .g-ui-progress-bar { width: 80%; }
|
|
1767
|
+
.g-ui-progress-85 .g-ui-progress-bar { width: 85%; }
|
|
1768
|
+
.g-ui-progress-90 .g-ui-progress-bar { width: 90%; }
|
|
1769
|
+
.g-ui-progress-95 .g-ui-progress-bar { width: 95%; }
|
|
1770
|
+
.g-ui-progress-100 .g-ui-progress-bar { width: 100%; }
|
|
1771
|
+
.g-ui-progress-success .g-ui-progress-bar { background: var(--g-ui-success); }
|
|
1772
|
+
.g-ui-progress-danger .g-ui-progress-bar { background: var(--g-ui-danger); }
|
|
1773
|
+
|
|
1774
|
+
.g-ui-slider {
|
|
1775
|
+
width: 100%;
|
|
1776
|
+
--g-ui-slider-size: 8px;
|
|
1777
|
+
height: calc(var(--g-ui-slider-size) * 2);
|
|
1778
|
+
padding: 0 var(--g-ui-slider-size);
|
|
1779
|
+
display: flex;
|
|
1780
|
+
align-items: center;
|
|
1781
|
+
position: relative;
|
|
1782
|
+
}
|
|
1783
|
+
.g-ui-range-slider {
|
|
1784
|
+
width: 100%;
|
|
1785
|
+
--g-ui-slider-size: 8px;
|
|
1786
|
+
height: calc(var(--g-ui-slider-size) * 2);
|
|
1787
|
+
padding: 0 var(--g-ui-slider-size);
|
|
1788
|
+
display: flex;
|
|
1789
|
+
align-items: center;
|
|
1790
|
+
position: relative;
|
|
1791
|
+
}
|
|
1792
|
+
.g-ui-slider-track {
|
|
1793
|
+
position: relative;
|
|
1794
|
+
width: 100%;
|
|
1795
|
+
height: var(--g-ui-slider-size);
|
|
1796
|
+
border-radius: 999px;
|
|
1797
|
+
background: var(--g-ui-bg-emphasized);
|
|
1798
|
+
}
|
|
1799
|
+
.g-ui-slider-bar {
|
|
1800
|
+
position: absolute;
|
|
1801
|
+
left: 0;
|
|
1802
|
+
top: 0;
|
|
1803
|
+
bottom: 0;
|
|
1804
|
+
background: var(--g-ui-primary);
|
|
1805
|
+
border-radius: 999px;
|
|
1806
|
+
}
|
|
1807
|
+
.g-ui-slider-thumb {
|
|
1808
|
+
position: absolute;
|
|
1809
|
+
top: 50%;
|
|
1810
|
+
transform: translate(-50%, -50%);
|
|
1811
|
+
width: calc(var(--g-ui-slider-size) * 2);
|
|
1812
|
+
height: calc(var(--g-ui-slider-size) * 2);
|
|
1813
|
+
border-radius: 50%;
|
|
1814
|
+
background: var(--g-ui-surface);
|
|
1815
|
+
border: 4px solid var(--g-ui-primary);
|
|
1816
|
+
cursor: pointer;
|
|
1817
|
+
}
|
|
1818
|
+
.g-ui-slider-marks {
|
|
1819
|
+
position: absolute;
|
|
1820
|
+
top: calc(100% + var(--g-ui-space-10));
|
|
1821
|
+
left:10px;
|
|
1822
|
+
right:15px;
|
|
1823
|
+
height: 18px;
|
|
1824
|
+
box-sizing: border-box;
|
|
1825
|
+
padding: 0 var(--g-ui-slider-size);
|
|
1826
|
+
}
|
|
1827
|
+
.g-ui-slider-mark {
|
|
1828
|
+
position: absolute;
|
|
1829
|
+
top: 0;
|
|
1830
|
+
transform: translateX(-50%);
|
|
1831
|
+
}
|
|
1832
|
+
.g-ui-slider-mark-label {
|
|
1833
|
+
font-size: 11px;
|
|
1834
|
+
color: var(--g-ui-muted);
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
.g-ui-slider-disabled .g-ui-slider-track { background: var(--g-ui-border); }
|
|
1838
|
+
.g-ui-slider-disabled .g-ui-slider-bar { background: var(--g-ui-border-emphasized); }
|
|
1839
|
+
.g-ui-slider-disabled .g-ui-slider-thumb { cursor: not-allowed; opacity: 0.6; }
|
|
1840
|
+
.g-ui-slider-size-xs { --g-ui-slider-size: 4px; }
|
|
1841
|
+
.g-ui-slider-size-sm { --g-ui-slider-size: 6px; }
|
|
1842
|
+
.g-ui-slider-size-md { --g-ui-slider-size: 8px; }
|
|
1843
|
+
.g-ui-slider-size-lg { --g-ui-slider-size: 10px; }
|
|
1844
|
+
.g-ui-slider-size-xl { --g-ui-slider-size: 12px; }
|
|
1845
|
+
|
|
1846
|
+
.g-ui-skeleton {
|
|
1847
|
+
background: var(--g-ui-border-muted);
|
|
1848
|
+
animation: g-ui-skeleton-fade 1.5s ease-in-out infinite;
|
|
1849
|
+
border-radius: 4px;
|
|
1850
|
+
}
|
|
1851
|
+
@keyframes g-ui-skeleton-fade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
|
|
1852
|
+
|
|
1853
|
+
.g-ui-chip {
|
|
1854
|
+
display: inline-flex;
|
|
1855
|
+
align-items: center;
|
|
1856
|
+
border: 1px solid transparent;
|
|
1857
|
+
border-radius: 999px;
|
|
1858
|
+
cursor: pointer;
|
|
1859
|
+
background: transparent;
|
|
1860
|
+
color: var(--g-ui-text);
|
|
1861
|
+
}
|
|
1862
|
+
.g-ui-chip-active {
|
|
1863
|
+
background: var(--g-ui-primary);
|
|
1864
|
+
border-color: transparent;
|
|
1865
|
+
color: var(--g-ui-primary-fg);
|
|
1866
|
+
}
|
|
1867
|
+
.g-ui-chip-size-xs { font-size: 12px; height: 20px; padding: 0 var(--g-ui-space-6); }
|
|
1868
|
+
.g-ui-chip-size-sm { font-size: 13px; height: 21px; padding: 0 var(--g-ui-space-5); }
|
|
1869
|
+
.g-ui-chip-size-md { font-size: 14px; height: 22px; padding: 0 var(--g-ui-space-6); }
|
|
1870
|
+
.g-ui-chip-size-lg { font-size: 15px; height: 23px; padding: 0 var(--g-ui-space-7); }
|
|
1871
|
+
.g-ui-chip-size-xl { font-size: 16px; height: 24px; padding: 0 var(--g-ui-space-8); }
|
|
1872
|
+
.g-ui-chip-variant-filled { background: var(--g-ui-bg-muted); color: var(--g-ui-text); border-color: transparent; }
|
|
1873
|
+
.g-ui-chip-variant-light { background: var(--g-ui-bg-muted); color: var(--g-ui-text); border-color: transparent; }
|
|
1874
|
+
.g-ui-chip-variant-outline { background: var(--g-ui-surface); color: var(--g-ui-text); border-color: var(--g-ui-border); }
|
|
1875
|
+
.g-ui-chip-variant-filled.g-ui-chip-active,
|
|
1876
|
+
.g-ui-chip-variant-light.g-ui-chip-active,
|
|
1877
|
+
.g-ui-chip-variant-outline.g-ui-chip-active {
|
|
1878
|
+
background: var(--g-ui-primary);
|
|
1879
|
+
border-color: transparent;
|
|
1880
|
+
color: var(--g-ui-primary-fg);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
.g-ui-segmented {
|
|
1884
|
+
display: inline-flex;
|
|
1885
|
+
border-radius: 10px;
|
|
1886
|
+
overflow: hidden;
|
|
1887
|
+
padding: var(--g-ui-space-4);
|
|
1888
|
+
background: var(--g-ui-bg-muted);
|
|
1889
|
+
}
|
|
1890
|
+
.g-ui-segmented-item {
|
|
1891
|
+
padding: var(--g-ui-space-4) var(--g-ui-space-14);
|
|
1892
|
+
cursor: pointer;
|
|
1893
|
+
background: transparent;
|
|
1894
|
+
color: var(--g-ui-text);
|
|
1895
|
+
border-radius: 8px;
|
|
1896
|
+
}
|
|
1897
|
+
.g-ui-segmented-active {
|
|
1898
|
+
background: var(--g-ui-bg);
|
|
1899
|
+
color: var(--g-ui-text);
|
|
1900
|
+
}
|
|
1901
|
+
.g-ui-segmented-size-xs .g-ui-segmented-item { padding: var(--g-ui-space-2) var(--g-ui-space-6); font-size: 12px; }
|
|
1902
|
+
.g-ui-segmented-size-sm .g-ui-segmented-item { padding: var(--g-ui-space-3) var(--g-ui-space-10); font-size: 13px; }
|
|
1903
|
+
.g-ui-segmented-size-md .g-ui-segmented-item { padding: var(--g-ui-space-4) var(--g-ui-space-14); font-size: 14px; }
|
|
1904
|
+
.g-ui-segmented-size-lg .g-ui-segmented-item { padding: var(--g-ui-space-7) var(--g-ui-space-16); font-size: 15px; }
|
|
1905
|
+
.g-ui-segmented-size-xl .g-ui-segmented-item { padding: var(--g-ui-space-10) var(--g-ui-space-20); font-size: 16px; }
|
|
1906
|
+
|
|
1907
|
+
.g-ui-pagination {
|
|
1908
|
+
display: inline-flex;
|
|
1909
|
+
gap: var(--g-ui-space-6);
|
|
1910
|
+
align-items: center;
|
|
1911
|
+
}
|
|
1912
|
+
.g-ui-pagination-item {
|
|
1913
|
+
min-width: 32px;
|
|
1914
|
+
height: 32px;
|
|
1915
|
+
border-radius: 8px;
|
|
1916
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
1917
|
+
background: var(--g-ui-bg);
|
|
1918
|
+
color: var(--g-ui-text);
|
|
1919
|
+
cursor: pointer;
|
|
1920
|
+
font-size: 14px;
|
|
1921
|
+
}
|
|
1922
|
+
.g-ui-pagination-item-active {
|
|
1923
|
+
background: var(--g-ui-primary);
|
|
1924
|
+
border-color: var(--g-ui-primary);
|
|
1925
|
+
color: var(--g-ui-primary-fg);
|
|
1926
|
+
}
|
|
1927
|
+
.g-ui-pagination-item.g-ui-pagination-item-active:hover{
|
|
1928
|
+
background: var(--g-ui-primary-hover);
|
|
1929
|
+
border-color: var(--g-ui-primary-hover);
|
|
1930
|
+
color: var(--g-ui-primary-fg);
|
|
1931
|
+
}
|
|
1932
|
+
.g-ui-pagination-item:hover {
|
|
1933
|
+
background: var(--g-ui-bg-subtle);
|
|
1934
|
+
}
|
|
1935
|
+
.g-ui-pagination-size-xs .g-ui-pagination-item { min-width: 22px; height: 22px; font-size: 12px; }
|
|
1936
|
+
.g-ui-pagination-size-sm .g-ui-pagination-item { min-width: 26px; height: 26px; font-size: 12px; }
|
|
1937
|
+
.g-ui-pagination-size-md .g-ui-pagination-item { min-width: 32px; height: 32px; font-size: 14px; }
|
|
1938
|
+
.g-ui-pagination-size-lg .g-ui-pagination-item { min-width: 38px; height: 38px; font-size: 15px; }
|
|
1939
|
+
.g-ui-pagination-size-xl .g-ui-pagination-item { min-width: 44px; height: 44px; font-size: 16px; }
|
|
1940
|
+
|
|
1941
|
+
.g-ui-timeline {
|
|
1942
|
+
display: flex;
|
|
1943
|
+
flex-direction: column;
|
|
1944
|
+
gap: 0;
|
|
1945
|
+
}
|
|
1946
|
+
.g-ui-timeline-item {
|
|
1947
|
+
display: grid;
|
|
1948
|
+
grid-template-columns: 28px 1fr;
|
|
1949
|
+
gap: var(--g-ui-space-16);
|
|
1950
|
+
align-items: start;
|
|
1951
|
+
position: relative;
|
|
1952
|
+
padding-bottom: var(--g-ui-space-24);
|
|
1953
|
+
}
|
|
1954
|
+
.g-ui-timeline-item:last-child {
|
|
1955
|
+
padding-bottom: 0;
|
|
1956
|
+
}
|
|
1957
|
+
.g-ui-timeline-item::before {
|
|
1958
|
+
content: '';
|
|
1959
|
+
position: absolute;
|
|
1960
|
+
left: 8px;
|
|
1961
|
+
top: 20px;
|
|
1962
|
+
bottom: 0;
|
|
1963
|
+
width: 4px;
|
|
1964
|
+
background: var(--g-ui-border-muted);
|
|
1965
|
+
}
|
|
1966
|
+
.g-ui-timeline-item:last-child::before {
|
|
1967
|
+
display: none;
|
|
1968
|
+
}
|
|
1969
|
+
.g-ui-timeline-dot {
|
|
1970
|
+
width: 20px;
|
|
1971
|
+
height: 20px;
|
|
1972
|
+
border-radius: 50%;
|
|
1973
|
+
background: var(--g-ui-bg);
|
|
1974
|
+
border: 4px solid var(--g-ui-primary);
|
|
1975
|
+
margin-top: 0;
|
|
1976
|
+
position: relative;
|
|
1977
|
+
z-index: 1;
|
|
1978
|
+
}
|
|
1979
|
+
.g-ui-timeline-content {
|
|
1980
|
+
display: flex;
|
|
1981
|
+
flex-direction: column;
|
|
1982
|
+
gap: var(--g-ui-space-4);
|
|
1983
|
+
}
|
|
1984
|
+
.g-ui-timeline-title { font-weight: 600; }
|
|
1985
|
+
.g-ui-timeline-desc { color: var(--g-ui-muted); font-size: 13px; }
|
|
1986
|
+
|
|
1987
|
+
.g-ui-stepper {
|
|
1988
|
+
display: flex;
|
|
1989
|
+
gap: var(--g-ui-space-12);
|
|
1990
|
+
align-items: center;
|
|
1991
|
+
}
|
|
1992
|
+
.g-ui-stepper-item {
|
|
1993
|
+
display: flex;
|
|
1994
|
+
align-items: center;
|
|
1995
|
+
gap: var(--g-ui-space-8);
|
|
1996
|
+
}
|
|
1997
|
+
.g-ui-stepper-index {
|
|
1998
|
+
width: 42px;
|
|
1999
|
+
height: 42px;
|
|
2000
|
+
border-radius: 50%;
|
|
2001
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2002
|
+
display: inline-flex;
|
|
2003
|
+
align-items: center;
|
|
2004
|
+
justify-content: center;
|
|
2005
|
+
font-size: 14px;
|
|
2006
|
+
font-weight: 600;
|
|
2007
|
+
background: var(--g-ui-bg);
|
|
2008
|
+
}
|
|
2009
|
+
.g-ui-stepper-active .g-ui-stepper-index {
|
|
2010
|
+
background: var(--g-ui-primary-subtle);
|
|
2011
|
+
border-color: var(--g-ui-primary);
|
|
2012
|
+
color: var(--g-ui-primary);
|
|
2013
|
+
}
|
|
2014
|
+
.g-ui-stepper-label { font-size: 14px; font-weight: 500; }
|
|
2015
|
+
|
|
2016
|
+
.g-ui-rating {
|
|
2017
|
+
display: inline-flex;
|
|
2018
|
+
gap: var(--g-ui-space-2);
|
|
2019
|
+
}
|
|
2020
|
+
.g-ui-rating-item {
|
|
2021
|
+
cursor: pointer;
|
|
2022
|
+
color: var(--g-ui-border);
|
|
2023
|
+
}
|
|
2024
|
+
.g-ui-rating-item-active {
|
|
2025
|
+
color: var(--g-ui-primary);
|
|
2026
|
+
}
|
|
2027
|
+
.g-ui-rating-size-xs { font-size: 14px; }
|
|
2028
|
+
.g-ui-rating-size-sm { font-size: 18px; }
|
|
2029
|
+
.g-ui-rating-size-md { font-size: 20px; }
|
|
2030
|
+
.g-ui-rating-size-lg { font-size: 28px; }
|
|
2031
|
+
.g-ui-rating-size-xl { font-size: 32px; }
|
|
2032
|
+
|
|
2033
|
+
.g-ui-tag {
|
|
2034
|
+
display: inline-flex;
|
|
2035
|
+
align-items: center;
|
|
2036
|
+
gap: var(--g-ui-space-6);
|
|
2037
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2038
|
+
border-radius: 999px;
|
|
2039
|
+
padding: var(--g-ui-space-4) var(--g-ui-space-10);
|
|
2040
|
+
font-size: 12px;
|
|
2041
|
+
color: var(--g-ui-text);
|
|
2042
|
+
background: var(--g-ui-bg);
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
.g-ui-calendar {
|
|
2047
|
+
width: 100%;
|
|
2048
|
+
border: 1px solid var(--g-ui-border);
|
|
2049
|
+
border-radius: var(--g-ui-radius);
|
|
2050
|
+
background: var(--g-ui-bg);
|
|
2051
|
+
padding: var(--g-ui-space-12);
|
|
2052
|
+
}
|
|
2053
|
+
.g-ui-calendar-header {
|
|
2054
|
+
display: flex;
|
|
2055
|
+
align-items: center;
|
|
2056
|
+
justify-content: space-between;
|
|
2057
|
+
margin-bottom: var(--g-ui-space-10);
|
|
2058
|
+
}
|
|
2059
|
+
.g-ui-calendar-title-group {
|
|
2060
|
+
display: flex;
|
|
2061
|
+
align-items: center;
|
|
2062
|
+
gap: var(--g-ui-space-6);
|
|
2063
|
+
}
|
|
2064
|
+
.g-ui-calendar-title-button {
|
|
2065
|
+
border: 0;
|
|
2066
|
+
background: transparent;
|
|
2067
|
+
padding: var(--g-ui-space-2) var(--g-ui-space-6);
|
|
2068
|
+
border-radius: 6px;
|
|
2069
|
+
font-weight: 500;
|
|
2070
|
+
font-size: 14px;
|
|
2071
|
+
color: var(--g-ui-text);
|
|
2072
|
+
cursor: pointer;
|
|
2073
|
+
}
|
|
2074
|
+
.g-ui-calendar-title-button:hover {
|
|
2075
|
+
background: var(--g-ui-bg-subtle);
|
|
2076
|
+
}
|
|
2077
|
+
.g-ui-calendar-title {
|
|
2078
|
+
font-weight: 500;
|
|
2079
|
+
font-size: 14px;
|
|
2080
|
+
}
|
|
2081
|
+
.g-ui-calendar-nav-icon svg {
|
|
2082
|
+
width: 14px;
|
|
2083
|
+
height: 14px;
|
|
2084
|
+
fill: currentColor;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
.g-ui-calendar-size-xs { width: 220px; }
|
|
2089
|
+
.g-ui-calendar-size-sm { width: 260px; }
|
|
2090
|
+
.g-ui-calendar-size-md { width: 300px; }
|
|
2091
|
+
.g-ui-calendar-size-lg { width: 370px; }
|
|
2092
|
+
.g-ui-calendar-size-xl { width: 420px; }
|
|
2093
|
+
|
|
2094
|
+
.g-ui-calendar-size-xs .g-ui-calendar-grid { gap: var(--g-ui-space-2); }
|
|
2095
|
+
.g-ui-calendar-size-sm .g-ui-calendar-grid { gap: var(--g-ui-space-4); }
|
|
2096
|
+
.g-ui-calendar-size-md .g-ui-calendar-grid { gap: var(--g-ui-space-6); }
|
|
2097
|
+
.g-ui-calendar-size-lg .g-ui-calendar-grid { gap: var(--g-ui-space-8); }
|
|
2098
|
+
.g-ui-calendar-size-xl .g-ui-calendar-grid { gap: var(--g-ui-space-10); }
|
|
2099
|
+
|
|
2100
|
+
.g-ui-calendar-size-xs .g-ui-calendar-cell { width: 26px; height: 26px; font-size: 12px; }
|
|
2101
|
+
.g-ui-calendar-size-sm .g-ui-calendar-cell { width: 30px; height: 30px; font-size: 13px; }
|
|
2102
|
+
.g-ui-calendar-size-md .g-ui-calendar-cell { width: 34px; height: 34px; font-size: 14px; }
|
|
2103
|
+
.g-ui-calendar-size-lg .g-ui-calendar-cell { width: 42px; height: 34px; font-size: 16px; }
|
|
2104
|
+
.g-ui-calendar-size-xl .g-ui-calendar-cell { width: 48px; height: 38px; font-size: 18px; }
|
|
2105
|
+
|
|
2106
|
+
|
|
2107
|
+
.g-ui-calendar-grid {
|
|
2108
|
+
display: grid;
|
|
2109
|
+
grid-template-columns: repeat(7, 1fr);
|
|
2110
|
+
gap: var(--g-ui-space-6);
|
|
2111
|
+
}
|
|
2112
|
+
.g-ui-calendar-cell {
|
|
2113
|
+
width: 32px;
|
|
2114
|
+
height: 32px;
|
|
2115
|
+
border-radius: 8px;
|
|
2116
|
+
display: flex;
|
|
2117
|
+
align-items: center;
|
|
2118
|
+
justify-content: center;
|
|
2119
|
+
cursor: pointer;
|
|
2120
|
+
color: var(--g-ui-text);
|
|
2121
|
+
}
|
|
2122
|
+
.g-ui-calendar-cell:hover {
|
|
2123
|
+
background: var(--g-ui-bg-subtle);
|
|
2124
|
+
}
|
|
2125
|
+
.g-ui-calendar-cell-muted {
|
|
2126
|
+
color: var(--g-ui-muted);
|
|
2127
|
+
}
|
|
2128
|
+
.g-ui-calendar-cell-active,
|
|
2129
|
+
.g-ui-calendar-cell-active:hover {
|
|
2130
|
+
background: var(--g-ui-primary);
|
|
2131
|
+
color: var(--g-ui-primary-fg);
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
/* EventCalendar */
|
|
2135
|
+
.g-ui-event-calendar {
|
|
2136
|
+
display: flex;
|
|
2137
|
+
flex-direction: column;
|
|
2138
|
+
width: 100%;
|
|
2139
|
+
min-height: 480px;
|
|
2140
|
+
background: var(--g-ui-bg);
|
|
2141
|
+
border: 1px solid var(--g-ui-border);
|
|
2142
|
+
border-radius: var(--g-ui-radius);
|
|
2143
|
+
overflow: hidden;
|
|
2144
|
+
}
|
|
2145
|
+
.g-ui-event-calendar-header {
|
|
2146
|
+
display: flex;
|
|
2147
|
+
align-items: center;
|
|
2148
|
+
justify-content: space-between;
|
|
2149
|
+
flex-wrap: wrap;
|
|
2150
|
+
gap: var(--g-ui-space-10);
|
|
2151
|
+
padding: var(--g-ui-space-12) var(--g-ui-space-16);
|
|
2152
|
+
border-bottom: 1px solid var(--g-ui-border);
|
|
2153
|
+
background: var(--g-ui-bg);
|
|
2154
|
+
}
|
|
2155
|
+
.g-ui-event-calendar-nav-group {
|
|
2156
|
+
display: flex;
|
|
2157
|
+
align-items: center;
|
|
2158
|
+
gap: var(--g-ui-space-4);
|
|
2159
|
+
}
|
|
2160
|
+
.g-ui-event-calendar-nav {
|
|
2161
|
+
border-radius: 8px;
|
|
2162
|
+
}
|
|
2163
|
+
.g-ui-event-calendar-today {
|
|
2164
|
+
margin-left: var(--g-ui-space-8);
|
|
2165
|
+
}
|
|
2166
|
+
.g-ui-event-calendar-today-icon {
|
|
2167
|
+
margin-right: var(--g-ui-space-6);
|
|
2168
|
+
}
|
|
2169
|
+
.g-ui-event-calendar-title {
|
|
2170
|
+
font-weight: 600;
|
|
2171
|
+
font-size: 18px;
|
|
2172
|
+
color: var(--g-ui-text);
|
|
2173
|
+
min-width: 200px;
|
|
2174
|
+
text-align: center;
|
|
2175
|
+
}
|
|
2176
|
+
.g-ui-event-calendar-actions {
|
|
2177
|
+
display: flex;
|
|
2178
|
+
align-items: center;
|
|
2179
|
+
gap: var(--g-ui-space-8);
|
|
2180
|
+
}
|
|
2181
|
+
.g-ui-event-calendar-view-option {
|
|
2182
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-12);
|
|
2183
|
+
border-radius: 8px;
|
|
2184
|
+
font-size: 13px;
|
|
2185
|
+
font-weight: 500;
|
|
2186
|
+
color: var(--g-ui-text);
|
|
2187
|
+
cursor: pointer;
|
|
2188
|
+
background: transparent;
|
|
2189
|
+
border: 1px solid transparent;
|
|
2190
|
+
}
|
|
2191
|
+
.g-ui-event-calendar-view-option:hover {
|
|
2192
|
+
background: var(--g-ui-bg-subtle);
|
|
2193
|
+
}
|
|
2194
|
+
.g-ui-event-calendar-view-option-active {
|
|
2195
|
+
background: var(--g-ui-primary-subtle);
|
|
2196
|
+
color: var(--g-ui-primary);
|
|
2197
|
+
}
|
|
2198
|
+
.g-ui-event-calendar-create-btn {
|
|
2199
|
+
display: inline-flex;
|
|
2200
|
+
align-items: center;
|
|
2201
|
+
gap: var(--g-ui-space-6);
|
|
2202
|
+
}
|
|
2203
|
+
.g-ui-event-calendar-month {
|
|
2204
|
+
flex: 1;
|
|
2205
|
+
display: flex;
|
|
2206
|
+
flex-direction: column;
|
|
2207
|
+
min-height: 0;
|
|
2208
|
+
}
|
|
2209
|
+
.g-ui-event-calendar-weekdays {
|
|
2210
|
+
display: grid;
|
|
2211
|
+
grid-template-columns: repeat(7, 1fr);
|
|
2212
|
+
padding: var(--g-ui-space-8) var(--g-ui-space-16);
|
|
2213
|
+
border-bottom: 1px solid var(--g-ui-border);
|
|
2214
|
+
font-size: 11px;
|
|
2215
|
+
font-weight: 600;
|
|
2216
|
+
text-transform: uppercase;
|
|
2217
|
+
letter-spacing: 0.02em;
|
|
2218
|
+
color: var(--g-ui-muted);
|
|
2219
|
+
}
|
|
2220
|
+
.g-ui-event-calendar-weekday {
|
|
2221
|
+
text-align: center;
|
|
2222
|
+
}
|
|
2223
|
+
.g-ui-event-calendar-month-grid {
|
|
2224
|
+
flex: 1;
|
|
2225
|
+
display: grid;
|
|
2226
|
+
grid-template-columns: repeat(7, 1fr);
|
|
2227
|
+
grid-auto-rows: minmax(100px, 1fr);
|
|
2228
|
+
gap: 1px;
|
|
2229
|
+
padding: var(--g-ui-space-8);
|
|
2230
|
+
background: var(--g-ui-border);
|
|
2231
|
+
overflow: auto;
|
|
2232
|
+
}
|
|
2233
|
+
.g-ui-event-calendar-month-cell {
|
|
2234
|
+
background: var(--g-ui-bg);
|
|
2235
|
+
min-height: 100px;
|
|
2236
|
+
display: flex;
|
|
2237
|
+
flex-direction: column;
|
|
2238
|
+
padding: var(--g-ui-space-4);
|
|
2239
|
+
}
|
|
2240
|
+
.g-ui-event-calendar-month-cell-outside {
|
|
2241
|
+
background: var(--g-ui-bg-subtle);
|
|
2242
|
+
}
|
|
2243
|
+
.g-ui-event-calendar-month-cell-today {
|
|
2244
|
+
background: var(--g-ui-primary-subtle);
|
|
2245
|
+
}
|
|
2246
|
+
.g-ui-event-calendar-month-cell-header {
|
|
2247
|
+
flex-shrink: 0;
|
|
2248
|
+
font-size: 13px;
|
|
2249
|
+
font-weight: 500;
|
|
2250
|
+
color: var(--g-ui-text);
|
|
2251
|
+
cursor: pointer;
|
|
2252
|
+
padding: var(--g-ui-space-2) 0;
|
|
2253
|
+
border-radius: 4px;
|
|
2254
|
+
margin: -2px 0;
|
|
2255
|
+
}
|
|
2256
|
+
.g-ui-event-calendar-month-cell-header:hover {
|
|
2257
|
+
background: var(--g-ui-bg-muted);
|
|
2258
|
+
}
|
|
2259
|
+
.g-ui-event-calendar-month-cell-events {
|
|
2260
|
+
flex: 1;
|
|
2261
|
+
display: flex;
|
|
2262
|
+
flex-direction: column;
|
|
2263
|
+
gap: 2px;
|
|
2264
|
+
min-height: 0;
|
|
2265
|
+
overflow: hidden;
|
|
2266
|
+
}
|
|
2267
|
+
.g-ui-event-calendar-month-event {
|
|
2268
|
+
font-size: 12px;
|
|
2269
|
+
padding: 2px 6px;
|
|
2270
|
+
border-radius: 4px;
|
|
2271
|
+
border-left: 3px solid var(--g-ui-primary);
|
|
2272
|
+
background: var(--g-ui-primary-subtle);
|
|
2273
|
+
color: var(--g-ui-text);
|
|
2274
|
+
cursor: pointer;
|
|
2275
|
+
overflow: hidden;
|
|
2276
|
+
text-overflow: ellipsis;
|
|
2277
|
+
white-space: nowrap;
|
|
2278
|
+
}
|
|
2279
|
+
.g-ui-event-calendar-month-event:hover {
|
|
2280
|
+
opacity: 0.9;
|
|
2281
|
+
}
|
|
2282
|
+
.g-ui-event-calendar-month-more {
|
|
2283
|
+
font-size: 11px;
|
|
2284
|
+
color: var(--g-ui-primary);
|
|
2285
|
+
cursor: pointer;
|
|
2286
|
+
padding: 2px 4px;
|
|
2287
|
+
margin-top: 2px;
|
|
2288
|
+
}
|
|
2289
|
+
.g-ui-event-calendar-month-more:hover {
|
|
2290
|
+
text-decoration: underline;
|
|
2291
|
+
}
|
|
2292
|
+
.g-ui-event-calendar-week {
|
|
2293
|
+
flex: 1;
|
|
2294
|
+
display: flex;
|
|
2295
|
+
flex-direction: column;
|
|
2296
|
+
min-height: 0;
|
|
2297
|
+
overflow: auto;
|
|
2298
|
+
}
|
|
2299
|
+
.g-ui-event-calendar-week-days {
|
|
2300
|
+
display: grid;
|
|
2301
|
+
grid-template-columns: 60px repeat(7, 1fr);
|
|
2302
|
+
border-bottom: 1px solid var(--g-ui-border);
|
|
2303
|
+
background: var(--g-ui-bg);
|
|
2304
|
+
}
|
|
2305
|
+
.g-ui-event-calendar-week-day-col {
|
|
2306
|
+
padding: var(--g-ui-space-8);
|
|
2307
|
+
text-align: center;
|
|
2308
|
+
font-size: 12px;
|
|
2309
|
+
font-weight: 500;
|
|
2310
|
+
color: var(--g-ui-text);
|
|
2311
|
+
}
|
|
2312
|
+
.g-ui-event-calendar-week-time-col {
|
|
2313
|
+
width: 60px;
|
|
2314
|
+
flex-shrink: 0;
|
|
2315
|
+
font-size: 11px;
|
|
2316
|
+
color: var(--g-ui-muted);
|
|
2317
|
+
padding: var(--g-ui-space-4);
|
|
2318
|
+
}
|
|
2319
|
+
.g-ui-event-calendar-week-body {
|
|
2320
|
+
display: flex;
|
|
2321
|
+
flex: 1;
|
|
2322
|
+
min-height: 400px;
|
|
2323
|
+
}
|
|
2324
|
+
.g-ui-event-calendar-week-body .g-ui-event-calendar-week-time-col {
|
|
2325
|
+
display: flex;
|
|
2326
|
+
flex-direction: column;
|
|
2327
|
+
gap: 0;
|
|
2328
|
+
}
|
|
2329
|
+
.g-ui-event-calendar-week-slot-label {
|
|
2330
|
+
height: 48px;
|
|
2331
|
+
font-size: 10px;
|
|
2332
|
+
color: var(--g-ui-muted);
|
|
2333
|
+
display: flex;
|
|
2334
|
+
align-items: flex-start;
|
|
2335
|
+
padding-top: 2px;
|
|
2336
|
+
}
|
|
2337
|
+
.g-ui-event-calendar-week-grid-cols {
|
|
2338
|
+
display: grid;
|
|
2339
|
+
grid-template-columns: repeat(7, 1fr);
|
|
2340
|
+
flex: 1;
|
|
2341
|
+
position: relative;
|
|
2342
|
+
border-left: 1px solid var(--g-ui-border);
|
|
2343
|
+
}
|
|
2344
|
+
.g-ui-event-calendar-week-day-col-body {
|
|
2345
|
+
position: relative;
|
|
2346
|
+
display: flex;
|
|
2347
|
+
flex-direction: column;
|
|
2348
|
+
border-right: 1px solid var(--g-ui-border);
|
|
2349
|
+
}
|
|
2350
|
+
.g-ui-event-calendar-week-slot {
|
|
2351
|
+
height: 48px;
|
|
2352
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
2353
|
+
cursor: pointer;
|
|
2354
|
+
}
|
|
2355
|
+
.g-ui-event-calendar-week-slot:hover {
|
|
2356
|
+
background: var(--g-ui-bg-subtle);
|
|
2357
|
+
}
|
|
2358
|
+
.g-ui-event-calendar-week-event {
|
|
2359
|
+
position: absolute;
|
|
2360
|
+
left: 2px;
|
|
2361
|
+
right: 2px;
|
|
2362
|
+
border-left: 3px solid var(--g-ui-primary);
|
|
2363
|
+
background: var(--g-ui-primary-subtle);
|
|
2364
|
+
border-radius: 4px;
|
|
2365
|
+
padding: 4px 6px;
|
|
2366
|
+
overflow: hidden;
|
|
2367
|
+
cursor: pointer;
|
|
2368
|
+
font-size: 12px;
|
|
2369
|
+
color: var(--g-ui-text);
|
|
2370
|
+
pointer-events: auto;
|
|
2371
|
+
}
|
|
2372
|
+
.g-ui-event-calendar-week-event:hover {
|
|
2373
|
+
opacity: 0.95;
|
|
2374
|
+
}
|
|
2375
|
+
.g-ui-event-calendar-week-event-title {
|
|
2376
|
+
font-weight: 500;
|
|
2377
|
+
overflow: hidden;
|
|
2378
|
+
text-overflow: ellipsis;
|
|
2379
|
+
white-space: nowrap;
|
|
2380
|
+
}
|
|
2381
|
+
.g-ui-event-calendar-week-event-time {
|
|
2382
|
+
font-size: 10px;
|
|
2383
|
+
color: var(--g-ui-muted);
|
|
2384
|
+
display: block;
|
|
2385
|
+
}
|
|
2386
|
+
.g-ui-event-calendar-day {
|
|
2387
|
+
flex: 1;
|
|
2388
|
+
display: flex;
|
|
2389
|
+
flex-direction: column;
|
|
2390
|
+
min-height: 0;
|
|
2391
|
+
overflow: auto;
|
|
2392
|
+
}
|
|
2393
|
+
.g-ui-event-calendar-day-body {
|
|
2394
|
+
display: flex;
|
|
2395
|
+
flex: 1;
|
|
2396
|
+
min-height: 400px;
|
|
2397
|
+
}
|
|
2398
|
+
.g-ui-event-calendar-day-time-col {
|
|
2399
|
+
width: 60px;
|
|
2400
|
+
flex-shrink: 0;
|
|
2401
|
+
display: flex;
|
|
2402
|
+
flex-direction: column;
|
|
2403
|
+
font-size: 11px;
|
|
2404
|
+
color: var(--g-ui-muted);
|
|
2405
|
+
padding: var(--g-ui-space-4);
|
|
2406
|
+
border-right: 1px solid var(--g-ui-border);
|
|
2407
|
+
}
|
|
2408
|
+
.g-ui-event-calendar-day-slot-label {
|
|
2409
|
+
height: 48px;
|
|
2410
|
+
display: flex;
|
|
2411
|
+
align-items: flex-start;
|
|
2412
|
+
padding-top: 2px;
|
|
2413
|
+
}
|
|
2414
|
+
.g-ui-event-calendar-day-slots {
|
|
2415
|
+
flex: 1;
|
|
2416
|
+
position: relative;
|
|
2417
|
+
border-left: 1px solid var(--g-ui-border);
|
|
2418
|
+
}
|
|
2419
|
+
.g-ui-event-calendar-day-slot {
|
|
2420
|
+
height: 48px;
|
|
2421
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
2422
|
+
cursor: pointer;
|
|
2423
|
+
}
|
|
2424
|
+
.g-ui-event-calendar-day-slot:hover {
|
|
2425
|
+
background: var(--g-ui-bg-subtle);
|
|
2426
|
+
}
|
|
2427
|
+
.g-ui-event-calendar-day-event {
|
|
2428
|
+
position: absolute;
|
|
2429
|
+
left: 4px;
|
|
2430
|
+
right: 4px;
|
|
2431
|
+
border-left: 3px solid var(--g-ui-primary);
|
|
2432
|
+
background: var(--g-ui-primary-subtle);
|
|
2433
|
+
border-radius: 4px;
|
|
2434
|
+
padding: 6px 8px;
|
|
2435
|
+
overflow: hidden;
|
|
2436
|
+
cursor: pointer;
|
|
2437
|
+
font-size: 13px;
|
|
2438
|
+
color: var(--g-ui-text);
|
|
2439
|
+
}
|
|
2440
|
+
.g-ui-event-calendar-day-event:hover {
|
|
2441
|
+
opacity: 0.95;
|
|
2442
|
+
}
|
|
2443
|
+
.g-ui-event-calendar-day-event-title {
|
|
2444
|
+
font-weight: 500;
|
|
2445
|
+
}
|
|
2446
|
+
.g-ui-event-calendar-day-event-time {
|
|
2447
|
+
font-size: 11px;
|
|
2448
|
+
color: var(--g-ui-muted);
|
|
2449
|
+
display: block;
|
|
2450
|
+
}
|
|
2451
|
+
.g-ui-event-calendar-form {
|
|
2452
|
+
display: flex;
|
|
2453
|
+
flex-direction: column;
|
|
2454
|
+
gap: var(--g-ui-space-12);
|
|
2455
|
+
}
|
|
2456
|
+
.g-ui-event-calendar-form-row {
|
|
2457
|
+
display: flex;
|
|
2458
|
+
flex-direction: column;
|
|
2459
|
+
gap: var(--g-ui-space-6);
|
|
2460
|
+
}
|
|
2461
|
+
.g-ui-event-calendar-form-row-inline {
|
|
2462
|
+
flex-direction: row;
|
|
2463
|
+
flex-wrap: wrap;
|
|
2464
|
+
align-items: flex-end;
|
|
2465
|
+
gap: var(--g-ui-space-12);
|
|
2466
|
+
}
|
|
2467
|
+
.g-ui-event-calendar-form-field {
|
|
2468
|
+
display: flex;
|
|
2469
|
+
flex-direction: column;
|
|
2470
|
+
gap: var(--g-ui-space-4);
|
|
2471
|
+
min-width: 140px;
|
|
2472
|
+
}
|
|
2473
|
+
.g-ui-event-calendar-form-label {
|
|
2474
|
+
font-size: 13px;
|
|
2475
|
+
font-weight: 500;
|
|
2476
|
+
color: var(--g-ui-text);
|
|
2477
|
+
}
|
|
2478
|
+
.g-ui-event-calendar-form-actions {
|
|
2479
|
+
display: flex;
|
|
2480
|
+
justify-content: flex-end;
|
|
2481
|
+
gap: var(--g-ui-space-10);
|
|
2482
|
+
margin-top: var(--g-ui-space-8);
|
|
2483
|
+
padding-top: var(--g-ui-space-12);
|
|
2484
|
+
border-top: 1px solid var(--g-ui-border);
|
|
2485
|
+
}
|
|
2486
|
+
.g-ui-event-calendar-form-suggestions {
|
|
2487
|
+
max-height: 180px;
|
|
2488
|
+
overflow-y: auto;
|
|
2489
|
+
border: 1px solid var(--g-ui-border);
|
|
2490
|
+
border-radius: 8px;
|
|
2491
|
+
margin-top: var(--g-ui-space-4);
|
|
2492
|
+
background: var(--g-ui-bg);
|
|
2493
|
+
}
|
|
2494
|
+
.g-ui-event-calendar-form-suggestion-item {
|
|
2495
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12);
|
|
2496
|
+
font-size: 14px;
|
|
2497
|
+
cursor: pointer;
|
|
2498
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
2499
|
+
}
|
|
2500
|
+
.g-ui-event-calendar-form-suggestion-item:last-child {
|
|
2501
|
+
border-bottom: 0;
|
|
2502
|
+
}
|
|
2503
|
+
.g-ui-event-calendar-form-suggestion-item:hover {
|
|
2504
|
+
background: var(--g-ui-bg-subtle);
|
|
2505
|
+
}
|
|
2506
|
+
.g-ui-event-calendar-form-chips {
|
|
2507
|
+
display: flex;
|
|
2508
|
+
flex-wrap: wrap;
|
|
2509
|
+
gap: var(--g-ui-space-6);
|
|
2510
|
+
margin-top: var(--g-ui-space-4);
|
|
2511
|
+
}
|
|
2512
|
+
.g-ui-event-calendar-form-chip {
|
|
2513
|
+
display: inline-flex;
|
|
2514
|
+
align-items: center;
|
|
2515
|
+
padding: var(--g-ui-space-4) var(--g-ui-space-8);
|
|
2516
|
+
border-radius: 6px;
|
|
2517
|
+
font-size: 13px;
|
|
2518
|
+
background: var(--g-ui-bg-muted);
|
|
2519
|
+
color: var(--g-ui-text);
|
|
2520
|
+
}
|
|
2521
|
+
.g-ui-event-calendar-form-chip-removable {
|
|
2522
|
+
cursor: pointer;
|
|
2523
|
+
}
|
|
2524
|
+
.g-ui-event-calendar-form-chip-removable:hover {
|
|
2525
|
+
background: var(--g-ui-bg-subtle);
|
|
2526
|
+
}
|
|
2527
|
+
.g-ui-event-calendar-form-colors {
|
|
2528
|
+
display: flex;
|
|
2529
|
+
flex-wrap: wrap;
|
|
2530
|
+
gap: var(--g-ui-space-6);
|
|
2531
|
+
margin-top: var(--g-ui-space-4);
|
|
2532
|
+
}
|
|
2533
|
+
.g-ui-event-calendar-form-color-swatch {
|
|
2534
|
+
width: 28px;
|
|
2535
|
+
height: 28px;
|
|
2536
|
+
border-radius: 50%;
|
|
2537
|
+
cursor: pointer;
|
|
2538
|
+
border: 2px solid transparent;
|
|
2539
|
+
}
|
|
2540
|
+
.g-ui-event-calendar-form-color-swatch:hover {
|
|
2541
|
+
transform: scale(1.1);
|
|
2542
|
+
}
|
|
2543
|
+
.g-ui-event-calendar-form-color-swatch-active {
|
|
2544
|
+
border-color: var(--g-ui-text);
|
|
2545
|
+
box-shadow: 0 0 0 2px var(--g-ui-bg);
|
|
2546
|
+
}
|
|
2547
|
+
.g-ui-event-calendar-view-modal {
|
|
2548
|
+
display: flex;
|
|
2549
|
+
flex-direction: column;
|
|
2550
|
+
gap: var(--g-ui-space-12);
|
|
2551
|
+
}
|
|
2552
|
+
.g-ui-event-calendar-view-modal-title {
|
|
2553
|
+
font-size: 18px;
|
|
2554
|
+
font-weight: 600;
|
|
2555
|
+
color: var(--g-ui-text);
|
|
2556
|
+
}
|
|
2557
|
+
.g-ui-event-calendar-view-modal-meta {
|
|
2558
|
+
font-size: 14px;
|
|
2559
|
+
color: var(--g-ui-muted);
|
|
2560
|
+
}
|
|
2561
|
+
.g-ui-event-calendar-view-modal-date {
|
|
2562
|
+
display: block;
|
|
2563
|
+
margin-bottom: var(--g-ui-space-4);
|
|
2564
|
+
}
|
|
2565
|
+
.g-ui-event-calendar-view-modal-field {
|
|
2566
|
+
font-size: 14px;
|
|
2567
|
+
color: var(--g-ui-text);
|
|
2568
|
+
line-height: 1.5;
|
|
2569
|
+
}
|
|
2570
|
+
.g-ui-event-calendar-view-modal-actions {
|
|
2571
|
+
display: flex;
|
|
2572
|
+
flex-wrap: wrap;
|
|
2573
|
+
gap: var(--g-ui-space-10);
|
|
2574
|
+
margin-top: var(--g-ui-space-8);
|
|
2575
|
+
padding-top: var(--g-ui-space-12);
|
|
2576
|
+
border-top: 1px solid var(--g-ui-border);
|
|
2577
|
+
}
|
|
2578
|
+
.g-ui-event-calendar-view-modal-delete {
|
|
2579
|
+
color: var(--g-ui-danger);
|
|
2580
|
+
}
|
|
2581
|
+
.g-ui-event-calendar-view-modal-delete:hover {
|
|
2582
|
+
background: var(--g-ui-danger-subtle);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.g-ui-select-multi-root {
|
|
2586
|
+
position: relative;
|
|
2587
|
+
width: 100%;
|
|
2588
|
+
}
|
|
2589
|
+
.g-ui-select-multi {
|
|
2590
|
+
width: 100%;
|
|
2591
|
+
border-radius: 8px;
|
|
2592
|
+
border: 1px solid var(--g-ui-border);
|
|
2593
|
+
background: var(--g-ui-surface);
|
|
2594
|
+
color: var(--g-ui-text);
|
|
2595
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12);
|
|
2596
|
+
min-height: 44px;
|
|
2597
|
+
display: flex;
|
|
2598
|
+
flex-wrap: wrap;
|
|
2599
|
+
gap: var(--g-ui-space-6);
|
|
2600
|
+
align-items: center;
|
|
2601
|
+
}
|
|
2602
|
+
.g-ui-select-multi-placeholder {
|
|
2603
|
+
color: var(--g-ui-muted);
|
|
2604
|
+
}
|
|
2605
|
+
.g-ui-select-multi-input {
|
|
2606
|
+
border: 0;
|
|
2607
|
+
background: transparent;
|
|
2608
|
+
color: var(--g-ui-text);
|
|
2609
|
+
min-width: 120px;
|
|
2610
|
+
flex: 1;
|
|
2611
|
+
}
|
|
2612
|
+
.g-ui-select-multi-input:focus {
|
|
2613
|
+
outline: none;
|
|
2614
|
+
}
|
|
2615
|
+
.g-ui-select-multi-size-xs { font-size: 12px; min-height: 30px; padding: var(--g-ui-space-5) var(--g-ui-space-10); }
|
|
2616
|
+
.g-ui-select-multi-size-sm { font-size: 13px; min-height: 36px; padding: var(--g-ui-space-6) var(--g-ui-space-12); }
|
|
2617
|
+
.g-ui-select-multi-size-md { font-size: 14px; min-height: 42px; padding: var(--g-ui-space-8) var(--g-ui-space-14); }
|
|
2618
|
+
.g-ui-select-multi-size-lg { font-size: 15px; min-height: 50px; padding: var(--g-ui-space-10) var(--g-ui-space-16); }
|
|
2619
|
+
.g-ui-select-multi-size-xl { font-size: 16px; min-height: 60px; padding: var(--g-ui-space-13) var(--g-ui-space-20); }
|
|
2620
|
+
.g-ui-select-tag {
|
|
2621
|
+
border: 1px solid var(--g-ui-border);
|
|
2622
|
+
border-radius: 999px;
|
|
2623
|
+
padding: var(--g-ui-space-2) var(--g-ui-space-8);
|
|
2624
|
+
color: var(--g-ui-text);
|
|
2625
|
+
}
|
|
2626
|
+
.g-ui-select-multi-size-xs .g-ui-select-tag { font-size: 11px; }
|
|
2627
|
+
.g-ui-select-multi-size-sm .g-ui-select-tag { font-size: 12px; }
|
|
2628
|
+
.g-ui-select-multi-size-md .g-ui-select-tag { font-size: 13px; }
|
|
2629
|
+
.g-ui-select-multi-size-lg .g-ui-select-tag { font-size: 14px; }
|
|
2630
|
+
.g-ui-select-multi-size-xl .g-ui-select-tag { font-size: 15px; }
|
|
2631
|
+
.g-ui-select-tag {
|
|
2632
|
+
display: inline-flex;
|
|
2633
|
+
align-items: center;
|
|
2634
|
+
gap: var(--g-ui-space-6);
|
|
2635
|
+
}
|
|
2636
|
+
.g-ui-select-tag-remove {
|
|
2637
|
+
display: inline-flex;
|
|
2638
|
+
align-items: center;
|
|
2639
|
+
justify-content: center;
|
|
2640
|
+
cursor: pointer;
|
|
2641
|
+
}
|
|
2642
|
+
.g-ui-select-tag-remove svg {
|
|
2643
|
+
width: 12px;
|
|
2644
|
+
height: 12px;
|
|
2645
|
+
fill: currentColor;
|
|
2646
|
+
}
|
|
2647
|
+
.g-ui-select-item-check {
|
|
2648
|
+
width: 16px;
|
|
2649
|
+
height: 16px;
|
|
2650
|
+
display: inline-flex;
|
|
2651
|
+
align-items: center;
|
|
2652
|
+
justify-content: center;
|
|
2653
|
+
color: var(--g-ui-primary);
|
|
2654
|
+
line-height: 0;
|
|
2655
|
+
}
|
|
2656
|
+
.g-ui-select-item-check svg {
|
|
2657
|
+
width: 14px;
|
|
2658
|
+
height: 14px;
|
|
2659
|
+
fill: currentColor;
|
|
2660
|
+
}
|
|
2661
|
+
.g-ui-select-item-label {
|
|
2662
|
+
line-height: 1.4;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
.g-ui-toast-stack {
|
|
2666
|
+
position: fixed;
|
|
2667
|
+
right: var(--g-ui-space-20);
|
|
2668
|
+
top: var(--g-ui-space-20);
|
|
2669
|
+
display: flex;
|
|
2670
|
+
flex-direction: column;
|
|
2671
|
+
gap: var(--g-ui-space-12);
|
|
2672
|
+
z-index: 1001;
|
|
2673
|
+
}
|
|
2674
|
+
.g-ui-toast {
|
|
2675
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2676
|
+
border-radius: var(--g-ui-radius);
|
|
2677
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12);
|
|
2678
|
+
background: var(--g-ui-bg);
|
|
2679
|
+
min-width: 220px;
|
|
2680
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
2681
|
+
}
|
|
2682
|
+
.g-ui-toast-title { font-weight: 600; }
|
|
2683
|
+
|
|
2684
|
+
.g-ui-tabs-vertical {
|
|
2685
|
+
display: grid;
|
|
2686
|
+
grid-template-columns: 200px 1fr;
|
|
2687
|
+
gap: var(--g-ui-space-16);
|
|
2688
|
+
}
|
|
2689
|
+
.g-ui-tabs-vertical .g-ui-tabs-list {
|
|
2690
|
+
flex-direction: column;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
.g-ui-drawer-shadowed {
|
|
2694
|
+
box-shadow: var(--g-ui-shadow);
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
.g-ui-notifications {
|
|
2698
|
+
position: fixed;
|
|
2699
|
+
right: var(--g-ui-space-20);
|
|
2700
|
+
top: var(--g-ui-space-20);
|
|
2701
|
+
display: flex;
|
|
2702
|
+
flex-direction: column;
|
|
2703
|
+
gap: var(--g-ui-space-10);
|
|
2704
|
+
z-index: 1001;
|
|
2705
|
+
}
|
|
2706
|
+
.g-ui-notifications-position-top-left { top: var(--g-ui-space-20); left: var(--g-ui-space-20); right: auto; }
|
|
2707
|
+
.g-ui-notifications-position-top-center { top: var(--g-ui-space-20); left: 50%; right: auto; transform: translateX(-50%); }
|
|
2708
|
+
.g-ui-notifications-position-top-right { top: var(--g-ui-space-20); right: var(--g-ui-space-20); left: auto; }
|
|
2709
|
+
.g-ui-notifications-position-bottom-left { bottom: var(--g-ui-space-20); left: var(--g-ui-space-20); right: auto; top: auto; flex-direction: column-reverse; }
|
|
2710
|
+
.g-ui-notifications-position-bottom-center { bottom: var(--g-ui-space-20); left: 50%; right: auto; top: auto; transform: translateX(-50%); flex-direction: column-reverse; }
|
|
2711
|
+
.g-ui-notifications-position-bottom-right { bottom: var(--g-ui-space-20); right: var(--g-ui-space-20); left: auto; top: auto; flex-direction: column-reverse; }
|
|
2712
|
+
|
|
2713
|
+
.g-ui-range {
|
|
2714
|
+
display: grid;
|
|
2715
|
+
grid-template-columns: 1fr 1fr;
|
|
2716
|
+
gap: var(--g-ui-space-10);
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.g-ui-input-number {
|
|
2720
|
+
width: 100%;
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
.g-ui-popper {
|
|
2724
|
+
position: relative;
|
|
2725
|
+
display: inline-flex;
|
|
2726
|
+
}
|
|
2727
|
+
.g-ui-popper-dropdown {
|
|
2728
|
+
position: absolute;
|
|
2729
|
+
top: calc(100% + var(--g-ui-space-8));
|
|
2730
|
+
left: 0;
|
|
2731
|
+
min-width: 220px;
|
|
2732
|
+
background: var(--g-ui-bg);
|
|
2733
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2734
|
+
border-radius: var(--g-ui-radius);
|
|
2735
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
2736
|
+
padding: var(--g-ui-space-12) var(--g-ui-space-16);
|
|
2737
|
+
z-index: 50;
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
.g-ui-pill {
|
|
2741
|
+
display: inline-flex;
|
|
2742
|
+
align-items: center;
|
|
2743
|
+
gap: var(--g-ui-space-6);
|
|
2744
|
+
border-radius: 999px;
|
|
2745
|
+
border: 1px solid var(--g-ui-border);
|
|
2746
|
+
padding: var(--g-ui-space-4) var(--g-ui-space-10);
|
|
2747
|
+
font-size: 12px;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
.g-ui-pagination-compact .g-ui-pagination-item {
|
|
2751
|
+
min-width: 26px;
|
|
2752
|
+
height: 26px;
|
|
2753
|
+
font-size: 12px;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
.g-ui-password-toggle {
|
|
2758
|
+
border: 0;
|
|
2759
|
+
background: transparent;
|
|
2760
|
+
color: var(--g-ui-muted);
|
|
2761
|
+
cursor: pointer;
|
|
2762
|
+
font-size: 12px;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
.g-ui-copy-button {
|
|
2766
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2767
|
+
background: var(--g-ui-bg);
|
|
2768
|
+
color: var(--g-ui-text);
|
|
2769
|
+
border-radius: 8px;
|
|
2770
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-10);
|
|
2771
|
+
cursor: pointer;
|
|
2772
|
+
font-size: 12px;
|
|
2773
|
+
}
|
|
2774
|
+
.g-ui-copy-button:hover {
|
|
2775
|
+
background: var(--g-ui-bg-subtle);
|
|
2776
|
+
}
|
|
2777
|
+
.g-ui-copy-button-done {
|
|
2778
|
+
color: var(--g-ui-success);
|
|
2779
|
+
border-color: rgba(18,184,134,0.5);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
.g-ui-progress-ring {
|
|
2783
|
+
width: 48px;
|
|
2784
|
+
height: 48px;
|
|
2785
|
+
border-radius: 50%;
|
|
2786
|
+
border: 4px solid var(--g-ui-border-muted);
|
|
2787
|
+
border-top-color: var(--g-ui-primary);
|
|
2788
|
+
animation: g-ui-spin 1s linear infinite;
|
|
2789
|
+
}
|
|
2790
|
+
.g-ui-progress-ring-size-sm { width: 32px; height: 32px; }
|
|
2791
|
+
.g-ui-progress-ring-size-md { width: 48px; height: 48px; }
|
|
2792
|
+
.g-ui-progress-ring-size-lg { width: 64px; height: 64px; }
|
|
2793
|
+
|
|
2794
|
+
.g-ui-toast-close {
|
|
2795
|
+
margin-left: auto;
|
|
2796
|
+
border: 0;
|
|
2797
|
+
background: transparent;
|
|
2798
|
+
color: var(--g-ui-muted);
|
|
2799
|
+
cursor: pointer;
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
.g-ui-toast-row {
|
|
2803
|
+
display: flex;
|
|
2804
|
+
align-items: center;
|
|
2805
|
+
gap: var(--g-ui-space-8);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
.g-ui-select-search {
|
|
2809
|
+
display: flex;
|
|
2810
|
+
flex-direction: column;
|
|
2811
|
+
gap: var(--g-ui-space-8);
|
|
2812
|
+
}
|
|
2813
|
+
.g-ui-input-size-sm .g-ui-search-input-left-section { width: 16px; height: 16px; }
|
|
2814
|
+
.g-ui-input-size-md .g-ui-search-input-left-section { width: 20px; height: 20px; }
|
|
2815
|
+
.g-ui-input-size-lg .g-ui-search-input-left-section { width: 24px; height: 24px; }
|
|
2816
|
+
.g-ui-input-size-xl .g-ui-search-input-left-section { width: 28px; height: 28px; }
|
|
2817
|
+
.g-ui-search-input-left-section {
|
|
2818
|
+
width: 24px;
|
|
2819
|
+
height: 24px;
|
|
2820
|
+
display: flex;
|
|
2821
|
+
align-items: center;
|
|
2822
|
+
justify-content: center;
|
|
2823
|
+
color: var(--g-ui-muted);
|
|
2824
|
+
font-size: 16px;
|
|
2825
|
+
}
|
|
2826
|
+
.g-ui-search-input-left-section svg {
|
|
2827
|
+
width: 100%;
|
|
2828
|
+
height: 100%;
|
|
2829
|
+
fill: inherit;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
.g-ui-select-search-input {
|
|
2833
|
+
width: 100%;
|
|
2834
|
+
border-radius: var(--g-ui-radius);
|
|
2835
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
2836
|
+
background: var(--g-ui-bg);
|
|
2837
|
+
color: var(--g-ui-text);
|
|
2838
|
+
padding: var(--g-ui-space-8) var(--g-ui-space-10);
|
|
2839
|
+
}
|
|
2840
|
+
.g-ui-select-search-list {
|
|
2841
|
+
display: flex;
|
|
2842
|
+
flex-direction: column;
|
|
2843
|
+
gap: var(--g-ui-space-6);
|
|
2844
|
+
max-height: 160px;
|
|
2845
|
+
overflow: auto;
|
|
2846
|
+
}
|
|
2847
|
+
.g-ui-select-search-item {
|
|
2848
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-8);
|
|
2849
|
+
border-radius: 8px;
|
|
2850
|
+
cursor: pointer;
|
|
2851
|
+
}
|
|
2852
|
+
.g-ui-select-search-item:hover {
|
|
2853
|
+
background: var(--g-ui-bg-subtle);
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
.g-ui-switch-group {
|
|
2857
|
+
display: flex;
|
|
2858
|
+
flex-direction: column;
|
|
2859
|
+
gap: var(--g-ui-space-8);
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
.g-ui-segmented-scroll {
|
|
2863
|
+
overflow-x: auto;
|
|
2864
|
+
max-width: 100%;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
.g-ui-range-picker {
|
|
2868
|
+
display: grid;
|
|
2869
|
+
grid-template-columns: 1fr 1fr;
|
|
2870
|
+
gap: var(--g-ui-space-12);
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
.g-ui-toast-auto {
|
|
2874
|
+
border-color: var(--g-ui-primary);
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.g-ui-flex {
|
|
2878
|
+
display: flex;
|
|
2879
|
+
}
|
|
2880
|
+
.g-ui-flex-column { flex-direction: column; }
|
|
2881
|
+
.g-ui-flex-row { flex-direction: row; }
|
|
2882
|
+
.g-ui-flex-wrap { flex-wrap: wrap; }
|
|
2883
|
+
|
|
2884
|
+
.g-ui-navlink-root {
|
|
2885
|
+
display: flex;
|
|
2886
|
+
flex-direction: column;
|
|
2887
|
+
}
|
|
2888
|
+
.g-ui-navlink {
|
|
2889
|
+
display: flex;
|
|
2890
|
+
align-items: center;
|
|
2891
|
+
gap: var(--g-ui-space-8);
|
|
2892
|
+
padding: var(--g-ui-space-8) var(--g-ui-space-12);
|
|
2893
|
+
border-radius: 0;
|
|
2894
|
+
color: var(--g-ui-text);
|
|
2895
|
+
text-decoration: none;
|
|
2896
|
+
cursor: pointer;
|
|
2897
|
+
font-size: 14px;
|
|
2898
|
+
font-weight: 500;
|
|
2899
|
+
}
|
|
2900
|
+
.g-ui-navlink-body {
|
|
2901
|
+
display: flex;
|
|
2902
|
+
flex-direction: column;
|
|
2903
|
+
gap: var(--g-ui-space-2);
|
|
2904
|
+
flex: 1;
|
|
2905
|
+
}
|
|
2906
|
+
.g-ui-navlink-description {
|
|
2907
|
+
font-size: 12px;
|
|
2908
|
+
color: var(--g-ui-muted);
|
|
2909
|
+
font-weight: 400;
|
|
2910
|
+
}
|
|
2911
|
+
.g-ui-navlink-section {
|
|
2912
|
+
display: inline-flex;
|
|
2913
|
+
align-items: center;
|
|
2914
|
+
justify-content: center;
|
|
2915
|
+
}
|
|
2916
|
+
.g-ui-navlink-variant-subtle:hover { background: var(--g-ui-bg-subtle); }
|
|
2917
|
+
.g-ui-navlink-variant-light:hover { background: var(--g-ui-primary-muted); }
|
|
2918
|
+
.g-ui-navlink-variant-filled:hover { background: var(--g-ui-primary-hover); color: var(--g-ui-primary-fg); }
|
|
2919
|
+
.g-ui-navlink-active.g-ui-navlink-variant-subtle {
|
|
2920
|
+
background: var(--g-ui-primary-subtle);
|
|
2921
|
+
color: var(--g-ui-primary);
|
|
2922
|
+
}
|
|
2923
|
+
.g-ui-navlink-active.g-ui-navlink-variant-light {
|
|
2924
|
+
background: var(--g-ui-primary-muted);
|
|
2925
|
+
color: var(--g-ui-primary);
|
|
2926
|
+
}
|
|
2927
|
+
.g-ui-navlink-active.g-ui-navlink-variant-filled {
|
|
2928
|
+
background: var(--g-ui-primary);
|
|
2929
|
+
color: var(--g-ui-primary-fg);
|
|
2930
|
+
}
|
|
2931
|
+
.g-ui-navlink-disabled {
|
|
2932
|
+
opacity: 0.6;
|
|
2933
|
+
pointer-events: none;
|
|
2934
|
+
}
|
|
2935
|
+
.g-ui-navlink-children {
|
|
2936
|
+
display: flex;
|
|
2937
|
+
flex-direction: column;
|
|
2938
|
+
gap: var(--g-ui-space-4);
|
|
2939
|
+
}
|
|
2940
|
+
.g-ui-navlink-padding-none { padding: 0; }
|
|
2941
|
+
.g-ui-navlink-padding-sm { padding: var(--g-ui-space-8); }
|
|
2942
|
+
.g-ui-navlink-padding-md { padding: var(--g-ui-space-12); }
|
|
2943
|
+
.g-ui-navlink-padding-lg { padding: var(--g-ui-space-16); }
|
|
2944
|
+
.g-ui-navlink-padding-xl { padding: var(--g-ui-space-20); }
|
|
2945
|
+
.g-ui-navlink-padding-h-sm { padding: var(--g-ui-space-8) var(--g-ui-space-8) ; }
|
|
2946
|
+
.g-ui-navlink-padding-h-md { padding: var(--g-ui-space-8) var(--g-ui-space-12) ; }
|
|
2947
|
+
.g-ui-navlink-padding-h-lg { padding: var(--g-ui-space-8) var(--g-ui-space-20) ; }
|
|
2948
|
+
.g-ui-navlink-padding-h-xl { padding: var(--g-ui-space-8) var(--g-ui-space-24) ; }
|
|
2949
|
+
|
|
2950
|
+
.g-ui-indicator {
|
|
2951
|
+
position: relative;
|
|
2952
|
+
display: inline-flex;
|
|
2953
|
+
}
|
|
2954
|
+
.g-ui-indicator-badge {
|
|
2955
|
+
position: absolute;
|
|
2956
|
+
top: -4px;
|
|
2957
|
+
right: -4px;
|
|
2958
|
+
width: 10px;
|
|
2959
|
+
height: 10px;
|
|
2960
|
+
border-radius: 50%;
|
|
2961
|
+
background: var(--g-ui-danger);
|
|
2962
|
+
border: 2px solid var(--g-ui-bg);
|
|
2963
|
+
}
|
|
2964
|
+
.g-ui-indicator-size-xs .g-ui-indicator-badge { width: 6px; height: 6px; border-width: 1px; }
|
|
2965
|
+
.g-ui-indicator-size-sm .g-ui-indicator-badge { width: 8px; height: 8px; border-width: 2px; }
|
|
2966
|
+
.g-ui-indicator-size-md .g-ui-indicator-badge { width: 10px; height: 10px; border-width: 2px; }
|
|
2967
|
+
.g-ui-indicator-size-lg .g-ui-indicator-badge { width: 12px; height: 12px; border-width: 2px; }
|
|
2968
|
+
.g-ui-indicator-size-xl .g-ui-indicator-badge { width: 14px; height: 14px; border-width: 3px; }
|
|
2969
|
+
.g-ui-indicator-position-top-right .g-ui-indicator-badge { top: -4px; right: -4px; bottom: auto; left: auto; }
|
|
2970
|
+
.g-ui-indicator-position-top-left .g-ui-indicator-badge { top: -4px; left: -4px; bottom: auto; right: auto; }
|
|
2971
|
+
.g-ui-indicator-position-bottom-right .g-ui-indicator-badge { bottom: -4px; right: -4px; top: auto; left: auto; }
|
|
2972
|
+
.g-ui-indicator-position-bottom-left .g-ui-indicator-badge { bottom: -4px; left: -4px; top: auto; right: auto; }
|
|
2973
|
+
.g-ui-indicator-color-danger .g-ui-indicator-badge { background: var(--g-ui-danger); }
|
|
2974
|
+
.g-ui-indicator-color-success .g-ui-indicator-badge { background: var(--g-ui-success); }
|
|
2975
|
+
.g-ui-indicator-color-warning .g-ui-indicator-badge { background: var(--g-ui-warning); }
|
|
2976
|
+
.g-ui-indicator-color-info .g-ui-indicator-badge { background: var(--g-ui-info); }
|
|
2977
|
+
|
|
2978
|
+
.g-ui-burger {
|
|
2979
|
+
width: 28px;
|
|
2980
|
+
height: 28px;
|
|
2981
|
+
position: relative;
|
|
2982
|
+
display: inline-block;
|
|
2983
|
+
}
|
|
2984
|
+
.g-ui-burger span {
|
|
2985
|
+
position: absolute;
|
|
2986
|
+
left: 0;
|
|
2987
|
+
width: 100%;
|
|
2988
|
+
height: 2px;
|
|
2989
|
+
background: var(--g-ui-text);
|
|
2990
|
+
transition: transform .2s ease, opacity .2s ease, top .2s ease;
|
|
2991
|
+
}
|
|
2992
|
+
.g-ui-burger span:nth-child(1) { top: 6px; }
|
|
2993
|
+
.g-ui-burger span:nth-child(2) { top: 13px; }
|
|
2994
|
+
.g-ui-burger span:nth-child(3) { top: 20px; }
|
|
2995
|
+
.g-ui-burger-open span:nth-child(1) { top: 7px; transform: rotate(45deg); }
|
|
2996
|
+
.g-ui-burger-open span:nth-child(2) { opacity: 0; }
|
|
2997
|
+
.g-ui-burger-open span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
|
|
2998
|
+
|
|
2999
|
+
.g-ui-loading-overlay {
|
|
3000
|
+
position: absolute;
|
|
3001
|
+
inset: 0;
|
|
3002
|
+
background: rgba(15,17,21,0.6);
|
|
3003
|
+
display: flex;
|
|
3004
|
+
align-items: center;
|
|
3005
|
+
justify-content: center;
|
|
3006
|
+
z-index: 10;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
.g-ui-grid-system {
|
|
3010
|
+
display: grid;
|
|
3011
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
3012
|
+
}
|
|
3013
|
+
.g-ui-col-span-1 { grid-column: span 1; }
|
|
3014
|
+
.g-ui-col-span-2 { grid-column: span 2; }
|
|
3015
|
+
.g-ui-col-span-3 { grid-column: span 3; }
|
|
3016
|
+
.g-ui-col-span-4 { grid-column: span 4; }
|
|
3017
|
+
.g-ui-col-span-5 { grid-column: span 5; }
|
|
3018
|
+
.g-ui-col-span-6 { grid-column: span 6; }
|
|
3019
|
+
.g-ui-col-span-7 { grid-column: span 7; }
|
|
3020
|
+
.g-ui-col-span-8 { grid-column: span 8; }
|
|
3021
|
+
.g-ui-col-span-9 { grid-column: span 9; }
|
|
3022
|
+
.g-ui-col-span-10 { grid-column: span 10; }
|
|
3023
|
+
.g-ui-col-span-11 { grid-column: span 11; }
|
|
3024
|
+
.g-ui-col-span-12 { grid-column: span 12; }
|
|
3025
|
+
|
|
3026
|
+
.g-ui-scroll-area {
|
|
3027
|
+
overflow: auto;
|
|
3028
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
3029
|
+
border-radius: var(--g-ui-radius);
|
|
3030
|
+
background: var(--g-ui-bg);
|
|
3031
|
+
padding: 0;
|
|
3032
|
+
}
|
|
3033
|
+
.g-ui-scroll-area::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
3034
|
+
.g-ui-scroll-area::-webkit-scrollbar-track { background: transparent; }
|
|
3035
|
+
.g-ui-scroll-area::-webkit-scrollbar-thumb {
|
|
3036
|
+
background: color-mix(in srgb, var(--g-ui-muted) 30%, transparent);
|
|
3037
|
+
border-radius: 999px;
|
|
3038
|
+
}
|
|
3039
|
+
.g-ui-scroll-area:hover::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--g-ui-muted) 50%, transparent); }
|
|
3040
|
+
.g-ui-scroll-area-sm { max-height: 120px; }
|
|
3041
|
+
.g-ui-scroll-area-md { max-height: 200px; }
|
|
3042
|
+
.g-ui-scroll-area-lg { max-height: 320px; }
|
|
3043
|
+
.g-ui-scroll-area-auto { max-height: auto; }
|
|
3044
|
+
|
|
3045
|
+
.g-ui-pin-input {
|
|
3046
|
+
display: inline-flex;
|
|
3047
|
+
align-items: center;
|
|
3048
|
+
cursor: text;
|
|
3049
|
+
box-sizing: border-box;
|
|
3050
|
+
}
|
|
3051
|
+
.g-ui-pin-input-wrapper {
|
|
3052
|
+
display: flex;
|
|
3053
|
+
gap: var(--g-ui-space-8);
|
|
3054
|
+
box-sizing: border-box;
|
|
3055
|
+
}
|
|
3056
|
+
.g-ui-pin-input-field {
|
|
3057
|
+
width: 40px;
|
|
3058
|
+
height: 40px;
|
|
3059
|
+
padding: 0;
|
|
3060
|
+
text-align: center;
|
|
3061
|
+
font-size: var(--g-ui-font-md);
|
|
3062
|
+
font-weight: 500;
|
|
3063
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
3064
|
+
border-radius: var(--g-ui-radius);
|
|
3065
|
+
background: var(--g-ui-bg);
|
|
3066
|
+
color: var(--g-ui-text);
|
|
3067
|
+
outline: none;
|
|
3068
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
3069
|
+
}
|
|
3070
|
+
.g-ui-pin-input-field::placeholder {
|
|
3071
|
+
color: var(--g-ui-muted);
|
|
3072
|
+
opacity: 0.5;
|
|
3073
|
+
}
|
|
3074
|
+
.g-ui-pin-input-field:focus {
|
|
3075
|
+
border-color: var(--g-ui-primary);
|
|
3076
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-ui-primary) 20%, transparent);
|
|
3077
|
+
}
|
|
3078
|
+
.g-ui-pin-input-field:disabled {
|
|
3079
|
+
background: var(--g-ui-bg-subtle);
|
|
3080
|
+
color: var(--g-ui-muted);
|
|
3081
|
+
cursor: not-allowed;
|
|
3082
|
+
}
|
|
3083
|
+
.g-ui-pin-input-error {
|
|
3084
|
+
border-color: var(--g-ui-danger);
|
|
3085
|
+
}
|
|
3086
|
+
.g-ui-pin-input-error:focus {
|
|
3087
|
+
border-color: var(--g-ui-danger);
|
|
3088
|
+
box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-ui-danger) 20%, transparent);
|
|
3089
|
+
}
|
|
3090
|
+
.g-ui-pin-input.g-ui-input-size-xs .g-ui-pin-input-field { width: 28px; height: 28px; font-size: var(--g-ui-font-xs); }
|
|
3091
|
+
.g-ui-pin-input.g-ui-input-size-sm .g-ui-pin-input-field { width: 34px; height: 34px; font-size: var(--g-ui-font-sm); }
|
|
3092
|
+
.g-ui-pin-input.g-ui-input-size-md .g-ui-pin-input-field { width: 40px; height: 40px; font-size: var(--g-ui-font-md); }
|
|
3093
|
+
.g-ui-pin-input.g-ui-input-size-lg .g-ui-pin-input-field { width: 48px; height: 48px; font-size: var(--g-ui-font-lg); }
|
|
3094
|
+
.g-ui-pin-input.g-ui-input-size-xl .g-ui-pin-input-field { width: 56px; height: 56px; font-size: var(--g-ui-font-xl); }
|
|
3095
|
+
|
|
3096
|
+
.g-ui-checkbox-group {
|
|
3097
|
+
display: flex;
|
|
3098
|
+
flex-direction: column;
|
|
3099
|
+
gap: var(--g-ui-space-8);
|
|
3100
|
+
}
|
|
3101
|
+
|
|
3102
|
+
.g-ui-avatar-group {
|
|
3103
|
+
display: inline-flex;
|
|
3104
|
+
align-items: center;
|
|
3105
|
+
}
|
|
3106
|
+
.g-ui-avatar-group .g-ui-avatar {
|
|
3107
|
+
margin-left: calc(0px - var(--g-ui-space-8));
|
|
3108
|
+
border: 2px solid var(--g-ui-bg);
|
|
3109
|
+
}
|
|
3110
|
+
.g-ui-avatar-group .g-ui-avatar:first-child {
|
|
3111
|
+
margin-left: 0;
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
.g-ui-badge-group {
|
|
3115
|
+
display: inline-flex;
|
|
3116
|
+
flex-wrap: wrap;
|
|
3117
|
+
gap: var(--g-ui-space-6);
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
.g-ui-radio {
|
|
3121
|
+
display: flex;
|
|
3122
|
+
flex-direction: column;
|
|
3123
|
+
gap: var(--g-ui-space-6);
|
|
3124
|
+
}
|
|
3125
|
+
.g-ui-radio-control {
|
|
3126
|
+
display: inline-flex;
|
|
3127
|
+
align-items: center;
|
|
3128
|
+
gap: var(--g-ui-space-10);
|
|
3129
|
+
cursor: pointer;
|
|
3130
|
+
}
|
|
3131
|
+
.g-ui-radio-input {
|
|
3132
|
+
appearance: none;
|
|
3133
|
+
width: var(--g-ui-control-size, 16px);
|
|
3134
|
+
height: var(--g-ui-control-size, 16px);
|
|
3135
|
+
border-radius: 50%;
|
|
3136
|
+
border: 1px solid var(--g-ui-border);
|
|
3137
|
+
background: var(--g-ui-bg);
|
|
3138
|
+
position: relative;
|
|
3139
|
+
transition: background-color .12s ease, border-color .12s ease;
|
|
3140
|
+
}
|
|
3141
|
+
.g-ui-radio-input:focus-visible {
|
|
3142
|
+
outline: 2px solid var(--g-ui-primary);
|
|
3143
|
+
outline-offset: 2px;
|
|
3144
|
+
}
|
|
3145
|
+
.g-ui-radio-input:checked {
|
|
3146
|
+
border-color: var(--g-ui-primary);
|
|
3147
|
+
}
|
|
3148
|
+
.g-ui-radio-input:checked::after {
|
|
3149
|
+
content: '';
|
|
3150
|
+
position: absolute;
|
|
3151
|
+
width: var(--g-ui-control-inner-size, 8px);
|
|
3152
|
+
height: var(--g-ui-control-inner-size, 8px);
|
|
3153
|
+
border-radius: 50%;
|
|
3154
|
+
background: var(--g-ui-primary);
|
|
3155
|
+
top: var(--g-ui-control-inner-offset, 3px);
|
|
3156
|
+
left: var(--g-ui-control-inner-offset, 3px);
|
|
3157
|
+
}
|
|
3158
|
+
.g-ui-radio-label { font-size: 14px; }
|
|
3159
|
+
.g-ui-radio-description { font-size: 12px; color: var(--g-ui-muted); }
|
|
3160
|
+
.g-ui-radio-size-xs { --g-ui-control-size: 16px; --g-ui-control-inner-size: 6px; --g-ui-control-inner-offset: 4px; }
|
|
3161
|
+
.g-ui-radio-size-sm { --g-ui-control-size: 20px; --g-ui-control-inner-size: 8px; --g-ui-control-inner-offset: 5px; }
|
|
3162
|
+
.g-ui-radio-size-md { --g-ui-control-size: 24px; --g-ui-control-inner-size: 10px; --g-ui-control-inner-offset: 6px; }
|
|
3163
|
+
.g-ui-radio-size-lg { --g-ui-control-size: 30px; --g-ui-control-inner-size: 14px; --g-ui-control-inner-offset: 7px; }
|
|
3164
|
+
.g-ui-radio-size-xl { --g-ui-control-size: 36px; --g-ui-control-inner-size: 16px; --g-ui-control-inner-offset: 9px; }
|
|
3165
|
+
|
|
3166
|
+
.g-ui-breadcrumbs {
|
|
3167
|
+
display: inline-flex;
|
|
3168
|
+
gap: var(--g-ui-space-8);
|
|
3169
|
+
align-items: center;
|
|
3170
|
+
color: var(--g-ui-muted);
|
|
3171
|
+
font-size: 13px;
|
|
3172
|
+
flex-wrap: wrap;
|
|
3173
|
+
}
|
|
3174
|
+
.g-ui-breadcrumbs-separator { opacity: 0.6; }
|
|
3175
|
+
|
|
3176
|
+
.g-ui-center {
|
|
3177
|
+
display: flex;
|
|
3178
|
+
align-items: center;
|
|
3179
|
+
justify-content: center;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.g-ui-space { display: block; width: var(--g-ui-space-16); height: var(--g-ui-space-16); }
|
|
3183
|
+
.g-ui-space-xs { width: var(--g-ui-space-8); height: var(--g-ui-space-8); }
|
|
3184
|
+
.g-ui-space-sm { width: var(--g-ui-space-12); height: var(--g-ui-space-12); }
|
|
3185
|
+
.g-ui-space-md { width: var(--g-ui-space-16); height: var(--g-ui-space-16); }
|
|
3186
|
+
.g-ui-space-lg { width: var(--g-ui-space-24); height: var(--g-ui-space-24); }
|
|
3187
|
+
.g-ui-space-xl { width: var(--g-ui-space-32); height: var(--g-ui-space-32); }
|
|
3188
|
+
|
|
3189
|
+
.g-ui-collapse-hidden { display: none; }
|
|
3190
|
+
|
|
3191
|
+
.g-ui-action-icon {
|
|
3192
|
+
width: 28px;
|
|
3193
|
+
height: 28px;
|
|
3194
|
+
border-radius: 8px;
|
|
3195
|
+
border: 1px solid var(--g-ui-border);
|
|
3196
|
+
background: transparent;
|
|
3197
|
+
color: var(--g-ui-text);
|
|
3198
|
+
display: inline-flex;
|
|
3199
|
+
align-items: center;
|
|
3200
|
+
justify-content: center;
|
|
3201
|
+
cursor: pointer;
|
|
3202
|
+
}
|
|
3203
|
+
.g-ui-action-icon-size-xs { width: 18px; height: 18px; }
|
|
3204
|
+
.g-ui-action-icon-size-sm { width: 22px; height: 22px; }
|
|
3205
|
+
.g-ui-action-icon-size-md { width: 28px; height: 28px; }
|
|
3206
|
+
.g-ui-action-icon-size-lg { width: 34px; height: 34px; }
|
|
3207
|
+
.g-ui-action-icon-size-xl { width: 44px; height: 44px; }
|
|
3208
|
+
|
|
3209
|
+
.g-ui-action-icon-size-xs .g-ui-icon { font-size: 12px; }
|
|
3210
|
+
.g-ui-action-icon-size-sm .g-ui-icon { font-size: 14px; }
|
|
3211
|
+
.g-ui-action-icon-size-md .g-ui-icon { font-size: 16px; }
|
|
3212
|
+
.g-ui-action-icon-size-lg .g-ui-icon { font-size: 20px; }
|
|
3213
|
+
.g-ui-action-icon-size-xl .g-ui-icon { font-size: 24px; }
|
|
3214
|
+
|
|
3215
|
+
.g-ui-action-icon-filled {
|
|
3216
|
+
background: var(--g-ui-primary);
|
|
3217
|
+
border-color: transparent;
|
|
3218
|
+
color: var(--g-ui-primary-fg);
|
|
3219
|
+
}
|
|
3220
|
+
.g-ui-action-icon-subtle {
|
|
3221
|
+
background: transparent;
|
|
3222
|
+
border-color: var(--g-ui-border);
|
|
3223
|
+
}
|
|
3224
|
+
.g-ui-action-icon-light {
|
|
3225
|
+
background: var(--g-ui-primary-subtle);
|
|
3226
|
+
border-color: var(--g-ui-primary-muted);
|
|
3227
|
+
color: var(--g-ui-primary);
|
|
3228
|
+
}
|
|
3229
|
+
.g-ui-action-icon-outline {
|
|
3230
|
+
background: transparent;
|
|
3231
|
+
border-color: var(--g-ui-primary);
|
|
3232
|
+
color: var(--g-ui-primary);
|
|
3233
|
+
}
|
|
3234
|
+
.g-ui-action-icon-filled:hover { background: var(--g-ui-primary-hover); }
|
|
3235
|
+
.g-ui-action-icon-light:hover { background: var(--g-ui-primary-muted); }
|
|
3236
|
+
.g-ui-action-icon-outline:hover { background: var(--g-ui-primary-subtle); }
|
|
3237
|
+
.g-ui-action-icon-subtle:hover { background: var(--g-ui-bg-muted); }
|
|
3238
|
+
|
|
3239
|
+
.g-ui-popover {
|
|
3240
|
+
position: relative;
|
|
3241
|
+
display: inline-flex;
|
|
3242
|
+
}
|
|
3243
|
+
.g-ui-popover-dropdown {
|
|
3244
|
+
position: absolute;
|
|
3245
|
+
top: calc(100% + var(--g-ui-space-8));
|
|
3246
|
+
left: 0;
|
|
3247
|
+
min-width: 220px;
|
|
3248
|
+
background: var(--g-ui-surface);
|
|
3249
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
3250
|
+
border-radius: 10px;
|
|
3251
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
3252
|
+
padding: var(--g-ui-space-10) var(--g-ui-space-12);
|
|
3253
|
+
z-index: 50;
|
|
3254
|
+
}
|
|
3255
|
+
.g-ui-popover-right { left: auto; right: 0; }
|
|
3256
|
+
.g-ui-popover-center { left: 50%; transform: translateX(-50%); }
|
|
3257
|
+
|
|
3258
|
+
.g-ui-hover-card {
|
|
3259
|
+
position: relative;
|
|
3260
|
+
display: inline-flex;
|
|
3261
|
+
}
|
|
3262
|
+
.g-ui-hover-card-dropdown {
|
|
3263
|
+
position: absolute;
|
|
3264
|
+
top: calc(100% + var(--g-ui-space-8));
|
|
3265
|
+
left: 0;
|
|
3266
|
+
min-width: 220px;
|
|
3267
|
+
background: var(--g-ui-surface);
|
|
3268
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
3269
|
+
border-radius: var(--g-ui-radius);
|
|
3270
|
+
box-shadow: var(--g-ui-shadow-sm);
|
|
3271
|
+
padding: var(--g-ui-space-12) var(--g-ui-space-16);
|
|
3272
|
+
z-index: 50;
|
|
3273
|
+
opacity: 0;
|
|
3274
|
+
pointer-events: none;
|
|
3275
|
+
transition: opacity .12s ease, transform .12s ease;
|
|
3276
|
+
transform: translateY(-4px);
|
|
3277
|
+
}
|
|
3278
|
+
.g-ui-hover-card:hover .g-ui-hover-card-dropdown {
|
|
3279
|
+
opacity: 1;
|
|
3280
|
+
pointer-events: auto;
|
|
3281
|
+
transform: translateY(0);
|
|
3282
|
+
}
|
|
3283
|
+
.g-ui-hover-card-right { left: auto; right: 0; }
|
|
3284
|
+
.g-ui-hover-card-center { left: 50%; transform: translateX(-50%) translateY(-4px); }
|
|
3285
|
+
.g-ui-hover-card:hover .g-ui-hover-card-center { transform: translateX(-50%) translateY(0); }
|
|
3286
|
+
|
|
3287
|
+
.g-ui-affix {
|
|
3288
|
+
position: fixed;
|
|
3289
|
+
z-index: 1000;
|
|
3290
|
+
}
|
|
3291
|
+
.g-ui-affix-bottom-right { right: var(--g-ui-space-20); bottom: var(--g-ui-space-20); }
|
|
3292
|
+
.g-ui-affix-bottom-left { left: var(--g-ui-space-20); bottom: var(--g-ui-space-20); }
|
|
3293
|
+
.g-ui-affix-top-right { right: var(--g-ui-space-20); top: var(--g-ui-space-20); }
|
|
3294
|
+
.g-ui-affix-top-left { left: var(--g-ui-space-20); top: var(--g-ui-space-20); }
|
|
3295
|
+
.g-ui-affix-center-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
|
|
3296
|
+
.g-ui-affix-top-center { left: 50%; top: var(--g-ui-space-20); transform: translateX(-50%); }
|
|
3297
|
+
.g-ui-affix-bottom-center { left: 50%; bottom: var(--g-ui-space-20); transform: translateX(-50%); }
|
|
3298
|
+
.g-ui-affix-left-center { left: var(--g-ui-space-20); top: 50%; transform: translateY(-50%); }
|
|
3299
|
+
.g-ui-affix-right-center { right: var(--g-ui-space-20); top: 50%; transform: translateY(-50%); }
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
.g-ui-fieldset {
|
|
3303
|
+
border: 1px solid var(--g-ui-border-muted);
|
|
3304
|
+
border-radius: var(--g-ui-radius);
|
|
3305
|
+
padding: var(--g-ui-space-14);
|
|
3306
|
+
}
|
|
3307
|
+
.g-ui-legend {
|
|
3308
|
+
padding: 0 var(--g-ui-space-6);
|
|
3309
|
+
color: var(--g-ui-muted);
|
|
3310
|
+
font-size: 12px;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
.g-ui-appbar {
|
|
3314
|
+
width: 100%;
|
|
3315
|
+
height: 60px;
|
|
3316
|
+
display: flex;
|
|
3317
|
+
align-items: center;
|
|
3318
|
+
justify-content: flex-start;
|
|
3319
|
+
gap: var(--g-ui-space-12);
|
|
3320
|
+
padding: 0 var(--g-ui-space-16);
|
|
3321
|
+
background: var(--g-ui-bg);
|
|
3322
|
+
border-bottom: 1px solid var(--g-ui-border);
|
|
3323
|
+
z-index: 100;
|
|
3324
|
+
position: relative;
|
|
3325
|
+
}
|
|
3326
|
+
.g-ui-appbar-static { position: static; }
|
|
3327
|
+
.g-ui-appbar-sticky { position: sticky; top: 0; }
|
|
3328
|
+
.g-ui-appbar-fixed { position: fixed; top: 0; left: 0; right: 0; }
|
|
3329
|
+
|
|
3330
|
+
.g-ui-sidebar {
|
|
3331
|
+
width: 260px;
|
|
3332
|
+
min-width: 260px;
|
|
3333
|
+
background: var(--g-ui-bg);
|
|
3334
|
+
border-right: 1px solid var(--g-ui-border);
|
|
3335
|
+
display: flex;
|
|
3336
|
+
flex-direction: column;
|
|
3337
|
+
box-sizing: border-box;
|
|
3338
|
+
}
|
|
3339
|
+
.g-ui-sidebar-position-right { border-right: 0; border-left: 1px solid var(--g-ui-border-muted); }
|
|
3340
|
+
.g-ui-sidebar-size-sm { width: 220px; min-width: 220px; }
|
|
3341
|
+
.g-ui-sidebar-size-md { width: 260px; min-width: 260px; }
|
|
3342
|
+
.g-ui-sidebar-size-lg { width: 320px; min-width: 320px; }
|
|
3343
|
+
.g-ui-sidebar-size-xl { width: 380px; min-width: 380px; }
|
|
3344
|
+
.g-ui-sidebar-min-button { min-width: 38px; width: 38px; }
|
|
3345
|
+
.g-ui-sidebar-min-xs { min-width: 48px; width: 48px; }
|
|
3346
|
+
.g-ui-sidebar-min-sm { min-width: 64px; width: 64px; }
|
|
3347
|
+
.g-ui-sidebar-min-md { min-width: 80px; width: 80px; }
|
|
3348
|
+
.g-ui-sidebar-fixed {
|
|
3349
|
+
position: relative;
|
|
3350
|
+
width: 45px;
|
|
3351
|
+
min-width: 45px;
|
|
3352
|
+
max-width: 45px;
|
|
3353
|
+
height: 100%;
|
|
3354
|
+
transition:
|
|
3355
|
+
width .22s cubic-bezier(.2,.8,.2,1),
|
|
3356
|
+
min-width .22s cubic-bezier(.2,.8,.2,1),
|
|
3357
|
+
max-width .22s cubic-bezier(.2,.8,.2,1);
|
|
3358
|
+
}
|
|
3359
|
+
.g-ui-sidebar-fixed.g-ui-sidebar-size-sm { width: 40px; min-width: 40px; max-width: 40px; }
|
|
3360
|
+
.g-ui-sidebar-fixed.g-ui-sidebar-size-md { width: 45px; min-width: 45px; max-width: 45px; }
|
|
3361
|
+
.g-ui-sidebar-fixed.g-ui-sidebar-size-lg { width: 50px; min-width: 50px; max-width: 50px; }
|
|
3362
|
+
.g-ui-sidebar-fixed.g-ui-sidebar-size-xl { width: 60px; min-width: 60px; max-width: 60px; }
|
|
3363
|
+
|
|
3364
|
+
.g-ui-sidebar-fixed-open.g-ui-sidebar-size-sm { width: 220px; min-width: 220px; max-width: 220px; }
|
|
3365
|
+
.g-ui-sidebar-fixed-open.g-ui-sidebar-size-md { width: 260px; min-width: 260px; max-width: 260px; }
|
|
3366
|
+
.g-ui-sidebar-fixed-open.g-ui-sidebar-size-lg { width: 320px; min-width: 320px; max-width: 320px; }
|
|
3367
|
+
.g-ui-sidebar-fixed-open.g-ui-sidebar-size-xl { width: 380px; min-width: 380px; max-width: 380px; }
|
|
3368
|
+
|
|
3369
|
+
.g-ui-sidebar-drawer {
|
|
3370
|
+
position: fixed;
|
|
3371
|
+
top: 0;
|
|
3372
|
+
bottom: 0;
|
|
3373
|
+
z-index: 999;
|
|
3374
|
+
transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
|
|
3375
|
+
opacity: 0;
|
|
3376
|
+
transform: translateX(-100%);
|
|
3377
|
+
height: 100%;
|
|
3378
|
+
min-height: 100vh;
|
|
3379
|
+
}
|
|
3380
|
+
.g-ui-sidebar-drawer-left.g-ui-sidebar-drawer-open,
|
|
3381
|
+
.g-ui-sidebar-drawer-right.g-ui-sidebar-drawer-open {
|
|
3382
|
+
opacity: 1;
|
|
3383
|
+
transform: translateX(0);
|
|
3384
|
+
}
|
|
3385
|
+
.g-ui-sidebar-drawer-right {
|
|
3386
|
+
right: 0;
|
|
3387
|
+
left: auto;
|
|
3388
|
+
transform: translateX(100%);
|
|
3389
|
+
}
|
|
3390
|
+
.g-ui-sidebar-drawer-left {
|
|
3391
|
+
left: 0;
|
|
3392
|
+
right: auto;
|
|
3393
|
+
}
|
|
3394
|
+
.g-ui-sidebar-overlay {
|
|
3395
|
+
position: fixed;
|
|
3396
|
+
inset: 0;
|
|
3397
|
+
z-index: 998;
|
|
3398
|
+
background: rgba(0,0,0,0.6);
|
|
3399
|
+
opacity: 0;
|
|
3400
|
+
pointer-events: none;
|
|
3401
|
+
transition: opacity .22s ease, backdrop-filter .22s ease;
|
|
3402
|
+
backdrop-filter: blur(10px);
|
|
3403
|
+
}
|
|
3404
|
+
.g-ui-sidebar-overlay-noblur {
|
|
3405
|
+
backdrop-filter: none;
|
|
3406
|
+
}
|
|
3407
|
+
.g-ui-sidebar-overlay-open {
|
|
3408
|
+
opacity: 1;
|
|
3409
|
+
pointer-events: auto;
|
|
3410
|
+
}
|
|
3411
|
+
.g-ui-sidebar-title {
|
|
3412
|
+
font-weight: 700;
|
|
3413
|
+
font-size: 14px;
|
|
3414
|
+
color: var(--g-ui-muted);
|
|
3415
|
+
text-transform: uppercase;
|
|
3416
|
+
letter-spacing: .08em;
|
|
3417
|
+
}
|
|
3418
|
+
.g-ui-sidebar-item {
|
|
3419
|
+
display: flex;
|
|
3420
|
+
align-items: center;
|
|
3421
|
+
gap: var(--g-ui-space-10);
|
|
3422
|
+
padding: var(--g-ui-space-8) var(--g-ui-space-12);
|
|
3423
|
+
border-radius: 8px;
|
|
3424
|
+
cursor: pointer;
|
|
3425
|
+
color: var(--g-ui-text);
|
|
3426
|
+
text-decoration: none;
|
|
3427
|
+
font-size: 14px;
|
|
3428
|
+
}
|
|
3429
|
+
.g-ui-sidebar-item:hover {
|
|
3430
|
+
background: var(--g-ui-bg-subtle);
|
|
3431
|
+
}
|
|
3432
|
+
.g-ui-sidebar-item-active {
|
|
3433
|
+
background: var(--g-ui-primary-subtle);
|
|
3434
|
+
color: var(--g-ui-primary);
|
|
3435
|
+
}
|
|
3436
|
+
.g-ui-sidebar-item-active:hover { background: var(--g-ui-primary-muted); }
|
|
3437
|
+
.g-ui-skeleton-h-xs { height: 8px; }
|
|
3438
|
+
.g-ui-skeleton-h-sm { height: 12px; }
|
|
3439
|
+
.g-ui-skeleton-h-md { height: 16px; }
|
|
3440
|
+
.g-ui-skeleton-h-lg { height: 24px; }
|
|
3441
|
+
.g-ui-skeleton-h-xl { height: 32px; }
|
|
3442
|
+
.g-ui-skeleton-w-xs { width: 60px; }
|
|
3443
|
+
.g-ui-skeleton-w-sm { width: 120px; }
|
|
3444
|
+
.g-ui-skeleton-w-md { width: 180px; }
|
|
3445
|
+
.g-ui-skeleton-w-lg { width: 240px; }
|
|
3446
|
+
.g-ui-skeleton-w-xl { width: 320px; }
|
|
3447
|
+
.g-ui-skeleton-w-full { width: 100%; }
|
|
3448
|
+
.g-ui-loading {
|
|
3449
|
+
display: inline-flex;
|
|
3450
|
+
align-items: center;
|
|
3451
|
+
justify-content: center;
|
|
3452
|
+
}
|
|
3453
|
+
.g-ui-spinner {
|
|
3454
|
+
border: 3px solid var(--g-ui-border-muted);
|
|
3455
|
+
border-top-color: var(--g-ui-primary);
|
|
3456
|
+
border-radius: 50%;
|
|
3457
|
+
animation: g-ui-spin 1s linear infinite;
|
|
3458
|
+
}
|
|
3459
|
+
.g-ui-loading-size-xs .g-ui-spinner { width: 14px; height: 14px; }
|
|
3460
|
+
.g-ui-loading-size-sm .g-ui-spinner { width: 18px; height: 18px; }
|
|
3461
|
+
.g-ui-loading-size-md .g-ui-spinner { width: 22px; height: 22px; }
|
|
3462
|
+
.g-ui-loading-size-lg .g-ui-spinner { width: 28px; height: 28px; }
|
|
3463
|
+
.g-ui-loading-size-xl .g-ui-spinner { width: 36px; height: 36px; }
|
|
3464
|
+
.g-ui-dots::before,
|
|
3465
|
+
.g-ui-dots::after {
|
|
3466
|
+
content: '';
|
|
3467
|
+
display: inline-block;
|
|
3468
|
+
width: 6px;
|
|
3469
|
+
height: 6px;
|
|
3470
|
+
border-radius: 50%;
|
|
3471
|
+
background: var(--g-ui-primary);
|
|
3472
|
+
margin: 0 var(--g-ui-space-3);
|
|
3473
|
+
animation: g-ui-bounce 1s infinite ease-in-out;
|
|
3474
|
+
}
|
|
3475
|
+
.g-ui-dots::after { animation-delay: .2s; }
|
|
3476
|
+
.g-ui-loading-size-xs.g-ui-dots::before,
|
|
3477
|
+
.g-ui-loading-size-xs.g-ui-dots::after { width: 4px; height: 4px; }
|
|
3478
|
+
.g-ui-loading-size-sm.g-ui-dots::before,
|
|
3479
|
+
.g-ui-loading-size-sm.g-ui-dots::after { width: 6px; height: 6px; }
|
|
3480
|
+
.g-ui-loading-size-md.g-ui-dots::before,
|
|
3481
|
+
.g-ui-loading-size-md.g-ui-dots::after { width: 8px; height: 8px; }
|
|
3482
|
+
.g-ui-loading-size-lg.g-ui-dots::before,
|
|
3483
|
+
.g-ui-loading-size-lg.g-ui-dots::after { width: 10px; height: 10px; }
|
|
3484
|
+
.g-ui-loading-size-xl.g-ui-dots::before,
|
|
3485
|
+
.g-ui-loading-size-xl.g-ui-dots::after { width: 12px; height: 12px; }
|
|
3486
|
+
.g-ui-bars span {
|
|
3487
|
+
width: 4px;
|
|
3488
|
+
height: 16px;
|
|
3489
|
+
background: var(--g-ui-primary);
|
|
3490
|
+
margin: 0 var(--g-ui-space-2);
|
|
3491
|
+
display: inline-block;
|
|
3492
|
+
animation: g-ui-bars 1s infinite ease-in-out;
|
|
3493
|
+
}
|
|
3494
|
+
.g-ui-bars span:nth-child(2) { animation-delay: .15s; }
|
|
3495
|
+
.g-ui-bars span:nth-child(3) { animation-delay: .3s; }
|
|
3496
|
+
.g-ui-loading-size-xs.g-ui-bars span { width: 3px; height: 12px; }
|
|
3497
|
+
.g-ui-loading-size-sm.g-ui-bars span { width: 4px; height: 14px; }
|
|
3498
|
+
.g-ui-loading-size-md.g-ui-bars span { width: 4px; height: 16px; }
|
|
3499
|
+
.g-ui-loading-size-lg.g-ui-bars span { width: 5px; height: 20px; }
|
|
3500
|
+
.g-ui-loading-size-xl.g-ui-bars span { width: 6px; height: 24px; }
|
|
3501
|
+
|
|
3502
|
+
|
|
3503
|
+
.g-ui-grid-table {
|
|
3504
|
+
display: grid;
|
|
3505
|
+
}
|
|
3506
|
+
.g-ui-grid-table-row {
|
|
3507
|
+
display: contents;
|
|
3508
|
+
}
|
|
3509
|
+
.g-ui-grid-table-cell {
|
|
3510
|
+
padding: var(--g-ui-space-8);
|
|
3511
|
+
border-bottom: 1px solid var(--g-ui-border-muted);
|
|
3512
|
+
}
|
|
3513
|
+
.g-ui-grid-table-row-header .g-ui-grid-table-cell {
|
|
3514
|
+
font-weight: 200;
|
|
3515
|
+
}
|
|
3516
|
+
.g-ui-grid-table-cell-sortable {
|
|
3517
|
+
cursor: pointer;
|
|
3518
|
+
user-select: none;
|
|
3519
|
+
}
|
|
3520
|
+
.g-ui-grid-table-cell-sortable:hover {
|
|
3521
|
+
background: var(--g-ui-bg-hover, rgba(0,0,0,0.04));
|
|
3522
|
+
}
|
|
3523
|
+
.g-ui-grid-table-sort-icon {
|
|
3524
|
+
opacity: 0.5;
|
|
3525
|
+
}
|
|
3526
|
+
.g-ui-grid-table-sticky .g-ui-grid-table-row-header .g-ui-grid-table-cell {
|
|
3527
|
+
position: sticky;
|
|
3528
|
+
top: 0;
|
|
3529
|
+
z-index: 1;
|
|
3530
|
+
background: var(--g-ui-bg, #fff);
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
.g-ui-bottombar {
|
|
3534
|
+
position: fixed;
|
|
3535
|
+
bottom: 0;
|
|
3536
|
+
left: 0;
|
|
3537
|
+
right: 0;
|
|
3538
|
+
display: flex;
|
|
3539
|
+
align-items: center;
|
|
3540
|
+
justify-content: center;
|
|
3541
|
+
gap: var(--g-ui-space-4);
|
|
3542
|
+
padding: var(--g-ui-space-4) var(--g-ui-space-8);
|
|
3543
|
+
background: var(--g-ui-bg);
|
|
3544
|
+
border-top: 1px solid var(--g-ui-border);
|
|
3545
|
+
z-index: 100;
|
|
3546
|
+
box-sizing: border-box;
|
|
3547
|
+
}
|
|
3548
|
+
.g-ui-bottombar-grow .g-ui-bottombar-action { flex: 1; }
|
|
3549
|
+
|
|
3550
|
+
.g-ui-bottombar-action {
|
|
3551
|
+
all: unset;
|
|
3552
|
+
display: flex;
|
|
3553
|
+
flex-direction: column;
|
|
3554
|
+
align-items: center;
|
|
3555
|
+
justify-content: center;
|
|
3556
|
+
gap: 2px;
|
|
3557
|
+
padding: var(--g-ui-space-6) var(--g-ui-space-12);
|
|
3558
|
+
border-radius: var(--g-ui-radius-sm);
|
|
3559
|
+
cursor: pointer;
|
|
3560
|
+
transition: background 150ms ease, color 150ms ease;
|
|
3561
|
+
color: var(--g-ui-text-muted);
|
|
3562
|
+
font-size: var(--g-ui-fz-xs);
|
|
3563
|
+
min-width: 48px;
|
|
3564
|
+
box-sizing: border-box;
|
|
3565
|
+
-webkit-tap-highlight-color: transparent;
|
|
3566
|
+
user-select: none;
|
|
3567
|
+
}
|
|
3568
|
+
.g-ui-bottombar-action:hover { background: var(--g-ui-hover); }
|
|
3569
|
+
.g-ui-bottombar-action:active { background: var(--g-ui-active); }
|
|
3570
|
+
.g-ui-bottombar-action-active { color: var(--g-ui-primary); }
|
|
3571
|
+
.g-ui-bottombar-action-active:hover { background: var(--g-ui-primary-light-hover); }
|
|
3572
|
+
.g-ui-bottombar-action-disabled {
|
|
3573
|
+
opacity: 0.5;
|
|
3574
|
+
pointer-events: none;
|
|
3575
|
+
cursor: default;
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
.g-ui-bottombar-action-variant-filled.g-ui-bottombar-action-active {
|
|
3579
|
+
background: var(--g-ui-primary);
|
|
3580
|
+
color: var(--g-ui-white);
|
|
3581
|
+
}
|
|
3582
|
+
.g-ui-bottombar-action-variant-filled.g-ui-bottombar-action-active:hover {
|
|
3583
|
+
background: var(--g-ui-primary-dark);
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
.g-ui-bottombar-action-icon {
|
|
3587
|
+
display: flex;
|
|
3588
|
+
align-items: center;
|
|
3589
|
+
justify-content: center;
|
|
3590
|
+
font-size: 20px;
|
|
3591
|
+
line-height: 1;
|
|
3592
|
+
}
|
|
3593
|
+
.g-ui-bottombar-action-label {
|
|
3594
|
+
font-size: 12px;
|
|
3595
|
+
line-height: 1.2;
|
|
3596
|
+
white-space: nowrap;
|
|
3597
|
+
text-align: center;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3600
|
+
|
|
3601
|
+
@keyframes g-ui-spin { to { transform: rotate(360deg); } }
|
|
3602
|
+
@keyframes g-ui-bounce { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-5px); opacity: 1; } }
|
|
3603
|
+
@keyframes g-ui-bars { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1.2); } }
|
|
3604
|
+
`;function Nt(){if(typeof document>"u"||document.getElementById(zt))return;let e=document.createElement("style");e.id=zt,e.textContent=Gr,document.head.appendChild(e)}var Zr=new Set(["--g-ui-bg","--g-ui-bg-subtle","--g-ui-bg-muted","--g-ui-bg-emphasized","--g-ui-bg-inverted","--g-ui-bg-panel","--g-ui-fg","--g-ui-fg-muted","--g-ui-fg-subtle","--g-ui-fg-inverted","--g-ui-border","--g-ui-border-subtle","--g-ui-border-emphasized","--g-ui-border-inverted","--g-ui-primary","--g-ui-primary-hover","--g-ui-primary-active","--g-ui-primary-subtle","--g-ui-primary-muted","--g-ui-primary-emphasized","--g-ui-success","--g-ui-success-hover","--g-ui-success-active","--g-ui-success-subtle","--g-ui-success-muted","--g-ui-danger","--g-ui-danger-hover","--g-ui-danger-active","--g-ui-danger-subtle","--g-ui-danger-muted","--g-ui-warning","--g-ui-warning-hover","--g-ui-warning-active","--g-ui-warning-subtle","--g-ui-warning-muted","--g-ui-info","--g-ui-info-hover","--g-ui-info-active","--g-ui-info-subtle","--g-ui-info-muted","--g-ui-shadow-xs","--g-ui-shadow-sm","--g-ui-shadow-md","--g-ui-shadow-lg","--g-ui-shadow-xl","--g-ui-shadow-2xl","--g-ui-radius","--g-ui-font","--g-ui-surface","--g-ui-text","--g-ui-muted","--g-ui-primary-strong","--g-ui-shadow"]);function Ur(e={},i=document?.documentElement){if(i)for(let[t,r]of Object.entries(e)){let a=t.startsWith("--")?t:`--g-ui-${t}`;Zr.has(a)&&i.style.setProperty(a,String(r))}}function Xr(e="dark",i=document?.documentElement){i&&(i.classList.remove("g-ui-theme-dark","g-ui-theme-light"),i.classList.add(e==="light"?"g-ui-theme-light":"g-ui-theme-dark"))}import{Renderer as Ct,isSignal as St,isState as Dt,isStatePath as Pt,isComputed as Mt,resolve as Le,computed as _r,after as Ai,concat as Kr}from"@granularjs/core";function Fi(e){return St(e)||Dt(e)||Pt(e)||Mt(e)}function o(...e){return Kr(...e,{separator:" ",filterFalsy:!0})}function Tt(e){if(!(e==null||e===""))return typeof e=="number"?`${e}px`:e}function s(e,i){let t={},r=[],a=n=>!!n&&typeof n=="object"&&!Array.isArray(n)&&!Ct.isRenderable(n)&&!Ct.isDomNode(n)&&!St(n)&&!Dt(n)&&!Pt(n)&&!Mt(n);for(let n of e)a(n)?Object.assign(t,n):r.push(n);if(i&&typeof i=="object")for(let n of Object.keys(i))t[n]===void 0&&(t[n]=i[n]);return{props:_r(t),rawProps:t,children:r}}function l(e){return Le(e)}function ve(e){return!!Le(e)}function k(e,i,t){let r=a=>{let n=Le(a),u=n==null||n===""?t:n;return u==null||u===""?"":`${e}${u}`};return Fi(i)?Ai(i).compute(a=>r(a)):r(i)}function W(e,i){return Fi(i)?Ai(i).compute(t=>Le(t)?e:""):Le(i)?e:""}function me(e,i,t){let r=a=>i[a]||null;return Fi(e)?Ai(e).compute(a=>r(Le(a??t))):r(Le(e??t))}import{Button as Qr,Span as ji,when as Ei,after as Jr}from"@granularjs/core";function Ri(...e){let{props:i,children:t}=s(e,{variant:"filled",size:"md"}),{variant:r,size:a,fullWidth:n,loading:u,leftSection:g,rightSection:p,className:h,disabled:m,...b}=i,x=Jr(m,u).compute(([d,y])=>d||y);return Qr({...b,disabled:x,className:o("g-ui-button",k("g-ui-button-variant-",r,"filled"),k("g-ui-button-size-",a,"md"),W("g-ui-button-full",n),W("g-ui-button-loading",u),h)},Ei(g,()=>ji({className:"g-ui-button-section-left"},g)),Ei(u,()=>ji("Loading..."),()=>t),Ei(p,()=>ji({className:"g-ui-button-section-right"},p)))}import{Span as ea}from"@granularjs/core";function Hi(...e){let{props:i,children:t}=s(e,{size:"md"}),{size:r,weight:a,color:n,dimmed:u,align:g,className:p,style:h,...m}=i,b=me(a,{bold:"g-ui-text-weight-700",semibold:"g-ui-text-weight-600",medium:"g-ui-text-weight-500",700:"g-ui-text-weight-700",600:"g-ui-text-weight-600",500:"g-ui-text-weight-500",400:"g-ui-text-weight-400"}),x=me(n,{primary:"g-ui-text-primary",success:"g-ui-text-success",danger:"g-ui-text-danger",muted:"g-ui-text-dimmed"}),d=me(g,{center:"g-ui-text-align-center",right:"g-ui-text-align-right",left:"g-ui-text-align-left"});return ea({...m,className:o("g-ui-text",k("g-ui-text-size-",r,"md"),W("g-ui-text-dimmed",u),b,x,d,p)},t)}import{H1 as ia,H2 as Vt,H3 as ta,H4 as ra,H5 as aa,H6 as oa}from"@granularjs/core";var na={1:ia,2:Vt,3:ta,4:ra,5:aa,6:oa};function sa(...e){let{props:i,children:t}=s(e,{order:2}),{order:r,className:a,style:n,...u}=i,g=l(r)||2;return(na[g]||Vt)({...u,className:o("g-ui-title",k("g-ui-title-order-",r,2),a)},t)}import{Div as ua}from"@granularjs/core";function ga(...e){let{props:i,children:t}=s(e,{size:"md"}),{size:r,fluid:a,className:n,style:u,...g}=i;return ua({...g,className:o("g-ui-container",W("g-ui-container-fluid",a),k("g-ui-container-size-",r,"md"),n)},t)}import{Div as la}from"@granularjs/core";function ca(...e){let{props:i,children:t}=s(e,{gap:"md"}),{gap:r,align:a,justify:n,className:u,style:g,...p}=i,h=me(n,{between:"g-ui-justify-between",center:"g-ui-justify-center",end:"g-ui-justify-end",start:"g-ui-justify-start"});return la({...p,style:g,className:o("g-ui-stack",k("g-ui-gap-",r,"md"),k("g-ui-align-",a),h,u)},t)}import{Div as pa}from"@granularjs/core";function da(...e){let{props:i,children:t}=s(e,{gap:"md",align:"center"}),{gap:r,align:a,justify:n,position:u,noWrap:g,className:p,style:h,...m}=i,b=me(u,{apart:"g-ui-justify-between",center:"g-ui-justify-center",right:"g-ui-justify-end",left:"g-ui-justify-start"});return pa({...m,style:h,className:o("g-ui-group",k("g-ui-gap-",r,"md"),k("g-ui-align-",a,"center"),k("g-ui-justify-",n,"none"),b,W("g-ui-no-wrap",g),p)},t)}import{Div as pi,list as ma,when as Oi,after as Lt}from"@granularjs/core";function fa(...e){let{props:i,children:t}=s(e,{padding:"md",radius:"md",shadow:"none",border:"default"}),{title:r,content:a,actions:n,border:u,padding:g,radius:p,shadow:h,className:m,style:b,...x}=i;return pi(Oi(r,()=>pi({className:"g-ui-card-title"},r)),Oi(a,()=>pi({className:"g-ui-card-content"},a)),Oi(n,()=>pi({className:"g-ui-card-actions"},ma(n,d=>Ri({className:"g-ui-card-action",onClick:y=>d.onClick.get()?.(y),leftSection:d.leftSection,rightSection:d.rightSection,size:Lt(d.size).compute(y=>y||"sm"),variant:Lt(d.variant).compute(y=>y||"outline"),...d.props.get()||{}},d.label)))),{className:o("g-ui-card",k("g-ui-card-border-",u,"md"),k("g-ui-card-padding-",g,"md"),k("g-ui-card-radius-",p,"md"),k("g-ui-card-shadow-",h,"md"),m),...x},t)}import{Span as ha}from"@granularjs/core";function xa(...e){let{props:i,children:t}=s(e,{variant:"filled",size:"md"}),{variant:r,size:a,className:n,dot:u,style:g,...p}=i,h=me(r,{dot:"g-ui-badge-dot"});return ha({...p,className:o("g-ui-badge",k("g-ui-badge-variant-",r,"filled"),k("g-ui-badge-size-",a,"md"),W("g-ui-badge-dot",u),h,n)},t)}import{Div as Ue,Input as va,Textarea as ba,Label as wa,Span as ya,when as Xe,state as ka,after as za,isState as Na}from"@granularjs/core";function ge(...e){let{props:i,rawProps:t}=s(e,{size:"md"}),{label:r,description:a,error:n,size:u,leftSection:g,rightSection:p,className:h,inputClassName:m,multiline:b,value:x,...d}=i,{value:y,onChange:P,onInput:A,onFocus:$,onBlur:S,onKeyDown:F,onKeyUp:z,onClick:w}=t,v=Na(y)&&!P&&!A,f=v?y:ka(l(x)??"");za(x).change(K=>{v||f.set(l(K)??"")});let C=K=>{let ue=K?.target?.value??"";ue!==x.get()&&(f.set(ue),P?.(K),A?.(K))},V=ve(b),I=V?ba:va,X=o(m,V&&"g-ui-textarea"),re=I({...d,value:f,onInput:C,onChange:C,onFocus:$,onBlur:S,onKeyDown:F,onKeyUp:z,onClick:w,className:o("g-ui-input",X)});return Ue({className:o("g-ui-text-input",h)},Xe(r,()=>wa({className:"g-ui-text-input-label"},r)),Xe(a,()=>ya({className:"g-ui-text-input-description"},a)),Ue({className:o("g-ui-input-wrapper",W("g-ui-input-multiline",b),k("g-ui-input-size-",u,"md"),W("g-ui-input-error",n))},Xe(g,()=>Ue({className:"g-ui-input-section"},g)),re,Xe(p,()=>Ue({className:"g-ui-input-section"},p))),Xe(n,()=>Ue({className:"g-ui-text-input-error-text"},n)))}function qi(...e){let{props:i}=s(e,{size:"md"}),{size:t,leftSection:r,rightSection:a,className:n,...u}=i;return ge({...u,size:t,className:n,leftSection:r,rightSection:a,multiline:!0})}import{Div as $t,Span as It,after as $e,state as Ca}from"@granularjs/core";function Yi(...e){let{props:i,rawProps:t}=s(e,{size:"md",step:1,allowDecimal:!0,allowNegative:!0,clampBehavior:"blur",hideControls:!1,decimalSeparator:".",thousandSeparator:"",format:null,prefix:"",suffix:""}),{value:r,min:a,max:n,step:u,size:g,allowDecimal:p,allowNegative:h,decimalSeparator:m,thousandSeparator:b,decimalScale:x,clampBehavior:d,hideControls:y,format:P,locale:A,currency:$,formatOptions:S,prefix:F,suffix:z,leftSection:w,rightSection:v,className:f,onChange:C,onInput:V,...I}=i,{onChange:X,onInput:re,onBlur:K,onFocus:ue,onKeyDown:te}=t,oe=M=>{X?.(M.target?.value??""),re?.(M.target?.value??"")},de=oe,ie=Ca(""),T=M=>String(M??"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=()=>{if(!!!l(p))return 0;let D=l(x);if(D!=null&&D!==""&&Number.isFinite(Number(D)))return Math.max(0,Number(D));let E=l(P);return E==="currency"||E==="percent"?2:0},N=M=>{let D=l(m)??".",E=l(b)??"",O=String(M??"");if(E&&(O=O.split(E).join("")),!O||O==="-"||O===D||O.endsWith(D))return null;let _=O.replace(D,"."),Z=Number(_);return Number.isFinite(Z)?Z:null},G=M=>{let D=l(b)??"";return D?M.replace(/\B(?=(\d{3})+(?!\d))/g,D):M},H=M=>{let D=l(m)??".",E=R(),O=Number(M);if(!Number.isFinite(O))return"";let _=O<0?"-":"",Z=Math.abs(O),[Y,U=""]=String(Z).split("."),ee=G(Y);if(E>0){let fe=U.slice(0,E).padEnd(E,"0");return`${_}${ee}${D}${fe}`}return`${_}${ee}`},ne=(M,D)=>{try{let E=l(A),O=l($)??"USD",_=l(S)??{},Z=R(),Y=D==="currency"?"currency":"decimal";return new Intl.NumberFormat(E,{style:Y,currency:O,...Z>0?{minimumFractionDigits:Z,maximumFractionDigits:Z}:{maximumFractionDigits:0},..._}).format(M)}catch{return H(M)}},se=M=>{let D=M,E=l(a),O=l(n);return E!=null&&Number.isFinite(Number(E))&&(D=Math.max(D,Number(E))),O!=null&&Number.isFinite(Number(O))&&(D=Math.min(D,Number(O))),!l(h)&&D<0&&(D=0),D},xe=()=>{let M=l(z)??"",D=l(P);return!M&&D==="percent"?"%":M},ze=(M,D,E)=>{let O=l(F)??"",_=xe(),Z=String(M??"").replace(/\u00A0/g," "),Y=String(O??"").replace(/\u00A0/g," "),U=String(_??"").replace(/\u00A0/g," "),ee=Y&&Z.startsWith(Y),fe=U&&Z.endsWith(U);return`${D??""}${ee?"":O}${M}${fe?"":_}`},Se=(M,D)=>{let E=R(),O=l(m)??".",Z=String(M??"").replace(/\D/g,"")||"0",Y=E>0?Z.padStart(E+1,"0"):Z,ee=(E>0?Y.slice(0,-E):Y).replace(/^0+(?=\d)/,"")||"0",fe=E>0?Y.slice(-E):"",Te=E>0?`${ee}${O}${fe}`:ee;return`${D??""}${Te}`},Ve=M=>{let D=l(F)??"",E=xe(),O=String(M??""),_=String(D??"").replace(/\u00A0/g," "),Z=String(E??"").replace(/\u00A0/g," ");return _&&O.replace(/\u00A0/g," ").startsWith(_)&&(O=O.slice(D.length)),Z&&O.replace(/\u00A0/g," ").endsWith(Z)&&(O=O.slice(0,-E.length)),O},li=M=>{let D=!!l(h),E=Ve(M),O=D&&E.includes("-")?"-":"",_=E.replace(/\D/g,""),Z=Se(_,O);if(l(d)==="strict"){let Y=N(Z);if(Y!=null){let U=se(Y);Z=`${U<0?"-":""}${H(Math.abs(U))}`}}return Z},Vi=M=>{if(M==null||M==="")return Se("","");if(typeof M=="number"&&Number.isFinite(M)){let U=l(d)==="strict"?se(M):M;return`${U<0?"-":""}${H(Math.abs(U))}`}let D=Ve(M),E=l(m)??".",_=!!l(h)&&String(D).includes("-")?"-":"",Z=String(D??"").replace(new RegExp(`[^0-9${T(E)}]`,"g"),""),Y=N(`${_}${Z}`);if(Y!=null){let U=l(d)==="strict"?se(Y):Y;return`${U<0?"-":""}${H(Math.abs(U))}`}return li(M)},Ne,Ze=M=>{let D=l(M);if(D===void 0)return;let E=Vi(D);E!==ie.get()&&(Ne=E,ie.set(E))};Ze(r),$e(r).change(M=>{Ze(M)}),$e(ie).change(M=>{if(M===Ne){Ne=void 0;return}Ne=void 0;let D=N(M);if(D==null){oe?.(M??"");return}oe?.(D)});let Li=$e(v).compute(M=>M!=null&&M!==!1),$i=$e(y,Li).compute(([M,D])=>!l(M)&&!D),ci=$e(p).compute(M=>l(M)?"decimal":"numeric"),Ii=$e(P,F,z,p,h,m,b,x,d,a,n,A,$,S).compute(()=>({mode:"both",format:M=>{let D=li(M),E=l(P),_=!!l(h)&&D.startsWith("-")?"-":"",Z=N(D),Y=D.replace(_,"");if(Z!=null){let U=Math.abs(Z);if(typeof E=="function")try{Y=E(U)}catch{Y=H(U)}else if(E==="currency")Y=ne(U,"currency");else if(E==="decimal"){let ee=l(A),fe=l(S);Y=ee||fe?ne(U,"decimal"):H(U)}else Y=H(U)}return{value:D,raw:D,visual:ze(Y,_,E)}}})),c=M=>{let D=N(ie.get()),E=Number(l(u)??1),_=se((D??0)+E*M);ie.set(H(_))},B=M=>{if(!M||typeof M.setSelectionRange!="function")return;let D=()=>{try{let E=String(M.value??"").length;M.setSelectionRange(E,E)}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(D):D()},ae=M=>{de?.(M);let D=M?.target;D&&B(D)},q=M=>{if(K?.(M),l(d)!=="blur")return;let D=N(ie.get());if(D==null)return;let E=se(D);ie.set(H(E))},J=M=>{ue?.(M),B(M?.target)},pe=M=>{te?.(M);let D=M?.target;if(!D)return;let E=l(F)??"",O=xe();O&&typeof D.selectionEnd=="number"&&(D.selectionEnd=Math.min(D.selectionEnd,String(D.value??"").length-O.length)),E&&typeof D.selectionStart=="number"&&(D.selectionStart=Math.max(D.selectionStart,E.length))},Q=$t({className:"g-ui-number-field-controls"},It({className:"g-ui-number-field-control",onClick:()=>c(1)},"+"),It({className:"g-ui-number-field-control",onClick:()=>c(-1)},"\u2212")),Ce=$t({className:"g-ui-number-field-controls-wrapper"},Q),De=$e($i,v).compute(([M,D])=>M?Ce:D);return ge({...I,size:g,className:o("g-ui-number-field",f),leftSection:w,rightSection:De,type:"text",inputMode:ci,inputClassName:o("g-ui-input-number"),value:ie,format:Ii,onInput:ae,onBlur:q,onFocus:J,onKeyDown:pe})}function Sa(...e){return Yi(...e)}import{Div as hi,Button as Da,portal as Pa,when as Wi,after as Ma}from"@granularjs/core";var di='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>',mi='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>',fi='<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="#1f1f1f"><path d="M379.33-244 154-469.33 201.67-517l177.66 177.67 378.34-378.34L805.33-670l-426 426Z"/></svg>',Bt='<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="#1f1f1f"><path d="M240-446.67v-66.66h480v66.66H240Z"/></svg>',Ee='<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="#1f1f1f"><path d="M312-265.33 265.33-312l168-168-168-167L312-693.67l168 168 167-168L693.67-647l-168 167 168 168L647-265.33l-167-168-168 168Z"/></svg>',At='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#1f1f1f"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>',Ft='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/></svg>',jt='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h357l-80 80H200v560h560v-278l80-80v358q0 33-23.5 56.5T760-120H200Zm280-360v-80h240v80H480Zm0 160v-80h320v80H480Zm0 160v-80h320v80H480ZM360-360v-80h80v80h-80Zm0 160v-80h80v80h-80Zm0 160v-80h80v80h-80Zm160-320h280l-36-37 37-37v74H520Zm-160 0h80v-80h-80v80ZM120-600v-160l160-160h160l-80 80H200v240h-80Zm80-240v-80 80Z"/></svg>',Et='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>',Rt='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Z"/></svg>';function _e(...e){let{props:i,rawProps:t,children:r}=s(e,{size:"md",centered:!0,overlay:"normal"}),{opened:a,title:n,size:u,centered:g,overlay:p,position:h,className:m,style:b}=i,{onClose:x}=t,d=Ma(h,g).compute(([y,P])=>`g-ui-modal-position-${y??(P===!1?"top-center":"center")}`);return Wi(a,()=>Pa(hi({className:o("g-ui-modal-overlay",k("g-ui-modal-overlay-",p,"normal"),d),onClick:y=>{y.target===y.currentTarget&&x?.()}},hi({className:o("g-ui-modal",k("g-ui-modal-size-",u,"md"),m)},hi({className:"g-ui-modal-header"},Wi(n,()=>hi({className:"g-ui-modal-title"},n)),Wi(x,()=>Da({type:"button",className:"g-ui-button g-ui-button-variant-subtle g-ui-button-size-xs g-ui-modal-close",onClick:x,innerHTML:Ee}))),r))))}import{Div as xi,Span as Gi,after as Ht,when as Ot}from"@granularjs/core";function Ke(...e){let{props:i}=s(e,{variant:"spinner",size:"md"}),{variant:t,size:r,className:a}=i,n=Ht(t).compute(g=>g==="dots"),u=Ht(t).compute(g=>g==="bars");return Ot(n,()=>xi({className:o("g-ui-loading g-ui-dots",k("g-ui-loading-size-",r,"md"),a)}),()=>Ot(u,()=>xi({className:o("g-ui-loading g-ui-bars",k("g-ui-loading-size-",r,"md"),a)},Gi(""),Gi(""),Gi("")),()=>xi({className:o("g-ui-loading",k("g-ui-loading-size-",r,"md"),a)},xi({className:"g-ui-spinner"}))))}import{Div as Zi,Input as Ta,Label as Va,Span as qt,when as Ui,state as La,after as $a}from"@granularjs/core";function Xi(...e){let{props:i,rawProps:t}=s(e,{size:"md"}),{checked:r,label:a,description:n,size:u,indeterminate:g,className:p,style:h,inputProps:m,...b}=i,{onChange:x}=t,d=La(ve(r));$a(r).change(P=>{P!=null&&(d.set(!!P),x?.(P))});let y=Va({className:"g-ui-checkbox-control"},Ta({type:"checkbox",indeterminate:g,checked:d,className:o("g-ui-checkbox-input",k("g-ui-checkbox-size-",u,"md"),m?.className),...b}),Ui(d,()=>Zi({className:"g-ui-checkbox-checked",innerHTML:fi}),()=>{if(!d.get()&&g.get())return Zi({className:"g-ui-checkbox-indeterminate",innerHTML:Bt})}),Ui(a,()=>qt({className:"g-ui-checkbox-label"},a)));return Zi({className:o("g-ui-checkbox",k("g-ui-checkbox-size-",u,"md"),p)},y,Ui(n,()=>qt({className:"g-ui-checkbox-description"},n)))}import{Input as Ia,Label as Ba,Span as Aa,when as Fa}from"@granularjs/core";function ja(...e){let{props:i}=s(e,{size:"md"}),{label:t,size:r,className:a,style:n,inputProps:u,...g}=i;return Ba({className:o("g-ui-switch",k("g-ui-switch-size-",r,"md"),a)},Ia({type:"checkbox",className:o("g-ui-switch-input",k("g-ui-switch-size-",r,"md"),u?.className),...g}),Fa(t,()=>Aa({className:"g-ui-switch-label"},t)))}import{Div as Ie,Span as Yt,when as _i,state as Wt,after as vi}from"@granularjs/core";function Ea(...e){let{props:i,rawProps:t}=s(e,{data:[],size:"md"}),{data:r,value:a,size:n,leftSection:u,rightSection:g,placeholder:p,className:h,...m}=i,{onChange:b}=t,x=Wt(!1),d=Wt(l(a)??"");vi(a).change($=>{let S=l($);S!==void 0&&d.set(S??"")});let y=$=>{d.set($),b?.($),x.set(!1)},P=vi(d).compute($=>$?"":"g-ui-select-placeholder"),A=vi(d).compute($=>{let F=(l(r)??[]).find(z=>z.value===$);return $?F?.label??"":p??""});return Ie({...m,className:o("g-ui-select-root",h)},Ie({className:o("g-ui-input-wrapper",k("g-ui-input-size-",n,"md"))},_i(u,()=>Ie({className:"g-ui-input-section"},u)),Ie({className:o("g-ui-select",P),onClick:()=>x.set(!x.get())},Yt({className:"g-ui-select-value"},A)),_i(g,()=>Ie({className:"g-ui-input-section"},g),()=>Yt({className:"g-ui-select-caret"},"\u25BE"))),_i(x,()=>Ie({className:"g-ui-select-dropdown"},(l(r)??[]).map($=>Ie({className:o("g-ui-select-item",vi(d).compute(S=>S===$.value?"g-ui-select-item-active":"")),onClick:()=>y($.value)},$.label)))))}import{Button as Ra,Div as Re,state as Pe,after as Qe,list as Ha,when as Oa}from"@granularjs/core";function qa(...e){let{props:i,rawProps:t}=s(e,{tabs:[],orientation:"horizontal",variant:"default",sticky:!0}),{value:r,tabs:a,orientation:n,variant:u,sticky:g,className:p,style:h}=i,{onChange:m}=t,b=Pe(l(r)??l(a)?.[0]?.value??""),x=Pe(),d=Pe(),y=Pe(0),P=Pe(0),A=Pe(0),$=Pe(0),S=Pe(!1),F=Pe(0),z=!1,w=null,v=!1,f=new Set;Qe(r).change(N=>{let G=l(N);G!=null&&b.set(G)});let C=N=>{b.set(N),m?.(N)},V=N=>{let G=[],H=N?.parentElement;for(;H;){let ne=getComputedStyle(H),se=`${ne.overflow}${ne.overflowY}${ne.overflowX}`;/(auto|scroll)/.test(se)&&G.push(H),H=H.parentElement}return G},I=N=>V(N)[0]??null,X=N=>N?N.getBoundingClientRect().top:0,re=N=>N?N.scrollTop:window.scrollY||window.pageYOffset||0,K=(N,G)=>N>G?"down":N<G?"up":"none",ue=(N,G,H,ne)=>N==="down"&&G<H?!0:N==="up"&&G>=H?!1:ne,te=()=>{let N=x.get(),G=d.get();if(!N||!G)return;if(!ve(g)){S.set(!1),y.set(0);return}if(typeof window>"u")return;let H=N.getBoundingClientRect(),ne=G.getBoundingClientRect(),se=I(N),xe=X(se),ze=re(se),Se=K(ze,F.get());F.set(ze);let Ve=ue(Se,H.top,xe,S.get());y.set(ne.height),P.set(H.left),A.set(H.width),$.set(xe),Ve!==S.get()&&S.set(Ve)},oe=()=>{w==null&&(w=requestAnimationFrame(()=>{w=null,te()}))},de=N=>{!N||f.has(N)||(f.add(N),N.addEventListener("scroll",oe,{passive:!0}))},ie=()=>{if(z)return;let N=x.get(),G=d.get();!N||!G||typeof window>"u"||(z=!0,te(),de(window),window.addEventListener("resize",oe),V(N).forEach(de))};Qe(d,x,g).change(ie),!v&&typeof window<"u"&&(v=!0,setTimeout(()=>ie(),0));let T=Qe(S,P,A,$).compute(N=>{let[G,H,ne,se]=N;return G?{position:"fixed",top:`${se}px`,left:`${H}px`,width:`${ne}px`,background:"var(--g-ui-surface)",zIndex:100}:{position:"static",top:"auto",left:"auto",width:"auto",zIndex:"auto",background:"transparent"}}),R=Qe(S,y).compute(N=>{let[G,H]=N;return{height:G?`${H}px`:"0px"}});return Re(Re({className:o("g-ui-tabs",me(n,{vertical:"g-ui-tabs-vertical"}),k("g-ui-tabs-variant-",u,"default"),i.className??p)},Re({node:x}),Re({style:R}),Re({node:d,className:"g-ui-tabs-list",style:T},Ha(a,N=>Ra({className:Qe(b,N.value).compute(([G,H])=>o("g-ui-tabs-tab",H===G&&"g-ui-tabs-tab-active")),onClick:()=>C(N.value.get())},N.label))),Re({className:"g-ui-tabs-panel"},Oa(b,()=>a.get()?.find(N=>N.value===b.get())?.content??null))))}import{Table as Ya,Thead as Wa,Tbody as Ga,Tr as Gt,Th as Za,Td as Zt}from"@granularjs/core";function Ua(...e){let{props:i}=s(e,{headers:[],rows:[]}),{headers:t,rows:r,striped:a,highlightOnHover:n,withBorder:u,withColumnBorders:g,className:p,style:h,...m}=i;return Ya({...m,className:o("g-ui-table",W("g-ui-table-striped",a),W("g-ui-table-hover",n),W("g-ui-table-with-border",u),W("g-ui-table-column-borders",g),p)},t.length?Wa(Gt(t.map(b=>Za(b)))):null,Ga(r.map(b=>Gt(Array.isArray(b)?b.map(x=>Zt(x)):Object.values(b).map(x=>Zt(x))))))}import{Div as Ki}from"@granularjs/core";import{state as Xa,when as _a,after as Ka}from"@granularjs/core";function Qa(...e){let{props:i,children:t}=s(e,{opened:!1}),{opened:r,className:a,...n}=i,u=Xa(ve(r));Ka(r).change(m=>{u.set(ve(m))});let g=()=>{u.set(!u.get())},p=t[0],h=t[1];return Ki({...n,className:o("g-ui-accordion",a)},Ki({className:"g-ui-accordion-header",onClick:g},p),_a(u,()=>Ki({className:"g-ui-accordion-content"},h)))}import{Span as Ut}from"@granularjs/core";function Ja(...e){let{props:i,children:t}=s(e),{label:r,className:a,style:n}=i;return Ut({className:o("g-ui-tooltip",a)},t,Ut({className:"g-ui-tooltip-content"},r))}import{Div as Je,when as eo,after as io,state as ei,portal as to}from"@granularjs/core";var Qi=ei({currentOpenState:null});function ro(...e){let i=ei(),t=ei(),r=ei({}),{props:a,rawProps:n,children:u}=s(e,{position:"right"}),{opened:g,content:p,position:h,className:m,...b}=a,{onChange:x}=n,d=ei(l(g)??!1);io(g).change(z=>{let w=l(z);w!=null&&(d.set(!!w),w&&y())});let y=()=>{Qi.get().currentOpenState!==d&&(Qi.get().currentOpenState?.set(!1),Qi.set().currentOpenState=d)};g.get()&&y();let P=z=>{let v=String(z??"right").toLowerCase().split("-").filter(Boolean);if(v.length===1){let V=v[0];return V==="top"||V==="bottom"?{placement:V,align:"center"}:V==="left"||V==="right"?{placement:"bottom",align:V}:V==="center"?{placement:"bottom",align:"center"}:{placement:"bottom",align:"right"}}let[f,C]=v;return f==="top"||f==="bottom"?{placement:f,align:C||"center"}:f==="left"||f==="right"?{placement:f,align:C||"center"}:{placement:"bottom",align:"right"}},A=()=>{let z=i.get(),w=t.get();if(!z||!w||typeof window>"u")return;let v=z.getBoundingClientRect(),f=w.getBoundingClientRect(),C=l(h)??"right",V=getComputedStyle(document.documentElement).getPropertyValue("--g-ui-space-20"),I=Number.parseFloat(V)||20,X=window.innerWidth||0,re=window.innerHeight||0,K=Math.max(I,X-f.width-I),ue=Math.max(I,re-f.height-I),{placement:te,align:oe}=P(C),de=8,ie=v.bottom+de,T=v.left;te==="top"||te==="bottom"?(ie=te==="top"?v.top-f.height-de:v.bottom+de,oe==="center"?T=v.left+v.width/2-f.width/2:oe==="right"?T=v.right-f.width:T=v.left):(te==="left"||te==="right")&&(T=te==="left"?v.left-f.width-de:v.right+de,oe==="center"?ie=v.top+v.height/2-f.height/2:oe==="bottom"?ie=v.bottom-f.height:ie=v.top),T=Math.max(I,Math.min(T,K)),ie=Math.max(I,Math.min(ie,ue)),r.set({top:`${ie}px`,left:`${T}px`})},$=z=>{d.set(z),x?.(z),z&&(y(),typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>A()):setTimeout(()=>A(),0))},S=()=>$(!d.get()),F=()=>$(!1);return Je({...b,node:i,className:o("g-ui-menu",m)},Je({onClick:S},u),eo(d,()=>to(Je(Je({className:"g-ui-menu-overlay",onClick:F}),Je({className:"g-ui-menu-dropdown",node:t,style:r},p)))))}import{Div as Xt,portal as ao,when as oo}from"@granularjs/core";function no(...e){let{props:i,children:t}=s(e,{position:"right",size:"md",overlay:"normal",shadowed:!0}),{opened:r,onClose:a,position:n,size:u,overlay:g,shadowed:p,className:h,style:m}=i;return oo(r,()=>ao(Xt({className:o("g-ui-drawer-overlay",k("g-ui-drawer-overlay-",g,"normal")),onClick:a},Xt({className:o("g-ui-drawer",me(p,{true:"g-ui-drawer-shadowed"},!0),k("g-ui-drawer-",n,"right"),k("g-ui-drawer-size-",u,"md"),h),onClick:b=>b.stopPropagation()},t))))}import{Button as so,Div as Ji,Span as _t,when as bi,after as Kt}from"@granularjs/core";function et(...e){let{props:i,rawProps:t,children:r}=s(e,{color:"blue",withCloseButton:!0}),{title:a,color:n,icon:u,loading:g,withCloseButton:p,withBorder:h,className:m,style:b}=i,{onClose:x}=t,d=Kt(u,g).compute(([P,A])=>!P&&!!A),y=Kt(u,g).compute(([P,A])=>!!P||!!A);return Ji({className:o("g-ui-notification",[h,"g-ui-notification-bordered"],[n,P=>`g-ui-notification-${P}`],[y,"g-ui-notification-with-icon"],m)},bi(u,()=>_t({className:"g-ui-notification-icon"},u)),bi(d,()=>Ke({size:"sm",className:"g-ui-notification-loader"})),Ji({className:"g-ui-notification-body"},bi(a,()=>Ji({className:"g-ui-notification-title"},a)),r),bi(p,()=>so({type:"button",className:"g-ui-notification-close",onClick:()=>x?.()},_t({innerHTML:Ee}))))}import{Div as uo,when as go}from"@granularjs/core";function lo(...e){let{props:i}=s(e,{labelPosition:"center"}),{label:t,labelPosition:r,vertical:a,className:n,...u}=i;return uo({...u,className:o("g-ui-divider",W("label",t),k("g-ui-divider-label-",r,"center"),W("g-ui-divider-vertical",a),n)},go(t,()=>Hi({className:"g-ui-divider-label-text",size:"sm"},t)))}import{Div as co}from"@granularjs/core";function po(...e){let{props:i,children:t}=s(e,{padding:"md",radius:"md",shadow:"none"}),{padding:r,radius:a,shadow:n,className:u,...g}=i;return co({...g,className:o("g-ui-paper",[r,p=>`g-ui-card-padding-${p}`],[a,p=>`g-ui-card-radius-${p}`],[n,p=>`g-ui-card-shadow-${p}`],u)},t)}import{Button as mo,Div as it,Span as fo,after as Qt,when as tt}from"@granularjs/core";function ho(...e){let{props:i,rawProps:t,children:r}=s(e,{color:"blue"}),{title:a,color:n,icon:u,withCloseButton:g,className:p,...h}=i,{onClose:m}=t,b=Qt(a,g).compute(([d,y])=>d||y),x=Qt(u).compute(d=>d!==void 0);return it({...h,className:o("g-ui-alert",[n,d=>`g-ui-alert-${d}`],p)},it({className:"g-ui-alert-header"},tt(u,()=>fo({className:"g-ui-alert-icon"},u)),tt(a,()=>it({className:"g-ui-alert-title"},a)),tt(g,()=>mo({type:"button",className:"g-ui-alert-close",onClick:()=>m?.()},"\xD7"))),r)}import{Div as xo,Img as vo,when as bo}from"@granularjs/core";function wo(...e){let{props:i,children:t}=s(e,{size:"md",alt:""}),{src:r,size:a,alt:n,className:u,...g}=i;return xo({...g,className:o("g-ui-avatar",[a,p=>`g-ui-avatar-size-${p}`],u)},bo(r,()=>vo({className:"g-ui-avatar-img",src:r,alt:n}),()=>t))}import{Span as yo}from"@granularjs/core";function ko(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return yo({...a,className:o("g-ui-kbd",r)},t)}import{Code as zo}from"@granularjs/core";function No(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return zo({...a,className:o("g-ui-code",r)},t)}import{Blockquote as Co}from"@granularjs/core";function So(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Co({...a,className:o("g-ui-blockquote",r)},t)}import{Div as Do}from"@granularjs/core";function Po(...e){let{props:i,children:t}=s(e,{cols:3,gap:"md"}),{cols:r,gap:a,className:n,...u}=i;return Do({...u,className:o("g-ui-grid",[a,g=>`g-ui-gap-${g}`],[r,g=>`g-ui-grid-cols-${g}`],n)},t)}import{Ul as Mo,Ol as To,Li as rt,Div as wi,Span as at,after as ot,when as He,isSignal as Vo,isState as Lo,isStatePath as $o,isComputed as Io}from"@granularjs/core";function Jt(...e){let{props:i,children:t}=s(e,{type:"none",size:"md"}),{type:r,size:a,withPadding:n,className:u,...g}=i,p=me(r,{ordered:"g-ui-list-ordered",unordered:"g-ui-list-unordered",none:"g-ui-list-none"}),h=ot(r).compute(P=>P==="ordered"),m=P=>P&&typeof P=="object"&&typeof P.tagName=="string"&&(P.tagName.toLowerCase()==="ul"||P.tagName.toLowerCase()==="ol"),b=P=>P&&typeof P=="object"&&typeof P.tagName=="string"&&P.tagName.toLowerCase()==="li",x=P=>{let A=$=>$==null||$===!1?null:Array.isArray($)?$.map(S=>A(S)):b($)?$:m($)?rt({className:"g-ui-list-nested-item"},$):rt(at({className:"g-ui-list-item-shell"},$));return Vo(P)||Lo(P)||$o(P)||Io(P)?ot(P).compute($=>A($)):A(P)},d=t.map(P=>x(P)),y={...g,className:o("g-ui-list",k("g-ui-list-size-",a,"md"),W("g-ui-list-with-padding",n),p,u)};return He(h,()=>To(y,d),()=>Mo(y,d))}function Bo(...e){let{props:i,children:t}=s(e,{withBorder:!1}),{leftSection:r,rightSection:a,title:n,body:u,withBorder:g,className:p,...h}=i,m=ot(n,u).compute(([b,x])=>!!b||!!x);return rt({...h,className:o("g-ui-list-item",W("g-ui-list-item-border",g),p)},wi({className:"g-ui-list-item-shell"},He(r,()=>at({className:"g-ui-list-item-section g-ui-list-item-section-left"},r)),He(m,()=>wi({className:"g-ui-list-item-content"},He(n,()=>wi({className:"g-ui-list-item-title"},n)),He(u,()=>wi({className:"g-ui-list-item-body"},u))),()=>t),He(a,()=>at({className:"g-ui-list-item-section g-ui-list-item-section-right"},a))))}Jt.Item=Bo;import{A as Ao}from"@granularjs/core";function Fo(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Ao({...a,className:o("g-ui-anchor",r)},t)}import{Img as jo}from"@granularjs/core";function Eo(...e){let{props:i}=s(e),{className:t,...r}=i;return jo({...r,className:o("g-ui-image",t)})}import{Span as Ro}from"@granularjs/core";function ye(...e){let{props:i,children:t}=s(e,{size:"md"});return Ro({...i,className:o("g-ui-icon",k("g-ui-icon-size-",i.size,"md"),k("g-ui-icon-color-",i.color),i.className)},...t)}import{Div as er}from"@granularjs/core";function Ho(...e){let{props:i}=s(e,{value:0,color:"primary",size:"md"}),{value:t,color:r,size:a,className:n,...u}=i;return er({...u,className:o("g-ui-progress",k("g-ui-progress-size-",a,"md"),[t,g=>{let p=Math.max(0,Math.min(100,Number(g)||0));return`g-ui-progress-${Math.round(p/5)*5}`}],[r,g=>g?`g-ui-progress-${g}`:""],n)},er({className:"g-ui-progress-bar"}))}import{Div as Be,after as yi,state as Oo,when as qo}from"@granularjs/core";function Yo(...e){let{props:i,rawProps:t}=s(e,{size:"md",min:0,max:100,step:1}),{onChange:r}=t,{value:a,marks:n,size:u,min:g,max:p,step:h,disabled:m,className:b,...x}=i,d=Oo(l(a??g));yi(a).change(z=>{z!=null&&d.set(l(z))});let y=()=>{let z=Number(l(g)),w=Number(l(p));return!Number.isFinite(z)||!Number.isFinite(w)?{minValue:0,maxValue:100}:{minValue:Math.min(z,w),maxValue:Math.max(z,w)}},P=()=>{let z=Number(l(h));return Number.isFinite(z)&&z>0?z:1},A=z=>{let{minValue:w,maxValue:v}=y(),f=P(),C=Math.max(w,Math.min(v,Number(z))),V=Math.round((C-w)/f)*f+w;V!==d.get()&&(d.set(V),r?.(V))},$=yi(d).compute(z=>{let{minValue:w,maxValue:v}=y(),f=v-w;if(f<=0)return 0;let C=(Number(z??w)-w)/f*100;return Math.max(0,Math.min(100,C))}),S=(z,w)=>{let v=w?.();if(!v||v.width===0)return;let C=Math.min(Math.max(z.clientX-v.left,0),v.width)/v.width,{minValue:V,maxValue:I}=y();A(V+C*(I-V))},F=z=>{if(ve(m))return;z.preventDefault?.();let w=z.currentTarget,v=()=>w.getBoundingClientRect();w.setPointerCapture?.(z.pointerId),S(z,v);let f=V=>S(V,v),C=()=>{w.releasePointerCapture?.(z.pointerId),window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",C)};window.addEventListener("pointermove",f),window.addEventListener("pointerup",C)};return Be({...x,className:o("g-ui-slider",k("g-ui-slider-size-",u,"md"),W("g-ui-slider-disabled",m),b)},Be({className:"g-ui-slider-track",onPointerDown:F},Be({className:"g-ui-slider-bar",style:yi($).compute(z=>({width:`${z}%`}))}),Be({className:"g-ui-slider-thumb",style:yi($).compute(z=>({left:`${z}%`}))})),qo(n,()=>Be({className:"g-ui-slider-marks"},n.map(z=>nt({mark:z,getBounds:y})))))}var nt=({mark:e,getBounds:i})=>{let{minValue:t,maxValue:r}=i(),a=r-t,n=e.value??e,u=e.label??String(e.value)??n,g=Number(n),p=0;return a>0&&(p=(g-t)/a*100),Be({className:"g-ui-slider-mark",style:{left:`${Math.max(0,Math.min(100,p))}%`}},Be({className:"g-ui-slider-mark-label"},u))};import{Div as Wo,after as Go}from"@granularjs/core";function Zo(...e){let{props:i}=s(e,{height:"md",width:"full"}),{height:t,width:r,className:a,...n}=i,u=Go(t,r).compute(([g,p])=>{let h={};return isNaN(g)||(h.height=`${g}px`),isNaN(p)||(h.width=`${p}px`),h});return Wo({...n,style:{width:u.width,height:u.height,...n.style||{}},className:o("g-ui-skeleton",[t,g=>`g-ui-skeleton-h-${g}`],[r,g=>`g-ui-skeleton-w-${g}`],a)})}import{Button as Uo,after as ir,state as Xo}from"@granularjs/core";function _o(...e){let{props:i,rawProps:t,children:r}=s(e,{size:"md",variant:"filled"}),{checked:a,size:n,variant:u,className:g,...p}=i,{onChange:h}=t,m=Xo(!!a);ir(a).change(x=>{x!=null&&m.set(!!x)});let b=x=>{m.set(x),h?.(x)};return Uo({...p,type:"button",className:o("g-ui-chip",k("g-ui-chip-size-",n,"md"),k("g-ui-chip-variant-",u,"filled"),ir(m).compute(x=>x?"g-ui-chip-active":""),g),onClick:()=>b(!m.get())},r)}import{Div as st,after as tr,state as Ko}from"@granularjs/core";function Qo(...e){let{props:i,rawProps:t}=s(e,{data:[],size:"sm"}),{value:r,data:a,size:n,scroll:u,className:g,...p}=i,{onChange:h}=t,m=Ko(l(r));tr(r).change(x=>{let d=l(x);d!=null&&m.set(d)});let b=x=>{m.set(x),h?.(x)};return st({...p,className:o(u&&"g-ui-segmented-scroll")},st({className:o("g-ui-segmented",k("g-ui-segmented-size-",n,"sm"),i.className??g)},a.map(x=>st({className:o("g-ui-segmented-item",tr(m).compute(d=>x.value===d?"g-ui-segmented-active":"")),onClick:()=>b(x.value)},x.label))))}import{Button as ut,Div as Jo,state as en,after as ki}from"@granularjs/core";function tn(...e){let{props:i,rawProps:t}=s(e,{total:1,size:"md"}),{page:r,total:a,size:n,className:u,...g}=i,{onChange:p}=t,h=en(l(r??1));ki(r).change(d=>{let y=l(d);y!=null&&h.set(y)});let m=d=>{let y=Number(l(a))||1,P=Math.max(1,Math.min(y,d));h.set(P),p?.(P)},b=[],x=Number(l(a))||1;for(let d=1;d<=x;d+=1)b.push(d);return Jo({...g,className:o("g-ui-pagination",k("g-ui-pagination-size-",n,"md"),i.className??u)},ut({className:"g-ui-pagination-item",onClick:()=>m((h.get?.()??h)-1),disabled:ki(h).compute(d=>d<=1)},"<"),b.map(d=>ut({className:ki(h).compute(y=>o("g-ui-pagination-item",d===y&&"g-ui-pagination-item-active")),onClick:()=>m(d)},String(d))),ut({className:"g-ui-pagination-item",onClick:()=>m((h.get?.()??h)+1),disabled:ki(h).compute(d=>d>=a)},">"))}import{Div as rn,Input as an,Label as on,Span as rr,when as ar}from"@granularjs/core";function nn(...e){let{props:i}=s(e,{size:"md"}),{label:t,description:r,size:a,className:n,inputProps:u,...g}=i,p=on({className:"g-ui-radio-control"},an({type:"radio",className:o("g-ui-radio-input",k("g-ui-radio-size-",a,"md"),u?.className),...g}),ar(t,()=>rr({className:"g-ui-radio-label"},t)));return rn({className:o("g-ui-radio",k("g-ui-radio-size-",a,"md"),n)},p,ar(r,()=>rr({className:"g-ui-radio-description"},r)))}import{Div as sn}from"@granularjs/core";function un(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return sn({...a,className:o("g-ui-stack g-ui-gap-sm",r)},t)}import{Nav as gn,Span as ln}from"@granularjs/core";function cn(...e){let{props:i,children:t}=s(e,{separator:"/"}),{separator:r,className:a,...n}=i,u=[];Array.isArray(t)?u.push(...t):u.push(t);let g=u.filter(Boolean),p=[];return g.forEach((h,m)=>{p.push(h),m<g.length-1&&p.push(ln({className:"g-ui-breadcrumbs-separator"},r))}),gn({...n,className:o("g-ui-breadcrumbs",a)},p)}import{Div as pn}from"@granularjs/core";function dn(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return pn({...a,className:o("g-ui-center",r)},t)}import{Div as mn}from"@granularjs/core";function fn(...e){let{props:i}=s(e,{size:"md"}),{size:t,className:r,...a}=i;return mn({...a,className:o("g-ui-space",[t,n=>`g-ui-space-${n}`],r)})}import{Div as hn,when as xn}from"@granularjs/core";function vn(...e){let{props:i,children:t}=s(e),{opened:r,className:a,...n}=i;return xn(r,()=>hn({...n,className:o("g-ui-collapse",a)},t))}import{Button as bn}from"@granularjs/core";function Ae(...e){let{props:i,children:t}=s(e,{size:"md",variant:"filled"}),{size:r,variant:a,className:n,...u}=i;return bn({...u,type:"button",className:o("g-ui-action-icon",k("g-ui-action-icon-size-",r,"md"),k("g-ui-action-icon-",a,"filled"),n)},t)}import{Div as gt,when as wn,after as yn,state as kn}from"@granularjs/core";function lt(...e){let{props:i,rawProps:t,children:r}=s(e,{position:"left"}),{opened:a,position:n,content:u,className:g,...p}=i,{onChange:h}=t,m=kn(l(a)??!1);yn(a).change(x=>{let d=l(x);d!=null&&m.set(!!d)});let b=x=>{m.set(x),h?.(x)};return gt({...p,className:o("g-ui-popover",i.className??g)},gt({onClick:()=>b(!m.get())},r),wn(m,()=>gt({className:o("g-ui-popover-dropdown",n==="right"&&"g-ui-popover-right",n==="center"&&"g-ui-popover-center")},u)))}import{Div as or}from"@granularjs/core";function zn(...e){let{props:i,children:t}=s(e,{position:"left"}),{position:r,content:a,className:n,...u}=i;return or({...u,className:o("g-ui-hover-card",n)},t,or({className:o("g-ui-hover-card-dropdown",[r,g=>g==="right"?"g-ui-hover-card-right":""],[r,g=>g==="center"?"g-ui-hover-card-center":""])},a))}import{Div as Nn}from"@granularjs/core";function Cn(...e){let{props:i,children:t}=s(e,{position:"bottom-right"}),{position:r,className:a,...n}=i;return Nn({...n,className:o("g-ui-affix",[r,u=>`g-ui-affix-${u}`],a)},t)}import{Fieldset as Sn,Legend as Dn,when as Pn}from"@granularjs/core";function Mn(...e){let{props:i,children:t}=s(e),{legend:r,className:a,...n}=i;return Sn({...n,className:o("g-ui-fieldset",a)},Pn(r,()=>Dn({className:"g-ui-legend"},r)),t)}import{Div as Tn}from"@granularjs/core";function Vn(...e){let{props:i,children:t}=s(e,{position:"sticky"}),{position:r,className:a,...n}=i;return Tn({...n,className:o("g-ui-appbar",k("g-ui-appbar-",r,"sticky"),a)},t)}import{Div as ct,portal as Ln,after as zi,state as nr,when as sr}from"@granularjs/core";function $n(...e){let{props:i,children:t}=s(e,{position:"left",size:"md",blur:!0,fixed:!1,minWidth:"button"});return sr(i.fixed,()=>Bn(i,t),()=>In(i,t))}var In=(e,i)=>{let{open:t,onClose:r,position:a,size:n,blur:u,fixed:g,minWidth:p,className:h,...m}=e,b=nr(!1),x=nr(!1),d=220,y=$=>{if($){b.set(!0),typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>x.set(!0)):setTimeout(()=>x.set(!0),0);return}x.set(!1),setTimeout(()=>b.set(!1),d)};y(!!t.get()),zi(t).change($=>y(!!$));let P=zi(x,u).compute($=>{let[S,F]=$;return o("g-ui-sidebar-overlay",S&&"g-ui-sidebar-overlay-open",!F&&"g-ui-sidebar-overlay-noblur")}),A=zi(n,a,x,h).compute($=>{let[S,F,z,w]=$,v=F==="right"?"g-ui-sidebar-drawer-right g-ui-sidebar-position-right":"g-ui-sidebar-drawer-left";return o("g-ui-sidebar","g-ui-sidebar-drawer",`g-ui-sidebar-size-${S}`,v,z&&"g-ui-sidebar-drawer-open",l(w))});return sr(b,()=>Ln(ct({className:P,onClick:r},ct({className:A,onClick:$=>$.stopPropagation()},i))))},Bn=(e,i)=>{let{open:t,position:r,size:a,minWidth:n,className:u,...g}=e,p=zi(a,r,t,n,u).compute(h=>{let[m,b,x,d,y]=h,P=d||"button",A=null;return P==="button"?A="g-ui-sidebar-min-button":P==="xs"?A="g-ui-sidebar-min-xs":P==="sm"?A="g-ui-sidebar-min-sm":P==="md"&&(A="g-ui-sidebar-min-md"),o("g-ui-sidebar g-ui-sidebar-fixed",`g-ui-sidebar-size-${m||"md"}`,A,x&&"g-ui-sidebar-fixed-open",y)});return ct({...g,className:p},i)};import{Div as Oe,when as ur}from"@granularjs/core";function An(...e){let{props:i}=s(e,{items:[]}),{items:t,className:r,...a}=i;return Oe({...a,className:o("g-ui-timeline",r)},t.map(n=>Oe({className:"g-ui-timeline-item"},Oe({className:"g-ui-timeline-dot"}),Oe({className:"g-ui-timeline-content"},ur(n.title,()=>Oe({className:"g-ui-timeline-title"},n.title)),ur(n.description,()=>Oe({className:"g-ui-timeline-desc"},n.description)),n.content))))}import{Div as Ni}from"@granularjs/core";function Fn(...e){let{props:i}=s(e,{active:0,items:[]}),{active:t,items:r,className:a,...n}=i;return Ni({...n,className:o("g-ui-stepper",a)},r.map((u,g)=>Ni({className:o("g-ui-stepper-item",[t,p=>g===p?"g-ui-stepper-active":""])},Ni({className:"g-ui-stepper-index"},String(g+1)),Ni({className:"g-ui-stepper-label"},u.label))))}import{Span as gr,after as lr,state as jn}from"@granularjs/core";function En(...e){let{props:i,rawProps:t}=s(e,{value:0,max:5,size:"md"}),{value:r,max:a,size:n,className:u,...g}=i,{onChange:p}=t,h=jn(l(r));lr(r).change(d=>{let y=l(d);y!=null&&h.set(y)});let m=d=>{h.set(d),p?.(d)},b=[],x=Number(l(a))||0;for(let d=1;d<=x;d+=1)b.push(d);return gr({...g,className:o("g-ui-rating",k("g-ui-rating-size-",n,"md"),i.className??u)},b.map(d=>gr({className:o("g-ui-rating-item",lr(h).compute(y=>d<=y?"g-ui-rating-item-active":"")),onClick:()=>m(d)},"\u2605")))}import{Span as Rn}from"@granularjs/core";function Hn(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Rn({...a,className:o("g-ui-tag",r)},t)}import{Button as cr,Div as qe,state as pr,after as Ci}from"@granularjs/core";var On=["S","M","T","W","T","F","S"];function ii(...e){let{props:i,rawProps:t}=s(e,{size:"md"}),{value:r,className:a,size:n,...u}=i,{onChange:g}=t,p=S=>{let F=l(S);if(F instanceof Date)return F;if(F==null)return null;let z=new Date(F);return Number.isNaN(z.getTime())?null:z},h=pr(p(r)??new Date),m=pr(new Date(h.get()));Ci(r).change(S=>{let F=p(S);F!=null&&(h.set(F),m.set(new Date(F)))});let b=(S,F,z)=>{let w=new Date(S,F+1,0).getDate();return new Date(S,F,Math.min(z,w))},x=S=>{let F=m.get(),z=b(F.getFullYear(),F.getMonth(),S);h.set(z),m.set(z),g?.(z)},d=S=>{let F=m.get(),z=b(F.getFullYear(),F.getMonth()+S,F.getDate());m.set(z)},y=S=>{let F=m.get(),z=b(F.getFullYear()+S,F.getMonth(),F.getDate());m.set(z)},P=Ci(m).compute(S=>S.toLocaleString("default",{month:"long"})),A=Ci(m).compute(S=>String(S.getFullYear())),$=Ci(m,h).compute(([S,F])=>{let z=S.getFullYear(),w=S.getMonth(),f=new Date(z,w,1).getDay(),C=new Date(z,w+1,0).getDate(),V=[];for(let I=0;I<f;I+=1)V.push({muted:!0,label:""});for(let I=1;I<=C;I+=1)V.push({label:I});return[...On.map(I=>qe({className:"g-ui-calendar-cell g-ui-calendar-cell-muted"},I)),...V.map(I=>qe({className:o("g-ui-calendar-cell",I.muted&&"g-ui-calendar-cell-muted",I.label&&F.getFullYear()===z&&F.getMonth()===w&&I.label===F.getDate()&&"g-ui-calendar-cell-active"),onClick:()=>I.label&&x(I.label)},I.label))]});return qe({...u,className:o("g-ui-calendar",a,k("g-ui-calendar-size-",n,"md"))},qe({className:"g-ui-calendar-header"},Ae({size:"xs",variant:"subtle",className:"g-ui-calendar-nav",onClick:()=>d(-1)},ye({size:"sm",className:"g-ui-calendar-nav-icon",innerHTML:mi})),qe({className:"g-ui-calendar-title-group"},cr({type:"button",className:"g-ui-calendar-title-button",onClick:()=>d(1)},P),cr({type:"button",className:"g-ui-calendar-title-button",onClick:()=>y(1)},A)),Ae({size:"xs",variant:"subtle",className:"g-ui-calendar-nav",onClick:()=>d(1)},ye({size:"sm",className:"g-ui-calendar-nav-icon",innerHTML:di}))),qe({className:"g-ui-calendar-grid"},$))}import{Div as ti,Span as Ye,Input as qn,when as pt,after as ke,state as Si}from"@granularjs/core";function Yn(...e){let{props:i,rawProps:t}=s(e,{data:[],size:"md",searchable:!0}),{value:r,data:a,size:n,className:u,placeholder:g,searchable:p,...h}=i,{onChange:m,onSearchChange:b}=t,x=Si(l(r)??[]),d=Si(""),y=Si(!1),P=Si(null),A=f=>(l(f)??[]).map(V=>typeof V=="string"?{value:V,label:V}:V&&typeof V=="object"?V:{value:String(V),label:String(V)});ke(r).change(f=>{let C=l(f);C!=null&&x.set(C)});let $=null;ke(y).change(f=>{if($&&($(),$=null),!f)return;let C=V=>{let I=P.get();I&&(I.contains(V.target)||y.set(!1))};document.addEventListener("mousedown",C),$=()=>document.removeEventListener("mousedown",C)}),ke(d).change(f=>{b?.(f)});let S=f=>{let C=x.get()??[],V=C.includes(f)?C.filter(I=>I!==f):C.concat(f);x.set(V),m?.(V)},F=ke(a).compute(f=>A(f)),z=ke(F,d).compute(([f,C])=>{let V=String(l(C)??"").toLowerCase().trim();return V?f.filter(I=>String(I.label??"").toLowerCase().includes(V)):f}),w=ke(x,d).compute(([f,C])=>{let V=l(f)??[],I=String(l(C)??"");return!V.length&&!I}),v=ke(p).compute(f=>!!f);return ti({...h,node:P,className:o("g-ui-select-multi-root",u)},ti({className:o("g-ui-select-multi",k("g-ui-select-multi-size-",n,"md")),onClick:()=>y.set(!0)},ke(F,x).compute(([f,C])=>(l(C)??[]).map(I=>{let re=(f??[]).find(K=>K.value===I)?.label??I;return Ye({className:"g-ui-select-tag"},Ye({className:"g-ui-select-tag-label",onClick:K=>{K?.stopPropagation?.()}},re),Ye({className:"g-ui-select-tag-remove",innerHTML:Ee,onClick:K=>{K?.stopPropagation?.(),S(I)}}))})),pt(w,()=>Ye({className:"g-ui-select-multi-placeholder"},g??"Select...")),pt(v,()=>qn({className:"g-ui-select-multi-input",value:d,onInput:f=>d.set(f.target?.value??""),onFocus:()=>y.set(!0)}))),pt(y,()=>ti({className:"g-ui-select-dropdown"},ke(z).compute(f=>f.length?f.map(C=>ti({className:o("g-ui-select-item",C.disabled&&"g-ui-select-item-disabled",ke(x).compute(V=>(l(V)??[]).includes(C.value)?"g-ui-select-item-active":"")),onClick:()=>{C.disabled||S(C.value)}},Ye({className:"g-ui-select-item-check",innerHTML:ke(x).compute(V=>(l(V)??[]).includes(C.value)?fi:"")}),Ye({className:"g-ui-select-item-label"},C.label))):ti({className:"g-ui-select-item"},"Nothing found")))))}import{Div as ri,when as dr}from"@granularjs/core";function Wn(...e){let{props:i}=s(e,{items:[]}),{items:t,className:r,onClose:a,timeout:n,...u}=i;return ri({...u,className:o("g-ui-toast-stack",r)},t.map(g=>ri({className:o("g-ui-toast",[n,"g-ui-toast-auto"])},ri({className:"g-ui-toast-row"},dr(g.title,()=>ri({className:"g-ui-toast-title"},g.title)),dr(a,()=>ri({className:"g-ui-toast-close",onClick:()=>a(g)},"\xD7"))),g.message)))}function Gn(...e){let{props:i}=s(e);return ii(i)}import{Div as Zn,after as Un}from"@granularjs/core";function Xn(...e){let{props:i,rawProps:t}=s(e,{items:[],position:"top-right"}),{items:r,position:a,className:n,...u}=i,{onRemove:g}=t,p=new Map,h=(b,x)=>b?.id??b?.key??x,m=Un(r).compute(b=>{let x=l(b)??[],d=new Set;x.forEach((y,P)=>{let A=h(y,P);if(d.add(A),y?.autoClose&&!p.has(A)){let $=setTimeout(()=>{p.delete(A),g?.(y)},y.autoClose);p.set(A,$)}});for(let[y,P]of p.entries())d.has(y)||(clearTimeout(P),p.delete(y));return x.map((y,P)=>et({key:h(y,P),title:y.title,color:y.color,icon:y.icon,loading:y.loading,withCloseButton:y.withCloseButton,withBorder:y.withBorder,onClose:()=>{y.onClose?.(),g?.(y)}},y.message??y.body??y.content??y.text))});return Zn({...u,className:o("g-ui-notifications",k("g-ui-notifications-position-",a,"top-right"),n)},m)}import{Div as We,after as ai,state as _n,when as Kn}from"@granularjs/core";function Qn(...e){let{props:i,rawProps:t}=s(e,{min:0,max:100,step:1,size:"md"}),{value:r,marks:a,min:n,max:u,step:g,size:p,disabled:h,className:m,...b}=i,{onChange:x}=t,d=_n(l(r??[n,u])),y=()=>{let w=Number(l(n)),v=Number(l(u));return!Number.isFinite(w)||!Number.isFinite(v)?{minValue:0,maxValue:100}:{minValue:Math.min(w,v),maxValue:Math.max(w,v)}},P=()=>{let w=Number(l(g));return Number.isFinite(w)&&w>0?w:1},A=w=>{let{minValue:v,maxValue:f}=y(),C=P(),V=[v,f];Array.isArray(w)&&(V=w);let I=Math.max(v,Math.min(f,Number(V[0]))),X=Math.max(v,Math.min(f,Number(V[1]))),re=Math.round(Math.min(I,X)/C)*C,K=Math.round(Math.max(I,X)/C)*C;return[re,K]};ai(r).change(w=>{w!=null&&d.set(A(w))});let $=w=>{let v=A(w);v?.[0]===d.get()?.[0]&&v?.[1]===d.get()?.[1]||(d.set(v),x?.(v))},S=ai(d).compute(w=>{let{minValue:v,maxValue:f}=y(),C=f-v,[V,I]=A(w);if(C<=0)return{lowPct:0,highPct:0};let X=(V-v)/C*100,re=(I-v)/C*100;return{lowPct:Math.max(0,Math.min(100,X)),highPct:Math.max(0,Math.min(100,re))}}),F=(w,v,f)=>{let C=v?.();if(!C||C.width===0)return;let I=Math.min(Math.max(w.clientX-C.left,0),C.width)/C.width,{minValue:X,maxValue:re}=y(),K=X+I*(re-X),ue=d;typeof d.get=="function"&&(ue=d.get());let[te,oe]=A(ue);$(f==="low"?[K,oe]:[te,K])},z=(w,v,f)=>{if(ve(h))return;w.preventDefault?.();let C=f||w.currentTarget,V=()=>C.getBoundingClientRect(),I=V(),X=S;typeof S.get=="function"&&(X=S.get());let{lowPct:re,highPct:K}=X,ue=(w.clientX-I.left)/I.width*100,te=v;if(!te){let ie=Math.abs(ue-re)<=Math.abs(ue-K);te="high",ie&&(te="low")}C.setPointerCapture?.(w.pointerId),F(w,V,te);let oe=ie=>F(ie,V,te),de=()=>{C.releasePointerCapture?.(w.pointerId),window.removeEventListener("pointermove",oe),window.removeEventListener("pointerup",de)};window.addEventListener("pointermove",oe),window.addEventListener("pointerup",de)};return We({...b,className:o("g-ui-range-slider",k("g-ui-slider-size-",p,"md"),W("g-ui-slider-disabled",h),i.className??m)},We({className:"g-ui-slider-track",onPointerDown:w=>z(w)},We({className:"g-ui-slider-bar",style:ai(S).compute(({lowPct:w,highPct:v})=>({left:`${w}%`,width:`${Math.max(0,v-w)}%`}))}),We({className:"g-ui-slider-thumb",style:ai(S).compute(({lowPct:w})=>({left:`${w}%`})),onPointerDown:w=>{w.stopPropagation?.(),z(w,"low",w.currentTarget.parentElement)}}),We({className:"g-ui-slider-thumb",style:ai(S).compute(({highPct:w})=>({left:`${w}%`})),onPointerDown:w=>{w.stopPropagation?.(),z(w,"high",w.currentTarget.parentElement)}})),Kn(a,()=>We({className:"g-ui-slider-marks"},a.map(w=>nt({mark:w,getBounds:y})))))}import{state as dt,after as mr}from"@granularjs/core";function Jn(...e){let{props:i,rawProps:t}=s(e,{size:"md",format:{pattern:"dddd-dd-dd"}}),{value:r,size:a,calendarSize:n,leftSection:u,rightSection:g,className:p,format:h,minDate:m,maxDate:b,...x}=i,{onChange:d}=t,y=v=>{let f=l(v);if(f instanceof Date)return f;if(f==null||f==="")return null;let C=new Date(f);return Number.isNaN(C.getTime())?null:C},P=(v,f)=>v&&f&&v.getFullYear()===f.getFullYear()&&v.getMonth()===f.getMonth()&&v.getDate()===f.getDate(),A=v=>{if(!v)return"";let f=String(v.getFullYear()).padStart(4,"0"),C=String(v.getMonth()+1).padStart(2,"0"),V=String(v.getDate()).padStart(2,"0");return`${f}-${C}-${V}`},$=v=>{let f=String(v??"").replace(/\D/g,"");if(f.length<8)return null;let C=Number(f.slice(0,4)),V=Number(f.slice(4,6)),I=Number(f.slice(6,8));if(!C||!V||!I)return null;let X=new Date(C,V-1,I);if(X.getFullYear()!==C||X.getMonth()!==V-1||X.getDate()!==I)return null;let re=y(m);if(re&&X<re)return null;let K=y(b);return K&&X>K?null:X},S=dt(y(r)),F=dt(A(S.get())),z=dt(!1);mr(r).change(v=>{if(r.get()==v)return;let f=y(v);if(f==null){S.set(null),F.set("");return}S.set(f),F.set(A(f))}),mr(F).change(v=>{let f=$(v);console.log("parsed",f),console.log("currentDate",S.get()),f&&(P(f,S.get())||(S.set(f),d?.(f)))});let w=v=>{v&&(P(v,S.get())||(S.set(v),F.set(A(v)),d?.(v),z.set(!1)))};return lt({opened:z,onChange:v=>z.set(!!v),content:ii({size:k("",n,"xs"),value:S,onChange:w}),className:"g-ui-date-input-popover"},ge({...x,size:a,className:o("g-ui-dateinput",p),leftSection:u,rightSection:g,type:"text",inputMode:"numeric",format:h,value:F,onChange:v=>F.set(v)}))}import{Div as mt,when as es,after as is,state as ts}from"@granularjs/core";function rs(...e){let{props:i,rawProps:t,children:r}=s(e),{opened:a,content:n,className:u,...g}=i,{onChange:p}=t,h=ts(l(a)??!1);is(a).change(b=>{let x=l(b);x!=null&&h.set(!!x)});let m=b=>{h.set(b),p?.(b)};return mt({...g,className:o("g-ui-popper",u)},mt({onClick:()=>m(!h.get())},r),es(h,()=>mt({className:"g-ui-popper-dropdown"},n)))}import{Button as as,after as fr,when as os,state as ns}from"@granularjs/core";function ss(...e){let{props:i,rawProps:t}=s(e,{size:"md"}),{size:r,className:a,rightSection:n,...u}=i,{onChange:g}=t,p=ns(!1),h=fr(p).compute(b=>b?"text":"password"),m=fr(n).compute(b=>b??as({className:"g-ui-password-toggle",onClick:()=>p.set(!p.get())},os(p,()=>"Hide",()=>"Show")));return ge({...u,size:r,className:a,onChange:g,rightSection:m,type:h})}import{Div as us}from"@granularjs/core";function gs(...e){let{props:i}=s(e,{size:"md"}),{size:t,className:r,...a}=i;return ge({...a,size:t,className:r,leftSection:us({className:"g-ui-search-input-left-section",innerHTML:At}),type:"text",inputMode:"search"})}import{Button as ls,after as cs,when as hr}from"@granularjs/core";import{state as ps}from"@granularjs/core";function ds(...e){let{props:i,children:t}=s(e,{value:"",timeout:1500}),{value:r,timeout:a,className:n,...u}=i,g=ps(!1),p=cs(g).compute(m=>o("g-ui-copy-button",m&&"g-ui-copy-button-done",n));return ls({...u,className:p,onClick:async()=>{try{await navigator.clipboard.writeText(String(r)),g.set(!0),setTimeout(()=>g.set(!1),a)}catch{}},type:"button"},hr(t?.length,()=>t,()=>hr(g,()=>"Copied",()=>"Copy")))}import{Div as ms}from"@granularjs/core";function fs(...e){let{props:i}=s(e,{size:"md"}),{size:t,className:r,...a}=i;return ms({...a,className:o("g-ui-progress-ring",[t,n=>`g-ui-progress-ring-size-${n}`],r)})}import{Div as ft,Button as hs,when as xr}from"@granularjs/core";function xs(...e){let{props:i,children:t}=s(e),{title:r,onClose:a,className:n,...u}=i;return ft({...u,className:o("g-ui-toast",n)},ft({className:"g-ui-toast-row"},xr(r,()=>ft({className:"g-ui-toast-title"},r)),xr(a,()=>hs({className:"g-ui-toast-close",onClick:a},"\xD7"))),t)}import{Div as ht}from"@granularjs/core";import{state as vs}from"@granularjs/core";function bs(...e){let{props:i,rawProps:t}=s(e,{data:[]}),{data:r,className:a,...n}=i,{onChange:u}=t,g=vs(""),p=r.filter(h=>String(h.label||"").toLowerCase().includes(String(g.get()).toLowerCase()));return ht({...n,className:o("g-ui-select-search",a)},ge({inputClassName:"g-ui-select-search-input",placeholder:"Search...",value:g,onInput:h=>g.set(h?.target?.value??"")}),ht({className:"g-ui-select-search-list"},p.map(h=>ht({className:"g-ui-select-search-item",onClick:()=>u?.(h.value)},h.label))))}import{Div as ws}from"@granularjs/core";function ys(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return ws({...a,className:o("g-ui-switch-group",r)},t)}import{Div as ks,state as zs,after as xt}from"@granularjs/core";function Ns(...e){let{props:i,rawProps:t}=s(e,{size:"md"}),{value:r,size:a,className:n,...u}=i,{onChange:g}=t,p=zs(l(r)??["",""]);xt(r).change(m=>{let b=l(m);b!=null&&p.set(b)});let h=m=>{p.set(m),g?.(m)};return ks({...u,className:o("g-ui-range-picker",i.className??n)},ge({size:a,type:"text",inputMode:"numeric",value:xt(p).compute(m=>m?.[0]??""),onInput:m=>{let b=p.get()??["",""];h([m.target.value,b[1]])}}),ge({size:a,type:"text",inputMode:"numeric",value:xt(p).compute(m=>m?.[1]??""),onInput:m=>{let b=p.get()??["",""];h([b[0],m.target.value])}}))}import{Div as Cs}from"@granularjs/core";function Ss(...e){let{props:i,children:t}=s(e,{align:"center",direction:"row"}),{direction:r,wrap:a,align:n,justify:u,gap:g,className:p,...h}=i;return Cs({...h,className:o("g-ui-flex",[r,m=>m==="column"?"g-ui-flex-column":"g-ui-flex-row"],[a,"g-ui-flex-wrap"],[n,m=>m&&`g-ui-align-${m}`],[u,m=>m&&`g-ui-justify-${m}`],[g,m=>m&&`g-ui-gap-${m}`],p)},t)}import{A as Ds,Div as oi,Span as vr,when as ni,after as br,state as Ps}from"@granularjs/core";function Ms(...e){let{props:i,rawProps:t,children:r}=s(e,{variant:"subtle",childrenOffset:24}),{label:a,description:n,leftSection:u,rightSection:g,active:p,disabled:h,variant:m,childrenOffset:b,opened:x,defaultOpened:d,className:y,padding:P,...A}=i,{onClick:$,onChange:S}=t,F=r.length>0,z=Ps(l(x)??l(d)??!1);br(x).change(f=>{let C=l(f);C!=null&&z.set(!!C)});let w=br(b).compute(f=>({paddingLeft:Tt(l(f??24))??"24px"})),v=f=>{if(l(h)){f?.preventDefault?.();return}if(F){let C=!z.get();z.set(C),S?.(C)}$?.(f)};return oi({className:o("g-ui-navlink-root",y)},Ds({...A,className:o("g-ui-navlink",k("g-ui-navlink-variant-",m,"subtle"),W("g-ui-navlink-active",p),W("g-ui-navlink-disabled",h),k("g-ui-navlink-padding-",P,"md")),onClick:v},ni(u,()=>vr({className:"g-ui-navlink-section g-ui-navlink-left"},u)),oi({className:"g-ui-navlink-body"},ni(a,()=>oi({className:"g-ui-navlink-label"},a)),ni(n,()=>oi({className:"g-ui-navlink-description"},n))),ni(g,()=>vr({className:"g-ui-navlink-section g-ui-navlink-right"},g))),F?ni(z,()=>oi({className:"g-ui-navlink-children",style:w},r)):null)}import{Div as wr,when as Ts}from"@granularjs/core";function Vs(...e){let{props:i,children:t}=s(e,{show:!0,position:"top-right",color:"danger",size:"md"}),{show:r,position:a,color:n,size:u,className:g,...p}=i;return wr({...p,className:o("g-ui-indicator",k("g-ui-indicator-position-",a,"top-right"),k("g-ui-indicator-color-",n,"danger"),k("g-ui-indicator-size-",u,"md"),g)},t,Ts(r,()=>wr({className:"g-ui-indicator-badge"})))}import{Span as Di}from"@granularjs/core";function Ls(...e){let{props:i}=s(e),{opened:t,className:r,...a}=i;return Di({...a,className:o("g-ui-burger",[t,"g-ui-burger-open"],r)},Di(""),Di(""),Di(""))}import{Div as $s,when as Is}from"@granularjs/core";function Bs(...e){let{props:i}=s(e),{visible:t,...r}=i;return Is(t,()=>$s({...r,className:"g-ui-loading-overlay"},Ke({})))}import{Div as As}from"@granularjs/core";function Fs(...e){let{props:i,children:t}=s(e,{gap:"md"}),{className:r,gap:a,...n}=i;return As({...n,className:o("g-ui-grid-system",[a,u=>`g-ui-gap-${u}`],r)},t)}import{Div as js}from"@granularjs/core";function Es(...e){let{props:i,children:t}=s(e,{span:12}),{span:r,className:a,...n}=i;return js({...n,className:o([r,u=>`g-ui-col-span-${u}`],a)},t)}import{Div as Rs}from"@granularjs/core";function Hs(...e){let{props:i,children:t}=s(e,{size:"md"}),{size:r,className:a,...n}=i;return Rs({...n,className:o("g-ui-scroll-area",[r,u=>`g-ui-scroll-area-${u}`],a)},t)}import{Div as yr,Input as Os,after as Me,state as vt,when as kr,list as qs}from"@granularjs/core";function Ys(...e){let{props:i,rawProps:t}=s(e,{length:4,size:"md",type:"alphanumeric",mask:!1,placeholder:"\u25CB",disabled:!1,error:!1,oneTimeCode:!1}),{length:r,value:a,size:n,type:u,mask:g,placeholder:p,disabled:h,error:m,oneTimeCode:b,className:x}=i,{onChange:d,onComplete:y}=t,P=vt(l(r)??4),A=()=>P.get();Me(r).change(T=>{let R=l(T)??4,N=P.get();if(R===N)return;P.set(R);let G=S.get(),H=$.get();S.set(Array.from({length:R},(ne,se)=>G[se]??"")),$.set(Array.from({length:R},(ne,se)=>H[se]??null))});let $=vt(Array.from({length:A()},()=>null)),S=vt(Array.from({length:A()},(T,R)=>{let N=l(a);return typeof N=="string"||Array.isArray(N)?N[R]??"":""}));Me(a).change(T=>{if(T==null)return;let R=A();typeof T=="string"?S.set(Array.from({length:R},(N,G)=>T[G]??"")):Array.isArray(T)&&S.set(Array.from({length:R},(N,G)=>T[G]??""))});let F=()=>S.get().join(""),z=T=>{S.set(T);let R=T.join("");d?.(R),T.every(N=>N!=="")&&T.length===A()&&y?.(R)},w=T=>{let R=A(),N=$.get();T>=0&&T<R&&N[T]&&(N[T].focus(),N[T].select())},v=()=>{let T=l(u);return T==="number"?/^[0-9]$/:T instanceof RegExp?T:/^[a-zA-Z0-9]$/},f=(T,R)=>{let N=R.target.value,G=v();if(N.length>1){C(T,N);return}if(N&&!G.test(N)){R.target.value=S.get()[T]??"";return}let H=S.get().slice();H[T]=N,z(H),N&&T<A()-1&&w(T+1)},C=(T,R)=>{let N=v(),G=R.split("").filter(xe=>N.test(xe)),H=S.get().slice(),ne=A();G.forEach((xe,ze)=>{let Se=T+ze;Se<ne&&(H[Se]=xe)}),z(H);let se=H.findIndex((xe,ze)=>ze>=T&&xe==="");se>=0?w(se):w(Math.min(T+G.length,ne-1))},V=(T,R)=>{if(R.key==="Backspace"){let N=S.get().slice();N[T]===""&&T>0?(R.preventDefault(),N[T-1]="",z(N),w(T-1)):N[T]!==""&&(N[T]="",z(N))}else R.key==="ArrowLeft"&&T>0?(R.preventDefault(),w(T-1)):R.key==="ArrowRight"&&T<A()-1&&(R.preventDefault(),w(T+1))},I=(T,R)=>{R.target.select()},X=()=>{let T=S.get(),R=T.findIndex(N=>N==="");R>=0?w(R):w(T.length-1)},re=Me(g).compute(T=>l(T)?"password":"text"),K=Me(u).compute(T=>l(T)==="number"?"numeric":"text"),ue=Me(b).compute(T=>l(T)?"one-time-code":"off"),te=Me(h).compute(T=>!!l(T)),oe=Me(m).compute(T=>!!l(T)),de=Me(P).compute(T=>Array.from({length:T},(R,N)=>N)),ie=T=>Os({className:o("g-ui-pin-input-field",kr(oe,()=>"g-ui-pin-input-error")),type:re,inputMode:K,autocomplete:ue,maxLength:2,placeholder:kr(te,()=>"",()=>p),disabled:te,value:Me(S,T).compute(([R,N])=>R[N]??""),node:$[T.get()],onInput:R=>f(T.get(),R),onChange:R=>f(T.get(),R),onKeyDown:R=>V(T.get(),R),onFocus:R=>I(T.get(),R)});return yr({className:o("g-ui-pin-input",k("g-ui-input-size-",n,"md"),x),onClick:X},yr({className:"g-ui-pin-input-wrapper"},qs(de,ie)))}import{Div as Ws}from"@granularjs/core";function Gs(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Ws({...a,className:o("g-ui-checkbox-group",r)},t)}import{Div as Zs}from"@granularjs/core";function Us(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Zs({...a,className:o("g-ui-avatar-group",r)},t)}import{Div as Xs}from"@granularjs/core";function _s(...e){let{props:i,children:t}=s(e),{className:r,...a}=i;return Xs({...a,className:o("g-ui-badge-group",r)},t)}import{Div as Pi,Span as Ks,after as si,context as zr}from"@granularjs/core";var Qs=zr([]),Nr=zr({sort:null,onSort:null});function bt(...e){let{props:i,rawProps:t,children:r}=s(e,{sizes:[],sort:null,stickyHeader:!1}),{className:a,sizes:n,sort:u,stickyHeader:g,...p}=i,{onSort:h}=t,m=Qs.scope(n.get());si(n).change(x=>m.set(x));let b=Nr.scope({sort:u.get(),onSort:h||null});return si(u).change(x=>b.set().sort=x),m.serve(b.serve(Pi({className:o("g-ui-grid-table",W("g-ui-grid-table-sticky",g),a),style:{gridTemplateColumns:si(m).compute(x=>Array.isArray(x)?x.join(" "):"")},...p},r)))}bt.GridRow=(...e)=>{let{props:i,children:t}=s(e,{}),{className:r,header:a,...n}=i;return Pi({className:o("g-ui-grid-table-row",W("g-ui-grid-table-row-header",a),r),...n},...t)};bt.GridCell=function(...e){let{props:i,rawProps:t,children:r}=s(e,{}),{className:a,sort:n,...u}=i,g=t.sort;if(g){let p=Nr.state(),h=si(p.sort).compute(b=>b?.key===g?b.direction:null),m=()=>{let b=p.get().sort,x;b?.key===g?x=b.direction==="asc"?{key:g,direction:"desc"}:null:x={key:g,direction:"asc"},p.set().sort=x;let{onSort:d}=p.get();d&&d(x)};return Pi({className:o("g-ui-grid-table-cell","g-ui-grid-table-cell-sortable",a),onClick:m,...u},r,Ks({className:"g-ui-grid-table-sort-icon"},si(h).compute(b=>b==="asc"?" \u2191":b==="desc"?" \u2193":"")))}return Pi({className:o("g-ui-grid-table-cell",a),...u},r)};import{Button as Js,Div as eu,Span as Cr,when as Sr}from"@granularjs/core";function Dr(...e){let{props:i,children:t}=s(e,{grow:!0}),{grow:r,className:a,...n}=i;return eu({...n,className:o("g-ui-bottombar",W("g-ui-bottombar-grow",r),a)},t)}Dr.Action=function(...i){let{props:t,rawProps:r,children:a}=s(i,{variant:"subtle"}),{icon:n,label:u,active:g,disabled:p,variant:h,className:m,...b}=t,{onClick:x}=r;return Js({...b,className:o("g-ui-bottombar-action",k("g-ui-bottombar-action-variant-",h,"subtle"),W("g-ui-bottombar-action-active",g),W("g-ui-bottombar-action-disabled",p),m),onClick:x,disabled:p},Sr(n,()=>Cr({className:"g-ui-bottombar-action-icon"},n)),Sr(u,()=>Cr({className:"g-ui-bottombar-action-label"},u)),a)};import{Div as j,Button as Fe,state as le,after as be,when as ce,Input as Mi,Label as ui,Span as je}from"@granularjs/core";var iu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tu=[{value:"day",label:"Day"},{value:"week",label:"Week"},{value:"month",label:"Month"}];function Ti(e){if(e instanceof Date)return e;if(e==null)return null;let i=new Date(e);return Number.isNaN(i.getTime())?null:i}function Tr(e){let i=Ti(e.start),t=Ti(e.end);return!i||!t?null:{...e,id:e.id??`${i.getTime()}-${e.title??"event"}`,title:e.title??"",start:i,end:t,allDay:!!e.allDay,description:e.description??"",location:e.location??"",attendees:Array.isArray(e.attendees)?e.attendees:[],color:e.color??null}}function Vr(e,i,t){let r=Ti(i).getTime(),a=Ti(t).getTime();return e.map(Tr).filter(Boolean).filter(n=>n.end.getTime()>r&&n.start.getTime()<a)}function Pr(e,i){let t=new Date(i);t.setHours(0,0,0,0);let r=t.getTime();t.setHours(23,59,59,999);let a=t.getTime();return Vr(e,r,a)}function wt(e,i){let t=new Date(e),a=(t.getDay()-i+7)%7;return t.setDate(t.getDate()-a),t.setHours(0,0,0,0),t}function Ge(e,i="default"){return e.toLocaleTimeString(i,{hour:"numeric",minute:"2-digit",hour12:!0})}function gi(e,i="default"){return e.toLocaleDateString(i,{weekday:"short",month:"short",day:"numeric"})}function ru(e,i="default"){return e.toLocaleDateString(i,{month:"long",year:"numeric"})}function au(e,i="default"){let t=new Date(e);return t.setDate(t.getDate()+6),`${e.toLocaleDateString(i,{month:"short",day:"numeric"})} \u2013 ${t.toLocaleDateString(i,{month:"short",day:"numeric",year:"numeric"})}`}function Mr(e,i,t,r){let a=new Date(e).setHours(t,0,0,0),n=new Date(e).setHours(r,0,0,0),u=(r-t)*60,g=Math.max(e.getTime(),a),h=(Math.min(i.getTime(),n)-g)/6e4,m=(g-a)/6e4/u*100,b=h/u*100;return{top:m,height:b}}function ou(...e){let{props:i,rawProps:t}=s(e,{defaultView:"month",firstDayOfWeek:0,locale:"default",hourSlotDuration:30,minTime:6,maxTime:22,eventCreationColorOptions:[]}),{events:r=[],defaultView:a,firstDayOfWeek:n,locale:u,hourSlotDuration:g,minTime:p,maxTime:h,eventCreationColorOptions:m,className:b,...x}=i,{onCreateEventRequest:d,onViewEventRequest:y,onUpdateEventRequest:P,onRemoveEventRequest:A,eventCreationEmailLookup:$,eventCreationLocationsCallback:S,eventCreationCalendarsCallback:F,onSlotClick:z,onDateRangeChange:w}=t,v=le(l(a)??"month"),f=le(new Date),C=le(null),V=le(null),I=le({title:"",start:null,end:null,allDay:!1,description:"",location:"",attendees:[],color:null}),X=be(r).compute(c=>Array.isArray(c)?c:[]),re=f.get(),K=wt(re,l(n)??0),ue=l(p)??6,te=l(h)??22,oe=l(g)??30,de=()=>{let c=new Date(f.get());v.get()==="month"?c.setMonth(c.getMonth()-1):v.get()==="week"?c.setDate(c.getDate()-7):c.setDate(c.getDate()-1),f.set(c),w?.({start:c,end:c,view:v.get()})},ie=()=>{let c=new Date(f.get());v.get()==="month"?c.setMonth(c.getMonth()+1):v.get()==="week"?c.setDate(c.getDate()+7):c.setDate(c.getDate()+1),f.set(c),w?.({start:c,end:c,view:v.get()})},T=()=>{let c=new Date;f.set(c),w?.({start:c,end:c,view:v.get()})},R=(c,B,ae=!1)=>{let q=c?new Date(c):new Date(f.get()),J=B?new Date(B):new Date(q.getTime()+3600*1e3);ae&&(q.setHours(0,0,0,0),J.setHours(23,59,59,999)),I.set({title:"",start:q,end:J,allDay:ae,description:"",location:"",attendees:[],color:null}),C.set("create")},N=c=>{V.set(Tr(c)),C.set("view"),y?.(c)},G=()=>{let c=V.get();c&&(I.set({title:c.title,start:new Date(c.start),end:new Date(c.end),allDay:c.allDay,description:c.description??"",location:c.location??"",attendees:[...c.attendees||[]],color:c.color??null}),C.set("edit"))},H=()=>{C.set(null),V.set(null)},ne=(c,B,ae)=>{if(z){z({date:c,hour:B,allDay:ae});return}let q=new Date(c);if(ae){q.setHours(0,0,0,0);let J=new Date(q);J.setHours(23,59,59,999),R(q,J,!0)}else{q.setHours(B,0,0,0);let J=new Date(q.getTime()+oe*60*1e3);R(q,J,!1)}},se=()=>{let c=I.get();!c.start||!c.end||d?.({title:c.title,start:c.start,end:c.end,allDay:c.allDay,description:c.description,location:c.location,attendees:c.attendees,color:c.color},()=>{H()})},xe=()=>{let c=V.get(),B=I.get();!c||!B.start||!B.end||P?.(c,{title:B.title,start:B.start,end:B.end,allDay:B.allDay,description:B.description,location:B.location,attendees:B.attendees,color:B.color},()=>H())},ze=()=>{let c=V.get();c&&A?.(c,()=>H())},Se=be(v,f).compute(([c,B])=>c==="month"?ru(B,l(u)):c==="week"?au(wt(B,l(n)??0),l(u)):gi(B,l(u))),Ve=j({className:"g-ui-event-calendar-header"},j({className:"g-ui-event-calendar-nav-group"},Ae({size:"sm",variant:"subtle",onClick:de,className:"g-ui-event-calendar-nav"},ye({size:"sm",innerHTML:mi})),Ae({size:"sm",variant:"subtle",onClick:ie,className:"g-ui-event-calendar-nav"},ye({size:"sm",innerHTML:di})),Fe({type:"button",variant:"subtle",size:"sm",className:"g-ui-event-calendar-today",onClick:T},ye({size:"sm",className:"g-ui-event-calendar-today-icon",innerHTML:Rt}),"Today")),j({className:"g-ui-event-calendar-title"},Se),j({className:"g-ui-event-calendar-actions"},tu.map(c=>j({className:o("g-ui-event-calendar-view-option",be(v).compute(B=>B===c.value?"g-ui-event-calendar-view-option-active":"")),onClick:()=>{v.set(c.value),w?.({start:f.get(),end:f.get(),view:c.value})}},c.label)),Fe({type:"button",variant:"filled",size:"sm",className:"g-ui-event-calendar-create-btn",onClick:()=>R(f.get(),null,!1)},ye({size:"sm",innerHTML:Ft}),"Create"))),li=be(f,X,n).compute(([c,B,ae])=>{let q=c.getFullYear(),J=c.getMonth(),Q=(new Date(q,J,1).getDay()-(ae??0)+7)%7,Ce=new Date(q,J+1,0).getDate(),De=new Date(q,J,0).getDate(),M=[],D=1,E=1,O=Math.ceil((Q+Ce)/7)*7,_=[];for(let Z=0;Z<O;Z+=1){let Y,U,ee;Z<Q?(Y=De-Q+Z+1,ee=new Date(q,J-1,Y),U=!1):D<=Ce?(Y=D,ee=new Date(q,J,Y),U=!0,D+=1):(Y=E,ee=new Date(q,J+1,Y),U=!1,E+=1);let fe=Pr(B,ee),Te=ee.getDate()===new Date().getDate()&&ee.getMonth()===new Date().getMonth()&&ee.getFullYear()===new Date().getFullYear();_.push(j({key:ee.getTime(),className:o("g-ui-event-calendar-month-cell",!U&&"g-ui-event-calendar-month-cell-outside",Te&&"g-ui-event-calendar-month-cell-today")},j({className:"g-ui-event-calendar-month-cell-header",onClick:()=>ne(ee,0,!0)},je({className:"g-ui-event-calendar-month-cell-day"},ee.getDate())),j({className:"g-ui-event-calendar-month-cell-events"},fe.slice(0,3).map(we=>j({key:we.id,className:"g-ui-event-calendar-month-event",style:we.color?{borderLeftColor:we.color,backgroundColor:`${we.color}20`}:{},onClick:Bi=>{Bi.stopPropagation(),N(we)}},we.title||"(No title)")),ce(fe.length>3,()=>j({className:"g-ui-event-calendar-month-more",onClick:we=>{we.stopPropagation(),N(fe[3])}},`+${fe.length-3} more`)))))}return _}),Vi=j({className:"g-ui-event-calendar-month"},j({className:"g-ui-event-calendar-weekdays"},iu.map(c=>j({key:c,className:"g-ui-event-calendar-weekday"},c))),j({className:"g-ui-event-calendar-month-grid"},li)),Ne=[];for(let c=ue;c<te;c+=1)for(let B=0;B<60;B+=oe)Ne.push(c+B/60);let Ze=be(f,n).compute(([c,B])=>{let ae=wt(c,B??0),q=[];for(let J=0;J<7;J+=1){let pe=new Date(ae);pe.setDate(pe.getDate()+J),q.push(pe)}return q}),Li=j({className:"g-ui-event-calendar-week"},be(Ze).compute(c=>j({className:"g-ui-event-calendar-week-days"},j({className:"g-ui-event-calendar-week-time-col"},""),(c||[]).map(B=>j({key:B.getTime(),className:"g-ui-event-calendar-week-day-col"},j({className:"g-ui-event-calendar-week-day-header"},gi(B,l(u))))))),j({className:"g-ui-event-calendar-week-body"},j({className:"g-ui-event-calendar-week-time-col"},Ne.map(c=>{let B=Math.floor(c),ae=(c-B)*60,q=`${B<=12?B:B-12}:${ae===0?"00":ae} ${B<12?"AM":"PM"}`;return j({key:c,className:"g-ui-event-calendar-week-slot-label"},q)})),be(Ze,X).compute(([c,B])=>{if(!c||!c.length)return null;let ae=c[0],q=new Date(c[6]);q.setHours(23,59,59,999);let J=Vr(B,ae,q);return j({className:"g-ui-event-calendar-week-grid-cols"},c.map(pe=>j({key:pe.getTime(),className:"g-ui-event-calendar-week-day-col g-ui-event-calendar-week-day-col-body"},Ne.map(Q=>j({key:Q,className:"g-ui-event-calendar-week-slot",onClick:()=>ne(pe,Q,!1)})),J.filter(Q=>!Q.allDay&&Q.start.getDate()===pe.getDate()&&Q.start.getMonth()===pe.getMonth()&&Q.start.getFullYear()===pe.getFullYear()).map(Q=>{let{top:Ce,height:De}=Mr(Q.start,Q.end,ue,te);return j({key:Q.id,className:"g-ui-event-calendar-week-event",style:{top:`${Ce}%`,height:`${De}%`,borderLeftColor:Q.color||"var(--g-ui-primary)"},onClick:M=>{M.stopPropagation(),N(Q)}},j({className:"g-ui-event-calendar-week-event-title"},Q.title||"(No title)"),ce(!Q.allDay,()=>je({className:"g-ui-event-calendar-week-event-time"},`${Ge(Q.start,l(u))} \u2013 ${Ge(Q.end,l(u))}`)))}))))}))),$i=j({className:"g-ui-event-calendar-day"},j({className:"g-ui-event-calendar-day-body"},j({className:"g-ui-event-calendar-day-time-col"},Ne.map(c=>{let B=Math.floor(c),ae=(c-B)*60,q=`${B<=12?B:B-12}:${ae===0?"00":ae} ${B<12?"AM":"PM"}`;return j({key:c,className:"g-ui-event-calendar-day-slot-label"},q)})),j({className:"g-ui-event-calendar-day-slots"},Ne.map(c=>j({key:c,className:"g-ui-event-calendar-day-slot",onClick:()=>ne(f.get(),c,!1)})),be(X,f).compute(([c,B])=>B?Pr(c,B).filter(q=>!q.allDay).map(q=>{let{top:J,height:pe}=Mr(q.start,q.end,ue,te);return j({key:q.id,className:"g-ui-event-calendar-day-event",style:{top:`${J}%`,height:`${pe}%`,borderLeftColor:q.color||"var(--g-ui-primary)"},onClick:Q=>{Q.stopPropagation(),N(q)}},j({className:"g-ui-event-calendar-day-event-title"},q.title||"(No title)"),je({className:"g-ui-event-calendar-day-event-time"},`${Ge(q.start,l(u))} \u2013 ${Ge(q.end,l(u))}`))}):[])))),ci=c=>{let B=I.get(),ae=new Date,q=B.start||ae,J=B.end||new Date(ae.getTime()+3600*1e3),pe=le(B.title),Q=le(q.toISOString().slice(0,10)),Ce=le(!B.allDay&&q?q.toTimeString().slice(0,5):"09:00"),De=le(J.toISOString().slice(0,10)),M=le(!B.allDay&&J?J.toTimeString().slice(0,5):"10:00"),D=le(B.allDay),E=le(B.description),O=le(B.location),_=le(B.attendees||[]),Z=le(""),Y=le([]),U=le([]),ee=le(""),fe=Array.isArray(m)?m:[],Te=le(B.color),we=()=>{let L=new Date(Q.get()+"T"+(D.get()?"00:00:00":Ce.get()+":00")),he=new Date(De.get()+"T"+(D.get()?"23:59:59":M.get()+":00"));I.set({title:pe.get(),start:L,end:he,allDay:D.get(),description:E.get(),location:O.get(),attendees:_.get(),color:Te.get()})},Bi=L=>{if(Z.set(L),!$||!L.trim()){Y.set([]);return}Promise.resolve($(L.trim())).then(he=>Y.set(Array.isArray(he)?he:[])).catch(()=>Y.set([]))},Lr=L=>{let he=_.get();he.some(kt=>(kt.email||kt.id)===(L.email||L.id))||(_.set([...he,{id:L.id,email:L.email??L.label,label:L.label}]),Z.set(""),Y.set([]))},$r=L=>{let he=[..._.get()];he.splice(L,1),_.set(he)},yt=()=>{S&&Promise.resolve(S(ee.get())).then(L=>U.set(Array.isArray(L)?L:[])).catch(()=>U.set([]))};return j({className:"g-ui-event-calendar-form"},j({className:"g-ui-event-calendar-form-row"},ge({label:"Title",placeholder:"Event title",value:pe,onInput:L=>pe.set(L?.target?.value??"")})),j({className:"g-ui-event-calendar-form-row g-ui-event-calendar-form-row-inline"},Xi({label:"All day",checked:D,onChange:L=>D.set(L)})),j({className:"g-ui-event-calendar-form-row g-ui-event-calendar-form-row-inline"},j({className:"g-ui-event-calendar-form-field"},ui({className:"g-ui-event-calendar-form-label"},"Start"),Mi({type:"date",className:"g-ui-input g-ui-input-size-md",value:Q,onInput:L=>Q.set(L?.target?.value??"")}),ce(!D,()=>Mi({type:"time",className:"g-ui-input g-ui-input-size-md",value:Ce,onInput:L=>Ce.set(L?.target?.value??"")}))),j({className:"g-ui-event-calendar-form-field"},ui({className:"g-ui-event-calendar-form-label"},"End"),Mi({type:"date",className:"g-ui-input g-ui-input-size-md",value:De,onInput:L=>De.set(L?.target?.value??"")}),ce(!D,()=>Mi({type:"time",className:"g-ui-input g-ui-input-size-md",value:M,onInput:L=>M.set(L?.target?.value??"")})))),ce(S,()=>j({className:"g-ui-event-calendar-form-row"},ui({className:"g-ui-event-calendar-form-label"},"Location"),ge({placeholder:"Search or type location",value:ee,onInput:L=>{ee.set(L?.target?.value??""),yt()},onFocus:yt}),ce(be(U).compute(L=>L&&L.length>0),()=>j({className:"g-ui-event-calendar-form-suggestions"},U.get().map(L=>j({key:L.id??L.label,className:"g-ui-event-calendar-form-suggestion-item",onClick:()=>{O.set(L.label??L.id),ee.set(""),U.set([])}},L.label??L.id)))),ce(be(O).compute(L=>!!L),()=>je({className:"g-ui-event-calendar-form-chip"},O)))),ce($,()=>j({className:"g-ui-event-calendar-form-row"},ui({className:"g-ui-event-calendar-form-label"},"Add guests"),ge({placeholder:"Type email to search",value:Z,onInput:L=>Bi(L?.target?.value??"")}),j({className:"g-ui-event-calendar-form-chips"},_.get().map((L,he)=>je({key:(L.email||L.id)+he,className:"g-ui-event-calendar-form-chip g-ui-event-calendar-form-chip-removable",onClick:()=>$r(he)},L.label||L.email||L.id," \xD7"))),ce(be(Y).compute(L=>L&&L.length>0),()=>j({className:"g-ui-event-calendar-form-suggestions"},Y.get().map(L=>j({key:L.id??L.email,className:"g-ui-event-calendar-form-suggestion-item",onClick:()=>Lr(L)},L.label??L.email??L.id)))))),j({className:"g-ui-event-calendar-form-row"},qi({label:"Description",placeholder:"Add description",value:E,onInput:L=>E.set(L?.target?.value??"")})),ce(fe.length>0,()=>j({className:"g-ui-event-calendar-form-row"},ui({className:"g-ui-event-calendar-form-label"},"Color"),j({className:"g-ui-event-calendar-form-colors"},fe.map(L=>j({key:L.value??L.id??L,className:o("g-ui-event-calendar-form-color-swatch",be(Te).compute(he=>he===(L.value??L.id??L)?"g-ui-event-calendar-form-color-swatch-active":"")),style:{backgroundColor:L.color??L.value??L},onClick:()=>Te.set(L.value??L.id??L)}))))),j({className:"g-ui-event-calendar-form-actions"},Fe({variant:"subtle",onClick:H},"Cancel"),Fe({variant:"filled",onClick:()=>{we(),c?xe():se()}},c?"Save":"Create")))},Ii=()=>{let c=V.get();return c?j({className:"g-ui-event-calendar-view-modal"},j({className:"g-ui-event-calendar-view-modal-title"},c.title||"(No title)"),j({className:"g-ui-event-calendar-view-modal-meta"},c.allDay?je({className:"g-ui-event-calendar-view-modal-date"},gi(c.start,l(u))+(c.start.getTime()!==c.end.getTime()?` \u2013 ${gi(c.end,l(u))}`:"")):je({className:"g-ui-event-calendar-view-modal-date"},`${gi(c.start,l(u))} \xB7 ${Ge(c.start,l(u))} \u2013 ${Ge(c.end,l(u))}`)),ce(c.location,()=>j({className:"g-ui-event-calendar-view-modal-field"},"Location: ",c.location)),ce(c.description,()=>j({className:"g-ui-event-calendar-view-modal-field"},c.description)),ce(c.attendees?.length,()=>j({className:"g-ui-event-calendar-view-modal-field"},"Guests: ",c.attendees.map(B=>B.label||B.email||B.id).join(", "))),j({className:"g-ui-event-calendar-view-modal-actions"},Fe({variant:"subtle",size:"sm",onClick:G},ye({size:"sm",innerHTML:jt})," Edit"),Fe({variant:"subtle",size:"sm",onClick:ze,className:"g-ui-event-calendar-view-modal-delete"},ye({size:"sm",innerHTML:Et})," Delete"),Fe({variant:"filled",size:"sm",onClick:H},"Close"))):null};return j({...x,className:o("g-ui-event-calendar",b)},Ve,ce(v,c=>c==="month",()=>Vi),ce(v,c=>c==="week",()=>Li),ce(v,c=>c==="day",()=>$i),ce(C,c=>c==="create",()=>_e({opened:!0,title:"New event",size:"lg",onClose:H},ci(!1))),ce(C,c=>c==="view",()=>_e({opened:!0,title:"Event",size:"md",onClose:H},Ii())),ce(C,c=>c==="edit",()=>_e({opened:!0,title:"Edit event",size:"lg",onClose:H},ci(!0))))}import{state as nu}from"@granularjs/core";function su(e=!1){let i=nu(!!e);return[i,{open:()=>i.set(!0),close:()=>i.set(!1),toggle:()=>i.set(!i.get())}]}Nt();export{Qa as Accordion,Ae as ActionIcon,Cn as Affix,ho as Alert,Fo as Anchor,Vn as AppBar,wo as Avatar,Us as AvatarGroup,xa as Badge,_s as BadgeGroup,So as Blockquote,Dr as BottomBar,cn as Breadcrumbs,Ls as Burger,Ri as Button,ii as Calendar,fa as Card,dn as Center,Xi as Checkbox,Gs as CheckboxGroup,_o as Chip,No as Code,Es as Col,vn as Collapse,ga as Container,ds as CopyButton,Jn as DateInput,Gn as DatePicker,lo as Divider,no as Drawer,ou as EventCalendar,Mn as Fieldset,Ss as Flex,Fs as Grid,bt as GridTable,da as Group,zn as HoverCard,ye as Icon,Eo as Image,Vs as Indicator,ko as Kbd,Jt as List,Ke as Loading,Bs as LoadingOverlay,ro as Menu,_e as Modal,Yn as MultiSelect,Ms as NavLink,et as Notification,Xn as Notifications,Yi as NumberField,Sa as NumberInput,tn as Pagination,po as Paper,ss as PasswordInput,Ys as PinInput,lt as Popover,rs as Popper,Ho as Progress,fs as ProgressRing,nn as Radio,un as RadioGroup,Ns as RangePicker,Qn as RangeSlider,En as Rating,Hs as ScrollArea,gs as SearchInput,Qo as SegmentedControl,Ea as Select,bs as SelectSearch,$n as Sidebar,Po as SimpleGrid,Zo as Skeleton,Yo as Slider,fn as Space,ca as Stack,Fn as Stepper,ja as Switch,ys as SwitchGroup,Ua as Table,qa as Tabs,Hn as Tag,Hi as Text,ge as TextInput,qi as Textarea,An as Timeline,sa as Title,xs as Toast,Wn as ToastStack,Ja as Tooltip,o as cx,Xr as setThemeMode,Ur as setThemeVars,su as useDisclosure};
|
|
3605
|
+
//# sourceMappingURL=granular-ui.min.js.map
|