@lablup/ui-common 0.1.0-alpha.8 → 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 +29 -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
package/README.md
CHANGED
|
@@ -1,34 +1,104 @@
|
|
|
1
1
|
# @lablup/ui-common
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Lablup's UI layer on top of [Astryx](https://github.com/facebook/astryx).
|
|
4
|
+
|
|
5
|
+
It gives Lablup products three things through one dependency:
|
|
6
|
+
|
|
7
|
+
- **Astryx itself**, re-exported 1:1. Every Astryx subpath exists here under the
|
|
8
|
+
same name.
|
|
9
|
+
- **The Lablup brand theme**, as an Astryx theme.
|
|
10
|
+
- **A few components of its own**, built on Astryx, for patterns Astryx does not
|
|
11
|
+
cover.
|
|
4
12
|
|
|
5
13
|
Consumers are Lablup product frontends, including
|
|
6
14
|
[all-smi](https://github.com/lablup/all-smi). The package holds presentation
|
|
7
15
|
only. It has no API client, no application state, no router, and no
|
|
8
|
-
desktop-shell integration
|
|
9
|
-
a component impossible to share.
|
|
16
|
+
desktop-shell integration.
|
|
10
17
|
|
|
11
18
|
## Install
|
|
12
19
|
|
|
13
20
|
```
|
|
14
|
-
pnpm add @lablup/ui-common
|
|
21
|
+
pnpm add @lablup/ui-common @stylexjs/stylex
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
That is npmjs, which needs no authentication.
|
|
25
|
+
|
|
26
|
+
Peer dependencies:
|
|
27
|
+
|
|
28
|
+
- `react` and `react-dom` ^19.2. Components use `useEffectEvent`, which
|
|
29
|
+
React 19.2 made stable.
|
|
30
|
+
- `@stylexjs/stylex` ^0.19. It is the one runtime copy that Astryx, ui-common
|
|
31
|
+
and your own StyleX code share.
|
|
32
|
+
- `@astryxdesign/lab`, optional. Install it only if you use
|
|
33
|
+
`@lablup/ui-common/lab`. It is pinned to the exact canary ui-common is built
|
|
34
|
+
against, and it needs the override below.
|
|
35
|
+
|
|
36
|
+
Astryx itself (`@astryxdesign/core`, `@astryxdesign/theme-neutral`) comes in
|
|
37
|
+
as ui-common's own dependencies, pinned exactly. The `ui-common` bin and the
|
|
38
|
+
Astryx CLI it wraps are a separate dev-time package, `@lablup/ui-common-cli`
|
|
39
|
+
([The ui-common CLI](#the-ui-common-cli)).
|
|
40
|
+
`lucide-react` (the icon set Astryx's neutral theme already depends on) and
|
|
41
|
+
`intl-messageformat` come in the same way.
|
|
42
|
+
Do not add them to your project. ui-common owns the Astryx version. Two copies
|
|
43
|
+
of Astryx means two copies of its React contexts, and components stop seeing
|
|
44
|
+
the theme.
|
|
45
|
+
|
|
46
|
+
### pnpm 10 and later
|
|
47
|
+
|
|
48
|
+
`@astryxdesign/core` and `@astryxdesign/cli` have `postinstall` scripts. pnpm
|
|
49
|
+
10 and later run no dependency's install scripts until the project decides
|
|
50
|
+
about each one: pnpm 10 installs and prints a warning, pnpm 11 fails
|
|
51
|
+
`pnpm install` with `ERR_PNPM_IGNORED_BUILDS`. The scripts only print an
|
|
52
|
+
`astryx init` hint, so decline them, in `pnpm-workspace.yaml`:
|
|
53
|
+
|
|
54
|
+
```yaml
|
|
55
|
+
allowBuilds:
|
|
56
|
+
"@astryxdesign/cli": false
|
|
57
|
+
"@astryxdesign/core": false
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
This repository's own `pnpm-workspace.yaml` does the same. npm runs the
|
|
61
|
+
scripts, or asks about them, and needs nothing.
|
|
62
|
+
|
|
63
|
+
### With `@lablup/ui-common/lab`
|
|
64
|
+
|
|
65
|
+
The lab canary declares an exact peer on the core canary it was cut from, not
|
|
66
|
+
on the core ui-common pins. Without an override, pnpm installs that canary
|
|
67
|
+
core beside ui-common's, npm nests it under lab, and `@lablup/ui-common/lab`
|
|
68
|
+
runs on the second copy. Add the override for your package manager, next to
|
|
69
|
+
`@astryxdesign/lab` itself (`ui-common upgrade` adds both when it moves a
|
|
70
|
+
Drawer to lab):
|
|
71
|
+
|
|
72
|
+
pnpm, in `pnpm-workspace.yaml` (pnpm 10 and later read settings only from
|
|
73
|
+
there):
|
|
74
|
+
|
|
75
|
+
```yaml
|
|
76
|
+
overrides:
|
|
77
|
+
"@astryxdesign/lab>@astryxdesign/core": "0.6.2"
|
|
15
78
|
```
|
|
16
79
|
|
|
17
|
-
|
|
18
|
-
|
|
80
|
+
npm, in the root `package.json`:
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
"overrides": {
|
|
84
|
+
"@astryxdesign/lab": { "@astryxdesign/core": "0.6.2" }
|
|
85
|
+
}
|
|
86
|
+
```
|
|
19
87
|
|
|
20
|
-
|
|
21
|
-
|
|
88
|
+
The version is the `@astryxdesign/core` that ui-common pins; it moves with
|
|
89
|
+
each ui-common release that moves Astryx. Then `pnpm why @astryxdesign/core`
|
|
90
|
+
(or `npm ls @astryxdesign/core`) lists one version. pnpm may still warn that
|
|
91
|
+
lab's peer is unmet; with the override that is expected. A project that already
|
|
92
|
+
lists `@astryxdesign/core` itself, at the same version, gets the same effect
|
|
93
|
+
from pnpm resolving the peer to its own copy.
|
|
22
94
|
|
|
23
95
|
### The GitHub Packages mirror
|
|
24
96
|
|
|
25
97
|
The same versions are also published to GitHub Packages for projects that
|
|
26
|
-
already authenticate to GitHub. It is a mirror, not a different package
|
|
27
|
-
there is no reason to prefer it unless your organization requires it.
|
|
98
|
+
already authenticate to GitHub. It is a mirror, not a different package.
|
|
28
99
|
|
|
29
|
-
GitHub Packages requires authentication **even for public packages
|
|
30
|
-
|
|
31
|
-
registry:
|
|
100
|
+
GitHub Packages requires authentication **even for public packages**. To use
|
|
101
|
+
it, point the scope at that registry:
|
|
32
102
|
|
|
33
103
|
```
|
|
34
104
|
# .npmrc
|
|
@@ -50,106 +120,458 @@ env:
|
|
|
50
120
|
Locally, use a personal access token with `read:packages`, in your user
|
|
51
121
|
`~/.npmrc` and never in a project file.
|
|
52
122
|
|
|
123
|
+
## Set up
|
|
124
|
+
|
|
125
|
+
Declare the layer order first in your app's entry stylesheet, then load the
|
|
126
|
+
stylesheets in this order:
|
|
127
|
+
|
|
128
|
+
```css
|
|
129
|
+
@layer reset, theme, base, astryx-base, astryx-theme, ui-common, components, utilities;
|
|
130
|
+
|
|
131
|
+
@import "@lablup/ui-common/reset.css";
|
|
132
|
+
@import "@lablup/ui-common/astryx.css";
|
|
133
|
+
@import "@lablup/ui-common/theme/lablup/theme.css";
|
|
134
|
+
@import "@lablup/ui-common/ui-common.css";
|
|
135
|
+
/* Only if you use @lablup/ui-common/lab: */
|
|
136
|
+
@import "@lablup/ui-common/lab/lab.css";
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Every stylesheet ui-common ships starts with the same `@layer` statement too,
|
|
140
|
+
component sheets included. A layer's place is fixed by the first stylesheet
|
|
141
|
+
that names it, and a component's sheet (imported by its module) usually
|
|
142
|
+
reaches the page before your entry stylesheet does. Without the statement in
|
|
143
|
+
the component sheets, `ui-common` would be the lowest layer and Astryx's base
|
|
144
|
+
styles would beat ui-common's. Declaring it in your entry stylesheet as well
|
|
145
|
+
is still recommended: it documents the order, and it places your own
|
|
146
|
+
`components` and `utilities` layers wherever your sheets load. Repeating an
|
|
147
|
+
identical statement changes nothing.
|
|
148
|
+
|
|
149
|
+
Wrap the app in the theme:
|
|
150
|
+
|
|
151
|
+
```tsx
|
|
152
|
+
import { Theme } from "@lablup/ui-common";
|
|
153
|
+
import { lablupTheme } from "@lablup/ui-common/theme/lablup/built";
|
|
154
|
+
|
|
155
|
+
<Theme theme={lablupTheme}>
|
|
156
|
+
<App />
|
|
157
|
+
</Theme>;
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
`<Theme theme={lablupTheme}>` is required. `theme.css` is scoped to
|
|
161
|
+
`[data-astryx-theme="lablup"]`, which only `<Theme>` sets, so without it the
|
|
162
|
+
app renders Astryx's default palette. No error is raised.
|
|
163
|
+
|
|
164
|
+
Dark mode is the `mode` prop: `<Theme theme={lablupTheme} mode="dark">`,
|
|
165
|
+
`"light"`, or `"system"` (the default, which follows the OS). The root
|
|
166
|
+
`<Theme>` owns `html[data-theme]`: it sets `light` or `dark`, removes the
|
|
167
|
+
attribute for `system`, and removes it on unmount. A 0.1-style toggle that
|
|
168
|
+
writes its own value there, such as `data-theme="orange-dark"`, no longer
|
|
169
|
+
works. Switch `mode` instead.
|
|
170
|
+
|
|
171
|
+
`/theme/lablup/built` pairs with `theme.css` and injects nothing at runtime.
|
|
172
|
+
`@lablup/ui-common/theme/lablup` is the same theme as source, for runtime
|
|
173
|
+
injection or for extending it with `defineTheme`. Use one or the other.
|
|
174
|
+
Astryx's neutral theme is mirrored the same way at `/theme/neutral`.
|
|
175
|
+
|
|
176
|
+
The theme names its font family (Ubuntu Sans, then Pretendard Variable) but
|
|
177
|
+
does not load it. Loading fonts is the app's job.
|
|
178
|
+
|
|
179
|
+
### Tests (Vitest with jsdom)
|
|
180
|
+
|
|
181
|
+
ui-common's modules import their stylesheets, and Node cannot load a `.css`
|
|
182
|
+
import from `node_modules`. Vitest externalises dependencies by default, so a
|
|
183
|
+
test that imports ui-common fails with `Unknown file extension ".css"`.
|
|
184
|
+
Let Vitest process the package instead:
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
// vitest.config.ts
|
|
188
|
+
export default defineConfig({
|
|
189
|
+
test: {
|
|
190
|
+
environment: "jsdom",
|
|
191
|
+
server: { deps: { inline: [/@lablup\/ui-common/] } },
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Two copies
|
|
197
|
+
|
|
198
|
+
In development, ui-common warns in the console when a second copy of itself
|
|
199
|
+
is loaded, and says whether the copies also run on separate copies of
|
|
200
|
+
`@astryxdesign/core`. Two copies do not share the modal stack, and with two
|
|
201
|
+
Astryx cores the `Theme` and i18n providers stop reaching components. Dedupe
|
|
202
|
+
until `pnpm why @lablup/ui-common` lists one version.
|
|
203
|
+
|
|
204
|
+
### Layers
|
|
205
|
+
|
|
206
|
+
| Layer | Owner |
|
|
207
|
+
| ------------------------- | ----------------------------------- |
|
|
208
|
+
| `reset`, `theme`, `base` | Astryx reset, your own base rules |
|
|
209
|
+
| `astryx-base` | Astryx component styles |
|
|
210
|
+
| `astryx-theme` | theme overrides, including Lablup's |
|
|
211
|
+
| `ui-common` | ui-common's own styles |
|
|
212
|
+
| `components`, `utilities` | yours |
|
|
213
|
+
|
|
214
|
+
ui-common's styles beat Astryx's base and theme styles for the primitives they
|
|
215
|
+
wrap. Your `components` layer beats ui-common. Unlayered rules beat all of it.
|
|
216
|
+
|
|
53
217
|
## Use
|
|
54
218
|
|
|
55
|
-
|
|
56
|
-
|
|
219
|
+
Astryx components come from the root or from their own subpath, exactly as in
|
|
220
|
+
Astryx:
|
|
57
221
|
|
|
58
222
|
```tsx
|
|
59
|
-
import { Button,
|
|
60
|
-
import {
|
|
223
|
+
import { Button, Text } from "@lablup/ui-common";
|
|
224
|
+
import { Table } from "@lablup/ui-common/Table";
|
|
225
|
+
import { useClipboard } from "@lablup/ui-common/hooks";
|
|
61
226
|
```
|
|
62
227
|
|
|
63
|
-
|
|
64
|
-
theme:
|
|
228
|
+
StyleX users import tokens from the `.stylex` subpath. The StyleX compiler
|
|
229
|
+
recognises a theme import by that suffix, so the root barrel will not do:
|
|
65
230
|
|
|
66
231
|
```ts
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
232
|
+
import { colorVars, spacingVars } from "@lablup/ui-common/theme/tokens.stylex";
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Lab components live at `@lablup/ui-common/lab`.
|
|
236
|
+
|
|
237
|
+
ui-common's own components come from the root, and from the subpaths below:
|
|
238
|
+
|
|
239
|
+
```tsx
|
|
240
|
+
import { PageHeader, PageLayout, StatCard } from "@lablup/ui-common";
|
|
241
|
+
import { Modal } from "@lablup/ui-common/Modal";
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
| Component | What it is | Subpath |
|
|
245
|
+
| -------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------- |
|
|
246
|
+
| `Modal` | The dialog, in place of Astryx `Dialog`. See below. | `/Modal` |
|
|
247
|
+
| `PageLayout` | A page's width clamp (`standard`, `wide`, `full`) | `/components/PageLayout` |
|
|
248
|
+
| `PageHeader` | A page's title, description, actions and error banner | `/components/PageHeader` |
|
|
249
|
+
| `StatCard` | A dashboard metric, on Astryx `Card` | `/components/StatCard` |
|
|
250
|
+
| `ErrorState` | A full-area error with recovery actions | `/components/ErrorState` |
|
|
251
|
+
| `SkeletonCard`, `SkeletonText`, `SkeletonChart`, `SkeletonRow` | Loading placeholders drawn with Astryx `Skeleton` | `/components/Skeleton` |
|
|
252
|
+
| `SmoothHeight` | Animates a container toward its content's height | `/components/SmoothHeight` |
|
|
253
|
+
| `DigitPopIn` | A number whose characters pop in, one after another | `/components/DigitPopIn` |
|
|
254
|
+
| `CountBadge` | A count or dot overlaid on its child's corner | `/components/CountBadge` |
|
|
255
|
+
| `DoubleBadge` | A run of Badges welded into one chip | `/components/DoubleBadge` |
|
|
256
|
+
| `BooleanToken` | An on/off value as a Token | `/components/BooleanToken` |
|
|
257
|
+
| `IconWithTooltip` | A focusable glyph that explains itself in a Tooltip | `/components/IconWithTooltip` |
|
|
258
|
+
| `ImageWithFallback` | An image that renders a fallback node when it fails to load | `/components/ImageWithFallback` |
|
|
259
|
+
| `NotificationStack` | Floating notices with task progress and actions | `/components/NotificationStack` |
|
|
260
|
+
| `OverlayScrollbar` | A persistent scroll thumb drawn over a scroll container | `/components/OverlayScrollbar` |
|
|
261
|
+
| `ConfirmPopover` | A one-click confirmation anchored to its trigger | `/components/ConfirmPopover` |
|
|
262
|
+
| `PagedSelector` | A searchable selector over options loaded a page at a time | `/components/PagedSelector` |
|
|
263
|
+
| `SelectionLabel` | "3 selected", with a button that clears the selection | `/components/SelectionLabel` |
|
|
264
|
+
| `UncontrolledInput` | A field that reports its value on Enter or blur | `/components/UncontrolledInput` |
|
|
265
|
+
| `AlertModal` | An alert dialog, in place of Astryx `AlertDialog` | `/AlertModal` |
|
|
266
|
+
| `DeleteConfirmModal` | Confirms a deletion, with typed confirmation when needed | `/components/DeleteConfirmModal` |
|
|
267
|
+
| `StepNumberInput`, `NumberStepper` | A number field that steps along a list of values | `/components/StepNumberInput` |
|
|
268
|
+
| `BoardItemTitle` | A dashboard panel's sticky title row | `/components/BoardItemTitle` |
|
|
269
|
+
| `Statistic` | A metric with a caption, a large value and a notched bar | `/components/Statistic` |
|
|
270
|
+
| `DividedRow` | A wrapping row with dividers between neighbours on a line | `/components/DividedRow` |
|
|
271
|
+
| `TokenList` | Values inline, the rest behind `+N` on hover | `/components/TokenList` |
|
|
272
|
+
| `TokenRow` | Tokens cut off with "and N more" | `/components/TokenRow` |
|
|
273
|
+
| `NotificationItem` | The title, description, actions and footer of one notice | `/components/NotificationItem` |
|
|
274
|
+
| `UnitGrid`, `UnitGridSkeleton` | Groups of unit squares on one lattice, with a hover card | `/components/UnitGrid` |
|
|
275
|
+
| `ColorPicker` | A hex colour field on the platform colour input | `/components/ColorPicker` |
|
|
276
|
+
| `Form` and its hooks | A form engine with antd's form API. See below. | `/Form` |
|
|
277
|
+
| `BulkEditFormItem` | A form item that edits one field across many records | `/components/BulkEditFormItem` |
|
|
278
|
+
| `DataGrid`, `DataGridSettingsModal`, `DataGridExportModal` | A table with paging, sorting, selection and column settings | `/components/DataGrid` |
|
|
279
|
+
| `BulkErrorModal` | The failed items of a bulk operation, in a grid | `/components/BulkErrorModal` |
|
|
280
|
+
| `ProgressWithLabel` | A bar that carries its label and value label | `/components/ProgressWithLabel` |
|
|
281
|
+
| `TextHighlighter` | Marks a search keyword in a string | `/components/TextHighlighter` |
|
|
282
|
+
| `CountdownBorder` | A border that fills as a countdown to a refresh | `/components/CountdownBorder` |
|
|
283
|
+
| `DoubleToken` | A run of Tokens welded into one chip | `/components/DoubleToken` |
|
|
284
|
+
| `ListBanner` | A Banner that lists items, scrolling past a height | `/components/ListBanner` |
|
|
285
|
+
| `usePrefersReducedMotion` | The `prefers-reduced-motion` media query, as a hook | root only |
|
|
286
|
+
|
|
287
|
+
Their styles live in `@layer ui-common`, under `uic-` class names.
|
|
288
|
+
|
|
289
|
+
### Modal
|
|
290
|
+
|
|
291
|
+
`Modal` takes every prop Astryx `Dialog` takes, so a `Dialog` call site moves
|
|
292
|
+
over by renaming the import: `@astryxdesign/core/Dialog` becomes
|
|
293
|
+
`@lablup/ui-common/Modal`, `Dialog` becomes `Modal`, `DialogProps` becomes
|
|
294
|
+
`ModalProps`. `DialogHeader`, `DialogPosition`, `DialogPurpose` and
|
|
295
|
+
`DialogVariant` are re-exported unchanged, and as `ModalHeader`,
|
|
296
|
+
`ModalPosition`, `ModalPurpose` and `ModalVariant`. One difference is visible
|
|
297
|
+
to a caller: `ref` reaches the `div` that carries `role="dialog"`, not a
|
|
298
|
+
`<dialog>` element.
|
|
299
|
+
|
|
300
|
+
What it adds:
|
|
301
|
+
|
|
302
|
+
- It renders into a `document.body` portal instead of the browser's top layer,
|
|
303
|
+
so whatever the app layers above the modal band, such as a notification
|
|
304
|
+
stack, stays visible. The band is `z-index` 1100 to 10999 by default;
|
|
305
|
+
`configureModalZIndex({ base, step, max })` moves it.
|
|
306
|
+
- While a modal is open, the topmost one is `aria-modal="true"` and the rest
|
|
307
|
+
of the page is `inert`, as `showModal()` would make it. Two things stay
|
|
308
|
+
reachable: modal roots, and elements marked `data-uic-modal-live`
|
|
309
|
+
(`MODAL_LIVE_ATTRIBUTE`). `NotificationStack` marks itself, so notices over a
|
|
310
|
+
modal can still be read and dismissed; mark your own live region the same
|
|
311
|
+
way, and call `refreshModalBackground()` if it mounts while a modal is open.
|
|
312
|
+
An `inert` the page set itself is left as it was.
|
|
313
|
+
- A modal opened from inside another paints above it. Only the topmost one
|
|
314
|
+
traps focus and takes Escape; covered ones are `inert`. Other portalled
|
|
315
|
+
surfaces (a drawer) join the same stack with `useModalLevel`, which also
|
|
316
|
+
keeps them out of the inert background.
|
|
317
|
+
- Content mounts on first open and stays mounted while closed.
|
|
318
|
+
`unmountOnClose` drops it. `afterOpenChange` reports each open and close.
|
|
319
|
+
- With `title`, `onAction` or `footer`, it lays out a header, the body and a
|
|
320
|
+
footer with a primary action and Cancel. `onAction` may return a promise; the
|
|
321
|
+
button stays pending until it settles. It does not close the modal.
|
|
70
322
|
|
|
71
|
-
|
|
72
|
-
|
|
323
|
+
```tsx
|
|
324
|
+
<Modal
|
|
325
|
+
isOpen={isOpen}
|
|
326
|
+
onOpenChange={setIsOpen}
|
|
327
|
+
title="Rename folder"
|
|
328
|
+
actionLabel="Rename"
|
|
329
|
+
onAction={async () => {
|
|
330
|
+
await rename(name);
|
|
331
|
+
setIsOpen(false);
|
|
332
|
+
}}
|
|
333
|
+
>
|
|
334
|
+
<TextInput label="Name" value={name} onChange={setName} />
|
|
335
|
+
</Modal>
|
|
73
336
|
```
|
|
74
337
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
338
|
+
### Form
|
|
339
|
+
|
|
340
|
+
`@lablup/ui-common/Form` is a form engine with antd's form API: `Form`,
|
|
341
|
+
`Form.Item`, `Form.List`, `Form.ErrorList`, `Form.Provider`,
|
|
342
|
+
`Form.useForm`, `Form.useWatch`, `Form.useFormInstance` and
|
|
343
|
+
`Form.Item.useStatus`, with antd's rules (`required`, `message`,
|
|
344
|
+
`validator`, `type`, `min`, `max`, `pattern`, `whitespace`,
|
|
345
|
+
`warningOnly`). It keeps antd's names on purpose: it is a form-state API,
|
|
346
|
+
not a component, so code written against antd's form moves over by changing
|
|
347
|
+
the import. The item shell renders on Astryx tokens.
|
|
348
|
+
|
|
349
|
+
```tsx
|
|
350
|
+
import { Form } from "@lablup/ui-common/Form";
|
|
80
351
|
|
|
81
|
-
|
|
82
|
-
`Button.css` with it, so a subpath import pulls that component's styles and no
|
|
83
|
-
others. The two entry points above are the only stylesheets you import by hand,
|
|
84
|
-
and `base.css` is the one you must not skip, since it carries the tokens every
|
|
85
|
-
component resolves against.
|
|
352
|
+
const [form] = Form.useForm();
|
|
86
353
|
|
|
87
|
-
|
|
354
|
+
<Form form={form} layout="vertical" onFinish={save}>
|
|
355
|
+
<Form.Item name="name" label="Name" rules={[{ required: true }]}>
|
|
356
|
+
<TextInput label="Name" isLabelHidden />
|
|
357
|
+
</Form.Item>
|
|
358
|
+
</Form>;
|
|
359
|
+
```
|
|
88
360
|
|
|
89
|
-
|
|
90
|
-
|
|
361
|
+
- Validation messages come from ui-common's catalog in the locale of the
|
|
362
|
+
nearest `InternationalizationProvider` (see Strings). `FormConfigProvider`
|
|
363
|
+
sets `validateMessages`, `requiredMark` and `optionalLabel` app-wide; a
|
|
364
|
+
form's own `validateMessages` wins over both.
|
|
365
|
+
- A control shows its item's validation state by reading
|
|
366
|
+
`Form.Item.useStatus()` or `FormItemInputContext`.
|
|
367
|
+
- `form.scrollToField` and `scrollToFirstError` find the control by
|
|
368
|
+
`data-uic-field-id`, which `Form.Item` puts on its child; Astryx inputs
|
|
369
|
+
keep `data-*` attributes.
|
|
370
|
+
- The DOM is `.uic-form` (with `data-layout`) and `.uic-form-item` with
|
|
371
|
+
`__label`, `__label--required`, `__control`, `__control-input`,
|
|
372
|
+
`__explain`, `__explain-error`, `__explain-warning` and `__extra`.
|
|
373
|
+
The item carries `data-layout`, `data-size` and `data-status`. These
|
|
374
|
+
class names are the public hooks for tests and product CSS.
|
|
375
|
+
- Three custom properties adjust it: `--form-item-margin-bottom`
|
|
376
|
+
(default `--spacing-6`), `--form-item-gap` (label to control in a
|
|
377
|
+
vertical item, default `--spacing-2`) and `--form-item-line-height`
|
|
378
|
+
(default `--text-body-leading`). Help, extra, the tooltip glyph and the
|
|
379
|
+
optional suffix take the theme's `--color-text-description` where the
|
|
380
|
+
theme declares one, else `--color-text-secondary`.
|
|
381
|
+
|
|
382
|
+
### What is hidden
|
|
383
|
+
|
|
384
|
+
A few Astryx subpaths are deliberately not re-exported. They are listed, with
|
|
385
|
+
the reason and the replacement, in [`exports.exclude.json`](exports.exclude.json).
|
|
386
|
+
Today that is `Dialog` (use `Modal`), `AlertDialog` (use `AlertModal`) and two
|
|
387
|
+
Astryx CLI data files.
|
|
388
|
+
|
|
389
|
+
### Name rule
|
|
390
|
+
|
|
391
|
+
A ui-common component never shares a name with an Astryx core or lab export.
|
|
392
|
+
If a name is `Button`, it is Astryx's `Button`. The same holds the other way:
|
|
393
|
+
`DialogHeader` from `@lablup/ui-common/Modal` is Astryx's own `DialogHeader`.
|
|
394
|
+
|
|
395
|
+
## Strings
|
|
396
|
+
|
|
397
|
+
ui-common's components show a few built-in strings. Every one of them is also a
|
|
398
|
+
prop, and an explicit prop always wins.
|
|
399
|
+
|
|
400
|
+
The defaults resolve through Astryx's own `InternationalizationProvider`.
|
|
401
|
+
Supply translations once, at the provider:
|
|
91
402
|
|
|
92
403
|
```tsx
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
404
|
+
import { InternationalizationProvider } from "@lablup/ui-common/i18n";
|
|
405
|
+
import { mergeMessages, uiCommonMessages } from "@lablup/ui-common/i18n-catalog";
|
|
406
|
+
import astryxKo from "@lablup/ui-common/locales/ko-KR.json";
|
|
407
|
+
|
|
408
|
+
<InternationalizationProvider
|
|
409
|
+
locale="ko-KR"
|
|
410
|
+
messages={mergeMessages({ "ko-KR": astryxKo }, uiCommonMessages)}
|
|
411
|
+
>
|
|
412
|
+
<App />
|
|
413
|
+
</InternationalizationProvider>;
|
|
96
414
|
```
|
|
97
415
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
416
|
+
- `@lablup/ui-common/locales/<locale>.json` is Astryx's own catalog.
|
|
417
|
+
- `@lablup/ui-common/ui-common-locales/<locale>.json` is ui-common's.
|
|
418
|
+
- Without a provider, everything renders in English.
|
|
419
|
+
|
|
420
|
+
ui-common never uses a product i18n runtime.
|
|
101
421
|
|
|
102
|
-
##
|
|
422
|
+
## Upgrading from 0.1
|
|
103
423
|
|
|
104
|
-
|
|
105
|
-
`--token-*` custom properties. Those properties are a versioned part of the
|
|
106
|
-
public surface: renaming or removing one is a breaking change, exactly like
|
|
107
|
-
renaming a prop. Every token a component reads has a fallback, so a consumer
|
|
108
|
-
that adopts a component without adopting a theme still renders.
|
|
424
|
+
Removed in 0.2, each replaced by Astryx:
|
|
109
425
|
|
|
110
|
-
|
|
426
|
+
| 0.1 | 0.2 |
|
|
427
|
+
| ------------- | ------------------------------------- |
|
|
428
|
+
| `Badge` | `Badge`, or `Token` for a chip |
|
|
429
|
+
| `BaseCard` | `Card`, or `ClickableCard` |
|
|
430
|
+
| `Button` | `Button`, or `IconButton` |
|
|
431
|
+
| `DataTable` | `Table` |
|
|
432
|
+
| `Drawer` | `Drawer` from `@lablup/ui-common/lab` |
|
|
433
|
+
| `EmptyState` | `EmptyState` |
|
|
434
|
+
| `ProgressBar` | `ProgressBar` |
|
|
435
|
+
| `Select` | `Selector` |
|
|
436
|
+
| `Skeleton` | `Skeleton` (the composites stay) |
|
|
437
|
+
| `StatusTag` | `StatusDot` |
|
|
438
|
+
| `Tabs` | `TabList` |
|
|
439
|
+
| `Tooltip` | `Tooltip` |
|
|
111
440
|
|
|
112
|
-
The
|
|
113
|
-
|
|
441
|
+
The kept components keep their 0.1 props. Their class names moved to `uic-`
|
|
442
|
+
(`page-header` is `uic-page-header`), so CSS or tests that select the old
|
|
443
|
+
names need updating. [`packages/cli/migration/0.1-to-0.2.json`](packages/cli/migration/0.1-to-0.2.json)
|
|
444
|
+
lists every import, prop, class and stylesheet change in a form the upgrade
|
|
445
|
+
tool reads.
|
|
114
446
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
2. It has a concrete consumer in more than one product, present or committed.
|
|
118
|
-
3. It brings its accessibility and behavior tests with it.
|
|
447
|
+
Before you start, read [docs/migrating-to-0.2.md](docs/migrating-to-0.2.md):
|
|
448
|
+
the problems the first app hit when it moved onto 0.2, and a checklist.
|
|
119
449
|
|
|
120
|
-
|
|
121
|
-
|
|
450
|
+
Let the upgrade tool do the mechanical part. It ships in
|
|
451
|
+
`@lablup/ui-common-cli`, so run it one-off from the project still on 0.1:
|
|
452
|
+
|
|
453
|
+
```
|
|
454
|
+
pnpm dlx @lablup/ui-common-cli@next upgrade --from 0.1 --dry-run # writes nothing; prints the changes and the report
|
|
455
|
+
pnpm dlx @lablup/ui-common-cli@next upgrade --from 0.1 # applies it
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
(`npx @lablup/ui-common-cli@next upgrade --from 0.1` with npm.) Keep the
|
|
459
|
+
`@next` while 0.2 is in prerelease: the CLI has published only prereleases,
|
|
460
|
+
which go to the `next` dist-tag, and npm points `latest` at a package's first
|
|
461
|
+
publish, so a bare `@lablup/ui-common-cli` resolves to its first alpha. Drop
|
|
462
|
+
`@next` once 0.2.0 is published. It bumps
|
|
463
|
+
`@lablup/ui-common` in `package.json` and adds `@lablup/ui-common-cli` as a
|
|
464
|
+
devDependency at the same version; then run your install, and later upgrades
|
|
465
|
+
are `pnpm exec ui-common upgrade --from <old version>`.
|
|
466
|
+
|
|
467
|
+
It moves the imports, reshapes the props it can prove safe, rewrites the
|
|
468
|
+
`styles/base.css` import into the 0.2 stylesheet set (or, in an app that
|
|
469
|
+
never imported it, imports that set first in the app's entry script), wraps
|
|
470
|
+
the app's root render (`createRoot(…).render(<App />)`) in
|
|
471
|
+
`<Theme theme={lablupTheme}>` when no module uses `<Theme>` yet, and updates
|
|
472
|
+
`package.json`. Code that imports a moved component through a module of your
|
|
473
|
+
own that re-exports it (a barrel such as `@/components/common`, found through
|
|
474
|
+
relative paths and your tsconfig `paths`) gets the same rewrite. A component of
|
|
475
|
+
yours that wraps one and takes its props is listed in the report instead: its
|
|
476
|
+
props are yours to change. Everything else is a `TODO(ui-common-upgrade)` comment in the
|
|
477
|
+
code and a line in `ui-common-upgrade-report.md`, together with the CSS, DOM
|
|
478
|
+
queries, tests and module mocks that still name 0.1 classes, custom
|
|
479
|
+
properties of yours that Astryx declares too, and code that switches 0.1
|
|
480
|
+
themes through `data-theme`. Steps the app cannot work without (the
|
|
481
|
+
stylesheets or `<Theme>`, where the upgrade could not add them) open the
|
|
482
|
+
report under "Action required".
|
|
483
|
+
|
|
484
|
+
Deprecated in 0.2, removed in 0.3:
|
|
485
|
+
|
|
486
|
+
- **`--token-*` custom properties.** Astryx's token set is the contract now.
|
|
487
|
+
`@lablup/ui-common/legacy-tokens.css` declares every old name as the matching
|
|
488
|
+
Astryx token, inside `@layer ui-common`, so code that reads them keeps
|
|
489
|
+
working while it moves.
|
|
490
|
+
- **`styles/base.css` and `styles/themes/*.css`.** Use the Lablup theme. No
|
|
491
|
+
ui-common component reads them any more; they stay one release so existing
|
|
492
|
+
imports keep resolving while the upgrade tool rewrites them.
|
|
122
493
|
|
|
123
494
|
## What is deliberately absent
|
|
124
495
|
|
|
125
496
|
- API clients, endpoints, and authentication.
|
|
126
497
|
- Application state, stores, and routing.
|
|
127
498
|
- Tauri APIs and plugins, and any desktop-shell assumption.
|
|
128
|
-
- Product
|
|
499
|
+
- Product i18n runtimes and product locale keys.
|
|
129
500
|
- Anything from the private AI companion package. The dependency runs the
|
|
130
501
|
other way, and CI fails if it ever reverses.
|
|
131
502
|
|
|
503
|
+
## The ui-common CLI
|
|
504
|
+
|
|
505
|
+
The `ui-common` bin is its own package, `@lablup/ui-common-cli`, released at
|
|
506
|
+
the same version as `@lablup/ui-common` and taking it as a peer. It wraps the
|
|
507
|
+
Astryx CLI it pins, so a project needs no `@astryxdesign/*` dependency of its
|
|
508
|
+
own to use it. Being separate keeps the Astryx CLI and the codemod toolchain
|
|
509
|
+
(jscodeshift, postcss) out of a production install, the way Astryx splits
|
|
510
|
+
`@astryxdesign/cli` from `@astryxdesign/core`. Keep it a devDependency pinned
|
|
511
|
+
to the same version as `@lablup/ui-common`, and bump the two together:
|
|
512
|
+
|
|
513
|
+
```
|
|
514
|
+
pnpm add -D @lablup/ui-common-cli@<the @lablup/ui-common version>
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
Under pnpm 11, allow or decline the Astryx packages' postinstall (it only
|
|
518
|
+
prints an `astryx init` nudge) in `pnpm-workspace.yaml`, or the install stops
|
|
519
|
+
with `ERR_PNPM_IGNORED_BUILDS` (`ui-common upgrade` adds the entries a pnpm
|
|
520
|
+
project does not decide yet):
|
|
521
|
+
|
|
522
|
+
```yaml
|
|
523
|
+
allowBuilds:
|
|
524
|
+
"@astryxdesign/core": false
|
|
525
|
+
"@astryxdesign/cli": false
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
Then:
|
|
529
|
+
|
|
530
|
+
```
|
|
531
|
+
pnpm exec ui-common component Button # any Astryx command: component, search,
|
|
532
|
+
pnpm exec ui-common search "date picker" # docs, build, template, theme, hook, ...
|
|
533
|
+
pnpm exec ui-common agents --write AGENTS.md
|
|
534
|
+
pnpm exec ui-common upgrade --from 0.1 --dry-run
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
| Command | What it does |
|
|
538
|
+
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
539
|
+
| `ui-common <astryx command> …` | Runs the pinned Astryx CLI and rewrites its output to ui-common: `@astryxdesign/core/<X>` is `@lablup/ui-common/<X>`, `@astryxdesign/lab` is `@lablup/ui-common/lab`, `@astryxdesign/theme-neutral` is `@lablup/ui-common/theme/neutral`, and commands read `ui-common …`. A name ui-common hides gets a note ("Use Modal, not Dialog"). `--json` output stays valid JSON; the note goes to stderr. The exit code is Astryx's. |
|
|
540
|
+
| `ui-common astryx …` | The same, without rewriting. |
|
|
541
|
+
| `ui-common agents [--write <file>] [--check]` | Prints the agent block: Astryx's `init --features agents` block, rewritten, plus ui-common's rules. It sits between `<!-- UI-COMMON:START -->` and `<!-- UI-COMMON:END -->`, which `astryx init` never touches. `--write` replaces the block in place and keeps the rest of the file; `--check` exits 1 when it is stale. |
|
|
542
|
+
| `ui-common upgrade [--from <v>] [--to <v>] [--dry-run] [--diff] [--report <path>] [--scan <path>]… [paths…]` | Runs the codemods between two ui-common versions over `src/` (or `paths`), updates `package.json`, and writes `ui-common-upgrade-report.md` (a `--dry-run` writes nothing and prints the report, unless `--report` names a file). The report's manual-review findings come from the whole project (tests, e2e specs, scripts), or only from the `--scan` paths. `--from` defaults to the version `package.json` declares, `--to` to the CLI's own (the ui-common version it ships with). |
|
|
543
|
+
| `ui-common sync-astryx <version> [--lab <v>] [--as <v>] [--dry-run]` | Maintainers only; see [CONTRIBUTING.md](CONTRIBUTING.md#bumping-astryx). |
|
|
544
|
+
|
|
545
|
+
Exit codes: a passed-through command exits with Astryx's code. ui-common's own
|
|
546
|
+
commands exit 0 on success, 1 on a failed check or run, and 2 on bad arguments.
|
|
547
|
+
|
|
548
|
+
`component`, `search` and the other lookups find `@astryxdesign/core` through
|
|
549
|
+
the project's `@lablup/ui-common`, so they work in a project that depends on
|
|
550
|
+
ui-common (and the CLI) alone. Without the CLI installed, any command runs
|
|
551
|
+
one-off as `pnpm dlx @lablup/ui-common-cli@next <command>` (or `npx`; plain
|
|
552
|
+
`@lablup/ui-common-cli` once 0.2.0 is published).
|
|
553
|
+
|
|
554
|
+
ui-common is also an Astryx CLI integration: `ui-common docs ui-common` (or
|
|
555
|
+
`astryx docs ui-common`) explains the layer, and `ui-common component Modal`
|
|
556
|
+
documents ui-common's own components.
|
|
557
|
+
|
|
132
558
|
## Development
|
|
133
559
|
|
|
134
560
|
```
|
|
135
561
|
pnpm install
|
|
136
|
-
pnpm run verify # typecheck, lint, format, boundary, test, build, pack
|
|
562
|
+
pnpm run verify # typecheck, lint, format, boundary, theme, test, build, pack, integration
|
|
137
563
|
pnpm run test:watch
|
|
138
564
|
```
|
|
139
565
|
|
|
140
|
-
|
|
141
|
-
asserting that every path in the exports map resolves inside it, then a
|
|
142
|
-
separate job installs that tarball into a clean external React project under
|
|
143
|
-
`fixture/`. Building green and being installable are different claims, and the
|
|
144
|
-
second is the one consumers depend on.
|
|
566
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [docs/astryx.md](docs/astryx.md).
|
|
145
567
|
|
|
146
568
|
## Provenance
|
|
147
569
|
|
|
148
570
|
The initial component and token slice was extracted from an existing Lablup
|
|
149
571
|
product frontend. The import is clean: no upstream git history was published
|
|
150
|
-
here.
|
|
151
|
-
imported file, lives in that product's own repository.
|
|
572
|
+
here.
|
|
152
573
|
|
|
153
574
|
## License
|
|
154
575
|
|
|
155
|
-
[Apache-2.0](LICENSE). See [NOTICE](NOTICE).
|
|
576
|
+
[Apache-2.0](LICENSE). See [NOTICE](NOTICE). Astryx is MIT-licensed by Meta
|
|
577
|
+
Platforms, Inc. It is a dependency, not vendored.
|