@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,200 +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
|
-
/* eslint-disable */
|
10
|
-
// @ts-nocheck
|
11
|
-
// Convert complex js object to dot notation js object
|
12
|
-
// url: https://github.com/vardars/dotize
|
13
|
-
// author: vardars
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.dotize = void 0;
|
16
|
-
exports.dotize = {
|
17
|
-
valTypes: {
|
18
|
-
none: 'NONE',
|
19
|
-
primitive: 'PRIM',
|
20
|
-
object: 'OBJECT',
|
21
|
-
array: 'ARRAY',
|
22
|
-
},
|
23
|
-
getValType: function (val) {
|
24
|
-
if (!val || typeof val != 'object' || Array.isArray(val))
|
25
|
-
return exports.dotize.valTypes.primitive;
|
26
|
-
if (typeof val == 'object')
|
27
|
-
return exports.dotize.valTypes.object;
|
28
|
-
},
|
29
|
-
getPathType: function (arrPath) {
|
30
|
-
let arrPathTypes = [];
|
31
|
-
for (let path in arrPath) {
|
32
|
-
let pathVal = arrPath[path];
|
33
|
-
if (!pathVal)
|
34
|
-
arrPathTypes.push(exports.dotize.valTypes.none);
|
35
|
-
else if (exports.dotize.isNumber(pathVal))
|
36
|
-
arrPathTypes.push(exports.dotize.valTypes.array);
|
37
|
-
else
|
38
|
-
arrPathTypes.push(exports.dotize.valTypes.object);
|
39
|
-
}
|
40
|
-
return arrPathTypes;
|
41
|
-
},
|
42
|
-
isUndefined: function (obj) {
|
43
|
-
return typeof obj == 'undefined';
|
44
|
-
},
|
45
|
-
isNumber: function (f) {
|
46
|
-
return !isNaN(parseInt(f));
|
47
|
-
},
|
48
|
-
isEmptyObj: function (obj) {
|
49
|
-
for (let prop in obj) {
|
50
|
-
if (Object.hasOwnProperty.call(obj, prop))
|
51
|
-
return false;
|
52
|
-
}
|
53
|
-
return JSON.stringify(obj) === JSON.stringify({});
|
54
|
-
},
|
55
|
-
isPlainObject: function (obj) {
|
56
|
-
if (typeof obj !== 'object' || obj === null)
|
57
|
-
return false;
|
58
|
-
return Object.getPrototypeOf(obj) === Object.prototype;
|
59
|
-
},
|
60
|
-
isNotObject: function (obj) {
|
61
|
-
return !obj || !this.isPlainObject(obj);
|
62
|
-
},
|
63
|
-
isEmptyArray: function (arr) {
|
64
|
-
return Array.isArray(arr) && arr.length == 0;
|
65
|
-
},
|
66
|
-
isNotArray: function (arr) {
|
67
|
-
return Array.isArray(arr) == false;
|
68
|
-
},
|
69
|
-
removeEmptyArrayItem: function (arr) {
|
70
|
-
return arr.filter(function (el) {
|
71
|
-
return el != null && el != '';
|
72
|
-
});
|
73
|
-
},
|
74
|
-
getFieldName: function (field, prefix, isRoot, isArrayItem, isArray) {
|
75
|
-
if (isArray)
|
76
|
-
return ((prefix ? prefix : '') +
|
77
|
-
(exports.dotize.isNumber(field)
|
78
|
-
? '[' + field + ']'
|
79
|
-
: (isRoot && !prefix ? '' : '.') + field));
|
80
|
-
else if (isArrayItem)
|
81
|
-
return (prefix ? prefix : '') + '[' + field + ']';
|
82
|
-
else
|
83
|
-
return (prefix ? prefix + '.' : '') + field;
|
84
|
-
},
|
85
|
-
startsWith: function (val, valToSearch) {
|
86
|
-
return val.indexOf(valToSearch) == 0;
|
87
|
-
},
|
88
|
-
convert: function (obj, prefix = '') {
|
89
|
-
let newObj = {};
|
90
|
-
// primitives
|
91
|
-
if (exports.dotize.isNotObject(obj)) {
|
92
|
-
if (prefix) {
|
93
|
-
newObj[prefix] = obj;
|
94
|
-
return newObj;
|
95
|
-
}
|
96
|
-
else {
|
97
|
-
return obj;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
return (function recurse(o, p, isRoot) {
|
101
|
-
let isArrayItem = Array.isArray(o);
|
102
|
-
for (let f in o) {
|
103
|
-
let currentProp = o[f];
|
104
|
-
if (currentProp &&
|
105
|
-
typeof currentProp === 'object' &&
|
106
|
-
!Array.isArray(currentProp) &&
|
107
|
-
exports.dotize.isPlainObject(currentProp)) {
|
108
|
-
if (isArrayItem && exports.dotize.isEmptyObj(currentProp) == false) {
|
109
|
-
newObj = recurse(currentProp, exports.dotize.getFieldName(f, p, isRoot, true)); // array item object
|
110
|
-
}
|
111
|
-
else if (exports.dotize.isEmptyObj(currentProp) == false) {
|
112
|
-
newObj = recurse(currentProp, exports.dotize.getFieldName(f, p, isRoot)); // object
|
113
|
-
}
|
114
|
-
else if (exports.dotize.isEmptyObj(currentProp)) {
|
115
|
-
newObj[exports.dotize.getFieldName(f, p, isRoot, isArrayItem)] =
|
116
|
-
currentProp;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
else {
|
120
|
-
if (isArrayItem || exports.dotize.isNumber(f)) {
|
121
|
-
newObj[exports.dotize.getFieldName(f, p, isRoot, true)] = currentProp; // array item primitive
|
122
|
-
}
|
123
|
-
else {
|
124
|
-
newObj[exports.dotize.getFieldName(f, p, isRoot)] = currentProp; // primitive
|
125
|
-
}
|
126
|
-
}
|
127
|
-
}
|
128
|
-
return newObj;
|
129
|
-
})(obj, prefix, true);
|
130
|
-
},
|
131
|
-
backward: function (obj, prefix) {
|
132
|
-
let newObj = {};
|
133
|
-
let arStartRegex = /\[(\d+)\]/g;
|
134
|
-
// primitives
|
135
|
-
if (exports.dotize.isNotObject(obj) && exports.dotize.isNotArray(obj)) {
|
136
|
-
if (prefix) {
|
137
|
-
return obj[prefix];
|
138
|
-
}
|
139
|
-
else {
|
140
|
-
return obj;
|
141
|
-
}
|
142
|
-
}
|
143
|
-
for (let tProp in obj) {
|
144
|
-
let tPropVal = obj[tProp];
|
145
|
-
if (prefix) {
|
146
|
-
let prefixRegex = new RegExp('^' + prefix);
|
147
|
-
tProp = tProp.replace(prefixRegex, '');
|
148
|
-
}
|
149
|
-
tProp = tProp.replace(arStartRegex, '.$1');
|
150
|
-
if (exports.dotize.startsWith(tProp, '.'))
|
151
|
-
tProp = tProp.replace(/^\./, '');
|
152
|
-
var arrPath = tProp.split('.');
|
153
|
-
var arrPathTypes = exports.dotize.getPathType(arrPath);
|
154
|
-
// has array on root
|
155
|
-
if (!exports.dotize.isUndefined(arrPathTypes) &&
|
156
|
-
arrPathTypes[0] == exports.dotize.valTypes.array &&
|
157
|
-
Array.isArray(newObj) == false) {
|
158
|
-
newObj = [];
|
159
|
-
}
|
160
|
-
(function recurse(rPropVal, rObj, rPropValPrev, rObjPrev) {
|
161
|
-
let currentPath = arrPath.shift();
|
162
|
-
let currentPathType = arrPathTypes.shift();
|
163
|
-
if (typeof currentPath == 'undefined' || currentPath == '') {
|
164
|
-
newObj = rPropVal;
|
165
|
-
return;
|
166
|
-
}
|
167
|
-
let isArray = currentPathType == exports.dotize.valTypes.array;
|
168
|
-
if (exports.dotize.isNumber(currentPath))
|
169
|
-
currentPath = parseInt(currentPath);
|
170
|
-
// has multiple levels
|
171
|
-
if (arrPath.length > 0) {
|
172
|
-
// is not assigned before
|
173
|
-
if (typeof rObj[currentPath] == 'undefined') {
|
174
|
-
if (isArray) {
|
175
|
-
rObj[currentPath] = [];
|
176
|
-
}
|
177
|
-
else {
|
178
|
-
rObj[currentPath] = {};
|
179
|
-
}
|
180
|
-
}
|
181
|
-
recurse(rPropVal, rObj[currentPath], currentPath, rObj);
|
182
|
-
return;
|
183
|
-
}
|
184
|
-
if (currentPathType == exports.dotize.valTypes.array &&
|
185
|
-
rPropValPrev &&
|
186
|
-
rObjPrev) {
|
187
|
-
if (Array.isArray(rObjPrev[rPropValPrev]) == false)
|
188
|
-
rObjPrev[rPropValPrev] = [];
|
189
|
-
rObjPrev[rPropValPrev].push(rPropVal);
|
190
|
-
}
|
191
|
-
else {
|
192
|
-
rObj[currentPath] = rPropVal;
|
193
|
-
}
|
194
|
-
})(tPropVal, newObj);
|
195
|
-
}
|
196
|
-
return newObj;
|
197
|
-
},
|
198
|
-
};
|
199
|
-
|
200
|
-
|
@@ -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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.filterBaseProps = filterBaseProps;
|
11
|
-
const DOMPropNames = new Set(['id']);
|
12
|
-
const labelablePropNames = new Set([
|
13
|
-
'aria-label',
|
14
|
-
'aria-labelledby',
|
15
|
-
'aria-describedby',
|
16
|
-
'aria-details',
|
17
|
-
]);
|
18
|
-
const BasePropNames = new Set([
|
19
|
-
'role',
|
20
|
-
'as',
|
21
|
-
'element',
|
22
|
-
'css',
|
23
|
-
'qa',
|
24
|
-
'mods',
|
25
|
-
'qaVal',
|
26
|
-
'hidden',
|
27
|
-
'isHidden',
|
28
|
-
'disabled',
|
29
|
-
'isDisabled',
|
30
|
-
'children',
|
31
|
-
'style',
|
32
|
-
'className',
|
33
|
-
'href',
|
34
|
-
'target',
|
35
|
-
'tabIndex',
|
36
|
-
]);
|
37
|
-
const ignoreEventPropsNames = new Set([
|
38
|
-
'onPress',
|
39
|
-
'onHoverStart',
|
40
|
-
'onHoverEnd',
|
41
|
-
'onPressStart',
|
42
|
-
'onPressEnd',
|
43
|
-
]);
|
44
|
-
const propRe = /^((data-).*)$/;
|
45
|
-
const eventRe = /^on[A-Z].+$/;
|
46
|
-
/**
|
47
|
-
* Filters out all props that aren't valid DOM props or defined via override prop obj.
|
48
|
-
* @param props - The component props to be filtered.
|
49
|
-
* @param opts - Props to override.
|
50
|
-
*/
|
51
|
-
function filterBaseProps(props, opts = {}) {
|
52
|
-
let { labelable, propNames, eventProps } = opts;
|
53
|
-
let filteredProps = {};
|
54
|
-
for (const prop in props) {
|
55
|
-
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
56
|
-
(DOMPropNames.has(prop) ||
|
57
|
-
BasePropNames.has(prop) ||
|
58
|
-
(labelable && labelablePropNames.has(prop)) ||
|
59
|
-
(eventProps &&
|
60
|
-
eventRe.test(prop) &&
|
61
|
-
!ignoreEventPropsNames.has(prop)) ||
|
62
|
-
propNames?.has(prop) ||
|
63
|
-
propRe.test(prop))) {
|
64
|
-
filteredProps[prop] = props[prop];
|
65
|
-
}
|
66
|
-
}
|
67
|
-
return filteredProps;
|
68
|
-
}
|
69
|
-
|
70
|
-
|
@@ -1,19 +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.getDisplayName = getDisplayName;
|
11
|
-
const DEFAULT_NAME = 'Anonymous';
|
12
|
-
function getDisplayName(Component, fallbackName = DEFAULT_NAME) {
|
13
|
-
if (typeof Component === 'function') {
|
14
|
-
return Component.displayName ?? Component.name ?? fallbackName;
|
15
|
-
}
|
16
|
-
return fallbackName;
|
17
|
-
}
|
18
|
-
|
19
|
-
|
package/cjs/tasty/utils/index.js
DELETED
@@ -1,45 +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.getModCombinations = getModCombinations;
|
11
|
-
function filterCombinations(combinations) {
|
12
|
-
return combinations.filter((combination) => {
|
13
|
-
const list = [];
|
14
|
-
return !combination.find((mod) => {
|
15
|
-
const match = mod.match(/\[(.+?)[=\]]/);
|
16
|
-
if (match) {
|
17
|
-
if (list.includes(match[1])) {
|
18
|
-
return true;
|
19
|
-
}
|
20
|
-
list.push(match[1]);
|
21
|
-
return false;
|
22
|
-
}
|
23
|
-
return false;
|
24
|
-
});
|
25
|
-
});
|
26
|
-
}
|
27
|
-
function getModCombinations(array, allowEmpty) {
|
28
|
-
const result = allowEmpty ? [[]] : [];
|
29
|
-
if (array.length === 0) {
|
30
|
-
return [array];
|
31
|
-
}
|
32
|
-
if (array.length < 2) {
|
33
|
-
return result.concat([array]);
|
34
|
-
}
|
35
|
-
const f = function (prefix = [], array) {
|
36
|
-
for (let i = 0; i < array.length; i++) {
|
37
|
-
result.push([...prefix, array[i]]);
|
38
|
-
f([...prefix, array[i]], array.slice(i + 1));
|
39
|
-
}
|
40
|
-
};
|
41
|
-
f([], array);
|
42
|
-
return filterCombinations(result);
|
43
|
-
}
|
44
|
-
|
45
|
-
|
@@ -1,35 +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.mergeStyles = mergeStyles;
|
11
|
-
const renderStyles_1 = require("./renderStyles");
|
12
|
-
function mergeStyles(...objects) {
|
13
|
-
let styles = objects[0] ? { ...objects[0] } : {};
|
14
|
-
let pos = 1;
|
15
|
-
while (pos in objects) {
|
16
|
-
const selectorKeys = Object.keys(styles).filter((key) => (0, renderStyles_1.isSelector)(key) && styles[key]);
|
17
|
-
const newStyles = objects[pos];
|
18
|
-
if (newStyles) {
|
19
|
-
const resultStyles = { ...styles, ...newStyles };
|
20
|
-
for (let key of selectorKeys) {
|
21
|
-
if (newStyles?.[key]) {
|
22
|
-
resultStyles[key] = {
|
23
|
-
...styles[key],
|
24
|
-
...newStyles[key],
|
25
|
-
};
|
26
|
-
}
|
27
|
-
}
|
28
|
-
styles = resultStyles;
|
29
|
-
}
|
30
|
-
pos++;
|
31
|
-
}
|
32
|
-
return styles;
|
33
|
-
}
|
34
|
-
|
35
|
-
|
@@ -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.modAttrs = void 0;
|
11
|
-
const case_converter_1 = require("./case-converter");
|
12
|
-
const cache_wrapper_1 = require("./cache-wrapper");
|
13
|
-
function modAttrs(map) {
|
14
|
-
return map
|
15
|
-
? Object.keys(map).reduce((attrs, key) => {
|
16
|
-
if (map[key]) {
|
17
|
-
attrs[`data-is-${(0, case_converter_1.camelToKebab)(key)}`] = '';
|
18
|
-
}
|
19
|
-
return attrs;
|
20
|
-
}, {})
|
21
|
-
: null;
|
22
|
-
}
|
23
|
-
const _modAttrs = (0, cache_wrapper_1.cacheWrapper)(modAttrs);
|
24
|
-
exports.modAttrs = _modAttrs;
|
25
|
-
|
26
|
-
|
@@ -1,133 +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.isSelector = isSelector;
|
11
|
-
exports.renderStyles = renderStyles;
|
12
|
-
const styles_1 = require("../styles");
|
13
|
-
const responsive_1 = require("./responsive");
|
14
|
-
function isSelector(key) {
|
15
|
-
return key.startsWith('&') || key.startsWith('.') || key.match(/^[A-Z]/);
|
16
|
-
}
|
17
|
-
function getSelector(key) {
|
18
|
-
if (key.startsWith('&')) {
|
19
|
-
return key.slice(1);
|
20
|
-
}
|
21
|
-
if (key.startsWith('.')) {
|
22
|
-
return ` ${key}`;
|
23
|
-
}
|
24
|
-
if (key.match(/^[A-Z]/)) {
|
25
|
-
return ` [data-element="${key}"]`;
|
26
|
-
}
|
27
|
-
return null;
|
28
|
-
}
|
29
|
-
/** Props level cache for `renderStyles` function. */
|
30
|
-
let STYLE_CACHE = {};
|
31
|
-
/** Current size of the cache. */
|
32
|
-
let STYLE_CACHE_COUNT = 0;
|
33
|
-
/** Cache limit. */
|
34
|
-
const CACHE_LIMIT = 1000;
|
35
|
-
/**
|
36
|
-
* Render style props to complete Styled Components CSS.
|
37
|
-
* @param styles - Complete style props.
|
38
|
-
* @param responsive - A list of responsive zones
|
39
|
-
* @param {string} [suffix]
|
40
|
-
* @return {string}
|
41
|
-
*/
|
42
|
-
function renderStyles(styles, responsive = [], suffix) {
|
43
|
-
const zones = responsive;
|
44
|
-
const responsiveStyles = Array.from(Array(zones.length)).map(() => '');
|
45
|
-
const cacheKey = JSON.stringify({ s: styles, r: responsive, suffix });
|
46
|
-
let rawStyles = '';
|
47
|
-
const handlerQueue = [];
|
48
|
-
if (!STYLE_CACHE[cacheKey]) {
|
49
|
-
STYLE_CACHE_COUNT++;
|
50
|
-
// clear cache if size is more that the limit
|
51
|
-
if (STYLE_CACHE_COUNT > CACHE_LIMIT) {
|
52
|
-
STYLE_CACHE_COUNT = 0;
|
53
|
-
STYLE_CACHE = {};
|
54
|
-
}
|
55
|
-
const keys = styles ? Object.keys(styles) : [];
|
56
|
-
const selectorKeys = keys.filter((key) => isSelector(key));
|
57
|
-
let innerStyles = '';
|
58
|
-
if (selectorKeys.length) {
|
59
|
-
selectorKeys.forEach((key) => {
|
60
|
-
const addSuffix = getSelector(key);
|
61
|
-
innerStyles += renderStyles(styles?.[key], responsive, addSuffix);
|
62
|
-
});
|
63
|
-
}
|
64
|
-
keys.forEach((styleName) => {
|
65
|
-
if (isSelector(styleName))
|
66
|
-
return;
|
67
|
-
let handlers = styles_1.STYLE_HANDLER_MAP[styleName];
|
68
|
-
if (!handlers) {
|
69
|
-
handlers = styles_1.STYLE_HANDLER_MAP[styleName] = [(0, styles_1.createStyle)(styleName)];
|
70
|
-
}
|
71
|
-
handlers.forEach((STYLE) => {
|
72
|
-
if (handlerQueue.find((queueItem) => queueItem.handler === STYLE))
|
73
|
-
return;
|
74
|
-
let isResponsive = false;
|
75
|
-
const lookupStyles = STYLE.__lookupStyles;
|
76
|
-
const filteredStyleMap = lookupStyles.reduce((map, name) => {
|
77
|
-
map[name] = styles?.[name];
|
78
|
-
if (Array.isArray(map[name])) {
|
79
|
-
if (map[name].length === 0) {
|
80
|
-
delete map[name];
|
81
|
-
}
|
82
|
-
else {
|
83
|
-
if (map[name].length === 1) {
|
84
|
-
map[name] = map[name][0];
|
85
|
-
}
|
86
|
-
isResponsive = true;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
return map;
|
90
|
-
}, {});
|
91
|
-
handlerQueue.push({
|
92
|
-
handler: STYLE,
|
93
|
-
styleMap: filteredStyleMap,
|
94
|
-
isResponsive,
|
95
|
-
});
|
96
|
-
});
|
97
|
-
});
|
98
|
-
handlerQueue.forEach(({ handler, styleMap, isResponsive }) => {
|
99
|
-
const lookupStyles = handler.__lookupStyles;
|
100
|
-
if (isResponsive) {
|
101
|
-
const valueMap = lookupStyles.reduce((map, style) => {
|
102
|
-
map[style] = (0, responsive_1.normalizeStyleZones)(styleMap[style], zones.length);
|
103
|
-
return map;
|
104
|
-
}, {});
|
105
|
-
const propsByPoint = zones.map((zone, i) => {
|
106
|
-
const pointProps = {};
|
107
|
-
lookupStyles.forEach((style) => {
|
108
|
-
if (valueMap != null && valueMap[style] != null) {
|
109
|
-
pointProps[style] = valueMap[style][i];
|
110
|
-
}
|
111
|
-
});
|
112
|
-
return pointProps;
|
113
|
-
});
|
114
|
-
const rulesByPoint = propsByPoint.map((props) => handler(props, suffix));
|
115
|
-
rulesByPoint.forEach((rules, i) => {
|
116
|
-
responsiveStyles[i] += rules || '';
|
117
|
-
});
|
118
|
-
}
|
119
|
-
else {
|
120
|
-
rawStyles +=
|
121
|
-
handler(styleMap, suffix) || '';
|
122
|
-
}
|
123
|
-
});
|
124
|
-
STYLE_CACHE[cacheKey] = `&${suffix || ''}{outline: none;\n&[hidden]{display: none !important;}}${rawStyles}${responsive &&
|
125
|
-
responsive.length &&
|
126
|
-
responsiveStyles.filter((s) => s).length
|
127
|
-
? (0, responsive_1.mediaWrapper)(responsiveStyles, zones)
|
128
|
-
: ''}${innerStyles}`;
|
129
|
-
}
|
130
|
-
return STYLE_CACHE[cacheKey];
|
131
|
-
}
|
132
|
-
|
133
|
-
|
@@ -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.mediaWrapper = mediaWrapper;
|
11
|
-
exports.pointsToZones = pointsToZones;
|
12
|
-
exports.normalizeStyleZones = normalizeStyleZones;
|
13
|
-
function mediaWrapper(cssRules, points) {
|
14
|
-
return points
|
15
|
-
.filter((point) => point.mediaQuery)
|
16
|
-
.map((point, i) => `@media ${point.mediaQuery} {${cssRules[i]}}`)
|
17
|
-
.join('\n');
|
18
|
-
}
|
19
|
-
const zonesCache = {};
|
20
|
-
function pointsToZones(points) {
|
21
|
-
const cacheKey = points.join('|');
|
22
|
-
if (!zonesCache[cacheKey]) {
|
23
|
-
const zones = [];
|
24
|
-
points.forEach((point, i) => {
|
25
|
-
const zone = {};
|
26
|
-
if (i) {
|
27
|
-
zone.max = points[i - 1] - 1;
|
28
|
-
}
|
29
|
-
zone.min = point;
|
30
|
-
zones.push(zone);
|
31
|
-
});
|
32
|
-
zones.push({
|
33
|
-
max: points[points.length - 1] - 1,
|
34
|
-
});
|
35
|
-
zones.forEach((zone) => {
|
36
|
-
const queries = [];
|
37
|
-
if (zone.min) {
|
38
|
-
queries.push(`(min-width: ${zone.min}px)`);
|
39
|
-
}
|
40
|
-
if (zone.max) {
|
41
|
-
queries.push(`(max-width: ${zone.max}px)`);
|
42
|
-
}
|
43
|
-
zone.mediaQuery = queries.join(' and ');
|
44
|
-
});
|
45
|
-
zonesCache[cacheKey] = zones;
|
46
|
-
}
|
47
|
-
return zonesCache[cacheKey];
|
48
|
-
}
|
49
|
-
// export function getResponsiveValue(values, zoneNumber) {
|
50
|
-
// for (let i = zoneNumber; i >= 0; i--) {
|
51
|
-
// if (values[i] != null)
|
52
|
-
// }
|
53
|
-
// }
|
54
|
-
function normalizeStyleZones(value, zoneNumber) {
|
55
|
-
if (value == null)
|
56
|
-
return value;
|
57
|
-
const arr = Array.from(Array(zoneNumber));
|
58
|
-
if (typeof value === 'string')
|
59
|
-
return arr.map(() => value);
|
60
|
-
if (Array.isArray(value)) {
|
61
|
-
let prevValue = null;
|
62
|
-
for (let i = 0; i < arr.length; i++) {
|
63
|
-
arr[i] = value[i] == null ? prevValue : value[i];
|
64
|
-
prevValue = arr[i];
|
65
|
-
}
|
66
|
-
return arr;
|
67
|
-
}
|
68
|
-
return [];
|
69
|
-
}
|
70
|
-
|
71
|
-
|
@@ -1,15 +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.toSnakeCase = toSnakeCase;
|
11
|
-
function toSnakeCase(str) {
|
12
|
-
return str.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`);
|
13
|
-
}
|
14
|
-
|
15
|
-
|