@cube-dev/ui-kit 0.56.3 → 0.58.0
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/CHANGELOG.md +30 -0
- package/es/_internal/hooks/index.js +1 -1
- package/es/_internal/hooks/use-chained-callback.js +1 -1
- package/es/_internal/hooks/use-debounced-value.js +1 -1
- package/es/_internal/hooks/use-deprecation-warning.js +1 -1
- package/es/_internal/hooks/use-effect-once.js +1 -1
- package/es/_internal/hooks/use-event.js +1 -1
- package/es/_internal/hooks/use-is-first-render.js +1 -1
- package/es/_internal/hooks/use-sync-ref.js +1 -1
- package/es/_internal/hooks/use-timer/index.js +1 -1
- package/es/_internal/hooks/use-timer/timer.js +7 -4
- package/es/_internal/hooks/use-timer/use-timer.js +1 -1
- package/es/_internal/hooks/use-update-effect.js +1 -1
- package/es/_internal/hooks/use-warn.js +1 -1
- package/es/_internal/index.js +1 -1
- package/es/components/Block.js +1 -1
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +1 -1
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +1 -1
- package/es/components/actions/Action/Action.js +1 -1
- package/es/components/actions/Button/Button.js +1 -1
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/es/components/actions/index.js +1 -1
- package/es/components/actions/use-action.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +2 -1
- package/es/components/content/Alert/Alert.js +1 -1
- package/es/components/content/Alert/index.js +1 -1
- package/es/components/content/Alert/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +1 -1
- package/es/components/content/Avatar/Avatar.js +1 -1
- package/es/components/content/Badge/Badge.js +1 -1
- package/es/components/content/Card/Card.js +1 -1
- package/es/components/content/Content.js +1 -1
- package/es/components/content/CopyPasteBlock/CopyPasteBlock.js +2 -1
- package/es/components/content/CopyPasteBlock/index.js +1 -1
- package/es/components/content/CopySnippet/CopySnippet.js +2 -1
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +1 -1
- package/es/components/content/Footer.js +1 -1
- package/es/components/content/Header.js +2 -1
- package/es/components/content/Paragraph.js +1 -1
- package/es/components/content/Placeholder/Placeholder.js +1 -1
- package/es/components/content/PrismCode/PrismCode.js +2 -1
- package/es/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/es/components/content/Result/Result.js +2 -1
- package/es/components/content/Skeleton/Skeleton.js +1 -1
- package/es/components/content/Tag/Tag.js +2 -1
- package/es/components/content/Text.js +2 -1
- package/es/components/content/Title.js +4 -3
- package/es/components/fields/Checkbox/Checkbox.js +2 -1
- package/es/components/fields/Checkbox/CheckboxGroup.js +2 -1
- package/es/components/fields/Checkbox/context.js +1 -1
- package/es/components/fields/Checkbox/index.js +1 -1
- package/es/components/fields/ComboBox/ComboBox.js +50 -14
- package/es/components/fields/ComboBox/index.js +1 -1
- package/es/components/fields/DatePicker/DateInput.js +2 -1
- package/es/components/fields/DatePicker/DateInputBase.js +2 -1
- package/es/components/fields/DatePicker/DatePicker.js +2 -1
- package/es/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/es/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/es/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/es/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/es/components/fields/DatePicker/DateRangePicker.js +2 -1
- package/es/components/fields/DatePicker/DateRangeSeparatedPicker.js +2 -1
- package/es/components/fields/DatePicker/TimeInput.js +2 -1
- package/es/components/fields/DatePicker/index.js +1 -1
- package/es/components/fields/DatePicker/intl.js +1 -1
- package/es/components/fields/DatePicker/parseDate.js +1 -1
- package/es/components/fields/DatePicker/props.js +1 -1
- package/es/components/fields/DatePicker/types.js +1 -1
- package/es/components/fields/DatePicker/utils.js +1 -1
- package/es/components/fields/FileInput/FileInput.js +2 -1
- package/es/components/fields/Input/Input.js +1 -1
- package/es/components/fields/Input/index.js +1 -1
- package/es/components/fields/NumberInput/NumberInput.js +2 -1
- package/es/components/fields/NumberInput/StepButton.js +1 -1
- package/es/components/fields/PasswordInput/PasswordInput.js +2 -1
- package/es/components/fields/RadioGroup/Radio.js +3 -1
- package/es/components/fields/RadioGroup/RadioGroup.js +2 -1
- package/es/components/fields/RadioGroup/context.js +1 -1
- package/es/components/fields/RadioGroup/index.js +1 -1
- package/es/components/fields/SearchInput/SearchInput.js +1 -1
- package/es/components/fields/SearchInput/index.js +1 -1
- package/es/components/fields/Select/Select.js +2 -1
- package/es/components/fields/Select/index.js +1 -1
- package/es/components/fields/Slider/Gradation.js +1 -1
- package/es/components/fields/Slider/Header.js +1 -1
- package/es/components/fields/Slider/RangeSlider.js +2 -1
- package/es/components/fields/Slider/Slider.js +2 -1
- package/es/components/fields/Slider/SliderBase.js +2 -1
- package/es/components/fields/Slider/SliderInput.js +1 -1
- package/es/components/fields/Slider/SliderThumb.js +1 -1
- package/es/components/fields/Slider/SliderTrack.js +1 -1
- package/es/components/fields/Slider/elements.js +1 -1
- package/es/components/fields/Slider/index.js +1 -1
- package/es/components/fields/Slider/types.js +1 -1
- package/es/components/fields/Switch/Switch.js +2 -1
- package/es/components/fields/Switch/index.js +1 -1
- package/es/components/fields/TextArea/TextArea.js +2 -1
- package/es/components/fields/TextArea/index.js +1 -1
- package/es/components/fields/TextInput/TextInput.js +1 -1
- package/es/components/fields/TextInput/TextInputBase.js +5 -5
- package/es/components/fields/TextInput/index.js +1 -1
- package/es/components/fields/TextInputMapper/TextInputMapper.js +30 -8
- package/es/components/fields/TextInputMapper/index.js +1 -1
- package/es/components/fields/index.js +1 -1
- package/es/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/es/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/es/components/form/FieldWrapper/index.js +1 -1
- package/es/components/form/FieldWrapper/types.js +1 -1
- package/es/components/form/Form/Field.js +17 -6
- package/es/components/form/Form/Form.js +2 -1
- package/es/components/form/Form/ResetButton/ResetButton.js +2 -1
- package/es/components/form/Form/ResetButton/index.js +1 -1
- package/es/components/form/Form/SubmitButton/SubmitButton.js +2 -1
- package/es/components/form/Form/SubmitButton/index.js +1 -1
- package/es/components/form/Form/SubmitError.js +2 -1
- package/es/components/form/Form/index.js +1 -1
- package/es/components/form/Form/types.js +1 -1
- package/es/components/form/Form/use-field/index.js +1 -1
- package/es/components/form/Form/use-field/types.js +1 -1
- package/es/components/form/Form/use-field/use-field-props.js +14 -7
- package/es/components/form/Form/use-field/use-field.js +6 -6
- package/es/components/form/Form/use-form.js +55 -67
- package/es/components/form/Form/validation.js +1 -1
- package/es/components/form/Label.js +2 -1
- package/es/components/form/index.js +1 -1
- package/es/components/form/wrapper.js +1 -1
- package/es/components/layout/Flex.js +1 -1
- package/es/components/layout/Flow.js +1 -1
- package/es/components/layout/Grid.js +1 -1
- package/es/components/layout/Panel.js +1 -1
- package/es/components/layout/Prefix.js +1 -1
- package/es/components/layout/ResizablePanel.js +1 -1
- package/es/components/layout/Space.js +1 -1
- package/es/components/layout/Suffix.js +1 -1
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +1 -1
- package/es/components/organisms/Modal/Modal.js +1 -1
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/other/Base64Upload/Base64Upload.js +1 -1
- package/es/components/other/Calendar/Calendar.js +2 -1
- package/es/components/other/Calendar/CalendarCell.js +1 -1
- package/es/components/other/Calendar/CalendarGrid.js +1 -1
- package/es/components/other/Calendar/RangeCalendar.js +2 -1
- package/es/components/other/CloudLogo/CloudLogo.js +2 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +2 -1
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/es/components/overlays/AlertDialog/index.js +1 -1
- package/es/components/overlays/AlertDialog/types.js +1 -1
- package/es/components/overlays/Dialog/Dialog.js +22 -15
- package/es/components/overlays/Dialog/DialogContainer.js +4 -4
- package/es/components/overlays/Dialog/DialogForm.js +1 -1
- package/es/components/overlays/Dialog/DialogTrigger.js +13 -15
- package/es/components/overlays/Dialog/context.js +1 -1
- package/es/components/overlays/Dialog/dialog-container.js +1 -1
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +2 -1
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +2 -1
- package/es/components/overlays/Modal/Popover.js +3 -2
- package/es/components/overlays/Modal/Tray.js +2 -1
- package/es/components/overlays/Modal/Underlay.js +2 -1
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/Modal/types.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/es/components/overlays/NewNotifications/Notification.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-list.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/es/components/overlays/NewNotifications/index.js +1 -1
- package/es/components/overlays/NewNotifications/types.js +1 -1
- package/es/components/overlays/Notification/Notification.js +1 -1
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Toasts/Toast.js +1 -1
- package/es/components/overlays/Toasts/index.js +1 -1
- package/es/components/overlays/Toasts/types.js +1 -1
- package/es/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +2 -1
- package/es/components/overlays/Tooltip/TooltipProvider.js +2 -4
- package/es/components/overlays/Tooltip/TooltipTrigger.js +7 -9
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/overlays/Tooltip/index.js +1 -1
- package/es/components/pickers/Menu/Menu.js +1 -1
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +1 -1
- package/es/components/pickers/Menu/MenuTrigger.js +1 -1
- package/es/components/pickers/Menu/context.js +1 -1
- package/es/components/pickers/Menu/styled.js +1 -1
- package/es/components/portal/Portal.js +1 -1
- package/es/components/portal/PortalProvider.js +1 -1
- package/es/components/portal/index.js +1 -1
- package/es/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/es/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/es/components/portal/storybook/templates/basic.js +1 -1
- package/es/components/portal/storybook/templates/index.js +1 -1
- package/es/components/portal/types.js +1 -1
- package/es/components/portal/usePortal.js +1 -1
- package/es/components/shared/InvalidIcon.js +1 -1
- package/es/components/shared/ValidIcon.js +1 -1
- package/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/es/components/status/LoadingAnimation/index.js +1 -1
- package/es/components/status/Spin/Cube.js +1 -1
- package/es/components/status/Spin/InternalSpinner.js +1 -1
- package/es/components/status/Spin/Spin.js +1 -1
- package/es/components/status/Spin/SpinsContainer.js +1 -1
- package/es/components/status/Spin/index.js +1 -1
- package/es/components/status/Spin/types.js +1 -1
- package/es/components/status/index.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/icons/AiIcon.js +1 -1
- package/es/icons/AreaChartIcon.js +1 -1
- package/es/icons/BackwardIcon.js +1 -1
- package/es/icons/BarChartIcon.js +1 -1
- package/es/icons/BellFilledIcon.js +1 -1
- package/es/icons/BellIcon.js +1 -1
- package/es/icons/BooleanIcon.js +1 -1
- package/es/icons/CalendarEditIcon.js +1 -1
- package/es/icons/CalendarIcon.js +1 -1
- package/es/icons/CaretDownIcon.js +1 -1
- package/es/icons/CaretUpIcon.js +1 -1
- package/es/icons/CheckCircleFilledIcon.js +1 -1
- package/es/icons/CheckCircleIcon.js +1 -1
- package/es/icons/CheckIcon.js +1 -1
- package/es/icons/CircleFilledIcon.js +1 -1
- package/es/icons/ClearIcon.js +1 -1
- package/es/icons/CloseCircleFilledIcon.js +1 -1
- package/es/icons/CloseCircleIcon.js +1 -1
- package/es/icons/CloseIcon.js +1 -1
- package/es/icons/CodeIcon.js +1 -1
- package/es/icons/CopyIcon.js +1 -1
- package/es/icons/CountIcon.js +1 -1
- package/es/icons/CubeIcon.js +1 -1
- package/es/icons/DangerIcon.js +1 -1
- package/es/icons/DashboardIcon.js +1 -1
- package/es/icons/DatabaseIcon.js +1 -1
- package/es/icons/DirectionIcon.js +1 -1
- package/es/icons/DonutIcon.js +1 -1
- package/es/icons/DownIcon.js +1 -1
- package/es/icons/EditIcon.js +1 -1
- package/es/icons/ExclamationCircleFilledIcon.js +1 -1
- package/es/icons/ExclamationCircleIcon.js +1 -1
- package/es/icons/ExclamationIcon.js +1 -1
- package/es/icons/EyeIcon.js +1 -1
- package/es/icons/EyeInvisibleIcon.js +1 -1
- package/es/icons/FilterIcon.js +1 -1
- package/es/icons/FolderFilledIcon.js +1 -1
- package/es/icons/FolderIcon.js +1 -1
- package/es/icons/FolderOpenFilledIcon.js +1 -1
- package/es/icons/FolderOpenIcon.js +1 -1
- package/es/icons/ForwardIcon.js +1 -1
- package/es/icons/HierarchyIcon.js +1 -1
- package/es/icons/Icon.js +1 -1
- package/es/icons/InfoCircleIcon.js +1 -1
- package/es/icons/InfoIcon.js +1 -1
- package/es/icons/KeyIcon.js +1 -1
- package/es/icons/LeftIcon.js +1 -1
- package/es/icons/LineChartIcon.js +1 -1
- package/es/icons/LoadingIcon.js +1 -1
- package/es/icons/LockFilledIcon.js +1 -1
- package/es/icons/LockIcon.js +1 -1
- package/es/icons/MoreIcon.js +1 -1
- package/es/icons/NotAllowedIcon.js +1 -1
- package/es/icons/NumberIcon.js +1 -1
- package/es/icons/PauseCircleFilledIcon.js +1 -1
- package/es/icons/PauseCircleIcon.js +1 -1
- package/es/icons/PauseIcon.js +1 -1
- package/es/icons/PieChartIcon.js +1 -1
- package/es/icons/PlayCircleIcon.js +1 -1
- package/es/icons/PlayIcon.js +1 -1
- package/es/icons/PlusIcon.js +1 -1
- package/es/icons/ReloadIcon.js +1 -1
- package/es/icons/ReportIcon.js +1 -1
- package/es/icons/ReturnIcon.js +1 -1
- package/es/icons/RightIcon.js +1 -1
- package/es/icons/SchemeIcon.js +1 -1
- package/es/icons/SearchIcon.js +1 -1
- package/es/icons/SettingsIcon.js +1 -1
- package/es/icons/ShieldFilledIcon.js +1 -1
- package/es/icons/ShieldIcon.js +1 -1
- package/es/icons/SlashIcon.js +1 -1
- package/es/icons/SparklesIcon.js +1 -1
- package/es/icons/SqlIcon.js +1 -1
- package/es/icons/StatsIcon.js +1 -1
- package/es/icons/StopIcon.js +1 -1
- package/es/icons/StringIcon.js +1 -1
- package/es/icons/SwitchIcon.js +1 -1
- package/es/icons/TableIcon.js +1 -1
- package/es/icons/ThumbsDownIcon.js +1 -1
- package/es/icons/ThumbsUpIcon.js +1 -1
- package/es/icons/ThunderboltCrossedIcon.js +1 -1
- package/es/icons/ThunderboltFilledIcon.js +1 -1
- package/es/icons/ThunderboltIcon.js +1 -1
- package/es/icons/TimeIcon.js +1 -1
- package/es/icons/UnlockIcon.js +1 -1
- package/es/icons/UpIcon.js +1 -1
- package/es/icons/UserGroupIcon.js +1 -1
- package/es/icons/UserIcon.js +1 -1
- package/es/icons/UserLockIcon.js +1 -1
- package/es/icons/ViewIcon.js +1 -1
- package/es/icons/WarningFilledIcon.js +1 -1
- package/es/icons/WarningIcon.js +1 -1
- package/es/icons/add-new-icon.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/icons/wrap-icon.js +1 -1
- package/es/index.js +1 -1
- package/es/provider.js +1 -1
- package/es/providers/TrackingProvider.js +1 -1
- package/es/services/notification.js +1 -1
- package/es/shared/form.js +1 -1
- package/es/shared/index.js +1 -1
- package/es/stories/Form.stories.js +3 -3
- package/es/stories/FormFieldArgs.js +1 -1
- package/es/stories/Layout.stories.js +1 -1
- package/es/stories/Tasty.stories.js +1 -1
- package/es/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/es/stories/components/DialogFormApp.js +1 -1
- package/es/stories/components/StyledButton.js +1 -1
- package/es/stories/lists/baseProps.js +1 -1
- package/es/tasty/index.js +1 -1
- package/es/tasty/providers/BreakpointsProvider.js +1 -1
- package/es/tasty/styles/align.js +1 -1
- package/es/tasty/styles/border.js +1 -1
- package/es/tasty/styles/boxShadow.combinator.js +1 -1
- package/es/tasty/styles/color.js +1 -1
- package/es/tasty/styles/createStyle.js +1 -1
- package/es/tasty/styles/dimension.js +1 -1
- package/es/tasty/styles/display.js +1 -1
- package/es/tasty/styles/fade.js +1 -1
- package/es/tasty/styles/fill.js +1 -1
- package/es/tasty/styles/flow.js +1 -1
- package/es/tasty/styles/font.js +1 -1
- package/es/tasty/styles/fontStyle.js +1 -1
- package/es/tasty/styles/gap.js +1 -1
- package/es/tasty/styles/groupRadius.js +1 -1
- package/es/tasty/styles/height.js +1 -1
- package/es/tasty/styles/index.js +1 -1
- package/es/tasty/styles/inset.js +1 -1
- package/es/tasty/styles/justify.js +1 -1
- package/es/tasty/styles/list.js +1 -1
- package/es/tasty/styles/margin.js +1 -1
- package/es/tasty/styles/marginBlock.js +1 -1
- package/es/tasty/styles/marginInline.js +1 -1
- package/es/tasty/styles/outline.js +1 -1
- package/es/tasty/styles/padding.js +1 -1
- package/es/tasty/styles/paddingBlock.js +1 -1
- package/es/tasty/styles/paddingInline.js +1 -1
- package/es/tasty/styles/predefined.js +1 -1
- package/es/tasty/styles/preset.js +1 -1
- package/es/tasty/styles/radius.js +1 -1
- package/es/tasty/styles/reset.js +1 -1
- package/es/tasty/styles/shadow.js +1 -1
- package/es/tasty/styles/styledScrollbar.js +1 -1
- package/es/tasty/styles/transition.js +1 -1
- package/es/tasty/styles/types.js +1 -1
- package/es/tasty/styles/width.js +1 -1
- package/es/tasty/tasty.js +1 -1
- package/es/tasty/types.js +1 -1
- package/es/tasty/utils/cache-wrapper.js +1 -1
- package/es/tasty/utils/case-converter.js +1 -1
- package/es/tasty/utils/colors.js +1 -1
- package/es/tasty/utils/dotize.js +1 -1
- package/es/tasty/utils/filterBaseProps.js +1 -1
- package/es/tasty/utils/getDisplayName.js +1 -1
- package/es/tasty/utils/index.js +1 -1
- package/es/tasty/utils/mergeStyles.js +1 -1
- package/es/tasty/utils/modAttrs.js +1 -1
- package/es/tasty/utils/renderStyles.js +1 -1
- package/es/tasty/utils/responsive.js +1 -1
- package/es/tasty/utils/string.js +1 -1
- package/es/tasty/utils/styles.js +1 -1
- package/es/tasty/utils/warnings.js +1 -1
- package/es/tokens.js +1 -1
- package/es/type-checks.js +1 -1
- package/es/utils/ResizeSensor.js +1 -1
- package/es/utils/modules.js +1 -1
- package/es/utils/promise.js +1 -1
- package/es/utils/random.js +1 -1
- package/es/utils/range.js +1 -1
- package/es/utils/react/Slots.js +1 -1
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +1 -1
- package/es/utils/react/interactions.js +1 -1
- package/es/utils/react/isTextOnly.js +1 -1
- package/es/utils/react/mapProps.js +1 -1
- package/es/utils/react/mergeProps.js +1 -1
- package/es/utils/react/nullableValue.js +1 -1
- package/es/utils/react/useCombinedRefs.js +1 -1
- package/es/utils/react/useId.js +1 -1
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/useViewportSize.js +1 -1
- package/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/es/utils/transitions.js +1 -1
- package/es/utils/tree.js +1 -1
- package/es/utils/warnings.js +1 -1
- package/es/version.js +2 -2
- package/package.json +3 -2
- package/types/components/fields/ComboBox/ComboBox.d.ts +6 -0
- package/types/components/fields/DatePicker/DateInput.d.ts +2 -4
- package/types/components/fields/DatePicker/DatePicker.d.ts +1 -5
- package/types/components/fields/DatePicker/DateRangePicker.d.ts +2 -4
- package/types/components/fields/DatePicker/TimeInput.d.ts +1 -5
- package/types/components/fields/RadioGroup/Radio.d.ts +60 -0
- package/types/components/fields/RadioGroup/RadioGroup.d.ts +2 -2
- package/types/components/fields/Slider/RangeSlider.d.ts +1 -0
- package/types/components/fields/Slider/Slider.d.ts +1 -0
- package/types/components/fields/TextInput/TextInputBase.d.ts +1 -0
- package/types/components/fields/TextInputMapper/TextInputMapper.d.ts +6 -1
- package/types/components/form/Form/Form.d.ts +2 -3
- package/types/components/form/Form/index.d.ts +1 -3
- package/types/components/form/Form/types.d.ts +0 -1
- package/types/components/form/Form/use-field/types.d.ts +1 -1
- package/types/components/form/Form/use-form.d.ts +2 -2
- package/types/components/overlays/Dialog/DialogContainer.d.ts +2 -1
- package/types/components/overlays/Dialog/DialogTrigger.d.ts +1 -3
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/Tooltip/TooltipProvider.d.ts +1 -3
- package/types/components/overlays/Tooltip/TooltipTrigger.d.ts +1 -3
- package/cjs/_internal/hooks/index.js +0 -34
- package/cjs/_internal/hooks/use-chained-callback.js +0 -22
- package/cjs/_internal/hooks/use-debounced-value.js +0 -56
- package/cjs/_internal/hooks/use-deprecation-warning.js +0 -46
- package/cjs/_internal/hooks/use-effect-once.js +0 -17
- package/cjs/_internal/hooks/use-event.js +0 -25
- package/cjs/_internal/hooks/use-is-first-render.js +0 -21
- package/cjs/_internal/hooks/use-sync-ref.js +0 -21
- package/cjs/_internal/hooks/use-timer/index.js +0 -27
- package/cjs/_internal/hooks/use-timer/timer.js +0 -61
- package/cjs/_internal/hooks/use-timer/use-timer.js +0 -48
- package/cjs/_internal/hooks/use-update-effect.js +0 -23
- package/cjs/_internal/hooks/use-warn.js +0 -42
- package/cjs/_internal/index.js +0 -26
- package/cjs/components/Block.js +0 -24
- package/cjs/components/GlobalStyles.js +0 -385
- package/cjs/components/GridProvider.js +0 -89
- package/cjs/components/HiddenInput.js +0 -38
- package/cjs/components/OpenTrasition.js +0 -34
- package/cjs/components/Root.js +0 -92
- package/cjs/components/actions/Action/Action.js +0 -42
- package/cjs/components/actions/Button/Button.js +0 -260
- package/cjs/components/actions/Button/index.js +0 -26
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +0 -26
- package/cjs/components/actions/index.js +0 -34
- package/cjs/components/actions/use-action.js +0 -142
- package/cjs/components/content/ActiveZone/ActiveZone.js +0 -40
- package/cjs/components/content/Alert/Alert.js +0 -54
- package/cjs/components/content/Alert/index.js +0 -26
- package/cjs/components/content/Alert/types.js +0 -11
- package/cjs/components/content/Alert/use-alert.js +0 -30
- package/cjs/components/content/Avatar/Avatar.js +0 -36
- package/cjs/components/content/Badge/Badge.js +0 -53
- package/cjs/components/content/Card/Card.js +0 -32
- package/cjs/components/content/Content.js +0 -36
- package/cjs/components/content/CopyPasteBlock/CopyPasteBlock.js +0 -164
- package/cjs/components/content/CopyPasteBlock/index.js +0 -26
- package/cjs/components/content/CopySnippet/CopySnippet.js +0 -186
- package/cjs/components/content/CopySnippet/index.js +0 -26
- package/cjs/components/content/Divider.js +0 -51
- package/cjs/components/content/Footer.js +0 -31
- package/cjs/components/content/Header.js +0 -31
- package/cjs/components/content/Paragraph.js +0 -26
- package/cjs/components/content/Placeholder/Placeholder.js +0 -74
- package/cjs/components/content/PrismCode/PrismCode.js +0 -70
- package/cjs/components/content/PrismDiffCode/PrismDiffCode.js +0 -47
- package/cjs/components/content/Result/Result.js +0 -131
- package/cjs/components/content/Skeleton/Skeleton.js +0 -78
- package/cjs/components/content/Tag/Tag.js +0 -96
- package/cjs/components/content/Text.js +0 -80
- package/cjs/components/content/Title.js +0 -71
- package/cjs/components/fields/Checkbox/Checkbox.js +0 -175
- package/cjs/components/fields/Checkbox/CheckboxGroup.js +0 -76
- package/cjs/components/fields/Checkbox/context.js +0 -14
- package/cjs/components/fields/Checkbox/index.js +0 -27
- package/cjs/components/fields/ComboBox/ComboBox.js +0 -173
- package/cjs/components/fields/ComboBox/index.js +0 -26
- package/cjs/components/fields/DatePicker/DateInput.js +0 -64
- package/cjs/components/fields/DatePicker/DateInputBase.js +0 -81
- package/cjs/components/fields/DatePicker/DatePicker.js +0 -78
- package/cjs/components/fields/DatePicker/DatePickerButton.js +0 -24
- package/cjs/components/fields/DatePicker/DatePickerElement.js +0 -24
- package/cjs/components/fields/DatePicker/DatePickerInput.js +0 -54
- package/cjs/components/fields/DatePicker/DatePickerSegment.js +0 -69
- package/cjs/components/fields/DatePicker/DateRangePicker.js +0 -87
- package/cjs/components/fields/DatePicker/DateRangeSeparatedPicker.js +0 -133
- package/cjs/components/fields/DatePicker/TimeInput.js +0 -53
- package/cjs/components/fields/DatePicker/index.js +0 -32
- package/cjs/components/fields/DatePicker/intl.js +0 -17
- package/cjs/components/fields/DatePicker/parseDate.js +0 -33
- package/cjs/components/fields/DatePicker/props.js +0 -23
- package/cjs/components/fields/DatePicker/types.js +0 -11
- package/cjs/components/fields/DatePicker/utils.js +0 -108
- package/cjs/components/fields/FileInput/FileInput.js +0 -164
- package/cjs/components/fields/Input/Input.js +0 -28
- package/cjs/components/fields/Input/index.js +0 -26
- package/cjs/components/fields/NumberInput/NumberInput.js +0 -56
- package/cjs/components/fields/NumberInput/StepButton.js +0 -44
- package/cjs/components/fields/PasswordInput/PasswordInput.js +0 -52
- package/cjs/components/fields/RadioGroup/Radio.js +0 -221
- package/cjs/components/fields/RadioGroup/RadioGroup.js +0 -84
- package/cjs/components/fields/RadioGroup/context.js +0 -18
- package/cjs/components/fields/RadioGroup/index.js +0 -27
- package/cjs/components/fields/SearchInput/SearchInput.js +0 -44
- package/cjs/components/fields/SearchInput/index.js +0 -26
- package/cjs/components/fields/Select/Select.js +0 -321
- package/cjs/components/fields/Select/index.js +0 -26
- package/cjs/components/fields/Slider/Gradation.js +0 -27
- package/cjs/components/fields/Slider/Header.js +0 -15
- package/cjs/components/fields/Slider/RangeSlider.js +0 -33
- package/cjs/components/fields/Slider/Slider.js +0 -45
- package/cjs/components/fields/Slider/SliderBase.js +0 -129
- package/cjs/components/fields/Slider/SliderInput.js +0 -37
- package/cjs/components/fields/Slider/SliderThumb.js +0 -41
- package/cjs/components/fields/Slider/SliderTrack.js +0 -31
- package/cjs/components/fields/Slider/elements.js +0 -145
- package/cjs/components/fields/Slider/index.js +0 -31
- package/cjs/components/fields/Slider/types.js +0 -11
- package/cjs/components/fields/Switch/Switch.js +0 -152
- package/cjs/components/fields/Switch/index.js +0 -26
- package/cjs/components/fields/TextArea/TextArea.js +0 -71
- package/cjs/components/fields/TextArea/index.js +0 -26
- package/cjs/components/fields/TextInput/TextInput.js +0 -40
- package/cjs/components/fields/TextInput/TextInputBase.js +0 -229
- package/cjs/components/fields/TextInput/index.js +0 -27
- package/cjs/components/fields/TextInputMapper/TextInputMapper.js +0 -169
- package/cjs/components/fields/TextInputMapper/index.js +0 -26
- package/cjs/components/fields/index.js +0 -40
- package/cjs/components/form/FieldWrapper/FieldWrapper.js +0 -91
- package/cjs/components/form/FieldWrapper/extract-field-wrapper-props.js +0 -49
- package/cjs/components/form/FieldWrapper/index.js +0 -28
- package/cjs/components/form/FieldWrapper/types.js +0 -11
- package/cjs/components/form/Form/Field.js +0 -167
- package/cjs/components/form/Form/Form.js +0 -154
- package/cjs/components/form/Form/ResetButton/ResetButton.js +0 -40
- package/cjs/components/form/Form/ResetButton/index.js +0 -26
- package/cjs/components/form/Form/SubmitButton/SubmitButton.js +0 -28
- package/cjs/components/form/Form/SubmitButton/index.js +0 -26
- package/cjs/components/form/Form/SubmitError.js +0 -32
- package/cjs/components/form/Form/index.js +0 -48
- package/cjs/components/form/Form/types.js +0 -11
- package/cjs/components/form/Form/use-field/index.js +0 -28
- package/cjs/components/form/Form/use-field/types.js +0 -11
- package/cjs/components/form/Form/use-field/use-field-props.js +0 -82
- package/cjs/components/form/Form/use-field/use-field.js +0 -162
- package/cjs/components/form/Form/use-form.js +0 -412
- package/cjs/components/form/Form/validation.js +0 -171
- package/cjs/components/form/Label.js +0 -79
- package/cjs/components/form/index.js +0 -29
- package/cjs/components/form/wrapper.js +0 -38
- package/cjs/components/layout/Flex.js +0 -25
- package/cjs/components/layout/Flow.js +0 -26
- package/cjs/components/layout/Grid.js +0 -31
- package/cjs/components/layout/Panel.js +0 -110
- package/cjs/components/layout/Prefix.js +0 -46
- package/cjs/components/layout/ResizablePanel.js +0 -286
- package/cjs/components/layout/Space.js +0 -37
- package/cjs/components/layout/Suffix.js +0 -45
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +0 -282
- package/cjs/components/navigation/Link/Link.js +0 -18
- package/cjs/components/organisms/FileTabs/FileTabs.js +0 -267
- package/cjs/components/organisms/Modal/Modal.js +0 -261
- package/cjs/components/organisms/StatsCard/StatsCard.js +0 -19
- package/cjs/components/other/Base64Upload/Base64Upload.js +0 -108
- package/cjs/components/other/Calendar/Calendar.js +0 -58
- package/cjs/components/other/Calendar/CalendarCell.js +0 -72
- package/cjs/components/other/Calendar/CalendarGrid.js +0 -35
- package/cjs/components/other/Calendar/RangeCalendar.js +0 -58
- package/cjs/components/other/CloudLogo/CloudLogo.js +0 -35
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +0 -59
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +0 -121
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +0 -57
- package/cjs/components/overlays/AlertDialog/index.js +0 -28
- package/cjs/components/overlays/AlertDialog/types.js +0 -11
- package/cjs/components/overlays/Dialog/Dialog.js +0 -200
- package/cjs/components/overlays/Dialog/DialogContainer.js +0 -42
- package/cjs/components/overlays/Dialog/DialogForm.js +0 -49
- package/cjs/components/overlays/Dialog/DialogTrigger.js +0 -133
- package/cjs/components/overlays/Dialog/context.js +0 -24
- package/cjs/components/overlays/Dialog/dialog-container.js +0 -63
- package/cjs/components/overlays/Dialog/index.js +0 -30
- package/cjs/components/overlays/Modal/Modal.js +0 -97
- package/cjs/components/overlays/Modal/OpenTransition.js +0 -31
- package/cjs/components/overlays/Modal/Overlay.js +0 -42
- package/cjs/components/overlays/Modal/Popover.js +0 -71
- package/cjs/components/overlays/Modal/Tray.js +0 -74
- package/cjs/components/overlays/Modal/Underlay.js +0 -46
- package/cjs/components/overlays/Modal/index.js +0 -37
- package/cjs/components/overlays/Modal/types.js +0 -11
- package/cjs/components/overlays/NewNotifications/Bar/FloatingNotification.js +0 -57
- package/cjs/components/overlays/NewNotifications/Bar/NotificationsBar.js +0 -98
- package/cjs/components/overlays/NewNotifications/Bar/TransitionComponent.js +0 -60
- package/cjs/components/overlays/NewNotifications/Bar/index.js +0 -26
- package/cjs/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +0 -42
- package/cjs/components/overlays/NewNotifications/Dialog/index.js +0 -26
- package/cjs/components/overlays/NewNotifications/Notification.js +0 -45
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +0 -44
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +0 -29
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +0 -39
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +0 -72
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +0 -34
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +0 -72
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +0 -32
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +0 -72
- package/cjs/components/overlays/NewNotifications/NotificationView/index.js +0 -27
- package/cjs/components/overlays/NewNotifications/NotificationView/types.js +0 -11
- package/cjs/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +0 -25
- package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +0 -15
- package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +0 -95
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +0 -47
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +0 -32
- package/cjs/components/overlays/NewNotifications/NotificationsList/index.js +0 -26
- package/cjs/components/overlays/NewNotifications/NotificationsList/types.js +0 -11
- package/cjs/components/overlays/NewNotifications/hooks/index.js +0 -30
- package/cjs/components/overlays/NewNotifications/hooks/types.js +0 -11
- package/cjs/components/overlays/NewNotifications/hooks/use-notification-list-item.js +0 -18
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +0 -23
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +0 -32
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-observer.js +0 -20
- package/cjs/components/overlays/NewNotifications/index.js +0 -34
- package/cjs/components/overlays/NewNotifications/types.js +0 -11
- package/cjs/components/overlays/Notification/Notification.js +0 -86
- package/cjs/components/overlays/OverlayWrapper.js +0 -34
- package/cjs/components/overlays/Toasts/Toast.js +0 -40
- package/cjs/components/overlays/Toasts/index.js +0 -27
- package/cjs/components/overlays/Toasts/types.js +0 -11
- package/cjs/components/overlays/Toasts/use-toasts-api.js +0 -45
- package/cjs/components/overlays/Tooltip/Tooltip.js +0 -111
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +0 -26
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +0 -71
- package/cjs/components/overlays/Tooltip/context.js +0 -17
- package/cjs/components/overlays/Tooltip/index.js +0 -27
- package/cjs/components/pickers/Menu/Menu.js +0 -96
- package/cjs/components/pickers/Menu/MenuButton.js +0 -114
- package/cjs/components/pickers/Menu/MenuItem.js +0 -62
- package/cjs/components/pickers/Menu/MenuSection.js +0 -32
- package/cjs/components/pickers/Menu/MenuTrigger.js +0 -97
- package/cjs/components/pickers/Menu/context.js +0 -41
- package/cjs/components/pickers/Menu/styled.js +0 -113
- package/cjs/components/portal/Portal.js +0 -47
- package/cjs/components/portal/PortalProvider.js +0 -28
- package/cjs/components/portal/index.js +0 -29
- package/cjs/components/portal/storybook/templates/CustomRoot.js +0 -20
- package/cjs/components/portal/storybook/templates/PortalOrder.js +0 -17
- package/cjs/components/portal/storybook/templates/basic.js +0 -17
- package/cjs/components/portal/storybook/templates/index.js +0 -28
- package/cjs/components/portal/types.js +0 -11
- package/cjs/components/portal/usePortal.js +0 -47
- package/cjs/components/shared/InvalidIcon.js +0 -15
- package/cjs/components/shared/ValidIcon.js +0 -15
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +0 -138
- package/cjs/components/status/LoadingAnimation/index.js +0 -14
- package/cjs/components/status/Spin/Cube.js +0 -196
- package/cjs/components/status/Spin/InternalSpinner.js +0 -29
- package/cjs/components/status/Spin/Spin.js +0 -24
- package/cjs/components/status/Spin/SpinsContainer.js +0 -45
- package/cjs/components/status/Spin/index.js +0 -26
- package/cjs/components/status/Spin/types.js +0 -11
- package/cjs/components/status/index.js +0 -27
- package/cjs/data/themes.js +0 -33
- package/cjs/icons/AiIcon.js +0 -15
- package/cjs/icons/AreaChartIcon.js +0 -15
- package/cjs/icons/BackwardIcon.js +0 -15
- package/cjs/icons/BarChartIcon.js +0 -15
- package/cjs/icons/BellFilledIcon.js +0 -15
- package/cjs/icons/BellIcon.js +0 -15
- package/cjs/icons/BooleanIcon.js +0 -15
- package/cjs/icons/CalendarEditIcon.js +0 -15
- package/cjs/icons/CalendarIcon.js +0 -15
- package/cjs/icons/CaretDownIcon.js +0 -15
- package/cjs/icons/CaretUpIcon.js +0 -15
- package/cjs/icons/CheckCircleFilledIcon.js +0 -15
- package/cjs/icons/CheckCircleIcon.js +0 -15
- package/cjs/icons/CheckIcon.js +0 -15
- package/cjs/icons/CircleFilledIcon.js +0 -15
- package/cjs/icons/ClearIcon.js +0 -15
- package/cjs/icons/CloseCircleFilledIcon.js +0 -15
- package/cjs/icons/CloseCircleIcon.js +0 -15
- package/cjs/icons/CloseIcon.js +0 -15
- package/cjs/icons/CodeIcon.js +0 -15
- package/cjs/icons/CopyIcon.js +0 -15
- package/cjs/icons/CountIcon.js +0 -15
- package/cjs/icons/CubeIcon.js +0 -15
- package/cjs/icons/DangerIcon.js +0 -15
- package/cjs/icons/DashboardIcon.js +0 -15
- package/cjs/icons/DatabaseIcon.js +0 -15
- package/cjs/icons/DirectionIcon.js +0 -70
- package/cjs/icons/DonutIcon.js +0 -15
- package/cjs/icons/DownIcon.js +0 -15
- package/cjs/icons/EditIcon.js +0 -15
- package/cjs/icons/ExclamationCircleFilledIcon.js +0 -15
- package/cjs/icons/ExclamationCircleIcon.js +0 -15
- package/cjs/icons/ExclamationIcon.js +0 -15
- package/cjs/icons/EyeIcon.js +0 -15
- package/cjs/icons/EyeInvisibleIcon.js +0 -15
- package/cjs/icons/FilterIcon.js +0 -15
- package/cjs/icons/FolderFilledIcon.js +0 -15
- package/cjs/icons/FolderIcon.js +0 -15
- package/cjs/icons/FolderOpenFilledIcon.js +0 -15
- package/cjs/icons/FolderOpenIcon.js +0 -15
- package/cjs/icons/ForwardIcon.js +0 -15
- package/cjs/icons/HierarchyIcon.js +0 -15
- package/cjs/icons/Icon.js +0 -39
- package/cjs/icons/InfoCircleIcon.js +0 -15
- package/cjs/icons/InfoIcon.js +0 -15
- package/cjs/icons/KeyIcon.js +0 -15
- package/cjs/icons/LeftIcon.js +0 -15
- package/cjs/icons/LineChartIcon.js +0 -15
- package/cjs/icons/LoadingIcon.js +0 -15
- package/cjs/icons/LockFilledIcon.js +0 -15
- package/cjs/icons/LockIcon.js +0 -15
- package/cjs/icons/MoreIcon.js +0 -15
- package/cjs/icons/NotAllowedIcon.js +0 -15
- package/cjs/icons/NumberIcon.js +0 -15
- package/cjs/icons/PauseCircleFilledIcon.js +0 -15
- package/cjs/icons/PauseCircleIcon.js +0 -15
- package/cjs/icons/PauseIcon.js +0 -15
- package/cjs/icons/PieChartIcon.js +0 -15
- package/cjs/icons/PlayCircleIcon.js +0 -15
- package/cjs/icons/PlayIcon.js +0 -15
- package/cjs/icons/PlusIcon.js +0 -15
- package/cjs/icons/ReloadIcon.js +0 -15
- package/cjs/icons/ReportIcon.js +0 -15
- package/cjs/icons/ReturnIcon.js +0 -15
- package/cjs/icons/RightIcon.js +0 -15
- package/cjs/icons/SchemeIcon.js +0 -15
- package/cjs/icons/SearchIcon.js +0 -15
- package/cjs/icons/SettingsIcon.js +0 -15
- package/cjs/icons/ShieldFilledIcon.js +0 -15
- package/cjs/icons/ShieldIcon.js +0 -15
- package/cjs/icons/SlashIcon.js +0 -15
- package/cjs/icons/SparklesIcon.js +0 -15
- package/cjs/icons/SqlIcon.js +0 -15
- package/cjs/icons/StatsIcon.js +0 -15
- package/cjs/icons/StopIcon.js +0 -15
- package/cjs/icons/StringIcon.js +0 -15
- package/cjs/icons/SwitchIcon.js +0 -15
- package/cjs/icons/TableIcon.js +0 -15
- package/cjs/icons/ThumbsDownIcon.js +0 -15
- package/cjs/icons/ThumbsUpIcon.js +0 -15
- package/cjs/icons/ThunderboltCrossedIcon.js +0 -15
- package/cjs/icons/ThunderboltFilledIcon.js +0 -15
- package/cjs/icons/ThunderboltIcon.js +0 -15
- package/cjs/icons/TimeIcon.js +0 -15
- package/cjs/icons/UnlockIcon.js +0 -15
- package/cjs/icons/UpIcon.js +0 -15
- package/cjs/icons/UserGroupIcon.js +0 -15
- package/cjs/icons/UserIcon.js +0 -15
- package/cjs/icons/UserLockIcon.js +0 -15
- package/cjs/icons/ViewIcon.js +0 -15
- package/cjs/icons/WarningFilledIcon.js +0 -15
- package/cjs/icons/WarningIcon.js +0 -15
- package/cjs/icons/add-new-icon.js +0 -130
- package/cjs/icons/index.js +0 -199
- package/cjs/icons/wrap-icon.js +0 -21
- package/cjs/index.js +0 -160
- package/cjs/provider.js +0 -60
- package/cjs/providers/TrackingProvider.js +0 -31
- package/cjs/services/notification.js +0 -70
- package/cjs/shared/form.js +0 -11
- package/cjs/shared/index.js +0 -26
- package/cjs/stories/Form.stories.js +0 -92
- package/cjs/stories/FormFieldArgs.js +0 -360
- package/cjs/stories/Layout.stories.js +0 -29
- package/cjs/stories/Tasty.stories.js +0 -23
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +0 -35
- package/cjs/stories/components/DialogFormApp.js +0 -18
- package/cjs/stories/components/StyledButton.js +0 -37
- package/cjs/stories/lists/baseProps.js +0 -42
- package/cjs/tasty/index.js +0 -41
- package/cjs/tasty/providers/BreakpointsProvider.js +0 -20
- package/cjs/tasty/styles/align.js +0 -23
- package/cjs/tasty/styles/border.js +0 -57
- package/cjs/tasty/styles/boxShadow.combinator.js +0 -25
- package/cjs/tasty/styles/color.js +0 -42
- package/cjs/tasty/styles/createStyle.js +0 -71
- package/cjs/tasty/styles/dimension.js +0 -88
- package/cjs/tasty/styles/display.js +0 -16
- package/cjs/tasty/styles/fade.js +0 -41
- package/cjs/tasty/styles/fill.js +0 -41
- package/cjs/tasty/styles/flow.js +0 -23
- package/cjs/tasty/styles/font.js +0 -26
- package/cjs/tasty/styles/fontStyle.js +0 -22
- package/cjs/tasty/styles/gap.js +0 -55
- package/cjs/tasty/styles/groupRadius.js +0 -63
- package/cjs/tasty/styles/height.js +0 -18
- package/cjs/tasty/styles/index.js +0 -32
- package/cjs/tasty/styles/inset.js +0 -35
- package/cjs/tasty/styles/justify.js +0 -23
- package/cjs/tasty/styles/list.js +0 -89
- package/cjs/tasty/styles/margin.js +0 -49
- package/cjs/tasty/styles/marginBlock.js +0 -35
- package/cjs/tasty/styles/marginInline.js +0 -39
- package/cjs/tasty/styles/outline.js +0 -27
- package/cjs/tasty/styles/padding.js +0 -50
- package/cjs/tasty/styles/paddingBlock.js +0 -39
- package/cjs/tasty/styles/paddingInline.js +0 -39
- package/cjs/tasty/styles/predefined.js +0 -171
- package/cjs/tasty/styles/preset.js +0 -76
- package/cjs/tasty/styles/radius.js +0 -75
- package/cjs/tasty/styles/reset.js +0 -91
- package/cjs/tasty/styles/shadow.js +0 -29
- package/cjs/tasty/styles/styledScrollbar.js +0 -56
- package/cjs/tasty/styles/transition.js +0 -89
- package/cjs/tasty/styles/types.js +0 -11
- package/cjs/tasty/styles/width.js +0 -18
- package/cjs/tasty/tasty.js +0 -183
- package/cjs/tasty/types.js +0 -11
- package/cjs/tasty/utils/cache-wrapper.js +0 -34
- package/cjs/tasty/utils/case-converter.js +0 -15
- package/cjs/tasty/utils/colors.js +0 -18
- package/cjs/tasty/utils/dotize.js +0 -200
- package/cjs/tasty/utils/filterBaseProps.js +0 -70
- package/cjs/tasty/utils/getDisplayName.js +0 -19
- package/cjs/tasty/utils/index.js +0 -45
- package/cjs/tasty/utils/mergeStyles.js +0 -35
- package/cjs/tasty/utils/modAttrs.js +0 -26
- package/cjs/tasty/utils/renderStyles.js +0 -133
- package/cjs/tasty/utils/responsive.js +0 -71
- package/cjs/tasty/utils/string.js +0 -15
- package/cjs/tasty/utils/styles.js +0 -854
- package/cjs/tasty/utils/warnings.js +0 -36
- package/cjs/tokens.js +0 -255
- package/cjs/type-checks.js +0 -19
- package/cjs/utils/ResizeSensor.js +0 -324
- package/cjs/utils/modules.js +0 -15
- package/cjs/utils/promise.js +0 -17
- package/cjs/utils/random.js +0 -17
- package/cjs/utils/range.js +0 -15
- package/cjs/utils/react/Slots.js +0 -48
- package/cjs/utils/react/chain.js +0 -24
- package/cjs/utils/react/index.js +0 -32
- package/cjs/utils/react/interactions.js +0 -30
- package/cjs/utils/react/isTextOnly.js +0 -16
- package/cjs/utils/react/mapProps.js +0 -29
- package/cjs/utils/react/mergeProps.js +0 -71
- package/cjs/utils/react/nullableValue.js +0 -45
- package/cjs/utils/react/useCombinedRefs.js +0 -29
- package/cjs/utils/react/useId.js +0 -87
- package/cjs/utils/react/useLayoutEffect.js +0 -40
- package/cjs/utils/react/useViewportSize.js +0 -56
- package/cjs/utils/react/wrapNodeIfPlain.js +0 -21
- package/cjs/utils/transitions.js +0 -67
- package/cjs/utils/tree.js +0 -27
- package/cjs/utils/warnings.js +0 -57
- package/cjs/version.js +0 -25
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Paragraph = void 0;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const tasty_1 = require("../../tasty");
|
14
|
-
const Text_1 = require("./Text");
|
15
|
-
const DEFAULT_STYLES = {
|
16
|
-
preset: 'p3',
|
17
|
-
color: '#dark-02',
|
18
|
-
display: 'block',
|
19
|
-
};
|
20
|
-
const STYLE_PROPS = [...tasty_1.CONTAINER_STYLES, ...tasty_1.TEXT_STYLES];
|
21
|
-
exports.Paragraph = (0, react_1.forwardRef)(function Paragraph(props, ref) {
|
22
|
-
const styles = (0, tasty_1.extractStyles)(props, STYLE_PROPS, DEFAULT_STYLES);
|
23
|
-
return (0, jsx_runtime_1.jsx)(Text_1.Text, { as: "p", qa: "Paragraph", ...props, ref: ref, styles: styles });
|
24
|
-
});
|
25
|
-
|
26
|
-
|
@@ -1,74 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.Placeholder = void 0;
|
14
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
15
|
-
const react_1 = require("react");
|
16
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
17
|
-
const tasty_1 = require("../../../tasty");
|
18
|
-
const PlaceholderElement = (0, tasty_1.tasty)({
|
19
|
-
role: 'alert',
|
20
|
-
'aria-live': 'polite',
|
21
|
-
'aria-label': 'Content is loading',
|
22
|
-
styles: {
|
23
|
-
display: 'block',
|
24
|
-
fill: '#dark.10',
|
25
|
-
height: '2x',
|
26
|
-
opacity: '.35',
|
27
|
-
},
|
28
|
-
});
|
29
|
-
const StyledPlaceholder = (0, styled_components_1.default)(PlaceholderElement) `
|
30
|
-
--placeholder-animation-time: 1.4s;
|
31
|
-
--placeholder-animation-size: calc((180rem + 100vw) / 3);
|
32
|
-
background-repeat: repeat;
|
33
|
-
background-size: var(--placeholder-animation-size);
|
34
|
-
|
35
|
-
&& {
|
36
|
-
background-color: rgba(var(--dark-color-rgb), 0.15);
|
37
|
-
}
|
38
|
-
|
39
|
-
&[data-is-animated] {
|
40
|
-
animation: placeholder-animation var(--placeholder-animation-time) linear
|
41
|
-
infinite;
|
42
|
-
background-image: linear-gradient(
|
43
|
-
135deg,
|
44
|
-
rgba(var(--dark-color-rgb), 0.15) 0%,
|
45
|
-
rgba(var(--dark-color-rgb), 0.15) 5%,
|
46
|
-
rgba(var(--dark-color-rgb), 0) 35%,
|
47
|
-
rgba(var(--dark-03-color-rgb), 0.2) 50%,
|
48
|
-
rgba(var(--dark-03-color-rgb), 0) 65%,
|
49
|
-
rgba(var(--dark-color-rgb), 0.15) 95%,
|
50
|
-
rgba(var(--dark-color-rgb), 0.15) 100%
|
51
|
-
);
|
52
|
-
}
|
53
|
-
|
54
|
-
@keyframes placeholder-animation {
|
55
|
-
0% {
|
56
|
-
background-position: 0 0;
|
57
|
-
}
|
58
|
-
100% {
|
59
|
-
background-position: var(--placeholder-animation-size) 0;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
`;
|
63
|
-
exports.Placeholder = (0, react_1.forwardRef)(function Placeholder(allProps, ref) {
|
64
|
-
let { size = '2x', isStatic, circle, ...props } = allProps;
|
65
|
-
let styles = (0, tasty_1.extractStyles)(props, tasty_1.CONTAINER_STYLES);
|
66
|
-
return ((0, jsx_runtime_1.jsx)(StyledPlaceholder, { role: "region", ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), ref: ref, mods: { animated: !isStatic }, styles: {
|
67
|
-
height: size,
|
68
|
-
width: circle ? size : false,
|
69
|
-
radius: circle ? '9999rem' : '1r',
|
70
|
-
...styles,
|
71
|
-
} }));
|
72
|
-
});
|
73
|
-
|
74
|
-
|
@@ -1,70 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.PrismCode = void 0;
|
14
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
15
|
-
const react_1 = require("react");
|
16
|
-
const prismjs_1 = __importDefault(require("prismjs"));
|
17
|
-
require("prismjs/components/prism-yaml");
|
18
|
-
require("prismjs/components/prism-sql");
|
19
|
-
require("prismjs/components/prism-javascript");
|
20
|
-
require("prismjs/components/prism-diff");
|
21
|
-
require("prismjs/plugins/diff-highlight/prism-diff-highlight");
|
22
|
-
const tasty_1 = require("../../../tasty");
|
23
|
-
const PreElement = (0, tasty_1.tasty)({
|
24
|
-
as: 'pre',
|
25
|
-
qa: 'CodeBlock',
|
26
|
-
styleProps: tasty_1.CONTAINER_STYLES.concat([]),
|
27
|
-
className: 'cube-prism-code',
|
28
|
-
styles: {
|
29
|
-
margin: 0,
|
30
|
-
padding: 0,
|
31
|
-
overflow: 'auto',
|
32
|
-
styledScrollbar: true,
|
33
|
-
Code: {
|
34
|
-
display: 'block',
|
35
|
-
},
|
36
|
-
},
|
37
|
-
});
|
38
|
-
function isDiffCode(code) {
|
39
|
-
// Split the code into lines
|
40
|
-
const lines = code.split('\n');
|
41
|
-
// Define patterns to check for diff characteristics
|
42
|
-
const additionPattern = /^\+/; // Lines starting with '+'
|
43
|
-
const deletionPattern = /^-/; // Lines starting with '-'
|
44
|
-
const headerPattern = /^(diff --git|---|\+\+\+)/; // Diff headers
|
45
|
-
// Check each line for diff-specific patterns
|
46
|
-
for (const line of lines) {
|
47
|
-
if (additionPattern.test(line) ||
|
48
|
-
deletionPattern.test(line) ||
|
49
|
-
headerPattern.test(line)) {
|
50
|
-
return true; // Code matches a diff pattern
|
51
|
-
}
|
52
|
-
}
|
53
|
-
// No diff-specific patterns found
|
54
|
-
return false;
|
55
|
-
}
|
56
|
-
function PrismCode(props, ref) {
|
57
|
-
let { code, language = 'javascript', ...otherProps } = props;
|
58
|
-
const isDiff = isDiffCode(code || '');
|
59
|
-
(0, react_1.useEffect)(() => {
|
60
|
-
prismjs_1.default.highlightAll();
|
61
|
-
});
|
62
|
-
return ((0, jsx_runtime_1.jsx)(PreElement, { ref: ref, ...otherProps, children: (0, jsx_runtime_1.jsx)("code", { "data-element": "Code", className: `language${isDiff ? '-diff' : ''}-${language}${isDiff ? ' diff-highlight' : ''}`, children: code }) }));
|
63
|
-
}
|
64
|
-
/**
|
65
|
-
* Code block with syntax highlighting
|
66
|
-
*/
|
67
|
-
const _PrismCode = (0, react_1.forwardRef)(PrismCode);
|
68
|
-
exports.PrismCode = _PrismCode;
|
69
|
-
|
70
|
-
|
@@ -1,47 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.PrismDiffCode = PrismDiffCode;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const diff_1 = require("diff");
|
13
|
-
const PrismCode_1 = require("../PrismCode/PrismCode");
|
14
|
-
function PrismDiffCode({ original, modified, ...props }) {
|
15
|
-
// Generate the diff string
|
16
|
-
const diff = (0, diff_1.diffLines)(original, modified);
|
17
|
-
const diffString = diff
|
18
|
-
.map((part) => {
|
19
|
-
const value = part.value.trimEnd();
|
20
|
-
if (part.added) {
|
21
|
-
return value
|
22
|
-
.split('\n')
|
23
|
-
.map((val) => {
|
24
|
-
return val ? `+${val}` : '';
|
25
|
-
})
|
26
|
-
.join('\n');
|
27
|
-
}
|
28
|
-
if (part.removed) {
|
29
|
-
return value
|
30
|
-
.split('\n')
|
31
|
-
.map((val) => {
|
32
|
-
return val ? `-${val}` : '';
|
33
|
-
})
|
34
|
-
.join('\n');
|
35
|
-
}
|
36
|
-
return value
|
37
|
-
.split('\n')
|
38
|
-
.map((val) => {
|
39
|
-
return val ? ` ${val}` : '';
|
40
|
-
})
|
41
|
-
.join('\n');
|
42
|
-
})
|
43
|
-
.join('\n');
|
44
|
-
return (0, jsx_runtime_1.jsx)(PrismCode_1.PrismCode, { code: diffString, ...props });
|
45
|
-
}
|
46
|
-
|
47
|
-
|
@@ -1,131 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Result = void 0;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const icons_1 = require("@ant-design/icons");
|
14
|
-
const Title_1 = require("../Title");
|
15
|
-
const tasty_1 = require("../../../tasty");
|
16
|
-
const react_2 = require("../../../utils/react");
|
17
|
-
const icons_2 = require("../../../icons");
|
18
|
-
const Container = (0, tasty_1.tasty)({
|
19
|
-
qa: 'Result_Container',
|
20
|
-
as: 'section',
|
21
|
-
styles: {
|
22
|
-
display: {
|
23
|
-
'': 'flex',
|
24
|
-
compact: 'grid',
|
25
|
-
},
|
26
|
-
gridAreas: '"icon title" "content content"',
|
27
|
-
flow: 'column',
|
28
|
-
placeContent: {
|
29
|
-
'': 'center',
|
30
|
-
compact: 'start',
|
31
|
-
},
|
32
|
-
placeItems: {
|
33
|
-
'': 'center',
|
34
|
-
compact: 'start',
|
35
|
-
},
|
36
|
-
gap: {
|
37
|
-
'': '3x',
|
38
|
-
compact: '2x 1x',
|
39
|
-
},
|
40
|
-
padding: {
|
41
|
-
'': '6x 4x',
|
42
|
-
compact: '0',
|
43
|
-
},
|
44
|
-
textAlign: {
|
45
|
-
'': 'center',
|
46
|
-
compact: 'left',
|
47
|
-
},
|
48
|
-
Icon: {
|
49
|
-
gridArea: 'icon',
|
50
|
-
fontSize: {
|
51
|
-
'': '10x',
|
52
|
-
compact: '4x',
|
53
|
-
},
|
54
|
-
},
|
55
|
-
Content: {
|
56
|
-
gridArea: 'content',
|
57
|
-
display: 'block',
|
58
|
-
},
|
59
|
-
Title: {
|
60
|
-
gridArea: 'title',
|
61
|
-
display: 'flex',
|
62
|
-
flow: 'column',
|
63
|
-
placeItems: 'inherit',
|
64
|
-
gap: '1x',
|
65
|
-
placeSelf: 'center',
|
66
|
-
},
|
67
|
-
},
|
68
|
-
});
|
69
|
-
const statusIconMap = {
|
70
|
-
success: {
|
71
|
-
color: 'success',
|
72
|
-
component: icons_1.CheckCircleFilled,
|
73
|
-
},
|
74
|
-
error: {
|
75
|
-
color: 'danger',
|
76
|
-
component: icons_1.CloseCircleFilled,
|
77
|
-
},
|
78
|
-
info: {
|
79
|
-
color: 'purple',
|
80
|
-
component: icons_1.InfoCircleFilled,
|
81
|
-
},
|
82
|
-
warning: {
|
83
|
-
color: 'note',
|
84
|
-
component: icons_2.WarningFilledIcon,
|
85
|
-
},
|
86
|
-
404: {
|
87
|
-
color: 'purple',
|
88
|
-
component: () => {
|
89
|
-
// TODO: Needs to be implemented in the future
|
90
|
-
return null;
|
91
|
-
},
|
92
|
-
},
|
93
|
-
403: {
|
94
|
-
color: 'purple',
|
95
|
-
component: () => {
|
96
|
-
// TODO: Needs to be implemented in the future
|
97
|
-
return null;
|
98
|
-
},
|
99
|
-
},
|
100
|
-
500: {
|
101
|
-
color: 'purple',
|
102
|
-
component: () => {
|
103
|
-
// TODO: Needs to be implemented in the future
|
104
|
-
return null;
|
105
|
-
},
|
106
|
-
},
|
107
|
-
};
|
108
|
-
function Result(props, ref) {
|
109
|
-
let { children, isCompact, icon, status, subTitle, subtitle, title, ...otherProps } = props;
|
110
|
-
subtitle = subtitle ?? subTitle;
|
111
|
-
if (icon && status) {
|
112
|
-
console.warn('Don\'t use "icon" and "status" together, it can lead to possible errors.');
|
113
|
-
}
|
114
|
-
const iconNode = (0, react_1.useMemo)(() => {
|
115
|
-
if (icon) {
|
116
|
-
return icon;
|
117
|
-
}
|
118
|
-
const { color, component: Component } = status && statusIconMap.hasOwnProperty(status)
|
119
|
-
? statusIconMap[status]
|
120
|
-
: statusIconMap.info;
|
121
|
-
return ((0, jsx_runtime_1.jsx)("div", { "data-element": "Icon", style: { color: `var(--${color}-color)` }, children: (0, jsx_runtime_1.jsx)(Component, { "data-element": "Icon" }) }));
|
122
|
-
}, [icon, status]);
|
123
|
-
const styles = (0, tasty_1.extractStyles)(otherProps, tasty_1.CONTAINER_STYLES);
|
124
|
-
return ((0, jsx_runtime_1.jsxs)(Container, { ...(0, react_2.mergeProps)((0, tasty_1.filterBaseProps)(otherProps, { eventProps: true }), {
|
125
|
-
mods: { compact: isCompact },
|
126
|
-
}), ref: ref, styles: styles, children: [iconNode, (title || subtitle) && ((0, jsx_runtime_1.jsxs)("div", { "data-element": "Title", children: [(0, react_2.wrapNodeIfPlain)(title, () => ((0, jsx_runtime_1.jsx)(Title_1.Title, { level: 2, preset: isCompact ? 'h5' : 'h4', children: title }))), (0, react_2.wrapNodeIfPlain)(subtitle, () => ((0, jsx_runtime_1.jsx)(Title_1.Title, { level: 3, preset: isCompact ? 't3m' : 't2m', children: subtitle })))] })), children && (0, jsx_runtime_1.jsx)("div", { "data-element": "Content", children: children })] }));
|
127
|
-
}
|
128
|
-
const _Result = (0, react_1.forwardRef)(Result);
|
129
|
-
exports.Result = _Result;
|
130
|
-
|
131
|
-
|
@@ -1,78 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Skeleton = Skeleton;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const Placeholder_1 = require("../Placeholder/Placeholder");
|
13
|
-
const Flow_1 = require("../../layout/Flow");
|
14
|
-
const Space_1 = require("../../layout/Space");
|
15
|
-
const Grid_1 = require("../../layout/Grid");
|
16
|
-
const LAYOUT_MAP = {
|
17
|
-
page({ lines, children, isStatic = false, ...props }) {
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(Flow_1.Flow, { gap: "4x", ...props, children: [(0, jsx_runtime_1.jsxs)(Space_1.Space, { placeContent: "space-between", children: [(0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, width: "100px 25% 300px" }), (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, width: "50px 10% 150px" })] }), (0, jsx_runtime_1.jsx)(Flow_1.Flow, { gap: "2x", children: children ||
|
19
|
-
Array(lines || 5)
|
20
|
-
.fill(0)
|
21
|
-
.map((item, i) => (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic }, i)) })] }));
|
22
|
-
},
|
23
|
-
content({ children, lines, isStatic = false, ...props }) {
|
24
|
-
return ((0, jsx_runtime_1.jsx)(Flow_1.Flow, { gap: "2x", ...props, children: children ||
|
25
|
-
Array(lines || 5)
|
26
|
-
.fill(0)
|
27
|
-
.map((item, i) => (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic }, i)) }));
|
28
|
-
},
|
29
|
-
topbar({ isStatic = false, ...props }) {
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(Space_1.Space, { gap: "4x", placeContent: "space-between", height: "6x", padding: "1x", border: "bottom", ...props, children: [(0, jsx_runtime_1.jsxs)(Space_1.Space, { children: [(0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { circle: true, isStatic: isStatic, size: "4x" }), (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, width: "20x" })] }), (0, jsx_runtime_1.jsxs)(Space_1.Space, { children: [(0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, width: "10x" }), (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { circle: true, isStatic: isStatic, size: "4x" })] })] }));
|
31
|
-
},
|
32
|
-
menu({ lines, isStatic = false, ...props }) {
|
33
|
-
return ((0, jsx_runtime_1.jsx)(Flow_1.Flow, { gap: "3.25x", ...props, padding: "3x 1x", children: Array(lines || 5)
|
34
|
-
.fill(0)
|
35
|
-
.map((item, i) => ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic }, i))) }));
|
36
|
-
},
|
37
|
-
stats({ cards, isStatic = false, ...props }) {
|
38
|
-
return ((0, jsx_runtime_1.jsx)(Space_1.Space, { gap: "4x", ...props, children: Array(cards || 3)
|
39
|
-
.fill(0)
|
40
|
-
.map((item, i) => ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, radius: "1r", width: "20x", height: "12x", flexGrow: 1 }, i))) }));
|
41
|
-
},
|
42
|
-
tabs({ tabs, children, lines, isStatic = false, ...props }) {
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(Flow_1.Flow, { gap: "4x", ...props, children: [(0, jsx_runtime_1.jsx)(Space_1.Space, { children: Array(tabs || 3)
|
44
|
-
.fill(0)
|
45
|
-
.map((item, i) => ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, width: "15x" }, i))) }), (0, jsx_runtime_1.jsx)(Flow_1.Flow, { gap: "2x", children: children ||
|
46
|
-
Array(lines || 5)
|
47
|
-
.fill(0)
|
48
|
-
.map((item, i) => (0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic }, i)) })] }));
|
49
|
-
},
|
50
|
-
table({ rows, columns, isStatic = false, ...props }) {
|
51
|
-
columns = columns || 5;
|
52
|
-
rows = rows || 5;
|
53
|
-
return ((0, jsx_runtime_1.jsx)(Grid_1.Grid, { columns: `repeat(${columns}, 1fr)`, gap: "3x", ...props, padding: "1x 0", children: Array(rows)
|
54
|
-
.fill(0)
|
55
|
-
.map((item, i) => {
|
56
|
-
return Array(columns)
|
57
|
-
.fill(0)
|
58
|
-
.map((item, j) => {
|
59
|
-
return ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, size: !i ? '3x' : '2x' }, `${i}.${j}`));
|
60
|
-
});
|
61
|
-
}) }));
|
62
|
-
},
|
63
|
-
chart({ columns, isStatic = false, ...props }) {
|
64
|
-
columns = columns || 12;
|
65
|
-
const heightMap = [1, 4, 2, 5, 8, 9, 5, 3, 4, 2, 6, 7, 2];
|
66
|
-
return ((0, jsx_runtime_1.jsx)(Grid_1.Grid, { columns: `repeat(${columns}, 1fr)`, gap: "3x", padding: "1x 0", placeItems: "end stretch", height: "40x", ...props, children: Array(columns)
|
67
|
-
.fill(0)
|
68
|
-
.map((item, i) => {
|
69
|
-
return ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { isStatic: isStatic, height: `${heightMap[i % 12] * 10}%`, width: "max 6x" }, i));
|
70
|
-
}) }));
|
71
|
-
},
|
72
|
-
};
|
73
|
-
function Skeleton({ layout, isStatic, ...props }) {
|
74
|
-
layout = layout || 'page';
|
75
|
-
return LAYOUT_MAP[layout] ? (LAYOUT_MAP[layout]({ isStatic, ...props, qa: 'Skeleton' })) : ((0, jsx_runtime_1.jsx)(Placeholder_1.Placeholder, { ...props }));
|
76
|
-
}
|
77
|
-
|
78
|
-
|
@@ -1,96 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
10
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
11
|
-
};
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
-
exports.Tag = void 0;
|
14
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
15
|
-
const react_1 = require("react");
|
16
|
-
const themes_1 = __importDefault(require("../../../data/themes"));
|
17
|
-
const tasty_1 = require("../../../tasty");
|
18
|
-
const actions_1 = require("../../actions");
|
19
|
-
const Suffix_1 = require("../../layout/Suffix");
|
20
|
-
const icons_1 = require("../../../icons");
|
21
|
-
const TagElement = (0, tasty_1.tasty)({
|
22
|
-
qa: 'Tag',
|
23
|
-
role: 'status',
|
24
|
-
styles: {
|
25
|
-
position: 'relative',
|
26
|
-
display: 'inline-flex',
|
27
|
-
gap: '1x',
|
28
|
-
placeContent: 'center start',
|
29
|
-
placeItems: 'center start',
|
30
|
-
radius: '1r',
|
31
|
-
preset: 'tag',
|
32
|
-
width: '16px max-content max-content',
|
33
|
-
height: 'min-content',
|
34
|
-
textAlign: 'left',
|
35
|
-
whiteSpace: 'nowrap',
|
36
|
-
padding: {
|
37
|
-
'': '0 (1x - 1bw)',
|
38
|
-
closable: '0 (2.5x - 1bw) 0 (1x - 1bw)',
|
39
|
-
},
|
40
|
-
fill: {
|
41
|
-
'': '#dark.04',
|
42
|
-
...Object.keys(themes_1.default).reduce((map, type) => {
|
43
|
-
map[`[data-type="${type}"]`] = themes_1.default[type].fill;
|
44
|
-
return map;
|
45
|
-
}, {}),
|
46
|
-
},
|
47
|
-
color: {
|
48
|
-
'': '#dark.65',
|
49
|
-
...Object.keys(themes_1.default).reduce((map, type) => {
|
50
|
-
map[`[data-type="${type}"]`] = themes_1.default[type].color;
|
51
|
-
return map;
|
52
|
-
}, {}),
|
53
|
-
},
|
54
|
-
border: {
|
55
|
-
'': true,
|
56
|
-
...Object.keys(themes_1.default).reduce((map, type) => {
|
57
|
-
map[`[data-type="${type}"]`] = themes_1.default[type].border;
|
58
|
-
return map;
|
59
|
-
}, {}),
|
60
|
-
},
|
61
|
-
Icon: {
|
62
|
-
fontSize: '@icon-size',
|
63
|
-
},
|
64
|
-
Content: {
|
65
|
-
display: 'block',
|
66
|
-
width: 'max 100%',
|
67
|
-
textOverflow: 'ellipsis',
|
68
|
-
overflow: 'hidden',
|
69
|
-
pointerEvents: 'none',
|
70
|
-
},
|
71
|
-
},
|
72
|
-
});
|
73
|
-
const CloseAction = (0, tasty_1.tasty)(actions_1.Action, {
|
74
|
-
label: 'Close',
|
75
|
-
styles: {
|
76
|
-
display: 'grid',
|
77
|
-
placeItems: 'center',
|
78
|
-
color: true,
|
79
|
-
placeSelf: 'stretch',
|
80
|
-
opacity: {
|
81
|
-
'': 0.85,
|
82
|
-
'pressed | hovered': 1,
|
83
|
-
},
|
84
|
-
transition: 'opacity',
|
85
|
-
padding: '0 .5x',
|
86
|
-
},
|
87
|
-
});
|
88
|
-
function Tag(allProps, ref) {
|
89
|
-
let { type, icon, isClosable, onClose, closeButtonStyles, children, ...props } = allProps;
|
90
|
-
const styles = (0, tasty_1.extractStyles)(props, tasty_1.CONTAINER_STYLES);
|
91
|
-
return ((0, jsx_runtime_1.jsxs)(TagElement, { ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), ref: ref, styles: styles, "data-type": type, mods: { closable: isClosable }, children: [icon ? (0, jsx_runtime_1.jsx)("div", { "data-element": "TagIcon", children: icon }) : null, (0, jsx_runtime_1.jsx)("div", { "data-element": "Content", children: children }), isClosable ? ((0, jsx_runtime_1.jsx)(Suffix_1.Suffix, { outerGap: "0", children: (0, jsx_runtime_1.jsx)(CloseAction, { styles: closeButtonStyles, onPress: onClose, children: (0, jsx_runtime_1.jsx)(icons_1.CloseIcon, { size: 12 }) }) })) : undefined] }));
|
92
|
-
}
|
93
|
-
const _Tag = (0, react_1.forwardRef)(Tag);
|
94
|
-
exports.Tag = _Tag;
|
95
|
-
|
96
|
-
|
@@ -1,80 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Text = exports.TEXT_PROP_MAP = void 0;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const tasty_1 = require("../../tasty");
|
14
|
-
const react_2 = require("../../utils/react");
|
15
|
-
const STYLE_LIST = [...tasty_1.BASE_STYLES, ...tasty_1.TEXT_STYLES, ...tasty_1.COLOR_STYLES];
|
16
|
-
exports.TEXT_PROP_MAP = {
|
17
|
-
transform: 'textTransform',
|
18
|
-
weight: 'fontWeight',
|
19
|
-
italic: 'fontStyle',
|
20
|
-
};
|
21
|
-
const TextElement = (0, tasty_1.tasty)({
|
22
|
-
qa: 'Text',
|
23
|
-
as: 'span',
|
24
|
-
styles: {
|
25
|
-
display: {
|
26
|
-
'': 'inline',
|
27
|
-
'ellipsis | block': 'block',
|
28
|
-
},
|
29
|
-
margin: '0',
|
30
|
-
whiteSpace: {
|
31
|
-
'': 'inherit',
|
32
|
-
'nowrap | ellipsis': 'nowrap',
|
33
|
-
},
|
34
|
-
textOverflow: {
|
35
|
-
'': false,
|
36
|
-
ellipsis: 'ellipsis',
|
37
|
-
},
|
38
|
-
overflow: {
|
39
|
-
'': false,
|
40
|
-
ellipsis: 'hidden',
|
41
|
-
},
|
42
|
-
width: {
|
43
|
-
'': false,
|
44
|
-
ellipsis: 'max 100%',
|
45
|
-
},
|
46
|
-
},
|
47
|
-
});
|
48
|
-
const Text = (0, react_1.forwardRef)(function CubeText(allProps, ref) {
|
49
|
-
allProps = (0, react_2.useSlotProps)(allProps, 'text');
|
50
|
-
const { as, qa, block, styleName, ellipsis, nowrap, ...props } = allProps;
|
51
|
-
const styles = (0, tasty_1.extractStyles)(props, STYLE_LIST, {}, exports.TEXT_PROP_MAP);
|
52
|
-
return ((0, jsx_runtime_1.jsx)(TextElement, { as: as || 'span', qa: qa || 'Text', styleName: styleName, mods: {
|
53
|
-
nowrap,
|
54
|
-
ellipsis: !!ellipsis,
|
55
|
-
block: !!block,
|
56
|
-
}, ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), ref: ref, styles: styles }));
|
57
|
-
});
|
58
|
-
const _Text = Object.assign(Text, {
|
59
|
-
Minor: (0, react_1.forwardRef)(function MinorText(props, ref) {
|
60
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, color: "#minor", ...props });
|
61
|
-
}),
|
62
|
-
Danger: (0, react_1.forwardRef)(function DangerText(props, ref) {
|
63
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, role: "alert", color: "#danger-text", ...props });
|
64
|
-
}),
|
65
|
-
Success: (0, react_1.forwardRef)(function SuccessText(props, ref) {
|
66
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, color: "#success-text", ...props });
|
67
|
-
}),
|
68
|
-
Strong: (0, react_1.forwardRef)(function StrongText(props, ref) {
|
69
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, as: "strong", preset: "strong", ...props });
|
70
|
-
}),
|
71
|
-
Emphasis: (0, react_1.forwardRef)(function StrongText(props, ref) {
|
72
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, as: "em", preset: "em", ...props });
|
73
|
-
}),
|
74
|
-
Selection: (0, react_1.forwardRef)(function SelectionText(props, ref) {
|
75
|
-
return (0, jsx_runtime_1.jsx)(Text, { ref: ref, color: "#dark", fill: "#note.30", ...props });
|
76
|
-
}),
|
77
|
-
});
|
78
|
-
exports.Text = _Text;
|
79
|
-
|
80
|
-
|
@@ -1,71 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license MIT
|
3
|
-
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.56.3
|
5
|
-
* Released under the MIT license.
|
6
|
-
*/
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Title = void 0;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const tasty_1 = require("../../tasty");
|
14
|
-
const react_2 = require("../../utils/react");
|
15
|
-
const Text_1 = require("./Text");
|
16
|
-
const STYLE_LIST = [...tasty_1.TEXT_STYLES, ...tasty_1.CONTAINER_STYLES];
|
17
|
-
const TitleElement = (0, tasty_1.tasty)({
|
18
|
-
qa: 'Title',
|
19
|
-
as: 'h1', // it should be dynamic
|
20
|
-
styles: {
|
21
|
-
gridArea: 'heading',
|
22
|
-
display: 'block',
|
23
|
-
color: '#dark',
|
24
|
-
preset: {
|
25
|
-
'': 'h6',
|
26
|
-
'[data-level="1"]': 'h1',
|
27
|
-
'[data-level="2"]': 'h2',
|
28
|
-
'[data-level="3"]': 'h3',
|
29
|
-
'[data-level="4"]': 'h4',
|
30
|
-
'[data-level="5"]': 'h5',
|
31
|
-
'[data-level="6"]': 'h6',
|
32
|
-
},
|
33
|
-
margin: '0',
|
34
|
-
whiteSpace: {
|
35
|
-
'': 'inherit',
|
36
|
-
'nowrap | ellipsis': 'nowrap',
|
37
|
-
},
|
38
|
-
textOverflow: {
|
39
|
-
'': false,
|
40
|
-
ellipsis: 'ellipsis',
|
41
|
-
},
|
42
|
-
overflow: {
|
43
|
-
'': false,
|
44
|
-
ellipsis: 'hidden',
|
45
|
-
},
|
46
|
-
width: {
|
47
|
-
'': false,
|
48
|
-
ellipsis: 'max 100%',
|
49
|
-
},
|
50
|
-
},
|
51
|
-
});
|
52
|
-
const Title = (0, react_1.forwardRef)(function CubeTitle({ qa, as, styleName, inline, nowrap, ellipsis, level, ...props }, ref) {
|
53
|
-
const propsWithSlots = (0, react_2.useSlotProps)(props, 'heading');
|
54
|
-
const tag = `h${level || 1}`;
|
55
|
-
const styles = (0, tasty_1.extractStyles)(propsWithSlots, STYLE_LIST, {}, Text_1.TEXT_PROP_MAP);
|
56
|
-
return ((0, jsx_runtime_1.jsx)(TitleElement, { qa: qa || 'Title', as: as || tag, styleName: styleName, "data-level": level || 1, mods: {
|
57
|
-
nowrap,
|
58
|
-
ellipsis,
|
59
|
-
}, inline: inline, ...(0, tasty_1.filterBaseProps)(propsWithSlots, { eventProps: true }), ref: ref, styles: styles }));
|
60
|
-
});
|
61
|
-
const _Title = Object.assign(Title, {
|
62
|
-
Danger: (0, react_1.forwardRef)(function DangerTitle(props, ref) {
|
63
|
-
return (0, jsx_runtime_1.jsx)(Title, { ref: ref, color: "#danger-text", ...props });
|
64
|
-
}),
|
65
|
-
Success: (0, react_1.forwardRef)(function SuccessTitle(props, ref) {
|
66
|
-
return (0, jsx_runtime_1.jsx)(Title, { ref: ref, color: "#success-text", ...props });
|
67
|
-
}),
|
68
|
-
});
|
69
|
-
exports.Title = _Title;
|
70
|
-
|
71
|
-
|