@devalok/shilp-sutra 0.31.0 → 0.32.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/_chunks/badge-group.js +123 -172
- 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/primitives.js +109 -109
- package/dist/_chunks/stat-row.js +144 -124
- package/dist/_chunks/use-calendar.js +558 -490
- 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/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 +6 -0
- package/dist/composed/emoji-picker.d.ts.map +1 -1
- package/dist/composed/emoji-picker.js +22 -20
- 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/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 +2 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +58 -57
- 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-text-editor.d.ts +11 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +21 -20
- 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.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +54 -74
- 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 +1 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +94 -99
- 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/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/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/llms-full.txt +79 -48
- package/llms.txt +32 -0
- package/package.json +1 -6
- 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/banner.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as x } from "react/jsx-runtime";
|
|
3
|
-
import { IconInfoCircle as
|
|
3
|
+
import { IconInfoCircle as o, IconAlertCircle as h, IconAlertTriangle as v, IconCircleCheck as w, IconX as I } from "@tabler/icons-react";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { a as N } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { cn as C } from "./lib/utils.js";
|
|
@@ -22,14 +22,14 @@ const B = N(
|
|
|
22
22
|
defaultVariants: { color: "info" }
|
|
23
23
|
}
|
|
24
24
|
), V = {
|
|
25
|
-
info:
|
|
25
|
+
info: o,
|
|
26
26
|
success: w,
|
|
27
27
|
warning: v,
|
|
28
28
|
error: h,
|
|
29
|
-
neutral:
|
|
29
|
+
neutral: o
|
|
30
30
|
}, j = r.forwardRef(
|
|
31
|
-
({ className: a, color: s = "info", action: c, actions:
|
|
32
|
-
const
|
|
31
|
+
({ className: a, color: s = "info", action: c, actions: l, onDismiss: n, children: d, ...m }, f) => {
|
|
32
|
+
const t = l ?? c, u = V[s ?? "info"], [b, p] = r.useState(!0), g = r.useCallback(() => {
|
|
33
33
|
p(!1);
|
|
34
34
|
}, []);
|
|
35
35
|
return /* @__PURE__ */ e(A, { onExitComplete: n, children: b && /* @__PURE__ */ x(
|
|
@@ -44,8 +44,8 @@ const B = N(
|
|
|
44
44
|
...k(m),
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ e(i, { icon: u, size: "md", className: "shrink-0" }),
|
|
47
|
-
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children:
|
|
48
|
-
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: d }),
|
|
48
|
+
t && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-02 [&_button]:transition-colors [&_button]:duration-moderate-01 [&_button]:ease-productive-standard [&_button:hover]:bg-current/10", children: t }),
|
|
49
49
|
n && /* @__PURE__ */ e(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
@@ -53,6 +53,7 @@ const B = N(
|
|
|
53
53
|
onClick: g,
|
|
54
54
|
className: "shrink-0 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm transition-colors duration-moderate-01 ease-productive-standard hover:bg-current/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9",
|
|
55
55
|
"aria-label": "Dismiss",
|
|
56
|
+
title: "Dismiss",
|
|
56
57
|
children: /* @__PURE__ */ e(i, { icon: I, size: "sm" })
|
|
57
58
|
}
|
|
58
59
|
)
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export declare const buttonVariants: (props?: ({
|
|
5
|
-
variant?: "link" | "outline" | "
|
|
6
|
-
color?: "
|
|
5
|
+
variant?: "link" | "outline" | "solid" | "soft" | "ghost" | null | undefined;
|
|
6
|
+
color?: "accent" | "success" | "error" | "warning" | "neutral" | null | undefined;
|
|
7
7
|
weight?: "normal" | "semibold" | null | undefined;
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg" | "icon" | "compact-xs" | "compact-sm" | "compact-md" | "icon-xs" | "icon-sm" | "icon-md" | "icon-lg" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
package/dist/ui/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,eAAO,MAAM,cAAc;;;;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,eAAO,MAAM,cAAc;;;;;8EAiF1B,CAAA;AAoDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,EAClE,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC1B,sEAAsE;IACtE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;IACrC,qEAAqE;IACrE,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;IACnC,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yFAAyF;IACzF,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAA;IAC5C,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxE,oFAAoF;IACpF,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;IAEvD,2EAA2E;IAC3E,eAAe,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAA;IAExE,+FAA+F;IAC/F,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,QAAA,MAAM,MAAM,uFAkRX,CAAA;AAGD,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/ui/button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as j, Fragment as ue } from "react/jsx-runtime";
|
|
3
3
|
import { a as ge } from "../_chunks/vendor-utils.js";
|
|
4
|
-
import { IconCheck as
|
|
5
|
-
import { S as
|
|
4
|
+
import { IconCheck as fe, IconX as ve } from "@tabler/icons-react";
|
|
5
|
+
import { S as pe, i as be } from "../_chunks/primitives.js";
|
|
6
6
|
import * as t from "react";
|
|
7
|
-
import { useButtonGroup as
|
|
7
|
+
import { useButtonGroup as he } from "./button-group.js";
|
|
8
8
|
import { Icon as xe } from "./icon.js";
|
|
9
9
|
import { IconProvider as we } from "./icon-context.js";
|
|
10
10
|
import { motionProps as Ne } from "./lib/motion.js";
|
|
@@ -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",
|
|
@@ -165,54 +145,54 @@ const X = ge(
|
|
|
165
145
|
size: L,
|
|
166
146
|
asChild: Q = !1,
|
|
167
147
|
shape: Y,
|
|
168
|
-
startIcon:
|
|
169
|
-
endIcon:
|
|
148
|
+
startIcon: b,
|
|
149
|
+
endIcon: N,
|
|
170
150
|
loading: D = !1,
|
|
171
|
-
loadingPosition:
|
|
151
|
+
loadingPosition: y = "start",
|
|
172
152
|
fullWidth: l = !1,
|
|
173
153
|
disabled: I,
|
|
174
154
|
onClick: W,
|
|
175
|
-
onClickAsync:
|
|
155
|
+
onClickAsync: k,
|
|
176
156
|
asyncFeedbackDuration: ee = 1500,
|
|
177
157
|
processing: m,
|
|
178
|
-
processingColor:
|
|
179
|
-
processingDisabled:
|
|
158
|
+
processingColor: se,
|
|
159
|
+
processingDisabled: S = !0,
|
|
180
160
|
children: O,
|
|
181
161
|
..._
|
|
182
162
|
}, u) => {
|
|
183
|
-
const g =
|
|
163
|
+
const g = he(), o = H ?? g.variant, R = J ?? g.color, F = K ?? g.weight ?? "semibold", h = Y ?? g.shape ?? "default", n = L ?? g.size ?? "md", V = ke(), P = t.useRef(null), G = t.useRef(null), z = t.useRef(void 0);
|
|
184
164
|
t.useEffect(() => {
|
|
185
|
-
const
|
|
186
|
-
if (!(!
|
|
165
|
+
const s = G.current, w = P.current;
|
|
166
|
+
if (!(!s || !w || l || V))
|
|
187
167
|
return z.current = requestAnimationFrame(() => {
|
|
188
|
-
|
|
189
|
-
const q =
|
|
190
|
-
q > 0 && (
|
|
168
|
+
w.style.width = "auto";
|
|
169
|
+
const q = s.offsetWidth;
|
|
170
|
+
q > 0 && (w.getBoundingClientRect(), w.style.width = `${q}px`);
|
|
191
171
|
}), () => {
|
|
192
172
|
z.current && cancelAnimationFrame(z.current);
|
|
193
173
|
};
|
|
194
174
|
});
|
|
195
|
-
const [i,
|
|
175
|
+
const [i, x] = t.useState("idle"), M = t.useRef(void 0), f = t.useRef(!0);
|
|
196
176
|
t.useEffect(() => () => {
|
|
197
|
-
|
|
177
|
+
f.current = !1, clearTimeout(M.current);
|
|
198
178
|
}, []);
|
|
199
|
-
const
|
|
200
|
-
!
|
|
201
|
-
|
|
179
|
+
const re = (s) => {
|
|
180
|
+
!k || i !== "idle" || (x("loading"), k(s).then(() => {
|
|
181
|
+
f.current && x("success");
|
|
202
182
|
}).catch(() => {
|
|
203
|
-
|
|
183
|
+
f.current && x("error");
|
|
204
184
|
}).finally(() => {
|
|
205
|
-
|
|
206
|
-
|
|
185
|
+
f.current && (M.current = setTimeout(() => {
|
|
186
|
+
f.current && x("idle");
|
|
207
187
|
}, ee));
|
|
208
188
|
}));
|
|
209
|
-
}, C = !!
|
|
189
|
+
}, C = !!k, a = C ? i === "loading" : D, r = i === "success" || i === "error", U = r ? void 0 : m === !0 ? "working" : m === !1 || !m ? C && i === "loading" && !m ? "working" : void 0 : m, d = !!U, te = se ?? R ?? "accent";
|
|
210
190
|
if (Q) {
|
|
211
|
-
const
|
|
191
|
+
const s = {
|
|
212
192
|
className: c(
|
|
213
|
-
X({ variant: o, color:
|
|
214
|
-
|
|
215
|
-
|
|
193
|
+
X({ variant: o, color: R, weight: F, size: n }),
|
|
194
|
+
h === "pill" && "rounded-full",
|
|
195
|
+
h === "pill" && $[n],
|
|
216
196
|
l && "w-full",
|
|
217
197
|
B
|
|
218
198
|
),
|
|
@@ -221,51 +201,51 @@ const X = ge(
|
|
|
221
201
|
"aria-busy": a || void 0,
|
|
222
202
|
..._
|
|
223
203
|
};
|
|
224
|
-
return /* @__PURE__ */ e(
|
|
204
|
+
return /* @__PURE__ */ e(pe, { ...s, children: /* @__PURE__ */ e(be, { children: O }) });
|
|
225
205
|
}
|
|
226
|
-
const
|
|
227
|
-
oe.forEach((
|
|
228
|
-
t.isValidElement(
|
|
206
|
+
const v = Re[n] ?? { start: "", end: "" }, Z = o === "solid" || o === "soft" || o === "outline", ae = () => a && y === "start" ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", b && v.start), children: /* @__PURE__ */ e(T, { size: A[n], variant: "bare" }) }) : b ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center pointer-events-none", v.start, Z && "opacity-90"), children: b }) : null, ne = () => a && y === "end" ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center", N && v.end), children: /* @__PURE__ */ e(T, { size: A[n], variant: "bare" }) }) : N ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center pointer-events-none", v.end, Z && "opacity-90"), children: N }) : null, oe = t.Children.toArray(O), E = [], p = [];
|
|
207
|
+
oe.forEach((s) => {
|
|
208
|
+
t.isValidElement(s) && s.type?.displayName === "DevalokGrain" ? E.push(s) : p.push(s);
|
|
229
209
|
});
|
|
230
|
-
const ce = () => a &&
|
|
231
|
-
/* @__PURE__ */ e("span", { className: "invisible", children:
|
|
210
|
+
const ce = () => a && y === "center" ? /* @__PURE__ */ j("span", { className: "relative inline-flex items-center justify-center", children: [
|
|
211
|
+
/* @__PURE__ */ e("span", { className: "invisible", children: p }),
|
|
232
212
|
/* @__PURE__ */ e("span", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(T, { size: A[n], variant: "bare" }) })
|
|
233
|
-
] }) : E.length > 0 ? /* @__PURE__ */ e("span", { children:
|
|
213
|
+
] }) : E.length > 0 ? /* @__PURE__ */ e("span", { children: p }) : /* @__PURE__ */ e(ue, { children: p }), ie = r ? i === "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, de = r ? /* @__PURE__ */ e("span", { className: c("inline-flex shrink-0 items-center justify-center pointer-events-none", b && v.start), children: /* @__PURE__ */ e(xe, { icon: i === "success" ? fe : ve, animate: "draw" }) }) : null, le = ze[n] ?? "md", me = /* @__PURE__ */ j(
|
|
234
214
|
Se.button,
|
|
235
215
|
{
|
|
236
216
|
...Ne(_),
|
|
237
217
|
className: c(
|
|
238
218
|
X({
|
|
239
219
|
// When processing (and not showing async feedback), force soft variant so ants pop
|
|
240
|
-
variant: d && !
|
|
241
|
-
color:
|
|
220
|
+
variant: d && !r && o !== "ghost" && o !== "outline" && o !== "link" ? "soft" : o,
|
|
221
|
+
color: R,
|
|
242
222
|
weight: F,
|
|
243
223
|
size: n
|
|
244
224
|
}),
|
|
245
|
-
|
|
246
|
-
|
|
225
|
+
h === "pill" && "rounded-full",
|
|
226
|
+
h === "pill" && $[n],
|
|
247
227
|
l && "w-full",
|
|
248
228
|
// Asymmetric timing: hover-out is slow+relaxed, hover-in is fast+snappy (applied via hover: override)
|
|
249
|
-
!a && !
|
|
250
|
-
!a && !
|
|
251
|
-
!a && !
|
|
229
|
+
!a && !r && "transition-[color,background-color,border-color,box-shadow,transform,filter] duration-moderate-01 ease-productive-exit",
|
|
230
|
+
!a && !r && "hover:duration-fast-02 hover:ease-productive-entrance",
|
|
231
|
+
!a && !r && "active:scale-[0.95] active:brightness-[0.92] active:saturate-[1.1] active:duration-[0ms]",
|
|
252
232
|
ie,
|
|
253
|
-
|
|
254
|
-
d &&
|
|
233
|
+
r && "transition-colors duration-moderate-01 ease-productive-standard",
|
|
234
|
+
d && S && "pointer-events-none cursor-default",
|
|
255
235
|
B
|
|
256
236
|
),
|
|
257
|
-
ref: (
|
|
258
|
-
G.current =
|
|
237
|
+
ref: (s) => {
|
|
238
|
+
G.current = s, typeof u == "function" ? u(s) : u && (u.current = s);
|
|
259
239
|
},
|
|
260
240
|
disabled: I || a && !d,
|
|
261
241
|
"aria-busy": a || d || void 0,
|
|
262
|
-
"aria-disabled": d &&
|
|
263
|
-
onClick: C ?
|
|
242
|
+
"aria-disabled": d && S || void 0,
|
|
243
|
+
onClick: C ? re : d && S ? void 0 : W,
|
|
264
244
|
children: [
|
|
265
245
|
E,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
246
|
+
r ? de : ae(),
|
|
247
|
+
r ? p : ce(),
|
|
248
|
+
r ? null : ne()
|
|
269
249
|
]
|
|
270
250
|
}
|
|
271
251
|
);
|
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;IAC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,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,6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AM,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,6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