@dloizides/ui-forms 1.35.0 → 1.37.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 +536 -533
- package/dist/index.d.mts +29 -16
- package/dist/index.d.ts +29 -16
- package/dist/index.js +58 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +56 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -580,6 +580,13 @@ declare function useRecentValues(key: string, max?: number): RecentValues;
|
|
|
580
580
|
/** Default cap on remembered values (most-recent-first). */
|
|
581
581
|
declare const DEFAULT_MAX_RECENTS = 10;
|
|
582
582
|
|
|
583
|
+
/** How a long chip label fits: `None` (default) grows the chip, `Wrap` and `Truncate` cap it at its container. */
|
|
584
|
+
declare const enum ChipLabelWrap {
|
|
585
|
+
None = "none",
|
|
586
|
+
Wrap = "wrap",
|
|
587
|
+
Truncate = "truncate"
|
|
588
|
+
}
|
|
589
|
+
|
|
583
590
|
/**
|
|
584
591
|
* Public + internal types for ChipSelector. Split out of `ChipSelector.tsx` so the component, its
|
|
585
592
|
* two chip variants and the radio keyboard hook can share them without a circular import.
|
|
@@ -594,8 +601,6 @@ type ChipVariant = 'solid' | 'outline';
|
|
|
594
601
|
* survive the package boundary for consumers compiled with `isolatedModules`.
|
|
595
602
|
*/
|
|
596
603
|
type ChipSingleSelectRole = 'button' | 'radio';
|
|
597
|
-
/** How a long chip label fits: `none` (default) grows the chip, `wrap` and `truncate` cap it at its container. */
|
|
598
|
-
type ChipLabelWrap = 'none' | 'wrap' | 'truncate';
|
|
599
604
|
interface ChipOption<T> {
|
|
600
605
|
value: T;
|
|
601
606
|
label: string;
|
|
@@ -674,14 +679,6 @@ interface ChipSelectorProps<T> {
|
|
|
674
679
|
|
|
675
680
|
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;
|
|
676
681
|
|
|
677
|
-
interface ChipLabelLayout {
|
|
678
|
-
boxStyle: ViewStyle | undefined;
|
|
679
|
-
textStyle: TextStyle | undefined;
|
|
680
|
-
numberOfLines: number | undefined;
|
|
681
|
-
}
|
|
682
|
-
/** Resolves a chip's box and label layout for its `labelWrap` mode; `none` keeps today's render. */
|
|
683
|
-
declare function chipLabelLayout(labelWrap: ChipLabelWrap | undefined): ChipLabelLayout;
|
|
684
|
-
|
|
685
682
|
/**
|
|
686
683
|
* Reusable form switch/toggle with an optional description.
|
|
687
684
|
*/
|
|
@@ -1299,6 +1296,13 @@ interface SearchSelectLabels {
|
|
|
1299
1296
|
close: string;
|
|
1300
1297
|
closeHint: string;
|
|
1301
1298
|
}
|
|
1299
|
+
/** What a custom trigger draws from; the package keeps the pressable, its a11y and the focus return. */
|
|
1300
|
+
interface SearchSelectTrigger {
|
|
1301
|
+
open: boolean;
|
|
1302
|
+
selected: ControlOption | null;
|
|
1303
|
+
onPress: () => void;
|
|
1304
|
+
ref: RefObject<View | null>;
|
|
1305
|
+
}
|
|
1302
1306
|
|
|
1303
1307
|
interface SearchSelectProps {
|
|
1304
1308
|
options: readonly ControlOption[];
|
|
@@ -1311,8 +1315,9 @@ interface SearchSelectProps {
|
|
|
1311
1315
|
recentKey?: string;
|
|
1312
1316
|
renderLeading?: (option: ControlOption) => React.ReactNode;
|
|
1313
1317
|
renderDetail?: (option: ControlOption) => React.ReactNode;
|
|
1318
|
+
renderTrigger?: (trigger: SearchSelectTrigger) => React.ReactNode;
|
|
1314
1319
|
}
|
|
1315
|
-
/** A select you can type into to filter;
|
|
1320
|
+
/** A select you can type into to filter; `renderTrigger` swaps the field box for your own visual. */
|
|
1316
1321
|
declare function SearchSelect(props: SearchSelectProps): React.ReactElement;
|
|
1317
1322
|
|
|
1318
1323
|
/** How the option list opens: a sheet from below (phone) or a list unfolding under the field. */
|
|
@@ -1394,6 +1399,8 @@ interface DropdownFrame {
|
|
|
1394
1399
|
declare function placeDropdown(anchor: AnchorRect, panelHeight: number, viewportHeight: number): DropdownPlacement;
|
|
1395
1400
|
/** The window frame for the list next to `anchor`, on the side `placeDropdown` picks. */
|
|
1396
1401
|
declare function dropdownFrame(anchor: AnchorRect, panelHeight: number, viewportHeight: number): DropdownFrame;
|
|
1402
|
+
/** Widens a narrow anchor's list to a readable width and keeps it inside the viewport. */
|
|
1403
|
+
declare function fitDropdownWidth(frame: DropdownFrame, viewportWidth: number): DropdownFrame;
|
|
1397
1404
|
|
|
1398
1405
|
/** Focuses `ref` on the next tick, after the closing list surface has left the page. */
|
|
1399
1406
|
declare function useDeferredFocus(ref: RefObject<{
|
|
@@ -1444,15 +1451,18 @@ interface CountryFieldProps {
|
|
|
1444
1451
|
labels: SearchSelectLabels;
|
|
1445
1452
|
testID: string;
|
|
1446
1453
|
countries?: readonly Country[];
|
|
1454
|
+
noneLabel?: string;
|
|
1447
1455
|
}
|
|
1448
|
-
/** A searchable country field: flag, name and grey code; stores the ISO 3166-1 alpha-2 code
|
|
1449
|
-
declare function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries }: CountryFieldProps): React.ReactElement;
|
|
1456
|
+
/** A searchable country field: flag, name and grey code; stores the ISO 3166-1 alpha-2 code, or '' for `noneLabel`. */
|
|
1457
|
+
declare function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries, noneLabel }: CountryFieldProps): React.ReactElement;
|
|
1450
1458
|
|
|
1451
1459
|
/** ISO 3166-1 alpha-2 countries (249) with English short names. */
|
|
1452
1460
|
declare const COUNTRIES: readonly Country[];
|
|
1453
1461
|
|
|
1454
1462
|
/** Countries as select options: name as the label, the 2-letter code as value and detail. */
|
|
1455
1463
|
declare function countryOptions(list?: readonly Country[]): ControlOption[];
|
|
1464
|
+
/** The country options, led by a "no country" choice (value '') when `noneLabel` is given. */
|
|
1465
|
+
declare function countryFieldOptions(countries?: readonly Country[], noneLabel?: string): readonly ControlOption[];
|
|
1456
1466
|
/** The flag emoji for a 2-letter code, or '' for anything else. */
|
|
1457
1467
|
declare function countryFlag(code: string): string;
|
|
1458
1468
|
/** The stored value for an input: a known 2-letter code in upper case, else ''. */
|
|
@@ -1500,11 +1510,12 @@ interface IbanInputProps {
|
|
|
1500
1510
|
accessibilityLabel: string;
|
|
1501
1511
|
accessibilityHint: string;
|
|
1502
1512
|
testID: string;
|
|
1513
|
+
onBlur?: () => void;
|
|
1503
1514
|
rejectionLabels?: IbanRejectionLabels;
|
|
1504
1515
|
placeholder?: string;
|
|
1505
1516
|
}
|
|
1506
1517
|
/** An IBAN box that groups in fours as you type, stores no spaces and validates on leave. */
|
|
1507
|
-
declare function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder }: IbanInputProps): React.ReactElement;
|
|
1518
|
+
declare function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }: IbanInputProps): React.ReactElement;
|
|
1508
1519
|
|
|
1509
1520
|
/** The outcome of validating one BIC; `electronic` (upper case, trimmed) is set only when valid. */
|
|
1510
1521
|
interface BicVerdict {
|
|
@@ -1521,10 +1532,12 @@ interface BicInputProps {
|
|
|
1521
1532
|
accessibilityLabel: string;
|
|
1522
1533
|
accessibilityHint: string;
|
|
1523
1534
|
testID: string;
|
|
1535
|
+
onBlur?: () => void;
|
|
1524
1536
|
rejectionLabels?: BicRejectionLabels;
|
|
1537
|
+
placeholder?: string;
|
|
1525
1538
|
}
|
|
1526
1539
|
/** A BIC box that upper-cases as you type, ghosts the optional branch and validates on leave. */
|
|
1527
|
-
declare function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels }: BicInputProps): React.ReactElement;
|
|
1540
|
+
declare function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }: BicInputProps): React.ReactElement;
|
|
1528
1541
|
|
|
1529
1542
|
/** The longest IBAN ISO 13616 permits. */
|
|
1530
1543
|
declare const IBAN_MAX_LENGTH = 34;
|
|
@@ -1569,4 +1582,4 @@ declare function useBlurVerdict<T>(validate: () => T): BlurVerdict<T>;
|
|
|
1569
1582
|
/** The pre-localized message for a refusal, or null when there is no verdict, it passed, or no labels were given. */
|
|
1570
1583
|
declare function rejectionMessage<R extends string, N extends R>(rejection: R | null, none: N, labels: Readonly<Record<Exclude<R, N>, string>> | undefined): string | null;
|
|
1571
1584
|
|
|
1572
|
-
export { AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES,
|
|
1585
|
+
export { AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipVariant, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, type DateFieldProps, DateInput, type DateInputProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, 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, 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, PHONE_MAX_WIDTH, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, 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 UseThemedInputOptions, buildSearchSelectSections, controlStyles, countryFieldOptions, countryFlag, countryOptions, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isFallbackFlag, isFixBarVisible, isOutside, isUnmatched, isWideFormLayout, moveHighlight, nextHighlight, placeDropdown, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, suggestOptions, toCountryValue, toggleGroupSelection, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useThemedInput, validateBic, validateIban };
|
package/dist/index.d.ts
CHANGED
|
@@ -580,6 +580,13 @@ declare function useRecentValues(key: string, max?: number): RecentValues;
|
|
|
580
580
|
/** Default cap on remembered values (most-recent-first). */
|
|
581
581
|
declare const DEFAULT_MAX_RECENTS = 10;
|
|
582
582
|
|
|
583
|
+
/** How a long chip label fits: `None` (default) grows the chip, `Wrap` and `Truncate` cap it at its container. */
|
|
584
|
+
declare const enum ChipLabelWrap {
|
|
585
|
+
None = "none",
|
|
586
|
+
Wrap = "wrap",
|
|
587
|
+
Truncate = "truncate"
|
|
588
|
+
}
|
|
589
|
+
|
|
583
590
|
/**
|
|
584
591
|
* Public + internal types for ChipSelector. Split out of `ChipSelector.tsx` so the component, its
|
|
585
592
|
* two chip variants and the radio keyboard hook can share them without a circular import.
|
|
@@ -594,8 +601,6 @@ type ChipVariant = 'solid' | 'outline';
|
|
|
594
601
|
* survive the package boundary for consumers compiled with `isolatedModules`.
|
|
595
602
|
*/
|
|
596
603
|
type ChipSingleSelectRole = 'button' | 'radio';
|
|
597
|
-
/** How a long chip label fits: `none` (default) grows the chip, `wrap` and `truncate` cap it at its container. */
|
|
598
|
-
type ChipLabelWrap = 'none' | 'wrap' | 'truncate';
|
|
599
604
|
interface ChipOption<T> {
|
|
600
605
|
value: T;
|
|
601
606
|
label: string;
|
|
@@ -674,14 +679,6 @@ interface ChipSelectorProps<T> {
|
|
|
674
679
|
|
|
675
680
|
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;
|
|
676
681
|
|
|
677
|
-
interface ChipLabelLayout {
|
|
678
|
-
boxStyle: ViewStyle | undefined;
|
|
679
|
-
textStyle: TextStyle | undefined;
|
|
680
|
-
numberOfLines: number | undefined;
|
|
681
|
-
}
|
|
682
|
-
/** Resolves a chip's box and label layout for its `labelWrap` mode; `none` keeps today's render. */
|
|
683
|
-
declare function chipLabelLayout(labelWrap: ChipLabelWrap | undefined): ChipLabelLayout;
|
|
684
|
-
|
|
685
682
|
/**
|
|
686
683
|
* Reusable form switch/toggle with an optional description.
|
|
687
684
|
*/
|
|
@@ -1299,6 +1296,13 @@ interface SearchSelectLabels {
|
|
|
1299
1296
|
close: string;
|
|
1300
1297
|
closeHint: string;
|
|
1301
1298
|
}
|
|
1299
|
+
/** What a custom trigger draws from; the package keeps the pressable, its a11y and the focus return. */
|
|
1300
|
+
interface SearchSelectTrigger {
|
|
1301
|
+
open: boolean;
|
|
1302
|
+
selected: ControlOption | null;
|
|
1303
|
+
onPress: () => void;
|
|
1304
|
+
ref: RefObject<View | null>;
|
|
1305
|
+
}
|
|
1302
1306
|
|
|
1303
1307
|
interface SearchSelectProps {
|
|
1304
1308
|
options: readonly ControlOption[];
|
|
@@ -1311,8 +1315,9 @@ interface SearchSelectProps {
|
|
|
1311
1315
|
recentKey?: string;
|
|
1312
1316
|
renderLeading?: (option: ControlOption) => React.ReactNode;
|
|
1313
1317
|
renderDetail?: (option: ControlOption) => React.ReactNode;
|
|
1318
|
+
renderTrigger?: (trigger: SearchSelectTrigger) => React.ReactNode;
|
|
1314
1319
|
}
|
|
1315
|
-
/** A select you can type into to filter;
|
|
1320
|
+
/** A select you can type into to filter; `renderTrigger` swaps the field box for your own visual. */
|
|
1316
1321
|
declare function SearchSelect(props: SearchSelectProps): React.ReactElement;
|
|
1317
1322
|
|
|
1318
1323
|
/** How the option list opens: a sheet from below (phone) or a list unfolding under the field. */
|
|
@@ -1394,6 +1399,8 @@ interface DropdownFrame {
|
|
|
1394
1399
|
declare function placeDropdown(anchor: AnchorRect, panelHeight: number, viewportHeight: number): DropdownPlacement;
|
|
1395
1400
|
/** The window frame for the list next to `anchor`, on the side `placeDropdown` picks. */
|
|
1396
1401
|
declare function dropdownFrame(anchor: AnchorRect, panelHeight: number, viewportHeight: number): DropdownFrame;
|
|
1402
|
+
/** Widens a narrow anchor's list to a readable width and keeps it inside the viewport. */
|
|
1403
|
+
declare function fitDropdownWidth(frame: DropdownFrame, viewportWidth: number): DropdownFrame;
|
|
1397
1404
|
|
|
1398
1405
|
/** Focuses `ref` on the next tick, after the closing list surface has left the page. */
|
|
1399
1406
|
declare function useDeferredFocus(ref: RefObject<{
|
|
@@ -1444,15 +1451,18 @@ interface CountryFieldProps {
|
|
|
1444
1451
|
labels: SearchSelectLabels;
|
|
1445
1452
|
testID: string;
|
|
1446
1453
|
countries?: readonly Country[];
|
|
1454
|
+
noneLabel?: string;
|
|
1447
1455
|
}
|
|
1448
|
-
/** A searchable country field: flag, name and grey code; stores the ISO 3166-1 alpha-2 code
|
|
1449
|
-
declare function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries }: CountryFieldProps): React.ReactElement;
|
|
1456
|
+
/** A searchable country field: flag, name and grey code; stores the ISO 3166-1 alpha-2 code, or '' for `noneLabel`. */
|
|
1457
|
+
declare function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries, noneLabel }: CountryFieldProps): React.ReactElement;
|
|
1450
1458
|
|
|
1451
1459
|
/** ISO 3166-1 alpha-2 countries (249) with English short names. */
|
|
1452
1460
|
declare const COUNTRIES: readonly Country[];
|
|
1453
1461
|
|
|
1454
1462
|
/** Countries as select options: name as the label, the 2-letter code as value and detail. */
|
|
1455
1463
|
declare function countryOptions(list?: readonly Country[]): ControlOption[];
|
|
1464
|
+
/** The country options, led by a "no country" choice (value '') when `noneLabel` is given. */
|
|
1465
|
+
declare function countryFieldOptions(countries?: readonly Country[], noneLabel?: string): readonly ControlOption[];
|
|
1456
1466
|
/** The flag emoji for a 2-letter code, or '' for anything else. */
|
|
1457
1467
|
declare function countryFlag(code: string): string;
|
|
1458
1468
|
/** The stored value for an input: a known 2-letter code in upper case, else ''. */
|
|
@@ -1500,11 +1510,12 @@ interface IbanInputProps {
|
|
|
1500
1510
|
accessibilityLabel: string;
|
|
1501
1511
|
accessibilityHint: string;
|
|
1502
1512
|
testID: string;
|
|
1513
|
+
onBlur?: () => void;
|
|
1503
1514
|
rejectionLabels?: IbanRejectionLabels;
|
|
1504
1515
|
placeholder?: string;
|
|
1505
1516
|
}
|
|
1506
1517
|
/** An IBAN box that groups in fours as you type, stores no spaces and validates on leave. */
|
|
1507
|
-
declare function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder }: IbanInputProps): React.ReactElement;
|
|
1518
|
+
declare function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }: IbanInputProps): React.ReactElement;
|
|
1508
1519
|
|
|
1509
1520
|
/** The outcome of validating one BIC; `electronic` (upper case, trimmed) is set only when valid. */
|
|
1510
1521
|
interface BicVerdict {
|
|
@@ -1521,10 +1532,12 @@ interface BicInputProps {
|
|
|
1521
1532
|
accessibilityLabel: string;
|
|
1522
1533
|
accessibilityHint: string;
|
|
1523
1534
|
testID: string;
|
|
1535
|
+
onBlur?: () => void;
|
|
1524
1536
|
rejectionLabels?: BicRejectionLabels;
|
|
1537
|
+
placeholder?: string;
|
|
1525
1538
|
}
|
|
1526
1539
|
/** A BIC box that upper-cases as you type, ghosts the optional branch and validates on leave. */
|
|
1527
|
-
declare function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels }: BicInputProps): React.ReactElement;
|
|
1540
|
+
declare function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }: BicInputProps): React.ReactElement;
|
|
1528
1541
|
|
|
1529
1542
|
/** The longest IBAN ISO 13616 permits. */
|
|
1530
1543
|
declare const IBAN_MAX_LENGTH = 34;
|
|
@@ -1569,4 +1582,4 @@ declare function useBlurVerdict<T>(validate: () => T): BlurVerdict<T>;
|
|
|
1569
1582
|
/** The pre-localized message for a refusal, or null when there is no verdict, it passed, or no labels were given. */
|
|
1570
1583
|
declare function rejectionMessage<R extends string, N extends R>(rejection: R | null, none: N, labels: Readonly<Record<Exclude<R, N>, string>> | undefined): string | null;
|
|
1571
1584
|
|
|
1572
|
-
export { AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES,
|
|
1585
|
+
export { AddOnRequest, type AddOnRequestProps, AlignToControl, type AlignToControlProps, type AnchorRect, AnchoredMenu, type AnchoredMenuColors, type AnchoredMenuListbox, type AnchoredMenuPlacement, type AnchoredMenuProps, type BicDraft, BicInput, type BicInputProps, BicRejection, type BicRejectionLabels, type BicVerdict, type BlurVerdict, COUNTRIES, ChipLabelWrap, type ChipOption, ChipSelector, type ChipSelectorProps, type ChipSingleSelectRole, type ChipVariant, type ControlOption, type Country, CountryField, type CountryFieldProps, CountryFlag, type CountryFlagProps, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, type DateFieldProps, DateInput, type DateInputProps, DateRangeControl, type DateRangeControlProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, type DropdownFrame, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, type FieldChildContext, type FieldChildren, type FieldLabelVariant, type FieldMarker, type FieldProps, type FieldSpacing, 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, 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, PHONE_MAX_WIDTH, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, type RecentValues, ResponsiveFormLayout, type ResponsiveFormLayoutProps, SearchSelect, type SearchSelectLabels, type SearchSelectProps, type SearchSelectSections, type SearchSelectState, type SearchSelectTrigger, SelectControl, type SelectControlProps, SelectField, type SelectFieldProps, type SelectMenuAnchor, type SelectMotion, SelectSurface, 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 UseThemedInputOptions, buildSearchSelectSections, controlStyles, countryFieldOptions, countryFlag, countryOptions, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isFallbackFlag, isFixBarVisible, isOutside, isUnmatched, isWideFormLayout, moveHighlight, nextHighlight, placeDropdown, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, suggestOptions, toCountryValue, toggleGroupSelection, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useThemedInput, validateBic, validateIban };
|
package/dist/index.js
CHANGED
|
@@ -1203,14 +1203,22 @@ var CHIP_HIT_SLOP = { top: 10, bottom: 10, left: 4, right: 4 };
|
|
|
1203
1203
|
var CHIP_GUTTER = 8;
|
|
1204
1204
|
var DEFAULT_CHIP_TESTID_PREFIX = "chip-selector-chip";
|
|
1205
1205
|
|
|
1206
|
+
// src/ChipSelector/ChipLabelWrap.ts
|
|
1207
|
+
var ChipLabelWrap = /* @__PURE__ */ ((ChipLabelWrap2) => {
|
|
1208
|
+
ChipLabelWrap2["None"] = "none";
|
|
1209
|
+
ChipLabelWrap2["Wrap"] = "wrap";
|
|
1210
|
+
ChipLabelWrap2["Truncate"] = "truncate";
|
|
1211
|
+
return ChipLabelWrap2;
|
|
1212
|
+
})(ChipLabelWrap || {});
|
|
1213
|
+
|
|
1206
1214
|
// src/ChipSelector/utils/chipLabelLayout.ts
|
|
1207
1215
|
var CAPPED_BOX = { maxWidth: "100%", flexShrink: 1 };
|
|
1208
1216
|
var SHRINKING_TEXT = { flexShrink: 1 };
|
|
1209
1217
|
var SINGLE_LINE = 1;
|
|
1210
1218
|
function chipLabelLayout(labelWrap) {
|
|
1211
|
-
if (labelWrap === "wrap")
|
|
1219
|
+
if (labelWrap === "wrap" /* Wrap */)
|
|
1212
1220
|
return { boxStyle: CAPPED_BOX, textStyle: SHRINKING_TEXT, numberOfLines: void 0 };
|
|
1213
|
-
if (labelWrap === "truncate")
|
|
1221
|
+
if (labelWrap === "truncate" /* Truncate */)
|
|
1214
1222
|
return { boxStyle: CAPPED_BOX, textStyle: SHRINKING_TEXT, numberOfLines: SINGLE_LINE };
|
|
1215
1223
|
return { boxStyle: void 0, textStyle: void 0, numberOfLines: void 0 };
|
|
1216
1224
|
}
|
|
@@ -2609,6 +2617,8 @@ var DropdownPlacement = /* @__PURE__ */ ((DropdownPlacement2) => {
|
|
|
2609
2617
|
})(DropdownPlacement || {});
|
|
2610
2618
|
|
|
2611
2619
|
// src/SearchSelect/utils/dropdownFrame.ts
|
|
2620
|
+
var MIN_PANEL_WIDTH = 240;
|
|
2621
|
+
var EDGE = 8;
|
|
2612
2622
|
function placeDropdown(anchor, panelHeight, viewportHeight) {
|
|
2613
2623
|
const roomBelow = viewportHeight - (anchor.y + anchor.height);
|
|
2614
2624
|
if (roomBelow >= panelHeight) return "below" /* Below */;
|
|
@@ -2620,12 +2630,17 @@ function dropdownFrame(anchor, panelHeight, viewportHeight) {
|
|
|
2620
2630
|
if (placement === "above" /* Above */) return { ...base, bottom: viewportHeight - anchor.y };
|
|
2621
2631
|
return { ...base, top: anchor.y + anchor.height };
|
|
2622
2632
|
}
|
|
2633
|
+
function fitDropdownWidth(frame, viewportWidth) {
|
|
2634
|
+
const width = Math.max(frame.width, Math.min(MIN_PANEL_WIDTH, viewportWidth - EDGE - EDGE));
|
|
2635
|
+
const left = Math.max(EDGE, Math.min(frame.left, viewportWidth - width - EDGE));
|
|
2636
|
+
return { ...frame, width, left: frame.width >= width ? frame.left : left };
|
|
2637
|
+
}
|
|
2623
2638
|
function DropdownSurface({ progress, translateY, anchorRef, onDismiss, closeLabel, closeHint, testID, children }) {
|
|
2624
|
-
const { height: viewportHeight } = reactNative.useWindowDimensions();
|
|
2639
|
+
const { height: viewportHeight, width: viewportWidth } = reactNative.useWindowDimensions();
|
|
2625
2640
|
const anchor = useAnchorRect2(anchorRef);
|
|
2626
2641
|
const [panelHeight, setPanelHeight] = React2.useState(0);
|
|
2627
2642
|
const onLayout = React2.useCallback((event) => setPanelHeight(event.nativeEvent.layout.height), []);
|
|
2628
|
-
const frame = anchor === null ? null : dropdownFrame(anchor, panelHeight, viewportHeight);
|
|
2643
|
+
const frame = anchor === null ? null : fitDropdownWidth(dropdownFrame(anchor, panelHeight, viewportHeight), viewportWidth);
|
|
2629
2644
|
const place = frame === null ? null : { left: frame.left, width: frame.width, top: frame.top, bottom: frame.bottom };
|
|
2630
2645
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.Modal, { transparent: true, visible: true, animationType: "none", onRequestClose: onDismiss, children: [
|
|
2631
2646
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: reactNative.StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
|
|
@@ -2854,9 +2869,10 @@ function resolveSelectMotion(width, reducedMotion) {
|
|
|
2854
2869
|
}
|
|
2855
2870
|
var CHEVRON = "\u25BE";
|
|
2856
2871
|
var VALUE_GAP = 8;
|
|
2872
|
+
var MIN_TOUCH = 44;
|
|
2857
2873
|
var NOTHING_ON_CLOSE = () => void 0;
|
|
2858
2874
|
function SearchSelect(props) {
|
|
2859
|
-
const { options, value, onChange, accessibilityLabel, accessibilityHint, labels, testID, recentKey, renderLeading, renderDetail } = props;
|
|
2875
|
+
const { options, value, onChange, accessibilityLabel, accessibilityHint, labels, testID, recentKey, renderLeading, renderDetail, renderTrigger } = props;
|
|
2860
2876
|
const { theme } = uiFeedback.useUi();
|
|
2861
2877
|
const { colors } = theme;
|
|
2862
2878
|
const triggerRef = React2.useRef(null);
|
|
@@ -2867,8 +2883,9 @@ function SearchSelect(props) {
|
|
|
2867
2883
|
const state = useSearchSelectState(options, recents, onChange, NOTHING_ON_CLOSE);
|
|
2868
2884
|
useRefocusOnClose(state.open, triggerRef);
|
|
2869
2885
|
const selected = findOption(options, value);
|
|
2886
|
+
const onPress = state.open ? state.close : state.openList;
|
|
2870
2887
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { ref: anchorRef, style: styles23.anchor, children: [
|
|
2871
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2888
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2872
2889
|
reactNative.Pressable,
|
|
2873
2890
|
{
|
|
2874
2891
|
ref: triggerRef,
|
|
@@ -2876,22 +2893,25 @@ function SearchSelect(props) {
|
|
|
2876
2893
|
accessibilityLabel,
|
|
2877
2894
|
accessibilityRole: "button",
|
|
2878
2895
|
accessibilityState: { expanded: state.open },
|
|
2879
|
-
style: [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
|
|
2896
|
+
style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles23.customTrigger,
|
|
2880
2897
|
testID,
|
|
2881
|
-
onPress
|
|
2882
|
-
children:
|
|
2883
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.value, children: [
|
|
2884
|
-
selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
|
|
2885
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? labels.placeholder }),
|
|
2886
|
-
selected !== null ? /* @__PURE__ */ jsxRuntime.jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
|
|
2887
|
-
] }),
|
|
2888
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [controlStyles.chevron, { color: colors.textSecondary }], children: CHEVRON })
|
|
2889
|
-
]
|
|
2898
|
+
onPress,
|
|
2899
|
+
children: renderTrigger !== void 0 ? renderTrigger({ open: state.open, selected, onPress, ref: triggerRef }) : /* @__PURE__ */ jsxRuntime.jsx(FieldBoxContent, { colors, placeholder: labels.placeholder, renderDetail, renderLeading, selected })
|
|
2890
2900
|
}
|
|
2891
2901
|
),
|
|
2892
2902
|
state.open ? /* @__PURE__ */ jsxRuntime.jsx(SearchSelectPanel, { anchorRef, labels, motion, renderDetail, renderLeading, selectedValue: value, state, testID }) : null
|
|
2893
2903
|
] });
|
|
2894
2904
|
}
|
|
2905
|
+
function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
|
|
2906
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2907
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles23.value, children: [
|
|
2908
|
+
selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
|
|
2909
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
|
|
2910
|
+
selected !== null ? /* @__PURE__ */ jsxRuntime.jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
|
|
2911
|
+
] }),
|
|
2912
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [controlStyles.chevron, { color: colors.textSecondary }], children: CHEVRON })
|
|
2913
|
+
] });
|
|
2914
|
+
}
|
|
2895
2915
|
function SelectedDetail({ option, colors, renderDetail }) {
|
|
2896
2916
|
if (renderDetail !== void 0) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderDetail(option) });
|
|
2897
2917
|
if (option.detail === void 0) return null;
|
|
@@ -2899,6 +2919,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
|
|
|
2899
2919
|
}
|
|
2900
2920
|
var styles23 = reactNative.StyleSheet.create({
|
|
2901
2921
|
anchor: { position: "relative" },
|
|
2922
|
+
customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
|
|
2902
2923
|
value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
|
|
2903
2924
|
});
|
|
2904
2925
|
function isContainer(node) {
|
|
@@ -3651,6 +3672,12 @@ var KNOWN_CODES = new Set(COUNTRIES.map((country) => country.code));
|
|
|
3651
3672
|
function countryOptions(list = COUNTRIES) {
|
|
3652
3673
|
return list.map((country) => ({ label: country.name, value: country.code, detail: country.code }));
|
|
3653
3674
|
}
|
|
3675
|
+
var DEFAULT_OPTIONS = countryOptions();
|
|
3676
|
+
var NO_COUNTRY = "";
|
|
3677
|
+
function countryFieldOptions(countries, noneLabel) {
|
|
3678
|
+
const list = countries === void 0 ? DEFAULT_OPTIONS : countryOptions(countries);
|
|
3679
|
+
return noneLabel === void 0 ? list : [{ label: noneLabel, value: NO_COUNTRY }, ...list];
|
|
3680
|
+
}
|
|
3654
3681
|
function countryFlag(code) {
|
|
3655
3682
|
const upper = code.toUpperCase();
|
|
3656
3683
|
if (!TWO_LETTERS.test(upper)) return "";
|
|
@@ -3661,12 +3688,12 @@ function toCountryValue(input) {
|
|
|
3661
3688
|
return KNOWN_CODES.has(upper) ? upper : "";
|
|
3662
3689
|
}
|
|
3663
3690
|
var CODE_FONT = 12;
|
|
3664
|
-
var
|
|
3665
|
-
var renderFlag = (option) => /* @__PURE__ */ jsxRuntime.jsx(CountryFlag, { code: option.value });
|
|
3666
|
-
function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries }) {
|
|
3691
|
+
var NO_COUNTRY2 = "";
|
|
3692
|
+
var renderFlag = (option) => option.value === NO_COUNTRY2 ? null : /* @__PURE__ */ jsxRuntime.jsx(CountryFlag, { code: option.value });
|
|
3693
|
+
function CountryField({ value, onChange, accessibilityLabel, accessibilityHint, labels, testID, countries, noneLabel }) {
|
|
3667
3694
|
const { theme } = uiFeedback.useUi();
|
|
3668
3695
|
const { textSecondary } = theme.colors;
|
|
3669
|
-
const options = React2.useMemo(() => countries
|
|
3696
|
+
const options = React2.useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
|
|
3670
3697
|
const renderCode = React2.useCallback((option) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles24.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
|
|
3671
3698
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3672
3699
|
SearchSelect,
|
|
@@ -3949,7 +3976,7 @@ function rejectionMessage(rejection, none, labels) {
|
|
|
3949
3976
|
if (labels === void 0 || rejection === null || rejection === none) return null;
|
|
3950
3977
|
return labels[rejection];
|
|
3951
3978
|
}
|
|
3952
|
-
function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder }) {
|
|
3979
|
+
function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }) {
|
|
3953
3980
|
const { theme } = uiFeedback.useUi();
|
|
3954
3981
|
const { colors } = theme;
|
|
3955
3982
|
const draft = React2.useMemo(() => draftIban(value), [value]);
|
|
@@ -3967,7 +3994,8 @@ function IbanInput({ value, onChange, onVerdict, accessibilityLabel, accessibili
|
|
|
3967
3994
|
const onBlur = React2.useCallback(() => {
|
|
3968
3995
|
const verdict2 = onLeave();
|
|
3969
3996
|
onVerdict?.(value === "" ? null : verdict2);
|
|
3970
|
-
|
|
3997
|
+
onLeft?.();
|
|
3998
|
+
}, [onLeave, onVerdict, value, onLeft]);
|
|
3971
3999
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
|
|
3972
4000
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: [
|
|
3973
4001
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: ghostStyles.field, children: [
|
|
@@ -4035,7 +4063,7 @@ function validateBic(raw) {
|
|
|
4035
4063
|
if (RESERVED_LOCATION.includes(bic.charAt(LOCATION_INDEX))) return refused2("MalformedLocation" /* MalformedLocation */);
|
|
4036
4064
|
return { rejection: "None" /* None */, electronic: bic };
|
|
4037
4065
|
}
|
|
4038
|
-
function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels }) {
|
|
4066
|
+
function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilityHint, testID, rejectionLabels, placeholder, onBlur: onLeft }) {
|
|
4039
4067
|
const { theme } = uiFeedback.useUi();
|
|
4040
4068
|
const { colors } = theme;
|
|
4041
4069
|
const draft = React2.useMemo(() => draftBic(value), [value]);
|
|
@@ -4050,7 +4078,8 @@ function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilit
|
|
|
4050
4078
|
const onBlur = React2.useCallback(() => {
|
|
4051
4079
|
const verdict2 = onLeave();
|
|
4052
4080
|
onVerdict?.(value === "" ? null : verdict2);
|
|
4053
|
-
|
|
4081
|
+
onLeft?.();
|
|
4082
|
+
}, [onLeave, onVerdict, value, onLeft]);
|
|
4054
4083
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
|
|
4055
4084
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }], children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: ghostStyles.field, children: [
|
|
4056
4085
|
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.Text, { "aria-hidden": true, style: [ghostStyles.mono, ghostStyles.layer], children: [
|
|
@@ -4066,6 +4095,8 @@ function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilit
|
|
|
4066
4095
|
autoCapitalize: "characters",
|
|
4067
4096
|
autoComplete: "off",
|
|
4068
4097
|
autoCorrect: false,
|
|
4098
|
+
placeholder: draft.value === "" ? placeholder : void 0,
|
|
4099
|
+
placeholderTextColor: colors.textSecondary,
|
|
4069
4100
|
spellCheck: false,
|
|
4070
4101
|
style: [ghostStyles.mono, ghostStyles.input, { color: colors.text }],
|
|
4071
4102
|
testID,
|
|
@@ -4085,6 +4116,7 @@ exports.AnchoredMenu = AnchoredMenu;
|
|
|
4085
4116
|
exports.BicInput = BicInput;
|
|
4086
4117
|
exports.BicRejection = BicRejection;
|
|
4087
4118
|
exports.COUNTRIES = COUNTRIES;
|
|
4119
|
+
exports.ChipLabelWrap = ChipLabelWrap;
|
|
4088
4120
|
exports.ChipSelector = ChipSelector;
|
|
4089
4121
|
exports.CountryField = CountryField;
|
|
4090
4122
|
exports.CountryFlag = CountryFlag;
|
|
@@ -4130,14 +4162,15 @@ exports.ThemedTextInput = ThemedTextInput;
|
|
|
4130
4162
|
exports.TypeaheadControl = TypeaheadControl;
|
|
4131
4163
|
exports.UploadWithLinkField = UploadWithLinkField;
|
|
4132
4164
|
exports.buildSearchSelectSections = buildSearchSelectSections;
|
|
4133
|
-
exports.chipLabelLayout = chipLabelLayout;
|
|
4134
4165
|
exports.controlStyles = controlStyles;
|
|
4166
|
+
exports.countryFieldOptions = countryFieldOptions;
|
|
4135
4167
|
exports.countryFlag = countryFlag;
|
|
4136
4168
|
exports.countryOptions = countryOptions;
|
|
4137
4169
|
exports.draftBic = draftBic;
|
|
4138
4170
|
exports.draftIban = draftIban;
|
|
4139
4171
|
exports.dropdownFrame = dropdownFrame;
|
|
4140
4172
|
exports.findOption = findOption;
|
|
4173
|
+
exports.fitDropdownWidth = fitDropdownWidth;
|
|
4141
4174
|
exports.flagShapes = flagShapes;
|
|
4142
4175
|
exports.groupAriaChecked = groupAriaChecked;
|
|
4143
4176
|
exports.groupInFours = groupInFours;
|