@dloizides/ui-forms 1.57.0 → 1.59.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/index.d.mts CHANGED
@@ -942,6 +942,13 @@ declare function SelectLookProvider({ look, borderColor, backgroundColor, textCo
942
942
  * @param windowWidth the current window width in px
943
943
  */
944
944
  declare function selectLookMetrics({ look, borderColor, backgroundColor, textColor }: SelectLookConfig, windowWidth: number): SelectLookMetrics | undefined;
945
+ /** The metrics of the nearest provider's look at the current window width; `undefined` for `default`. */
946
+ declare function useSelectLookMetrics(): SelectLookMetrics | undefined;
947
+ /**
948
+ * The text-input box of a look, so an input beside the look's selects shares their height, padding, font and radius.
949
+ * @param m the look metrics; `undefined` (the `default` look) returns no override
950
+ */
951
+ declare function lookInputBox(m: SelectLookMetrics | undefined): TextStyle | undefined;
945
952
 
946
953
  /** The row index an arrow key moves to: wraps at both ends, -1 when there are no rows. */
947
954
  declare function nextHighlight(current: number, count: number, delta: number): number;
@@ -2054,4 +2061,4 @@ declare function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLa
2054
2061
  declare function changedRules(previous: readonly PasswordRuleState[], next: readonly PasswordRuleState[]): PasswordRuleState[];
2055
2062
  declare function ruleAnnouncement(changed: readonly PasswordRuleState[], labels: Pick<PasswordFieldLabels, 'met' | 'unmet'>): string;
2056
2063
 
2057
- 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 CheckboxLook, CheckboxLookProvider, type ChecklistItem, ChipLabelWrap, type ChipOption, type ChipOutlineTone, 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, type FormSwitchVariant, 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 SelectLook, type SelectLookConfig, type SelectLookMetrics, SelectLookProvider, 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, selectLookMetrics, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
2064
+ 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 CheckboxLook, CheckboxLookProvider, type ChecklistItem, ChipLabelWrap, type ChipOption, type ChipOutlineTone, 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, type FormSwitchVariant, 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 SelectLook, type SelectLookConfig, type SelectLookMetrics, SelectLookProvider, 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, lookInputBox, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, selectLookMetrics, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useSelectLookMetrics, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
package/dist/index.d.ts CHANGED
@@ -942,6 +942,13 @@ declare function SelectLookProvider({ look, borderColor, backgroundColor, textCo
942
942
  * @param windowWidth the current window width in px
943
943
  */
944
944
  declare function selectLookMetrics({ look, borderColor, backgroundColor, textColor }: SelectLookConfig, windowWidth: number): SelectLookMetrics | undefined;
945
+ /** The metrics of the nearest provider's look at the current window width; `undefined` for `default`. */
946
+ declare function useSelectLookMetrics(): SelectLookMetrics | undefined;
947
+ /**
948
+ * The text-input box of a look, so an input beside the look's selects shares their height, padding, font and radius.
949
+ * @param m the look metrics; `undefined` (the `default` look) returns no override
950
+ */
951
+ declare function lookInputBox(m: SelectLookMetrics | undefined): TextStyle | undefined;
945
952
 
946
953
  /** The row index an arrow key moves to: wraps at both ends, -1 when there are no rows. */
947
954
  declare function nextHighlight(current: number, count: number, delta: number): number;
@@ -2054,4 +2061,4 @@ declare function RevealToggle({ revealed, onToggle, onPressIn, showLabel, hideLa
2054
2061
  declare function changedRules(previous: readonly PasswordRuleState[], next: readonly PasswordRuleState[]): PasswordRuleState[];
2055
2062
  declare function ruleAnnouncement(changed: readonly PasswordRuleState[], labels: Pick<PasswordFieldLabels, 'met' | 'unmet'>): string;
2056
2063
 
2057
- 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 CheckboxLook, CheckboxLookProvider, type ChecklistItem, ChipLabelWrap, type ChipOption, type ChipOutlineTone, 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, type FormSwitchVariant, 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 SelectLook, type SelectLookConfig, type SelectLookMetrics, SelectLookProvider, 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, selectLookMetrics, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
2064
+ 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 CheckboxLook, CheckboxLookProvider, type ChecklistItem, ChipLabelWrap, type ChipOption, type ChipOutlineTone, 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, type FormSwitchVariant, 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 SelectLook, type SelectLookConfig, type SelectLookMetrics, SelectLookProvider, 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, lookInputBox, moveHighlight, nextHighlight, placeDropdown, radioRowIdentity, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, rowsForText, ruleAnnouncement, ruleColorsFrom, ruleTone, selectLookMetrics, suggestOptions, toCountryValue, toggleGroupSelection, useAutoGrowRows, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useSelectLookMetrics, useServerFieldErrors, useThemedInput, validateBic, validateDecision, validateIban };
package/dist/index.js CHANGED
@@ -2198,6 +2198,14 @@ var FormCheckbox = ({
2198
2198
  );
2199
2199
  };
2200
2200
 
2201
+ // src/SelectControl/controlBorder.ts
2202
+ var CONTROL_BORDER_SCALE = "controlBorder";
2203
+ var MAIN_STEP2 = "500";
2204
+ function controlBorderOf(theme) {
2205
+ const scale = theme.palette[CONTROL_BORDER_SCALE];
2206
+ return scale?.[MAIN_STEP2] ?? theme.colors.border;
2207
+ }
2208
+
2201
2209
  // src/SearchSelect/SelectSurface.ts
2202
2210
  var SelectSurface = /* @__PURE__ */ ((SelectSurface2) => {
2203
2211
  SelectSurface2["Sheet"] = "sheet";
@@ -2258,6 +2266,10 @@ function useSelectLookMetrics() {
2258
2266
  const { width } = reactNative.useWindowDimensions();
2259
2267
  return selectLookMetrics(config, width);
2260
2268
  }
2269
+ function lookInputBox(m) {
2270
+ if (m === void 0) return void 0;
2271
+ return { minHeight: m.height, height: m.height, paddingHorizontal: m.paddingHorizontal, paddingVertical: m.paddingVertical, fontSize: m.fontSize, borderRadius: m.borderRadius };
2272
+ }
2261
2273
  function chevronDataUri(color) {
2262
2274
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="${color}" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6l4 4 4-4"/></svg>`;
2263
2275
  return `url("data:image/svg+xml,${encodeURIComponent(svg)}")`;
@@ -2333,7 +2345,7 @@ function NativeSelect({
2333
2345
  const textColor = hasMatch ? colors.text : colors.textSecondary;
2334
2346
  const fit = native === "fit";
2335
2347
  const metrics = useSelectLookMetrics();
2336
- const selectStyle = metrics === void 0 ? nativeSelectStyle(fit, colors.border, colors.surfaceElevated, textColor) : lookSelectStyle(fit, metrics, { border: colors.border, background: colors.surfaceElevated, text: textColor, chevron: colors.textSecondary });
2348
+ const selectStyle = metrics === void 0 ? nativeSelectStyle(fit, controlBorderOf(theme), colors.surfaceElevated, textColor) : lookSelectStyle(fit, metrics, { border: controlBorderOf(theme), background: colors.surfaceElevated, text: textColor, chevron: colors.textSecondary });
2337
2349
  const handleChange = (event) => onChange(event.target.value);
2338
2350
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [controlStyles.anchor, fit ? fitStyles.anchor : void 0, metrics === void 0 ? void 0 : fitStyles.oneLine, style], children: /* @__PURE__ */ jsxRuntime.jsxs(
2339
2351
  "select",
@@ -2398,7 +2410,7 @@ function lookTriggerBox(m) {
2398
2410
  function triggerInk(m, colors, isEmpty) {
2399
2411
  const themeText = isEmpty ? colors.textSecondary : colors.text;
2400
2412
  return {
2401
- border: m?.borderColor ?? colors.border,
2413
+ border: m?.borderColor ?? colors.controlBorder,
2402
2414
  background: m?.backgroundColor ?? colors.surfaceElevated,
2403
2415
  text: m?.textColor ?? themeText,
2404
2416
  chevron: m?.textColor ?? colors.textSecondary
@@ -2452,7 +2464,7 @@ function MenuSelectControl({
2452
2464
  [onChange]
2453
2465
  );
2454
2466
  const metrics = useSelectLookMetrics();
2455
- const ink = triggerInk(metrics, colors, value === "");
2467
+ const ink = triggerInk(metrics, { ...colors, controlBorder: controlBorderOf(theme) }, value === "");
2456
2468
  const listbox = useSelectListbox({ options, isOpen, open, toggle: toggle2, select });
2457
2469
  const isListbox = menuAnchor !== void 0;
2458
2470
  const captureKeys = isListbox ? { onKeyDownCapture: listbox.onKeyDown } : {};
@@ -2856,6 +2868,7 @@ function TypeaheadControlImpl(props, ref) {
2856
2868
  const options = "options" in props ? props.options : void 0;
2857
2869
  const maxSuggestions = ("search" in props ? props.search.maxResults : props.maxSuggestions) ?? DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS;
2858
2870
  const { theme } = uiFeedback.useUi();
2871
+ const look = useSelectLookMetrics();
2859
2872
  const { colors, palette } = theme;
2860
2873
  const anchorRef = React41.useRef(null);
2861
2874
  const state = useTypeaheadState({ options, search, value, minChars, maxSuggestions, onChange, onSubmit });
@@ -2887,7 +2900,7 @@ function TypeaheadControlImpl(props, ref) {
2887
2900
  onBlur: handleBlur,
2888
2901
  onKeyPress: state.handleKeyPress,
2889
2902
  onSubmitEditing: state.handleSubmit,
2890
- style: [controlStyles.input, { borderColor: hasError ? fieldErrorInk(theme) : colors.border, backgroundColor: colors.surface, color: colors.text }],
2903
+ style: [controlStyles.input, { borderColor: hasError ? fieldErrorInk(theme) : colors.border, backgroundColor: colors.surface, color: colors.text }, lookInputBox(look)],
2891
2904
  testID: search?.inputTestID ?? `${testID}-input`
2892
2905
  }
2893
2906
  ),
@@ -2917,8 +2930,8 @@ var NATIVE_INPUT_BOX = {
2917
2930
  fontFamily: "inherit",
2918
2931
  width: "100%"
2919
2932
  };
2920
- function buildNativeInputStyle(themed) {
2921
- const { paddingHorizontal, paddingVertical, ...box } = reactNative.StyleSheet.flatten(controlStyles.input);
2933
+ function buildNativeInputStyle(themed, look) {
2934
+ const { paddingHorizontal, paddingVertical, ...box } = reactNative.StyleSheet.flatten([controlStyles.input, look]);
2922
2935
  return {
2923
2936
  ...box,
2924
2937
  ...themed,
@@ -2930,6 +2943,7 @@ function buildNativeInputStyle(themed) {
2930
2943
  function WebDateInput({ fieldProps, context, webInputType }) {
2931
2944
  const { label, value, onChange, onSubmit, accessibilityHint, testID, required, disabled = false, min, max } = fieldProps;
2932
2945
  const { style, focusBind, hoverBind } = useThemedInput({ hasError: context.hasError, editable: !disabled });
2946
+ const look = lookInputBox(useSelectLookMetrics());
2933
2947
  const webA11y = webFieldA11y({
2934
2948
  describedById: context.describedById,
2935
2949
  hasError: context.hasError,
@@ -2953,7 +2967,7 @@ function WebDateInput({ fieldProps, context, webInputType }) {
2953
2967
  id: context.controlId,
2954
2968
  max,
2955
2969
  min,
2956
- style: buildNativeInputStyle(style),
2970
+ style: buildNativeInputStyle(style, look),
2957
2971
  title: accessibilityHint,
2958
2972
  type: webInputType,
2959
2973
  value,
@@ -3723,6 +3737,7 @@ function DatePickerInput({ fieldProps, context, onTypedError }) {
3723
3737
  const typed = useTypedDate({ value, onChange, bounds, format: displayFormatter(display), onError: onTypedError, editOnType: true });
3724
3738
  const edit = typedEditBind(typed);
3725
3739
  const { style, focusBind, hoverBind } = useThemedInput({ hasError: context.hasError, editable: !disabled });
3740
+ const look = lookInputBox(useSelectLookMetrics());
3726
3741
  const focus = focusBind;
3727
3742
  const webA11y = webFieldA11y({ describedById: context.describedById, hasError: context.hasError, required });
3728
3743
  const close = React41.useCallback(() => setOpen(false), []);
@@ -3755,7 +3770,7 @@ function DatePickerInput({ fieldProps, context, onTypedError }) {
3755
3770
  "data-testid": testID,
3756
3771
  disabled,
3757
3772
  id: context.controlId,
3758
- style: { ...buildNativeInputStyle(style), paddingInlineEnd: ICON_ROOM },
3773
+ style: { ...buildNativeInputStyle(style, look), paddingInlineEnd: ICON_ROOM },
3759
3774
  title: accessibilityHint,
3760
3775
  type: "text",
3761
3776
  value: typed.display,
@@ -6664,6 +6679,7 @@ exports.isWideFormLayout = isWideFormLayout;
6664
6679
  exports.leadFirst = leadFirst;
6665
6680
  exports.lineItemColumnFlex = lineItemColumnFlex;
6666
6681
  exports.lineNumberOf = lineNumberOf;
6682
+ exports.lookInputBox = lookInputBox;
6667
6683
  exports.moveHighlight = moveHighlight;
6668
6684
  exports.nextHighlight = nextHighlight;
6669
6685
  exports.placeDropdown = placeDropdown;
@@ -6689,6 +6705,7 @@ exports.useOutsidePress = useOutsidePress;
6689
6705
  exports.useRecentValues = useRecentValues;
6690
6706
  exports.useReducedMotion = useReducedMotion;
6691
6707
  exports.useSearchSelectState = useSearchSelectState;
6708
+ exports.useSelectLookMetrics = useSelectLookMetrics;
6692
6709
  exports.useServerFieldErrors = useServerFieldErrors;
6693
6710
  exports.useThemedInput = useThemedInput;
6694
6711
  exports.validateBic = validateBic;