@cascivo/react 0.11.1 → 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/README.md +1 -1
- package/dist/alert-dialog/alert-dialog.js +2 -4
- 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.js +21 -11
- package/dist/card/card.module.js +8 -5
- package/dist/checkbox/checkbox.js +2 -2
- package/dist/combobox/combobox.css +1 -1
- package/dist/combobox/combobox.module.js +15 -15
- package/dist/command-menu/command-menu.js +67 -71
- 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/dropdown/dropdown.js +48 -50
- 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/header-panel/header-panel.js +2 -4
- package/dist/icon-button/icon-button.css +1 -1
- package/dist/icon-button/icon-button.js +10 -10
- package/dist/icon-button/icon-button.module.js +1 -1
- package/dist/index.d.ts +1300 -69
- 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/modal/modal.js +4 -4
- package/dist/multi-select/multi-select.css +1 -1
- package/dist/multi-select/multi-select.module.js +11 -11
- package/dist/node/alert-dialog/alert-dialog.js +2 -4
- 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.js +21 -11
- package/dist/node/card/card.module.js +8 -5
- package/dist/node/checkbox/checkbox.js +2 -2
- package/dist/node/combobox/combobox.module.js +15 -15
- package/dist/node/command-menu/command-menu.js +67 -71
- 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/dropdown/dropdown.js +48 -50
- package/dist/node/file-uploader/file-uploader.module.js +14 -14
- package/dist/node/filter/filter.js +10 -9
- package/dist/node/header-panel/header-panel.js +2 -4
- package/dist/node/icon-button/icon-button.js +10 -10
- 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/modal/modal.js +4 -4
- 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/popover/use-popover.js +9 -9
- package/dist/node/progress/progress.js +3 -2
- package/dist/node/react/src/index.js +63 -62
- package/dist/node/search/search.js +19 -22
- package/dist/node/search/search.module.js +5 -5
- package/dist/node/sheet/sheet.js +2 -4
- 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/node/visually-hidden/visually-hidden.js +2 -13
- 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/popover/use-popover.js +9 -9
- package/dist/progress/progress.js +3 -2
- package/dist/react/src/index.js +63 -62
- package/dist/search/search.css +1 -1
- package/dist/search/search.js +19 -22
- package/dist/search/search.module.js +5 -5
- package/dist/sheet/sheet.js +2 -4
- 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 -21
- 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/dist/visually-hidden/visually-hidden.js +2 -13
- package/package.json +4 -4
- package/readme.body.md +1 -1
- package/dist/node/visually-hidden/visually-hidden.module.js +0 -5
- package/dist/visually-hidden/visually-hidden.css +0 -1
- package/dist/visually-hidden/visually-hidden.module.js +0 -6
package/dist/react/src/index.js
CHANGED
|
@@ -73,66 +73,67 @@ import { CheckboxCard as He } from "../../checkbox-card/checkbox-card.js";
|
|
|
73
73
|
import { CopyButton as Ue } from "../../copy-button/copy-button.js";
|
|
74
74
|
import { Stat as We } from "../../stat/stat.js";
|
|
75
75
|
import { Status as Ge } from "../../status/status.js";
|
|
76
|
-
import
|
|
77
|
-
import { SkipNavLink as
|
|
78
|
-
import { Progress as
|
|
79
|
-
import { ProgressCircle as
|
|
80
|
-
import { Heading as
|
|
81
|
-
import { Text as
|
|
82
|
-
import { Code as
|
|
83
|
-
import { Blockquote as
|
|
84
|
-
import { List as
|
|
85
|
-
import { LogViewer as
|
|
86
|
-
import { Prose as
|
|
87
|
-
import { PullToRefresh as
|
|
88
|
-
import { QrCode as
|
|
89
|
-
import { RelativeTime as
|
|
90
|
-
import { Label as
|
|
91
|
-
import { Field as
|
|
92
|
-
import { Filter as
|
|
93
|
-
import { IconButton as
|
|
94
|
-
import { ButtonGroup as
|
|
95
|
-
import { ToggleGroup as
|
|
96
|
-
import { InlineLoading as
|
|
97
|
-
import { Notification as
|
|
98
|
-
import { ScrollArea as
|
|
99
|
-
import { Collapsible as
|
|
100
|
-
import { AspectRatio as
|
|
101
|
-
import { MenuButton as
|
|
102
|
-
import { Toggletip as
|
|
103
|
-
import { Menubar as
|
|
104
|
-
import { NavigationMenu as
|
|
105
|
-
import { TreeView as
|
|
106
|
-
import { StructuredList as
|
|
107
|
-
import { ContainedList as
|
|
108
|
-
import { DataList as
|
|
109
|
-
import { Timeline as
|
|
110
|
-
import { Item as
|
|
111
|
-
import { Calendar as
|
|
112
|
-
import { DateRangePicker as
|
|
113
|
-
import { ColorPicker as
|
|
114
|
-
import { Carousel as
|
|
115
|
-
import { Resizable as
|
|
116
|
-
import { Dock as
|
|
117
|
-
import { Drawer as
|
|
118
|
-
import { NativeSelect as
|
|
119
|
-
import { CodeSnippet as
|
|
120
|
-
import { Steps as
|
|
121
|
-
import { Tile as
|
|
122
|
-
import { Indicator as
|
|
123
|
-
import { Join as
|
|
124
|
-
import { Stack as
|
|
125
|
-
import { AppShell as
|
|
126
|
-
import { ChatBubble as
|
|
127
|
-
import { RadialProgress as
|
|
128
|
-
import { Swap as
|
|
129
|
-
import { SwipeItem as
|
|
130
|
-
import { Grid as
|
|
131
|
-
import { Flex as
|
|
132
|
-
import { Columns as
|
|
133
|
-
import { Center as
|
|
134
|
-
import { Spacer as
|
|
135
|
-
import { AutoGrid as
|
|
76
|
+
import "../../visually-hidden/visually-hidden.js";
|
|
77
|
+
import { SkipNavLink as Ke, SkipNavTarget as qe } from "../../skip-nav/skip-nav.js";
|
|
78
|
+
import { Progress as Je } from "../../progress/progress.js";
|
|
79
|
+
import { ProgressCircle as Ye } from "../../progress-circle/progress-circle.js";
|
|
80
|
+
import { Heading as Xe } from "../../heading/heading.js";
|
|
81
|
+
import { Text as Ze } from "../../text/text.js";
|
|
82
|
+
import { Code as Qe } from "../../code/code.js";
|
|
83
|
+
import { Blockquote as $e } from "../../blockquote/blockquote.js";
|
|
84
|
+
import { List as et, ListItem as tt } from "../../list/list.js";
|
|
85
|
+
import { LogViewer as nt } from "../../log-viewer/log-viewer.js";
|
|
86
|
+
import { Prose as rt } from "../../prose/prose.js";
|
|
87
|
+
import { PullToRefresh as it } from "../../pull-to-refresh/pull-to-refresh.js";
|
|
88
|
+
import { QrCode as at } from "../../qr-code/qr-code.js";
|
|
89
|
+
import { RelativeTime as ot } from "../../relative-time/relative-time.js";
|
|
90
|
+
import { Label as st } from "../../label/label.js";
|
|
91
|
+
import { Field as ct } from "../../field/field.js";
|
|
92
|
+
import { Filter as lt } from "../../filter/filter.js";
|
|
93
|
+
import { IconButton as ut } from "../../icon-button/icon-button.js";
|
|
94
|
+
import { ButtonGroup as dt } from "../../button-group/button-group.js";
|
|
95
|
+
import { ToggleGroup as ft } from "../../toggle-group/toggle-group.js";
|
|
96
|
+
import { InlineLoading as pt } from "../../inline-loading/inline-loading.js";
|
|
97
|
+
import { Notification as mt } from "../../notification/notification.js";
|
|
98
|
+
import { ScrollArea as ht } from "../../scroll-area/scroll-area.js";
|
|
99
|
+
import { Collapsible as gt } from "../../collapsible/collapsible.js";
|
|
100
|
+
import { AspectRatio as _t } from "../../aspect-ratio/aspect-ratio.js";
|
|
101
|
+
import { MenuButton as vt } from "../../menu-button/menu-button.js";
|
|
102
|
+
import { Toggletip as yt } from "../../toggletip/toggletip.js";
|
|
103
|
+
import { Menubar as bt } from "../../menubar/menubar.js";
|
|
104
|
+
import { NavigationMenu as xt } from "../../navigation-menu/navigation-menu.js";
|
|
105
|
+
import { TreeView as St, treeViewMessages as Ct } from "../../tree-view/tree-view.js";
|
|
106
|
+
import { StructuredList as wt } from "../../structured-list/structured-list.js";
|
|
107
|
+
import { ContainedList as Tt, ContainedListItem as Et } from "../../contained-list/contained-list.js";
|
|
108
|
+
import { DataList as Dt } from "../../data-list/data-list.js";
|
|
109
|
+
import { Timeline as Ot } from "../../timeline/timeline.js";
|
|
110
|
+
import { Item as kt, ItemActions as At, ItemContent as jt, ItemDescription as Mt, ItemMedia as Nt, ItemTitle as Pt } from "../../item/item.js";
|
|
111
|
+
import { Calendar as Ft } from "../../calendar/calendar.js";
|
|
112
|
+
import { DateRangePicker as It } from "../../date-range-picker/date-range-picker.js";
|
|
113
|
+
import { ColorPicker as Lt } from "../../color-picker/color-picker.js";
|
|
114
|
+
import { Carousel as Rt } from "../../carousel/carousel.js";
|
|
115
|
+
import { Resizable as zt } from "../../resizable/resizable.js";
|
|
116
|
+
import { Dock as Bt } from "../../dock/dock.js";
|
|
117
|
+
import { Drawer as Vt } from "../../drawer/drawer.js";
|
|
118
|
+
import { NativeSelect as Ht } from "../../native-select/native-select.js";
|
|
119
|
+
import { CodeSnippet as Ut } from "../../code-snippet/code-snippet.js";
|
|
120
|
+
import { Steps as Wt } from "../../steps/steps.js";
|
|
121
|
+
import { Tile as Gt } from "../../tile/tile.js";
|
|
122
|
+
import { Indicator as Kt } from "../../indicator/indicator.js";
|
|
123
|
+
import { Join as qt } from "../../join/join.js";
|
|
124
|
+
import { Stack as Jt } from "../../stack/stack.js";
|
|
125
|
+
import { AppShell as Yt } from "../../app-shell/app-shell.js";
|
|
126
|
+
import { ChatBubble as Xt } from "../../chat-bubble/chat-bubble.js";
|
|
127
|
+
import { RadialProgress as Zt } from "../../radial-progress/radial-progress.js";
|
|
128
|
+
import { Swap as Qt } from "../../swap/swap.js";
|
|
129
|
+
import { SwipeItem as $t } from "../../swipe-item/swipe-item.js";
|
|
130
|
+
import { Grid as en, GridItem as tn } from "../../layouts/src/grid/grid.js";
|
|
131
|
+
import { Flex as nn } from "../../layouts/src/flex/flex.js";
|
|
132
|
+
import { Columns as rn } from "../../layouts/src/columns/columns.js";
|
|
133
|
+
import { Center as an } from "../../layouts/src/center/center.js";
|
|
134
|
+
import { Spacer as on } from "../../layouts/src/spacer/spacer.js";
|
|
135
|
+
import { AutoGrid as sn } from "../../layouts/src/auto-grid/auto-grid.js";
|
|
136
|
+
import { PageHeader as cn } from "../../layouts/src/page-header/page-header.js";
|
|
136
137
|
import { ThemeProvider as ln, setTheme as un, themePreloadScript as dn, themeSignal as fn, useTheme as pn } from "./theme.js";
|
|
137
|
-
import {
|
|
138
|
-
export { M as Accordion, N as AccordionContent, P as AccordionItem, F as AccordionTrigger, I as ActionSheet, d as Alert, ye as AlertDialog,
|
|
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}}
|
package/dist/search/search.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./search.module.js";
|
|
4
|
-
import { cn as t,
|
|
5
|
-
import { builtin as
|
|
6
|
-
import { jsx as
|
|
7
|
-
import { useRef as
|
|
4
|
+
import { cn as t, useId as n, useSignal as r, useSignalEffect as i, useSignals as a } from "@cascivo/core";
|
|
5
|
+
import { builtin as o, t as s } from "@cascivo/i18n";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
import { useRef as u } from "react";
|
|
8
8
|
//#region ../components/src/search/search.tsx
|
|
9
|
-
var u = 0;
|
|
10
9
|
function d() {
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ l("svg", {
|
|
12
11
|
viewBox: "0 0 16 16",
|
|
13
12
|
width: "16",
|
|
14
13
|
height: "16",
|
|
@@ -17,11 +16,11 @@ function d() {
|
|
|
17
16
|
strokeWidth: "1.5",
|
|
18
17
|
strokeLinecap: "round",
|
|
19
18
|
"aria-hidden": "true",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
19
|
+
children: [/* @__PURE__ */ c("circle", {
|
|
21
20
|
cx: "7",
|
|
22
21
|
cy: "7",
|
|
23
22
|
r: "4.5"
|
|
24
|
-
}), /* @__PURE__ */
|
|
23
|
+
}), /* @__PURE__ */ c("line", {
|
|
25
24
|
x1: "10.5",
|
|
26
25
|
y1: "10.5",
|
|
27
26
|
x2: "14",
|
|
@@ -30,17 +29,15 @@ function d() {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
function f({ value: f, defaultValue: p = "", onValueChange: m, onChange: h, onSearch: g, debounceMs: _ = 300, placeholder: v, size: y = "md", label: b, disabled: x = !1, clearLabel: S, id: C, className: w }) {
|
|
33
|
-
|
|
34
|
-
let T = v ?? o
|
|
35
|
-
k.current === "" && (u += 1, k.current = `cascade-search-${u}`);
|
|
36
|
-
let A = C ?? k.current, j = f !== void 0, M = n(j ? f : p);
|
|
32
|
+
a();
|
|
33
|
+
let T = v ?? s(o.search.placeholder), E = b ?? s(o.search.label), D = S ?? s(o.search.clear), O = u(null), k = n("cascade-search"), A = C ?? k, j = f !== void 0, M = r(j ? f : p);
|
|
37
34
|
j && (M.value = f);
|
|
38
|
-
let N =
|
|
35
|
+
let N = u(g);
|
|
39
36
|
N.current = g;
|
|
40
|
-
let P =
|
|
37
|
+
let P = u(null), F = () => {
|
|
41
38
|
P.current !== null && (clearTimeout(P.current), P.current = null);
|
|
42
39
|
};
|
|
43
|
-
|
|
40
|
+
i(() => F);
|
|
44
41
|
let I = (e) => {
|
|
45
42
|
let t = e.target.value;
|
|
46
43
|
j || (M.value = t), (m ?? h)?.(t), F(), P.current = setTimeout(() => {
|
|
@@ -51,21 +48,21 @@ function f({ value: f, defaultValue: p = "", onValueChange: m, onChange: h, onSe
|
|
|
51
48
|
}, R = () => {
|
|
52
49
|
F(), j || (M.value = ""), (m ?? h)?.(""), g?.(""), O.current?.focus();
|
|
53
50
|
}, z = M.value !== "";
|
|
54
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ l("div", {
|
|
55
52
|
className: t(e.root, w),
|
|
56
53
|
"data-size": y,
|
|
57
54
|
"data-state": z ? "filled" : "empty",
|
|
58
55
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ c("label", {
|
|
60
57
|
className: e.label,
|
|
61
58
|
htmlFor: A,
|
|
62
59
|
children: E
|
|
63
60
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ c("span", {
|
|
65
62
|
className: e.icon,
|
|
66
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ c(d, {})
|
|
67
64
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ c("input", {
|
|
69
66
|
ref: O,
|
|
70
67
|
id: A,
|
|
71
68
|
type: "search",
|
|
@@ -76,13 +73,13 @@ function f({ value: f, defaultValue: p = "", onValueChange: m, onChange: h, onSe
|
|
|
76
73
|
onChange: I,
|
|
77
74
|
onKeyDown: L
|
|
78
75
|
}),
|
|
79
|
-
z && /* @__PURE__ */
|
|
76
|
+
z && /* @__PURE__ */ c("button", {
|
|
80
77
|
type: "button",
|
|
81
78
|
className: e.clear,
|
|
82
79
|
"aria-label": D,
|
|
83
80
|
disabled: x,
|
|
84
81
|
onClick: R,
|
|
85
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ c("span", {
|
|
86
83
|
"aria-hidden": "true",
|
|
87
84
|
children: "✕"
|
|
88
85
|
})
|
|
@@ -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/sheet/sheet.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import e from "./sheet.module.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useEffectPropSignal as t, useSignalEffect as n } from "@cascivo/core";
|
|
5
5
|
import { builtin as r, t as i } from "@cascivo/i18n";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
import { useId as s, useRef as c } from "react";
|
|
8
8
|
//#region ../components/src/sheet/sheet.tsx
|
|
9
9
|
function l({ open: l, onClose: u, title: d, children: f, side: p = "end" }) {
|
|
10
|
-
let m = c(null), h = s(), g = t(l);
|
|
11
|
-
g.value = l;
|
|
12
|
-
let _ = c(u);
|
|
10
|
+
let m = c(null), h = s(), g = t(l), _ = c(u);
|
|
13
11
|
return _.current = u, n(() => {
|
|
14
12
|
let e = m.current;
|
|
15
13
|
if (e) if (g.value) try {
|
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", {
|