@cube-dev/ui-kit 0.121.5 → 0.121.6
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/dist/CHANGELOG.md +15 -0
- package/dist/_internal/hooks/use-chained-callback.js +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +2 -2
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/intl.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +4 -4
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +2 -2
- package/dist/components/fields/TextInput/TextInputBase.js +14 -6
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +3 -3
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/EditableTitle.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/CloudLogo/CloudLogo.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransition.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +3 -2
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.d.ts +35 -0
- package/dist/tokens/typography.js +238 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/BaseProperties.md +1 -1
- package/docs/Utilities.md +183 -0
- package/docs/components/Block.md +11 -0
- package/docs/components/CollectionItem.md +37 -8
- package/docs/components/GridProvider.md +15 -0
- package/docs/components/Root.md +8 -0
- package/docs/components/actions/Action.md +12 -0
- package/docs/components/actions/Banner.md +28 -2
- package/docs/components/actions/Button.md +10 -1
- package/docs/components/actions/ButtonGroup.md +11 -0
- package/docs/components/actions/ButtonSplit.md +11 -1
- package/docs/components/actions/CommandMenu.md +44 -17
- package/docs/components/actions/ItemButton.md +14 -37
- package/docs/components/actions/Link.md +9 -5
- package/docs/components/actions/Menu.md +11 -13
- package/docs/components/actions/MenuTrigger.md +17 -0
- package/docs/components/actions/SubMenuTrigger.md +17 -0
- package/docs/components/actions/use-anchored-menu.md +11 -0
- package/docs/components/actions/use-context-menu.md +11 -0
- package/docs/components/content/ActiveZone.md +18 -0
- package/docs/components/content/Alert.md +12 -0
- package/docs/components/content/Avatar.md +11 -0
- package/docs/components/content/Badge.md +20 -9
- package/docs/components/content/Card.md +11 -0
- package/docs/components/content/Content.md +12 -0
- package/docs/components/content/CopyPasteBlock.md +8 -0
- package/docs/components/content/CopySnippet.md +19 -5
- package/docs/components/content/Disclosure.md +5 -1
- package/docs/components/content/Divider.md +12 -0
- package/docs/components/content/Footer.md +12 -0
- package/docs/components/content/Header.md +12 -0
- package/docs/components/content/HotKeys.md +7 -14
- package/docs/components/content/ItemBadge.md +1 -0
- package/docs/components/content/ItemCard.md +20 -5
- package/docs/components/content/Layout.md +8 -1
- package/docs/components/content/Paragraph.md +20 -1
- package/docs/components/content/Placeholder.md +11 -0
- package/docs/components/content/Result.md +12 -0
- package/docs/components/content/Skeleton.md +15 -0
- package/docs/components/content/Tag.md +20 -9
- package/docs/components/content/Text.md +8 -0
- package/docs/components/content/TextItem.md +15 -9
- package/docs/components/content/Title.md +16 -0
- package/docs/components/fields/Checkbox.md +8 -3
- package/docs/components/fields/ComboBox.md +11 -5
- package/docs/components/fields/DatePicker.md +16 -15
- package/docs/components/fields/FileInput.md +13 -31
- package/docs/components/fields/FilterListBox.md +16 -1
- package/docs/components/fields/FilterPicker.md +34 -7
- package/docs/components/fields/HueSlider.md +16 -2
- package/docs/components/fields/ListBox.md +9 -1
- package/docs/components/fields/NumberInput.md +14 -6
- package/docs/components/fields/PasswordInput.md +10 -2
- package/docs/components/fields/Picker.md +29 -12
- package/docs/components/fields/RadioGroup.md +8 -1
- package/docs/components/fields/SearchInput.md +12 -2
- package/docs/components/fields/Select.md +14 -2
- package/docs/components/fields/Slider.md +34 -0
- package/docs/components/fields/Switch.md +3 -1
- package/docs/components/fields/TextArea.md +43 -0
- package/docs/components/fields/TextInput.md +10 -2
- package/docs/components/fields/TextInputMapper.md +30 -0
- package/docs/components/form/Field.md +9 -1
- package/docs/components/form/Form.md +9 -1
- package/docs/components/layout/Flex.md +11 -0
- package/docs/components/layout/Flow.md +11 -0
- package/docs/components/layout/Grid.md +11 -0
- package/docs/components/layout/Panel.md +11 -0
- package/docs/components/layout/Prefix.md +11 -0
- package/docs/components/layout/ResizablePanel.md +17 -0
- package/docs/components/layout/Space.md +11 -0
- package/docs/components/layout/Suffix.md +11 -0
- package/docs/components/navigation/Tabs.md +6 -1
- package/docs/components/organisms/FileTabs.md +12 -0
- package/docs/components/organisms/StatsCard.md +11 -0
- package/docs/components/other/CloudLogo.md +12 -0
- package/docs/components/overlays/AlertDialog.md +16 -0
- package/docs/components/overlays/Dialog.md +6 -3
- package/docs/components/overlays/DialogContainer.md +9 -0
- package/docs/components/overlays/DialogForm.md +29 -16
- package/docs/components/overlays/DialogTrigger.md +11 -0
- package/docs/components/overlays/Tooltip.md +27 -84
- package/docs/components/overlays/TooltipProvider.md +24 -4
- package/docs/components/overlays/TooltipTrigger.md +14 -0
- package/docs/components/portal/Portal.md +4 -0
- package/docs/components/status/LoadingAnimation.md +11 -0
- package/docs/components/status/Spin.md +11 -0
- package/docs/tasty/adoption.md +286 -0
- package/docs/tasty/comparison.md +413 -0
- package/docs/tasty/configuration.md +41 -10
- package/docs/tasty/debug.md +1 -1
- package/docs/tasty/design-system.md +401 -0
- package/docs/tasty/{usage.md → dsl.md} +254 -409
- package/docs/tasty/getting-started.md +201 -0
- package/docs/tasty/injector.md +2 -2
- package/docs/tasty/methodology.md +501 -0
- package/docs/tasty/runtime.md +291 -0
- package/docs/tasty/ssr.md +11 -1
- package/docs/tasty/styles.md +2 -2
- package/docs/tasty/tasty-static.md +58 -13
- package/package.json +8 -9
|
@@ -21,6 +21,17 @@ No component-specific props. Use style props directly.
|
|
|
21
21
|
|
|
22
22
|
Supports [Base properties](../../BaseProperties.md).
|
|
23
23
|
|
|
24
|
+
### Style Properties
|
|
25
|
+
|
|
26
|
+
These properties allow direct style application without using the `styles` prop:
|
|
27
|
+
|
|
28
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
29
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
30
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
31
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
32
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
33
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
34
|
+
|
|
24
35
|
## Examples
|
|
25
36
|
|
|
26
37
|
```jsx
|
|
@@ -24,6 +24,17 @@ A CSS Grid layout container. Arranges children in a grid with configurable colum
|
|
|
24
24
|
|
|
25
25
|
Supports [Base properties](../../BaseProperties.md).
|
|
26
26
|
|
|
27
|
+
### Style Properties
|
|
28
|
+
|
|
29
|
+
These properties allow direct style application without using the `styles` prop:
|
|
30
|
+
|
|
31
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
32
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
33
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
34
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
35
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
36
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
37
|
+
|
|
27
38
|
## Examples
|
|
28
39
|
|
|
29
40
|
### Two columns
|
|
@@ -37,6 +37,17 @@ A section container with optional stretched, floating, or card styling. Renders
|
|
|
37
37
|
|
|
38
38
|
Supports [Base properties](../../BaseProperties.md).
|
|
39
39
|
|
|
40
|
+
### Style Properties
|
|
41
|
+
|
|
42
|
+
These properties allow direct style application without using the `styles` prop:
|
|
43
|
+
|
|
44
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
45
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
46
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
47
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
48
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
49
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
50
|
+
|
|
40
51
|
## Examples
|
|
41
52
|
|
|
42
53
|
### Basic panel
|
|
@@ -25,6 +25,17 @@ An absolutely positioned prefix slot, typically used inside input-like component
|
|
|
25
25
|
|
|
26
26
|
Supports [Base properties](../../BaseProperties.md).
|
|
27
27
|
|
|
28
|
+
### Style Properties
|
|
29
|
+
|
|
30
|
+
These properties allow direct style application without using the `styles` prop:
|
|
31
|
+
|
|
32
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
33
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
34
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
35
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
36
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
37
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
38
|
+
|
|
28
39
|
## Examples
|
|
29
40
|
|
|
30
41
|
```jsx
|
|
@@ -23,11 +23,28 @@ A `Panel` with a draggable resize handle. Users can adjust the panel size by dra
|
|
|
23
23
|
- **`maxSize`** `string | number` (default: `'min(50%, 400px)'` for uncontrolled) — Maximum size constraint
|
|
24
24
|
- **`isDisabled`** `boolean` — Disable resizing
|
|
25
25
|
- **`handlerStyles`** `Styles` — Custom styles for the resize handle
|
|
26
|
+
- **`isStretched`** `boolean` — Position the panel absolutely to fill its container
|
|
27
|
+
- **`isCard`** `boolean` — Apply card styling with border and rounded corners
|
|
28
|
+
- **`isFloating`** `boolean` — Position the panel as a floating overlay
|
|
29
|
+
- **`innerStyles`** `Styles` — Custom styles for the panel's inner content element
|
|
30
|
+
- **`isFlex`** `boolean` — Use flex layout instead of grid for the inner content
|
|
31
|
+
- **`extra`** `ReactNode` — Additional content rendered outside the inner element (e.g., overlays)
|
|
26
32
|
|
|
27
33
|
### Base Properties
|
|
28
34
|
|
|
29
35
|
Extends [Panel](#) and supports [Base properties](../../BaseProperties.md).
|
|
30
36
|
|
|
37
|
+
### Style Properties
|
|
38
|
+
|
|
39
|
+
These properties allow direct style application without using the `styles` prop:
|
|
40
|
+
|
|
41
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
42
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
43
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
44
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
45
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
46
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
47
|
+
|
|
31
48
|
## Examples
|
|
32
49
|
|
|
33
50
|
### Resizable sidebar
|
|
@@ -23,6 +23,17 @@ A flex container that adds consistent gap between children. Supports horizontal
|
|
|
23
23
|
|
|
24
24
|
Supports [Base properties](../../BaseProperties.md).
|
|
25
25
|
|
|
26
|
+
### Style Properties
|
|
27
|
+
|
|
28
|
+
These properties allow direct style application without using the `styles` prop:
|
|
29
|
+
|
|
30
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
31
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
32
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
33
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
34
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
35
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
36
|
+
|
|
26
37
|
## Examples
|
|
27
38
|
|
|
28
39
|
### Horizontal (default)
|
|
@@ -25,6 +25,17 @@ An absolutely positioned suffix slot, typically used inside input-like component
|
|
|
25
25
|
|
|
26
26
|
Supports [Base properties](../../BaseProperties.md).
|
|
27
27
|
|
|
28
|
+
### Style Properties
|
|
29
|
+
|
|
30
|
+
These properties allow direct style application without using the `styles` prop:
|
|
31
|
+
|
|
32
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
33
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
34
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
35
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
36
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
37
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
38
|
+
|
|
28
39
|
## Examples
|
|
29
40
|
|
|
30
41
|
```jsx
|
|
@@ -44,6 +44,7 @@ An accessible tabbed interface for organizing content into multiple panels, show
|
|
|
44
44
|
- **`showScrollArrows`** `boolean | 'auto'` (default: `false`) — Show scroll navigation arrows
|
|
45
45
|
- **`tabPickerPosition`** `'prefix' | 'suffix'` (default: `suffix`) — Position of the tab picker
|
|
46
46
|
- **`scrollArrowsPosition`** `'prefix' | 'suffix'` (default: `suffix`) — Position of the scroll arrows
|
|
47
|
+
- **`tabListPadding`** `string` — Inline padding for the tab list container (e.g., `"2x"`)
|
|
47
48
|
- **`tabListStyles`** `Styles` — Custom styles for the tab list container
|
|
48
49
|
- **`prefixStyles`** `Styles` — Custom styles for the prefix slot
|
|
49
50
|
- **`suffixStyles`** `Styles` — Custom styles for the suffix slot
|
|
@@ -69,7 +70,11 @@ Customizes the root element of the Tabs component.
|
|
|
69
70
|
|
|
70
71
|
### Style Properties
|
|
71
72
|
|
|
72
|
-
These properties allow direct style application without using the `styles` prop:
|
|
73
|
+
These properties allow direct style application without using the `styles` prop:
|
|
74
|
+
|
|
75
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
76
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
77
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
73
78
|
|
|
74
79
|
### Modifiers
|
|
75
80
|
|
|
@@ -28,6 +28,18 @@ A tab bar for file-like items with close buttons and dirty state indicators. Des
|
|
|
28
28
|
|
|
29
29
|
Supports [Base properties](../../BaseProperties.md).
|
|
30
30
|
|
|
31
|
+
### Style Properties
|
|
32
|
+
|
|
33
|
+
These properties allow direct style application without using the `styles` prop:
|
|
34
|
+
|
|
35
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
36
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
37
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
38
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
39
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
40
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
41
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
42
|
+
|
|
31
43
|
## Examples
|
|
32
44
|
|
|
33
45
|
```jsx
|
|
@@ -29,6 +29,17 @@ Extends Card with:
|
|
|
29
29
|
|
|
30
30
|
Extends [Card](../content/Card.md) and supports [Base properties](../../BaseProperties.md).
|
|
31
31
|
|
|
32
|
+
### Style Properties
|
|
33
|
+
|
|
34
|
+
These properties allow direct style application without using the `styles` prop:
|
|
35
|
+
|
|
36
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
37
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
38
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
39
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
40
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
41
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
42
|
+
|
|
32
43
|
## Examples
|
|
33
44
|
|
|
34
45
|
```jsx
|
|
@@ -24,6 +24,18 @@ Extends [Button](../actions/Button.md) props (`onPress`, `to`, `href`, etc.).
|
|
|
24
24
|
|
|
25
25
|
Supports [Base properties](../../BaseProperties.md).
|
|
26
26
|
|
|
27
|
+
### Style Properties
|
|
28
|
+
|
|
29
|
+
These properties allow direct style application without using the `styles` prop:
|
|
30
|
+
|
|
31
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
32
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
33
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
34
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
35
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
36
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
37
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
38
|
+
|
|
27
39
|
## Examples
|
|
28
40
|
|
|
29
41
|
```jsx
|
|
@@ -18,11 +18,27 @@ A modal dialog for important messages that require user acknowledgment. Extends
|
|
|
18
18
|
- `confirm` — Confirm button props or `false` to hide (default: `{ label: 'Ok', type: 'primary' }`)
|
|
19
19
|
- `cancel` — Cancel button props or `true` to show (default: hidden, uses `{ label: 'Cancel' }`)
|
|
20
20
|
- `secondary` — Optional secondary button props
|
|
21
|
+
- **`size`** `'S' | 'M' | 'L' | 'small' | 'medium' | 'large'` — The size of the dialog
|
|
22
|
+
- **`isDismissable`** `boolean` (default: `false`) — Whether the dialog is dismissable
|
|
23
|
+
- **`closeIcon`** `ReactElement` — Custom close icon element
|
|
24
|
+
- **`closeButtonStyles`** `Styles` — Custom styles for the close button
|
|
21
25
|
|
|
22
26
|
### Base Properties
|
|
23
27
|
|
|
24
28
|
Extends [Dialog](./Dialog.md) and supports [Base properties](../../BaseProperties.md).
|
|
25
29
|
|
|
30
|
+
### Style Properties
|
|
31
|
+
|
|
32
|
+
These properties allow direct style application without using the `styles` prop:
|
|
33
|
+
|
|
34
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
35
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
36
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
37
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
38
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
39
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
40
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
41
|
+
|
|
26
42
|
## Examples
|
|
27
43
|
|
|
28
44
|
### Confirmation dialog
|
|
@@ -24,8 +24,6 @@ Dialogs are windows containing contextual information, tasks, or workflows that
|
|
|
24
24
|
- **`onDismiss`** `function` — Callback fired when the dialog is dismissed
|
|
25
25
|
- **`closeIcon`** — Custom close icon element
|
|
26
26
|
- **`role`** `'dialog' | 'alertdialog'` (default: `dialog`) — ARIA role for the dialog
|
|
27
|
-
- **`onBlur`** `function` — Callback fired when the dialog loses focus
|
|
28
|
-
- **`onFocus`** `function` — Callback fired when the dialog receives focus
|
|
29
27
|
|
|
30
28
|
### Base Properties
|
|
31
29
|
|
|
@@ -49,7 +47,12 @@ Customizes the close button appearance.
|
|
|
49
47
|
|
|
50
48
|
### Style Properties
|
|
51
49
|
|
|
52
|
-
These properties allow direct style application without using the `styles` prop:
|
|
50
|
+
These properties allow direct style application without using the `styles` prop:
|
|
51
|
+
|
|
52
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
53
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
54
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
55
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
53
56
|
|
|
54
57
|
### Modifiers
|
|
55
58
|
|
|
@@ -32,6 +32,15 @@ Supports [Base properties](../../BaseProperties.md)
|
|
|
32
32
|
|
|
33
33
|
DialogContainer has no styling capabilities.
|
|
34
34
|
|
|
35
|
+
### Style Properties
|
|
36
|
+
|
|
37
|
+
These properties allow direct style application without using the `styles` prop:
|
|
38
|
+
|
|
39
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
40
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
41
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
42
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
43
|
+
|
|
35
44
|
## Variants
|
|
36
45
|
|
|
37
46
|
### Types
|
|
@@ -23,27 +23,40 @@ DialogForm combines [Dialog](./Dialog.md) and [Form](../form/Form.md) functional
|
|
|
23
23
|
- **`cancelProps`** `CubeButtonProps` — Properties for cancel button (use `label` to change text)
|
|
24
24
|
- **`preserve`** `boolean` (default: `false`) — Preserve form values after submission/dismissal
|
|
25
25
|
- **`noActions`** `boolean` — Hide default action buttons to manually specify them
|
|
26
|
+
- **`size`** `'S' | 'M' | 'L' | 'small' | 'medium' | 'large'` — The size of the dialog
|
|
27
|
+
- **`isDismissable`** `boolean` — Whether the dialog is dismissable
|
|
28
|
+
- **`closeIcon`** `ReactElement` — Custom close icon element
|
|
29
|
+
- **`closeButtonStyles`** `Styles` — Custom styles for the close button
|
|
30
|
+
- **`name`** `string` — Form name
|
|
31
|
+
- **`form`** `CubeFormInstance` — Form instance created by `useForm`
|
|
32
|
+
- **`defaultValues`** `object` — Default field values
|
|
33
|
+
- **`onSubmit`** `(data) => void | Promise` — Callback on form submit and success
|
|
34
|
+
- **`onSubmitFailed`** `(error?) => void | Promise` — Callback on form submit and failure
|
|
35
|
+
- **`onValuesChange`** `function` — Callback when any field value changes
|
|
36
|
+
- **`orientation`** `'vertical' | 'horizontal'` — Layout orientation of the form
|
|
37
|
+
- **`labelWidth`** `string` — The size of the side area with labels (only for `labelPosition="side"`)
|
|
38
|
+
- **`labelPosition`** `'top' | 'side'` — Where to place labels relative to inputs
|
|
39
|
+
- **`labelStyles`** `Styles` — Styles for the label
|
|
40
|
+
- **`requiredMark`** `boolean` — Whether the field presents required mark
|
|
41
|
+
- **`necessityIndicator`** `NecessityIndicator` — The type of necessity indicator
|
|
42
|
+
- **`necessityLabel`** `ReactNode` — Custom necessity label
|
|
43
|
+
- **`isReadOnly`** `boolean` — Whether the form is read only
|
|
44
|
+
- **`validationState`** `ValidationState` — The validation state of the form
|
|
45
|
+
- **`validateTrigger`** `ValidateTrigger` — On which event to perform validation
|
|
46
|
+
- **`showValid`** `boolean` — Whether to show valid state
|
|
26
47
|
|
|
27
|
-
###
|
|
28
|
-
|
|
29
|
-
- **`title`** `string` — The title of the dialog
|
|
30
|
-
- **`danger`** `boolean` — Whether the submit button has a danger theme
|
|
31
|
-
- **`submitProps`** `CubeButtonProps` — Properties for submit button (use `label` to change text)
|
|
32
|
-
- **`cancelProps`** `CubeButtonProps` — Properties for cancel button (use `label` to change text)
|
|
33
|
-
- **`preserve`** `boolean` (default: `false`) — Preserve form values after submission/dismissal
|
|
34
|
-
- **`noActions`** `boolean` — Hide default action buttons to manually specify them
|
|
35
|
-
|
|
36
|
-
### Inherited Properties
|
|
48
|
+
### Base Properties
|
|
37
49
|
|
|
38
|
-
|
|
39
|
-
- **[Dialog](./Dialog.md)**: `size`, `isDismissable`, `closeIcon`, styling properties, etc.
|
|
40
|
-
- **[Form](../form/Form.md)**: `name`, `defaultValues`, `onSubmit`, `onSubmitFailed`, `onValuesChange`, `labelPosition`, `requiredMark`, validation properties, etc.
|
|
50
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
41
51
|
|
|
42
|
-
|
|
52
|
+
### Style Properties
|
|
43
53
|
|
|
44
|
-
|
|
54
|
+
These properties allow direct style application without using the `styles` prop:
|
|
45
55
|
|
|
46
|
-
|
|
56
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
57
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
58
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
59
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
47
60
|
|
|
48
61
|
## Examples
|
|
49
62
|
|
|
@@ -29,6 +29,8 @@ DialogTrigger serves as a wrapper around a Dialog and its associated trigger, li
|
|
|
29
29
|
- **`crossOffset`** `number` (default: `0`) — The additional offset applied along the cross axis
|
|
30
30
|
- **`containerPadding`** `number` (default: `12`) — The padding between the edge of the overlay and the boundary
|
|
31
31
|
- **`shouldFlip`** `boolean` (default: `true`) — Whether the overlay should flip positions when insufficient space
|
|
32
|
+
- **`shouldUpdatePosition`** `boolean` — Whether the overlay position should update on scroll or resize
|
|
33
|
+
- **`hideOnClose`** `boolean` — Whether to hide the overlay instead of unmounting on close
|
|
32
34
|
- **`onOpenChange`** `function` — Callback fired when the dialog open state changes
|
|
33
35
|
- **`onDismiss`** `function` — Callback fired when the dialog is dismissed
|
|
34
36
|
- **`targetRef`** — The ref of the element the Dialog should visually attach itself to
|
|
@@ -43,6 +45,15 @@ Supports [Base properties](../../BaseProperties.md)
|
|
|
43
45
|
|
|
44
46
|
DialogTrigger has no styling capabilities.
|
|
45
47
|
|
|
48
|
+
### Style Properties
|
|
49
|
+
|
|
50
|
+
These properties allow direct style application without using the `styles` prop:
|
|
51
|
+
|
|
52
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
53
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
54
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
55
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
56
|
+
|
|
46
57
|
## Variants
|
|
47
58
|
|
|
48
59
|
### Types
|
|
@@ -22,25 +22,31 @@ This module exports three components that work together:
|
|
|
22
22
|
|
|
23
23
|
The simplest way to add tooltips to your components. It combines `TooltipTrigger` and `Tooltip` for convenience.
|
|
24
24
|
|
|
25
|
+
See TooltipProvider for full documentation.
|
|
26
|
+
|
|
27
|
+
## TooltipTrigger
|
|
28
|
+
|
|
29
|
+
Lower-level component that wraps a trigger element and a `Tooltip`. Use this when you need more control over the tooltip content or behavior.
|
|
30
|
+
|
|
31
|
+
See TooltipTrigger for full documentation.
|
|
32
|
+
|
|
33
|
+
## Tooltip
|
|
34
|
+
|
|
35
|
+
Display container for tooltip content. Has a directional arrow dependent on its placement. This component is typically used as a child of `TooltipTrigger` or automatically rendered by `TooltipProvider`.
|
|
36
|
+
|
|
25
37
|
---
|
|
26
38
|
|
|
27
39
|
### Properties
|
|
28
40
|
|
|
29
|
-
- **`
|
|
30
|
-
- **`
|
|
31
|
-
- **`
|
|
32
|
-
- **`placement`** `Placement` (default: `'top'`) — Position of the tooltip relative to its trigger. Options: `top`, `bottom`, `left`, `right`, `start`, `end`
|
|
33
|
-
- **`delay`** `number` (default: `250`) — The delay time in ms for the tooltip to show up
|
|
34
|
-
- **`closeDelay`** `number` (default: `500`) — The delay time in ms for the tooltip to close
|
|
35
|
-
- **`offset`** `number` (default: `8`) — Distance between the tooltip and the trigger element
|
|
36
|
-
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset of the tooltip
|
|
41
|
+
- **`tipStyles`** `Styles` — Custom styles for the tooltip arrow (tip) element
|
|
42
|
+
- **`showIcon`** `boolean` — Controls whether an icon should be displayed in the tooltip
|
|
43
|
+
- **`placement`** `PlacementAxis` (default: `'top'`) — Position of the tooltip relative to its trigger. Options: `top`, `bottom`, `left`, `right`
|
|
37
44
|
- **`isMaterial`** `boolean` — Enables material-style tooltip with auto pointer events
|
|
38
45
|
- **`isLight`** `boolean` — Uses light color scheme for the tooltip
|
|
39
|
-
- **`isDisabled`** `boolean` — Whether the tooltip is disabled
|
|
40
46
|
- **`isOpen`** `boolean` — Controlled open state of the tooltip
|
|
41
47
|
- **`defaultOpen`** `boolean` — Whether the tooltip is open by default (uncontrolled)
|
|
42
48
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback when the tooltip open state changes
|
|
43
|
-
- **`
|
|
49
|
+
- **`shouldFlip`** `boolean` — Whether the tooltip should flip position when there is insufficient space
|
|
44
50
|
|
|
45
51
|
### Base Properties
|
|
46
52
|
|
|
@@ -48,16 +54,23 @@ Supports [Base properties](../../BaseProperties.md)
|
|
|
48
54
|
|
|
49
55
|
### Styling Properties
|
|
50
56
|
|
|
51
|
-
####
|
|
57
|
+
#### styles
|
|
52
58
|
|
|
53
|
-
Customizes the
|
|
59
|
+
Customizes the root element of the tooltip.
|
|
54
60
|
|
|
55
61
|
**Sub-elements:**
|
|
56
|
-
- None
|
|
62
|
+
- None
|
|
57
63
|
|
|
58
64
|
### Style Properties
|
|
59
65
|
|
|
60
|
-
These properties allow direct style application without using the `styles` prop:
|
|
66
|
+
These properties allow direct style application without using the `styles` prop:
|
|
67
|
+
|
|
68
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
69
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
70
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
71
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
72
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
73
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
61
74
|
|
|
62
75
|
### Modifiers
|
|
63
76
|
|
|
@@ -67,76 +80,6 @@ The `mods` property on the tooltip accepts the following modifiers you can overr
|
|
|
67
80
|
- **`light`** `boolean` — Uses light color scheme instead of dark
|
|
68
81
|
- **`open`** `boolean` — Indicates whether the tooltip is currently visible
|
|
69
82
|
|
|
70
|
-
## TooltipTrigger
|
|
71
|
-
|
|
72
|
-
Lower-level component that wraps a trigger element and a `Tooltip`. Use this when you need more control over the tooltip content or behavior.
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
### Properties
|
|
77
|
-
|
|
78
|
-
- **`placement`** `Placement` (default: `'top'`) — Position of the tooltip relative to its trigger. Options: `top`, `bottom`, `left`, `right`, `start`, `end`
|
|
79
|
-
- **`delay`** `number` (default: `250`) — The delay time in ms for the tooltip to show up
|
|
80
|
-
- **`closeDelay`** `number` (default: `500`) — The delay time in ms for the tooltip to close
|
|
81
|
-
- **`offset`** `number` (default: `8`) — Distance between the tooltip and the trigger element
|
|
82
|
-
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset of the tooltip
|
|
83
|
-
- **`isMaterial`** `boolean` — Enables material-style tooltip with auto pointer events
|
|
84
|
-
- **`isLight`** `boolean` — Uses light color scheme for the tooltip
|
|
85
|
-
- **`isDisabled`** `boolean` — Whether the tooltip is disabled
|
|
86
|
-
- **`isOpen`** `boolean` — Controlled open state of the tooltip
|
|
87
|
-
- **`defaultOpen`** `boolean` — Whether the tooltip is open by default (uncontrolled)
|
|
88
|
-
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback when the tooltip open state changes
|
|
89
|
-
- **`trigger`** `'focus'` — When set, opens the tooltip only on focus instead of both focus and hover
|
|
90
|
-
- **`activeWrap`** `boolean` — *(deprecated)* Whether the trigger should have an ActiveZone wrap. Use function-as-first-child pattern instead.
|
|
91
|
-
- **`targetRef`** `RefObject<HTMLElement>` — External ref to use for the trigger element
|
|
92
|
-
|
|
93
|
-
### Base Properties
|
|
94
|
-
|
|
95
|
-
Supports [Base properties](../../BaseProperties.md)
|
|
96
|
-
|
|
97
|
-
## Tooltip
|
|
98
|
-
|
|
99
|
-
Display container for tooltip content. Has a directional arrow dependent on its placement. This component is typically used as a child of `TooltipTrigger` or automatically rendered by `TooltipProvider`.
|
|
100
|
-
|
|
101
|
-
### Properties
|
|
102
|
-
|
|
103
|
-
#### tipStyles
|
|
104
|
-
|
|
105
|
-
Customizes the tooltip arrow (tip) element.
|
|
106
|
-
|
|
107
|
-
#### showIcon
|
|
108
|
-
|
|
109
|
-
`boolean` - Controls whether an icon should be displayed in the tooltip.
|
|
110
|
-
|
|
111
|
-
#### placement
|
|
112
|
-
|
|
113
|
-
`PlacementAxis` - Controls the position of the tooltip relative to its trigger. Options: `top`, `bottom`, `left`, `right`.
|
|
114
|
-
|
|
115
|
-
#### isMaterial
|
|
116
|
-
|
|
117
|
-
`boolean` - Enables material-style tooltip with auto pointer events.
|
|
118
|
-
|
|
119
|
-
#### isLight
|
|
120
|
-
|
|
121
|
-
`boolean` - Uses light color scheme for the tooltip.
|
|
122
|
-
|
|
123
|
-
#### width
|
|
124
|
-
|
|
125
|
-
Specifies the width of the tooltip.
|
|
126
|
-
|
|
127
|
-
### Base Properties
|
|
128
|
-
|
|
129
|
-
Supports [Base properties](../../BaseProperties.md)
|
|
130
|
-
|
|
131
|
-
### Styling Properties
|
|
132
|
-
|
|
133
|
-
#### styles
|
|
134
|
-
|
|
135
|
-
Customizes the root element of the tooltip.
|
|
136
|
-
|
|
137
|
-
**Sub-elements:**
|
|
138
|
-
- None
|
|
139
|
-
|
|
140
83
|
## Usage Patterns
|
|
141
84
|
|
|
142
85
|
### Standard Pattern (Active Elements)
|
|
@@ -11,16 +11,36 @@ A convenience wrapper that combines `TooltipTrigger` and `Tooltip` into a single
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
13
|
- **`title`** `ReactNode` — Tooltip content
|
|
14
|
-
- **`tooltipStyles`** `Styles` — Custom styles for the tooltip
|
|
14
|
+
- **`tooltipStyles`** `Styles` — Custom styles for the tooltip container
|
|
15
15
|
- **`width`** `string` — Tooltip width
|
|
16
|
-
- **`
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
- **`placement`** `Placement` (default: `'top'`) — Position of the tooltip relative to its trigger
|
|
17
|
+
- **`offset`** `number` (default: `8`) — Distance between the tooltip and the trigger element
|
|
18
|
+
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset of the tooltip
|
|
19
|
+
- **`delay`** `number` (default: `250`) — The delay time in ms for the tooltip to show up
|
|
20
|
+
- **`closeDelay`** `number` (default: `500`) — The delay time in ms for the tooltip to close
|
|
21
|
+
- **`isMaterial`** `boolean` — Enables material-style tooltip with auto pointer events
|
|
22
|
+
- **`isLight`** `boolean` — Uses light color scheme for the tooltip
|
|
23
|
+
- **`isOpen`** `boolean` — Controlled open state of the tooltip
|
|
24
|
+
- **`defaultOpen`** `boolean` — Whether the tooltip is open by default (uncontrolled)
|
|
25
|
+
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback when the tooltip open state changes
|
|
26
|
+
- **`trigger`** `'focus'` — When set, opens the tooltip only on focus instead of both focus and hover
|
|
27
|
+
- **`shouldCloseOnPress`** `boolean` (default: `true`) — Whether the tooltip closes when the trigger is pressed
|
|
19
28
|
|
|
20
29
|
### Base Properties
|
|
21
30
|
|
|
22
31
|
Supports [Base properties](../../BaseProperties.md).
|
|
23
32
|
|
|
33
|
+
### Style Properties
|
|
34
|
+
|
|
35
|
+
These properties allow direct style application without using the `styles` prop:
|
|
36
|
+
|
|
37
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
38
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
39
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
40
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
41
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
42
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
43
|
+
|
|
24
44
|
## Examples
|
|
25
45
|
|
|
26
46
|
### Simple tooltip
|
|
@@ -14,17 +14,31 @@ Lower-level component that wraps a trigger element and a `Tooltip`. Use when you
|
|
|
14
14
|
- **`offset`** `number` (default: `8`) — Distance from trigger in pixels
|
|
15
15
|
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset in pixels
|
|
16
16
|
- **`delay`** `number` (default: `250`) — Show delay in milliseconds
|
|
17
|
+
- **`closeDelay`** `number` (default: `500`) — Close delay in milliseconds
|
|
17
18
|
- **`isMaterial`** `boolean` — Material design style tooltip
|
|
18
19
|
- **`isLight`** `boolean` — Light theme tooltip
|
|
19
20
|
- **`isDisabled`** `boolean` — Disable the tooltip
|
|
20
21
|
- **`isOpen`** `boolean` — Controlled open state
|
|
21
22
|
- **`defaultOpen`** `boolean` — Initially open (uncontrolled)
|
|
22
23
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback when open state changes
|
|
24
|
+
- **`trigger`** `'focus'` — When set, opens the tooltip only on focus instead of both focus and hover
|
|
25
|
+
- **`shouldCloseOnPress`** `boolean` (default: `true`) — Whether the tooltip closes when the trigger is pressed
|
|
23
26
|
|
|
24
27
|
### Base Properties
|
|
25
28
|
|
|
26
29
|
Supports [Base properties](../../BaseProperties.md).
|
|
27
30
|
|
|
31
|
+
### Style Properties
|
|
32
|
+
|
|
33
|
+
These properties allow direct style application without using the `styles` prop:
|
|
34
|
+
|
|
35
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
36
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
37
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
38
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
39
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
40
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
41
|
+
|
|
28
42
|
## Examples
|
|
29
43
|
|
|
30
44
|
```jsx
|
|
@@ -14,6 +14,10 @@ Renders children outside the current DOM hierarchy using React portals. By defau
|
|
|
14
14
|
- **`isDisabled`** `boolean` (default: `false`) — Disable portaling and render inline
|
|
15
15
|
- **`onMount`** `() => void` — Callback when portal mounts
|
|
16
16
|
|
|
17
|
+
### Base Properties
|
|
18
|
+
|
|
19
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
20
|
+
|
|
17
21
|
## Examples
|
|
18
22
|
|
|
19
23
|
```jsx
|
|
@@ -16,6 +16,17 @@ An animated loading indicator with a rotating cube graphic. Used for full-page o
|
|
|
16
16
|
|
|
17
17
|
Supports [Base properties](../../BaseProperties.md).
|
|
18
18
|
|
|
19
|
+
### Style Properties
|
|
20
|
+
|
|
21
|
+
These properties allow direct style application without using the `styles` prop:
|
|
22
|
+
|
|
23
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
24
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
25
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
26
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
27
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
28
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
29
|
+
|
|
19
30
|
## Examples
|
|
20
31
|
|
|
21
32
|
```jsx
|