@lablup/ui-common 0.1.0-alpha.9 → 0.2.0-alpha.15
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/NOTICE +62 -0
- package/README.md +490 -68
- package/astryx/components/AlertModal.doc.mjs +91 -0
- package/astryx/components/AlertModal.tsx +3 -0
- package/astryx/components/BoardItemTitle.doc.mjs +51 -0
- package/astryx/components/BoardItemTitle.tsx +3 -0
- package/astryx/components/BooleanToken.doc.mjs +57 -0
- package/astryx/components/BooleanToken.tsx +3 -0
- package/astryx/components/BulkEditFormItem.doc.mjs +68 -0
- package/astryx/components/BulkEditFormItem.tsx +3 -0
- package/astryx/components/BulkErrorModal.doc.mjs +75 -0
- package/astryx/components/BulkErrorModal.tsx +3 -0
- package/astryx/components/ColorPicker.doc.mjs +88 -0
- package/astryx/components/ColorPicker.tsx +3 -0
- package/astryx/components/ConfirmPopover.doc.mjs +99 -0
- package/astryx/components/ConfirmPopover.tsx +3 -0
- package/astryx/components/CountBadge.doc.mjs +93 -0
- package/astryx/components/CountBadge.tsx +3 -0
- package/astryx/components/CountdownBorder.doc.mjs +57 -0
- package/astryx/components/CountdownBorder.tsx +3 -0
- package/astryx/components/DataGrid.doc.mjs +166 -0
- package/astryx/components/DataGrid.tsx +3 -0
- package/astryx/components/DeleteConfirmModal.doc.mjs +163 -0
- package/astryx/components/DeleteConfirmModal.tsx +3 -0
- package/astryx/components/DividedRow.doc.mjs +85 -0
- package/astryx/components/DividedRow.tsx +3 -0
- package/astryx/components/DoubleBadge.doc.mjs +40 -0
- package/astryx/components/DoubleBadge.tsx +3 -0
- package/astryx/components/DoubleToken.doc.mjs +38 -0
- package/astryx/components/DoubleToken.tsx +3 -0
- package/astryx/components/Form.doc.mjs +113 -0
- package/astryx/components/Form.tsx +3 -0
- package/astryx/components/IconWithTooltip.doc.mjs +57 -0
- package/astryx/components/IconWithTooltip.tsx +3 -0
- package/astryx/components/ImageWithFallback.doc.mjs +47 -0
- package/astryx/components/ImageWithFallback.tsx +3 -0
- package/astryx/components/ListBanner.doc.mjs +50 -0
- package/astryx/components/ListBanner.tsx +3 -0
- package/astryx/components/Modal.doc.mjs +176 -0
- package/astryx/components/Modal.tsx +3 -0
- package/astryx/components/NotificationItem.doc.mjs +52 -0
- package/astryx/components/NotificationItem.tsx +3 -0
- package/astryx/components/NotificationStack.doc.mjs +66 -0
- package/astryx/components/NotificationStack.tsx +3 -0
- package/astryx/components/OverlayScrollbar.doc.mjs +49 -0
- package/astryx/components/OverlayScrollbar.tsx +3 -0
- package/astryx/components/PageHeader.doc.mjs +94 -0
- package/astryx/components/PageHeader.tsx +3 -0
- package/astryx/components/PagedSelector.doc.mjs +183 -0
- package/astryx/components/PagedSelector.tsx +3 -0
- package/astryx/components/ProgressWithLabel.doc.mjs +69 -0
- package/astryx/components/ProgressWithLabel.tsx +3 -0
- package/astryx/components/SelectionLabel.doc.mjs +55 -0
- package/astryx/components/SelectionLabel.tsx +3 -0
- package/astryx/components/Statistic.doc.mjs +84 -0
- package/astryx/components/Statistic.tsx +3 -0
- package/astryx/components/StepNumberInput.doc.mjs +102 -0
- package/astryx/components/StepNumberInput.tsx +3 -0
- package/astryx/components/TextHighlighter.doc.mjs +47 -0
- package/astryx/components/TextHighlighter.tsx +3 -0
- package/astryx/components/TokenList.doc.mjs +58 -0
- package/astryx/components/TokenList.tsx +3 -0
- package/astryx/components/TokenRow.doc.mjs +62 -0
- package/astryx/components/TokenRow.tsx +3 -0
- package/astryx/components/UncontrolledInput.doc.mjs +68 -0
- package/astryx/components/UncontrolledInput.tsx +3 -0
- package/astryx/components/UnitGrid.doc.mjs +107 -0
- package/astryx/components/UnitGrid.tsx +3 -0
- package/astryx/docs/ui-common.doc.mjs +112 -0
- package/astryx.integration.mjs +35 -0
- package/dist/assets/components/BoardItemTitle/BoardItemTitle.css +2 -0
- package/dist/assets/components/BulkErrorModal/BulkErrorModal.css +2 -0
- package/dist/assets/components/ColorPicker/ColorPicker.css +2 -0
- package/dist/assets/components/CountBadge/CountBadge.css +2 -0
- package/dist/assets/components/CountdownBorder/CountdownBorder.css +2 -0
- package/dist/assets/components/DataGrid/DataGrid.css +2 -0
- package/dist/assets/components/DeleteConfirmModal/DeleteConfirmModal.css +2 -0
- package/dist/assets/components/DigitPopIn/DigitPopIn.css +2 -0
- package/dist/assets/components/DividedRow/DividedRow.css +2 -0
- package/dist/assets/components/DoubleBadge/DoubleBadge.css +2 -0
- package/dist/assets/components/DoubleToken/DoubleToken.css +2 -0
- package/dist/assets/components/ErrorState/ErrorState.css +2 -1
- package/dist/assets/components/Form/FormItemVisual.css +2 -0
- package/dist/assets/components/IconWithTooltip/IconWithTooltip.css +2 -0
- package/dist/assets/components/ImageWithFallback/ImageWithFallback.css +2 -0
- package/dist/assets/components/ListBanner/ListBanner.css +2 -0
- package/dist/assets/components/Modal/Modal.css +2 -0
- package/dist/assets/components/NotificationItem/NotificationItem.css +2 -0
- package/dist/assets/components/NotificationStack/NotificationStack.css +2 -0
- package/dist/assets/components/OverlayScrollbar/OverlayScrollbar.css +2 -0
- package/dist/assets/components/PageHeader/PageHeader.css +2 -1
- package/dist/assets/components/PageLayout/PageLayout.css +2 -1
- package/dist/assets/components/PagedSelector/PagedSelector.css +2 -0
- package/dist/assets/components/ProgressWithLabel/ProgressWithLabel.css +2 -0
- package/dist/assets/components/Skeleton/SkeletonCard.css +2 -1
- package/dist/assets/components/Skeleton/SkeletonChart.css +2 -1
- package/dist/assets/components/Skeleton/SkeletonRow.css +2 -1
- package/dist/assets/components/Skeleton/SkeletonShape.css +2 -0
- package/dist/assets/components/Skeleton/SkeletonText.css +2 -1
- package/dist/assets/components/SmoothHeight/SmoothHeight.css +2 -1
- package/dist/assets/components/StatCard/StatCard.css +2 -1
- package/dist/assets/components/Statistic/Statistic.css +2 -0
- package/dist/assets/components/StepNumberInput/NumberStepper.css +2 -0
- package/dist/assets/components/TextHighlighter/TextHighlighter.css +2 -0
- package/dist/assets/components/TokenList/TokenList.css +2 -0
- package/dist/assets/components/TokenRow/TokenRow.css +2 -0
- package/dist/assets/components/UnitGrid/UnitGrid.css +2 -0
- package/dist/astryx/AppShell.d.ts +1 -0
- package/dist/astryx/AppShell.js +1 -0
- package/dist/astryx/AspectRatio.d.ts +1 -0
- package/dist/astryx/AspectRatio.js +1 -0
- package/dist/astryx/Avatar.d.ts +1 -0
- package/dist/astryx/Avatar.js +1 -0
- package/dist/astryx/AvatarGroup.d.ts +1 -0
- package/dist/astryx/AvatarGroup.js +1 -0
- package/dist/astryx/Badge.d.ts +1 -0
- package/dist/astryx/Badge.js +1 -0
- package/dist/astryx/Banner.d.ts +1 -0
- package/dist/astryx/Banner.js +1 -0
- package/dist/astryx/BaseProps.d.ts +1 -0
- package/dist/astryx/BaseProps.js +1 -0
- package/dist/astryx/Blockquote.d.ts +1 -0
- package/dist/astryx/Blockquote.js +1 -0
- package/dist/astryx/BottomSheet.d.ts +1 -0
- package/dist/astryx/BottomSheet.js +1 -0
- package/dist/astryx/Breadcrumbs.d.ts +1 -0
- package/dist/astryx/Breadcrumbs.js +1 -0
- package/dist/astryx/Button.d.ts +1 -0
- package/dist/astryx/Button.js +1 -0
- package/dist/astryx/ButtonGroup.d.ts +1 -0
- package/dist/astryx/ButtonGroup.js +1 -0
- package/dist/astryx/Calendar/utils.d.ts +1 -0
- package/dist/astryx/Calendar/utils.js +1 -0
- package/dist/astryx/Calendar.d.ts +1 -0
- package/dist/astryx/Calendar.js +1 -0
- package/dist/astryx/Card.d.ts +1 -0
- package/dist/astryx/Card.js +1 -0
- package/dist/astryx/Carousel.d.ts +1 -0
- package/dist/astryx/Carousel.js +1 -0
- package/dist/astryx/Center.d.ts +1 -0
- package/dist/astryx/Center.js +1 -0
- package/dist/astryx/Chat.d.ts +1 -0
- package/dist/astryx/Chat.js +1 -0
- package/dist/astryx/CheckboxInput.d.ts +1 -0
- package/dist/astryx/CheckboxInput.js +1 -0
- package/dist/astryx/CheckboxList.d.ts +1 -0
- package/dist/astryx/CheckboxList.js +1 -0
- package/dist/astryx/Citation.d.ts +1 -0
- package/dist/astryx/Citation.js +1 -0
- package/dist/astryx/ClickableCard.d.ts +1 -0
- package/dist/astryx/ClickableCard.js +1 -0
- package/dist/astryx/Code.d.ts +1 -0
- package/dist/astryx/Code.js +1 -0
- package/dist/astryx/CodeBlock.d.ts +1 -0
- package/dist/astryx/CodeBlock.js +1 -0
- package/dist/astryx/Collapsible.d.ts +1 -0
- package/dist/astryx/Collapsible.js +1 -0
- package/dist/astryx/CommandPalette.d.ts +1 -0
- package/dist/astryx/CommandPalette.js +1 -0
- package/dist/astryx/ContextMenu.d.ts +1 -0
- package/dist/astryx/ContextMenu.js +1 -0
- package/dist/astryx/DateInput.d.ts +1 -0
- package/dist/astryx/DateInput.js +1 -0
- package/dist/astryx/DateRangeInput.d.ts +1 -0
- package/dist/astryx/DateRangeInput.js +1 -0
- package/dist/astryx/DateTimeInput.d.ts +1 -0
- package/dist/astryx/DateTimeInput.js +1 -0
- package/dist/astryx/Divider.d.ts +1 -0
- package/dist/astryx/Divider.js +1 -0
- package/dist/astryx/DropdownMenu.d.ts +1 -0
- package/dist/astryx/DropdownMenu.js +1 -0
- package/dist/astryx/EmptyState.d.ts +1 -0
- package/dist/astryx/EmptyState.js +1 -0
- package/dist/astryx/Field.d.ts +1 -0
- package/dist/astryx/Field.js +1 -0
- package/dist/astryx/FieldStatus.d.ts +1 -0
- package/dist/astryx/FieldStatus.js +1 -0
- package/dist/astryx/FileInput.d.ts +1 -0
- package/dist/astryx/FileInput.js +1 -0
- package/dist/astryx/FormLayout.d.ts +1 -0
- package/dist/astryx/FormLayout.js +1 -0
- package/dist/astryx/Grid.d.ts +1 -0
- package/dist/astryx/Grid.js +1 -0
- package/dist/astryx/HStack.d.ts +1 -0
- package/dist/astryx/HStack.js +1 -0
- package/dist/astryx/Heading.d.ts +1 -0
- package/dist/astryx/Heading.js +1 -0
- package/dist/astryx/HoverCard.d.ts +1 -0
- package/dist/astryx/HoverCard.js +1 -0
- package/dist/astryx/Icon.d.ts +1 -0
- package/dist/astryx/Icon.js +1 -0
- package/dist/astryx/IconButton.d.ts +1 -0
- package/dist/astryx/IconButton.js +1 -0
- package/dist/astryx/Indicator.d.ts +1 -0
- package/dist/astryx/Indicator.js +1 -0
- package/dist/astryx/InputGroup.d.ts +1 -0
- package/dist/astryx/InputGroup.js +1 -0
- package/dist/astryx/InteractiveRoleContext.d.ts +1 -0
- package/dist/astryx/InteractiveRoleContext.js +1 -0
- package/dist/astryx/Item.d.ts +1 -0
- package/dist/astryx/Item.js +1 -0
- package/dist/astryx/Kbd.d.ts +1 -0
- package/dist/astryx/Kbd.js +1 -0
- package/dist/astryx/Layer.d.ts +1 -0
- package/dist/astryx/Layer.js +1 -0
- package/dist/astryx/Layout.d.ts +1 -0
- package/dist/astryx/Layout.js +1 -0
- package/dist/astryx/Lightbox.d.ts +1 -0
- package/dist/astryx/Lightbox.js +1 -0
- package/dist/astryx/Link.d.ts +1 -0
- package/dist/astryx/Link.js +1 -0
- package/dist/astryx/List.d.ts +1 -0
- package/dist/astryx/List.js +1 -0
- package/dist/astryx/Markdown/utils.d.ts +1 -0
- package/dist/astryx/Markdown/utils.js +1 -0
- package/dist/astryx/Markdown.d.ts +1 -0
- package/dist/astryx/Markdown.js +1 -0
- package/dist/astryx/MetadataList.d.ts +1 -0
- package/dist/astryx/MetadataList.js +1 -0
- package/dist/astryx/MobileNav.d.ts +1 -0
- package/dist/astryx/MobileNav.js +1 -0
- package/dist/astryx/MoreMenu.d.ts +1 -0
- package/dist/astryx/MoreMenu.js +1 -0
- package/dist/astryx/MultiSelector.d.ts +1 -0
- package/dist/astryx/MultiSelector.js +1 -0
- package/dist/astryx/NavIcon.d.ts +1 -0
- package/dist/astryx/NavIcon.js +1 -0
- package/dist/astryx/NavMenu.d.ts +1 -0
- package/dist/astryx/NavMenu.js +1 -0
- package/dist/astryx/NumberInput.d.ts +1 -0
- package/dist/astryx/NumberInput.js +1 -0
- package/dist/astryx/Outline.d.ts +1 -0
- package/dist/astryx/Outline.js +1 -0
- package/dist/astryx/OverflowList.d.ts +1 -0
- package/dist/astryx/OverflowList.js +1 -0
- package/dist/astryx/Overlay.d.ts +1 -0
- package/dist/astryx/Overlay.js +1 -0
- package/dist/astryx/Pagination.d.ts +1 -0
- package/dist/astryx/Pagination.js +1 -0
- package/dist/astryx/Popover.d.ts +1 -0
- package/dist/astryx/Popover.js +1 -0
- package/dist/astryx/PowerSearch/utils.d.ts +1 -0
- package/dist/astryx/PowerSearch/utils.js +1 -0
- package/dist/astryx/PowerSearch.d.ts +1 -0
- package/dist/astryx/PowerSearch.js +1 -0
- package/dist/astryx/ProgressBar.d.ts +1 -0
- package/dist/astryx/ProgressBar.js +1 -0
- package/dist/astryx/RadioList.d.ts +1 -0
- package/dist/astryx/RadioList.js +1 -0
- package/dist/astryx/Resizable/utils.d.ts +1 -0
- package/dist/astryx/Resizable/utils.js +1 -0
- package/dist/astryx/Resizable.d.ts +1 -0
- package/dist/astryx/Resizable.js +1 -0
- package/dist/astryx/ScrollableArea.d.ts +1 -0
- package/dist/astryx/ScrollableArea.js +1 -0
- package/dist/astryx/Section.d.ts +1 -0
- package/dist/astryx/Section.js +1 -0
- package/dist/astryx/SegmentedControl.d.ts +1 -0
- package/dist/astryx/SegmentedControl.js +1 -0
- package/dist/astryx/SelectableCard.d.ts +1 -0
- package/dist/astryx/SelectableCard.js +1 -0
- package/dist/astryx/Selector/utils.d.ts +1 -0
- package/dist/astryx/Selector/utils.js +1 -0
- package/dist/astryx/Selector.d.ts +1 -0
- package/dist/astryx/Selector.js +1 -0
- package/dist/astryx/SideNav.d.ts +1 -0
- package/dist/astryx/SideNav.js +1 -0
- package/dist/astryx/SizeContext.d.ts +1 -0
- package/dist/astryx/SizeContext.js +1 -0
- package/dist/astryx/Skeleton.d.ts +1 -0
- package/dist/astryx/Skeleton.js +1 -0
- package/dist/astryx/Slider.d.ts +1 -0
- package/dist/astryx/Slider.js +1 -0
- package/dist/astryx/Spinner.d.ts +1 -0
- package/dist/astryx/Spinner.js +1 -0
- package/dist/astryx/Stack.d.ts +1 -0
- package/dist/astryx/Stack.js +1 -0
- package/dist/astryx/StatusDot.d.ts +1 -0
- package/dist/astryx/StatusDot.js +1 -0
- package/dist/astryx/Stepper.d.ts +1 -0
- package/dist/astryx/Stepper.js +1 -0
- package/dist/astryx/Switch.d.ts +1 -0
- package/dist/astryx/Switch.js +1 -0
- package/dist/astryx/TabList.d.ts +1 -0
- package/dist/astryx/TabList.js +1 -0
- package/dist/astryx/Table/utils.d.ts +1 -0
- package/dist/astryx/Table/utils.js +1 -0
- package/dist/astryx/Table.d.ts +1 -0
- package/dist/astryx/Table.js +1 -0
- package/dist/astryx/Text.d.ts +1 -0
- package/dist/astryx/Text.js +1 -0
- package/dist/astryx/TextArea.d.ts +1 -0
- package/dist/astryx/TextArea.js +1 -0
- package/dist/astryx/TextInput.d.ts +1 -0
- package/dist/astryx/TextInput.js +1 -0
- package/dist/astryx/Thumbnail.d.ts +1 -0
- package/dist/astryx/Thumbnail.js +1 -0
- package/dist/astryx/TimeInput.d.ts +1 -0
- package/dist/astryx/TimeInput.js +1 -0
- package/dist/astryx/Timestamp.d.ts +1 -0
- package/dist/astryx/Timestamp.js +1 -0
- package/dist/astryx/Toast.d.ts +1 -0
- package/dist/astryx/Toast.js +1 -0
- package/dist/astryx/ToggleButton.d.ts +1 -0
- package/dist/astryx/ToggleButton.js +1 -0
- package/dist/astryx/Token.d.ts +1 -0
- package/dist/astryx/Token.js +1 -0
- package/dist/astryx/Tokenizer.d.ts +1 -0
- package/dist/astryx/Tokenizer.js +1 -0
- package/dist/astryx/Toolbar.d.ts +1 -0
- package/dist/astryx/Toolbar.js +1 -0
- package/dist/astryx/Tooltip.d.ts +1 -0
- package/dist/astryx/Tooltip.js +1 -0
- package/dist/astryx/TopNav.d.ts +1 -0
- package/dist/astryx/TopNav.js +1 -0
- package/dist/astryx/TreeList.d.ts +1 -0
- package/dist/astryx/TreeList.js +1 -0
- package/dist/astryx/Typeahead/utils.d.ts +1 -0
- package/dist/astryx/Typeahead/utils.js +1 -0
- package/dist/astryx/Typeahead.d.ts +1 -0
- package/dist/astryx/Typeahead.js +1 -0
- package/dist/astryx/VStack.d.ts +1 -0
- package/dist/astryx/VStack.js +1 -0
- package/dist/astryx/VisuallyHidden.d.ts +1 -0
- package/dist/astryx/VisuallyHidden.js +1 -0
- package/dist/astryx/astryx.css +3 -0
- package/dist/astryx/hooks.d.ts +1 -0
- package/dist/astryx/hooks.js +1 -0
- package/dist/astryx/i18n.d.ts +1 -0
- package/dist/astryx/i18n.js +1 -0
- package/dist/astryx/lab/lab.css +3 -0
- package/dist/astryx/lab.d.ts +6 -0
- package/dist/astryx/lab.js +6 -0
- package/dist/astryx/naming.d.ts +1 -0
- package/dist/astryx/naming.js +1 -0
- package/dist/astryx/reset.css +3 -0
- package/dist/astryx/tailwind-theme.css +3 -0
- package/dist/astryx/theme/neutral/built.d.ts +1 -0
- package/dist/astryx/theme/neutral/built.js +1 -0
- package/dist/astryx/theme/neutral/theme.css +3 -0
- package/dist/astryx/theme/neutral.d.ts +1 -0
- package/dist/astryx/theme/neutral.js +1 -0
- package/dist/astryx/theme/syntax.d.ts +1 -0
- package/dist/astryx/theme/syntax.js +1 -0
- package/dist/astryx/theme/tokens.d.ts +1 -0
- package/dist/astryx/theme/tokens.js +1 -0
- package/dist/astryx/theme/tokens.stylex.d.ts +1 -0
- package/dist/astryx/theme/tokens.stylex.js +1 -0
- package/dist/astryx/theme.d.ts +1 -0
- package/dist/astryx/theme.js +1 -0
- package/dist/astryx/utils.d.ts +1 -0
- package/dist/astryx/utils.js +1 -0
- package/dist/components/AlertModal/AlertModal.d.ts +14 -0
- package/dist/components/AlertModal/AlertModal.js +56 -0
- package/dist/components/AlertModal/AlertModal.js.map +1 -0
- package/dist/components/AlertModal/index.d.ts +2 -0
- package/dist/components/AlertModal/index.js +2 -0
- package/dist/components/BoardItemTitle/BoardItemTitle.d.ts +15 -0
- package/dist/components/BoardItemTitle/BoardItemTitle2.js +42 -0
- package/dist/components/BoardItemTitle/BoardItemTitle2.js.map +1 -0
- package/dist/components/BoardItemTitle/index.d.ts +2 -0
- package/dist/components/BoardItemTitle/index.js +2 -0
- package/dist/components/BooleanToken/BooleanToken.d.ts +15 -0
- package/dist/components/BooleanToken/BooleanToken.js +19 -0
- package/dist/components/BooleanToken/BooleanToken.js.map +1 -0
- package/dist/components/BooleanToken/BooleanToken.messages.d.ts +10 -0
- package/dist/components/BooleanToken/BooleanToken.messages.js +16 -0
- package/dist/components/BooleanToken/BooleanToken.messages.js.map +1 -0
- package/dist/components/BooleanToken/index.d.ts +2 -0
- package/dist/components/BooleanToken/index.js +2 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.d.ts +24 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.js +93 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.js.map +1 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.messages.d.ts +14 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.messages.js +20 -0
- package/dist/components/BulkEditFormItem/BulkEditFormItem.messages.js.map +1 -0
- package/dist/components/BulkEditFormItem/index.d.ts +2 -0
- package/dist/components/BulkEditFormItem/index.js +2 -0
- package/dist/components/BulkErrorModal/BulkErrorModal.d.ts +23 -0
- package/dist/components/BulkErrorModal/BulkErrorModal.messages.d.ts +10 -0
- package/dist/components/BulkErrorModal/BulkErrorModal.messages.js +16 -0
- package/dist/components/BulkErrorModal/BulkErrorModal.messages.js.map +1 -0
- package/dist/components/BulkErrorModal/BulkErrorModal2.js +55 -0
- package/dist/components/BulkErrorModal/BulkErrorModal2.js.map +1 -0
- package/dist/components/BulkErrorModal/index.d.ts +2 -0
- package/dist/components/BulkErrorModal/index.js +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +43 -0
- package/dist/components/ColorPicker/ColorPicker.messages.d.ts +18 -0
- package/dist/components/ColorPicker/ColorPicker.messages.js +24 -0
- package/dist/components/ColorPicker/ColorPicker.messages.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker2.js +117 -0
- package/dist/components/ColorPicker/ColorPicker2.js.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/index.js +2 -0
- package/dist/components/ConfirmPopover/ConfirmPopover.d.ts +35 -0
- package/dist/components/ConfirmPopover/ConfirmPopover.js +75 -0
- package/dist/components/ConfirmPopover/ConfirmPopover.js.map +1 -0
- package/dist/components/ConfirmPopover/index.d.ts +2 -0
- package/dist/components/ConfirmPopover/index.js +2 -0
- package/dist/components/CountBadge/CountBadge.d.ts +24 -0
- package/dist/components/CountBadge/CountBadge2.js +35 -0
- package/dist/components/CountBadge/CountBadge2.js.map +1 -0
- package/dist/components/CountBadge/index.d.ts +2 -0
- package/dist/components/CountBadge/index.js +2 -0
- package/dist/components/CountdownBorder/CountdownBorder.d.ts +22 -0
- package/dist/components/CountdownBorder/CountdownBorder2.js +63 -0
- package/dist/components/CountdownBorder/CountdownBorder2.js.map +1 -0
- package/dist/components/CountdownBorder/index.d.ts +2 -0
- package/dist/components/CountdownBorder/index.js +2 -0
- package/dist/components/DataGrid/DataGrid.d.ts +212 -0
- package/dist/components/DataGrid/DataGrid.messages.d.ts +70 -0
- package/dist/components/DataGrid/DataGrid.messages.js +76 -0
- package/dist/components/DataGrid/DataGrid.messages.js.map +1 -0
- package/dist/components/DataGrid/DataGrid2.js +447 -0
- package/dist/components/DataGrid/DataGrid2.js.map +1 -0
- package/dist/components/DataGrid/DataGridExportModal.d.ts +30 -0
- package/dist/components/DataGrid/DataGridExportModal.js +125 -0
- package/dist/components/DataGrid/DataGridExportModal.js.map +1 -0
- package/dist/components/DataGrid/DataGridSettingsModal.d.ts +36 -0
- package/dist/components/DataGrid/DataGridSettingsModal.js +177 -0
- package/dist/components/DataGrid/DataGridSettingsModal.js.map +1 -0
- package/dist/components/DataGrid/index.d.ts +6 -0
- package/dist/components/DataGrid/index.js +4 -0
- package/dist/components/DataGrid/nodeToPlainText.d.ts +6 -0
- package/dist/components/DataGrid/nodeToPlainText.js +9 -0
- package/dist/components/DataGrid/nodeToPlainText.js.map +1 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal.d.ts +78 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal.messages.d.ts +30 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal.messages.js +36 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal.messages.js.map +1 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal2.js +102 -0
- package/dist/components/DeleteConfirmModal/DeleteConfirmModal2.js.map +1 -0
- package/dist/components/DeleteConfirmModal/index.d.ts +2 -0
- package/dist/components/DeleteConfirmModal/index.js +2 -0
- package/dist/components/DigitPopIn/DigitPopIn.d.ts +8 -0
- package/dist/components/DigitPopIn/DigitPopIn2.js +30 -0
- package/dist/components/DigitPopIn/DigitPopIn2.js.map +1 -0
- package/dist/components/DigitPopIn/index.d.ts +2 -0
- package/dist/components/DigitPopIn/index.js +2 -0
- package/dist/components/DividedRow/DividedRow.d.ts +27 -0
- package/dist/components/DividedRow/DividedRow2.js +63 -0
- package/dist/components/DividedRow/DividedRow2.js.map +1 -0
- package/dist/components/DividedRow/index.d.ts +2 -0
- package/dist/components/DividedRow/index.js +2 -0
- package/dist/components/DoubleBadge/DoubleBadge.d.ts +14 -0
- package/dist/components/DoubleBadge/DoubleBadge2.js +28 -0
- package/dist/components/DoubleBadge/DoubleBadge2.js.map +1 -0
- package/dist/components/DoubleBadge/index.d.ts +2 -0
- package/dist/components/DoubleBadge/index.js +2 -0
- package/dist/components/DoubleToken/DoubleToken.d.ts +24 -0
- package/dist/components/DoubleToken/DoubleToken2.js +38 -0
- package/dist/components/DoubleToken/DoubleToken2.js.map +1 -0
- package/dist/components/DoubleToken/index.d.ts +2 -0
- package/dist/components/DoubleToken/index.js +2 -0
- package/dist/components/ErrorState/ErrorState.d.ts +7 -16
- package/dist/components/ErrorState/ErrorState2.js +33 -33
- package/dist/components/ErrorState/ErrorState2.js.map +1 -1
- package/dist/components/Form/ErrorList.d.ts +13 -0
- package/dist/components/Form/ErrorList.js +21 -0
- package/dist/components/Form/ErrorList.js.map +1 -0
- package/dist/components/Form/Field.d.ts +88 -0
- package/dist/components/Form/Field.js +212 -0
- package/dist/components/Form/Field.js.map +1 -0
- package/dist/components/Form/Form.d.ts +70 -0
- package/dist/components/Form/Form.js +130 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/Form.messages.d.ts +96 -0
- package/dist/components/Form/Form.messages.js +96 -0
- package/dist/components/Form/Form.messages.js.map +1 -0
- package/dist/components/Form/FormConfigProvider.d.ts +20 -0
- package/dist/components/Form/FormConfigProvider.js +31 -0
- package/dist/components/Form/FormConfigProvider.js.map +1 -0
- package/dist/components/Form/FormItem.d.ts +56 -0
- package/dist/components/Form/FormItem.js +164 -0
- package/dist/components/Form/FormItem.js.map +1 -0
- package/dist/components/Form/FormItemVisual.d.ts +56 -0
- package/dist/components/Form/FormItemVisual2.js +117 -0
- package/dist/components/Form/FormItemVisual2.js.map +1 -0
- package/dist/components/Form/FormStore.d.ts +109 -0
- package/dist/components/Form/FormStore.js +494 -0
- package/dist/components/Form/FormStore.js.map +1 -0
- package/dist/components/Form/List.d.ts +22 -0
- package/dist/components/Form/List.js +65 -0
- package/dist/components/Form/List.js.map +1 -0
- package/dist/components/Form/context.d.ts +91 -0
- package/dist/components/Form/context.js +34 -0
- package/dist/components/Form/context.js.map +1 -0
- package/dist/components/Form/feedbackIcons.d.ts +13 -0
- package/dist/components/Form/feedbackIcons.js +45 -0
- package/dist/components/Form/feedbackIcons.js.map +1 -0
- package/dist/components/Form/index.d.ts +30 -0
- package/dist/components/Form/index.js +18 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Form/interface.d.ts +212 -0
- package/dist/components/Form/isEqual.d.ts +1 -0
- package/dist/components/Form/isEqual.js +61 -0
- package/dist/components/Form/isEqual.js.map +1 -0
- package/dist/components/Form/messages.d.ts +15 -0
- package/dist/components/Form/messages.js +52 -0
- package/dist/components/Form/messages.js.map +1 -0
- package/dist/components/Form/namePath.d.ts +78 -0
- package/dist/components/Form/namePath.js +120 -0
- package/dist/components/Form/namePath.js.map +1 -0
- package/dist/components/Form/useWatch.d.ts +11 -0
- package/dist/components/Form/useWatch.js +43 -0
- package/dist/components/Form/useWatch.js.map +1 -0
- package/dist/components/Form/validate.d.ts +16 -0
- package/dist/components/Form/validate.js +214 -0
- package/dist/components/Form/validate.js.map +1 -0
- package/dist/components/IconWithTooltip/IconWithTooltip.d.ts +19 -0
- package/dist/components/IconWithTooltip/IconWithTooltip2.js +38 -0
- package/dist/components/IconWithTooltip/IconWithTooltip2.js.map +1 -0
- package/dist/components/IconWithTooltip/accessibleLabel.d.ts +2 -0
- package/dist/components/IconWithTooltip/accessibleLabel.js +33 -0
- package/dist/components/IconWithTooltip/accessibleLabel.js.map +1 -0
- package/dist/components/IconWithTooltip/index.d.ts +2 -0
- package/dist/components/IconWithTooltip/index.js +2 -0
- package/dist/components/ImageWithFallback/ImageWithFallback.d.ts +11 -0
- package/dist/components/ImageWithFallback/ImageWithFallback2.js +28 -0
- package/dist/components/ImageWithFallback/ImageWithFallback2.js.map +1 -0
- package/dist/components/ImageWithFallback/index.d.ts +2 -0
- package/dist/components/ImageWithFallback/index.js +2 -0
- package/dist/components/ListBanner/ListBanner.d.ts +17 -0
- package/dist/components/ListBanner/ListBanner2.js +27 -0
- package/dist/components/ListBanner/ListBanner2.js.map +1 -0
- package/dist/components/ListBanner/index.d.ts +2 -0
- package/dist/components/ListBanner/index.js +2 -0
- package/dist/components/Modal/Modal.d.ts +65 -0
- package/dist/components/Modal/Modal2.js +226 -0
- package/dist/components/Modal/Modal2.js.map +1 -0
- package/dist/components/Modal/index.d.ts +15 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/Modal/modalStack.d.ts +64 -0
- package/dist/components/Modal/modalStack.js +81 -0
- package/dist/components/Modal/modalStack.js.map +1 -0
- package/dist/components/NotificationItem/NotificationItem.d.ts +14 -0
- package/dist/components/NotificationItem/NotificationItem2.js +40 -0
- package/dist/components/NotificationItem/NotificationItem2.js.map +1 -0
- package/dist/components/NotificationItem/index.d.ts +2 -0
- package/dist/components/NotificationItem/index.js +2 -0
- package/dist/components/NotificationStack/NotificationStack.d.ts +56 -0
- package/dist/components/NotificationStack/NotificationStack.messages.d.ts +6 -0
- package/dist/components/NotificationStack/NotificationStack.messages.js +10 -0
- package/dist/components/NotificationStack/NotificationStack.messages.js.map +1 -0
- package/dist/components/NotificationStack/NotificationStack2.js +154 -0
- package/dist/components/NotificationStack/NotificationStack2.js.map +1 -0
- package/dist/components/NotificationStack/index.d.ts +2 -0
- package/dist/components/NotificationStack/index.js +2 -0
- package/dist/components/OverlayScrollbar/OverlayScrollbar.d.ts +13 -0
- package/dist/components/OverlayScrollbar/OverlayScrollbar2.js +69 -0
- package/dist/components/OverlayScrollbar/OverlayScrollbar2.js.map +1 -0
- package/dist/components/OverlayScrollbar/index.d.ts +2 -0
- package/dist/components/OverlayScrollbar/index.js +2 -0
- package/dist/components/PageHeader/PageHeader.d.ts +24 -8
- package/dist/components/PageHeader/PageHeader.messages.d.ts +6 -0
- package/dist/components/PageHeader/PageHeader.messages.js +10 -0
- package/dist/components/PageHeader/PageHeader.messages.js.map +1 -0
- package/dist/components/PageHeader/PageHeader2.js +57 -30
- package/dist/components/PageHeader/PageHeader2.js.map +1 -1
- package/dist/components/PageLayout/PageLayout2.js +2 -2
- package/dist/components/PageLayout/PageLayout2.js.map +1 -1
- package/dist/components/PagedSelector/PagedSelector.d.ts +107 -0
- package/dist/components/PagedSelector/PagedSelector.messages.d.ts +30 -0
- package/dist/components/PagedSelector/PagedSelector.messages.js +36 -0
- package/dist/components/PagedSelector/PagedSelector.messages.js.map +1 -0
- package/dist/components/PagedSelector/PagedSelector2.js +220 -0
- package/dist/components/PagedSelector/PagedSelector2.js.map +1 -0
- package/dist/components/PagedSelector/PanelSearchInput.d.ts +22 -0
- package/dist/components/PagedSelector/PanelSearchInput.js +95 -0
- package/dist/components/PagedSelector/PanelSearchInput.js.map +1 -0
- package/dist/components/PagedSelector/index.d.ts +2 -0
- package/dist/components/PagedSelector/index.js +2 -0
- package/dist/components/ProgressWithLabel/ProgressWithLabel.d.ts +26 -0
- package/dist/components/ProgressWithLabel/ProgressWithLabel2.js +44 -0
- package/dist/components/ProgressWithLabel/ProgressWithLabel2.js.map +1 -0
- package/dist/components/ProgressWithLabel/index.d.ts +2 -0
- package/dist/components/ProgressWithLabel/index.js +2 -0
- package/dist/components/SelectionLabel/SelectionLabel.d.ts +23 -0
- package/dist/components/SelectionLabel/SelectionLabel.js +29 -0
- package/dist/components/SelectionLabel/SelectionLabel.js.map +1 -0
- package/dist/components/SelectionLabel/SelectionLabel.messages.d.ts +10 -0
- package/dist/components/SelectionLabel/SelectionLabel.messages.js +16 -0
- package/dist/components/SelectionLabel/SelectionLabel.messages.js.map +1 -0
- package/dist/components/SelectionLabel/index.d.ts +2 -0
- package/dist/components/SelectionLabel/index.js +2 -0
- package/dist/components/Skeleton/Skeleton.messages.d.ts +18 -0
- package/dist/components/Skeleton/Skeleton.messages.js +24 -0
- package/dist/components/Skeleton/Skeleton.messages.js.map +1 -0
- package/dist/components/Skeleton/SkeletonCard.d.ts +4 -9
- package/dist/components/Skeleton/SkeletonCard2.js +53 -53
- package/dist/components/Skeleton/SkeletonCard2.js.map +1 -1
- package/dist/components/Skeleton/SkeletonChart.d.ts +5 -11
- package/dist/components/Skeleton/SkeletonChart2.js +51 -45
- package/dist/components/Skeleton/SkeletonChart2.js.map +1 -1
- package/dist/components/Skeleton/SkeletonRow.d.ts +5 -10
- package/dist/components/Skeleton/SkeletonRow2.js +35 -34
- package/dist/components/Skeleton/SkeletonRow2.js.map +1 -1
- package/dist/components/Skeleton/SkeletonShape.d.ts +10 -0
- package/dist/components/Skeleton/SkeletonShape2.js +23 -0
- package/dist/components/Skeleton/SkeletonShape2.js.map +1 -0
- package/dist/components/Skeleton/SkeletonText.d.ts +4 -9
- package/dist/components/Skeleton/SkeletonText2.js +22 -17
- package/dist/components/Skeleton/SkeletonText2.js.map +1 -1
- package/dist/components/Skeleton/index.d.ts +3 -5
- package/dist/components/Skeleton/index.js +4 -5
- package/dist/components/SmoothHeight/SmoothHeight2.js +2 -2
- package/dist/components/SmoothHeight/SmoothHeight2.js.map +1 -1
- package/dist/components/StatCard/StatCard.d.ts +28 -16
- package/dist/components/StatCard/StatCard2.js +96 -89
- package/dist/components/StatCard/StatCard2.js.map +1 -1
- package/dist/components/StatCard/index.d.ts +1 -1
- package/dist/components/Statistic/Statistic.d.ts +30 -0
- package/dist/components/Statistic/Statistic.messages.d.ts +6 -0
- package/dist/components/Statistic/Statistic.messages.js +10 -0
- package/dist/components/Statistic/Statistic.messages.js.map +1 -0
- package/dist/components/Statistic/Statistic2.js +75 -0
- package/dist/components/Statistic/Statistic2.js.map +1 -0
- package/dist/components/Statistic/index.d.ts +2 -0
- package/dist/components/Statistic/index.js +2 -0
- package/dist/components/StepNumberInput/NumberStepper.d.ts +29 -0
- package/dist/components/StepNumberInput/NumberStepper.messages.d.ts +10 -0
- package/dist/components/StepNumberInput/NumberStepper.messages.js +16 -0
- package/dist/components/StepNumberInput/NumberStepper.messages.js.map +1 -0
- package/dist/components/StepNumberInput/NumberStepper2.js +50 -0
- package/dist/components/StepNumberInput/NumberStepper2.js.map +1 -0
- package/dist/components/StepNumberInput/StepNumberInput.d.ts +33 -0
- package/dist/components/StepNumberInput/StepNumberInput.js +48 -0
- package/dist/components/StepNumberInput/StepNumberInput.js.map +1 -0
- package/dist/components/StepNumberInput/index.d.ts +4 -0
- package/dist/components/StepNumberInput/index.js +3 -0
- package/dist/components/TextHighlighter/TextHighlighter.d.ts +14 -0
- package/dist/components/TextHighlighter/TextHighlighter2.js +29 -0
- package/dist/components/TextHighlighter/TextHighlighter2.js.map +1 -0
- package/dist/components/TextHighlighter/index.d.ts +2 -0
- package/dist/components/TextHighlighter/index.js +2 -0
- package/dist/components/TokenList/TokenList.d.ts +18 -0
- package/dist/components/TokenList/TokenList2.js +55 -0
- package/dist/components/TokenList/TokenList2.js.map +1 -0
- package/dist/components/TokenList/index.d.ts +2 -0
- package/dist/components/TokenList/index.js +2 -0
- package/dist/components/TokenRow/TokenRow.d.ts +27 -0
- package/dist/components/TokenRow/TokenRow.messages.d.ts +6 -0
- package/dist/components/TokenRow/TokenRow.messages.js +10 -0
- package/dist/components/TokenRow/TokenRow.messages.js.map +1 -0
- package/dist/components/TokenRow/TokenRow2.js +29 -0
- package/dist/components/TokenRow/TokenRow2.js.map +1 -0
- package/dist/components/TokenRow/index.d.ts +2 -0
- package/dist/components/TokenRow/index.js +2 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.d.ts +29 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.js +49 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.js.map +1 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.messages.d.ts +6 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.messages.js +10 -0
- package/dist/components/UncontrolledInput/UncontrolledInput.messages.js.map +1 -0
- package/dist/components/UncontrolledInput/index.d.ts +2 -0
- package/dist/components/UncontrolledInput/index.js +2 -0
- package/dist/components/UnitGrid/UnitGrid.d.ts +56 -0
- package/dist/components/UnitGrid/UnitGrid.geometry.d.ts +102 -0
- package/dist/components/UnitGrid/UnitGrid.geometry.js +172 -0
- package/dist/components/UnitGrid/UnitGrid.geometry.js.map +1 -0
- package/dist/components/UnitGrid/UnitGrid.messages.d.ts +14 -0
- package/dist/components/UnitGrid/UnitGrid.messages.js +20 -0
- package/dist/components/UnitGrid/UnitGrid.messages.js.map +1 -0
- package/dist/components/UnitGrid/UnitGrid2.js +393 -0
- package/dist/components/UnitGrid/UnitGrid2.js.map +1 -0
- package/dist/components/UnitGrid/UnitGridSkeleton.d.ts +9 -0
- package/dist/components/UnitGrid/UnitGridSkeleton.js +73 -0
- package/dist/components/UnitGrid/UnitGridSkeleton.js.map +1 -0
- package/dist/components/UnitGrid/index.d.ts +4 -0
- package/dist/components/UnitGrid/index.js +3 -0
- package/dist/forks/ComplexSelector/ComplexSelector.d.ts +144 -0
- package/dist/forks/ComplexSelector/ComplexSelector.js +157 -0
- package/dist/forks/ComplexSelector/ComplexSelector.js.map +1 -0
- package/dist/forks/ComplexSelector/ComplexSelector.styles.d.ts +125 -0
- package/dist/forks/ComplexSelector/ComplexSelector.styles.js +129 -0
- package/dist/forks/ComplexSelector/ComplexSelector.styles.js.map +1 -0
- package/dist/forks/ComplexSelector/index.d.ts +7 -0
- package/dist/forks/ComplexSelector/index.js +2 -0
- package/dist/forks/Drawer/Drawer.d.ts +98 -0
- package/dist/forks/Drawer/Drawer.js +94 -0
- package/dist/forks/Drawer/Drawer.js.map +1 -0
- package/dist/forks/Drawer/Drawer.styles.d.ts +99 -0
- package/dist/forks/Drawer/Drawer.styles.js +94 -0
- package/dist/forks/Drawer/Drawer.styles.js.map +1 -0
- package/dist/forks/Drawer/index.d.ts +6 -0
- package/dist/forks/Drawer/index.js +2 -0
- package/dist/forks/Drawer/useDrawerDialogPresence.d.ts +19 -0
- package/dist/forks/Drawer/useDrawerDialogPresence.js +62 -0
- package/dist/forks/Drawer/useDrawerDialogPresence.js.map +1 -0
- package/dist/forks/Tour/Tour.d.ts +58 -0
- package/dist/forks/Tour/Tour.js +55 -0
- package/dist/forks/Tour/Tour.js.map +1 -0
- package/dist/forks/Tour/TourContext.d.ts +37 -0
- package/dist/forks/Tour/TourContext.js +8 -0
- package/dist/forks/Tour/TourContext.js.map +1 -0
- package/dist/forks/Tour/TourStep.d.ts +43 -0
- package/dist/forks/Tour/TourStep.js +134 -0
- package/dist/forks/Tour/TourStep.js.map +1 -0
- package/dist/forks/Tour/TourStep.styles.d.ts +23 -0
- package/dist/forks/Tour/TourStep.styles.js +28 -0
- package/dist/forks/Tour/TourStep.styles.js.map +1 -0
- package/dist/forks/Tour/index.d.ts +11 -0
- package/dist/forks/Tour/index.js +4 -0
- package/dist/forks/Tour/useTour.d.ts +26 -0
- package/dist/forks/Tour/useTour.js +20 -0
- package/dist/forks/Tour/useTour.js.map +1 -0
- package/dist/forks/compiled.d.ts +5 -0
- package/dist/forks/compiled.js +8 -0
- package/dist/forks/compiled.js.map +1 -0
- package/dist/i18n/catalog.d.ts +12 -0
- package/dist/i18n/catalog.js +46 -0
- package/dist/i18n/catalog.js.map +1 -0
- package/dist/i18n/common.messages.d.ts +31 -0
- package/dist/i18n/common.messages.js +32 -0
- package/dist/i18n/common.messages.js.map +1 -0
- package/dist/i18n/index.d.ts +21 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/locales/de-DE.js +331 -0
- package/dist/i18n/locales/de-DE.js.map +1 -0
- package/dist/i18n/locales/el-GR.js +331 -0
- package/dist/i18n/locales/el-GR.js.map +1 -0
- package/dist/i18n/locales/es-ES.js +331 -0
- package/dist/i18n/locales/es-ES.js.map +1 -0
- package/dist/i18n/locales/fi-FI.js +331 -0
- package/dist/i18n/locales/fi-FI.js.map +1 -0
- package/dist/i18n/locales/fr-FR.js +331 -0
- package/dist/i18n/locales/fr-FR.js.map +1 -0
- package/dist/i18n/locales/id-ID.js +331 -0
- package/dist/i18n/locales/id-ID.js.map +1 -0
- package/dist/i18n/locales/it-IT.js +331 -0
- package/dist/i18n/locales/it-IT.js.map +1 -0
- package/dist/i18n/locales/ja-JP.js +351 -0
- package/dist/i18n/locales/ja-JP.js.map +1 -0
- package/dist/i18n/locales/ko-KR.js +351 -0
- package/dist/i18n/locales/ko-KR.js.map +1 -0
- package/dist/i18n/locales/mn-MN.js +327 -0
- package/dist/i18n/locales/mn-MN.js.map +1 -0
- package/dist/i18n/locales/ms-MY.js +331 -0
- package/dist/i18n/locales/ms-MY.js.map +1 -0
- package/dist/i18n/locales/pl-PL.js +331 -0
- package/dist/i18n/locales/pl-PL.js.map +1 -0
- package/dist/i18n/locales/pt-BR.js +331 -0
- package/dist/i18n/locales/pt-BR.js.map +1 -0
- package/dist/i18n/locales/pt-PT.js +331 -0
- package/dist/i18n/locales/pt-PT.js.map +1 -0
- package/dist/i18n/locales/ru-RU.js +331 -0
- package/dist/i18n/locales/ru-RU.js.map +1 -0
- package/dist/i18n/locales/th-TH.js +331 -0
- package/dist/i18n/locales/th-TH.js.map +1 -0
- package/dist/i18n/locales/tr-TR.js +331 -0
- package/dist/i18n/locales/tr-TR.js.map +1 -0
- package/dist/i18n/locales/vi-VN.js +331 -0
- package/dist/i18n/locales/vi-VN.js.map +1 -0
- package/dist/i18n/locales/zh-CN.js +331 -0
- package/dist/i18n/locales/zh-CN.js.map +1 -0
- package/dist/i18n/locales/zh-TW.js +331 -0
- package/dist/i18n/locales/zh-TW.js.map +1 -0
- package/dist/i18n/messages.d.ts +13 -0
- package/dist/i18n/messages.js +63 -0
- package/dist/i18n/messages.js.map +1 -0
- package/dist/i18n/translateWithNodes.d.ts +3 -0
- package/dist/i18n/translateWithNodes.js +14 -0
- package/dist/i18n/translateWithNodes.js.map +1 -0
- package/dist/i18n/useUicTranslator.d.ts +5 -0
- package/dist/i18n/useUicTranslator.js +38 -0
- package/dist/i18n/useUicTranslator.js.map +1 -0
- package/dist/index.d.ts +101 -27
- package/dist/index.js +63 -23
- package/dist/instance.d.ts +31 -0
- package/dist/instance.js +33 -0
- package/dist/instance.js.map +1 -0
- package/dist/legacy-tokens.css +177 -0
- package/dist/locales/af-ZA.json +954 -0
- package/dist/locales/ar-SA.json +994 -0
- package/dist/locales/ca-ES.json +970 -0
- package/dist/locales/cs-CZ.json +986 -0
- package/dist/locales/da-DK.json +962 -0
- package/dist/locales/de-DE.json +962 -0
- package/dist/locales/el-GR.json +986 -0
- package/dist/locales/en.json +1482 -0
- package/dist/locales/es-ES.json +974 -0
- package/dist/locales/fi-FI.json +986 -0
- package/dist/locales/fr-FR.json +950 -0
- package/dist/locales/he-IL.json +986 -0
- package/dist/locales/hu-HU.json +986 -0
- package/dist/locales/it-IT.json +974 -0
- package/dist/locales/ja-JP.json +994 -0
- package/dist/locales/ko-KR.json +986 -0
- package/dist/locales/nl-NL.json +950 -0
- package/dist/locales/no-NO.json +974 -0
- package/dist/locales/pl-PL.json +978 -0
- package/dist/locales/pseudo.json +1112 -0
- package/dist/locales/pt-BR.json +978 -0
- package/dist/locales/pt-PT.json +978 -0
- package/dist/locales/ro-RO.json +978 -0
- package/dist/locales/ru-RU.json +986 -0
- package/dist/locales/sr-SP.json +986 -0
- package/dist/locales/sv-SE.json +982 -0
- package/dist/locales/tr-TR.json +986 -0
- package/dist/locales/uk-UA.json +986 -0
- package/dist/locales/vi-VN.json +982 -0
- package/dist/locales/zh-CN.json +994 -0
- package/dist/locales/zh-TW.json +994 -0
- package/dist/styles/base.css +24 -2
- package/dist/styles/themes/orange-dark.css +4 -0
- package/dist/styles/themes/orange-light.css +4 -0
- package/dist/theme/lablup/built/lablup.d.ts +13 -0
- package/dist/theme/lablup/built/lablup.js +567 -0
- package/dist/theme/lablup/built/lablup.variants.d.ts +16 -0
- package/dist/theme/lablup/built/theme.css +716 -0
- package/dist/theme/lablup/index.d.ts +9 -0
- package/dist/theme/lablup/index.js +2 -0
- package/dist/theme/lablup/lablupTheme.d.ts +10 -0
- package/dist/theme/lablup/lablupTheme.js +21 -0
- package/dist/theme/lablup/lablupTheme.js.map +1 -0
- package/dist/ui-common-locales/de-DE.json +326 -0
- package/dist/ui-common-locales/el-GR.json +326 -0
- package/dist/ui-common-locales/en.json +346 -0
- package/dist/ui-common-locales/es-ES.json +326 -0
- package/dist/ui-common-locales/fi-FI.json +326 -0
- package/dist/ui-common-locales/fr-FR.json +326 -0
- package/dist/ui-common-locales/id-ID.json +326 -0
- package/dist/ui-common-locales/it-IT.json +326 -0
- package/dist/ui-common-locales/ja-JP.json +346 -0
- package/dist/ui-common-locales/ko-KR.json +346 -0
- package/dist/ui-common-locales/mn-MN.json +322 -0
- package/dist/ui-common-locales/ms-MY.json +326 -0
- package/dist/ui-common-locales/pl-PL.json +326 -0
- package/dist/ui-common-locales/pt-BR.json +326 -0
- package/dist/ui-common-locales/pt-PT.json +326 -0
- package/dist/ui-common-locales/ru-RU.json +326 -0
- package/dist/ui-common-locales/th-TH.json +326 -0
- package/dist/ui-common-locales/tr-TR.json +326 -0
- package/dist/ui-common-locales/vi-VN.json +326 -0
- package/dist/ui-common-locales/zh-CN.json +326 -0
- package/dist/ui-common-locales/zh-TW.json +326 -0
- package/dist/ui-common.css +51 -0
- package/exports.customs.json +62 -0
- package/exports.exclude.json +47 -0
- package/package.json +565 -21
- package/dist/assets/components/Badge/Badge.css +0 -1
- package/dist/assets/components/BaseCard/BaseCard.css +0 -1
- package/dist/assets/components/Button/Button.css +0 -1
- package/dist/assets/components/DataTable/DataTable.css +0 -1
- package/dist/assets/components/Drawer/Drawer.css +0 -1
- package/dist/assets/components/EmptyState/EmptyState.css +0 -1
- package/dist/assets/components/ProgressBar/ProgressBar.css +0 -1
- package/dist/assets/components/Skeleton/Skeleton.css +0 -1
- package/dist/assets/components/StatusTag/StatusTag.css +0 -1
- package/dist/assets/components/Tabs/Tabs.css +0 -1
- package/dist/assets/components/Tooltip/Tooltip.css +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -7
- package/dist/components/Badge/Badge2.js +0 -20
- package/dist/components/Badge/Badge2.js.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -2
- package/dist/components/Badge/index.js +0 -2
- package/dist/components/BaseCard/BaseCard.d.ts +0 -57
- package/dist/components/BaseCard/BaseCard2.js +0 -37
- package/dist/components/BaseCard/BaseCard2.js.map +0 -1
- package/dist/components/BaseCard/index.d.ts +0 -2
- package/dist/components/BaseCard/index.js +0 -2
- package/dist/components/Button/Button.d.ts +0 -54
- package/dist/components/Button/Button2.js +0 -75
- package/dist/components/Button/Button2.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -5
- package/dist/components/Button/index.js +0 -2
- package/dist/components/DataTable/DataTable.d.ts +0 -144
- package/dist/components/DataTable/DataTable2.js +0 -244
- package/dist/components/DataTable/DataTable2.js.map +0 -1
- package/dist/components/DataTable/index.d.ts +0 -2
- package/dist/components/DataTable/index.js +0 -2
- package/dist/components/Drawer/Drawer.d.ts +0 -25
- package/dist/components/Drawer/Drawer2.js +0 -107
- package/dist/components/Drawer/Drawer2.js.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -2
- package/dist/components/Drawer/index.js +0 -2
- package/dist/components/EmptyState/EmptyState.d.ts +0 -52
- package/dist/components/EmptyState/EmptyState.example.d.ts +0 -8
- package/dist/components/EmptyState/EmptyState2.js +0 -62
- package/dist/components/EmptyState/EmptyState2.js.map +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -10
- package/dist/components/EmptyState/index.js +0 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +0 -22
- package/dist/components/ProgressBar/ProgressBar2.js +0 -37
- package/dist/components/ProgressBar/ProgressBar2.js.map +0 -1
- package/dist/components/ProgressBar/index.d.ts +0 -2
- package/dist/components/ProgressBar/index.js +0 -2
- package/dist/components/Skeleton/Skeleton.d.ts +0 -25
- package/dist/components/Skeleton/Skeleton2.js +0 -27
- package/dist/components/Skeleton/Skeleton2.js.map +0 -1
- package/dist/components/StatusTag/StatusTag.d.ts +0 -38
- package/dist/components/StatusTag/StatusTag2.js +0 -45
- package/dist/components/StatusTag/StatusTag2.js.map +0 -1
- package/dist/components/StatusTag/index.d.ts +0 -2
- package/dist/components/StatusTag/index.js +0 -2
- package/dist/components/Tabs/Tabs.d.ts +0 -94
- package/dist/components/Tabs/Tabs2.js +0 -412
- package/dist/components/Tabs/Tabs2.js.map +0 -1
- package/dist/components/Tabs/index.d.ts +0 -2
- package/dist/components/Tabs/index.js +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -16
- package/dist/components/Tooltip/Tooltip2.js +0 -68
- package/dist/components/Tooltip/Tooltip2.js.map +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/Tooltip/index.js +0 -2
- package/dist/hooks/index.js +0 -2
- package/dist/icons/AlertCircleIcon.d.ts +0 -11
- package/dist/icons/AlertCircleIcon.js +0 -26
- package/dist/icons/AlertCircleIcon.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonVariant } from '@astryxdesign/core/Button';
|
|
3
|
+
import { PopoverProps } from '@astryxdesign/core/Popover';
|
|
4
|
+
export interface ConfirmPopoverProps extends Omit<PopoverProps, "content" | "label"> {
|
|
5
|
+
/** The question. A string renders as the heading line. */
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
/** Supporting line under the title. */
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/** Leading glyph beside the title. */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Runs on confirm, with the click event. A returned promise keeps the
|
|
13
|
+
* popover open, and the button pending, until it settles.
|
|
14
|
+
*/
|
|
15
|
+
onAction?: (event: React.MouseEvent<HTMLButtonElement>) => unknown;
|
|
16
|
+
/** Confirm button label. @default the catalog's uic.common.confirm ("Confirm") */
|
|
17
|
+
actionLabel?: string;
|
|
18
|
+
/** Confirm button variant; `destructive` for a harmful action. @default "primary" */
|
|
19
|
+
actionVariant?: ButtonVariant;
|
|
20
|
+
/** Disable the confirm button. @default false */
|
|
21
|
+
isActionDisabled?: boolean;
|
|
22
|
+
/** Runs on Cancel. The popover closes either way. */
|
|
23
|
+
onCancel?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
24
|
+
/** Cancel button label. @default the catalog's uic.common.cancel ("Cancel") */
|
|
25
|
+
cancelLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Accessible name of the popover. @default `title` when it is a string,
|
|
28
|
+
* else the action label
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare function ConfirmPopover({ title, description, icon, onAction, actionLabel, actionVariant, isActionDisabled, onCancel, cancelLabel, label, isOpen: controlledIsOpen, onOpenChange, children, width, ...popoverProps }: ConfirmPopoverProps): import("react").JSX.Element;
|
|
33
|
+
export declare namespace ConfirmPopover {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useUicTranslator as e } from "../../i18n/useUicTranslator.js";
|
|
2
|
+
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
|
+
import { Button as i } from "@astryxdesign/core/Button";
|
|
4
|
+
import { HStack as a, VStack as o } from "@astryxdesign/core/Stack";
|
|
5
|
+
import { Text as s } from "@astryxdesign/core/Text";
|
|
6
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
import { Popover as u } from "@astryxdesign/core/Popover";
|
|
8
|
+
//#region src/components/ConfirmPopover/ConfirmPopover.tsx
|
|
9
|
+
function d({ title: d, description: f, icon: p, onAction: m, actionLabel: h, actionVariant: g = "primary", isActionDisabled: _ = !1, onCancel: v, cancelLabel: y, label: b, isOpen: x, onOpenChange: S, children: C, width: w = 260, ...T }) {
|
|
10
|
+
let E = e(), [D, O] = r(!1), k = x !== void 0, A = k ? x : D, j = n(null), M = n(null), N = (e) => {
|
|
11
|
+
k || O(e), S?.(e);
|
|
12
|
+
};
|
|
13
|
+
t(() => {
|
|
14
|
+
if (A) {
|
|
15
|
+
M.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, j.current?.focus();
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let e = M.current;
|
|
19
|
+
M.current = null, e && document.activeElement === document.body && e.focus();
|
|
20
|
+
}, [A]);
|
|
21
|
+
let P = h ?? E("uic.common.confirm");
|
|
22
|
+
return /* @__PURE__ */ c(u, {
|
|
23
|
+
isOpen: A,
|
|
24
|
+
onOpenChange: N,
|
|
25
|
+
label: b ?? (typeof d == "string" ? d : P),
|
|
26
|
+
width: w,
|
|
27
|
+
content: /* @__PURE__ */ l(o, {
|
|
28
|
+
gap: 3,
|
|
29
|
+
align: "stretch",
|
|
30
|
+
children: [/* @__PURE__ */ l(a, {
|
|
31
|
+
gap: 2,
|
|
32
|
+
align: "start",
|
|
33
|
+
children: [p, /* @__PURE__ */ l(o, {
|
|
34
|
+
gap: 1,
|
|
35
|
+
align: "stretch",
|
|
36
|
+
children: [typeof d == "string" ? /* @__PURE__ */ c(s, {
|
|
37
|
+
weight: "semibold",
|
|
38
|
+
children: d
|
|
39
|
+
}) : d, f ? typeof f == "string" ? /* @__PURE__ */ c(s, {
|
|
40
|
+
type: "supporting",
|
|
41
|
+
color: "secondary",
|
|
42
|
+
children: f
|
|
43
|
+
}) : f : null]
|
|
44
|
+
})]
|
|
45
|
+
}), /* @__PURE__ */ l(a, {
|
|
46
|
+
gap: 2,
|
|
47
|
+
justify: "end",
|
|
48
|
+
children: [/* @__PURE__ */ c(i, {
|
|
49
|
+
ref: j,
|
|
50
|
+
size: "sm",
|
|
51
|
+
variant: "secondary",
|
|
52
|
+
label: y ?? E("uic.common.cancel"),
|
|
53
|
+
onClick: (e) => {
|
|
54
|
+
v?.(e), N(!1);
|
|
55
|
+
}
|
|
56
|
+
}), /* @__PURE__ */ c(i, {
|
|
57
|
+
size: "sm",
|
|
58
|
+
variant: g,
|
|
59
|
+
isDisabled: _,
|
|
60
|
+
label: P,
|
|
61
|
+
clickAction: async (e) => {
|
|
62
|
+
await m?.(e), N(!1);
|
|
63
|
+
}
|
|
64
|
+
})]
|
|
65
|
+
})]
|
|
66
|
+
}),
|
|
67
|
+
...T,
|
|
68
|
+
children: C
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
d.displayName = "ConfirmPopover";
|
|
72
|
+
//#endregion
|
|
73
|
+
export { d as ConfirmPopover };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=ConfirmPopover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmPopover.js","names":[],"sources":["../../../src/components/ConfirmPopover/ConfirmPopover.tsx"],"sourcesContent":["/**\n * ConfirmPopover\n *\n * A one-click confirmation anchored to its trigger: a question, an optional\n * supporting line, Cancel and a confirm action. For reversible actions\n * (deactivate, restore, reset a form). An action that cannot be undone\n * belongs in a Modal that asks the user to type what they are deleting.\n *\n * - `onAction` may return a promise. The action button shows its pending\n * state (Astryx `clickAction`) and the popover closes once it resolves. A\n * rejection does not close it; the error propagates as `clickAction`'s\n * does.\n * - Cancel comes first and takes focus on open, so an accidental Enter backs\n * out. Focus returns to the trigger on close.\n * - `children` is the trigger, as on `Popover`. Its render-prop form keeps\n * the trigger a direct child of its parent (a `ButtonGroup` needs that).\n *\n * @example\n * <ConfirmPopover\n * title=\"Deactivate this key?\"\n * actionLabel=\"Deactivate\"\n * actionVariant=\"destructive\"\n * onAction={() => deactivate(key.id)}\n * >\n * <Button label=\"Deactivate\" />\n * </ConfirmPopover>\n */\nimport { useEffect, useRef, useState, type ReactNode } from \"react\";\nimport { Button, type ButtonVariant } from \"@astryxdesign/core/Button\";\nimport { Popover, type PopoverProps } from \"@astryxdesign/core/Popover\";\nimport { HStack, VStack } from \"@astryxdesign/core/Stack\";\nimport { Text } from \"@astryxdesign/core/Text\";\n\nimport { useUicTranslator } from \"../../i18n/useUicTranslator\";\n\nexport interface ConfirmPopoverProps extends Omit<PopoverProps, \"content\" | \"label\"> {\n /** The question. A string renders as the heading line. */\n title: ReactNode;\n /** Supporting line under the title. */\n description?: ReactNode;\n /** Leading glyph beside the title. */\n icon?: ReactNode;\n /**\n * Runs on confirm, with the click event. A returned promise keeps the\n * popover open, and the button pending, until it settles.\n */\n onAction?: (event: React.MouseEvent<HTMLButtonElement>) => unknown;\n /** Confirm button label. @default the catalog's uic.common.confirm (\"Confirm\") */\n actionLabel?: string;\n /** Confirm button variant; `destructive` for a harmful action. @default \"primary\" */\n actionVariant?: ButtonVariant;\n /** Disable the confirm button. @default false */\n isActionDisabled?: boolean;\n /** Runs on Cancel. The popover closes either way. */\n onCancel?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n /** Cancel button label. @default the catalog's uic.common.cancel (\"Cancel\") */\n cancelLabel?: string;\n /**\n * Accessible name of the popover. @default `title` when it is a string,\n * else the action label\n */\n label?: string;\n}\n\nexport function ConfirmPopover({\n title,\n description,\n icon,\n onAction,\n actionLabel,\n actionVariant = \"primary\",\n isActionDisabled = false,\n onCancel,\n cancelLabel,\n label,\n isOpen: controlledIsOpen,\n onOpenChange,\n children,\n width = 260,\n ...popoverProps\n}: ConfirmPopoverProps) {\n const t = useUicTranslator();\n const [uncontrolledIsOpen, setUncontrolledIsOpen] = useState(false);\n const isControlled = controlledIsOpen !== undefined;\n const isOpen = isControlled ? controlledIsOpen : uncontrolledIsOpen;\n\n const cancelRef = useRef<HTMLButtonElement>(null);\n // Popover traps focus but does not hand it back on close.\n const restoreFocusRef = useRef<HTMLElement | null>(null);\n\n const setIsOpen = (next: boolean) => {\n if (!isControlled) setUncontrolledIsOpen(next);\n onOpenChange?.(next);\n };\n\n useEffect(() => {\n if (isOpen) {\n restoreFocusRef.current =\n document.activeElement instanceof HTMLElement ? document.activeElement : null;\n cancelRef.current?.focus();\n return;\n }\n const toRestore = restoreFocusRef.current;\n restoreFocusRef.current = null;\n // Only when focus fell back to the body; never steal it from elsewhere.\n if (toRestore && document.activeElement === document.body) {\n toRestore.focus();\n }\n }, [isOpen]);\n\n const actionText = actionLabel ?? t(\"uic.common.confirm\");\n const accessibleLabel = label ?? (typeof title === \"string\" ? title : actionText);\n\n return (\n <Popover\n isOpen={isOpen}\n onOpenChange={setIsOpen}\n label={accessibleLabel}\n width={width}\n content={\n <VStack gap={3} align=\"stretch\">\n <HStack gap={2} align=\"start\">\n {icon}\n <VStack gap={1} align=\"stretch\">\n {typeof title === \"string\" ? (\n <Text weight=\"semibold\">{title}</Text>\n ) : (\n title\n )}\n {description ? (\n typeof description === \"string\" ? (\n <Text type=\"supporting\" color=\"secondary\">\n {description}\n </Text>\n ) : (\n description\n )\n ) : null}\n </VStack>\n </HStack>\n <HStack gap={2} justify=\"end\">\n {/* First in DOM order: the safe action takes the initial focus. */}\n <Button\n ref={cancelRef}\n size=\"sm\"\n variant=\"secondary\"\n label={cancelLabel ?? t(\"uic.common.cancel\")}\n onClick={(event) => {\n onCancel?.(event);\n setIsOpen(false);\n }}\n />\n <Button\n size=\"sm\"\n variant={actionVariant}\n isDisabled={isActionDisabled}\n label={actionText}\n clickAction={async (event) => {\n await onAction?.(event);\n setIsOpen(false);\n }}\n />\n </HStack>\n </VStack>\n }\n {...popoverProps}\n >\n {children}\n </Popover>\n );\n}\n\nConfirmPopover.displayName = \"ConfirmPopover\";\n"],"mappings":";;;;;;;;AAgEA,SAAgB,EAAe,EAC7B,UACA,gBACA,SACA,aACA,gBACA,mBAAgB,WAChB,sBAAmB,IACnB,aACA,gBACA,UACA,QAAQ,GACR,iBACA,aACA,WAAQ,KACR,GAAG,KACmB;CACtB,IAAM,IAAI,EAAiB,GACrB,CAAC,GAAoB,KAAyB,EAAS,EAAK,GAC5D,IAAe,MAAqB,KAAA,GACpC,IAAS,IAAe,IAAmB,GAE3C,IAAY,EAA0B,IAAI,GAE1C,IAAkB,EAA2B,IAAI,GAEjD,KAAa,MAAkB;EAEnC,AADK,KAAc,EAAsB,CAAI,GAC7C,IAAe,CAAI;CACrB;CAEA,QAAgB;EACd,IAAI,GAAQ;GAGV,AAFA,EAAgB,UACd,SAAS,yBAAyB,cAAc,SAAS,gBAAgB,MAC3E,EAAU,SAAS,MAAM;GACzB;EACF;EACA,IAAM,IAAY,EAAgB;EAGlC,AAFA,EAAgB,UAAU,MAEtB,KAAa,SAAS,kBAAkB,SAAS,QACnD,EAAU,MAAM;CAEpB,GAAG,CAAC,CAAM,CAAC;CAEX,IAAM,IAAa,KAAe,EAAE,oBAAoB;CAGxD,OACE,kBAAC,GAAD;EACU;EACR,cAAc;EACd,OANoB,MAAU,OAAO,KAAU,WAAW,IAAQ;EAO3D;EACP,SACE,kBAAC,GAAD;GAAQ,KAAK;GAAG,OAAM;GAAtB,UAAA,CACE,kBAAC,GAAD;IAAQ,KAAK;IAAG,OAAM;IAAtB,UAAA,CACG,GACD,kBAAC,GAAD;KAAQ,KAAK;KAAG,OAAM;KAAtB,UAAA,CACG,OAAO,KAAU,WAChB,kBAAC,GAAD;MAAM,QAAO;MAAY,UAAA;KAAY,CAAA,IAErC,GAED,IACC,OAAO,KAAgB,WACrB,kBAAC,GAAD;MAAM,MAAK;MAAa,OAAM;MAC3B,UAAA;KACG,CAAA,IAEN,IAEA,IACE;IACF,CAAA,CAAA;GACR,CAAA,GAAA,kBAAC,GAAD;IAAQ,KAAK;IAAG,SAAQ;IAAxB,UAAA,CAEE,kBAAC,GAAD;KACE,KAAK;KACL,MAAK;KACL,SAAQ;KACR,OAAO,KAAe,EAAE,mBAAmB;KAC3C,UAAU,MAAU;MAElB,AADA,IAAW,CAAK,GAChB,EAAU,EAAK;KACjB;IACD,CAAA,GACD,kBAAC,GAAD;KACE,MAAK;KACL,SAAS;KACT,YAAY;KACZ,OAAO;KACP,aAAa,OAAO,MAAU;MAE5B,AADA,MAAM,IAAW,CAAK,GACtB,EAAU,EAAK;KACjB;IACD,CAAA,CACK;GACF,CAAA,CAAA;;EAEV,GAAI;EAEH;CACM,CAAA;AAEb;AAEA,EAAe,cAAc"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BadgeProps } from '@astryxdesign/core/Badge';
|
|
3
|
+
export interface CountBadgeProps extends Omit<BadgeProps, "label" | "icon"> {
|
|
4
|
+
/** The number, or node, shown in the overlay. */
|
|
5
|
+
count?: number | ReactNode;
|
|
6
|
+
/** Render a bare dot instead of the count. @default false */
|
|
7
|
+
hasDot?: boolean;
|
|
8
|
+
/** A numeric count above this renders as `${max}+`. @default 99 */
|
|
9
|
+
max?: number;
|
|
10
|
+
/** Keep the overlay when `count` is 0. @default false */
|
|
11
|
+
isZeroShown?: boolean;
|
|
12
|
+
/** `[x, y]` pixel nudge of the overlay: +x moves it right, +y down. */
|
|
13
|
+
offset?: [number, number];
|
|
14
|
+
/** `sm` is a denser pill for tab rails and table headers. @default 'md' */
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
/** Accessible name of the overlay, e.g. "3 unread notifications". */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** The element the overlay is anchored to. */
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function CountBadge({ count, hasDot, max, isZeroShown, offset, size, label, variant, children, className, style, ...badgeProps }: CountBadgeProps): import("react").JSX.Element;
|
|
22
|
+
export declare namespace CountBadge {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
3
|
+
import { Badge as n } from "@astryxdesign/core/Badge";
|
|
4
|
+
//#region src/components/CountBadge/CountBadge.tsx
|
|
5
|
+
function r({ count: r, hasDot: i = !1, max: a = 99, isZeroShown: o = !1, offset: s, size: c = "md", label: l, variant: u, children: d, className: f, style: p, ...m }) {
|
|
6
|
+
let h = typeof r == "number", g = !i && (r == null || h && r === 0 && !o), _ = h && r > a ? `${a}+` : r;
|
|
7
|
+
return /* @__PURE__ */ t("span", {
|
|
8
|
+
className: ["uic-count-badge", f].filter(Boolean).join(" "),
|
|
9
|
+
style: p,
|
|
10
|
+
children: [d, g ? null : /* @__PURE__ */ e("span", {
|
|
11
|
+
className: ["uic-count-badge__overlay", c === "sm" ? "uic-count-badge__overlay--sm" : ""].filter(Boolean).join(" "),
|
|
12
|
+
style: {
|
|
13
|
+
"--count-badge-offset-x": `${s?.[0] ?? 0}px`,
|
|
14
|
+
"--count-badge-offset-y": `${s?.[1] ?? 0}px`
|
|
15
|
+
},
|
|
16
|
+
role: "status",
|
|
17
|
+
"aria-label": l,
|
|
18
|
+
children: i ? /* @__PURE__ */ e("span", {
|
|
19
|
+
className: "uic-count-badge__dot",
|
|
20
|
+
"data-variant": u ?? "neutral"
|
|
21
|
+
}) : /* @__PURE__ */ e(n, {
|
|
22
|
+
...m,
|
|
23
|
+
className: "uic-count-badge__pill",
|
|
24
|
+
variant: u,
|
|
25
|
+
label: _
|
|
26
|
+
})
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
r.displayName = "CountBadge";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as CountBadge };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=CountBadge2.js.map
|
|
35
|
+
import "../../assets/components/CountBadge/CountBadge.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountBadge2.js","names":[],"sources":["../../../src/components/CountBadge/CountBadge.tsx"],"sourcesContent":["/**\n * CountBadge\n *\n * A count or a dot overlaid on the corner of its child: unread notices on a\n * bell, a problem count on a tab. Astryx `Badge` is an inline pill with no\n * anchored form, so this positions one over the child's top-end corner.\n *\n * - `count` above `max` renders as `${max}+`.\n * - A zero or missing count renders nothing, unless `isZeroShown`.\n * - `hasDot` renders a bare dot instead of a number.\n * - The overlay is a `role=\"status\"` live region; `label` names it, since a\n * dot has no text and a bare number rarely says what it counts.\n *\n * `className` and `style` go on the wrapper around the child, so a consumer\n * can scope a rule at the overlay. Every other prop goes to the `Badge`.\n *\n * @example\n * <CountBadge count={unread} variant=\"error\" label={`${unread} unread`}>\n * <IconButton icon={<Bell />} label=\"Notifications\" />\n * </CountBadge>\n */\nimport type { CSSProperties, ReactNode } from \"react\";\nimport { Badge, type BadgeProps } from \"@astryxdesign/core/Badge\";\n\nimport \"./CountBadge.css\";\n\nexport interface CountBadgeProps extends Omit<BadgeProps, \"label\" | \"icon\"> {\n /** The number, or node, shown in the overlay. */\n count?: number | ReactNode;\n /** Render a bare dot instead of the count. @default false */\n hasDot?: boolean;\n /** A numeric count above this renders as `${max}+`. @default 99 */\n max?: number;\n /** Keep the overlay when `count` is 0. @default false */\n isZeroShown?: boolean;\n /** `[x, y]` pixel nudge of the overlay: +x moves it right, +y down. */\n offset?: [number, number];\n /** `sm` is a denser pill for tab rails and table headers. @default 'md' */\n size?: \"sm\" | \"md\";\n /** Accessible name of the overlay, e.g. \"3 unread notifications\". */\n label?: string;\n /** The element the overlay is anchored to. */\n children?: ReactNode;\n}\n\nexport function CountBadge({\n count,\n hasDot = false,\n max = 99,\n isZeroShown = false,\n offset,\n size = \"md\",\n label,\n variant,\n children,\n className,\n style,\n ...badgeProps\n}: CountBadgeProps) {\n const isNumericCount = typeof count === \"number\";\n const isHidden =\n !hasDot &&\n (count === undefined ||\n count === null ||\n (isNumericCount && count === 0 && !isZeroShown));\n\n const shown = isNumericCount && count > max ? `${max}+` : (count as ReactNode);\n\n return (\n <span\n className={[\"uic-count-badge\", className].filter(Boolean).join(\" \")}\n style={style}\n >\n {children}\n {isHidden ? null : (\n <span\n className={[\n \"uic-count-badge__overlay\",\n size === \"sm\" ? \"uic-count-badge__overlay--sm\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \")}\n style={\n {\n \"--count-badge-offset-x\": `${offset?.[0] ?? 0}px`,\n \"--count-badge-offset-y\": `${offset?.[1] ?? 0}px`,\n } as CSSProperties\n }\n role=\"status\"\n aria-label={label}\n >\n {hasDot ? (\n <span\n className=\"uic-count-badge__dot\"\n data-variant={variant ?? \"neutral\"}\n />\n ) : (\n <Badge\n {...badgeProps}\n className=\"uic-count-badge__pill\"\n variant={variant}\n label={shown}\n />\n )}\n </span>\n )}\n </span>\n );\n}\n\nCountBadge.displayName = \"CountBadge\";\n"],"mappings":";;;;AA6CA,SAAgB,EAAW,EACzB,UACA,YAAS,IACT,SAAM,IACN,iBAAc,IACd,WACA,UAAO,MACP,UACA,YACA,aACA,cACA,UACA,GAAG,KACe;CAClB,IAAM,IAAiB,OAAO,KAAU,UAClC,IACJ,CAAC,MACA,KACW,QACT,KAAkB,MAAU,KAAK,CAAC,IAEjC,IAAQ,KAAkB,IAAQ,IAAM,GAAG,EAAI,KAAM;CAE3D,OACE,kBAAC,QAAD;EACE,WAAW,CAAC,mBAAmB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAC3D;EAFT,UAAA,CAIG,GACA,IAAW,OACV,kBAAC,QAAD;GACE,WAAW,CACT,4BACA,MAAS,OAAO,iCAAiC,EACnD,CAAC,CACE,OAAO,OAAO,CAAC,CACf,KAAK,GAAG;GACX,OACE;IACE,0BAA0B,GAAG,IAAS,MAAM,EAAE;IAC9C,0BAA0B,GAAG,IAAS,MAAM,EAAE;GAChD;GAEF,MAAK;GACL,cAAY;GAEX,UAAA,IACC,kBAAC,QAAD;IACE,WAAU;IACV,gBAAc,KAAW;GAC1B,CAAA,IAED,kBAAC,GAAD;IACE,GAAI;IACJ,WAAU;IACD;IACT,OAAO;GACR,CAAA;EAEC,CAAA,CAEJ;;AAEV;AAEA,EAAW,cAAc"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties, Key, ReactElement, ReactNode } from 'react';
|
|
2
|
+
export interface CountdownBorderProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
/** Length of one fill cycle, in milliseconds. */
|
|
5
|
+
durationMs: number;
|
|
6
|
+
/** Whether the border shows and fills. Default: true */
|
|
7
|
+
isAnimated?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Restarts the fill on this render when it changes. Pass the trigger of the
|
|
10
|
+
* real refresh, so the countdown never drifts from it.
|
|
11
|
+
*/
|
|
12
|
+
resetKey?: Key;
|
|
13
|
+
/** Freezes the fill and hides the border, e.g. while a refresh runs. Default: false */
|
|
14
|
+
isPaused?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
/** Wrapper style; `stroke`, `strokeWidth` and `borderRadius` style the border. */
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
}
|
|
19
|
+
export declare function CountdownBorder({ children, durationMs, isAnimated, resetKey, isPaused, className, style, }: CountdownBorderProps): ReactElement;
|
|
20
|
+
export declare namespace CountdownBorder {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
3
|
+
import { useTheme as r } from "@astryxdesign/core/theme";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/CountdownBorder/CountdownBorder.tsx
|
|
6
|
+
function o({ children: o, durationMs: s, isAnimated: c = !0, resetKey: l, isPaused: u = !1, className: d, style: f }) {
|
|
7
|
+
let { token: p } = r(), m = t(null), [h, g] = n({
|
|
8
|
+
w: 0,
|
|
9
|
+
h: 0
|
|
10
|
+
});
|
|
11
|
+
e(() => {
|
|
12
|
+
let e = m.current;
|
|
13
|
+
if (!e) return;
|
|
14
|
+
let t = () => g({
|
|
15
|
+
w: e.clientWidth,
|
|
16
|
+
h: e.clientHeight
|
|
17
|
+
});
|
|
18
|
+
t();
|
|
19
|
+
let n = new ResizeObserver(t);
|
|
20
|
+
return n.observe(e), () => n.disconnect();
|
|
21
|
+
}, []);
|
|
22
|
+
let { stroke: _ = "var(--color-accent)", strokeWidth: v = 1.5, borderRadius: y = p("--radius-inner"), ...b } = f ?? {}, { w: x, h: S } = h;
|
|
23
|
+
return /* @__PURE__ */ a("div", {
|
|
24
|
+
ref: m,
|
|
25
|
+
className: ["uic-countdown-border", d].filter(Boolean).join(" "),
|
|
26
|
+
style: {
|
|
27
|
+
display: "inline-flex",
|
|
28
|
+
...b,
|
|
29
|
+
position: "relative"
|
|
30
|
+
},
|
|
31
|
+
children: [o, c && x > 0 && S > 0 && /* @__PURE__ */ i("svg", {
|
|
32
|
+
"aria-hidden": !0,
|
|
33
|
+
width: x,
|
|
34
|
+
height: S,
|
|
35
|
+
className: "uic-countdown-border__overlay",
|
|
36
|
+
style: { visibility: u ? "hidden" : "visible" },
|
|
37
|
+
children: /* @__PURE__ */ i("rect", {
|
|
38
|
+
x: 0,
|
|
39
|
+
y: 0,
|
|
40
|
+
width: x,
|
|
41
|
+
height: S,
|
|
42
|
+
rx: y,
|
|
43
|
+
ry: y,
|
|
44
|
+
fill: "none",
|
|
45
|
+
strokeWidth: v,
|
|
46
|
+
pathLength: 100,
|
|
47
|
+
strokeDasharray: 100,
|
|
48
|
+
className: "uic-countdown-border__fill",
|
|
49
|
+
style: {
|
|
50
|
+
stroke: _,
|
|
51
|
+
animationDuration: `${s}ms`,
|
|
52
|
+
animationPlayState: u ? "paused" : "running"
|
|
53
|
+
}
|
|
54
|
+
}, l)
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
o.displayName = "CountdownBorder";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { o as CountdownBorder };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=CountdownBorder2.js.map
|
|
63
|
+
import "../../assets/components/CountdownBorder/CountdownBorder.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountdownBorder2.js","names":[],"sources":["../../../src/components/CountdownBorder/CountdownBorder.tsx"],"sourcesContent":["/**\n * CountdownBorder\n *\n * Wraps its children in a rounded-rect border that fills clockwise over\n * `durationMs` and starts again: a countdown to the next automatic refresh.\n * The wrapper measures its own box, so the outline fits the content at any\n * size; the stroke is centred on the content's edge, so half of it stays\n * visible over opaque children. Under `prefers-reduced-motion` the border\n * does not animate.\n *\n * The border's look comes from `style`: `stroke` (default\n * `var(--color-accent)`), `strokeWidth` (default 1.5) and `borderRadius`\n * (default the theme's `--radius-inner`). The rest of `style` reaches the\n * wrapper.\n *\n * @example\n * <CountdownBorder durationMs={5000} resetKey={fetchKey} isPaused={isFetching}>\n * <IconButton label=\"Refresh\" icon={<RotateCw />} onClick={refetch} />\n * </CountdownBorder>\n */\nimport {\n useEffect,\n useRef,\n useState,\n type CSSProperties,\n type Key,\n type ReactElement,\n type ReactNode,\n} from \"react\";\nimport { useTheme } from \"@astryxdesign/core/theme\";\n\nimport \"./CountdownBorder.css\";\n\nexport interface CountdownBorderProps {\n children?: ReactNode;\n /** Length of one fill cycle, in milliseconds. */\n durationMs: number;\n /** Whether the border shows and fills. Default: true */\n isAnimated?: boolean;\n /**\n * Restarts the fill on this render when it changes. Pass the trigger of the\n * real refresh, so the countdown never drifts from it.\n */\n resetKey?: Key;\n /** Freezes the fill and hides the border, e.g. while a refresh runs. Default: false */\n isPaused?: boolean;\n className?: string;\n /** Wrapper style; `stroke`, `strokeWidth` and `borderRadius` style the border. */\n style?: CSSProperties;\n}\n\nexport function CountdownBorder({\n children,\n durationMs,\n isAnimated = true,\n resetKey,\n isPaused = false,\n className,\n style,\n}: CountdownBorderProps): ReactElement {\n const { token } = useTheme();\n const ref = useRef<HTMLDivElement>(null);\n const [size, setSize] = useState({ w: 0, h: 0 });\n\n useEffect(() => {\n const el = ref.current;\n if (!el) return;\n const measure = () => setSize({ w: el.clientWidth, h: el.clientHeight });\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(el);\n return () => observer.disconnect();\n }, []);\n\n const {\n // A var(), so a nested Astryx Theme's accent applies.\n stroke = \"var(--color-accent)\",\n strokeWidth = 1.5,\n // `rx` takes a length, not a var(): resolved from the theme.\n borderRadius = token(\"--radius-inner\"),\n ...wrapperStyle\n } = style ?? {};\n const { w, h } = size;\n\n return (\n <div\n ref={ref}\n className={[\"uic-countdown-border\", className].filter(Boolean).join(\" \")}\n // `position: relative` stays last: the overlay depends on it.\n style={{ display: \"inline-flex\", ...wrapperStyle, position: \"relative\" }}\n >\n {children}\n {isAnimated && w > 0 && h > 0 && (\n <svg\n aria-hidden\n width={w}\n height={h}\n className=\"uic-countdown-border__overlay\"\n // Hidden, not just paused: at offset 100 the dash edge can still\n // paint a sliver at the path start.\n style={{ visibility: isPaused ? \"hidden\" : \"visible\" }}\n >\n <rect\n key={resetKey}\n x={0}\n y={0}\n width={w}\n height={h}\n rx={borderRadius}\n ry={borderRadius}\n fill=\"none\"\n strokeWidth={strokeWidth}\n pathLength={100}\n strokeDasharray={100}\n className=\"uic-countdown-border__fill\"\n style={{\n // A CSS property: var() does not resolve in the stroke attribute.\n stroke,\n animationDuration: `${durationMs}ms`,\n animationPlayState: isPaused ? \"paused\" : \"running\",\n }}\n />\n </svg>\n )}\n </div>\n );\n}\n\nCountdownBorder.displayName = \"CountdownBorder\";\n"],"mappings":";;;;;AAmDA,SAAgB,EAAgB,EAC9B,aACA,eACA,gBAAa,IACb,aACA,cAAW,IACX,cACA,YACqC;CACrC,IAAM,EAAE,aAAU,EAAS,GACrB,IAAM,EAAuB,IAAI,GACjC,CAAC,GAAM,KAAW,EAAS;EAAE,GAAG;EAAG,GAAG;CAAE,CAAC;CAE/C,QAAgB;EACd,IAAM,IAAK,EAAI;EACf,IAAI,CAAC,GAAI;EACT,IAAM,UAAgB,EAAQ;GAAE,GAAG,EAAG;GAAa,GAAG,EAAG;EAAa,CAAC;EACvE,EAAQ;EACR,IAAM,IAAW,IAAI,eAAe,CAAO;EAE3C,OADA,EAAS,QAAQ,CAAE,SACN,EAAS,WAAW;CACnC,GAAG,CAAC,CAAC;CAEL,IAAM,EAEJ,YAAS,uBACT,iBAAc,KAEd,kBAAe,EAAM,gBAAgB,GACrC,GAAG,MACD,KAAS,CAAC,GACR,EAAE,MAAG,SAAM;CAEjB,OACE,kBAAC,OAAD;EACO;EACL,WAAW,CAAC,wBAAwB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EAEvE,OAAO;GAAE,SAAS;GAAe,GAAG;GAAc,UAAU;EAAW;EAJzE,UAAA,CAMG,GACA,KAAc,IAAI,KAAK,IAAI,KAC1B,kBAAC,OAAD;GACE,eAAA;GACA,OAAO;GACP,QAAQ;GACR,WAAU;GAGV,OAAO,EAAE,YAAY,IAAW,WAAW,UAAU;GAErD,UAAA,kBAAC,QAAD;IAEE,GAAG;IACH,GAAG;IACH,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,IAAI;IACJ,MAAK;IACQ;IACb,YAAY;IACZ,iBAAiB;IACjB,WAAU;IACV,OAAO;KAEL;KACA,mBAAmB,GAAG,EAAW;KACjC,oBAAoB,IAAW,WAAW;IAC5C;GACD,GAlBM,CAkBN;EACE,CAAA,CAEJ;;AAET;AAEA,EAAgB,cAAc"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Key, CSSProperties, HTMLAttributes, ReactElement, ReactNode, TdHTMLAttributes } from 'react';
|
|
2
|
+
import { PaginationProps } from '@astryxdesign/core/Pagination';
|
|
3
|
+
import { TableProps } from '@astryxdesign/core/Table';
|
|
4
|
+
import { DataGridExportModalProps } from './DataGridExportModal';
|
|
5
|
+
import { DataGridSettingsModalProps, DataGridSettingsResult } from './DataGridSettingsModal';
|
|
6
|
+
/** A row identity, as `idKey` returns it. */
|
|
7
|
+
export type DataGridKey = Key;
|
|
8
|
+
export type DataGridSortDirection = "ascending" | "descending";
|
|
9
|
+
/** The active sort: one column, by its `sortKey`. */
|
|
10
|
+
export interface DataGridSort {
|
|
11
|
+
sortKey: string;
|
|
12
|
+
direction: DataGridSortDirection;
|
|
13
|
+
}
|
|
14
|
+
export interface DataGridColumn<T> {
|
|
15
|
+
/** Stable identity: column settings, widths and pinning use it. */
|
|
16
|
+
key: string;
|
|
17
|
+
/** Header content. It is clipped to the column width. */
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
/** Caption above the header, for a column that belongs to a group. */
|
|
20
|
+
groupHeader?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Plain-text name in the settings and export dialogs. Default: the text of
|
|
23
|
+
* `groupHeader` and `header` joined with " / ", else the key.
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
/** Cell content. `index` is the row's position on the current page. */
|
|
27
|
+
renderCell?: (item: T, index: number) => ReactNode;
|
|
28
|
+
/** Width in pixels. A resized width replaces it. Without one the column flexes. */
|
|
29
|
+
width?: number;
|
|
30
|
+
/** Lower bound, in pixels, of a flexing column. */
|
|
31
|
+
minWidth?: number;
|
|
32
|
+
align?: "start" | "center" | "end";
|
|
33
|
+
/** Makes the column sortable. The sort state names it by this key. */
|
|
34
|
+
sortKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Sorts the rows on the client when this column is sorted. Compare in
|
|
37
|
+
* ascending order; the grid reverses the result for descending.
|
|
38
|
+
*/
|
|
39
|
+
compare?: (a: T, b: T, direction: DataGridSortDirection) => number;
|
|
40
|
+
/**
|
|
41
|
+
* Pins the column to an edge. Only the contiguous run of pinned columns at
|
|
42
|
+
* each edge of the displayed order is pinned.
|
|
43
|
+
*/
|
|
44
|
+
pin?: "start" | "end";
|
|
45
|
+
/** Column settings cannot hide it. */
|
|
46
|
+
isAlwaysVisible?: boolean;
|
|
47
|
+
/** Hidden until the user shows it in the column settings. */
|
|
48
|
+
isHiddenByDefault?: boolean;
|
|
49
|
+
/** Fields this column exports as. Without them it cannot be exported. */
|
|
50
|
+
exportKeys?: ReadonlyArray<string>;
|
|
51
|
+
/** Extra attributes for this column's body cells. */
|
|
52
|
+
getCellProps?: (item: T, index: number) => TdHTMLAttributes<HTMLTableCellElement>;
|
|
53
|
+
}
|
|
54
|
+
/** Per-column settings a user changed, keyed by column key. */
|
|
55
|
+
export interface DataGridColumnOverride {
|
|
56
|
+
hidden?: boolean;
|
|
57
|
+
/** Display position. Lower comes first. Set only after a reorder. */
|
|
58
|
+
order?: number;
|
|
59
|
+
/** Resized width in pixels. */
|
|
60
|
+
width?: number;
|
|
61
|
+
}
|
|
62
|
+
export type DataGridColumnOverrides = Record<string, DataGridColumnOverride>;
|
|
63
|
+
export interface DataGridColumnSettings {
|
|
64
|
+
/** Controlled overrides. */
|
|
65
|
+
overrides?: DataGridColumnOverrides;
|
|
66
|
+
/** Initial overrides when uncontrolled; always merged under `overrides`. */
|
|
67
|
+
defaultOverrides?: DataGridColumnOverrides;
|
|
68
|
+
onOverridesChange?: (overrides: DataGridColumnOverrides) => void;
|
|
69
|
+
/** Whether the settings dialog lets the user reorder columns. Default: true */
|
|
70
|
+
isReorderable?: boolean;
|
|
71
|
+
/** Strings of the settings dialog. */
|
|
72
|
+
modalProps?: Pick<DataGridSettingsModalProps, "title" | "subtitle" | "searchLabel" | "noMatchText" | "applyLabel" | "cancelLabel">;
|
|
73
|
+
}
|
|
74
|
+
export interface DataGridCsvExport {
|
|
75
|
+
/** Export keys the backend can produce. Columns asking for others are disabled. */
|
|
76
|
+
supportedKeys: ReadonlyArray<string>;
|
|
77
|
+
/** Runs the export with the chosen keys. The dialog closes when it resolves. */
|
|
78
|
+
onExport: (keys: string[]) => Promise<void>;
|
|
79
|
+
/** A warning above the column list, e.g. that the export is truncated. */
|
|
80
|
+
notice?: ReactNode;
|
|
81
|
+
/** Strings of the export dialog. */
|
|
82
|
+
modalProps?: Pick<DataGridExportModalProps, "title" | "subtitle" | "searchLabel" | "noMatchText" | "exportLabel" | "cancelLabel">;
|
|
83
|
+
}
|
|
84
|
+
export interface DataGridSelection<T> {
|
|
85
|
+
/** The selected row keys. Selection is controlled. */
|
|
86
|
+
selectedKeys?: ReadonlyArray<DataGridKey>;
|
|
87
|
+
onChange?: (keys: string[], items: T[]) => void;
|
|
88
|
+
/** Whether a row's checkbox is enabled. Select-all leaves a disabled row as it is. */
|
|
89
|
+
getIsItemEnabled?: (item: T) => boolean;
|
|
90
|
+
/** Accessible name of a row's checkbox. Default: the row key. */
|
|
91
|
+
getRowLabel?: (item: T) => string;
|
|
92
|
+
/** Select-all keeps keys of rows on other pages. Default: false */
|
|
93
|
+
isPreservingOtherPages?: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface DataGridExpansion<T> {
|
|
96
|
+
renderExpandedRow: (item: T, index: number) => ReactNode;
|
|
97
|
+
getIsRowExpandable?: (item: T) => boolean;
|
|
98
|
+
/** Controlled expanded row keys. */
|
|
99
|
+
expandedKeys?: ReadonlyArray<DataGridKey>;
|
|
100
|
+
defaultExpandedKeys?: ReadonlyArray<DataGridKey>;
|
|
101
|
+
onExpandedKeysChange?: (keys: ReadonlyArray<DataGridKey>) => void;
|
|
102
|
+
/** Header content of the expand-button column. */
|
|
103
|
+
columnHeader?: ReactNode;
|
|
104
|
+
/** Width in pixels of the expand-button column. */
|
|
105
|
+
columnWidth?: number;
|
|
106
|
+
}
|
|
107
|
+
export interface DataGridPagination extends Omit<PaginationProps, "page" | "totalItems" | "onChange" | "onPageSizeChange" | "label" | "ref" | "totalPages" | "hasMore"> {
|
|
108
|
+
/** Controlled page, 1-based. */
|
|
109
|
+
page?: number;
|
|
110
|
+
defaultPage?: number;
|
|
111
|
+
defaultPageSize?: number;
|
|
112
|
+
/**
|
|
113
|
+
* Total row count. Without it the grid pages `data` itself; a total larger
|
|
114
|
+
* than `data` declares the rows already sliced to the page.
|
|
115
|
+
*/
|
|
116
|
+
totalItems?: number;
|
|
117
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
118
|
+
/** Whether the bar offers a page-size choice. Default: true */
|
|
119
|
+
hasPageSizeSelector?: boolean;
|
|
120
|
+
/** Hides the page bar while every row fits on one page. Default: false */
|
|
121
|
+
isHiddenOnSinglePage?: boolean;
|
|
122
|
+
/** Content at the end of the bar. */
|
|
123
|
+
endContent?: ReactNode;
|
|
124
|
+
}
|
|
125
|
+
type AnyRow = Record<string, unknown>;
|
|
126
|
+
export interface DataGridProps<T extends object = AnyRow> extends Omit<TableProps<AnyRow>, "data" | "columns" | "idKey" | "rowIndexStart" | "rowCount" | "children" | "scrollWrapper" | "ref" | "emptyState" | "className" | "style" | "plugins" | "onChange"> {
|
|
127
|
+
data?: ReadonlyArray<T>;
|
|
128
|
+
columns?: ReadonlyArray<DataGridColumn<T>>;
|
|
129
|
+
/**
|
|
130
|
+
* Row identity: a field name or a function. A missing field falls back to
|
|
131
|
+
* the row's `key`, then its `id`, then its position.
|
|
132
|
+
*/
|
|
133
|
+
idKey?: string | ((item: T) => DataGridKey);
|
|
134
|
+
/** Dims the rows and blocks input while data is refetched. */
|
|
135
|
+
isLoading?: boolean;
|
|
136
|
+
/** Drag-to-resize column borders. Default: true */
|
|
137
|
+
isResizable?: boolean;
|
|
138
|
+
/** Controlled sort; `null` for none. */
|
|
139
|
+
sort?: DataGridSort | null;
|
|
140
|
+
defaultSort?: DataGridSort | null;
|
|
141
|
+
onSortChange?: (sort: DataGridSort | null) => void;
|
|
142
|
+
selection?: DataGridSelection<T>;
|
|
143
|
+
/** The page bar. `false` shows every row and no bar. */
|
|
144
|
+
pagination?: false | DataGridPagination;
|
|
145
|
+
/** Enables the column settings button and persists resized widths. */
|
|
146
|
+
columnSettings?: DataGridColumnSettings;
|
|
147
|
+
/** Enables the CSV export button. */
|
|
148
|
+
csvExport?: DataGridCsvExport;
|
|
149
|
+
expansion?: DataGridExpansion<T>;
|
|
150
|
+
/**
|
|
151
|
+
* Shown in place of the rows when there are none. A string gets the default
|
|
152
|
+
* icon and layout, a node is rendered as is, `false` shows nothing. Default:
|
|
153
|
+
* the catalog's `uic.DataGrid.noData`.
|
|
154
|
+
*/
|
|
155
|
+
emptyState?: ReactNode | false;
|
|
156
|
+
/** Extra attributes for a body row. */
|
|
157
|
+
getRowProps?: (item: T, index: number | undefined) => HTMLAttributes<HTMLTableRowElement>;
|
|
158
|
+
/**
|
|
159
|
+
* Scrolls horizontally with the table at this width (at least the
|
|
160
|
+
* container's). Columns without a width then size to their content.
|
|
161
|
+
*/
|
|
162
|
+
scrollWidth?: number | string;
|
|
163
|
+
/** Caps the rows' height and makes the header sticky. */
|
|
164
|
+
maxHeight?: number | string;
|
|
165
|
+
/** Hides the header row, and with it sorting and select-all. */
|
|
166
|
+
isHeaderHidden?: boolean;
|
|
167
|
+
/** Accessible name of the expand buttons. Default: the catalog's `uic.DataGrid.expandRow` */
|
|
168
|
+
expandRowLabel?: string;
|
|
169
|
+
/** Shown when the page lies past the last one. Default: the catalog's `uic.DataGrid.invalidPage` */
|
|
170
|
+
invalidPageText?: string;
|
|
171
|
+
/** Default: the catalog's `uic.DataGrid.goToFirstPage` */
|
|
172
|
+
goToFirstPageLabel?: string;
|
|
173
|
+
/** Accessible name of the page navigation. Default: the catalog's `uic.DataGrid.pagination` */
|
|
174
|
+
paginationLabel?: string;
|
|
175
|
+
/** The range line beside the page navigation. Default: the catalog's `uic.DataGrid.range` */
|
|
176
|
+
renderRange?: (range: {
|
|
177
|
+
start: number;
|
|
178
|
+
end: number;
|
|
179
|
+
total: number;
|
|
180
|
+
}) => ReactNode;
|
|
181
|
+
/** Default: the catalog's `uic.DataGrid.settings` */
|
|
182
|
+
settingsLabel?: string;
|
|
183
|
+
/** Default: the catalog's `uic.DataGrid.exportCsv` */
|
|
184
|
+
exportLabel?: string;
|
|
185
|
+
className?: string;
|
|
186
|
+
style?: CSSProperties;
|
|
187
|
+
}
|
|
188
|
+
/** The label a column carries in the settings and export dialogs. */
|
|
189
|
+
export declare function dataGridColumnLabel<T>(column: DataGridColumn<T>): string;
|
|
190
|
+
/** Whether a column shows, given the user's overrides. */
|
|
191
|
+
/**
|
|
192
|
+
* The overrides record a settings dialog result writes. `defaultOverrides`
|
|
193
|
+
* stays merged under it key by key, and a key it holds replaces the default's
|
|
194
|
+
* entry whole. So a column is left out only while its default (natural, then
|
|
195
|
+
* `defaultOverrides`) already renders what the user chose, and an entry that
|
|
196
|
+
* is written states everything that differs from the natural column:
|
|
197
|
+
* otherwise re-showing a column the defaults hide, or restoring the natural
|
|
198
|
+
* order over a reordering default, would bring the default back.
|
|
199
|
+
*
|
|
200
|
+
* @internal Exported for tests.
|
|
201
|
+
*/
|
|
202
|
+
export declare function dataGridSettingsToOverrides({ columns, result, defaultOverrides, overrides, isReorderable, }: {
|
|
203
|
+
columns: ReadonlyArray<Pick<DataGridColumn<never>, "key" | "isHiddenByDefault">>;
|
|
204
|
+
result: DataGridSettingsResult;
|
|
205
|
+
defaultOverrides?: DataGridColumnOverrides;
|
|
206
|
+
/** The overrides in effect, defaults merged; their widths are kept. */
|
|
207
|
+
overrides: DataGridColumnOverrides;
|
|
208
|
+
isReorderable: boolean;
|
|
209
|
+
}): DataGridColumnOverrides;
|
|
210
|
+
export declare function isDataGridColumnVisible<T>(column: Pick<DataGridColumn<T>, "key" | "isAlwaysVisible" | "isHiddenByDefault">, overrides?: DataGridColumnOverrides): boolean;
|
|
211
|
+
export declare function DataGrid<T extends object = AnyRow>({ data, columns, idKey, isLoading, isResizable, sort: sortProp, defaultSort, onSortChange, selection, pagination, columnSettings, csvExport, expansion, emptyState, getRowProps, scrollWidth, maxHeight, isHeaderHidden, expandRowLabel, invalidPageText, goToFirstPageLabel, paginationLabel, renderRange, settingsLabel, exportLabel, density, dividers, hasHover, textOverflow, className, style, ...tableProps }: DataGridProps<T>): ReactElement;
|
|
212
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const dataGridMessages: {
|
|
2
|
+
readonly "uic.DataGrid.noData": {
|
|
3
|
+
readonly defaultMessage: "No data to display";
|
|
4
|
+
readonly description: "Shown in place of a data grid's rows when there are none";
|
|
5
|
+
};
|
|
6
|
+
readonly "uic.DataGrid.invalidPage": {
|
|
7
|
+
readonly defaultMessage: "Invalid page number";
|
|
8
|
+
readonly description: "Shown in place of a data grid's rows when the current page lies past the last page";
|
|
9
|
+
};
|
|
10
|
+
readonly "uic.DataGrid.goToFirstPage": {
|
|
11
|
+
readonly defaultMessage: "Go to first page";
|
|
12
|
+
readonly description: "Button under the invalid page message that returns to page 1";
|
|
13
|
+
};
|
|
14
|
+
readonly "uic.DataGrid.expandRow": {
|
|
15
|
+
readonly defaultMessage: "Expand row";
|
|
16
|
+
readonly description: "Accessible name of the button that shows or hides a row's details";
|
|
17
|
+
};
|
|
18
|
+
readonly "uic.DataGrid.pagination": {
|
|
19
|
+
readonly defaultMessage: "Pagination";
|
|
20
|
+
readonly description: "Accessible name of a data grid's page navigation";
|
|
21
|
+
};
|
|
22
|
+
readonly "uic.DataGrid.range": {
|
|
23
|
+
readonly defaultMessage: "{start} - {end} of {total} items";
|
|
24
|
+
readonly description: "Beside a data grid's page navigation: the rows on screen out of the total. {start} and {end} are 1-based row numbers";
|
|
25
|
+
};
|
|
26
|
+
readonly "uic.DataGrid.settings": {
|
|
27
|
+
readonly defaultMessage: "Table Settings";
|
|
28
|
+
readonly description: "Button under a data grid that opens its column settings, and the title of that dialog";
|
|
29
|
+
};
|
|
30
|
+
readonly "uic.DataGrid.exportCsv": {
|
|
31
|
+
readonly defaultMessage: "Export CSV";
|
|
32
|
+
readonly description: "Button under a data grid that opens the CSV export dialog, and the title of that dialog";
|
|
33
|
+
};
|
|
34
|
+
readonly "uic.DataGrid.selectColumns": {
|
|
35
|
+
readonly defaultMessage: "Select columns to display";
|
|
36
|
+
readonly description: "Subtitle of a data grid's column settings and CSV export dialogs";
|
|
37
|
+
};
|
|
38
|
+
readonly "uic.DataGrid.searchColumns": {
|
|
39
|
+
readonly defaultMessage: "Search table columns";
|
|
40
|
+
readonly description: "Placeholder of the column search field in a data grid's dialogs, also shown when no column matches";
|
|
41
|
+
};
|
|
42
|
+
readonly "uic.DataGrid.reorderColumn": {
|
|
43
|
+
readonly defaultMessage: "Reorder {column}";
|
|
44
|
+
readonly description: "Accessible name of the drag handle beside a column in a data grid's column settings dialog. {column} is the column's label";
|
|
45
|
+
};
|
|
46
|
+
readonly "uic.DataGrid.reorderInstructions": {
|
|
47
|
+
readonly defaultMessage: "Press Space to pick up the column, use the arrow keys to move it, then press Space again to drop it or Escape to cancel.";
|
|
48
|
+
readonly description: "Screen reader instructions for a drag handle in a data grid's column settings dialog";
|
|
49
|
+
};
|
|
50
|
+
readonly "uic.DataGrid.reorderPickedUp": {
|
|
51
|
+
readonly defaultMessage: "Picked up {column}. It is at position {position} of {total}.";
|
|
52
|
+
readonly description: "Screen reader announcement when a column is picked up for reordering in the column settings dialog. {position} is 1-based";
|
|
53
|
+
};
|
|
54
|
+
readonly "uic.DataGrid.reorderMoved": {
|
|
55
|
+
readonly defaultMessage: "{column} moved to position {position} of {total}.";
|
|
56
|
+
readonly description: "Screen reader announcement while a picked-up column moves in the column settings dialog. {position} is 1-based";
|
|
57
|
+
};
|
|
58
|
+
readonly "uic.DataGrid.reorderDropped": {
|
|
59
|
+
readonly defaultMessage: "{column} dropped at position {position} of {total}.";
|
|
60
|
+
readonly description: "Screen reader announcement when a column is dropped in the column settings dialog. {position} is 1-based";
|
|
61
|
+
};
|
|
62
|
+
readonly "uic.DataGrid.reorderCancelled": {
|
|
63
|
+
readonly defaultMessage: "Reordering cancelled. {column} is back at position {position} of {total}.";
|
|
64
|
+
readonly description: "Screen reader announcement when reordering a column is cancelled in the column settings dialog. {position} is 1-based";
|
|
65
|
+
};
|
|
66
|
+
readonly "uic.DataGrid.export": {
|
|
67
|
+
readonly defaultMessage: "Export";
|
|
68
|
+
readonly description: "Primary button of a data grid's CSV export dialog";
|
|
69
|
+
};
|
|
70
|
+
};
|