fjkit 0.1.0.dev0__py3-none-any.whl
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.
- fjkit/__init__.py +49 -0
- fjkit/auth/__init__.py +54 -0
- fjkit/auth/csrf.py +88 -0
- fjkit/auth/errors.py +31 -0
- fjkit/auth/plugin.py +496 -0
- fjkit/auth/sources.py +24 -0
- fjkit/auth/stores.py +141 -0
- fjkit/auth/types.py +141 -0
- fjkit/cli/__init__.py +67 -0
- fjkit/cli/build_css.py +135 -0
- fjkit/cli/check.py +193 -0
- fjkit/cli/eject.py +562 -0
- fjkit/cli/ejected.py +202 -0
- fjkit/cli/vocabulary.py +85 -0
- fjkit/config.py +130 -0
- fjkit/errors.py +156 -0
- fjkit/flash.py +189 -0
- fjkit/forms.py +145 -0
- fjkit/htmx.py +76 -0
- fjkit/icons.py +60 -0
- fjkit/messages.py +227 -0
- fjkit/mounting.py +72 -0
- fjkit/plugins.py +223 -0
- fjkit/py.typed +0 -0
- fjkit/rendering.py +554 -0
- fjkit/signing.py +63 -0
- fjkit/static/brand/torii-bolt.png +0 -0
- fjkit/static/dist/fjkit-luma.css +2 -0
- fjkit/static/dist/fjkit-lyra.css +2 -0
- fjkit/static/dist/fjkit-maia.css +2 -0
- fjkit/static/dist/fjkit-mira.css +2 -0
- fjkit/static/dist/fjkit-nova.css +2 -0
- fjkit/static/dist/fjkit-rhea.css +2 -0
- fjkit/static/dist/fjkit-sera.css +2 -0
- fjkit/static/dist/fjkit-vega.css +2 -0
- fjkit/static/icons/lucide.json +1 -0
- fjkit/static/js/errors.js +117 -0
- fjkit/static/js/multiselect.js +126 -0
- fjkit/static/js/reveal.js +51 -0
- fjkit/static/js/select.js +113 -0
- fjkit/static/src/fjkit.css +385 -0
- fjkit/static/vendor/basecoat/base/base.css +136 -0
- fjkit/static/vendor/basecoat/basecoat-base.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-components.css +39 -0
- fjkit/static/vendor/basecoat/basecoat-luma.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-lyra.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-maia.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-mira.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-nova.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-rhea.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-sera.css +2 -0
- fjkit/static/vendor/basecoat/basecoat-vega.css +2 -0
- fjkit/static/vendor/basecoat/basecoat.all.css +1 -0
- fjkit/static/vendor/basecoat/basecoat.css +1 -0
- fjkit/static/vendor/basecoat/components/accordion.css +27 -0
- fjkit/static/vendor/basecoat/components/alert.css +38 -0
- fjkit/static/vendor/basecoat/components/avatar.css +47 -0
- fjkit/static/vendor/basecoat/components/badge.css +6 -0
- fjkit/static/vendor/basecoat/components/breadcrumb.css +30 -0
- fjkit/static/vendor/basecoat/components/button-group.css +54 -0
- fjkit/static/vendor/basecoat/components/button.css +6 -0
- fjkit/static/vendor/basecoat/components/card.css +26 -0
- fjkit/static/vendor/basecoat/components/chart.css +56 -0
- fjkit/static/vendor/basecoat/components/checkbox.css +12 -0
- fjkit/static/vendor/basecoat/components/collapsible.css +21 -0
- fjkit/static/vendor/basecoat/components/combobox.css +99 -0
- fjkit/static/vendor/basecoat/components/command.css +140 -0
- fjkit/static/vendor/basecoat/components/dialog.css +101 -0
- fjkit/static/vendor/basecoat/components/drawer.css +89 -0
- fjkit/static/vendor/basecoat/components/dropdown-menu.css +56 -0
- fjkit/static/vendor/basecoat/components/empty.css +26 -0
- fjkit/static/vendor/basecoat/components/field.css +82 -0
- fjkit/static/vendor/basecoat/components/form.css +9 -0
- fjkit/static/vendor/basecoat/components/input-group.css +74 -0
- fjkit/static/vendor/basecoat/components/input.css +32 -0
- fjkit/static/vendor/basecoat/components/item.css +50 -0
- fjkit/static/vendor/basecoat/components/kbd.css +6 -0
- fjkit/static/vendor/basecoat/components/label.css +13 -0
- fjkit/static/vendor/basecoat/components/native-select.css +12 -0
- fjkit/static/vendor/basecoat/components/popover.css +107 -0
- fjkit/static/vendor/basecoat/components/progress.css +14 -0
- fjkit/static/vendor/basecoat/components/radio.css +11 -0
- fjkit/static/vendor/basecoat/components/range.css +50 -0
- fjkit/static/vendor/basecoat/components/scrollbar.css +46 -0
- fjkit/static/vendor/basecoat/components/select.css +64 -0
- fjkit/static/vendor/basecoat/components/sidebar.css +101 -0
- fjkit/static/vendor/basecoat/components/skeleton.css +6 -0
- fjkit/static/vendor/basecoat/components/switch.css +8 -0
- fjkit/static/vendor/basecoat/components/table.css +34 -0
- fjkit/static/vendor/basecoat/components/tabs.css +31 -0
- fjkit/static/vendor/basecoat/components/textarea.css +7 -0
- fjkit/static/vendor/basecoat/components/toast.css +57 -0
- fjkit/static/vendor/basecoat/components/tooltip.css +82 -0
- fjkit/static/vendor/basecoat/js/all.min.js +1 -0
- fjkit/static/vendor/basecoat/styles/luma.css +1376 -0
- fjkit/static/vendor/basecoat/styles/lyra.css +1379 -0
- fjkit/static/vendor/basecoat/styles/maia.css +1364 -0
- fjkit/static/vendor/basecoat/styles/mira.css +1373 -0
- fjkit/static/vendor/basecoat/styles/nova.css +1387 -0
- fjkit/static/vendor/basecoat/styles/rhea.css +1381 -0
- fjkit/static/vendor/basecoat/styles/sera.css +1397 -0
- fjkit/static/vendor/basecoat/styles/vega.css +1386 -0
- fjkit/static/vendor/htmx/htmx.min.js +1 -0
- fjkit/static/vendor/htmx/json-enc.js +38 -0
- fjkit/styles.py +30 -0
- fjkit/templates/errors/page.html +92 -0
- fjkit/templates/ui/attrs.html +18 -0
- fjkit/templates/ui/button.html +64 -0
- fjkit/templates/ui/data.html +362 -0
- fjkit/templates/ui/disclosure.html +89 -0
- fjkit/templates/ui/feedback.html +313 -0
- fjkit/templates/ui/form.html +595 -0
- fjkit/templates/ui/icon.html +13 -0
- fjkit/templates/ui/layout.html +189 -0
- fjkit/templates/ui/nav.html +110 -0
- fjkit/templates/ui/overlay.html +624 -0
- fjkit/templates/ui/shell.html +170 -0
- fjkit/templates/ui/sidebar.html +170 -0
- fjkit/templates/ui/table.html +427 -0
- fjkit/templates/ui/tabs.html +133 -0
- fjkit/templating.py +365 -0
- fjkit/vendored.py +46 -0
- fjkit-0.1.0.dev0.dist-info/METADATA +119 -0
- fjkit-0.1.0.dev0.dist-info/RECORD +127 -0
- fjkit-0.1.0.dev0.dist-info/WHEEL +4 -0
- fjkit-0.1.0.dev0.dist-info/entry_points.txt +2 -0
- fjkit-0.1.0.dev0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Avatar */
|
|
2
|
+
@layer components {
|
|
3
|
+
.avatar {
|
|
4
|
+
@apply relative inline-flex shrink-0 select-none appearance-none border-0 bg-transparent p-0 align-middle outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.avatar > img {
|
|
8
|
+
@apply absolute inset-0 aspect-square size-full rounded-[inherit] object-cover;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.avatar > span:not(.avatar-badge) {
|
|
12
|
+
@apply flex size-full items-center justify-center rounded-[inherit] text-sm;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.avatar[data-size='sm'] > span:not(.avatar-badge) {
|
|
16
|
+
@apply text-xs;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.avatar > .avatar-badge {
|
|
20
|
+
@apply absolute end-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.avatar[data-size='sm'] > .avatar-badge {
|
|
24
|
+
@apply size-2 [&>svg]:hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.avatar > .avatar-badge {
|
|
28
|
+
@apply size-2.5 [&>svg]:size-2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.avatar[data-size='lg'] > .avatar-badge {
|
|
32
|
+
@apply size-3 [&>svg]:size-2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.avatar-group {
|
|
36
|
+
@apply flex -space-x-2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.avatar-group > .avatar,
|
|
40
|
+
.avatar-group > [data-count] {
|
|
41
|
+
@apply ring-2 ring-background;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.avatar-group > [data-count] {
|
|
45
|
+
@apply relative flex shrink-0 items-center justify-center;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/* Badge */
|
|
2
|
+
@layer components {
|
|
3
|
+
.badge {
|
|
4
|
+
@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;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Breadcrumb */
|
|
2
|
+
@layer components {
|
|
3
|
+
.breadcrumb > ol {
|
|
4
|
+
@apply m-0 flex list-none flex-wrap items-center p-0 break-words;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.breadcrumb li {
|
|
8
|
+
@apply inline-flex items-center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.breadcrumb a {
|
|
12
|
+
@apply rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.breadcrumb [aria-current='page'] {
|
|
16
|
+
@apply cursor-default;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.breadcrumb li[aria-hidden='true'] {
|
|
20
|
+
@apply select-none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.breadcrumb li > span[aria-hidden='true'] {
|
|
24
|
+
@apply flex items-center justify-center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.breadcrumb [data-rtl-flip] {
|
|
28
|
+
@apply rtl:rotate-180;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* Button Group */
|
|
2
|
+
@layer components {
|
|
3
|
+
.button-group {
|
|
4
|
+
@apply isolate inline-flex w-fit items-stretch;
|
|
5
|
+
|
|
6
|
+
&:has(> :is(.dropdown-menu, .popover, .select) > [data-popover][aria-hidden='false']) {
|
|
7
|
+
@apply relative z-50;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> .input {
|
|
11
|
+
@apply flex-1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> *:focus-visible,
|
|
15
|
+
> :is(.dropdown-menu, .popover, .select) > button:focus-visible {
|
|
16
|
+
@apply relative z-10;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> hr[role='separator'] {
|
|
20
|
+
@apply relative w-px h-auto self-stretch shrink-0 border-0 my-px mx-0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:not([data-orientation='vertical']) {
|
|
24
|
+
> *:not(:first-child),
|
|
25
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
26
|
+
@apply rounded-s-none border-s-0;
|
|
27
|
+
}
|
|
28
|
+
> *:not(:last-child),
|
|
29
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
30
|
+
@apply rounded-e-none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
&[data-orientation='vertical'] {
|
|
34
|
+
@apply flex-col;
|
|
35
|
+
|
|
36
|
+
> hr[role='separator'] {
|
|
37
|
+
@apply w-auto h-px mx-px my-0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> *:not(:first-child),
|
|
41
|
+
> :is(.dropdown-menu, .popover, .select):not(:first-child) > button {
|
|
42
|
+
@apply rounded-t-none border-t-0;
|
|
43
|
+
}
|
|
44
|
+
> *:not(:last-child),
|
|
45
|
+
> :is(.dropdown-menu, .popover, .select):not(:last-child) > button {
|
|
46
|
+
@apply rounded-b-none;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.button-group > :is(span, label, output) {
|
|
52
|
+
@apply flex items-center [&_svg]:pointer-events-none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
> header > menu.card-action {
|
|
19
|
+
@apply m-0 list-none p-0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> footer {
|
|
23
|
+
@apply flex items-center;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* Chart */
|
|
2
|
+
@layer components {
|
|
3
|
+
.chart {
|
|
4
|
+
@apply relative flex aspect-video w-full justify-center text-xs;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.chart > canvas {
|
|
8
|
+
@apply block size-full;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.chart-tooltip {
|
|
12
|
+
@apply pointer-events-none fixed z-50 grid min-w-32 -translate-x-1/2 translate-y-2 items-start transition-[left,top,opacity] duration-150 ease-out;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.chart-tooltip[hidden] {
|
|
16
|
+
@apply opacity-0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.chart-tooltip-items {
|
|
20
|
+
@apply grid gap-1.5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.chart-tooltip-item {
|
|
24
|
+
@apply flex w-full flex-wrap items-center gap-2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.chart-tooltip-indicator {
|
|
28
|
+
@apply size-2.5 shrink-0 rounded-[2px];
|
|
29
|
+
background-color: var(--chart-indicator-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.chart-legend-indicator {
|
|
33
|
+
@apply size-2 shrink-0 rounded-[2px];
|
|
34
|
+
background-color: var(--chart-indicator-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chart-tooltip-label {
|
|
38
|
+
@apply text-muted-foreground leading-none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.chart-tooltip-value {
|
|
42
|
+
@apply ms-auto font-mono font-medium leading-none tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.chart-legend {
|
|
46
|
+
@apply flex flex-wrap items-center justify-center gap-4 pt-3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.chart-legend-item {
|
|
50
|
+
@apply flex items-center gap-1.5 text-xs;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.chart-legend-item[aria-pressed='false'] {
|
|
54
|
+
@apply opacity-70;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -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,99 @@
|
|
|
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 .input-group input[role='combobox'],
|
|
12
|
+
.combobox [data-popover] input[role='combobox'] {
|
|
13
|
+
@apply min-w-0 outline-hidden placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.combobox > svg,
|
|
17
|
+
.combobox-trigger-icon {
|
|
18
|
+
@apply pointer-events-none absolute shrink-0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.combobox:has(> .combobox-chips) > .combobox-trigger-icon {
|
|
22
|
+
@apply hidden;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.combobox [data-clear] {
|
|
26
|
+
@apply inline-flex size-6 shrink-0 cursor-default appearance-none items-center justify-center border-0 bg-transparent p-0 text-current disabled:pointer-events-none disabled:opacity-50;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.combobox [data-clear][hidden] {
|
|
30
|
+
@apply hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.combobox .input-group:has([data-clear]:not([hidden])) button[aria-haspopup='listbox'] {
|
|
34
|
+
@apply hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.combobox [data-popover] {
|
|
38
|
+
@apply isolate overflow-hidden;
|
|
39
|
+
min-width: max(100%, 9rem);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.combobox [role='listbox'] {
|
|
43
|
+
@apply outline-hidden overflow-x-hidden overflow-y-auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.combobox [role='listbox'] [role='group']:not(:has([role='option']:not([aria-hidden='true']))) {
|
|
47
|
+
@apply hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.combobox [role='listbox']:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
51
|
+
@apply flex items-center justify-center truncate;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.combobox [role='listbox'][data-empty]:not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
55
|
+
@apply content-[attr(data-empty)];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.combobox [role='listbox']:not([data-empty]):not(:has([data-value]:not([aria-hidden='true'])))::before {
|
|
59
|
+
@apply content-['No_results_found'];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.combobox [role='option'] {
|
|
63
|
+
@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;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.combobox [role='option'][aria-selected='true'] {
|
|
67
|
+
@apply bg-[image:var(--check-icon)] bg-no-repeat bg-position-[center_right_0.5rem] bg-size-[0.875rem];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.combobox [role='option'][aria-selected='true']:dir(rtl) {
|
|
71
|
+
@apply bg-position-[center_left_0.5rem];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.combobox [role='separator'] {
|
|
75
|
+
@apply border-0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.combobox [role='option'].active,
|
|
79
|
+
.combobox [role='option']:focus-visible,
|
|
80
|
+
.combobox:not([data-combobox-initialized]) [role='option']:not([aria-disabled='true']):not(:disabled):hover {
|
|
81
|
+
@apply bg-accent text-accent-foreground;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.combobox-chips {
|
|
85
|
+
@apply flex w-full min-w-0 flex-wrap items-center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.combobox-chips > input[role='combobox'] {
|
|
89
|
+
@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;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.combobox-chip {
|
|
93
|
+
@apply inline-flex w-fit shrink-0 items-center whitespace-nowrap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.combobox-chip-remove {
|
|
97
|
+
@apply inline-flex shrink-0 items-center justify-center;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
> .command {
|
|
16
|
+
@apply scale-100;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@starting-style {
|
|
20
|
+
@apply opacity-0;
|
|
21
|
+
|
|
22
|
+
&::backdrop {
|
|
23
|
+
@apply opacity-0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> .command {
|
|
27
|
+
@apply scale-95;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&::backdrop {
|
|
33
|
+
@apply opacity-0 transition-all transition-discrete;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> .command {
|
|
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-sm;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> .command > :is(button, form[method='dialog']) {
|
|
41
|
+
@apply absolute;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> .command > :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
|
+
> .command > :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
|
+
scrollbar-width: none;
|
|
72
|
+
|
|
73
|
+
&::-webkit-scrollbar {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.command [role='menuitem'] {
|
|
79
|
+
@apply aria-hidden:hidden relative flex w-full cursor-default items-center outline-hidden select-none disabled:pointer-events-none disabled:opacity-50 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.command [role='menuitem'].active,
|
|
83
|
+
.command [role='menuitem'][data-selected='true'] {
|
|
84
|
+
@apply bg-muted text-foreground;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.command [role='group'] {
|
|
88
|
+
@apply overflow-hidden;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.command [role='group']:not(:has([role='menuitem']:not([aria-hidden='true']))) {
|
|
92
|
+
@apply hidden;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.command [role='heading'] {
|
|
96
|
+
@apply flex;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.command [role='separator'] {
|
|
100
|
+
@apply border-0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.command [data-shortcut] {
|
|
104
|
+
@apply ms-auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.command [data-indicator] {
|
|
108
|
+
@apply ms-auto opacity-0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.command [role='menuitem'][data-checked='true'] [data-indicator],
|
|
112
|
+
.command [role='menuitem'][aria-selected='true'] [data-indicator],
|
|
113
|
+
.command [role='menuitem'][data-selected='true'] [data-indicator] {
|
|
114
|
+
@apply opacity-100;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.command [role='menuitem']:has([data-shortcut]) [data-indicator] {
|
|
118
|
+
@apply hidden;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.command [role='menu']:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
122
|
+
@apply flex items-center justify-center truncate;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.command [role='menu'][data-empty]:not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
126
|
+
@apply content-[attr(data-empty)];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.command [role='menu']:not([data-empty]):not(:has([role='menuitem']:not([aria-hidden='true'])))::before {
|
|
130
|
+
@apply content-['No_results_found'];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.command:not([data-command-initialized]) [role='menuitem']:not([aria-disabled='true']):not(:disabled):hover {
|
|
134
|
+
@apply bg-muted text-foreground;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.command:has(> header input:not(:placeholder-shown)) [role='separator'] {
|
|
138
|
+
@apply hidden;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Dialog */
|
|
2
|
+
@layer components {
|
|
3
|
+
.dialog,
|
|
4
|
+
.alert-dialog {
|
|
5
|
+
@apply bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete;
|
|
6
|
+
max-width: none;
|
|
7
|
+
max-height: none;
|
|
8
|
+
|
|
9
|
+
&:is([open], :popover-open) {
|
|
10
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
11
|
+
|
|
12
|
+
> * {
|
|
13
|
+
@apply scale-100;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@starting-style {
|
|
17
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
18
|
+
|
|
19
|
+
> * {
|
|
20
|
+
@apply scale-95;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
@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;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dialog {
|
|
31
|
+
> * > header {
|
|
32
|
+
@apply flex flex-col;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> * > section {
|
|
36
|
+
@apply flex-1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> * > footer {
|
|
40
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> * > :is(button, form[method='dialog']) {
|
|
44
|
+
@apply absolute;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
> * > :is(button, form[method='dialog'] > button) {
|
|
48
|
+
@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;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
> * > :is(button, form[method='dialog'] > button) > svg:not([class*='size-']) {
|
|
52
|
+
@apply size-4;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.alert-dialog {
|
|
57
|
+
> * > header {
|
|
58
|
+
@apply grid grid-rows-[auto_1fr] place-items-center text-center sm:place-items-start sm:text-start;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> * > header:has(> figure) {
|
|
62
|
+
@apply grid-rows-[auto_auto_1fr] sm:grid-rows-[auto_1fr];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
> * > header > figure {
|
|
66
|
+
@apply m-0 shrink-0 sm:row-span-2 [&_svg]:pointer-events-none [&_svg]:shrink-0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
> * > header > figure:has(img) {
|
|
70
|
+
@apply overflow-hidden [&_img]:size-full [&_img]:object-cover;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
> * > header:has(> figure) > :is(h2, p) {
|
|
74
|
+
@apply sm:col-start-2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
> * > footer {
|
|
78
|
+
@apply flex flex-col-reverse sm:flex-row sm:justify-end;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:is([data-size='sm']) > * > header,
|
|
82
|
+
> [data-size='sm'] > header {
|
|
83
|
+
@apply sm:place-items-center sm:text-center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:is([data-size='sm']) > * > header:has(> figure),
|
|
87
|
+
> [data-size='sm'] > header:has(> figure) {
|
|
88
|
+
@apply sm:grid-rows-[auto_auto_1fr];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:is([data-size='sm']) > * > header:has(> figure) > :is(h2, p),
|
|
92
|
+
> [data-size='sm'] > header:has(> figure) > :is(h2, p) {
|
|
93
|
+
@apply sm:col-start-auto;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:is([data-size='sm']) > * > footer,
|
|
97
|
+
> [data-size='sm'] > footer {
|
|
98
|
+
@apply grid grid-cols-2 sm:grid sm:grid-cols-2;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* Drawer */
|
|
2
|
+
@layer components {
|
|
3
|
+
.drawer {
|
|
4
|
+
@apply fixed inset-0 m-0 size-auto max-h-none max-w-none overflow-visible bg-transparent p-0 text-inherit opacity-0 transition-all transition-discrete duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] backdrop:opacity-0 backdrop:transition-all backdrop:transition-discrete backdrop:duration-500 backdrop:ease-[cubic-bezier(0.32,0.72,0,1)];
|
|
5
|
+
|
|
6
|
+
> * {
|
|
7
|
+
@apply fixed z-50 flex h-auto flex-col transition-transform duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] will-change-transform outline-hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:not([data-side]) > *,
|
|
11
|
+
&[data-side='bottom'] > * {
|
|
12
|
+
@apply inset-x-0 bottom-0 mt-24 max-h-[80vh] translate-y-full;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&[data-side='top'] > * {
|
|
16
|
+
@apply inset-x-0 top-0 mb-24 max-h-[80vh] -translate-y-full;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[data-side='left'] > * {
|
|
20
|
+
@apply inset-y-0 left-0 w-3/4 max-w-sm -translate-x-full;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-side='right'] > * {
|
|
24
|
+
@apply inset-y-0 right-0 w-3/4 max-w-sm translate-x-full;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[data-closing] {
|
|
28
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-closing]:not([data-side]) > *,
|
|
32
|
+
&[data-closing][data-side='bottom'] > * {
|
|
33
|
+
@apply translate-y-full;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-closing][data-side='top'] > * {
|
|
37
|
+
@apply -translate-y-full;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-closing][data-side='left'] > * {
|
|
41
|
+
@apply -translate-x-full;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-closing][data-side='right'] > * {
|
|
45
|
+
@apply translate-x-full;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:is([open], :popover-open):not([data-closing]) {
|
|
49
|
+
@apply opacity-100 backdrop:opacity-100;
|
|
50
|
+
|
|
51
|
+
> * {
|
|
52
|
+
@apply translate-x-0 translate-y-0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@starting-style {
|
|
56
|
+
@apply opacity-0 backdrop:opacity-0;
|
|
57
|
+
|
|
58
|
+
&:not([data-side]) > *,
|
|
59
|
+
&[data-side='bottom'] > * {
|
|
60
|
+
@apply translate-y-full;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-side='top'] > * {
|
|
64
|
+
@apply -translate-y-full;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-side='left'] > * {
|
|
68
|
+
@apply -translate-x-full;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-side='right'] > * {
|
|
72
|
+
@apply translate-x-full;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
> * > header {
|
|
78
|
+
@apply flex flex-col;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
> * > section {
|
|
82
|
+
@apply min-h-0 flex-1 overflow-y-auto;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
> * > footer {
|
|
86
|
+
@apply mt-auto flex flex-col;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|