@devalok/shilp-sutra 0.31.0 → 0.33.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/LICENSE +21 -0
- package/dist/_chunks/badge-group.js +123 -172
- package/dist/_chunks/date-time-picker.js +851 -0
- package/dist/_chunks/document-preview.js +92 -0
- package/dist/_chunks/file-preview.js +511 -0
- package/dist/_chunks/image-preview.js +90 -0
- package/dist/_chunks/mention-suggestion.js +362 -0
- package/dist/_chunks/primitives.js +109 -109
- package/dist/_chunks/stat-row.js +144 -124
- package/dist/_chunks/tiptap.js +11595 -7731
- package/dist/_chunks/use-calendar.js +117 -890
- package/dist/_chunks/vendor-client.js +1055 -894
- package/dist/ai/block-renderer.d.ts +2 -1
- package/dist/ai/block-renderer.d.ts.map +1 -1
- package/dist/ai/block-renderer.js +30 -29
- package/dist/ai/blocks/block-table.d.ts.map +1 -1
- package/dist/ai/blocks/confirm.d.ts.map +1 -1
- package/dist/ai/blocks/divider.d.ts.map +1 -1
- package/dist/ai/blocks/error.d.ts.map +1 -1
- package/dist/ai/blocks/info.d.ts.map +1 -1
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/blocks/stat-row.d.ts.map +1 -1
- package/dist/ai/blocks/success.d.ts.map +1 -1
- package/dist/ai/blocks/text.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts +18 -0
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +126 -125
- package/dist/ai/conversation.d.ts +13 -1
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +78 -78
- package/dist/ai/types.d.ts +0 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +0 -1
- package/dist/composed/bulk-action-bar.d.ts +6 -4
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +102 -58
- package/dist/composed/command-palette.d.ts +9 -0
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +68 -68
- package/dist/composed/confirm-dialog.d.ts +1 -1
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +10 -10
- package/dist/composed/date-picker/date-picker.d.ts +11 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/index.js +9 -8
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +39 -36
- package/dist/composed/emoji-picker.d.ts +14 -2
- package/dist/composed/emoji-picker.d.ts.map +1 -1
- package/dist/composed/emoji-picker.js +66 -55
- package/dist/composed/error-boundary.d.ts +21 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +47 -32
- package/dist/composed/extensions/emoji-data.d.ts +35 -0
- package/dist/composed/extensions/emoji-data.d.ts.map +1 -0
- package/dist/composed/extensions/emoji-node.d.ts +11 -0
- package/dist/composed/extensions/emoji-node.d.ts.map +1 -0
- package/dist/composed/extensions/emoji-suggestion.d.ts +4 -6
- package/dist/composed/extensions/emoji-suggestion.d.ts.map +1 -1
- package/dist/composed/extensions/slash-command.d.ts +35 -0
- package/dist/composed/extensions/slash-command.d.ts.map +1 -0
- package/dist/composed/file-preview/audio-preview.d.ts +7 -0
- package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/document-preview.d.ts +7 -0
- package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/embed-preview.d.ts +7 -0
- package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/image-preview.d.ts +7 -0
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/shared.d.ts +20 -0
- package/dist/composed/file-preview/shared.d.ts.map +1 -0
- package/dist/composed/file-preview/video-preview.d.ts +6 -0
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +10 -662
- package/dist/composed/filter-bar.d.ts +10 -2
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +42 -43
- package/dist/composed/form-section.d.ts +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +22 -21
- package/dist/composed/index.d.ts +9 -3
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +79 -69
- package/dist/composed/inline-edit.d.ts +1 -1
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +33 -32
- package/dist/composed/markdown-viewer.d.ts +1 -1
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +60 -59
- package/dist/composed/master-detail.d.ts +11 -7
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +123 -84
- package/dist/composed/responsive-overlay.d.ts +8 -0
- package/dist/composed/responsive-overlay.d.ts.map +1 -1
- package/dist/composed/rich-chat-input/attachment-strip.d.ts +15 -0
- package/dist/composed/rich-chat-input/attachment-strip.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/audio-player.d.ts +11 -0
- package/dist/composed/rich-chat-input/audio-player.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/audio-waveform.d.ts +24 -0
- package/dist/composed/rich-chat-input/audio-waveform.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/chat-toolbar.d.ts +51 -0
- package/dist/composed/rich-chat-input/chat-toolbar.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/recording-overlay.d.ts +15 -0
- package/dist/composed/rich-chat-input/recording-overlay.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/reply-banner.d.ts +8 -0
- package/dist/composed/rich-chat-input/reply-banner.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/schedule-send.d.ts +22 -0
- package/dist/composed/rich-chat-input/schedule-send.d.ts.map +1 -0
- package/dist/composed/rich-chat-input/use-voice-recorder.d.ts +18 -0
- package/dist/composed/rich-chat-input/use-voice-recorder.d.ts.map +1 -0
- package/dist/composed/rich-chat-input.d.ts +91 -0
- package/dist/composed/rich-chat-input.d.ts.map +1 -0
- package/dist/composed/rich-chat-input.js +1861 -0
- package/dist/composed/rich-text-editor.d.ts +14 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +278 -447
- package/dist/composed/schedule-view.d.ts +9 -1
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -4
- package/dist/hooks/use-touch-device.d.ts +12 -0
- package/dist/hooks/use-touch-device.d.ts.map +1 -0
- package/dist/hooks/use-touch-device.js +13 -0
- package/dist/hooks/use-viewport-height.d.ts +11 -0
- package/dist/hooks/use-viewport-height.d.ts.map +1 -0
- package/dist/hooks/use-viewport-height.js +16 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +72 -63
- package/dist/shell/command-registry.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +77 -77
- package/dist/shell/top-bar.d.ts +2 -2
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +61 -60
- package/dist/tailwind/index.cjs +51 -7
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +51 -7
- package/dist/tokens/primitives.css +3 -1
- package/dist/tokens/semantic.css +16 -13
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +38 -39
- package/dist/ui/badge.d.ts +104 -2
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +8 -7
- package/dist/ui/button-group.d.ts +27 -37
- package/dist/ui/button-group.d.ts.map +1 -1
- package/dist/ui/button-group.js +95 -29
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +118 -134
- package/dist/ui/card.js +24 -24
- package/dist/ui/charts/area-chart.d.ts +2 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +2 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/index.js +583 -577
- package/dist/ui/charts/line-chart.d.ts +2 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +2 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +36 -27
- package/dist/ui/color-input.js +5 -5
- package/dist/ui/combobox.d.ts +6 -1
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/data-table-body.d.ts +12 -0
- package/dist/ui/data-table-body.d.ts.map +1 -0
- package/dist/ui/data-table-body.js +219 -0
- package/dist/ui/data-table-bulk-actions.d.ts +19 -0
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
- package/dist/ui/data-table-bulk-actions.js +61 -0
- package/dist/ui/data-table-card.d.ts +9 -0
- package/dist/ui/data-table-card.d.ts.map +1 -0
- package/dist/ui/data-table-card.js +73 -0
- package/dist/ui/data-table-context.d.ts +62 -0
- package/dist/ui/data-table-context.d.ts.map +1 -0
- package/dist/ui/data-table-context.js +48 -0
- package/dist/ui/data-table-header.d.ts +10 -0
- package/dist/ui/data-table-header.d.ts.map +1 -0
- package/dist/ui/data-table-header.js +141 -0
- package/dist/ui/data-table-pagination.d.ts +13 -0
- package/dist/ui/data-table-pagination.d.ts.map +1 -0
- package/dist/ui/data-table-pagination.js +84 -0
- package/dist/ui/data-table.d.ts +11 -9
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +258 -573
- package/dist/ui/dialog.d.ts +6 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +84 -82
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/icon-group.d.ts +2 -4
- package/dist/ui/icon-group.d.ts.map +1 -1
- package/dist/ui/icon-group.js +22 -23
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +324 -327
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/bottom-sheet.d.ts +16 -0
- package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +64 -73
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +40 -44
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +19 -17
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +107 -32
- package/dist/ui/progress-ring.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +80 -80
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.d.ts +5 -2
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +29 -20
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +13 -12
- package/dist/ui/segmented-control.d.ts +6 -108
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +86 -272
- package/dist/ui/select.js +5 -5
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +102 -84
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +200 -175
- package/dist/ui/slider.js +14 -14
- package/dist/ui/split-button.d.ts +45 -0
- package/dist/ui/split-button.d.ts.map +1 -0
- package/dist/ui/split-button.js +282 -0
- package/dist/ui/status-dot.js +8 -8
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +33 -31
- package/dist/ui/switch.js +3 -3
- package/dist/ui/tabs.js +6 -6
- package/dist/ui/toast-types.d.ts +0 -1
- package/dist/ui/toast-types.d.ts.map +1 -1
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +156 -150
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +3 -3
- package/docs/components/composed/emoji-picker.md +9 -0
- package/docs/components/composed/rich-chat-input.md +88 -0
- package/docs/components/composed/rich-text-editor.md +5 -0
- package/docs/components/ui/button-group.md +9 -0
- package/docs/components/ui/button.md +4 -0
- package/docs/components/ui/data-table-body.md +13 -0
- package/docs/components/ui/data-table-bulk-actions.md +13 -0
- package/docs/components/ui/data-table-card.md +13 -0
- package/docs/components/ui/data-table-context.md +13 -0
- package/docs/components/ui/data-table-header.md +13 -0
- package/docs/components/ui/data-table-pagination.md +13 -0
- package/docs/components/ui/split-button.md +41 -0
- package/llms-full.txt +235 -48
- package/llms.txt +54 -2
- package/package.json +30 -31
- package/dist/ui/chip.d.ts +0 -19
- package/dist/ui/chip.d.ts.map +0 -1
- package/dist/ui/chip.js +0 -14
- package/dist/ui/lib/use-ripple.d.ts +0 -14
- package/dist/ui/lib/use-ripple.d.ts.map +0 -1
package/dist/ui/button.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, jsxs as
|
|
3
|
-
import { a as
|
|
4
|
-
import { IconCheck as
|
|
5
|
-
import { S as
|
|
2
|
+
import { jsx as e, jsxs as T, Fragment as pe } from "react/jsx-runtime";
|
|
3
|
+
import { a as be } from "../_chunks/vendor-utils.js";
|
|
4
|
+
import { IconCheck as he, IconX as xe } from "@tabler/icons-react";
|
|
5
|
+
import { S as we, i as Ne } from "../_chunks/primitives.js";
|
|
6
6
|
import * as t from "react";
|
|
7
|
-
import { useButtonGroup as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { IconProvider as
|
|
10
|
-
import { motionProps as
|
|
11
|
-
import { ProcessingOverlay as
|
|
12
|
-
import { cn as
|
|
13
|
-
import { Spinner as
|
|
14
|
-
import { u as
|
|
15
|
-
const
|
|
7
|
+
import { useButtonGroup as ye, useButtonGroupItem as ke, getGroupPositionStyle as Se } from "./button-group.js";
|
|
8
|
+
import { Icon as Re } from "./icon.js";
|
|
9
|
+
import { IconProvider as ze } from "./icon-context.js";
|
|
10
|
+
import { motionProps as Ce } from "./lib/motion.js";
|
|
11
|
+
import { ProcessingOverlay as Ee } from "./button-processing.js";
|
|
12
|
+
import { cn as i } from "./lib/utils.js";
|
|
13
|
+
import { Spinner as B } from "./spinner.js";
|
|
14
|
+
import { u as je, m as Ie } from "../_chunks/framer.js";
|
|
15
|
+
const H = be(
|
|
16
16
|
"relative inline-flex items-center justify-center whitespace-nowrap font-sans select-none overflow-hidden isolate focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled disabled:cursor-not-allowed disabled:saturate-[0.3] [&>span:not([data-grain])]:relative [&>span:not([data-grain])]:z-[2]",
|
|
17
17
|
{
|
|
18
18
|
variants: {
|
|
@@ -21,19 +21,14 @@ const X = ge(
|
|
|
21
21
|
soft: "",
|
|
22
22
|
outline: "border",
|
|
23
23
|
ghost: "",
|
|
24
|
-
link: "underline-offset-4 hover:underline active:opacity-80"
|
|
25
|
-
// Deprecated aliases
|
|
26
|
-
default: "",
|
|
27
|
-
destructive: ""
|
|
24
|
+
link: "underline-offset-4 hover:underline active:opacity-80"
|
|
28
25
|
},
|
|
29
26
|
color: {
|
|
30
27
|
accent: "",
|
|
31
28
|
error: "",
|
|
32
29
|
success: "",
|
|
33
30
|
warning: "",
|
|
34
|
-
neutral: ""
|
|
35
|
-
// Deprecated alias
|
|
36
|
-
default: ""
|
|
31
|
+
neutral: ""
|
|
37
32
|
},
|
|
38
33
|
weight: {
|
|
39
34
|
semibold: "font-semibold",
|
|
@@ -85,22 +80,7 @@ const X = ge(
|
|
|
85
80
|
{ variant: "link", color: "error", className: "text-error-11" },
|
|
86
81
|
{ variant: "link", color: "success", className: "text-success-11" },
|
|
87
82
|
{ variant: "link", color: "warning", className: "text-warning-11" },
|
|
88
|
-
{ variant: "link", color: "neutral", className: "text-surface-fg-muted" }
|
|
89
|
-
// ============ DEPRECATED ALIASES ============
|
|
90
|
-
// "default" variant → solid
|
|
91
|
-
{ variant: "default", color: "accent", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 shadow-raised hover:shadow-brand" },
|
|
92
|
-
{ variant: "default", color: "error", className: "bg-error-9 text-error-fg hover:bg-error-10 shadow-raised" },
|
|
93
|
-
{ variant: "default", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 shadow-raised hover:shadow-brand" },
|
|
94
|
-
// "destructive" → solid + error (ignores color prop)
|
|
95
|
-
{ variant: "destructive", color: "accent", className: "bg-error-9 text-error-fg hover:bg-error-10 shadow-raised" },
|
|
96
|
-
{ variant: "destructive", color: "error", className: "bg-error-9 text-error-fg hover:bg-error-10 shadow-raised" },
|
|
97
|
-
{ variant: "destructive", color: "default", className: "bg-error-9 text-error-fg hover:bg-error-10 shadow-raised" },
|
|
98
|
-
// "default" color alias → accent
|
|
99
|
-
{ variant: "solid", color: "default", className: "bg-accent-9 text-accent-fg hover:bg-accent-10 shadow-raised hover:shadow-brand" },
|
|
100
|
-
{ variant: "soft", color: "default", className: "bg-accent-3 text-accent-11 hover:bg-accent-4 active:bg-accent-5" },
|
|
101
|
-
{ variant: "outline", color: "default", className: "bg-transparent text-accent-11 border-accent-7 hover:bg-accent-3 active:bg-accent-4" },
|
|
102
|
-
{ variant: "ghost", color: "default", className: "bg-transparent text-surface-fg-muted hover:bg-surface-raised-hover hover:text-surface-fg active:bg-surface-raised-active" },
|
|
103
|
-
{ variant: "link", color: "default", className: "text-accent-11" }
|
|
83
|
+
{ variant: "link", color: "neutral", className: "text-surface-fg-muted" }
|
|
104
84
|
],
|
|
105
85
|
defaultVariants: {
|
|
106
86
|
variant: "solid",
|
|
@@ -109,7 +89,7 @@ const X = ge(
|
|
|
109
89
|
size: "md"
|
|
110
90
|
}
|
|
111
91
|
}
|
|
112
|
-
),
|
|
92
|
+
), J = {
|
|
113
93
|
xs: "px-ds-04",
|
|
114
94
|
sm: "px-ds-05",
|
|
115
95
|
md: "px-ds-06",
|
|
@@ -117,7 +97,7 @@ const X = ge(
|
|
|
117
97
|
"compact-xs": "px-ds-03",
|
|
118
98
|
"compact-sm": "px-ds-04",
|
|
119
99
|
"compact-md": "px-ds-05"
|
|
120
|
-
},
|
|
100
|
+
}, Te = {
|
|
121
101
|
xs: { start: "-ml-0.5", end: "-mr-0.5" },
|
|
122
102
|
sm: { start: "-ml-1", end: "-mr-1" },
|
|
123
103
|
md: { start: "-ml-1.5", end: "-mr-1.5" },
|
|
@@ -130,7 +110,7 @@ const X = ge(
|
|
|
130
110
|
"icon-sm": { start: "", end: "" },
|
|
131
111
|
"icon-md": { start: "", end: "" },
|
|
132
112
|
"icon-lg": { start: "", end: "" }
|
|
133
|
-
},
|
|
113
|
+
}, _ = {
|
|
134
114
|
xs: "sm",
|
|
135
115
|
sm: "sm",
|
|
136
116
|
md: "sm",
|
|
@@ -143,7 +123,7 @@ const X = ge(
|
|
|
143
123
|
"icon-sm": "sm",
|
|
144
124
|
"icon-md": "sm",
|
|
145
125
|
"icon-lg": "md"
|
|
146
|
-
},
|
|
126
|
+
}, Be = {
|
|
147
127
|
xs: "xs",
|
|
148
128
|
sm: "sm",
|
|
149
129
|
md: "md",
|
|
@@ -156,133 +136,137 @@ const X = ge(
|
|
|
156
136
|
"icon-sm": "sm",
|
|
157
137
|
"icon-md": "md",
|
|
158
138
|
"icon-lg": "lg"
|
|
159
|
-
},
|
|
139
|
+
}, _e = t.forwardRef(
|
|
160
140
|
({
|
|
161
|
-
className:
|
|
162
|
-
variant:
|
|
163
|
-
color:
|
|
164
|
-
weight:
|
|
165
|
-
size:
|
|
166
|
-
asChild:
|
|
167
|
-
shape:
|
|
168
|
-
startIcon:
|
|
141
|
+
className: A,
|
|
142
|
+
variant: K,
|
|
143
|
+
color: L,
|
|
144
|
+
weight: Q,
|
|
145
|
+
size: Y,
|
|
146
|
+
asChild: W = !1,
|
|
147
|
+
shape: ee,
|
|
148
|
+
startIcon: b,
|
|
169
149
|
endIcon: y,
|
|
170
|
-
loading:
|
|
150
|
+
loading: se = !1,
|
|
171
151
|
loadingPosition: k = "start",
|
|
172
|
-
fullWidth:
|
|
173
|
-
disabled:
|
|
174
|
-
onClick:
|
|
152
|
+
fullWidth: m = !1,
|
|
153
|
+
disabled: re,
|
|
154
|
+
onClick: te,
|
|
175
155
|
onClickAsync: S,
|
|
176
|
-
asyncFeedbackDuration:
|
|
177
|
-
processing:
|
|
178
|
-
processingColor:
|
|
156
|
+
asyncFeedbackDuration: ae = 1500,
|
|
157
|
+
processing: u,
|
|
158
|
+
processingColor: ne,
|
|
179
159
|
processingDisabled: R = !0,
|
|
180
160
|
children: O,
|
|
181
|
-
...
|
|
182
|
-
},
|
|
183
|
-
const
|
|
161
|
+
...z
|
|
162
|
+
}, g) => {
|
|
163
|
+
const n = ye(), F = ke(), c = K ?? n.variant, C = L ?? n.color, P = Q ?? n.weight ?? "semibold", h = ee ?? n.shape ?? "default", o = Y ?? n.size ?? "md", V = re ?? n.disabled, G = F && n.attached !== !1 ? Se(F.position, n.orientation ?? "horizontal") : void 0, x = n._stretch ?? !1, M = je(), U = t.useRef(null), Z = t.useRef(null), E = t.useRef(void 0);
|
|
184
164
|
t.useEffect(() => {
|
|
185
|
-
const
|
|
186
|
-
if (!(!
|
|
187
|
-
return
|
|
165
|
+
const s = Z.current, N = U.current;
|
|
166
|
+
if (!(!s || !N || m || x || M))
|
|
167
|
+
return E.current = requestAnimationFrame(() => {
|
|
188
168
|
N.style.width = "auto";
|
|
189
|
-
const
|
|
190
|
-
|
|
169
|
+
const D = s.offsetWidth;
|
|
170
|
+
D > 0 && (N.getBoundingClientRect(), N.style.width = `${D}px`);
|
|
191
171
|
}), () => {
|
|
192
|
-
|
|
172
|
+
E.current && cancelAnimationFrame(E.current);
|
|
193
173
|
};
|
|
194
174
|
});
|
|
195
|
-
const [
|
|
175
|
+
const [d, w] = t.useState("idle"), q = t.useRef(void 0), f = t.useRef(!0);
|
|
196
176
|
t.useEffect(() => () => {
|
|
197
|
-
|
|
177
|
+
f.current = !1, clearTimeout(q.current);
|
|
198
178
|
}, []);
|
|
199
|
-
const
|
|
200
|
-
!S ||
|
|
201
|
-
|
|
179
|
+
const oe = (s) => {
|
|
180
|
+
!S || d !== "idle" || (w("loading"), S(s).then(() => {
|
|
181
|
+
f.current && w("success");
|
|
202
182
|
}).catch(() => {
|
|
203
|
-
|
|
183
|
+
f.current && w("error");
|
|
204
184
|
}).finally(() => {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
},
|
|
185
|
+
f.current && (q.current = setTimeout(() => {
|
|
186
|
+
f.current && w("idle");
|
|
187
|
+
}, ae));
|
|
208
188
|
}));
|
|
209
|
-
},
|
|
210
|
-
if (
|
|
211
|
-
const
|
|
212
|
-
className:
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
189
|
+
}, j = !!S, a = j ? d === "loading" : se, r = d === "success" || d === "error", X = r ? void 0 : u === !0 ? "working" : u === !1 || !u ? j && d === "loading" && !u ? "working" : void 0 : u, l = !!X, ce = ne ?? C ?? "accent";
|
|
190
|
+
if (W) {
|
|
191
|
+
const s = {
|
|
192
|
+
className: i(
|
|
193
|
+
H({ variant: c, color: C, weight: P, size: o }),
|
|
194
|
+
h === "pill" && "rounded-full",
|
|
195
|
+
h === "pill" && J[o],
|
|
196
|
+
(m || x) && "w-full",
|
|
197
|
+
A
|
|
218
198
|
),
|
|
219
|
-
ref:
|
|
220
|
-
disabled:
|
|
199
|
+
ref: g,
|
|
200
|
+
disabled: V || a,
|
|
221
201
|
"aria-busy": a || void 0,
|
|
222
|
-
...
|
|
202
|
+
...z
|
|
223
203
|
};
|
|
224
|
-
return /* @__PURE__ */ e(
|
|
204
|
+
return /* @__PURE__ */ e(we, { ...s, children: /* @__PURE__ */ e(Ne, { children: O }) });
|
|
225
205
|
}
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
t.isValidElement(
|
|
206
|
+
const v = Te[o] ?? { start: "", end: "" }, $ = c === "solid" || c === "soft" || c === "outline", ie = () => a && k === "start" ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0 items-center justify-center", b && v.start), children: /* @__PURE__ */ e(B, { size: _[o], variant: "bare" }) }) : b ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0 items-center justify-center pointer-events-none", v.start, $ && "opacity-90"), children: b }) : null, de = () => a && k === "end" ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0 items-center justify-center", y && v.end), children: /* @__PURE__ */ e(B, { size: _[o], variant: "bare" }) }) : y ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0 items-center justify-center pointer-events-none", v.end, $ && "opacity-90"), children: y }) : null, le = t.Children.toArray(O), I = [], p = [];
|
|
207
|
+
le.forEach((s) => {
|
|
208
|
+
t.isValidElement(s) && s.type?.displayName === "DevalokGrain" ? I.push(s) : p.push(s);
|
|
229
209
|
});
|
|
230
|
-
const
|
|
231
|
-
/* @__PURE__ */ e("span", { className: "invisible", children:
|
|
232
|
-
/* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
233
|
-
] }) :
|
|
234
|
-
|
|
210
|
+
const me = () => a && k === "center" ? /* @__PURE__ */ T("span", { className: "relative inline-flex items-center justify-center", children: [
|
|
211
|
+
/* @__PURE__ */ e("span", { className: "invisible", children: p }),
|
|
212
|
+
/* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(B, { size: _[o], variant: "bare" }) })
|
|
213
|
+
] }) : I.length > 0 ? /* @__PURE__ */ e("span", { children: p }) : /* @__PURE__ */ e(pe, { children: p }), ue = r ? d === "success" ? "bg-success-9 text-accent-fg border-transparent hover:bg-success-9" : "bg-error-9 text-accent-fg border-transparent hover:bg-error-9" : void 0, ge = r ? /* @__PURE__ */ e("span", { className: i("inline-flex shrink-0 items-center justify-center pointer-events-none", b && v.start), children: /* @__PURE__ */ e(Re, { icon: d === "success" ? he : xe, animate: "draw" }) }) : null, fe = Be[o] ?? "md", ve = /* @__PURE__ */ T(
|
|
214
|
+
Ie.button,
|
|
235
215
|
{
|
|
236
|
-
...
|
|
237
|
-
|
|
238
|
-
|
|
216
|
+
...Ce(z),
|
|
217
|
+
style: { ...z.style, ...G },
|
|
218
|
+
className: i(
|
|
219
|
+
H({
|
|
239
220
|
// When processing (and not showing async feedback), force soft variant so ants pop
|
|
240
|
-
variant:
|
|
241
|
-
color:
|
|
242
|
-
weight:
|
|
243
|
-
size:
|
|
221
|
+
variant: l && !r && c !== "ghost" && c !== "outline" && c !== "link" ? "soft" : c,
|
|
222
|
+
color: C,
|
|
223
|
+
weight: P,
|
|
224
|
+
size: o
|
|
244
225
|
}),
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
226
|
+
h === "pill" && "rounded-full",
|
|
227
|
+
h === "pill" && J[o],
|
|
228
|
+
(m || x) && "w-full",
|
|
248
229
|
// Asymmetric timing: hover-out is slow+relaxed, hover-in is fast+snappy (applied via hover: override)
|
|
249
|
-
!a && !
|
|
250
|
-
!a && !
|
|
251
|
-
!a && !
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
230
|
+
!a && !r && "transition-[color,background-color,border-color,box-shadow,transform,filter] duration-moderate-01 ease-productive-exit",
|
|
231
|
+
!a && !r && "hover:duration-fast-02 hover:ease-productive-entrance",
|
|
232
|
+
!a && !r && "active:scale-[0.95] active:brightness-[0.92] active:saturate-[1.1] active:duration-[0ms]",
|
|
233
|
+
ue,
|
|
234
|
+
r && "transition-colors duration-moderate-01 ease-productive-standard",
|
|
235
|
+
l && R && "pointer-events-none cursor-default",
|
|
236
|
+
A
|
|
256
237
|
),
|
|
257
|
-
ref: (
|
|
258
|
-
|
|
238
|
+
ref: (s) => {
|
|
239
|
+
Z.current = s, typeof g == "function" ? g(s) : g && (g.current = s);
|
|
259
240
|
},
|
|
260
|
-
disabled:
|
|
261
|
-
"aria-busy": a ||
|
|
262
|
-
"aria-disabled":
|
|
263
|
-
onClick:
|
|
241
|
+
disabled: V || a && !l,
|
|
242
|
+
"aria-busy": a || l || void 0,
|
|
243
|
+
"aria-disabled": l && R || void 0,
|
|
244
|
+
onClick: j ? oe : l && R ? void 0 : te,
|
|
264
245
|
children: [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
246
|
+
I,
|
|
247
|
+
r ? ge : ie(),
|
|
248
|
+
r ? p : me(),
|
|
249
|
+
r ? null : de()
|
|
269
250
|
]
|
|
270
251
|
}
|
|
271
252
|
);
|
|
272
|
-
return /* @__PURE__ */ e(
|
|
253
|
+
return /* @__PURE__ */ e(ze, { size: fe, children: /* @__PURE__ */ T(
|
|
273
254
|
"span",
|
|
274
255
|
{
|
|
275
|
-
ref:
|
|
276
|
-
className:
|
|
277
|
-
style:
|
|
256
|
+
ref: U,
|
|
257
|
+
className: i("relative inline-flex", m && "w-full"),
|
|
258
|
+
style: {
|
|
259
|
+
...m || x || M ? void 0 : { transition: "width 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)" },
|
|
260
|
+
...G
|
|
261
|
+
},
|
|
278
262
|
children: [
|
|
279
|
-
|
|
263
|
+
ve,
|
|
280
264
|
/* @__PURE__ */ e(
|
|
281
|
-
|
|
265
|
+
Ee,
|
|
282
266
|
{
|
|
283
|
-
active:
|
|
284
|
-
speed:
|
|
285
|
-
color:
|
|
267
|
+
active: l,
|
|
268
|
+
speed: X ?? "working",
|
|
269
|
+
color: ce
|
|
286
270
|
}
|
|
287
271
|
)
|
|
288
272
|
]
|
|
@@ -290,8 +274,8 @@ const X = ge(
|
|
|
290
274
|
) });
|
|
291
275
|
}
|
|
292
276
|
);
|
|
293
|
-
|
|
277
|
+
_e.displayName = "Button";
|
|
294
278
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
279
|
+
_e as Button,
|
|
280
|
+
H as buttonVariants
|
|
297
281
|
};
|
package/dist/ui/card.js
CHANGED
|
@@ -56,28 +56,28 @@ function T(e, r) {
|
|
|
56
56
|
function j(e) {
|
|
57
57
|
return S[e] ?? e;
|
|
58
58
|
}
|
|
59
|
-
const
|
|
60
|
-
({ className: e, variant: r, color: o, size: t, interactive:
|
|
59
|
+
const A = s.forwardRef(
|
|
60
|
+
({ className: e, variant: r, color: o, size: t, interactive: i, accent: c, accentColor: g = "default", accentWidth: b = 3, children: h, ...l }, p) => {
|
|
61
61
|
const v = t ?? "md", f = d(
|
|
62
62
|
R({ variant: r, color: o, size: t }),
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
c && "relative overflow-hidden",
|
|
64
|
+
i && "hover:shadow-raised-hover hover:border-surface-border-strong cursor-pointer transition-shadow duration-fast-02 ease-productive-standard",
|
|
65
65
|
e
|
|
66
|
-
), x =
|
|
66
|
+
), x = c ? /* @__PURE__ */ a(
|
|
67
67
|
u.span,
|
|
68
68
|
{
|
|
69
69
|
"aria-hidden": "true",
|
|
70
70
|
initial: { opacity: 0 },
|
|
71
71
|
animate: { opacity: 1 },
|
|
72
72
|
transition: y.fade,
|
|
73
|
-
className: d("absolute pointer-events-none", T(
|
|
74
|
-
style: {
|
|
73
|
+
className: d("absolute pointer-events-none bg-[var(--card-accent-bg)]", T(c, b)),
|
|
74
|
+
style: { "--card-accent-bg": j(g) }
|
|
75
75
|
}
|
|
76
76
|
) : null, m = /* @__PURE__ */ w(n.Provider, { value: v, children: [
|
|
77
77
|
x,
|
|
78
|
-
|
|
78
|
+
h
|
|
79
79
|
] });
|
|
80
|
-
return
|
|
80
|
+
return i ? /* @__PURE__ */ a(
|
|
81
81
|
u.div,
|
|
82
82
|
{
|
|
83
83
|
ref: p,
|
|
@@ -91,24 +91,24 @@ const k = s.forwardRef(
|
|
|
91
91
|
) : /* @__PURE__ */ a("div", { ref: p, className: f, ...l, children: m });
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
|
-
|
|
95
|
-
const
|
|
94
|
+
A.displayName = "Card";
|
|
95
|
+
const D = {
|
|
96
96
|
sm: "p-ds-05",
|
|
97
97
|
md: "p-ds-06",
|
|
98
98
|
lg: "p-ds-07"
|
|
99
|
-
},
|
|
99
|
+
}, F = s.forwardRef(({ className: e, ...r }, o) => {
|
|
100
100
|
const t = s.useContext(n);
|
|
101
101
|
return /* @__PURE__ */ a(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
104
104
|
ref: o,
|
|
105
|
-
className: d("flex flex-col space-y-ds-02b",
|
|
105
|
+
className: d("flex flex-col space-y-ds-02b", D[t], e),
|
|
106
106
|
...r
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
});
|
|
110
|
-
|
|
111
|
-
const
|
|
110
|
+
F.displayName = "CardHeader";
|
|
111
|
+
const V = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
112
112
|
"div",
|
|
113
113
|
{
|
|
114
114
|
ref: o,
|
|
@@ -116,8 +116,8 @@ const F = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
|
116
116
|
...r
|
|
117
117
|
}
|
|
118
118
|
));
|
|
119
|
-
|
|
120
|
-
const
|
|
119
|
+
V.displayName = "CardTitle";
|
|
120
|
+
const $ = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
123
|
ref: o,
|
|
@@ -125,14 +125,14 @@ const V = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
|
125
125
|
...r
|
|
126
126
|
}
|
|
127
127
|
));
|
|
128
|
-
|
|
129
|
-
const
|
|
128
|
+
$.displayName = "CardDescription";
|
|
129
|
+
const k = {
|
|
130
130
|
sm: "p-ds-05 pt-0",
|
|
131
131
|
md: "p-ds-06 pt-0",
|
|
132
132
|
lg: "p-ds-07 pt-0"
|
|
133
133
|
}, E = s.forwardRef(({ className: e, ...r }, o) => {
|
|
134
134
|
const t = s.useContext(n);
|
|
135
|
-
return /* @__PURE__ */ a("div", { ref: o, className: d(
|
|
135
|
+
return /* @__PURE__ */ a("div", { ref: o, className: d(k[t], e), ...r });
|
|
136
136
|
});
|
|
137
137
|
E.displayName = "CardContent";
|
|
138
138
|
const M = {
|
|
@@ -152,11 +152,11 @@ const M = {
|
|
|
152
152
|
});
|
|
153
153
|
q.displayName = "CardFooter";
|
|
154
154
|
export {
|
|
155
|
-
|
|
155
|
+
A as Card,
|
|
156
156
|
E as CardContent,
|
|
157
|
-
|
|
157
|
+
$ as CardDescription,
|
|
158
158
|
q as CardFooter,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
F as CardHeader,
|
|
160
|
+
V as CardTitle,
|
|
161
161
|
R as cardVariants
|
|
162
162
|
};
|
|
@@ -32,6 +32,8 @@ export interface AreaChartProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
32
32
|
xLabel?: string;
|
|
33
33
|
/** Y-axis label */
|
|
34
34
|
yLabel?: string;
|
|
35
|
+
/** Accessible label for the chart */
|
|
36
|
+
ariaLabel?: string;
|
|
35
37
|
className?: string;
|
|
36
38
|
}
|
|
37
39
|
export declare const AreaChart: React.ForwardRefExoticComponent<AreaChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"area-chart.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/area-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAsB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5F,iBAAiB;IACjB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kBAAkB;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uBAAuB;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAOD,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"area-chart.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/area-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAsB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5F,iBAAiB;IACjB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kBAAkB;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uBAAuB;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAOD,eAAO,MAAM,SAAS,uFAoWrB,CAAA"}
|
|
@@ -34,6 +34,8 @@ export interface BarChartProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
34
34
|
yLabel?: string;
|
|
35
35
|
/** Series labels (for legend) */
|
|
36
36
|
seriesLabels?: string[];
|
|
37
|
+
/** Accessible label for the chart */
|
|
38
|
+
ariaLabel?: string;
|
|
37
39
|
className?: string;
|
|
38
40
|
}
|
|
39
41
|
export declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/bar-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACrG,iBAAiB;IACjB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,iFAAiF;IACjF,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACvB,sBAAsB;IACtB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACvC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IACrD,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"bar-chart.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/bar-chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACrG,iBAAiB;IACjB,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,iFAAiF;IACjF,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACvB,sBAAsB;IACtB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACvC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IACrD,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,sFAyOpB,CAAA"}
|
|
@@ -7,6 +7,8 @@ export interface ChartContainerProps extends Omit<React.HTMLAttributes<HTMLDivEl
|
|
|
7
7
|
/** Chart margins */
|
|
8
8
|
margin?: Partial<ChartMargin>;
|
|
9
9
|
className?: string;
|
|
10
|
+
/** Accessible label for the chart SVG */
|
|
11
|
+
ariaLabel?: string;
|
|
10
12
|
/** Render function receiving inner dimensions (width/height minus margins) */
|
|
11
13
|
children: (dimensions: {
|
|
12
14
|
width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/chart-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACjG,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oBAAoB;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,WAAW,CAAA;KACpB,KAAK,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"chart-container.d.ts","sourceRoot":"","sources":["../../../src/ui/charts/chart-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACjG,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oBAAoB;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,QAAQ,EAAE,CAAC,UAAU,EAAE;QACrB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,WAAW,CAAA;KACpB,KAAK,KAAK,CAAC,SAAS,CAAA;CACtB;AAED,eAAO,MAAM,cAAc,4FAkD1B,CAAA"}
|