basecoat-css 0.3.11 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/base/base.css +150 -0
- package/dist/basecoat-base.cdn.css +2942 -0
- package/dist/basecoat-base.cdn.min.css +2 -0
- package/dist/basecoat-base.css +2 -0
- package/dist/basecoat-components.css +32 -0
- package/dist/basecoat-luma.cdn.css +6073 -0
- package/dist/basecoat-luma.cdn.min.css +2 -0
- package/dist/basecoat-luma.css +2 -0
- package/dist/basecoat-lyra.cdn.css +6004 -0
- package/dist/basecoat-lyra.cdn.min.css +2 -0
- package/dist/basecoat-lyra.css +2 -0
- package/dist/basecoat-maia.cdn.css +6012 -0
- package/dist/basecoat-maia.cdn.min.css +2 -0
- package/dist/basecoat-maia.css +2 -0
- package/dist/basecoat-mira.cdn.css +6063 -0
- package/dist/basecoat-mira.cdn.min.css +2 -0
- package/dist/basecoat-mira.css +2 -0
- package/dist/basecoat-nova.cdn.css +6067 -0
- package/dist/basecoat-nova.cdn.min.css +2 -0
- package/dist/basecoat-nova.css +2 -0
- package/dist/basecoat-rhea.cdn.css +6092 -0
- package/dist/basecoat-rhea.cdn.min.css +2 -0
- package/dist/basecoat-rhea.css +2 -0
- package/dist/basecoat-sera.cdn.css +5840 -0
- package/dist/basecoat-sera.cdn.min.css +2 -0
- package/dist/basecoat-sera.css +2 -0
- package/dist/basecoat-vega.cdn.css +6023 -0
- package/dist/basecoat-vega.cdn.min.css +2 -0
- package/dist/basecoat-vega.css +2 -0
- package/dist/basecoat.all.css +1 -0
- package/dist/basecoat.cdn.css +5084 -2646
- package/dist/basecoat.cdn.min.css +1 -1
- package/dist/basecoat.css +1 -1311
- package/dist/components/alert.css +21 -0
- package/dist/components/badge.css +12 -0
- package/dist/components/button-group.css +54 -0
- package/dist/components/button.css +61 -0
- package/dist/components/card.css +22 -0
- package/dist/components/checkbox.css +12 -0
- package/dist/components/collapsible.css +21 -0
- package/dist/components/combobox.css +78 -0
- package/dist/components/command.css +133 -0
- package/dist/components/dialog.css +52 -0
- package/dist/components/dropdown-menu.css +48 -0
- package/dist/components/empty.css +26 -0
- package/dist/components/field.css +86 -0
- package/dist/components/form.css +9 -0
- package/dist/components/input-group.css +50 -0
- package/dist/components/input.css +32 -0
- package/dist/components/item.css +50 -0
- package/dist/components/kbd.css +10 -0
- package/dist/components/label.css +12 -0
- package/dist/components/native-select.css +12 -0
- package/dist/components/popover.css +81 -0
- package/dist/components/radio.css +11 -0
- package/dist/components/range.css +50 -0
- package/dist/components/select.css +64 -0
- package/dist/components/sidebar.css +101 -0
- package/dist/components/skeleton.css +6 -0
- package/dist/components/switch.css +8 -0
- package/dist/components/table.css +34 -0
- package/dist/components/tabs.css +31 -0
- package/dist/components/textarea.css +7 -0
- package/dist/components/toast.css +57 -0
- package/dist/components/tooltip.css +82 -0
- package/dist/js/all.js +1435 -755
- package/dist/js/all.min.js +1 -1
- package/dist/js/basecoat.js +95 -40
- package/dist/js/basecoat.min.js +1 -1
- package/dist/js/combobox.js +483 -0
- package/dist/js/combobox.min.js +1 -0
- package/dist/js/command.js +165 -126
- package/dist/js/command.min.js +1 -1
- package/dist/js/dropdown-menu.js +158 -133
- package/dist/js/dropdown-menu.min.js +1 -1
- package/dist/js/popover.js +22 -8
- package/dist/js/popover.min.js +1 -1
- package/dist/js/range.js +25 -0
- package/dist/js/range.min.js +1 -0
- package/dist/js/select.js +347 -359
- package/dist/js/select.min.js +1 -1
- package/dist/js/sidebar.js +27 -31
- package/dist/js/sidebar.min.js +1 -1
- package/dist/js/tabs.js +82 -38
- package/dist/js/tabs.min.js +1 -1
- package/dist/js/toast.js +42 -37
- package/dist/js/toast.min.js +1 -1
- package/dist/styles/luma.css +1308 -0
- package/dist/styles/lyra.css +1289 -0
- package/dist/styles/maia.css +1296 -0
- package/dist/styles/mira.css +1297 -0
- package/dist/styles/nova.css +1293 -0
- package/dist/styles/rhea.css +1305 -0
- package/dist/styles/sera.css +1316 -0
- package/dist/styles/vega.css +1293 -0
- package/package.json +51 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Alert */
|
|
2
|
+
@layer components {
|
|
3
|
+
.alert,
|
|
4
|
+
.alert-destructive {
|
|
5
|
+
@apply relative w-full;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.alert > :is(h2, h3, h4, h5, h6, strong, [data-title]),
|
|
9
|
+
.alert-destructive > :is(h2, h3, h4, h5, h6, strong, [data-title]) {
|
|
10
|
+
@apply min-h-4;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.alert > section,
|
|
14
|
+
.alert-destructive > section {
|
|
15
|
+
@apply grid justify-items-start gap-1;
|
|
16
|
+
|
|
17
|
+
ul {
|
|
18
|
+
@apply list-inside list-disc;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Badge */
|
|
2
|
+
@layer components {
|
|
3
|
+
.badge,
|
|
4
|
+
.badge-primary,
|
|
5
|
+
.badge-secondary,
|
|
6
|
+
.badge-destructive,
|
|
7
|
+
.badge-outline,
|
|
8
|
+
.badge-ghost,
|
|
9
|
+
.badge-link {
|
|
10
|
+
@apply inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* Button Group */
|
|
2
|
+
@layer components {
|
|
3
|
+
.button-group {
|
|
4
|
+
@apply isolate inline-flex w-fit items-stretch;
|
|
5
|
+
|
|
6
|
+
> .input {
|
|
7
|
+
@apply flex-1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> *:focus-visible,
|
|
11
|
+
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
|
|
12
|
+
@apply relative z-10;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> :is(hr[role='separator'], .button-group-separator) {
|
|
16
|
+
@apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:not([data-orientation='vertical']) {
|
|
20
|
+
> *:not(:first-child),
|
|
21
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
22
|
+
@apply rounded-s-none border-s-0;
|
|
23
|
+
}
|
|
24
|
+
> *:not(:last-child),
|
|
25
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
26
|
+
@apply rounded-e-none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&[data-orientation='vertical'] {
|
|
30
|
+
@apply flex-col;
|
|
31
|
+
|
|
32
|
+
> :is(hr[role='separator'], .button-group-separator) {
|
|
33
|
+
@apply w-auto h-px mx-px my-0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> *:not(:first-child),
|
|
37
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
38
|
+
@apply rounded-t-none border-t-0;
|
|
39
|
+
}
|
|
40
|
+
> *:not(:last-child),
|
|
41
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
42
|
+
@apply rounded-b-none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.button-group-text {
|
|
48
|
+
@apply flex items-center [&_svg]:pointer-events-none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.button-group-separator {
|
|
52
|
+
@apply relative self-stretch shrink-0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* Button */
|
|
2
|
+
@layer components {
|
|
3
|
+
.btn,
|
|
4
|
+
.btn-primary,
|
|
5
|
+
.btn-secondary,
|
|
6
|
+
.btn-outline,
|
|
7
|
+
.btn-ghost,
|
|
8
|
+
.btn-link,
|
|
9
|
+
.btn-destructive,
|
|
10
|
+
.btn-xs,
|
|
11
|
+
.btn-xs-primary,
|
|
12
|
+
.btn-xs-secondary,
|
|
13
|
+
.btn-xs-outline,
|
|
14
|
+
.btn-xs-ghost,
|
|
15
|
+
.btn-xs-link,
|
|
16
|
+
.btn-xs-destructive,
|
|
17
|
+
.btn-sm,
|
|
18
|
+
.btn-sm-primary,
|
|
19
|
+
.btn-sm-secondary,
|
|
20
|
+
.btn-sm-outline,
|
|
21
|
+
.btn-sm-ghost,
|
|
22
|
+
.btn-sm-link,
|
|
23
|
+
.btn-sm-destructive,
|
|
24
|
+
.btn-lg,
|
|
25
|
+
.btn-lg-primary,
|
|
26
|
+
.btn-lg-secondary,
|
|
27
|
+
.btn-lg-outline,
|
|
28
|
+
.btn-lg-ghost,
|
|
29
|
+
.btn-lg-link,
|
|
30
|
+
.btn-lg-destructive,
|
|
31
|
+
.btn-icon,
|
|
32
|
+
.btn-icon-primary,
|
|
33
|
+
.btn-icon-secondary,
|
|
34
|
+
.btn-icon-outline,
|
|
35
|
+
.btn-icon-ghost,
|
|
36
|
+
.btn-icon-link,
|
|
37
|
+
.btn-icon-destructive,
|
|
38
|
+
.btn-xs-icon,
|
|
39
|
+
.btn-xs-icon-primary,
|
|
40
|
+
.btn-xs-icon-secondary,
|
|
41
|
+
.btn-xs-icon-outline,
|
|
42
|
+
.btn-xs-icon-ghost,
|
|
43
|
+
.btn-xs-icon-link,
|
|
44
|
+
.btn-xs-icon-destructive,
|
|
45
|
+
.btn-sm-icon,
|
|
46
|
+
.btn-sm-icon-primary,
|
|
47
|
+
.btn-sm-icon-secondary,
|
|
48
|
+
.btn-sm-icon-outline,
|
|
49
|
+
.btn-sm-icon-ghost,
|
|
50
|
+
.btn-sm-icon-link,
|
|
51
|
+
.btn-sm-icon-destructive,
|
|
52
|
+
.btn-lg-icon,
|
|
53
|
+
.btn-lg-icon-primary,
|
|
54
|
+
.btn-lg-icon-secondary,
|
|
55
|
+
.btn-lg-icon-outline,
|
|
56
|
+
.btn-lg-icon-ghost,
|
|
57
|
+
.btn-lg-icon-link,
|
|
58
|
+
.btn-lg-icon-destructive {
|
|
59
|
+
@apply inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Card */
|
|
2
|
+
@layer components {
|
|
3
|
+
.card {
|
|
4
|
+
@apply flex flex-col;
|
|
5
|
+
|
|
6
|
+
> header {
|
|
7
|
+
@apply @container/card-header grid auto-rows-min items-start has-[>[data-slot=card-action],>.card-action]:grid-cols-[1fr_auto] has-[>p]:grid-rows-[auto_auto];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> header > :is(h2, h3, [data-title], .card-title) {
|
|
11
|
+
@apply leading-none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> header > :is([data-slot='card-action'], .card-action) {
|
|
15
|
+
@apply col-start-2 row-span-2 row-start-1 self-start justify-self-end;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
> footer {
|
|
19
|
+
@apply flex items-center;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Checkbox */
|
|
2
|
+
@layer components {
|
|
3
|
+
.field > input[type='checkbox']:not([role='switch']),
|
|
4
|
+
.input[type='checkbox']:not([role='switch']) {
|
|
5
|
+
@apply relative shrink-0 appearance-none outline-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
6
|
+
|
|
7
|
+
&:checked:after {
|
|
8
|
+
@apply content-[''] block bg-current;
|
|
9
|
+
@apply mask-[image:var(--check-icon)] mask-size-[0.875rem] mask-no-repeat mask-center;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Collapsible */
|
|
2
|
+
@layer components {
|
|
3
|
+
details {
|
|
4
|
+
&::details-content {
|
|
5
|
+
block-size: 0;
|
|
6
|
+
@apply block opacity-0 transition-discrete transition-all;
|
|
7
|
+
}
|
|
8
|
+
&[open]::details-content {
|
|
9
|
+
block-size: auto;
|
|
10
|
+
block-size: calc-size(auto, size);
|
|
11
|
+
@apply opacity-100;
|
|
12
|
+
}
|
|
13
|
+
summary {
|
|
14
|
+
@apply inline-flex items-center cursor-pointer;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
details > summary::-webkit-details-marker {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* Combobox */
|
|
2
|
+
@layer components {
|
|
3
|
+
.combobox {
|
|
4
|
+
@apply relative inline-flex w-fit flex-col;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.combobox > input[role='combobox'] {
|
|
8
|
+
@apply w-full min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.combobox > svg,
|
|
12
|
+
.combobox-trigger-icon {
|
|
13
|
+
@apply pointer-events-none absolute shrink-0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.combobox [data-popover] {
|
|
17
|
+
@apply isolate overflow-hidden;
|
|
18
|
+
min-width: max(100%, 9rem);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.combobox [role='listbox'] {
|
|
22
|
+
@apply outline-hidden overflow-y-auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.combobox [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
26
|
+
@apply hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
30
|
+
@apply flex items-center justify-center truncate;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.combobox [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
34
|
+
@apply content-[attr(data-empty)];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.combobox [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
38
|
+
@apply content-['No_results_found'];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.combobox [role='option'] {
|
|
42
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none aria-disabled:pointer-events-none aria-disabled:opacity-50 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.combobox [role='option'][aria-selected='true'] {
|
|
46
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.combobox [role='option'][aria-selected='true']:dir(rtl) {
|
|
50
|
+
@apply bg-position-[center_left_0.5rem];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.combobox [role='separator'] {
|
|
54
|
+
@apply border-0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.combobox [role='option'].active,
|
|
58
|
+
.combobox [role='option']:focus-visible,
|
|
59
|
+
.combobox:not([data-combobox-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover {
|
|
60
|
+
@apply bg-accent text-accent-foreground;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.combobox-chips {
|
|
64
|
+
@apply flex w-full min-w-0 flex-wrap items-center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.combobox-chips > input[role='combobox'] {
|
|
68
|
+
@apply min-w-16 flex-1 bg-transparent outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.combobox-chip {
|
|
72
|
+
@apply inline-flex w-fit shrink-0 items-center whitespace-nowrap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.combobox-chip-remove {
|
|
76
|
+
@apply inline-flex items-center justify-center;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* Command */
|
|
2
|
+
@layer components {
|
|
3
|
+
.command-dialog {
|
|
4
|
+
@apply inset-y-0 bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete;
|
|
5
|
+
max-width: none;
|
|
6
|
+
max-height: none;
|
|
7
|
+
|
|
8
|
+
&:is([open], :popover-open) {
|
|
9
|
+
@apply opacity-100;
|
|
10
|
+
|
|
11
|
+
&::backdrop {
|
|
12
|
+
@apply opacity-100;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> * {
|
|
16
|
+
@apply scale-100;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@starting-style {
|
|
20
|
+
@apply opacity-0;
|
|
21
|
+
|
|
22
|
+
&::backdrop {
|
|
23
|
+
@apply opacity-0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> * {
|
|
27
|
+
@apply scale-95;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&::backdrop {
|
|
33
|
+
@apply opacity-0 transition-all transition-discrete;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> * {
|
|
37
|
+
@apply fixed top-1/3 left-1/2 z-50 flex max-h-[min(640px,calc(100%_-_2rem))] w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 translate-y-0 scale-95 flex-col overflow-hidden transition-all sm:max-w-lg;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> * > :is(button, form[method='dialog']) {
|
|
41
|
+
@apply absolute;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> * > :is(button, form[method='dialog'] > button) {
|
|
45
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
49
|
+
@apply size-4;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.command {
|
|
54
|
+
@apply flex w-full flex-col overflow-hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.command > header {
|
|
58
|
+
@apply flex items-center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.command > header svg {
|
|
62
|
+
@apply shrink-0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.command > header input {
|
|
66
|
+
@apply w-full bg-transparent outline-hidden disabled:cursor-not-allowed disabled:opacity-50;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.command [role='menu'] {
|
|
70
|
+
@apply overflow-x-hidden overflow-y-auto outline-hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.command [role='menuitem'] {
|
|
74
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.command [role='menuitem'].active {
|
|
78
|
+
@apply bg-accent text-accent-foreground;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.command [role='group'] {
|
|
82
|
+
@apply overflow-hidden;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.command [role='group']:not(:has([role='menuitem']:not([aria-hidden='true']))) {
|
|
86
|
+
@apply hidden;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.command [role='heading'] {
|
|
90
|
+
@apply flex;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.command [role='separator'] {
|
|
94
|
+
@apply border-0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.command [data-shortcut] {
|
|
98
|
+
@apply ms-auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.command [data-indicator] {
|
|
102
|
+
@apply ms-auto opacity-0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.command [role='menuitem'][data-checked='true'] [data-indicator],
|
|
106
|
+
.command [role='menuitem'][aria-selected='true'] [data-indicator] {
|
|
107
|
+
@apply opacity-100;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.command [role='menuitem']:has([data-shortcut]) [data-indicator] {
|
|
111
|
+
@apply hidden;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
115
|
+
@apply flex items-center justify-center truncate;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.command [role='menu'][data-empty]:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
119
|
+
@apply content-[attr(data-empty)];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.command [role='menu']:not([data-empty]):not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
123
|
+
@apply content-['No_results_found'];
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
|
|
127
|
+
@apply bg-accent text-accent-foreground;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.command:has(> header input:not(:placeholder-shown)) [role='separator'] {
|
|
131
|
+
@apply hidden;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* Dialog */
|
|
2
|
+
@layer components {
|
|
3
|
+
.dialog {
|
|
4
|
+
@apply bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete;
|
|
5
|
+
max-width: none;
|
|
6
|
+
max-height: none;
|
|
7
|
+
|
|
8
|
+
&:is([open], :popover-open) {
|
|
9
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
10
|
+
|
|
11
|
+
> * {
|
|
12
|
+
@apply scale-100;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@starting-style {
|
|
16
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
17
|
+
|
|
18
|
+
> * {
|
|
19
|
+
@apply scale-95;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> * {
|
|
25
|
+
@apply fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100%_-_2rem)] w-full -translate-x-1/2 -translate-y-1/2 scale-95 flex-col transition-all outline-hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> * > header {
|
|
29
|
+
@apply flex flex-col;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> * > section {
|
|
33
|
+
@apply flex-1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> * > footer {
|
|
37
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> * > :is(button, form[method='dialog']) {
|
|
41
|
+
@apply absolute;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> * > :is(button, form[method='dialog'] > button) {
|
|
45
|
+
@apply inline-flex items-center justify-center opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
49
|
+
@apply size-4;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Dropdown Menu */
|
|
2
|
+
@layer components {
|
|
3
|
+
.dropdown-menu {
|
|
4
|
+
@apply relative inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dropdown-menu > [data-popover] {
|
|
8
|
+
min-width: anchor-size(width);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dropdown-menu [role='menu'] {
|
|
12
|
+
@apply outline-hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dropdown-menu :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
16
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center truncate outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dropdown-menu [role='menu'] [role='heading'] {
|
|
20
|
+
@apply flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dropdown-menu [role='separator'] {
|
|
24
|
+
@apply border-0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dropdown-menu [data-shortcut] {
|
|
28
|
+
@apply ms-auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdown-menu [data-indicator] {
|
|
32
|
+
@apply pointer-events-none invisible;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.dropdown-menu :is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-indicator] {
|
|
36
|
+
@apply visible;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dropdown-menu [data-rtl-flip] {
|
|
40
|
+
@apply rtl:rotate-180;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dropdown-menu:not([data-dropdown-menu-initialized]) :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
44
|
+
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
45
|
+
@apply bg-accent text-accent-foreground;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Empty */
|
|
2
|
+
@layer components {
|
|
3
|
+
.empty {
|
|
4
|
+
@apply flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.empty > header {
|
|
8
|
+
@apply flex max-w-sm flex-col items-center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.empty figure {
|
|
12
|
+
@apply flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.empty figure:has(img) {
|
|
16
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.empty > :is(section, footer) {
|
|
20
|
+
@apply flex w-full max-w-sm min-w-0 flex-col items-center text-balance;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.empty p {
|
|
24
|
+
@apply [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* Field */
|
|
2
|
+
@layer components {
|
|
3
|
+
.fieldset {
|
|
4
|
+
@apply flex flex-col;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.fieldset > :is([role='group'], [role='radiogroup']):not(.field),
|
|
8
|
+
.field > :is(fieldset, [role='group'], [role='radiogroup']):not(.field) {
|
|
9
|
+
@apply @container/field-group flex w-full flex-col;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.field {
|
|
13
|
+
@apply flex w-full flex-col data-[invalid=true]:text-destructive [&>*]:w-full [&>.sr-only]:w-auto;
|
|
14
|
+
|
|
15
|
+
&[data-orientation='horizontal'] {
|
|
16
|
+
@apply flex-row items-center [&>label]:flex-auto has-[>section]:items-start has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px [&_p]:text-balance;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[data-orientation='responsive'] {
|
|
20
|
+
@apply flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:has-[>section]:items-start @md/field-group:[&>label]:flex-auto @md/field-group:has-[>section]:[&>[type=checkbox],[type=radio]]:mt-px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
section,
|
|
24
|
+
.field-content {
|
|
25
|
+
@apply flex flex-1 flex-col leading-snug;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
h2,
|
|
29
|
+
h3,
|
|
30
|
+
.field-title {
|
|
31
|
+
@apply flex w-fit items-center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[role='alert'],
|
|
35
|
+
.field-error {
|
|
36
|
+
@apply font-normal;
|
|
37
|
+
|
|
38
|
+
ul {
|
|
39
|
+
@apply ms-4 flex list-disc flex-col gap-1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.field > label,
|
|
45
|
+
label:has(> .field) {
|
|
46
|
+
@apply w-fit;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.field > label:has(> .field),
|
|
50
|
+
.field > label:has(input[type='radio']),
|
|
51
|
+
.field > label:has(input[type='checkbox']),
|
|
52
|
+
.field > label:has(input[role='switch']),
|
|
53
|
+
label:has(> .field) {
|
|
54
|
+
@apply w-full;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.field > label:has(> .field),
|
|
58
|
+
label:has(> .field) {
|
|
59
|
+
@apply flex-col;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.field-description,
|
|
63
|
+
.fieldset legend + p,
|
|
64
|
+
.field > p,
|
|
65
|
+
.field section > p {
|
|
66
|
+
@apply leading-normal font-normal [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.field > p,
|
|
70
|
+
.field section > p,
|
|
71
|
+
.field-description {
|
|
72
|
+
@apply last:mt-0 nth-last-2:-mt-1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.field-separator {
|
|
76
|
+
@apply relative;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.field-separator > hr[role='separator'] {
|
|
80
|
+
@apply absolute inset-x-0 top-1/2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.field-separator > span {
|
|
84
|
+
@apply relative mx-auto block w-fit bg-background;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* Input Group */
|
|
2
|
+
@layer components {
|
|
3
|
+
.input-group {
|
|
4
|
+
@apply relative isolate flex w-full min-w-0 items-center overflow-hidden outline-none;
|
|
5
|
+
|
|
6
|
+
&[data-orientation='vertical'] {
|
|
7
|
+
@apply h-auto flex-col items-stretch;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.input-group > :is(input, textarea, select, [data-control]) {
|
|
12
|
+
@apply text-foreground placeholder:text-muted-foreground block min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent shadow-none outline-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 disabled:bg-transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.input-group > :is(input, select, [data-control]) {
|
|
16
|
+
@apply h-full;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.input-group > [data-control] {
|
|
20
|
+
@apply w-full;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.input-group[data-orientation='vertical'] > :is(input, select, [data-control]) {
|
|
24
|
+
@apply h-auto flex-none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.input-group > textarea {
|
|
28
|
+
@apply field-sizing-content min-h-20 w-full resize-none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.input-group > :is(span, kbd, svg, [role='group'], .popover, .dropdown-menu, button, footer, header, hr[role='separator']) {
|
|
32
|
+
@apply shrink-0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.input-group > :is(span, [role='group'], footer, header) {
|
|
36
|
+
@apply inline-flex items-center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.input-group > svg {
|
|
40
|
+
@apply pointer-events-none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.input-group > [data-align='start'] {
|
|
44
|
+
@apply order-first;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.input-group > [data-align='end'] {
|
|
48
|
+
@apply order-last;
|
|
49
|
+
}
|
|
50
|
+
}
|