@payfit/unity-components 1.0.0 → 1.1.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/esm/components/action-bar/ActionBar.d.ts +153 -0
- package/dist/esm/components/action-bar/ActionBar.js +173 -0
- package/dist/esm/components/action-bar/parts/ActionBarAction.d.ts +44 -0
- package/dist/esm/components/action-bar/parts/ActionBarAction.js +45 -0
- package/dist/esm/components/action-bar/parts/ActionBarRoot.d.ts +44 -0
- package/dist/esm/components/action-bar/parts/ActionBarRoot.js +46 -0
- package/dist/esm/components/actionable/Actionable.js +20 -21
- package/dist/esm/components/alert/Alert.d.ts +1 -1
- package/dist/esm/components/alert/Alert.js +1 -1
- package/dist/esm/components/alert/parts/AlertActions.d.ts +1 -1
- package/dist/esm/components/alert/parts/AlertActions.js +1 -1
- package/dist/esm/components/alert/parts/AlertContent.d.ts +1 -1
- package/dist/esm/components/alert/parts/AlertTitle.d.ts +1 -1
- package/dist/esm/components/anchor/Anchor.js +1 -1
- package/dist/esm/components/app-layout/AppLayout.js +6 -6
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +30 -30
- package/dist/esm/components/app-menu/parts/AppMenuNavContent.js +1 -1
- package/dist/esm/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/esm/components/autocomplete/Autocomplete.js +14 -14
- package/dist/esm/components/autocomplete/parts/AutocompleteClearButton.js +5 -5
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +4 -4
- package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.js +12 -12
- package/dist/esm/components/autocomplete/parts/AutocompletePanel.d.ts +1 -1
- package/dist/esm/components/autocomplete/parts/AutocompletePanel.js +7 -7
- package/dist/esm/components/avatar/Avatar.d.ts +1 -1
- package/dist/esm/components/avatar/Avatar.js +15 -16
- package/dist/esm/components/avatar/Avatar.variants.js +1 -1
- package/dist/esm/components/avatar/parts/AvatarFallback.d.ts +1 -1
- package/dist/esm/components/avatar/parts/AvatarFallback.js +9 -10
- package/dist/esm/components/avatar/parts/AvatarImage.js +12 -12
- package/dist/esm/components/avatar/parts/AvatarPair.d.ts +1 -1
- package/dist/esm/components/avatar/parts/AvatarPair.js +4 -4
- package/dist/esm/components/badge/Badge.d.ts +1 -1
- package/dist/esm/components/badge/Badge.js +31 -35
- package/dist/esm/components/bottom-sheet/BottomSheet.d.ts +1 -1
- package/dist/esm/components/bottom-sheet/BottomSheet.js +14 -14
- package/dist/esm/components/bottom-sheet/parts/BottomSheetContent.d.ts +1 -1
- package/dist/esm/components/bottom-sheet/parts/BottomSheetContent.js +4 -4
- package/dist/esm/components/bottom-sheet/parts/BottomSheetDragIndicator.js +11 -11
- package/dist/esm/components/bottom-sheet/parts/BottomSheetFooter.d.ts +1 -1
- package/dist/esm/components/bottom-sheet/parts/BottomSheetFooter.js +4 -4
- package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.d.ts +4 -4
- package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.js +6 -6
- package/dist/esm/components/breadcrumbs/Breadcrumbs.context.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.variant.js +3 -3
- package/dist/esm/components/button/Button.js +33 -41
- package/dist/esm/components/button/Button.variants.d.ts +1 -1
- package/dist/esm/components/button/Button.variants.js +1 -1
- package/dist/esm/components/checkbox/Checkbox.js +53 -49
- package/dist/esm/components/checkbox/Checkbox.variants.js +1 -1
- package/dist/esm/components/checkbox/parts/CheckboxIndicator.js +1 -1
- package/dist/esm/components/checkbox-field/CheckboxField.js +39 -34
- package/dist/esm/components/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/dist/esm/components/checkbox-group/CheckboxGroup.js +12 -12
- package/dist/esm/components/collapsible/Collapsible.js +22 -16
- package/dist/esm/components/collapsible/parts/CollapsibleContent.js +16 -7
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +23 -23
- package/dist/esm/components/data-table/DataTable.d.ts +48 -17
- package/dist/esm/components/data-table/DataTable.js +104 -60
- package/dist/esm/components/data-table/mocks/employee-columns.d.ts +4 -0
- package/dist/esm/components/data-table/parts/DataTableBulkActions.d.ts +55 -0
- package/dist/esm/components/data-table/parts/DataTableBulkActions.js +65 -0
- package/dist/esm/components/data-table/parts/DataTableRoot.d.ts +37 -0
- package/dist/esm/components/data-table/parts/DataTableRoot.js +13 -0
- package/dist/esm/components/date-calendar/DateCalendar.js +8 -8
- package/dist/esm/components/date-picker/DatePicker.js +9 -9
- package/dist/esm/components/date-picker/parts/DateInput.js +7 -7
- package/dist/esm/components/date-picker-field/DatePickerField.js +12 -12
- package/dist/esm/components/definition-tooltip/DefinitionTooltip.js +4 -4
- package/dist/esm/components/dialog/Dialog.d.ts +1 -1
- package/dist/esm/components/dialog/Dialog.js +9 -9
- package/dist/esm/components/dialog/parts/DialogActions/DialogButton.d.ts +1 -1
- package/dist/esm/components/fieldset/Fieldset.d.ts +1 -1
- package/dist/esm/components/fieldset/Fieldset.js +4 -4
- package/dist/esm/components/flex/Flex.d.ts +1 -1
- package/dist/esm/components/flex/Flex.variants.js +189 -207
- package/dist/esm/components/flex/FlexItem.d.ts +1 -1
- package/dist/esm/components/form/Form.context.d.ts +1 -4
- package/dist/esm/components/form/Form.context.js +11 -13
- package/dist/esm/components/form/Form.d.ts +13 -11
- package/dist/esm/components/form/Form.js +45 -48
- package/dist/esm/components/form-field/FormField.context.d.ts +1 -6
- package/dist/esm/components/form-field/FormField.context.js +39 -47
- package/dist/esm/components/form-field/FormField.d.ts +0 -2
- package/dist/esm/components/form-field/FormField.js +37 -42
- package/dist/esm/components/form-field/parts/FormContextualLink.js +17 -17
- package/dist/esm/components/form-field/parts/FormControl.js +39 -35
- package/dist/esm/components/form-field/parts/FormFeedbackText.js +15 -17
- package/dist/esm/components/full-page-loader/FullPageLoader.js +7 -7
- package/dist/esm/components/funnel-layout/FunnelLayout.d.ts +2 -2
- package/dist/esm/components/funnel-layout/FunnelLayout.js +26 -26
- package/dist/esm/components/funnel-layout/parts/FunnelBody.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelBody.js +4 -4
- package/dist/esm/components/funnel-layout/parts/FunnelPage.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelPage.js +10 -10
- package/dist/esm/components/funnel-layout/parts/FunnelPageAction.d.ts +1 -1
- package/dist/esm/components/funnel-layout/parts/FunnelPageActions.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelPageActions.js +13 -13
- package/dist/esm/components/funnel-layout/parts/FunnelPageContent.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelPageContent.js +1 -1
- package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.js +7 -7
- package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.js +4 -4
- package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.d.ts +1 -1
- package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.js +4 -4
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.js +7 -7
- package/dist/esm/components/funnel-layout/parts/FunnelTopBar.d.ts +2 -2
- package/dist/esm/components/funnel-layout/parts/FunnelTopBar.js +9 -9
- package/dist/esm/components/grid/Grid.d.ts +1 -1
- package/dist/esm/components/grid/Grid.variants.d.ts +1 -1
- package/dist/esm/components/grid/Grid.variants.js +3 -3
- package/dist/esm/components/grid/GridItem.d.ts +1 -1
- package/dist/esm/components/icon/Icon.d.ts +1 -1
- package/dist/esm/components/icon/Icon.js +1 -1
- package/dist/esm/components/icon-button/CircularIconButton.d.ts +1 -1
- package/dist/esm/components/icon-button/CircularIconButton.js +21 -20
- package/dist/esm/components/icon-button/IconButton.variants.d.ts +1 -1
- package/dist/esm/components/icon-button/IconButton.variants.js +2 -2
- package/dist/esm/components/input/Input.js +6 -6
- package/dist/esm/components/label/Label.js +13 -13
- package/dist/esm/components/link/Link.d.ts +11 -1
- package/dist/esm/components/link/Link.js +32 -30
- package/dist/esm/components/link/Link.variants.d.ts +141 -30
- package/dist/esm/components/link/Link.variants.js +44 -16
- package/dist/esm/components/menu/parts/MenuItem.js +8 -8
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +14 -14
- package/dist/esm/components/multi-select/parts/MultiSelectOptGroup.js +5 -5
- package/dist/esm/components/multi-select/parts/MultiSelectOption.js +3 -3
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.js +1 -1
- package/dist/esm/components/multi-select-field/MultiSelectField.js +6 -6
- package/dist/esm/components/nav/parts/NavGroup.js +28 -29
- package/dist/esm/components/nav/parts/NavItem.d.ts +1 -1
- package/dist/esm/components/nav/parts/NavItem.js +13 -14
- package/dist/esm/components/number-field/NumberField.js +14 -14
- package/dist/esm/components/number-input/NumberInput.d.ts +2 -2
- package/dist/esm/components/number-input/NumberInput.js +37 -37
- package/dist/esm/components/page/Page.d.ts +1 -1
- package/dist/esm/components/page/Page.js +5 -5
- package/dist/esm/components/page/parts/PageHeader.d.ts +1 -1
- package/dist/esm/components/page/parts/PageHeader.js +4 -4
- package/dist/esm/components/pagination/Pagination.d.ts +1 -1
- package/dist/esm/components/pagination/Pagination.js +16 -16
- package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +1 -1
- package/dist/esm/components/pagination/parts/PaginationEllipsis.js +8 -8
- package/dist/esm/components/pagination/parts/PaginationJumpDialog.js +9 -9
- package/dist/esm/components/pagination/parts/PaginationLink.d.ts +1 -1
- package/dist/esm/components/pagination/parts/PaginationLink.js +6 -6
- package/dist/esm/components/payfit-brand/PayFitBrand.js +4 -4
- package/dist/esm/components/pill/Pill.d.ts +1 -1
- package/dist/esm/components/pill/Pill.js +1 -1
- package/dist/esm/components/popover/Popover.js +5 -5
- package/dist/esm/components/popover/parts/PopoverHeader.js +7 -7
- package/dist/esm/components/progress-bar/ProgressBar.js +11 -11
- package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +1 -1
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +5 -5
- package/dist/esm/components/search/Search.d.ts +1 -1
- package/dist/esm/components/search/Search.js +14 -14
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +10 -10
- package/dist/esm/components/select/Select.js +12 -12
- package/dist/esm/components/select/parts/SearchInput.js +7 -7
- package/dist/esm/components/select/parts/SelectButton.js +17 -14
- package/dist/esm/components/select/parts/SelectOption.js +4 -4
- package/dist/esm/components/select/parts/SelectOptionGroup.js +8 -8
- package/dist/esm/components/select/parts/SelectOptionHelper.js +1 -1
- package/dist/esm/components/select-field/SelectField.d.ts +1 -1
- package/dist/esm/components/select-field/SelectField.js +16 -16
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +1 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +8 -8
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +10 -10
- package/dist/esm/components/selectable-card/internals/Content.js +5 -5
- package/dist/esm/components/selectable-card/internals/Description.js +1 -1
- package/dist/esm/components/selectable-card/internals/Illustration.js +3 -3
- package/dist/esm/components/selectable-card/internals/SelectedIndicator.js +4 -4
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js +3 -3
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectableCard.variant.js +1 -1
- package/dist/esm/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.js +22 -22
- package/dist/esm/components/side-panel/SidePanel.d.ts +1 -1
- package/dist/esm/components/side-panel/SidePanel.js +6 -6
- package/dist/esm/components/side-panel/parts/SidePanelContent.d.ts +1 -1
- package/dist/esm/components/side-panel/parts/SidePanelContent.js +9 -9
- package/dist/esm/components/side-panel/parts/SidePanelDragIndicator.js +11 -11
- package/dist/esm/components/side-panel/parts/SidePanelFooter.d.ts +1 -1
- package/dist/esm/components/side-panel/parts/SidePanelFooter.js +4 -4
- package/dist/esm/components/side-panel/parts/SidePanelHeader.d.ts +4 -4
- package/dist/esm/components/side-panel/parts/SidePanelHeader.js +6 -6
- package/dist/esm/components/skip-links/SkipLinks.d.ts +79 -0
- package/dist/esm/components/skip-links/SkipLinks.js +80 -0
- package/dist/esm/components/spinner/Spinner.js +5 -5
- package/dist/esm/components/table/Table.js +101 -100
- package/dist/esm/components/table/hooks/useTableKeyboardNavigation.d.ts +1 -19
- package/dist/esm/components/table/hooks/useTableKeyboardNavigation.js +147 -95
- package/dist/esm/components/table/parts/TableBody.js +1 -1
- package/dist/esm/components/table/parts/TableCell.d.ts +17 -1
- package/dist/esm/components/table/parts/TableCell.js +45 -41
- package/dist/esm/components/table/parts/TableColumnHeader.d.ts +2 -1
- package/dist/esm/components/table/parts/TableColumnHeader.js +63 -57
- package/dist/esm/components/table/parts/TableEmptyState.d.ts +1 -1
- package/dist/esm/components/table/parts/TableEmptyState.js +1 -1
- package/dist/esm/components/table/parts/TableHeader.d.ts +3 -3
- package/dist/esm/components/table/parts/TableHeader.js +28 -26
- package/dist/esm/components/table/parts/TablePagination.d.ts +1 -1
- package/dist/esm/components/table/parts/TablePagination.js +9 -9
- package/dist/esm/components/table/parts/TableRow.d.ts +1 -1
- package/dist/esm/components/table/parts/TableRow.js +36 -34
- package/dist/esm/components/tabs/Tabs.context.d.ts +1 -1
- package/dist/esm/components/tabs/Tabs.d.ts +1 -1
- package/dist/esm/components/tabs/Tabs.variant.js +1 -1
- package/dist/esm/components/tabs/parts/NavigationButton.js +12 -12
- package/dist/esm/components/tabs/parts/Tab.d.ts +3 -2
- package/dist/esm/components/tabs/parts/Tab.js +12 -12
- package/dist/esm/components/tabs/parts/TabPanel.d.ts +4 -2
- package/dist/esm/components/tabs/parts/TabPanel.js +7 -7
- package/dist/esm/components/task-menu/TaskMenu.d.ts +1 -1
- package/dist/esm/components/task-menu/TaskMenu.js +7 -7
- package/dist/esm/components/task-menu/parts/Content.js +6 -6
- package/dist/esm/components/task-menu/parts/Header.js +7 -7
- package/dist/esm/components/task-menu/parts/SubTask.js +6 -6
- package/dist/esm/components/task-menu/parts/Task.d.ts +1 -1
- package/dist/esm/components/task-menu/parts/Task.js +12 -12
- package/dist/esm/components/task-menu/parts/TaskGroup.js +7 -7
- package/dist/esm/components/task-menu/parts/task.variants.js +1 -1
- package/dist/esm/components/text/Text.d.ts +1 -1
- package/dist/esm/components/text/Text.variants.js +1 -1
- package/dist/esm/components/text-area/TextArea.js +6 -6
- package/dist/esm/components/text-field/TextField.js +5 -5
- package/dist/esm/components/toast/UnityToast.d.ts +1 -1
- package/dist/esm/components/toast/UnityToast.js +11 -11
- package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +1 -1
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +4 -4
- package/dist/esm/components/toggle-switch-field/ToggleSwitchField.js +35 -31
- package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.d.ts +1 -1
- package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.js +5 -5
- package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.js +43 -38
- package/dist/esm/components/tooltip/Tooltip.d.ts +2 -0
- package/dist/esm/components/tooltip/Tooltip.js +27 -19
- package/dist/esm/hooks/use-form.js +7 -7
- package/dist/esm/index.d.ts +6 -1
- package/dist/esm/index.js +366 -352
- package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.js +28 -0
- package/dist/esm/integrations/react-router/v5/index.d.ts +1 -0
- package/dist/esm/integrations/react-router/v5.js +4 -0
- package/i18n/en-GB.json +6 -0
- package/i18n/es-ES.json +6 -0
- package/i18n/fr-FR.json +6 -0
- package/package.json +38 -35
- package/dist/esm/providers/router/integrations/UnityReactRouterV5Provider.js +0 -28
- /package/dist/esm/{providers/router/integrations → integrations/react-router/v5}/UnityReactRouterV5Provider.d.ts +0 -0
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
numeric: "uy:bg-surface-info-low uy:text-content-info-high",
|
|
18
|
-
contextual: "uy:bg-surface-neutral uy:border uy:border-solid uy:border-border-neutral uy:text-content-neutral"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
variant: "neutral"
|
|
3
|
+
import { uyTv as y } from "@payfit/unity-themes";
|
|
4
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
5
|
+
const g = y({
|
|
6
|
+
base: "uy:inline-block uy:rounded-75 uy:px-75 uy:py-25 uy:font-sans uy:typography-body uy:whitespace-nowrap uy:text-center",
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
success: "uy:bg-surface-success-low uy:text-content-success-high",
|
|
10
|
+
warning: "uy:bg-surface-warning-low uy:text-content-warning-high",
|
|
11
|
+
danger: "uy:bg-surface-danger-low uy:text-content-danger-high",
|
|
12
|
+
neutral: "uy:bg-surface-neutral-low uy:text-content-neutral",
|
|
13
|
+
promo: "uy:bg-surface-promo-low uy:text-content-promo-high",
|
|
14
|
+
attention: "uy:bg-surface-danger uy:text-content-inverted",
|
|
15
|
+
numeric: "uy:bg-surface-info-low uy:text-content-info-high",
|
|
16
|
+
contextual: "uy:bg-surface-neutral uy:border uy:border-solid uy:border-border-neutral uy:text-content-neutral"
|
|
23
17
|
}
|
|
24
18
|
},
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "neutral"
|
|
21
|
+
}
|
|
22
|
+
}), d = {
|
|
27
23
|
success: "status",
|
|
28
24
|
warning: "alert",
|
|
29
25
|
danger: "alert",
|
|
@@ -32,30 +28,30 @@ const d = g(
|
|
|
32
28
|
attention: "alert",
|
|
33
29
|
contextual: "status",
|
|
34
30
|
numeric: "status"
|
|
35
|
-
},
|
|
31
|
+
}, f = l(
|
|
36
32
|
({
|
|
37
33
|
className: e,
|
|
38
34
|
variant: t = "neutral",
|
|
39
|
-
role:
|
|
35
|
+
role: n,
|
|
40
36
|
asChild: a = !1,
|
|
41
|
-
children:
|
|
42
|
-
...
|
|
43
|
-
},
|
|
44
|
-
const s =
|
|
37
|
+
children: r,
|
|
38
|
+
...u
|
|
39
|
+
}, o) => {
|
|
40
|
+
const s = n ?? d[t] ?? "status";
|
|
45
41
|
return /* @__PURE__ */ c(
|
|
46
|
-
a ?
|
|
42
|
+
a ? i : "span",
|
|
47
43
|
{
|
|
48
44
|
"data-dd-privacy": "allow",
|
|
49
|
-
ref:
|
|
50
|
-
className:
|
|
45
|
+
ref: o,
|
|
46
|
+
className: g({ variant: t, className: e }),
|
|
51
47
|
role: s,
|
|
52
|
-
...
|
|
53
|
-
children:
|
|
48
|
+
...u,
|
|
49
|
+
children: r
|
|
54
50
|
}
|
|
55
51
|
);
|
|
56
52
|
}
|
|
57
53
|
);
|
|
58
|
-
|
|
54
|
+
f.displayName = "Badge";
|
|
59
55
|
export {
|
|
60
|
-
|
|
56
|
+
f as Badge
|
|
61
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
export declare const bottomSheet: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as s } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
4
|
+
import { ModalOverlay as h, Modal as p, Dialog as x } from "react-aria-components";
|
|
5
5
|
import { BottomSheetDragIndicator as w } from "./parts/BottomSheetDragIndicator.js";
|
|
6
|
-
const g =
|
|
6
|
+
const g = c({
|
|
7
7
|
slots: {
|
|
8
8
|
overlay: [
|
|
9
9
|
"uy:fixed uy:inset-0 uy:z-30 uy:overflow-y-auto",
|
|
@@ -25,26 +25,26 @@ const g = x({
|
|
|
25
25
|
}
|
|
26
26
|
}), v = s(
|
|
27
27
|
({
|
|
28
|
-
children:
|
|
28
|
+
children: t,
|
|
29
29
|
isOpen: o,
|
|
30
30
|
onOpenChange: a,
|
|
31
31
|
defaultOpen: u,
|
|
32
|
-
isDismissable:
|
|
33
|
-
isKeyboardDismissDisabled:
|
|
32
|
+
isDismissable: y = !0,
|
|
33
|
+
isKeyboardDismissDisabled: r = !1,
|
|
34
34
|
...i
|
|
35
35
|
}, l) => {
|
|
36
36
|
const { overlay: d, wrapper: n, content: m } = g();
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ e(
|
|
38
|
+
h,
|
|
39
39
|
{
|
|
40
40
|
className: d(),
|
|
41
41
|
isOpen: o,
|
|
42
42
|
onOpenChange: a,
|
|
43
43
|
defaultOpen: u,
|
|
44
|
-
isDismissable:
|
|
45
|
-
isKeyboardDismissDisabled:
|
|
44
|
+
isDismissable: y,
|
|
45
|
+
isKeyboardDismissDisabled: r,
|
|
46
46
|
children: /* @__PURE__ */ f(
|
|
47
|
-
|
|
47
|
+
p,
|
|
48
48
|
{
|
|
49
49
|
"data-dd-privacy": "allow",
|
|
50
50
|
...i,
|
|
@@ -52,8 +52,8 @@ const g = x({
|
|
|
52
52
|
className: n(),
|
|
53
53
|
"data-unity-bottom-sheet": !0,
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ e(w, {}),
|
|
56
|
+
/* @__PURE__ */ e(x, { className: m(), children: t })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
59
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
export declare const bottomSheetContent: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
const s =
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { uyTv as n } from "@payfit/unity-themes";
|
|
4
|
+
const s = n({
|
|
5
5
|
slots: {
|
|
6
6
|
base: [
|
|
7
7
|
"uy:bg-surface-neutral uy:typography-body uy:text-content-neutral",
|
|
@@ -13,7 +13,7 @@ const s = y({
|
|
|
13
13
|
"uy:h-full uy:min-h-0"
|
|
14
14
|
]
|
|
15
15
|
}
|
|
16
|
-
}), f =
|
|
16
|
+
}), f = y(
|
|
17
17
|
({ children: o, ...t }, l) => {
|
|
18
18
|
const { base: r, scroller: u } = s();
|
|
19
19
|
return /* @__PURE__ */ e("section", { ref: l, className: r(), ...t, children: /* @__PURE__ */ e("div", { className: u(), children: o }) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as b, useContext as g } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { uyTv as x } from "@payfit/unity-themes";
|
|
4
|
+
import { useDrag as D } from "@use-gesture/react";
|
|
5
|
+
import { OverlayTriggerStateContext as v } from "react-aria-components";
|
|
6
6
|
import { useBreakpointListener as S } from "../../../hooks/use-breakpoint-listener.js";
|
|
7
|
-
const
|
|
7
|
+
const T = x({
|
|
8
8
|
slots: {
|
|
9
9
|
base: [
|
|
10
10
|
"uy:md:hidden uy:mx-auto uy:py-100 uy:w-500",
|
|
@@ -12,9 +12,9 @@ const I = v({
|
|
|
12
12
|
],
|
|
13
13
|
indicator: "uy:h-50 uy:rounded-pill uy:bg-content-neutral-lowest"
|
|
14
14
|
}
|
|
15
|
-
}),
|
|
16
|
-
function
|
|
17
|
-
const r = b(null), o = g(
|
|
15
|
+
}), I = 100;
|
|
16
|
+
function N() {
|
|
17
|
+
const r = b(null), o = g(v), n = S(), { base: i, indicator: l } = T(), m = n === "xs" || n === "sm", u = D(
|
|
18
18
|
(c) => {
|
|
19
19
|
var s;
|
|
20
20
|
const {
|
|
@@ -38,7 +38,7 @@ function T() {
|
|
|
38
38
|
t.style.transform = "translate3d(0, 0, 0)";
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
t.style.transform = `translate3d(0, ${e}px, 0)`, t.style.transition = "none", p && f && (e >
|
|
41
|
+
t.style.transform = `translate3d(0, ${e}px, 0)`, t.style.transition = "none", p && f && (e > I || d > 0 ? o && setTimeout(() => {
|
|
42
42
|
o.close();
|
|
43
43
|
}, 50) : (t.style.transform = "translate3d(0, 0, 0)", t.style.transition = "transform 0.3s ease"));
|
|
44
44
|
}
|
|
@@ -60,8 +60,8 @@ function T() {
|
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
N.displayName = "BottomSheetDragIndicator";
|
|
64
64
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
N as BottomSheetDragIndicator,
|
|
66
|
+
T as bottomSheetDragIndicator
|
|
67
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
export declare const bottomSheetFooter: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export interface BottomSheetFooterProps extends PropsWithChildren<VariantProps<typeof bottomSheetFooter>> {
|
|
5
5
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { uyTv as a } from "@payfit/unity-themes";
|
|
4
4
|
const s = a({
|
|
5
5
|
base: [
|
|
6
6
|
"uy:py-150 uy:px-300 uy:w-full",
|
|
@@ -11,13 +11,13 @@ const s = a({
|
|
|
11
11
|
"uy:pb-[max(env(safe-area-inset-bottom),var(--uy-spacing-200))] uy:md:pb-200"
|
|
12
12
|
]
|
|
13
13
|
}), m = y(
|
|
14
|
-
({ children:
|
|
14
|
+
({ children: o, className: t, ...e }, r) => /* @__PURE__ */ u(
|
|
15
15
|
"footer",
|
|
16
16
|
{
|
|
17
17
|
ref: r,
|
|
18
|
-
className: s({ class:
|
|
18
|
+
className: s({ class: t }),
|
|
19
19
|
...e,
|
|
20
|
-
children:
|
|
20
|
+
children: o
|
|
21
21
|
}
|
|
22
22
|
)
|
|
23
23
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
6
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
7
6
|
content?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
8
8
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
9
9
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
10
10
|
};
|
|
@@ -12,8 +12,8 @@ export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType
|
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: {
|
|
14
14
|
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
16
15
|
content?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
17
17
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
18
18
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
19
19
|
};
|
|
@@ -26,8 +26,8 @@ export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType
|
|
|
26
26
|
}, undefined, {
|
|
27
27
|
[key: string]: {
|
|
28
28
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
29
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
30
29
|
content?: import('tailwind-merge').ClassNameValue;
|
|
30
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
31
31
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
32
32
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
33
33
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { uyTv as i } from "@payfit/unity-themes";
|
|
4
|
+
import { Heading as c } from "react-aria-components";
|
|
5
5
|
import { CircularIconButton as m } from "../../icon-button/CircularIconButton.js";
|
|
6
|
-
const d =
|
|
6
|
+
const d = i({
|
|
7
7
|
slots: {
|
|
8
8
|
base: [
|
|
9
9
|
"uy:py-200 uy:px-300 uy:w-full",
|
|
@@ -18,12 +18,12 @@ const d = c({
|
|
|
18
18
|
],
|
|
19
19
|
buttonContainer: ["uy:flex-shrink-0 uy:flex-grow-0 uy:w-[28px]"]
|
|
20
20
|
}
|
|
21
|
-
}), f =
|
|
21
|
+
}), f = y(
|
|
22
22
|
({ children: o, ...r }, n) => {
|
|
23
23
|
const { base: u, content: l, heading: a, buttonContainer: t } = d();
|
|
24
24
|
return /* @__PURE__ */ e("header", { ref: n, className: u(), ...r, children: /* @__PURE__ */ s("div", { className: l(), children: [
|
|
25
25
|
/* @__PURE__ */ e("div", { className: t() }),
|
|
26
|
-
/* @__PURE__ */ e(
|
|
26
|
+
/* @__PURE__ */ e(c, { slot: "title", className: a(), children: o }),
|
|
27
27
|
/* @__PURE__ */ e("div", { className: t(), children: /* @__PURE__ */ e(
|
|
28
28
|
m,
|
|
29
29
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import { breadcrumbsVariant } from './Breadcrumbs.variant.js';
|
|
4
4
|
interface BreadcrumbsContextValue {
|
|
5
5
|
wrap: VariantProps<typeof breadcrumbsVariant>['wrap'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { AriaBreadcrumbsProps as AriaAriaBreadcrumbsProps } from 'react-aria';
|
|
3
4
|
import { BreadcrumbsProps as AriaBreadcrumbsProps } from 'react-aria-components';
|
|
4
|
-
import { VariantProps } from 'tailwind-variants';
|
|
5
5
|
import { BreadcrumbProps } from './parts/Breadcrumb.js';
|
|
6
6
|
import { breadcrumbsVariant } from './Breadcrumbs.variant.js';
|
|
7
7
|
export interface BreadcrumbsProps extends AriaAriaBreadcrumbsProps, Pick<AriaBreadcrumbsProps<BreadcrumbsProps>, 'onAction'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { uyTv as a } from "@payfit/unity-themes";
|
|
2
|
+
const r = a({
|
|
3
3
|
slots: {
|
|
4
4
|
base: "uy:flex uy:gap-50 uy:list-none uy:text-content-neutral-enabled uy:typography-action",
|
|
5
5
|
breadcrumb: "uy:flex uy:gap-50 uy:sm:leading-[1.75] uy:sm:items-center"
|
|
@@ -16,5 +16,5 @@ const t = a({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
r as breadcrumbsVariant
|
|
20
20
|
};
|
|
@@ -1,69 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as h, useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Spinner as
|
|
7
|
-
import { buttonGhost as
|
|
8
|
-
const M = h(
|
|
1
|
+
import { jsx as m, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useMemo as x } from "react";
|
|
3
|
+
import { uyMerge as l } from "@payfit/unity-themes";
|
|
4
|
+
import { Button as b } from "react-aria-components";
|
|
5
|
+
import { Icon as v } from "../icon/Icon.js";
|
|
6
|
+
import { Spinner as B } from "../spinner/Spinner.js";
|
|
7
|
+
import { buttonGhost as w, buttonOutlined as N, buttonFilled as j } from "./Button.variants.js";
|
|
8
|
+
const I = (e, n) => e ? /* @__PURE__ */ m(B, { size: "small", color: "inherit", label: "Loading..." }) : n ? /* @__PURE__ */ m(v, { src: n, size: 20, color: "inherit", role: "presentation" }) : null, M = h(
|
|
9
9
|
({
|
|
10
|
-
variant:
|
|
11
|
-
children:
|
|
12
|
-
color:
|
|
13
|
-
size:
|
|
10
|
+
variant: e,
|
|
11
|
+
children: n,
|
|
12
|
+
color: o = "primary",
|
|
13
|
+
size: u = "default",
|
|
14
14
|
isDisabled: a = !1,
|
|
15
15
|
isLoading: t = !1,
|
|
16
|
-
prefixIcon:
|
|
17
|
-
...
|
|
16
|
+
prefixIcon: c = void 0,
|
|
17
|
+
...i
|
|
18
18
|
}, p) => {
|
|
19
|
-
const f =
|
|
20
|
-
const
|
|
21
|
-
switch (
|
|
19
|
+
const f = x(() => {
|
|
20
|
+
const s = { size: u, isDisabled: a, isLoading: t };
|
|
21
|
+
switch (e) {
|
|
22
22
|
case "primary": {
|
|
23
23
|
const r = {
|
|
24
|
-
...
|
|
25
|
-
color:
|
|
24
|
+
...s,
|
|
25
|
+
color: o
|
|
26
26
|
};
|
|
27
|
-
return
|
|
27
|
+
return l(j(r));
|
|
28
28
|
}
|
|
29
29
|
case "secondary": {
|
|
30
30
|
const r = {
|
|
31
|
-
...
|
|
32
|
-
color:
|
|
31
|
+
...s,
|
|
32
|
+
color: o
|
|
33
33
|
};
|
|
34
|
-
return
|
|
34
|
+
return l(N(r));
|
|
35
35
|
}
|
|
36
36
|
case "ghost": {
|
|
37
37
|
const r = {
|
|
38
|
-
...
|
|
39
|
-
color:
|
|
38
|
+
...s,
|
|
39
|
+
color: o
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return l(w(r));
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
}, [
|
|
44
|
+
}, [e, o, u, a, t]), d = {
|
|
45
45
|
...t && { "data-loading": t }
|
|
46
46
|
};
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
return /* @__PURE__ */ m(
|
|
48
|
+
b,
|
|
49
49
|
{
|
|
50
50
|
"data-dd-privacy": "allow",
|
|
51
|
-
...
|
|
51
|
+
...i,
|
|
52
52
|
ref: p,
|
|
53
53
|
isDisabled: a || t,
|
|
54
54
|
className: f,
|
|
55
55
|
...d,
|
|
56
|
-
children:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
src: i,
|
|
61
|
-
size: 20,
|
|
62
|
-
color: "inherit",
|
|
63
|
-
role: "presentation"
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
c
|
|
56
|
+
children: /* @__PURE__ */ y("span", { className: "uy:inline-flex uy:gap-50 uy:leading-[1.75] uy:items-center", children: [
|
|
57
|
+
I(t, c),
|
|
58
|
+
n
|
|
67
59
|
] })
|
|
68
60
|
}
|
|
69
61
|
);
|
|
@@ -1,85 +1,89 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { Checkbox as
|
|
5
|
-
import { Text as
|
|
6
|
-
import { checkbox as
|
|
7
|
-
import { CheckboxIndicator as
|
|
8
|
-
const
|
|
9
|
-
({ children:
|
|
10
|
-
const e =
|
|
11
|
-
isDisabled:
|
|
12
|
-
isReadOnly:
|
|
1
|
+
import { jsxs as o, jsx as a, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as B, isValidElement as p, cloneElement as y } from "react";
|
|
3
|
+
import { useId as R } from "react-aria";
|
|
4
|
+
import { Checkbox as D } from "react-aria-components";
|
|
5
|
+
import { Text as h } from "../text/Text.js";
|
|
6
|
+
import { checkbox as E } from "./Checkbox.variants.js";
|
|
7
|
+
import { CheckboxIndicator as V } from "./parts/CheckboxIndicator.js";
|
|
8
|
+
const F = B(
|
|
9
|
+
({ children: f, helperText: i, feedbackText: r, ...l }, v) => {
|
|
10
|
+
const e = R(), {
|
|
11
|
+
isDisabled: s,
|
|
12
|
+
isReadOnly: d,
|
|
13
13
|
isInvalid: t,
|
|
14
|
-
isRequired:
|
|
15
|
-
requiredVariant:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
isRequired: n,
|
|
15
|
+
requiredVariant: c = "required",
|
|
16
|
+
...x
|
|
17
|
+
} = l, {
|
|
18
|
+
base: u,
|
|
19
|
+
wrapper: N,
|
|
20
|
+
asterisk: g,
|
|
21
|
+
optionalTag: $,
|
|
22
|
+
descriptionsContainer: k,
|
|
23
|
+
helperText: C,
|
|
24
|
+
feedbackText: q
|
|
25
|
+
} = E({
|
|
26
|
+
isDisabled: s,
|
|
27
|
+
isReadOnly: d,
|
|
27
28
|
isInvalid: t
|
|
28
|
-
}),
|
|
29
|
-
|
|
29
|
+
}), m = [l["aria-labelledby"], `${e}-label`].filter(Boolean), b = [
|
|
30
|
+
l["aria-describedby"],
|
|
30
31
|
typeof i == "string" ? `${e}-helper-text` : void 0,
|
|
31
32
|
typeof r == "string" ? `${e}-feedback-text` : void 0
|
|
32
|
-
].filter(Boolean),
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
].filter(Boolean), w = m.length > 0 ? m.join(" ") : void 0, I = b.length > 0 ? b.join(" ") : void 0;
|
|
34
|
+
return /* @__PURE__ */ o("div", { className: u(), children: [
|
|
34
35
|
/* @__PURE__ */ a(
|
|
35
|
-
|
|
36
|
+
D,
|
|
36
37
|
{
|
|
37
|
-
...
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"aria-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
...x,
|
|
39
|
+
isInvalid: t,
|
|
40
|
+
ref: v,
|
|
41
|
+
className: N(),
|
|
42
|
+
"aria-labelledby": w,
|
|
43
|
+
"aria-describedby": I,
|
|
44
|
+
isDisabled: s,
|
|
45
|
+
isReadOnly: d,
|
|
46
|
+
children: (S) => /* @__PURE__ */ o(j, { children: [
|
|
47
|
+
/* @__PURE__ */ a(V, { ...S, className: "uy:mr-[6px]" }),
|
|
48
|
+
/* @__PURE__ */ a("span", { id: `${e}-label`, "data-dd-privacy": "allow", children: f }),
|
|
49
|
+
c === "required" && n && /* @__PURE__ */ o("span", { className: g(), children: [
|
|
46
50
|
"*",
|
|
47
51
|
/* @__PURE__ */ a("span", { className: "uy:sr-only", children: "required" })
|
|
48
52
|
] }),
|
|
49
|
-
|
|
53
|
+
c === "optional" && !n && /* @__PURE__ */ a("span", { className: $(), children: "(optional)" })
|
|
50
54
|
] })
|
|
51
55
|
}
|
|
52
56
|
),
|
|
53
|
-
(i || r) && /* @__PURE__ */
|
|
57
|
+
(i || r) && /* @__PURE__ */ o("div", { className: k(), "data-dd-privacy": "allow", children: [
|
|
54
58
|
typeof i == "string" ? /* @__PURE__ */ a(
|
|
55
|
-
|
|
59
|
+
h,
|
|
56
60
|
{
|
|
57
61
|
variant: "bodySmall",
|
|
58
62
|
color: "content.neutral.low",
|
|
59
63
|
id: `${e}-helper-text`,
|
|
60
64
|
children: i
|
|
61
65
|
}
|
|
62
|
-
) :
|
|
66
|
+
) : p(i) && y(i, {
|
|
63
67
|
"data-id": `${e}-helper-text`,
|
|
64
|
-
className:
|
|
68
|
+
className: C()
|
|
65
69
|
}),
|
|
66
70
|
t && (typeof r == "string" ? /* @__PURE__ */ a(
|
|
67
|
-
|
|
71
|
+
h,
|
|
68
72
|
{
|
|
69
73
|
variant: "bodySmallStrong",
|
|
70
74
|
color: "content.form.invalid",
|
|
71
75
|
id: `${e}-feedback-text`,
|
|
72
76
|
children: r
|
|
73
77
|
}
|
|
74
|
-
) :
|
|
78
|
+
) : p(r) && y(r, {
|
|
75
79
|
"data-id": `${e}-feedback-text`,
|
|
76
|
-
className:
|
|
80
|
+
className: q()
|
|
77
81
|
}))
|
|
78
82
|
] })
|
|
79
83
|
] });
|
|
80
84
|
}
|
|
81
85
|
);
|
|
82
|
-
|
|
86
|
+
F.displayName = "Checkbox";
|
|
83
87
|
export {
|
|
84
|
-
|
|
88
|
+
F as Checkbox
|
|
85
89
|
};
|