@payfit/unity-components 1.2.0 → 2.1.4
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.js +14 -14
- package/dist/esm/components/actionable/Actionable.js +31 -28
- package/dist/esm/components/alert/Alert.js +41 -29
- package/dist/esm/components/alert/parts/AlertTitle.js +8 -8
- package/dist/esm/components/app-layout/AppLayout.d.ts +2 -0
- package/dist/esm/components/app-layout/AppLayout.js +17 -17
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +23 -23
- package/dist/esm/components/app-menu/parts/AppMenuHeader.d.ts +87 -5
- package/dist/esm/components/app-menu/parts/AppMenuHeader.js +25 -25
- package/dist/esm/components/autocomplete/Autocomplete.d.ts +0 -9
- package/dist/esm/components/autocomplete/Autocomplete.js +54 -57
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +8 -8
- package/dist/esm/components/avatar/Avatar.variants.js +1 -1
- package/dist/esm/components/avatar/parts/AvatarFallback.js +26 -27
- package/dist/esm/components/badge/Badge.js +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.context.js +3 -3
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +19 -11
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +29 -18
- package/dist/esm/components/breadcrumbs/Breadcrumbs.variant.js +1 -1
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.d.ts +30 -5
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +35 -27
- package/dist/esm/components/breadcrumbs/parts/RawBreadcrumbLink.d.ts +37 -0
- package/dist/esm/components/breadcrumbs/parts/RawBreadcrumbLink.js +36 -0
- package/dist/esm/components/button/Button.js +6 -6
- package/dist/esm/components/button/Button.variants.d.ts +1 -0
- package/dist/esm/components/button/Button.variants.js +22 -15
- package/dist/esm/components/card/Card.context.d.ts +5 -0
- package/dist/esm/components/card/Card.context.js +14 -0
- package/dist/esm/components/card/Card.d.ts +210 -0
- package/dist/esm/components/card/Card.js +93 -0
- package/dist/esm/components/card/parts/CardContent.d.ts +37 -0
- package/dist/esm/components/card/parts/CardContent.js +8 -0
- package/dist/esm/components/card/parts/CardTitle.d.ts +55 -0
- package/dist/esm/components/card/parts/CardTitle.js +33 -0
- package/dist/esm/components/checkbox/Checkbox.js +38 -30
- package/dist/esm/components/checkbox/Checkbox.variants.d.ts +9 -9
- package/dist/esm/components/checkbox/Checkbox.variants.js +23 -7
- package/dist/esm/components/checkbox/TanstackCheckbox.d.ts +28 -0
- package/dist/esm/components/checkbox/TanstackCheckbox.js +51 -0
- package/dist/esm/components/checkbox/parts/CheckboxIndicator.js +7 -7
- package/dist/esm/components/checkbox-field/CheckboxField.d.ts +2 -0
- package/dist/esm/components/checkbox-field/TanstackCheckboxField.d.ts +14 -0
- package/dist/esm/components/checkbox-field/TanstackCheckboxField.js +40 -0
- package/dist/esm/components/checkbox-group/TanstackCheckboxGroup.d.ts +4 -0
- package/dist/esm/components/checkbox-group/TanstackCheckboxGroup.js +37 -0
- package/dist/esm/components/checkbox-group-field/CheckboxGroupField.d.ts +2 -0
- package/dist/esm/components/checkbox-group-field/TanstackCheckGroupField.d.ts +72 -0
- package/dist/esm/components/checkbox-group-field/TanstackCheckGroupField.js +40 -0
- package/dist/esm/components/client-side-pagination/ClientSidePagination.d.ts +103 -0
- package/dist/esm/components/client-side-pagination/ClientSidePagination.js +177 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.d.ts +11 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.js +30 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.d.ts +8 -0
- package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationNavButton.js +1 -1
- package/dist/esm/components/{pagination/parts/PaginationLink.d.ts → client-side-pagination/parts/RawPaginationLink.d.ts} +2 -2
- package/dist/esm/components/{pagination/parts/PaginationLink.js → client-side-pagination/parts/RawPaginationLink.js} +12 -12
- package/dist/esm/components/client-side-pagination/utils/pagination-window.d.ts +8 -0
- package/dist/esm/components/client-side-pagination/utils/pagination-window.js +33 -0
- package/dist/esm/components/collapsible/parts/CollapsibleContent.js +5 -5
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +8 -8
- package/dist/esm/components/data-table/DataTable.d.ts +109 -16
- package/dist/esm/components/data-table/DataTable.js +107 -93
- package/dist/esm/components/data-table/mocks/employee-data.d.ts +1 -0
- package/dist/esm/components/date-calendar/DateCalendar.js +1 -1
- package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +1 -1
- package/dist/esm/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/esm/components/date-picker/DatePicker.js +59 -50
- package/dist/esm/components/date-picker/TanstackDatePicker.d.ts +22 -0
- package/dist/esm/components/date-picker/TanstackDatePicker.js +53 -0
- package/dist/esm/components/date-picker/parts/DateInput.js +4 -4
- package/dist/esm/components/date-picker-field/DatePickerField.d.ts +2 -0
- package/dist/esm/components/date-picker-field/TanstackDatePickerField.d.ts +71 -0
- package/dist/esm/components/date-picker-field/TanstackDatePickerField.js +41 -0
- package/dist/esm/components/definition-list/DefinitionList.context.d.ts +19 -0
- package/dist/esm/components/definition-list/DefinitionList.d.ts +24 -0
- package/dist/esm/components/definition-list/parts/DefinitionItem.d.ts +25 -0
- package/dist/esm/components/dialog/Dialog.d.ts +34 -22
- package/dist/esm/components/dialog/Dialog.js +90 -52
- package/dist/esm/components/dialog/parts/DialogActions.js +6 -6
- package/dist/esm/components/dialog/parts/DialogTitle.js +7 -4
- package/dist/esm/components/dialog/test-utils.d.ts +28 -0
- package/dist/esm/components/dialog/test-utils.js +78 -0
- package/dist/esm/components/error-state/ErrorState.d.ts +13 -1
- package/dist/esm/components/error-state/ErrorState.js +133 -92
- package/dist/esm/components/error-state/initConfig.js +1 -1
- package/dist/esm/components/fieldset/Fieldset.d.ts +19 -0
- package/dist/esm/components/fieldset/Fieldset.js +32 -26
- package/dist/esm/components/filter/Filter.controls.d.ts +192 -0
- package/dist/esm/components/filter/Filter.controls.js +45 -0
- package/dist/esm/components/filter/Filter.d.ts +189 -0
- package/dist/esm/components/filter/Filter.js +147 -0
- package/dist/esm/components/filter/Filter.types.d.ts +121 -0
- package/dist/esm/components/filter/hooks/useFilterIds.d.ts +49 -0
- package/dist/esm/components/filter/hooks/useFilterIds.js +13 -0
- package/dist/esm/components/filter/hooks/useFilterState.d.ts +74 -0
- package/dist/esm/components/filter/hooks/useFilterState.js +23 -0
- package/dist/esm/components/filter/hooks/useFilterValue.d.ts +61 -0
- package/dist/esm/components/filter/hooks/useFilterValue.js +31 -0
- package/dist/esm/components/filter/parts/FilterButton.d.ts +75 -0
- package/dist/esm/components/filter/parts/FilterButton.js +55 -0
- package/dist/esm/components/filter/parts/FilterLabel.d.ts +96 -0
- package/dist/esm/components/filter/parts/FilterLabel.js +57 -0
- package/dist/esm/components/filter/parts/FilterPopover.d.ts +95 -0
- package/dist/esm/components/filter/parts/FilterPopover.js +79 -0
- package/dist/esm/components/filter/utils/value-formatters.d.ts +62 -0
- package/dist/esm/components/filter/utils/value-formatters.js +14 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.d.ts +110 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.js +172 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.types.d.ts +119 -0
- package/dist/esm/components/filter-toolbar/hooks/use-filter-toolbar-state.d.ts +96 -0
- package/dist/esm/components/filter-toolbar/hooks/use-filter-toolbar-state.js +132 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilter.d.ts +63 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilter.js +107 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.d.ts +18 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.js +18 -0
- package/dist/esm/components/filter-toolbar/utils/filter-adapters.d.ts +93 -0
- package/dist/esm/components/filter-toolbar/utils/filter-adapters.js +88 -0
- package/dist/esm/components/filter-toolbar/utils/normalize-filter-value.d.ts +24 -0
- package/dist/esm/components/filter-toolbar/utils/normalize-filter-value.js +19 -0
- package/dist/esm/components/flex/Flex.js +52 -37
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/TanstackForm.d.ts +24 -0
- package/dist/esm/components/form/TanstackForm.js +29 -0
- package/dist/esm/components/form-field/FormField.d.ts +2 -0
- package/dist/esm/components/form-field/FormField.js +12 -12
- package/dist/esm/components/form-field/TanstackFormField.context.d.ts +10 -0
- package/dist/esm/components/form-field/TanstackFormField.context.js +14 -0
- package/dist/esm/components/form-field/TanstackFormField.d.ts +49 -0
- package/dist/esm/components/form-field/TanstackFormField.js +46 -0
- package/dist/esm/components/form-field/parts/FormControl.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormFeedbackText.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormHelperText.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormLabel.d.ts +2 -0
- package/dist/esm/components/form-field/parts/RawFormContextualLink.d.ts +22 -0
- package/dist/esm/components/form-field/parts/RawFormContextualLink.js +39 -0
- package/dist/esm/components/form-field/parts/TanstackFormFeedbackText.d.ts +12 -0
- package/dist/esm/components/form-field/parts/TanstackFormFeedbackText.js +32 -0
- package/dist/esm/components/form-field/parts/TanstackFormHelperText.d.ts +11 -0
- package/dist/esm/components/form-field/parts/TanstackFormHelperText.js +25 -0
- package/dist/esm/components/form-field/parts/TanstackFormLabel.d.ts +8 -0
- package/dist/esm/components/form-field/parts/TanstackFormLabel.js +26 -0
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.d.ts +26 -0
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.js +45 -0
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +2 -2
- package/dist/esm/components/icon/Icon.js +23 -19
- package/dist/esm/components/icon-button/CircularIconButton.d.ts +9 -9
- package/dist/esm/components/icon-button/CircularIconButton.js +53 -36
- package/dist/esm/components/icon-button/IconButton.variants.d.ts +1 -0
- package/dist/esm/components/icon-button/IconButton.variants.js +44 -28
- package/dist/esm/components/input/Input.js +36 -35
- package/dist/esm/components/input/TanstackInput.d.ts +22 -0
- package/dist/esm/components/input/TanstackInput.js +38 -0
- package/dist/esm/components/label/Label.js +12 -12
- package/dist/esm/components/link/{Link.variants.d.ts → RawLink.d.ts} +92 -0
- package/dist/esm/components/link/{Link.variants.js → RawLink.js} +78 -5
- package/dist/esm/components/list-view/ListView.d.ts +56 -0
- package/dist/esm/components/list-view/ListView.fixtures.d.ts +20 -0
- package/dist/esm/components/list-view/ListView.js +44 -0
- package/dist/esm/components/list-view/parts/ListViewItemLabel.d.ts +34 -0
- package/dist/esm/components/list-view/parts/ListViewItemLabel.js +22 -0
- package/dist/esm/components/list-view/parts/ListViewItemText.d.ts +33 -0
- package/dist/esm/components/list-view/parts/ListViewItemText.js +22 -0
- package/dist/esm/components/list-view/parts/ListViewSection.d.ts +14 -0
- package/dist/esm/components/list-view/parts/ListViewSection.js +21 -0
- package/dist/esm/components/list-view/parts/RawListViewItem.d.ts +102 -0
- package/dist/esm/components/list-view/parts/RawListViewItem.js +80 -0
- package/dist/esm/components/menu/parts/{MenuItem.d.ts → RawMenuItem.d.ts} +3 -4
- package/dist/esm/components/menu/parts/{MenuItem.js → RawMenuItem.js} +9 -9
- package/dist/esm/components/multi-select/MultiSelect.d.ts +5 -7
- package/dist/esm/components/multi-select/MultiSelect.js +199 -176
- package/dist/esm/components/multi-select/MultiselectTypes.d.ts +114 -0
- package/dist/esm/components/multi-select/TanstackMultiSelect.d.ts +7 -0
- package/dist/esm/components/multi-select/TanstackMultiSelect.js +41 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.d.ts +2 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +62 -46
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.js +15 -15
- package/dist/esm/components/multi-select-field/MultiSelectField.d.ts +45 -12
- package/dist/esm/components/multi-select-field/MultiSelectField.js +56 -66
- package/dist/esm/components/multi-select-field/TanstackMultiSelectField.d.ts +92 -0
- package/dist/esm/components/multi-select-field/TanstackMultiSelectField.js +48 -0
- package/dist/esm/components/multi-select-field/test-utils.d.ts +17 -0
- package/dist/esm/components/multi-select-field/test-utils.js +45 -0
- package/dist/esm/components/nav/parts/NavGroup.d.ts +3 -3
- package/dist/esm/components/nav/parts/NavGroup.js +62 -51
- package/dist/esm/components/nav/parts/{NavItem.d.ts → RawNavItem.d.ts} +102 -5
- package/dist/esm/components/nav/parts/RawNavItem.js +106 -0
- package/dist/esm/components/navigation-card/NavigationCard.context.d.ts +31 -0
- package/dist/esm/components/navigation-card/NavigationCard.context.js +13 -0
- package/dist/esm/components/navigation-card/NavigationCard.d.ts +46 -0
- package/dist/esm/components/navigation-card/NavigationCard.js +62 -0
- package/dist/esm/components/navigation-card/NavigationCard.types.d.ts +37 -0
- package/dist/esm/components/navigation-card/NavigationCard.variants.d.ts +1147 -0
- package/dist/esm/components/navigation-card/NavigationCard.variants.js +164 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardDescription.d.ts +39 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardDescription.js +22 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardGroup.d.ts +146 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardGroup.js +93 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardLabel.d.ts +32 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardLabel.js +24 -0
- package/dist/esm/components/number-field/NumberField.d.ts +2 -0
- package/dist/esm/components/number-field/TanstackNumberField.d.ts +74 -0
- package/dist/esm/components/number-field/TanstackNumberField.js +44 -0
- package/dist/esm/components/number-input/NumberInput.js +31 -29
- package/dist/esm/components/number-input/TanstackNumberInput.d.ts +58 -0
- package/dist/esm/components/number-input/TanstackNumberInput.js +38 -0
- package/dist/esm/components/page/Page.js +13 -12
- package/dist/esm/components/page/parts/PageHeader.d.ts +79 -9
- package/dist/esm/components/page/parts/PageHeader.js +22 -20
- package/dist/esm/components/pagination/Pagination.d.ts +23 -44
- package/dist/esm/components/pagination/Pagination.js +89 -163
- package/dist/esm/components/pagination/PaginationContext.d.ts +11 -0
- package/dist/esm/components/pagination/PaginationContext.js +15 -0
- package/dist/esm/components/pagination/hooks/use-pagination-state.d.ts +63 -0
- package/dist/esm/components/pagination/hooks/use-pagination-state.js +27 -0
- package/dist/esm/components/pagination/hooks/use-pagination-window.d.ts +64 -0
- package/dist/esm/components/pagination/hooks/use-pagination-window.js +15 -0
- package/dist/esm/components/pagination/parts/PaginationContent.d.ts +30 -0
- package/dist/esm/components/pagination/parts/PaginationContent.js +37 -0
- package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +23 -4
- package/dist/esm/components/pagination/parts/PaginationEllipsis.js +20 -16
- package/dist/esm/components/pagination/parts/PaginationItem.d.ts +38 -0
- package/dist/esm/components/pagination/parts/PaginationItem.js +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationLink.d.ts +11 -0
- package/dist/esm/components/pagination/parts/RawPaginationLink.js +60 -0
- package/dist/esm/components/pagination/parts/RawPaginationNext.d.ts +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationNext.js +70 -0
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.d.ts +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.js +67 -0
- package/dist/esm/components/pagination/utils/pagination-window.js +29 -20
- package/dist/esm/components/payfit-brand/PayFitBrand.d.ts +4 -0
- package/dist/esm/components/payfit-brand/PayFitBrand.js +30 -22
- package/dist/esm/components/payfit-brand/PayFitPreprod.js +25 -25
- package/dist/esm/components/phone-number/PhoneNumberInput.d.ts +67 -0
- package/dist/esm/components/phone-number/PhoneNumberInput.js +322 -0
- package/dist/esm/components/phone-number/TanstackPhoneNumberInput.d.ts +64 -0
- package/dist/esm/components/phone-number/TanstackPhoneNumberInput.js +33 -0
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.d.ts +42 -0
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.js +68 -0
- package/dist/esm/components/phone-number/unknownFlag.svg.js +4 -0
- package/dist/esm/components/phone-number-field/TanstackPhoneNumberField.d.ts +15 -0
- package/dist/esm/components/phone-number-field/TanstackPhoneNumberField.js +32 -0
- package/dist/esm/components/pill/Pill.d.ts +2 -2
- package/dist/esm/components/pill/Pill.js +8 -8
- package/dist/esm/components/popover/Popover.js +6 -6
- package/dist/esm/components/promo-dialog/PromoDialog.d.ts +149 -0
- package/dist/esm/components/promo-dialog/PromoDialog.js +219 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogActions.d.ts +44 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogActions.js +29 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogContent.d.ts +43 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogContent.js +20 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogHero.d.ts +47 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogHero.js +25 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogSubtitle.d.ts +53 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogSubtitle.js +21 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.d.ts +6 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.js +18 -0
- package/dist/esm/components/radio-button-group/TanstackRadioButtonGroup.d.ts +13 -0
- package/dist/esm/components/radio-button-group/TanstackRadioButtonGroup.js +43 -0
- package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +29 -11
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +53 -51
- package/dist/esm/components/radio-button-group-field/RadioButtonGroupField.d.ts +2 -0
- package/dist/esm/components/radio-button-group-field/TanstackRadioButtonGroupField.d.ts +13 -0
- package/dist/esm/components/radio-button-group-field/TanstackRadioButtonGroupField.js +38 -0
- package/dist/esm/components/search/Search.js +46 -46
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +5 -5
- package/dist/esm/components/select/Select.d.ts +5 -4
- package/dist/esm/components/select/Select.js +79 -53
- package/dist/esm/components/select/TanstackSelect.d.ts +80 -0
- package/dist/esm/components/select/TanstackSelect.js +34 -0
- package/dist/esm/components/select/parts/SearchInput.d.ts +4 -1
- package/dist/esm/components/select/parts/SearchInput.js +49 -31
- package/dist/esm/components/select/parts/SelectButton.js +19 -17
- package/dist/esm/components/select/parts/SelectOption.js +9 -9
- package/dist/esm/components/select-field/SelectField.d.ts +2 -0
- package/dist/esm/components/select-field/SelectField.js +8 -9
- package/dist/esm/components/select-field/TanstackSelectField.d.ts +124 -0
- package/dist/esm/components/select-field/TanstackSelectField.js +44 -0
- package/dist/esm/components/select-list/SelectList.d.ts +95 -0
- package/dist/esm/components/select-list/SelectList.js +79 -0
- package/dist/esm/components/select-list/SelectList.types.d.ts +29 -0
- package/dist/esm/components/select-list/constants.d.ts +36 -0
- package/dist/esm/components/select-list/constants.js +29 -0
- package/dist/esm/components/select-list/helpers.d.ts +42 -0
- package/dist/esm/components/select-list/helpers.js +48 -0
- package/dist/esm/components/select-list/hooks/useControlledSelection.d.ts +23 -0
- package/dist/esm/components/select-list/hooks/useControlledSelection.js +16 -0
- package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.d.ts +23 -0
- package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.js +31 -0
- package/dist/esm/components/select-list/parts/SelectListEmptyState.d.ts +8 -0
- package/dist/esm/components/select-list/parts/SelectListEmptyState.js +25 -0
- package/dist/esm/components/select-list/parts/SelectListOptGroup.d.ts +118 -0
- package/dist/esm/components/select-list/parts/SelectListOptGroup.js +28 -0
- package/dist/esm/components/select-list/parts/SelectListOption.d.ts +24 -0
- package/dist/esm/components/select-list/parts/SelectListOption.js +72 -0
- package/dist/esm/components/select-list/parts/SelectListSearchInput.d.ts +2 -0
- package/dist/esm/components/select-list/parts/SelectListSearchInput.js +43 -0
- package/dist/esm/components/select-list/parts/SelectedItemsSection.d.ts +54 -0
- package/dist/esm/components/select-list/parts/SelectedItemsSection.js +35 -0
- package/dist/esm/components/select-list/utils/partition.d.ts +13 -0
- package/dist/esm/components/select-list/utils/partition.js +9 -0
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.d.ts +1 -5
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +6 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +23 -23
- package/dist/esm/components/selectable-button-group/TanstackSelectableButtonGroup.d.ts +27 -0
- package/dist/esm/components/selectable-button-group/TanstackSelectableButtonGroup.js +34 -0
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.ts +1 -16
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +56 -57
- package/dist/esm/components/selectable-button-group-field/SelectableButtonGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-button-group-field/TanstackSelectableButtonGroupField.d.ts +81 -0
- package/dist/esm/components/selectable-button-group-field/TanstackSelectableButtonGroupField.js +47 -0
- package/dist/esm/components/selectable-card/internals/Description.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/TanstackSelectableCardCheckboxGroup.d.ts +26 -0
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/TanstackSelectableCardCheckboxGroup.js +32 -0
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.js +24 -24
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.d.ts +2 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.js +12 -14
- package/dist/esm/components/selectable-card/selectable-card-radio-group/TanstackSelectableCardRadioGroup.d.ts +28 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/TanstackSelectableCardRadioGroup.js +32 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js +14 -13
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js +27 -25
- package/dist/esm/components/selectable-card/selectableCard.variant.js +5 -5
- package/dist/esm/components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-card-checkbox-group-field/TanstackSelectableCardCheckboxGroupField.d.ts +10 -0
- package/dist/esm/components/selectable-card-checkbox-group-field/TanstackSelectableCardCheckboxGroupField.js +38 -0
- package/dist/esm/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-card-radio-group-field/TanstackSelectableCardRadioGroupField.d.ts +10 -0
- package/dist/esm/components/selectable-card-radio-group-field/TanstackSelectableCardRadioGroupField.js +38 -0
- package/dist/esm/components/skip-links/SkipLinks.js +1 -1
- package/dist/esm/components/table/Table.context.d.ts +5 -0
- package/dist/esm/components/table/Table.context.js +14 -13
- package/dist/esm/components/table/Table.d.ts +94 -0
- package/dist/esm/components/table/Table.js +145 -108
- package/dist/esm/components/table/hooks/useTableKeyboardNavigation.js +6 -6
- package/dist/esm/components/table/parts/TableBody.js +83 -21
- package/dist/esm/components/table/parts/TableCell.js +29 -26
- package/dist/esm/components/table/parts/TableEmptyState.js +6 -6
- package/dist/esm/components/table/parts/TableHeader.js +1 -1
- package/dist/esm/components/table/parts/TablePagination.d.ts +5 -5
- package/dist/esm/components/table/parts/TablePagination.js +11 -11
- package/dist/esm/components/table/parts/TableRow.js +22 -18
- package/dist/esm/components/tabs/Tabs.variant.d.ts +0 -6
- package/dist/esm/components/tabs/Tabs.variant.js +11 -12
- package/dist/esm/components/tabs/parts/{Tab.d.ts → RawTab.d.ts} +2 -2
- package/dist/esm/components/tabs/parts/{Tab.js → RawTab.js} +6 -6
- package/dist/esm/components/task-menu/TaskMenu.d.ts +4 -4
- package/dist/esm/components/task-menu/parts/{SubTask.d.ts → RawSubTask.d.ts} +7 -7
- package/dist/esm/components/task-menu/parts/{SubTask.js → RawSubTask.js} +43 -43
- package/dist/esm/components/task-menu/parts/{Task.d.ts → RawTask.d.ts} +7 -7
- package/dist/esm/components/task-menu/parts/{Task.js → RawTask.js} +45 -41
- package/dist/esm/components/task-menu/parts/TaskGroup.d.ts +5 -5
- package/dist/esm/components/task-menu/parts/TaskGroup.js +30 -26
- package/dist/esm/components/task-menu/parts/task.variants.js +4 -2
- package/dist/esm/components/text/Text.d.ts +11 -1
- package/dist/esm/components/text/Text.js +43 -30
- package/dist/esm/components/text/Text.variants.d.ts +12 -0
- package/dist/esm/components/text/Text.variants.js +4 -0
- package/dist/esm/components/text-area/TanstackTextArea.d.ts +21 -0
- package/dist/esm/components/text-area/TanstackTextArea.js +35 -0
- package/dist/esm/components/text-area/TextArea.js +31 -29
- package/dist/esm/components/text-field/TanstackTextField.d.ts +79 -0
- package/dist/esm/components/text-field/TanstackTextField.js +60 -0
- package/dist/esm/components/text-field/TextField.d.ts +2 -0
- package/dist/esm/components/toast/UnityToast.js +5 -5
- package/dist/esm/components/toast/test-utils.d.ts +36 -0
- package/dist/esm/components/toast/test-utils.js +118 -0
- package/dist/esm/components/toggle-switch/TanstackToggleSwitch.d.ts +46 -0
- package/dist/esm/components/toggle-switch/TanstackToggleSwitch.js +25 -0
- package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +21 -9
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +71 -32
- package/dist/esm/components/toggle-switch-field/TanstackToggleSwitchField.d.ts +11 -0
- package/dist/esm/components/toggle-switch-field/TanstackToggleSwitchField.js +34 -0
- package/dist/esm/components/toggle-switch-field/ToggleSwitchField.d.ts +2 -0
- package/dist/esm/components/toggle-switch-group/TanstackToggleSwitchGroup.d.ts +57 -0
- package/dist/esm/components/toggle-switch-group/TanstackToggleSwitchGroup.js +23 -0
- package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.js +1 -1
- package/dist/esm/components/toggle-switch-group-field/TanstackToggleSwitchGroupField.d.ts +19 -0
- package/dist/esm/components/toggle-switch-group-field/TanstackToggleSwitchGroupField.js +50 -0
- package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.d.ts +2 -0
- package/dist/esm/docs/{table → examples/data}/mocks/employee-columns.d.ts +1 -1
- package/dist/esm/hooks/tanstack-form-context.d.ts +1 -0
- package/dist/esm/hooks/tanstack-form-context.js +8 -0
- package/dist/esm/hooks/use-container-query-level.d.ts +42 -0
- package/dist/esm/hooks/use-container-query-level.js +33 -0
- package/dist/esm/hooks/use-form.d.ts +2 -0
- package/dist/esm/hooks/use-has-scroll.d.ts +71 -0
- package/dist/esm/hooks/use-has-scroll.js +75 -0
- package/dist/esm/hooks/use-tanstack-form.d.ts +369 -0
- package/dist/esm/hooks/use-tanstack-form.js +209 -0
- package/dist/esm/index.d.ts +64 -30
- package/dist/esm/index.js +482 -394
- package/dist/esm/index.storybook-testing.d.ts +3 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/Breadcrumb.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/BreadcrumbLink.d.ts +38 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/BreadcrumbLink.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/Breadcrumbs.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/use-route-breadcrumb.d.ts +53 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/FormContextualLink.d.ts +45 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/FormContextualLink.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/TanstackFormContextualLink.d.ts +43 -0
- package/dist/esm/integrations/tanstack-router/components/link/Link.d.ts +33 -0
- package/dist/esm/integrations/tanstack-router/components/link/Link.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/ListView.d.ts +34 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/ListView.js +25 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/parts/ListViewItem.d.ts +51 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/parts/ListViewItem.js +32 -0
- package/dist/esm/integrations/tanstack-router/components/menu-item/MenuItem.d.ts +49 -0
- package/dist/esm/integrations/tanstack-router/components/menu-item/MenuItem.js +16 -0
- package/dist/esm/integrations/tanstack-router/components/nav-item/NavItem.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/nav-item/NavItem.js +29 -0
- package/dist/esm/integrations/tanstack-router/components/navigation-card/NavigationCard.d.ts +73 -0
- package/dist/esm/integrations/tanstack-router/components/navigation-card/NavigationCard.js +37 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationLink.d.ts +54 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationLink.js +21 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationNext.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationNext.js +22 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationPrevious.d.ts +51 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationPrevious.js +22 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/Tabs.d.ts +82 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/Tabs.js +41 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/Tab.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/Tab.js +15 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabList.d.ts +5 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.d.ts +77 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.js +16 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/SubTask.d.ts +69 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/SubTask.js +14 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/Task.d.ts +64 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/Task.js +14 -0
- package/dist/esm/integrations/tanstack-router/index.d.ts +19 -0
- package/dist/esm/integrations/tanstack-router/utils/decorators.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router.js +40 -0
- package/dist/esm/mocks/employees.d.ts +1 -5
- package/dist/esm/providers/router/RouterProvider.d.ts +7 -2
- package/dist/esm/providers/router/RouterProvider.js +14 -10
- package/dist/esm/storybook-testing.js +8 -2
- package/dist/esm/storybook-utilities/previewTransform.d.ts +1 -0
- package/dist/esm/types/DataAttributes.d.ts +1 -1
- package/dist/esm/utils/scroll-detection.d.ts +77 -0
- package/dist/esm/utils/scroll-detection.js +33 -0
- package/dist/esm/utils/spacing.d.ts +63 -0
- package/dist/esm/utils/spacing.js +15 -0
- package/i18n/en-GB.json +22 -8
- package/i18n/es-ES.json +24 -10
- package/i18n/fr-FR.json +25 -11
- package/package.json +66 -45
- package/dist/esm/components/form-field/parts/FormContextualLink.d.ts +0 -20
- package/dist/esm/components/form-field/parts/FormContextualLink.js +0 -37
- package/dist/esm/components/link/Link.d.ts +0 -93
- package/dist/esm/components/link/Link.js +0 -68
- package/dist/esm/components/multi-select/Multiselect.types.d.ts +0 -109
- package/dist/esm/components/nav/parts/NavItem.js +0 -95
- package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.d.ts +0 -6
- package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.js +0 -28
- package/dist/esm/integrations/react-router/v5/index.d.ts +0 -1
- package/dist/esm/integrations/react-router/v5.js +0 -4
- /package/dist/esm/components/{pagination → client-side-pagination}/hooks/use-pagination.d.ts +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/hooks/use-pagination.js +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationJumpDialog.js +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationNavButton.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `TanstackForm` is a form wrapper bound to the TanStack form context.
|
|
3
|
+
* It prevents the default browser submission, delegates to the TanStack form
|
|
4
|
+
* `handleSubmit`, and then invokes the provided `onSubmit` (if any).
|
|
5
|
+
*
|
|
6
|
+
* Behavior:
|
|
7
|
+
* - `onSubmit` handler: prevents default, calls `form.handleSubmit(event)`, then
|
|
8
|
+
* forwards the event to the user-provided `onSubmit`.
|
|
9
|
+
* - Exposes a standard `<form>` element API via `ComponentProps<'form'>`.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* ```tsx
|
|
13
|
+
* function Example() {
|
|
14
|
+
* const form = useTanstackUnityForm<{ name: string }>({ validators: {} })
|
|
15
|
+
* return (
|
|
16
|
+
* <TanstackForm>
|
|
17
|
+
* <form.AppField name="name">{() => <TanstackInput />}</form.AppField>
|
|
18
|
+
* </TanstackForm>
|
|
19
|
+
* )
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const TanstackForm: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & import('react').RefAttributes<HTMLFormElement>>;
|
|
24
|
+
export { TanstackForm };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { uyTv as c } from "@payfit/unity-themes";
|
|
4
|
+
import { useFormContext as f } from "../../hooks/tanstack-form-context.js";
|
|
5
|
+
const u = c({
|
|
6
|
+
base: []
|
|
7
|
+
}), d = p(
|
|
8
|
+
({ children: t, onSubmit: r, className: a, ...m }, s) => {
|
|
9
|
+
const i = f();
|
|
10
|
+
return /* @__PURE__ */ n(
|
|
11
|
+
"form",
|
|
12
|
+
{
|
|
13
|
+
"data-dd-privacy": "mask",
|
|
14
|
+
onSubmit: (o) => {
|
|
15
|
+
o.preventDefault(), o.stopPropagation(), i.handleSubmit(o), r?.(o);
|
|
16
|
+
},
|
|
17
|
+
...m,
|
|
18
|
+
ref: s,
|
|
19
|
+
noValidate: !0,
|
|
20
|
+
className: u({ className: a }),
|
|
21
|
+
children: t
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
d.displayName = "TanstackForm";
|
|
27
|
+
export {
|
|
28
|
+
d as TanstackForm
|
|
29
|
+
};
|
|
@@ -54,6 +54,8 @@ export interface FormFieldProps<TFieldValues extends FieldValues = FieldValues,
|
|
|
54
54
|
* }
|
|
55
55
|
* ```
|
|
56
56
|
* @note Use this component directly from the `useUnityForm` hook to have type-safety based on the form schema.
|
|
57
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
58
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
57
59
|
*/
|
|
58
60
|
declare const FormField: React.ForwardRefExoticComponent<FormFieldProps<FieldValues, string> & React.RefAttributes<HTMLDivElement>>;
|
|
59
61
|
export { FormField };
|
|
@@ -5,15 +5,15 @@ import { useController as S } from "react-hook-form";
|
|
|
5
5
|
import P from "../../hooks/use-id.js";
|
|
6
6
|
import { createSchemaAdapter as g } from "../../utils/createSchemaAdapter.js";
|
|
7
7
|
import { useUnityFormProvider as j } from "../form/Form.context.js";
|
|
8
|
-
import { FormFieldProvider as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { isFieldRequired as
|
|
12
|
-
const
|
|
8
|
+
import { FormFieldProvider as w } from "./FormField.context.js";
|
|
9
|
+
import { FormHelperText as D } from "./parts/FormHelperText.js";
|
|
10
|
+
import { RawFormContextualLink as E } from "./parts/RawFormContextualLink.js";
|
|
11
|
+
import { isFieldRequired as I } from "./utils/isFieldRequired.js";
|
|
12
|
+
const N = L({
|
|
13
13
|
slots: {
|
|
14
14
|
base: "uy:flex uy:flex-col uy:gap-100"
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), _ = H(
|
|
17
17
|
({
|
|
18
18
|
children: o,
|
|
19
19
|
control: f,
|
|
@@ -25,7 +25,7 @@ const _ = L({
|
|
|
25
25
|
isDisabled: h
|
|
26
26
|
}, y) => {
|
|
27
27
|
const b = P(), { schema: t } = j(), { formState: i } = S({ name: r, control: f }), C = d(
|
|
28
|
-
() =>
|
|
28
|
+
() => I(g(t), r),
|
|
29
29
|
[t, r]
|
|
30
30
|
), { hasHelperText: R, hasContextualLink: T } = d(() => {
|
|
31
31
|
let s = !1, m = !1;
|
|
@@ -33,7 +33,7 @@ const _ = L({
|
|
|
33
33
|
n.Children.forEach(v, (a) => {
|
|
34
34
|
if (!n.isValidElement(a)) return;
|
|
35
35
|
const e = a;
|
|
36
|
-
e.type ===
|
|
36
|
+
e.type === D ? s = !0 : e.type === E && (m = !0), e.props && typeof e.props == "object" && "children" in e.props && l(e.props.children);
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
39
|
return l(o), { hasHelperText: s, hasContextualLink: m };
|
|
@@ -46,11 +46,11 @@ const _ = L({
|
|
|
46
46
|
id: b,
|
|
47
47
|
isRequired: F ?? C,
|
|
48
48
|
isDisabled: h ?? (i.isSubmitting || i.disabled)
|
|
49
|
-
}, { base: q } =
|
|
50
|
-
return /* @__PURE__ */ p("div", { ref: y, className: q({ className: x }), children: /* @__PURE__ */ p(
|
|
49
|
+
}, { base: q } = N();
|
|
50
|
+
return /* @__PURE__ */ p("div", { ref: y, className: q({ className: x }), children: /* @__PURE__ */ p(w, { ...k, children: o }) });
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
_.displayName = "FormField";
|
|
54
54
|
export {
|
|
55
|
-
|
|
55
|
+
_ as FormField
|
|
56
56
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type FieldA11yContextValue = {
|
|
2
|
+
fieldGroupId: string;
|
|
3
|
+
labelId: string;
|
|
4
|
+
inputId: string;
|
|
5
|
+
feedbackTextId: string;
|
|
6
|
+
helperTextId?: string;
|
|
7
|
+
contextualLinkId?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const FieldA11yContext: import('react').Context<FieldA11yContextValue>;
|
|
10
|
+
export declare function useFieldA11yContext(): FieldA11yContextValue;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useContext as e, createContext as t } from "react";
|
|
2
|
+
const o = t({
|
|
3
|
+
fieldGroupId: "",
|
|
4
|
+
labelId: "",
|
|
5
|
+
inputId: "",
|
|
6
|
+
feedbackTextId: ""
|
|
7
|
+
});
|
|
8
|
+
function d() {
|
|
9
|
+
return e(o);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as FieldA11yContext,
|
|
13
|
+
d as useFieldA11yContext
|
|
14
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface FormFieldProps extends React.PropsWithChildren {
|
|
2
|
+
/** Additional class name */
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The `FormField` component represents a single field in a Unity form. It provides a set of features to manage the proper accessibility of the a form field's parts, such as the label and the helper text
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { useTanstackUnityForm } from '@payfit/unity-components'
|
|
10
|
+
* import { z } from 'zod'
|
|
11
|
+
*
|
|
12
|
+
* const loginSchema = z.object({
|
|
13
|
+
* email: z.string().email('Invalid email address'),
|
|
14
|
+
* password: z.string().min(8, 'Password must be at least 8 characters'),
|
|
15
|
+
* })
|
|
16
|
+
*
|
|
17
|
+
* const MyForm = () => {
|
|
18
|
+
* const form = useTanstackUnityForm({
|
|
19
|
+
* validators: {
|
|
20
|
+
* onBlur: loginSchema,
|
|
21
|
+
* },
|
|
22
|
+
* defaultValues: {
|
|
23
|
+
* email: '',
|
|
24
|
+
* password: '',
|
|
25
|
+
* },
|
|
26
|
+
* })
|
|
27
|
+
*
|
|
28
|
+
* const submitForm = (values: z.infer<typeof loginSchema>) => {
|
|
29
|
+
* console.log(values)
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* return (
|
|
33
|
+
* <form.Form>
|
|
34
|
+
* <form.FormField>
|
|
35
|
+
* <form.FormLabel>Email</form.FormLabel>
|
|
36
|
+
* <form.FormHelperText>Enter your primary email address</form.FormHelperText>
|
|
37
|
+
* <form.Input type="email"/>
|
|
38
|
+
* <form.FormFeedbackText/>
|
|
39
|
+
* </form.FormField>
|
|
40
|
+
* </Form>
|
|
41
|
+
* )
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
* @note Use this component directly from the `useUnityForm` hook to have type-safety and proper state management.
|
|
45
|
+
*/
|
|
46
|
+
export declare function TanstackFormField({ children, className }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare namespace TanstackFormField {
|
|
48
|
+
var displayName: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useId as I, useRef as k, useState as u, useLayoutEffect as _, useMemo as T } from "react";
|
|
3
|
+
import { uyTv as F } from "@payfit/unity-themes";
|
|
4
|
+
import { useFieldContext as $ } from "../../hooks/tanstack-form-context.js";
|
|
5
|
+
import { FieldA11yContext as b } from "./TanstackFormField.context.js";
|
|
6
|
+
const h = F({
|
|
7
|
+
base: ["uy:group/field", "uy:flex uy:flex-col uy:gap-100"]
|
|
8
|
+
});
|
|
9
|
+
function v({ children: l, className: c }) {
|
|
10
|
+
const m = I(), r = k(null), o = $(), n = o.form.formId || m, a = o.name.replace(/[^\w-]/g, "-"), [i, p] = u(!1), [s, x] = u(!1);
|
|
11
|
+
_(() => {
|
|
12
|
+
const e = r.current;
|
|
13
|
+
if (!e) return;
|
|
14
|
+
const t = e.querySelector(
|
|
15
|
+
'[data-unity-slot="form-field-helper-text"]'
|
|
16
|
+
), y = e.querySelector(
|
|
17
|
+
'[data-unity-slot="form-field-contextual-link"]'
|
|
18
|
+
);
|
|
19
|
+
p(!!t), x(!!y);
|
|
20
|
+
}, [l]);
|
|
21
|
+
const d = T(() => {
|
|
22
|
+
const e = `form-${n}-field-${a}`, t = {
|
|
23
|
+
fieldGroupId: e,
|
|
24
|
+
labelId: `${e}__label`,
|
|
25
|
+
inputId: `${e}__input`,
|
|
26
|
+
feedbackTextId: `${e}__feedback-text`
|
|
27
|
+
};
|
|
28
|
+
return i && (t.helperTextId = `${e}__helper-text`), s && (t.contextualLinkId = `${e}__contextual-link`), t;
|
|
29
|
+
}, [n, a, i, s]);
|
|
30
|
+
return /* @__PURE__ */ f(b.Provider, { value: d, children: /* @__PURE__ */ f(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
ref: r,
|
|
34
|
+
id: d.fieldGroupId,
|
|
35
|
+
role: "group",
|
|
36
|
+
className: h({ className: c }),
|
|
37
|
+
"data-unity-slot": "form-field",
|
|
38
|
+
"data-invalid": !o.state.meta.isValid,
|
|
39
|
+
children: l
|
|
40
|
+
}
|
|
41
|
+
) });
|
|
42
|
+
}
|
|
43
|
+
v.displayName = "TanstackFormField";
|
|
44
|
+
export {
|
|
45
|
+
v as TanstackFormField
|
|
46
|
+
};
|
|
@@ -22,6 +22,8 @@ export type FormControlProps = React.ComponentProps<typeof Slot>;
|
|
|
22
22
|
* ```
|
|
23
23
|
* @remarks
|
|
24
24
|
* [API & Docs](https://unity-components.payfit.io/?path=/docs/forms-formfield-formcontrol--docs)
|
|
25
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
26
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
25
27
|
*/
|
|
26
28
|
declare function FormControl({ ...props }: FormControlProps): import("react/jsx-runtime").JSX.Element;
|
|
27
29
|
declare namespace FormControl {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FormErrorText is a component that displays error text for a form field.
|
|
3
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
4
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
3
5
|
*/
|
|
4
6
|
declare const FormFeedbackText: import('react').ForwardRefExoticComponent<{
|
|
5
7
|
children?: import('react').ReactNode | undefined;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FormHelperText is a component that displays helper text for a form field.
|
|
3
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
4
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
3
5
|
*/
|
|
4
6
|
declare const FormHelperText: import('react').ForwardRefExoticComponent<{
|
|
5
7
|
children?: import('react').ReactNode | undefined;
|
|
@@ -3,6 +3,8 @@ export type FormLabelProps = Omit<LabelProps, 'isRequired'>;
|
|
|
3
3
|
/**
|
|
4
4
|
* FormLabel is a component that displays a label for a form field.
|
|
5
5
|
* It is used to provide context for the form field.
|
|
6
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
7
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
6
8
|
*/
|
|
7
9
|
declare const FormLabel: import('react').ForwardRefExoticComponent<FormLabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
8
10
|
export { FormLabel };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
interface FormContextualLinkProps {
|
|
3
|
+
/**
|
|
4
|
+
* The href of the contextual link
|
|
5
|
+
*/
|
|
6
|
+
href: string;
|
|
7
|
+
onPress?: never;
|
|
8
|
+
}
|
|
9
|
+
interface FormContextualLinkActionProps {
|
|
10
|
+
/**
|
|
11
|
+
* A function to open a contextual panel
|
|
12
|
+
*/
|
|
13
|
+
onPress: () => void;
|
|
14
|
+
href?: never;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* FormContextualLink is a component that displays a contextual link for a form field.
|
|
18
|
+
* @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
|
|
19
|
+
* @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
|
|
20
|
+
*/
|
|
21
|
+
declare const RawFormContextualLink: import('react').ForwardRefExoticComponent<PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps> & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
22
|
+
export { RawFormContextualLink };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d } from "react";
|
|
3
|
+
import { Button as m } from "react-aria-components";
|
|
4
|
+
import { RawLink as s } from "../../link/RawLink.js";
|
|
5
|
+
import { useFormField as u } from "../FormField.context.js";
|
|
6
|
+
const c = d((l, o) => {
|
|
7
|
+
const { children: t, href: a, onPress: e, ...r } = l, { formContextualLinkId: n } = u();
|
|
8
|
+
return a ? /* @__PURE__ */ i(
|
|
9
|
+
s,
|
|
10
|
+
{
|
|
11
|
+
id: n,
|
|
12
|
+
size: "small",
|
|
13
|
+
color: "secondary",
|
|
14
|
+
variant: "standalone",
|
|
15
|
+
"data-unity-slot": "contextual-link",
|
|
16
|
+
href: a,
|
|
17
|
+
ref: o,
|
|
18
|
+
"data-dd-privacy": "allow",
|
|
19
|
+
...r,
|
|
20
|
+
children: t
|
|
21
|
+
}
|
|
22
|
+
) : /* @__PURE__ */ i(
|
|
23
|
+
m,
|
|
24
|
+
{
|
|
25
|
+
id: n,
|
|
26
|
+
onPress: e,
|
|
27
|
+
"data-unity-slot": "contextual-link",
|
|
28
|
+
className: "uy:typography-body-small uy:w-fit",
|
|
29
|
+
ref: o,
|
|
30
|
+
"data-dd-privacy": "allow",
|
|
31
|
+
...r,
|
|
32
|
+
children: t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
c.displayName = "RawFormContextualLink";
|
|
37
|
+
export {
|
|
38
|
+
c as RawFormContextualLink
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TextProps } from '../../text/Text.js';
|
|
2
|
+
export type TanstackFormFeedbackTextProps = Omit<TextProps, 'variant' | 'color' | 'className'>;
|
|
3
|
+
/**
|
|
4
|
+
* `TanstackFormFeedbackText` renders the first validation message for the
|
|
5
|
+
* current TanStack form field when the field is invalid
|
|
6
|
+
*
|
|
7
|
+
* Behavior:
|
|
8
|
+
* - Returns `null` when the field is valid or has no errors.
|
|
9
|
+
* - When invalid, renders the first error message.
|
|
10
|
+
*/
|
|
11
|
+
declare const TanstackFormFeedbackText: import('react').ForwardRefExoticComponent<TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export { TanstackFormFeedbackText };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { useStore as s } from "@tanstack/react-form";
|
|
4
|
+
import { useFieldContext as c } from "../../../hooks/tanstack-form-context.js";
|
|
5
|
+
import { Text as f } from "../../text/Text.js";
|
|
6
|
+
import { useFieldA11yContext as u } from "../TanstackFormField.context.js";
|
|
7
|
+
const x = l((r, t) => {
|
|
8
|
+
const a = c(), i = u(), { errors: o, invalid: d, isTouched: m } = s(a.store, (e) => ({
|
|
9
|
+
errors: e.meta.errors,
|
|
10
|
+
invalid: !e.meta.isValid,
|
|
11
|
+
isTouched: e.meta.isTouched
|
|
12
|
+
}));
|
|
13
|
+
return !m || !d || o.length === 0 ? null : /* @__PURE__ */ n(
|
|
14
|
+
f,
|
|
15
|
+
{
|
|
16
|
+
"data-dd-privacy": "allow",
|
|
17
|
+
...r,
|
|
18
|
+
ref: t,
|
|
19
|
+
id: i.feedbackTextId || r.id,
|
|
20
|
+
role: "alert",
|
|
21
|
+
"data-unity-slot": "form-feedback-text",
|
|
22
|
+
variant: "bodySmallStrong",
|
|
23
|
+
color: "content.form.invalid",
|
|
24
|
+
asElement: "span",
|
|
25
|
+
children: o[0].message
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
x.displayName = "TanstackFormFeedbackText";
|
|
30
|
+
export {
|
|
31
|
+
x as TanstackFormFeedbackText
|
|
32
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextProps } from '../../text/Text.js';
|
|
2
|
+
export type TanstackFormHelperTextProps = Omit<TextProps, 'variant' | 'color' | 'className'>;
|
|
3
|
+
/**
|
|
4
|
+
* `TanstackFormHelperText` displays non-blocking helper text for the current
|
|
5
|
+
* TanStack form field.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* - Place directly under an input/textarea within a `<form.AppField name="…">`.
|
|
9
|
+
*/
|
|
10
|
+
declare const TanstackFormHelperText: import('react').ForwardRefExoticComponent<TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
export { TanstackFormHelperText };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { Text as m } from "../../text/Text.js";
|
|
4
|
+
import { useFieldA11yContext as n } from "../TanstackFormField.context.js";
|
|
5
|
+
const d = l(({ children: e, ...t }, r) => {
|
|
6
|
+
const o = n();
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
m,
|
|
9
|
+
{
|
|
10
|
+
"data-dd-privacy": "allow",
|
|
11
|
+
...t,
|
|
12
|
+
id: o.helperTextId || t.id,
|
|
13
|
+
"data-unity-slot": "form-field-helper-text",
|
|
14
|
+
variant: "bodySmall",
|
|
15
|
+
asElement: "span",
|
|
16
|
+
color: "content.neutral.low",
|
|
17
|
+
ref: r,
|
|
18
|
+
children: e
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
d.displayName = "TanstackFormHelperText";
|
|
23
|
+
export {
|
|
24
|
+
d as TanstackFormHelperText
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LabelProps } from '../../label/Label.js';
|
|
2
|
+
export type FormLabelProps = LabelProps;
|
|
3
|
+
/**
|
|
4
|
+
* `TanstackFormLabel` renders the label for the current TanStack form field.
|
|
5
|
+
* It is used to provide context for the form field.
|
|
6
|
+
*/
|
|
7
|
+
declare const TanstackFormLabel: import('react').ForwardRefExoticComponent<LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
8
|
+
export { TanstackFormLabel };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { Label as n } from "../../label/Label.js";
|
|
4
|
+
import { useFieldA11yContext as d } from "../TanstackFormField.context.js";
|
|
5
|
+
const s = l(
|
|
6
|
+
({ children: e, isRequired: o, ...r }, t) => {
|
|
7
|
+
const { requiredVariant: m } = r, a = d();
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
ref: t,
|
|
12
|
+
htmlFor: a.inputId,
|
|
13
|
+
id: a.labelId,
|
|
14
|
+
isRequired: o,
|
|
15
|
+
requiredVariant: m,
|
|
16
|
+
className: "uy:leading-[1]!",
|
|
17
|
+
...r,
|
|
18
|
+
children: e
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
s.displayName = "Label";
|
|
24
|
+
export {
|
|
25
|
+
s as TanstackFormLabel
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ButtonProps } from 'react-aria-components';
|
|
3
|
+
import { RawLinkProps } from '../../link/RawLink.js';
|
|
4
|
+
export interface FormContextualLinkProps extends RawLinkProps {
|
|
5
|
+
/**
|
|
6
|
+
* The href of the contextual link
|
|
7
|
+
*/
|
|
8
|
+
href: string;
|
|
9
|
+
onPress?: never;
|
|
10
|
+
}
|
|
11
|
+
export interface FormContextualLinkActionProps extends ButtonProps {
|
|
12
|
+
/**
|
|
13
|
+
* A function to open a contextual panel
|
|
14
|
+
*/
|
|
15
|
+
onPress: () => void;
|
|
16
|
+
href?: never;
|
|
17
|
+
}
|
|
18
|
+
export type TanstackRawFormContextualLinkProps = PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps>;
|
|
19
|
+
/**
|
|
20
|
+
* `TanstackRawFormContextualLink` renders a contextual action associated with the
|
|
21
|
+
* current TanStack form field. It can render either:
|
|
22
|
+
* - an anchor (`RawLink`) when `href` is provided; or
|
|
23
|
+
* - a button (from `react-aria-components`) when `onPress` is provided.
|
|
24
|
+
*/
|
|
25
|
+
declare const TanstackRawFormContextualLink: import('react').ForwardRefExoticComponent<TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
26
|
+
export { TanstackRawFormContextualLink };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { Button as s } from "react-aria-components";
|
|
4
|
+
import { RawLink as m } from "../../link/RawLink.js";
|
|
5
|
+
import { useFieldA11yContext as c } from "../TanstackFormField.context.js";
|
|
6
|
+
const u = e((t, a) => {
|
|
7
|
+
const { children: o, href: n, onPress: d, ...i } = t, r = c();
|
|
8
|
+
return n ? (
|
|
9
|
+
// @ts-expect-error - it's okay in this case
|
|
10
|
+
/* @__PURE__ */ l(
|
|
11
|
+
m,
|
|
12
|
+
{
|
|
13
|
+
id: r.contextualLinkId || t.id,
|
|
14
|
+
size: "small",
|
|
15
|
+
color: "secondary",
|
|
16
|
+
variant: "standalone",
|
|
17
|
+
"data-unity-slot": "form-field-contextual-link",
|
|
18
|
+
href: n,
|
|
19
|
+
ref: a,
|
|
20
|
+
"data-dd-privacy": "allow",
|
|
21
|
+
...i,
|
|
22
|
+
children: o
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
) : (
|
|
26
|
+
// @ts-expect-error - it's okay in this case
|
|
27
|
+
/* @__PURE__ */ l(
|
|
28
|
+
s,
|
|
29
|
+
{
|
|
30
|
+
id: r.contextualLinkId || t.id,
|
|
31
|
+
onPress: d,
|
|
32
|
+
"data-unity-slot": "contextual-link",
|
|
33
|
+
className: "uy:typography-body-small uy:w-fit",
|
|
34
|
+
ref: a,
|
|
35
|
+
"data-dd-privacy": "allow",
|
|
36
|
+
...i,
|
|
37
|
+
children: o
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
u.displayName = "TanstackRawFormContextualLink";
|
|
43
|
+
export {
|
|
44
|
+
u as TanstackRawFormContextualLink
|
|
45
|
+
};
|
|
@@ -32,9 +32,9 @@ export interface FunnelSidebarProps extends PropsWithChildren<VariantProps<typeo
|
|
|
32
32
|
* return (
|
|
33
33
|
* <FunnelSidebar>
|
|
34
34
|
* <TaskMenu>
|
|
35
|
-
* <
|
|
35
|
+
* <RawTask>
|
|
36
36
|
* <TaskTitle>Task 1</TaskTitle>
|
|
37
|
-
* </
|
|
37
|
+
* </RawTask>
|
|
38
38
|
* </TaskMenu>
|
|
39
39
|
* </FunnelSidebar>
|
|
40
40
|
* )
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as i } from "react";
|
|
3
|
+
import { IconSprite as d } from "@payfit/unity-icons";
|
|
4
|
+
import { uyTv as l } from "@payfit/unity-themes";
|
|
5
|
+
const y = l({
|
|
5
6
|
variants: {
|
|
6
7
|
size: {
|
|
7
8
|
20: "uy:w-250 uy:h-250",
|
|
@@ -87,27 +88,30 @@ const l = d({
|
|
|
87
88
|
display: "block"
|
|
88
89
|
}
|
|
89
90
|
});
|
|
90
|
-
function
|
|
91
|
-
alt:
|
|
92
|
-
color:
|
|
93
|
-
size:
|
|
94
|
-
src:
|
|
95
|
-
role:
|
|
96
|
-
display:
|
|
97
|
-
...
|
|
91
|
+
function b({
|
|
92
|
+
alt: r,
|
|
93
|
+
color: t,
|
|
94
|
+
size: e,
|
|
95
|
+
src: a,
|
|
96
|
+
role: s = "img",
|
|
97
|
+
display: n = "block",
|
|
98
|
+
...o
|
|
98
99
|
}) {
|
|
99
|
-
const u =
|
|
100
|
-
|
|
100
|
+
const u = i(
|
|
101
|
+
() => y({ size: e, color: t, display: n }),
|
|
102
|
+
[e, t, n]
|
|
103
|
+
);
|
|
104
|
+
return /* @__PURE__ */ c(
|
|
101
105
|
"span",
|
|
102
106
|
{
|
|
103
107
|
"data-dd-privacy": "allow",
|
|
104
|
-
...
|
|
105
|
-
role:
|
|
106
|
-
"aria-label":
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
+
...o,
|
|
109
|
+
role: s,
|
|
110
|
+
"aria-label": o["aria-labelledby"] ? void 0 : r,
|
|
111
|
+
children: /* @__PURE__ */ c(d, { className: u, src: a })
|
|
108
112
|
}
|
|
109
113
|
);
|
|
110
114
|
}
|
|
111
115
|
export {
|
|
112
|
-
|
|
116
|
+
b as Icon
|
|
113
117
|
};
|
|
@@ -7,9 +7,9 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
7
7
|
large: string;
|
|
8
8
|
};
|
|
9
9
|
color: {
|
|
10
|
-
'content.neutral': string;
|
|
11
|
-
'content.neutral.low': string;
|
|
12
|
-
'content.neutral.lowest': string;
|
|
10
|
+
'content.neutral': string[];
|
|
11
|
+
'content.neutral.low': string[];
|
|
12
|
+
'content.neutral.lowest': string[];
|
|
13
13
|
};
|
|
14
14
|
}, undefined, string[], {
|
|
15
15
|
size: {
|
|
@@ -17,9 +17,9 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
17
17
|
large: string;
|
|
18
18
|
};
|
|
19
19
|
color: {
|
|
20
|
-
'content.neutral': string;
|
|
21
|
-
'content.neutral.low': string;
|
|
22
|
-
'content.neutral.lowest': string;
|
|
20
|
+
'content.neutral': string[];
|
|
21
|
+
'content.neutral.low': string[];
|
|
22
|
+
'content.neutral.lowest': string[];
|
|
23
23
|
};
|
|
24
24
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
25
25
|
size: {
|
|
@@ -27,9 +27,9 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
27
27
|
large: string;
|
|
28
28
|
};
|
|
29
29
|
color: {
|
|
30
|
-
'content.neutral': string;
|
|
31
|
-
'content.neutral.low': string;
|
|
32
|
-
'content.neutral.lowest': string;
|
|
30
|
+
'content.neutral': string[];
|
|
31
|
+
'content.neutral.low': string[];
|
|
32
|
+
'content.neutral.lowest': string[];
|
|
33
33
|
};
|
|
34
34
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
35
35
|
export interface CircularIconButtonProps extends Omit<AriaButtonProps, 'className'>, VariantProps<typeof circularIconButton> {
|