ui-svelte 0.2.11 → 0.2.13
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 +2 -2
- package/dist/charts/ArcChart.svelte +9 -14
- package/dist/charts/ArcChart.svelte.d.ts +3 -3
- package/dist/charts/AreaChart.svelte +347 -118
- package/dist/charts/AreaChart.svelte.d.ts +33 -4
- package/dist/charts/BarChart.svelte +288 -66
- package/dist/charts/BarChart.svelte.d.ts +26 -1
- package/dist/charts/Candlestick.svelte +53 -50
- package/dist/charts/Candlestick.svelte.d.ts +8 -8
- package/dist/charts/LineChart.svelte +391 -91
- package/dist/charts/LineChart.svelte.d.ts +26 -3
- package/dist/charts/PieChart.svelte +333 -92
- package/dist/charts/PieChart.svelte.d.ts +33 -5
- package/dist/charts/css/arc-chart.css +3 -3
- package/dist/charts/css/area-chart.css +127 -29
- package/dist/charts/css/bar-chart.css +114 -8
- package/dist/charts/css/candlestick.css +2 -0
- package/dist/charts/css/line-chart.css +111 -13
- package/dist/charts/css/pie-chart.css +92 -20
- package/dist/control/Audio.svelte +86 -44
- package/dist/control/Audio.svelte.d.ts +4 -1
- package/dist/control/Button.svelte +18 -27
- package/dist/control/Button.svelte.d.ts +3 -2
- package/dist/control/Fab.svelte +103 -0
- package/dist/control/Fab.svelte.d.ts +25 -0
- package/dist/control/IconButton.svelte +17 -27
- package/dist/control/IconButton.svelte.d.ts +3 -3
- package/dist/control/Image.svelte +123 -0
- package/dist/control/Image.svelte.d.ts +13 -0
- package/dist/control/Record.svelte +141 -98
- package/dist/control/Record.svelte.d.ts +2 -1
- package/dist/control/ToggleGroup.svelte +22 -8
- package/dist/control/ToggleGroup.svelte.d.ts +2 -1
- package/dist/control/ToggleTheme.svelte +13 -11
- package/dist/control/ToggleTheme.svelte.d.ts +3 -2
- package/dist/control/Video.svelte +57 -29
- package/dist/control/Video.svelte.d.ts +1 -0
- package/dist/control/css/btn.css +200 -152
- package/dist/control/css/fab.css +84 -0
- package/dist/control/css/image.css +56 -0
- package/dist/control/css/media.css +95 -30
- package/dist/control/css/toggle-group.css +253 -84
- package/dist/control/css/video.css +1 -14
- package/dist/css/animations.css +5 -9
- package/dist/css/base.css +13 -347
- package/dist/css/decorations.css +561 -0
- package/dist/css/rich-text.css +485 -0
- package/dist/css/transitions.css +158 -0
- package/dist/css/typography.css +291 -0
- package/dist/css/utilities.css +0 -4
- package/dist/display/Accordion.svelte +28 -4
- package/dist/display/Accordion.svelte.d.ts +2 -1
- package/dist/display/Alert.svelte +32 -12
- package/dist/display/Alert.svelte.d.ts +2 -3
- package/dist/display/Avatar.svelte +23 -18
- package/dist/display/Avatar.svelte.d.ts +4 -1
- package/dist/display/AvatarGroup.svelte +20 -18
- package/dist/display/AvatarGroup.svelte.d.ts +6 -3
- package/dist/display/Badge.svelte +11 -4
- package/dist/display/Badge.svelte.d.ts +2 -1
- package/dist/display/Card.svelte +15 -14
- package/dist/display/Card.svelte.d.ts +2 -3
- package/dist/display/Carousel.svelte +130 -99
- package/dist/display/Carousel.svelte.d.ts +6 -4
- package/dist/display/ChatBox.svelte +245 -106
- package/dist/display/ChatBox.svelte.d.ts +32 -5
- package/dist/display/Chip.svelte +31 -17
- package/dist/display/Chip.svelte.d.ts +3 -2
- package/dist/display/Code.svelte +7 -4
- package/dist/display/Code.svelte.d.ts +1 -0
- package/dist/display/Collapsible.svelte +30 -4
- package/dist/display/Collapsible.svelte.d.ts +2 -1
- package/dist/display/Countdown.svelte +169 -0
- package/dist/display/Countdown.svelte.d.ts +21 -0
- package/dist/display/Empty.svelte +37 -3
- package/dist/display/Empty.svelte.d.ts +3 -0
- package/dist/display/Item.svelte +42 -11
- package/dist/display/Item.svelte.d.ts +4 -2
- package/dist/display/Map.svelte +488 -0
- package/dist/display/Map.svelte.d.ts +44 -0
- package/dist/display/Marquee.svelte +0 -2
- package/dist/display/Section.svelte +14 -12
- package/dist/display/Section.svelte.d.ts +2 -3
- package/dist/display/Skeleton.svelte +32 -0
- package/dist/display/Skeleton.svelte.d.ts +10 -0
- package/dist/display/Table.svelte +94 -132
- package/dist/display/Table.svelte.d.ts +10 -1
- package/dist/display/css/accordion.css +349 -52
- package/dist/display/css/alert.css +38 -18
- package/dist/display/css/avatar-group.css +38 -75
- package/dist/display/css/avatar.css +139 -121
- package/dist/display/css/badge.css +50 -27
- package/dist/display/css/card.css +123 -71
- package/dist/display/css/carousel.css +25 -5
- package/dist/display/css/chat-box.css +158 -26
- package/dist/display/css/chip.css +142 -68
- package/dist/display/css/code.css +2 -6
- package/dist/display/css/collapsible.css +349 -45
- package/dist/display/css/countdown.css +206 -0
- package/dist/display/css/divider.css +8 -6
- package/dist/display/css/empty.css +7 -0
- package/dist/display/css/item.css +330 -84
- package/dist/display/css/map.css +164 -0
- package/dist/display/css/marquee.css +0 -3
- package/dist/display/css/section.css +89 -65
- package/dist/display/css/skeleton.css +58 -0
- package/dist/display/css/table.css +309 -193
- package/dist/form/Checkbox.svelte +11 -5
- package/dist/form/Checkbox.svelte.d.ts +2 -1
- package/dist/form/ColorField.svelte +601 -0
- package/dist/form/ColorField.svelte.d.ts +29 -0
- package/dist/form/ComboBox.svelte +24 -9
- package/dist/form/ComboBox.svelte.d.ts +2 -2
- package/dist/form/CsvField.svelte +62 -136
- package/dist/form/CsvField.svelte.d.ts +2 -2
- package/dist/form/DateField.svelte +33 -15
- package/dist/form/DateField.svelte.d.ts +2 -1
- package/dist/form/DateRange.svelte +436 -0
- package/dist/form/DateRange.svelte.d.ts +24 -0
- package/dist/form/DragDrop.svelte +578 -0
- package/dist/form/DragDrop.svelte.d.ts +33 -0
- package/dist/form/Dropzone.svelte +28 -8
- package/dist/form/Dropzone.svelte.d.ts +2 -2
- package/dist/form/Editor.svelte +626 -0
- package/dist/form/Editor.svelte.d.ts +50 -0
- package/dist/form/ImageCropper.svelte +422 -61
- package/dist/form/ImageCropper.svelte.d.ts +15 -1
- package/dist/form/{PasswordStrength.svelte → PasswordField.svelte} +58 -24
- package/dist/form/{PasswordStrength.svelte.d.ts → PasswordField.svelte.d.ts} +6 -5
- package/dist/form/PhoneField.svelte +26 -14
- package/dist/form/PhoneField.svelte.d.ts +4 -3
- package/dist/form/PinField.svelte +39 -31
- package/dist/form/PinField.svelte.d.ts +3 -3
- package/dist/form/RadioGroup.svelte +9 -5
- package/dist/form/RadioGroup.svelte.d.ts +1 -1
- package/dist/form/Select.svelte +20 -19
- package/dist/form/Select.svelte.d.ts +2 -2
- package/dist/form/Slider.svelte +10 -4
- package/dist/form/Slider.svelte.d.ts +2 -1
- package/dist/form/TextField.svelte +29 -11
- package/dist/form/TextField.svelte.d.ts +5 -4
- package/dist/form/Textarea.svelte +15 -6
- package/dist/form/Textarea.svelte.d.ts +2 -2
- package/dist/form/Toggle.svelte +7 -3
- package/dist/form/Toggle.svelte.d.ts +1 -1
- package/dist/form/css/checkbox.css +18 -2
- package/dist/form/css/color-field.css +141 -0
- package/dist/form/css/control.css +193 -82
- package/dist/form/css/csv-field.css +221 -0
- package/dist/form/css/date-range.css +122 -0
- package/dist/form/css/date.css +24 -2
- package/dist/form/css/drag-drop.css +234 -0
- package/dist/form/css/dropzone.css +153 -34
- package/dist/form/css/editor.css +367 -0
- package/dist/form/css/field.css +4 -0
- package/dist/form/css/image-cropper.css +242 -20
- package/dist/form/css/radio-group.css +26 -1
- package/dist/form/css/select.css +2 -2
- package/dist/form/css/slider.css +37 -0
- package/dist/form/css/textarea.css +178 -75
- package/dist/form/css/toggle.css +15 -3
- package/dist/hooks/use-chat.svelte.js +1 -1
- package/dist/hooks/use-form.svelte.js +3 -3
- package/dist/hooks/use-search.svelte.js +0 -3
- package/dist/hooks/use-table.svelte.d.ts +1 -0
- package/dist/hooks/use-table.svelte.js +6 -0
- package/dist/icons/index.d.ts +34 -2
- package/dist/icons/index.js +36 -4
- package/dist/index.css +44 -49
- package/dist/index.d.ts +14 -4
- package/dist/index.js +13 -3
- package/dist/layout/AppBar.svelte +22 -14
- package/dist/layout/AppBar.svelte.d.ts +2 -1
- package/dist/layout/Footer.svelte +19 -11
- package/dist/layout/Footer.svelte.d.ts +2 -1
- package/dist/layout/Provider.svelte +32 -9
- package/dist/layout/Provider.svelte.d.ts +3 -1
- package/dist/layout/Sidebar.svelte +17 -8
- package/dist/layout/Sidebar.svelte.d.ts +2 -1
- package/dist/layout/css/app-bar.css +63 -66
- package/dist/layout/css/footer.css +62 -65
- package/dist/layout/css/sidebar.css +120 -59
- package/dist/navigation/BottomNav.svelte +51 -14
- package/dist/navigation/FooterGroup.svelte +1 -1
- package/dist/navigation/NavMenu.svelte +47 -23
- package/dist/navigation/NavMenu.svelte.d.ts +29 -0
- package/dist/navigation/Pagination.svelte +158 -0
- package/dist/navigation/Pagination.svelte.d.ts +18 -0
- package/dist/navigation/SideNav.svelte +30 -25
- package/dist/navigation/SideNav.svelte.d.ts +2 -3
- package/dist/navigation/Tabs.svelte +17 -7
- package/dist/navigation/Tabs.svelte.d.ts +2 -2
- package/dist/navigation/css/bottom-nav.css +319 -257
- package/dist/navigation/css/footer-group.css +1 -1
- package/dist/navigation/css/footer-nav.css +1 -1
- package/dist/navigation/css/nav-menu.css +331 -106
- package/dist/navigation/css/pagination.css +74 -0
- package/dist/navigation/css/side-nav.css +514 -75
- package/dist/navigation/css/tabs.css +246 -52
- package/dist/overlay/AlertDialog.svelte +58 -0
- package/dist/overlay/AlertDialog.svelte.d.ts +14 -25
- package/dist/overlay/Command.svelte +347 -0
- package/dist/overlay/Command.svelte.d.ts +33 -25
- package/dist/overlay/Drawer.svelte +49 -21
- package/dist/overlay/Drawer.svelte.d.ts +2 -2
- package/dist/overlay/Dropdown.svelte +3 -3
- package/dist/overlay/Modal.svelte +51 -16
- package/dist/overlay/Modal.svelte.d.ts +3 -3
- package/dist/overlay/Toast.svelte +41 -17
- package/dist/overlay/Toast.svelte.d.ts +1 -1
- package/dist/overlay/Tooltip.svelte +36 -27
- package/dist/overlay/Tooltip.svelte.d.ts +2 -2
- package/dist/overlay/css/command.css +68 -0
- package/dist/overlay/css/drawer.css +63 -24
- package/dist/overlay/css/dropdown.css +1 -1
- package/dist/overlay/css/hovercard.css +1 -1
- package/dist/overlay/css/modal.css +79 -27
- package/dist/overlay/css/toast.css +40 -24
- package/dist/overlay/css/tooltip.css +110 -67
- package/dist/stores/theme.svelte.js +44 -12
- package/dist/stores/toast.svelte.d.ts +4 -4
- package/dist/stores/toast.svelte.js +2 -2
- package/package.json +1 -1
- package/dist/utils/charts.d.ts +0 -27
- package/dist/utils/charts.js +0 -140
|
@@ -5,120 +5,224 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.control-label {
|
|
8
|
-
@apply absolute left-3 top-1/2 -translate-y-1/2;
|
|
8
|
+
@apply absolute left-3 top-1/2 -translate-y-1/2 pr-6 w-full text-left truncate;
|
|
9
9
|
@apply transition-all duration-300;
|
|
10
|
-
}
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
&.is-active {
|
|
12
|
+
@apply text-xs left-3 top-[1.2px]! translate-y-px!;
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.control
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
.control {
|
|
17
|
+
&.is-sm {
|
|
18
|
+
@apply h-8 text-sm;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
.control-icon {
|
|
21
|
+
@apply h-5 w-auto;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
&.is-float {
|
|
25
|
+
@apply h-10 pt-3;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
29
|
+
&.is-md {
|
|
30
|
+
@apply h-10 text-base;
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
.control-icon {
|
|
33
|
+
@apply h-6 w-auto;
|
|
34
|
+
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
&.is-float {
|
|
37
|
+
@apply h-12 pt-3.5;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-lg {
|
|
42
|
+
@apply h-12 text-xl;
|
|
43
|
+
|
|
44
|
+
.control-icon {
|
|
45
|
+
@apply h-8 w-auto;
|
|
46
|
+
}
|
|
39
47
|
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
.control-label.is-active {
|
|
49
|
+
@apply text-sm;
|
|
50
|
+
}
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
|
|
52
|
+
&.is-float {
|
|
53
|
+
@apply h-14 pt-3.5;
|
|
54
|
+
}
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
|
|
48
|
-
.control.is-
|
|
49
|
-
@apply
|
|
50
|
-
}
|
|
58
|
+
.control.is-soft {
|
|
59
|
+
@apply rounded-ui;
|
|
51
60
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
&.is-primary {
|
|
62
|
+
@apply bg-soft-primary text-primary;
|
|
63
|
+
&.is-active {
|
|
64
|
+
@apply bg-soft-primary/90;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
55
67
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
68
|
+
&.is-secondary {
|
|
69
|
+
@apply bg-soft-secondary text-secondary;
|
|
70
|
+
&.is-active {
|
|
71
|
+
@apply bg-soft-secondary/90;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
59
74
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
75
|
+
&.is-muted {
|
|
76
|
+
@apply bg-soft-muted text-on-muted;
|
|
77
|
+
&.is-active {
|
|
78
|
+
@apply bg-soft-muted/90;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
&.is-success {
|
|
83
|
+
@apply bg-soft-success text-success;
|
|
84
|
+
&.is-active {
|
|
85
|
+
@apply bg-soft-success/90;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
67
88
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
89
|
+
&.is-info {
|
|
90
|
+
@apply bg-soft-info text-info;
|
|
91
|
+
&.is-active {
|
|
92
|
+
@apply bg-soft-info/90;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
71
95
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
&.is-danger {
|
|
97
|
+
@apply bg-soft-danger text-danger;
|
|
98
|
+
&.is-active {
|
|
99
|
+
@apply bg-soft-danger/90;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
75
102
|
|
|
76
|
-
|
|
77
|
-
|
|
103
|
+
&.is-warning {
|
|
104
|
+
@apply bg-soft-warning text-warning;
|
|
105
|
+
&.is-active {
|
|
106
|
+
@apply bg-soft-warning/90;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
78
109
|
}
|
|
79
110
|
|
|
80
|
-
.control.is-
|
|
81
|
-
@apply
|
|
82
|
-
}
|
|
111
|
+
.control.is-solid {
|
|
112
|
+
@apply rounded-ui;
|
|
83
113
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
114
|
+
&.is-primary {
|
|
115
|
+
@apply bg-primary text-on-primary;
|
|
116
|
+
&.is-active {
|
|
117
|
+
@apply bg-primary/90;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
87
120
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
121
|
+
&.is-secondary {
|
|
122
|
+
@apply bg-secondary text-on-secondary;
|
|
123
|
+
&.is-active {
|
|
124
|
+
@apply bg-secondary/90;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
91
127
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
128
|
+
&.is-muted {
|
|
129
|
+
@apply bg-on-muted text-muted;
|
|
130
|
+
&.is-active {
|
|
131
|
+
@apply bg-on-muted/90;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
95
134
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
135
|
+
&.is-success {
|
|
136
|
+
@apply bg-success text-on-success;
|
|
137
|
+
&.is-active {
|
|
138
|
+
@apply bg-success/90;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
99
141
|
|
|
100
|
-
|
|
101
|
-
|
|
142
|
+
&.is-info {
|
|
143
|
+
@apply bg-info text-on-info;
|
|
144
|
+
&.is-active {
|
|
145
|
+
@apply bg-info/90;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.is-danger {
|
|
150
|
+
@apply bg-danger text-on-danger;
|
|
151
|
+
&.is-active {
|
|
152
|
+
@apply bg-danger/90;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&.is-warning {
|
|
157
|
+
@apply bg-warning text-on-warning;
|
|
158
|
+
&.is-active {
|
|
159
|
+
@apply bg-warning/90;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
102
162
|
}
|
|
103
163
|
|
|
104
164
|
.control.is-outlined {
|
|
105
|
-
@apply
|
|
106
|
-
}
|
|
165
|
+
@apply rounded-ui inset-ring;
|
|
107
166
|
|
|
108
|
-
|
|
109
|
-
|
|
167
|
+
&.is-active {
|
|
168
|
+
@apply inset-ring-2;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.is-primary {
|
|
172
|
+
@apply inset-ring-primary;
|
|
173
|
+
}
|
|
174
|
+
&.is-secondary {
|
|
175
|
+
@apply inset-ring-secondary;
|
|
176
|
+
}
|
|
177
|
+
&.is-muted {
|
|
178
|
+
@apply inset-ring-muted;
|
|
179
|
+
}
|
|
180
|
+
&.is-success {
|
|
181
|
+
@apply inset-ring-success;
|
|
182
|
+
}
|
|
183
|
+
&.is-info {
|
|
184
|
+
@apply inset-ring-info;
|
|
185
|
+
}
|
|
186
|
+
&.is-danger {
|
|
187
|
+
@apply inset-ring-danger;
|
|
188
|
+
}
|
|
189
|
+
&.is-warning {
|
|
190
|
+
@apply inset-ring-warning;
|
|
191
|
+
}
|
|
110
192
|
}
|
|
111
193
|
|
|
112
194
|
.control.is-line {
|
|
113
|
-
@apply box-border border-b
|
|
195
|
+
@apply box-border border-b px-0;
|
|
114
196
|
|
|
115
197
|
.control-label {
|
|
116
198
|
@apply left-0!;
|
|
117
199
|
}
|
|
118
|
-
}
|
|
119
200
|
|
|
120
|
-
|
|
121
|
-
|
|
201
|
+
&.is-active {
|
|
202
|
+
@apply border-b-2;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.is-primary {
|
|
206
|
+
@apply border-primary text-primary;
|
|
207
|
+
}
|
|
208
|
+
&.is-secondary {
|
|
209
|
+
@apply border-secondary text-secondary;
|
|
210
|
+
}
|
|
211
|
+
&.is-muted {
|
|
212
|
+
@apply border-on-muted text-on-muted;
|
|
213
|
+
}
|
|
214
|
+
&.is-success {
|
|
215
|
+
@apply border-success text-success;
|
|
216
|
+
}
|
|
217
|
+
&.is-info {
|
|
218
|
+
@apply border-info text-info;
|
|
219
|
+
}
|
|
220
|
+
&.is-danger {
|
|
221
|
+
@apply border-danger text-danger;
|
|
222
|
+
}
|
|
223
|
+
&.is-warning {
|
|
224
|
+
@apply border-warning text-warning;
|
|
225
|
+
}
|
|
122
226
|
}
|
|
123
227
|
|
|
124
228
|
.control-btn {
|
|
@@ -130,22 +234,29 @@
|
|
|
130
234
|
}
|
|
131
235
|
|
|
132
236
|
.control-arrow {
|
|
133
|
-
@apply size-4 transition-
|
|
134
|
-
@apply transition-all duration-300 ease-in-out;
|
|
135
|
-
}
|
|
237
|
+
@apply size-4 transition-all duration-300 ease-in-out;
|
|
136
238
|
|
|
137
|
-
|
|
138
|
-
|
|
239
|
+
&.is-active {
|
|
240
|
+
@apply rotate-90;
|
|
241
|
+
}
|
|
139
242
|
}
|
|
140
243
|
|
|
141
244
|
.control-selected {
|
|
142
|
-
@apply flex-1 text-left truncate;
|
|
245
|
+
@apply flex-1 text-left truncate w-full;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.control-pin {
|
|
249
|
+
@apply appearance-none border-none outline-none truncate text-center w-6;
|
|
250
|
+
@apply placeholder:transition-opacity placeholder:duration-300;
|
|
143
251
|
}
|
|
144
252
|
|
|
145
253
|
.control-input {
|
|
146
|
-
@apply appearance-none flex-1 border-none outline-none;
|
|
147
|
-
@apply placeholder:transition-opacity placeholder:duration-
|
|
254
|
+
@apply appearance-none flex-1 border-none outline-none truncate;
|
|
255
|
+
@apply placeholder:transition-opacity placeholder:duration-300;
|
|
256
|
+
}
|
|
148
257
|
|
|
258
|
+
.control-input,
|
|
259
|
+
.control-pin {
|
|
149
260
|
&::-webkit-outer-spin-button,
|
|
150
261
|
&::-webkit-inner-spin-button {
|
|
151
262
|
-webkit-appearance: none;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.csv-field {
|
|
3
|
+
@apply relative w-full;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.csv-field-input {
|
|
7
|
+
@apply hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.csv-field-error {
|
|
11
|
+
@apply mt-2.5 p-2.5 rounded-ui text-sm;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.csv-field.is-soft .csv-field-error,
|
|
15
|
+
.csv-field.is-ghost .csv-field-error {
|
|
16
|
+
@apply bg-soft-danger/20 text-danger;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.csv-field.is-solid .csv-field-error {
|
|
20
|
+
@apply bg-danger text-on-danger;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.csv-field.is-outlined .csv-field-error {
|
|
24
|
+
@apply border border-danger text-danger;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.csv-modal-title {
|
|
28
|
+
@apply m-0 text-xl font-semibold text-on-surface;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.csv-modal-body {
|
|
32
|
+
@apply flex flex-col gap-5;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.csv-instructions {
|
|
36
|
+
@apply m-0 text-on-surface/70 text-sm;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.csv-mapping-list {
|
|
40
|
+
@apply flex flex-col gap-6;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.csv-mapping-item {
|
|
44
|
+
@apply flex flex-col gap-3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.csv-modal-footer {
|
|
48
|
+
@apply flex justify-end gap-3;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.csv-preview-container {
|
|
52
|
+
@apply mt-6 p-5 rounded-ui;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.csv-field.is-soft .csv-preview-container {
|
|
56
|
+
&.is-primary {
|
|
57
|
+
@apply bg-on-primary/20;
|
|
58
|
+
}
|
|
59
|
+
&.is-secondary {
|
|
60
|
+
@apply bg-on-secondary/20;
|
|
61
|
+
}
|
|
62
|
+
&.is-muted {
|
|
63
|
+
@apply bg-muted/50;
|
|
64
|
+
}
|
|
65
|
+
&.is-success {
|
|
66
|
+
@apply bg-on-success/20;
|
|
67
|
+
}
|
|
68
|
+
&.is-info {
|
|
69
|
+
@apply bg-on-info/20;
|
|
70
|
+
}
|
|
71
|
+
&.is-danger {
|
|
72
|
+
@apply bg-on-danger/20;
|
|
73
|
+
}
|
|
74
|
+
&.is-warning {
|
|
75
|
+
@apply bg-on-warning/20;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.csv-field.is-soft.is-primary .csv-preview-container {
|
|
80
|
+
@apply bg-soft-primary/20;
|
|
81
|
+
}
|
|
82
|
+
.csv-field.is-soft.is-secondary .csv-preview-container {
|
|
83
|
+
@apply bg-soft-secondary/20;
|
|
84
|
+
}
|
|
85
|
+
.csv-field.is-soft.is-muted .csv-preview-container {
|
|
86
|
+
@apply bg-soft-muted/50;
|
|
87
|
+
}
|
|
88
|
+
.csv-field.is-soft.is-success .csv-preview-container {
|
|
89
|
+
@apply bg-soft-success/20;
|
|
90
|
+
}
|
|
91
|
+
.csv-field.is-soft.is-info .csv-preview-container {
|
|
92
|
+
@apply bg-soft-info/20;
|
|
93
|
+
}
|
|
94
|
+
.csv-field.is-soft.is-danger .csv-preview-container {
|
|
95
|
+
@apply bg-soft-danger/20;
|
|
96
|
+
}
|
|
97
|
+
.csv-field.is-soft.is-warning .csv-preview-container {
|
|
98
|
+
@apply bg-soft-warning/20;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.csv-field.is-solid.is-primary .csv-preview-container {
|
|
102
|
+
@apply bg-primary/10;
|
|
103
|
+
}
|
|
104
|
+
.csv-field.is-solid.is-secondary .csv-preview-container {
|
|
105
|
+
@apply bg-secondary/10;
|
|
106
|
+
}
|
|
107
|
+
.csv-field.is-solid.is-muted .csv-preview-container {
|
|
108
|
+
@apply bg-on-muted/10;
|
|
109
|
+
}
|
|
110
|
+
.csv-field.is-solid.is-success .csv-preview-container {
|
|
111
|
+
@apply bg-success/10;
|
|
112
|
+
}
|
|
113
|
+
.csv-field.is-solid.is-info .csv-preview-container {
|
|
114
|
+
@apply bg-info/10;
|
|
115
|
+
}
|
|
116
|
+
.csv-field.is-solid.is-danger .csv-preview-container {
|
|
117
|
+
@apply bg-danger/10;
|
|
118
|
+
}
|
|
119
|
+
.csv-field.is-solid.is-warning .csv-preview-container {
|
|
120
|
+
@apply bg-warning/10;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.csv-field.is-outlined.is-primary .csv-preview-container {
|
|
124
|
+
@apply border border-primary/30;
|
|
125
|
+
}
|
|
126
|
+
.csv-field.is-outlined.is-secondary .csv-preview-container {
|
|
127
|
+
@apply border border-secondary/30;
|
|
128
|
+
}
|
|
129
|
+
.csv-field.is-outlined.is-muted .csv-preview-container {
|
|
130
|
+
@apply border border-muted;
|
|
131
|
+
}
|
|
132
|
+
.csv-field.is-outlined.is-success .csv-preview-container {
|
|
133
|
+
@apply border border-success/30;
|
|
134
|
+
}
|
|
135
|
+
.csv-field.is-outlined.is-info .csv-preview-container {
|
|
136
|
+
@apply border border-info/30;
|
|
137
|
+
}
|
|
138
|
+
.csv-field.is-outlined.is-danger .csv-preview-container {
|
|
139
|
+
@apply border border-danger/30;
|
|
140
|
+
}
|
|
141
|
+
.csv-field.is-outlined.is-warning .csv-preview-container {
|
|
142
|
+
@apply border border-warning/30;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.csv-field.is-ghost .csv-preview-container {
|
|
146
|
+
@apply bg-surface/50;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.csv-preview-header {
|
|
150
|
+
@apply flex justify-between items-start mb-4 gap-4;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.csv-preview-info {
|
|
154
|
+
@apply flex-1 min-w-0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.csv-preview-title {
|
|
158
|
+
@apply m-0 mb-3 text-base font-semibold text-on-surface;
|
|
159
|
+
@apply flex items-center gap-2;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.csv-preview-count {
|
|
163
|
+
@apply text-sm font-normal text-on-surface/60;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.csv-mapping-summary {
|
|
167
|
+
@apply flex flex-wrap gap-2;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.csv-clear-icon {
|
|
171
|
+
@apply text-lg leading-none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.csv-field.is-xs {
|
|
175
|
+
.csv-field-error {
|
|
176
|
+
@apply text-xs p-2;
|
|
177
|
+
}
|
|
178
|
+
.csv-preview-container {
|
|
179
|
+
@apply p-3 mt-4;
|
|
180
|
+
}
|
|
181
|
+
.csv-preview-title {
|
|
182
|
+
@apply text-sm;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.csv-field.is-sm {
|
|
187
|
+
.csv-field-error {
|
|
188
|
+
@apply text-xs p-2;
|
|
189
|
+
}
|
|
190
|
+
.csv-preview-container {
|
|
191
|
+
@apply p-4 mt-4;
|
|
192
|
+
}
|
|
193
|
+
.csv-preview-title {
|
|
194
|
+
@apply text-sm;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.csv-field.is-md {
|
|
199
|
+
.csv-field-error {
|
|
200
|
+
@apply text-sm p-2.5;
|
|
201
|
+
}
|
|
202
|
+
.csv-preview-container {
|
|
203
|
+
@apply p-5 mt-6;
|
|
204
|
+
}
|
|
205
|
+
.csv-preview-title {
|
|
206
|
+
@apply text-base;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.csv-field.is-lg {
|
|
211
|
+
.csv-field-error {
|
|
212
|
+
@apply text-base p-3;
|
|
213
|
+
}
|
|
214
|
+
.csv-preview-container {
|
|
215
|
+
@apply p-6 mt-8;
|
|
216
|
+
}
|
|
217
|
+
.csv-preview-title {
|
|
218
|
+
@apply text-lg;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.date-range-popover {
|
|
3
|
+
@apply h-auto overflow-y-auto drop-shadow-sm flex flex-col gap-2 p-3 my-1 scrollbar-hide;
|
|
4
|
+
@apply bg-background text-on-background rounded-box;
|
|
5
|
+
@apply invisible opacity-0 transition-opacity duration-300 ease-in-out;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 9999;
|
|
8
|
+
|
|
9
|
+
&.is-active {
|
|
10
|
+
@apply visible opacity-100;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.date-range-calendars {
|
|
15
|
+
@apply flex gap-4;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.date-range-calendar {
|
|
19
|
+
@apply flex flex-col gap-1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.date-range-spacer {
|
|
23
|
+
@apply w-8 h-8;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.date-range-day-button {
|
|
27
|
+
@apply outline-hidden rounded-ui;
|
|
28
|
+
@apply flex items-center justify-center w-8 h-8 text-sm transition-colors;
|
|
29
|
+
|
|
30
|
+
&:not(.is-start):not(.is-end):not(.is-in-range):not(.is-disabled) {
|
|
31
|
+
@apply hover:bg-muted hover:text-on-muted;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.is-start,
|
|
35
|
+
&.is-end {
|
|
36
|
+
@apply rounded-ui;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.is-start.is-primary,
|
|
40
|
+
&.is-end.is-primary {
|
|
41
|
+
@apply bg-primary text-on-primary;
|
|
42
|
+
}
|
|
43
|
+
&.is-start.is-secondary,
|
|
44
|
+
&.is-end.is-secondary {
|
|
45
|
+
@apply bg-secondary text-on-secondary;
|
|
46
|
+
}
|
|
47
|
+
&.is-start.is-muted,
|
|
48
|
+
&.is-end.is-muted {
|
|
49
|
+
@apply bg-muted text-on-muted;
|
|
50
|
+
}
|
|
51
|
+
&.is-start.is-success,
|
|
52
|
+
&.is-end.is-success {
|
|
53
|
+
@apply bg-success text-on-success;
|
|
54
|
+
}
|
|
55
|
+
&.is-start.is-info,
|
|
56
|
+
&.is-end.is-info {
|
|
57
|
+
@apply bg-info text-on-info;
|
|
58
|
+
}
|
|
59
|
+
&.is-start.is-danger,
|
|
60
|
+
&.is-end.is-danger {
|
|
61
|
+
@apply bg-danger text-on-danger;
|
|
62
|
+
}
|
|
63
|
+
&.is-start.is-warning,
|
|
64
|
+
&.is-end.is-warning {
|
|
65
|
+
@apply bg-warning text-on-warning;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-in-range {
|
|
69
|
+
@apply rounded-none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-in-range.is-primary {
|
|
73
|
+
@apply bg-primary/20 text-primary;
|
|
74
|
+
}
|
|
75
|
+
&.is-in-range.is-secondary {
|
|
76
|
+
@apply bg-secondary/20 text-secondary;
|
|
77
|
+
}
|
|
78
|
+
&.is-in-range.is-muted {
|
|
79
|
+
@apply bg-muted/50 text-on-muted;
|
|
80
|
+
}
|
|
81
|
+
&.is-in-range.is-success {
|
|
82
|
+
@apply bg-success/20 text-success;
|
|
83
|
+
}
|
|
84
|
+
&.is-in-range.is-info {
|
|
85
|
+
@apply bg-info/20 text-info;
|
|
86
|
+
}
|
|
87
|
+
&.is-in-range.is-danger {
|
|
88
|
+
@apply bg-danger/20 text-danger;
|
|
89
|
+
}
|
|
90
|
+
&.is-in-range.is-warning {
|
|
91
|
+
@apply bg-warning/20 text-warning;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-start {
|
|
95
|
+
@apply rounded-l-ui rounded-r-none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.is-end {
|
|
99
|
+
@apply rounded-r-ui rounded-l-none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.is-start.is-end {
|
|
103
|
+
@apply rounded-ui;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.today {
|
|
107
|
+
@apply font-semibold;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.is-disabled {
|
|
111
|
+
@apply opacity-50 cursor-not-allowed;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.date-range-footer {
|
|
116
|
+
@apply flex items-center justify-center pt-2 border-t border-muted;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.date-range-selection {
|
|
120
|
+
@apply text-sm text-on-muted;
|
|
121
|
+
}
|
|
122
|
+
}
|
package/dist/form/css/date.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.date-popover {
|
|
3
3
|
@apply h-auto overflow-y-auto drop-shadow-sm flex flex-col gap-1 p-2 my-1 scrollbar-hide w-72;
|
|
4
|
-
@apply bg-background text-on-background rounded-
|
|
4
|
+
@apply bg-background text-on-background rounded-box;
|
|
5
5
|
@apply invisible opacity-0 transition-opacity duration-300 ease-in-out;
|
|
6
6
|
position: fixed;
|
|
7
7
|
z-index: 9999;
|
|
@@ -46,7 +46,29 @@
|
|
|
46
46
|
@apply flex items-center justify-center w-8 h-8 text-sm transition-colors;
|
|
47
47
|
|
|
48
48
|
&.selected {
|
|
49
|
-
@apply
|
|
49
|
+
@apply rounded-ui;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.selected.is-primary {
|
|
53
|
+
@apply bg-primary text-on-primary;
|
|
54
|
+
}
|
|
55
|
+
&.selected.is-secondary {
|
|
56
|
+
@apply bg-secondary text-on-secondary;
|
|
57
|
+
}
|
|
58
|
+
&.selected.is-muted {
|
|
59
|
+
@apply bg-muted text-on-muted;
|
|
60
|
+
}
|
|
61
|
+
&.selected.is-success {
|
|
62
|
+
@apply bg-success text-on-success;
|
|
63
|
+
}
|
|
64
|
+
&.selected.is-info {
|
|
65
|
+
@apply bg-info text-on-info;
|
|
66
|
+
}
|
|
67
|
+
&.selected.is-danger {
|
|
68
|
+
@apply bg-danger text-on-danger;
|
|
69
|
+
}
|
|
70
|
+
&.selected.is-warning {
|
|
71
|
+
@apply bg-warning text-on-warning;
|
|
50
72
|
}
|
|
51
73
|
|
|
52
74
|
&.today {
|