@cascivo/react 0.12.0 → 0.13.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/app-shell/app-shell.js +24 -23
- package/dist/badge/badge.js +17 -10
- package/dist/button/button.css +1 -1
- package/dist/button/button.module.js +1 -1
- package/dist/card/card.css +1 -1
- package/dist/card/card.module.js +8 -8
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.module.js +15 -15
- package/dist/data-table/data-table.css +1 -1
- package/dist/data-table/data-table.js +7 -1
- package/dist/data-table/data-table.module.js +29 -29
- package/dist/date-picker/date-picker.css +1 -1
- package/dist/date-picker/date-picker.module.js +19 -19
- package/dist/file-uploader/file-uploader.css +1 -1
- package/dist/file-uploader/file-uploader.module.js +14 -14
- package/dist/filter/filter.js +10 -9
- package/dist/icon-button/icon-button.css +1 -1
- package/dist/icon-button/icon-button.module.js +1 -1
- package/dist/index.d.ts +1273 -57
- package/dist/input/input.css +1 -1
- package/dist/input/input.module.js +5 -5
- package/dist/item/item.css +1 -1
- package/dist/item/item.module.js +6 -6
- package/dist/layouts/src/page-header/page-header.css +1 -0
- package/dist/layouts/src/page-header/page-header.js +33 -0
- package/dist/layouts/src/page-header/page-header.module.js +13 -0
- package/dist/link/link.js +12 -12
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.module.js +11 -11
- package/dist/node/app-shell/app-shell.js +24 -23
- package/dist/node/badge/badge.js +17 -10
- package/dist/node/button/button.module.js +1 -1
- package/dist/node/card/card.module.js +8 -8
- package/dist/node/combobox/combobox.module.js +15 -15
- package/dist/node/data-table/data-table.js +7 -1
- package/dist/node/data-table/data-table.module.js +29 -29
- package/dist/node/date-picker/date-picker.module.js +19 -19
- package/dist/node/file-uploader/file-uploader.module.js +14 -14
- package/dist/node/filter/filter.js +10 -9
- package/dist/node/icon-button/icon-button.module.js +1 -1
- package/dist/node/input/input.module.js +5 -5
- package/dist/node/item/item.module.js +6 -6
- package/dist/node/layouts/src/page-header/page-header.js +33 -0
- package/dist/node/layouts/src/page-header/page-header.module.js +12 -0
- package/dist/node/link/link.js +12 -12
- package/dist/node/multi-select/multi-select.module.js +11 -11
- package/dist/node/notification/notification.js +50 -44
- package/dist/node/notification/notification.module.js +7 -7
- package/dist/node/number-input/number-input.module.js +8 -8
- package/dist/node/otp-input/otp-input.module.js +2 -2
- package/dist/node/overflow-menu/overflow-menu.js +18 -13
- package/dist/node/password-input/password-input.module.js +7 -7
- package/dist/node/progress/progress.js +3 -2
- package/dist/node/react/src/index.js +4 -3
- package/dist/node/search/search.module.js +5 -5
- package/dist/node/stat/stat.js +6 -5
- package/dist/node/stat/stat.module.js +7 -7
- package/dist/node/status/status.js +18 -11
- package/dist/node/steps/steps.js +23 -23
- package/dist/node/structured-list/structured-list.js +14 -13
- package/dist/node/tag/tag.js +22 -15
- package/dist/node/tags-input/tags-input.module.js +4 -4
- package/dist/node/tile/tile.module.js +3 -3
- package/dist/node/time-picker/time-picker.module.js +5 -5
- package/dist/node/timeline/timeline.js +22 -16
- package/dist/notification/notification.css +1 -1
- package/dist/notification/notification.js +50 -44
- package/dist/notification/notification.module.js +7 -7
- package/dist/number-input/number-input.css +1 -1
- package/dist/number-input/number-input.module.js +8 -8
- package/dist/otp-input/otp-input.css +1 -1
- package/dist/otp-input/otp-input.module.js +2 -2
- package/dist/overflow-menu/overflow-menu.js +18 -13
- package/dist/password-input/password-input.css +1 -1
- package/dist/password-input/password-input.module.js +7 -7
- package/dist/progress/progress.js +3 -2
- package/dist/react/src/index.js +4 -3
- package/dist/search/search.css +1 -1
- package/dist/search/search.module.js +5 -5
- package/dist/stat/stat.css +1 -1
- package/dist/stat/stat.js +6 -5
- package/dist/stat/stat.module.js +7 -7
- package/dist/status/status.js +18 -11
- package/dist/steps/steps.js +23 -23
- package/dist/structured-list/structured-list.js +14 -13
- package/dist/styles.css +33 -19
- package/dist/tag/tag.js +22 -15
- package/dist/tags-input/tags-input.css +1 -1
- package/dist/tags-input/tags-input.module.js +4 -4
- package/dist/tile/tile.css +1 -1
- package/dist/tile/tile.module.js +3 -3
- package/dist/time-picker/time-picker.css +1 -1
- package/dist/time-picker/time-picker.module.js +5 -5
- package/dist/timeline/timeline.js +22 -16
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._wrapper_19052_2{gap:var(--cascivo-space-1);flex-direction:column;min-inline-size:0;display:flex}._wrapper_19052_2[data-size=sm]{--_height:2rem;--_font:var(--cascivo-text-sm);--_px:var(--cascivo-space-3)}._wrapper_19052_2[data-size=md]{--_height:2.5rem;--_font:var(--cascivo-text-sm);--_px:var(--cascivo-space-4)}._wrapper_19052_2[data-size=lg]{--_height:3rem;--_font:var(--cascivo-text-base);--_px:var(--cascivo-space-4)}._input-row_19052_30{align-items:center;display:flex;position:relative}._input_19052_30{width:100%;height:var(--_height,2.5rem);padding-inline:var(--_px,var(--cascivo-space-4));font-family:var(--cascivo-font-sans);font-size:var(--_font,var(--cascivo-text-sm));color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);outline:none;padding-inline-end:calc(var(--_px,var(--cascivo-space-4)) + 2.5rem)}._input_19052_30::placeholder{color:var(--cascivo-color-text-muted)}._input_19052_30:hover:not(:disabled):not(:focus){border-color:var(--cascivo-color-border-strong)}._input_19052_30:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input_19052_30:disabled{opacity:.5;cursor:not-allowed;background-color:var(--cascivo-color-bg-subtle)}._reveal-btn_19052_72{border-radius:var(--cascivo-radius-control);width:2rem;height:2rem;color:var(--cascivo-color-text-subtle);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;inset-inline-end:var(--cascivo-space-2)}._reveal-btn_19052_72:hover{color:var(--cascivo-color-text);background-color:var(--cascivo-color-bg-subtle)}._reveal-btn_19052_72:focus-visible{outline:2px solid var(--cascivo-color-accent);outline-offset:1px}._reveal-icon_19052_98{background-color:currentColor;width:1.25rem;height:1.25rem;display:block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}._wrapper_19052_2[data-revealed] ._reveal-icon_19052_98{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E")}._strength-meter_19052_118{gap:var(--cascivo-space-1);display:flex}._strength-meter_19052_118[data-strength=weak]{--_seg-color:var(--cascivo-color-destructive)}._strength-meter_19052_118[data-strength=fair]{--_seg-color:var(--cascivo-color-warning)}._strength-meter_19052_118[data-strength=good],._strength-meter_19052_118[data-strength=strong]{--_seg-color:var(--cascivo-color-success)}._strength-segment_19052_139{border-radius:var(--cascivo-radius-full);background-color:var(--cascivo-color-border);height:.25rem;transition:background-color var(--cascivo-duration-150) var(--cascivo-ease-out);flex:1}._strength-segment_19052_139[data-filled]{background-color:var(--_seg-color,var(--cascivo-color-accent))}}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import './password-input.css';
|
|
4
4
|
var e = {
|
|
5
|
-
wrapper: "
|
|
6
|
-
"input-row": "_input-
|
|
7
|
-
input: "
|
|
8
|
-
"reveal-btn": "_reveal-
|
|
9
|
-
"reveal-icon": "_reveal-
|
|
10
|
-
"strength-meter": "_strength-
|
|
11
|
-
"strength-segment": "_strength-
|
|
5
|
+
wrapper: "_wrapper_19052_2",
|
|
6
|
+
"input-row": "_input-row_19052_30",
|
|
7
|
+
input: "_input_19052_30",
|
|
8
|
+
"reveal-btn": "_reveal-btn_19052_72",
|
|
9
|
+
"reveal-icon": "_reveal-icon_19052_98",
|
|
10
|
+
"strength-meter": "_strength-meter_19052_118",
|
|
11
|
+
"strength-segment": "_strength-segment_19052_139"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { e as default };
|
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
import e from "./progress.module.js";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
5
|
//#region ../components/src/progress/progress.tsx
|
|
6
|
-
function n({ value: n, variant: r = "primary", size: i = "md", className: a,
|
|
6
|
+
function n({ value: n, variant: r = "primary", size: i = "md", className: a, ariaLabel: o, ...s }) {
|
|
7
7
|
return /* @__PURE__ */ t("progress", {
|
|
8
|
+
"aria-label": s["aria-label"] ?? o,
|
|
8
9
|
className: [e.progress, a].filter(Boolean).join(" "),
|
|
9
10
|
"data-variant": r,
|
|
10
11
|
"data-size": i,
|
|
11
12
|
value: n,
|
|
12
13
|
max: n === void 0 ? void 0 : 100,
|
|
13
|
-
...
|
|
14
|
+
...s
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
package/dist/react/src/index.js
CHANGED
|
@@ -133,6 +133,7 @@ import { Columns as rn } from "../../layouts/src/columns/columns.js";
|
|
|
133
133
|
import { Center as an } from "../../layouts/src/center/center.js";
|
|
134
134
|
import { Spacer as on } from "../../layouts/src/spacer/spacer.js";
|
|
135
135
|
import { AutoGrid as sn } from "../../layouts/src/auto-grid/auto-grid.js";
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
|
|
136
|
+
import { PageHeader as cn } from "../../layouts/src/page-header/page-header.js";
|
|
137
|
+
import { ThemeProvider as ln, setTheme as un, themePreloadScript as dn, themeSignal as fn, useTheme as pn } from "./theme.js";
|
|
138
|
+
import { DismissableLayer as mn, ErrorBoundary as hn, FocusScope as gn, Portal as _n, Presence as vn, Slot as yn, SuspenseBoundary as bn, VisuallyHidden as xn, batch as Sn, cn as Cn, composeRefs as wn, computePosition as Tn, computed as En, createMachine as Dn, createScope as On, createStreamBuffer as kn, effect as An, getLinkComponent as jn, mergeProps as Mn, setLinkComponent as Nn, signal as Pn, useAnchorPosition as Fn, useClipboard as In, useComputed as Ln, useControllableSignal as Rn, useDisclosure as zn, useEffectPropSignal as Bn, useId as Vn, useMachine as Hn, useMediaQuery as Un, useRovingFocus as Wn, useScope as Gn, useScrollLock as Kn, useSignal as qn, useSignalEffect as Jn, useSignals as Yn, useStreamBuffer as Xn, useTypeahead as Zn } from "@cascivo/core";
|
|
139
|
+
export { M as Accordion, N as AccordionContent, P as AccordionItem, F as AccordionTrigger, I as ActionSheet, d as Alert, ye as AlertDialog, Yt as AppShell, _t as AspectRatio, sn as AutoGrid, f as Avatar, p as AvatarGroup, c as Badge, $e as Blockquote, xe as BottomSheet, z as Breadcrumb, t as Button, dt as ButtonGroup, Ft as Calendar, r as Card, i as CardContent, a as CardFooter, o as CardHeader, s as CardTitle, Rt as Carousel, an as Center, Xt as ChatBubble, v as Checkbox, He as CheckboxCard, Qe as Code, Ut as CodeSnippet, gt as Collapsible, Lt as ColorPicker, rn as Columns, ce as Combobox, ne as CommandMenu, we as Comparison, Tt as ContainedList, Et as ContainedListItem, Se as ContextMenu, Ce as ContextMenuItem, Ue as CopyButton, Dt as DataList, te as DataTable, le as DatePicker, It as DateRangePicker, mn as DismissableLayer, Bt as Dock, Vt as Drawer, w as Dropdown, Ie as Editable, X as EmptyState, hn as ErrorBoundary, Z as Fab, ct as Field, ue as FileUploader, lt as Filter, nn as Flex, gn as FocusScope, ae as Form, en as Grid, tn as GridItem, H as Header, Be as HeaderPanel, Xe as Heading, Te as HoverCard, Ee as HoverCardContent, De as HoverCardTrigger, ut as IconButton, h as Image, Kt as Indicator, pt as InlineLoading, n as Input, Ne as InputGroup, Pe as InputGroupAddon, kt as Item, At as ItemActions, jt as ItemContent, Mt as ItemDescription, Nt as ItemMedia, Pt as ItemTitle, qt as Join, L as Kbd, st as Label, R as Link, et as List, tt as ListItem, nt as LogViewer, he as Menu, vt as MenuButton, ge as MenuItem, _e as MenuSeparator, ve as MenuTrigger, bt as Menubar, l as Modal, ke as MultiSelect, Ht as NativeSelect, xt as NavigationMenu, mt as Notification, ee as NumberInput, je as OtpInput, Q as OverflowMenu, cn as PageHeader, G as Pagination, Oe as PasswordInput, fe as Popover, pe as PopoverContent, me as PopoverTrigger, _n as Portal, vn as Presence, Je as Progress, Y as ProgressBar, Ye as ProgressCircle, K as ProgressIndicator, rt as Prose, it as PullToRefresh, at as QrCode, Zt as RadialProgress, y as Radio, Le as RadioCard, Re as RadioCardGroup, b as RadioGroup, Fe as RatingGroup, ot as RelativeTime, zt as Resizable, ht as ScrollArea, $ as Search, Me as SegmentedControl, _ as Select, u as Separator, be as Sheet, ze as ShellHeader, W as SideNav, J as Skeleton, Ke as SkipNavLink, qe as SkipNavTarget, S as Slider, yn as Slot, on as Spacer, e as Spinner, Jt as Stack, We as Stat, Ge as Status, Wt as Steps, wt as StructuredList, bn as SuspenseBoundary, Qt as Swap, $t as SwipeItem, Ve as Switcher, O as Tabs, k as TabsContent, A as TabsList, j as TabsTrigger, q as Tag, Ae as TagsInput, Ze as Text, g as Textarea, ln as ThemeProvider, Gt as Tile, de as TimePicker, Ot as Timeline, T as ToastProvider, B as Toc, x as Toggle, ft as ToggleGroup, yt as Toggletip, C as Tooltip, St as TreeView, m as User, xn as VisuallyHidden, Sn as batch, Cn as cn, wn as composeRefs, Tn as computePosition, En as computed, oe as createForm, Dn as createMachine, On as createScope, kn as createStreamBuffer, E as dismissAllToasts, An as effect, re as fuzzyMatch, ie as fuzzyScore, jn as getLinkComponent, Mn as mergeProps, Nn as setLinkComponent, un as setTheme, Pn as signal, dn as themePreloadScript, fn as themeSignal, Ct as treeViewMessages, Fn as useAnchorPosition, In as useClipboard, Ln as useComputed, Rn as useControllableSignal, zn as useDisclosure, Bn as useEffectPropSignal, se as useForm, Vn as useId, Hn as useMachine, Un as useMediaQuery, U as usePopover, Wn as useRovingFocus, Gn as useScope, Kn as useScrollLock, qn as useSignal, Jn as useSignalEffect, Yn as useSignals, Xn as useStreamBuffer, pn as useTheme, D as useToast, V as useTocFromRegion, Zn as useTypeahead };
|
package/dist/search/search.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._root_1ppci_2{min-inline-size:0;inline-size:var(--cascivo-search-width,100%);align-items:center;display:inline-flex;position:relative}._root_1ppci_2[data-size=sm]{--_search-height:2rem;--_search-font:var(--cascivo-text-sm);--_search-px:var(--cascivo-space-3)}._root_1ppci_2[data-size=md]{--_search-height:2.5rem;--_search-font:var(--cascivo-text-sm);--_search-px:var(--cascivo-space-4)}._root_1ppci_2[data-size=lg]{--_search-height:3rem;--_search-font:var(--cascivo-text-base);--_search-px:var(--cascivo-space-4)}._label_1ppci_35{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._icon_1ppci_48{color:var(--cascivo-color-text-muted);pointer-events:none;align-items:center;display:inline-flex;position:absolute;inset-inline-start:var(--_search-px,var(--cascivo-space-4))}._input_1ppci_57{inline-size:100%;block-size:var(--_search-height,2.5rem);font-family:var(--cascivo-font-sans);font-size:var(--_search-font,var(--cascivo-text-sm));color:var(--cascivo-color-text);background-color:var(--cascivo-color-surface);border:1px solid var(--cascivo-color-border);border-radius:var(--cascivo-radius-field);transition:border-color var(--cascivo-duration-150) var(--cascivo-ease-out), box-shadow var(--cascivo-duration-150) var(--cascivo-ease-out);outline:none;padding-inline-start:calc(var(--_search-px,var(--cascivo-space-4)) + 1rem + var(--cascivo-space-2));padding-inline-end:calc(var(--_search-px,var(--cascivo-space-4)) + 1.5rem)}._input_1ppci_57::-webkit-search-cancel-button{appearance:none;display:none}._input_1ppci_57::-webkit-search-decoration{appearance:none;display:none}._input_1ppci_57::placeholder{color:var(--cascivo-color-text-muted)}._input_1ppci_57:hover:not(:disabled):not(:focus){border-color:var(--cascivo-color-border-strong)}._input_1ppci_57:focus{border-color:var(--cascivo-color-accent);box-shadow:var(--cascivo-focus-ring)}._input_1ppci_57:disabled{opacity:.5;cursor:not-allowed;background-color:var(--cascivo-color-bg-subtle)}._clear_1ppci_103{block-size:1.5rem;inline-size:1.5rem;font-size:var(--cascivo-text-sm);line-height:var(--cascivo-leading-none);color:var(--cascivo-color-text-muted);border-radius:var(--cascivo-radius-control);cursor:pointer;transition:background-color var(--cascivo-duration-150) var(--cascivo-ease-out), color var(--cascivo-duration-150) var(--cascivo-ease-out);background-color:#0000;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;inset-inline-end:var(--cascivo-space-2)}._clear_1ppci_103:hover:not(:disabled){color:var(--cascivo-color-text);background-color:var(--cascivo-color-bg-subtle)}._clear_1ppci_103:focus-visible{box-shadow:var(--cascivo-focus-ring);outline:none}._clear_1ppci_103:disabled{cursor:not-allowed}}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import './search.css';
|
|
4
4
|
var e = {
|
|
5
|
-
root: "
|
|
6
|
-
label: "
|
|
7
|
-
icon: "
|
|
8
|
-
input: "
|
|
9
|
-
clear: "
|
|
5
|
+
root: "_root_1ppci_2",
|
|
6
|
+
label: "_label_1ppci_35",
|
|
7
|
+
icon: "_icon_1ppci_48",
|
|
8
|
+
input: "_input_1ppci_57",
|
|
9
|
+
clear: "_clear_1ppci_103"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { e as default };
|
package/dist/stat/stat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer cascivo.component{.
|
|
1
|
+
@layer cascivo.component{._stat_ge5ag_2{gap:var(--cascivo-space-1);font-family:var(--cascivo-font-sans);flex-direction:column;min-inline-size:0;display:flex}._stat_ge5ag_2[data-card]{padding:var(--cascivo-space-4);border-radius:var(--cascivo-radius-surface);border:1px solid var(--cascivo-color-border);background:var(--cascivo-color-surface)}._label_ge5ag_20{font-size:var(--cascivo-text-sm);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-tight)}._value_ge5ag_26{font-size:var(--cascivo-text-2xl);font-weight:var(--cascivo-font-semibold);color:var(--cascivo-color-text);line-height:var(--cascivo-leading-tight);font-variant-numeric:tabular-nums}._delta_ge5ag_34{align-items:center;gap:var(--cascivo-space-1);font-size:var(--cascivo-text-sm);font-weight:var(--cascivo-font-medium);font-variant-numeric:tabular-nums;display:inline-flex}._delta_ge5ag_34[data-trend=up]{color:var(--cascivo-color-success-foreground)}._delta_ge5ag_34[data-trend=down]{color:var(--cascivo-color-destructive-foreground)}._delta_ge5ag_34[data-trend=flat]{color:var(--cascivo-color-text-subtle)}._arrow_ge5ag_55{font-size:var(--cascivo-text-xs);line-height:1}._help_ge5ag_60{font-size:var(--cascivo-text-xs);color:var(--cascivo-color-text-subtle);line-height:var(--cascivo-leading-tight)}._visual_ge5ag_66{margin-block-start:var(--cascivo-space-1)}}
|
package/dist/stat/stat.js
CHANGED
|
@@ -4,10 +4,11 @@ import e from "./stat.module.js";
|
|
|
4
4
|
import { cn as t } from "@cascivo/core";
|
|
5
5
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
6
|
//#region ../components/src/stat/stat.tsx
|
|
7
|
-
function i({ label: i, value: a, delta: o, trend: s = "flat", helpText: c,
|
|
7
|
+
function i({ label: i, value: a, delta: o, trend: s = "flat", helpText: c, card: l = !1, visual: u, className: d, ...f }) {
|
|
8
8
|
return /* @__PURE__ */ r("div", {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
"data-card": l || void 0,
|
|
10
|
+
className: t(e.stat, d),
|
|
11
|
+
...f,
|
|
11
12
|
children: [
|
|
12
13
|
/* @__PURE__ */ n("span", {
|
|
13
14
|
className: e.label,
|
|
@@ -30,9 +31,9 @@ function i({ label: i, value: a, delta: o, trend: s = "flat", helpText: c, visua
|
|
|
30
31
|
className: e.help,
|
|
31
32
|
children: c
|
|
32
33
|
}),
|
|
33
|
-
|
|
34
|
+
u && /* @__PURE__ */ n("span", {
|
|
34
35
|
className: e.visual,
|
|
35
|
-
children:
|
|
36
|
+
children: u
|
|
36
37
|
})
|
|
37
38
|
]
|
|
38
39
|
});
|
package/dist/stat/stat.module.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import './stat.css';
|
|
4
4
|
var e = {
|
|
5
|
-
stat: "
|
|
6
|
-
label: "
|
|
7
|
-
value: "
|
|
8
|
-
delta: "
|
|
9
|
-
arrow: "
|
|
10
|
-
help: "
|
|
11
|
-
visual: "
|
|
5
|
+
stat: "_stat_ge5ag_2",
|
|
6
|
+
label: "_label_ge5ag_20",
|
|
7
|
+
value: "_value_ge5ag_26",
|
|
8
|
+
delta: "_delta_ge5ag_34",
|
|
9
|
+
arrow: "_arrow_ge5ag_55",
|
|
10
|
+
help: "_help_ge5ag_60",
|
|
11
|
+
visual: "_visual_ge5ag_66"
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { e as default };
|
package/dist/status/status.js
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./status.module.js";
|
|
4
|
-
import { cn as t } from "@cascivo/core";
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { cn as t, normalizeTone as n } from "@cascivo/core";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
//#region ../components/src/status/status.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
var a = {
|
|
8
|
+
neutral: "neutral",
|
|
9
|
+
info: "info",
|
|
10
|
+
success: "success",
|
|
11
|
+
warning: "warning",
|
|
12
|
+
danger: "error"
|
|
13
|
+
};
|
|
14
|
+
function o({ status: o = "neutral", pulse: s = !1, className: c, children: l, ...u }) {
|
|
15
|
+
return /* @__PURE__ */ i("span", {
|
|
16
|
+
"data-status": a[n(o)] ?? o,
|
|
17
|
+
"data-pulse": s ? "" : void 0,
|
|
18
|
+
className: t(e.status, c),
|
|
19
|
+
...u,
|
|
20
|
+
children: [/* @__PURE__ */ r("span", {
|
|
14
21
|
"aria-hidden": "true",
|
|
15
22
|
className: e.dot
|
|
16
|
-
}),
|
|
23
|
+
}), l]
|
|
17
24
|
});
|
|
18
25
|
}
|
|
19
26
|
//#endregion
|
|
20
|
-
export {
|
|
27
|
+
export { o as Status };
|
package/dist/steps/steps.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./steps.module.js";
|
|
4
|
-
import {
|
|
5
|
-
import { builtin as
|
|
6
|
-
import { jsx as
|
|
4
|
+
import { normalizeProgress as t, useSignal as n, useSignals as r } from "@cascivo/core";
|
|
5
|
+
import { builtin as i, t as a } from "@cascivo/i18n";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region ../components/src/steps/steps.tsx
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
className: [e.steps,
|
|
15
|
-
"data-orientation":
|
|
16
|
-
"aria-label":
|
|
17
|
-
children:
|
|
18
|
-
let
|
|
19
|
-
return /* @__PURE__ */
|
|
8
|
+
function c({ steps: c, activeStep: l, orientation: u = "horizontal", className: d, ariaLabel: f }) {
|
|
9
|
+
r();
|
|
10
|
+
let p = n(l ?? 0);
|
|
11
|
+
p.value = l ?? p.value;
|
|
12
|
+
let m = f ?? a(i.steps.label);
|
|
13
|
+
return /* @__PURE__ */ o("ol", {
|
|
14
|
+
className: [e.steps, d].filter(Boolean).join(" "),
|
|
15
|
+
"data-orientation": u,
|
|
16
|
+
"aria-label": m,
|
|
17
|
+
children: c.map((n, r) => {
|
|
18
|
+
let i = n.state ? t(n.state) : r < p.value ? "complete" : r === p.value ? "active" : "pending";
|
|
19
|
+
return /* @__PURE__ */ s("li", {
|
|
20
20
|
className: e.step,
|
|
21
|
-
"data-state":
|
|
22
|
-
"aria-current":
|
|
23
|
-
children: [/* @__PURE__ */
|
|
21
|
+
"data-state": i,
|
|
22
|
+
"aria-current": i === "active" ? "step" : void 0,
|
|
23
|
+
children: [/* @__PURE__ */ o("div", {
|
|
24
24
|
className: e.circle,
|
|
25
|
-
children:
|
|
26
|
-
}), /* @__PURE__ */
|
|
25
|
+
children: i === "complete" ? "✓" : i === "error" ? "✕" : r + 1
|
|
26
|
+
}), /* @__PURE__ */ o("span", {
|
|
27
27
|
className: e.label,
|
|
28
|
-
children:
|
|
28
|
+
children: n.label
|
|
29
29
|
})]
|
|
30
|
-
},
|
|
30
|
+
}, r);
|
|
31
31
|
})
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
export {
|
|
35
|
+
export { c as Steps };
|
|
@@ -6,10 +6,10 @@ import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
|
6
6
|
import { useId as s } from "react";
|
|
7
7
|
//#region ../components/src/structured-list/structured-list.tsx
|
|
8
8
|
function c(n) {
|
|
9
|
-
let { items: r, headers: i, selectable: s = !1, className: c, "aria-label":
|
|
9
|
+
let { items: r, headers: i, selectable: s = !1, className: c, ariaLabel: u, "aria-label": d } = n;
|
|
10
10
|
return s ? /* @__PURE__ */ a(l, { ...n }) : /* @__PURE__ */ o("div", {
|
|
11
11
|
role: "table",
|
|
12
|
-
"aria-label": u,
|
|
12
|
+
"aria-label": d ?? u,
|
|
13
13
|
className: t(e.list, c),
|
|
14
14
|
children: [i && /* @__PURE__ */ a("div", {
|
|
15
15
|
role: "row",
|
|
@@ -34,21 +34,22 @@ function c(n) {
|
|
|
34
34
|
})]
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function l({ items: c, headers: l, value: u, defaultValue: d, onSelect: f, className: p, "aria-label":
|
|
37
|
+
function l({ items: c, headers: l, value: u, defaultValue: d, onSelect: f, className: p, ariaLabel: m, "aria-label": h }) {
|
|
38
|
+
let g = h ?? m;
|
|
38
39
|
i();
|
|
39
|
-
let
|
|
40
|
+
let _ = s(), [v, y] = n({
|
|
40
41
|
value: u,
|
|
41
42
|
defaultValue: d ?? c.find((e) => e.selected)?.id ?? "",
|
|
42
43
|
onChange: f
|
|
43
|
-
}),
|
|
44
|
+
}), b = r({
|
|
44
45
|
orientation: "vertical",
|
|
45
46
|
loop: !1
|
|
46
|
-
}),
|
|
47
|
-
|
|
47
|
+
}), x = (e) => {
|
|
48
|
+
y(e);
|
|
48
49
|
};
|
|
49
50
|
return /* @__PURE__ */ o("div", {
|
|
50
51
|
role: "radiogroup",
|
|
51
|
-
"aria-label":
|
|
52
|
+
"aria-label": g,
|
|
52
53
|
className: t(e.list, e.selectable, p),
|
|
53
54
|
children: [l && /* @__PURE__ */ o("div", {
|
|
54
55
|
className: e.headerRow,
|
|
@@ -62,18 +63,18 @@ function l({ items: c, headers: l, value: u, defaultValue: d, onSelect: f, class
|
|
|
62
63
|
}), /* @__PURE__ */ a("div", {
|
|
63
64
|
className: e.body,
|
|
64
65
|
children: c.map((t, n) => {
|
|
65
|
-
let r =
|
|
66
|
+
let r = v.value === t.id, { ref: i, ...s } = b.getItemProps(n);
|
|
66
67
|
return /* @__PURE__ */ o("div", {
|
|
67
68
|
role: "radio",
|
|
68
69
|
"aria-checked": r,
|
|
69
|
-
"aria-labelledby": `${
|
|
70
|
+
"aria-labelledby": `${_}-${t.id}-label`,
|
|
70
71
|
"data-selected": r || void 0,
|
|
71
72
|
className: e.row,
|
|
72
73
|
ref: i,
|
|
73
74
|
...s,
|
|
74
|
-
onClick: () =>
|
|
75
|
+
onClick: () => x(t.id),
|
|
75
76
|
onKeyDown: (e) => {
|
|
76
|
-
s.onKeyDown(e), (e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
77
|
+
s.onKeyDown(e), (e.key === "Enter" || e.key === " ") && (e.preventDefault(), x(t.id));
|
|
77
78
|
},
|
|
78
79
|
children: [
|
|
79
80
|
/* @__PURE__ */ a("div", {
|
|
@@ -83,7 +84,7 @@ function l({ items: c, headers: l, value: u, defaultValue: d, onSelect: f, class
|
|
|
83
84
|
}),
|
|
84
85
|
/* @__PURE__ */ a("div", {
|
|
85
86
|
className: e.cell,
|
|
86
|
-
id: `${
|
|
87
|
+
id: `${_}-${t.id}-label`,
|
|
87
88
|
children: t.cells[0]
|
|
88
89
|
}),
|
|
89
90
|
t.cells.slice(1).map((t, n) => /* @__PURE__ */ a("div", {
|