@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,53 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as l, useContext as u } from "react";
|
|
3
|
+
import { useFormState as c } from "react-hook-form";
|
|
4
|
+
const s = l({
|
|
5
5
|
id: "",
|
|
6
6
|
name: ""
|
|
7
7
|
});
|
|
8
|
-
function
|
|
8
|
+
function C({
|
|
9
9
|
children: o,
|
|
10
10
|
id: i,
|
|
11
|
-
name:
|
|
12
|
-
isRequired:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hasContextualLink: a
|
|
11
|
+
name: e,
|
|
12
|
+
isRequired: n,
|
|
13
|
+
isLoading: d,
|
|
14
|
+
isReadOnly: m,
|
|
15
|
+
isDisabled: f,
|
|
16
|
+
hasHelperText: r,
|
|
17
|
+
hasContextualLink: t
|
|
19
18
|
}) {
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
return /* @__PURE__ */ a(
|
|
20
|
+
s.Provider,
|
|
22
21
|
{
|
|
23
22
|
value: {
|
|
24
23
|
id: i,
|
|
25
|
-
name:
|
|
26
|
-
isRequired:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
hasContextualLink: a
|
|
24
|
+
name: e,
|
|
25
|
+
isRequired: n,
|
|
26
|
+
isLoading: d,
|
|
27
|
+
isReadOnly: m,
|
|
28
|
+
isDisabled: f,
|
|
29
|
+
hasHelperText: r,
|
|
30
|
+
hasContextualLink: t
|
|
33
31
|
},
|
|
34
32
|
children: o
|
|
35
33
|
}
|
|
36
34
|
);
|
|
37
35
|
}
|
|
38
|
-
function
|
|
39
|
-
const o =
|
|
40
|
-
o.name,
|
|
41
|
-
t
|
|
42
|
-
), {
|
|
36
|
+
function b() {
|
|
37
|
+
const o = u(s), i = c({ name: o.name }), {
|
|
43
38
|
id: e,
|
|
44
39
|
isRequired: n,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
hasContextualLink: f
|
|
40
|
+
isLoading: d,
|
|
41
|
+
isReadOnly: m,
|
|
42
|
+
isDisabled: f,
|
|
43
|
+
hasHelperText: r,
|
|
44
|
+
hasContextualLink: t
|
|
51
45
|
} = o;
|
|
52
46
|
if (!o)
|
|
53
47
|
throw new Error("useFormField should be used within <FormField> component");
|
|
@@ -55,27 +49,25 @@ function k() {
|
|
|
55
49
|
...{
|
|
56
50
|
id: e,
|
|
57
51
|
name: o.name,
|
|
58
|
-
hasHelperText:
|
|
59
|
-
hasContextualLink:
|
|
52
|
+
hasHelperText: r,
|
|
53
|
+
hasContextualLink: t,
|
|
60
54
|
formLabelId: `${e}-form-field-label`,
|
|
61
55
|
formItemId: `${e}-form-item`,
|
|
62
|
-
formDescriptionId:
|
|
56
|
+
formDescriptionId: r ? `${e}-form-field-description` : void 0,
|
|
63
57
|
formMessageId: `${e}-form-field-feedback-text`,
|
|
64
|
-
formContextualLinkId:
|
|
58
|
+
formContextualLinkId: t ? `${e}-form-field-contextual-link` : void 0
|
|
65
59
|
},
|
|
66
60
|
fieldState: {
|
|
67
|
-
...r,
|
|
68
61
|
isRequired: n,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
isDisabled: c
|
|
62
|
+
isLoading: d,
|
|
63
|
+
isReadOnly: m,
|
|
64
|
+
isDisabled: f
|
|
73
65
|
},
|
|
74
|
-
formState:
|
|
66
|
+
formState: i
|
|
75
67
|
};
|
|
76
68
|
}
|
|
77
69
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
s as FormFieldContext,
|
|
71
|
+
C as FormFieldProvider,
|
|
72
|
+
b as useFormField
|
|
81
73
|
};
|
|
@@ -7,8 +7,6 @@ export interface FormFieldProps<TFieldValues extends FieldValues = FieldValues,
|
|
|
7
7
|
name: TName;
|
|
8
8
|
/** Whether the field is required */
|
|
9
9
|
isRequired?: boolean;
|
|
10
|
-
/** Whether the field is in an invalid state */
|
|
11
|
-
isInvalid?: boolean;
|
|
12
10
|
/** Whether the field is in a loading state */
|
|
13
11
|
isLoading?: boolean;
|
|
14
12
|
/** Whether the field is disabled */
|
|
@@ -1,60 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { useUnityFormProvider as
|
|
7
|
-
import { FormFieldProvider as
|
|
8
|
-
import { FormContextualLink as
|
|
9
|
-
import { FormHelperText as
|
|
10
|
-
import { isFieldRequired as
|
|
11
|
-
const
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import a, { forwardRef as H, useMemo as d } from "react";
|
|
3
|
+
import { uyTv as L } from "@payfit/unity-themes";
|
|
4
|
+
import { useController as P } from "react-hook-form";
|
|
5
|
+
import S from "../../hooks/use-id.js";
|
|
6
|
+
import { useUnityFormProvider as g } from "../form/Form.context.js";
|
|
7
|
+
import { FormFieldProvider as j } from "./FormField.context.js";
|
|
8
|
+
import { FormContextualLink as D } from "./parts/FormContextualLink.js";
|
|
9
|
+
import { FormHelperText as E } from "./parts/FormHelperText.js";
|
|
10
|
+
import { isFieldRequired as I } from "./utils/isFieldRequired.js";
|
|
11
|
+
const N = L({
|
|
12
12
|
slots: {
|
|
13
13
|
base: "uy:flex uy:flex-col uy:gap-100"
|
|
14
14
|
}
|
|
15
|
-
}),
|
|
15
|
+
}), _ = H(
|
|
16
16
|
({
|
|
17
17
|
children: o,
|
|
18
18
|
control: f,
|
|
19
19
|
name: r,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
fieldState: { invalid: v },
|
|
29
|
-
formState: i
|
|
30
|
-
} = I({ name: r, control: f }), R = p(
|
|
31
|
-
() => _(t, r),
|
|
20
|
+
isLoading: u,
|
|
21
|
+
isReadOnly: c,
|
|
22
|
+
className: x,
|
|
23
|
+
isRequired: F,
|
|
24
|
+
isDisabled: h
|
|
25
|
+
}, y) => {
|
|
26
|
+
const b = S(), { schema: t } = g(), { formState: i } = P({ name: r, control: f }), C = d(
|
|
27
|
+
() => I(t, r),
|
|
32
28
|
[t, r]
|
|
33
|
-
), { hasHelperText:
|
|
29
|
+
), { hasHelperText: R, hasContextualLink: T } = d(() => {
|
|
34
30
|
let s = !1, l = !1;
|
|
35
|
-
const m = (
|
|
36
|
-
|
|
37
|
-
if (!
|
|
31
|
+
const m = (v) => {
|
|
32
|
+
a.Children.forEach(v, (n) => {
|
|
33
|
+
if (!a.isValidElement(n)) return;
|
|
38
34
|
const e = n;
|
|
39
|
-
e.type ===
|
|
35
|
+
e.type === E ? s = !0 : e.type === D && (l = !0), e.props && typeof e.props == "object" && "children" in e.props && m(e.props.children);
|
|
40
36
|
});
|
|
41
37
|
};
|
|
42
38
|
return m(o), { hasHelperText: s, hasContextualLink: l };
|
|
43
|
-
}, [o]),
|
|
39
|
+
}, [o]), k = {
|
|
44
40
|
name: r,
|
|
45
|
-
isLoading:
|
|
46
|
-
isReadOnly:
|
|
47
|
-
hasHelperText:
|
|
48
|
-
hasContextualLink:
|
|
49
|
-
id:
|
|
50
|
-
isRequired:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return /* @__PURE__ */ a("div", { ref: b, className: L({ className: F }), children: /* @__PURE__ */ a(D, { ...H, children: o }) });
|
|
41
|
+
isLoading: u,
|
|
42
|
+
isReadOnly: c,
|
|
43
|
+
hasHelperText: R,
|
|
44
|
+
hasContextualLink: T,
|
|
45
|
+
id: b,
|
|
46
|
+
isRequired: F ?? C,
|
|
47
|
+
isDisabled: h ?? (i.isSubmitting || i.disabled)
|
|
48
|
+
}, { base: q } = N();
|
|
49
|
+
return /* @__PURE__ */ p("div", { ref: y, className: q({ className: x }), children: /* @__PURE__ */ p(j, { ...k, children: o }) });
|
|
55
50
|
}
|
|
56
51
|
);
|
|
57
|
-
|
|
52
|
+
_.displayName = "FormField";
|
|
58
53
|
export {
|
|
59
|
-
|
|
54
|
+
_ as FormField
|
|
60
55
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
3
|
import { Button as m } from "react-aria-components";
|
|
4
4
|
import { Link as d } from "../../link/Link.js";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
return a ? /* @__PURE__ */ t(
|
|
5
|
+
import { useFormField as s } from "../FormField.context.js";
|
|
6
|
+
const e = n(({ children: o, href: t, onPress: l }, a) => {
|
|
7
|
+
const { formContextualLinkId: r } = s();
|
|
8
|
+
return t ? /* @__PURE__ */ i(
|
|
10
9
|
d,
|
|
11
10
|
{
|
|
12
|
-
id:
|
|
11
|
+
id: r,
|
|
12
|
+
size: "small",
|
|
13
13
|
color: "secondary",
|
|
14
14
|
variant: "standalone",
|
|
15
15
|
"data-unity-slot": "contextual-link",
|
|
16
|
-
href:
|
|
17
|
-
ref:
|
|
16
|
+
href: t,
|
|
17
|
+
ref: a,
|
|
18
18
|
"data-dd-privacy": "allow",
|
|
19
|
-
children:
|
|
19
|
+
children: o
|
|
20
20
|
}
|
|
21
|
-
) : /* @__PURE__ */
|
|
21
|
+
) : /* @__PURE__ */ i(
|
|
22
22
|
m,
|
|
23
23
|
{
|
|
24
|
-
id:
|
|
25
|
-
onPress:
|
|
24
|
+
id: r,
|
|
25
|
+
onPress: l,
|
|
26
26
|
"data-unity-slot": "contextual-link",
|
|
27
27
|
className: "uy:typography-body-small uy:w-fit",
|
|
28
|
-
ref:
|
|
28
|
+
ref: a,
|
|
29
29
|
"data-dd-privacy": "allow",
|
|
30
30
|
children: o
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
e.displayName = "FormContextualLink";
|
|
35
35
|
export {
|
|
36
|
-
|
|
36
|
+
e as FormContextualLink
|
|
37
37
|
};
|
|
@@ -1,50 +1,54 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { mergeProps as
|
|
5
|
-
import { useFormContext as
|
|
6
|
-
import { useFormField as
|
|
7
|
-
function
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as g } from "react";
|
|
3
|
+
import { Slot as x } from "@radix-ui/react-slot";
|
|
4
|
+
import { mergeProps as C } from "react-aria";
|
|
5
|
+
import { useFormContext as D, useController as F } from "react-hook-form";
|
|
6
|
+
import { useFormField as L } from "../FormField.context.js";
|
|
7
|
+
function R({ ...s }) {
|
|
8
8
|
const {
|
|
9
|
-
name:
|
|
9
|
+
name: t,
|
|
10
10
|
hasHelperText: r,
|
|
11
|
-
hasContextualLink:
|
|
12
|
-
fieldState:
|
|
13
|
-
formLabelId:
|
|
11
|
+
hasContextualLink: l,
|
|
12
|
+
fieldState: o,
|
|
13
|
+
formLabelId: n,
|
|
14
14
|
formItemId: m,
|
|
15
15
|
formDescriptionId: e,
|
|
16
|
-
formMessageId:
|
|
16
|
+
formMessageId: a,
|
|
17
17
|
formContextualLinkId: f
|
|
18
|
-
} =
|
|
19
|
-
field: { ref:
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
} = L(), { control: p } = D(), {
|
|
19
|
+
field: { ref: c, ...b },
|
|
20
|
+
fieldState: { invalid: u, error: d }
|
|
21
|
+
} = F({ name: t, control: p }), y = g(() => [
|
|
22
|
+
d ? a : void 0,
|
|
22
23
|
r ? e : void 0
|
|
23
|
-
].filter(Boolean).join(" "), [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
isLoading:
|
|
27
|
-
isReadOnly:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
g,
|
|
24
|
+
].filter(Boolean).join(" "), [d, r, e, a]), i = {
|
|
25
|
+
isInvalid: u,
|
|
26
|
+
isDisabled: o.isDisabled,
|
|
27
|
+
isLoading: o.isLoading,
|
|
28
|
+
isReadOnly: o.isReadOnly
|
|
29
|
+
}, v = C(s, i, b);
|
|
30
|
+
return /* @__PURE__ */ I(
|
|
31
|
+
x,
|
|
32
32
|
{
|
|
33
|
-
...
|
|
34
|
-
ref:
|
|
33
|
+
...v,
|
|
34
|
+
ref: c,
|
|
35
35
|
"data-slot": "form-control",
|
|
36
36
|
id: m,
|
|
37
|
-
"aria-labelledby":
|
|
38
|
-
"aria-describedby":
|
|
39
|
-
"aria-details":
|
|
40
|
-
"aria-invalid":
|
|
41
|
-
"
|
|
37
|
+
"aria-labelledby": n,
|
|
38
|
+
"aria-describedby": y,
|
|
39
|
+
"aria-details": l ? f : void 0,
|
|
40
|
+
"aria-invalid": i.isInvalid,
|
|
41
|
+
"data-invalid": i.isInvalid,
|
|
42
|
+
"aria-disabled": i.isDisabled,
|
|
43
|
+
"data-disabled": i.isDisabled,
|
|
44
|
+
"aria-readonly": i.isReadOnly,
|
|
45
|
+
"data-readonly": i.isReadOnly,
|
|
42
46
|
"aria-required": o.isRequired,
|
|
43
|
-
"aria-busy":
|
|
47
|
+
"aria-busy": i.isLoading
|
|
44
48
|
}
|
|
45
49
|
);
|
|
46
50
|
}
|
|
47
|
-
|
|
51
|
+
R.displayName = "FormControl";
|
|
48
52
|
export {
|
|
49
|
-
|
|
53
|
+
R as FormControl
|
|
50
54
|
};
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return !d || !e ? null : /* @__PURE__ */ i(
|
|
12
|
-
l,
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { useFormContext as f, useController as p } from "react-hook-form";
|
|
4
|
+
import { Text as u } from "../../text/Text.js";
|
|
5
|
+
import { useFormField as y } from "../FormField.context.js";
|
|
6
|
+
const x = c(
|
|
7
|
+
({ children: e, ...n }, a) => {
|
|
8
|
+
const { name: m, formMessageId: s } = y(), d = f(), o = p({ name: m, control: d.control }), t = o.fieldState.error, i = o.fieldState.invalid, r = t ? String(t.message) : e;
|
|
9
|
+
return !i || !r ? null : /* @__PURE__ */ l(
|
|
10
|
+
u,
|
|
13
11
|
{
|
|
14
|
-
...
|
|
15
|
-
id:
|
|
12
|
+
...n,
|
|
13
|
+
id: s,
|
|
16
14
|
ref: a,
|
|
17
15
|
"data-unity-slot": "form-feedback-text",
|
|
18
16
|
className: "uy:typography-body-small-strong uy:text-content-form-invalid",
|
|
19
17
|
"data-dd-privacy": "allow",
|
|
20
|
-
children:
|
|
18
|
+
children: r
|
|
21
19
|
}
|
|
22
20
|
);
|
|
23
21
|
}
|
|
24
22
|
);
|
|
25
|
-
|
|
23
|
+
x.displayName = "FormFeedbackText";
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
x as FormFeedbackText
|
|
28
26
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { uyTv as o } from "@payfit/unity-themes";
|
|
3
|
+
import { useId as s } from "react-aria";
|
|
3
4
|
import { FormattedMessage as t } from "react-intl";
|
|
4
|
-
import { tv as s } from "tailwind-variants";
|
|
5
5
|
import { Spinner as i } from "../spinner/Spinner.js";
|
|
6
|
-
const n =
|
|
6
|
+
const n = o({
|
|
7
7
|
// add the component styles
|
|
8
8
|
base: "uy:w-full uy:h-screen uy:flex uy:place-items-center uy:justify-center"
|
|
9
|
-
}),
|
|
10
|
-
const r =
|
|
9
|
+
}), u = ({ label: a }) => {
|
|
10
|
+
const r = s();
|
|
11
11
|
return /* @__PURE__ */ l(
|
|
12
12
|
"main",
|
|
13
13
|
{
|
|
@@ -28,8 +28,8 @@ const n = s({
|
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
u.displayName = "FullPageLoader";
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
u as FullPageLoader,
|
|
34
34
|
n as fullPageLoader
|
|
35
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
-
import { VariantProps } from '
|
|
2
|
+
import { VariantProps } from '@payfit/unity-themes';
|
|
3
3
|
export declare const funnelLayout: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:relative uy:h-dvh uy:flex uy:flex-col uy:bg-canvas", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:relative uy:h-dvh uy:flex uy:flex-col uy:bg-canvas", unknown, unknown, undefined>>;
|
|
4
4
|
export interface FunnelLayoutProps extends PropsWithChildren<VariantProps<typeof funnelLayout>> {
|
|
5
5
|
/** The header content for the funnel layout, typically a FunnelTopBar component */
|
|
@@ -31,7 +31,7 @@ export interface FunnelLayoutProps extends PropsWithChildren<VariantProps<typeof
|
|
|
31
31
|
* - Creates a full viewport height layout with sticky top bar
|
|
32
32
|
* - Automatically sets DataDog's session replay privacy to `data-dd-privacy="mask-user-input"`
|
|
33
33
|
* @see {@link FunnelLayoutProps} for all available props
|
|
34
|
-
* @see Source code in {@link https://github.com/PayFit/hr-apps/
|
|
34
|
+
* @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout GitHub}
|
|
35
35
|
* @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
|
|
36
36
|
* @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
|
|
37
37
|
* @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout--docs unity-components.payfit.io}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as d, useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { link as
|
|
7
|
-
import { FunnelLayoutProvider as
|
|
8
|
-
const
|
|
2
|
+
import { forwardRef as d, useMemo as y } from "react";
|
|
3
|
+
import { uyTv as f } from "@payfit/unity-themes";
|
|
4
|
+
import { useId as c } from "react-aria";
|
|
5
|
+
import { FormattedMessage as a } from "react-intl";
|
|
6
|
+
import { link as p } from "../link/Link.variants.js";
|
|
7
|
+
import { FunnelLayoutProvider as m } from "./FunnelLayout.context.js";
|
|
8
|
+
const h = f({
|
|
9
9
|
base: "uy:relative uy:h-dvh uy:flex uy:flex-col uy:bg-canvas"
|
|
10
|
-
}),
|
|
11
|
-
({ children: o, header:
|
|
12
|
-
const e =
|
|
10
|
+
}), b = d(
|
|
11
|
+
({ children: o, header: s, ...u }, r) => {
|
|
12
|
+
const e = c(), { base: i } = p(), t = y(
|
|
13
13
|
() => ({
|
|
14
14
|
mainContentId: `funnel-main-content-${e}`,
|
|
15
15
|
topbarId: `funnel-top-bar-${e}`,
|
|
@@ -21,13 +21,13 @@ const m = c({
|
|
|
21
21
|
}),
|
|
22
22
|
[e]
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */ n(
|
|
24
|
+
return /* @__PURE__ */ n(m, { ids: t, children: /* @__PURE__ */ l(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
"data-dd-privacy": "mask-user-input",
|
|
28
|
-
...
|
|
28
|
+
...u,
|
|
29
29
|
ref: r,
|
|
30
|
-
className:
|
|
30
|
+
className: h(),
|
|
31
31
|
"data-unity-component": "FunnelLayout",
|
|
32
32
|
children: [
|
|
33
33
|
/* @__PURE__ */ l(
|
|
@@ -38,7 +38,7 @@ const m = c({
|
|
|
38
38
|
"aria-labelledby": `skip-links-label-${e}`,
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ n("span", { id: `skip-links-label-${e}`, className: "uy:typography-h4", children: /* @__PURE__ */ n(
|
|
41
|
-
|
|
41
|
+
a,
|
|
42
42
|
{
|
|
43
43
|
id: "unity:layout:funnel:skip-links:label",
|
|
44
44
|
defaultMessage: "Skip to:"
|
|
@@ -50,9 +50,9 @@ const m = c({
|
|
|
50
50
|
{
|
|
51
51
|
href: `#${t.topbarId}`,
|
|
52
52
|
tabIndex: 0,
|
|
53
|
-
className:
|
|
53
|
+
className: i(),
|
|
54
54
|
children: /* @__PURE__ */ n(
|
|
55
|
-
|
|
55
|
+
a,
|
|
56
56
|
{
|
|
57
57
|
id: "unity:layout:funnel:skip-links:top-bar",
|
|
58
58
|
defaultMessage: "Top bar"
|
|
@@ -65,9 +65,9 @@ const m = c({
|
|
|
65
65
|
{
|
|
66
66
|
href: `#${t.mainContentId}`,
|
|
67
67
|
tabIndex: 0,
|
|
68
|
-
className:
|
|
68
|
+
className: i(),
|
|
69
69
|
children: /* @__PURE__ */ n(
|
|
70
|
-
|
|
70
|
+
a,
|
|
71
71
|
{
|
|
72
72
|
id: "unity:layout:funnel:skip-links:main-content",
|
|
73
73
|
defaultMessage: "Main content"
|
|
@@ -80,9 +80,9 @@ const m = c({
|
|
|
80
80
|
{
|
|
81
81
|
href: `#${t.asideId}`,
|
|
82
82
|
tabIndex: 0,
|
|
83
|
-
className:
|
|
83
|
+
className: i(),
|
|
84
84
|
children: /* @__PURE__ */ n(
|
|
85
|
-
|
|
85
|
+
a,
|
|
86
86
|
{
|
|
87
87
|
id: "unity:layout:funnel:skip-links:sidebar",
|
|
88
88
|
defaultMessage: "Sidebar"
|
|
@@ -95,9 +95,9 @@ const m = c({
|
|
|
95
95
|
{
|
|
96
96
|
href: `#${t.footerId}`,
|
|
97
97
|
tabIndex: 0,
|
|
98
|
-
className:
|
|
98
|
+
className: i(),
|
|
99
99
|
children: /* @__PURE__ */ n(
|
|
100
|
-
|
|
100
|
+
a,
|
|
101
101
|
{
|
|
102
102
|
id: "unity:layout:funnel:skip-links:footer",
|
|
103
103
|
defaultMessage: "Footer"
|
|
@@ -114,7 +114,7 @@ const m = c({
|
|
|
114
114
|
{
|
|
115
115
|
"data-unity-component": "FunnelTopBar",
|
|
116
116
|
className: "uy:sticky uy:top-0 uy:z-10",
|
|
117
|
-
children:
|
|
117
|
+
children: s
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
120
|
/* @__PURE__ */ n(
|
|
@@ -130,8 +130,8 @@ const m = c({
|
|
|
130
130
|
) });
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
|
-
|
|
133
|
+
b.displayName = "FunnelLayout";
|
|
134
134
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
b as FunnelLayout,
|
|
136
|
+
h as funnelLayout
|
|
137
137
|
};
|
|
@@ -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 funnelBody: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:group/funnelbody uy:mx-auto uy:w-full uy:min-h-full uy:flex-1 uy:md:max-w-(--uy-container-lg) uy:md:px-300 uy:lg:max-w-(--uy-container-xl) uy:flex uy:flex-col uy:md:flex-row uy:gap-x-200 uy:md:py-600", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:group/funnelbody uy:mx-auto uy:w-full uy:min-h-full uy:flex-1 uy:md:max-w-(--uy-container-lg) uy:md:px-300 uy:lg:max-w-(--uy-container-xl) uy:flex uy:flex-col uy:md:flex-row uy:gap-x-200 uy:md:py-600", unknown, unknown, undefined>>;
|
|
4
4
|
export type FunnelBodyProps = PropsWithChildren<VariantProps<typeof funnelBody>>;
|
|
5
5
|
/**
|
|
@@ -25,7 +25,7 @@ export type FunnelBodyProps = PropsWithChildren<VariantProps<typeof funnelBody>>
|
|
|
25
25
|
* - Provides responsive breakpoints for mobile and desktop layouts
|
|
26
26
|
* - Automatically sets DataDog's session replay privacy to `data-dd-privacy="allow"`
|
|
27
27
|
* @see {@link FunnelBodyProps} for all available props
|
|
28
|
-
* @see Source code in {@link https://github.com/PayFit/hr-apps/
|
|
28
|
+
* @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
|
|
29
29
|
* @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
|
|
30
30
|
* @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
|
|
31
31
|
* @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelbody--docs unity-components.payfit.io}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { uyTv as a } from "@payfit/unity-themes";
|
|
4
4
|
const e = a({
|
|
5
5
|
base: "uy:group/funnelbody uy:mx-auto uy:w-full uy:min-h-full uy:flex-1 uy:md:max-w-(--uy-container-lg) uy:md:px-300 uy:lg:max-w-(--uy-container-xl) uy:flex uy:flex-col uy:md:flex-row uy:gap-x-200 uy:md:py-600"
|
|
6
6
|
}), m = n(
|
|
7
|
-
({ children: u, ...
|
|
7
|
+
({ children: u, ...y }, o) => /* @__PURE__ */ l(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
10
|
+
ref: o,
|
|
11
11
|
"data-dd-privacy": "allow",
|
|
12
|
-
...
|
|
12
|
+
...y,
|
|
13
13
|
className: e(),
|
|
14
14
|
"data-unity-component": "FunnelBody",
|
|
15
15
|
children: u
|
|
@@ -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 funnelPage: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
4
4
|
export type FunnelPageProps = PropsWithChildren<VariantProps<typeof funnelPage>>;
|
|
5
5
|
/**
|
|
@@ -25,7 +25,7 @@ export type FunnelPageProps = PropsWithChildren<VariantProps<typeof funnelPage>>
|
|
|
25
25
|
* - Provides proper semantic structure with main element
|
|
26
26
|
* - Automatically sets DataDog's session replay privacy to `data-dd-privacy="mask-user-input"`
|
|
27
27
|
* @see {@link FunnelPageProps} for all available props
|
|
28
|
-
* @see Source code in {@link https://github.com/PayFit/hr-apps/
|
|
28
|
+
* @see Source code in {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/funnel-layout/parts GitHub}
|
|
29
29
|
* @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library?node-id=10802-11500&m=dev Figma}
|
|
30
30
|
* @see Design docs in {@link https://www.payfit.design/24f360409/p/88f9fc-funnel/b/24ca6f Payfit.design}
|
|
31
31
|
* @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/layout-funnellayout-funnelpage--docs unity-components.payfit.io}
|