@yuva-devlab/ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common.css +158 -0
- package/dist/components/accordion/accordion.css +49 -0
- package/dist/components/alert/alert.css +63 -0
- package/dist/components/alert/alert.mdx +26 -0
- package/dist/components/alert-dialog/alert-dialog.css +84 -0
- package/dist/components/avatar/avatar.css +26 -0
- package/dist/components/avatar/avatar.mdx +18 -0
- package/dist/components/badge/badge.css +76 -0
- package/dist/components/badge/badge.mdx +24 -0
- package/dist/components/breadcrumb/breadcrumb.css +63 -0
- package/dist/components/button/button.css +106 -0
- package/dist/components/button/button.mdx +40 -0
- package/dist/components/card/card.css +30 -0
- package/dist/components/card/card.mdx +18 -0
- package/dist/components/carousel/carousel.css +67 -0
- package/dist/components/chart/chart.css +38 -0
- package/dist/components/checkbox/checkbox.css +27 -0
- package/dist/components/checkbox/checkbox.mdx +22 -0
- package/dist/components/command/command.css +125 -0
- package/dist/components/context-menu/context-menu.css +19 -0
- package/dist/components/date-picker/date-picker.css +30 -0
- package/dist/components/dialog/dialog.css +145 -0
- package/dist/components/dialog/dialog.mdx +18 -0
- package/dist/components/drawer/drawer.css +64 -0
- package/dist/components/dropdown-menu/dropdown-menu.css +82 -0
- package/dist/components/form/form.css +17 -0
- package/dist/components/hover-card/hover-card.css +23 -0
- package/dist/components/input/input.css +89 -0
- package/dist/components/input/input.mdx +30 -0
- package/dist/components/input-otp/input-otp.css +70 -0
- package/dist/components/label/label.css +9 -0
- package/dist/components/loading-state/loading-state.css +26 -0
- package/dist/components/menubar/menubar.css +36 -0
- package/dist/components/navigation-menu/navigation-menu.css +137 -0
- package/dist/components/pagination/pagination.css +43 -0
- package/dist/components/panel/panel.css +24 -0
- package/dist/components/popover/popover.css +17 -0
- package/dist/components/progress/progress.css +15 -0
- package/dist/components/progress/progress.mdx +18 -0
- package/dist/components/radio-group/radio-group.css +37 -0
- package/dist/components/resizable/resizable.css +67 -0
- package/dist/components/scroll-area/scroll-area.css +32 -0
- package/dist/components/searchable-select/searchable-select.css +128 -0
- package/dist/components/select/select.css +97 -0
- package/dist/components/select/select.mdx +18 -0
- package/dist/components/separator/separator.css +14 -0
- package/dist/components/sheet/sheet.css +83 -0
- package/dist/components/sidebar/sidebar.css +18 -0
- package/dist/components/skeleton/skeleton.css +5 -0
- package/dist/components/skeleton/skeleton.mdx +18 -0
- package/dist/components/slider/slider.css +37 -0
- package/dist/components/sonner/sonner.css +25 -0
- package/dist/components/sonner/sonner.mdx +22 -0
- package/dist/components/status-badge/status-badge.css +53 -0
- package/dist/components/status-badge/status-badge.mdx +24 -0
- package/dist/components/status-chip/status-chip.css +44 -0
- package/dist/components/switch/switch.css +45 -0
- package/dist/components/switch/switch.mdx +22 -0
- package/dist/components/table/table.css +46 -0
- package/dist/components/table/table.mdx +18 -0
- package/dist/components/tabs/tabs.css +46 -0
- package/dist/components/tabs/tabs.mdx +18 -0
- package/dist/components/textarea/textarea.css +30 -0
- package/dist/components/toggle/toggle.css +91 -0
- package/dist/components/tooltip/tooltip.css +17 -0
- package/dist/components.css +2618 -0
- package/dist/index.cjs +1447 -1836
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1819 -202
- package/dist/index.d.ts +1819 -202
- package/dist/index.js +1442 -1837
- package/dist/index.js.map +1 -1
- package/dist/preset.css +6 -157
- package/dist/root.css +1 -0
- package/dist/styles/common.css +158 -0
- package/dist/styles/components.css +2618 -0
- package/dist/styles/preset.css +6 -157
- package/dist/styles/root.css +1 -0
- package/dist/styles/styles.css +17 -5
- package/dist/styles/themes/finai.css +1 -114
- package/dist/styles/themes/orchestrai.css +1 -75
- package/dist/styles.css +17 -5
- package/dist/themes/finai.css +1 -114
- package/dist/themes/orchestrai.css +1 -75
- package/package.json +11 -5
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.dl-switch {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
height: 1.25rem;
|
|
4
|
+
width: 2.25rem;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
align-items: center;
|
|
8
|
+
border-radius: 9999px;
|
|
9
|
+
border: 2px solid transparent;
|
|
10
|
+
box-shadow: 0 1px 2px rgb(0 0 0/0.08);
|
|
11
|
+
transition: background-color 0.2s ease;
|
|
12
|
+
background: none;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
.dl-switch:focus-visible {
|
|
16
|
+
outline: 2px solid var(--ring);
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
}
|
|
19
|
+
.dl-switch:disabled {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
}
|
|
23
|
+
.dl-switch[data-state="checked"] {
|
|
24
|
+
background-color: var(--primary);
|
|
25
|
+
}
|
|
26
|
+
.dl-switch[data-state="unchecked"] {
|
|
27
|
+
background-color: var(--input);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dl-switch__thumb {
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
display: block;
|
|
33
|
+
border-radius: 9999px;
|
|
34
|
+
background-color: var(--background);
|
|
35
|
+
box-shadow: 0 1px 2px rgb(0 0 0/0.15);
|
|
36
|
+
transition: transform 0.2s ease;
|
|
37
|
+
width: 1rem;
|
|
38
|
+
height: 1rem;
|
|
39
|
+
}
|
|
40
|
+
.dl-switch__thumb[data-state="checked"] {
|
|
41
|
+
transform: translateX(1rem);
|
|
42
|
+
}
|
|
43
|
+
.dl-switch__thumb[data-state="unchecked"] {
|
|
44
|
+
transform: translateX(0);
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
|
|
2
|
+
import * as SwitchStories from "./switch.stories";
|
|
3
|
+
|
|
4
|
+
<Meta of={SwitchStories} />
|
|
5
|
+
|
|
6
|
+
<Title />
|
|
7
|
+
|
|
8
|
+
# Switch
|
|
9
|
+
|
|
10
|
+
A control that allows the user to toggle between checked and unchecked states.
|
|
11
|
+
|
|
12
|
+
## Default
|
|
13
|
+
|
|
14
|
+
<Canvas of={SwitchStories.Default} />
|
|
15
|
+
|
|
16
|
+
## Disabled State
|
|
17
|
+
|
|
18
|
+
<Canvas of={SwitchStories.Disabled} />
|
|
19
|
+
|
|
20
|
+
## Component Properties
|
|
21
|
+
|
|
22
|
+
<Controls />
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.dl-table-wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dl-table {
|
|
8
|
+
width: 100%;
|
|
9
|
+
caption-side: bottom;
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
border-collapse: collapse;
|
|
12
|
+
}
|
|
13
|
+
.dl-table__head tr {
|
|
14
|
+
border-bottom: 1px solid var(--border);
|
|
15
|
+
}
|
|
16
|
+
.dl-table__body tr:last-child {
|
|
17
|
+
border-bottom: none;
|
|
18
|
+
}
|
|
19
|
+
.dl-table__body tr:hover {
|
|
20
|
+
background-color: color-mix(in oklch, var(--muted) 50%, transparent);
|
|
21
|
+
}
|
|
22
|
+
.dl-table__foot {
|
|
23
|
+
border-top: 1px solid var(--border);
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
}
|
|
26
|
+
.dl-table__row {
|
|
27
|
+
border-bottom: 1px solid var(--border);
|
|
28
|
+
transition: background-color 0.1s;
|
|
29
|
+
}
|
|
30
|
+
.dl-table__head-cell {
|
|
31
|
+
height: 2.5rem;
|
|
32
|
+
padding: 0 0.5rem;
|
|
33
|
+
text-align: left;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
color: var(--muted-foreground);
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
}
|
|
38
|
+
.dl-table__cell {
|
|
39
|
+
padding: 0.75rem 0.5rem;
|
|
40
|
+
vertical-align: middle;
|
|
41
|
+
}
|
|
42
|
+
.dl-table__caption {
|
|
43
|
+
margin-top: 1rem;
|
|
44
|
+
font-size: 0.875rem;
|
|
45
|
+
color: var(--muted-foreground);
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
|
|
2
|
+
import * as TableStories from "./table.stories";
|
|
3
|
+
|
|
4
|
+
<Meta of={TableStories} />
|
|
5
|
+
|
|
6
|
+
<Title />
|
|
7
|
+
|
|
8
|
+
# Table
|
|
9
|
+
|
|
10
|
+
Accessible data table layout components providing header, body, rows, cells, and captions with hover row highlights.
|
|
11
|
+
|
|
12
|
+
## Default
|
|
13
|
+
|
|
14
|
+
<Canvas of={TableStories.Default} />
|
|
15
|
+
|
|
16
|
+
## Component Properties
|
|
17
|
+
|
|
18
|
+
<Controls />
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.dl-tabs-list {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
height: 2.25rem;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
border-radius: var(--radius-lg, 0.5rem);
|
|
7
|
+
background-color: var(--muted);
|
|
8
|
+
padding: 0.25rem;
|
|
9
|
+
color: var(--muted-foreground);
|
|
10
|
+
}
|
|
11
|
+
.dl-tabs-trigger {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
17
|
+
padding: 0.25rem 0.75rem;
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
font-family: inherit;
|
|
22
|
+
transition: all 0.15s ease;
|
|
23
|
+
border: none;
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
|
+
.dl-tabs-trigger:focus-visible {
|
|
28
|
+
outline: 2px solid var(--ring);
|
|
29
|
+
outline-offset: 2px;
|
|
30
|
+
}
|
|
31
|
+
.dl-tabs-trigger:disabled {
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
}
|
|
35
|
+
.dl-tabs-trigger[data-state="active"] {
|
|
36
|
+
background-color: var(--background);
|
|
37
|
+
color: var(--foreground);
|
|
38
|
+
box-shadow: 0 1px 3px rgb(0 0 0/0.1);
|
|
39
|
+
}
|
|
40
|
+
.dl-tabs-content {
|
|
41
|
+
margin-top: 0.5rem;
|
|
42
|
+
}
|
|
43
|
+
.dl-tabs-content:focus-visible {
|
|
44
|
+
outline: 2px solid var(--ring);
|
|
45
|
+
outline-offset: 2px;
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
|
|
2
|
+
import * as TabsStories from "./tabs.stories";
|
|
3
|
+
|
|
4
|
+
<Meta of={TabsStories} />
|
|
5
|
+
|
|
6
|
+
<Title />
|
|
7
|
+
|
|
8
|
+
# Tabs
|
|
9
|
+
|
|
10
|
+
Tabbed interface built upon Radix UI Tabs for switching between related views and panels with keyboard accessibility.
|
|
11
|
+
|
|
12
|
+
## Default
|
|
13
|
+
|
|
14
|
+
<Canvas of={TabsStories.Default} />
|
|
15
|
+
|
|
16
|
+
## Component Properties
|
|
17
|
+
|
|
18
|
+
<Controls />
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.dl-textarea {
|
|
2
|
+
display: block;
|
|
3
|
+
min-height: 4rem;
|
|
4
|
+
width: 100%;
|
|
5
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
6
|
+
border: 1px solid var(--input);
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
padding-block: 0.5rem;
|
|
9
|
+
padding-inline: 0.75rem;
|
|
10
|
+
font-size: 0.875rem;
|
|
11
|
+
font-family: inherit;
|
|
12
|
+
color: var(--foreground);
|
|
13
|
+
box-shadow: 0 1px 2px rgb(0 0 0/0.05);
|
|
14
|
+
outline: none;
|
|
15
|
+
transition: border-color 0.15s ease;
|
|
16
|
+
resize: vertical;
|
|
17
|
+
}
|
|
18
|
+
.dl-textarea::placeholder {
|
|
19
|
+
color: var(--muted-foreground);
|
|
20
|
+
}
|
|
21
|
+
.dl-textarea:focus,
|
|
22
|
+
.dl-textarea:focus-visible {
|
|
23
|
+
outline: none;
|
|
24
|
+
border-color: var(--ring);
|
|
25
|
+
box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 25%, transparent);
|
|
26
|
+
}
|
|
27
|
+
.dl-textarea:disabled {
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
.dl-toggle {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
background-color: transparent;
|
|
11
|
+
color: inherit;
|
|
12
|
+
border: 1px solid transparent;
|
|
13
|
+
outline: none;
|
|
14
|
+
transition:
|
|
15
|
+
background-color 0.15s ease,
|
|
16
|
+
color 0.15s ease,
|
|
17
|
+
border-color 0.15s ease;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dl-toggle:hover {
|
|
21
|
+
background-color: var(--muted);
|
|
22
|
+
color: var(--muted-foreground);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dl-toggle:focus,
|
|
26
|
+
.dl-toggle:focus-visible {
|
|
27
|
+
outline: 2px solid var(--ring);
|
|
28
|
+
outline-offset: 2px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dl-toggle:disabled,
|
|
32
|
+
.dl-toggle[data-disabled] {
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
opacity: 0.5;
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dl-toggle[data-state="on"] {
|
|
39
|
+
background-color: var(--accent);
|
|
40
|
+
color: var(--accent-foreground);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dl-toggle svg {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
width: 1rem;
|
|
46
|
+
height: 1rem;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Variants */
|
|
51
|
+
.dl-toggle--variant-default {
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dl-toggle--variant-outline {
|
|
56
|
+
border-color: var(--input);
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dl-toggle--variant-outline:hover {
|
|
62
|
+
background-color: var(--accent);
|
|
63
|
+
color: var(--accent-foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Sizes */
|
|
67
|
+
.dl-toggle--size-default {
|
|
68
|
+
height: 2.25rem;
|
|
69
|
+
padding-inline: 0.5rem;
|
|
70
|
+
min-width: 2.25rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dl-toggle--size-sm {
|
|
74
|
+
height: 2rem;
|
|
75
|
+
padding-inline: 0.375rem;
|
|
76
|
+
min-width: 2rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dl-toggle--size-lg {
|
|
80
|
+
height: 2.5rem;
|
|
81
|
+
padding-inline: 0.625rem;
|
|
82
|
+
min-width: 2.5rem;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Group */
|
|
86
|
+
.dl-toggle-group {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
gap: 0.25rem;
|
|
91
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.dl-tooltip {
|
|
2
|
+
z-index: 50;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
5
|
+
border: 1px solid var(--border);
|
|
6
|
+
background-color: var(--popover);
|
|
7
|
+
color: var(--popover-foreground);
|
|
8
|
+
padding: 0.375rem 0.75rem;
|
|
9
|
+
font-size: 0.75rem;
|
|
10
|
+
box-shadow: 0 2px 8px rgb(0 0 0/0.12);
|
|
11
|
+
}
|
|
12
|
+
.dl-tooltip[data-state="delayed-open"] {
|
|
13
|
+
animation: dl-fade-in 100ms ease;
|
|
14
|
+
}
|
|
15
|
+
.dl-tooltip[data-state="closed"] {
|
|
16
|
+
animation: dl-fade-out 100ms ease;
|
|
17
|
+
}
|