@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,385 +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.GlobalStyles = void 0;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const styled_components_1 = require("styled-components");
|
13
|
-
const tokens_1 = require("../tokens");
|
14
|
-
const BODY_STYLES = {
|
15
|
-
'overscroll-behavior-y': 'none',
|
16
|
-
'background-color': 'white !important',
|
17
|
-
'font-family': 'var(--font)',
|
18
|
-
'-webkit-font-smoothing': 'antialiased',
|
19
|
-
'-moz-osx-font-smoothing': 'grayscale',
|
20
|
-
margin: '0',
|
21
|
-
padding: '0',
|
22
|
-
color: 'var(--dark-02-color)',
|
23
|
-
'font-size': '14px',
|
24
|
-
'line-height': '20px',
|
25
|
-
'letter-spacing': '0.02em',
|
26
|
-
'font-weight': '400',
|
27
|
-
};
|
28
|
-
const fontsProvider = ({ publicUrl = '', fontDisplay = 'swap' }) => `
|
29
|
-
@font-face {
|
30
|
-
font-family: 'Inter';
|
31
|
-
font-style: normal;
|
32
|
-
font-weight: 400;
|
33
|
-
font-display: ${fontDisplay};
|
34
|
-
src: url(${publicUrl}/fonts/Inter-Regular.woff2) format('woff2'),
|
35
|
-
url(${publicUrl}/fonts/Inter-Regular.woff) format('woff');
|
36
|
-
}
|
37
|
-
@font-face {
|
38
|
-
font-family: 'Inter';
|
39
|
-
font-style: normal;
|
40
|
-
font-weight: 500;
|
41
|
-
font-display: ${fontDisplay};
|
42
|
-
src: url(${publicUrl}/fonts/Inter-Medium.woff2) format('woff2'),
|
43
|
-
url(${publicUrl}/fonts/Inter-Medium.woff) format('woff');
|
44
|
-
}
|
45
|
-
@font-face {
|
46
|
-
font-family: 'Inter';
|
47
|
-
font-style: normal;
|
48
|
-
font-weight: 600;
|
49
|
-
font-display: ${fontDisplay};
|
50
|
-
src: url(${publicUrl}/fonts/Inter-SemiBold.woff2) format('woff2'),
|
51
|
-
url(${publicUrl}/fonts/Inter-SemiBold.woff) format('woff');
|
52
|
-
}
|
53
|
-
@font-face {
|
54
|
-
font-family: 'Inter';
|
55
|
-
font-style: normal;
|
56
|
-
font-weight: 700;
|
57
|
-
font-display: ${fontDisplay};
|
58
|
-
src: url(${publicUrl}/fonts/Inter-Bold.woff2) format('woff2'),
|
59
|
-
url(${publicUrl}/fonts/Inter-Bold.woff) format('woff');
|
60
|
-
}
|
61
|
-
@font-face {
|
62
|
-
font-family: 'Source Code Pro';
|
63
|
-
src: url('${publicUrl}/fonts/SourceCodePro-Regular.woff2') format('woff2'),
|
64
|
-
url('${publicUrl}/fonts/SourceCodePro-Regular.woff') format('woff');
|
65
|
-
font-weight: normal;
|
66
|
-
font-style: normal;
|
67
|
-
font-display: ${fontDisplay};
|
68
|
-
}
|
69
|
-
|
70
|
-
@font-face {
|
71
|
-
font-family: 'JetBrains Mono';
|
72
|
-
font-style: normal;
|
73
|
-
font-weight: 400;
|
74
|
-
font-display: ${fontDisplay};
|
75
|
-
src: url(${publicUrl}/fonts/JetBrainsMono-Regular.woff2) format('woff2'),
|
76
|
-
url(${publicUrl}/fonts/JetBrainsMono-Regular.woff) format('woff');
|
77
|
-
}
|
78
|
-
|
79
|
-
@font-face {
|
80
|
-
font-family: 'JetBrains Mono';
|
81
|
-
font-style: normal;
|
82
|
-
font-weight: 700;
|
83
|
-
font-display: ${fontDisplay};
|
84
|
-
src: url(${publicUrl}/fonts/JetBrainsMono-Bold.woff2) format('woff2'),
|
85
|
-
url(${publicUrl}/fonts/JetBrainsMono-Bold.woff) format('woff');
|
86
|
-
}
|
87
|
-
|
88
|
-
@font-face {
|
89
|
-
font-family: 'text-security-disc';
|
90
|
-
src: url(${publicUrl}/fonts/text-security-disc.woff2) format('woff2'),
|
91
|
-
url(${publicUrl}/fonts/text-security-disc.woff) format('woff');
|
92
|
-
}
|
93
|
-
`;
|
94
|
-
const GlobalStylesElement = (0, styled_components_1.createGlobalStyle) `
|
95
|
-
body {
|
96
|
-
${({ $applyLegacyTokens }) => {
|
97
|
-
return $applyLegacyTokens
|
98
|
-
? Object.entries(tokens_1.TOKENS)
|
99
|
-
.map(([key, value]) => {
|
100
|
-
// `inherit` value in custom property is reserved for inheritance behavior
|
101
|
-
if (value === 'inherit') {
|
102
|
-
// so we should rewrite it to contain the actual `inherit` value.
|
103
|
-
value = `var(--non-existent-${key}, inherit)`;
|
104
|
-
}
|
105
|
-
return `--${key}: ${value};`;
|
106
|
-
})
|
107
|
-
.join('\n ')
|
108
|
-
: '';
|
109
|
-
}}
|
110
|
-
${({ $bodyStyles }) => {
|
111
|
-
return Object.entries({ ...BODY_STYLES, ...$bodyStyles })
|
112
|
-
.map(([key, value]) => {
|
113
|
-
return `${key}: ${value};`;
|
114
|
-
})
|
115
|
-
.join('\n ');
|
116
|
-
}}
|
117
|
-
}
|
118
|
-
|
119
|
-
html {
|
120
|
-
overscroll-behavior-y: none;
|
121
|
-
--font: ${({ $font }) => $font ||
|
122
|
-
'Inter'}, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
123
|
-
--monospace-font: ${({ $monospaceFont }) => `${$monospaceFont ? `${$monospaceFont}, ` : ''}Menlo, Monaco, Consolas, 'Courier New', monospace;`}
|
124
|
-
}
|
125
|
-
|
126
|
-
kbd {
|
127
|
-
font-family: var(--c2-font-family);
|
128
|
-
font-weight: var(--c2-font-weight);
|
129
|
-
font-size: var(--c2-font-size);
|
130
|
-
border: var(--border-width) solid var(--dark-04-color);
|
131
|
-
background-color: white;
|
132
|
-
color: var(--dark-color);
|
133
|
-
border-radius: var(--radius);
|
134
|
-
padding: 0 var(--outline-width);
|
135
|
-
}
|
136
|
-
|
137
|
-
.cube-animation-spin {
|
138
|
-
animation: cube-animation-spin 1s linear infinite;
|
139
|
-
}
|
140
|
-
|
141
|
-
@keyframes cube-animation-spin {
|
142
|
-
from {
|
143
|
-
transform: rotate(0deg);
|
144
|
-
}
|
145
|
-
to {
|
146
|
-
transform: rotate(360deg);
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
.cube-notification-container {
|
151
|
-
min-width: 288px;
|
152
|
-
max-width: 340px;
|
153
|
-
width: calc(100vw - 32px);
|
154
|
-
position: fixed;
|
155
|
-
top: 32px;
|
156
|
-
right: 16px;
|
157
|
-
z-index: 999999;
|
158
|
-
}
|
159
|
-
|
160
|
-
.cube-notifications {
|
161
|
-
display: grid;
|
162
|
-
grid-auto-flow: row;
|
163
|
-
grid-template-columns: 1fr;
|
164
|
-
}
|
165
|
-
|
166
|
-
.cube-notification-enter {
|
167
|
-
opacity: 0;
|
168
|
-
max-height: 0px;
|
169
|
-
margin-bottom: 0px;
|
170
|
-
transform: translate(100%, 0);
|
171
|
-
}
|
172
|
-
|
173
|
-
.cube-notification-enter-active {
|
174
|
-
opacity: 1;
|
175
|
-
max-height: 56px;
|
176
|
-
margin-bottom: 8px;
|
177
|
-
transform: translate(0, 0);
|
178
|
-
transition: all 300ms ease-in;
|
179
|
-
|
180
|
-
& > * {
|
181
|
-
margin-bottom: 0px;
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
.cube-notification-exit {
|
186
|
-
opacity: 1;
|
187
|
-
margin-bottom: 8px;
|
188
|
-
max-height: 56px;
|
189
|
-
transform: translate(0, 0);
|
190
|
-
}
|
191
|
-
|
192
|
-
.cube-notification-exit-active {
|
193
|
-
opacity: 0;
|
194
|
-
max-height: 0px;
|
195
|
-
margin-bottom: 0px;
|
196
|
-
transform: translate(100%, 0);
|
197
|
-
transition: all 300ms ease-in;
|
198
|
-
|
199
|
-
& > * {
|
200
|
-
margin-bottom: 0px;
|
201
|
-
}
|
202
|
-
}
|
203
|
-
|
204
|
-
b, strong {
|
205
|
-
font-weight: var(--bold-font-weight, 700);
|
206
|
-
}
|
207
|
-
|
208
|
-
[type=reset], [type=submit], button, html [type=button] {
|
209
|
-
-webkit-appearance: none;
|
210
|
-
}
|
211
|
-
|
212
|
-
code {
|
213
|
-
font-family: var(--monospace-font);
|
214
|
-
}
|
215
|
-
|
216
|
-
${({ $fonts, $publicUrl, $fontDisplay }) => $fonts === false
|
217
|
-
? ''
|
218
|
-
: fontsProvider({
|
219
|
-
publicUrl: $publicUrl,
|
220
|
-
...($fontDisplay ? { fontDisplay: $fontDisplay } : {}),
|
221
|
-
})}
|
222
|
-
// Prism Code
|
223
|
-
code[class*="language-"],
|
224
|
-
pre[class*="language-"] {
|
225
|
-
color: var(--dark-color);
|
226
|
-
background: none;
|
227
|
-
font-family: var(--monospace-font);
|
228
|
-
text-align: left;
|
229
|
-
font-weight: normal;
|
230
|
-
font-size: 14px;
|
231
|
-
line-height: 20px;
|
232
|
-
white-space: pre;
|
233
|
-
word-spacing: normal;
|
234
|
-
word-break: normal;
|
235
|
-
word-wrap: normal;
|
236
|
-
border-radius: 6px;
|
237
|
-
border: none;
|
238
|
-
|
239
|
-
-moz-tab-size: 4;
|
240
|
-
-o-tab-size: 4;
|
241
|
-
tab-size: 4;
|
242
|
-
|
243
|
-
-webkit-hyphens: none;
|
244
|
-
-moz-hyphens: none;
|
245
|
-
-ms-hyphens: none;
|
246
|
-
hyphens: none;
|
247
|
-
}
|
248
|
-
|
249
|
-
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
250
|
-
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
251
|
-
text-shadow: none;
|
252
|
-
background: rgba(var(--purple-color-rgb), .2);
|
253
|
-
}
|
254
|
-
|
255
|
-
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
256
|
-
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
257
|
-
text-shadow: none;
|
258
|
-
background: rgba(var(--purple-color-rgb), .2);
|
259
|
-
}
|
260
|
-
|
261
|
-
@media print {
|
262
|
-
code[class*="language-"],
|
263
|
-
pre[class*="language-"] {
|
264
|
-
text-shadow: none;
|
265
|
-
}
|
266
|
-
}
|
267
|
-
|
268
|
-
/* Code blocks */
|
269
|
-
pre[class*="language-"] {
|
270
|
-
overflow: auto;
|
271
|
-
}
|
272
|
-
|
273
|
-
:not(pre) > code[class*="language-"],
|
274
|
-
pre[class*="language-"] {
|
275
|
-
background: transparent;
|
276
|
-
}
|
277
|
-
|
278
|
-
/* Inline code */
|
279
|
-
:not(pre) > code[class*="language-"] {
|
280
|
-
border-radius: .3em;
|
281
|
-
white-space: normal;
|
282
|
-
}
|
283
|
-
|
284
|
-
.token.comment,
|
285
|
-
.token.prolog,
|
286
|
-
.token.doctype,
|
287
|
-
.token.cdata {
|
288
|
-
color: var(--dark-03-color);
|
289
|
-
}
|
290
|
-
|
291
|
-
.token.tag,
|
292
|
-
.token.operator,
|
293
|
-
.token.punctuation {
|
294
|
-
color: #993388;
|
295
|
-
}
|
296
|
-
|
297
|
-
.namespace {
|
298
|
-
opacity: .7;
|
299
|
-
}
|
300
|
-
|
301
|
-
.token.property,
|
302
|
-
.token.boolean,
|
303
|
-
.token.constant,
|
304
|
-
.token.symbol,
|
305
|
-
.token.key,
|
306
|
-
.token.keyword,
|
307
|
-
.token.deleted {
|
308
|
-
color: var(--pink-color);
|
309
|
-
}
|
310
|
-
|
311
|
-
.token.entity,
|
312
|
-
.token.number {
|
313
|
-
color: #30A666;
|
314
|
-
}
|
315
|
-
|
316
|
-
.token.selector,
|
317
|
-
.token.attr-name,
|
318
|
-
.token.string,
|
319
|
-
.token.char,
|
320
|
-
.token.builtin,
|
321
|
-
.token.inserted {
|
322
|
-
color: var(--purple-text-color);
|
323
|
-
}
|
324
|
-
|
325
|
-
.token.url,
|
326
|
-
.language-css .token.string,
|
327
|
-
.style .token.string {
|
328
|
-
color: var(--dark-color);
|
329
|
-
}
|
330
|
-
|
331
|
-
.token.attr-value {
|
332
|
-
color: var(--dark-color);
|
333
|
-
}
|
334
|
-
|
335
|
-
.token.atrule,
|
336
|
-
.token.keyword {
|
337
|
-
font-weight: 500;
|
338
|
-
}
|
339
|
-
|
340
|
-
.token.function,
|
341
|
-
.token.class-name {
|
342
|
-
color: var(--pink-color);
|
343
|
-
}
|
344
|
-
|
345
|
-
.token.regex,
|
346
|
-
.token.important,
|
347
|
-
.token.variable {
|
348
|
-
color: var(--pink-color);
|
349
|
-
}
|
350
|
-
|
351
|
-
.token.important,
|
352
|
-
.token.bold {
|
353
|
-
font-weight: bold;
|
354
|
-
}
|
355
|
-
|
356
|
-
.token.italic {
|
357
|
-
font-style: italic;
|
358
|
-
}
|
359
|
-
|
360
|
-
.token.entity {
|
361
|
-
cursor: help;
|
362
|
-
}
|
363
|
-
|
364
|
-
.token.inserted-sign {
|
365
|
-
background-color: #e6ffed;
|
366
|
-
color: #30A666;
|
367
|
-
}
|
368
|
-
|
369
|
-
.token.deleted-sign {
|
370
|
-
background-color: #ffeef0;
|
371
|
-
color: (--danger-color);
|
372
|
-
}
|
373
|
-
`;
|
374
|
-
const GlobalStyles = (props) => {
|
375
|
-
const newProps = {};
|
376
|
-
Object.entries(props).forEach(([key, value]) => {
|
377
|
-
if (value !== undefined) {
|
378
|
-
newProps[`$${key}`] = value;
|
379
|
-
}
|
380
|
-
});
|
381
|
-
return (0, jsx_runtime_1.jsx)(GlobalStylesElement, { ...newProps });
|
382
|
-
};
|
383
|
-
exports.GlobalStyles = GlobalStyles;
|
384
|
-
|
385
|
-
|
@@ -1,89 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
12
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
13
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
14
|
-
}
|
15
|
-
Object.defineProperty(o, k2, desc);
|
16
|
-
}) : (function(o, m, k, k2) {
|
17
|
-
if (k2 === undefined) k2 = k;
|
18
|
-
o[k2] = m[k];
|
19
|
-
}));
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
22
|
-
}) : function(o, v) {
|
23
|
-
o["default"] = v;
|
24
|
-
});
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
26
|
-
if (mod && mod.__esModule) return mod;
|
27
|
-
var result = {};
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
29
|
-
__setModuleDefault(result, mod);
|
30
|
-
return result;
|
31
|
-
};
|
32
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
33
|
-
exports.GridProvider = void 0;
|
34
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
35
|
-
const react_1 = require("react");
|
36
|
-
const tasty_1 = require("../tasty");
|
37
|
-
const react_2 = require("../utils/react");
|
38
|
-
const tasty_2 = require("../tasty");
|
39
|
-
const GridElement = (0, tasty_2.tasty)({
|
40
|
-
styles: {
|
41
|
-
display: 'contents',
|
42
|
-
},
|
43
|
-
});
|
44
|
-
const COLUMN_WIDTH = '((@grid-width - (@column-gap * (@columns-amount - 1))) / @columns-amount)';
|
45
|
-
exports.GridProvider = (0, react_1.forwardRef)(function GridProvider(props, outerRef) {
|
46
|
-
let ref = (0, react_2.useCombinedRefs)(outerRef);
|
47
|
-
let { children, columns = 2, gap = '0', width: forcedWidth, initialWidth, } = props;
|
48
|
-
let [width, setWidth] = (0, react_1.useState)(forcedWidth || initialWidth || '100vw');
|
49
|
-
const resizeCallback = (0, react_1.useCallback)(() => {
|
50
|
-
const el = ref?.current?.parentElement;
|
51
|
-
if (!el)
|
52
|
-
return;
|
53
|
-
const computedStyle = getComputedStyle(el);
|
54
|
-
const containerWidth = el.clientWidth -
|
55
|
-
parseFloat(computedStyle.paddingLeft) -
|
56
|
-
parseFloat(computedStyle.paddingRight);
|
57
|
-
setWidth(`${containerWidth}px`);
|
58
|
-
}, [ref, columns, gap]);
|
59
|
-
(0, react_1.useEffect)(() => {
|
60
|
-
if (forcedWidth)
|
61
|
-
return;
|
62
|
-
const el = ref && ref.current && ref.current.parentNode;
|
63
|
-
if (!el)
|
64
|
-
return;
|
65
|
-
let sensor;
|
66
|
-
Promise.resolve().then(() => __importStar(require('../utils/ResizeSensor'))).then((module) => module.ResizeSensor)
|
67
|
-
.then((ResizeSensor) => {
|
68
|
-
sensor = new ResizeSensor(el, resizeCallback);
|
69
|
-
});
|
70
|
-
return () => {
|
71
|
-
if (sensor) {
|
72
|
-
sensor.detach();
|
73
|
-
}
|
74
|
-
};
|
75
|
-
}, [resizeCallback]);
|
76
|
-
(0, react_1.useEffect)(() => {
|
77
|
-
if (forcedWidth)
|
78
|
-
return;
|
79
|
-
resizeCallback();
|
80
|
-
}, [resizeCallback]);
|
81
|
-
return ((0, jsx_runtime_1.jsx)(GridElement, { ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), ref: ref, styles: {
|
82
|
-
'--grid-width': width,
|
83
|
-
'--columns-amount': columns,
|
84
|
-
'--column-gap': gap,
|
85
|
-
'--column-width': COLUMN_WIDTH,
|
86
|
-
}, children: children }));
|
87
|
-
});
|
88
|
-
|
89
|
-
|
@@ -1,38 +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.HiddenInput = void 0;
|
14
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
15
|
-
exports.HiddenInput = styled_components_1.default.input `
|
16
|
-
&&&&& {
|
17
|
-
display: block;
|
18
|
-
font-family: inherit;
|
19
|
-
font-size: 100%;
|
20
|
-
line-height: 1.15;
|
21
|
-
margin: 0;
|
22
|
-
overflow: visible;
|
23
|
-
box-sizing: border-box;
|
24
|
-
padding: 0;
|
25
|
-
position: absolute;
|
26
|
-
top: 0;
|
27
|
-
right: 0;
|
28
|
-
left: 0;
|
29
|
-
bottom: 0;
|
30
|
-
opacity: 0.0001;
|
31
|
-
z-index: 1;
|
32
|
-
width: 100%;
|
33
|
-
height: 100%;
|
34
|
-
cursor: ${({ $isButton }) => ($isButton ? 'pointer' : 'default')};
|
35
|
-
}
|
36
|
-
`;
|
37
|
-
|
38
|
-
|
@@ -1,34 +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.OpenTransition = OpenTransition;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const react_transition_group_1 = require("react-transition-group");
|
14
|
-
const OPEN_STATES = {
|
15
|
-
entering: false,
|
16
|
-
entered: true,
|
17
|
-
};
|
18
|
-
/**
|
19
|
-
* Timeout issues adding css animations to enter may be related to
|
20
|
-
* https://github.com/reactjs/react-transition-group/issues/189 or
|
21
|
-
* https://github.com/reactjs/react-transition-group/issues/22
|
22
|
-
* my VM isn't good enough to debug accurately and get a better answer.
|
23
|
-
*
|
24
|
-
* As a result, use enter 0 so that is-open is applied once entered
|
25
|
-
* it doesn't matter if we know when the css-animation is done on entering
|
26
|
-
* for exiting though, give time for the css-animation to play
|
27
|
-
* before removing from the DOM
|
28
|
-
* **note** hitting esc bypasses exit animation for anyone testing.
|
29
|
-
*/
|
30
|
-
function OpenTransition(props) {
|
31
|
-
return ((0, jsx_runtime_1.jsx)(react_transition_group_1.Transition, { timeout: { enter: 0, exit: 350 }, ...props, children: (state) => react_1.Children.map(props.children, (child) => child && (0, react_1.cloneElement)(child, { isOpen: !!OPEN_STATES[state] })) }));
|
32
|
-
}
|
33
|
-
|
34
|
-
|
package/cjs/components/Root.js
DELETED
@@ -1,92 +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.Root = Root;
|
11
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
|
-
const react_1 = require("react");
|
13
|
-
const react_aria_1 = require("react-aria");
|
14
|
-
const styled_components_1 = require("styled-components");
|
15
|
-
const tasty_1 = require("../tasty");
|
16
|
-
const provider_1 = require("../provider");
|
17
|
-
const tokens_1 = require("../tokens");
|
18
|
-
const react_2 = require("../utils/react");
|
19
|
-
const TrackingProvider_1 = require("../providers/TrackingProvider");
|
20
|
-
const portal_1 = require("./portal");
|
21
|
-
const GlobalStyles_1 = require("./GlobalStyles");
|
22
|
-
const AlertDialog_1 = require("./overlays/AlertDialog");
|
23
|
-
const NotificationsProvider_1 = require("./overlays/NewNotifications/NotificationsContext/NotificationsProvider");
|
24
|
-
const RootElement = (0, tasty_1.tasty)({
|
25
|
-
id: 'cube-ui-kit-root',
|
26
|
-
className: 'root',
|
27
|
-
});
|
28
|
-
const DEFAULT_STYLES = {
|
29
|
-
display: 'block',
|
30
|
-
preset: 't3',
|
31
|
-
...Object.keys(tokens_1.TOKENS).reduce((map, key) => {
|
32
|
-
map[`@${key}`] = tokens_1.TOKENS[key];
|
33
|
-
return map;
|
34
|
-
}, {}),
|
35
|
-
};
|
36
|
-
const STYLES = [...tasty_1.BASE_STYLES, ...tasty_1.BLOCK_STYLES];
|
37
|
-
const IS_DVH_SUPPORTED = typeof CSS !== 'undefined' && typeof CSS?.supports === 'function'
|
38
|
-
? CSS.supports('height: 100dvh')
|
39
|
-
: false;
|
40
|
-
function Root(allProps) {
|
41
|
-
let { children,
|
42
|
-
/** Raw css styles for body element */
|
43
|
-
bodyStyles, breakpoints = [980], fontDisplay = 'swap', fonts, publicUrl, router, font, monospaceFont, applyLegacyTokens, tracking, style, ...props } = allProps;
|
44
|
-
const ref = (0, react_1.useRef)(null);
|
45
|
-
const [rootRef, setRootRef] = (0, react_1.useState)();
|
46
|
-
// We need to measure the window's height in JS rather than using percentages in CSS
|
47
|
-
// so that contents (e.g. menu) can inherit the max-height properly. Using percentages
|
48
|
-
// does not work properly because there is nothing to base the percentage on.
|
49
|
-
// We cannot use vh units because mobile browsers adjust the window height dynamically
|
50
|
-
// when the address bar/bottom toolbars show and hide on scroll and vh units are fixed.
|
51
|
-
// Also, the visual viewport is smaller than the layout viewport when the virtual keyboard
|
52
|
-
// is up, so use the VisualViewport API to ensure the tray is displayed above the keyboard.
|
53
|
-
let viewport = (0, react_2.useViewportSize)({ isDisabled: IS_DVH_SUPPORTED });
|
54
|
-
let [height, setHeight] = (0, react_1.useState)(IS_DVH_SUPPORTED ? undefined : viewport.height);
|
55
|
-
let timeoutRef = (0, react_1.useRef)();
|
56
|
-
(0, react_1.useEffect)(() => {
|
57
|
-
if (IS_DVH_SUPPORTED && typeof window !== 'undefined') {
|
58
|
-
return;
|
59
|
-
}
|
60
|
-
if (timeoutRef.current) {
|
61
|
-
clearTimeout(timeoutRef.current);
|
62
|
-
}
|
63
|
-
// When the height is decreasing, and the keyboard is visible
|
64
|
-
// (visual viewport smaller than layout viewport), delay setting
|
65
|
-
// the new max height until after the animation is complete
|
66
|
-
// so that there isn't an empty space under the tray briefly.
|
67
|
-
if (viewport.height < (height || 0) &&
|
68
|
-
viewport.height < window.innerHeight) {
|
69
|
-
timeoutRef.current = setTimeout(() => {
|
70
|
-
setHeight(viewport.height);
|
71
|
-
}, 500);
|
72
|
-
}
|
73
|
-
else {
|
74
|
-
setHeight(viewport.height);
|
75
|
-
}
|
76
|
-
}, [height, viewport.height]);
|
77
|
-
(0, react_1.useEffect)(() => {
|
78
|
-
if (!rootRef) {
|
79
|
-
// @ts-ignore
|
80
|
-
setRootRef(ref?.current);
|
81
|
-
}
|
82
|
-
}, []);
|
83
|
-
const styles = (0, tasty_1.extractStyles)(props, STYLES, DEFAULT_STYLES);
|
84
|
-
return ((0, jsx_runtime_1.jsx)(provider_1.Provider, { router: router, root: rootRef, breakpoints: breakpoints, children: (0, jsx_runtime_1.jsx)(TrackingProvider_1.TrackingProvider, { event: tracking?.event, children: (0, jsx_runtime_1.jsx)(styled_components_1.StyleSheetManager, { children: (0, jsx_runtime_1.jsxs)(RootElement, { ref: ref, "data-font-display": fontDisplay, ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), styles: styles, style: {
|
85
|
-
'--cube-dynamic-viewport-height': height
|
86
|
-
? height + 'px'
|
87
|
-
: '100dvh',
|
88
|
-
...style,
|
89
|
-
}, children: [(0, jsx_runtime_1.jsx)(GlobalStyles_1.GlobalStyles, { bodyStyles: bodyStyles, applyLegacyTokens: applyLegacyTokens, publicUrl: publicUrl, fonts: fonts, font: font, monospaceFont: monospaceFont, fontDisplay: fontDisplay }), (0, jsx_runtime_1.jsx)(react_aria_1.ModalProvider, { children: (0, jsx_runtime_1.jsx)(portal_1.PortalProvider, { value: ref, children: (0, jsx_runtime_1.jsx)(NotificationsProvider_1.NotificationsProvider, { rootRef: ref, children: (0, jsx_runtime_1.jsx)(AlertDialog_1.AlertDialogApiProvider, { children: children }) }) }) })] }) }) }) }));
|
90
|
-
}
|
91
|
-
|
92
|
-
|
@@ -1,42 +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.Action = 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 use_action_1 = require("../use-action");
|
15
|
-
const DEFAULT_ACTION_STYLES = {
|
16
|
-
reset: 'button',
|
17
|
-
position: 'relative',
|
18
|
-
margin: 0,
|
19
|
-
preset: 'inherit',
|
20
|
-
border: 0,
|
21
|
-
padding: 0,
|
22
|
-
outline: {
|
23
|
-
'': '#purple-03.0',
|
24
|
-
focused: '#purple-03',
|
25
|
-
},
|
26
|
-
transition: 'theme',
|
27
|
-
cursor: 'pointer',
|
28
|
-
textDecoration: 'none',
|
29
|
-
fill: '#clear',
|
30
|
-
};
|
31
|
-
const ActionElement = (0, tasty_1.tasty)({
|
32
|
-
as: 'button',
|
33
|
-
styles: DEFAULT_ACTION_STYLES,
|
34
|
-
});
|
35
|
-
const STYLE_PROPS = [...tasty_1.CONTAINER_STYLES, ...tasty_1.TEXT_STYLES];
|
36
|
-
exports.Action = (0, react_1.forwardRef)(function Action({ to, as, download, htmlType, label, theme, mods, onPress, ...props }, ref) {
|
37
|
-
const { actionProps } = (0, use_action_1.useAction)({ to, as, htmlType, label, onPress, mods, ...props }, ref);
|
38
|
-
const styles = (0, tasty_1.extractStyles)(props, STYLE_PROPS);
|
39
|
-
return ((0, jsx_runtime_1.jsx)(ActionElement, { "data-theme": theme, download: download, ...actionProps, isDisabled: undefined, styles: styles }));
|
40
|
-
});
|
41
|
-
|
42
|
-
|