@cube-dev/ui-kit 0.121.4 → 0.121.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +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 +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/Item/Item.js +2 -2
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +2 -2
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/intl.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +4 -4
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +2 -2
- package/dist/components/fields/TextInput/TextInputBase.js +14 -6
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +3 -3
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/EditableTitle.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/CloudLogo/CloudLogo.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransition.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +3 -2
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.d.ts +35 -0
- package/dist/tokens/typography.js +238 -0
- package/dist/tokens/typography.js.map +1 -0
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/BaseProperties.md +1 -1
- package/docs/Utilities.md +183 -0
- package/docs/components/Block.md +11 -0
- package/docs/components/CollectionItem.md +37 -8
- package/docs/components/GridProvider.md +15 -0
- package/docs/components/Root.md +8 -0
- package/docs/components/actions/Action.md +12 -0
- package/docs/components/actions/Banner.md +28 -2
- package/docs/components/actions/Button.md +10 -1
- package/docs/components/actions/ButtonGroup.md +11 -0
- package/docs/components/actions/ButtonSplit.md +11 -1
- package/docs/components/actions/CommandMenu.md +44 -17
- package/docs/components/actions/ItemButton.md +14 -37
- package/docs/components/actions/Link.md +9 -5
- package/docs/components/actions/Menu.md +11 -13
- package/docs/components/actions/MenuTrigger.md +17 -0
- package/docs/components/actions/SubMenuTrigger.md +17 -0
- package/docs/components/actions/use-anchored-menu.md +11 -0
- package/docs/components/actions/use-context-menu.md +11 -0
- package/docs/components/content/ActiveZone.md +18 -0
- package/docs/components/content/Alert.md +12 -0
- package/docs/components/content/Avatar.md +11 -0
- package/docs/components/content/Badge.md +20 -9
- package/docs/components/content/Card.md +11 -0
- package/docs/components/content/Content.md +12 -0
- package/docs/components/content/CopyPasteBlock.md +8 -0
- package/docs/components/content/CopySnippet.md +19 -5
- package/docs/components/content/Disclosure.md +5 -1
- package/docs/components/content/Divider.md +12 -0
- package/docs/components/content/Footer.md +12 -0
- package/docs/components/content/Header.md +12 -0
- package/docs/components/content/HotKeys.md +7 -14
- package/docs/components/content/ItemBadge.md +1 -0
- package/docs/components/content/ItemCard.md +20 -5
- package/docs/components/content/Layout.md +8 -1
- package/docs/components/content/Paragraph.md +20 -1
- package/docs/components/content/Placeholder.md +11 -0
- package/docs/components/content/Result.md +12 -0
- package/docs/components/content/Skeleton.md +15 -0
- package/docs/components/content/Tag.md +20 -9
- package/docs/components/content/Text.md +8 -0
- package/docs/components/content/TextItem.md +15 -9
- package/docs/components/content/Title.md +16 -0
- package/docs/components/fields/Checkbox.md +8 -3
- package/docs/components/fields/ComboBox.md +11 -5
- package/docs/components/fields/DatePicker.md +16 -15
- package/docs/components/fields/FileInput.md +13 -31
- package/docs/components/fields/FilterListBox.md +16 -1
- package/docs/components/fields/FilterPicker.md +34 -7
- package/docs/components/fields/HueSlider.md +16 -2
- package/docs/components/fields/ListBox.md +9 -1
- package/docs/components/fields/NumberInput.md +14 -6
- package/docs/components/fields/PasswordInput.md +10 -2
- package/docs/components/fields/Picker.md +29 -12
- package/docs/components/fields/RadioGroup.md +8 -1
- package/docs/components/fields/SearchInput.md +12 -2
- package/docs/components/fields/Select.md +14 -2
- package/docs/components/fields/Slider.md +34 -0
- package/docs/components/fields/Switch.md +3 -1
- package/docs/components/fields/TextArea.md +43 -0
- package/docs/components/fields/TextInput.md +10 -2
- package/docs/components/fields/TextInputMapper.md +30 -0
- package/docs/components/form/Field.md +9 -1
- package/docs/components/form/Form.md +9 -1
- package/docs/components/layout/Flex.md +11 -0
- package/docs/components/layout/Flow.md +11 -0
- package/docs/components/layout/Grid.md +11 -0
- package/docs/components/layout/Panel.md +11 -0
- package/docs/components/layout/Prefix.md +11 -0
- package/docs/components/layout/ResizablePanel.md +17 -0
- package/docs/components/layout/Space.md +11 -0
- package/docs/components/layout/Suffix.md +11 -0
- package/docs/components/navigation/Tabs.md +6 -1
- package/docs/components/organisms/FileTabs.md +12 -0
- package/docs/components/organisms/StatsCard.md +11 -0
- package/docs/components/other/CloudLogo.md +12 -0
- package/docs/components/overlays/AlertDialog.md +16 -0
- package/docs/components/overlays/Dialog.md +6 -3
- package/docs/components/overlays/DialogContainer.md +9 -0
- package/docs/components/overlays/DialogForm.md +29 -16
- package/docs/components/overlays/DialogTrigger.md +11 -0
- package/docs/components/overlays/Tooltip.md +27 -84
- package/docs/components/overlays/TooltipProvider.md +24 -4
- package/docs/components/overlays/TooltipTrigger.md +14 -0
- package/docs/components/portal/Portal.md +4 -0
- package/docs/components/status/LoadingAnimation.md +11 -0
- package/docs/components/status/Spin.md +11 -0
- package/docs/tasty/adoption.md +286 -0
- package/docs/tasty/comparison.md +413 -0
- package/docs/tasty/configuration.md +41 -10
- package/docs/tasty/debug.md +1 -1
- package/docs/tasty/design-system.md +401 -0
- package/docs/tasty/{usage.md → dsl.md} +254 -409
- package/docs/tasty/getting-started.md +201 -0
- package/docs/tasty/injector.md +2 -2
- package/docs/tasty/methodology.md +501 -0
- package/docs/tasty/runtime.md +291 -0
- package/docs/tasty/ssr.md +382 -0
- package/docs/tasty/styles.md +2 -2
- package/docs/tasty/tasty-static.md +58 -13
- package/package.json +8 -9
|
@@ -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
|
|
|
@@ -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
|
|