@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,13 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** The attribute that opts a target into hiding its native bar. */
|
|
3
|
+
export declare const OVERLAY_SCROLLBAR_ATTRIBUTE = "data-uic-overlay-scrollbar";
|
|
4
|
+
export interface OverlayScrollbarProps {
|
|
5
|
+
/** The scroll container the thumb tracks. */
|
|
6
|
+
targetRef: RefObject<HTMLElement | null>;
|
|
7
|
+
/** Extra class names on the track. */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function OverlayScrollbar({ targetRef, className }: OverlayScrollbarProps): import("react").JSX.Element | null;
|
|
11
|
+
export declare namespace OverlayScrollbar {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { useLayoutEffect as e, useRef as t, useSyncExternalStore as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/OverlayScrollbar/OverlayScrollbar.tsx
|
|
5
|
+
var i = "data-uic-overlay-scrollbar", a = 24, o = "(pointer: coarse)", s = null;
|
|
6
|
+
function c() {
|
|
7
|
+
return s ||= window.matchMedia(o), s;
|
|
8
|
+
}
|
|
9
|
+
function l(e) {
|
|
10
|
+
let t = c();
|
|
11
|
+
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
12
|
+
}
|
|
13
|
+
var u = () => c().matches, d = () => !0;
|
|
14
|
+
function f({ targetRef: o, className: s }) {
|
|
15
|
+
let c = t(null), f = t(null), p = n(l, u, d);
|
|
16
|
+
return e(() => {
|
|
17
|
+
let e = o.current, t = c.current, n = f.current;
|
|
18
|
+
if (p || !e || !t || !n) return;
|
|
19
|
+
e.setAttribute(i, "true");
|
|
20
|
+
let r, s = () => {
|
|
21
|
+
let { scrollTop: r, scrollHeight: i, clientHeight: o } = e, s = i > o + 1;
|
|
22
|
+
if (t.dataset.scrollable = s ? "true" : "false", !s) return;
|
|
23
|
+
let c = Math.max(o / i * o, a), l = o - c, u = Math.min(Math.max(r / (i - o) * l || 0, 0), l);
|
|
24
|
+
n.style.height = `${c}px`, n.style.transform = `translateY(${u}px)`;
|
|
25
|
+
}, l = () => {
|
|
26
|
+
r === void 0 && (r = requestAnimationFrame(() => {
|
|
27
|
+
r = void 0, s();
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
e.addEventListener("scroll", l, { passive: !0 });
|
|
31
|
+
let u = new ResizeObserver(l);
|
|
32
|
+
u.observe(e);
|
|
33
|
+
let d = new MutationObserver(l);
|
|
34
|
+
d.observe(e, {
|
|
35
|
+
childList: !0,
|
|
36
|
+
subtree: !0,
|
|
37
|
+
attributes: !0,
|
|
38
|
+
attributeFilter: ["style", "class"]
|
|
39
|
+
});
|
|
40
|
+
let m = 0, h = 0, g = (t) => {
|
|
41
|
+
let { scrollHeight: r, clientHeight: i } = e, a = i - n.getBoundingClientRect().height;
|
|
42
|
+
if (a <= 0) return;
|
|
43
|
+
let o = (t.clientY - m) / a;
|
|
44
|
+
e.scrollTop = h + o * (r - i);
|
|
45
|
+
}, _ = () => {
|
|
46
|
+
t.dataset.dragging = "false", window.removeEventListener("pointermove", g), window.removeEventListener("pointerup", _);
|
|
47
|
+
}, v = (n) => {
|
|
48
|
+
n.preventDefault(), m = n.clientY, h = e.scrollTop, t.dataset.dragging = "true", window.addEventListener("pointermove", g), window.addEventListener("pointerup", _);
|
|
49
|
+
};
|
|
50
|
+
return n.addEventListener("pointerdown", v), s(), () => {
|
|
51
|
+
e.removeAttribute(i), e.removeEventListener("scroll", l), u.disconnect(), d.disconnect(), n.removeEventListener("pointerdown", v), _(), r !== void 0 && cancelAnimationFrame(r);
|
|
52
|
+
};
|
|
53
|
+
}, [o, p]), p ? null : /* @__PURE__ */ r("div", {
|
|
54
|
+
ref: c,
|
|
55
|
+
className: ["uic-overlay-scrollbar", s].filter(Boolean).join(" "),
|
|
56
|
+
"data-scrollable": "false",
|
|
57
|
+
"aria-hidden": "true",
|
|
58
|
+
children: /* @__PURE__ */ r("div", {
|
|
59
|
+
ref: f,
|
|
60
|
+
className: "uic-overlay-scrollbar__thumb"
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
f.displayName = "OverlayScrollbar";
|
|
65
|
+
//#endregion
|
|
66
|
+
export { i as OVERLAY_SCROLLBAR_ATTRIBUTE, f as OverlayScrollbar };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=OverlayScrollbar2.js.map
|
|
69
|
+
import "../../assets/components/OverlayScrollbar/OverlayScrollbar.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayScrollbar2.js","names":[],"sources":["../../../src/components/OverlayScrollbar/OverlayScrollbar.tsx"],"sourcesContent":["/**\n * OverlayScrollbar\n *\n * A persistent scroll thumb painted over a scroll container instead of beside\n * it. On pointer-driven platforms it hides the target's native bar and draws\n * its own track, so becoming scrollable never changes the content width\n * (`overflow: overlay` is gone from Chromium, and `scrollbar-gutter: stable`\n * leaves a permanently empty strip). The thumb stays visible while the\n * content overflows, which is what makes scrollability discoverable, and it\n * can be dragged. Every update writes to the DOM directly, so scrolling stays\n * out of React's render loop.\n *\n * Render it inside the target's positioned ancestor: the track is\n * `position: absolute`. On touch-primary platforms it renders nothing and\n * leaves the native indicator alone.\n *\n * The track's stacking order is `--overlay-scrollbar-z` (default 1);\n * raise it to clear sticky chrome inside the scroll column.\n *\n * @example\n * <div style={{ position: \"relative\" }}>\n * <div ref={scrollRef} style={{ overflow: \"auto\", height: \"100%\" }}>...</div>\n * <OverlayScrollbar targetRef={scrollRef} />\n * </div>\n */\nimport { useLayoutEffect, useRef, useSyncExternalStore, type RefObject } from \"react\";\n\nimport \"./OverlayScrollbar.css\";\n\n/** The attribute that opts a target into hiding its native bar. */\nexport const OVERLAY_SCROLLBAR_ATTRIBUTE = \"data-uic-overlay-scrollbar\";\n\nconst MIN_THUMB_HEIGHT = 24;\n\n/*\n * Touch-primary platforms keep their native indicator: it already floats over\n * the content, a persistent bar is not the convention there, and iOS momentum\n * scrolling starves JS of the events a drawn thumb needs. The gate is the\n * pointer type, not the measured scrollbar width: macOS with a trackpad has\n * zero-width overlay bars, yet a transient bar is the problem this solves.\n *\n * A module-level singleton and a boolean snapshot, per the store contract\n * `useSyncExternalStore` requires.\n */\nconst COARSE_POINTER_QUERY = \"(pointer: coarse)\";\nlet coarsePointerQueryList: MediaQueryList | null = null;\n\nfunction getCoarsePointerQueryList(): MediaQueryList {\n if (!coarsePointerQueryList) {\n coarsePointerQueryList = window.matchMedia(COARSE_POINTER_QUERY);\n }\n return coarsePointerQueryList;\n}\n\nfunction subscribeToPointerType(onStoreChange: () => void): () => void {\n const list = getCoarsePointerQueryList();\n list.addEventListener(\"change\", onStoreChange);\n return () => list.removeEventListener(\"change\", onStoreChange);\n}\n\nconst getIsTouchPrimary = (): boolean => getCoarsePointerQueryList().matches;\n// Assume touch on the server, so nothing is hidden before hydration measures.\nconst getIsTouchPrimaryOnServer = (): boolean => true;\n\nexport interface OverlayScrollbarProps {\n /** The scroll container the thumb tracks. */\n targetRef: RefObject<HTMLElement | null>;\n /** Extra class names on the track. */\n className?: string;\n}\n\nexport function OverlayScrollbar({ targetRef, className }: OverlayScrollbarProps) {\n const trackRef = useRef<HTMLDivElement>(null);\n const thumbRef = useRef<HTMLDivElement>(null);\n const isTouchPrimary = useSyncExternalStore(\n subscribeToPointerType,\n getIsTouchPrimary,\n getIsTouchPrimaryOnServer,\n );\n\n useLayoutEffect(() => {\n const el = targetRef.current;\n const track = trackRef.current;\n const thumb = thumbRef.current;\n if (isTouchPrimary || !el || !track || !thumb) {\n return;\n }\n\n // Set here, not in markup, so the native bar is untouched wherever this\n // never renders a thumb.\n el.setAttribute(OVERLAY_SCROLLBAR_ATTRIBUTE, \"true\");\n\n let rafId: number | undefined;\n\n const layout = () => {\n const { scrollTop, scrollHeight, clientHeight } = el;\n const scrollable = scrollHeight > clientHeight + 1;\n track.dataset.scrollable = scrollable ? \"true\" : \"false\";\n if (!scrollable) {\n return;\n }\n const thumbHeight = Math.max(\n (clientHeight / scrollHeight) * clientHeight,\n MIN_THUMB_HEIGHT,\n );\n const maxTop = clientHeight - thumbHeight;\n // A fractional scrollTop (zoom, DPR > 1) can exceed the integer range.\n const top = Math.min(\n Math.max((scrollTop / (scrollHeight - clientHeight)) * maxTop || 0, 0),\n maxTop,\n );\n thumb.style.height = `${thumbHeight}px`;\n thumb.style.transform = `translateY(${top}px)`;\n };\n\n const scheduleLayout = () => {\n if (rafId !== undefined) {\n return;\n }\n rafId = requestAnimationFrame(() => {\n rafId = undefined;\n layout();\n });\n };\n\n el.addEventListener(\"scroll\", scheduleLayout, { passive: true });\n const resizeObserver = new ResizeObserver(scheduleLayout);\n resizeObserver.observe(el);\n // `scrollHeight` changes with content, which no ResizeObserver on the\n // scroller reports: watch subtree mutations, rAF-throttled.\n const mutationObserver = new MutationObserver(scheduleLayout);\n mutationObserver.observe(el, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: [\"style\", \"class\"],\n });\n\n // The native bar is hidden, so the thumb owns dragging.\n let dragStartY = 0;\n let dragStartScrollTop = 0;\n const onPointerMove = (event: PointerEvent) => {\n const { scrollHeight, clientHeight } = el;\n const thumbHeight = thumb.getBoundingClientRect().height;\n const maxTop = clientHeight - thumbHeight;\n if (maxTop <= 0) {\n return;\n }\n const deltaRatio = (event.clientY - dragStartY) / maxTop;\n el.scrollTop = dragStartScrollTop + deltaRatio * (scrollHeight - clientHeight);\n };\n const onPointerUp = () => {\n track.dataset.dragging = \"false\";\n window.removeEventListener(\"pointermove\", onPointerMove);\n window.removeEventListener(\"pointerup\", onPointerUp);\n };\n const onPointerDown = (event: PointerEvent) => {\n event.preventDefault();\n dragStartY = event.clientY;\n dragStartScrollTop = el.scrollTop;\n track.dataset.dragging = \"true\";\n window.addEventListener(\"pointermove\", onPointerMove);\n window.addEventListener(\"pointerup\", onPointerUp);\n };\n thumb.addEventListener(\"pointerdown\", onPointerDown);\n\n layout();\n\n return () => {\n el.removeAttribute(OVERLAY_SCROLLBAR_ATTRIBUTE);\n el.removeEventListener(\"scroll\", scheduleLayout);\n resizeObserver.disconnect();\n mutationObserver.disconnect();\n thumb.removeEventListener(\"pointerdown\", onPointerDown);\n onPointerUp();\n if (rafId !== undefined) {\n cancelAnimationFrame(rafId);\n }\n };\n }, [targetRef, isTouchPrimary]);\n\n if (isTouchPrimary) {\n return null;\n }\n\n return (\n <div\n ref={trackRef}\n className={[\"uic-overlay-scrollbar\", className].filter(Boolean).join(\" \")}\n data-scrollable=\"false\"\n aria-hidden=\"true\"\n >\n <div ref={thumbRef} className=\"uic-overlay-scrollbar__thumb\" />\n </div>\n );\n}\n\nOverlayScrollbar.displayName = \"OverlayScrollbar\";\n"],"mappings":";;;;AA8BA,IAAa,IAA8B,8BAErC,IAAmB,IAYnB,IAAuB,qBACzB,IAAgD;AAEpD,SAAS,IAA4C;CAInD,OAHA,AACE,MAAyB,OAAO,WAAW,CAAoB,GAE1D;AACT;AAEA,SAAS,EAAuB,GAAuC;CACrE,IAAM,IAAO,EAA0B;CAEvC,OADA,EAAK,iBAAiB,UAAU,CAAa,SAChC,EAAK,oBAAoB,UAAU,CAAa;AAC/D;AAEA,IAAM,UAAmC,EAA0B,CAAC,CAAC,SAE/D,UAA2C;AASjD,SAAgB,EAAiB,EAAE,cAAW,gBAAoC;CAChF,IAAM,IAAW,EAAuB,IAAI,GACtC,IAAW,EAAuB,IAAI,GACtC,IAAiB,EACrB,GACA,GACA,CACF;CA2GA,OAzGA,QAAsB;EACpB,IAAM,IAAK,EAAU,SACf,IAAQ,EAAS,SACjB,IAAQ,EAAS;EACvB,IAAI,KAAkB,CAAC,KAAM,CAAC,KAAS,CAAC,GACtC;EAKF,EAAG,aAAa,GAA6B,MAAM;EAEnD,IAAI,GAEE,UAAe;GACnB,IAAM,EAAE,cAAW,iBAAc,oBAAiB,GAC5C,IAAa,IAAe,IAAe;GAEjD,IADA,EAAM,QAAQ,aAAa,IAAa,SAAS,SAC7C,CAAC,GACH;GAEF,IAAM,IAAc,KAAK,IACtB,IAAe,IAAgB,GAChC,CACF,GACM,IAAS,IAAe,GAExB,IAAM,KAAK,IACf,KAAK,IAAK,KAAa,IAAe,KAAiB,KAAU,GAAG,CAAC,GACrE,CACF;GAEA,AADA,EAAM,MAAM,SAAS,GAAG,EAAY,KACpC,EAAM,MAAM,YAAY,cAAc,EAAI;EAC5C,GAEM,UAAuB;GACvB,MAAU,KAAA,MAGd,IAAQ,4BAA4B;IAElC,AADA,IAAQ,KAAA,GACR,EAAO;GACT,CAAC;EACH;EAEA,EAAG,iBAAiB,UAAU,GAAgB,EAAE,SAAS,GAAK,CAAC;EAC/D,IAAM,IAAiB,IAAI,eAAe,CAAc;EACxD,EAAe,QAAQ,CAAE;EAGzB,IAAM,IAAmB,IAAI,iBAAiB,CAAc;EAC5D,EAAiB,QAAQ,GAAI;GAC3B,WAAW;GACX,SAAS;GACT,YAAY;GACZ,iBAAiB,CAAC,SAAS,OAAO;EACpC,CAAC;EAGD,IAAI,IAAa,GACb,IAAqB,GACnB,KAAiB,MAAwB;GAC7C,IAAM,EAAE,iBAAc,oBAAiB,GAEjC,IAAS,IADK,EAAM,sBAAsB,CAAC,CAAC;GAElD,IAAI,KAAU,GACZ;GAEF,IAAM,KAAc,EAAM,UAAU,KAAc;GAClD,EAAG,YAAY,IAAqB,KAAc,IAAe;EACnE,GACM,UAAoB;GAGxB,AAFA,EAAM,QAAQ,WAAW,SACzB,OAAO,oBAAoB,eAAe,CAAa,GACvD,OAAO,oBAAoB,aAAa,CAAW;EACrD,GACM,KAAiB,MAAwB;GAM7C,AALA,EAAM,eAAe,GACrB,IAAa,EAAM,SACnB,IAAqB,EAAG,WACxB,EAAM,QAAQ,WAAW,QACzB,OAAO,iBAAiB,eAAe,CAAa,GACpD,OAAO,iBAAiB,aAAa,CAAW;EAClD;EAKA,OAJA,EAAM,iBAAiB,eAAe,CAAa,GAEnD,EAAO,SAEM;GAOX,AANA,EAAG,gBAAgB,CAA2B,GAC9C,EAAG,oBAAoB,UAAU,CAAc,GAC/C,EAAe,WAAW,GAC1B,EAAiB,WAAW,GAC5B,EAAM,oBAAoB,eAAe,CAAa,GACtD,EAAY,GACR,MAAU,KAAA,KACZ,qBAAqB,CAAK;EAE9B;CACF,GAAG,CAAC,GAAW,CAAc,CAAC,GAE1B,IACK,OAIP,kBAAC,OAAD;EACE,KAAK;EACL,WAAW,CAAC,yBAAyB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;EACxE,mBAAgB;EAChB,eAAY;EAEZ,UAAA,kBAAC,OAAD;GAAK,KAAK;GAAU,WAAU;EAAgC,CAAA;CAC3D,CAAA;AAET;AAEA,EAAiB,cAAc"}
|
|
@@ -1,18 +1,34 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface PageHeaderProps {
|
|
3
|
-
/** Page title
|
|
3
|
+
/** Page title, rendered as the page's `h1` */
|
|
4
4
|
title: string;
|
|
5
|
-
/** Page description
|
|
5
|
+
/** Page description, below the title */
|
|
6
6
|
description?: string;
|
|
7
|
-
/**
|
|
7
|
+
/** Actions on the trailing side; they wrap below the title when crowded */
|
|
8
8
|
actions?: ReactNode;
|
|
9
|
-
/** Error message
|
|
9
|
+
/** Error message shown in a banner below the header */
|
|
10
10
|
error?: string | null;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Secondary line under the message, for the raw detail a server returned.
|
|
13
|
+
* Kept separate so the message stays readable when the detail is long.
|
|
14
|
+
*/
|
|
15
|
+
errorDetail?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Callback for the Retry button, rendered before the dismiss control when
|
|
18
|
+
* set. Dismissal is a pure dismissal and must not retry, which is why these
|
|
19
|
+
* are two props rather than one.
|
|
20
|
+
*/
|
|
21
|
+
onRetry?: () => void;
|
|
22
|
+
/** Label for the Retry button. Default: the catalog's `uic.common.retry` */
|
|
23
|
+
retryLabel?: string;
|
|
24
|
+
/** Callback when the error is dismissed; renders the dismiss button */
|
|
12
25
|
onErrorDismiss?: () => void;
|
|
13
|
-
/** Additional CSS class names */
|
|
26
|
+
/** Additional CSS class names on the `header` element */
|
|
14
27
|
className?: string;
|
|
15
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Accessible label for the dismiss button. Default: the catalog's
|
|
30
|
+
* `uic.PageHeader.dismissError` ("Dismiss error")
|
|
31
|
+
*/
|
|
16
32
|
dismissErrorLabel?: string;
|
|
17
33
|
}
|
|
18
|
-
export declare function PageHeader({ title, description, actions, error, onErrorDismiss, className, dismissErrorLabel, }: PageHeaderProps): import("react").JSX.Element;
|
|
34
|
+
export declare function PageHeader({ title, description, actions, error, onErrorDismiss, className, errorDetail, onRetry, retryLabel, dismissErrorLabel, }: PageHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineMessages as e } from "../../i18n/catalog.js";
|
|
2
|
+
//#region src/components/PageHeader/PageHeader.messages.ts
|
|
3
|
+
var t = e({ "uic.PageHeader.dismissError": {
|
|
4
|
+
defaultMessage: "Dismiss error",
|
|
5
|
+
description: "Accessible name of the icon button that closes the error banner"
|
|
6
|
+
} });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as pageHeaderMessages };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=PageHeader.messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.messages.js","names":[],"sources":["../../../src/components/PageHeader/PageHeader.messages.ts"],"sourcesContent":["import { defineMessages } from \"../../i18n/catalog\";\n\nexport const pageHeaderMessages = defineMessages({\n \"uic.PageHeader.dismissError\": {\n defaultMessage: \"Dismiss error\",\n description: \"Accessible name of the icon button that closes the error banner\",\n },\n});\n"],"mappings":";;AAEA,IAAa,IAAqB,EAAe,EAC/C,+BAA+B;CAC7B,gBAAgB;CAChB,aAAa;AACf,EACF,CAAC"}
|
|
@@ -1,43 +1,70 @@
|
|
|
1
|
+
import { useUicTranslator as e } from "../../i18n/useUicTranslator.js";
|
|
1
2
|
/* empty css */
|
|
2
|
-
import {
|
|
3
|
+
import { Button as t } from "@astryxdesign/core/Button";
|
|
4
|
+
import { Heading as n } from "@astryxdesign/core/Heading";
|
|
5
|
+
import { Text as r } from "@astryxdesign/core/Text";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
import { Icon as o } from "@astryxdesign/core/Icon";
|
|
8
|
+
import { IconButton as s } from "@astryxdesign/core/IconButton";
|
|
3
9
|
//#region src/components/PageHeader/PageHeader.tsx
|
|
4
|
-
function
|
|
5
|
-
let
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
className:
|
|
8
|
-
children: [/* @__PURE__ */
|
|
9
|
-
className: "page-header__content",
|
|
10
|
-
children: [/* @__PURE__ */
|
|
11
|
-
className: "page-header__text",
|
|
12
|
-
children: [/* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
function c({ title: c, description: l, actions: u, error: d, onErrorDismiss: f, className: p = "", errorDetail: m, onRetry: h, retryLabel: g, dismissErrorLabel: _ }) {
|
|
11
|
+
let v = e(), y = ["uic-page-header", p].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ a("header", {
|
|
13
|
+
className: y,
|
|
14
|
+
children: [/* @__PURE__ */ a("div", {
|
|
15
|
+
className: "uic-page-header__content",
|
|
16
|
+
children: [/* @__PURE__ */ a("div", {
|
|
17
|
+
className: "uic-page-header__text",
|
|
18
|
+
children: [/* @__PURE__ */ i(n, {
|
|
19
|
+
level: 1,
|
|
20
|
+
className: "uic-page-header__title",
|
|
21
|
+
children: c
|
|
22
|
+
}), l && /* @__PURE__ */ i(r, {
|
|
23
|
+
as: "p",
|
|
24
|
+
color: "secondary",
|
|
25
|
+
className: "uic-page-header__description",
|
|
26
|
+
children: l
|
|
18
27
|
})]
|
|
19
|
-
}),
|
|
20
|
-
className: "page-header__actions",
|
|
21
|
-
children:
|
|
28
|
+
}), u && /* @__PURE__ */ i("div", {
|
|
29
|
+
className: "uic-page-header__actions",
|
|
30
|
+
children: u
|
|
22
31
|
})]
|
|
23
|
-
}),
|
|
24
|
-
className: "page-header__error",
|
|
32
|
+
}), d && /* @__PURE__ */ a("div", {
|
|
33
|
+
className: "uic-page-header__error",
|
|
25
34
|
role: "alert",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
27
|
-
className: "page-header__error-
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
children: [/* @__PURE__ */ a("div", {
|
|
36
|
+
className: "uic-page-header__error-body",
|
|
37
|
+
children: [/* @__PURE__ */ i(r, {
|
|
38
|
+
className: "uic-page-header__error-text",
|
|
39
|
+
color: "inherit",
|
|
40
|
+
children: d
|
|
41
|
+
}), m && /* @__PURE__ */ i(r, {
|
|
42
|
+
type: "supporting",
|
|
43
|
+
className: "uic-page-header__error-detail",
|
|
44
|
+
children: m
|
|
45
|
+
})]
|
|
46
|
+
}), (h || f) && /* @__PURE__ */ a("div", {
|
|
47
|
+
className: "uic-page-header__error-actions",
|
|
48
|
+
children: [h && /* @__PURE__ */ i(t, {
|
|
49
|
+
variant: "secondary",
|
|
50
|
+
size: "sm",
|
|
51
|
+
className: "uic-page-header__error-retry",
|
|
52
|
+
label: g ?? v("uic.common.retry"),
|
|
53
|
+
onClick: h
|
|
54
|
+
}), f && /* @__PURE__ */ i(s, {
|
|
55
|
+
variant: "ghost",
|
|
56
|
+
size: "sm",
|
|
57
|
+
className: "uic-page-header__error-dismiss",
|
|
58
|
+
label: _ ?? v("uic.PageHeader.dismissError"),
|
|
59
|
+
icon: /* @__PURE__ */ i(o, { icon: "close" }),
|
|
60
|
+
onClick: f
|
|
61
|
+
})]
|
|
35
62
|
})]
|
|
36
63
|
})]
|
|
37
64
|
});
|
|
38
65
|
}
|
|
39
66
|
//#endregion
|
|
40
|
-
export {
|
|
67
|
+
export { c as PageHeader };
|
|
41
68
|
|
|
42
69
|
//# sourceMappingURL=PageHeader2.js.map
|
|
43
70
|
import "../../assets/components/PageHeader/PageHeader.css";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader2.js","names":[],"sources":["../../../src/components/PageHeader/PageHeader.tsx"],"sourcesContent":["/**\n * PageHeader
|
|
1
|
+
{"version":3,"file":"PageHeader2.js","names":[],"sources":["../../../src/components/PageHeader/PageHeader.tsx"],"sourcesContent":["/**\n * PageHeader\n *\n * A page's title, description and actions, with an optional error banner\n * under them. Built on Astryx `Heading`, `Text`, `Button` and `IconButton`.\n *\n * @example\n * <PageHeader title=\"Models\" description=\"Manage and browse your local models\" />\n *\n * @example\n * <PageHeader\n * title=\"Settings\"\n * actions={<Button variant=\"primary\" label=\"Save\" onClick={save} />}\n * />\n *\n * @example\n * <PageHeader title=\"Engines\" error={error} onRetry={reload} onErrorDismiss={clear} />\n */\nimport type { ReactNode } from \"react\";\nimport { Button } from \"@astryxdesign/core/Button\";\nimport { Heading } from \"@astryxdesign/core/Heading\";\nimport { Icon } from \"@astryxdesign/core/Icon\";\nimport { IconButton } from \"@astryxdesign/core/IconButton\";\nimport { Text } from \"@astryxdesign/core/Text\";\n\nimport { useUicTranslator } from \"../../i18n/useUicTranslator\";\nimport \"./PageHeader.css\";\n\nexport interface PageHeaderProps {\n /** Page title, rendered as the page's `h1` */\n title: string;\n /** Page description, below the title */\n description?: string;\n /** Actions on the trailing side; they wrap below the title when crowded */\n actions?: ReactNode;\n /** Error message shown in a banner below the header */\n error?: string | null;\n /**\n * Secondary line under the message, for the raw detail a server returned.\n * Kept separate so the message stays readable when the detail is long.\n */\n errorDetail?: string | null;\n /**\n * Callback for the Retry button, rendered before the dismiss control when\n * set. Dismissal is a pure dismissal and must not retry, which is why these\n * are two props rather than one.\n */\n onRetry?: () => void;\n /** Label for the Retry button. Default: the catalog's `uic.common.retry` */\n retryLabel?: string;\n /** Callback when the error is dismissed; renders the dismiss button */\n onErrorDismiss?: () => void;\n /** Additional CSS class names on the `header` element */\n className?: string;\n /**\n * Accessible label for the dismiss button. Default: the catalog's\n * `uic.PageHeader.dismissError` (\"Dismiss error\")\n */\n dismissErrorLabel?: string;\n}\n\nexport function PageHeader({\n title,\n description,\n actions,\n error,\n onErrorDismiss,\n className = \"\",\n errorDetail,\n onRetry,\n retryLabel,\n dismissErrorLabel,\n}: PageHeaderProps) {\n const t = useUicTranslator();\n const classes = [\"uic-page-header\", className].filter(Boolean).join(\" \");\n\n return (\n <header className={classes}>\n <div className=\"uic-page-header__content\">\n <div className=\"uic-page-header__text\">\n <Heading level={1} className=\"uic-page-header__title\">\n {title}\n </Heading>\n {description && (\n <Text as=\"p\" color=\"secondary\" className=\"uic-page-header__description\">\n {description}\n </Text>\n )}\n </div>\n {actions && <div className=\"uic-page-header__actions\">{actions}</div>}\n </div>\n {error && (\n <div className=\"uic-page-header__error\" role=\"alert\">\n <div className=\"uic-page-header__error-body\">\n <Text className=\"uic-page-header__error-text\" color=\"inherit\">\n {error}\n </Text>\n {errorDetail && (\n <Text type=\"supporting\" className=\"uic-page-header__error-detail\">\n {errorDetail}\n </Text>\n )}\n </div>\n {(onRetry || onErrorDismiss) && (\n <div className=\"uic-page-header__error-actions\">\n {onRetry && (\n <Button\n variant=\"secondary\"\n size=\"sm\"\n className=\"uic-page-header__error-retry\"\n label={retryLabel ?? t(\"uic.common.retry\")}\n onClick={onRetry}\n />\n )}\n {onErrorDismiss && (\n <IconButton\n variant=\"ghost\"\n size=\"sm\"\n className=\"uic-page-header__error-dismiss\"\n label={dismissErrorLabel ?? t(\"uic.PageHeader.dismissError\")}\n icon={<Icon icon=\"close\" />}\n onClick={onErrorDismiss}\n />\n )}\n </div>\n )}\n </div>\n )}\n </header>\n );\n}\n"],"mappings":";;;;;;;;;AA6DA,SAAgB,EAAW,EACzB,UACA,gBACA,YACA,UACA,mBACA,eAAY,IACZ,gBACA,YACA,eACA,wBACkB;CAClB,IAAM,IAAI,EAAiB,GACrB,IAAU,CAAC,mBAAmB,CAAS,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;CAEvE,OACE,kBAAC,UAAD;EAAQ,WAAW;EAAnB,UAAA,CACE,kBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,GAAD;KAAS,OAAO;KAAG,WAAU;KAC1B,UAAA;IACM,CAAA,GACR,KACC,kBAAC,GAAD;KAAM,IAAG;KAAI,OAAM;KAAY,WAAU;KACtC,UAAA;IACG,CAAA,CAEL;GACJ,CAAA,GAAA,KAAW,kBAAC,OAAD;IAAK,WAAU;IAA4B,UAAA;GAAa,CAAA,CACjE;EACJ,CAAA,GAAA,KACC,kBAAC,OAAD;GAAK,WAAU;GAAyB,MAAK;GAA7C,UAAA,CACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,GAAD;KAAM,WAAU;KAA8B,OAAM;KACjD,UAAA;IACG,CAAA,GACL,KACC,kBAAC,GAAD;KAAM,MAAK;KAAa,WAAU;KAC/B,UAAA;IACG,CAAA,CAEL;GACH,CAAA,IAAA,KAAW,MACX,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACG,KACC,kBAAC,GAAD;KACE,SAAQ;KACR,MAAK;KACL,WAAU;KACV,OAAO,KAAc,EAAE,kBAAkB;KACzC,SAAS;IACV,CAAA,GAEF,KACC,kBAAC,GAAD;KACE,SAAQ;KACR,MAAK;KACL,WAAU;KACV,OAAO,KAAqB,EAAE,6BAA6B;KAC3D,MAAM,kBAAC,GAAD,EAAM,MAAK,QAAS,CAAA;KAC1B,SAAS;IACV,CAAA,CAEA;GAEJ,CAAA,CAAA;EAED,CAAA,CAAA;;AAEZ"}
|
|
@@ -3,8 +3,8 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
//#region src/components/PageLayout/PageLayout.tsx
|
|
4
4
|
function t({ children: t, variant: n = "standard", className: r = "", ...i }) {
|
|
5
5
|
let a = [
|
|
6
|
-
"page-layout",
|
|
7
|
-
`page-layout--${n}`,
|
|
6
|
+
"uic-page-layout",
|
|
7
|
+
`uic-page-layout--${n}`,
|
|
8
8
|
r
|
|
9
9
|
].filter(Boolean).join(" ");
|
|
10
10
|
return /* @__PURE__ */ e("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout2.js","names":[],"sources":["../../../src/components/PageLayout/PageLayout.tsx"],"sourcesContent":["/**\n * PageLayout Component\n *\n * Standardized layout wrapper for all pages in the application.\n * Provides consistent max-width, centering, and spacing.\n *\n * @example\n * // Standard page (900px max-width)\n * <PageLayout>\n * <PageHeader title=\"Models\" description=\"Manage your models\" />\n * <Content />\n * </PageLayout>\n *\n * @example\n * // Wide page (1400px max-width)\n * <PageLayout variant=\"wide\">\n * <PageHeader title=\"Dashboard\" description=\"Overview\" />\n * <Content />\n * </PageLayout>\n *\n * @example\n * // Full-width page (no max-width clamp). Useful for pages that own their\n * // own internal layout chrome (e.g. a left sidebar) and need to span the\n * // entire available viewport width without centering or right-side gutter.\n * // Note: the mobile padding fallback is also disabled on `--full` so the\n * // page's own internal padding controls horizontal spacing.\n * <PageLayout variant=\"full\">\n * <Content />\n * </PageLayout>\n */\n\nimport type { ReactNode, HTMLAttributes } from \"react\";\nimport \"./PageLayout.css\";\n\nexport type PageLayoutVariant = \"standard\" | \"wide\" | \"full\";\n\nexport interface PageLayoutProps extends HTMLAttributes<HTMLDivElement> {\n /** Page content */\n children: ReactNode;\n /** Layout width variant: \"standard\" (900px), \"wide\" (1400px), or \"full\" (no max-width) */\n variant?: PageLayoutVariant;\n /** Additional CSS class names */\n className?: string;\n}\n\nexport function PageLayout({\n children,\n variant = \"standard\",\n className = \"\",\n ...props\n}: PageLayoutProps) {\n const classes = [\"page-layout\", `page-layout--${variant}`, className]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <div className={classes} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;AA6CA,SAAgB,EAAW,EACzB,aACA,aAAU,YACV,eAAY,IACZ,GAAG,KACe;CAClB,IAAM,IAAU;EAAC;
|
|
1
|
+
{"version":3,"file":"PageLayout2.js","names":[],"sources":["../../../src/components/PageLayout/PageLayout.tsx"],"sourcesContent":["/**\n * PageLayout Component\n *\n * Standardized layout wrapper for all pages in the application.\n * Provides consistent max-width, centering, and spacing.\n *\n * @example\n * // Standard page (900px max-width)\n * <PageLayout>\n * <PageHeader title=\"Models\" description=\"Manage your models\" />\n * <Content />\n * </PageLayout>\n *\n * @example\n * // Wide page (1400px max-width)\n * <PageLayout variant=\"wide\">\n * <PageHeader title=\"Dashboard\" description=\"Overview\" />\n * <Content />\n * </PageLayout>\n *\n * @example\n * // Full-width page (no max-width clamp). Useful for pages that own their\n * // own internal layout chrome (e.g. a left sidebar) and need to span the\n * // entire available viewport width without centering or right-side gutter.\n * // Note: the mobile padding fallback is also disabled on `--full` so the\n * // page's own internal padding controls horizontal spacing.\n * <PageLayout variant=\"full\">\n * <Content />\n * </PageLayout>\n */\n\nimport type { ReactNode, HTMLAttributes } from \"react\";\nimport \"./PageLayout.css\";\n\nexport type PageLayoutVariant = \"standard\" | \"wide\" | \"full\";\n\nexport interface PageLayoutProps extends HTMLAttributes<HTMLDivElement> {\n /** Page content */\n children: ReactNode;\n /** Layout width variant: \"standard\" (900px), \"wide\" (1400px), or \"full\" (no max-width) */\n variant?: PageLayoutVariant;\n /** Additional CSS class names */\n className?: string;\n}\n\nexport function PageLayout({\n children,\n variant = \"standard\",\n className = \"\",\n ...props\n}: PageLayoutProps) {\n const classes = [\"uic-page-layout\", `uic-page-layout--${variant}`, className]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <div className={classes} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;AA6CA,SAAgB,EAAW,EACzB,aACA,aAAU,YACV,eAAY,IACZ,GAAG,KACe;CAClB,IAAM,IAAU;EAAC;EAAmB,oBAAoB;EAAW;CAAS,CAAC,CAC1E,OAAO,OAAO,CAAC,CACf,KAAK,GAAG;CAEX,OACE,kBAAC,OAAD;EAAK,WAAW;EAAS,GAAI;EAC1B;CACE,CAAA;AAET"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ComplexSelectorProps } from '../../forks/ComplexSelector';
|
|
3
|
+
export interface PagedSelectorOption {
|
|
4
|
+
value: string;
|
|
5
|
+
/** The option's name: the trigger text and the row's accessible name. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Drawn in the row in place of `label`, for a row richer than a string. */
|
|
8
|
+
labelContent?: ReactNode;
|
|
9
|
+
/** Leading visual (avatar, glyph). */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/** Secondary line under the label. */
|
|
12
|
+
description?: ReactNode;
|
|
13
|
+
/** Trailing content (tokens, meta). */
|
|
14
|
+
endContent?: ReactNode;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** A chosen value with its label, as `onChange` reports it. */
|
|
18
|
+
export interface PagedSelectorSelectedItem {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
type Passthrough = Pick<ComplexSelectorProps<string[]>, "label" | "isLabelHidden" | "description" | "isOptional" | "isRequired" | "isDisabled" | "isLoading" | "status" | "statusVariant" | "labelTooltip" | "size" | "variant" | "startIcon" | "width" | "placement" | "alignment" | "onOpenChange" | "xstyle" | "className" | "style" | "data-testid">;
|
|
23
|
+
interface PagedSelectorBaseProps extends Passthrough {
|
|
24
|
+
/** The loaded options, every page so far, in order. */
|
|
25
|
+
options: readonly PagedSelectorOption[];
|
|
26
|
+
/** Labels for selected values that may not be among `options`. */
|
|
27
|
+
labels?: Readonly<Record<string, string>>;
|
|
28
|
+
/**
|
|
29
|
+
* Placeholder while nothing is selected.
|
|
30
|
+
* @default the catalog's uic.PagedSelector.placeholder ("Select {label}")
|
|
31
|
+
*/
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** Show the search box at the top of the panel. @default true */
|
|
34
|
+
hasSearch?: boolean;
|
|
35
|
+
/** Controlled search text; uncontrolled without it. */
|
|
36
|
+
searchValue?: string;
|
|
37
|
+
/** Called on every keystroke in the search box; debounce it yourself. */
|
|
38
|
+
onSearchChange?: (searchValue: string) => void;
|
|
39
|
+
/** @default the catalog's uic.PagedSelector.searchPlaceholder ("Search") */
|
|
40
|
+
searchPlaceholder?: string;
|
|
41
|
+
/** @default the catalog's uic.PagedSelector.searchOptions ("Search options") */
|
|
42
|
+
searchLabel?: string;
|
|
43
|
+
/** @default the catalog's uic.PagedSelector.clearSearch ("Clear search options") */
|
|
44
|
+
clearSearchLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Called once each time the list is scrolled to within
|
|
47
|
+
* `endReachedThreshold` px of its end. Load the next page here.
|
|
48
|
+
*/
|
|
49
|
+
onEndReached?: () => void;
|
|
50
|
+
/** Distance from the end, in px, that counts as reaching it. @default 30 */
|
|
51
|
+
endReachedThreshold?: number;
|
|
52
|
+
/** Called when the list arrives at, or leaves, its end. */
|
|
53
|
+
onAtEndChange?: (isAtEnd: boolean) => void;
|
|
54
|
+
/** A spinner in the foot while the next page loads. */
|
|
55
|
+
isLoadingMore?: boolean;
|
|
56
|
+
/** Options in all pages; shows the "Total N items" foot when positive. */
|
|
57
|
+
totalCount?: number;
|
|
58
|
+
/** @default the catalog's uic.PagedSelector.totalItems ("Total {total} items") */
|
|
59
|
+
formatTotalCount?: (total: number) => string;
|
|
60
|
+
/**
|
|
61
|
+
* Replaces the empty list's content, the loading row included.
|
|
62
|
+
* @default the catalog's uic.PagedSelector.loading while `isLoading`, else
|
|
63
|
+
* uic.PagedSelector.noResults ("No results")
|
|
64
|
+
*/
|
|
65
|
+
emptyText?: ReactNode;
|
|
66
|
+
/** Above the option list, under the search box. */
|
|
67
|
+
header?: ReactNode;
|
|
68
|
+
/** Below the option list, in place of the total count. A function gets `close`. */
|
|
69
|
+
footer?: ReactNode | ((close: () => void) => ReactNode);
|
|
70
|
+
/** Height the option list scrolls within, in px. @default 260 */
|
|
71
|
+
listMaxHeight?: number;
|
|
72
|
+
/**
|
|
73
|
+
* How a multiple selection shows in the trigger: `labels` ("A, B, C, +2",
|
|
74
|
+
* as `MultiSelector`) or `badges` (tokens). @default "labels"
|
|
75
|
+
*/
|
|
76
|
+
triggerDisplay?: "labels" | "badges";
|
|
77
|
+
/** Selected items the trigger names before "+N". @default 3 */
|
|
78
|
+
maxTriggerItems?: number;
|
|
79
|
+
/** How a selected row is marked: the theme's check at its end, or a checkbox at its start. @default "check" */
|
|
80
|
+
selectionIndicator?: "check" | "checkbox";
|
|
81
|
+
/** A clear button in the trigger while something is selected. */
|
|
82
|
+
hasClear?: boolean;
|
|
83
|
+
/** Runs on clear. @default onChange(null) alone, onChange([]) with isMultiple */
|
|
84
|
+
onClear?: () => void;
|
|
85
|
+
}
|
|
86
|
+
export interface PagedSelectorSingleProps extends PagedSelectorBaseProps {
|
|
87
|
+
isMultiple?: false;
|
|
88
|
+
value?: string | null;
|
|
89
|
+
onChange?: (value: string | null, item: PagedSelectorSelectedItem | null) => void;
|
|
90
|
+
}
|
|
91
|
+
export interface PagedSelectorMultipleProps extends PagedSelectorBaseProps {
|
|
92
|
+
isMultiple: true;
|
|
93
|
+
value?: readonly string[];
|
|
94
|
+
onChange?: (value: string[], items: PagedSelectorSelectedItem[]) => void;
|
|
95
|
+
}
|
|
96
|
+
export type PagedSelectorProps = PagedSelectorSingleProps | PagedSelectorMultipleProps;
|
|
97
|
+
/**
|
|
98
|
+
* `ComplexSelector` insets its panel body by `--spacing-3`; this body brings
|
|
99
|
+
* Selector's own gutters, so the inset goes. Astryx's compiled `padding: 0`
|
|
100
|
+
* class (kmVPX3 is StyleX's key for `padding`), so no StyleX compiler is
|
|
101
|
+
* needed; the test suite fails if astryx.css stops defining it.
|
|
102
|
+
*/
|
|
103
|
+
export declare const CONTENT_RESET: {
|
|
104
|
+
readonly padding: "x1717udv";
|
|
105
|
+
};
|
|
106
|
+
export declare function PagedSelector(props: PagedSelectorProps): import("react").JSX.Element;
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const pagedSelectorMessages: {
|
|
2
|
+
readonly "uic.PagedSelector.placeholder": {
|
|
3
|
+
readonly defaultMessage: "Select {label}";
|
|
4
|
+
readonly description: "Placeholder of a selector with nothing selected; {label} is the field's label";
|
|
5
|
+
};
|
|
6
|
+
readonly "uic.PagedSelector.searchOptions": {
|
|
7
|
+
readonly defaultMessage: "Search options";
|
|
8
|
+
readonly description: "Accessible name of the search box at the top of a selector's option list";
|
|
9
|
+
};
|
|
10
|
+
readonly "uic.PagedSelector.searchPlaceholder": {
|
|
11
|
+
readonly defaultMessage: "Search";
|
|
12
|
+
readonly description: "Placeholder of the search box at the top of a selector's option list";
|
|
13
|
+
};
|
|
14
|
+
readonly "uic.PagedSelector.clearSearch": {
|
|
15
|
+
readonly defaultMessage: "Clear search options";
|
|
16
|
+
readonly description: "Accessible name of the button that empties a selector's search box";
|
|
17
|
+
};
|
|
18
|
+
readonly "uic.PagedSelector.noResults": {
|
|
19
|
+
readonly defaultMessage: "No results";
|
|
20
|
+
readonly description: "Shown in a selector's option list when no option matches";
|
|
21
|
+
};
|
|
22
|
+
readonly "uic.PagedSelector.loading": {
|
|
23
|
+
readonly defaultMessage: "Loading...";
|
|
24
|
+
readonly description: "Shown in a selector's empty option list while options are being fetched";
|
|
25
|
+
};
|
|
26
|
+
readonly "uic.PagedSelector.totalItems": {
|
|
27
|
+
readonly defaultMessage: "Total {total} items";
|
|
28
|
+
readonly description: "Foot of a selector's option list; {total} is how many options exist in all pages";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineMessages as e } from "../../i18n/catalog.js";
|
|
2
|
+
//#region src/components/PagedSelector/PagedSelector.messages.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
"uic.PagedSelector.placeholder": {
|
|
5
|
+
defaultMessage: "Select {label}",
|
|
6
|
+
description: "Placeholder of a selector with nothing selected; {label} is the field's label"
|
|
7
|
+
},
|
|
8
|
+
"uic.PagedSelector.searchOptions": {
|
|
9
|
+
defaultMessage: "Search options",
|
|
10
|
+
description: "Accessible name of the search box at the top of a selector's option list"
|
|
11
|
+
},
|
|
12
|
+
"uic.PagedSelector.searchPlaceholder": {
|
|
13
|
+
defaultMessage: "Search",
|
|
14
|
+
description: "Placeholder of the search box at the top of a selector's option list"
|
|
15
|
+
},
|
|
16
|
+
"uic.PagedSelector.clearSearch": {
|
|
17
|
+
defaultMessage: "Clear search options",
|
|
18
|
+
description: "Accessible name of the button that empties a selector's search box"
|
|
19
|
+
},
|
|
20
|
+
"uic.PagedSelector.noResults": {
|
|
21
|
+
defaultMessage: "No results",
|
|
22
|
+
description: "Shown in a selector's option list when no option matches"
|
|
23
|
+
},
|
|
24
|
+
"uic.PagedSelector.loading": {
|
|
25
|
+
defaultMessage: "Loading...",
|
|
26
|
+
description: "Shown in a selector's empty option list while options are being fetched"
|
|
27
|
+
},
|
|
28
|
+
"uic.PagedSelector.totalItems": {
|
|
29
|
+
defaultMessage: "Total {total} items",
|
|
30
|
+
description: "Foot of a selector's option list; {total} is how many options exist in all pages"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { t as pagedSelectorMessages };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=PagedSelector.messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagedSelector.messages.js","names":[],"sources":["../../../src/components/PagedSelector/PagedSelector.messages.ts"],"sourcesContent":["import { defineMessages } from \"../../i18n/catalog\";\n\nexport const pagedSelectorMessages = defineMessages({\n \"uic.PagedSelector.placeholder\": {\n defaultMessage: \"Select {label}\",\n description:\n \"Placeholder of a selector with nothing selected; {label} is the field's label\",\n },\n \"uic.PagedSelector.searchOptions\": {\n defaultMessage: \"Search options\",\n description:\n \"Accessible name of the search box at the top of a selector's option list\",\n },\n \"uic.PagedSelector.searchPlaceholder\": {\n defaultMessage: \"Search\",\n description: \"Placeholder of the search box at the top of a selector's option list\",\n },\n \"uic.PagedSelector.clearSearch\": {\n defaultMessage: \"Clear search options\",\n description: \"Accessible name of the button that empties a selector's search box\",\n },\n \"uic.PagedSelector.noResults\": {\n defaultMessage: \"No results\",\n description: \"Shown in a selector's option list when no option matches\",\n },\n \"uic.PagedSelector.loading\": {\n defaultMessage: \"Loading...\",\n description:\n \"Shown in a selector's empty option list while options are being fetched\",\n },\n \"uic.PagedSelector.totalItems\": {\n defaultMessage: \"Total {total} items\",\n description:\n \"Foot of a selector's option list; {total} is how many options exist in all pages\",\n },\n});\n"],"mappings":";;AAEA,IAAa,IAAwB,EAAe;CAClD,iCAAiC;EAC/B,gBAAgB;EAChB,aACE;CACJ;CACA,mCAAmC;EACjC,gBAAgB;EAChB,aACE;CACJ;CACA,uCAAuC;EACrC,gBAAgB;EAChB,aAAa;CACf;CACA,iCAAiC;EAC/B,gBAAgB;EAChB,aAAa;CACf;CACA,+BAA+B;EAC7B,gBAAgB;EAChB,aAAa;CACf;CACA,6BAA6B;EAC3B,gBAAgB;EAChB,aACE;CACJ;CACA,gCAAgC;EAC9B,gBAAgB;EAChB,aACE;CACJ;AACF,CAAC"}
|