@yuva-devlab/ui 1.4.4 → 2.1.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.
Files changed (146) hide show
  1. package/README.md +117 -33
  2. package/dist/common.css +0 -40
  3. package/dist/components/accordion/accordion.mdx +18 -0
  4. package/dist/components/alert/alert.css +2 -2
  5. package/dist/components/alert-dialog/alert-dialog.mdx +18 -0
  6. package/dist/components/aspect-ratio/aspect-ratio.mdx +22 -0
  7. package/dist/components/badge/badge.css +31 -27
  8. package/dist/components/badge/badge.mdx +6 -4
  9. package/dist/components/breadcrumb/breadcrumb.mdx +18 -0
  10. package/dist/components/calendar/calendar-nav.css +111 -0
  11. package/dist/components/calendar/calendar.css +27 -82
  12. package/dist/components/calendar/calendar.mdx +18 -0
  13. package/dist/components/card/card.css +4 -4
  14. package/dist/components/carousel/carousel.css +4 -4
  15. package/dist/components/carousel/carousel.mdx +18 -0
  16. package/dist/components/chain-of-thought/chain-of-thought.css +72 -0
  17. package/dist/components/chain-of-thought/chain-of-thought.mdx +18 -0
  18. package/dist/components/chart/chart.css +86 -0
  19. package/dist/components/chart/chart.mdx +18 -0
  20. package/dist/components/checkbox/checkbox.css +11 -0
  21. package/dist/components/checkpoint/checkpoint.css +54 -0
  22. package/dist/components/checkpoint/checkpoint.mdx +18 -0
  23. package/dist/components/code-block/code-block.css +84 -0
  24. package/dist/components/code-block/code-block.mdx +26 -0
  25. package/dist/components/collapsible/collapsible.mdx +18 -0
  26. package/dist/components/command/command.css +3 -3
  27. package/dist/components/command/command.mdx +18 -0
  28. package/dist/components/confirm-dialog/confirm-dialog.mdx +18 -0
  29. package/dist/components/confirmation/confirmation.css +75 -0
  30. package/dist/components/confirmation/confirmation.mdx +22 -0
  31. package/dist/components/context/context.css +80 -0
  32. package/dist/components/context/context.mdx +18 -0
  33. package/dist/components/context-menu/context-menu.mdx +18 -0
  34. package/dist/components/copy-button/copy-button.mdx +18 -0
  35. package/dist/components/data-table/data-table.css +71 -0
  36. package/dist/components/data-table/data-table.mdx +22 -0
  37. package/dist/components/date-picker/date-picker.css +2 -2
  38. package/dist/components/date-picker/date-picker.mdx +18 -0
  39. package/dist/components/dialog/dialog.css +6 -6
  40. package/dist/components/drawer/drawer.mdx +18 -0
  41. package/dist/components/dropdown-menu/dropdown-menu.css +18 -0
  42. package/dist/components/dropdown-menu/dropdown-menu.mdx +18 -0
  43. package/dist/components/empty-state/empty-state.css +67 -0
  44. package/dist/components/empty-state/empty-state.mdx +18 -0
  45. package/dist/components/file-tree/file-tree.css +58 -0
  46. package/dist/components/file-tree/file-tree.mdx +18 -0
  47. package/dist/components/form/form.mdx +18 -0
  48. package/dist/components/hover-card/hover-card.mdx +18 -0
  49. package/dist/components/input-number/input-number.css +95 -0
  50. package/dist/components/input-number/input-number.mdx +34 -0
  51. package/dist/components/input-otp/input-otp.mdx +18 -0
  52. package/dist/components/kbd/kbd.css +78 -0
  53. package/dist/components/kbd/kbd.mdx +30 -0
  54. package/dist/components/label/label.mdx +18 -0
  55. package/dist/components/layout/layout.css +158 -0
  56. package/dist/components/layout/layout.mdx +30 -0
  57. package/dist/components/loading-state/loading-state.css +11 -0
  58. package/dist/components/loading-state/loading-state.mdx +18 -0
  59. package/dist/components/menubar/menubar.css +4 -4
  60. package/dist/components/menubar/menubar.mdx +18 -0
  61. package/dist/components/message/message.css +89 -0
  62. package/dist/components/message/message.mdx +14 -0
  63. package/dist/components/metric-card/metric-card.mdx +18 -0
  64. package/dist/components/model-selector/model-selector.css +138 -0
  65. package/dist/components/model-selector/model-selector.mdx +26 -0
  66. package/dist/components/multi-select/multi-select.css +212 -0
  67. package/dist/components/multi-select/multi-select.mdx +30 -0
  68. package/dist/components/navigation-menu/navigation-menu.css +2 -2
  69. package/dist/components/navigation-menu/navigation-menu.mdx +18 -0
  70. package/dist/components/pagination/pagination.css +8 -2
  71. package/dist/components/pagination/pagination.mdx +18 -0
  72. package/dist/components/panel/panel.mdx +18 -0
  73. package/dist/components/password-input/password-input.css +21 -0
  74. package/dist/components/password-input/password-input.mdx +30 -0
  75. package/dist/components/plan/plan.css +106 -0
  76. package/dist/components/plan/plan.mdx +22 -0
  77. package/dist/components/popover/popover.css +2 -7
  78. package/dist/components/popover/popover.mdx +18 -0
  79. package/dist/components/prompt-input/prompt-input.css +140 -0
  80. package/dist/components/prompt-input/prompt-input.mdx +22 -0
  81. package/dist/components/queue/queue.css +76 -0
  82. package/dist/components/queue/queue.mdx +18 -0
  83. package/dist/components/radio-group/radio-group.mdx +18 -0
  84. package/dist/components/resizable/resizable.mdx +18 -0
  85. package/dist/components/scroll-area/scroll-area.mdx +18 -0
  86. package/dist/components/search-input/search-input.css +21 -0
  87. package/dist/components/search-input/search-input.mdx +30 -0
  88. package/dist/components/searchable-select/searchable-select.css +26 -3
  89. package/dist/components/searchable-select/searchable-select.mdx +18 -0
  90. package/dist/components/secret-reveal-card/secret-reveal-card.css +6 -0
  91. package/dist/components/secret-reveal-card/secret-reveal-card.mdx +18 -0
  92. package/dist/components/select/select.css +17 -2
  93. package/dist/components/separator/separator.mdx +18 -0
  94. package/dist/components/sheet/sheet.css +5 -1
  95. package/dist/components/sheet/sheet.mdx +18 -0
  96. package/dist/components/sidebar/sidebar-menu.css +183 -0
  97. package/dist/components/sidebar/sidebar-submenu.css +69 -0
  98. package/dist/components/sidebar/sidebar.css +171 -4
  99. package/dist/components/sidebar/sidebar.mdx +18 -0
  100. package/dist/components/slider/slider.mdx +18 -0
  101. package/dist/components/sonner/sonner.css +68 -17
  102. package/dist/components/sonner/sonner.mdx +5 -3
  103. package/dist/components/sources/sources.css +105 -0
  104. package/dist/components/sources/sources.mdx +18 -0
  105. package/dist/components/stack-trace/stack-trace.css +105 -0
  106. package/dist/components/stack-trace/stack-trace.mdx +18 -0
  107. package/dist/components/status-chip/status-chip.mdx +18 -0
  108. package/dist/components/subagent/subagent.css +70 -0
  109. package/dist/components/subagent/subagent.mdx +18 -0
  110. package/dist/components/suggestion/suggestion.css +52 -0
  111. package/dist/components/suggestion/suggestion.mdx +14 -0
  112. package/dist/components/table/table.css +5 -3
  113. package/dist/components/tabs/tabs.css +3 -3
  114. package/dist/components/terminal/terminal.css +60 -0
  115. package/dist/components/terminal/terminal.mdx +26 -0
  116. package/dist/components/test-results/test-results.css +108 -0
  117. package/dist/components/test-results/test-results.mdx +18 -0
  118. package/dist/components/textarea/textarea.css +3 -3
  119. package/dist/components/textarea/textarea.mdx +18 -0
  120. package/dist/components/toggle/toggle.css +9 -9
  121. package/dist/components/toggle/toggle.mdx +18 -0
  122. package/dist/components/toggle-group/toggle-group.mdx +18 -0
  123. package/dist/components/tool-call/tool-call.css +111 -0
  124. package/dist/components/tool-call/tool-call.mdx +22 -0
  125. package/dist/components/tooltip/tooltip.mdx +18 -0
  126. package/dist/components/trace/trace.css +100 -0
  127. package/dist/components/trace/trace.mdx +18 -0
  128. package/dist/components/typography/heading.mdx +36 -0
  129. package/dist/components/typography/text.mdx +34 -0
  130. package/dist/components/typography/typography.css +98 -0
  131. package/dist/components.css +4454 -1179
  132. package/dist/index.cjs +4094 -1125
  133. package/dist/index.cjs.map +1 -1
  134. package/dist/index.d.cts +1742 -248
  135. package/dist/index.d.ts +1742 -248
  136. package/dist/index.js +4088 -1156
  137. package/dist/index.js.map +1 -1
  138. package/dist/preset.css +1 -4
  139. package/dist/styles/common.css +0 -40
  140. package/dist/styles/components.css +4454 -1179
  141. package/dist/styles/preset.css +1 -4
  142. package/dist/styles/styles.css +7 -4
  143. package/dist/styles/utilities.css +137 -0
  144. package/dist/styles.css +7 -4
  145. package/dist/utilities.css +137 -0
  146. package/package.json +5 -6
