@dloizides/ui-forms 1.38.0 → 1.39.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 +537 -536
- package/dist/index.d.mts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +215 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +210 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -358,7 +358,142 @@ var InlineFieldRow = ({
|
|
|
358
358
|
/* @__PURE__ */ jsx(AlignToControl, { style: styles4.action, children: action })
|
|
359
359
|
] });
|
|
360
360
|
};
|
|
361
|
+
|
|
362
|
+
// src/LineItems/utils/lineItemsLayout.ts
|
|
363
|
+
var LINE_ITEMS_WIDE_MIN_WIDTH = 1280;
|
|
364
|
+
var LINE_ITEMS_DEFAULT_MIN_ITEMS = 1;
|
|
365
|
+
var LINE_ITEMS_CARD_PADDING = 12;
|
|
366
|
+
var LINE_ITEMS_CARD_BORDER = 1;
|
|
367
|
+
var DEFAULT_COLUMN_FLEX = 1;
|
|
368
|
+
function isLineItemsWide(width, wideMinWidth = LINE_ITEMS_WIDE_MIN_WIDTH) {
|
|
369
|
+
return width >= wideMinWidth;
|
|
370
|
+
}
|
|
371
|
+
function canRemoveLine(count, minItems = LINE_ITEMS_DEFAULT_MIN_ITEMS) {
|
|
372
|
+
return count > minItems;
|
|
373
|
+
}
|
|
374
|
+
function lineNumberOf(index) {
|
|
375
|
+
return index + 1;
|
|
376
|
+
}
|
|
377
|
+
function lineItemColumnFlex(column) {
|
|
378
|
+
return column.flex ?? DEFAULT_COLUMN_FLEX;
|
|
379
|
+
}
|
|
380
|
+
var CARD_RADIUS = 8;
|
|
381
|
+
var HEADER_GAP = 8;
|
|
361
382
|
var styles5 = StyleSheet.create({
|
|
383
|
+
card: {
|
|
384
|
+
borderRadius: CARD_RADIUS,
|
|
385
|
+
borderWidth: LINE_ITEMS_CARD_BORDER,
|
|
386
|
+
gap: FORM_GRID_DEFAULT_GAP,
|
|
387
|
+
padding: LINE_ITEMS_CARD_PADDING
|
|
388
|
+
},
|
|
389
|
+
header: { alignItems: "center", columnGap: HEADER_GAP, flexDirection: "row", flexWrap: "wrap", rowGap: HEADER_GAP },
|
|
390
|
+
spacer: { flexGrow: 1 }
|
|
391
|
+
});
|
|
392
|
+
var LineItemCard = ({ title, header, removeAction, children, testID }) => {
|
|
393
|
+
const { theme } = useUi();
|
|
394
|
+
const { colors } = theme;
|
|
395
|
+
return /* @__PURE__ */ jsxs(
|
|
396
|
+
View,
|
|
397
|
+
{
|
|
398
|
+
"aria-label": title,
|
|
399
|
+
role: "group",
|
|
400
|
+
style: [styles5.card, { backgroundColor: colors.surface, borderColor: colors.border }],
|
|
401
|
+
testID,
|
|
402
|
+
children: [
|
|
403
|
+
/* @__PURE__ */ jsxs(View, { style: styles5.header, children: [
|
|
404
|
+
/* @__PURE__ */ jsx(Text, { style: [resolveLabelVariantStyle(), { color: colors.text }], testID: `${testID}-title`, children: title }),
|
|
405
|
+
header,
|
|
406
|
+
/* @__PURE__ */ jsx(View, { style: styles5.spacer }),
|
|
407
|
+
removeAction
|
|
408
|
+
] }),
|
|
409
|
+
children
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
};
|
|
414
|
+
var styles6 = StyleSheet.create({
|
|
415
|
+
cell: { flexBasis: 0, flexShrink: 1, minWidth: 0 },
|
|
416
|
+
row: {
|
|
417
|
+
flexDirection: "row",
|
|
418
|
+
gap: FORM_GRID_DEFAULT_GAP,
|
|
419
|
+
paddingHorizontal: LINE_ITEMS_CARD_PADDING + LINE_ITEMS_CARD_BORDER
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
var LineItemsColumnHeaders = ({ columns, testID }) => {
|
|
423
|
+
const { theme } = useUi();
|
|
424
|
+
const labelStyle = [resolveLabelVariantStyle(), { color: theme.colors.textSecondary }];
|
|
425
|
+
return /* @__PURE__ */ jsx(View, { style: styles6.row, testID, children: columns.map((column) => /* @__PURE__ */ jsx(View, { style: [styles6.cell, { flexGrow: lineItemColumnFlex(column) }], children: /* @__PURE__ */ jsx(Text, { style: labelStyle, children: column.label }) }, column.key)) });
|
|
426
|
+
};
|
|
427
|
+
var styles7 = StyleSheet.create({
|
|
428
|
+
add: { alignSelf: "flex-start" },
|
|
429
|
+
cell: { flexBasis: 0, flexShrink: 1, minWidth: 0 },
|
|
430
|
+
list: { gap: FORM_GRID_DEFAULT_GAP },
|
|
431
|
+
wideRow: { alignItems: "flex-start", flexDirection: "row", gap: FORM_GRID_DEFAULT_GAP }
|
|
432
|
+
});
|
|
433
|
+
function LineItems({
|
|
434
|
+
items,
|
|
435
|
+
getKey,
|
|
436
|
+
columns,
|
|
437
|
+
renderCell,
|
|
438
|
+
lineLabel,
|
|
439
|
+
labels,
|
|
440
|
+
testID,
|
|
441
|
+
renderLineHeader,
|
|
442
|
+
onAdd,
|
|
443
|
+
onRemove,
|
|
444
|
+
minItems,
|
|
445
|
+
wideMinWidth
|
|
446
|
+
}) {
|
|
447
|
+
const { width } = useWindowDimensions();
|
|
448
|
+
const wide = isLineItemsWide(width, wideMinWidth);
|
|
449
|
+
const removable = onRemove !== void 0 && canRemoveLine(items.length, minItems);
|
|
450
|
+
const renderCells = (item, index) => {
|
|
451
|
+
if (wide)
|
|
452
|
+
return /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style: styles7.wideRow, children: columns.map((column) => /* @__PURE__ */ jsx(View, { style: [styles7.cell, { flexGrow: lineItemColumnFlex(column) }], children: renderCell({ item, index, columnKey: column.key, wide }) }, column.key)) }) });
|
|
453
|
+
return /* @__PURE__ */ jsx(FormGrid, { children: columns.map((column) => /* @__PURE__ */ jsx(FormCell, { children: renderCell({ item, index, columnKey: column.key, wide }) }, column.key)) });
|
|
454
|
+
};
|
|
455
|
+
return /* @__PURE__ */ jsxs(View, { style: styles7.list, testID, children: [
|
|
456
|
+
wide ? /* @__PURE__ */ jsx(LineItemsColumnHeaders, { columns, testID: `${testID}-columns` }) : null,
|
|
457
|
+
items.map((item, index) => {
|
|
458
|
+
const lineNumber = lineNumberOf(index);
|
|
459
|
+
const lineTestID = `${testID}-line-${String(lineNumber)}`;
|
|
460
|
+
const removeAction = removable ? /* @__PURE__ */ jsx(
|
|
461
|
+
Button,
|
|
462
|
+
{
|
|
463
|
+
accessibilityHint: labels.removeHint,
|
|
464
|
+
accessibilityLabel: labels.remove(lineNumber),
|
|
465
|
+
label: labels.remove(lineNumber),
|
|
466
|
+
testID: `${lineTestID}-remove`,
|
|
467
|
+
variant: "ghost",
|
|
468
|
+
onPress: () => onRemove(index)
|
|
469
|
+
}
|
|
470
|
+
) : void 0;
|
|
471
|
+
return /* @__PURE__ */ jsx(
|
|
472
|
+
LineItemCard,
|
|
473
|
+
{
|
|
474
|
+
header: renderLineHeader?.(item, index),
|
|
475
|
+
removeAction,
|
|
476
|
+
testID: lineTestID,
|
|
477
|
+
title: lineLabel(lineNumber),
|
|
478
|
+
children: renderCells(item, index)
|
|
479
|
+
},
|
|
480
|
+
getKey(item, index)
|
|
481
|
+
);
|
|
482
|
+
}),
|
|
483
|
+
onAdd !== void 0 ? /* @__PURE__ */ jsx(View, { style: styles7.add, children: /* @__PURE__ */ jsx(
|
|
484
|
+
Button,
|
|
485
|
+
{
|
|
486
|
+
accessibilityHint: labels.addHint,
|
|
487
|
+
accessibilityLabel: labels.add,
|
|
488
|
+
label: labels.add,
|
|
489
|
+
testID: `${testID}-add`,
|
|
490
|
+
variant: "secondary",
|
|
491
|
+
onPress: onAdd
|
|
492
|
+
}
|
|
493
|
+
) }) : null
|
|
494
|
+
] });
|
|
495
|
+
}
|
|
496
|
+
var styles8 = StyleSheet.create({
|
|
362
497
|
stack: { flexDirection: "column" }
|
|
363
498
|
});
|
|
364
499
|
var FormStack = ({
|
|
@@ -366,7 +501,7 @@ var FormStack = ({
|
|
|
366
501
|
gap = FORM_GRID_DEFAULT_GAP,
|
|
367
502
|
style,
|
|
368
503
|
testID
|
|
369
|
-
}) => /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style: [
|
|
504
|
+
}) => /* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsx(View, { style: [styles8.stack, { gap }, style], testID, children }) });
|
|
370
505
|
|
|
371
506
|
// src/ResponsiveFormLayout/isWideFormLayout.ts
|
|
372
507
|
var RESPONSIVE_FORM_DEFAULT_BREAKPOINT = 768;
|
|
@@ -383,7 +518,7 @@ function ResponsiveFormLayout({
|
|
|
383
518
|
}
|
|
384
519
|
var SECTION_GAP = 10;
|
|
385
520
|
var DESCRIPTION_FONT_SIZE = 12;
|
|
386
|
-
var
|
|
521
|
+
var styles9 = StyleSheet.create({
|
|
387
522
|
section: {
|
|
388
523
|
gap: SECTION_GAP
|
|
389
524
|
},
|
|
@@ -418,7 +553,7 @@ var FormSection = ({
|
|
|
418
553
|
// The section spaces its children with `gap`, so it owns their vertical rhythm exactly as a
|
|
419
554
|
// `FormGrid` owns a row's — without this a `Field` placed directly in a section would stack its
|
|
420
555
|
// 16px margin on the section's gap and recreate the F3 bug one level up.
|
|
421
|
-
/* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsxs(View, { role: "group", style: [
|
|
556
|
+
/* @__PURE__ */ jsx(GapOwnedProvider, { value: true, children: /* @__PURE__ */ jsxs(View, { role: "group", style: [styles9.section, style], testID, ...a11y, children: [
|
|
422
557
|
hasTitle ? /* @__PURE__ */ jsx(
|
|
423
558
|
Text,
|
|
424
559
|
{
|
|
@@ -427,13 +562,13 @@ var FormSection = ({
|
|
|
427
562
|
children: title
|
|
428
563
|
}
|
|
429
564
|
) : null,
|
|
430
|
-
hasDescription ? /* @__PURE__ */ jsx(Text, { style: [
|
|
565
|
+
hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles9.description, { color: colors.textSecondary }], children: description }) : null,
|
|
431
566
|
children
|
|
432
567
|
] }) })
|
|
433
568
|
);
|
|
434
569
|
};
|
|
435
570
|
var ACTIONS_GAP = 12;
|
|
436
|
-
var
|
|
571
|
+
var styles10 = StyleSheet.create({
|
|
437
572
|
container: {
|
|
438
573
|
flexDirection: "row",
|
|
439
574
|
justifyContent: "flex-end",
|
|
@@ -453,7 +588,7 @@ var FormActions = ({
|
|
|
453
588
|
saveTestID = "save-button",
|
|
454
589
|
cancelTestID = "cancel-button",
|
|
455
590
|
testID
|
|
456
|
-
}) => /* @__PURE__ */ jsxs(View, { style: [
|
|
591
|
+
}) => /* @__PURE__ */ jsxs(View, { style: [styles10.container, containerStyle], testID, children: [
|
|
457
592
|
typeof onCancel === "function" ? /* @__PURE__ */ jsx(
|
|
458
593
|
Button,
|
|
459
594
|
{
|
|
@@ -574,7 +709,7 @@ var DETAIL_FONT = 12;
|
|
|
574
709
|
var DETAIL_GAP = 12;
|
|
575
710
|
var STACK_GAP = 2;
|
|
576
711
|
var DETAIL_BESIDE_MIN_MENU_WIDTH = 400;
|
|
577
|
-
var
|
|
712
|
+
var styles11 = StyleSheet.create({
|
|
578
713
|
beside: { alignItems: "baseline", flexDirection: "row", gap: DETAIL_GAP, justifyContent: "space-between" },
|
|
579
714
|
stacked: { gap: STACK_GAP },
|
|
580
715
|
shrink: { flexShrink: 1 },
|
|
@@ -609,9 +744,9 @@ function OptionRow({ option, isActive, isHighlighted, isListboxRow, menuWidth, h
|
|
|
609
744
|
onPress: () => onSelect(option.value),
|
|
610
745
|
style: [controlStyles.option, isHighlighted ? { backgroundColor: colors.text } : null],
|
|
611
746
|
testID: `${testID}-option-${option.value}`,
|
|
612
|
-
children: /* @__PURE__ */ jsxs(View, { style: isDetailBesideTitle(menuWidth) ?
|
|
613
|
-
/* @__PURE__ */ jsx(Text, { style: [controlStyles.optionText,
|
|
614
|
-
hasDetail ? /* @__PURE__ */ jsx(Text, { style: [
|
|
747
|
+
children: /* @__PURE__ */ jsxs(View, { style: isDetailBesideTitle(menuWidth) ? styles11.beside : styles11.stacked, children: [
|
|
748
|
+
/* @__PURE__ */ jsx(Text, { style: [controlStyles.optionText, styles11.shrink, { color: ink.title, fontWeight: isBold ? ACTIVE_WEIGHT : IDLE_WEIGHT }], children: option.label }),
|
|
749
|
+
hasDetail ? /* @__PURE__ */ jsx(Text, { style: [styles11.detail, { color: ink.detail }], children: option.detail }) : null
|
|
615
750
|
] })
|
|
616
751
|
}
|
|
617
752
|
);
|
|
@@ -1433,7 +1568,7 @@ function chipIdentity(option, selected, config) {
|
|
|
1433
1568
|
ariaChecked: isRadio ? selected : void 0
|
|
1434
1569
|
};
|
|
1435
1570
|
}
|
|
1436
|
-
var
|
|
1571
|
+
var styles12 = StyleSheet.create({
|
|
1437
1572
|
chipContainer: {
|
|
1438
1573
|
flexDirection: "row",
|
|
1439
1574
|
flexWrap: "wrap",
|
|
@@ -1519,7 +1654,7 @@ var ChipSelector = ({
|
|
|
1519
1654
|
View,
|
|
1520
1655
|
{
|
|
1521
1656
|
accessibilityRole: isRadioGroup ? "radiogroup" : void 0,
|
|
1522
|
-
style:
|
|
1657
|
+
style: styles12.chipContainer,
|
|
1523
1658
|
...webFieldA11y({ describedById, hasError }),
|
|
1524
1659
|
...radio.groupProps,
|
|
1525
1660
|
children: options.map(renderChip)
|
|
@@ -1529,7 +1664,7 @@ var ChipSelector = ({
|
|
|
1529
1664
|
);
|
|
1530
1665
|
};
|
|
1531
1666
|
var DESCRIPTION_FONT_SIZE2 = 12;
|
|
1532
|
-
var
|
|
1667
|
+
var styles13 = StyleSheet.create({
|
|
1533
1668
|
container: {
|
|
1534
1669
|
flexDirection: "row",
|
|
1535
1670
|
justifyContent: "space-between",
|
|
@@ -1590,15 +1725,15 @@ var FormSwitch = ({
|
|
|
1590
1725
|
accessible: false,
|
|
1591
1726
|
disabled,
|
|
1592
1727
|
onPress: toggle,
|
|
1593
|
-
style: [
|
|
1728
|
+
style: [styles13.container, containerStyle],
|
|
1594
1729
|
tabIndex: -1,
|
|
1595
1730
|
testID: `${testID}-row`,
|
|
1596
1731
|
children: [
|
|
1597
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
1598
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
1599
|
-
hasDescription ? /* @__PURE__ */ jsx(Text, { style: [
|
|
1732
|
+
/* @__PURE__ */ jsxs(View, { style: styles13.textColumn, children: [
|
|
1733
|
+
/* @__PURE__ */ jsx(Text, { style: [styles13.label, themeStyles.label], children: label }),
|
|
1734
|
+
hasDescription ? /* @__PURE__ */ jsx(Text, { style: [styles13.description, themeStyles.description], children: description }) : null
|
|
1600
1735
|
] }),
|
|
1601
|
-
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style:
|
|
1736
|
+
/* @__PURE__ */ jsx(View, { pointerEvents: "none", style: styles13.switchSlot, testID: `${testID}-hitbox`, children: /* @__PURE__ */ jsx(
|
|
1602
1737
|
Switch,
|
|
1603
1738
|
{
|
|
1604
1739
|
accessibilityHint: accessibilityHint ?? label,
|
|
@@ -1627,7 +1762,7 @@ var DISABLED_OPACITY = 0.5;
|
|
|
1627
1762
|
var FOCUS_RING_WIDTH = 2;
|
|
1628
1763
|
var WEB_NO_DEFAULT_OUTLINE = { outlineStyle: "none" };
|
|
1629
1764
|
var FOCUS_RING_INSET = -6;
|
|
1630
|
-
var
|
|
1765
|
+
var styles14 = StyleSheet.create({
|
|
1631
1766
|
container: {
|
|
1632
1767
|
flexDirection: "row",
|
|
1633
1768
|
alignItems: "flex-start",
|
|
@@ -1732,8 +1867,8 @@ var FormCheckbox = ({
|
|
|
1732
1867
|
onPress: toggle,
|
|
1733
1868
|
role: "checkbox",
|
|
1734
1869
|
style: [
|
|
1735
|
-
|
|
1736
|
-
hasHint ? null :
|
|
1870
|
+
styles14.container,
|
|
1871
|
+
hasHint ? null : styles14.centered,
|
|
1737
1872
|
containerStyle,
|
|
1738
1873
|
disabled ? { opacity: DISABLED_OPACITY } : null,
|
|
1739
1874
|
Platform.OS === "web" ? WEB_NO_DEFAULT_OUTLINE : null
|
|
@@ -1741,13 +1876,13 @@ var FormCheckbox = ({
|
|
|
1741
1876
|
testID,
|
|
1742
1877
|
...keyboardProps,
|
|
1743
1878
|
children: [
|
|
1744
|
-
/* @__PURE__ */ jsxs(View, { style: [
|
|
1745
|
-
focused ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [
|
|
1746
|
-
value ? /* @__PURE__ */ jsx(Text, { style: [
|
|
1879
|
+
/* @__PURE__ */ jsxs(View, { style: [styles14.box, value ? themeStyles.boxOn : themeStyles.boxOff], testID: `${testID}-box`, children: [
|
|
1880
|
+
focused ? /* @__PURE__ */ jsx(View, { pointerEvents: "none", style: [styles14.focusRing, themeStyles.ring], testID: `${testID}-focus-ring` }) : null,
|
|
1881
|
+
value ? /* @__PURE__ */ jsx(Text, { style: [styles14.check, { color: colors.surface }], accessibilityElementsHidden: true, children: "\u2713" }) : null
|
|
1747
1882
|
] }),
|
|
1748
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
1749
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
1750
|
-
hasHint ? /* @__PURE__ */ jsx(Text, { nativeID: hintId, style: [
|
|
1883
|
+
/* @__PURE__ */ jsxs(View, { style: styles14.textColumn, children: [
|
|
1884
|
+
/* @__PURE__ */ jsx(Text, { style: [styles14.label, themeStyles.label], children: label }),
|
|
1885
|
+
hasHint ? /* @__PURE__ */ jsx(Text, { nativeID: hintId, style: [styles14.hint, themeStyles.hint], children: hintText }) : null
|
|
1751
1886
|
] })
|
|
1752
1887
|
]
|
|
1753
1888
|
}
|
|
@@ -2297,7 +2432,7 @@ var ROW_GAP = 4;
|
|
|
2297
2432
|
var TAB_PADDING = 4;
|
|
2298
2433
|
var INDICATOR_WIDTH = 2;
|
|
2299
2434
|
var TAB_FONT_SIZE = 12;
|
|
2300
|
-
var
|
|
2435
|
+
var styles15 = StyleSheet.create({
|
|
2301
2436
|
row: { flexDirection: "row", flexWrap: "nowrap", gap: ROW_GAP },
|
|
2302
2437
|
tab: {
|
|
2303
2438
|
borderBottomWidth: INDICATOR_WIDTH,
|
|
@@ -2337,13 +2472,13 @@ var StepperTab = ({
|
|
|
2337
2472
|
accessibilityRole: "tab",
|
|
2338
2473
|
accessibilityState: { selected },
|
|
2339
2474
|
"aria-selected": selected,
|
|
2340
|
-
style: [
|
|
2475
|
+
style: [styles15.tab, { borderBottomColor: indicator }, ring.ringStyle],
|
|
2341
2476
|
testID,
|
|
2342
2477
|
onBlur: ring.onBlur,
|
|
2343
2478
|
onFocus: ring.onFocus,
|
|
2344
2479
|
onPress: () => onStep(step.key),
|
|
2345
2480
|
...webKeyProps,
|
|
2346
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
2481
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles15.text, { color: theme.colors.text }, selected ? styles15.textSelected : void 0], children: step.label })
|
|
2347
2482
|
}
|
|
2348
2483
|
);
|
|
2349
2484
|
};
|
|
@@ -2353,7 +2488,7 @@ var StepperTabs = ({
|
|
|
2353
2488
|
onStep,
|
|
2354
2489
|
stepHint,
|
|
2355
2490
|
testID
|
|
2356
|
-
}) => /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", style:
|
|
2491
|
+
}) => /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", style: styles15.row, testID, children: steps.map((step) => /* @__PURE__ */ jsx(
|
|
2357
2492
|
StepperTab,
|
|
2358
2493
|
{
|
|
2359
2494
|
hint: stepHint,
|
|
@@ -2372,7 +2507,7 @@ function resolveStepNeighbours(steps, current) {
|
|
|
2372
2507
|
return { previous: steps[index - 1] ?? null, next: steps[index + 1] ?? null };
|
|
2373
2508
|
}
|
|
2374
2509
|
var ROW_GAP2 = 8;
|
|
2375
|
-
var
|
|
2510
|
+
var styles16 = StyleSheet.create({
|
|
2376
2511
|
cell: { flex: 1, minWidth: 0 },
|
|
2377
2512
|
row: { flexDirection: "row", gap: ROW_GAP2 }
|
|
2378
2513
|
});
|
|
@@ -2384,8 +2519,8 @@ var StepperNav = ({
|
|
|
2384
2519
|
testID
|
|
2385
2520
|
}) => {
|
|
2386
2521
|
const { previous, next } = resolveStepNeighbours(steps, current);
|
|
2387
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
2388
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
2522
|
+
return /* @__PURE__ */ jsxs(View, { style: styles16.row, testID, children: [
|
|
2523
|
+
/* @__PURE__ */ jsx(View, { style: styles16.cell, children: /* @__PURE__ */ jsx(
|
|
2389
2524
|
Button,
|
|
2390
2525
|
{
|
|
2391
2526
|
fullWidth: true,
|
|
@@ -2401,7 +2536,7 @@ var StepperNav = ({
|
|
|
2401
2536
|
}
|
|
2402
2537
|
}
|
|
2403
2538
|
) }),
|
|
2404
|
-
next === null ? null : /* @__PURE__ */ jsx(View, { style:
|
|
2539
|
+
next === null ? null : /* @__PURE__ */ jsx(View, { style: styles16.cell, children: /* @__PURE__ */ jsx(
|
|
2405
2540
|
Button,
|
|
2406
2541
|
{
|
|
2407
2542
|
fullWidth: true,
|
|
@@ -2416,13 +2551,13 @@ var StepperNav = ({
|
|
|
2416
2551
|
] });
|
|
2417
2552
|
};
|
|
2418
2553
|
var STATUS_FONT = 16;
|
|
2419
|
-
var
|
|
2554
|
+
var styles17 = StyleSheet.create({
|
|
2420
2555
|
line: { fontSize: STATUS_FONT }
|
|
2421
2556
|
});
|
|
2422
2557
|
function FormStatusLine({ message, testID, style }) {
|
|
2423
2558
|
const { theme } = useUi();
|
|
2424
2559
|
if (message === null || message === void 0 || message === "") return null;
|
|
2425
|
-
return /* @__PURE__ */ jsx(Text, { role: "alert", style: [
|
|
2560
|
+
return /* @__PURE__ */ jsx(Text, { role: "alert", style: [styles17.line, { color: theme.colors.text }, style], testID, children: message });
|
|
2426
2561
|
}
|
|
2427
2562
|
function useFocusFirstInvalid(refs) {
|
|
2428
2563
|
const latest = useRef(refs);
|
|
@@ -2449,7 +2584,7 @@ var PREVIEW_RADIUS = 8;
|
|
|
2449
2584
|
var GAP = 8;
|
|
2450
2585
|
var TITLE_FONT_SIZE = 14;
|
|
2451
2586
|
var HELP_FONT_SIZE = 13;
|
|
2452
|
-
var
|
|
2587
|
+
var styles18 = StyleSheet.create({
|
|
2453
2588
|
help: { flex: 1, fontSize: HELP_FONT_SIZE },
|
|
2454
2589
|
root: { gap: GAP },
|
|
2455
2590
|
tile: { alignItems: "center", flexDirection: "row", gap: GAP },
|
|
@@ -2471,11 +2606,11 @@ var UploadWithLinkField = ({
|
|
|
2471
2606
|
const url = value ?? "";
|
|
2472
2607
|
const [pasting, setPasting] = useState(url !== "");
|
|
2473
2608
|
const previewBox = { borderRadius: PREVIEW_RADIUS, height: previewSize, width: previewSize };
|
|
2474
|
-
return /* @__PURE__ */ jsxs(View, { style:
|
|
2475
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2476
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
2609
|
+
return /* @__PURE__ */ jsxs(View, { style: styles18.root, children: [
|
|
2610
|
+
/* @__PURE__ */ jsx(Text, { style: [styles18.title, { color: theme.colors.text }], children: labels.title }),
|
|
2611
|
+
/* @__PURE__ */ jsxs(View, { style: styles18.tile, children: [
|
|
2477
2612
|
url === "" ? /* @__PURE__ */ jsx(View, { style: [previewBox, { backgroundColor: theme.colors.border }] }) : /* @__PURE__ */ jsx(Image, { accessible: false, source: { uri: url }, style: previewBox, testID: `${testID}-preview` }),
|
|
2478
|
-
labels.help === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [
|
|
2613
|
+
labels.help === void 0 ? null : /* @__PURE__ */ jsx(Text, { style: [styles18.help, { color: theme.colors.text }], children: labels.help })
|
|
2479
2614
|
] }),
|
|
2480
2615
|
uploadControl,
|
|
2481
2616
|
/* @__PURE__ */ jsx(
|
|
@@ -2486,12 +2621,12 @@ var UploadWithLinkField = ({
|
|
|
2486
2621
|
accessibilityRole: "button",
|
|
2487
2622
|
accessibilityState: { expanded: pasting },
|
|
2488
2623
|
"aria-expanded": pasting,
|
|
2489
|
-
style: [
|
|
2624
|
+
style: [styles18.toggle, ring.ringStyle],
|
|
2490
2625
|
testID: `${testID}-paste`,
|
|
2491
2626
|
onBlur: ring.onBlur,
|
|
2492
2627
|
onFocus: ring.onFocus,
|
|
2493
2628
|
onPress: () => setPasting(!pasting),
|
|
2494
|
-
children: /* @__PURE__ */ jsx(Text, { style: [
|
|
2629
|
+
children: /* @__PURE__ */ jsx(Text, { style: [styles18.toggleText, { color: theme.colors.text }], children: labels.pasteToggle })
|
|
2495
2630
|
}
|
|
2496
2631
|
),
|
|
2497
2632
|
pasting ? /* @__PURE__ */ jsx(
|
|
@@ -2510,7 +2645,7 @@ var UploadWithLinkField = ({
|
|
|
2510
2645
|
};
|
|
2511
2646
|
var ACTION_GAP = 8;
|
|
2512
2647
|
var GROUP_GAP = 16;
|
|
2513
|
-
var
|
|
2648
|
+
var styles19 = StyleSheet.create({
|
|
2514
2649
|
action: { alignItems: "flex-start", marginTop: ACTION_GAP },
|
|
2515
2650
|
group: { marginBottom: GROUP_GAP }
|
|
2516
2651
|
});
|
|
@@ -2533,7 +2668,7 @@ var AddOnRequest = ({
|
|
|
2533
2668
|
onRemove();
|
|
2534
2669
|
};
|
|
2535
2670
|
if (!isAddOnOpen(hasValue, requested))
|
|
2536
|
-
return /* @__PURE__ */ jsx(View, { style: [
|
|
2671
|
+
return /* @__PURE__ */ jsx(View, { style: [styles19.action, style], children: /* @__PURE__ */ jsx(
|
|
2537
2672
|
Button,
|
|
2538
2673
|
{
|
|
2539
2674
|
accessibilityHint: addHint,
|
|
@@ -2545,9 +2680,9 @@ var AddOnRequest = ({
|
|
|
2545
2680
|
onPress: () => setRequested(true)
|
|
2546
2681
|
}
|
|
2547
2682
|
) });
|
|
2548
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
2683
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles19.group, style], testID, children: [
|
|
2549
2684
|
children,
|
|
2550
|
-
/* @__PURE__ */ jsx(View, { style:
|
|
2685
|
+
/* @__PURE__ */ jsx(View, { style: styles19.action, children: /* @__PURE__ */ jsx(
|
|
2551
2686
|
Button,
|
|
2552
2687
|
{
|
|
2553
2688
|
accessibilityHint: removeHint,
|
|
@@ -2564,7 +2699,7 @@ var AddOnRequest = ({
|
|
|
2564
2699
|
var ROW_GAP3 = 8;
|
|
2565
2700
|
var TEXT_SIZE = 13;
|
|
2566
2701
|
var TEXT_LINE = 18;
|
|
2567
|
-
var
|
|
2702
|
+
var styles20 = StyleSheet.create({
|
|
2568
2703
|
row: { alignItems: "center", columnGap: ROW_GAP3, flexDirection: "row", justifyContent: "space-between" },
|
|
2569
2704
|
text: { flexShrink: 1, fontSize: TEXT_SIZE, fontWeight: "700", lineHeight: TEXT_LINE }
|
|
2570
2705
|
});
|
|
@@ -2572,8 +2707,8 @@ var isFixBarVisible = (count) => count > 0;
|
|
|
2572
2707
|
var FixBar = ({ count, message, showLabel, showHint, onShow, testID, style }) => {
|
|
2573
2708
|
const { theme } = useUi();
|
|
2574
2709
|
if (!isFixBarVisible(count)) return null;
|
|
2575
|
-
return /* @__PURE__ */ jsxs(View, { style: [
|
|
2576
|
-
/* @__PURE__ */ jsx(Text, { role: "alert", style: [
|
|
2710
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles20.row, style], testID, children: [
|
|
2711
|
+
/* @__PURE__ */ jsx(Text, { role: "alert", style: [styles20.text, { color: fieldErrorInk(theme) }], testID: `${testID}-count`, children: message }),
|
|
2577
2712
|
/* @__PURE__ */ jsx(
|
|
2578
2713
|
Button,
|
|
2579
2714
|
{
|
|
@@ -2637,10 +2772,10 @@ function DropdownSurface({ progress, translateY, anchorRef, onDismiss, closeLabe
|
|
|
2637
2772
|
const place = frame === null ? null : { left: frame.left, width: frame.width, top: frame.top, bottom: frame.bottom };
|
|
2638
2773
|
return /* @__PURE__ */ jsxs(Modal, { transparent: true, visible: true, animationType: "none", onRequestClose: onDismiss, children: [
|
|
2639
2774
|
/* @__PURE__ */ jsx(Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
|
|
2640
|
-
frame !== null ? /* @__PURE__ */ jsx(Animated.View, { style: [
|
|
2775
|
+
frame !== null ? /* @__PURE__ */ jsx(Animated.View, { style: [styles21.dropdown, place, { opacity: progress, transform: [{ translateY }] }], testID: `${testID}-dropdown-${frame.placement}`, onLayout, children }) : null
|
|
2641
2776
|
] });
|
|
2642
2777
|
}
|
|
2643
|
-
var
|
|
2778
|
+
var styles21 = StyleSheet.create({
|
|
2644
2779
|
dropdown: { position: "absolute" }
|
|
2645
2780
|
});
|
|
2646
2781
|
var ROW_PAD_H = 12;
|
|
@@ -2660,21 +2795,21 @@ function OptionRow2({ option, active, current, renderLeading, renderDetail, onPi
|
|
|
2660
2795
|
accessibilityLabel: option.label,
|
|
2661
2796
|
accessibilityRole: "button",
|
|
2662
2797
|
accessibilityState: { selected: active, checked: current },
|
|
2663
|
-
style: [
|
|
2798
|
+
style: [styles22.row, active ? { backgroundColor: colors.surface } : null],
|
|
2664
2799
|
testID: `${testID}-option-${option.value}`,
|
|
2665
2800
|
onPress: () => onPick(option),
|
|
2666
2801
|
children: [
|
|
2667
2802
|
renderLeading?.(option),
|
|
2668
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
2669
|
-
/* @__PURE__ */ jsx(Text, { style: [
|
|
2670
|
-
detailBelow ? /* @__PURE__ */ jsx(Text, { style: [
|
|
2803
|
+
/* @__PURE__ */ jsxs(View, { style: styles22.label, children: [
|
|
2804
|
+
/* @__PURE__ */ jsx(Text, { style: [styles22.primary, { color: colors.text }], children: option.label }),
|
|
2805
|
+
detailBelow ? /* @__PURE__ */ jsx(Text, { style: [styles22.secondary, { color: colors.textSecondary }], children: option.detail }) : null
|
|
2671
2806
|
] }),
|
|
2672
2807
|
renderDetail?.(option)
|
|
2673
2808
|
]
|
|
2674
2809
|
}
|
|
2675
2810
|
);
|
|
2676
2811
|
}
|
|
2677
|
-
var
|
|
2812
|
+
var styles22 = StyleSheet.create({
|
|
2678
2813
|
row: { minHeight: MIN_TOUCH_TARGET_PX, flexDirection: "row", alignItems: "center", gap: ROW_GAP4, paddingHorizontal: ROW_PAD_H },
|
|
2679
2814
|
label: { flex: 1 },
|
|
2680
2815
|
primary: { fontSize: OPTION_FONT2, flexShrink: 1 },
|
|
@@ -2688,20 +2823,20 @@ function OptionSection({ title, options, offset, highlight, selectedValue, ...ro
|
|
|
2688
2823
|
const { colors } = theme;
|
|
2689
2824
|
if (options.length === 0) return null;
|
|
2690
2825
|
return /* @__PURE__ */ jsxs(View, { children: [
|
|
2691
|
-
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [
|
|
2826
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles23.header, { color: colors.textSecondary }], children: title }),
|
|
2692
2827
|
options.map((option, index) => /* @__PURE__ */ jsx(OptionRow2, { ...row, active: offset + index === highlight, current: option.value === selectedValue, option }, option.value))
|
|
2693
2828
|
] });
|
|
2694
2829
|
}
|
|
2695
|
-
var
|
|
2830
|
+
var styles23 = StyleSheet.create({
|
|
2696
2831
|
header: { fontSize: HEADER_FONT, paddingHorizontal: ROW_PAD_H2, paddingTop: ROW_GAP5, textTransform: "uppercase" }
|
|
2697
2832
|
});
|
|
2698
2833
|
function SheetSurface({ translateY, onDismiss, closeLabel, closeHint, testID, children }) {
|
|
2699
|
-
return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: true, animationType: "none", onRequestClose: onDismiss, children: /* @__PURE__ */ jsxs(View, { style:
|
|
2834
|
+
return /* @__PURE__ */ jsx(Modal, { transparent: true, visible: true, animationType: "none", onRequestClose: onDismiss, children: /* @__PURE__ */ jsxs(View, { style: styles24.backdrop, children: [
|
|
2700
2835
|
/* @__PURE__ */ jsx(Pressable, { accessibilityHint: closeHint, accessibilityLabel: closeLabel, accessibilityRole: "button", style: StyleSheet.absoluteFill, testID: `${testID}-backdrop`, onPress: onDismiss }),
|
|
2701
2836
|
/* @__PURE__ */ jsx(Animated.View, { style: { transform: [{ translateY }] }, children })
|
|
2702
2837
|
] }) });
|
|
2703
2838
|
}
|
|
2704
|
-
var
|
|
2839
|
+
var styles24 = StyleSheet.create({
|
|
2705
2840
|
backdrop: { flex: 1, justifyContent: "flex-end" }
|
|
2706
2841
|
});
|
|
2707
2842
|
var KEY_ESCAPE = "Escape";
|
|
@@ -2731,7 +2866,7 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
|
|
|
2731
2866
|
const translateY = progress.interpolate({ inputRange: [0, 1], outputRange: [motion.fromY, 0] });
|
|
2732
2867
|
const isSheet = motion.surface === "sheet" /* Sheet */;
|
|
2733
2868
|
const shared = { selectedValue, renderLeading, renderDetail, onPick: pick, optionHint: labels.optionHint, testID, highlight };
|
|
2734
|
-
const list = /* @__PURE__ */ jsxs(View, { style: [
|
|
2869
|
+
const list = /* @__PURE__ */ jsxs(View, { style: [styles25.panel, { backgroundColor: colors.surfaceElevated, borderColor: colors.border }], testID: `${testID}-panel`, children: [
|
|
2735
2870
|
/* @__PURE__ */ jsx(
|
|
2736
2871
|
TextInput,
|
|
2737
2872
|
{
|
|
@@ -2748,16 +2883,16 @@ function SearchSelectPanel({ motion, state, labels, anchorRef, renderLeading, re
|
|
|
2748
2883
|
onSubmitEditing: submit
|
|
2749
2884
|
}
|
|
2750
2885
|
),
|
|
2751
|
-
/* @__PURE__ */ jsxs(ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ?
|
|
2886
|
+
/* @__PURE__ */ jsxs(ScrollView, { keyboardShouldPersistTaps: "handled", style: isSheet ? styles25.sheetList : styles25.dropList, children: [
|
|
2752
2887
|
/* @__PURE__ */ jsx(OptionSection, { ...shared, offset: 0, options: sections.recent, title: labels.recent }),
|
|
2753
2888
|
/* @__PURE__ */ jsx(OptionSection, { ...shared, offset: sections.recent.length, options: sections.all, title: labels.all }),
|
|
2754
|
-
sections.flat.length === 0 ? /* @__PURE__ */ jsx(Text, { style: [
|
|
2889
|
+
sections.flat.length === 0 ? /* @__PURE__ */ jsx(Text, { style: [styles25.empty, { color: colors.textSecondary }], children: labels.empty }) : null
|
|
2755
2890
|
] })
|
|
2756
2891
|
] });
|
|
2757
2892
|
if (!isSheet) return /* @__PURE__ */ jsx(DropdownSurface, { anchorRef, closeHint: labels.closeHint, closeLabel: labels.close, progress, testID, translateY, onDismiss: dismiss, children: list });
|
|
2758
2893
|
return /* @__PURE__ */ jsx(SheetSurface, { closeHint: labels.closeHint, closeLabel: labels.close, testID, translateY, onDismiss: dismiss, children: list });
|
|
2759
2894
|
}
|
|
2760
|
-
var
|
|
2895
|
+
var styles25 = StyleSheet.create({
|
|
2761
2896
|
panel: { borderWidth: 1, borderRadius: PANEL_RADIUS, padding: PANEL_PAD, gap: PANEL_PAD },
|
|
2762
2897
|
dropList: { maxHeight: MENU_MAX_HEIGHT },
|
|
2763
2898
|
sheetList: { maxHeight: SHEET_MAX_HEIGHT },
|
|
@@ -2882,7 +3017,7 @@ function SearchSelect(props) {
|
|
|
2882
3017
|
const onTriggerBlur = useCallback(() => {
|
|
2883
3018
|
if (!openRef.current) onBlur?.();
|
|
2884
3019
|
}, [onBlur]);
|
|
2885
|
-
return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style:
|
|
3020
|
+
return /* @__PURE__ */ jsxs(View, { ref: anchorRef, style: styles26.anchor, children: [
|
|
2886
3021
|
/* @__PURE__ */ jsx(
|
|
2887
3022
|
Pressable,
|
|
2888
3023
|
{
|
|
@@ -2891,7 +3026,7 @@ function SearchSelect(props) {
|
|
|
2891
3026
|
accessibilityLabel,
|
|
2892
3027
|
accessibilityRole: "button",
|
|
2893
3028
|
accessibilityState: { expanded: state.open },
|
|
2894
|
-
style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] :
|
|
3029
|
+
style: renderTrigger === void 0 ? [controlStyles.selectTrigger, { borderColor: colors.border, backgroundColor: colors.surfaceElevated }] : styles26.customTrigger,
|
|
2895
3030
|
testID,
|
|
2896
3031
|
onBlur: onTriggerBlur,
|
|
2897
3032
|
onPress,
|
|
@@ -2903,7 +3038,7 @@ function SearchSelect(props) {
|
|
|
2903
3038
|
}
|
|
2904
3039
|
function FieldBoxContent({ selected, placeholder, colors, renderLeading, renderDetail }) {
|
|
2905
3040
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2906
|
-
/* @__PURE__ */ jsxs(View, { style:
|
|
3041
|
+
/* @__PURE__ */ jsxs(View, { style: styles26.value, children: [
|
|
2907
3042
|
selected !== null && renderLeading !== void 0 ? renderLeading(selected) : null,
|
|
2908
3043
|
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [controlStyles.selectTriggerText, { color: selected === null ? colors.textSecondary : colors.text }], children: selected?.label ?? placeholder }),
|
|
2909
3044
|
selected !== null ? /* @__PURE__ */ jsx(SelectedDetail, { colors, option: selected, renderDetail }) : null
|
|
@@ -2916,7 +3051,7 @@ function SelectedDetail({ option, colors, renderDetail }) {
|
|
|
2916
3051
|
if (option.detail === void 0) return null;
|
|
2917
3052
|
return /* @__PURE__ */ jsx(Text, { style: [controlStyles.selectTriggerText, { color: colors.textSecondary }], children: option.detail });
|
|
2918
3053
|
}
|
|
2919
|
-
var
|
|
3054
|
+
var styles26 = StyleSheet.create({
|
|
2920
3055
|
anchor: { position: "relative" },
|
|
2921
3056
|
customTrigger: { minHeight: MIN_TOUCH, minWidth: MIN_TOUCH, alignSelf: "flex-start", justifyContent: "center" },
|
|
2922
3057
|
value: { flex: 1, flexDirection: "row", alignItems: "center", gap: VALUE_GAP }
|
|
@@ -3693,7 +3828,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
|
|
|
3693
3828
|
const { theme } = useUi();
|
|
3694
3829
|
const { textSecondary } = theme.colors;
|
|
3695
3830
|
const options = useMemo(() => countryFieldOptions(countries, noneLabel), [countries, noneLabel]);
|
|
3696
|
-
const renderCode = useCallback((option) => /* @__PURE__ */ jsx(Text, { style: [
|
|
3831
|
+
const renderCode = useCallback((option) => /* @__PURE__ */ jsx(Text, { style: [styles27.code, { color: textSecondary }], children: option.detail }), [textSecondary]);
|
|
3697
3832
|
return /* @__PURE__ */ jsx(
|
|
3698
3833
|
SearchSelect,
|
|
3699
3834
|
{
|
|
@@ -3711,7 +3846,7 @@ function CountryField({ value, onChange, accessibilityLabel, accessibilityHint,
|
|
|
3711
3846
|
}
|
|
3712
3847
|
);
|
|
3713
3848
|
}
|
|
3714
|
-
var
|
|
3849
|
+
var styles27 = StyleSheet.create({
|
|
3715
3850
|
code: { fontSize: CODE_FONT }
|
|
3716
3851
|
});
|
|
3717
3852
|
function useBlurVerdict(validate) {
|
|
@@ -3965,9 +4100,9 @@ var LINE_GAP = 4;
|
|
|
3965
4100
|
function RejectionLine({ message, testID }) {
|
|
3966
4101
|
const { theme } = useUi();
|
|
3967
4102
|
if (message === null) return null;
|
|
3968
|
-
return /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "polite", style: [
|
|
4103
|
+
return /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "polite", style: [styles28.line, { color: fieldErrorInk(theme) }], testID: `${testID}-rejection`, children: message });
|
|
3969
4104
|
}
|
|
3970
|
-
var
|
|
4105
|
+
var styles28 = StyleSheet.create({
|
|
3971
4106
|
line: { marginTop: LINE_GAP }
|
|
3972
4107
|
});
|
|
3973
4108
|
|
|
@@ -4110,6 +4245,6 @@ function BicInput({ value, onChange, onVerdict, accessibilityLabel, accessibilit
|
|
|
4110
4245
|
] });
|
|
4111
4246
|
}
|
|
4112
4247
|
|
|
4113
|
-
export { AddOnRequest, AlignToControl, AnchoredMenu, BicInput, BicRejection, COUNTRIES, ChipLabelWrap, ChipSelector, CountryField, CountryFlag, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, DateInput, DateRangeControl, DateTimeField, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, FixBar, FlagShapeKind, FormActions, FormCell, FormCheckbox, FormField, FormGrid, FormSection, FormStack, FormStatusLine, FormSwitch, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, IbanInput, IbanRejection, InlineFieldRow, PHONE_MAX_WIDTH, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, ResponsiveFormLayout, SearchSelect, SelectControl, SelectField, SelectSurface, StepperNav, StepperTabs, ThemedTextInput, TypeaheadControl, UploadWithLinkField, 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 };
|
|
4248
|
+
export { AddOnRequest, AlignToControl, AnchoredMenu, BicInput, BicRejection, COUNTRIES, ChipLabelWrap, ChipSelector, CountryField, CountryFlag, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, DateInput, DateRangeControl, DateTimeField, DropdownPlacement, FLAG_HEIGHT, FLAG_WIDTH, Field, FixBar, FlagShapeKind, FormActions, FormCell, FormCheckbox, FormField, FormGrid, FormSection, FormStack, FormStatusLine, FormSwitch, IBAN_MAX_LENGTH, IBAN_REGISTERED_COUNTRY_COUNT, INLINE_FIELD_ROW_MIN_WIDTH, IbanInput, IbanRejection, InlineFieldRow, LINE_ITEMS_WIDE_MIN_WIDTH, LineItems, PHONE_MAX_WIDTH, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, ResponsiveFormLayout, SearchSelect, SelectControl, SelectField, SelectSurface, StepperNav, StepperTabs, ThemedTextInput, TypeaheadControl, UploadWithLinkField, buildSearchSelectSections, canRemoveLine, controlStyles, countryFieldOptions, countryFlag, countryOptions, draftBic, draftIban, dropdownFrame, findOption, fitDropdownWidth, flagShapes, groupAriaChecked, groupInFours, highlightAfterQuery, ibanCounter, ibanLengthFor, inlineFieldRowLayout, isAddOnOpen, isFallbackFlag, isFixBarVisible, isLineItemsWide, isOutside, isUnmatched, isWideFormLayout, lineItemColumnFlex, lineNumberOf, moveHighlight, nextHighlight, placeDropdown, rejectionMessage, resolveGroupSelection, resolveSelectMotion, resolveStepNeighbours, suggestOptions, toCountryValue, toggleGroupSelection, useBlurVerdict, useDeferredFocus, useFocusFirstInvalid, useKeepInView, useOutsidePress, useRecentValues, useReducedMotion, useSearchSelectState, useThemedInput, validateBic, validateIban };
|
|
4114
4249
|
//# sourceMappingURL=index.mjs.map
|
|
4115
4250
|
//# sourceMappingURL=index.mjs.map
|