ui-svelte 0.2.11 → 0.2.12
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/dist/charts/ArcChart.svelte +9 -13
- 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/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 +144 -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 +55 -29
- package/dist/control/Video.svelte.d.ts +1 -0
- package/dist/control/css/btn.css +200 -152
- package/dist/control/css/image.css +56 -0
- package/dist/control/css/media.css +95 -30
- package/dist/control/css/toggle-group.css +269 -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 +402 -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/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 +6 -3
- 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/Empty.svelte +37 -3
- package/dist/display/Empty.svelte.d.ts +3 -0
- package/dist/display/Item.svelte +30 -11
- package/dist/display/Item.svelte.d.ts +2 -2
- package/dist/display/Map.svelte +488 -0
- package/dist/display/Map.svelte.d.ts +44 -0
- 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 +18 -25
- 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 +51 -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/divider.css +8 -6
- package/dist/display/css/empty.css +7 -0
- package/dist/display/css/item.css +311 -89
- package/dist/display/css/map.css +164 -0
- package/dist/display/css/section.css +78 -33
- package/dist/display/css/skeleton.css +58 -0
- package/dist/display/css/table.css +320 -189
- package/dist/form/Checkbox.svelte +11 -5
- package/dist/form/Checkbox.svelte.d.ts +2 -1
- package/dist/form/ColorField.svelte +543 -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 +348 -0
- package/dist/form/DragDrop.svelte.d.ts +32 -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 +291 -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 +4 -4
- 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 +4 -2
- package/dist/form/Slider.svelte.d.ts +1 -0
- package/dist/form/TextField.svelte +16 -7
- package/dist/form/TextField.svelte.d.ts +2 -2
- package/dist/form/Textarea.svelte +15 -6
- package/dist/form/Textarea.svelte.d.ts +2 -2
- package/dist/form/Toggle.svelte +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 +226 -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 +271 -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 +223 -22
- package/dist/form/css/radio-group.css +1 -1
- package/dist/form/css/select.css +2 -2
- package/dist/form/css/slider.css +1 -0
- package/dist/form/css/textarea.css +178 -75
- package/dist/form/css/toggle.css +3 -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 +30 -2
- package/dist/icons/index.js +32 -4
- package/dist/index.css +16 -1
- package/dist/index.d.ts +12 -4
- package/dist/index.js +11 -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 +27 -4
- package/dist/layout/Provider.svelte.d.ts +3 -1
- package/dist/layout/css/app-bar.css +63 -66
- package/dist/layout/css/footer.css +62 -65
- package/dist/navigation/BottomNav.svelte +41 -13
- 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 +279 -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 +332 -106
- package/dist/navigation/css/pagination.css +74 -0
- package/dist/navigation/css/side-nav.css +515 -75
- package/dist/navigation/css/tabs.css +246 -52
- package/dist/overlay/Command.svelte +340 -0
- package/dist/overlay/Command.svelte.d.ts +24 -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 +40 -26
- package/dist/overlay/Tooltip.svelte.d.ts +2 -2
- package/dist/overlay/css/command.css +80 -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 +27 -27
- package/dist/overlay/css/toast.css +17 -29
- package/dist/overlay/css/tooltip.css +83 -66
- package/dist/stores/theme.svelte.js +26 -1
- package/dist/stores/toast.svelte.d.ts +4 -4
- package/dist/stores/toast.svelte.js +2 -2
- package/package.json +1 -1
|
@@ -1,160 +1,178 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.avatar {
|
|
3
3
|
@apply relative flex items-center justify-center;
|
|
4
|
-
@apply rounded-
|
|
5
|
-
@apply transition-all duration-
|
|
6
|
-
|
|
4
|
+
@apply rounded-avatar;
|
|
5
|
+
@apply transition-all duration-300;
|
|
6
|
+
|
|
7
|
+
&.is-clickable {
|
|
8
|
+
@apply cursor-pointer;
|
|
9
|
+
@apply hover:opacity-80 hover:scale-105;
|
|
10
|
+
@apply active:scale-95;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.is-bordered {
|
|
14
|
+
@apply ring-3;
|
|
15
|
+
}
|
|
7
16
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@apply active:scale-95;
|
|
17
|
+
&.is-transparent {
|
|
18
|
+
@apply bg-transparent;
|
|
19
|
+
}
|
|
12
20
|
}
|
|
13
21
|
|
|
14
|
-
/* Reset button/anchor styles when used as clickable */
|
|
15
22
|
button.avatar,
|
|
16
23
|
a.avatar {
|
|
17
24
|
@apply border-0 bg-transparent p-0;
|
|
18
25
|
@apply no-underline;
|
|
19
26
|
}
|
|
20
27
|
|
|
21
|
-
.avatar
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.avatar.is-warning {
|
|
38
|
-
@apply bg-warning text-on-warning;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.avatar.is-danger {
|
|
42
|
-
@apply bg-danger text-on-danger;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.avatar.is-info {
|
|
46
|
-
@apply bg-info text-on-info;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.avatar.is-bordered {
|
|
50
|
-
@apply ring-3 ring-background;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.avatar.is-transparent {
|
|
54
|
-
@apply bg-transparent;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.avatar-status {
|
|
58
|
-
@apply absolute bottom-0 right-0 translate-x-[25%];
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.avatar-indicator {
|
|
62
|
-
@apply ring ring-background rounded-full;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.avatar-indicator.is-online {
|
|
66
|
-
@apply bg-success;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.avatar-indicator.is-busy {
|
|
70
|
-
@apply bg-warning;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.avatar-indicator.is-away {
|
|
74
|
-
@apply bg-danger;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.avatar-indicator.is-offline {
|
|
78
|
-
@apply bg-muted;
|
|
79
|
-
}
|
|
28
|
+
.avatar {
|
|
29
|
+
&.is-xs {
|
|
30
|
+
@apply size-5;
|
|
31
|
+
& .avatar-image {
|
|
32
|
+
@apply size-5 object-cover rounded-avatar;
|
|
33
|
+
}
|
|
34
|
+
& .avatar-name {
|
|
35
|
+
@apply text-xs;
|
|
36
|
+
}
|
|
37
|
+
& .avatar-icon {
|
|
38
|
+
@apply size-3;
|
|
39
|
+
}
|
|
40
|
+
& .avatar-indicator {
|
|
41
|
+
@apply size-1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
80
44
|
|
|
81
|
-
|
|
82
|
-
|
|
45
|
+
&.is-sm {
|
|
46
|
+
@apply size-6;
|
|
47
|
+
& .avatar-image {
|
|
48
|
+
@apply size-6 object-cover rounded-avatar;
|
|
49
|
+
}
|
|
50
|
+
& .avatar-name {
|
|
51
|
+
@apply text-base;
|
|
52
|
+
}
|
|
53
|
+
& .avatar-icon {
|
|
54
|
+
@apply size-4;
|
|
55
|
+
}
|
|
56
|
+
& .avatar-indicator {
|
|
57
|
+
@apply size-2;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
83
60
|
|
|
84
|
-
|
|
85
|
-
@apply size-
|
|
61
|
+
&.is-md {
|
|
62
|
+
@apply size-7;
|
|
63
|
+
& .avatar-image {
|
|
64
|
+
@apply size-7 object-cover rounded-avatar;
|
|
65
|
+
}
|
|
66
|
+
& .avatar-name {
|
|
67
|
+
@apply text-lg;
|
|
68
|
+
}
|
|
69
|
+
& .avatar-icon {
|
|
70
|
+
@apply size-5;
|
|
71
|
+
}
|
|
72
|
+
& .avatar-indicator {
|
|
73
|
+
@apply size-2;
|
|
74
|
+
}
|
|
86
75
|
}
|
|
87
76
|
|
|
88
|
-
|
|
89
|
-
@apply
|
|
77
|
+
&.is-lg {
|
|
78
|
+
@apply size-10;
|
|
79
|
+
& .avatar-image {
|
|
80
|
+
@apply size-10 object-cover rounded-avatar;
|
|
81
|
+
}
|
|
82
|
+
& .avatar-name {
|
|
83
|
+
@apply text-xl;
|
|
84
|
+
}
|
|
85
|
+
& .avatar-icon {
|
|
86
|
+
@apply size-6;
|
|
87
|
+
}
|
|
88
|
+
& .avatar-indicator {
|
|
89
|
+
@apply size-3;
|
|
90
|
+
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
@apply size-
|
|
93
|
+
&.is-xl {
|
|
94
|
+
@apply size-14;
|
|
95
|
+
& .avatar-image {
|
|
96
|
+
@apply size-14 object-cover rounded-avatar;
|
|
97
|
+
}
|
|
98
|
+
& .avatar-name {
|
|
99
|
+
@apply text-3xl;
|
|
100
|
+
}
|
|
101
|
+
& .avatar-icon {
|
|
102
|
+
@apply size-8;
|
|
103
|
+
}
|
|
104
|
+
& .avatar-indicator {
|
|
105
|
+
@apply size-3;
|
|
106
|
+
}
|
|
94
107
|
}
|
|
95
108
|
}
|
|
96
109
|
|
|
97
|
-
.avatar.is-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.avatar-image {
|
|
101
|
-
@apply size-6 object-cover rounded-ui;
|
|
110
|
+
.avatar.is-soft {
|
|
111
|
+
&.is-primary {
|
|
112
|
+
@apply bg-on-primary text-primary ring-primary hover:bg-on-primary/80;
|
|
102
113
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
@apply text-base;
|
|
114
|
+
&.is-secondary {
|
|
115
|
+
@apply bg-on-secondary text-secondary ring-secondary hover:bg-on-secondary/80;
|
|
106
116
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
@apply size-2;
|
|
117
|
+
&.is-muted {
|
|
118
|
+
@apply bg-muted text-on-muted ring-muted hover:bg-muted/80;
|
|
110
119
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
.avatar.is-md {
|
|
114
|
-
@apply size-7;
|
|
115
|
-
|
|
116
|
-
.avatar-image {
|
|
117
|
-
@apply size-7 object-cover rounded-ui;
|
|
120
|
+
&.is-success {
|
|
121
|
+
@apply bg-on-success text-success ring-success hover:bg-on-success/80;
|
|
118
122
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
@apply text-xl;
|
|
123
|
+
&.is-info {
|
|
124
|
+
@apply bg-on-info text-info ring-info hover:bg-on-info/80;
|
|
122
125
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
&.is-warning {
|
|
127
|
+
@apply bg-on-warning text-warning ring-warning hover:bg-on-warning/80;
|
|
128
|
+
}
|
|
129
|
+
&.is-danger {
|
|
130
|
+
@apply bg-on-danger text-danger ring-danger hover:bg-on-danger/80;
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
|
|
129
|
-
.avatar.is-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
.avatar-image {
|
|
133
|
-
@apply size-10 object-cover rounded-ui;
|
|
134
|
+
.avatar.is-solid {
|
|
135
|
+
&.is-primary {
|
|
136
|
+
@apply bg-primary text-on-primary ring-primary hover:bg-primary/80;
|
|
134
137
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@apply text-3xl;
|
|
138
|
+
&.is-secondary {
|
|
139
|
+
@apply bg-secondary text-on-secondary ring-secondary hover:bg-secondary/80;
|
|
138
140
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
&.is-muted {
|
|
142
|
+
@apply bg-on-muted text-muted ring-muted hover:bg-on-muted/80;
|
|
143
|
+
}
|
|
144
|
+
&.is-success {
|
|
145
|
+
@apply bg-success text-on-success ring-success hover:bg-success/80;
|
|
142
146
|
}
|
|
147
|
+
&.is-info {
|
|
148
|
+
@apply bg-info text-on-info ring-info hover:bg-info/80;
|
|
149
|
+
}
|
|
150
|
+
&.is-warning {
|
|
151
|
+
@apply bg-warning text-on-warning ring-warning hover:bg-warning/80;
|
|
152
|
+
}
|
|
153
|
+
&.is-danger {
|
|
154
|
+
@apply bg-danger text-on-danger ring-danger hover:bg-danger/80;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.avatar-status {
|
|
159
|
+
@apply absolute bottom-0 right-0 translate-x-[25%];
|
|
143
160
|
}
|
|
144
161
|
|
|
145
|
-
.avatar
|
|
146
|
-
@apply
|
|
162
|
+
.avatar-indicator {
|
|
163
|
+
@apply ring ring-background rounded-full;
|
|
147
164
|
|
|
148
|
-
|
|
149
|
-
@apply
|
|
165
|
+
&.is-online {
|
|
166
|
+
@apply bg-success;
|
|
150
167
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@apply text-5xl;
|
|
168
|
+
&.is-busy {
|
|
169
|
+
@apply bg-warning;
|
|
154
170
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
171
|
+
&.is-away {
|
|
172
|
+
@apply bg-danger;
|
|
173
|
+
}
|
|
174
|
+
&.is-offline {
|
|
175
|
+
@apply bg-muted;
|
|
158
176
|
}
|
|
159
177
|
}
|
|
160
|
-
}
|
|
178
|
+
}
|
|
@@ -3,48 +3,71 @@
|
|
|
3
3
|
@apply relative w-fit;
|
|
4
4
|
}
|
|
5
5
|
.badge-content {
|
|
6
|
-
@apply absolute flex items-center justify-center rounded-
|
|
7
|
-
@apply inset-ring inset-ring-muted;
|
|
6
|
+
@apply absolute flex items-center justify-center rounded-full;
|
|
8
7
|
@apply h-5 min-w-5 px-1;
|
|
9
8
|
}
|
|
10
9
|
.badge-text {
|
|
11
10
|
@apply text-xs leading-none;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
/* Position styles */
|
|
15
13
|
.is-top-left .badge-content {
|
|
16
|
-
@apply top-
|
|
14
|
+
@apply top-[5%] left-[5%] translate-x-[-50%] translate-y-[-50%];
|
|
17
15
|
}
|
|
18
16
|
.is-top-right .badge-content {
|
|
19
|
-
@apply top-
|
|
17
|
+
@apply top-[5%] right-[5%] translate-x-[50%] translate-y-[-50%];
|
|
20
18
|
}
|
|
21
19
|
.is-bottom-left .badge-content {
|
|
22
|
-
@apply bottom-
|
|
20
|
+
@apply bottom-[5%] left-[5%] translate-x-[-50%] translate-y-[50%];
|
|
23
21
|
}
|
|
24
22
|
.is-bottom-right .badge-content {
|
|
25
|
-
@apply bottom-
|
|
23
|
+
@apply bottom-[5%] right-[5%] translate-x-[50%] translate-y-[50%];
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
.badge.is-solid {
|
|
27
|
+
&.is-primary .badge-content {
|
|
28
|
+
@apply bg-primary text-on-primary;
|
|
29
|
+
}
|
|
30
|
+
&.is-secondary .badge-content {
|
|
31
|
+
@apply bg-secondary text-on-secondary;
|
|
32
|
+
}
|
|
33
|
+
&.is-muted .badge-content {
|
|
34
|
+
@apply bg-muted text-on-muted;
|
|
35
|
+
}
|
|
36
|
+
&.is-success .badge-content {
|
|
37
|
+
@apply bg-success text-on-success;
|
|
38
|
+
}
|
|
39
|
+
&.is-warning .badge-content {
|
|
40
|
+
@apply bg-warning text-on-warning;
|
|
41
|
+
}
|
|
42
|
+
&.is-danger .badge-content {
|
|
43
|
+
@apply bg-danger text-on-danger;
|
|
44
|
+
}
|
|
45
|
+
&.is-info .badge-content {
|
|
46
|
+
@apply bg-info text-on-info;
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
|
|
50
|
+
.badge.is-soft {
|
|
51
|
+
&.is-primary .badge-content {
|
|
52
|
+
@apply bg-on-primary text-primary;
|
|
53
|
+
}
|
|
54
|
+
&.is-secondary .badge-content {
|
|
55
|
+
@apply bg-on-secondary text-secondary;
|
|
56
|
+
}
|
|
57
|
+
&.is-muted .badge-content {
|
|
58
|
+
@apply bg-muted text-on-muted;
|
|
59
|
+
}
|
|
60
|
+
&.is-success .badge-content {
|
|
61
|
+
@apply bg-on-success text-success;
|
|
62
|
+
}
|
|
63
|
+
&.is-warning .badge-content {
|
|
64
|
+
@apply bg-on-warning text-warning;
|
|
65
|
+
}
|
|
66
|
+
&.is-danger .badge-content {
|
|
67
|
+
@apply bg-on-danger text-danger;
|
|
68
|
+
}
|
|
69
|
+
&.is-info .badge-content {
|
|
70
|
+
@apply bg-on-info text-info;
|
|
71
|
+
}
|
|
49
72
|
}
|
|
50
73
|
}
|
|
@@ -1,83 +1,67 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.card {
|
|
3
|
-
@apply relative flex flex-col rounded-
|
|
3
|
+
@apply relative flex flex-col rounded-box overflow-hidden;
|
|
4
4
|
@apply transition-all duration-300 ease-in-out;
|
|
5
5
|
|
|
6
6
|
&:has(> .card-cover) {
|
|
7
7
|
@apply bg-transparent! text-white! text-shadow-sm! z-0;
|
|
8
8
|
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.card.is-primary {
|
|
12
|
-
@apply bg-on-primary text-primary;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.card.is-primary.is-solid {
|
|
16
|
-
@apply bg-primary text-on-primary;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.card.is-secondary {
|
|
20
|
-
@apply bg-on-secondary text-secondary;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.card.is-secondary.is-solid {
|
|
24
|
-
@apply bg-secondary text-on-secondary;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.card.is-success {
|
|
28
|
-
@apply bg-on-success text-success;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.card.is-success.is-solid {
|
|
32
|
-
@apply bg-success text-on-success;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.card.is-info {
|
|
36
|
-
@apply bg-on-info text-info;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.card.is-info.is-solid {
|
|
40
|
-
@apply bg-info text-on-info;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.card.is-warning {
|
|
44
|
-
@apply bg-on-warning text-warning;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.card.is-warning.is-solid {
|
|
48
|
-
@apply bg-warning text-on-warning;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.card.is-danger {
|
|
52
|
-
@apply bg-on-danger text-danger;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.card.is-danger.is-solid {
|
|
56
|
-
@apply bg-danger text-on-danger;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.card.is-muted {
|
|
60
|
-
@apply bg-muted text-on-muted;
|
|
61
|
-
}
|
|
62
9
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
10
|
+
&.is-soft {
|
|
11
|
+
&.is-primary { @apply bg-on-primary text-primary; }
|
|
12
|
+
&.is-secondary { @apply bg-on-secondary text-secondary; }
|
|
13
|
+
&.is-muted { @apply bg-muted text-on-muted; }
|
|
14
|
+
&.is-success { @apply bg-on-success text-success; }
|
|
15
|
+
&.is-info { @apply bg-on-info text-info; }
|
|
16
|
+
&.is-warning { @apply bg-on-warning text-warning; }
|
|
17
|
+
&.is-danger { @apply bg-on-danger text-danger; }
|
|
18
|
+
&.is-default { @apply bg-background text-on-background; }
|
|
19
|
+
&.is-surface { @apply bg-surface text-on-surface; }
|
|
20
|
+
}
|
|
66
21
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
22
|
+
&.is-solid {
|
|
23
|
+
&.is-primary { @apply bg-primary text-on-primary; }
|
|
24
|
+
&.is-secondary { @apply bg-secondary text-on-secondary; }
|
|
25
|
+
&.is-muted { @apply bg-on-muted text-muted; }
|
|
26
|
+
&.is-success { @apply bg-success text-on-success; }
|
|
27
|
+
&.is-info { @apply bg-info text-on-info; }
|
|
28
|
+
&.is-warning { @apply bg-warning text-on-warning; }
|
|
29
|
+
&.is-danger { @apply bg-danger text-on-danger; }
|
|
30
|
+
&.is-default { @apply bg-background text-on-background; }
|
|
31
|
+
&.is-surface { @apply bg-surface text-on-surface; }
|
|
32
|
+
}
|
|
70
33
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
34
|
+
&.is-outlined {
|
|
35
|
+
@apply border;
|
|
36
|
+
|
|
37
|
+
&.is-primary { @apply border-primary text-primary; }
|
|
38
|
+
&.is-secondary { @apply border-secondary text-secondary; }
|
|
39
|
+
&.is-muted { @apply border-on-muted text-on-muted; }
|
|
40
|
+
&.is-success { @apply border-success text-success; }
|
|
41
|
+
&.is-info { @apply border-info text-info; }
|
|
42
|
+
&.is-warning { @apply border-warning text-warning; }
|
|
43
|
+
&.is-danger { @apply border-danger text-danger; }
|
|
44
|
+
&.is-default { @apply border-on-background text-on-background; }
|
|
45
|
+
&.is-surface { @apply border-on-surface text-on-surface; }
|
|
46
|
+
}
|
|
74
47
|
|
|
75
|
-
|
|
76
|
-
|
|
48
|
+
&.is-ghost {
|
|
49
|
+
@apply bg-transparent;
|
|
50
|
+
|
|
51
|
+
&.is-primary { @apply text-primary; }
|
|
52
|
+
&.is-secondary { @apply text-secondary; }
|
|
53
|
+
&.is-muted { @apply text-on-muted; }
|
|
54
|
+
&.is-success { @apply text-success; }
|
|
55
|
+
&.is-info { @apply text-info; }
|
|
56
|
+
&.is-warning { @apply text-warning; }
|
|
57
|
+
&.is-danger { @apply text-danger; }
|
|
58
|
+
&.is-default { @apply text-on-background; }
|
|
59
|
+
&.is-surface { @apply text-on-surface; }
|
|
60
|
+
}
|
|
77
61
|
}
|
|
78
62
|
|
|
79
63
|
.card-cover {
|
|
80
|
-
@apply absolute inset-0 object-cover size-full rounded-
|
|
64
|
+
@apply absolute inset-0 object-cover size-full rounded-box -z-10;
|
|
81
65
|
}
|
|
82
66
|
|
|
83
67
|
.card-overlay {
|
|
@@ -85,11 +69,7 @@
|
|
|
85
69
|
}
|
|
86
70
|
|
|
87
71
|
.card-body {
|
|
88
|
-
@apply flex-1 w-full p-4 md:p-6;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.card-body:not(.prose) {
|
|
92
|
-
@apply column gap-4 md:gap-6;
|
|
72
|
+
@apply flex-1 w-full column gap-4 md:gap-6 p-4 md:p-6;
|
|
93
73
|
}
|
|
94
74
|
|
|
95
75
|
.card-header {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.carousel {
|
|
3
|
-
@apply flex flex-col gap-4 relative w-full
|
|
3
|
+
@apply flex flex-col gap-4 relative w-full;
|
|
4
4
|
|
|
5
5
|
&.is-vertical {
|
|
6
|
-
@apply flex-row;
|
|
6
|
+
@apply flex-row items-center;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.carousel-controls {
|
|
53
|
-
@apply flex items-center justify-center gap-2;
|
|
53
|
+
@apply flex items-center justify-center gap-2 relative z-10;
|
|
54
54
|
|
|
55
55
|
&.is-vertical {
|
|
56
56
|
@apply flex-col;
|
|
@@ -70,7 +70,27 @@
|
|
|
70
70
|
@apply bg-muted hover:bg-muted/70;
|
|
71
71
|
|
|
72
72
|
&.is-active {
|
|
73
|
-
|
|
73
|
+
&.is-primary {
|
|
74
|
+
@apply bg-primary;
|
|
75
|
+
}
|
|
76
|
+
&.is-secondary {
|
|
77
|
+
@apply bg-secondary;
|
|
78
|
+
}
|
|
79
|
+
&.is-muted {
|
|
80
|
+
@apply bg-on-muted;
|
|
81
|
+
}
|
|
82
|
+
&.is-success {
|
|
83
|
+
@apply bg-success;
|
|
84
|
+
}
|
|
85
|
+
&.is-info {
|
|
86
|
+
@apply bg-info;
|
|
87
|
+
}
|
|
88
|
+
&.is-warning {
|
|
89
|
+
@apply bg-warning;
|
|
90
|
+
}
|
|
91
|
+
&.is-danger {
|
|
92
|
+
@apply bg-danger;
|
|
93
|
+
}
|
|
74
94
|
}
|
|
75
95
|
|
|
76
96
|
&.is-sm {
|
|
@@ -169,7 +189,7 @@
|
|
|
169
189
|
|
|
170
190
|
.carousel-header-nav {
|
|
171
191
|
@apply flex items-center justify-center w-12 h-12 rounded-full;
|
|
172
|
-
@apply bg-surface text-on-surface transition-all duration-
|
|
192
|
+
@apply bg-surface text-on-surface transition-all duration-300;
|
|
173
193
|
@apply border border-muted shadow-sm;
|
|
174
194
|
@apply hover:bg-muted hover:scale-105 active:scale-95;
|
|
175
195
|
@apply disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:bg-surface disabled:hover:scale-100;
|