@cube-dev/ui-kit 0.0.0-canary-d688797 → 0.0.0-canary-bdfccbd
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/_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 +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.d.ts +8 -2
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Select/Select.js.map +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 +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.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +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.js +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.js +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/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 +78 -0
- package/docs/ComplexLayout.md +31 -41
- package/docs/RenderCache.md +5 -0
- package/docs/Result.md +8 -1
- package/docs/components/Block.md +33 -0
- package/docs/components/CollectionItem.md +14 -20
- package/docs/components/GridProvider.md +38 -0
- package/docs/components/Root.md +50 -0
- package/docs/components/actions/Action.md +47 -0
- package/docs/components/actions/Banner.md +11 -5
- package/docs/components/actions/Button.md +45 -19
- package/docs/components/actions/ButtonGroup.md +46 -0
- package/docs/components/actions/ButtonSplit.md +11 -1
- package/docs/components/actions/CommandMenu.md +17 -25
- package/docs/components/actions/ItemAction.md +60 -0
- package/docs/components/actions/ItemButton.md +25 -13
- package/docs/components/actions/Link.md +1 -1
- package/docs/components/actions/Menu.md +49 -73
- package/docs/components/actions/MenuTrigger.md +47 -0
- package/docs/components/actions/SubMenuTrigger.md +38 -0
- package/docs/components/actions/use-anchored-menu.md +6 -8
- package/docs/components/actions/use-context-menu.md +6 -8
- package/docs/components/content/ActiveZone.md +37 -0
- package/docs/components/content/Alert.md +40 -0
- package/docs/components/content/Avatar.md +37 -0
- package/docs/components/content/Badge.md +7 -0
- package/docs/components/content/Card.md +40 -0
- package/docs/components/content/Content.md +44 -0
- package/docs/components/content/CopyPasteBlock.md +36 -0
- package/docs/components/content/CopySnippet.md +43 -0
- package/docs/components/content/Disclosure.md +14 -10
- package/docs/components/content/Divider.md +39 -0
- package/docs/components/content/Footer.md +35 -0
- package/docs/components/content/Header.md +35 -0
- package/docs/components/content/HotKeys.md +1 -1
- package/docs/components/content/Item.md +46 -35
- package/docs/components/content/ItemBadge.md +31 -0
- package/docs/components/content/ItemCard.md +7 -1
- package/docs/components/content/Layout.md +91 -114
- package/docs/components/content/Paragraph.md +32 -0
- package/docs/components/content/Placeholder.md +37 -0
- package/docs/components/content/PrismCode.md +36 -0
- package/docs/components/content/PrismDiffCode.md +29 -0
- package/docs/components/content/Result.md +46 -0
- package/docs/components/content/Skeleton.md +35 -0
- package/docs/components/content/Tag.md +9 -0
- package/docs/components/content/Text.md +54 -0
- package/docs/components/content/TextItem.md +7 -1
- package/docs/components/content/Title.md +45 -0
- package/docs/components/fields/Checkbox.md +10 -12
- package/docs/components/fields/ComboBox.md +48 -11
- package/docs/components/fields/DatePicker.md +8 -10
- package/docs/components/fields/FileInput.md +7 -9
- package/docs/components/fields/FilterListBox.md +48 -23
- package/docs/components/fields/FilterPicker.md +64 -22
- package/docs/components/fields/HueSlider.md +3 -5
- package/docs/components/fields/ListBox.md +52 -29
- package/docs/components/fields/NumberInput.md +8 -10
- package/docs/components/fields/PasswordInput.md +7 -9
- package/docs/components/fields/Picker.md +93 -70
- package/docs/components/fields/RadioGroup.md +5 -7
- package/docs/components/fields/SearchInput.md +7 -9
- package/docs/components/fields/Select.md +26 -31
- package/docs/components/fields/Switch.md +9 -11
- package/docs/components/fields/TextInput.md +18 -14
- package/docs/components/form/Field.md +21 -29
- package/docs/components/form/Form.md +304 -115
- package/docs/components/form/FormInstance.md +25 -37
- package/docs/components/helpers/DisplayTransition.md +15 -6
- package/docs/components/helpers/IconSwitch.md +5 -1
- package/docs/components/layout/Flex.md +51 -0
- package/docs/components/layout/Flow.md +32 -0
- package/docs/components/layout/Grid.md +46 -0
- package/docs/components/layout/Panel.md +65 -0
- package/docs/components/layout/Prefix.md +37 -0
- package/docs/components/layout/ResizablePanel.md +69 -0
- package/docs/components/layout/Space.md +44 -0
- package/docs/components/layout/Suffix.md +39 -0
- package/docs/components/navigation/Tabs.md +71 -49
- package/docs/components/organisms/FileTabs.md +39 -0
- package/docs/components/organisms/StatsCard.md +40 -0
- package/docs/components/other/CloudLogo.md +33 -0
- package/docs/components/overlays/AlertDialog.md +51 -0
- package/docs/components/overlays/Dialog.md +3 -5
- package/docs/components/overlays/DialogContainer.md +1 -1
- package/docs/components/overlays/DialogForm.md +15 -10
- package/docs/components/overlays/DialogTrigger.md +1 -1
- package/docs/components/overlays/Notifications.md +9 -13
- package/docs/components/overlays/Toast.md +5 -1
- package/docs/components/overlays/Tooltip.md +37 -8
- package/docs/components/overlays/TooltipProvider.md +42 -0
- package/docs/components/overlays/TooltipTrigger.md +42 -0
- package/docs/components/overlays/UseDialogContainer.md +8 -14
- package/docs/components/portal/Portal.md +29 -0
- package/docs/components/status/LoadingAnimation.md +27 -0
- package/docs/components/status/Spin.md +35 -0
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ A versatile dropdown menu component that displays a list of actions or options.
|
|
|
43
43
|
|
|
44
44
|
### Base Properties
|
|
45
45
|
|
|
46
|
-
Supports [Base properties](
|
|
46
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
47
47
|
|
|
48
48
|
### Styling Properties
|
|
49
49
|
|
|
@@ -84,53 +84,41 @@ These properties allow direct style application without using the `styles` prop:
|
|
|
84
84
|
|
|
85
85
|
The `mods` property accepts the following modifiers you can override:
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
| header | `boolean` | Applied when header prop is provided |
|
|
92
|
-
| popover | `boolean` | Applied when menu is displayed as popover |
|
|
87
|
+
- `sections` `boolean` — Applied when menu contains sections
|
|
88
|
+
- `footer` `boolean` — Applied when footer prop is provided
|
|
89
|
+
- `header` `boolean` — Applied when header prop is provided
|
|
90
|
+
- `popover` `boolean` — Applied when menu is displayed as popover
|
|
93
91
|
|
|
94
92
|
## Menu Properties
|
|
95
93
|
|
|
96
94
|
### Collection Properties
|
|
97
95
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
| items | `Iterable<T>` | - | Item objects for dynamic collections |
|
|
101
|
-
| children | `ReactNode` | - | Static menu items and sections |
|
|
96
|
+
- **`items`** `Iterable<T>` — Item objects for dynamic collections
|
|
97
|
+
- **`children`** `ReactNode` — Static menu items and sections
|
|
102
98
|
|
|
103
99
|
### Selection Properties
|
|
104
100
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
| onSelectionChange | `(keys: string[]) => void` | - | Handler for selection changes |
|
|
111
|
-
| selectionIcon | `'checkbox' \| 'radio'` | - | Type of selection indicator |
|
|
101
|
+
- **`selectionMode`** `'single' \| 'multiple'` (default: `'none'`) — Type of selection allowed
|
|
102
|
+
- **`selectedKeys`** `string[]` — Currently selected keys (controlled)
|
|
103
|
+
- **`defaultSelectedKeys`** `string[]` — Initially selected keys (uncontrolled)
|
|
104
|
+
- **`onSelectionChange`** `(keys: string[]) => void` — Handler for selection changes
|
|
105
|
+
- **`selectionIcon`** `'checkbox' \| 'radio'` — Type of selection indicator
|
|
112
106
|
|
|
113
107
|
### State Properties
|
|
114
108
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
| autoFocus | `boolean \| FocusStrategy` | - | Focus behavior when menu opens |
|
|
119
|
-
| shouldFocusWrap | `boolean` | - | Whether keyboard navigation wraps |
|
|
109
|
+
- **`disabledKeys`** `Iterable<Key>` — Keys of disabled items
|
|
110
|
+
- **`autoFocus`** `boolean \| FocusStrategy` — Focus behavior when menu opens
|
|
111
|
+
- **`shouldFocusWrap`** `boolean` — Whether keyboard navigation wraps
|
|
120
112
|
|
|
121
113
|
### Event Properties
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
| onAction | `(key: Key) => void` | - | Handler for item activation |
|
|
126
|
-
| onClose | `() => void` | - | Handler for menu close requests |
|
|
115
|
+
- **`onAction`** `(key: Key) => void` — Handler for item activation
|
|
116
|
+
- **`onClose`** `() => void` — Handler for menu close requests
|
|
127
117
|
|
|
128
118
|
### Content Properties
|
|
129
119
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
| header | `ReactNode` | - | Optional header content (deprecated) |
|
|
133
|
-
| footer | `ReactNode` | - | Optional footer content |
|
|
120
|
+
- **`header`** `ReactNode` — Optional header content (deprecated)
|
|
121
|
+
- **`footer`** `ReactNode` — Optional footer content
|
|
134
122
|
|
|
135
123
|
## Sub-components
|
|
136
124
|
|
|
@@ -142,29 +130,25 @@ Individual menu items. Each item is rendered using [Item](../content/Item.md) an
|
|
|
142
130
|
|
|
143
131
|
For detailed information about all available item properties, see [Item documentation](../content/Item.md). Key properties include:
|
|
144
132
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
| styles | `Styles` | Custom styling for the item |
|
|
159
|
-
| qa | `string` | QA identifier for testing |
|
|
133
|
+
- **`key`** `Key` — Unique identifier for the item (required)
|
|
134
|
+
- **`children`** `ReactNode` — The main content/label for the menu item
|
|
135
|
+
- **`icon`** `ReactNode` — Icon displayed before the content
|
|
136
|
+
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
137
|
+
- **`description`** `ReactNode` — Secondary text below the main content
|
|
138
|
+
- **`descriptionPlacement`** `'inline' \| 'block'` — How the description is positioned
|
|
139
|
+
- **`prefix`** `ReactNode` — Content before the main text
|
|
140
|
+
- **`suffix`** `ReactNode` — Content after the main text
|
|
141
|
+
- **`hotkeys`** `string` — Keyboard shortcut that triggers this item
|
|
142
|
+
- **`tooltip`** `string \| boolean \| object` — Tooltip configuration
|
|
143
|
+
- **`isDisabled`** `boolean` — Whether the item is disabled
|
|
144
|
+
- **`styles`** `Styles` — Custom styling for the item
|
|
145
|
+
- **`qa`** `string` — QA identifier for testing
|
|
160
146
|
|
|
161
147
|
#### Menu-specific Properties
|
|
162
148
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
| wrapper | `(item: ReactElement) => ReactElement` | - | Function to wrap the item |
|
|
167
|
-
| onAction | `() => void` | - | Callback fired when item is activated |
|
|
149
|
+
- **`textValue`** `string` — Text for typeahead search
|
|
150
|
+
- **`wrapper`** `(item: ReactElement) => ReactElement` — Function to wrap the item
|
|
151
|
+
- **`onAction`** `() => void` — Callback fired when item is activated
|
|
168
152
|
|
|
169
153
|
#### Example with Rich Items
|
|
170
154
|
|
|
@@ -191,37 +175,29 @@ For detailed information about all available item properties, see [Item document
|
|
|
191
175
|
|
|
192
176
|
## Menu.Section Properties
|
|
193
177
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
| children | `ReactNode` | - | Menu items within the section |
|
|
199
|
-
| items | `Iterable<T>` | - | Dynamic items for the section |
|
|
178
|
+
- **`key`** `Key` — Unique identifier for the section
|
|
179
|
+
- **`title`** `ReactNode` — Section heading text
|
|
180
|
+
- **`children`** `ReactNode` — Menu items within the section
|
|
181
|
+
- **`items`** `Iterable<T>` — Dynamic items for the section
|
|
200
182
|
|
|
201
183
|
### Menu.Section Styling Properties
|
|
202
184
|
|
|
203
|
-
|
|
204
|
-
|----------|------|---------|-------------|
|
|
205
|
-
| aria-label | `string` | - | Accessibility label for sections without titles |
|
|
185
|
+
- **`aria-label`** `string` — Accessibility label for sections without titles
|
|
206
186
|
|
|
207
187
|
## Menu.SubMenuTrigger Properties
|
|
208
188
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
| onAction | `(key: Key) => void` | - | Callback that bubbles onAction events from the submenu |
|
|
214
|
-
| autoFocus | `boolean \| 'first' \| 'last'` | `'first'` | Whether and how the submenu should receive focus on open |
|
|
189
|
+
- **`children`** `[ReactNode, ReactElement]` — Must be exactly two elements: trigger (Menu.Item) and submenu (Menu)
|
|
190
|
+
- **`disabled`** `boolean` (default: `false`) — Whether the submenu trigger is disabled
|
|
191
|
+
- **`onAction`** `(key: Key) => void` — Callback that bubbles onAction events from the submenu
|
|
192
|
+
- **`autoFocus`** `boolean \| 'first' \| 'last'` (default: `'first'`) — Whether and how the submenu should receive focus on open
|
|
215
193
|
|
|
216
194
|
### Menu.SubMenuTrigger Positioning Properties
|
|
217
195
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
| shouldFlip | `boolean` | `true` | Whether submenu should flip when it doesn't fit |
|
|
224
|
-
| containerPadding | `number` | `8` | Padding from viewport edges |
|
|
196
|
+
- **`placement`** `Placement` (default: `'right start'`) — Placement of the submenu relative to trigger
|
|
197
|
+
- **`offset`** `number` (default: `0`) — Distance between trigger and submenu
|
|
198
|
+
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset for submenu positioning
|
|
199
|
+
- **`shouldFlip`** `boolean` (default: `true`) — Whether submenu should flip when it doesn't fit
|
|
200
|
+
- **`containerPadding`** `number` (default: `8`) — Padding from viewport edges
|
|
225
201
|
|
|
226
202
|
## Selection Modes
|
|
227
203
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# MenuTrigger
|
|
2
|
+
|
|
3
|
+
Wraps a trigger element and a `Menu` to create a dropdown menu. Positions the menu relative to the trigger.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Dropdown menus from buttons
|
|
8
|
+
- Context menus attached to elements
|
|
9
|
+
- Any menu that opens from a trigger element
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`trigger`** `'press' | 'longPress'` (default: `'press'`) — How the menu is opened
|
|
14
|
+
- **`placement`** `Placement` (default: `'bottom start'`) — Menu position relative to trigger
|
|
15
|
+
- **`closeOnSelect`** `boolean` — Close menu when an item is selected
|
|
16
|
+
- **`isDisabled`** `boolean` — Disable the trigger
|
|
17
|
+
- **`shouldFlip`** `boolean` (default: `true`) — Flip menu position when overflowing viewport
|
|
18
|
+
- **`offset`** `number` (default: `8`) — Distance from trigger in pixels
|
|
19
|
+
- **`crossOffset`** `number` (default: `0`) — Cross-axis offset in pixels
|
|
20
|
+
|
|
21
|
+
Extends React Aria `AriaMenuTriggerProps` and `PositionProps`.
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
### Basic dropdown
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
<MenuTrigger>
|
|
29
|
+
<Button>Open Menu</Button>
|
|
30
|
+
<Menu onAction={(key) => console.log(key)}>
|
|
31
|
+
<Menu.Item key="edit">Edit</Menu.Item>
|
|
32
|
+
<Menu.Item key="delete">Delete</Menu.Item>
|
|
33
|
+
</Menu>
|
|
34
|
+
</MenuTrigger>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Long press trigger
|
|
38
|
+
|
|
39
|
+
```jsx
|
|
40
|
+
<MenuTrigger trigger="longPress">
|
|
41
|
+
<Button>Long Press Me</Button>
|
|
42
|
+
<Menu>
|
|
43
|
+
<Menu.Item key="option1">Option 1</Menu.Item>
|
|
44
|
+
<Menu.Item key="option2">Option 2</Menu.Item>
|
|
45
|
+
</Menu>
|
|
46
|
+
</MenuTrigger>
|
|
47
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# SubMenuTrigger
|
|
2
|
+
|
|
3
|
+
Wraps a `Menu.Item` and a nested `Menu` to create hierarchical menus. Opens on hover or keyboard navigation (ArrowRight).
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Nested menu items
|
|
8
|
+
- Hierarchical menu structures
|
|
9
|
+
- Menus with sub-categories
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`placement`** `Placement` (default: `'right top'`) — Sub-menu position relative to trigger
|
|
14
|
+
- **`offset`** `number` (default: `4`) — Distance from trigger in pixels
|
|
15
|
+
- **`crossOffset`** `number` (default: `-5`) — Cross-axis offset in pixels
|
|
16
|
+
- **`shouldFlip`** `boolean` (default: `true`) — Flip when overflowing viewport
|
|
17
|
+
- **`isDisabled`** `boolean` — Disable the trigger
|
|
18
|
+
- **`onAction`** `(key: Key) => void` — Callback when a sub-menu item is selected
|
|
19
|
+
- **`autoFocus`** `boolean | 'first' | 'last'` (default: `'first'`) — Focus behavior when sub-menu opens
|
|
20
|
+
|
|
21
|
+
Extends React Aria `AriaMenuTriggerProps`.
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
<Menu>
|
|
27
|
+
<Menu.Item key="edit">Edit</Menu.Item>
|
|
28
|
+
<SubMenuTrigger>
|
|
29
|
+
<Menu.Item key="more">More Options</Menu.Item>
|
|
30
|
+
<Menu>
|
|
31
|
+
<Menu.Item key="copy">Copy</Menu.Item>
|
|
32
|
+
<Menu.Item key="move">Move</Menu.Item>
|
|
33
|
+
<Menu.Item key="archive">Archive</Menu.Item>
|
|
34
|
+
</Menu>
|
|
35
|
+
</SubMenuTrigger>
|
|
36
|
+
<Menu.Item key="delete">Delete</Menu.Item>
|
|
37
|
+
</Menu>
|
|
38
|
+
```
|
|
@@ -176,14 +176,12 @@ The menu content and behavior are defined in `defaultMenuProps`, eliminating the
|
|
|
176
176
|
|
|
177
177
|
## Comparison with Related Hooks
|
|
178
178
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
| **Default Placement** | `"bottom start"` | `"bottom start"` |
|
|
186
|
-
| **Setup Complexity** | Manual open calls | Minimal (auto-binding) |
|
|
179
|
+
- **`Positioning`** — useAnchoredMenu: Element-anchored; useContextMenu: Cursor coordinates
|
|
180
|
+
- **`Trigger`** — useAnchoredMenu: Manual (programmatic); useContextMenu: Right-click (automatic)
|
|
181
|
+
- **`Event Binding`** — useAnchoredMenu: Manual event handling; useContextMenu: Automatic `onContextMenu`
|
|
182
|
+
- **`Use Cases`** — useAnchoredMenu: Dropdown menus, action buttons; useContextMenu: Context menus, right-click actions
|
|
183
|
+
- **`Default Placement`** — Both: `"bottom start"`
|
|
184
|
+
- **`Setup Complexity`** — useAnchoredMenu: Manual open calls; useContextMenu: Minimal (auto-binding)
|
|
187
185
|
|
|
188
186
|
## Implementation Notes
|
|
189
187
|
|
|
@@ -148,14 +148,12 @@ function FileItem({ file }) {
|
|
|
148
148
|
|
|
149
149
|
## Comparison with Related Hooks
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
| **Default Placement** | `"bottom start"` | `"bottom start"` |
|
|
158
|
-
| **Setup Complexity** | Minimal (auto-binding) | Manual event handling |
|
|
151
|
+
- **`Positioning`** — useContextMenu: Cursor coordinates or element center; useAnchoredMenu: Element-anchored
|
|
152
|
+
- **`Trigger`** — useContextMenu: Right-click (automatic) + programmatic; useAnchoredMenu: Manual (button click)
|
|
153
|
+
- **`Event Binding`** — useContextMenu: Automatic `onContextMenu`; useAnchoredMenu: Manual event handling
|
|
154
|
+
- **`Use Cases`** — useContextMenu: Context menus, right-click actions, toolbar dropdowns; useAnchoredMenu: Dropdown menus, action buttons
|
|
155
|
+
- **`Default Placement`** — Both: `"bottom start"`
|
|
156
|
+
- **`Setup Complexity`** — useContextMenu: Minimal (auto-binding); useAnchoredMenu: Manual event handling
|
|
159
157
|
|
|
160
158
|
## Implementation Notes
|
|
161
159
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ActiveZone
|
|
2
|
+
|
|
3
|
+
A focusable, clickable zone with hover and focus states. Used for making non-button elements interactive.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Clickable cards or list items
|
|
8
|
+
- Custom interactive regions
|
|
9
|
+
- Wrapping content that should respond to click/hover/focus
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`label`** `string` — Accessible label for screen readers
|
|
14
|
+
- **`onClick`** `MouseEventHandler` — Click handler
|
|
15
|
+
- **`isDisabled`** `boolean` — Disables interaction, reduces opacity
|
|
16
|
+
|
|
17
|
+
### Style Defaults
|
|
18
|
+
|
|
19
|
+
- `display` — `inline-grid`
|
|
20
|
+
- `position` — `relative`
|
|
21
|
+
- `opacity` — `1` (switches to `0.4` when disabled)
|
|
22
|
+
- `transition` — `theme`
|
|
23
|
+
|
|
24
|
+
### Base Properties
|
|
25
|
+
|
|
26
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
27
|
+
|
|
28
|
+
## Examples
|
|
29
|
+
|
|
30
|
+
```jsx
|
|
31
|
+
<ActiveZone label="Open details" onClick={() => openDetails()}>
|
|
32
|
+
<Card>
|
|
33
|
+
<Title level={4}>Clickable Card</Title>
|
|
34
|
+
<Paragraph>This whole card is clickable</Paragraph>
|
|
35
|
+
</Card>
|
|
36
|
+
</ActiveZone>
|
|
37
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Alert
|
|
2
|
+
|
|
3
|
+
An alert message with theme variants. Used for announcements, warnings, and informational messages.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Form validation messages
|
|
8
|
+
- Success/error/warning notifications
|
|
9
|
+
- Informational banners
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`theme`** `'note' | 'success' | 'danger' | 'warning' | 'disabled'` (default: `'note'`) — Visual theme
|
|
14
|
+
- **`type`** — Deprecated, use `theme` instead
|
|
15
|
+
- **`shape`** `'card' | 'sharp'` (default: `'card'`) — `card` shows border radius and border; `sharp` removes both
|
|
16
|
+
|
|
17
|
+
### Style Defaults
|
|
18
|
+
|
|
19
|
+
- `display` — `block`
|
|
20
|
+
- `flow` — `column`
|
|
21
|
+
- `padding` — `1.5x`
|
|
22
|
+
- `preset` — `t3`
|
|
23
|
+
- `radius` — `1cr` (switches to `0` when `shape="sharp"`)
|
|
24
|
+
- `color` — `#dark-02`
|
|
25
|
+
|
|
26
|
+
### Base Properties
|
|
27
|
+
|
|
28
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
<Alert theme="note">Informational message</Alert>
|
|
34
|
+
|
|
35
|
+
<Alert theme="success">Operation completed successfully</Alert>
|
|
36
|
+
|
|
37
|
+
<Alert theme="danger">Something went wrong</Alert>
|
|
38
|
+
|
|
39
|
+
<Alert theme="warning" shape="sharp">Warning with sharp corners</Alert>
|
|
40
|
+
```
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Avatar
|
|
2
|
+
|
|
3
|
+
A circular avatar for user profiles. Displays initials, icons, or images.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- User profile pictures
|
|
8
|
+
- User lists and comments
|
|
9
|
+
- Account indicators
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`size`** `string` (default: `'4x'`) — Avatar size (width and height)
|
|
14
|
+
- **`icon`** `ReactNode` — Icon to display
|
|
15
|
+
|
|
16
|
+
### Style Defaults
|
|
17
|
+
|
|
18
|
+
- `display` — `grid`
|
|
19
|
+
- `fill` — `#primary`
|
|
20
|
+
- `color` — `#white`
|
|
21
|
+
- `radius` — `round`
|
|
22
|
+
- `placeContent` — `center`
|
|
23
|
+
- `fontWeight` — `500`
|
|
24
|
+
|
|
25
|
+
### Base Properties
|
|
26
|
+
|
|
27
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
```jsx
|
|
32
|
+
<Avatar>JD</Avatar>
|
|
33
|
+
|
|
34
|
+
<Avatar size="6x">AB</Avatar>
|
|
35
|
+
|
|
36
|
+
<Avatar icon={<IconUser />} />
|
|
37
|
+
```
|
|
@@ -23,6 +23,13 @@ Badges are small, circular indicators that display numerical counts or short sta
|
|
|
23
23
|
|
|
24
24
|
### Properties
|
|
25
25
|
|
|
26
|
+
- **`children`** `ReactNode` — Badge content (typically a number or short text)
|
|
27
|
+
- **`icon`** `ReactNode` — Icon to display before the badge content
|
|
28
|
+
- **`rightIcon`** `ReactNode` — Icon to display after the badge content
|
|
29
|
+
- **`theme`** `'special' | 'danger' | 'success' | 'warning' | 'note' | 'disabled'` (default: `special`) — Visual theme of the badge
|
|
30
|
+
- **`type`** `string` — Deprecated: Use theme instead
|
|
31
|
+
- **`size`** `string` (default: `inline`) — Size of the badge
|
|
32
|
+
|
|
26
33
|
### Base Properties
|
|
27
34
|
|
|
28
35
|
Badge extends from `Item` component and supports all base design system properties including:
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Card
|
|
2
|
+
|
|
3
|
+
A container with rounded corners, border, and padding. Renders as a `<div role="region">`.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Grouping related information
|
|
8
|
+
- Content containers in dashboards
|
|
9
|
+
- Highlighting standalone content blocks
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
No component-specific props. Use style props directly.
|
|
14
|
+
|
|
15
|
+
### Style Defaults
|
|
16
|
+
|
|
17
|
+
- `display` — `block`
|
|
18
|
+
- `flow` — `column`
|
|
19
|
+
- `radius` — `(1cr + 1bw)`
|
|
20
|
+
- `fill` — `#white`
|
|
21
|
+
- `border` — `#border`
|
|
22
|
+
- `padding` — `1.5x`
|
|
23
|
+
- `preset` — `t3`
|
|
24
|
+
|
|
25
|
+
### Base Properties
|
|
26
|
+
|
|
27
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
```jsx
|
|
32
|
+
<Card>
|
|
33
|
+
<Title level={3}>Card Title</Title>
|
|
34
|
+
<Paragraph>Card content goes here.</Paragraph>
|
|
35
|
+
</Card>
|
|
36
|
+
|
|
37
|
+
<Card padding="2x" fill="#surface">
|
|
38
|
+
Styled card with custom padding and background
|
|
39
|
+
</Card>
|
|
40
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Content
|
|
2
|
+
|
|
3
|
+
A scrollable content section for page layouts. Renders as `<section>` and is designed to work with `Layout`.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Main content area in app layouts
|
|
8
|
+
- Scrollable body sections
|
|
9
|
+
- Content that flows with `Layout` header/footer
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
No component-specific props. Use style props directly.
|
|
14
|
+
|
|
15
|
+
### Style Defaults
|
|
16
|
+
|
|
17
|
+
- `display` — `block`
|
|
18
|
+
- `flow` — `column`
|
|
19
|
+
- `gap` — `2x`
|
|
20
|
+
- `preset` — `p3`
|
|
21
|
+
- `color` — `#dark-02`
|
|
22
|
+
- `overflow` — `auto`
|
|
23
|
+
- `scrollbar` — `styled`
|
|
24
|
+
- `gridArea` — `content`
|
|
25
|
+
|
|
26
|
+
### Base Properties
|
|
27
|
+
|
|
28
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
<Layout>
|
|
34
|
+
<Layout.Header>
|
|
35
|
+
<Title level={3}>Page Title</Title>
|
|
36
|
+
</Layout.Header>
|
|
37
|
+
<Layout.Content>
|
|
38
|
+
<Paragraph>Main page content goes here.</Paragraph>
|
|
39
|
+
</Layout.Content>
|
|
40
|
+
<Layout.Footer>
|
|
41
|
+
<Text>Footer</Text>
|
|
42
|
+
</Layout.Footer>
|
|
43
|
+
</Layout>
|
|
44
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# CopyPasteBlock
|
|
2
|
+
|
|
3
|
+
A block that displays a value with copy-to-clipboard functionality. Supports paste via click/focus.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- API keys or tokens display
|
|
8
|
+
- One-time codes or passwords
|
|
9
|
+
- Values users need to copy or paste
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`title`** `string` — Label for the block
|
|
14
|
+
- **`value`** `string` (default: `''`) — The value to display and copy
|
|
15
|
+
- **`placeholder`** `ReactNode` — Placeholder when value is empty
|
|
16
|
+
- **`size`** `'small' | 'medium' | 'large'` (default: `'medium'`) — Block size
|
|
17
|
+
|
|
18
|
+
### Style Defaults
|
|
19
|
+
|
|
20
|
+
- `fill` — `#dark-bg`
|
|
21
|
+
- `radius` — `1r`
|
|
22
|
+
- `cursor` — pointer
|
|
23
|
+
- `preset` — `t3` (switches to `t2` when `size="large"`)
|
|
24
|
+
- `height` — `5x` (`4x` for small, `6x` for large)
|
|
25
|
+
|
|
26
|
+
### Base Properties
|
|
27
|
+
|
|
28
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
<CopyPasteBlock title="API Key" value={apiKey} />
|
|
34
|
+
|
|
35
|
+
<CopyPasteBlock title="Token" value={token} size="small" />
|
|
36
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# CopySnippet
|
|
2
|
+
|
|
3
|
+
A code block with copy-to-clipboard functionality and syntax highlighting. Extends `Card`.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
|
|
7
|
+
- Documentation code examples
|
|
8
|
+
- API response displays
|
|
9
|
+
- Sharing code snippets with copy functionality
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- **`code`** `string` (default: `''`) — The code to display
|
|
14
|
+
- **`language`** `string` (default: `'javascript'`) — Syntax highlighting language
|
|
15
|
+
- **`title`** `string` (default: `'Code example'`) — Accessible title
|
|
16
|
+
- **`prefix`** `string` (default: `''`) — Prefix text (e.g. `$`)
|
|
17
|
+
- **`multiline`** `boolean` — Allow multiline display
|
|
18
|
+
- **`nowrap`** `boolean` — Prevent line wrapping
|
|
19
|
+
- **`showTooltip`** `boolean` (default: `false`) — Show tooltip on hover
|
|
20
|
+
|
|
21
|
+
### Style Defaults
|
|
22
|
+
|
|
23
|
+
- `fill` — `#dark-bg`
|
|
24
|
+
- `border` — `0`
|
|
25
|
+
- `radius` — `1r`
|
|
26
|
+
- `padding` — `0`
|
|
27
|
+
- `preset` — `default`
|
|
28
|
+
|
|
29
|
+
### Base Properties
|
|
30
|
+
|
|
31
|
+
Supports [Base properties](../../BaseProperties.md).
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
<CopySnippet code="const x = 1;" language="javascript" />
|
|
37
|
+
|
|
38
|
+
<CopySnippet
|
|
39
|
+
code={'{\n "key": "value"\n}'}
|
|
40
|
+
language="json"
|
|
41
|
+
multiline
|
|
42
|
+
/>
|
|
43
|
+
```
|