@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.1
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/README.md +1 -1
- package/dist/Autocomplete-CLvWVHp6.js +358 -0
- package/dist/{Button-BXzmntRi.js → Button-D6AL0bia.js} +86 -85
- package/dist/Provider-BXQiO7Gp.js +64 -0
- package/dist/{TableProvider-D8SQKIG8.js → TableProvider-_4Whj6P5.js} +11 -11
- package/dist/components/Alert/Alert.js +34 -35
- package/dist/components/Alert/Alert.styles.js +1 -1
- package/dist/components/Alert/index.js +4 -5
- package/dist/components/Autocomplete/Autocomplete.js +17 -82
- package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
- package/dist/components/Autocomplete/index.js +6 -4
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/Badge.styles.js +1 -1
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
- package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
- package/dist/components/Card/Card.js +2 -2
- package/dist/components/Card/Card.styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +85 -86
- package/dist/components/Checkbox/Checkbox.styles.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Col/Col.styles.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Container/Container.styles.js +3 -2
- package/dist/components/Divider/Divider.js +2 -2
- package/dist/components/Divider/Divider.styles.js +1 -1
- package/dist/components/Expander/Expander.js +46 -41
- package/dist/components/Expander/Expander.styles.js +2 -2
- package/dist/components/Field/Field.js +55 -54
- package/dist/components/Field/Field.styles.js +10 -3
- package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
- package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -1
- package/dist/components/Field/components/FieldFooter.js +32 -32
- package/dist/components/Field/components/FieldHint.js +2 -2
- package/dist/components/Filter/Filter.js +213 -100
- package/dist/components/Filter/Filter.styles.js +1 -1
- package/dist/components/Filter/components/FilterResetButton.js +17 -18
- package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
- package/dist/components/Filter/components/FilterSearch.js +18 -19
- package/dist/components/Filter/index.js +2 -2
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.styles.js +1 -1
- package/dist/components/Image/Image.js +1 -1
- package/dist/components/Image/Image.styles.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/Inline.styles.js +1 -1
- package/dist/components/Input/Input.js +98 -102
- package/dist/components/Input/Input.styles.js +1 -1
- package/dist/components/Input/InputBase/InputBase.js +23 -23
- package/dist/components/Label/Label.styles.js +1 -1
- package/dist/components/Label/LabelBase/LabelBase.js +32 -32
- package/dist/components/Link/Link.js +50 -51
- package/dist/components/Link/Link.styles.js +2 -1
- package/dist/components/Menu/Menu.js +51 -51
- package/dist/components/Menu/Menu.styles.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
- package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
- package/dist/components/Menu/MenuText/MenuText.js +38 -38
- package/dist/components/Modal/Modal.js +119 -123
- package/dist/components/Modal/Modal.styles.js +15 -6
- package/dist/components/Modal/ModalProvider.js +20 -22
- package/dist/components/Modal/hooks/useModal.js +9 -7
- package/dist/components/Modal/hooks/useProviderModal.js +8 -8
- package/dist/components/Modal/index.js +7 -6
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Panel/Panel.styles.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +14 -14
- package/dist/components/Placeholder/Placeholder.styles.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
- package/dist/components/Popover/Popover.js +44 -43
- package/dist/components/Popover/Popover.styles.js +2 -2
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +48 -53
- package/dist/components/Popover/components/PopoverContent.js +33 -33
- package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
- package/dist/components/Popover/hooks/usePopover.js +79 -75
- package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
- package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
- package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
- package/dist/components/Popover/index.js +6 -6
- package/dist/components/Progress/Progress.js +4 -4
- package/dist/components/Progress/Progress.styles.js +1 -1
- package/dist/components/Provider/Provider.js +12 -35
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +79 -80
- package/dist/components/Radio/Radio.styles.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +69 -77
- package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/components/Readonly/Readonly.js +44 -43
- package/dist/components/Readonly/Readonly.styles.js +8 -13
- package/dist/components/RichSelect/RichSelect.js +21 -86
- package/dist/components/RichSelect/RichSelect.styles.js +1 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
- package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
- package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
- package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +161 -105
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +63 -6
- package/dist/components/RichSelect/components/SelectOptions.js +201 -95
- package/dist/components/RichSelect/index.js +18 -15
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/Row.styles.js +1 -1
- package/dist/components/Select/Select.js +71 -71
- package/dist/components/Select/Select.styles.js +1 -1
- package/dist/components/Select/SelectOption/SelectOption.js +1 -1
- package/dist/components/Select/components/SelectControl.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +30 -33
- package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
- package/dist/components/Skeleton/Skeleton.styles.js +1 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/SkipLink/SkipLink.styles.js +2 -2
- package/dist/components/Slideout/Slideout.js +155 -160
- package/dist/components/Slideout/Slideout.styles.js +1 -1
- package/dist/components/Slideout/SlideoutProvider.js +18 -20
- package/dist/components/Slideout/components/SlideoutInner.js +3 -3
- package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
- package/dist/components/Slideout/hooks/usePushElement.js +27 -27
- package/dist/components/Slideout/hooks/useSlideout.js +11 -9
- package/dist/components/Slideout/index.js +7 -6
- package/dist/components/Slider/Slider.js +76 -76
- package/dist/components/Slider/Slider.styles.js +1 -1
- package/dist/components/Slider/components/SliderTicks.js +15 -16
- package/dist/components/Spinner/Spinner.styles.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/Stack/Stack.styles.js +3 -3
- package/dist/components/TabSet/Tab/Tab.js +88 -88
- package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
- package/dist/components/TabSet/TabSet.js +69 -59
- package/dist/components/TabSet/TabSet.styles.js +1 -1
- package/dist/components/TabSet/TabSetProvider.js +43 -43
- package/dist/components/Table/Table.js +39 -39
- package/dist/components/Table/Table.styles.js +10 -8
- package/dist/components/Table/TableBody/TableBody.js +76 -76
- package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
- package/dist/components/Table/TableProvider.js +2 -2
- package/dist/components/Table/components/TableEmpty.js +8 -8
- package/dist/components/Table/components/TableHeader.js +31 -32
- package/dist/components/Table/components/TableHeaderCell.js +23 -24
- package/dist/components/Table/components/TableRows.js +38 -38
- package/dist/components/Table/components/TableSortButton.js +6 -6
- package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
- package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
- package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
- package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
- package/dist/components/Table/index.js +2 -3
- package/dist/components/Tag/Tag.js +29 -32
- package/dist/components/Tag/Tag.styles.js +1 -2
- package/dist/components/Tag/TagInput/TagInput.js +120 -104
- package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
- package/dist/components/Text/Text.js +16 -36
- package/dist/components/Text/Text.styles.js +2 -2
- package/dist/components/Text/index.js +1 -2
- package/dist/components/Toaster/Toaster.js +59 -11
- package/dist/components/Toaster/Toaster.styles.js +1 -1
- package/dist/components/Toaster/ToasterProvider.js +49 -6
- package/dist/components/Toaster/components/Toast/Toast.js +46 -47
- package/dist/components/Toaster/components/Toast/Toast.styles.js +1 -1
- package/dist/components/Toaster/components/Toast/ToastAnimated.js +36 -37
- package/dist/components/Toaster/hooks/useToaster.js +24 -22
- package/dist/components/Toaster/index.js +5 -4
- package/dist/components/Toggle/Toggle.js +42 -42
- package/dist/components/Toggle/Toggle.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-Hmd6yfdj.js} +99 -99
- package/dist/constants.js +10 -10
- package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
- package/dist/css-fGu_jDvv.js +228 -0
- package/dist/cva-JiDXAa83.js +63 -0
- package/dist/enums.js +7 -7
- package/dist/factory-oPXoMw9H.js +58 -0
- package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-CmSaAiNF.js} +1153 -1151
- package/dist/fuzzysort-DKAolWVP.js +397 -0
- package/dist/helpers/dom/closestCrossShadow.js +16 -17
- package/dist/helpers/dom/focusableElements.js +6 -6
- package/dist/helpers/dom/getActiveElement.js +5 -6
- package/dist/helpers/formatting/formatDateTime.js +9 -10
- package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
- package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
- package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
- package/dist/helpers/styling/iressCss.js +2 -2
- package/dist/helpers/transition/getTransitionDuration.js +5 -8
- package/dist/hooks/useAriaRelationship.js +19 -21
- package/dist/hooks/useBreakpoint.js +8 -11
- package/dist/hooks/useControlledState.js +37 -35
- package/dist/{index-DlGwAtoO.js → index-CvOVcYUc.js} +40 -14
- package/dist/{index.esm-BnSuefUA.js → index.esm-8uZEha-3.js} +1 -1
- package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
- package/dist/is-valid-prop-Ce0wiweq.js +7 -0
- package/dist/main.js +298 -292
- package/dist/patterns/Form/Form.js +1 -1
- package/dist/patterns/Form/Form.styles.js +1 -1
- package/dist/patterns/Form/FormField/FormField.js +41 -44
- package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
- package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
- package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
- package/dist/patterns/Form/HookForm/HookForm.js +72 -75
- package/dist/patterns/Form/components/LongForm.js +1 -1
- package/dist/patterns/Form/components/ShortForm.js +12 -12
- package/dist/patterns/Loading/Loading.styles.js +19 -7
- package/dist/patterns/Loading/LoadingSuspense.js +26 -26
- package/dist/patterns/Loading/components/ComponentLoading.js +49 -49
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/LongLoading.js +45 -45
- package/dist/patterns/Loading/components/PageLoading.js +63 -60
- package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
- package/dist/patterns/Shadow/Shadow.js +32235 -0
- package/dist/patterns/Shadow/index.js +4 -0
- package/dist/src/components/Alert/Alert.d.ts +0 -1
- package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
- package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
- package/dist/src/components/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
- package/dist/src/components/Field/Field.styles.d.ts +8 -1
- package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
- package/dist/src/components/Label/Label.styles.d.ts +1 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +6 -0
- package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
- package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
- package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
- package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
- package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
- package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
- package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
- package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
- package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
- package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
- package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
- package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
- package/dist/src/components/TabSet/TabSet.d.ts +10 -1
- package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
- package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
- package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
- package/dist/src/components/Text/Text.d.ts +1 -2
- package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
- package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
- package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
- package/dist/src/enums.d.ts +1 -9
- package/dist/src/interfaces.d.ts +1 -0
- package/dist/src/main.d.ts +1 -1
- package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
- package/dist/src/patterns/Loading/Loading.styles.d.ts +1 -0
- package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
- package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
- package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
- package/dist/src/patterns/Shadow/index.d.ts +1 -0
- package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
- package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
- package/dist/src/styled-system/jsx/create-style-context.d.ts +47 -0
- package/dist/src/styled-system/jsx/index.d.ts +1 -0
- package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
- package/dist/src/styled-system/patterns/box.d.ts +0 -1
- package/dist/src/styled-system/patterns/center.d.ts +0 -1
- package/dist/src/styled-system/patterns/circle.d.ts +0 -1
- package/dist/src/styled-system/patterns/container.d.ts +0 -1
- package/dist/src/styled-system/patterns/cq.d.ts +0 -1
- package/dist/src/styled-system/patterns/divider.d.ts +0 -1
- package/dist/src/styled-system/patterns/flex.d.ts +0 -1
- package/dist/src/styled-system/patterns/float.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
- package/dist/src/styled-system/patterns/grid.d.ts +0 -1
- package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
- package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
- package/dist/src/styled-system/patterns/square.d.ts +0 -1
- package/dist/src/styled-system/patterns/stack.d.ts +0 -1
- package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
- package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
- package/dist/src/styled-system/recipes/button.d.ts +4 -3
- package/dist/src/styled-system/recipes/table.d.ts +4 -1
- package/dist/src/styled-system/recipes/text.d.ts +3 -2
- package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
- package/dist/src/styled-system/types/composition.d.ts +83 -23
- package/dist/src/styled-system/types/conditions.d.ts +15 -11
- package/dist/src/styled-system/types/jsx.d.ts +21 -6
- package/dist/src/styled-system/types/prop-type.d.ts +9 -2
- package/dist/src/styled-system/types/style-props.d.ts +14 -1
- package/dist/src/styled-system/types/system-types.d.ts +76 -0
- package/dist/style.css +1 -1
- package/dist/sva-OmxClA9g.js +34 -0
- package/package.json +68 -46
- package/dist/Filter-Bwk7SIlJ.js +0 -1103
- package/dist/InputPopover-BWWuoQZ2.js +0 -132
- package/dist/ToasterProvider-XqpAGfRs.js +0 -112
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/cva-B2x59Dph.js +0 -294
- package/dist/factory-DHLOr79I.js +0 -53
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/helpers/utility/generateScopedName.js +0 -9
- package/dist/is-valid-prop-DFFvE05x.js +0 -7
- package/dist/panda.config.d.ts +0 -4
- package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
- package/dist/sva-TRyehFkb.js +0 -32
- package/dist/theme-preset/config-recipes/button.d.ts +0 -6
- package/dist/theme-preset/config-recipes/table.d.ts +0 -1
- package/dist/theme-preset/config-recipes/text.d.ts +0 -1
- package/dist/theme-preset/globalCss.d.ts +0 -1
- package/dist/theme-preset/index.d.ts +0 -2
- package/dist/theme-preset/staticCss.d.ts +0 -2
- package/dist/theme-preset/storybook.d.ts +0 -4
- package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
- package/dist/theme-preset/tokens/borders.d.ts +0 -50
- package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
- package/dist/theme-preset/tokens/colors.d.ts +0 -156
- package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
- package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
- package/dist/theme-preset/tokens/radii.d.ts +0 -42
- package/dist/theme-preset/tokens/sizes.d.ts +0 -246
- package/dist/theme-preset/tokens/spacing.d.ts +0 -100
- package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
- package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
- package/dist/theme-preset/utilities/chevron.d.ts +0 -3
- package/dist/theme-preset/utilities/focusable.d.ts +0 -1
- package/dist/theme-preset/utilities/gutter.d.ts +0 -1
- package/dist/theme-preset/utilities/hide.d.ts +0 -1
- package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
- package/dist/theme-preset/utilities/offset.d.ts +0 -75
- package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
- package/dist/theme-preset/utilities/span.d.ts +0 -120
- package/dist/theme-preset/utilities/stretch.d.ts +0 -1
- package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
- package/dist/typography--vGt_ztU.js +0 -12
- package/dist/vite.config.d.ts +0 -2
- package/dist/vitest.config.d.ts +0 -2
- package/dist/vitest.setup.d.ts +0 -0
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -54,5 +54,4 @@ export interface IressAlertProps extends Omit<IressTextProps, 'element'> {
|
|
|
54
54
|
*/
|
|
55
55
|
variant?: 'sidebar' | 'site-wide';
|
|
56
56
|
}
|
|
57
|
-
export declare const ALERT_ICONS: Record<SystemValidationStatuses, IressIconProps['name']>;
|
|
58
57
|
export declare const IressAlert: ({ actions, children, className, defaultDismissed, dismissed: dismissedProp, footer, heading, icon: iconProp, onDismiss, status, variant, ...restProps }: IressAlertProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const alert: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "
|
|
1
|
+
export declare const alert: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "alert" | "children" | "heading" | "icon" | "wrapper" | "action" | "dismiss", {
|
|
2
2
|
status: {
|
|
3
3
|
danger: {
|
|
4
4
|
alert: {
|
|
@@ -5,7 +5,7 @@ import { ReactNode, SyntheticEvent } from 'react';
|
|
|
5
5
|
import { InputRef } from '../Input/InputBase/InputBase';
|
|
6
6
|
import { IressSelectMenuProps } from '../RichSelect';
|
|
7
7
|
import { LabelValueMeta } from '../../interfaces';
|
|
8
|
-
import { FormControlValue } from '../../
|
|
8
|
+
import { FormControlValue } from '../../types';
|
|
9
9
|
export interface IressAutocompleteProps<T extends FormControlValue = string> extends Omit<IressInputProps<T>, 'children' | 'onChange'>, Omit<AutocompleteSearchHookProps, 'query'>, Pick<IressSelectMenuProps, 'limitMobile' | 'limitDesktop'> {
|
|
10
10
|
/**
|
|
11
11
|
* Always shown on focus, even if the user has not interacted with the input.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormattedLabelValueMeta, LabelValueMeta } from '../../../
|
|
1
|
+
import { FormattedLabelValueMeta, LabelValueMeta } from '../../../interfaces';
|
|
2
2
|
export interface AutocompleteSearchHookProps {
|
|
3
3
|
/**
|
|
4
4
|
* Time in milliseconds to wait for before performing result search. Only applies to searchable options (function).
|
|
@@ -35,7 +35,9 @@ export interface IressCheckboxProps<T = FormControlValue> extends Omit<IressStyl
|
|
|
35
35
|
required?: boolean;
|
|
36
36
|
/**
|
|
37
37
|
* Value of the checkbox when used in a checkbox group. The checked state of the checkbox will be overridden based on this value if used inside a checkbox group.
|
|
38
|
-
* **Note:**
|
|
38
|
+
* **Note:**
|
|
39
|
+
* - The value of the checkbox does not mean if its checked or not, use the checked property for that.
|
|
40
|
+
* - If the value of the checkbox is true/false, and checked is undefined and not inside a CheckboxGroup, it will use this as the checked value. This ensures out-of-the-box compatibility with React Hook Form.
|
|
39
41
|
*/
|
|
40
42
|
value?: T;
|
|
41
43
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const field: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "label" | "
|
|
1
|
+
export declare const field: import('../../styled-system/types').SlotRecipeRuntimeFn<"footer" | "label" | "hint" | "element" | "root" | "supplementary" | "labelContainer" | "fieldContainer", {
|
|
2
2
|
horizontal: {
|
|
3
3
|
true: {
|
|
4
4
|
root: {
|
|
@@ -34,6 +34,13 @@ export declare const field: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
+
hasHint: {
|
|
38
|
+
true: {
|
|
39
|
+
label: {
|
|
40
|
+
mb: "spacing.000";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
37
44
|
hiddenLabel: {
|
|
38
45
|
true: {
|
|
39
46
|
label: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const fieldGroup: import('../../../styled-system/types').SlotRecipeRuntimeFn<"legend" | "
|
|
1
|
+
export declare const fieldGroup: import('../../../styled-system/types').SlotRecipeRuntimeFn<"legend" | "hint" | "root" | "fields", {
|
|
2
2
|
hasError: {
|
|
3
3
|
true: {
|
|
4
4
|
root: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const label: import('../../styled-system/types').SlotRecipeRuntimeFn<"text" | "
|
|
1
|
+
export declare const label: import('../../styled-system/types').SlotRecipeRuntimeFn<"text" | "root" | "required", import('../../styled-system/types').SlotRecipeVariantRecord<"text" | "root" | "required">>;
|
|
@@ -13,6 +13,9 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
13
13
|
display: "flex";
|
|
14
14
|
flexDirection: "column";
|
|
15
15
|
maxHeight: "[calc(100vh - ({spacing.spacing.700} * 2))]";
|
|
16
|
+
'@media (min-height: 600px)': {
|
|
17
|
+
maxHeight: "[calc(100vh - (100px * 2))]";
|
|
18
|
+
};
|
|
16
19
|
overflow: "clip";
|
|
17
20
|
};
|
|
18
21
|
content: {
|
|
@@ -20,6 +23,9 @@ export declare const modal: import('../../styled-system/types').SlotRecipeRuntim
|
|
|
20
23
|
overflowX: "hidden";
|
|
21
24
|
overflowY: "auto";
|
|
22
25
|
maxHeight: "[calc(100vh - ({spacing.spacing.700} * 2))]";
|
|
26
|
+
'@media (min-height: 600px)': {
|
|
27
|
+
maxHeight: "[calc(100vh - (100px * 2))]";
|
|
28
|
+
};
|
|
23
29
|
};
|
|
24
30
|
footer: {
|
|
25
31
|
flex: "[0]";
|
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { FloatingUIContainer } from '../../types';
|
|
3
|
-
export interface ModalContextValue {
|
|
4
|
-
/**
|
|
5
|
-
* An array of modal IDs that are currently open.
|
|
6
|
-
*/
|
|
7
|
-
opened: string[];
|
|
8
|
-
/**
|
|
9
|
-
* The container element to render the modal into.
|
|
10
|
-
* By default, the modal will render at the end of the document body.
|
|
11
|
-
*/
|
|
12
|
-
container?: FloatingUIContainer;
|
|
13
|
-
/**
|
|
14
|
-
* Show or hide a modal by ID.
|
|
15
|
-
*/
|
|
16
|
-
showModal: (id: string, flag?: boolean) => void;
|
|
17
|
-
}
|
|
18
3
|
export interface IressModalProviderProps extends PropsWithChildren {
|
|
19
4
|
/**
|
|
20
5
|
* The container element to render the modal into.
|
|
@@ -22,5 +7,4 @@ export interface IressModalProviderProps extends PropsWithChildren {
|
|
|
22
7
|
*/
|
|
23
8
|
container?: FloatingUIContainer;
|
|
24
9
|
}
|
|
25
|
-
export declare const ModalContext: import('react').Context<ModalContextValue | undefined>;
|
|
26
10
|
export declare const IressModalProvider: ({ children, container, }: IressModalProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import { FloatingUIContainer } from '../../../types';
|
|
2
|
+
export interface ModalContextValue {
|
|
3
|
+
/**
|
|
4
|
+
* An array of modal IDs that are currently open.
|
|
5
|
+
*/
|
|
6
|
+
opened: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The container element to render the modal into.
|
|
9
|
+
* By default, the modal will render at the end of the document body.
|
|
10
|
+
*/
|
|
11
|
+
container?: FloatingUIContainer;
|
|
12
|
+
/**
|
|
13
|
+
* Show or hide a modal by ID.
|
|
14
|
+
*/
|
|
15
|
+
showModal: (id: string, flag?: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ModalContext: import('react').Context<ModalContextValue | undefined>;
|
|
1
18
|
export declare const useModal: () => {
|
|
2
19
|
showModal: (id: string, flag?: boolean) => void;
|
|
3
20
|
};
|
|
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { PopoverHookReturn } from '../hooks/usePopover';
|
|
3
3
|
export declare const NestedPopoverActivator: ({ children, parentPopover, }: PropsWithChildren & {
|
|
4
4
|
parentPopover?: PopoverHookReturn;
|
|
5
|
-
}) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
5
|
+
}) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -68,6 +68,10 @@ export interface PopoverHookReturn extends PopoverAriaHookReturn {
|
|
|
68
68
|
* It is used by other components to manage the aria attributes and keyboard navigation of the items.
|
|
69
69
|
*/
|
|
70
70
|
list: MutableRefObject<(HTMLElement | null)[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Resets the active index of the popover items, either to the `focusStartIndex` or null
|
|
73
|
+
*/
|
|
74
|
+
resetActiveIndex: () => void;
|
|
71
75
|
/**
|
|
72
76
|
* Set the current active index of the popover items.
|
|
73
77
|
*/
|
|
@@ -14,7 +14,7 @@ import { IressPopoverProps } from '../Popover';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const usePopoverNavigation: <RT extends VirtualElement = HTMLButtonElement>(context: FloatingContext<RT>, type?: IressPopoverProps["type"], props?: Partial<UseListNavigationProps>, onNavigate?: (activeIndex: number | null) => void, startIndex?: number) => {
|
|
16
16
|
activeIndex: number | null;
|
|
17
|
-
list: import('react').
|
|
17
|
+
list: import('react').RefObject<(HTMLElement | null)[]>;
|
|
18
18
|
listNav: import('@floating-ui/react').ElementProps;
|
|
19
19
|
setActiveIndex: import('react').Dispatch<import('react').SetStateAction<number | null>>;
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const readonly: import('../../styled-system/types').SlotRecipeRuntimeFn<"wrapper" | "root" | "addon" | "internal" | "formControl"
|
|
1
|
+
export declare const readonly: import('../../styled-system/types').SlotRecipeRuntimeFn<"wrapper" | "root" | "addon" | "internal" | "formControl", {
|
|
2
2
|
inline: {
|
|
3
3
|
true: {
|
|
4
4
|
root: {
|
|
@@ -2,8 +2,11 @@ import { ForwardedRef, ReactElement, ChangeEvent, ReactNode } from 'react';
|
|
|
2
2
|
import { AutocompleteSearchHookProps } from '../Autocomplete';
|
|
3
3
|
import { IressSelectActivatorProps } from './components/SelectActivator';
|
|
4
4
|
import { SelectHiddenInputRenderProps } from './components/SelectHiddenInput';
|
|
5
|
-
import { ControlledValue, FloatingUIAligns, FormattedLabelValueMeta, IressPopoverProps, LabelValueMeta, PopoverRef, ReactHookFormCompatibleRef } from '../../main';
|
|
6
5
|
import { IressInputProps } from '../Input';
|
|
6
|
+
import { ControlledValue } from '../../hooks';
|
|
7
|
+
import { FormattedLabelValueMeta, LabelValueMeta, ReactHookFormCompatibleRef } from '../../interfaces';
|
|
8
|
+
import { FloatingUIAligns } from '../../types';
|
|
9
|
+
import { IressPopoverProps, PopoverRef } from '../Popover';
|
|
7
10
|
export interface IressRichSelectProps<TMultiple extends boolean = false> extends Omit<AutocompleteSearchHookProps, 'query'>, Omit<IressPopoverProps, 'activator' | 'children' | 'contentClassName' | 'defaultShow' | 'defaultValue' | 'disabledAutoToggle' | 'onChange' | 'matchActivatorWidth' | 'show' | 'width'>, Pick<IressSelectActivatorProps, 'append' | 'prepend' | 'selectedOptionsText'> {
|
|
8
11
|
/**
|
|
9
12
|
* Sets the alignment of the dropdown relative to the activator element.
|
|
@@ -90,6 +93,13 @@ export interface IressRichSelectProps<TMultiple extends boolean = false> extends
|
|
|
90
93
|
* The width of the select.
|
|
91
94
|
*/
|
|
92
95
|
width?: IressInputProps['width'];
|
|
96
|
+
/**
|
|
97
|
+
* Whether the popover should match the width of the activator element.
|
|
98
|
+
* When true, the dropdown will have the same width as the select input.
|
|
99
|
+
* When false, the dropdown will size based on its content.
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
matchActivatorWidth?: boolean;
|
|
93
103
|
}
|
|
94
104
|
export interface SelectLabelRenderProps<TMultiple extends boolean = false> {
|
|
95
105
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IressTextProps } from '../../../main';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { IressTextProps } from '../../Text';
|
|
3
3
|
export interface IressSelectBodyProps extends Omit<IressTextProps, 'element'> {
|
|
4
4
|
/**
|
|
5
5
|
* Footer of the select, it will render as fixed (pinned).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IressMenuItemProps, IressMenuProps } from '../../Menu';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { FormControlValue, LabelValueMeta } from '../../../main';
|
|
4
3
|
import { ControlledValue } from '../../../hooks';
|
|
5
|
-
import { FormattedLabelValueMeta } from '../../../interfaces';
|
|
4
|
+
import { FormattedLabelValueMeta, LabelValueMeta } from '../../../interfaces';
|
|
5
|
+
import { FormControlValue } from '../../../types';
|
|
6
6
|
export interface IressSelectMenuProps<TMultiple extends boolean = false> extends Omit<IressMenuProps<FormControlValue, TMultiple>, 'children' | 'onChange' | 'selected' | 'type'> {
|
|
7
7
|
/**
|
|
8
8
|
* Heading slot. Often used for a title or description.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IressSelectMenuItemProps } from './SelectMenu';
|
|
2
|
-
export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, hiddenOnMobile, label, meta, value, append, canToggle, onClick, onKeyDown, prepend, role, selected, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, }: IressSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const IressSelectMenuItem: ({ className, divider, formattedLabel, formattedMeta, hiddenOnMobile, label, meta, value, append, canToggle, onClick, onKeyDown, prepend, role, selected, "data-testid": dataTestId, "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, id, }: IressSelectMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IressInputPopoverProps } from '
|
|
1
|
+
import { IressInputPopoverProps } from '../../Popover';
|
|
2
2
|
export type IressSelectSearchProps = Omit<IressInputPopoverProps, 'disabledAutoToggle' | 'displayMode' | 'show' | 'width'>;
|
|
3
3
|
export declare const IressSelectSearch: ({ className, contentClassName, contentStyle, onKeyDown, ...restProps }: IressSelectSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { InputRef } from '../../Input';
|
|
2
|
-
import { IressInputProps } from '../../../main';
|
|
1
|
+
import { InputRef, IressInputProps } from '../../Input';
|
|
3
2
|
export interface IressSelectSearchInputProps extends Omit<IressInputProps, 'rows' | 'width'> {
|
|
4
3
|
/**
|
|
5
4
|
* Content to place inside the input when it has no value.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LabelValueMeta } from '../../../main';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
import { IressTextProps } from '../../Text';
|
|
4
3
|
import { IressSelectActivatorProps } from '../components/SelectActivator';
|
|
4
|
+
import { LabelValueMeta } from '../../../interfaces';
|
|
5
5
|
export interface IressSelectTagsProps extends Omit<IressSelectActivatorProps, 'width'>, Omit<IressTextProps, 'element' | 'width'> {
|
|
6
6
|
/**
|
|
7
7
|
* Append content.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"
|
|
1
|
+
export declare const selectTags: import('../../../styled-system/types').SlotRecipeRuntimeFn<"placeholder" | "tag" | "root" | "append" | "prepend" | "tagsList", {
|
|
2
2
|
showDefaultChevron: {
|
|
3
3
|
true: {
|
|
4
4
|
root: {
|
|
@@ -4,5 +4,5 @@ interface SelectOptionsProps<TMultiple extends boolean = false> extends Pick<Ire
|
|
|
4
4
|
shouldShowInstructions?: boolean;
|
|
5
5
|
shouldShowNoResults?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const SelectOptions: <TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
export declare const SelectOptions: <TMultiple extends boolean = false>({ autoHighlight, debouncedQuery, error, initialOptions: initialOptionsProp, loading, minSearchLength, multiSelect, onChange, options, query, renderOptions, results, setQuery, setShow, setValue, show, shouldShowInstructions, shouldShowNoResults, value, }: SelectOptionsProps<TMultiple>) => string | number | bigint | boolean | Iterable<import('react').ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<import('react').ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
8
8
|
export {};
|
|
@@ -7,10 +7,4 @@ export interface IressSlideoutProviderProps extends PropsWithChildren {
|
|
|
7
7
|
*/
|
|
8
8
|
container?: FloatingUIContainer;
|
|
9
9
|
}
|
|
10
|
-
export interface SlideoutContextValue {
|
|
11
|
-
container?: FloatingUIContainer;
|
|
12
|
-
opened: string[];
|
|
13
|
-
showSlideout: (id: string, flag?: boolean) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const SlideoutContext: import('react').Context<SlideoutContextValue | undefined>;
|
|
16
10
|
export declare const IressSlideoutProvider: ({ children, container, }: IressSlideoutProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { FloatingUIContainer } from '../../../types';
|
|
2
|
+
export interface SlideoutContextValue {
|
|
3
|
+
container?: FloatingUIContainer;
|
|
4
|
+
opened: string[];
|
|
5
|
+
showSlideout: (id: string, flag?: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SlideoutContext: import('react').Context<SlideoutContextValue | undefined>;
|
|
1
8
|
export declare const useSlideout: () => {
|
|
2
9
|
showSlideout: (id: string, flag?: boolean) => void;
|
|
3
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TabSetChangedEventDetail } from './TabSetProvider';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { FormControlValue, IressStyledProps } from '../../types';
|
|
4
|
+
import { IressCustomiseSlot } from '../../interfaces';
|
|
4
5
|
export interface IressTabSetProps extends Omit<IressStyledProps, 'onChange'> {
|
|
5
6
|
/**
|
|
6
7
|
* Content to be displayed inside the IressTabs, usually multiple `IressTab`.
|
|
@@ -20,10 +21,18 @@ export interface IressTabSetProps extends Omit<IressStyledProps, 'onChange'> {
|
|
|
20
21
|
* Emitted when a tab changes.
|
|
21
22
|
*/
|
|
22
23
|
onChange?: (event: TabSetChangedEventDetail) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Custom style for the panel (the area that contains the tab content).
|
|
26
|
+
*/
|
|
27
|
+
panelStyle?: IressCustomiseSlot;
|
|
23
28
|
/**
|
|
24
29
|
* Set the selected tab for controlled tabs.
|
|
25
30
|
* If the `IressTab` does not have a `value` prop, it will match by index.
|
|
26
31
|
*/
|
|
27
32
|
selected?: FormControlValue;
|
|
33
|
+
/**
|
|
34
|
+
* Custom style for the tab holder (the area that contains the tabs).
|
|
35
|
+
*/
|
|
36
|
+
tabHolderStyle?: IressCustomiseSlot;
|
|
28
37
|
}
|
|
29
|
-
export declare const IressTabSet: ({ children, className, defaultSelected, layout, onChange, selected, ...restProps }: IressTabSetProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const IressTabSet: ({ children, className, defaultSelected, layout, onChange, panelStyle, selected, tabHolderStyle, ...restProps }: IressTabSetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,6 +21,5 @@ export interface IressTableFormattedValueProps<TRow extends object, TVal = unkno
|
|
|
21
21
|
*/
|
|
22
22
|
value: TVal;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export declare const IressTableFormattedValue: <TRow extends object, TVal = unknown>({ currencyFormatOptions, format, row, value, }: IressTableFormattedValueProps<TRow, TVal>) => string | number | boolean | import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | TVal | null | undefined;
|
|
24
|
+
export type TableCellFormats = 'string' | 'number' | 'date' | 'shortDate' | 'isoDateTime' | 'relativeTime' | 'currency' | 'percent';
|
|
25
|
+
export declare const IressTableFormattedValue: <TRow extends object, TVal = unknown>({ currencyFormatOptions, format, row, value, }: IressTableFormattedValueProps<TRow, TVal>) => string | number | bigint | boolean | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | TVal | null | undefined;
|
|
@@ -53,4 +53,4 @@ export interface TableColumn<TRow extends object, TVal = never> extends Pick<Ire
|
|
|
53
53
|
*/
|
|
54
54
|
width?: string;
|
|
55
55
|
}
|
|
56
|
-
export declare const composeTableColumnDefs: <TRow extends object, TVal = never>(rows: TRow[], columns?: TableColumn<TRow, TVal>[]) => import('@tanstack/
|
|
56
|
+
export declare const composeTableColumnDefs: <TRow extends object, TVal = never>(rows: TRow[], columns?: TableColumn<TRow, TVal>[]) => import('@tanstack/table-core').AccessorFnColumnDef<TRow, TRow[keyof TRow]>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tagInput: import('../../../styled-system/types').SlotRecipeRuntimeFn<"input" | "tag", import('../../../styled-system/types').SlotRecipeVariantRecord<"input" | "tag">>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IressStyledProps } from '../../types';
|
|
2
|
-
export
|
|
3
|
-
export type TextElements = (typeof TEXT_ELEMENTS)[number];
|
|
2
|
+
export type TextElements = 'p' | 'div' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'code' | 'small' | 'cite' | 'caption' | 'strong' | 'em' | 'a' | 'blockquote' | 'pre';
|
|
4
3
|
export type IressTextProps<E extends TextElements = 'div'> = IressStyledProps<E> & {
|
|
5
4
|
/**
|
|
6
5
|
* The HTML element that should be rendered.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { ToasterProps } from './Toaster';
|
|
3
|
-
import { ToasterRegister } from './helpers/toasterRegister';
|
|
4
3
|
export interface IressToasterProviderProps extends Omit<ToasterProps, 'toasts'>, PropsWithChildren {
|
|
5
4
|
/**
|
|
6
5
|
* A unique identifier for the toaster provider.
|
|
@@ -8,5 +7,4 @@ export interface IressToasterProviderProps extends Omit<ToasterProps, 'toasts'>,
|
|
|
8
7
|
*/
|
|
9
8
|
id?: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const ToasterContext: import('react').Context<ToasterRegister | undefined>;
|
|
12
10
|
export declare const IressToasterProvider: ({ children, id, position, ...restProps }: IressToasterProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
2
|
import { IressStyledProps } from '../../../../types';
|
|
3
|
-
export
|
|
4
|
-
export type ToastStatus = (typeof TOAST_STATUS)[number];
|
|
3
|
+
export type ToastStatus = 'success' | 'error' | 'info';
|
|
5
4
|
export interface ToastProps extends Omit<IressStyledProps, 'content'> {
|
|
6
5
|
/**
|
|
7
6
|
* Buttons and controls for the toast.
|
|
@@ -2,28 +2,29 @@ import { NewToast, ToasterRegister } from '../helpers/toasterRegister';
|
|
|
2
2
|
interface ToasterHookReturn {
|
|
3
3
|
/**
|
|
4
4
|
* Show a toast when an error occurs.
|
|
5
|
-
* @param toast The toast object containing the `content`, `heading`, and other optional properties.
|
|
5
|
+
* @param toast The toast object containing the `content`, `heading`, and other optional properties. Can also be a string if you want to simply display a message.
|
|
6
6
|
* @return A string representing the ID of the created toast.
|
|
7
7
|
*/
|
|
8
|
-
error: (toast: NewToast) => string;
|
|
8
|
+
error: (toast: NewToast | string) => string;
|
|
9
9
|
/**
|
|
10
10
|
* Show a toast on a successful operation.
|
|
11
|
-
* @param toast The toast object containing the `content`, `heading`, and other optional properties.
|
|
11
|
+
* @param toast The toast object containing the `content`, `heading`, and other optional properties. Can also be a string if you want to simply display a message.
|
|
12
12
|
* @return A string representing the ID of the created toast.
|
|
13
13
|
*/
|
|
14
|
-
success: (toast: NewToast) => string;
|
|
14
|
+
success: (toast: NewToast | string) => string;
|
|
15
15
|
/**
|
|
16
16
|
* Show a toast to inform the user of an event or action.
|
|
17
|
-
* @param toast The toast object containing the `content`, `heading`, and other optional properties.
|
|
17
|
+
* @param toast The toast object containing the `content`, `heading`, and other optional properties. Can also be a string if you want to simply display a message.
|
|
18
18
|
* @return A string representing the ID of the created toast.
|
|
19
19
|
*/
|
|
20
|
-
info: (toast: NewToast) => string;
|
|
20
|
+
info: (toast: NewToast | string) => string;
|
|
21
21
|
/**
|
|
22
22
|
* Close a toast by its ID.
|
|
23
23
|
* @param toastId The ID of the toast to close.
|
|
24
24
|
*/
|
|
25
25
|
close: ToasterRegister['close'];
|
|
26
26
|
}
|
|
27
|
+
export declare const ToasterContext: import('react').Context<ToasterRegister | undefined>;
|
|
27
28
|
/**
|
|
28
29
|
* This hook provides allows you to show and close toasts in your application.
|
|
29
30
|
* @param id Optional ID of the `IressToasterProvider` to use. If not provided, the closest `IressToasterProvider` will be used.
|
package/dist/src/enums.d.ts
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
export declare enum GlobalCSSClass {
|
|
2
|
-
SROnly = "iress-sr-only",
|
|
3
|
-
NoScroll = "iress-no-scroll",
|
|
4
|
-
Hidden = "iress-hidden",
|
|
5
|
-
IgnoreStack = "iress-u-stack--ignore",
|
|
6
|
-
TextAlignBase = "iress--text-align",
|
|
7
|
-
HiddenMobile = "iress-hidden--mobile",
|
|
8
|
-
Width = "iress-width",
|
|
9
|
-
Display = "iress-display",
|
|
10
|
-
Padding = "iress-p",
|
|
11
2
|
Group = "group",// https://panda-css.com/docs/concepts/conditional-styles#group-selectors
|
|
12
3
|
FormElement = "iress-form-element",
|
|
13
4
|
FormElementInner = "iress-form-element__inner",
|
|
@@ -48,6 +39,7 @@ export declare enum GlobalCSSClass {
|
|
|
48
39
|
Panel = "ids-panel",
|
|
49
40
|
Placeholder = "ids-placeholder",
|
|
50
41
|
Popover = "ids-popover",
|
|
42
|
+
PopoverContent = "ids-popover__content",
|
|
51
43
|
Progress = "ids-progress",
|
|
52
44
|
Radio = "ids-radio",
|
|
53
45
|
RadioGroup = "ids-radio-group",
|
package/dist/src/interfaces.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export interface LabelValueMeta extends LabelValue {
|
|
|
97
97
|
}
|
|
98
98
|
export interface FormattedLabelValueMeta extends LabelValueMeta {
|
|
99
99
|
formattedLabel?: React.ReactNode;
|
|
100
|
+
formattedMeta?: React.ReactNode;
|
|
100
101
|
}
|
|
101
102
|
export interface BreakpointDetail {
|
|
102
103
|
mediaQuery: string;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -49,12 +49,12 @@ export * from './components/Tooltip';
|
|
|
49
49
|
export * from './components/ValidationMessage';
|
|
50
50
|
export * from './patterns/Form';
|
|
51
51
|
export * from './patterns/Loading';
|
|
52
|
+
export * from './patterns/Shadow';
|
|
52
53
|
export * from './constants';
|
|
53
54
|
export * from './enums';
|
|
54
55
|
export * from './interfaces';
|
|
55
56
|
export * from './types';
|
|
56
57
|
export * from './helpers/formatting/toArray';
|
|
57
58
|
export * from './helpers/styling/iressCss';
|
|
58
|
-
export * from './helpers/utility/generateScopedName';
|
|
59
59
|
export * from './hooks';
|
|
60
60
|
export type { ColorToken } from './styled-system/tokens';
|
|
@@ -10,6 +10,10 @@ export interface PageLoadingProps extends Omit<IressStyledProps, 'children'> {
|
|
|
10
10
|
* If provided, will switch the skeleton to this template. Use when you have critical content that can be displayed while loading to allow the user to see some content while the rest is loading.
|
|
11
11
|
*/
|
|
12
12
|
critical?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* An error to display if the loading fails. This will override the skeleton.
|
|
15
|
+
*/
|
|
16
|
+
error?: ReactNode;
|
|
13
17
|
/**
|
|
14
18
|
* If set to `true`, will start hiding the loading indicator. It is recommended to use this prop if you are using the `IressLoading.shouldRender` hook to achieve a smooth loading experience.
|
|
15
19
|
*/
|
|
@@ -37,5 +41,5 @@ export interface PageLoadingProps extends Omit<IressStyledProps, 'children'> {
|
|
|
37
41
|
*/
|
|
38
42
|
timeout?: number;
|
|
39
43
|
}
|
|
40
|
-
export declare const PageLoading: ({ className, critical, loaded, screenReaderText, template, timeout, ...restProps }: PageLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const PageLoading: ({ className, critical, error, loaded, screenReaderText, template, timeout, ...restProps }: PageLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
45
|
export {};
|
|
@@ -32,17 +32,22 @@ export interface StartUpLoadingProps extends Omit<IressStyledProps, 'color'> {
|
|
|
32
32
|
/**
|
|
33
33
|
* If provided, will use this to set the `value` of the progress bar. If not provided, will use the `estimatedFinishTime` to calculate the progress.
|
|
34
34
|
*/
|
|
35
|
-
progress?: IressProgressProps<undefined>['value'];
|
|
35
|
+
progress?: IressProgressProps<number | undefined>['value'];
|
|
36
36
|
/**
|
|
37
37
|
* This is a render prop that allows you to override the default progress rendering.
|
|
38
38
|
* This is useful if you want to use a different progress component or if you want to add additional props to the progress bar.
|
|
39
39
|
*/
|
|
40
|
-
renderProgress?: (props: Pick<IressProgressProps<undefined>, 'max' | 'sectionTitle' | 'value'>) => ReactNode;
|
|
40
|
+
renderProgress?: (props: Pick<IressProgressProps<number | undefined>, 'min' | 'max' | 'sectionTitle' | 'value'>) => ReactNode;
|
|
41
41
|
/**
|
|
42
42
|
* Only screen readers will see this message, it is changed to the `children` message after the delay.
|
|
43
43
|
* @default 'Loading...'
|
|
44
44
|
*/
|
|
45
45
|
screenReaderText?: ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Set the start from timer, useful when stringing multiple loading patterns across different pages (eg. logging via a third-party authentication provider)
|
|
48
|
+
* @default 0
|
|
49
|
+
*/
|
|
50
|
+
startFrom?: number;
|
|
46
51
|
/**
|
|
47
52
|
* Set the timeouts for showing the progress bar and message.
|
|
48
53
|
*/
|
|
@@ -64,4 +69,4 @@ export interface StartUpLoadingProps extends Omit<IressStyledProps, 'color'> {
|
|
|
64
69
|
progress?: number;
|
|
65
70
|
};
|
|
66
71
|
}
|
|
67
|
-
export declare const StartUpLoading: ({ className, children, "data-testid": dataTestId, estimatedFinishTime, loaded, messageList, progress, renderProgress, screenReaderText, timeout, ...restProps }: StartUpLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare const StartUpLoading: ({ className, children, "data-testid": dataTestId, estimatedFinishTime, loaded, messageList, progress, renderProgress, screenReaderText, startFrom, timeout, ...restProps }: StartUpLoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -35,4 +35,4 @@ export interface ValidateLoadingProps extends IressStyledProps {
|
|
|
35
35
|
*/
|
|
36
36
|
timeout?: number;
|
|
37
37
|
}
|
|
38
|
-
export declare const ValidateLoading: ({ children, className, loading: loadingProp, message, pattern, position, renderButton, timeout, ...restProps }: ValidateLoadingProps) => string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
38
|
+
export declare const ValidateLoading: ({ children, className, loading: loadingProp, message, pattern, position, renderButton, timeout, ...restProps }: ValidateLoadingProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IressUnstyledProps } from '../../types';
|
|
3
|
+
export interface IressShadowProps extends IressUnstyledProps {
|
|
4
|
+
/**
|
|
5
|
+
* Children to be rendered inside the shadow DOM
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Optional array of font URLs to be included in the parent document head.
|
|
10
|
+
* By default it will include the default fonts from `@iress-oss/ids-tokens`
|
|
11
|
+
* (e.g., ['https://fonts.googleapis.com/css?family=Roboto']
|
|
12
|
+
*/
|
|
13
|
+
fontFaceUrls?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* If true, the Iress icon stylesheet will not be included in the shadow DOM and the head.
|
|
16
|
+
*/
|
|
17
|
+
noIcons?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Optional array of stylesheet contents to be included in the shadow DOM
|
|
20
|
+
* (e.g. { styleId: '.my-class { color: red; }' })
|
|
21
|
+
*/
|
|
22
|
+
stylesheetContents?: Record<string, string>;
|
|
23
|
+
/**
|
|
24
|
+
* Optional array of stylesheet URLs to be included in the shadow DOM
|
|
25
|
+
* (e.g., ['https://example.com/style.css'])
|
|
26
|
+
*/
|
|
27
|
+
stylesheetUrls?: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* This component allows you to encapsulate its children within a Shadow DOM.
|
|
31
|
+
* It automatically includes the IDS CSS and allows for additional stylesheets
|
|
32
|
+
* and font faces to be added either to the shadow DOM or the parent document head.
|
|
33
|
+
*/
|
|
34
|
+
export declare const IressShadow: import('react').ForwardRefExoticComponent<IressShadowProps & import('react').RefAttributes<ShadowRoot | null>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Shadow';
|