@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,8 +1,8 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import "../../../components/Stack/Stack.styles.js";
|
|
3
3
|
import { IressStack as M } from "../../../components/Stack/Stack.js";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { IressText as
|
|
4
|
+
import { useMemo as h, useId as j } from "react";
|
|
5
|
+
import { IressText as f } from "../../../components/Text/Text.js";
|
|
6
6
|
import { IressPanel as O } from "../../../components/Panel/Panel.js";
|
|
7
7
|
import "../../../components/Panel/Panel.styles.js";
|
|
8
8
|
import { IressProgress as S } from "../../../components/Progress/Progress.js";
|
|
@@ -10,12 +10,12 @@ import "../../../components/Progress/Progress.styles.js";
|
|
|
10
10
|
import { propagateTestid as B } from "../../../helpers/utility/propagateTestid.js";
|
|
11
11
|
import { useShowIndicator as P } from "../hooks/useShowIndicator.js";
|
|
12
12
|
import { useEstimatedProgressValue as V } from "../hooks/useEstimatedProgressValue.js";
|
|
13
|
-
import { s as C } from "../../../factory-
|
|
13
|
+
import { s as C } from "../../../factory-oPXoMw9H.js";
|
|
14
14
|
import { c as E } from "../../../cx-DN21T1EH.js";
|
|
15
15
|
import { loading as G, loadingList as x } from "../Loading.styles.js";
|
|
16
|
-
const L = ({ message:
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
16
|
+
const L = ({ message: a, current: i, finished: c }) => {
|
|
17
|
+
const s = j(), r = x({ finished: c });
|
|
18
|
+
return /* @__PURE__ */ d("li", { className: r.item, children: [
|
|
19
19
|
/* @__PURE__ */ e(
|
|
20
20
|
"svg",
|
|
21
21
|
{
|
|
@@ -36,15 +36,15 @@ const L = ({ message: i, current: m, finished: l }) => {
|
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
|
-
|
|
39
|
+
c && /* @__PURE__ */ d(
|
|
40
40
|
"svg",
|
|
41
41
|
{
|
|
42
42
|
className: r.svg,
|
|
43
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44
44
|
viewBox: "0 0 52 52",
|
|
45
|
-
"aria-labelledby":
|
|
45
|
+
"aria-labelledby": s,
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */ e("title", { id:
|
|
47
|
+
/* @__PURE__ */ e("title", { id: s, children: "Finished: " }),
|
|
48
48
|
/* @__PURE__ */ e(
|
|
49
49
|
"circle",
|
|
50
50
|
{
|
|
@@ -66,59 +66,59 @@ const L = ({ message: i, current: m, finished: l }) => {
|
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
a,
|
|
70
|
+
i && /* @__PURE__ */ e("span", { className: r.dots, children: /* @__PURE__ */ e(f, { srOnly: !0, children: "..." }) })
|
|
71
71
|
] });
|
|
72
72
|
}, Z = ({
|
|
73
|
-
children:
|
|
74
|
-
className:
|
|
75
|
-
error:
|
|
76
|
-
estimatedFinishTime:
|
|
73
|
+
children: a,
|
|
74
|
+
className: i,
|
|
75
|
+
error: c,
|
|
76
|
+
estimatedFinishTime: s = 1e4,
|
|
77
77
|
loaded: r,
|
|
78
|
-
messageList:
|
|
78
|
+
messageList: l = {},
|
|
79
79
|
progress: y,
|
|
80
|
-
renderProgress: N = (
|
|
81
|
-
timeout:
|
|
82
|
-
...
|
|
80
|
+
renderProgress: N = (m) => /* @__PURE__ */ e(S, { ...m, color: "colour.primary.fill" }),
|
|
81
|
+
timeout: p,
|
|
82
|
+
...u
|
|
83
83
|
}) => {
|
|
84
|
-
const
|
|
84
|
+
const m = P(
|
|
85
85
|
r,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
), w = Math.max(...Object.keys(
|
|
89
|
-
|
|
86
|
+
p?.message,
|
|
87
|
+
p?.loaded ?? 1300
|
|
88
|
+
), w = Math.max(...Object.keys(l).map(Number)) + 500, o = V(
|
|
89
|
+
s,
|
|
90
90
|
r,
|
|
91
91
|
y,
|
|
92
92
|
w
|
|
93
93
|
), b = G({
|
|
94
94
|
pattern: "long",
|
|
95
|
-
showIndicator:
|
|
95
|
+
showIndicator: m,
|
|
96
96
|
loaded: r,
|
|
97
|
-
error: !!
|
|
98
|
-
}), I = x(),
|
|
99
|
-
const
|
|
100
|
-
(k) => Number(k) >
|
|
97
|
+
error: !!c
|
|
98
|
+
}), I = x(), g = h(() => {
|
|
99
|
+
const t = Object.keys(l), n = t.findIndex(
|
|
100
|
+
(k) => Number(k) > o
|
|
101
101
|
);
|
|
102
|
-
return r ? "" :
|
|
103
|
-
}, [
|
|
104
|
-
timecode: Number(
|
|
105
|
-
message:
|
|
106
|
-
current:
|
|
107
|
-
finished:
|
|
108
|
-
})), [
|
|
109
|
-
return /* @__PURE__ */ e(C.div, { ...
|
|
102
|
+
return r ? "" : t[n] ?? t[t.length - 1];
|
|
103
|
+
}, [l, r, o]), v = h(() => Object.entries(l).map(([t, n]) => ({
|
|
104
|
+
timecode: Number(t),
|
|
105
|
+
message: n,
|
|
106
|
+
current: t === g,
|
|
107
|
+
finished: o >= Number(t)
|
|
108
|
+
})), [l, g, o]);
|
|
109
|
+
return /* @__PURE__ */ e(C.div, { ...u, className: E(b.root, i), children: /* @__PURE__ */ e(
|
|
110
110
|
O,
|
|
111
111
|
{
|
|
112
|
-
"data-testid": B(
|
|
112
|
+
"data-testid": B(u["data-testid"], "panel"),
|
|
113
113
|
bg: "transparent",
|
|
114
|
-
children:
|
|
115
|
-
|
|
114
|
+
children: c ?? /* @__PURE__ */ d(M, { gap: "md", children: [
|
|
115
|
+
a,
|
|
116
116
|
N({
|
|
117
|
-
max:
|
|
118
|
-
value: Math.min(
|
|
119
|
-
sectionTitle: `${Math.min(
|
|
117
|
+
max: s,
|
|
118
|
+
value: Math.min(o, s),
|
|
119
|
+
sectionTitle: `${Math.min(o, s) / s * 100}% loaded`
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ e(f, { textStyle: "typography.body.lg", noGutter: !0, children: /* @__PURE__ */ e("ul", { className: I.root, children: v.map(({ timecode: t, ...n }) => /* @__PURE__ */ e(L, { ...n }, t)) }) })
|
|
122
122
|
] })
|
|
123
123
|
}
|
|
124
124
|
) });
|
|
@@ -1,113 +1,116 @@
|
|
|
1
1
|
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as h, useMemo as j, useEffect as m } from "react";
|
|
3
3
|
import "../../../components/Stack/Stack.styles.js";
|
|
4
|
-
import { IressStack as
|
|
4
|
+
import { IressStack as c } from "../../../components/Stack/Stack.js";
|
|
5
5
|
import { IressSkeleton as e } from "../../../components/Skeleton/Skeleton.js";
|
|
6
6
|
import "../../../components/Skeleton/Skeleton.styles.js";
|
|
7
7
|
import "../../../components/Container/Container.styles.js";
|
|
8
|
-
import { IressContainer as
|
|
8
|
+
import { IressContainer as g } from "../../../components/Container/Container.js";
|
|
9
9
|
import "../../../components/Row/Row.styles.js";
|
|
10
|
-
import { IressRow as
|
|
10
|
+
import { IressRow as a } from "../../../components/Row/Row.js";
|
|
11
11
|
import "../../../components/Col/Col.styles.js";
|
|
12
|
-
import { IressCol as
|
|
12
|
+
import { IressCol as y } from "../../../components/Col/Col.js";
|
|
13
13
|
import "../../../components/Inline/Inline.styles.js";
|
|
14
|
-
import { IressInline as
|
|
15
|
-
import { IressDivider as
|
|
14
|
+
import { IressInline as D } from "../../../components/Inline/Inline.js";
|
|
15
|
+
import { IressDivider as z } from "../../../components/Divider/Divider.js";
|
|
16
16
|
import "../../../components/Divider/Divider.styles.js";
|
|
17
|
-
import { IressCard as
|
|
17
|
+
import { IressCard as E } from "../../../components/Card/Card.js";
|
|
18
18
|
import "../../../components/Card/Card.styles.js";
|
|
19
|
-
import { s as
|
|
20
|
-
import { loading as
|
|
21
|
-
import { c as
|
|
22
|
-
import { propagateTestid as
|
|
23
|
-
const
|
|
24
|
-
|
|
19
|
+
import { s as T } from "../../../factory-oPXoMw9H.js";
|
|
20
|
+
import { loading as F } from "../Loading.styles.js";
|
|
21
|
+
import { c as H } from "../../../cx-DN21T1EH.js";
|
|
22
|
+
import { propagateTestid as I } from "../../../helpers/utility/propagateTestid.js";
|
|
23
|
+
const p = () => /* @__PURE__ */ t(y, { span: "4", children: /* @__PURE__ */ t(
|
|
24
|
+
E,
|
|
25
25
|
{
|
|
26
26
|
stretch: !0,
|
|
27
27
|
heading: /* @__PURE__ */ t(e, { textStyle: "typography.heading.3", width: "75%" }),
|
|
28
28
|
media: /* @__PURE__ */ t(e, { mode: "rect", height: "300px" }),
|
|
29
29
|
children: /* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "50%" })
|
|
30
30
|
}
|
|
31
|
-
) }),
|
|
31
|
+
) }), M = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(c, { gap: "md", children: [
|
|
32
32
|
/* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
|
|
33
33
|
/* @__PURE__ */ t(e, { mode: "rect", height: "200px" })
|
|
34
|
-
] }) }) }) }),
|
|
34
|
+
] }) }) }) }), O = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(a, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ t(y, { children: /* @__PURE__ */ r(c, { gap: "md", children: [
|
|
35
35
|
/* @__PURE__ */ t(e, { textStyle: "typography.heading.2", width: "75%" }),
|
|
36
36
|
/* @__PURE__ */ t(e, { mode: "rect", height: "200px" }),
|
|
37
37
|
/* @__PURE__ */ t(e, { textStyle: "typography.body.md", width: "100px" })
|
|
38
|
-
] }) }) }) }),
|
|
39
|
-
/* @__PURE__ */ r(
|
|
38
|
+
] }) }) }) }), R = () => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ r(c, { gap: "lg", children: [
|
|
39
|
+
/* @__PURE__ */ r(a, { horizontalAlign: "between", verticalAlign: "middle", children: [
|
|
40
40
|
/* @__PURE__ */ t(e, { textStyle: "typography.heading.1", width: "25%" }),
|
|
41
|
-
/* @__PURE__ */ r(
|
|
41
|
+
/* @__PURE__ */ r(D, { gap: "lg", children: [
|
|
42
42
|
/* @__PURE__ */ t(e, { textStyle: "typography.body.lg", width: "200px" }),
|
|
43
43
|
/* @__PURE__ */ t(e, { textStyle: "typography.body.lg", width: "200px" })
|
|
44
44
|
] })
|
|
45
45
|
] }),
|
|
46
|
-
/* @__PURE__ */ t(
|
|
47
|
-
/* @__PURE__ */ r(
|
|
48
|
-
/* @__PURE__ */ t(
|
|
49
|
-
/* @__PURE__ */ t(
|
|
50
|
-
/* @__PURE__ */ t(
|
|
46
|
+
/* @__PURE__ */ t(z, {}),
|
|
47
|
+
/* @__PURE__ */ r(a, { gutter: "lg", children: [
|
|
48
|
+
/* @__PURE__ */ t(p, {}),
|
|
49
|
+
/* @__PURE__ */ t(p, {}),
|
|
50
|
+
/* @__PURE__ */ t(p, {})
|
|
51
51
|
] })
|
|
52
|
-
] }) }),
|
|
53
|
-
page:
|
|
54
|
-
form:
|
|
55
|
-
dashboard:
|
|
56
|
-
},
|
|
57
|
-
className:
|
|
58
|
-
critical:
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
] }) }), v = {
|
|
53
|
+
page: M,
|
|
54
|
+
form: O,
|
|
55
|
+
dashboard: R
|
|
56
|
+
}, dt = ({
|
|
57
|
+
className: b,
|
|
58
|
+
critical: d,
|
|
59
|
+
error: s,
|
|
60
|
+
loaded: f,
|
|
61
|
+
screenReaderText: C = "Loading...",
|
|
61
62
|
template: i = "page",
|
|
62
|
-
timeout:
|
|
63
|
-
...
|
|
63
|
+
timeout: u = 500,
|
|
64
|
+
...n
|
|
64
65
|
}) => {
|
|
65
|
-
const [
|
|
66
|
+
const [k, x] = h(!1), [w, A] = h(!1), [S, L] = h(!1), l = F({
|
|
67
|
+
error: !!s,
|
|
66
68
|
pattern: "page",
|
|
67
|
-
showCritical:
|
|
68
|
-
showIndicator:
|
|
69
|
-
}),
|
|
70
|
-
if (typeof i == "string" && i in
|
|
71
|
-
const o =
|
|
69
|
+
showCritical: S,
|
|
70
|
+
showIndicator: k && !w
|
|
71
|
+
}), N = j(() => {
|
|
72
|
+
if (typeof i == "string" && i in v) {
|
|
73
|
+
const o = v[i];
|
|
72
74
|
return /* @__PURE__ */ t(o, {});
|
|
73
75
|
}
|
|
74
76
|
return i;
|
|
75
77
|
}, [i]);
|
|
76
|
-
return
|
|
77
|
-
const o = setTimeout(() =>
|
|
78
|
+
return m(() => {
|
|
79
|
+
const o = setTimeout(() => x(!0), u);
|
|
78
80
|
return () => {
|
|
79
81
|
clearTimeout(o);
|
|
80
82
|
};
|
|
81
|
-
}, [
|
|
82
|
-
|
|
83
|
-
}, [
|
|
84
|
-
if (!
|
|
83
|
+
}, [u]), m(() => {
|
|
84
|
+
f === !0 && x(!1);
|
|
85
|
+
}, [f]), m(() => {
|
|
86
|
+
if (!d)
|
|
85
87
|
return;
|
|
86
|
-
|
|
87
|
-
const o = setTimeout(() =>
|
|
88
|
+
A(!0);
|
|
89
|
+
const o = setTimeout(() => L(!0), 200);
|
|
88
90
|
return () => {
|
|
89
91
|
clearTimeout(o);
|
|
90
92
|
};
|
|
91
|
-
}, [
|
|
92
|
-
|
|
93
|
+
}, [d]), /* @__PURE__ */ r(T.div, { className: H(b, l.root), ...n, children: [
|
|
94
|
+
s,
|
|
95
|
+
!s && !S && /* @__PURE__ */ t(
|
|
93
96
|
"div",
|
|
94
97
|
{
|
|
95
|
-
className:
|
|
96
|
-
"data-testid":
|
|
97
|
-
children:
|
|
98
|
+
className: l.message,
|
|
99
|
+
"data-testid": I(n["data-testid"], "skeleton"),
|
|
100
|
+
children: N
|
|
98
101
|
}
|
|
99
102
|
),
|
|
100
|
-
|
|
103
|
+
!s && w && /* @__PURE__ */ t(
|
|
101
104
|
"div",
|
|
102
105
|
{
|
|
103
|
-
className:
|
|
104
|
-
"data-testid":
|
|
105
|
-
children:
|
|
106
|
+
className: l.critical,
|
|
107
|
+
"data-testid": I(n["data-testid"], "critical"),
|
|
108
|
+
children: d
|
|
106
109
|
}
|
|
107
110
|
),
|
|
108
|
-
/* @__PURE__ */ t(
|
|
111
|
+
/* @__PURE__ */ t(T.div, { srOnly: !0, children: C })
|
|
109
112
|
] });
|
|
110
113
|
};
|
|
111
114
|
export {
|
|
112
|
-
|
|
115
|
+
dt as PageLoading
|
|
113
116
|
};
|
|
@@ -1,95 +1,97 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import "../../../components/Stack/Stack.styles.js";
|
|
3
3
|
import { IressStack as j } from "../../../components/Stack/Stack.js";
|
|
4
|
-
import { useState as
|
|
5
|
-
import { IressProgress as
|
|
4
|
+
import { useState as v, useEffect as M, useRef as I, useMemo as T } from "react";
|
|
5
|
+
import { IressProgress as k } from "../../../components/Progress/Progress.js";
|
|
6
6
|
import "../../../components/Progress/Progress.styles.js";
|
|
7
7
|
import { IressText as S } from "../../../components/Text/Text.js";
|
|
8
|
-
import { propagateTestid as
|
|
9
|
-
import { useShowIndicator as
|
|
10
|
-
import { useEstimatedProgressValue as
|
|
11
|
-
import { loading as
|
|
12
|
-
import { c as x } from "../../../
|
|
13
|
-
import { c as
|
|
14
|
-
const
|
|
15
|
-
children:
|
|
16
|
-
messageList:
|
|
17
|
-
progressValue:
|
|
8
|
+
import { propagateTestid as O } from "../../../helpers/utility/propagateTestid.js";
|
|
9
|
+
import { useShowIndicator as E } from "../hooks/useShowIndicator.js";
|
|
10
|
+
import { useEstimatedProgressValue as R } from "../hooks/useEstimatedProgressValue.js";
|
|
11
|
+
import { loading as A } from "../Loading.styles.js";
|
|
12
|
+
import { c as x } from "../../../css-fGu_jDvv.js";
|
|
13
|
+
import { c as H } from "../../../cx-DN21T1EH.js";
|
|
14
|
+
const L = ({
|
|
15
|
+
children: l,
|
|
16
|
+
messageList: o,
|
|
17
|
+
progressValue: a,
|
|
18
18
|
screenReaderText: e,
|
|
19
|
-
show:
|
|
20
|
-
...
|
|
19
|
+
show: c,
|
|
20
|
+
...m
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
(
|
|
22
|
+
const s = I(null), n = T(() => {
|
|
23
|
+
const i = Object.keys(o ?? {}).filter(
|
|
24
|
+
(t) => Number(t) <= a
|
|
25
25
|
);
|
|
26
|
-
return
|
|
27
|
-
}, [
|
|
26
|
+
return i[i.length - 1];
|
|
27
|
+
}, [o, a]);
|
|
28
28
|
return M(() => {
|
|
29
|
-
|
|
29
|
+
s.current && (s.current.classList.remove(
|
|
30
30
|
x({ animationStyle: "loading-slide-next" })
|
|
31
|
-
),
|
|
31
|
+
), s.current.offsetHeight, s.current.classList.add(
|
|
32
32
|
x({ animationStyle: "loading-slide-next" })
|
|
33
33
|
));
|
|
34
|
-
}, [
|
|
34
|
+
}, [n]), /* @__PURE__ */ r(S, { textAlign: "center", ...m, children: /* @__PURE__ */ r("div", { ref: s, children: n ? o?.[Number(n)] : c ? l : e }) });
|
|
35
35
|
}, W = ({
|
|
36
|
-
className:
|
|
37
|
-
children:
|
|
38
|
-
"data-testid":
|
|
36
|
+
className: l,
|
|
37
|
+
children: o = /* @__PURE__ */ r(S, { color: "colour.neutral.70", children: "One moment please..." }),
|
|
38
|
+
"data-testid": a,
|
|
39
39
|
estimatedFinishTime: e = 3e3,
|
|
40
|
-
loaded:
|
|
41
|
-
messageList:
|
|
42
|
-
progress:
|
|
43
|
-
renderProgress:
|
|
44
|
-
screenReaderText:
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
loaded: c,
|
|
41
|
+
messageList: m,
|
|
42
|
+
progress: s,
|
|
43
|
+
renderProgress: n = (d) => /* @__PURE__ */ r(k, { ...d }),
|
|
44
|
+
screenReaderText: u = "Loading...",
|
|
45
|
+
startFrom: i,
|
|
46
|
+
timeout: t,
|
|
47
|
+
...p
|
|
47
48
|
}) => {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
), [
|
|
49
|
+
const d = E(
|
|
50
|
+
c,
|
|
51
|
+
t?.progress,
|
|
52
|
+
t?.loaded
|
|
53
|
+
), [f, w] = v(!1), b = Math.max(...Object.keys(m ?? {}).map(Number)) + 500, g = R(
|
|
53
54
|
e,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
c,
|
|
56
|
+
s,
|
|
56
57
|
b
|
|
57
|
-
),
|
|
58
|
+
), h = A({
|
|
58
59
|
pattern: "start-up",
|
|
59
|
-
instant:
|
|
60
|
-
showIndicator:
|
|
61
|
-
showMessage:
|
|
60
|
+
instant: t?.progress === 0,
|
|
61
|
+
showIndicator: d,
|
|
62
|
+
showMessage: f
|
|
62
63
|
});
|
|
63
64
|
return M(() => {
|
|
64
65
|
const y = setTimeout(
|
|
65
66
|
() => w(!0),
|
|
66
|
-
|
|
67
|
+
t?.message ?? 2500
|
|
67
68
|
);
|
|
68
69
|
return () => {
|
|
69
70
|
clearTimeout(y);
|
|
70
71
|
};
|
|
71
|
-
}, [
|
|
72
|
+
}, [t?.message]), /* @__PURE__ */ r(
|
|
72
73
|
"div",
|
|
73
74
|
{
|
|
74
|
-
...
|
|
75
|
-
className:
|
|
76
|
-
"data-testid":
|
|
77
|
-
children: /* @__PURE__ */ N(j, { gap: "md", ...
|
|
78
|
-
|
|
75
|
+
...p,
|
|
76
|
+
className: H(h.root, l),
|
|
77
|
+
"data-testid": a,
|
|
78
|
+
children: /* @__PURE__ */ N(j, { gap: "md", ...p, children: [
|
|
79
|
+
n({
|
|
80
|
+
min: i,
|
|
79
81
|
max: e,
|
|
80
82
|
value: Math.min(g, e),
|
|
81
83
|
sectionTitle: `${Math.min(g, e) / e * 100}% loaded`
|
|
82
84
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
85
|
+
/* @__PURE__ */ r(
|
|
86
|
+
L,
|
|
85
87
|
{
|
|
86
|
-
className:
|
|
87
|
-
"data-testid":
|
|
88
|
-
messageList:
|
|
88
|
+
className: h.message,
|
|
89
|
+
"data-testid": O(a, "message"),
|
|
90
|
+
messageList: m,
|
|
89
91
|
progressValue: g,
|
|
90
|
-
screenReaderText:
|
|
91
|
-
show:
|
|
92
|
-
children:
|
|
92
|
+
screenReaderText: u,
|
|
93
|
+
show: f,
|
|
94
|
+
children: o
|
|
93
95
|
}
|
|
94
96
|
)
|
|
95
97
|
] })
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { I as p } from "../../../Button-
|
|
2
|
+
import { I as p } from "../../../Button-D6AL0bia.js";
|
|
3
3
|
import "../../../components/Button/CloseButton/CloseButton.js";
|
|
4
4
|
import { useState as h, useEffect as g } from "react";
|
|
5
5
|
import { loading as x } from "../Loading.styles.js";
|
|
6
|
-
import { s as v } from "../../../factory-
|
|
6
|
+
import { s as v } from "../../../factory-oPXoMw9H.js";
|
|
7
7
|
import { c as b } from "../../../cx-DN21T1EH.js";
|
|
8
8
|
const k = ({
|
|
9
9
|
children: m,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useState as c, useEffect as
|
|
2
|
-
const m = (
|
|
3
|
-
const [
|
|
4
|
-
return
|
|
5
|
-
if (
|
|
1
|
+
import { useState as c, useEffect as n } from "react";
|
|
2
|
+
const m = (r = !1, t = 500, o = 200) => {
|
|
3
|
+
const [s, u] = c(t === 0);
|
|
4
|
+
return n(() => {
|
|
5
|
+
if (r !== !0)
|
|
6
6
|
return;
|
|
7
|
-
const
|
|
7
|
+
const e = setTimeout(() => u(!1), o);
|
|
8
8
|
return () => {
|
|
9
|
-
clearTimeout(
|
|
9
|
+
clearTimeout(e);
|
|
10
10
|
};
|
|
11
|
-
}, [
|
|
12
|
-
const
|
|
11
|
+
}, [r, o]), n(() => {
|
|
12
|
+
const e = setTimeout(() => u(!0), t);
|
|
13
13
|
return () => {
|
|
14
|
-
clearTimeout(
|
|
14
|
+
clearTimeout(e);
|
|
15
15
|
};
|
|
16
|
-
}, [
|
|
16
|
+
}, [t]), s;
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
m as useShowIndicator
|