@krizaka/ui 3.2.0 → 3.3.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/{chunk-I5RVM5CW.js → chunk-2FRWNSRO.js} +2 -6
- package/dist/chunk-2FRWNSRO.js.map +1 -0
- package/dist/chunk-BTMFZ66D.js +135 -0
- package/dist/chunk-BTMFZ66D.js.map +1 -0
- package/dist/chunk-C2BRIFJG.js +13 -0
- package/dist/chunk-C2BRIFJG.js.map +1 -0
- package/dist/chunk-KDXRYUD3.js +39 -0
- package/dist/chunk-KDXRYUD3.js.map +1 -0
- package/dist/{chunk-2PUDI7JS.js → chunk-ZKVQGXLD.js} +5 -3
- package/dist/{chunk-2PUDI7JS.js.map → chunk-ZKVQGXLD.js.map} +1 -1
- package/dist/command.js +1 -1
- package/dist/confirm-button.js +1 -1
- package/dist/data-table.js +3 -2
- package/dist/data-table.js.map +1 -1
- package/dist/date-picker.d.ts +3 -1
- package/dist/date-picker.js +13 -13
- package/dist/date-picker.js.map +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/filter-bar.js +3 -2
- package/dist/form.d.ts +23 -12
- package/dist/form.js +11 -47
- package/dist/form.js.map +1 -1
- package/dist/glow-card.js +1 -1
- package/dist/image-cropper.js +3 -1
- package/dist/image-cropper.js.map +1 -1
- package/dist/marquee.js +1 -1
- package/dist/native/form.d.ts +60 -15
- package/dist/native/form.js +103 -42
- package/dist/native/form.js.map +1 -1
- package/dist/native.d.ts +206 -2
- package/dist/native.js +1172 -541
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.d.ts +66 -32
- package/dist/radio-group.js +54 -10
- package/dist/radio-group.js.map +1 -1
- package/dist/slider.d.ts +96 -35
- package/dist/slider.js +67 -13
- package/dist/slider.js.map +1 -1
- package/dist/terminal-replay.js +34 -60
- package/dist/terminal-replay.js.map +1 -1
- package/dist/toast.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/video-player.js +3 -1
- package/dist/video-player.js.map +1 -1
- package/package.json +6 -6
- package/registry/combobox.json +225 -3
- package/registry/date-picker.json +16 -2
- package/registry/dialog.json +74 -3
- package/registry/examples/combobox/native/multiple.d.ts +4 -0
- package/registry/examples/combobox/native/multiple.dark.png +0 -0
- package/registry/examples/combobox/native/multiple.js +15 -0
- package/registry/examples/combobox/native/multiple.light.png +0 -0
- package/registry/examples/combobox/native/multiple.tsx +15 -0
- package/registry/examples/combobox/native/search.d.ts +4 -0
- package/registry/examples/combobox/native/search.dark.png +0 -0
- package/registry/examples/combobox/native/search.js +15 -0
- package/registry/examples/combobox/native/search.light.png +0 -0
- package/registry/examples/combobox/native/search.tsx +15 -0
- package/registry/examples/dialog/native/sheet.d.ts +4 -0
- package/registry/examples/dialog/native/sheet.dark.png +0 -0
- package/registry/examples/dialog/native/sheet.js +21 -0
- package/registry/examples/dialog/native/sheet.light.png +0 -0
- package/registry/examples/dialog/native/sheet.tsx +18 -0
- package/registry/examples/field/native/select.d.ts +4 -0
- package/registry/examples/field/native/select.dark.png +0 -0
- package/registry/examples/field/native/select.js +29 -0
- package/registry/examples/field/native/select.light.png +0 -0
- package/registry/examples/field/native/select.tsx +25 -0
- package/registry/examples/form/native/audience.dark.png +0 -0
- package/registry/examples/form/native/audience.light.png +0 -0
- package/registry/examples/form/native/profile.dark.png +0 -0
- package/registry/examples/form/native/profile.light.png +0 -0
- package/registry/examples/form/native/settings.dark.png +0 -0
- package/registry/examples/form/native/settings.light.png +0 -0
- package/registry/examples/form/native/sign-up.dark.png +0 -0
- package/registry/examples/form/native/sign-up.light.png +0 -0
- package/registry/examples/form/native/upload.dark.png +0 -0
- package/registry/examples/form/native/upload.light.png +0 -0
- package/registry/examples/radio-group/buttons.d.ts +4 -0
- package/registry/examples/radio-group/buttons.js +17 -0
- package/registry/examples/radio-group/buttons.tsx +21 -0
- package/registry/examples/radio-group/cards.js +1 -1
- package/registry/examples/radio-group/cards.tsx +2 -2
- package/registry/examples/radio-group/native/buttons.d.ts +4 -0
- package/registry/examples/radio-group/native/buttons.dark.png +0 -0
- package/registry/examples/radio-group/native/buttons.js +25 -0
- package/registry/examples/radio-group/native/buttons.light.png +0 -0
- package/registry/examples/radio-group/native/buttons.tsx +21 -0
- package/registry/examples/radio-group/native/cards.d.ts +4 -0
- package/registry/examples/radio-group/native/cards.dark.png +0 -0
- package/registry/examples/radio-group/native/cards.js +23 -0
- package/registry/examples/radio-group/native/cards.light.png +0 -0
- package/registry/examples/radio-group/native/cards.tsx +19 -0
- package/registry/examples/radio-group/native/list.d.ts +4 -0
- package/registry/examples/radio-group/native/list.dark.png +0 -0
- package/registry/examples/radio-group/native/list.js +24 -0
- package/registry/examples/radio-group/native/list.light.png +0 -0
- package/registry/examples/radio-group/native/list.tsx +20 -0
- package/registry/examples/radio-group/native/segmented.d.ts +4 -0
- package/registry/examples/radio-group/native/segmented.dark.png +0 -0
- package/registry/examples/radio-group/native/segmented.js +24 -0
- package/registry/examples/radio-group/native/segmented.light.png +0 -0
- package/registry/examples/radio-group/native/segmented.tsx +20 -0
- package/registry/examples/radio-group/segmented.d.ts +4 -0
- package/registry/examples/radio-group/segmented.js +15 -0
- package/registry/examples/radio-group/segmented.tsx +12 -0
- package/registry/examples/slider/floating.d.ts +4 -0
- package/registry/examples/slider/floating.js +11 -0
- package/registry/examples/slider/floating.tsx +12 -0
- package/registry/examples/slider/native/default.d.ts +4 -0
- package/registry/examples/slider/native/default.dark.png +0 -0
- package/registry/examples/slider/native/default.js +14 -0
- package/registry/examples/slider/native/default.light.png +0 -0
- package/registry/examples/slider/native/default.tsx +13 -0
- package/registry/examples/slider/native/range.d.ts +4 -0
- package/registry/examples/slider/native/range.dark.png +0 -0
- package/registry/examples/slider/native/range.js +12 -0
- package/registry/examples/slider/native/range.light.png +0 -0
- package/registry/examples/slider/native/range.tsx +11 -0
- package/registry/examples/slider/native/stepped.d.ts +4 -0
- package/registry/examples/slider/native/stepped.dark.png +0 -0
- package/registry/examples/slider/native/stepped.js +28 -0
- package/registry/examples/slider/native/stepped.light.png +0 -0
- package/registry/examples/slider/native/stepped.tsx +24 -0
- package/registry/examples/slider/native/vertical.d.ts +4 -0
- package/registry/examples/slider/native/vertical.dark.png +0 -0
- package/registry/examples/slider/native/vertical.js +16 -0
- package/registry/examples/slider/native/vertical.light.png +0 -0
- package/registry/examples/slider/native/vertical.tsx +13 -0
- package/registry/examples/slider/price-range.d.ts +4 -0
- package/registry/examples/slider/price-range.js +29 -0
- package/registry/examples/slider/price-range.tsx +27 -0
- package/registry/examples/slider/stepped.d.ts +4 -0
- package/registry/examples/slider/stepped.js +28 -0
- package/registry/examples/slider/stepped.tsx +24 -0
- package/registry/examples/slider/vertical.d.ts +4 -0
- package/registry/examples/slider/vertical.js +15 -0
- package/registry/examples/slider/vertical.tsx +14 -0
- package/registry/examples/switch/native/default.d.ts +4 -0
- package/registry/examples/switch/native/default.dark.png +0 -0
- package/registry/examples/switch/native/default.js +16 -0
- package/registry/examples/switch/native/default.light.png +0 -0
- package/registry/examples/switch/native/default.tsx +13 -0
- package/registry/examples/switch/native/settings.d.ts +4 -0
- package/registry/examples/switch/native/settings.dark.png +0 -0
- package/registry/examples/switch/native/settings.js +20 -0
- package/registry/examples/switch/native/settings.light.png +0 -0
- package/registry/examples/switch/native/settings.tsx +17 -0
- package/registry/field.json +15 -3
- package/registry/form.json +250 -42
- package/registry/index.json +24 -20
- package/registry/radio-group.json +227 -15
- package/registry/slider.json +314 -13
- package/registry/switch.json +115 -3
- package/registry/tabs.json +2 -2
- package/skills/choice-controls/SKILL.md +39 -0
- package/skills/form/SKILL.md +3 -0
- package/dist/chunk-I5RVM5CW.js.map +0 -1
- package/dist/chunk-RUPRYJ45.js +0 -82
- package/dist/chunk-RUPRYJ45.js.map +0 -1
package/dist/native.d.ts
CHANGED
|
@@ -325,6 +325,71 @@ declare const Chip: typeof ChipBase & {
|
|
|
325
325
|
Group: typeof ChipGroup;
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
+
/** An option: the value stored and its words (passed translated), a line under them. */
|
|
329
|
+
type SelectOption = {
|
|
330
|
+
value: string;
|
|
331
|
+
label: string;
|
|
332
|
+
description?: string;
|
|
333
|
+
disabled?: boolean;
|
|
334
|
+
};
|
|
335
|
+
type FieldShared = {
|
|
336
|
+
/** The visible label, passed translated (the field's name). */
|
|
337
|
+
label: string;
|
|
338
|
+
/** Shown while nothing is chosen ("Choose a category"), passed translated. */
|
|
339
|
+
placeholder?: string;
|
|
340
|
+
/** A help text under the field. */
|
|
341
|
+
hint?: string;
|
|
342
|
+
/** An error under the field: a danger edge, read and announced. Replaces the hint. */
|
|
343
|
+
error?: string;
|
|
344
|
+
/** Not available. */
|
|
345
|
+
disabled?: boolean;
|
|
346
|
+
/** Called when the sheet closes (the field is left). */
|
|
347
|
+
onBlur?: () => void;
|
|
348
|
+
/** Styles merged last, on the field. */
|
|
349
|
+
style?: StyleProp<ViewStyle>;
|
|
350
|
+
};
|
|
351
|
+
type SelectProps = FieldShared & {
|
|
352
|
+
/** The choices. */
|
|
353
|
+
options: readonly SelectOption[];
|
|
354
|
+
/** The chosen value (controlled); `null` or `""` for none. */
|
|
355
|
+
value?: string | null;
|
|
356
|
+
/** The chosen value at first, uncontrolled. */
|
|
357
|
+
defaultValue?: string | null;
|
|
358
|
+
/** Called with the value picked. */
|
|
359
|
+
onValueChange?: (value: string) => void;
|
|
360
|
+
/** The sheet's title. Default: the label. */
|
|
361
|
+
sheetTitle?: string;
|
|
362
|
+
};
|
|
363
|
+
/** One choice among many — the web `<select>`: a field that opens a sheet of options; picking one closes it. */
|
|
364
|
+
declare function Select({ options, value: valueProp, defaultValue, onValueChange, sheetTitle, ...shared }: SelectProps): React.JSX.Element;
|
|
365
|
+
type ComboboxLabels = {
|
|
366
|
+
/** The search box's name and placeholder ("Search"). */
|
|
367
|
+
search: string;
|
|
368
|
+
/** While a search runs ("Searching…"). */
|
|
369
|
+
loading: string;
|
|
370
|
+
/** When nothing matches ("No results"). */
|
|
371
|
+
empty: string;
|
|
372
|
+
/** The button that closes a multiple choice ("Done"). */
|
|
373
|
+
done: string;
|
|
374
|
+
};
|
|
375
|
+
declare const comboboxLabels: ComboboxLabels;
|
|
376
|
+
type ComboboxProps = FieldShared & {
|
|
377
|
+
/** The options, filtered by what is typed. */
|
|
378
|
+
options?: readonly SelectOption[];
|
|
379
|
+
/** Fetches the options for a query (debounced 250 ms, aborted by a newer one). */
|
|
380
|
+
onSearch?: (query: string, signal: AbortSignal) => Promise<readonly SelectOption[]>;
|
|
381
|
+
/** Several values (`string[]`, checkboxes, a Done button); one by default. */
|
|
382
|
+
multiple?: boolean;
|
|
383
|
+
/** The chosen value(s) (controlled): a string, or strings with `multiple`. */
|
|
384
|
+
value?: string | readonly string[] | null;
|
|
385
|
+
/** Called with the value — or the values — chosen. */
|
|
386
|
+
onValueChange?: (value: string | string[]) => void;
|
|
387
|
+
/** The words, passed translated; English by default. */
|
|
388
|
+
labels?: Partial<ComboboxLabels>;
|
|
389
|
+
};
|
|
390
|
+
/** A choice among many, searched: a field that opens a sheet with a search box and the matching options. */
|
|
391
|
+
declare function Combobox({ options, onSearch, multiple, value, onValueChange, labels: given, ...shared }: ComboboxProps): React.JSX.Element;
|
|
392
|
+
|
|
328
393
|
type CountdownProps = {
|
|
329
394
|
/** The moment it counts down to: a Date, an ISO string or epoch milliseconds. */
|
|
330
395
|
target: Date | string | number;
|
|
@@ -554,6 +619,27 @@ type DateWheelProps = {
|
|
|
554
619
|
/** Day, month and year as three wheels in the locale's order, bounded by `min` and `max` — the web `DateWheel`. */
|
|
555
620
|
declare function DateWheel({ label, locale, value: valueProp, defaultValue, onValueChange, min, max, defaultView, hint, error, labels: given, disabled, style }: DateWheelProps): React.JSX.Element;
|
|
556
621
|
|
|
622
|
+
type SheetProps = {
|
|
623
|
+
/** Open (controlled). */
|
|
624
|
+
open: boolean;
|
|
625
|
+
/** Called to close it: the scrim pressed, the back button, a choice made. */
|
|
626
|
+
onOpenChange: (open: boolean) => void;
|
|
627
|
+
/** The title at the top of the sheet (its accessible name), passed translated. */
|
|
628
|
+
title?: string;
|
|
629
|
+
/** The name of the close action read by screen readers ("Close"), passed translated. */
|
|
630
|
+
closeLabel?: string;
|
|
631
|
+
/** The content: a list, details, a form. */
|
|
632
|
+
children: React.ReactNode;
|
|
633
|
+
/** Styles merged last, on the sheet. */
|
|
634
|
+
style?: StyleProp<ViewStyle>;
|
|
635
|
+
};
|
|
636
|
+
/**
|
|
637
|
+
* A bottom sheet: it rises over a dimmed screen, its grip on top, the scrim closes it. The web `Dialog` on a phone —
|
|
638
|
+
* a choice (`Select`, `Combobox`), the details of a pin on a map, a short form. React Native's `Modal`: focus stays
|
|
639
|
+
* inside, the back button closes it. Rises with the theme's ease; still under reduced motion.
|
|
640
|
+
*/
|
|
641
|
+
declare function Sheet({ open, onOpenChange, title, closeLabel, children, style }: SheetProps): React.JSX.Element;
|
|
642
|
+
|
|
557
643
|
type EmptyStateProps = Omit<ViewProps, "children"> & {
|
|
558
644
|
/** A decorative icon (hidden from screen readers). */
|
|
559
645
|
icon?: React.ReactNode;
|
|
@@ -843,6 +929,44 @@ type ProgressProps = {
|
|
|
843
929
|
*/
|
|
844
930
|
declare function Progress({ variant, size, value, max, label, valueText, children, style }: ProgressProps): React.JSX.Element;
|
|
845
931
|
|
|
932
|
+
/** A choice: the value stored and its words (passed translated), a line under them, a second line on a key. */
|
|
933
|
+
type RadioOption = {
|
|
934
|
+
value: string;
|
|
935
|
+
label: string;
|
|
936
|
+
description?: string;
|
|
937
|
+
hint?: string;
|
|
938
|
+
disabled?: boolean;
|
|
939
|
+
};
|
|
940
|
+
type RadioGroupProps = {
|
|
941
|
+
/** The group's accessible name (the question), passed translated. */
|
|
942
|
+
label: string;
|
|
943
|
+
/** The choices, all visible (two to five, a few more for `buttons`). */
|
|
944
|
+
options: readonly RadioOption[];
|
|
945
|
+
/** The chosen value (controlled). */
|
|
946
|
+
value?: string | null;
|
|
947
|
+
/** The chosen value at first, uncontrolled. */
|
|
948
|
+
defaultValue?: string | null;
|
|
949
|
+
/** Called with the value pressed. */
|
|
950
|
+
onValueChange?: (value: string) => void;
|
|
951
|
+
/**
|
|
952
|
+
* `list` (a dot and its words, 44-pt rows), `cards` (whole cards, the check lit), `buttons` (tactile keys that press
|
|
953
|
+
* in: an `impact` haptic), `segmented` (a track of equal segments).
|
|
954
|
+
* @default "list"
|
|
955
|
+
*/
|
|
956
|
+
variant?: "list" | "cards" | "buttons" | "segmented";
|
|
957
|
+
/** An error under the group, read and announced. */
|
|
958
|
+
error?: string;
|
|
959
|
+
/** Not available. */
|
|
960
|
+
disabled?: boolean;
|
|
961
|
+
/** Styles merged last. */
|
|
962
|
+
style?: StyleProp<ViewStyle>;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* One choice among a few, all visible — the web `RadioGroup` in its four looks. A radio group for VoiceOver and
|
|
966
|
+
* TalkBack; each press plays a haptic (`selection`, `impact` for a tactile key) when the app passes `haptics`.
|
|
967
|
+
*/
|
|
968
|
+
declare function RadioGroup({ label, options, value: valueProp, defaultValue, onValueChange, variant, error, disabled, style }: RadioGroupProps): React.JSX.Element;
|
|
969
|
+
|
|
846
970
|
type SearchFieldProps = Omit<TextInputProps, "value" | "defaultValue" | "onChangeText" | "style" | "onSubmitEditing"> & {
|
|
847
971
|
/** The accessible name of the input ("Search videos"), passed translated. */
|
|
848
972
|
label: string;
|
|
@@ -909,6 +1033,55 @@ type SkeletonProps = {
|
|
|
909
1033
|
/** A pulsing placeholder the size of what is loading — hidden from screen readers; still when the system reduces motion. */
|
|
910
1034
|
declare function Skeleton({ shape, width, height, style, testID }: SkeletonProps): React.JSX.Element;
|
|
911
1035
|
|
|
1036
|
+
type SliderValue = number | [number, number];
|
|
1037
|
+
type SliderProps<V extends SliderValue = number> = {
|
|
1038
|
+
/** The accessible name of the thumb (or of both thumbs of a range), passed translated. */
|
|
1039
|
+
label: string;
|
|
1040
|
+
/** For a range: each thumb's own name (["Minimum", "Maximum"]), passed translated. */
|
|
1041
|
+
thumbLabels?: [string, string];
|
|
1042
|
+
/** One number (a thumb) or two (a range), controlled. */
|
|
1043
|
+
value?: V;
|
|
1044
|
+
/** The value at first, uncontrolled. */
|
|
1045
|
+
defaultValue?: V;
|
|
1046
|
+
/** Called on every step the thumb passes. */
|
|
1047
|
+
onValueChange?: (value: V) => void;
|
|
1048
|
+
/** Called once the thumb is released (or an accessibility action is done). */
|
|
1049
|
+
onValueCommit?: (value: V) => void;
|
|
1050
|
+
/** The lowest value. Default 0. */
|
|
1051
|
+
min?: number;
|
|
1052
|
+
/** The highest value. Default 100. */
|
|
1053
|
+
max?: number;
|
|
1054
|
+
/** The step. Default 1. */
|
|
1055
|
+
step?: number;
|
|
1056
|
+
/** The value as words (read, and shown): "1.5×", "15 %". */
|
|
1057
|
+
formatValue?: (value: number) => string;
|
|
1058
|
+
/** Shows the label and the value above the track. */
|
|
1059
|
+
showLabel?: boolean;
|
|
1060
|
+
/** Shows the value floating over the thumb while it is dragged (`"always"`: at all times). */
|
|
1061
|
+
floatingValue?: boolean | "always";
|
|
1062
|
+
/** A graduation at every step (`true`, up to 40) or at the values given. */
|
|
1063
|
+
ticks?: boolean | readonly number[];
|
|
1064
|
+
/** Words under the track at some values. Horizontal only. */
|
|
1065
|
+
marks?: readonly {
|
|
1066
|
+
value: number;
|
|
1067
|
+
label: string;
|
|
1068
|
+
}[];
|
|
1069
|
+
/** `gradient` (accent → accent-2, default) or `solid`. */
|
|
1070
|
+
tone?: "gradient" | "solid";
|
|
1071
|
+
/** `horizontal` (default) or `vertical` (give the slider a height). */
|
|
1072
|
+
orientation?: "horizontal" | "vertical";
|
|
1073
|
+
/** Not available. */
|
|
1074
|
+
disabled?: boolean;
|
|
1075
|
+
/** Styles merged last. */
|
|
1076
|
+
style?: StyleProp<ViewStyle>;
|
|
1077
|
+
};
|
|
1078
|
+
/**
|
|
1079
|
+
* A slider for React Native — the web `Slider`: one value or a range, drawn by the theme, dragged anywhere on the track.
|
|
1080
|
+
* Each step the thumb passes ticks under the thumb (`selection` haptic); for VoiceOver and TalkBack each thumb is an
|
|
1081
|
+
* adjustable control (swipe up or down by a step), its value read as words.
|
|
1082
|
+
*/
|
|
1083
|
+
declare function Slider<V extends SliderValue = number>({ label, thumbLabels, value, defaultValue, onValueChange, onValueCommit, min, max, step, formatValue, showLabel, floatingValue, ticks, marks, tone, orientation, disabled, style, }: SliderProps<V>): React.JSX.Element;
|
|
1084
|
+
|
|
912
1085
|
type SpinnerProps = Omit<ActivityIndicatorProps, "size" | "color"> & {
|
|
913
1086
|
/** The accessible name of the wait, e.g. "Loading" — passed translated. */
|
|
914
1087
|
label: string;
|
|
@@ -918,6 +1091,35 @@ type SpinnerProps = Omit<ActivityIndicatorProps, "size" | "color"> & {
|
|
|
918
1091
|
/** An indeterminate wait: the platform's activity indicator in the accent, named by `label`. */
|
|
919
1092
|
declare function Spinner({ label, size, ...props }: SpinnerProps): React.JSX.Element;
|
|
920
1093
|
|
|
1094
|
+
type SwitchProps = {
|
|
1095
|
+
/** The accessible name ("Push notifications"), passed translated — also the visible words when `children` is not given and `showLabel` is set. */
|
|
1096
|
+
label: string;
|
|
1097
|
+
/** On (controlled). */
|
|
1098
|
+
checked?: boolean;
|
|
1099
|
+
/** On at first, uncontrolled. */
|
|
1100
|
+
defaultChecked?: boolean;
|
|
1101
|
+
/** Called with the new state. */
|
|
1102
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1103
|
+
/** A line under the label, read with the switch ("Auctions you follow, new messages"). Shown with `showLabel`. */
|
|
1104
|
+
description?: string;
|
|
1105
|
+
/** Draws the label (and the description) beside the switch, the whole row pressable: a settings row. */
|
|
1106
|
+
showLabel?: boolean;
|
|
1107
|
+
/** sm · md (default). */
|
|
1108
|
+
size?: "sm" | "md";
|
|
1109
|
+
/** An error under the row, read and announced. */
|
|
1110
|
+
error?: string;
|
|
1111
|
+
/** Not available. */
|
|
1112
|
+
disabled?: boolean;
|
|
1113
|
+
/** Styles merged last. */
|
|
1114
|
+
style?: StyleProp<ViewStyle>;
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* An on/off switch for React Native — the web `Switch`, drawn by the theme (the accent when on, the material's knob),
|
|
1118
|
+
* not the system's: the same look on iOS and Android, a `selection` haptic when it flips. `showLabel` makes it a
|
|
1119
|
+
* settings row (the label and its description beside it, all pressable).
|
|
1120
|
+
*/
|
|
1121
|
+
declare function Switch({ label, checked, defaultChecked, onCheckedChange, description, showLabel, size, error, disabled, style }: SwitchProps): React.JSX.Element;
|
|
1122
|
+
|
|
921
1123
|
type ThemeName = "dark" | "light";
|
|
922
1124
|
/** The colour roles of one theme (the @krizaka/tokens roles). */
|
|
923
1125
|
type Theme = {
|
|
@@ -1117,11 +1319,13 @@ type WheelPickerProps = {
|
|
|
1117
1319
|
visible?: 3 | 5 | 7;
|
|
1118
1320
|
/** Marks the group invalid (a danger edge). */
|
|
1119
1321
|
invalid?: boolean;
|
|
1322
|
+
/** Nothing is chosen yet: the values under the band stay quiet (secondary) until a wheel is turned. */
|
|
1323
|
+
unset?: boolean;
|
|
1120
1324
|
/** Styles merged last. */
|
|
1121
1325
|
style?: StyleProp<ViewStyle>;
|
|
1122
1326
|
};
|
|
1123
1327
|
/** The frame of one or several wheels: a raised surface, the lit band across them — the web `WheelPicker`. */
|
|
1124
|
-
declare function WheelPicker({ label, children, visible, invalid, style }: WheelPickerProps): React.JSX.Element;
|
|
1328
|
+
declare function WheelPicker({ label, children, visible, invalid, unset, style }: WheelPickerProps): React.JSX.Element;
|
|
1125
1329
|
/** A divider between two wheels (`:` between the hours and the minutes). */
|
|
1126
1330
|
declare function WheelDivider({ children }: {
|
|
1127
1331
|
children: string;
|
|
@@ -1162,4 +1366,4 @@ declare function YazakiaMark({ size, animated, title, neutral }: NativeMarkProps
|
|
|
1162
1366
|
*/
|
|
1163
1367
|
declare function YororisMark({ size, animated, title, neutral }: NativeMarkProps): React__default.JSX.Element;
|
|
1164
1368
|
|
|
1165
|
-
export { Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, AvatarRoot, type AvatarSize, Badge, type BadgeProps, type BadgeTone, type BrandId, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarLabels, type CalendarProps, Card, CardBody, type CardBodyProps, CardDescription, CardFooter, CardImage, type CardImageProps, CardMedia, type CardMediaProps, CardOverlay, type CardOverlayProps, CardRoot, type CardRootProps, CardTitle, Checkbox, type CheckboxProps, Chip, type ChipGroupProps, type ChipProps, type ChipSize, Countdown, type CountdownProps, type CountdownUnits, DateField, type DateFieldLabels, type DateFieldProps, type DatePart, DateWheel, type DateWheelProps, DayStrip, type DayStripProps, EmptyState, type EmptyStateProps, ErrorState, GoalGauge, type GoalGaugeProps, type HapticKind, IconButton, type IconButtonProps, KrizakaMark, LoadingState, Mascot, type MascotProps, MascotState, type MascotStateProps, type Mode, MonthPicker, type MonthPickerProps, type Motion, type NativeMarkProps, OrazakaMark, OrochiaMark, Pagination, type PaginationLabels, type PaginationProps, Phoenix, type PhoenixProps, ProductMark, ProfileCard, type ProfileCardProps, type ProfileStat, Progress, type ProgressProps, type Radius, SearchField, type SearchFieldProps, Segmented, type SegmentedOption, type SegmentedProps, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, SuccessState, TextField, type TextFieldProps, type Theme, type ThemeContextValue, type ThemeFonts, type ThemeName, type ThemeOverrides, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerLabels, type TimePickerProps, type TimeValue, type ToastItem, type ToastOptions, type ToastTone, Toaster, type ToasterProps, Txt, type TxtProps, type TxtTone, type TxtVariant, WelcomeState, Wheel, WheelDivider, type WheelOption, WheelPicker, type WheelPickerProps, type WheelProps, YazakiaMark, YororisMark, addDays, addMonths, ageOn, alpha, calendarLabels, composeDate, dateFieldLabels, datePartsOrder, daysInMonth, formatTime, isRealDate, latestBirthDate, monthNames, splitDuration, textStyles, timeSlots, timeToMinutes, toast, todayIso, useCountdown, useReducedMotion, useTheme, uses12Hours };
|
|
1369
|
+
export { Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, AvatarRoot, type AvatarSize, Badge, type BadgeProps, type BadgeTone, type BrandId, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarLabels, type CalendarProps, Card, CardBody, type CardBodyProps, CardDescription, CardFooter, CardImage, type CardImageProps, CardMedia, type CardMediaProps, CardOverlay, type CardOverlayProps, CardRoot, type CardRootProps, CardTitle, Checkbox, type CheckboxProps, Chip, type ChipGroupProps, type ChipProps, type ChipSize, Combobox, type ComboboxLabels, type ComboboxProps, Countdown, type CountdownProps, type CountdownUnits, DateField, type DateFieldLabels, type DateFieldProps, type DatePart, DateWheel, type DateWheelProps, DayStrip, type DayStripProps, EmptyState, type EmptyStateProps, ErrorState, GoalGauge, type GoalGaugeProps, type HapticKind, IconButton, type IconButtonProps, KrizakaMark, LoadingState, Mascot, type MascotProps, MascotState, type MascotStateProps, type Mode, MonthPicker, type MonthPickerProps, type Motion, type NativeMarkProps, OrazakaMark, OrochiaMark, Pagination, type PaginationLabels, type PaginationProps, Phoenix, type PhoenixProps, ProductMark, ProfileCard, type ProfileCardProps, type ProfileStat, Progress, type ProgressProps, RadioGroup, type RadioGroupProps, type RadioOption, type Radius, SearchField, type SearchFieldProps, Segmented, type SegmentedOption, type SegmentedProps, Select, type SelectOption, type SelectProps, Sheet, type SheetProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderValue, Spinner, type SpinnerProps, SuccessState, Switch, type SwitchProps, TextField, type TextFieldProps, type Theme, type ThemeContextValue, type ThemeFonts, type ThemeName, type ThemeOverrides, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerLabels, type TimePickerProps, type TimeValue, type ToastItem, type ToastOptions, type ToastTone, Toaster, type ToasterProps, Txt, type TxtProps, type TxtTone, type TxtVariant, WelcomeState, Wheel, WheelDivider, type WheelOption, WheelPicker, type WheelPickerProps, type WheelProps, YazakiaMark, YororisMark, addDays, addMonths, ageOn, alpha, calendarLabels, comboboxLabels, composeDate, dateFieldLabels, datePartsOrder, daysInMonth, formatTime, isRealDate, latestBirthDate, monthNames, splitDuration, textStyles, timeSlots, timeToMinutes, toast, todayIso, useCountdown, useReducedMotion, useTheme, uses12Hours };
|