@jfrader/ui 0.4.0 → 0.5.1
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 +2 -0
- package/dist/accordion-DLul6vIl.js +205 -0
- package/dist/accordion.js +1 -1
- package/dist/{alert-BBqaKI4k.js → alert-DS_einpy.js} +1 -1
- package/dist/alert.js +1 -1
- package/dist/announcement-bar-Dlbq5-9D.js +382 -0
- package/dist/announcement-bar.js +2 -0
- package/dist/avatar-CaGJHy1N.js +145 -0
- package/dist/avatar-group-M1opAQEG.js +138 -0
- package/dist/avatar-group.js +2 -0
- package/dist/avatar.js +1 -1
- package/dist/badge-CjM5Agqk.js +119 -0
- package/dist/badge.js +1 -1
- package/dist/bottom-sheet-DjZOPq4k.js +674 -0
- package/dist/bottom-sheet.js +2 -0
- package/dist/{breadcrumbs-DVAOxfvL.js → breadcrumbs-BDK_LiwH.js} +11 -4
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-P2e7_44z.js → button-NLY0h6EJ.js} +8 -8
- package/dist/button.js +1 -1
- package/dist/calendar-BzJdv_SZ.js +449 -0
- package/dist/calendar.js +1 -1
- package/dist/card-Ca4KQKYQ.js +154 -0
- package/dist/card.js +1 -1
- package/dist/carousel-B7OrvD6J.js +474 -0
- package/dist/carousel.js +2 -0
- package/dist/{checkbox-COYG6L7d.js → checkbox-DKSzExj2.js} +17 -16
- package/dist/checkbox.js +1 -1
- package/dist/chip-group-DjQ0_6Y9.js +290 -0
- package/dist/chip-group.js +2 -0
- package/dist/code-block/shiki.js +147 -0
- package/dist/code-block-B5we2lZa.js +293 -0
- package/dist/code-block.js +2 -0
- package/dist/collection-registry-k6JcD3Jr.js +44 -0
- package/dist/combobox-DFFqOBCi.js +339 -0
- package/dist/combobox.js +1 -1
- package/dist/command-palette-BmQu2w4H.js +391 -0
- package/dist/command-palette.js +1 -1
- package/dist/comment-thread-ASaXDcGo.js +1410 -0
- package/dist/comment-thread.js +2 -0
- package/dist/context-menu-__1c2Dk9.js +370 -0
- package/dist/context-menu.js +2 -0
- package/dist/copy-button-DCSLcYS-.js +252 -0
- package/dist/copy-button.js +2 -0
- package/dist/countdown-Dp_TD1VP.js +293 -0
- package/dist/countdown.js +2 -0
- package/dist/date-picker-BiPN7yeK.js +255 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-DQpUeKqV.js +570 -0
- package/dist/date-range-picker.js +2 -0
- package/dist/{dialog-xaydbXl2.js → dialog-BX1zYMs-.js} +21 -20
- package/dist/dialog.js +1 -1
- package/dist/{divider-DYoJf0I_.js → divider-Cp7aNbhM.js} +21 -20
- package/dist/divider.js +1 -1
- package/dist/drawer-DsASTiP-.js +553 -0
- package/dist/drawer.js +2 -0
- package/dist/elastic-slider-BG6K019r.js +395 -0
- package/dist/elastic-slider.js +2 -0
- package/dist/empty-state-CDgrjPPf.js +142 -0
- package/dist/empty-state.js +2 -0
- package/dist/expandable-card-rUATve0o.js +347 -0
- package/dist/expandable-card.js +2 -0
- package/dist/expanding-search-BxOwtdwt.js +238 -0
- package/dist/expanding-search.js +2 -0
- package/dist/field-anatomy-COVdNpf5.js +84 -0
- package/dist/file-dropzone-BuXm3Tea.js +457 -0
- package/dist/file-dropzone.js +2 -0
- package/dist/filter-toolbar-Cy5Hqur-.js +314 -0
- package/dist/filter-toolbar.js +2 -0
- package/dist/hold-to-confirm-DjB2EVjM.js +294 -0
- package/dist/hold-to-confirm.js +2 -0
- package/dist/hover-card-CoMJKg1g.js +347 -0
- package/dist/hover-card.js +2 -0
- package/dist/image-compare-BxY8Ykzt.js +415 -0
- package/dist/image-compare.js +2 -0
- package/dist/index.js +84 -38
- package/dist/inline-edit-C0eeml65.js +535 -0
- package/dist/inline-edit.js +2 -0
- package/dist/input-control-DmMuAuPS.js +34 -0
- package/dist/json-viewer-DgWqyU75.js +802 -0
- package/dist/json-viewer.js +2 -0
- package/dist/listbox-style-WX-RASp1.js +59 -0
- package/dist/{media-D_eA_I-e.js → media-8yrN85VT.js} +2 -2
- package/dist/mention-input-sq61si9L.js +600 -0
- package/dist/mention-input.js +2 -0
- package/dist/menu-DDKgmK2F.js +295 -0
- package/dist/menu.js +1 -1
- package/dist/metric-card--lVTz5Wn.js +118 -0
- package/dist/metric-card.js +2 -0
- package/dist/multi-select-DG1BCFX7.js +598 -0
- package/dist/multi-select.js +2 -0
- package/dist/{navigation-DhnKriOp.js → navigation-CC26JDr-.js} +24 -18
- package/dist/navigation.js +1 -1
- package/dist/overlay-layer-qEbpEtb8.js +78 -0
- package/dist/overlay-portal-C4JZFq2M.js +15 -0
- package/dist/{pagination-DYdwsxwe.js → pagination-BfkeWbmP.js} +24 -23
- package/dist/pagination.js +1 -1
- package/dist/password-field-03pWRkuY.js +250 -0
- package/dist/password-field.js +2 -0
- package/dist/pill-BaS-uIbn.js +58 -0
- package/dist/pill.js +1 -1
- package/dist/popover-CErIw2q3.js +125 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-BpJswTG4.js → progress-DAQkfhPd.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/radio-cards-Cu9cBssN.js +456 -0
- package/dist/radio-cards.js +2 -0
- package/dist/{radio-group-Ce0_IWQr.js → radio-group-TIK0-iPX.js} +22 -19
- package/dist/radio-group.js +1 -1
- package/dist/resizable-panels-DUpQEpwG.js +520 -0
- package/dist/resizable-panels.js +2 -0
- package/dist/scroll-area-CcZyiSOQ.js +371 -0
- package/dist/scroll-area.js +2 -0
- package/dist/search-field-DMvho0KQ.js +274 -0
- package/dist/search-field.js +2 -0
- package/dist/segmented-control-8ZUGnsZm.js +327 -0
- package/dist/segmented-control.js +2 -0
- package/dist/select-D5rhJ8gi.js +293 -0
- package/dist/select.js +1 -1
- package/dist/signature-pad-_bTeguN9.js +645 -0
- package/dist/signature-pad.js +2 -0
- package/dist/{skeleton-OoFlOEXO.js → skeleton-XQQDkCHd.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider-DVG6-Awh.js +308 -0
- package/dist/slider.js +2 -0
- package/dist/sortable-data-table-CYKT_Ng7.js +365 -0
- package/dist/sortable-data-table.js +2 -0
- package/dist/{spinner-C2YDoiMn.js → spinner-DtxvDPdM.js} +1 -1
- package/dist/spinner.js +1 -1
- package/dist/split-button-BCw4zZom.js +262 -0
- package/dist/split-button.js +2 -0
- package/dist/stepper-CruHbXxX.js +480 -0
- package/dist/stepper.js +2 -0
- package/dist/swipe-actions-CBuJREU1.js +420 -0
- package/dist/swipe-actions.js +2 -0
- package/dist/switch-C1WrKrf-.js +145 -0
- package/dist/switch.js +1 -1
- package/dist/tabs-XluwRjgg.js +210 -0
- package/dist/tabs.js +1 -1
- package/dist/tag-input-DSRCyrX2.js +418 -0
- package/dist/tag-input.js +2 -0
- package/dist/{text-field-D60ok14S.js → text-field-hU72iSVS.js} +20 -17
- package/dist/text-field.js +1 -1
- package/dist/{textarea-DyfjtP0A.js → textarea-3k4Y0QQ3.js} +23 -20
- package/dist/textarea.js +1 -1
- package/dist/theme-root.js +1 -1
- package/dist/theme-switch-C505TtU8.js +166 -0
- package/dist/theme-switch.js +2 -0
- package/dist/time-picker-CPlhW0tr.js +311 -0
- package/dist/time-picker.js +2 -0
- package/dist/timeline-B0uAAVfT.js +624 -0
- package/dist/timeline.js +2 -0
- package/dist/toast-B7wo3sX1.js +371 -0
- package/dist/toast-stack-B40VpS4M.js +197 -0
- package/dist/toast-stack.js +2 -0
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-CI0e7hFm.js → toggle-group-B2fpFZwV.js} +5 -5
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-BvgVTCTN.js +120 -0
- package/dist/tooltip.js +1 -1
- package/dist/tree-view-j8qLqkb_.js +364 -0
- package/dist/tree-view.js +2 -0
- package/dist/types/components/announcement-bar/announcement-bar.d.ts +75 -0
- package/dist/types/components/announcement-bar/index.d.ts +2 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +43 -0
- package/dist/types/components/avatar-group/index.d.ts +2 -0
- package/dist/types/components/bottom-sheet/bottom-sheet.d.ts +60 -0
- package/dist/types/components/bottom-sheet/index.d.ts +2 -0
- package/dist/types/components/calendar/calendar.d.ts +25 -1
- package/dist/types/components/calendar/index.d.ts +1 -1
- package/dist/types/components/carousel/carousel.d.ts +73 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/chip-group/chip-group.d.ts +54 -0
- package/dist/types/components/chip-group/index.d.ts +1 -0
- package/dist/types/components/code-block/code-block.d.ts +58 -0
- package/dist/types/components/code-block/index.d.ts +1 -0
- package/dist/types/components/code-block/shiki.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +1 -1
- package/dist/types/components/command-palette/command-palette.d.ts +2 -2
- package/dist/types/components/comment-thread/comment-thread.d.ts +118 -0
- package/dist/types/components/comment-thread/index.d.ts +1 -0
- package/dist/types/components/comment-thread/thread-core.d.ts +96 -0
- package/dist/types/components/comment-thread/thread-parts.d.ts +114 -0
- package/dist/types/components/context-menu/context-menu.d.ts +55 -0
- package/dist/types/components/context-menu/index.d.ts +2 -0
- package/dist/types/components/copy-button/copy-button.d.ts +49 -0
- package/dist/types/components/copy-button/index.d.ts +2 -0
- package/dist/types/components/countdown/countdown.d.ts +37 -0
- package/dist/types/components/countdown/index.d.ts +1 -0
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/date-range-picker/date-range-picker.d.ts +103 -0
- package/dist/types/components/date-range-picker/index.d.ts +2 -0
- package/dist/types/components/drawer/drawer.d.ts +59 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/elastic-slider/elastic-slider.d.ts +53 -0
- package/dist/types/components/elastic-slider/index.d.ts +1 -0
- package/dist/types/components/empty-state/empty-state.d.ts +36 -0
- package/dist/types/components/empty-state/index.d.ts +2 -0
- package/dist/types/components/expandable-card/expandable-card.d.ts +28 -0
- package/dist/types/components/expandable-card/index.d.ts +2 -0
- package/dist/types/components/expanding-search/expanding-search.d.ts +22 -0
- package/dist/types/components/expanding-search/index.d.ts +1 -0
- package/dist/types/components/field/field-anatomy.d.ts +4 -2
- package/dist/types/components/file-dropzone/file-dropzone.d.ts +93 -0
- package/dist/types/components/file-dropzone/index.d.ts +2 -0
- package/dist/types/components/filter-toolbar/filter-toolbar.d.ts +70 -0
- package/dist/types/components/filter-toolbar/index.d.ts +1 -0
- package/dist/types/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/types/components/hold-to-confirm/index.d.ts +2 -0
- package/dist/types/components/hover-card/hover-card.d.ts +97 -0
- package/dist/types/components/hover-card/index.d.ts +2 -0
- package/dist/types/components/image-compare/image-compare.d.ts +54 -0
- package/dist/types/components/image-compare/index.d.ts +1 -0
- package/dist/types/components/inline-edit/index.d.ts +2 -0
- package/dist/types/components/inline-edit/inline-edit.d.ts +93 -0
- package/dist/types/components/json-viewer/index.d.ts +2 -0
- package/dist/types/components/json-viewer/json-viewer.d.ts +82 -0
- package/dist/types/components/mention-input/index.d.ts +2 -0
- package/dist/types/components/mention-input/mention-input.d.ts +87 -0
- package/dist/types/components/menu/menu.d.ts +68 -7
- package/dist/types/components/metric-card/index.d.ts +1 -0
- package/dist/types/components/metric-card/metric-card.d.ts +37 -0
- package/dist/types/components/multi-select/index.d.ts +2 -0
- package/dist/types/components/multi-select/multi-select.d.ts +73 -0
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/password-field/index.d.ts +2 -0
- package/dist/types/components/password-field/password-field.d.ts +34 -0
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/radio-cards/index.d.ts +1 -0
- package/dist/types/components/radio-cards/radio-cards.d.ts +42 -0
- package/dist/types/components/radio-group/radio-group.d.ts +1 -1
- package/dist/types/components/resizable-panels/index.d.ts +2 -0
- package/dist/types/components/resizable-panels/resizable-panels.d.ts +42 -0
- package/dist/types/components/scroll-area/index.d.ts +2 -0
- package/dist/types/components/scroll-area/scroll-area.d.ts +34 -0
- package/dist/types/components/search-field/index.d.ts +1 -0
- package/dist/types/components/search-field/search-field.d.ts +31 -0
- package/dist/types/components/segmented-control/index.d.ts +2 -0
- package/dist/types/components/segmented-control/segmented-control.d.ts +32 -0
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/signature-pad/index.d.ts +2 -0
- package/dist/types/components/signature-pad/signature-pad.d.ts +104 -0
- package/dist/types/components/slider/index.d.ts +1 -0
- package/dist/types/components/slider/slider-style.d.ts +14 -0
- package/dist/types/components/slider/slider.d.ts +62 -0
- package/dist/types/components/slider/use-slider-interaction.d.ts +79 -0
- package/dist/types/components/sortable-data-table/index.d.ts +1 -0
- package/dist/types/components/sortable-data-table/sortable-data-table.d.ts +76 -0
- package/dist/types/components/split-button/index.d.ts +2 -0
- package/dist/types/components/split-button/split-button.d.ts +55 -0
- package/dist/types/components/stepper/index.d.ts +2 -0
- package/dist/types/components/stepper/stepper.d.ts +85 -0
- package/dist/types/components/swipe-actions/index.d.ts +2 -0
- package/dist/types/components/swipe-actions/swipe-actions.d.ts +44 -0
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/tag-input/index.d.ts +2 -0
- package/dist/types/components/tag-input/tag-input.d.ts +66 -0
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/components/theme-switch/index.d.ts +1 -0
- package/dist/types/components/theme-switch/theme-switch.d.ts +33 -0
- package/dist/types/components/time-picker/index.d.ts +2 -0
- package/dist/types/components/time-picker/time-picker.d.ts +48 -0
- package/dist/types/components/timeline/index.d.ts +2 -0
- package/dist/types/components/timeline/timeline.d.ts +66 -0
- package/dist/types/components/toast/toast.d.ts +37 -2
- package/dist/types/components/toast-stack/index.d.ts +2 -0
- package/dist/types/components/toast-stack/toast-stack.d.ts +28 -0
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree-view/index.d.ts +1 -0
- package/dist/types/components/tree-view/tree-view.d.ts +47 -0
- package/dist/types/components/usage-meter/index.d.ts +2 -0
- package/dist/types/components/usage-meter/usage-meter.d.ts +83 -0
- package/dist/types/index.d.ts +45 -0
- package/dist/types/overlay/overlay-layer.d.ts +53 -0
- package/dist/types/overlay/use-overlay-floating.d.ts +19 -2
- package/dist/types/styling/media.d.ts +1 -0
- package/dist/types/styling/theme.d.ts +12 -0
- package/dist/types/utils/use-controlled-state.d.ts +2 -1
- package/dist/usage-meter-qyQ3rYVv.js +463 -0
- package/dist/usage-meter.js +2 -0
- package/dist/use-controlled-state-DpeVQZNR.js +20 -0
- package/dist/use-latest-callback-cj1OOQL6.js +11 -0
- package/dist/use-overlay-floating-Bx2jBKAA.js +33 -0
- package/dist/use-slider-interaction-ChL-208h.js +234 -0
- package/package.json +195 -3
- package/dist/accordion-Bd-j04hW.js +0 -198
- package/dist/avatar-BahDVO9t.js +0 -132
- package/dist/badge-B_sLygxU.js +0 -108
- package/dist/calendar-C9Yad_-w.js +0 -394
- package/dist/card-D-aI2QHx.js +0 -158
- package/dist/collection-registry-BTYi6zGh.js +0 -98
- package/dist/combobox-DiMC2g_u.js +0 -327
- package/dist/command-palette-V_2pEay7.js +0 -379
- package/dist/date-picker-C29Uo4Tx.js +0 -250
- package/dist/field-anatomy-D2ToMeRa.js +0 -109
- package/dist/menu-CGPTNRnF.js +0 -216
- package/dist/pill-DO2gHzMb.js +0 -56
- package/dist/popover-CdRXjQqI.js +0 -113
- package/dist/select-BgG7WgSh.js +0 -286
- package/dist/switch-Dr-qjmT4.js +0 -142
- package/dist/tabs-CK_g1RKa.js +0 -203
- package/dist/toast-CjmELMZZ.js +0 -283
- package/dist/tooltip-CaL3rKbV.js +0 -108
- package/dist/use-controlled-state-CVXDa-qM.js +0 -21
- package/dist/use-overlay-floating-Bit-f0FU.js +0 -31
- package/dist/{theme-root-BbTBuLMQ.js → theme-root-Bs1U3uPA.js} +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import { type SxProps } from '../../styling/sx';
|
|
3
|
+
import { type CardHeadingLevel, type CardPartProps, type CardVariant } from '../card';
|
|
4
|
+
import { type PillTone } from '../pill';
|
|
5
|
+
export interface MetricCardSlotProps {
|
|
6
|
+
surface?: CardPartProps;
|
|
7
|
+
header?: CardPartProps;
|
|
8
|
+
label?: CardPartProps;
|
|
9
|
+
value?: CardPartProps;
|
|
10
|
+
delta?: CardPartProps;
|
|
11
|
+
description?: CardPartProps;
|
|
12
|
+
}
|
|
13
|
+
export interface MetricCardProps extends Omit<ComponentPropsWithRef<'div'>, 'children'>, SxProps {
|
|
14
|
+
label: ReactNode;
|
|
15
|
+
value: number | null;
|
|
16
|
+
description?: ReactNode;
|
|
17
|
+
headingLevel?: CardHeadingLevel;
|
|
18
|
+
variant?: CardVariant;
|
|
19
|
+
/** Pin the locale for matching server and client output. */
|
|
20
|
+
locale?: Intl.LocalesArgument;
|
|
21
|
+
/** Percent values are fractions; currency formatting requires a currency code. Invalid options throw. */
|
|
22
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
23
|
+
unitLabel?: string;
|
|
24
|
+
delta?: number;
|
|
25
|
+
/** Nonzero deltas always have a sign, including when signDisplay is 'never'. */
|
|
26
|
+
deltaFormatOptions?: Intl.NumberFormatOptions;
|
|
27
|
+
deltaTone?: PillTone;
|
|
28
|
+
deltaDescription?: string;
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
missingValueLabel?: string;
|
|
31
|
+
slotProps?: MetricCardSlotProps;
|
|
32
|
+
}
|
|
33
|
+
/** Read-only heading and numeric summary; Tab skips it. No live region or animated value copies. */
|
|
34
|
+
export declare function MetricCard({ ref, label, value, description, headingLevel, variant, locale, formatOptions, unitLabel, delta, deltaFormatOptions, deltaTone, deltaDescription, loading, missingValueLabel, slotProps, className, sx, role, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, 'aria-busy': busy, ...rest }: MetricCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare namespace MetricCard {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { MultiSelect } from './multi-select';
|
|
2
|
+
export type { MultiSelectProps, MultiSelectMessages, MultiSelectTriggerProps, MultiSelectValueProps, MultiSelectContentProps, MultiSelectItemProps, MultiSelectClearProps, MultiSelectLabelProps, MultiSelectDescriptionProps, MultiSelectErrorProps, MultiSelectEmptyProps, } from './multi-select';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import { type Placement } from '@floating-ui/react';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export interface MultiSelectMessages {
|
|
5
|
+
clearLabel: string;
|
|
6
|
+
empty: string;
|
|
7
|
+
selected: (labels: readonly string[]) => string;
|
|
8
|
+
toggled: (label: string, selected: boolean) => string;
|
|
9
|
+
required: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MultiSelectProps {
|
|
12
|
+
value?: readonly string[];
|
|
13
|
+
defaultValue?: readonly string[];
|
|
14
|
+
onValueChange?: (value: string[]) => void;
|
|
15
|
+
open?: boolean;
|
|
16
|
+
defaultOpen?: boolean;
|
|
17
|
+
onOpenChange?: (open: boolean) => void;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
locale?: Intl.LocalesArgument;
|
|
22
|
+
messages?: Partial<MultiSelectMessages>;
|
|
23
|
+
placement?: Placement;
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export interface MultiSelectTriggerProps extends ComponentPropsWithRef<'button'>, SxProps {
|
|
27
|
+
size?: 'sm' | 'md' | 'lg';
|
|
28
|
+
}
|
|
29
|
+
export interface MultiSelectValueProps extends ComponentPropsWithRef<'span'>, SxProps {
|
|
30
|
+
maxVisible?: number;
|
|
31
|
+
placeholder?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface MultiSelectContentProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
34
|
+
}
|
|
35
|
+
export interface MultiSelectItemProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
36
|
+
value: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
textValue?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface MultiSelectClearProps extends ComponentPropsWithRef<'button'>, SxProps {
|
|
41
|
+
}
|
|
42
|
+
export interface MultiSelectLabelProps extends ComponentPropsWithRef<'label'>, SxProps {
|
|
43
|
+
}
|
|
44
|
+
export interface MultiSelectDescriptionProps extends ComponentPropsWithRef<'span'>, SxProps {
|
|
45
|
+
}
|
|
46
|
+
export interface MultiSelectErrorProps extends ComponentPropsWithRef<'span'>, SxProps {
|
|
47
|
+
}
|
|
48
|
+
export interface MultiSelectEmptyProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
49
|
+
}
|
|
50
|
+
declare function MultiSelectRoot(props: MultiSelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
51
|
+
/** Select-only combobox: arrows and Home/End move virtual focus; Enter/Space toggle without
|
|
52
|
+
* closing; prefix typeahead persists for 500ms. Escape/Tab dismiss without changing values. */
|
|
53
|
+
declare function MultiSelectTrigger({ ref, id: idProp, size, disabled: disabledProp, onKeyDown, onKeyUp, onClick, onBlur, className, sx, ...rest }: MultiSelectTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function MultiSelectValue({ ref, maxVisible, placeholder, className, sx, ...rest }: MultiSelectValueProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
55
|
+
declare function MultiSelectContent({ ref, id: idProp, children, style, onMouseDown, className, sx, ...rest }: MultiSelectContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
56
|
+
declare function MultiSelectItem({ ref, id: idProp, value, disabled, textValue, onClick, children, className, sx, ...rest }: MultiSelectItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
57
|
+
declare function MultiSelectClear({ ref, disabled, onClick, children, className, sx, ...rest }: MultiSelectClearProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function MultiSelectLabel({ ref, id: idProp, children, className, sx, ...rest }: MultiSelectLabelProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
59
|
+
declare function MultiSelectDescription(props: MultiSelectDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
|
+
declare function MultiSelectError(props: MultiSelectErrorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare function MultiSelectEmpty({ ref, children, className, sx, ...rest }: MultiSelectEmptyProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
62
|
+
export declare const MultiSelect: typeof MultiSelectRoot & {
|
|
63
|
+
Trigger: typeof MultiSelectTrigger;
|
|
64
|
+
Value: typeof MultiSelectValue;
|
|
65
|
+
Content: typeof MultiSelectContent;
|
|
66
|
+
Item: typeof MultiSelectItem;
|
|
67
|
+
Clear: typeof MultiSelectClear;
|
|
68
|
+
Label: typeof MultiSelectLabel;
|
|
69
|
+
Description: typeof MultiSelectDescription;
|
|
70
|
+
Error: typeof MultiSelectError;
|
|
71
|
+
Empty: typeof MultiSelectEmpty;
|
|
72
|
+
};
|
|
73
|
+
export {};
|
|
@@ -12,7 +12,7 @@ export interface PaginationProps extends Omit<ComponentPropsWithRef<'nav'>, 'onC
|
|
|
12
12
|
nextLabel?: string;
|
|
13
13
|
locale?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function Pagination({ ref, page, totalPages, onPageChange, siblingCount, label, previousLabel, nextLabel, locale, className, sx, ...rest }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function Pagination({ ref, page, totalPages, onPageChange, siblingCount, label, previousLabel, nextLabel, locale, className, sx, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...rest }: PaginationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
export declare namespace Pagination {
|
|
17
17
|
var displayName: string;
|
|
18
18
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import type { SxProps } from '../../styling/sx';
|
|
3
|
+
import { type FieldPartProps, type FieldSlotProps } from '../field/field-anatomy';
|
|
4
|
+
export type PasswordFieldSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface PasswordFieldMessages {
|
|
6
|
+
/** Accessible name of the reveal toggle; `aria-pressed` conveys whether it is on. */
|
|
7
|
+
reveal: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PasswordFieldPartProps extends FieldPartProps {
|
|
10
|
+
}
|
|
11
|
+
export interface PasswordFieldSlotProps extends FieldSlotProps<PasswordFieldPartProps> {
|
|
12
|
+
shell?: PasswordFieldPartProps;
|
|
13
|
+
reveal?: PasswordFieldPartProps;
|
|
14
|
+
}
|
|
15
|
+
export interface PasswordFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'type' | 'size' | 'value' | 'defaultValue' | 'children'>, SxProps {
|
|
16
|
+
value?: string;
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
onValueChange?: (value: string) => void;
|
|
19
|
+
revealed?: boolean;
|
|
20
|
+
defaultRevealed?: boolean;
|
|
21
|
+
onRevealedChange?: (revealed: boolean) => void;
|
|
22
|
+
label?: ReactNode;
|
|
23
|
+
description?: ReactNode;
|
|
24
|
+
error?: ReactNode;
|
|
25
|
+
size?: PasswordFieldSize;
|
|
26
|
+
messages?: Partial<PasswordFieldMessages>;
|
|
27
|
+
/** Replaces the built-in eye; rendered decoratively inside the toggle. */
|
|
28
|
+
revealIcon?: (revealed: boolean) => ReactNode;
|
|
29
|
+
slotProps?: PasswordFieldSlotProps;
|
|
30
|
+
}
|
|
31
|
+
export declare function PasswordField({ ref, value, defaultValue, onChange, onValueChange, revealed: revealedProp, defaultRevealed, onRevealedChange, label, description, error, size, messages: messagesProp, revealIcon, slotProps, className, sx, dir, disabled, required, form, id: idProp, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, 'aria-invalid': ariaInvalidProp, ...rest }: PasswordFieldProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare namespace PasswordField {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|
|
@@ -12,7 +12,7 @@ export interface PopoverTriggerProps extends ComponentPropsWithRef<'button'>, Sx
|
|
|
12
12
|
}
|
|
13
13
|
export interface PopoverContentProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
14
14
|
}
|
|
15
|
-
declare function PopoverRoot(
|
|
15
|
+
declare function PopoverRoot(props: PopoverProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare function PopoverTrigger({ ref, className, sx, ...props }: PopoverTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
declare function PopoverContent({ ref, style, className, sx, ...rest }: PopoverContentProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
18
18
|
export declare const Popover: typeof PopoverRoot & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioCards, type RadioCardsProps, type RadioCardsItemProps, type RadioCardsLabelProps, type RadioCardsDescriptionProps, type RadioCardsPartProps, type RadioCardsLayout, type RadioCardsSize, } from './radio-cards';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ComponentPropsWithoutRef, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export type RadioCardsLayout = 'grid' | 'list';
|
|
5
|
+
export type RadioCardsSize = 'sm' | 'md';
|
|
6
|
+
export interface RadioCardsProps extends Omit<ComponentPropsWithRef<'div'>, 'onChange' | 'defaultValue'>, SxProps {
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
name?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
14
|
+
error?: ReactNode;
|
|
15
|
+
layout?: RadioCardsLayout;
|
|
16
|
+
minColumnWidth?: CSSProperties['inlineSize'];
|
|
17
|
+
size?: RadioCardsSize;
|
|
18
|
+
}
|
|
19
|
+
export type RadioCardsPartProps = ComponentPropsWithoutRef<'span'> & {
|
|
20
|
+
css?: Interpolation<Theme>;
|
|
21
|
+
};
|
|
22
|
+
export interface RadioCardsItemProps extends Omit<ComponentPropsWithRef<'input'>, 'type' | 'name' | 'checked' | 'defaultChecked' | 'value' | 'size' | 'children'>, SxProps {
|
|
23
|
+
value: string;
|
|
24
|
+
label: ReactNode;
|
|
25
|
+
description?: ReactNode;
|
|
26
|
+
meta?: ReactNode;
|
|
27
|
+
icon?: ReactNode;
|
|
28
|
+
disabledReason?: ReactNode;
|
|
29
|
+
slotProps?: Partial<Record<'control' | 'indicator' | 'icon' | 'label' | 'description' | 'meta', RadioCardsPartProps>>;
|
|
30
|
+
}
|
|
31
|
+
export type RadioCardsLabelProps = ComponentPropsWithRef<'span'> & SxProps;
|
|
32
|
+
export type RadioCardsDescriptionProps = ComponentPropsWithRef<'span'> & SxProps;
|
|
33
|
+
declare function RadioCardsRoot({ ref, value: valueProp, defaultValue, onValueChange, name: nameProp, required, disabled, invalid, error, layout, minColumnWidth, size, className, sx, style, children, onKeyDown, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, 'aria-invalid': ariaInvalid, ...rest }: RadioCardsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function RadioCardsItem({ ref, value, label, description, meta, icon, disabledReason, dir, disabled: disabledProp, required: requiredProp, onChange, slotProps, className, sx, 'aria-label': ariaLabel, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, 'aria-invalid': ariaInvalid, ...rest }: RadioCardsItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function RadioCardsLabel(props: RadioCardsLabelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function RadioCardsDescription(props: RadioCardsDescriptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const RadioCards: typeof RadioCardsRoot & {
|
|
38
|
+
Item: typeof RadioCardsItem;
|
|
39
|
+
Label: typeof RadioCardsLabel;
|
|
40
|
+
Description: typeof RadioCardsDescription;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -26,7 +26,7 @@ export interface RadioGroupRadioProps extends Omit<ComponentPropsWithRef<'input'
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
declare function RadioGroupRoot({ ref, value: valueProp, defaultValue, onValueChange, name: nameProp, disabled, orientation, className, sx, ...rest }: RadioGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
-
declare function RadioGroupRadio({ ref, value, label, description, disabled: disabledProp, onChange, slotProps, className, sx, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: RadioGroupRadioProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function RadioGroupRadio({ ref, value, label, description, disabled: disabledProp, onChange, slotProps, className, sx, dir, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, ...rest }: RadioGroupRadioProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
30
|
export declare const RadioGroup: typeof RadioGroupRoot & {
|
|
31
31
|
Radio: typeof RadioGroupRadio;
|
|
32
32
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export type ResizablePanelsSeparatorProps = ComponentPropsWithRef<'div'> & {
|
|
5
|
+
css?: Interpolation<Theme>;
|
|
6
|
+
};
|
|
7
|
+
export interface ResizablePanelsSlotProps {
|
|
8
|
+
/** Applied to every generated separator. */
|
|
9
|
+
separator?: ResizablePanelsSeparatorProps;
|
|
10
|
+
}
|
|
11
|
+
export interface ResizablePanelsProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'>, SxProps {
|
|
12
|
+
/** Controlled weights, one per panel in order. A zero collapses a collapsible panel. */
|
|
13
|
+
value?: readonly number[];
|
|
14
|
+
/** Initial weights; equal weights when omitted. */
|
|
15
|
+
defaultValue?: readonly number[];
|
|
16
|
+
/** Requested layout as percentages totalling 100; drags request at most once per frame. */
|
|
17
|
+
onValueChange?: (shares: number[]) => void;
|
|
18
|
+
/** Completed key press, reset or pointer release. */
|
|
19
|
+
onValueCommit?: (shares: number[]) => void;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Locale for the default separator value text. */
|
|
22
|
+
locale?: Intl.LocalesArgument;
|
|
23
|
+
/** Separator value text for the primary panel's share (percent of the usable extent). */
|
|
24
|
+
getValueText?: (share: number, panelValue: string, collapsed: boolean) => string;
|
|
25
|
+
slotProps?: ResizablePanelsSlotProps;
|
|
26
|
+
}
|
|
27
|
+
export interface ResizablePanelsPanelProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
28
|
+
/** Stable identifier, unique within the group. */
|
|
29
|
+
value: string;
|
|
30
|
+
/** Smallest open width in px. */
|
|
31
|
+
minSize?: number;
|
|
32
|
+
/** Largest width in px. */
|
|
33
|
+
maxSize?: number;
|
|
34
|
+
/** Allows the panel to collapse to zero width. */
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare function ResizablePanelsRoot({ ref, children, value, defaultValue, onValueChange, onValueCommit, disabled, locale, getValueText, slotProps, className, sx, ...rest }: ResizablePanelsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare function ResizablePanelsPanel({ ref, value: _value, minSize: _minSize, maxSize: _maxSize, collapsible: _collapsible, className, sx, style, children, ...rest }: ResizablePanelsPanelProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const ResizablePanels: typeof ResizablePanelsRoot & {
|
|
40
|
+
Panel: typeof ResizablePanelsPanel;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type CSSProperties, type UIEvent } from 'react';
|
|
2
|
+
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export interface ScrollAreaEdges {
|
|
5
|
+
top: boolean;
|
|
6
|
+
bottom: boolean;
|
|
7
|
+
left: boolean;
|
|
8
|
+
right: boolean;
|
|
9
|
+
}
|
|
10
|
+
type Slot = ComponentPropsWithRef<'div'> & {
|
|
11
|
+
css?: Interpolation<Theme>;
|
|
12
|
+
};
|
|
13
|
+
export interface ScrollAreaSlotProps {
|
|
14
|
+
viewport?: Slot;
|
|
15
|
+
track?: Slot;
|
|
16
|
+
thumb?: Slot;
|
|
17
|
+
}
|
|
18
|
+
export interface ScrollAreaProps extends Omit<ComponentPropsWithRef<'div'>, 'onScroll'>, SxProps {
|
|
19
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
20
|
+
fade?: number;
|
|
21
|
+
scrollbars?: 'auto' | 'always' | 'native';
|
|
22
|
+
hideDelay?: number;
|
|
23
|
+
maxBlockSize?: CSSProperties['maxBlockSize'];
|
|
24
|
+
snap?: CSSProperties['scrollSnapType'];
|
|
25
|
+
wheelToHorizontal?: boolean;
|
|
26
|
+
onScroll?: (event: UIEvent<HTMLDivElement>) => void;
|
|
27
|
+
onEdgeChange?: (edges: ScrollAreaEdges) => void;
|
|
28
|
+
slotProps?: ScrollAreaSlotProps;
|
|
29
|
+
}
|
|
30
|
+
export declare function ScrollArea({ ref, children, className, sx, orientation, fade, scrollbars, hideDelay, maxBlockSize, snap, wheelToHorizontal, onScroll, onEdgeChange, slotProps, ...rest }: ScrollAreaProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare namespace ScrollArea {
|
|
32
|
+
var displayName: string;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchField, type SearchFieldProps, type SearchFieldSize, type SearchFieldMessages, type SearchFieldSlotProps } from './search-field';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import { type SxProps } from '../../styling/sx';
|
|
3
|
+
import { type FieldPartProps, type FieldSlotProps } from '../field/field-anatomy';
|
|
4
|
+
export type SearchFieldSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface SearchFieldMessages {
|
|
6
|
+
clear: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SearchFieldSlotProps extends FieldSlotProps {
|
|
9
|
+
shell?: FieldPartProps;
|
|
10
|
+
icon?: FieldPartProps;
|
|
11
|
+
clearSlot?: FieldPartProps;
|
|
12
|
+
clear?: FieldPartProps;
|
|
13
|
+
}
|
|
14
|
+
export interface SearchFieldProps extends Omit<ComponentPropsWithRef<'input'>, 'type' | 'size' | 'value' | 'defaultValue' | 'children'>, SxProps {
|
|
15
|
+
value?: string;
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
onValueChange?: (value: string) => void;
|
|
18
|
+
label?: ReactNode;
|
|
19
|
+
description?: ReactNode;
|
|
20
|
+
error?: ReactNode;
|
|
21
|
+
size?: SearchFieldSize;
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
messages?: Partial<SearchFieldMessages>;
|
|
24
|
+
searchIcon?: ReactNode;
|
|
25
|
+
clearIcon?: ReactNode;
|
|
26
|
+
slotProps?: SearchFieldSlotProps;
|
|
27
|
+
}
|
|
28
|
+
export declare function SearchField({ ref, value, defaultValue, onValueChange, label, description, error, size, clearable, messages, searchIcon, clearIcon, slotProps, className, sx, dir, required, disabled, readOnly, onChange, onKeyDown, id, 'aria-describedby': describedBy, 'aria-invalid': invalid, ...rest }: SearchFieldProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare namespace SearchField {
|
|
30
|
+
var displayName: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type SegmentedControlVariant = 'solid' | 'soft';
|
|
6
|
+
type SlotProps<Element extends 'div' | 'span'> = ComponentPropsWithoutRef<Element> & {
|
|
7
|
+
css?: Interpolation<Theme>;
|
|
8
|
+
};
|
|
9
|
+
export interface SegmentedControlProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'>, SxProps {
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
size?: SegmentedControlSize;
|
|
15
|
+
variant?: SegmentedControlVariant;
|
|
16
|
+
label?: string;
|
|
17
|
+
onOptionIntent?: (value: string) => void;
|
|
18
|
+
slotProps?: {
|
|
19
|
+
track?: SlotProps<'div'>;
|
|
20
|
+
selection?: SlotProps<'span'>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface SegmentedControlItemProps extends Omit<ComponentPropsWithRef<'button'>, 'value'>, SxProps {
|
|
24
|
+
value: string;
|
|
25
|
+
accessory?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare function SegmentedControlRoot({ ref, value: valueProp, defaultValue, onValueChange, disabled, size, variant, label, onOptionIntent, slotProps, className, sx, children, onKeyDown, ...rest }: SegmentedControlProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SegmentedControlItem({ ref, value, accessory, children, disabled: itemDisabled, className, sx, onClick, onFocus, onPointerEnter, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, ...rest }: SegmentedControlItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const SegmentedControl: typeof SegmentedControlRoot & {
|
|
30
|
+
Item: typeof SegmentedControlItem;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -29,7 +29,7 @@ export interface SelectItemProps extends ComponentPropsWithRef<'div'>, SxProps {
|
|
|
29
29
|
value: string;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
}
|
|
32
|
-
declare function SelectRoot(
|
|
32
|
+
declare function SelectRoot(props: SelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
33
|
declare function SelectTrigger({ ref, id: idProp, disabled: disabledProp, onKeyDown, className, sx, ...rest }: SelectTriggerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
34
|
declare function SelectValue({ ref, placeholder, className, sx, ...rest }: SelectValueProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
35
|
declare function SelectContent({ ref, style, onMouseDown, children, className, sx, ...rest }: SelectContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { SignaturePad, SignatureExportError, signatureToPng, signatureToSvg } from './signature-pad';
|
|
2
|
+
export type { InkColor, InkWidth, SignaturePoint, SignatureStroke, SignatureExportOptions, SignatureAction, SignaturePadMessages, SignaturePadPartProps, SignaturePadSlotProps, SignaturePadHandle, SignaturePadProps, } from './signature-pad';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type Interpolation, type Theme } from '../../styling/css';
|
|
3
|
+
import { type SxProps } from '../../styling/sx';
|
|
4
|
+
export type InkColor = 'black' | 'blue' | 'violet';
|
|
5
|
+
export type InkWidth = 'fine' | 'medium' | 'bold';
|
|
6
|
+
export interface SignaturePoint {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
pressure: number | null;
|
|
10
|
+
time: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SignatureStroke {
|
|
13
|
+
id: string;
|
|
14
|
+
points: SignaturePoint[];
|
|
15
|
+
color: InkColor;
|
|
16
|
+
width: InkWidth;
|
|
17
|
+
startTime: number;
|
|
18
|
+
}
|
|
19
|
+
export interface SignatureExportOptions {
|
|
20
|
+
crop?: boolean;
|
|
21
|
+
scale?: number;
|
|
22
|
+
}
|
|
23
|
+
export type SignatureAction = 'undo' | 'redo' | 'clear' | 'replay' | 'stop' | 'png' | 'svg';
|
|
24
|
+
export interface SignaturePadMessages {
|
|
25
|
+
ink: string;
|
|
26
|
+
nib: string;
|
|
27
|
+
colors: Record<InkColor, string>;
|
|
28
|
+
widths: Record<InkWidth, string>;
|
|
29
|
+
actions: Record<SignatureAction, string>;
|
|
30
|
+
empty: string;
|
|
31
|
+
signed: string;
|
|
32
|
+
roleDescription: string;
|
|
33
|
+
fallback: string;
|
|
34
|
+
shortcuts: string;
|
|
35
|
+
required: string;
|
|
36
|
+
added: string;
|
|
37
|
+
undone: string;
|
|
38
|
+
redone: string;
|
|
39
|
+
cleared: string;
|
|
40
|
+
reset: string;
|
|
41
|
+
replayComplete: string;
|
|
42
|
+
exported: string;
|
|
43
|
+
exportFailed: string;
|
|
44
|
+
}
|
|
45
|
+
export interface SignaturePadPartProps {
|
|
46
|
+
className?: string;
|
|
47
|
+
css?: Interpolation<Theme>;
|
|
48
|
+
}
|
|
49
|
+
export type SignaturePadSlotProps = Partial<Record<'root' | 'label' | 'canvas' | 'guide' | 'toolbar' | 'action' | 'description' | 'error' | 'status', SignaturePadPartProps>>;
|
|
50
|
+
export interface SignaturePadHandle {
|
|
51
|
+
focus(): void;
|
|
52
|
+
clear(): void;
|
|
53
|
+
undo(): void;
|
|
54
|
+
redo(): void;
|
|
55
|
+
replay(): void;
|
|
56
|
+
stopReplay(): void;
|
|
57
|
+
toDataURL(options?: SignatureExportOptions): string;
|
|
58
|
+
toBlob(options?: SignatureExportOptions): Promise<Blob>;
|
|
59
|
+
toSvg(options?: SignatureExportOptions): string;
|
|
60
|
+
}
|
|
61
|
+
export interface SignaturePadProps extends Omit<ComponentPropsWithRef<'canvas'>, 'onChange' | 'defaultValue' | 'width' | 'height' | 'color' | 'children'>, SxProps {
|
|
62
|
+
value?: SignatureStroke[];
|
|
63
|
+
defaultValue?: SignatureStroke[];
|
|
64
|
+
onValueChange?: (value: SignatureStroke[]) => void;
|
|
65
|
+
color?: InkColor;
|
|
66
|
+
defaultColor?: InkColor;
|
|
67
|
+
onColorChange?: (color: InkColor) => void;
|
|
68
|
+
width?: InkWidth;
|
|
69
|
+
defaultWidth?: InkWidth;
|
|
70
|
+
onWidthChange?: (width: InkWidth) => void;
|
|
71
|
+
label?: ReactNode;
|
|
72
|
+
description?: ReactNode;
|
|
73
|
+
error?: ReactNode;
|
|
74
|
+
signer?: ReactNode;
|
|
75
|
+
hint?: ReactNode;
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
readOnly?: boolean;
|
|
78
|
+
required?: boolean;
|
|
79
|
+
replay?: boolean;
|
|
80
|
+
download?: boolean;
|
|
81
|
+
fileName?: string;
|
|
82
|
+
historyLimit?: number;
|
|
83
|
+
messages: SignaturePadMessages;
|
|
84
|
+
icons?: Partial<Record<SignatureAction, ReactNode>>;
|
|
85
|
+
exportOptions?: SignatureExportOptions;
|
|
86
|
+
apiRef?: Ref<SignaturePadHandle>;
|
|
87
|
+
slotProps?: SignaturePadSlotProps;
|
|
88
|
+
}
|
|
89
|
+
export declare class SignatureExportError extends Error {
|
|
90
|
+
readonly code: 'empty' | 'invalid' | 'size' | 'encoder';
|
|
91
|
+
constructor(code: 'empty' | 'invalid' | 'size' | 'encoder', message: string);
|
|
92
|
+
}
|
|
93
|
+
/** Transparent PNG from normalized samples; guides and preview theme are excluded. */
|
|
94
|
+
export declare function signatureToPng(strokes: SignatureStroke[], options?: SignatureExportOptions): Promise<Blob>;
|
|
95
|
+
/** The same midpoint-quadratic segments and round caps used by Canvas, with fixed print ink. */
|
|
96
|
+
export declare function signatureToSvg(strokes: SignatureStroke[], options?: SignatureExportOptions): string;
|
|
97
|
+
/** Pointer-only handwriting. Consuming forms must offer typed-name or upload alternatives.
|
|
98
|
+
* Canvas shortcuts: Mod+Z undo, Shift+Mod+Z/Mod+Y redo, Delete clear, Escape cancel/stop.
|
|
99
|
+
* Samples use 600×260 coordinates; pressure changes round line widths, not speed-based taper.
|
|
100
|
+
* This artifact does not establish identity, consent, or legal validity. */
|
|
101
|
+
export declare function SignaturePad({ ref, apiRef, value: valueProp, defaultValue, onValueChange, color: colorProp, defaultColor, onColorChange, width: widthProp, defaultWidth, onWidthChange, label, description, error, signer, hint, disabled, readOnly, required, replay: showReplay, download, fileName, historyLimit, messages, icons, exportOptions, slotProps, className, sx, dir, style, onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onLostPointerCapture, onKeyDown, 'aria-labelledby': labelledBy, 'aria-describedby': describedBy, ...rest }: SignaturePadProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
102
|
+
export declare namespace SignaturePad {
|
|
103
|
+
var displayName: string;
|
|
104
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Slider, type SliderProps, type SliderValue, type SliderMark, type SliderSize, type SliderSlotProps, } from './slider';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const sliderRootStyle: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const sliderHeaderStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const sliderLabelStyle: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const sliderReadoutStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const sliderDescriptionStyle: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const sliderErrorStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const sliderRowStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const sliderControlStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const sliderSizeStyles: {
|
|
10
|
+
sm: import("@emotion/react").SerializedStyles;
|
|
11
|
+
md: import("@emotion/react").SerializedStyles;
|
|
12
|
+
};
|
|
13
|
+
export declare const sliderMarksStyle: import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const sliderMarkStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
2
|
+
import { type SxProps } from '../../styling/sx';
|
|
3
|
+
import { type SliderMark, type SliderPart as Part } from './use-slider-interaction';
|
|
4
|
+
export type { SliderMark, SliderValue } from './use-slider-interaction';
|
|
5
|
+
export type SliderSize = 'sm' | 'md';
|
|
6
|
+
export interface SliderSlotProps {
|
|
7
|
+
label?: Part<'span'>;
|
|
8
|
+
readout?: Part<'span'>;
|
|
9
|
+
description?: Part<'div'>;
|
|
10
|
+
error?: Part<'div'>;
|
|
11
|
+
control?: Part<'div'>;
|
|
12
|
+
track?: Part<'div'>;
|
|
13
|
+
fill?: Part<'div'>;
|
|
14
|
+
thumb?: Part<'div'> | ((index: number) => Part<'div'>);
|
|
15
|
+
bubble?: Part<'span'>;
|
|
16
|
+
mark?: Part<'button'> | ((index: number) => Part<'button'>);
|
|
17
|
+
start?: Part<'div'>;
|
|
18
|
+
end?: Part<'div'>;
|
|
19
|
+
}
|
|
20
|
+
interface SliderCommonProps extends Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange' | 'children'>, SxProps {
|
|
21
|
+
label: ReactNode;
|
|
22
|
+
description?: ReactNode;
|
|
23
|
+
error?: ReactNode;
|
|
24
|
+
invalid?: boolean;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
step?: number;
|
|
29
|
+
largeStep?: number;
|
|
30
|
+
marks?: readonly SliderMark[];
|
|
31
|
+
locale?: Intl.LocalesArgument;
|
|
32
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
33
|
+
formatValue?: (value: number, formatter: Intl.NumberFormat) => string;
|
|
34
|
+
showValue?: boolean;
|
|
35
|
+
start?: ReactNode;
|
|
36
|
+
end?: ReactNode;
|
|
37
|
+
size?: SliderSize;
|
|
38
|
+
slotProps?: SliderSlotProps;
|
|
39
|
+
}
|
|
40
|
+
export type SliderProps = SliderCommonProps & ({
|
|
41
|
+
type?: 'single';
|
|
42
|
+
value?: number;
|
|
43
|
+
defaultValue?: number;
|
|
44
|
+
onValueChange?: (value: number) => void;
|
|
45
|
+
onValueCommit?: (value: number) => void;
|
|
46
|
+
name?: string;
|
|
47
|
+
thumbLabels?: never;
|
|
48
|
+
minStepsBetweenThumbs?: never;
|
|
49
|
+
} | {
|
|
50
|
+
type: 'range';
|
|
51
|
+
value?: readonly [number, number];
|
|
52
|
+
defaultValue?: readonly [number, number];
|
|
53
|
+
onValueChange?: (value: readonly [number, number]) => void;
|
|
54
|
+
onValueCommit?: (value: readonly [number, number]) => void;
|
|
55
|
+
name?: string | readonly [string, string];
|
|
56
|
+
thumbLabels: readonly [string, string];
|
|
57
|
+
minStepsBetweenThumbs?: number;
|
|
58
|
+
});
|
|
59
|
+
export declare function Slider(props: SliderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare namespace Slider {
|
|
61
|
+
var displayName: string;
|
|
62
|
+
}
|