@stsdti/auditing-vue 0.0.0-stage → 0.1.5
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/LICENSE +21 -0
- package/README.md +197 -2
- package/dist/auditing-vue.mjs +2278 -0
- package/dist/auditing-vue.mjs.map +1 -0
- package/package.json +68 -4
- package/scripts/vendor-funky-styles.mjs +135 -0
- package/src/components/audit/AuditChanges.vue +181 -0
- package/src/components/audit/AuditChangesDialog.vue +106 -0
- package/src/components/audit/AuditEventBadge.vue +51 -0
- package/src/components/audit/AuditFilterSelect.vue +303 -0
- package/src/components/audit/AuditFilters.vue +164 -0
- package/src/components/audit/AuditHistory.vue +133 -0
- package/src/components/audit/AuditHistoryButton.vue +99 -0
- package/src/components/audit/AuditTable.vue +622 -0
- package/src/components/audit/AuditTimeline.vue +311 -0
- package/src/components/ui/UiDialog.vue +166 -0
- package/src/components/ui/UiLoadingBlur.vue +29 -0
- package/src/index.js +61 -0
- package/src/shared.js +95 -0
- package/src/styles/base.css +104 -0
- package/src/styles/generated/style-nova.css +256 -0
- package/src/styles/generated/style-rhea.css +256 -0
- package/src/styles/generated/tokens.css +288 -0
- package/src/styles/nova.css +8 -0
- package/src/styles/rhea.css +8 -0
- package/src/themes/nova.css +2 -0
- package/src/themes/rhea.css +2 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
:where(.laravel-auditing) {
|
|
2
|
+
font-family: var(--font-sans);
|
|
3
|
+
font-size: 1rem;
|
|
4
|
+
line-height: 1.5;
|
|
5
|
+
color: var(--foreground);
|
|
6
|
+
text-align: left;
|
|
7
|
+
font-synthesis-weight: none;
|
|
8
|
+
text-rendering: optimizeLegibility;
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.laravel-auditing) :where(*, ::before, ::after, ::backdrop) {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
border: 0 solid var(--border);
|
|
15
|
+
outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(.laravel-auditing) :where(h1, h2, h3, h4, h5, h6, p, ol, ul, li, dl, dd, figure, pre, table, blockquote) {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.laravel-auditing) :where(h1, h2, h3, h4, h5, h6) {
|
|
24
|
+
font-size: inherit;
|
|
25
|
+
font-weight: inherit;
|
|
26
|
+
color: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.laravel-auditing) :where(ol, ul) {
|
|
30
|
+
list-style: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.laravel-auditing) :where(a) {
|
|
34
|
+
color: inherit;
|
|
35
|
+
text-decoration: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where(.laravel-auditing) :where(b, strong) {
|
|
39
|
+
font-weight: bolder;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.laravel-auditing) :where(button, input, select, textarea) {
|
|
43
|
+
font: inherit;
|
|
44
|
+
color: inherit;
|
|
45
|
+
letter-spacing: inherit;
|
|
46
|
+
background-color: transparent;
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(.laravel-auditing) :where(button, [role=button], select) {
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.laravel-auditing) :where(button:disabled) {
|
|
58
|
+
cursor: default;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.laravel-auditing) :where(table) {
|
|
62
|
+
border-collapse: collapse;
|
|
63
|
+
text-indent: 0;
|
|
64
|
+
border-color: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(.laravel-auditing) :where(svg, img) {
|
|
68
|
+
display: block;
|
|
69
|
+
vertical-align: middle;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where(.laravel-auditing) :where(img) {
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
height: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(.laravel-auditing) :where(code, pre, kbd) {
|
|
78
|
+
font-family: var(--font-mono);
|
|
79
|
+
font-size: 1em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(.laravel-auditing) :where(::placeholder) {
|
|
83
|
+
color: var(--muted-foreground);
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(.laravel-auditing) :where([hidden]:not([hidden=until-found])) {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where(.laravel-auditing) :where(.cn-font-heading) {
|
|
92
|
+
font-family: var(--font-heading);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.laravel-auditing :where([data-state], [data-state] *) {
|
|
97
|
+
animation: none;
|
|
98
|
+
transition-duration: 0s;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.laravel-auditing {
|
|
103
|
+
@tailwind utilities;
|
|
104
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/* Generated by scripts/vendor-funky-styles.mjs from @stsdti/funky-ui-kit (styles/style-nova.css, status.css, surface.css). Do not edit by hand: run `npm run vendor:styles`. */
|
|
2
|
+
|
|
3
|
+
:where(:root) {
|
|
4
|
+
--layout-gap: --spacing(4);
|
|
5
|
+
--section-gap: --spacing(3);
|
|
6
|
+
--form-gap: --spacing(3);
|
|
7
|
+
--toolbar-h: --spacing(12);
|
|
8
|
+
--grid-row-h: 36px;
|
|
9
|
+
--surface-padding: --spacing(4);
|
|
10
|
+
--radius-control: var(--radius);
|
|
11
|
+
--radius-item: calc(var(--radius) * 0.8);
|
|
12
|
+
--focus-ring-opacity: 50%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.laravel-auditing {
|
|
16
|
+
:where(.cn-badge) {
|
|
17
|
+
@apply h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3!;
|
|
18
|
+
}
|
|
19
|
+
:where(.cn-badge-variant-default) {
|
|
20
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
21
|
+
}
|
|
22
|
+
:where(.cn-badge-variant-secondary) {
|
|
23
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
24
|
+
}
|
|
25
|
+
:where(.cn-badge-variant-outline) {
|
|
26
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
27
|
+
}
|
|
28
|
+
:where(.cn-badge-variant-destructive) {
|
|
29
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
30
|
+
}
|
|
31
|
+
:where(.cn-badge-variant-ghost) {
|
|
32
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
33
|
+
}
|
|
34
|
+
:where(.cn-badge-variant-link) {
|
|
35
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
36
|
+
}
|
|
37
|
+
:where(.cn-button) {
|
|
38
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-1 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4;
|
|
39
|
+
}
|
|
40
|
+
:where(.cn-button-variant-default) {
|
|
41
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
42
|
+
}
|
|
43
|
+
:where(.cn-button-variant-outline) {
|
|
44
|
+
@apply border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
45
|
+
}
|
|
46
|
+
:where(.cn-button-variant-secondary) {
|
|
47
|
+
@apply bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
48
|
+
}
|
|
49
|
+
:where(.cn-button-variant-ghost) {
|
|
50
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
51
|
+
}
|
|
52
|
+
:where(.cn-button-variant-destructive) {
|
|
53
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
54
|
+
}
|
|
55
|
+
:where(.cn-button-variant-link) {
|
|
56
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
57
|
+
}
|
|
58
|
+
:where(.cn-button-size-xs) {
|
|
59
|
+
@apply h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3;
|
|
60
|
+
}
|
|
61
|
+
:where(.cn-button-size-sm) {
|
|
62
|
+
@apply h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3.5;
|
|
63
|
+
}
|
|
64
|
+
:where(.cn-button-size-default) {
|
|
65
|
+
@apply h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
66
|
+
}
|
|
67
|
+
:where(.cn-button-size-lg) {
|
|
68
|
+
@apply h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
69
|
+
}
|
|
70
|
+
:where(.cn-button-size-icon-xs) {
|
|
71
|
+
@apply size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=size-])]:size-3;
|
|
72
|
+
}
|
|
73
|
+
:where(.cn-button-size-icon-sm) {
|
|
74
|
+
@apply size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg;
|
|
75
|
+
}
|
|
76
|
+
:where(.cn-button-size-icon) {
|
|
77
|
+
@apply size-8;
|
|
78
|
+
}
|
|
79
|
+
:where(.cn-button-size-icon-lg) {
|
|
80
|
+
@apply size-9;
|
|
81
|
+
}
|
|
82
|
+
:where(.cn-button-group) {
|
|
83
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg;
|
|
84
|
+
}
|
|
85
|
+
:where(.cn-button-group-orientation-horizontal) {
|
|
86
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!;
|
|
87
|
+
}
|
|
88
|
+
:where(.cn-card) {
|
|
89
|
+
@apply ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl;
|
|
90
|
+
}
|
|
91
|
+
:where(.cn-card-header) {
|
|
92
|
+
@apply gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3;
|
|
93
|
+
}
|
|
94
|
+
:where(.cn-card-title) {
|
|
95
|
+
@apply text-base leading-snug font-medium group-data-[size=sm]/card:text-sm;
|
|
96
|
+
}
|
|
97
|
+
:where(.cn-card-description) {
|
|
98
|
+
@apply text-muted-foreground text-sm;
|
|
99
|
+
}
|
|
100
|
+
:where(.cn-card-content) {
|
|
101
|
+
@apply px-4 group-data-[size=sm]/card:px-3;
|
|
102
|
+
}
|
|
103
|
+
:where(.cn-combobox-content) {
|
|
104
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none;
|
|
105
|
+
}
|
|
106
|
+
:where(.cn-combobox-item) {
|
|
107
|
+
@apply data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:not-data-[slot=badge]:not-in-data-[slot=badge]:text-accent-foreground gap-2 rounded-md py-1.5 pr-8 pl-1.5 text-sm [&_svg:not([class*=size-])]:size-4;
|
|
108
|
+
}
|
|
109
|
+
:where(.cn-combobox-item-indicator) {
|
|
110
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
111
|
+
}
|
|
112
|
+
:where(.cn-combobox-empty) {
|
|
113
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex;
|
|
114
|
+
}
|
|
115
|
+
:where(.cn-combobox-list) {
|
|
116
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
117
|
+
}
|
|
118
|
+
:where(.cn-combobox-item-text) {
|
|
119
|
+
@apply flex flex-1 gap-2;
|
|
120
|
+
}
|
|
121
|
+
:where(.cn-combobox-trigger-icon) {
|
|
122
|
+
@apply text-muted-foreground size-4;
|
|
123
|
+
}
|
|
124
|
+
:where(.cn-combobox-chips) {
|
|
125
|
+
@apply dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-1 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1;
|
|
126
|
+
}
|
|
127
|
+
:where(.cn-combobox-chip) {
|
|
128
|
+
@apply bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0;
|
|
129
|
+
}
|
|
130
|
+
:where(.cn-combobox-chip-remove) {
|
|
131
|
+
@apply -ml-1 opacity-50 hover:opacity-100;
|
|
132
|
+
}
|
|
133
|
+
:where(.cn-dialog-overlay) {
|
|
134
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs;
|
|
135
|
+
}
|
|
136
|
+
:where(.cn-dialog-content) {
|
|
137
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-4 rounded-xl p-4 text-sm ring-1 duration-100 sm:max-w-sm;
|
|
138
|
+
}
|
|
139
|
+
:where(.cn-dialog-close) {
|
|
140
|
+
@apply absolute top-2 right-2;
|
|
141
|
+
}
|
|
142
|
+
:where(.cn-empty) {
|
|
143
|
+
@apply gap-4 rounded-xl border-dashed p-6;
|
|
144
|
+
}
|
|
145
|
+
:where(.cn-empty-header) {
|
|
146
|
+
@apply gap-2;
|
|
147
|
+
}
|
|
148
|
+
:where(.cn-empty-media) {
|
|
149
|
+
@apply mb-2;
|
|
150
|
+
}
|
|
151
|
+
:where(.cn-empty-media-icon) {
|
|
152
|
+
@apply bg-muted text-foreground flex size-8 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*=size-])]:size-4;
|
|
153
|
+
}
|
|
154
|
+
:where(.cn-empty-title) {
|
|
155
|
+
@apply text-sm font-medium tracking-tight;
|
|
156
|
+
}
|
|
157
|
+
:where(.cn-field-group) {
|
|
158
|
+
@apply gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4;
|
|
159
|
+
}
|
|
160
|
+
:where(.cn-field) {
|
|
161
|
+
@apply data-[invalid=true]:text-destructive gap-2;
|
|
162
|
+
}
|
|
163
|
+
:where(.cn-field-label) {
|
|
164
|
+
@apply has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5;
|
|
165
|
+
}
|
|
166
|
+
:where(.cn-input) {
|
|
167
|
+
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-1 aria-invalid:ring-3 md:text-sm;
|
|
168
|
+
}
|
|
169
|
+
:where(.cn-label) {
|
|
170
|
+
@apply gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
171
|
+
}
|
|
172
|
+
:where(.cn-native-select) {
|
|
173
|
+
@apply border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors select-none focus-visible:ring-1 aria-invalid:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5;
|
|
174
|
+
}
|
|
175
|
+
:where(.cn-native-select-icon) {
|
|
176
|
+
@apply text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2;
|
|
177
|
+
}
|
|
178
|
+
:where(.cn-pagination-content) {
|
|
179
|
+
@apply gap-0.5;
|
|
180
|
+
}
|
|
181
|
+
:where(.cn-sheet-overlay) {
|
|
182
|
+
@apply bg-black/10 supports-backdrop-filter:backdrop-blur-xs;
|
|
183
|
+
}
|
|
184
|
+
:where(.cn-sheet-content) {
|
|
185
|
+
@apply bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
186
|
+
}
|
|
187
|
+
:where(.cn-sheet-close) {
|
|
188
|
+
@apply absolute top-3 right-3;
|
|
189
|
+
}
|
|
190
|
+
:where(.cn-skeleton) {
|
|
191
|
+
@apply bg-muted rounded-md;
|
|
192
|
+
}
|
|
193
|
+
:where(.cn-table-container) {
|
|
194
|
+
@apply relative w-full overflow-x-auto;
|
|
195
|
+
}
|
|
196
|
+
:where(.cn-table) {
|
|
197
|
+
@apply w-full caption-bottom text-sm;
|
|
198
|
+
}
|
|
199
|
+
:where(.cn-table-header) {
|
|
200
|
+
@apply [&_tr]:border-b;
|
|
201
|
+
}
|
|
202
|
+
:where(.cn-table-body) {
|
|
203
|
+
@apply [&_tr:last-child]:border-0;
|
|
204
|
+
}
|
|
205
|
+
:where(.cn-table-row) {
|
|
206
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
207
|
+
}
|
|
208
|
+
:where(.cn-table-head) {
|
|
209
|
+
@apply text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
210
|
+
}
|
|
211
|
+
:where(.cn-table-cell) {
|
|
212
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
213
|
+
}
|
|
214
|
+
:where(.cn-input-group) {
|
|
215
|
+
@apply border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 h-8 rounded-lg border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
216
|
+
}
|
|
217
|
+
:where(.cn-input-group-addon) {
|
|
218
|
+
@apply text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:size-4;
|
|
219
|
+
}
|
|
220
|
+
:where(.cn-input-group-addon-align-inline-start) {
|
|
221
|
+
@apply pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem];
|
|
222
|
+
}
|
|
223
|
+
:where(.cn-input-group-addon-align-inline-end) {
|
|
224
|
+
@apply pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem];
|
|
225
|
+
}
|
|
226
|
+
:where(.cn-input-group-button) {
|
|
227
|
+
@apply gap-2 text-sm;
|
|
228
|
+
}
|
|
229
|
+
:where(.cn-input-group-input) {
|
|
230
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent;
|
|
231
|
+
}
|
|
232
|
+
:where(.cn-badge-variant-success) {
|
|
233
|
+
@apply bg-success/10 text-[color-mix(in_oklab,var(--success)_70%,var(--foreground))] dark:text-success focus-visible:ring-success/20 dark:bg-success/20 dark:focus-visible:ring-success/40 [a]:hover:bg-success/20;
|
|
234
|
+
}
|
|
235
|
+
:where(.cn-badge-variant-warning) {
|
|
236
|
+
@apply bg-warning/10 text-[color-mix(in_oklab,var(--warning)_70%,var(--foreground))] dark:text-warning focus-visible:ring-warning/20 dark:bg-warning/20 dark:focus-visible:ring-warning/40 [a]:hover:bg-warning/20;
|
|
237
|
+
}
|
|
238
|
+
:where(.cn-badge-variant-info) {
|
|
239
|
+
@apply bg-info/10 text-[color-mix(in_oklab,var(--info)_70%,var(--foreground))] dark:text-info focus-visible:ring-info/20 dark:bg-info/20 dark:focus-visible:ring-info/40 [a]:hover:bg-info/20;
|
|
240
|
+
}
|
|
241
|
+
:where([data-slot='badge'].cn-badge-variant-destructive) {
|
|
242
|
+
@apply text-[color-mix(in_oklab,var(--destructive)_70%,var(--foreground))] dark:text-destructive;
|
|
243
|
+
}
|
|
244
|
+
:where(.cn-card[data-slot="card"]) {
|
|
245
|
+
border: 1px solid var(--border);
|
|
246
|
+
border-radius: var(--radius-surface);
|
|
247
|
+
background: var(--card);
|
|
248
|
+
box-shadow: var(--shadow-xs);
|
|
249
|
+
}
|
|
250
|
+
:where(.cn-card[data-slot="card"] > :is(.cn-card-header, img:first-child)) {
|
|
251
|
+
border-radius: var(--radius-surface) var(--radius-surface) 0 0;
|
|
252
|
+
}
|
|
253
|
+
:where(.cn-button-variant-default[data-slot="button"]:not(:disabled, [aria-disabled="true"]):hover) {
|
|
254
|
+
@apply bg-primary/80;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/* Generated by scripts/vendor-funky-styles.mjs from @stsdti/funky-ui-kit (styles/style-rhea.css, status.css, surface.css). Do not edit by hand: run `npm run vendor:styles`. */
|
|
2
|
+
|
|
3
|
+
:where(:root) {
|
|
4
|
+
--layout-gap: --spacing(6);
|
|
5
|
+
--section-gap: --spacing(4);
|
|
6
|
+
--form-gap: --spacing(4);
|
|
7
|
+
--toolbar-h: --spacing(14);
|
|
8
|
+
--grid-row-h: 40px;
|
|
9
|
+
--surface-padding: --spacing(5);
|
|
10
|
+
--radius-control: calc(var(--radius) * 1.8);
|
|
11
|
+
--radius-item: calc(var(--radius) * 1.4);
|
|
12
|
+
--focus-ring-opacity: 30%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.laravel-auditing {
|
|
16
|
+
:where(.cn-button) {
|
|
17
|
+
@apply focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-2xl border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-1 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4;
|
|
18
|
+
}
|
|
19
|
+
:where(.cn-button-variant-default) {
|
|
20
|
+
@apply bg-primary text-primary-foreground hover:bg-primary/80;
|
|
21
|
+
}
|
|
22
|
+
:where(.cn-button-variant-outline) {
|
|
23
|
+
@apply border-border bg-background dark:bg-transparent hover:bg-muted hover:text-foreground dark:hover:bg-input/30 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
24
|
+
}
|
|
25
|
+
:where(.cn-button-variant-secondary) {
|
|
26
|
+
@apply bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground;
|
|
27
|
+
}
|
|
28
|
+
:where(.cn-button-variant-ghost) {
|
|
29
|
+
@apply hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground;
|
|
30
|
+
}
|
|
31
|
+
:where(.cn-button-variant-destructive) {
|
|
32
|
+
@apply bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30;
|
|
33
|
+
}
|
|
34
|
+
:where(.cn-button-variant-link) {
|
|
35
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
36
|
+
}
|
|
37
|
+
:where(.cn-button-size-xs) {
|
|
38
|
+
@apply h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*=size-])]:size-3;
|
|
39
|
+
}
|
|
40
|
+
:where(.cn-button-size-sm) {
|
|
41
|
+
@apply h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2;
|
|
42
|
+
}
|
|
43
|
+
:where(.cn-button-size-default) {
|
|
44
|
+
@apply h-8 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5;
|
|
45
|
+
}
|
|
46
|
+
:where(.cn-button-size-lg) {
|
|
47
|
+
@apply h-9 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3;
|
|
48
|
+
}
|
|
49
|
+
:where(.cn-button-size-icon-xs) {
|
|
50
|
+
@apply size-6 [&_svg:not([class*=size-])]:size-3;
|
|
51
|
+
}
|
|
52
|
+
:where(.cn-button-size-icon-sm) {
|
|
53
|
+
@apply size-7;
|
|
54
|
+
}
|
|
55
|
+
:where(.cn-button-size-icon) {
|
|
56
|
+
@apply size-8;
|
|
57
|
+
}
|
|
58
|
+
:where(.cn-button-size-icon-lg) {
|
|
59
|
+
@apply size-9;
|
|
60
|
+
}
|
|
61
|
+
:where(.cn-button-group) {
|
|
62
|
+
@apply has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-2xl has-[>[data-variant=outline]]:[&>input]:border-border has-[>[data-variant=outline]]:[&>input:focus-visible]:border-ring has-[>[data-variant=outline]]:*:data-[slot=input-group]:border-border has-[>[data-variant=outline]]:[&>[data-slot=input-group]:has(:focus-visible)]:border-ring has-[>[data-variant=outline]]:*:data-[slot=select-trigger]:border-border has-[>[data-variant=outline]]:[&>[data-slot=select-trigger]:focus-visible]:border-ring;
|
|
63
|
+
}
|
|
64
|
+
:where(.cn-button-group-orientation-horizontal) {
|
|
65
|
+
@apply [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-2xl!;
|
|
66
|
+
}
|
|
67
|
+
:where(.cn-input) {
|
|
68
|
+
@apply bg-input/50 border-transparent focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 rounded-2xl border px-2.5 py-1 text-base transition-[color,box-shadow] duration-200 file:h-6 file:text-sm file:font-medium focus-visible:ring-1 aria-invalid:ring-3 md:text-sm;
|
|
69
|
+
}
|
|
70
|
+
:where(.cn-native-select) {
|
|
71
|
+
@apply bg-input/50 border-transparent placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-8 w-full min-w-0 appearance-none rounded-2xl border py-1 pr-8 pl-2.5 text-sm transition-[color,box-shadow] duration-200 select-none focus-visible:ring-1 aria-invalid:ring-3 data-[size=sm]:h-7;
|
|
72
|
+
}
|
|
73
|
+
:where(.cn-native-select-icon) {
|
|
74
|
+
@apply text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2;
|
|
75
|
+
}
|
|
76
|
+
:where(.cn-combobox-content) {
|
|
77
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 *:data-[slot=input-group]:bg-input/50 *:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-2xl shadow-lg ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none;
|
|
78
|
+
}
|
|
79
|
+
:where(.cn-combobox-item) {
|
|
80
|
+
@apply data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:not-data-[slot=badge]:not-in-data-[slot=badge]:text-accent-foreground gap-2 min-h-7 rounded-xl py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*=size-])]:size-4;
|
|
81
|
+
}
|
|
82
|
+
:where(.cn-combobox-item-indicator) {
|
|
83
|
+
@apply pointer-events-none absolute right-2 flex size-4 items-center justify-center;
|
|
84
|
+
}
|
|
85
|
+
:where(.cn-combobox-empty) {
|
|
86
|
+
@apply text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex;
|
|
87
|
+
}
|
|
88
|
+
:where(.cn-combobox-list) {
|
|
89
|
+
@apply no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0;
|
|
90
|
+
}
|
|
91
|
+
:where(.cn-combobox-item-text) {
|
|
92
|
+
@apply flex flex-1 gap-2;
|
|
93
|
+
}
|
|
94
|
+
:where(.cn-combobox-trigger-icon) {
|
|
95
|
+
@apply text-muted-foreground size-4;
|
|
96
|
+
}
|
|
97
|
+
:where(.cn-combobox-chips) {
|
|
98
|
+
@apply bg-input/50 border-transparent focus-within:border-ring focus-within:ring-ring/30 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-2xl border bg-clip-padding px-2.5 py-1 text-sm transition-[color,box-shadow] duration-200 focus-within:ring-1 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1;
|
|
99
|
+
}
|
|
100
|
+
:where(.cn-combobox-chip) {
|
|
101
|
+
@apply bg-input text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-2xl px-1.5 text-xs font-medium whitespace-nowrap has-data-[slot=combobox-chip-remove]:pr-0.5 dark:bg-input/60;
|
|
102
|
+
}
|
|
103
|
+
:where(.cn-combobox-chip-remove) {
|
|
104
|
+
@apply -ml-0.5 opacity-50 hover:opacity-100 size-4.5 aria-disabled:pointer-events-none;
|
|
105
|
+
}
|
|
106
|
+
:where(.cn-input-group) {
|
|
107
|
+
@apply bg-input/50 border-transparent has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/30 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-8 rounded-2xl border transition-[color,box-shadow] duration-200 in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5;
|
|
108
|
+
}
|
|
109
|
+
:where(.cn-input-group-addon) {
|
|
110
|
+
@apply text-muted-foreground **:data-[slot=kbd]:bg-muted-foreground/10 h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-2xl **:data-[slot=kbd]:px-1.5 [&>svg:not([class*=size-])]:size-4;
|
|
111
|
+
}
|
|
112
|
+
:where(.cn-input-group-addon-align-inline-start) {
|
|
113
|
+
@apply pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem];
|
|
114
|
+
}
|
|
115
|
+
:where(.cn-input-group-addon-align-inline-end) {
|
|
116
|
+
@apply pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem];
|
|
117
|
+
}
|
|
118
|
+
:where(.cn-input-group-button) {
|
|
119
|
+
@apply gap-2 rounded-2xl text-sm;
|
|
120
|
+
}
|
|
121
|
+
:where(.cn-input-group-input) {
|
|
122
|
+
@apply rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent;
|
|
123
|
+
}
|
|
124
|
+
:where(.cn-field-group) {
|
|
125
|
+
@apply gap-6 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4;
|
|
126
|
+
}
|
|
127
|
+
:where(.cn-field) {
|
|
128
|
+
@apply data-[invalid=true]:text-destructive gap-3;
|
|
129
|
+
}
|
|
130
|
+
:where(.cn-field-label) {
|
|
131
|
+
@apply has-data-checked:bg-input/30 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-2xl has-[>[data-slot=field]]:border *:data-[slot=field]:p-4;
|
|
132
|
+
}
|
|
133
|
+
:where(.cn-card) {
|
|
134
|
+
@apply bg-card text-card-foreground ring-foreground/5 dark:ring-foreground/10 gap-(--card-spacing) overflow-hidden rounded-[min(var(--radius-4xl),24px)] py-(--card-spacing) text-sm shadow-sm ring-1 [--card-spacing:--spacing(5)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-[min(var(--radius-4xl),24px)] *:[img:last-child]:rounded-b-[min(var(--radius-4xl),24px)];
|
|
135
|
+
}
|
|
136
|
+
:where(.cn-card-header) {
|
|
137
|
+
@apply gap-1.5 rounded-t-[min(var(--radius-4xl),24px)] px-(--card-spacing) [.border-b]:pb-(--card-spacing);
|
|
138
|
+
}
|
|
139
|
+
:where(.cn-card-title) {
|
|
140
|
+
@apply text-base font-medium;
|
|
141
|
+
}
|
|
142
|
+
:where(.cn-card-description) {
|
|
143
|
+
@apply text-muted-foreground text-sm;
|
|
144
|
+
}
|
|
145
|
+
:where(.cn-card-content) {
|
|
146
|
+
@apply px-(--card-spacing);
|
|
147
|
+
}
|
|
148
|
+
:where(.cn-badge) {
|
|
149
|
+
@apply h-5 gap-1 rounded-2xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3!;
|
|
150
|
+
}
|
|
151
|
+
:where(.cn-badge-variant-default) {
|
|
152
|
+
@apply bg-primary text-primary-foreground [a]:hover:bg-primary/80;
|
|
153
|
+
}
|
|
154
|
+
:where(.cn-badge-variant-secondary) {
|
|
155
|
+
@apply bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80;
|
|
156
|
+
}
|
|
157
|
+
:where(.cn-badge-variant-outline) {
|
|
158
|
+
@apply border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground;
|
|
159
|
+
}
|
|
160
|
+
:where(.cn-badge-variant-destructive) {
|
|
161
|
+
@apply bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20;
|
|
162
|
+
}
|
|
163
|
+
:where(.cn-badge-variant-ghost) {
|
|
164
|
+
@apply hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50;
|
|
165
|
+
}
|
|
166
|
+
:where(.cn-badge-variant-link) {
|
|
167
|
+
@apply text-primary underline-offset-4 hover:underline;
|
|
168
|
+
}
|
|
169
|
+
:where(.cn-dialog-overlay) {
|
|
170
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm;
|
|
171
|
+
}
|
|
172
|
+
:where(.cn-dialog-content) {
|
|
173
|
+
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 ring-foreground/5 dark:ring-foreground/10 grid max-w-[calc(100%-2rem)] gap-6 rounded-[min(var(--radius-4xl),24px)] p-6 text-sm shadow-xl ring-1 duration-100 sm:max-w-md;
|
|
174
|
+
}
|
|
175
|
+
:where(.cn-dialog-close) {
|
|
176
|
+
@apply absolute top-4 right-4 bg-secondary;
|
|
177
|
+
}
|
|
178
|
+
:where(.cn-label) {
|
|
179
|
+
@apply gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50;
|
|
180
|
+
}
|
|
181
|
+
:where(.cn-pagination-content) {
|
|
182
|
+
@apply gap-1;
|
|
183
|
+
}
|
|
184
|
+
:where(.cn-sheet-overlay) {
|
|
185
|
+
@apply bg-black/30 supports-backdrop-filter:backdrop-blur-sm;
|
|
186
|
+
}
|
|
187
|
+
:where(.cn-sheet-content) {
|
|
188
|
+
@apply bg-popover text-popover-foreground fixed z-50 flex flex-col bg-clip-padding text-sm shadow-xl transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm;
|
|
189
|
+
}
|
|
190
|
+
:where(.cn-sheet-close) {
|
|
191
|
+
@apply absolute top-4 right-4 bg-secondary;
|
|
192
|
+
}
|
|
193
|
+
:where(.cn-skeleton) {
|
|
194
|
+
@apply bg-muted rounded-2xl;
|
|
195
|
+
}
|
|
196
|
+
:where(.cn-table-container) {
|
|
197
|
+
@apply relative w-full overflow-x-auto;
|
|
198
|
+
}
|
|
199
|
+
:where(.cn-table) {
|
|
200
|
+
@apply w-full caption-bottom text-sm;
|
|
201
|
+
}
|
|
202
|
+
:where(.cn-table-header) {
|
|
203
|
+
@apply [&_tr]:border-b;
|
|
204
|
+
}
|
|
205
|
+
:where(.cn-table-body) {
|
|
206
|
+
@apply [&_tr:last-child]:border-0;
|
|
207
|
+
}
|
|
208
|
+
:where(.cn-table-row) {
|
|
209
|
+
@apply hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors;
|
|
210
|
+
}
|
|
211
|
+
:where(.cn-table-head) {
|
|
212
|
+
@apply text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
213
|
+
}
|
|
214
|
+
:where(.cn-table-cell) {
|
|
215
|
+
@apply p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0;
|
|
216
|
+
}
|
|
217
|
+
:where(.cn-empty) {
|
|
218
|
+
@apply gap-4 rounded-3xl border-dashed p-12;
|
|
219
|
+
}
|
|
220
|
+
:where(.cn-empty-header) {
|
|
221
|
+
@apply gap-2;
|
|
222
|
+
}
|
|
223
|
+
:where(.cn-empty-media) {
|
|
224
|
+
@apply mb-2;
|
|
225
|
+
}
|
|
226
|
+
:where(.cn-empty-media-icon) {
|
|
227
|
+
@apply bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-xl [&_svg:not([class*=size-])]:size-5;
|
|
228
|
+
}
|
|
229
|
+
:where(.cn-empty-title) {
|
|
230
|
+
@apply text-lg font-medium tracking-tight;
|
|
231
|
+
}
|
|
232
|
+
:where(.cn-badge-variant-success) {
|
|
233
|
+
@apply bg-success/10 text-[color-mix(in_oklab,var(--success)_70%,var(--foreground))] dark:text-success focus-visible:ring-success/20 dark:bg-success/20 dark:focus-visible:ring-success/40 [a]:hover:bg-success/20;
|
|
234
|
+
}
|
|
235
|
+
:where(.cn-badge-variant-warning) {
|
|
236
|
+
@apply bg-warning/10 text-[color-mix(in_oklab,var(--warning)_70%,var(--foreground))] dark:text-warning focus-visible:ring-warning/20 dark:bg-warning/20 dark:focus-visible:ring-warning/40 [a]:hover:bg-warning/20;
|
|
237
|
+
}
|
|
238
|
+
:where(.cn-badge-variant-info) {
|
|
239
|
+
@apply bg-info/10 text-[color-mix(in_oklab,var(--info)_70%,var(--foreground))] dark:text-info focus-visible:ring-info/20 dark:bg-info/20 dark:focus-visible:ring-info/40 [a]:hover:bg-info/20;
|
|
240
|
+
}
|
|
241
|
+
:where([data-slot='badge'].cn-badge-variant-destructive) {
|
|
242
|
+
@apply text-[color-mix(in_oklab,var(--destructive)_70%,var(--foreground))] dark:text-destructive;
|
|
243
|
+
}
|
|
244
|
+
:where(.cn-card[data-slot="card"]) {
|
|
245
|
+
border: 1px solid var(--border);
|
|
246
|
+
border-radius: var(--radius-surface);
|
|
247
|
+
background: var(--card);
|
|
248
|
+
box-shadow: var(--shadow-xs);
|
|
249
|
+
}
|
|
250
|
+
:where(.cn-card[data-slot="card"] > :is(.cn-card-header, img:first-child)) {
|
|
251
|
+
border-radius: var(--radius-surface) var(--radius-surface) 0 0;
|
|
252
|
+
}
|
|
253
|
+
:where(.cn-button-variant-default[data-slot="button"]:not(:disabled, [aria-disabled="true"]):hover) {
|
|
254
|
+
@apply bg-primary/80;
|
|
255
|
+
}
|
|
256
|
+
}
|