@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
|
@@ -1,83 +1,93 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { C as
|
|
3
|
-
import { propagateTestid as
|
|
4
|
-
import { TabSetProvider as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { s as
|
|
7
|
-
import { tabSet as
|
|
8
|
-
import { c as
|
|
9
|
-
import { GlobalCSSClass as
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
12
|
-
return
|
|
13
|
-
if (t
|
|
14
|
-
const { offsetLeft:
|
|
1
|
+
import { jsx as e, jsxs as v, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { C as T } from "../../floating-ui.react-CmSaAiNF.js";
|
|
3
|
+
import { propagateTestid as C } from "../../helpers/utility/propagateTestid.js";
|
|
4
|
+
import { TabSetProvider as y, TabSetContext as h } from "./TabSetProvider.js";
|
|
5
|
+
import { useState as d, useContext as u, useEffect as x } from "react";
|
|
6
|
+
import { s as m } from "../../factory-oPXoMw9H.js";
|
|
7
|
+
import { tabSet as I } from "./TabSet.styles.js";
|
|
8
|
+
import { c as n } from "../../cx-DN21T1EH.js";
|
|
9
|
+
import { GlobalCSSClass as $ } from "../../enums.js";
|
|
10
|
+
const g = (a) => {
|
|
11
|
+
const [c, r] = d({}), t = u(h);
|
|
12
|
+
return x(() => {
|
|
13
|
+
if (t?.hover) {
|
|
14
|
+
const { offsetLeft: s, scrollWidth: o } = t.hover;
|
|
15
15
|
r({
|
|
16
16
|
opacity: 1,
|
|
17
|
-
left: `${
|
|
18
|
-
width: `${
|
|
17
|
+
left: `${s}px`,
|
|
18
|
+
width: `${o}px`
|
|
19
19
|
});
|
|
20
20
|
} else
|
|
21
|
-
r((
|
|
22
|
-
...
|
|
21
|
+
r((s) => ({
|
|
22
|
+
...s,
|
|
23
23
|
opacity: 0
|
|
24
24
|
}));
|
|
25
|
-
}, [t
|
|
26
|
-
},
|
|
27
|
-
const [
|
|
28
|
-
return
|
|
29
|
-
const
|
|
30
|
-
if (t
|
|
31
|
-
const { offsetLeft:
|
|
25
|
+
}, [t?.hover]), /* @__PURE__ */ e("div", { ...a, style: c });
|
|
26
|
+
}, j = (a) => {
|
|
27
|
+
const [c, r] = d({}), t = u(h);
|
|
28
|
+
return x(() => {
|
|
29
|
+
const s = setTimeout(() => {
|
|
30
|
+
if (t?.active) {
|
|
31
|
+
const { offsetLeft: o, scrollWidth: l } = t.active;
|
|
32
32
|
r({
|
|
33
|
-
left: `${
|
|
34
|
-
width: `${
|
|
33
|
+
left: `${o}px`,
|
|
34
|
+
width: `${l}px`
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}, 150);
|
|
38
|
-
return () => clearTimeout(
|
|
39
|
-
}, [t
|
|
40
|
-
},
|
|
41
|
-
children:
|
|
42
|
-
className:
|
|
38
|
+
return () => clearTimeout(s);
|
|
39
|
+
}, [t?.active]), /* @__PURE__ */ e("div", { ...a, style: c });
|
|
40
|
+
}, k = ({
|
|
41
|
+
children: a,
|
|
42
|
+
className: c,
|
|
43
43
|
defaultSelected: r,
|
|
44
44
|
layout: t = "top-left",
|
|
45
|
-
onChange:
|
|
45
|
+
onChange: s,
|
|
46
|
+
panelStyle: o,
|
|
46
47
|
selected: l,
|
|
47
|
-
|
|
48
|
+
tabHolderStyle: f,
|
|
49
|
+
...p
|
|
48
50
|
}) => {
|
|
49
|
-
const [
|
|
51
|
+
const [S, b] = d(null), i = I({ layout: t });
|
|
50
52
|
return /* @__PURE__ */ e(
|
|
51
|
-
|
|
53
|
+
y,
|
|
52
54
|
{
|
|
53
55
|
defaultSelected: r,
|
|
54
|
-
onChange:
|
|
55
|
-
panel:
|
|
56
|
+
onChange: s,
|
|
57
|
+
panel: S,
|
|
56
58
|
selected: l,
|
|
57
59
|
children: /* @__PURE__ */ e(
|
|
58
|
-
|
|
60
|
+
m.div,
|
|
59
61
|
{
|
|
60
|
-
className:
|
|
61
|
-
...
|
|
62
|
-
children:
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
62
|
+
className: n(c, i.root, $.TabSet),
|
|
63
|
+
...p,
|
|
64
|
+
children: a && /* @__PURE__ */ v(N, { children: [
|
|
65
|
+
/* @__PURE__ */ v(
|
|
66
|
+
m.div,
|
|
67
|
+
{
|
|
68
|
+
...f,
|
|
69
|
+
className: n(i.listHolder, f?.className),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ e(j, { className: i.activeIndicator }),
|
|
72
|
+
/* @__PURE__ */ e(g, { className: i.hoverIndicator }),
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
T,
|
|
75
|
+
{
|
|
76
|
+
render: /* @__PURE__ */ e("div", { className: i.list, role: "tablist" }),
|
|
77
|
+
loop: !1,
|
|
78
|
+
children: a
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
),
|
|
75
84
|
/* @__PURE__ */ e(
|
|
76
|
-
|
|
85
|
+
m.div,
|
|
77
86
|
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
87
|
+
...o,
|
|
88
|
+
className: n(i.panel, o?.className),
|
|
89
|
+
"data-testid": o?.["data-testid"] ?? C(p["data-testid"], "panel"),
|
|
90
|
+
ref: b
|
|
81
91
|
}
|
|
82
92
|
)
|
|
83
93
|
] })
|
|
@@ -87,5 +97,5 @@ const $ = (s) => {
|
|
|
87
97
|
);
|
|
88
98
|
};
|
|
89
99
|
export {
|
|
90
|
-
|
|
100
|
+
k as IressTabSet
|
|
91
101
|
};
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { useControlledState as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as V } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as H, useState as l, useMemo as g, useCallback as M, useEffect as N } from "react";
|
|
3
|
+
import { useControlledState as P } from "../../hooks/useControlledState.js";
|
|
4
|
+
const j = H(
|
|
5
5
|
void 0
|
|
6
|
-
),
|
|
7
|
-
children:
|
|
8
|
-
defaultSelected:
|
|
9
|
-
onChange:
|
|
6
|
+
), E = ({
|
|
7
|
+
children: h,
|
|
8
|
+
defaultSelected: C,
|
|
9
|
+
onChange: f,
|
|
10
10
|
panel: v,
|
|
11
|
-
selected:
|
|
11
|
+
selected: I
|
|
12
12
|
}) => {
|
|
13
|
-
const [w,
|
|
13
|
+
const [w, O] = l(), [o, S] = l(() => /* @__PURE__ */ new Set()), [n, m] = l(
|
|
14
14
|
() => /* @__PURE__ */ new Map()
|
|
15
|
-
), { value: c, setValue:
|
|
15
|
+
), { value: c, setValue: i } = P({
|
|
16
16
|
component: "IressTabSet",
|
|
17
|
-
defaultValue:
|
|
17
|
+
defaultValue: C,
|
|
18
18
|
propName: "selected",
|
|
19
|
-
value:
|
|
20
|
-
}),
|
|
21
|
-
() => [...
|
|
22
|
-
(e, t) =>
|
|
19
|
+
value: I
|
|
20
|
+
}), d = g(
|
|
21
|
+
() => [...o].find(
|
|
22
|
+
(e, t) => n.has(t) && n.get(t) === c || t === c
|
|
23
23
|
),
|
|
24
|
-
[
|
|
25
|
-
), x =
|
|
24
|
+
[o, c, n]
|
|
25
|
+
), x = M(
|
|
26
26
|
(e, t) => {
|
|
27
27
|
S((s) => {
|
|
28
28
|
let r = new Set(s);
|
|
29
29
|
s.has(e) || (r = new Set(s).add(e));
|
|
30
|
-
const
|
|
31
|
-
return t !== void 0 && m((
|
|
32
|
-
const b = new Map(
|
|
33
|
-
return b.set(
|
|
30
|
+
const a = [...r].indexOf(e);
|
|
31
|
+
return t !== void 0 && m((u) => {
|
|
32
|
+
const b = new Map(u);
|
|
33
|
+
return b.set(a, t), b;
|
|
34
34
|
}), r;
|
|
35
35
|
});
|
|
36
36
|
},
|
|
37
37
|
[]
|
|
38
|
-
), p =
|
|
38
|
+
), p = M((e) => {
|
|
39
39
|
S((t) => {
|
|
40
40
|
const s = new Set(t), r = [...s].indexOf(e);
|
|
41
|
-
return s.delete(e), m((
|
|
42
|
-
if (!
|
|
43
|
-
const
|
|
44
|
-
return
|
|
41
|
+
return s.delete(e), m((a) => {
|
|
42
|
+
if (!a.has(r)) return a;
|
|
43
|
+
const u = new Map(a);
|
|
44
|
+
return u.delete(r), u;
|
|
45
45
|
}), s;
|
|
46
46
|
});
|
|
47
47
|
}, []);
|
|
48
|
-
|
|
49
|
-
c === void 0 &&
|
|
50
|
-
}, [
|
|
51
|
-
const
|
|
48
|
+
N(() => {
|
|
49
|
+
c === void 0 && o.size && i(n.get(0) ?? 0);
|
|
50
|
+
}, [o, c, i, n]);
|
|
51
|
+
const T = g(
|
|
52
52
|
() => ({
|
|
53
|
-
active:
|
|
53
|
+
active: d,
|
|
54
54
|
activate(e) {
|
|
55
55
|
if (!e) return;
|
|
56
|
-
const t = [...
|
|
57
|
-
|
|
56
|
+
const t = [...o].indexOf(e), s = n.get(t);
|
|
57
|
+
f?.({ index: t, value: s }), i(s ?? t);
|
|
58
58
|
},
|
|
59
|
-
isActive: (e) => e ?
|
|
59
|
+
isActive: (e) => e ? d === e : !1,
|
|
60
60
|
hover: w,
|
|
61
61
|
panel: v,
|
|
62
62
|
register: x,
|
|
63
63
|
setHover: (e) => {
|
|
64
|
-
|
|
64
|
+
O(e);
|
|
65
65
|
},
|
|
66
66
|
unregister: p
|
|
67
67
|
}),
|
|
68
68
|
[
|
|
69
|
-
|
|
69
|
+
d,
|
|
70
70
|
w,
|
|
71
71
|
v,
|
|
72
72
|
x,
|
|
73
73
|
p,
|
|
74
|
-
n,
|
|
75
74
|
o,
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
n,
|
|
76
|
+
f,
|
|
77
|
+
i
|
|
78
78
|
]
|
|
79
79
|
);
|
|
80
|
-
return /* @__PURE__ */
|
|
80
|
+
return /* @__PURE__ */ V(j.Provider, { value: T, children: h });
|
|
81
81
|
};
|
|
82
82
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
j as TabSetContext,
|
|
84
|
+
E as TabSetProvider
|
|
85
85
|
};
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { useIdIfNeeded as
|
|
4
|
-
import { TableEmpty as
|
|
5
|
-
import { propagateTestid as
|
|
6
|
-
import { TableHeader as
|
|
7
|
-
import { T as
|
|
8
|
-
import { TableRows as
|
|
9
|
-
import { table as
|
|
3
|
+
import { useIdIfNeeded as w } from "../../hooks/useIdIfNeeded.js";
|
|
4
|
+
import { TableEmpty as E } from "./components/TableEmpty.js";
|
|
5
|
+
import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
|
|
6
|
+
import { TableHeader as G } from "./components/TableHeader.js";
|
|
7
|
+
import { T as R } from "../../TableProvider-_4Whj6P5.js";
|
|
8
|
+
import { TableRows as $ } from "./components/TableRows.js";
|
|
9
|
+
import { table as k } from "./Table.styles.js";
|
|
10
10
|
import { c as h } from "../../cx-DN21T1EH.js";
|
|
11
|
-
import { s as
|
|
12
|
-
import { GlobalCSSClass as
|
|
13
|
-
const
|
|
11
|
+
import { s as q } from "../../factory-oPXoMw9H.js";
|
|
12
|
+
import { GlobalCSSClass as z } from "../../enums.js";
|
|
13
|
+
const U = ({
|
|
14
14
|
alternate: T = !1,
|
|
15
15
|
caption: I,
|
|
16
|
-
children:
|
|
17
|
-
columns:
|
|
16
|
+
children: r,
|
|
17
|
+
columns: l,
|
|
18
18
|
compact: x = !1,
|
|
19
19
|
className: y,
|
|
20
20
|
"data-testid": e,
|
|
21
|
-
empty:
|
|
21
|
+
empty: d,
|
|
22
22
|
hiddenCaption: N,
|
|
23
|
-
hiddenHeader:
|
|
23
|
+
hiddenHeader: m,
|
|
24
24
|
hover: g,
|
|
25
|
-
removeRowBorders:
|
|
26
|
-
rowProps:
|
|
27
|
-
rows:
|
|
28
|
-
scope:
|
|
25
|
+
removeRowBorders: u = !1,
|
|
26
|
+
rowProps: C,
|
|
27
|
+
rows: c = [],
|
|
28
|
+
scope: j,
|
|
29
29
|
...n
|
|
30
30
|
}) => {
|
|
31
|
-
const
|
|
31
|
+
const o = w({ id: n.id }), v = `${o}--caption`, s = (d && l?.length) ?? !!c?.length, S = r ?? s, i = k({
|
|
32
32
|
alternate: T,
|
|
33
33
|
compact: x,
|
|
34
34
|
hover: g,
|
|
35
35
|
hiddenCaption: N,
|
|
36
|
-
removeRowBorders:
|
|
37
|
-
}), p =
|
|
38
|
-
return
|
|
39
|
-
|
|
36
|
+
removeRowBorders: u
|
|
37
|
+
}), p = a(e, "thead"), b = a(e, "tbody");
|
|
38
|
+
return S ? /* @__PURE__ */ t("div", { className: i.root, "data-testid": e, children: /* @__PURE__ */ t(R, { columns: l, rows: c, children: /* @__PURE__ */ f(
|
|
39
|
+
q.table,
|
|
40
40
|
{
|
|
41
41
|
...n,
|
|
42
|
-
className: h(y,
|
|
43
|
-
id:
|
|
44
|
-
"data-testid":
|
|
42
|
+
className: h(y, i.table, z.Table),
|
|
43
|
+
id: o,
|
|
44
|
+
"data-testid": a(e, "table"),
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ t(
|
|
47
47
|
"caption",
|
|
48
48
|
{
|
|
49
|
-
id:
|
|
50
|
-
className: h(
|
|
51
|
-
"data-testid":
|
|
49
|
+
id: v,
|
|
50
|
+
className: h(i.caption),
|
|
51
|
+
"data-testid": a(e, "caption"),
|
|
52
52
|
children: I
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
|
-
!
|
|
56
|
-
|
|
55
|
+
!m && s && /* @__PURE__ */ t("thead", { "data-testid": p, children: /* @__PURE__ */ t(G, { tableId: o, testId: p }) }),
|
|
56
|
+
s && /* @__PURE__ */ f("tbody", { "data-testid": b, children: [
|
|
57
57
|
/* @__PURE__ */ t(
|
|
58
|
-
|
|
58
|
+
$,
|
|
59
59
|
{
|
|
60
60
|
testId: b,
|
|
61
|
-
tableId:
|
|
62
|
-
rowProps:
|
|
63
|
-
scope:
|
|
64
|
-
hiddenHeader:
|
|
61
|
+
tableId: o,
|
|
62
|
+
rowProps: C,
|
|
63
|
+
scope: j,
|
|
64
|
+
hiddenHeader: m
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
/* @__PURE__ */ t(
|
|
67
|
+
/* @__PURE__ */ t(E, { children: d })
|
|
68
68
|
] }),
|
|
69
|
-
|
|
69
|
+
r
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
) }) }) : null;
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
U as IressTable
|
|
76
76
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as n } from "../../cva-JiDXAa83.js";
|
|
2
|
+
import { m as s, a as l, s as i, i as c } from "../../css-fGu_jDvv.js";
|
|
3
|
+
import { c as p } from "../../create-recipe-C-ASk1Hy.js";
|
|
3
4
|
const r = {
|
|
4
5
|
compact: !1,
|
|
5
6
|
hover: !1,
|
|
@@ -34,7 +35,7 @@ const r = {
|
|
|
34
35
|
"rowGroupHeader",
|
|
35
36
|
"table__rowGroupHeader"
|
|
36
37
|
]
|
|
37
|
-
],
|
|
38
|
+
], m = /* @__PURE__ */ d.map(([t, e]) => [t, p(e, r, c(b, t))]), u = s((t = {}) => Object.fromEntries(m.map(([e, o]) => [e, o.recipeFn(t)]))), a = [
|
|
38
39
|
"alternate",
|
|
39
40
|
"compact",
|
|
40
41
|
"hover",
|
|
@@ -42,10 +43,11 @@ const r = {
|
|
|
42
43
|
"sortButtonNoWrap",
|
|
43
44
|
"tableBodyOpen",
|
|
44
45
|
"hiddenCaption"
|
|
45
|
-
], _ = (t) => ({ ...r, ...
|
|
46
|
+
], _ = (t) => ({ ...r, ...l(t) }), g = /* @__PURE__ */ Object.assign(u, {
|
|
46
47
|
__recipe__: !1,
|
|
47
48
|
__name__: "table",
|
|
48
49
|
raw: (t) => t,
|
|
50
|
+
classNameMap: {},
|
|
49
51
|
variantKeys: a,
|
|
50
52
|
variantMap: {
|
|
51
53
|
alternate: [
|
|
@@ -71,10 +73,10 @@ const r = {
|
|
|
71
73
|
]
|
|
72
74
|
},
|
|
73
75
|
splitVariantProps(t) {
|
|
74
|
-
return
|
|
76
|
+
return i(t, a);
|
|
75
77
|
},
|
|
76
78
|
getVariantProps: _
|
|
77
|
-
}),
|
|
79
|
+
}), V = n({
|
|
78
80
|
base: {
|
|
79
81
|
textAlign: "start"
|
|
80
82
|
},
|
|
@@ -96,6 +98,6 @@ const r = {
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
g as table,
|
|
102
|
+
V as tableCell
|
|
101
103
|
};
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { propagateTestid as
|
|
3
|
-
import { TableEmpty as
|
|
4
|
-
import { TableHeader as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { useIdIfNeeded as
|
|
7
|
-
import { TableRows as
|
|
8
|
-
import { useAriaRelationship as
|
|
9
|
-
import { table as
|
|
10
|
-
import { T as
|
|
11
|
-
import { s as
|
|
1
|
+
import { jsx as t, jsxs as C, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { propagateTestid as g } from "../../../helpers/utility/propagateTestid.js";
|
|
3
|
+
import { TableEmpty as R } from "../components/TableEmpty.js";
|
|
4
|
+
import { TableHeader as F } from "../components/TableHeader.js";
|
|
5
|
+
import { useState as N, useEffect as S, useContext as y } from "react";
|
|
6
|
+
import { useIdIfNeeded as V } from "../../../hooks/useIdIfNeeded.js";
|
|
7
|
+
import { TableRows as j } from "../components/TableRows.js";
|
|
8
|
+
import { useAriaRelationship as k } from "../../../hooks/useAriaRelationship.js";
|
|
9
|
+
import { table as A } from "../Table.styles.js";
|
|
10
|
+
import { T as E, a as T } from "../../../TableProvider-_4Whj6P5.js";
|
|
11
|
+
import { s as I } from "../../../factory-oPXoMw9H.js";
|
|
12
12
|
const G = ({
|
|
13
|
-
caption:
|
|
14
|
-
hiddenCaption:
|
|
15
|
-
onChange:
|
|
16
|
-
open:
|
|
17
|
-
setController:
|
|
18
|
-
tableId:
|
|
13
|
+
caption: a,
|
|
14
|
+
hiddenCaption: e,
|
|
15
|
+
onChange: l,
|
|
16
|
+
open: n,
|
|
17
|
+
setController: s,
|
|
18
|
+
tableId: o
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
22
|
-
const
|
|
20
|
+
const d = y(T)?.api.getVisibleFlatColumns().length;
|
|
21
|
+
if (!d) return null;
|
|
22
|
+
const c = A({ tableBodyOpen: n });
|
|
23
23
|
return /* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t(
|
|
24
|
-
|
|
24
|
+
I.th,
|
|
25
25
|
{
|
|
26
|
-
"aria-expanded":
|
|
27
|
-
colSpan:
|
|
28
|
-
className:
|
|
29
|
-
id: `${
|
|
30
|
-
onClick:
|
|
26
|
+
"aria-expanded": e ? void 0 : n,
|
|
27
|
+
colSpan: d,
|
|
28
|
+
className: c.rowGroupHeader,
|
|
29
|
+
id: `${o}--caption`,
|
|
30
|
+
onClick: l,
|
|
31
31
|
scope: "rowgroup",
|
|
32
|
-
srOnly:
|
|
33
|
-
ref:
|
|
34
|
-
children: /* @__PURE__ */ t("button", { className:
|
|
32
|
+
srOnly: e,
|
|
33
|
+
ref: s,
|
|
34
|
+
children: /* @__PURE__ */ t("button", { className: c.activator, type: "button", children: a })
|
|
35
35
|
}
|
|
36
36
|
) });
|
|
37
37
|
}, q = ({
|
|
38
|
-
children:
|
|
39
|
-
setControlViaRef:
|
|
40
|
-
tableId:
|
|
38
|
+
children: a,
|
|
39
|
+
setControlViaRef: e,
|
|
40
|
+
tableId: l
|
|
41
41
|
}) => {
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
const
|
|
45
|
-
return /* @__PURE__ */ t("tr", { id:
|
|
42
|
+
const s = y(T)?.api.getVisibleFlatColumns().length;
|
|
43
|
+
if (!a) return null;
|
|
44
|
+
const o = `${l}--children`;
|
|
45
|
+
return /* @__PURE__ */ t("tr", { id: o, ref: (i) => e(o)(i), children: /* @__PURE__ */ t("td", { colSpan: s, children: a }) });
|
|
46
46
|
}, Y = ({
|
|
47
|
-
caption:
|
|
48
|
-
children:
|
|
49
|
-
columns:
|
|
50
|
-
"data-testid":
|
|
51
|
-
empty:
|
|
52
|
-
hiddenCaption:
|
|
53
|
-
hiddenHeader:
|
|
54
|
-
onOpened:
|
|
55
|
-
onClosed:
|
|
47
|
+
caption: a,
|
|
48
|
+
children: e,
|
|
49
|
+
columns: l,
|
|
50
|
+
"data-testid": n,
|
|
51
|
+
empty: s,
|
|
52
|
+
hiddenCaption: o,
|
|
53
|
+
hiddenHeader: i,
|
|
54
|
+
onOpened: d,
|
|
55
|
+
onClosed: c,
|
|
56
56
|
open: b = !1,
|
|
57
|
-
rowProps:
|
|
58
|
-
rows:
|
|
59
|
-
scope:
|
|
57
|
+
rowProps: x,
|
|
58
|
+
rows: f = [],
|
|
59
|
+
scope: O,
|
|
60
60
|
...u
|
|
61
61
|
}) => {
|
|
62
|
-
const [
|
|
63
|
-
if (
|
|
62
|
+
const [m, h] = N(b), { setController: w, setControlViaRef: p } = k("aria-controls"), r = V({ id: u.id }), $ = e ?? (s && l?.length) ?? !!f?.length;
|
|
63
|
+
if (S(() => {
|
|
64
64
|
h(b);
|
|
65
|
-
}, [b]),
|
|
65
|
+
}, [b]), !$)
|
|
66
66
|
return null;
|
|
67
|
-
const
|
|
68
|
-
h(!
|
|
69
|
-
},
|
|
70
|
-
return /* @__PURE__ */ t(
|
|
67
|
+
const v = () => {
|
|
68
|
+
h(!m), m ? c?.() : d?.();
|
|
69
|
+
}, B = m || o;
|
|
70
|
+
return /* @__PURE__ */ t(E, { columns: l, rows: f, children: /* @__PURE__ */ C(I.tbody, { "aria-labelledby": `${r}--caption`, ...u, children: [
|
|
71
71
|
/* @__PURE__ */ t(
|
|
72
72
|
G,
|
|
73
73
|
{
|
|
74
|
-
setController:
|
|
75
|
-
caption:
|
|
76
|
-
hiddenCaption:
|
|
77
|
-
onChange:
|
|
78
|
-
open:
|
|
79
|
-
tableId:
|
|
74
|
+
setController: w,
|
|
75
|
+
caption: a,
|
|
76
|
+
hiddenCaption: o,
|
|
77
|
+
onChange: v,
|
|
78
|
+
open: m,
|
|
79
|
+
tableId: r
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
|
|
83
|
-
!
|
|
84
|
-
|
|
82
|
+
B && /* @__PURE__ */ C(H, { children: [
|
|
83
|
+
!i && /* @__PURE__ */ t(
|
|
84
|
+
F,
|
|
85
85
|
{
|
|
86
|
-
additionalHeaders: `${
|
|
86
|
+
additionalHeaders: `${r}--caption`,
|
|
87
87
|
setControlViaRef: p,
|
|
88
|
-
tableId:
|
|
89
|
-
testId:
|
|
88
|
+
tableId: r,
|
|
89
|
+
testId: g(n, "thead")
|
|
90
90
|
}
|
|
91
91
|
),
|
|
92
92
|
/* @__PURE__ */ t(
|
|
93
|
-
|
|
93
|
+
j,
|
|
94
94
|
{
|
|
95
|
-
additionalHeaders: `${
|
|
96
|
-
tableId:
|
|
97
|
-
rowProps:
|
|
95
|
+
additionalHeaders: `${r}--caption`,
|
|
96
|
+
tableId: r,
|
|
97
|
+
rowProps: x,
|
|
98
98
|
setControlViaRef: p,
|
|
99
|
-
scope:
|
|
100
|
-
hiddenHeader:
|
|
101
|
-
testId:
|
|
99
|
+
scope: O,
|
|
100
|
+
hiddenHeader: i,
|
|
101
|
+
testId: g(n, "tbody")
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
/* @__PURE__ */ t(
|
|
105
|
-
/* @__PURE__ */ t(q, { setControlViaRef: p, tableId:
|
|
104
|
+
/* @__PURE__ */ t(R, { children: s }),
|
|
105
|
+
/* @__PURE__ */ t(q, { setControlViaRef: p, tableId: r, children: e })
|
|
106
106
|
] })
|
|
107
107
|
] }) });
|
|
108
108
|
};
|