@@ -0,0 +1,111 @@
1
+ .dl-tool-call {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ border-radius: var(--radius-md, 0.375rem);
6
+ border: 1px solid var(--border);
7
+ background-color: var(--card, var(--background));
8
+ font-size: 0.8125rem;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .dl-tool-call__header {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ width: 100%;
17
+ padding: 0.5rem 0.75rem;
18
+ background: transparent;
19
+ border: none;
20
+ cursor: pointer;
21
+ text-align: left;
22
+ font: inherit;
23
+ color: var(--foreground);
24
+ }
25
+
26
+ .dl-tool-call__title-wrap {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 0.5rem;
30
+ }
31
+
32
+ .dl-tool-call__icon {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ width: 1.25rem;
37
+ height: 1.25rem;
38
+ color: var(--muted-foreground);
39
+ }
40
+
41
+ .dl-tool-call__name {
42
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
43
+ font-weight: 600;
44
+ font-size: 0.75rem;
45
+ }
46
+
47
+ .dl-tool-call__actions {
48
+ display: flex;
49
+ align-items: center;
50
+ gap: 0.5rem;
51
+ }
52
+
53
+ .dl-tool-call__status-badge {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ gap: 0.25rem;
57
+ font-size: 0.6875rem;
58
+ font-weight: 500;
59
+ padding: 0.125rem 0.375rem;
60
+ border-radius: var(--radius-sm, 0.25rem);
61
+ }
62
+
63
+ .dl-tool-call__status-badge--running {
64
+ background-color: color-mix(in oklch, var(--primary) 12%, transparent);
65
+ color: var(--primary);
66
+ }
67
+
68
+ .dl-tool-call__status-badge--success {
69
+ background-color: color-mix(in oklch, var(--success) 12%, transparent);
70
+ color: var(--success);
71
+ }
72
+
73
+ .dl-tool-call__status-badge--error {
74
+ background-color: color-mix(in oklch, var(--destructive) 12%, transparent);
75
+ color: var(--destructive);
76
+ }
77
+
78
+ .dl-tool-call__chevron {
79
+ width: 0.875rem;
80
+ height: 0.875rem;
81
+ color: var(--muted-foreground);
82
+ transition: transform 0.2s ease;
83
+ }
84
+
85
+ .dl-tool-call[data-state="open"] .dl-tool-call__chevron {
86
+ transform: rotate(180deg);
87
+ }
88
+
89
+ .dl-tool-call__body {
90
+ display: flex;
91
+ flex-direction: column;
92
+ gap: 0.5rem;
93
+ padding: 0.5rem 0.75rem 0.75rem;
94
+ border-top: 1px solid var(--border);
95
+ background-color: var(--secondary, var(--background));
96
+ }
97
+
98
+ .dl-tool-call__args {
99
+ display: flex;
100
+ flex-wrap: wrap;
101
+ gap: 0.375rem;
102
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, monospace);
103
+ font-size: 0.6875rem;
104
+ }
105
+
106
+ .dl-tool-call__arg-pill {
107
+ padding: 0.125rem 0.375rem;
108
+ border-radius: var(--radius-sm, 0.25rem);
109
+ background-color: var(--background);
110
+ border: 1px solid var(--border);
111
+ }
@@ -0,0 +1,22 @@
1
+ import { Meta, Title, Description, Canvas } from "@storybook/blocks";
2
+ import * as ToolCallStories from "./tool-call.stories";
3
+
4
+ <Meta of={ToolCallStories} />
5
+
6
+ <Title />
7
+
8
+ # Tool Call
9
+
10
+ Visualizer card for agent tool executions, displaying tool name, parameter pills, live execution status badge, and expandable return payloads.
11
+
12
+ ## Completed Success with Output Payload
13
+
14
+ <Canvas of={ToolCallStories.Default} />
15
+
16
+ ## Live Running Execution
17
+
18
+ <Canvas of={ToolCallStories.Running} />
19
+
20
+ ## Error State with Exception Details
21
+
22
+ <Canvas of={ToolCallStories.ErrorState} />
@@ -0,0 +1,18 @@
1
+ import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
2
+ import * as TooltipStories from "./tooltip.stories";
3
+
4
+ <Meta of={TooltipStories} />
5
+
6
+ <Title />
7
+
8
+ # Tooltip
9
+
10
+ Popup that displays contextual information related to an element when focused or hovered.
11
+
12
+ ## Default
13
+
14
+ <Canvas of={TooltipStories.Default} />
15
+
16
+ ## Component Properties
17
+
18
+ <Controls />
@@ -0,0 +1,100 @@
1
+ .dl-trace {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ font-size: 0.8125rem;
7
+ }
8
+
9
+ .dl-trace-line {
10
+ position: relative;
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 0.625rem;
14
+ padding: 0.375rem 0;
15
+ color: var(--foreground);
16
+ }
17
+
18
+ .dl-trace-icon {
19
+ display: inline-flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ width: 1.25rem;
23
+ height: 1.25rem;
24
+ border-radius: 9999px;
25
+ background-color: var(--muted);
26
+ color: var(--muted-foreground);
27
+ flex-shrink: 0;
28
+ }
29
+
30
+ .dl-trace-icon--running {
31
+ background-color: transparent;
32
+ color: var(--primary);
33
+ animation: dl-spin 1s linear infinite;
34
+ }
35
+
36
+ .dl-trace-icon--success {
37
+ background-color: color-mix(in oklch, var(--success) 15%, transparent);
38
+ color: var(--success);
39
+ }
40
+
41
+ .dl-trace-icon--error {
42
+ background-color: color-mix(in oklch, var(--destructive) 15%, transparent);
43
+ color: var(--destructive);
44
+ }
45
+
46
+ .dl-trace-title {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: 0.5rem;
50
+ font-weight: 500;
51
+ line-height: 1.25rem;
52
+ color: var(--foreground);
53
+ }
54
+
55
+ .dl-trace-content {
56
+ margin-left: 1.875rem;
57
+ padding: 0.25rem 0 0.5rem;
58
+ color: var(--muted-foreground);
59
+ }
60
+
61
+ .dl-trace-collapsible-trigger {
62
+ display: flex;
63
+ align-items: center;
64
+ width: 100%;
65
+ background: transparent;
66
+ border: none;
67
+ padding: 0;
68
+ cursor: pointer;
69
+ text-align: left;
70
+ font: inherit;
71
+ color: inherit;
72
+ }
73
+
74
+ .dl-trace-collapsible-trigger:hover .dl-trace-title {
75
+ color: var(--primary);
76
+ }
77
+
78
+ /* ── Shimmer Animation Utility for AI Streaming ── */
79
+ @keyframes dl-shimmer-sweep {
80
+ 0% {
81
+ background-position: -200% 0;
82
+ }
83
+ 100% {
84
+ background-position: 200% 0;
85
+ }
86
+ }
87
+
88
+ .dl-shimmer {
89
+ background: linear-gradient(
90
+ 90deg,
91
+ var(--muted-foreground) 0%,
92
+ var(--foreground) 50%,
93
+ var(--muted-foreground) 100%
94
+ );
95
+ background-size: 200% 100%;
96
+ -webkit-background-clip: text;
97
+ background-clip: text;
98
+ -webkit-text-fill-color: transparent;
99
+ animation: dl-shimmer-sweep 2.2s infinite linear;
100
+ }
@@ -0,0 +1,18 @@
1
+ import { Meta, Title, Description, Canvas } from "@storybook/blocks";
2
+ import * as TraceStories from "./trace.stories";
3
+
4
+ <Meta of={TraceStories} />
5
+
6
+ <Title />
7
+
8
+ # Trace
9
+
10
+ Vertical step execution line primitive with status icons, animated running states, and collapsible step groups. Powers Chain of Thought and Tool Call visualizers.
11
+
12
+ ## Default
13
+
14
+ <Canvas of={TraceStories.Default} />
15
+
16
+ ## Collapsible Trace
17
+
18
+ <Canvas of={TraceStories.CollapsibleTrace} />
@@ -0,0 +1,36 @@
1
+ import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
2
+ import * as HeadingStories from "./heading.stories";
3
+
4
+ <Meta of={HeadingStories} />
5
+
6
+ <Title />
7
+
8
+ # Heading
9
+
10
+ Accessible typography heading primitive that decouples semantic DOM hierarchy (`as="h1"`) from visual presentation size (`size="h3"`).
11
+
12
+ ## Default
13
+
14
+ <Canvas of={HeadingStories.Default} />
15
+
16
+ ## All Sizes
17
+
18
+ Available in `display`, `h1`, `h2`, `h3`, `h4`, `h5`, and `h6`.
19
+
20
+ <Canvas of={HeadingStories.AllSizes} />
21
+
22
+ ## Decoupled Semantic Hierarchy
23
+
24
+ Ensures document accessibility and SEO compliance by allowing headings to render the correct semantic level while visually matching the UI design specs.
25
+
26
+ <Canvas of={HeadingStories.DecoupledHierarchy} />
27
+
28
+ ## Color Variants
29
+
30
+ Supports semantic token colors: `default`, `primary`, `muted`, `success`, `warning`, `destructive`, and `info`.
31
+
32
+ <Canvas of={HeadingStories.ColorVariants} />
33
+
34
+ ## Component Properties
35
+
36
+ <Controls />
@@ -0,0 +1,34 @@
1
+ import { Meta, Title, Description, Canvas, Controls } from "@storybook/blocks";
2
+ import * as TextStories from "./text.stories";
3
+
4
+ <Meta of={TextStories} />
5
+
6
+ <Title />
7
+
8
+ # Text
9
+
10
+ Versatile body, caption, code, and metric typography primitive with semantic color tokens and responsive hierarchy.
11
+
12
+ ## Default
13
+
14
+ <Canvas of={TextStories.Default} />
15
+
16
+ ## All Variants
17
+
18
+ Available in `body-lg`, `body`, `body-sm`, `caption`, `code`, and `metric`.
19
+
20
+ <Canvas of={TextStories.AllVariants} />
21
+
22
+ ## Color Variants
23
+
24
+ Supports `default`, `muted`, `subtle`, `primary`, `success`, `warning`, `destructive`, and `info`.
25
+
26
+ <Canvas of={TextStories.ColorVariants} />
27
+
28
+ ## Single-Line Truncation
29
+
30
+ <Canvas of={TextStories.Truncated} />
31
+
32
+ ## Component Properties
33
+
34
+ <Controls />
@@ -0,0 +1,98 @@
1
+ /**
2
+ * @file typography.css
3
+ * @description Typography primitive styling and modifier attributes.
4
+ * Governed by W3C Cascade Layers.
5
+ */
6
+
7
+ @layer dl-components {
8
+ /* ── Color Modifiers ───────────────────────────────────────────────────── */
9
+ .dl-heading[data-typography-color="default"],
10
+ .dl-text[data-typography-color="default"] {
11
+ color: var(--foreground);
12
+ }
13
+
14
+ .dl-heading[data-typography-color="muted"],
15
+ .dl-text[data-typography-color="muted"] {
16
+ color: var(--muted-foreground);
17
+ }
18
+
19
+ .dl-heading[data-typography-color="subtle"],
20
+ .dl-text[data-typography-color="subtle"] {
21
+ color: color-mix(in oklch, var(--muted-foreground) 80%, transparent);
22
+ }
23
+
24
+ .dl-heading[data-typography-color="primary"],
25
+ .dl-text[data-typography-color="primary"] {
26
+ color: var(--primary);
27
+ }
28
+
29
+ .dl-heading[data-typography-color="destructive"],
30
+ .dl-text[data-typography-color="destructive"] {
31
+ color: var(--destructive);
32
+ }
33
+
34
+ .dl-heading[data-typography-color="warning"],
35
+ .dl-text[data-typography-color="warning"] {
36
+ color: var(--warning);
37
+ }
38
+
39
+ .dl-heading[data-typography-color="success"],
40
+ .dl-text[data-typography-color="success"] {
41
+ color: var(--success);
42
+ }
43
+
44
+ .dl-heading[data-typography-color="info"],
45
+ .dl-text[data-typography-color="info"] {
46
+ color: var(--info);
47
+ }
48
+
49
+ /* ── Alignment Modifiers ───────────────────────────────────────────────── */
50
+ .dl-heading[data-typography-align="left"],
51
+ .dl-text[data-typography-align="left"] {
52
+ text-align: left;
53
+ }
54
+
55
+ .dl-heading[data-typography-align="center"],
56
+ .dl-text[data-typography-align="center"] {
57
+ text-align: center;
58
+ }
59
+
60
+ .dl-heading[data-typography-align="right"],
61
+ .dl-text[data-typography-align="right"] {
62
+ text-align: right;
63
+ }
64
+
65
+ /* ── Truncation Modifier ───────────────────────────────────────────────── */
66
+ .dl-heading[data-typography-truncate="true"],
67
+ .dl-text[data-typography-truncate="true"] {
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ white-space: nowrap;
71
+ }
72
+
73
+ /* ── Weight Overrides ──────────────────────────────────────────────────── */
74
+ .dl-heading[data-typography-weight="normal"],
75
+ .dl-text[data-typography-weight="normal"] {
76
+ font-weight: 400;
77
+ }
78
+
79
+ .dl-heading[data-typography-weight="medium"],
80
+ .dl-text[data-typography-weight="medium"] {
81
+ font-weight: 500;
82
+ }
83
+
84
+ .dl-heading[data-typography-weight="semibold"],
85
+ .dl-text[data-typography-weight="semibold"] {
86
+ font-weight: 600;
87
+ }
88
+
89
+ .dl-heading[data-typography-weight="bold"],
90
+ .dl-text[data-typography-weight="bold"] {
91
+ font-weight: 700;
92
+ }
93
+
94
+ .dl-heading[data-typography-weight="extrabold"],
95
+ .dl-text[data-typography-weight="extrabold"] {
96
+ font-weight: 800;
97
+ }
98
+ }