@cube-dev/ui-kit 0.121.5 → 0.121.7
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 +21 -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 +3 -2
- package/dist/components/Block.js.map +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 +3 -2
- package/dist/components/Root.js.map +1 -1
- package/dist/components/actions/Action/Action.js +3 -2
- package/dist/components/actions/Action/Action.js.map +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +3 -2
- package/dist/components/actions/Button/Button.js.map +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +3 -2
- package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +3 -2
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +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 +3 -2
- package/dist/components/actions/Menu/Menu.js.map +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 +3 -2
- package/dist/components/content/ActiveZone/ActiveZone.js.map +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +3 -2
- package/dist/components/content/Alert/use-alert.js.map +1 -1
- package/dist/components/content/Avatar/Avatar.js +3 -2
- package/dist/components/content/Avatar/Avatar.js.map +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +3 -2
- package/dist/components/content/Card/Card.js.map +1 -1
- package/dist/components/content/Content.js +3 -2
- package/dist/components/content/Content.js.map +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +3 -2
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js.map +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +3 -2
- package/dist/components/content/Disclosure/Disclosure.js.map +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +3 -2
- package/dist/components/content/Footer.js.map +1 -1
- package/dist/components/content/Header.js +3 -2
- package/dist/components/content/Header.js.map +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +3 -2
- package/dist/components/content/HotKeys/HotKeys.js.map +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 +3 -2
- package/dist/components/content/Layout/Layout.js.map +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 +3 -2
- package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
- package/dist/components/content/Layout/LayoutContent.js +3 -2
- package/dist/components/content/Layout/LayoutContent.js.map +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 +3 -2
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +3 -2
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +3 -2
- package/dist/components/content/Layout/LayoutPanelHeader.js.map +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 +3 -2
- package/dist/components/content/Paragraph.js.map +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +3 -2
- package/dist/components/content/Placeholder/Placeholder.js.map +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 +4 -3
- 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 +3 -2
- package/dist/components/content/Text.js.map +1 -1
- package/dist/components/content/TextItem/TextItem.js +3 -2
- package/dist/components/content/TextItem/TextItem.js.map +1 -1
- package/dist/components/content/Title.js +3 -2
- package/dist/components/content/Title.js.map +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 +3 -2
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +3 -2
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +3 -2
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +3 -2
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +3 -2
- package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +3 -2
- package/dist/components/fields/DatePicker/DatePicker.js.map +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 +3 -2
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +3 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +3 -2
- package/dist/components/fields/DatePicker/TimeInput.js.map +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 +3 -2
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +3 -2
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +3 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +3 -2
- package/dist/components/fields/ListBox/ListBox.js.map +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 +3 -2
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +3 -2
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +3 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +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 +3 -2
- 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 +3 -2
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +3 -2
- package/dist/components/fields/Slider/SliderBase.js.map +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 +6 -5
- 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 +15 -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 +3 -2
- package/dist/components/form/Form/Form.js.map +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 +3 -2
- package/dist/components/form/Label.js.map +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 +3 -2
- package/dist/components/layout/Flex.js.map +1 -1
- package/dist/components/layout/Flow.js +3 -2
- package/dist/components/layout/Flow.js.map +1 -1
- package/dist/components/layout/Grid.js +3 -2
- package/dist/components/layout/Grid.js.map +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +3 -2
- package/dist/components/layout/Prefix.js.map +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +3 -2
- package/dist/components/layout/Space.js.map +1 -1
- package/dist/components/layout/Suffix.js +3 -2
- package/dist/components/layout/Suffix.js.map +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 +3 -2
- package/dist/components/navigation/Tabs/Tabs.js.map +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 +3 -2
- package/dist/components/overlays/Dialog/Dialog.js.map +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 +3 -2
- package/dist/components/overlays/Tooltip/Tooltip.js.map +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 +3 -1
- package/dist/index.js +4 -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/index.d.ts +1 -0
- 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/styles.d.ts +19 -0
- package/dist/utils/styles.js +31 -0
- package/dist/utils/styles.js.map +1 -0
- 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 +64 -20
- package/package.json +8 -9
|
@@ -18,8 +18,6 @@ A component that displays keyboard shortcuts in a visually appealing and accessi
|
|
|
18
18
|
|
|
19
19
|
- **`children`** `string` — Key combination string (e.g., "mod+k, ctrl+k")
|
|
20
20
|
- **`type`** `'default' | 'primary' | 'inherit'` (default: `default`) — Visual appearance type: default (subtle), primary (high contrast), or inherit (adapts to parent color)
|
|
21
|
-
- **`aria-label`** `string` — Accessible label for the keyboard shortcuts
|
|
22
|
-
- **`aria-description`** `string` — Additional description for the keyboard shortcuts
|
|
23
21
|
|
|
24
22
|
### Base Properties
|
|
25
23
|
|
|
@@ -36,19 +34,14 @@ Customizes the root element of the component (Space component).
|
|
|
36
34
|
|
|
37
35
|
### Style Properties
|
|
38
36
|
|
|
39
|
-
These properties allow direct style application without using the `styles` prop:
|
|
37
|
+
These properties allow direct style application without using the `styles` prop:
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
**
|
|
46
|
-
|
|
47
|
-
**Default:** `'default'`
|
|
48
|
-
|
|
49
|
-
- `default` - Standard appearance with subtle background and border
|
|
50
|
-
- `primary` - High contrast appearance with white text and border on transparent background
|
|
51
|
-
- `inherit` - Adapts to parent's text color for both text and border, transparent background
|
|
39
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
40
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
41
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
42
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
43
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
44
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
52
45
|
|
|
53
46
|
### Accessibility Properties
|
|
54
47
|
|
|
@@ -15,6 +15,7 @@ A non-interactive badge indicator for list items. Similar to `ItemAction` but wi
|
|
|
15
15
|
- **`theme`** `'default' | 'danger' | 'success' | 'special'` (default: `'default'`) — Color theme. Inherits from parent context.
|
|
16
16
|
- **`isLoading`** `boolean` (default: `false`) — Show loading spinner
|
|
17
17
|
- **`isSelected`** `boolean` (default: `false`) — Selected state (for checkbox)
|
|
18
|
+
- **`tooltip`** `string | object` — Tooltip content shown on hover for icon-only badges. A string shows tooltip text; an object supports `{ title, ...tooltipProps }` for advanced configuration.
|
|
18
19
|
|
|
19
20
|
### Base Properties
|
|
20
21
|
|
|
@@ -14,11 +14,26 @@ A convenience wrapper around `Item type="card"` that provides a more natural car
|
|
|
14
14
|
|
|
15
15
|
### Properties
|
|
16
16
|
|
|
17
|
-
- **`title`** `
|
|
18
|
-
- **`children`** `ReactNode` — Card body content
|
|
19
|
-
- **`
|
|
20
|
-
- **`
|
|
21
|
-
- **`
|
|
17
|
+
- **`title`** `ReactNode` — Card heading (mapped to Item's `children`)
|
|
18
|
+
- **`children`** `ReactNode` — Card body content (mapped to Item's `description`)
|
|
19
|
+
- **`size`** `'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'` (default: `medium`) — Size of the card
|
|
20
|
+
- **`icon`** `ReactNode` — Icon displayed before the content
|
|
21
|
+
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
22
|
+
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
23
|
+
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
24
|
+
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip configuration: string for text, `true` for auto overflow tooltips, or object for advanced config
|
|
25
|
+
- **`hotkeys`** `string` — Keyboard shortcut displayed and triggered
|
|
26
|
+
- **`isSelected`** `boolean` (default: `false`) — Whether the card shows as selected with a checkbox
|
|
27
|
+
- **`isLoading`** `boolean` (default: `false`) — Show loading state, replacing an icon slot with a spinner
|
|
28
|
+
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
29
|
+
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
30
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
31
|
+
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
32
|
+
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the card title
|
|
33
|
+
- **`highlight`** `string` — String to highlight within children text
|
|
34
|
+
- **`highlightCaseSensitive`** `boolean` (default: `false`) — Whether highlight matching is case-sensitive
|
|
35
|
+
|
|
36
|
+
Inherits from [Item](./Item.md) (with `type="card"`).
|
|
22
37
|
|
|
23
38
|
### Base Properties
|
|
24
39
|
|
|
@@ -16,6 +16,9 @@ A compound component system for building application shells with headers, footer
|
|
|
16
16
|
### Properties
|
|
17
17
|
|
|
18
18
|
- **`doNotOverflow`** `boolean` (default: `false`) — When true, applies `overflow: hidden` to the root element. By default, overflow is visible.
|
|
19
|
+
- **`contentPadding`** `string` (default: `'1x'`) — Padding for content areas (`Layout.Content` components). Sets the `$content-padding` token inherited by sub-components.
|
|
20
|
+
- **`hasTransition`** `boolean` (default: `false`) — Enable transition animation for the Inner content when panels open/close
|
|
21
|
+
- **`minContentSize`** `number` (default: `320`) — Minimum size in pixels reserved for the content area between panels
|
|
19
22
|
- **`innerRef`** `ForwardedRef<HTMLDivElement>` — Ref for the inner content element
|
|
20
23
|
- **`innerProps`** `HTMLAttributes<HTMLDivElement>` — Props to spread on the Inner sub-element
|
|
21
24
|
- **`isGrid`** `boolean` — Enable grid display mode
|
|
@@ -38,7 +41,11 @@ Customizes the root Layout element.
|
|
|
38
41
|
|
|
39
42
|
### Style Properties
|
|
40
43
|
|
|
41
|
-
These properties allow direct style application
|
|
44
|
+
These properties allow direct style application without using the `styles` prop:
|
|
45
|
+
|
|
46
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
47
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
48
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
42
49
|
|
|
43
50
|
### Style Defaults
|
|
44
51
|
|
|
@@ -9,7 +9,14 @@ A block-level text component for body content. Renders as `<p>` and extends `Tex
|
|
|
9
9
|
|
|
10
10
|
## Properties
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
- **`monospace`** `boolean` — Use monospace font
|
|
13
|
+
- **`ellipsis`** `boolean` — Truncate overflow with ellipsis
|
|
14
|
+
- **`nowrap`** `boolean` — Prevent text wrapping
|
|
15
|
+
- **`italic`** `string` — Font style (e.g. `'italic'`)
|
|
16
|
+
- **`weight`** `string | number` — Font weight
|
|
17
|
+
- **`transform`** `string` — Text transform (e.g. `'uppercase'`, `'capitalize'`)
|
|
18
|
+
|
|
19
|
+
Extends Text and supports all Text style properties including `preset`, `color`.
|
|
13
20
|
|
|
14
21
|
### Style Defaults
|
|
15
22
|
|
|
@@ -21,6 +28,18 @@ Extends Text properties including `preset`, `color`, `weight`, `transform`, `ell
|
|
|
21
28
|
|
|
22
29
|
Supports [Base properties](../../BaseProperties.md).
|
|
23
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
|
+
|
|
24
43
|
## Examples
|
|
25
44
|
|
|
26
45
|
```jsx
|
|
@@ -26,6 +26,17 @@ A loading placeholder with optional shimmer animation. Used for skeleton-style l
|
|
|
26
26
|
|
|
27
27
|
Supports [Base properties](../../BaseProperties.md).
|
|
28
28
|
|
|
29
|
+
### Style Properties
|
|
30
|
+
|
|
31
|
+
These properties allow direct style application without using the `styles` prop:
|
|
32
|
+
|
|
33
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
34
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
35
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
36
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
37
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
38
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
39
|
+
|
|
29
40
|
## Examples
|
|
30
41
|
|
|
31
42
|
```jsx
|
|
@@ -14,6 +14,7 @@ An empty state or result display with icon, title, and optional content. Support
|
|
|
14
14
|
- **`status`** `'success' | 'error' | 'info' | 'warning' | 404 | 403 | 500` (default: `'info'`) — Predefined status with corresponding icon
|
|
15
15
|
- **`title`** `ReactNode` — Main title text
|
|
16
16
|
- **`subtitle`** `ReactNode` — Secondary text below title
|
|
17
|
+
- **`subTitle`** `ReactNode` — Deprecated: Use `subtitle` instead
|
|
17
18
|
- **`icon`** `ReactNode` — Custom icon (overrides status icon)
|
|
18
19
|
- **`isCompact`** `boolean` — Compact horizontal layout
|
|
19
20
|
|
|
@@ -31,6 +32,17 @@ An empty state or result display with icon, title, and optional content. Support
|
|
|
31
32
|
|
|
32
33
|
Supports [Base properties](../../BaseProperties.md).
|
|
33
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
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
41
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
42
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
43
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
44
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
45
|
+
|
|
34
46
|
## Examples
|
|
35
47
|
|
|
36
48
|
```jsx
|
|
@@ -17,11 +17,26 @@ A skeleton loading indicator with preset layouts. Composes `Placeholder` compone
|
|
|
17
17
|
- **`tabs`** `number` (default: `3`) — Number of tabs (for tabs layout)
|
|
18
18
|
- **`cards`** `number` (default: `3`) — Number of stat cards (for stats layout)
|
|
19
19
|
- **`isStatic`** `boolean` (default: `false`) — Disable shimmer animation
|
|
20
|
+
- **`size`** `string` (default: `'2x'`) — Height of individual placeholder elements (from Placeholder)
|
|
21
|
+
- **`circle`** `boolean` — Render placeholder as a circle (1:1 aspect ratio with round radius)
|
|
22
|
+
- **`template`** `string` — CSS grid-template shorthand for the skeleton root grid layout
|
|
23
|
+
- **`areas`** `string` — CSS grid-template-areas for named grid areas in the skeleton root layout
|
|
20
24
|
|
|
21
25
|
### Base Properties
|
|
22
26
|
|
|
23
27
|
Supports [Base properties](../../BaseProperties.md).
|
|
24
28
|
|
|
29
|
+
### Style Properties
|
|
30
|
+
|
|
31
|
+
These properties allow direct style application without using the `styles` prop:
|
|
32
|
+
|
|
33
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
34
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
35
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
36
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
37
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
38
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
39
|
+
|
|
25
40
|
## Examples
|
|
26
41
|
|
|
27
42
|
```jsx
|
|
@@ -23,22 +23,33 @@ Tags are compact, inline elements used to label, categorize, or organize items.
|
|
|
23
23
|
|
|
24
24
|
### Properties
|
|
25
25
|
|
|
26
|
-
- **`
|
|
27
|
-
- **`icon`** `ReactNode` — Icon to display before the tag content
|
|
28
|
-
- **`theme`** `'default' | 'danger' | 'success' | 'warning' | 'note' | 'special' | 'disabled'` (default: `default`) — Visual theme of the tag
|
|
29
|
-
- **`type`** `string` — Deprecated: Use theme instead
|
|
26
|
+
- **`theme`** `'default' | 'danger' | 'success' | 'warning' | 'note' | 'special'` (default: `default`) — Visual theme of the tag
|
|
30
27
|
- **`size`** `string` (default: `inline`) — Size of the tag
|
|
31
28
|
- **`isClosable`** `boolean` (default: `false`) — Whether the tag can be closed
|
|
32
29
|
- **`onClose`** `() => void` — Handler called when close button is pressed
|
|
33
30
|
- **`closeButtonStyles`** `Styles` — Custom styles for the close button
|
|
31
|
+
- **`icon`** `ReactNode` — Icon displayed before the content
|
|
32
|
+
- **`rightIcon`** `ReactNode` — Icon displayed after the content
|
|
33
|
+
- **`prefix`** `ReactNode` — Content rendered before the label
|
|
34
|
+
- **`suffix`** `ReactNode` — Content rendered after the label
|
|
35
|
+
- **`description`** `ReactNode` — Secondary text below the main content
|
|
36
|
+
- **`tooltip`** `string | boolean | object` (default: `true`) — Tooltip configuration: string for text, `true` for auto overflow tooltips, or object for advanced config
|
|
37
|
+
- **`hotkeys`** `string` — Keyboard shortcut displayed and triggered
|
|
38
|
+
- **`isSelected`** `boolean` (default: `false`) — Whether the tag shows as selected with a checkbox
|
|
39
|
+
- **`isLoading`** `boolean` (default: `false`) — Show loading state, replacing an icon slot with a spinner
|
|
40
|
+
- **`actions`** `ReactNode` — Inline action buttons displayed on the right side
|
|
41
|
+
- **`autoHideActions`** `boolean` (default: `false`) — When true, actions are hidden by default and shown on hover or focus
|
|
42
|
+
- **`preserveActionsSpace`** `boolean` (default: `false`) — Preserve the actions width when hidden (only changes opacity, not layout)
|
|
43
|
+
- **`disableActionsFocus`** `boolean` (default: `false`) — Disable focus on action buttons by setting tabIndex to -1
|
|
44
|
+
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `3`) — Heading level for the label element when type is "header" or "card"
|
|
45
|
+
- **`highlight`** `string` — String to highlight within children text
|
|
46
|
+
- **`highlightCaseSensitive`** `boolean` (default: `false`) — Whether highlight matching is case-sensitive
|
|
47
|
+
|
|
48
|
+
Inherits from [Item](./Item.md).
|
|
34
49
|
|
|
35
50
|
### Base Properties
|
|
36
51
|
|
|
37
|
-
|
|
38
|
-
- Layout props: `width`, `height`, `margin`, `padding`
|
|
39
|
-
- Color props: `fill`, `color`, `border`
|
|
40
|
-
- Typography props: `preset`, `fontSize`, `fontWeight`
|
|
41
|
-
- Other Item props: `tooltip`, `isDisabled`, `qa`
|
|
52
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
42
53
|
|
|
43
54
|
## Examples
|
|
44
55
|
|
|
@@ -39,6 +39,14 @@ Supports [Base properties](../../BaseProperties.md).
|
|
|
39
39
|
- `Text.Placeholder` — Placeholder-style text
|
|
40
40
|
- `Text.Highlight` — Highlighted text (mark element)
|
|
41
41
|
|
|
42
|
+
### Style Properties
|
|
43
|
+
|
|
44
|
+
These properties allow direct style application without using the `styles` prop:
|
|
45
|
+
|
|
46
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
47
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
48
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
49
|
+
|
|
42
50
|
## Examples
|
|
43
51
|
|
|
44
52
|
```jsx
|
|
@@ -15,15 +15,21 @@ A text component with built-in overflow handling and auto-tooltips. When text is
|
|
|
15
15
|
|
|
16
16
|
### Properties
|
|
17
17
|
|
|
18
|
-
- **`
|
|
19
|
-
- **`highlight`** `string` — String to highlight within children
|
|
18
|
+
- **`highlight`** `string` — String to highlight within children (only works when children is a plain string)
|
|
20
19
|
- **`highlightCaseSensitive`** `boolean` (default: `false`) — Whether highlight matching is case-sensitive
|
|
21
|
-
- **`
|
|
20
|
+
- **`highlightStyles`** `Styles` — Custom styles for highlighted text portions
|
|
21
|
+
- **`tooltip`** `string | boolean | TooltipProviderProps` (default: `true`) — Tooltip configuration. `true` enables auto tooltip on overflow, a string shows fixed tooltip text, an object supports advanced configuration.
|
|
22
22
|
- **`tooltipPlacement`** `Placement` (default: `top`) — Default tooltip placement
|
|
23
|
+
- **`monospace`** `boolean` — Use monospace font
|
|
24
|
+
- **`ellipsis`** `boolean` — Truncate overflow with ellipsis
|
|
25
|
+
- **`nowrap`** `boolean` — Prevent text wrapping
|
|
26
|
+
- **`italic`** `string` — Font style (e.g. `'italic'`)
|
|
27
|
+
- **`weight`** `string | number` — Font weight
|
|
28
|
+
- **`transform`** `string` — Text transform (e.g. `'uppercase'`, `'capitalize'`)
|
|
23
29
|
|
|
24
30
|
### Base Properties
|
|
25
31
|
|
|
26
|
-
Supports [Base properties](../../BaseProperties.md) and all Text properties including `preset`, `color
|
|
32
|
+
Supports [Base properties](../../BaseProperties.md) and all Text style properties including `preset`, `color`.
|
|
27
33
|
|
|
28
34
|
### Styling Properties
|
|
29
35
|
|
|
@@ -31,13 +37,13 @@ Supports [Base properties](../../BaseProperties.md) and all Text properties incl
|
|
|
31
37
|
|
|
32
38
|
Customizes the root text element. Inherits all styling capabilities from the Text component.
|
|
33
39
|
|
|
34
|
-
#### highlightStyles
|
|
35
|
-
|
|
36
|
-
Customizes the appearance of highlighted text portions.
|
|
37
|
-
|
|
38
40
|
### Style Properties
|
|
39
41
|
|
|
40
|
-
These properties allow direct style application
|
|
42
|
+
These properties allow direct style application without using the `styles` prop:
|
|
43
|
+
|
|
44
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
45
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
46
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
41
47
|
|
|
42
48
|
## Examples
|
|
43
49
|
|
|
@@ -13,6 +13,10 @@ A heading component for section titles. Renders as `h1`–`h6` based on the `lev
|
|
|
13
13
|
- **`level`** `1 | 2 | 3 | 4 | 5 | 6` (default: `1`) — Heading level (maps to `h1`–`h6` tag and corresponding preset `h1`–`h6`)
|
|
14
14
|
- **`ellipsis`** `boolean` — Truncate overflow with ellipsis
|
|
15
15
|
- **`nowrap`** `boolean` — Prevent text wrapping
|
|
16
|
+
- **`monospace`** `boolean` — Use monospace font
|
|
17
|
+
- **`italic`** `string` — Font style (e.g. `'italic'`)
|
|
18
|
+
- **`weight`** `string | number` — Font weight
|
|
19
|
+
- **`transform`** `string` — Text transform (e.g. `'uppercase'`, `'capitalize'`)
|
|
16
20
|
|
|
17
21
|
### Style Defaults
|
|
18
22
|
|
|
@@ -30,6 +34,18 @@ Supports [Base properties](../../BaseProperties.md).
|
|
|
30
34
|
- `Title.Danger` — Error or destructive heading
|
|
31
35
|
- `Title.Success` — Success or positive heading
|
|
32
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
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
47
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
48
|
+
|
|
33
49
|
## Examples
|
|
34
50
|
|
|
35
51
|
```jsx
|
|
@@ -45,9 +45,14 @@ Customizes the checkbox input element specifically.
|
|
|
45
45
|
|
|
46
46
|
### Style Properties
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`display`, `font`, `preset`, `hide`, `
|
|
48
|
+
These properties allow direct style application without using the `styles` prop:
|
|
49
|
+
|
|
50
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
51
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
52
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
53
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
54
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
55
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
51
56
|
|
|
52
57
|
### Modifiers
|
|
53
58
|
|
|
@@ -46,8 +46,12 @@ A combobox component that combines a text input with a dropdown list, allowing u
|
|
|
46
46
|
- **`direction`** `'top' | 'bottom'` (default: `bottom`) — Preferred direction for the dropdown
|
|
47
47
|
- **`shouldFlip`** `boolean` (default: `true`) — Whether the dropdown should flip to fit in viewport
|
|
48
48
|
- **`overlayOffset`** `number` (default: `8`) — Distance between input and dropdown in pixels
|
|
49
|
+
- **`items`** `Iterable<T>` — Items for the listbox (alternative to children, enables data-driven mode)
|
|
50
|
+
- **`disabledKeys`** `Iterable<Key>` — Keys of disabled items that cannot be selected
|
|
51
|
+
- **`containerPadding`** `number` (default: `8`) — Minimum padding in pixels between the popover and viewport edges
|
|
49
52
|
- **`onFocus`** `() => void` — Callback fired when focus enters the ComboBox
|
|
50
53
|
- **`onBlur`** `() => void` — Callback fired when focus leaves the ComboBox
|
|
54
|
+
- **`onKeyDown`** `(e: KeyboardEvent) => void` — Callback fired when a key is pressed on the input
|
|
51
55
|
|
|
52
56
|
#### Notable Properties
|
|
53
57
|
|
|
@@ -97,10 +101,6 @@ Customizes the text input element where users type.
|
|
|
97
101
|
|
|
98
102
|
Customizes the dropdown trigger button that opens/closes the popover.
|
|
99
103
|
|
|
100
|
-
#### fieldStyles
|
|
101
|
-
|
|
102
|
-
Customizes the field wrapper element that includes the label, description, message, and the entire input component.
|
|
103
|
-
|
|
104
104
|
#### listBoxStyles
|
|
105
105
|
|
|
106
106
|
Customizes the dropdown list container that displays options.
|
|
@@ -123,7 +123,13 @@ Customizes section heading elements within grouped options.
|
|
|
123
123
|
|
|
124
124
|
### Style Properties
|
|
125
125
|
|
|
126
|
-
These properties allow direct style application without using the `styles` prop:
|
|
126
|
+
These properties allow direct style application without using the `styles` prop:
|
|
127
|
+
|
|
128
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
129
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
130
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
131
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
132
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
127
133
|
|
|
128
134
|
### Modifiers
|
|
129
135
|
|
|
@@ -16,8 +16,6 @@ A date picker combines a text input with a calendar interface, allowing users to
|
|
|
16
16
|
|
|
17
17
|
### Properties
|
|
18
18
|
|
|
19
|
-
- **`description`** `string` — Additional descriptive text
|
|
20
|
-
- **`placeholder`** `string` — Placeholder text when no date is selected
|
|
21
19
|
- **`value`** `DateValue` — The current date value (controlled)
|
|
22
20
|
- **`defaultValue`** `DateValue` — The default date value (uncontrolled)
|
|
23
21
|
- **`placeholderValue`** `DateValue` — Date used as placeholder when calendar opens
|
|
@@ -25,9 +23,17 @@ A date picker combines a text input with a calendar interface, allowing users to
|
|
|
25
23
|
- **`maxValue`** `DateValue` — The maximum allowed date
|
|
26
24
|
- **`granularity`** `'day' | 'hour' | 'minute' | 'second'` (default: `day`) — Determines the smallest selectable unit
|
|
27
25
|
- **`size`** `'small' | 'medium' | 'large' | (string & {})` (default: `medium`) — DatePicker size
|
|
28
|
-
- **`showMonthAndYearPickers`** `boolean` (default: `false`) — Whether to show month and year picker dropdowns
|
|
29
26
|
- **`useLocale`** `boolean` (default: `false`) — Whether to use locale-specific date formatting
|
|
30
27
|
- **`maxVisibleMonths`** `number` (default: `1`) — Maximum number of months to display in calendar
|
|
28
|
+
- **`shouldFlip`** `boolean` (default: `true`) — Whether the calendar popover should flip to fit in the viewport
|
|
29
|
+
- **`isOpen`** `boolean` — Whether the calendar popover is open (controlled)
|
|
30
|
+
- **`defaultOpen`** `boolean` — Whether the calendar popover is open by default (uncontrolled)
|
|
31
|
+
- **`isDateUnavailable`** `(date: DateValue) => boolean` — Callback to mark specific dates as unavailable
|
|
32
|
+
- **`hourCycle`** `12 | 24` (default: `24`) — Whether to display time in 12 or 24 hour format
|
|
33
|
+
- **`hideTimeZone`** `boolean` (default: `true`) — Whether to hide the time zone abbreviation
|
|
34
|
+
- **`shouldForceLeadingZeros`** `boolean` (default: `true`) — Whether to always show leading zeros in date/time fields
|
|
35
|
+
- **`pageBehavior`** `'single' | 'visible'` — Controls how calendar pages change when navigating
|
|
36
|
+
- **`firstDayOfWeek`** `'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat'` — The first day of the week in the calendar
|
|
31
37
|
- **`onChange`** `(value: DateValue | null) => void` — Callback fired when the date value changes
|
|
32
38
|
- **`onBlur`** `(e: FocusEvent) => void` — Callback fired when the date picker loses focus
|
|
33
39
|
- **`onFocus`** `(e: FocusEvent) => void` — Callback fired when the date picker receives focus
|
|
@@ -68,9 +74,14 @@ Customizes the calendar trigger button.
|
|
|
68
74
|
|
|
69
75
|
### Style Properties
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
These properties allow direct style application without using the `styles` prop:
|
|
72
78
|
|
|
73
|
-
`display`, `font`, `preset`, `hide`, `
|
|
79
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
80
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
81
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
82
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
83
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
84
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
74
85
|
|
|
75
86
|
### Modifiers
|
|
76
87
|
|
|
@@ -129,16 +140,6 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
129
140
|
/>
|
|
130
141
|
```
|
|
131
142
|
|
|
132
|
-
### Custom Format
|
|
133
|
-
|
|
134
|
-
```jsx
|
|
135
|
-
<DatePicker
|
|
136
|
-
label="Birth date"
|
|
137
|
-
showMonthAndYearPickers
|
|
138
|
-
maxValue={today(getLocalTimeZone())}
|
|
139
|
-
/>
|
|
140
|
-
```
|
|
141
|
-
|
|
142
143
|
### With Validation
|
|
143
144
|
|
|
144
145
|
```jsx
|
|
@@ -17,11 +17,11 @@ A file input component that allows users to select and upload files through a cu
|
|
|
17
17
|
### Properties
|
|
18
18
|
|
|
19
19
|
- **`placeholder`** `string` — Text displayed when no file is selected
|
|
20
|
-
- **`buttonText`** `string` — Text displayed on the selection button
|
|
21
20
|
- **`accept`** `string` — Comma-separated list of accepted file types
|
|
22
|
-
- **`multiple`** `boolean` (default: `false`) — Whether multiple files can be selected
|
|
23
|
-
- **`capture`** `undefined | 'user' | 'environment'` — Camera to use for file capture on mobile devices
|
|
24
21
|
- **`type`** `'file' | 'text'` (default: `file`) — How to process the selected file(s)
|
|
22
|
+
- **`size`** `'small' | 'default' | 'large'` (default: `default`) — The size of the input
|
|
23
|
+
- **`inputStyles`** `Styles` — Custom styles for the file input element
|
|
24
|
+
- **`inputProps`** `Props` — Direct props passed to the native file input element
|
|
25
25
|
- **`onChange`** `function` — Callback fired when files are selected
|
|
26
26
|
- **`onBlur`** `function` — Callback fired when the file input loses focus
|
|
27
27
|
- **`onFocus`** `function` — Callback fired when the file input receives focus
|
|
@@ -48,9 +48,14 @@ Customizes the root element of the component.
|
|
|
48
48
|
|
|
49
49
|
### Style Properties
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
These properties allow direct style application without using the `styles` prop:
|
|
52
52
|
|
|
53
|
-
`display`, `font`, `preset`, `hide`, `
|
|
53
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
54
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
55
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
56
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
57
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
58
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
54
59
|
|
|
55
60
|
### Modifiers
|
|
56
61
|
|
|
@@ -71,16 +76,6 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
71
76
|
<FileInput label="Upload document" />
|
|
72
77
|
```
|
|
73
78
|
|
|
74
|
-
### Multiple Files
|
|
75
|
-
|
|
76
|
-
```jsx
|
|
77
|
-
<FileInput
|
|
78
|
-
label="Upload images"
|
|
79
|
-
multiple
|
|
80
|
-
accept="image/*"
|
|
81
|
-
/>
|
|
82
|
-
```
|
|
83
|
-
|
|
84
79
|
### With File Type Restrictions
|
|
85
80
|
|
|
86
81
|
```jsx
|
|
@@ -91,16 +86,6 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
91
86
|
/>
|
|
92
87
|
```
|
|
93
88
|
|
|
94
|
-
### Custom Button Text
|
|
95
|
-
|
|
96
|
-
```jsx
|
|
97
|
-
<FileInput
|
|
98
|
-
label="Profile picture"
|
|
99
|
-
buttonText="Choose Photo"
|
|
100
|
-
accept="image/jpeg,image/png"
|
|
101
|
-
/>
|
|
102
|
-
```
|
|
103
|
-
|
|
104
89
|
### With Validation
|
|
105
90
|
|
|
106
91
|
```jsx
|
|
@@ -118,7 +103,6 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
118
103
|
<FileInput
|
|
119
104
|
label="Disabled file input"
|
|
120
105
|
isDisabled
|
|
121
|
-
buttonText="Upload"
|
|
122
106
|
/>
|
|
123
107
|
```
|
|
124
108
|
|
|
@@ -128,7 +112,6 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
128
112
|
<FileInput
|
|
129
113
|
label="Document upload"
|
|
130
114
|
placeholder="Drag files here or click to browse..."
|
|
131
|
-
buttonText="Browse"
|
|
132
115
|
/>
|
|
133
116
|
```
|
|
134
117
|
|
|
@@ -166,15 +149,14 @@ The `mods` property accepts the following modifiers you can override:
|
|
|
166
149
|
/>
|
|
167
150
|
```
|
|
168
151
|
|
|
169
|
-
2. **Don't**: Use unclear
|
|
152
|
+
2. **Don't**: Use unclear or missing labels
|
|
170
153
|
```jsx
|
|
171
|
-
<FileInput
|
|
154
|
+
<FileInput /> {/* What should be uploaded? */}
|
|
172
155
|
```
|
|
173
156
|
|
|
174
157
|
3. **File Types**: Always specify accepted file types for better UX
|
|
175
158
|
4. **Size Limits**: Implement file size validation for uploads
|
|
176
|
-
5. **
|
|
177
|
-
6. **Error Handling**: Provide helpful feedback for invalid files
|
|
159
|
+
5. **Error Handling**: Provide helpful feedback for invalid files
|
|
178
160
|
|
|
179
161
|
## Integration with Forms
|
|
180
162
|
|
|
@@ -42,6 +42,11 @@ A searchable list selection component that combines a ListBox with an integrated
|
|
|
42
42
|
- **`onSelectionChange`** `(keys: Key | Key[] | 'all' | null) => void` — Callback when selection changes
|
|
43
43
|
- **`onEscape`** `() => void` — Callback when Escape key is pressed
|
|
44
44
|
- **`onOptionClick`** `(key: Key) => void` — Callback when an option is clicked
|
|
45
|
+
- **`items`** `Iterable<T>` — Array of items for dynamic content with render function pattern
|
|
46
|
+
- **`isLoading`** `boolean` (default: `false`) — Whether the FilterListBox is in a loading state (shows loading icon in search input)
|
|
47
|
+
- **`autoFocus`** `boolean` — Whether the search input should have autofocus
|
|
48
|
+
- **`customValueProps`** `Partial<CubeItemProps>` — Props to apply to existing custom values (already selected but not in predefined options)
|
|
49
|
+
- **`newCustomValueProps`** `Partial<CubeItemProps>` — Props to apply to new custom values appearing in search results (merged with `customValueProps`)
|
|
45
50
|
|
|
46
51
|
### Base Properties
|
|
47
52
|
|
|
@@ -100,6 +105,10 @@ Customizes section heading elements.
|
|
|
100
105
|
**Sub-elements:**
|
|
101
106
|
- Same as ListBox component sub-elements
|
|
102
107
|
|
|
108
|
+
#### listBoxStyles
|
|
109
|
+
|
|
110
|
+
Customizes the inner ListBox component.
|
|
111
|
+
|
|
103
112
|
#### headerStyles
|
|
104
113
|
|
|
105
114
|
Customizes the header area when header prop is provided.
|
|
@@ -116,7 +125,13 @@ Customizes the footer area when footer prop is provided.
|
|
|
116
125
|
|
|
117
126
|
### Style Properties
|
|
118
127
|
|
|
119
|
-
These properties allow direct style application without using the `styles` prop:
|
|
128
|
+
These properties allow direct style application without using the `styles` prop:
|
|
129
|
+
|
|
130
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
131
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
132
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
133
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
134
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
120
135
|
|
|
121
136
|
### Modifiers
|
|
122
137
|
|