@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
|
@@ -55,9 +55,16 @@ A versatile selection component that combines a trigger button with a searchable
|
|
|
55
55
|
- **`htmlType`** `'button' | 'submit' | 'reset'` (default: `button`) — HTML button type
|
|
56
56
|
- **`headerStyles`** `Styles` — Custom styles for the header area when header prop is provided
|
|
57
57
|
- **`footerStyles`** `Styles` — Custom styles for the footer area when footer prop is provided
|
|
58
|
+
- **`shouldFlip`** `boolean` (default: `true`) — Whether to flip the popover placement when it overflows
|
|
59
|
+
- **`containerPadding`** `number` (default: `8`) — Minimum padding in pixels between the popover and viewport edges
|
|
60
|
+
- **`sortSelectedToTop`** `boolean` — Sort selected items to the top when the popover opens (only works with `items` prop, defaults to `true` when items are provided)
|
|
61
|
+
- **`searchValue`** `string` — Controlled search input value
|
|
62
|
+
- **`onSearchChange`** `(value: string) => void` — Callback when search input value changes
|
|
58
63
|
- **`onSelectionChange`** `(keys: Key | Key[] | 'all' | null) => void` — Callback when selection changes
|
|
59
64
|
- **`onEscape`** `() => void` — Callback when Escape key is pressed
|
|
60
65
|
- **`onOptionClick`** `(key: Key) => void` — Callback when an option is clicked (non-checkbox area)
|
|
66
|
+
- **`onClear`** `() => void` — Callback called when the clear button is pressed
|
|
67
|
+
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback called when the popover open state changes
|
|
61
68
|
|
|
62
69
|
### Base Properties
|
|
63
70
|
|
|
@@ -97,23 +104,43 @@ Customizes the popover dialog that contains the FilterListBox.
|
|
|
97
104
|
**Sub-elements:**
|
|
98
105
|
- Same as Dialog component sub-elements
|
|
99
106
|
|
|
107
|
+
#### searchInputStyles
|
|
108
|
+
|
|
109
|
+
Customizes the search input field within the FilterListBox.
|
|
110
|
+
|
|
111
|
+
#### listStyles
|
|
112
|
+
|
|
113
|
+
Customizes the list container element within the FilterListBox.
|
|
114
|
+
|
|
115
|
+
#### optionStyles
|
|
116
|
+
|
|
117
|
+
Customizes individual option elements within the FilterListBox.
|
|
118
|
+
|
|
119
|
+
#### sectionStyles
|
|
120
|
+
|
|
121
|
+
Customizes section wrapper elements within the FilterListBox.
|
|
122
|
+
|
|
123
|
+
#### headingStyles
|
|
124
|
+
|
|
125
|
+
Customizes section heading elements within the FilterListBox.
|
|
126
|
+
|
|
100
127
|
#### headerStyles
|
|
101
128
|
|
|
102
129
|
Customizes the header area when header prop is provided.
|
|
103
130
|
|
|
104
|
-
**Sub-elements:**
|
|
105
|
-
- None - styles apply directly to the header container
|
|
106
|
-
|
|
107
131
|
#### footerStyles
|
|
108
132
|
|
|
109
133
|
Customizes the footer area when footer prop is provided.
|
|
110
134
|
|
|
111
|
-
**Sub-elements:**
|
|
112
|
-
- None - styles apply directly to the footer container
|
|
113
|
-
|
|
114
135
|
### Style Properties
|
|
115
136
|
|
|
116
|
-
These properties allow direct style application without using the `styles` prop:
|
|
137
|
+
These properties allow direct style application without using the `styles` prop:
|
|
138
|
+
|
|
139
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
140
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
141
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
142
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
143
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
117
144
|
|
|
118
145
|
### Modifiers
|
|
119
146
|
|
|
@@ -19,12 +19,14 @@ The HueSlider component allows users to select a hue value (0-359 degrees) from
|
|
|
19
19
|
- **`value`** `number` — The hue value in controlled mode (0-359)
|
|
20
20
|
- **`defaultValue`** `number` (default: `0`) — The default hue value in uncontrolled mode (0-359)
|
|
21
21
|
- **`orientation`** `'horizontal' | 'vertical'` (default: `horizontal`) — The orientation of the slider
|
|
22
|
+
- **`gradation`** `string[]` — Labels to display at gradation marks along the slider track
|
|
23
|
+
- **`formatOptions`** `Intl.NumberFormatOptions` — Options for formatting the displayed value label
|
|
24
|
+
- **`inputWidth`** `string` — Width of the slider input area
|
|
22
25
|
- **`showValueLabel`** `boolean` (default: `true`) — Whether to show the current value label
|
|
23
26
|
- **`getValueLabel`** — Function to format the value label
|
|
24
27
|
- **`onChange`** `function` — Callback fired when the hue value changes
|
|
25
28
|
- **`onChangeEnd`** `function` — Callback fired when the slider interaction ends
|
|
26
29
|
- **`labelPosition`** `'top' | 'side'` (default: `top`) — The position of the label relative to the input
|
|
27
|
-
- **`styles`** `object` — Custom styles object for styling the component and sub-elements
|
|
28
30
|
|
|
29
31
|
### Base Properties
|
|
30
32
|
|
|
@@ -46,6 +48,10 @@ Customizes the root element of the component.
|
|
|
46
48
|
- `SliderTrackContainer` - The track background with rainbow gradient
|
|
47
49
|
- `SliderThumb` - The draggable thumb element (colored to match current hue)
|
|
48
50
|
|
|
51
|
+
#### inputStyles
|
|
52
|
+
|
|
53
|
+
Customizes the slider input element.
|
|
54
|
+
|
|
49
55
|
#### trackStyles
|
|
50
56
|
|
|
51
57
|
Customizes the track element. The default displays a rainbow gradient.
|
|
@@ -54,9 +60,17 @@ Customizes the track element. The default displays a rainbow gradient.
|
|
|
54
60
|
|
|
55
61
|
Customizes the thumb element. The default fills with the current hue color.
|
|
56
62
|
|
|
63
|
+
#### thumbTokens
|
|
64
|
+
|
|
65
|
+
Custom tokens for the thumb element (e.g., `#slider-thumb` for fill color). The HueSlider sets these automatically to match the selected hue.
|
|
66
|
+
|
|
57
67
|
### Style Properties
|
|
58
68
|
|
|
59
|
-
These properties allow direct style application without using the `styles` prop:
|
|
69
|
+
These properties allow direct style application without using the `styles` prop:
|
|
70
|
+
|
|
71
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
72
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
73
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
60
74
|
|
|
61
75
|
### Modifiers
|
|
62
76
|
|
|
@@ -44,6 +44,8 @@ A versatile list selection component that allows users to select one or more ite
|
|
|
44
44
|
- **`onSelectionChange`** `(keys: Key | Key[] | 'all' | null) => void` — Callback when selection changes
|
|
45
45
|
- **`onEscape`** `() => void` — Callback when Escape key is pressed
|
|
46
46
|
- **`onOptionClick`** `(key: Key) => void` — Callback when an option is clicked (non-checkbox area)
|
|
47
|
+
- **`items`** `Iterable<T>` — Array of items for dynamic content with render function pattern
|
|
48
|
+
- **`disableSelectionToggle`** `boolean` (default: `false`) — When true, clicking an already-selected item keeps it selected instead of toggling it off
|
|
47
49
|
|
|
48
50
|
### Base Properties
|
|
49
51
|
|
|
@@ -95,7 +97,13 @@ Customizes the footer area when footer prop is provided.
|
|
|
95
97
|
|
|
96
98
|
### Style Properties
|
|
97
99
|
|
|
98
|
-
These properties allow direct style application without using the `styles` prop:
|
|
100
|
+
These properties allow direct style application without using the `styles` prop:
|
|
101
|
+
|
|
102
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
103
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
104
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
105
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
106
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
99
107
|
|
|
100
108
|
### Modifiers
|
|
101
109
|
|
|
@@ -19,13 +19,21 @@ A number input component that allows users to enter numeric values and increment
|
|
|
19
19
|
- **`value`** `number` — The numeric value in controlled mode
|
|
20
20
|
- **`defaultValue`** `number` — The default numeric value in uncontrolled mode
|
|
21
21
|
- **`placeholder`** `string` — Placeholder text when input is empty
|
|
22
|
+
- **`icon`** `ReactElement` — Icon element rendered before the input
|
|
22
23
|
- **`prefix`** — Input decoration before the main input
|
|
23
24
|
- **`suffix`** — Input decoration after the main input
|
|
25
|
+
- **`suffixPosition`** `'before' | 'after'` (default: `before`) — Position of suffix relative to validation/loading icons
|
|
24
26
|
- **`hideStepper`** `boolean` (default: `false`) — Whether to hide the stepper buttons
|
|
25
27
|
- **`minValue`** `number` — Minimum allowed value
|
|
26
28
|
- **`maxValue`** `number` — Maximum allowed value
|
|
27
29
|
- **`step`** `number` — Amount to increment or decrement the value
|
|
30
|
+
- **`formatOptions`** `Intl.NumberFormatOptions` — Options for formatting the displayed number value
|
|
28
31
|
- **`size`** `'small' | 'medium' | 'large'` (default: `medium`) — Input size
|
|
32
|
+
- **`isWheelDisabled`** `boolean` — Whether scrolling the mouse wheel changes the value
|
|
33
|
+
- **`decrementAriaLabel`** `string` — Custom aria-label for the decrement button
|
|
34
|
+
- **`incrementAriaLabel`** `string` — Custom aria-label for the increment button
|
|
35
|
+
- **`inputProps`** `Props` — Direct props passed to the native input element
|
|
36
|
+
- **`wrapperProps`** `Props` — Direct props passed to the input wrapper element
|
|
29
37
|
- **`onChange`** `function` — Callback fired when the input value changes
|
|
30
38
|
- **`onBlur`** `function` — Callback fired when the input loses focus
|
|
31
39
|
- **`onFocus`** `function` — Callback fired when the input receives focus
|
|
@@ -56,15 +64,15 @@ Customizes the root element of the component.
|
|
|
56
64
|
|
|
57
65
|
Customizes the input element itself.
|
|
58
66
|
|
|
59
|
-
#### wrapperStyles
|
|
60
|
-
|
|
61
|
-
Customizes the input wrapper container.
|
|
62
|
-
|
|
63
67
|
### Style Properties
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
These properties allow direct style application without using the `styles` prop:
|
|
66
70
|
|
|
67
|
-
`display`, `font`, `preset`, `hide`, `
|
|
71
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
72
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
73
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
74
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
75
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
68
76
|
|
|
69
77
|
### Modifiers
|
|
70
78
|
|
|
@@ -22,7 +22,11 @@ A password input is a specialized text field that masks user input to protect se
|
|
|
22
22
|
- **`icon`** — Icon element rendered before the input
|
|
23
23
|
- **`prefix`** — Input decoration before the main input
|
|
24
24
|
- **`suffix`** — Input decoration after the main input (before toggle button)
|
|
25
|
+
- **`suffixPosition`** `'before' | 'after'` (default: `after`) — Position of suffix relative to validation/loading icons
|
|
25
26
|
- **`size`** `'small' | 'medium' | 'large'` (default: `medium`) — Input size
|
|
27
|
+
- **`autocomplete`** `string` — HTML autocomplete attribute for browser autofill behavior
|
|
28
|
+
- **`inputProps`** `Props` — Direct props passed to the native input element
|
|
29
|
+
- **`wrapperProps`** `Props` — Direct props passed to the input wrapper element
|
|
26
30
|
- **`onChange`** `function` — Callback fired when the input value changes
|
|
27
31
|
- **`onBlur`** `function` — Callback fired when the input loses focus
|
|
28
32
|
- **`onFocus`** `function` — Callback fired when the input receives focus
|
|
@@ -54,9 +58,13 @@ Customizes the password input field specifically.
|
|
|
54
58
|
|
|
55
59
|
### Style Properties
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
These properties allow direct style application without using the `styles` prop:
|
|
58
62
|
|
|
59
|
-
`display`, `font`, `preset`, `hide`, `
|
|
63
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
64
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
65
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
66
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
67
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
60
68
|
|
|
61
69
|
### Modifiers
|
|
62
70
|
|
|
@@ -53,6 +53,10 @@ A versatile selection component that combines a trigger button with a dropdown l
|
|
|
53
53
|
- **`shouldFlip`** `boolean` — Whether to flip the popover placement when it overflows
|
|
54
54
|
- **`containerPadding`** `number` — Minimum padding between the popover and viewport edges
|
|
55
55
|
- **`onSelectionChange`** `(keys: Key | Key[] | 'all' | null) => void` — Callback when selection changes
|
|
56
|
+
- **`onClear`** `() => void` — Callback called when the clear button is pressed
|
|
57
|
+
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback called when the popover open state changes
|
|
58
|
+
- **`filter`** `((textValue: string, inputValue: string) => boolean) | false` — Custom filter function for items. Pass `false` to disable filtering.
|
|
59
|
+
- **`emptyLabel`** `ReactNode` — Content shown when no items match the filter or the collection is empty
|
|
56
60
|
|
|
57
61
|
### Base Properties
|
|
58
62
|
|
|
@@ -96,23 +100,39 @@ Customizes the popover Dialog that contains the ListBox. See [Dialog documentati
|
|
|
96
100
|
**Sub-elements:**
|
|
97
101
|
- None for Dialog in popover mode
|
|
98
102
|
|
|
103
|
+
#### listStyles
|
|
104
|
+
|
|
105
|
+
Customizes the list container element within the ListBox.
|
|
106
|
+
|
|
107
|
+
#### optionStyles
|
|
108
|
+
|
|
109
|
+
Customizes individual option elements within the ListBox.
|
|
110
|
+
|
|
111
|
+
#### sectionStyles
|
|
112
|
+
|
|
113
|
+
Customizes section wrapper elements within the ListBox.
|
|
114
|
+
|
|
115
|
+
#### headingStyles
|
|
116
|
+
|
|
117
|
+
Customizes section heading elements within the ListBox.
|
|
118
|
+
|
|
99
119
|
#### headerStyles
|
|
100
120
|
|
|
101
121
|
Customizes the header area when `header` prop is provided.
|
|
102
122
|
|
|
103
|
-
**Sub-elements:**
|
|
104
|
-
- None
|
|
105
|
-
|
|
106
123
|
#### footerStyles
|
|
107
124
|
|
|
108
125
|
Customizes the footer area when `footer` prop is provided.
|
|
109
126
|
|
|
110
|
-
**Sub-elements:**
|
|
111
|
-
- None
|
|
112
|
-
|
|
113
127
|
### Style Properties
|
|
114
128
|
|
|
115
|
-
These properties allow direct style application without using the `styles` prop:
|
|
129
|
+
These properties allow direct style application without using the `styles` prop:
|
|
130
|
+
|
|
131
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
132
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
133
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
134
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
135
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
116
136
|
|
|
117
137
|
### Modifiers
|
|
118
138
|
|
|
@@ -524,12 +544,9 @@ The component automatically manages ARIA attributes:
|
|
|
524
544
|
|
|
525
545
|
- **`aria-label`** — Labels the trigger when no visible label exists
|
|
526
546
|
- **`aria-labelledby`** — Associates the label with the trigger
|
|
527
|
-
- **`aria-expanded`** — Indicates whether the popover is open (true/false)
|
|
528
|
-
- **`aria-haspopup`** — Indicates the button controls a listbox (listbox)
|
|
529
547
|
- **`aria-describedby`** — Associates help text and error messages
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
- **`aria-disabled`** — Indicates disabled state
|
|
548
|
+
|
|
549
|
+
The following ARIA attributes are automatically managed by React Aria and do not need to be set manually: `aria-expanded`, `aria-haspopup`, `aria-invalid`, `aria-required`, `aria-disabled`.
|
|
533
550
|
|
|
534
551
|
### Best Practices for Accessibility
|
|
535
552
|
|
|
@@ -51,7 +51,14 @@ Customizes the radio group container specifically.
|
|
|
51
51
|
|
|
52
52
|
### Style Properties
|
|
53
53
|
|
|
54
|
-
These properties allow direct style application without using the `styles` prop:
|
|
54
|
+
These properties allow direct style application without using the `styles` prop:
|
|
55
|
+
|
|
56
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
57
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
58
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
59
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
60
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
61
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
55
62
|
|
|
56
63
|
### Modifiers
|
|
57
64
|
|
|
@@ -19,9 +19,15 @@ A search input provides a specialized text field for search functionality, featu
|
|
|
19
19
|
- **`value`** `string` — The search value in controlled mode
|
|
20
20
|
- **`defaultValue`** `string` — The default search value in uncontrolled mode
|
|
21
21
|
- **`placeholder`** `string` — Placeholder text when input is empty
|
|
22
|
+
- **`icon`** `ReactElement` — Icon element rendered before the input (default: search icon)
|
|
23
|
+
- **`prefix`** `ReactNode` — Content rendered before the input
|
|
22
24
|
- **`suffix`** — Input decoration after the main input (before clear button)
|
|
25
|
+
- **`suffixPosition`** `'before' | 'after'` (default: `after`) — Position of suffix relative to validation/loading state icons
|
|
23
26
|
- **`isClearable`** `boolean` (default: `false`) — Whether the search input shows a clear button
|
|
24
27
|
- **`size`** `'small' | 'medium' | 'large'` (default: `medium`) — Input size
|
|
28
|
+
- **`autocomplete`** `string` — HTML autocomplete attribute for browser autofill behavior
|
|
29
|
+
- **`inputProps`** `Props` — Direct props passed to the native input element
|
|
30
|
+
- **`wrapperProps`** `Props` — Direct props passed to the input wrapper element
|
|
25
31
|
- **`onChange`** `function` — Callback fired when the search value changes
|
|
26
32
|
- **`onSubmit`** `function` — Callback fired when search is submitted
|
|
27
33
|
- **`onClear`** `function` — Callback fired when search is cleared
|
|
@@ -55,9 +61,13 @@ Customizes the search input field specifically.
|
|
|
55
61
|
|
|
56
62
|
### Style Properties
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
These properties allow direct style application without using the `styles` prop:
|
|
59
65
|
|
|
60
|
-
`display`, `font`, `preset`, `hide`, `
|
|
66
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
67
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
68
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
69
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
70
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
61
71
|
|
|
62
72
|
### Modifiers
|
|
63
73
|
|
|
@@ -45,9 +45,15 @@ A select allows users to choose a single option from a list of predefined choice
|
|
|
45
45
|
- **`listBoxStyles`** `Styles` — Styles for the dropdown list container
|
|
46
46
|
- **`optionStyles`** `Styles` — Styles for individual option items
|
|
47
47
|
- **`overlayStyles`** `Styles` — Styles for the dropdown overlay wrapper
|
|
48
|
-
- **`wrapperStyles`** `Styles` — Styles for the outer wrapper element
|
|
49
48
|
- **`triggerStyles`** `Styles` — Styles for the trigger button element
|
|
50
49
|
- **`inputProps`** `Props` — Additional props for the input element
|
|
50
|
+
- **`triggerDescription`** `ReactNode` — Description text displayed within the trigger button (different from field-level description)
|
|
51
|
+
- **`descriptionPlacement`** `'inline' | 'block'` — Controls how the trigger description is positioned
|
|
52
|
+
- **`hotkeys`** `string` — Keyboard shortcut that triggers the select when pressed
|
|
53
|
+
- **`containerPadding`** `number` (default: `8`) — Minimum padding in pixels between the popover and viewport edges
|
|
54
|
+
- **`isOpen`** `boolean` — Whether the dropdown is open (controlled)
|
|
55
|
+
- **`defaultOpen`** `boolean` — Whether the dropdown is open by default (uncontrolled)
|
|
56
|
+
- **`selectionMode`** `'single'` — Selection mode for the select
|
|
51
57
|
- **`onSelectionChange`** `(key: Key) => void` — Callback fired when the selected option changes
|
|
52
58
|
- **`onOpenChange`** `(isOpen: boolean) => void` — Callback fired when the dropdown opens or closes
|
|
53
59
|
- **`onFocus`** `(e: FocusEvent) => void` — Callback fired when the select receives focus
|
|
@@ -129,7 +135,13 @@ Customizes individual option items in the dropdown.
|
|
|
129
135
|
|
|
130
136
|
### Style Properties
|
|
131
137
|
|
|
132
|
-
These properties allow direct style application without using the `styles` prop:
|
|
138
|
+
These properties allow direct style application without using the `styles` prop:
|
|
139
|
+
|
|
140
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
141
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
142
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
143
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
144
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
133
145
|
|
|
134
146
|
### Modifiers
|
|
135
147
|
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
The Slider component allows users to select a numeric value from a range by dragging a thumb along a track. It provides an intuitive way to input values that fall within a specific range.
|
|
6
6
|
|
|
7
|
+
### Style Properties
|
|
8
|
+
|
|
9
|
+
These properties allow direct style application without using the `styles` prop:
|
|
10
|
+
|
|
11
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
12
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
13
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`
|
|
14
|
+
|
|
7
15
|
## Examples
|
|
8
16
|
|
|
9
17
|
### With Label
|
|
@@ -18,6 +26,32 @@ The Slider component allows users to select a numeric value from a range by drag
|
|
|
18
26
|
|
|
19
27
|
## Properties
|
|
20
28
|
|
|
29
|
+
- **`value`** `number` — The current value in controlled mode
|
|
30
|
+
- **`defaultValue`** `number` — The default value in uncontrolled mode
|
|
31
|
+
- **`minValue`** `number` (default: `0`) — The minimum allowed value
|
|
32
|
+
- **`maxValue`** `number` (default: `100`) — The maximum allowed value
|
|
33
|
+
- **`step`** `number` (default: `1`) — The step increment between values
|
|
34
|
+
- **`orientation`** `'horizontal' | 'vertical'` (default: `'horizontal'`) — The orientation of the slider
|
|
35
|
+
- **`gradation`** `string[]` — Labels for gradation marks along the track
|
|
36
|
+
- **`showValueLabel`** `boolean` — Whether the value label is displayed (defaults to `true` when `label` is present)
|
|
37
|
+
- **`getValueLabel`** `(value: number) => string` — Custom function to format the value label
|
|
38
|
+
- **`formatOptions`** `Intl.NumberFormatOptions` — Number format options for the value label display
|
|
39
|
+
- **`inputWidth`** `string` — Width of the input area
|
|
40
|
+
- **`trackStyles`** `Styles` — Custom styles for the track element
|
|
41
|
+
- **`thumbStyles`** `Styles` — Custom styles for the thumb element
|
|
42
|
+
- **`thumbTokens`** `Tokens` — Custom tokens for the thumb element (e.g., `#slider-thumb` for fill color)
|
|
43
|
+
- **`inputStyles`** `Styles` — Custom styles for the input element
|
|
44
|
+
- **`onChange`** `(value: number) => void` — Callback fired when the value changes during drag
|
|
45
|
+
- **`onChangeEnd`** `(value: number) => void` — Callback fired when the value changes on drag end
|
|
46
|
+
|
|
47
|
+
### Base Properties
|
|
48
|
+
|
|
49
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
50
|
+
|
|
51
|
+
### Field Properties
|
|
52
|
+
|
|
53
|
+
Supports all [Field properties](../../FieldProperties.md)
|
|
54
|
+
|
|
21
55
|
## Sub-elements
|
|
22
56
|
|
|
23
57
|
The Slider component renders the following sub-elements that can be customized via the `styles` prop:
|
|
@@ -53,7 +53,9 @@ Customizes the field wrapper element when the switch is used with labels or vali
|
|
|
53
53
|
|
|
54
54
|
These properties allow direct style application without using the `styles` prop:
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
57
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
58
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
57
59
|
|
|
58
60
|
### Modifiers
|
|
59
61
|
|
|
@@ -14,6 +14,16 @@ The TextArea component is a multi-line text input that allows users to enter and
|
|
|
14
14
|
|
|
15
15
|
### Auto Size with Max Rows
|
|
16
16
|
|
|
17
|
+
### Style Properties
|
|
18
|
+
|
|
19
|
+
These properties allow direct style application without using the `styles` prop:
|
|
20
|
+
|
|
21
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
22
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
23
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
24
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
25
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
26
|
+
|
|
17
27
|
## Variants
|
|
18
28
|
|
|
19
29
|
### Sizes
|
|
@@ -24,6 +34,39 @@ The TextArea component is a multi-line text input that allows users to enter and
|
|
|
24
34
|
|
|
25
35
|
## Properties
|
|
26
36
|
|
|
37
|
+
- **`autoSize`** `boolean` (default: `false`) — Whether the textarea should automatically resize based on content
|
|
38
|
+
- **`maxRows`** `number` (default: `10`) — Maximum number of visible rows when `autoSize` is enabled
|
|
39
|
+
- **`rows`** `number` (default: `3`) — Number of visible text rows
|
|
40
|
+
- **`value`** `string` — The text value in controlled mode
|
|
41
|
+
- **`defaultValue`** `string` — The default text value in uncontrolled mode
|
|
42
|
+
- **`placeholder`** `string` — Placeholder text when input is empty
|
|
43
|
+
- **`icon`** `ReactElement` — Icon element rendered before the input
|
|
44
|
+
- **`prefix`** `ReactNode` — Input decoration before the main input
|
|
45
|
+
- **`suffix`** `ReactNode` — Input decoration after the main input
|
|
46
|
+
- **`suffixPosition`** `'before' | 'after'` (default: `'before'`) — Position of suffix relative to validation/loading state icons
|
|
47
|
+
- **`resize`** `string` — CSS resize value (e.g. `'vertical'`, `'none'`)
|
|
48
|
+
- **`size`** `'small' | 'medium' | 'large'` (default: `'medium'`) — Input size
|
|
49
|
+
- **`autocomplete`** `string` — Browser autocomplete attribute value
|
|
50
|
+
- **`maxLength`** `number` — Maximum number of characters allowed
|
|
51
|
+
- **`minLength`** `number` — Minimum number of characters required
|
|
52
|
+
- **`inputProps`** `Props` — Direct HTML props passed to the inner textarea element
|
|
53
|
+
- **`wrapperProps`** `Props` — Additional HTML props passed to the input wrapper container
|
|
54
|
+
- **`inputRef`** `RefObject<HTMLTextAreaElement>` — Ref to the inner textarea element
|
|
55
|
+
- **`wrapperRef`** `RefObject<HTMLDivElement>` — Ref to the input wrapper container
|
|
56
|
+
- **`loadingIndicator`** `ReactNode` — Custom loading indicator element
|
|
57
|
+
- **`inputStyles`** `Styles` — Custom styles for the textarea element
|
|
58
|
+
- **`onChange`** `function` — Callback fired when the input value changes
|
|
59
|
+
- **`onBlur`** `function` — Callback fired when the input loses focus
|
|
60
|
+
- **`onFocus`** `function` — Callback fired when the input receives focus
|
|
61
|
+
|
|
62
|
+
### Base Properties
|
|
63
|
+
|
|
64
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
65
|
+
|
|
66
|
+
### Field Properties
|
|
67
|
+
|
|
68
|
+
Supports all [Field properties](../../FieldProperties.md)
|
|
69
|
+
|
|
27
70
|
## Sub-elements
|
|
28
71
|
|
|
29
72
|
The TextArea component renders the following sub-elements that can be customized via the `styles` prop:
|
|
@@ -31,6 +31,10 @@ A text input component that allows users to input custom text entries with a key
|
|
|
31
31
|
- **`autocomplete`** `string` — Browser autocomplete attribute value
|
|
32
32
|
- **`maxLength`** `number` — Maximum number of characters allowed
|
|
33
33
|
- **`minLength`** `number` — Minimum number of characters required
|
|
34
|
+
- **`inputProps`** `Props` — Direct HTML props passed to the inner input element
|
|
35
|
+
- **`inputRef`** `RefObject<HTMLInputElement | HTMLTextAreaElement>` — Ref to the inner input element
|
|
36
|
+
- **`wrapperRef`** `RefObject<HTMLDivElement>` — Ref to the input wrapper container
|
|
37
|
+
- **`loadingIndicator`** `ReactNode` — Custom loading indicator element
|
|
34
38
|
- **`onChange`** `function` — Callback fired when the input value changes
|
|
35
39
|
- **`onBlur`** `function` — Callback fired when the input loses focus
|
|
36
40
|
- **`onFocus`** `function` — Callback fired when the input receives focus
|
|
@@ -67,9 +71,13 @@ Additional HTML props passed to the input wrapper container.
|
|
|
67
71
|
|
|
68
72
|
### Style Properties
|
|
69
73
|
|
|
70
|
-
|
|
74
|
+
These properties allow direct style application without using the `styles` prop:
|
|
71
75
|
|
|
72
|
-
`display`, `font`, `preset`, `hide`, `
|
|
76
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
77
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
78
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
79
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
80
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
73
81
|
|
|
74
82
|
### Modifiers
|
|
75
83
|
|
|
@@ -4,6 +4,24 @@ The TextInputMapper component allows users to create and manage key-value pairs
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
+
- **`value`** `Record<string, string>` — The key-value pairs in controlled mode
|
|
8
|
+
- **`onChange`** `(value: Record<string, string> | undefined) => void` — Callback fired when mappings change
|
|
9
|
+
- **`actionLabel`** `string` (default: `'Mapping'`) — Label text for the add mapping button
|
|
10
|
+
- **`KeyComponent`** `ComponentType` — Custom component for rendering key inputs
|
|
11
|
+
- **`ValueComponent`** `ComponentType` — Custom component for rendering value inputs
|
|
12
|
+
- **`keyProps`** `Partial<CubeTextInputMapperInputProps>` — Additional props passed to each key input
|
|
13
|
+
- **`valueProps`** `Partial<CubeTextInputMapperInputProps>` — Additional props passed to each value input
|
|
14
|
+
- **`allowsCustomValue`** `boolean` — Whether custom (free-form) values are allowed in combobox inputs
|
|
15
|
+
- **`size`** `'small' | 'medium' | 'large'` (default: `'medium'`) — Size of the input fields and buttons
|
|
16
|
+
|
|
17
|
+
### Base Properties
|
|
18
|
+
|
|
19
|
+
Supports [Base properties](../../BaseProperties.md)
|
|
20
|
+
|
|
21
|
+
### Field Properties
|
|
22
|
+
|
|
23
|
+
Supports all [Field properties](../../FieldProperties.md)
|
|
24
|
+
|
|
7
25
|
## Sub-elements
|
|
8
26
|
|
|
9
27
|
The TextInputMapper component is a complex compound component that doesn't expose styled sub-elements via the `styles` prop. Instead, it uses internal layout components and delegates styling to its key and value input components.
|
|
@@ -32,3 +50,15 @@ The TextInputMapper component follows WAI-ARIA guidelines:
|
|
|
32
50
|
- Set appropriate validation on both key and value inputs
|
|
33
51
|
- Use `allowsCustomValue` when users need flexibility in value selection
|
|
34
52
|
- Provide clear feedback when validation fails on individual pairs
|
|
53
|
+
|
|
54
|
+
### Style Properties
|
|
55
|
+
|
|
56
|
+
These properties allow direct style application without using the `styles` prop:
|
|
57
|
+
|
|
58
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
59
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
60
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
61
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
62
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
63
|
+
- **Text:** `textTransform`, `fontWeight`, `fontStyle`
|
|
64
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
@@ -59,7 +59,14 @@ Customizes the field label specifically.
|
|
|
59
59
|
|
|
60
60
|
### Style Properties
|
|
61
61
|
|
|
62
|
-
These properties allow direct style application without using the `styles` prop:
|
|
62
|
+
These properties allow direct style application without using the `styles` prop:
|
|
63
|
+
|
|
64
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
65
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
66
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
67
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
68
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
69
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
63
70
|
|
|
64
71
|
### Field Properties
|
|
65
72
|
|
|
@@ -85,6 +92,7 @@ These properties allow direct style application without using the `styles` prop:
|
|
|
85
92
|
- **`isRequired`** `boolean` — Whether the field is required
|
|
86
93
|
- **`isDisabled`** `boolean` — Whether the field is disabled
|
|
87
94
|
- **`isLoading`** `boolean` — Whether the field is in loading state
|
|
95
|
+
- **`isReadOnly`** `boolean` — Whether the field is read-only
|
|
88
96
|
- **`isHidden`** `boolean` — Whether the field is hidden
|
|
89
97
|
- **`validationState`** `'valid' | 'invalid'` — Validation state of the field
|
|
90
98
|
|
|
@@ -34,6 +34,7 @@ These properties are inherited by all input components within the form:
|
|
|
34
34
|
- **`labelStyles`** `Styles` — Styles applied to field labels
|
|
35
35
|
- **`requiredMark`** `boolean` (default: `true`) — Whether to show required field indicators
|
|
36
36
|
- **`necessityIndicator`** `'icon' | 'label'` (default: `icon`) — Type of necessity indicator
|
|
37
|
+
- **`necessityLabel`** `ReactNode` — Custom label to replace the default necessity indicator text
|
|
37
38
|
- **`isReadOnly`** `boolean` (default: `false`) — Whether fields are read-only by default
|
|
38
39
|
- **`validationState`** `'valid' | 'invalid'` — Validation state for all fields
|
|
39
40
|
- **`validateTrigger`** `'onBlur' | 'onChange' | 'onSubmit'` (default: `onBlur`) — When to trigger validation
|
|
@@ -61,7 +62,14 @@ The Form component does not expose styled sub-elements via the `styles` prop. It
|
|
|
61
62
|
|
|
62
63
|
### Style Properties
|
|
63
64
|
|
|
64
|
-
These properties allow direct style application without using the `styles` prop:
|
|
65
|
+
These properties allow direct style application without using the `styles` prop:
|
|
66
|
+
|
|
67
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
68
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
69
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
70
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
71
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
72
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
65
73
|
|
|
66
74
|
### Modifiers
|
|
67
75
|
|
|
@@ -21,6 +21,17 @@ No component-specific props. Use style props directly.
|
|
|
21
21
|
|
|
22
22
|
Supports [Base properties](../../BaseProperties.md).
|
|
23
23
|
|
|
24
|
+
### Style Properties
|
|
25
|
+
|
|
26
|
+
These properties allow direct style application without using the `styles` prop:
|
|
27
|
+
|
|
28
|
+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
29
|
+
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`
|
|
30
|
+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
31
|
+
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
32
|
+
- **Color:** `color`, `fill`, `fade`, `image`
|
|
33
|
+
- **Flow:** `flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
34
|
+
|
|
24
35
|
## Examples
|
|
25
36
|
|
|
26
37
|
### Row with gap
|