@deepfuture/dui-theme-default 0.0.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/base.d.ts +6 -0
- package/base.js +13 -0
- package/components/accordion-item.d.ts +1 -0
- package/components/accordion-item.js +89 -0
- package/components/accordion.d.ts +1 -0
- package/components/accordion.js +6 -0
- package/components/alert-dialog-popup.d.ts +1 -0
- package/components/alert-dialog-popup.js +72 -0
- package/components/alert-dialog.d.ts +1 -0
- package/components/alert-dialog.js +2 -0
- package/components/avatar.d.ts +1 -0
- package/components/avatar.js +22 -0
- package/components/badge.d.ts +1 -0
- package/components/badge.js +58 -0
- package/components/breadcrumb-ellipsis.d.ts +1 -0
- package/components/breadcrumb-ellipsis.js +7 -0
- package/components/breadcrumb-item.d.ts +1 -0
- package/components/breadcrumb-item.js +6 -0
- package/components/breadcrumb-link.d.ts +1 -0
- package/components/breadcrumb-link.js +16 -0
- package/components/breadcrumb-page.d.ts +1 -0
- package/components/breadcrumb-page.js +7 -0
- package/components/breadcrumb-separator.d.ts +1 -0
- package/components/breadcrumb-separator.js +7 -0
- package/components/breadcrumb.d.ts +1 -0
- package/components/breadcrumb.js +9 -0
- package/components/button.d.ts +1 -0
- package/components/button.js +137 -0
- package/components/calendar.d.ts +1 -0
- package/components/calendar.js +88 -0
- package/components/center.d.ts +1 -0
- package/components/center.js +2 -0
- package/components/checkbox-group.d.ts +1 -0
- package/components/checkbox-group.js +10 -0
- package/components/checkbox.d.ts +1 -0
- package/components/checkbox.js +53 -0
- package/components/collapsible.d.ts +1 -0
- package/components/collapsible.js +80 -0
- package/components/combobox.d.ts +1 -0
- package/components/combobox.js +99 -0
- package/components/command-empty.d.ts +1 -0
- package/components/command-empty.js +8 -0
- package/components/command-group.d.ts +1 -0
- package/components/command-group.js +13 -0
- package/components/command-input.d.ts +1 -0
- package/components/command-input.js +24 -0
- package/components/command-item.d.ts +1 -0
- package/components/command-item.js +24 -0
- package/components/command-list.d.ts +1 -0
- package/components/command-list.js +11 -0
- package/components/command-separator.d.ts +1 -0
- package/components/command-separator.js +8 -0
- package/components/command-shortcut.d.ts +1 -0
- package/components/command-shortcut.js +7 -0
- package/components/command.d.ts +1 -0
- package/components/command.js +8 -0
- package/components/data-table.d.ts +1 -0
- package/components/data-table.js +113 -0
- package/components/dialog-popup.d.ts +1 -0
- package/components/dialog-popup.js +72 -0
- package/components/dialog.d.ts +1 -0
- package/components/dialog.js +2 -0
- package/components/dropzone.d.ts +1 -0
- package/components/dropzone.js +32 -0
- package/components/hstack.d.ts +1 -0
- package/components/hstack.js +2 -0
- package/components/input.d.ts +1 -0
- package/components/input.js +53 -0
- package/components/link.d.ts +1 -0
- package/components/link.js +2 -0
- package/components/menu-item.d.ts +1 -0
- package/components/menu-item.js +36 -0
- package/components/menu.d.ts +1 -0
- package/components/menu.js +2 -0
- package/components/menubar.d.ts +1 -0
- package/components/menubar.js +10 -0
- package/components/number-field.d.ts +1 -0
- package/components/number-field.js +55 -0
- package/components/page-inset.d.ts +1 -0
- package/components/page-inset.js +2 -0
- package/components/popover-popup.d.ts +1 -0
- package/components/popover-popup.js +2 -0
- package/components/popover.d.ts +1 -0
- package/components/popover.js +2 -0
- package/components/portal.d.ts +1 -0
- package/components/portal.js +2 -0
- package/components/preview-card-popup.d.ts +1 -0
- package/components/preview-card-popup.js +2 -0
- package/components/preview-card.d.ts +1 -0
- package/components/preview-card.js +2 -0
- package/components/progress.d.ts +1 -0
- package/components/progress.js +32 -0
- package/components/radio-group.d.ts +1 -0
- package/components/radio-group.js +6 -0
- package/components/radio.d.ts +1 -0
- package/components/radio.js +47 -0
- package/components/scroll-area.d.ts +1 -0
- package/components/scroll-area.js +45 -0
- package/components/select.d.ts +1 -0
- package/components/select.js +44 -0
- package/components/separator.d.ts +1 -0
- package/components/separator.js +17 -0
- package/components/sidebar-content.d.ts +1 -0
- package/components/sidebar-content.js +2 -0
- package/components/sidebar-footer.d.ts +1 -0
- package/components/sidebar-footer.js +2 -0
- package/components/sidebar-group-label.d.ts +1 -0
- package/components/sidebar-group-label.js +19 -0
- package/components/sidebar-group.d.ts +1 -0
- package/components/sidebar-group.js +6 -0
- package/components/sidebar-header.d.ts +1 -0
- package/components/sidebar-header.js +6 -0
- package/components/sidebar-inset.d.ts +1 -0
- package/components/sidebar-inset.js +2 -0
- package/components/sidebar-menu-button.d.ts +1 -0
- package/components/sidebar-menu-button.js +82 -0
- package/components/sidebar-menu-item.d.ts +1 -0
- package/components/sidebar-menu-item.js +2 -0
- package/components/sidebar-menu.d.ts +1 -0
- package/components/sidebar-menu.js +6 -0
- package/components/sidebar-provider.d.ts +1 -0
- package/components/sidebar-provider.js +28 -0
- package/components/sidebar-separator.d.ts +1 -0
- package/components/sidebar-separator.js +8 -0
- package/components/sidebar-trigger.d.ts +1 -0
- package/components/sidebar-trigger.js +8 -0
- package/components/sidebar.d.ts +1 -0
- package/components/sidebar.js +90 -0
- package/components/slider.d.ts +1 -0
- package/components/slider.js +57 -0
- package/components/spinner.d.ts +1 -0
- package/components/spinner.js +24 -0
- package/components/switch.d.ts +1 -0
- package/components/switch.js +69 -0
- package/components/tab.d.ts +1 -0
- package/components/tab.js +34 -0
- package/components/tabs-indicator.d.ts +1 -0
- package/components/tabs-indicator.js +10 -0
- package/components/tabs-list.d.ts +1 -0
- package/components/tabs-list.js +13 -0
- package/components/tabs-panel.d.ts +1 -0
- package/components/tabs-panel.js +13 -0
- package/components/tabs.d.ts +1 -0
- package/components/tabs.js +2 -0
- package/components/textarea.d.ts +1 -0
- package/components/textarea.js +76 -0
- package/components/toggle-group.d.ts +1 -0
- package/components/toggle-group.js +9 -0
- package/components/toggle.d.ts +1 -0
- package/components/toggle.js +34 -0
- package/components/toolbar.d.ts +1 -0
- package/components/toolbar.js +49 -0
- package/components/tooltip-popup.d.ts +1 -0
- package/components/tooltip-popup.js +2 -0
- package/components/tooltip.d.ts +1 -0
- package/components/tooltip.js +2 -0
- package/components/trunc.d.ts +1 -0
- package/components/trunc.js +9 -0
- package/components/vstack.d.ts +1 -0
- package/components/vstack.js +2 -0
- package/index.d.ts +82 -0
- package/index.js +246 -0
- package/package.json +360 -0
- package/tokens-raw.d.ts +2 -0
- package/tokens-raw.js +2 -0
- package/tokens.css +338 -0
- package/tokens.d.ts +2 -0
- package/tokens.js +4 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const sidebarStyles = css `
|
|
3
|
+
/* ── Desktop Outer ── */
|
|
4
|
+
|
|
5
|
+
.DesktopOuter {
|
|
6
|
+
width: var(--sidebar-width);
|
|
7
|
+
transition: width var(--duration-normal) var(--ease-out-3);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([data-state="collapsed"][data-collapsible="offcanvas"]) .DesktopOuter {
|
|
11
|
+
width: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([data-state="collapsed"][data-collapsible="icon"]) .DesktopOuter {
|
|
15
|
+
width: var(--sidebar-width-icon);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([data-variant="floating"]) .DesktopOuter {
|
|
19
|
+
width: calc(var(--sidebar-width) + var(--space-4));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([data-variant="floating"][data-state="collapsed"][data-collapsible="icon"])
|
|
23
|
+
.DesktopOuter {
|
|
24
|
+
width: calc(var(--sidebar-width-icon) + var(--space-4));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([data-variant="inset"]) .DesktopOuter {
|
|
28
|
+
width: calc(var(--sidebar-width) + var(--space-4));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([data-variant="inset"][data-state="collapsed"][data-collapsible="icon"])
|
|
32
|
+
.DesktopOuter {
|
|
33
|
+
width: calc(var(--sidebar-width-icon) + var(--space-4));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ── Desktop Inner ── */
|
|
37
|
+
|
|
38
|
+
.DesktopInner {
|
|
39
|
+
width: var(--sidebar-width);
|
|
40
|
+
background: var(--sidebar-bg);
|
|
41
|
+
color: var(--sidebar-fg);
|
|
42
|
+
transition-duration: var(--duration-normal);
|
|
43
|
+
transition-timing-function: var(--ease-out-3);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([data-side="left"][data-variant="sidebar"]) .DesktopInner {
|
|
47
|
+
border-right: var(--border-width-thin) solid var(--sidebar-border);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([data-side="right"][data-variant="sidebar"]) .DesktopInner {
|
|
51
|
+
border-left: var(--border-width-thin) solid var(--sidebar-border);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([data-variant="floating"]) .DesktopInner {
|
|
55
|
+
margin: var(--space-2);
|
|
56
|
+
border-radius: var(--radius-lg);
|
|
57
|
+
border: var(--border-width-thin) solid var(--sidebar-border);
|
|
58
|
+
box-shadow: var(--shadow-md);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([data-variant="inset"]) .DesktopInner {
|
|
62
|
+
margin: var(--space-2);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:host([data-state="collapsed"][data-collapsible="icon"]) .DesktopInner {
|
|
66
|
+
width: var(--sidebar-width-icon);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ── Backdrop ── */
|
|
70
|
+
|
|
71
|
+
.Backdrop {
|
|
72
|
+
background: black;
|
|
73
|
+
opacity: 0.2;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Backdrop[data-starting-style],
|
|
77
|
+
.Backdrop[data-ending-style] {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ── Mobile Panel ── */
|
|
82
|
+
|
|
83
|
+
.MobilePanel {
|
|
84
|
+
width: var(--sidebar-width-mobile);
|
|
85
|
+
background: var(--sidebar-bg);
|
|
86
|
+
color: var(--sidebar-fg);
|
|
87
|
+
box-shadow: var(--shadow-lg);
|
|
88
|
+
transition: transform var(--duration-normal) var(--ease-out-3);
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sliderStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const sliderStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--slider-track-height: var(--space-1_5);
|
|
5
|
+
--slider-thumb-size: var(--space-4_5);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[part="root"] {
|
|
9
|
+
height: var(--slider-thumb-size);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[part="root"][data-disabled] {
|
|
13
|
+
opacity: 0.5;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[part="track"] {
|
|
17
|
+
height: var(--slider-track-height);
|
|
18
|
+
background: var(--muted);
|
|
19
|
+
border-radius: calc(var(--slider-track-height) / 2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part="indicator"] {
|
|
23
|
+
background: var(--primary);
|
|
24
|
+
border-radius: calc(var(--slider-track-height) / 2);
|
|
25
|
+
transition: width 50ms ease-out;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[part="root"][data-dragging] [part="indicator"] {
|
|
29
|
+
transition: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part="thumb"] {
|
|
33
|
+
width: var(--slider-thumb-size);
|
|
34
|
+
height: var(--slider-thumb-size);
|
|
35
|
+
background: var(--background);
|
|
36
|
+
border: 2px solid var(--primary);
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
transition-duration: 50ms, var(--duration-fast);
|
|
39
|
+
transition-timing-function: ease-out, ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[part="root"][data-dragging] [part="thumb"] {
|
|
43
|
+
transition: box-shadow var(--duration-fast);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@media (hover: hover) {
|
|
47
|
+
[part="thumb"]:hover {
|
|
48
|
+
box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 20%, transparent);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[part="thumb"]:focus-visible {
|
|
53
|
+
box-shadow:
|
|
54
|
+
0 0 0 var(--space-0_5) var(--background),
|
|
55
|
+
0 0 0 var(--space-1) var(--ring);
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const spinnerStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const spinnerStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--spinner-size: var(--component-height-xxs);
|
|
5
|
+
--spinner-color: currentColor;
|
|
6
|
+
width: var(--spinner-size);
|
|
7
|
+
height: var(--spinner-size);
|
|
8
|
+
color: var(--spinner-color);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([size="md"]) {
|
|
12
|
+
--spinner-size: var(--component-height-sm);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([size="lg"]) {
|
|
16
|
+
--spinner-size: var(--component-height-xl);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: reduce) {
|
|
20
|
+
[part="svg"][data-rotate] {
|
|
21
|
+
animation-duration: 3s;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const switchStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const switchStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--switch-width: var(--space-9);
|
|
5
|
+
--switch-height: var(--space-5);
|
|
6
|
+
--switch-thumb-size: var(--space-4);
|
|
7
|
+
--switch-thumb-offset: var(--space-0_5);
|
|
8
|
+
--track-inner: calc(var(--switch-width) - var(--switch-thumb-offset) * 2);
|
|
9
|
+
--switch-checked-offset: calc(var(--track-inner) - var(--switch-thumb-size));
|
|
10
|
+
gap: var(--space-2);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[part="root"] {
|
|
14
|
+
width: var(--switch-width);
|
|
15
|
+
height: var(--switch-height);
|
|
16
|
+
margin-block-start: calc(
|
|
17
|
+
(var(--line-height-normal) * 1em - var(--switch-height)) / 2
|
|
18
|
+
);
|
|
19
|
+
border-radius: calc(var(--switch-height) / 2);
|
|
20
|
+
outline: var(--border-width-thin) solid var(--input);
|
|
21
|
+
background: color-mix(in oklch, var(--input) 50%, transparent);
|
|
22
|
+
transition-duration: var(--duration-fast);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[part="root"][data-checked] {
|
|
26
|
+
background: var(--primary);
|
|
27
|
+
outline-color: var(--primary);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part="root"][data-disabled] {
|
|
31
|
+
opacity: 0.5;
|
|
32
|
+
cursor: not-allowed;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part="root"][data-readonly] {
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[part="root"]:focus-visible {
|
|
40
|
+
outline: none;
|
|
41
|
+
box-shadow:
|
|
42
|
+
0 0 0 var(--space-0_5) var(--background),
|
|
43
|
+
0 0 0 var(--space-1) var(--ring);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[part="root"][data-invalid] {
|
|
47
|
+
background: color-mix(in oklch, var(--destructive) 15%, transparent);
|
|
48
|
+
outline-color: color-mix(in oklch, var(--destructive) 70%, transparent);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[part="root"][data-invalid][data-checked] {
|
|
52
|
+
background: var(--destructive);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[part="thumb"] {
|
|
56
|
+
width: var(--switch-thumb-size);
|
|
57
|
+
height: var(--switch-thumb-size);
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
outline: 1px solid transparent;
|
|
60
|
+
background: var(--primary);
|
|
61
|
+
transition-duration: var(--duration-fast);
|
|
62
|
+
transition-timing-function: var(--ease-out-3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[part="root"][data-checked] [part="thumb"] {
|
|
66
|
+
background: var(--primary-foreground);
|
|
67
|
+
outline-color: var(--primary-foreground);
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const tabStyles = css `
|
|
3
|
+
[part="tab"] {
|
|
4
|
+
color: var(--muted-foreground);
|
|
5
|
+
font-size: var(--font-size-sm);
|
|
6
|
+
line-height: var(--line-height-snug);
|
|
7
|
+
font-weight: var(--font-weight-medium);
|
|
8
|
+
padding-inline: var(--space-2);
|
|
9
|
+
height: 2rem;
|
|
10
|
+
transition-duration: var(--duration-fast);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[part="tab"][data-active] {
|
|
14
|
+
color: var(--foreground);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (hover: hover) {
|
|
18
|
+
[part="tab"]:hover:not([data-disabled]) {
|
|
19
|
+
color: var(--foreground);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[part="tab"]:focus-visible {
|
|
24
|
+
box-shadow:
|
|
25
|
+
0 0 0 var(--space-0_5) var(--background),
|
|
26
|
+
0 0 0 var(--space-1) var(--ring);
|
|
27
|
+
border-radius: var(--radius-sm);
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part="tab"][data-disabled] {
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabsIndicatorStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabsListStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const tabsListStyles = css `
|
|
3
|
+
[part="list"] {
|
|
4
|
+
padding-inline: 0;
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[part="list"][data-orientation="vertical"] {
|
|
9
|
+
box-shadow: inset -1px 0 var(--border);
|
|
10
|
+
padding-inline: 0;
|
|
11
|
+
padding-block: var(--space-1);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabsPanelStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const tabsPanelStyles = css `
|
|
3
|
+
[part="panel"] {
|
|
4
|
+
transition-duration: var(--duration-fast);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[part="panel"]:focus-visible {
|
|
8
|
+
box-shadow:
|
|
9
|
+
0 0 0 var(--space-0_5) var(--background),
|
|
10
|
+
0 0 0 var(--space-1) var(--ring);
|
|
11
|
+
border-radius: var(--radius-md);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabsStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textareaStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const textareaStyles = css `
|
|
3
|
+
:host {
|
|
4
|
+
--font-size: var(--font-size-sm);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[part="textarea"] {
|
|
8
|
+
padding: var(--space-2);
|
|
9
|
+
font-family: var(--font-sans);
|
|
10
|
+
font-size: var(--font-size);
|
|
11
|
+
line-height: var(--line-height-snug);
|
|
12
|
+
color: var(--foreground);
|
|
13
|
+
border: var(--border-width-thin) solid var(--input);
|
|
14
|
+
background: var(--input-bg);
|
|
15
|
+
border-radius: var(--radius-md);
|
|
16
|
+
transition-duration: var(--duration-fast);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part="textarea"][data-resize="auto"] {
|
|
20
|
+
min-height: var(--component-height-md);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Scrollbar */
|
|
24
|
+
[part="textarea"] {
|
|
25
|
+
scrollbar-width: thin;
|
|
26
|
+
scrollbar-color: color-mix(in srgb, var(--muted-foreground) 50%, transparent) transparent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[part="textarea"]::-webkit-scrollbar {
|
|
30
|
+
width: 0.5rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[part="textarea"]::-webkit-scrollbar-track {
|
|
34
|
+
background: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[part="textarea"]::-webkit-scrollbar-thumb {
|
|
38
|
+
background: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
|
|
39
|
+
border-radius: var(--radius-sm);
|
|
40
|
+
border: 0.125rem solid transparent;
|
|
41
|
+
background-clip: padding-box;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part="textarea"]::-webkit-scrollbar-thumb:hover {
|
|
45
|
+
background: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[part="textarea"]::placeholder {
|
|
49
|
+
color: var(--muted-foreground);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[part="textarea"]:focus-visible {
|
|
53
|
+
box-shadow:
|
|
54
|
+
0 0 0 var(--space-0_5) var(--background),
|
|
55
|
+
0 0 0 var(--space-1) var(--ring);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[part="textarea"]:disabled {
|
|
59
|
+
opacity: 0.5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[part="textarea"][data-invalid] {
|
|
63
|
+
border-color: var(--destructive);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Ghost variant */
|
|
67
|
+
:host([variant="ghost"]) [part="textarea"] {
|
|
68
|
+
border-color: transparent;
|
|
69
|
+
background: transparent;
|
|
70
|
+
padding: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host([variant="ghost"]) [part="textarea"]:focus-visible {
|
|
74
|
+
box-shadow: none;
|
|
75
|
+
}
|
|
76
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toggleGroupStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toggleStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const toggleStyles = css `
|
|
3
|
+
[part="root"] {
|
|
4
|
+
height: var(--space-9);
|
|
5
|
+
padding: 0 var(--space-2_5);
|
|
6
|
+
border-radius: var(--radius-md);
|
|
7
|
+
font-size: var(--font-size-sm);
|
|
8
|
+
font-weight: var(--font-weight-medium);
|
|
9
|
+
color: var(--muted-foreground);
|
|
10
|
+
transition-property: background, color;
|
|
11
|
+
transition-duration: var(--duration-fast);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media (hover: hover) {
|
|
15
|
+
[part="root"]:hover:not(:disabled):not([data-pressed]) {
|
|
16
|
+
background: var(--muted);
|
|
17
|
+
color: var(--foreground);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part="root"][data-pressed] {
|
|
22
|
+
background: var(--secondary);
|
|
23
|
+
color: var(--foreground);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[part="root"]:focus-visible {
|
|
27
|
+
outline: 2px solid var(--ring);
|
|
28
|
+
outline-offset: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part="root"]:disabled {
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toolbarStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const toolbarStyles = css `
|
|
3
|
+
/* ── Root ── */
|
|
4
|
+
|
|
5
|
+
[part="root"] {
|
|
6
|
+
column-gap: var(--space-2);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([inset]) [part="root"] {
|
|
10
|
+
padding-top: var(--space-2);
|
|
11
|
+
padding-bottom: var(--space-2);
|
|
12
|
+
padding-left: var(--space-4);
|
|
13
|
+
padding-right: var(--space-4);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([inset][has-button-left]) [part="root"] {
|
|
17
|
+
padding-left: var(--space-2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([inset][has-button-right]) [part="root"] {
|
|
21
|
+
padding-right: var(--space-2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ── Size variants ── */
|
|
25
|
+
|
|
26
|
+
:host([size="sm"]) [part="root"] {
|
|
27
|
+
height: var(--component-height-sm);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([size="md"]) [part="root"] {
|
|
31
|
+
height: var(--component-height-md);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([size="lg"]) [part="root"] {
|
|
35
|
+
height: var(--component-height-lg);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([size="xl"]) [part="root"] {
|
|
39
|
+
height: var(--component-height-xl);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ── Slot containers ── */
|
|
43
|
+
|
|
44
|
+
[part="left"],
|
|
45
|
+
[part="center"],
|
|
46
|
+
[part="right"] {
|
|
47
|
+
gap: var(--space-2);
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tooltipPopupStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tooltipStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const truncStyles: import("lit").CSSResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vstackStyles: import("lit").CSSResult;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { DuiTheme } from "@deepfuture/dui-core/apply-theme";
|
|
2
|
+
export declare const defaultTheme: DuiTheme;
|
|
3
|
+
export { themedBase } from "./base.js";
|
|
4
|
+
export { accordionStyles } from "./components/accordion.js";
|
|
5
|
+
export { accordionItemStyles } from "./components/accordion-item.js";
|
|
6
|
+
export { buttonStyles } from "./components/button.js";
|
|
7
|
+
export { switchStyles } from "./components/switch.js";
|
|
8
|
+
export { badgeStyles } from "./components/badge.js";
|
|
9
|
+
export { scrollAreaStyles } from "./components/scroll-area.js";
|
|
10
|
+
export { comboboxStyles } from "./components/combobox.js";
|
|
11
|
+
export { menuStyles } from "./components/menu.js";
|
|
12
|
+
export { menuItemStyles } from "./components/menu-item.js";
|
|
13
|
+
export { popoverStyles } from "./components/popover.js";
|
|
14
|
+
export { popoverPopupStyles } from "./components/popover-popup.js";
|
|
15
|
+
export { tooltipStyles } from "./components/tooltip.js";
|
|
16
|
+
export { tooltipPopupStyles } from "./components/tooltip-popup.js";
|
|
17
|
+
export { dialogStyles } from "./components/dialog.js";
|
|
18
|
+
export { dialogPopupStyles } from "./components/dialog-popup.js";
|
|
19
|
+
export { alertDialogStyles } from "./components/alert-dialog.js";
|
|
20
|
+
export { alertDialogPopupStyles } from "./components/alert-dialog-popup.js";
|
|
21
|
+
export { breadcrumbStyles } from "./components/breadcrumb.js";
|
|
22
|
+
export { breadcrumbItemStyles } from "./components/breadcrumb-item.js";
|
|
23
|
+
export { breadcrumbLinkStyles } from "./components/breadcrumb-link.js";
|
|
24
|
+
export { breadcrumbPageStyles } from "./components/breadcrumb-page.js";
|
|
25
|
+
export { breadcrumbSeparatorStyles } from "./components/breadcrumb-separator.js";
|
|
26
|
+
export { breadcrumbEllipsisStyles } from "./components/breadcrumb-ellipsis.js";
|
|
27
|
+
export { checkboxStyles } from "./components/checkbox.js";
|
|
28
|
+
export { checkboxGroupStyles } from "./components/checkbox-group.js";
|
|
29
|
+
export { collapsibleStyles } from "./components/collapsible.js";
|
|
30
|
+
export { toolbarStyles } from "./components/toolbar.js";
|
|
31
|
+
export { sliderStyles } from "./components/slider.js";
|
|
32
|
+
export { spinnerStyles } from "./components/spinner.js";
|
|
33
|
+
export { tabStyles } from "./components/tab.js";
|
|
34
|
+
export { tabsStyles } from "./components/tabs.js";
|
|
35
|
+
export { tabsIndicatorStyles } from "./components/tabs-indicator.js";
|
|
36
|
+
export { tabsListStyles } from "./components/tabs-list.js";
|
|
37
|
+
export { tabsPanelStyles } from "./components/tabs-panel.js";
|
|
38
|
+
export { textareaStyles } from "./components/textarea.js";
|
|
39
|
+
export { truncStyles } from "./components/trunc.js";
|
|
40
|
+
export { centerStyles } from "./components/center.js";
|
|
41
|
+
export { hstackStyles } from "./components/hstack.js";
|
|
42
|
+
export { vstackStyles } from "./components/vstack.js";
|
|
43
|
+
export { pageInsetStyles } from "./components/page-inset.js";
|
|
44
|
+
export { linkStyles } from "./components/link.js";
|
|
45
|
+
export { avatarStyles } from "./components/avatar.js";
|
|
46
|
+
export { portalStyles } from "./components/portal.js";
|
|
47
|
+
export { inputStyles } from "./components/input.js";
|
|
48
|
+
export { radioStyles } from "./components/radio.js";
|
|
49
|
+
export { radioGroupStyles } from "./components/radio-group.js";
|
|
50
|
+
export { dropzoneStyles } from "./components/dropzone.js";
|
|
51
|
+
export { selectStyles } from "./components/select.js";
|
|
52
|
+
export { previewCardStyles } from "./components/preview-card.js";
|
|
53
|
+
export { previewCardPopupStyles } from "./components/preview-card-popup.js";
|
|
54
|
+
export { dataTableStyles } from "./components/data-table.js";
|
|
55
|
+
export { commandStyles } from "./components/command.js";
|
|
56
|
+
export { commandInputStyles } from "./components/command-input.js";
|
|
57
|
+
export { commandItemStyles } from "./components/command-item.js";
|
|
58
|
+
export { commandListStyles } from "./components/command-list.js";
|
|
59
|
+
export { commandGroupStyles } from "./components/command-group.js";
|
|
60
|
+
export { commandEmptyStyles } from "./components/command-empty.js";
|
|
61
|
+
export { commandSeparatorStyles } from "./components/command-separator.js";
|
|
62
|
+
export { commandShortcutStyles } from "./components/command-shortcut.js";
|
|
63
|
+
export { sidebarProviderStyles } from "./components/sidebar-provider.js";
|
|
64
|
+
export { sidebarStyles } from "./components/sidebar.js";
|
|
65
|
+
export { sidebarTriggerStyles } from "./components/sidebar-trigger.js";
|
|
66
|
+
export { sidebarContentStyles } from "./components/sidebar-content.js";
|
|
67
|
+
export { sidebarHeaderStyles } from "./components/sidebar-header.js";
|
|
68
|
+
export { sidebarFooterStyles } from "./components/sidebar-footer.js";
|
|
69
|
+
export { sidebarGroupStyles } from "./components/sidebar-group.js";
|
|
70
|
+
export { sidebarGroupLabelStyles } from "./components/sidebar-group-label.js";
|
|
71
|
+
export { sidebarMenuStyles } from "./components/sidebar-menu.js";
|
|
72
|
+
export { sidebarMenuItemStyles } from "./components/sidebar-menu-item.js";
|
|
73
|
+
export { sidebarMenuButtonStyles } from "./components/sidebar-menu-button.js";
|
|
74
|
+
export { sidebarSeparatorStyles } from "./components/sidebar-separator.js";
|
|
75
|
+
export { sidebarInsetStyles } from "./components/sidebar-inset.js";
|
|
76
|
+
export { separatorStyles } from "./components/separator.js";
|
|
77
|
+
export { progressStyles } from "./components/progress.js";
|
|
78
|
+
export { toggleStyles } from "./components/toggle.js";
|
|
79
|
+
export { toggleGroupStyles } from "./components/toggle-group.js";
|
|
80
|
+
export { numberFieldStyles } from "./components/number-field.js";
|
|
81
|
+
export { menubarStyles } from "./components/menubar.js";
|
|
82
|
+
export { calendarStyles } from "./components/calendar.js";
|