@dloizides/ui-forms 1.46.0 → 1.48.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/CHANGELOG.md +13 -0
- package/dist/index.d.mts +35 -6
- package/dist/index.d.ts +35 -6
- package/dist/index.js +546 -335
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +363 -153
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.48.0] - 2026-11-23
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `ChipSelector` `size="compact"`: a 28 px pill (padding 4/10, label 12/600, line height 18) drawn inside a transparent hit box of at least 44x44, on web as well as native (`hitSlop` is native-only on RN-web). Default size unchanged.
|
|
7
|
+
- `ChipSelector` `selectedFill`: background colour of a selected chip, passed by the app from its tokens; a selected chip then shows a leading check mark (decorative, `aria-hidden`, testID `<chip testID>-check`) and theme text ink. Works on both variants; `aria-checked` / `aria-pressed` unchanged. Unset keeps the current look.
|
|
8
|
+
- `ChipSize` type export.
|
|
9
|
+
|
|
10
|
+
## [1.47.0] - 2026-11-23
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `labelVariant="caption"` (12 px, 600, uppercase, muted ink) on `Field`, `SelectField` and `FormField`.
|
|
14
|
+
- `MultiSelectField`: a labelled select holding several values as removable chips inside the select box.
|
|
15
|
+
|
|
3
16
|
## [1.46.0] - 2026-11-23
|
|
4
17
|
|
|
5
18
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -56,8 +56,8 @@ type FieldSpacing = 'stack' | 'gap';
|
|
|
56
56
|
* the metrics `@dloizides/ui-tables` forked into its private `FieldShell` because
|
|
57
57
|
* `Field` hard-coded the `field` voice and offered no way out.
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
59
|
+
* Pick the voice from the SURFACE, not the component: every label on one surface uses one voice,
|
|
60
|
+
* and voices are never mixed within a single row.
|
|
61
61
|
*
|
|
62
62
|
* Why a plain string union and not a `const enum`: this type crosses the package boundary into
|
|
63
63
|
* consumers' `.d.ts`, and a cross-boundary `const enum` breaks `isolatedModules` / Babel-only
|
|
@@ -65,7 +65,7 @@ type FieldSpacing = 'stack' | 'gap';
|
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
67
|
/** Which of the two contract voices a field label speaks. */
|
|
68
|
-
type FieldLabelVariant = 'field' | 'control';
|
|
68
|
+
type FieldLabelVariant = 'field' | 'control' | 'caption';
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Field — the generic "label over a control, hint + error under it" wrapper.
|
|
@@ -509,6 +509,7 @@ interface FormFieldProps extends Omit<TextInputProps, 'style'> {
|
|
|
509
509
|
inputRef?: React.Ref<TextInput>;
|
|
510
510
|
/** Grows a multi-line box to fit its text, so nothing scrolls inside it; never fewer rows than this. */
|
|
511
511
|
autoGrowMinRows?: number;
|
|
512
|
+
labelVariant?: FieldLabelVariant;
|
|
512
513
|
}
|
|
513
514
|
declare const FormField: ({ autoGrowMinRows, ...fieldProps }: FormFieldProps) => React.ReactElement;
|
|
514
515
|
|
|
@@ -656,6 +657,9 @@ declare const enum ChipLabelWrap {
|
|
|
656
657
|
Truncate = "truncate"
|
|
657
658
|
}
|
|
658
659
|
|
|
660
|
+
/** Chip size. `default` = today's 44 px pill; `compact` = a 28 px pill inside a 44 px hit box. */
|
|
661
|
+
type ChipSize = 'default' | 'compact';
|
|
662
|
+
|
|
659
663
|
/**
|
|
660
664
|
* Public + internal types for ChipSelector. Split out of `ChipSelector.tsx` so the component, its
|
|
661
665
|
* two chip variants and the radio keyboard hook can share them without a circular import.
|
|
@@ -724,6 +728,10 @@ interface ChipSelectorProps<T> {
|
|
|
724
728
|
* stays a toggle button with `aria-pressed`.
|
|
725
729
|
*/
|
|
726
730
|
singleSelectRole?: ChipSingleSelectRole;
|
|
731
|
+
/** `compact` = a 28 px pill (padding 4/10, label 12/600) inside a 44 px hit box; defaults to `default`. */
|
|
732
|
+
size?: ChipSize;
|
|
733
|
+
/** Background of a selected chip, from the app's tokens; when set, a selected chip also shows a leading check. */
|
|
734
|
+
selectedFill?: string;
|
|
727
735
|
}
|
|
728
736
|
|
|
729
737
|
/**
|
|
@@ -746,7 +754,7 @@ interface ChipSelectorProps<T> {
|
|
|
746
754
|
* resolvers (`chipIdentity`, colours, radio key logic) in `utils/`.
|
|
747
755
|
*/
|
|
748
756
|
|
|
749
|
-
declare const ChipSelector: <T extends string | number>({ label, options, value, onChange, multiple, disabled, variant, containerStyle, spacing, required, error, testID, chipTestIDPrefix, optionAccessibilityHint, singleSelectRole, }: ChipSelectorProps<T>) => React.ReactElement;
|
|
757
|
+
declare const ChipSelector: <T extends string | number>({ label, options, value, onChange, multiple, disabled, variant, containerStyle, spacing, required, error, testID, chipTestIDPrefix, optionAccessibilityHint, singleSelectRole, size, selectedFill, }: ChipSelectorProps<T>) => React.ReactElement;
|
|
750
758
|
|
|
751
759
|
/**
|
|
752
760
|
* Reusable form switch/toggle with an optional description.
|
|
@@ -881,8 +889,29 @@ interface SelectFieldProps {
|
|
|
881
889
|
options: readonly ControlOption[];
|
|
882
890
|
onChange: (value: string) => void;
|
|
883
891
|
testID: string;
|
|
892
|
+
labelVariant?: FieldLabelVariant;
|
|
893
|
+
}
|
|
894
|
+
declare const SelectField: ({ label, accessibilityHint, value, options, onChange, testID, labelVariant, }: SelectFieldProps) => React.ReactElement;
|
|
895
|
+
|
|
896
|
+
interface MultiSelectChipLabels {
|
|
897
|
+
removeLabel: (optionLabel: string) => string;
|
|
898
|
+
removeHint: string;
|
|
899
|
+
}
|
|
900
|
+
interface MultiSelectFieldProps {
|
|
901
|
+
label: string;
|
|
902
|
+
accessibilityHint: string;
|
|
903
|
+
values: readonly string[];
|
|
904
|
+
options: readonly ControlOption[];
|
|
905
|
+
onChange: (values: string[]) => void;
|
|
906
|
+
placeholder: string;
|
|
907
|
+
chipLabels: MultiSelectChipLabels;
|
|
908
|
+
testID: string;
|
|
909
|
+
labelVariant?: FieldLabelVariant;
|
|
910
|
+
hint?: string;
|
|
911
|
+
error?: string;
|
|
884
912
|
}
|
|
885
|
-
|
|
913
|
+
/** A labelled select that holds several values, shown as removable chips inside the select box. */
|
|
914
|
+
declare const MultiSelectField: ({ labelVariant, hint, error, ...boxProps }: MultiSelectFieldProps) => React.ReactElement;
|
|
886
915
|
|
|
887
916
|
interface FieldControlWiring {
|
|
888
917
|
id?: string;
|
|
@@ -1961,4 +1990,4 @@ declare function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLa
|
|
|
1961
1990
|
declare function changedRules(previous: readonly PasswordRuleState[], next: readonly PasswordRuleState[]): PasswordRuleState[];
|
|
1962
1991
|
declare function ruleAnnouncement(changed: readonly PasswordRuleState[], labels: Pick<PasswordFieldLabels, 'met' | 'unmet'>): string;
|
|
1963
1992
|
|
|
1964
|
-
export { ActionBar, type ActionBarProps, AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type AssignedServerErrors, type AutoGrowRows, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, type ChecklistItem, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipVariant, type CodeFormatter, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_DATE_PICKER_LABELS, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateDisplay, DateField, type DateFieldProps, DateInput, type DateInputProps, type DatePickerLabels, DatePickerProvider, type DatePickerProviderProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DecisionChecklist, type DecisionError, type DecisionOutcome, DecisionPanel, type DecisionPanelLabels, type DecisionPanelProps, type DecisionPanelVariant, type DecisionSubmission, type DecisionTone, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, FileInput, type FileInputProps, FixBar, type FixBarProps, type FlagShape, FlagShapeKind, type Focusable, type FocusableRefs, FormActions, type FormActionsProps, FormCell, type FormCellProps, FormCheckbox, type FormCheckboxProps, FormField, type FormFieldProps, FormGrid, type FormGridProps, FormSection, type FormSectionProps, FormStack, type FormStackProps, FormStatusLine, type FormStatusLineProps, FormSwitch, type FormSwitchProps, GatedChecklist, type GatedChecklistProps, type GroupSelection, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, type IbanDraft, IbanInput, type IbanInputProps, IbanRejection, type IbanRejectionLabels, type IbanVerdict, InlineFieldRow, type InlineFieldRowLayout, type InlineFieldRowProps, LINE_ITEMS_WIDE_MIN_WIDTH, type LineItemCell, type LineItemColumn, LineItems, type LineItemsLabels, type LineItemsProps, PHONE_MAX_WIDTH, PasswordField, type PasswordFieldColors, type PasswordFieldLabels, type PasswordFieldProps, type PasswordRuleState, PasswordRules, PasswordRulesDisplay, type PasswordRulesProps, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, RadioList, type RadioListProps, type RadioOption, type RadioRowIdentity, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, RevealToggle, type RevealToggleProps, type RuleColors, RuleTone, SEGMENT_BESIDE_FIELD, SEGMENT_BESIDE_TEXT_INPUT, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, type ServerFieldErrors, type StepNeighbours, StepperNav, type StepperNavLabels, type StepperNavProps, type StepperStep, StepperTabs, type StepperTabsProps, type ThemedInput, ThemedTextInput, type ThemedTextInputProps, TypeaheadControl, type TypeaheadControlProps, type TypeaheadSearch, type TypeaheadSearchProps, UploadWithLinkField, type UploadWithLinkFieldProps, type UploadWithLinkLabels, type UseServerFieldErrorsOptions, type UseThemedInputOptions, actionBarPosition, assignServerErrors, buildSearchSelectSections, canRemoveLine, changedRules, controlStyles, countryFieldOptions, countryFlag, countryOptions, defaultDecisionVariant, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isChecklistComplete, isFallbackFlag, isFixBarVisible, isLineItemsWide, isOutside, isUnmatched, isWideFormLayout, leadFirst, lineItemColumnFlex, lineNumberOf, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
|
|
1993
|
+
export { ActionBar, type ActionBarProps, AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type AssignedServerErrors, type AutoGrowRows, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, type ChecklistItem, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipSize, type ChipVariant, type CodeFormatter, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_DATE_PICKER_LABELS, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateDisplay, DateField, type DateFieldProps, DateInput, type DateInputProps, type DatePickerLabels, DatePickerProvider, type DatePickerProviderProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DecisionChecklist, type DecisionError, type DecisionOutcome, DecisionPanel, type DecisionPanelLabels, type DecisionPanelProps, type DecisionPanelVariant, type DecisionSubmission, type DecisionTone, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, FileInput, type FileInputProps, FixBar, type FixBarProps, type FlagShape, FlagShapeKind, type Focusable, type FocusableRefs, FormActions, type FormActionsProps, FormCell, type FormCellProps, FormCheckbox, type FormCheckboxProps, FormField, type FormFieldProps, FormGrid, type FormGridProps, FormSection, type FormSectionProps, FormStack, type FormStackProps, FormStatusLine, type FormStatusLineProps, FormSwitch, type FormSwitchProps, GatedChecklist, type GatedChecklistProps, type GroupSelection, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, type IbanDraft, IbanInput, type IbanInputProps, IbanRejection, type IbanRejectionLabels, type IbanVerdict, InlineFieldRow, type InlineFieldRowLayout, type InlineFieldRowProps, LINE_ITEMS_WIDE_MIN_WIDTH, type LineItemCell, type LineItemColumn, LineItems, type LineItemsLabels, type LineItemsProps, type MultiSelectChipLabels, MultiSelectField, type MultiSelectFieldProps, PHONE_MAX_WIDTH, PasswordField, type PasswordFieldColors, type PasswordFieldLabels, type PasswordFieldProps, type PasswordRuleState, PasswordRules, PasswordRulesDisplay, type PasswordRulesProps, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, RadioList, type RadioListProps, type RadioOption, type RadioRowIdentity, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, RevealToggle, type RevealToggleProps, type RuleColors, RuleTone, SEGMENT_BESIDE_FIELD, SEGMENT_BESIDE_TEXT_INPUT, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, type ServerFieldErrors, type StepNeighbours, StepperNav, type StepperNavLabels, type StepperNavProps, type StepperStep, StepperTabs, type StepperTabsProps, type ThemedInput, ThemedTextInput, type ThemedTextInputProps, TypeaheadControl, type TypeaheadControlProps, type TypeaheadSearch, type TypeaheadSearchProps, UploadWithLinkField, type UploadWithLinkFieldProps, type UploadWithLinkLabels, type UseServerFieldErrorsOptions, type UseThemedInputOptions, actionBarPosition, assignServerErrors, buildSearchSelectSections, canRemoveLine, changedRules, controlStyles, countryFieldOptions, countryFlag, countryOptions, defaultDecisionVariant, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isChecklistComplete, isFallbackFlag, isFixBarVisible, isLineItemsWide, isOutside, isUnmatched, isWideFormLayout, leadFirst, lineItemColumnFlex, lineNumberOf, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
|
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,8 @@ type FieldSpacing = 'stack' | 'gap';
|
|
|
56
56
|
* the metrics `@dloizides/ui-tables` forked into its private `FieldShell` because
|
|
57
57
|
* `Field` hard-coded the `field` voice and offered no way out.
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
59
|
+
* Pick the voice from the SURFACE, not the component: every label on one surface uses one voice,
|
|
60
|
+
* and voices are never mixed within a single row.
|
|
61
61
|
*
|
|
62
62
|
* Why a plain string union and not a `const enum`: this type crosses the package boundary into
|
|
63
63
|
* consumers' `.d.ts`, and a cross-boundary `const enum` breaks `isolatedModules` / Babel-only
|
|
@@ -65,7 +65,7 @@ type FieldSpacing = 'stack' | 'gap';
|
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
67
|
/** Which of the two contract voices a field label speaks. */
|
|
68
|
-
type FieldLabelVariant = 'field' | 'control';
|
|
68
|
+
type FieldLabelVariant = 'field' | 'control' | 'caption';
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Field — the generic "label over a control, hint + error under it" wrapper.
|
|
@@ -509,6 +509,7 @@ interface FormFieldProps extends Omit<TextInputProps, 'style'> {
|
|
|
509
509
|
inputRef?: React.Ref<TextInput>;
|
|
510
510
|
/** Grows a multi-line box to fit its text, so nothing scrolls inside it; never fewer rows than this. */
|
|
511
511
|
autoGrowMinRows?: number;
|
|
512
|
+
labelVariant?: FieldLabelVariant;
|
|
512
513
|
}
|
|
513
514
|
declare const FormField: ({ autoGrowMinRows, ...fieldProps }: FormFieldProps) => React.ReactElement;
|
|
514
515
|
|
|
@@ -656,6 +657,9 @@ declare const enum ChipLabelWrap {
|
|
|
656
657
|
Truncate = "truncate"
|
|
657
658
|
}
|
|
658
659
|
|
|
660
|
+
/** Chip size. `default` = today's 44 px pill; `compact` = a 28 px pill inside a 44 px hit box. */
|
|
661
|
+
type ChipSize = 'default' | 'compact';
|
|
662
|
+
|
|
659
663
|
/**
|
|
660
664
|
* Public + internal types for ChipSelector. Split out of `ChipSelector.tsx` so the component, its
|
|
661
665
|
* two chip variants and the radio keyboard hook can share them without a circular import.
|
|
@@ -724,6 +728,10 @@ interface ChipSelectorProps<T> {
|
|
|
724
728
|
* stays a toggle button with `aria-pressed`.
|
|
725
729
|
*/
|
|
726
730
|
singleSelectRole?: ChipSingleSelectRole;
|
|
731
|
+
/** `compact` = a 28 px pill (padding 4/10, label 12/600) inside a 44 px hit box; defaults to `default`. */
|
|
732
|
+
size?: ChipSize;
|
|
733
|
+
/** Background of a selected chip, from the app's tokens; when set, a selected chip also shows a leading check. */
|
|
734
|
+
selectedFill?: string;
|
|
727
735
|
}
|
|
728
736
|
|
|
729
737
|
/**
|
|
@@ -746,7 +754,7 @@ interface ChipSelectorProps<T> {
|
|
|
746
754
|
* resolvers (`chipIdentity`, colours, radio key logic) in `utils/`.
|
|
747
755
|
*/
|
|
748
756
|
|
|
749
|
-
declare const ChipSelector: <T extends string | number>({ label, options, value, onChange, multiple, disabled, variant, containerStyle, spacing, required, error, testID, chipTestIDPrefix, optionAccessibilityHint, singleSelectRole, }: ChipSelectorProps<T>) => React.ReactElement;
|
|
757
|
+
declare const ChipSelector: <T extends string | number>({ label, options, value, onChange, multiple, disabled, variant, containerStyle, spacing, required, error, testID, chipTestIDPrefix, optionAccessibilityHint, singleSelectRole, size, selectedFill, }: ChipSelectorProps<T>) => React.ReactElement;
|
|
750
758
|
|
|
751
759
|
/**
|
|
752
760
|
* Reusable form switch/toggle with an optional description.
|
|
@@ -881,8 +889,29 @@ interface SelectFieldProps {
|
|
|
881
889
|
options: readonly ControlOption[];
|
|
882
890
|
onChange: (value: string) => void;
|
|
883
891
|
testID: string;
|
|
892
|
+
labelVariant?: FieldLabelVariant;
|
|
893
|
+
}
|
|
894
|
+
declare const SelectField: ({ label, accessibilityHint, value, options, onChange, testID, labelVariant, }: SelectFieldProps) => React.ReactElement;
|
|
895
|
+
|
|
896
|
+
interface MultiSelectChipLabels {
|
|
897
|
+
removeLabel: (optionLabel: string) => string;
|
|
898
|
+
removeHint: string;
|
|
899
|
+
}
|
|
900
|
+
interface MultiSelectFieldProps {
|
|
901
|
+
label: string;
|
|
902
|
+
accessibilityHint: string;
|
|
903
|
+
values: readonly string[];
|
|
904
|
+
options: readonly ControlOption[];
|
|
905
|
+
onChange: (values: string[]) => void;
|
|
906
|
+
placeholder: string;
|
|
907
|
+
chipLabels: MultiSelectChipLabels;
|
|
908
|
+
testID: string;
|
|
909
|
+
labelVariant?: FieldLabelVariant;
|
|
910
|
+
hint?: string;
|
|
911
|
+
error?: string;
|
|
884
912
|
}
|
|
885
|
-
|
|
913
|
+
/** A labelled select that holds several values, shown as removable chips inside the select box. */
|
|
914
|
+
declare const MultiSelectField: ({ labelVariant, hint, error, ...boxProps }: MultiSelectFieldProps) => React.ReactElement;
|
|
886
915
|
|
|
887
916
|
interface FieldControlWiring {
|
|
888
917
|
id?: string;
|
|
@@ -1961,4 +1990,4 @@ declare function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLa
|
|
|
1961
1990
|
declare function changedRules(previous: readonly PasswordRuleState[], next: readonly PasswordRuleState[]): PasswordRuleState[];
|
|
1962
1991
|
declare function ruleAnnouncement(changed: readonly PasswordRuleState[], labels: Pick<PasswordFieldLabels, 'met' | 'unmet'>): string;
|
|
1963
1992
|
|
|
1964
|
-
export { ActionBar, type ActionBarProps, AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type AssignedServerErrors, type AutoGrowRows, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, type ChecklistItem, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipVariant, type CodeFormatter, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_DATE_PICKER_LABELS, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateDisplay, DateField, type DateFieldProps, DateInput, type DateInputProps, type DatePickerLabels, DatePickerProvider, type DatePickerProviderProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DecisionChecklist, type DecisionError, type DecisionOutcome, DecisionPanel, type DecisionPanelLabels, type DecisionPanelProps, type DecisionPanelVariant, type DecisionSubmission, type DecisionTone, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, FileInput, type FileInputProps, FixBar, type FixBarProps, type FlagShape, FlagShapeKind, type Focusable, type FocusableRefs, FormActions, type FormActionsProps, FormCell, type FormCellProps, FormCheckbox, type FormCheckboxProps, FormField, type FormFieldProps, FormGrid, type FormGridProps, FormSection, type FormSectionProps, FormStack, type FormStackProps, FormStatusLine, type FormStatusLineProps, FormSwitch, type FormSwitchProps, GatedChecklist, type GatedChecklistProps, type GroupSelection, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, type IbanDraft, IbanInput, type IbanInputProps, IbanRejection, type IbanRejectionLabels, type IbanVerdict, InlineFieldRow, type InlineFieldRowLayout, type InlineFieldRowProps, LINE_ITEMS_WIDE_MIN_WIDTH, type LineItemCell, type LineItemColumn, LineItems, type LineItemsLabels, type LineItemsProps, PHONE_MAX_WIDTH, PasswordField, type PasswordFieldColors, type PasswordFieldLabels, type PasswordFieldProps, type PasswordRuleState, PasswordRules, PasswordRulesDisplay, type PasswordRulesProps, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, RadioList, type RadioListProps, type RadioOption, type RadioRowIdentity, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, RevealToggle, type RevealToggleProps, type RuleColors, RuleTone, SEGMENT_BESIDE_FIELD, SEGMENT_BESIDE_TEXT_INPUT, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, type ServerFieldErrors, type StepNeighbours, StepperNav, type StepperNavLabels, type StepperNavProps, type StepperStep, StepperTabs, type StepperTabsProps, type ThemedInput, ThemedTextInput, type ThemedTextInputProps, TypeaheadControl, type TypeaheadControlProps, type TypeaheadSearch, type TypeaheadSearchProps, UploadWithLinkField, type UploadWithLinkFieldProps, type UploadWithLinkLabels, type UseServerFieldErrorsOptions, type UseThemedInputOptions, actionBarPosition, assignServerErrors, buildSearchSelectSections, canRemoveLine, changedRules, controlStyles, countryFieldOptions, countryFlag, countryOptions, defaultDecisionVariant, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isChecklistComplete, isFallbackFlag, isFixBarVisible, isLineItemsWide, isOutside, isUnmatched, isWideFormLayout, leadFirst, lineItemColumnFlex, lineNumberOf, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
|
|
1993
|
+
export { ActionBar, type ActionBarProps, AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type AssignedServerErrors, type AutoGrowRows, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, type ChecklistItem, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipSize, type ChipVariant, type CodeFormatter, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_DATE_PICKER_LABELS, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateDisplay, DateField, type DateFieldProps, DateInput, type DateInputProps, type DatePickerLabels, DatePickerProvider, type DatePickerProviderProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DecisionChecklist, type DecisionError, type DecisionOutcome, DecisionPanel, type DecisionPanelLabels, type DecisionPanelProps, type DecisionPanelVariant, type DecisionSubmission, type DecisionTone, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, FileInput, type FileInputProps, FixBar, type FixBarProps, type FlagShape, FlagShapeKind, type Focusable, type FocusableRefs, FormActions, type FormActionsProps, FormCell, type FormCellProps, FormCheckbox, type FormCheckboxProps, FormField, type FormFieldProps, FormGrid, type FormGridProps, FormSection, type FormSectionProps, FormStack, type FormStackProps, FormStatusLine, type FormStatusLineProps, FormSwitch, type FormSwitchProps, GatedChecklist, type GatedChecklistProps, type GroupSelection, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, type IbanDraft, IbanInput, type IbanInputProps, IbanRejection, type IbanRejectionLabels, type IbanVerdict, InlineFieldRow, type InlineFieldRowLayout, type InlineFieldRowProps, LINE_ITEMS_WIDE_MIN_WIDTH, type LineItemCell, type LineItemColumn, LineItems, type LineItemsLabels, type LineItemsProps, type MultiSelectChipLabels, MultiSelectField, type MultiSelectFieldProps, PHONE_MAX_WIDTH, PasswordField, type PasswordFieldColors, type PasswordFieldLabels, type PasswordFieldProps, type PasswordRuleState, PasswordRules, PasswordRulesDisplay, type PasswordRulesProps, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, RadioList, type RadioListProps, type RadioOption, type RadioRowIdentity, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, RevealToggle, type RevealToggleProps, type RuleColors, RuleTone, SEGMENT_BESIDE_FIELD, SEGMENT_BESIDE_TEXT_INPUT, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, type ServerFieldErrors, type StepNeighbours, StepperNav, type StepperNavLabels, type StepperNavProps, type StepperStep, StepperTabs, type StepperTabsProps, type ThemedInput, ThemedTextInput, type ThemedTextInputProps, TypeaheadControl, type TypeaheadControlProps, type TypeaheadSearch, type TypeaheadSearchProps, UploadWithLinkField, type UploadWithLinkFieldProps, type UploadWithLinkLabels, type UseServerFieldErrorsOptions, type UseThemedInputOptions, actionBarPosition, assignServerErrors, buildSearchSelectSections, canRemoveLine, changedRules, controlStyles, countryFieldOptions, countryFlag, countryOptions, defaultDecisionVariant, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isChecklistComplete, isFallbackFlag, isFixBarVisible, isLineItemsWide, isOutside, isUnmatched, isWideFormLayout, leadFirst, lineItemColumnFlex, lineNumberOf, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
|