@choco-vanille/ui 1.5.0 → 1.5.2
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/components/_common/rotating-chevron/styles/RotatingChevron.css.cjs +1 -1
- package/dist/components/_common/rotating-chevron/styles/RotatingChevron.css.js +1 -1
- package/dist/components/actions/_shared/buttons/styles/buttonShared.css.cjs +1 -1
- package/dist/components/actions/_shared/buttons/styles/buttonShared.css.js +1 -1
- package/dist/components/actions/button/styles/Button.css.cjs +1 -1
- package/dist/components/actions/button/styles/Button.css.js +1 -1
- package/dist/components/actions/icon-button/styles/IconButton.css.cjs +1 -1
- package/dist/components/actions/icon-button/styles/IconButton.css.js +1 -1
- package/dist/components/actions/toggle/styles/Toggle.css.cjs +1 -1
- package/dist/components/actions/toggle/styles/Toggle.css.js +1 -1
- package/dist/components/actions/toggle-group/styles/ToggleGroup.css.cjs +1 -1
- package/dist/components/actions/toggle-group/styles/ToggleGroup.css.js +1 -1
- package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.cjs +1 -1
- package/dist/components/data-display/avatar/components/avatar-fallback/AvatarFallback.js +1 -1
- package/dist/components/data-display/avatar/components/avatar-fallback/styles/AvatarFallback.css.cjs +1 -1
- package/dist/components/data-display/avatar/components/avatar-fallback/styles/AvatarFallback.css.js +1 -1
- package/dist/components/data-display/avatar/components/avatar-image/styles/AvatarImage.css.cjs +1 -1
- package/dist/components/data-display/avatar/components/avatar-image/styles/AvatarImage.css.js +1 -1
- package/dist/components/data-display/avatar/components/avatar-root/styles/AvatarRoot.css.cjs +1 -1
- package/dist/components/data-display/avatar/components/avatar-root/styles/AvatarRoot.css.js +1 -1
- package/dist/components/data-display/avatar/components/avatar-status/styles/AvatarStatus.css.cjs +1 -1
- package/dist/components/data-display/avatar/components/avatar-status/styles/AvatarStatus.css.js +1 -1
- package/dist/components/data-display/badge/styles/Badge.css.cjs +1 -1
- package/dist/components/data-display/badge/styles/Badge.css.js +1 -1
- package/dist/components/data-display/rich-text-renderer/styles/RichTextRenderer.css.cjs +1 -1
- package/dist/components/data-display/rich-text-renderer/styles/RichTextRenderer.css.js +1 -1
- package/dist/components/data-display/table/components/table-body/styles/TableBody.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-body/styles/TableBody.css.js +1 -1
- package/dist/components/data-display/table/components/table-caption/styles/TableCaption.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-caption/styles/TableCaption.css.js +1 -1
- package/dist/components/data-display/table/components/table-cell/styles/TableCell.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-cell/styles/TableCell.css.js +1 -1
- package/dist/components/data-display/table/components/table-footer/styles/TableFooter.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-footer/styles/TableFooter.css.js +1 -1
- package/dist/components/data-display/table/components/table-head/styles/TableHead.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-head/styles/TableHead.css.js +1 -1
- package/dist/components/data-display/table/components/table-header/styles/TableHeader.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-header/styles/TableHeader.css.js +1 -1
- package/dist/components/data-display/table/components/table-row/styles/TableRow.css.cjs +1 -1
- package/dist/components/data-display/table/components/table-row/styles/TableRow.css.js +1 -1
- package/dist/components/data-display/table/styles/Table.css.cjs +1 -1
- package/dist/components/data-display/table/styles/Table.css.js +1 -1
- package/dist/components/feedback/callout/components/callout-icon/styles/CalloutIcon.css.cjs +1 -1
- package/dist/components/feedback/callout/components/callout-icon/styles/CalloutIcon.css.js +1 -1
- package/dist/components/feedback/callout/styles/Callout.css.cjs +1 -1
- package/dist/components/feedback/callout/styles/Callout.css.js +1 -1
- package/dist/components/feedback/empty-state/styles/EmptyState.css.cjs +1 -1
- package/dist/components/feedback/empty-state/styles/EmptyState.css.js +1 -1
- package/dist/components/feedback/progress/styles/Progress.css.cjs +1 -1
- package/dist/components/feedback/progress/styles/Progress.css.js +1 -1
- package/dist/components/feedback/skeleton/styles/Skeleton.css.cjs +1 -1
- package/dist/components/feedback/skeleton/styles/Skeleton.css.js +1 -1
- package/dist/components/feedback/spinner/styles/Spinner.css.cjs +1 -1
- package/dist/components/feedback/spinner/styles/Spinner.css.js +1 -1
- package/dist/components/feedback/toast/components/toast-actions/styles/ToastActions.css.cjs +1 -1
- package/dist/components/feedback/toast/components/toast-actions/styles/ToastActions.css.js +1 -1
- package/dist/components/feedback/toast/components/toast-close/styles/ToastClose.css.cjs +1 -1
- package/dist/components/feedback/toast/components/toast-close/styles/ToastClose.css.js +1 -1
- package/dist/components/feedback/toast/components/toast-description/styles/ToastDescription.css.cjs +1 -1
- package/dist/components/feedback/toast/components/toast-description/styles/ToastDescription.css.js +1 -1
- package/dist/components/feedback/toast/components/toast-title/styles/ToastTitle.css.cjs +1 -1
- package/dist/components/feedback/toast/components/toast-title/styles/ToastTitle.css.js +1 -1
- package/dist/components/feedback/toast/styles/Toast.css.cjs +1 -1
- package/dist/components/feedback/toast/styles/Toast.css.js +1 -1
- package/dist/components/forms/_shared/components/helper-text/HelperText.css.cjs +1 -1
- package/dist/components/forms/_shared/components/helper-text/HelperText.css.js +1 -1
- package/dist/components/forms/_shared/styles/checkboxVisual.css.cjs +1 -1
- package/dist/components/forms/_shared/styles/checkboxVisual.css.js +1 -1
- package/dist/components/forms/_shared/styles/radioVisual.css.cjs +1 -1
- package/dist/components/forms/_shared/styles/radioVisual.css.js +1 -1
- package/dist/components/forms/autocomplete/Autocomplete.cjs +1 -1
- package/dist/components/forms/autocomplete/Autocomplete.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-content/styles/AutocompleteContent.css.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-content/styles/AutocompleteContent.css.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.cjs.map +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.js +60 -57
- package/dist/components/forms/autocomplete/components/autocomplete-field/AutocompleteField.js.map +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.cjs.map +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.js +41 -39
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.js.map +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/styles/AutocompleteInput.css.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/styles/AutocompleteInput.css.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/types/AutocompleteInput.props.d.ts +3 -0
- package/dist/components/forms/autocomplete/components/autocomplete-item/styles/AutocompleteItem.css.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-item/styles/AutocompleteItem.css.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-separator/styles/AutocompleteSeparator.css.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-separator/styles/AutocompleteSeparator.css.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-trigger/styles/AutocompleteTrigger.css.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-trigger/styles/AutocompleteTrigger.css.js +1 -1
- package/dist/components/forms/autocomplete/styles/Autocomplete.css.cjs +1 -1
- package/dist/components/forms/autocomplete/styles/Autocomplete.css.js +1 -1
- package/dist/components/forms/autocomplete/types/Autocomplete.props.d.ts +3 -0
- package/dist/components/forms/calendar/Calendar.cjs +1 -1
- package/dist/components/forms/calendar/Calendar.js +1 -1
- package/dist/components/forms/calendar/components/calendar-caption/styles/CalendarCaption.css.cjs +1 -1
- package/dist/components/forms/calendar/components/calendar-caption/styles/CalendarCaption.css.js +1 -1
- package/dist/components/forms/calendar/components/calendar-month-view/components/calendar-month-button/CalendarMonthButton.cjs +1 -1
- package/dist/components/forms/calendar/components/calendar-month-view/components/calendar-month-button/CalendarMonthButton.js +1 -1
- package/dist/components/forms/calendar/components/calendar-month-view/styles/CalendarMonthView.css.cjs +1 -1
- package/dist/components/forms/calendar/components/calendar-month-view/styles/CalendarMonthView.css.js +1 -1
- package/dist/components/forms/calendar/components/calendar-year-view/components/calendar-year-button/CalendarYearButton.cjs +1 -1
- package/dist/components/forms/calendar/components/calendar-year-view/components/calendar-year-button/CalendarYearButton.js +1 -1
- package/dist/components/forms/calendar/components/calendar-year-view/styles/CalendarYearView.css.cjs +1 -1
- package/dist/components/forms/calendar/components/calendar-year-view/styles/CalendarYearView.css.js +1 -1
- package/dist/components/forms/calendar/styles/calendarDayButton.css.cjs +1 -1
- package/dist/components/forms/calendar/styles/calendarDayButton.css.js +1 -1
- package/dist/components/forms/calendar/styles/calendarGrid.css.cjs +1 -1
- package/dist/components/forms/calendar/styles/calendarGrid.css.js +1 -1
- package/dist/components/forms/calendar/styles/calendarRoot.css.cjs +1 -1
- package/dist/components/forms/calendar/styles/calendarRoot.css.js +1 -1
- package/dist/components/forms/checkbox/styles/Checkbox.css.cjs +1 -1
- package/dist/components/forms/checkbox/styles/Checkbox.css.js +1 -1
- package/dist/components/forms/date-picker/DatePicker.cjs +1 -1
- package/dist/components/forms/date-picker/DatePicker.js +1 -1
- package/dist/components/forms/date-picker/styles/DatePicker.css.cjs +1 -1
- package/dist/components/forms/date-picker/styles/DatePicker.css.js +1 -1
- package/dist/components/forms/number-field/NumberField.cjs +1 -1
- package/dist/components/forms/number-field/NumberField.cjs.map +1 -1
- package/dist/components/forms/number-field/NumberField.js +64 -61
- package/dist/components/forms/number-field/NumberField.js.map +1 -1
- package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.cjs +1 -1
- package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.cjs.map +1 -1
- package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.d.ts +1 -1
- package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.js +21 -18
- package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.js.map +1 -1
- package/dist/components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.cjs +1 -1
- package/dist/components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.js +1 -1
- package/dist/components/forms/number-field/components/number-field-input/types/NumberFieldInput.props.d.ts +2 -0
- package/dist/components/forms/number-field/components/number-field-steppers/styles/NumberFieldSteppers.css.cjs +1 -1
- package/dist/components/forms/number-field/components/number-field-steppers/styles/NumberFieldSteppers.css.js +1 -1
- package/dist/components/forms/number-field/styles/NumberField.css.cjs +1 -1
- package/dist/components/forms/number-field/styles/NumberField.css.js +1 -1
- package/dist/components/forms/number-field/types/NumberField.props.d.ts +3 -0
- package/dist/components/forms/radio-group/components/radio-item/styles/RadioItem.css.cjs +1 -1
- package/dist/components/forms/radio-group/components/radio-item/styles/RadioItem.css.js +1 -1
- package/dist/components/forms/rich-text-editor/RichTextEditor.cjs +1 -1
- package/dist/components/forms/rich-text-editor/RichTextEditor.js +1 -1
- package/dist/components/forms/rich-text-editor/RichTextEditorField.cjs +1 -1
- package/dist/components/forms/rich-text-editor/RichTextEditorField.js +1 -1
- package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.js +1 -1
- package/dist/components/forms/rich-text-editor/components/alignment-group/styles/AlignmentGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/alignment-group/styles/AlignmentGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.js +1 -1
- package/dist/components/forms/rich-text-editor/components/block-format-group/styles/BlockFormatGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/block-format-group/styles/BlockFormatGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/editor-field/EditorField.js +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/Redo.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/Redo.js +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/Undo.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/Undo.js +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/styles/HistoryGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/history-group/styles/HistoryGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/image-group/ImageGroup.js +1 -1
- package/dist/components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/LinkGroup.js +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/SetLink.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/SetLink.js +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/UnsetLink.js +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/link-group/styles/LinkGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/lists-group/ListsGroup.js +1 -1
- package/dist/components/forms/rich-text-editor/components/lists-group/styles/ListsGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/lists-group/styles/ListsGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/read-only-field/ReadOnlyField.js +1 -1
- package/dist/components/forms/rich-text-editor/components/rich-text-editor-form-field/styles/RichTextEditorFormField.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/rich-text-editor-form-field/styles/RichTextEditorFormField.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/styles/RichTextEditorLabel.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/rich-text-editor-label/styles/RichTextEditorLabel.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/TextColorMenu.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextAppearanceGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextAppearanceGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextColorMenu.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextColorMenu.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextSizeMenu.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-appearance-group/styles/TextSizeMenu.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-style-group/TextStyleAction.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-style-group/TextStyleAction.js +1 -1
- package/dist/components/forms/rich-text-editor/components/text-style-group/styles/TextStyleGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/text-style-group/styles/TextStyleGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar/styles/Toolbar.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar/styles/Toolbar.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar-group/styles/ToolbarGroup.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar-group/styles/ToolbarGroup.css.js +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar-separator/styles/ToolbarSeparator.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/components/toolbar-separator/styles/ToolbarSeparator.css.js +1 -1
- package/dist/components/forms/rich-text-editor/styles/RichTextEditor.css.cjs +1 -1
- package/dist/components/forms/rich-text-editor/styles/RichTextEditor.css.js +1 -1
- package/dist/components/forms/select/Select.cjs +1 -1
- package/dist/components/forms/select/Select.js +1 -1
- package/dist/components/forms/select/components/select-content/styles/SelectContent.css.cjs +1 -1
- package/dist/components/forms/select/components/select-content/styles/SelectContent.css.js +1 -1
- package/dist/components/forms/select/components/select-field/SelectField.cjs +1 -1
- package/dist/components/forms/select/components/select-field/SelectField.cjs.map +1 -1
- package/dist/components/forms/select/components/select-field/SelectField.js +64 -61
- package/dist/components/forms/select/components/select-field/SelectField.js.map +1 -1
- package/dist/components/forms/select/components/select-item/styles/SelectItem.css.cjs +1 -1
- package/dist/components/forms/select/components/select-item/styles/SelectItem.css.js +1 -1
- package/dist/components/forms/select/components/select-label/styles/SelectLabel.css.cjs +1 -1
- package/dist/components/forms/select/components/select-label/styles/SelectLabel.css.js +1 -1
- package/dist/components/forms/select/components/select-separator/styles/SelectSeparator.css.cjs +1 -1
- package/dist/components/forms/select/components/select-separator/styles/SelectSeparator.css.js +1 -1
- package/dist/components/forms/select/components/select-trigger/SelectTrigger.cjs +1 -1
- package/dist/components/forms/select/components/select-trigger/SelectTrigger.cjs.map +1 -1
- package/dist/components/forms/select/components/select-trigger/SelectTrigger.js +39 -37
- package/dist/components/forms/select/components/select-trigger/SelectTrigger.js.map +1 -1
- package/dist/components/forms/select/components/select-trigger/styles/SelectTrigger.css.cjs +1 -1
- package/dist/components/forms/select/components/select-trigger/styles/SelectTrigger.css.js +1 -1
- package/dist/components/forms/select/components/select-trigger/types/SelectTrigger.props.d.ts +3 -0
- package/dist/components/forms/select/types/Select.props.d.ts +3 -0
- package/dist/components/forms/slider/components/slider-header/styles/SliderHeader.css.cjs +1 -1
- package/dist/components/forms/slider/components/slider-header/styles/SliderHeader.css.js +1 -1
- package/dist/components/forms/slider/components/slider-track/styles/SliderTrack.css.cjs +1 -1
- package/dist/components/forms/slider/components/slider-track/styles/SliderTrack.css.js +1 -1
- package/dist/components/forms/slider/styles/Slider.css.cjs +1 -1
- package/dist/components/forms/slider/styles/Slider.css.js +1 -1
- package/dist/components/forms/switch/styles/Switch.css.cjs +1 -1
- package/dist/components/forms/switch/styles/Switch.css.js +1 -1
- package/dist/components/forms/text-area/TextArea.cjs +1 -1
- package/dist/components/forms/text-area/TextArea.cjs.map +1 -1
- package/dist/components/forms/text-area/TextArea.js +65 -60
- package/dist/components/forms/text-area/TextArea.js.map +1 -1
- package/dist/components/forms/text-area/components/text-area-end-action/styles/TextAreaEndAction.css.cjs +1 -1
- package/dist/components/forms/text-area/components/text-area-end-action/styles/TextAreaEndAction.css.js +1 -1
- package/dist/components/forms/text-area/components/text-area-label/TextAreaLabel.cjs +1 -1
- package/dist/components/forms/text-area/components/text-area-label/TextAreaLabel.cjs.map +1 -1
- package/dist/components/forms/text-area/components/text-area-label/TextAreaLabel.js +10 -8
- package/dist/components/forms/text-area/components/text-area-label/TextAreaLabel.js.map +1 -1
- package/dist/components/forms/text-area/components/text-area-label/styles/TextAreaLabel.css.cjs +1 -1
- package/dist/components/forms/text-area/components/text-area-label/styles/TextAreaLabel.css.js +1 -1
- package/dist/components/forms/text-area/components/text-area-label/types/TextAreaLabel.props.d.ts +3 -0
- package/dist/components/forms/text-area/components/text-area-start-icon/styles/TextAreaStartIcon.css.cjs +1 -1
- package/dist/components/forms/text-area/components/text-area-start-icon/styles/TextAreaStartIcon.css.js +1 -1
- package/dist/components/forms/text-area/styles/TextArea.css.cjs +1 -1
- package/dist/components/forms/text-area/styles/TextArea.css.js +1 -1
- package/dist/components/forms/text-area/types/TextArea.props.d.ts +3 -0
- package/dist/components/forms/text-field/TextField.cjs +1 -1
- package/dist/components/forms/text-field/TextField.cjs.map +1 -1
- package/dist/components/forms/text-field/TextField.js +83 -74
- package/dist/components/forms/text-field/TextField.js.map +1 -1
- package/dist/components/forms/text-field/components/text-field-end-action/styles/TextFieldEndAction.css.cjs +1 -1
- package/dist/components/forms/text-field/components/text-field-end-action/styles/TextFieldEndAction.css.js +1 -1
- package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.cjs +1 -1
- package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.cjs.map +1 -1
- package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.js +21 -9
- package/dist/components/forms/text-field/components/text-field-label/TextFieldLabel.js.map +1 -1
- package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.cjs +1 -1
- package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.d.ts +1 -0
- package/dist/components/forms/text-field/components/text-field-label/styles/TextFieldLabel.css.js +3 -3
- package/dist/components/forms/text-field/components/text-field-label/types/TextFieldLabel.props.d.ts +4 -0
- package/dist/components/forms/text-field/components/text-field-start-icon/styles/TextFieldStartIcon.css.cjs +1 -1
- package/dist/components/forms/text-field/components/text-field-start-icon/styles/TextFieldStartIcon.css.js +1 -1
- package/dist/components/forms/text-field/styles/TextField.css.cjs +1 -1
- package/dist/components/forms/text-field/styles/TextField.css.js +1 -1
- package/dist/components/forms/text-field/types/TextField.props.d.ts +6 -1
- package/dist/components/foundation/icon/styles/Icon.css.cjs +1 -1
- package/dist/components/foundation/icon/styles/Icon.css.js +1 -1
- package/dist/components/foundation/typography/styles/Typography.css.cjs +1 -1
- package/dist/components/foundation/typography/styles/Typography.css.js +1 -1
- package/dist/components/layout/box/styles/Box.css.cjs +1 -1
- package/dist/components/layout/box/styles/Box.css.js +1 -1
- package/dist/components/layout/fieldset/styles/Fieldset.css.cjs +1 -1
- package/dist/components/layout/fieldset/styles/Fieldset.css.js +1 -1
- package/dist/components/layout/flex/styles/Flex.css.cjs +1 -1
- package/dist/components/layout/flex/styles/Flex.css.js +1 -1
- package/dist/components/layout/form/styles/Form.css.cjs +1 -1
- package/dist/components/layout/form/styles/Form.css.js +1 -1
- package/dist/components/layout/grid/styles/Grid.css.cjs +1 -1
- package/dist/components/layout/grid/styles/Grid.css.js +1 -1
- package/dist/components/layout/image/styles/Image.css.cjs +1 -1
- package/dist/components/layout/image/styles/Image.css.js +1 -1
- package/dist/components/layout/inset/styles/Inset.css.cjs +1 -1
- package/dist/components/layout/inset/styles/Inset.css.js +1 -1
- package/dist/components/layout/legend/styles/Legend.css.cjs +1 -1
- package/dist/components/layout/legend/styles/Legend.css.js +1 -1
- package/dist/components/layout/separator/styles/Separator.css.cjs +1 -1
- package/dist/components/layout/separator/styles/Separator.css.js +1 -1
- package/dist/components/navigation/breadcrumbs/styles/Breadcrumbs.css.cjs +1 -1
- package/dist/components/navigation/breadcrumbs/styles/Breadcrumbs.css.js +1 -1
- package/dist/components/navigation/link/Link.cjs +1 -1
- package/dist/components/navigation/link/Link.cjs.map +1 -1
- package/dist/components/navigation/link/Link.js +19 -19
- package/dist/components/navigation/link/Link.js.map +1 -1
- package/dist/components/navigation/link/styles/Link.css.cjs +1 -1
- package/dist/components/navigation/link/styles/Link.css.js +1 -1
- package/dist/components/navigation/link/types/Link.props.d.ts +1 -1
- package/dist/components/navigation/pagination/styles/Pagination.css.cjs +1 -1
- package/dist/components/navigation/pagination/styles/Pagination.css.js +1 -1
- package/dist/components/navigation/step-indicator/components/step-indicator-item/styles/StepIndicatorItem.css.cjs +1 -1
- package/dist/components/navigation/step-indicator/components/step-indicator-item/styles/StepIndicatorItem.css.js +1 -1
- package/dist/components/navigation/step-indicator/styles/StepIndicator.css.cjs +1 -1
- package/dist/components/navigation/step-indicator/styles/StepIndicator.css.js +1 -1
- package/dist/components/navigation/stepper/styles/Stepper.css.cjs +1 -1
- package/dist/components/navigation/stepper/styles/Stepper.css.js +1 -1
- package/dist/components/navigation/tabs/components/tabs-content/styles/TabsContent.css.cjs +1 -1
- package/dist/components/navigation/tabs/components/tabs-content/styles/TabsContent.css.js +1 -1
- package/dist/components/navigation/tabs/components/tabs-list/styles/TabsList.css.cjs +1 -1
- package/dist/components/navigation/tabs/components/tabs-list/styles/TabsList.css.js +1 -1
- package/dist/components/navigation/tabs/components/tabs-trigger/styles/TabsTrigger.css.cjs +1 -1
- package/dist/components/navigation/tabs/components/tabs-trigger/styles/TabsTrigger.css.js +1 -1
- package/dist/components/overlay/_shared/styles/OverlayBackdrop.css.cjs +1 -1
- package/dist/components/overlay/_shared/styles/OverlayBackdrop.css.js +1 -1
- package/dist/components/overlay/alert-dialog/AlertDialog.cjs +1 -1
- package/dist/components/overlay/alert-dialog/AlertDialog.js +1 -1
- package/dist/components/overlay/alert-dialog/styles/AlertDialog.css.cjs +1 -1
- package/dist/components/overlay/alert-dialog/styles/AlertDialog.css.js +1 -1
- package/dist/components/overlay/command/components/command-empty/styles/CommandEmpty.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-empty/styles/CommandEmpty.css.js +1 -1
- package/dist/components/overlay/command/components/command-group/styles/CommandGroup.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-group/styles/CommandGroup.css.js +1 -1
- package/dist/components/overlay/command/components/command-input/styles/CommandInput.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-input/styles/CommandInput.css.js +1 -1
- package/dist/components/overlay/command/components/command-item/styles/CommandItem.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-item/styles/CommandItem.css.js +1 -1
- package/dist/components/overlay/command/components/command-list/styles/CommandList.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-list/styles/CommandList.css.js +1 -1
- package/dist/components/overlay/command/components/command-separator/styles/CommandSeparator.css.cjs +1 -1
- package/dist/components/overlay/command/components/command-separator/styles/CommandSeparator.css.js +1 -1
- package/dist/components/overlay/command/styles/Command.css.cjs +1 -1
- package/dist/components/overlay/command/styles/Command.css.js +1 -1
- package/dist/components/overlay/context-menu/components/content/styles/ContextMenuContent.css.cjs +1 -1
- package/dist/components/overlay/context-menu/components/content/styles/ContextMenuContent.css.js +1 -1
- package/dist/components/overlay/dialog/components/dialog-header/styles/DialogHeader.css.cjs +1 -1
- package/dist/components/overlay/dialog/components/dialog-header/styles/DialogHeader.css.js +1 -1
- package/dist/components/overlay/dialog/styles/Dialog.css.cjs +1 -1
- package/dist/components/overlay/dialog/styles/Dialog.css.js +1 -1
- package/dist/components/overlay/drawer/components/items/_shared/components/drawer-item-content/DrawerItemContent.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/_shared/components/drawer-item-content/DrawerItemContent.js +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-action-item/DrawerActionItem.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-action-item/DrawerActionItem.js +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-nav-item/DrawerNavItem.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-nav-item/DrawerNavItem.js +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-section-item/DrawerSectionItem.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-section-item/DrawerSectionItem.js +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-section-item/styles/DrawerSectionItem.css.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/drawer-section-item/styles/DrawerSectionItem.css.js +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-inline/styles/DrawerInline.css.cjs +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-inline/styles/DrawerInline.css.js +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-mini/styles/DrawerMini.css.cjs +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-mini/styles/DrawerMini.css.js +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-portal/styles/DrawerPortal.css.cjs +1 -1
- package/dist/components/overlay/drawer/components/variants/drawer-portal/styles/DrawerPortal.css.js +1 -1
- package/dist/components/overlay/drawer/styles/Drawer.css.cjs +1 -1
- package/dist/components/overlay/drawer/styles/Drawer.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/_shared/item.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/_shared/item.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/content/styles/DropdownMenuContent.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/content/styles/DropdownMenuContent.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/label/styles/DropdownMenuLabel.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/label/styles/DropdownMenuLabel.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/separator/styles/DropdownMenuSeparator.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/separator/styles/DropdownMenuSeparator.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/styles/DropdownMenuSubContent.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-content/styles/DropdownMenuSubContent.css.js +1 -1
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/styles/DropdownMenuSubTrigger.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/sub/dropdown-menu-sub-trigger/styles/DropdownMenuSubTrigger.css.js +1 -1
- package/dist/components/overlay/panel/styles/Panel.css.cjs +1 -1
- package/dist/components/overlay/panel/styles/Panel.css.js +1 -1
- package/dist/components/overlay/popover/components/content/styles/PopoverContent.css.cjs +1 -1
- package/dist/components/overlay/popover/components/content/styles/PopoverContent.css.js +1 -1
- package/dist/components/overlay/tooltip/styles/Tooltip.css.cjs +1 -1
- package/dist/components/overlay/tooltip/styles/Tooltip.css.js +1 -1
- package/dist/components/surfaces/accordion/components/accordion-content/styles/AccordionContent.css.cjs +1 -1
- package/dist/components/surfaces/accordion/components/accordion-content/styles/AccordionContent.css.js +1 -1
- package/dist/components/surfaces/accordion/components/accordion-item/styles/AccordionItem.css.cjs +1 -1
- package/dist/components/surfaces/accordion/components/accordion-item/styles/AccordionItem.css.js +1 -1
- package/dist/components/surfaces/accordion/components/accordion-trigger/AccordionTrigger.cjs +1 -1
- package/dist/components/surfaces/accordion/components/accordion-trigger/AccordionTrigger.js +1 -1
- package/dist/components/surfaces/accordion/components/accordion-trigger/styles/AccordionTrigger.css.cjs +1 -1
- package/dist/components/surfaces/accordion/components/accordion-trigger/styles/AccordionTrigger.css.js +1 -1
- package/dist/components/surfaces/accordion/styles/Accordion.css.cjs +1 -1
- package/dist/components/surfaces/accordion/styles/Accordion.css.js +1 -1
- package/dist/components/surfaces/card/components/card-header/styles/CardHeader.css.cjs +1 -1
- package/dist/components/surfaces/card/components/card-header/styles/CardHeader.css.js +1 -1
- package/dist/components/surfaces/card/styles/Card.css.cjs +1 -1
- package/dist/components/surfaces/card/styles/Card.css.js +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-panel/styles/CollapsiblePanel.css.cjs +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-panel/styles/CollapsiblePanel.css.js +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.cjs +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-trigger/CollapsibleTrigger.js +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-trigger/styles/CollapsibleTrigger.css.cjs +1 -1
- package/dist/components/surfaces/collapsible/components/collapsible-trigger/styles/CollapsibleTrigger.css.js +1 -1
- package/dist/components/surfaces/collapsible/styles/Collapsible.css.cjs +1 -1
- package/dist/components/surfaces/collapsible/styles/Collapsible.css.js +1 -1
- package/dist/components/theme-provider/ThemeProvider.cjs +1 -1
- package/dist/components/theme-provider/ThemeProvider.js +1 -1
- package/dist/constants/animations/fade/fadeIn.css.cjs +1 -1
- package/dist/constants/animations/fade/fadeIn.css.js +1 -1
- package/dist/constants/animations/fade/fadeOut.css.cjs +1 -1
- package/dist/constants/animations/fade/fadeOut.css.js +1 -1
- package/dist/constants/animations/pulse/pulseAnimation.css.cjs +1 -1
- package/dist/constants/animations/pulse/pulseAnimation.css.js +1 -1
- package/dist/constants/animations/slide/slideDownIn.css.cjs +1 -1
- package/dist/constants/animations/slide/slideDownIn.css.js +1 -1
- package/dist/constants/animations/slide/slideDownOut.css.cjs +1 -1
- package/dist/constants/animations/slide/slideDownOut.css.js +1 -1
- package/dist/constants/animations/slide/slideLeftIn.css.cjs +1 -1
- package/dist/constants/animations/slide/slideLeftIn.css.js +1 -1
- package/dist/constants/animations/slide/slideLeftOut.css.cjs +1 -1
- package/dist/constants/animations/slide/slideLeftOut.css.js +1 -1
- package/dist/constants/animations/slide/slideRightIn.css.cjs +1 -1
- package/dist/constants/animations/slide/slideRightIn.css.js +1 -1
- package/dist/constants/animations/slide/slideRightOut.css.cjs +1 -1
- package/dist/constants/animations/slide/slideRightOut.css.js +1 -1
- package/dist/constants/animations/slide/slideUpOut.css.cjs +1 -1
- package/dist/constants/animations/slide/slideUpOut.css.js +1 -1
- package/dist/constants/animations/spin/spinAnimation.css.cjs +1 -1
- package/dist/constants/animations/spin/spinAnimation.css.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +141 -141
- package/dist/theme/colors/light.cjs +1 -1
- package/dist/theme/colors/light.cjs.map +1 -1
- package/dist/theme/colors/light.d.ts +3 -3
- package/dist/theme/colors/light.js +3 -3
- package/dist/theme/colors/light.js.map +1 -1
- package/dist/theme/tokens/index.d.ts +3 -3
- package/dist/ui-kit.css +1 -1
- package/dist/ui-kit10.css +1 -1
- package/dist/ui-kit100.css +1 -1
- package/dist/ui-kit101.css +1 -1
- package/dist/ui-kit102.css +1 -1
- package/dist/ui-kit103.css +1 -1
- package/dist/ui-kit104.css +1 -1
- package/dist/ui-kit105.css +1 -1
- package/dist/ui-kit106.css +1 -1
- package/dist/ui-kit107.css +1 -1
- package/dist/ui-kit108.css +1 -1
- package/dist/ui-kit109.css +1 -1
- package/dist/ui-kit11.css +1 -1
- package/dist/ui-kit110.css +1 -1
- package/dist/ui-kit111.css +1 -1
- package/dist/ui-kit112.css +1 -1
- package/dist/ui-kit113.css +1 -1
- package/dist/ui-kit116.css +1 -1
- package/dist/ui-kit117.css +1 -1
- package/dist/ui-kit118.css +1 -1
- package/dist/ui-kit119.css +1 -1
- package/dist/ui-kit12.css +1 -1
- package/dist/ui-kit120.css +1 -1
- package/dist/ui-kit121.css +1 -1
- package/dist/ui-kit122.css +1 -1
- package/dist/ui-kit123.css +1 -1
- package/dist/ui-kit124.css +1 -1
- package/dist/ui-kit125.css +1 -1
- package/dist/ui-kit126.css +1 -1
- package/dist/ui-kit127.css +1 -1
- package/dist/ui-kit128.css +1 -1
- package/dist/ui-kit129.css +1 -1
- package/dist/ui-kit130.css +1 -1
- package/dist/ui-kit131.css +1 -1
- package/dist/ui-kit132.css +1 -1
- package/dist/ui-kit133.css +1 -1
- package/dist/ui-kit134.css +1 -1
- package/dist/ui-kit135.css +1 -1
- package/dist/ui-kit136.css +1 -1
- package/dist/ui-kit137.css +1 -1
- package/dist/ui-kit138.css +1 -1
- package/dist/ui-kit14.css +1 -1
- package/dist/ui-kit140.css +1 -1
- package/dist/ui-kit141.css +1 -1
- package/dist/ui-kit142.css +1 -1
- package/dist/ui-kit143.css +1 -1
- package/dist/ui-kit144.css +1 -1
- package/dist/ui-kit145.css +1 -1
- package/dist/ui-kit146.css +1 -1
- package/dist/ui-kit147.css +1 -1
- package/dist/ui-kit148.css +1 -1
- package/dist/ui-kit149.css +1 -1
- package/dist/ui-kit15.css +1 -1
- package/dist/ui-kit150.css +1 -1
- package/dist/ui-kit151.css +1 -1
- package/dist/ui-kit152.css +1 -1
- package/dist/ui-kit153.css +1 -1
- package/dist/ui-kit154.css +1 -1
- package/dist/ui-kit155.css +1 -1
- package/dist/ui-kit156.css +1 -1
- package/dist/ui-kit157.css +1 -1
- package/dist/ui-kit16.css +1 -1
- package/dist/ui-kit17.css +1 -1
- package/dist/ui-kit18.css +1 -1
- package/dist/ui-kit20.css +1 -1
- package/dist/ui-kit21.css +1 -1
- package/dist/ui-kit22.css +1 -1
- package/dist/ui-kit23.css +1 -1
- package/dist/ui-kit24.css +1 -1
- package/dist/ui-kit25.css +1 -1
- package/dist/ui-kit26.css +1 -1
- package/dist/ui-kit27.css +1 -1
- package/dist/ui-kit28.css +1 -1
- package/dist/ui-kit29.css +1 -1
- package/dist/ui-kit3.css +1 -1
- package/dist/ui-kit30.css +1 -1
- package/dist/ui-kit31.css +1 -1
- package/dist/ui-kit32.css +1 -1
- package/dist/ui-kit33.css +1 -1
- package/dist/ui-kit34.css +1 -1
- package/dist/ui-kit35.css +1 -1
- package/dist/ui-kit36.css +1 -1
- package/dist/ui-kit37.css +1 -1
- package/dist/ui-kit38.css +1 -1
- package/dist/ui-kit39.css +1 -1
- package/dist/ui-kit4.css +1 -1
- package/dist/ui-kit40.css +1 -1
- package/dist/ui-kit41.css +1 -1
- package/dist/ui-kit42.css +1 -1
- package/dist/ui-kit43.css +1 -1
- package/dist/ui-kit44.css +1 -1
- package/dist/ui-kit45.css +1 -1
- package/dist/ui-kit46.css +1 -1
- package/dist/ui-kit47.css +1 -1
- package/dist/ui-kit48.css +1 -1
- package/dist/ui-kit49.css +1 -1
- package/dist/ui-kit5.css +1 -1
- package/dist/ui-kit50.css +1 -1
- package/dist/ui-kit51.css +1 -1
- package/dist/ui-kit52.css +1 -1
- package/dist/ui-kit53.css +1 -1
- package/dist/ui-kit54.css +1 -1
- package/dist/ui-kit55.css +1 -1
- package/dist/ui-kit56.css +1 -1
- package/dist/ui-kit57.css +1 -1
- package/dist/ui-kit58.css +1 -1
- package/dist/ui-kit59.css +1 -1
- package/dist/ui-kit6.css +1 -1
- package/dist/ui-kit60.css +1 -1
- package/dist/ui-kit61.css +1 -1
- package/dist/ui-kit62.css +1 -1
- package/dist/ui-kit63.css +1 -1
- package/dist/ui-kit64.css +1 -1
- package/dist/ui-kit66.css +1 -1
- package/dist/ui-kit67.css +1 -1
- package/dist/ui-kit68.css +1 -1
- package/dist/ui-kit69.css +1 -1
- package/dist/ui-kit7.css +1 -1
- package/dist/ui-kit70.css +1 -1
- package/dist/ui-kit71.css +1 -1
- package/dist/ui-kit72.css +1 -1
- package/dist/ui-kit73.css +1 -1
- package/dist/ui-kit74.css +1 -1
- package/dist/ui-kit75.css +1 -1
- package/dist/ui-kit76.css +1 -1
- package/dist/ui-kit77.css +1 -1
- package/dist/ui-kit78.css +1 -1
- package/dist/ui-kit79.css +1 -1
- package/dist/ui-kit8.css +1 -1
- package/dist/ui-kit80.css +1 -1
- package/dist/ui-kit81.css +1 -1
- package/dist/ui-kit82.css +1 -1
- package/dist/ui-kit83.css +1 -1
- package/dist/ui-kit84.css +1 -1
- package/dist/ui-kit85.css +1 -1
- package/dist/ui-kit86.css +1 -1
- package/dist/ui-kit87.css +1 -1
- package/dist/ui-kit88.css +1 -1
- package/dist/ui-kit89.css +1 -1
- package/dist/ui-kit9.css +1 -1
- package/dist/ui-kit90.css +1 -1
- package/dist/ui-kit91.css +1 -1
- package/dist/ui-kit92.css +1 -1
- package/dist/ui-kit93.css +1 -1
- package/dist/ui-kit94.css +1 -1
- package/dist/ui-kit95.css +1 -1
- package/dist/ui-kit96.css +1 -1
- package/dist/ui-kit97.css +1 -1
- package/dist/ui-kit98.css +1 -1
- package/dist/ui-kit99.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.js","sources":["../../../../src/components/forms/number-field/NumberField.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\nimport { memo, useId } from 'react'\r\n\r\nimport { TextFieldLabel } from '@components/forms/text-field/components'\r\nimport HelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport NumberFieldInput from '@components/forms/number-field/components/number-field-input/NumberFieldInput.tsx'\r\nimport { NUMBER_FIELD_STYLES } from '@components/forms/number-field/styles/NumberField.css.ts'\r\nimport type { NumberFieldProps } from '@components/forms/number-field/types'\r\nimport { Flex } from '@components/layout/flex'\r\n\r\n/**\r\n * A numeric field with keyboard and button increments, min/max constraints and\r\n * the same label, helper and error API as TextField.\r\n */\r\nconst NumberField = memo<NumberFieldProps>((props) => {\r\n const {\r\n id,\r\n label,\r\n helperText,\r\n error,\r\n width,\r\n size: sizeProp = 'md',\r\n className,\r\n disabled,\r\n required,\r\n readOnly,\r\n name,\r\n form,\r\n min,\r\n max,\r\n step,\r\n smallStep,\r\n largeStep,\r\n allowOutOfRange,\r\n allowWheelScrub,\r\n snapOnStep,\r\n format,\r\n locale,\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n onValueCommitted,\r\n ref,\r\n 'aria-describedby': ariaDescribedBy,\r\n ...inputProps\r\n } = props\r\n const generatedId = useId()\r\n const inputId = id ?? generatedId\r\n const helperId = `${generatedId}-helper`\r\n const hasError = Boolean(error)\r\n const describedBy =\r\n [ariaDescribedBy, error || helperText ? helperId : undefined]\r\n .filter(Boolean)\r\n .join(' ') || undefined\r\n\r\n return (\r\n <Flex\r\n flexDirection={'column'}\r\n gap={'xs'}\r\n width={'100%'}\r\n alignItems={'start'}\r\n style={width !== undefined ? { width } : undefined}\r\n >\r\n {label && (\r\n <TextFieldLabel\r\n htmlFor={inputId}\r\n disabled={disabled}\r\n >\r\n {label}\r\n </TextFieldLabel>\r\n )}\r\n\r\n <BaseNumberField.Root\r\n id={inputId}\r\n min={min}\r\n max={max}\r\n step={step}\r\n smallStep={smallStep}\r\n largeStep={largeStep}\r\n allowOutOfRange={allowOutOfRange}\r\n allowWheelScrub={allowWheelScrub}\r\n snapOnStep={snapOnStep}\r\n format={format}\r\n locale={locale}\r\n value={value}\r\n defaultValue={defaultValue}\r\n onValueChange={onValueChange}\r\n onValueCommitted={onValueCommitted}\r\n disabled={disabled}\r\n readOnly={readOnly}\r\n required={required}\r\n name={name}\r\n form={form}\r\n className={NUMBER_FIELD_STYLES.root}\r\n >\r\n <NumberFieldInput\r\n inputProps={inputProps}\r\n inputRef={ref}\r\n className={className}\r\n describedBy={describedBy}\r\n hasError={hasError}\r\n size={sizeProp}\r\n />\r\n </BaseNumberField.Root>\r\n\r\n {(error || helperText) && (\r\n <HelperText\r\n id={helperId}\r\n hasError={hasError}\r\n >\r\n {error ?? helperText}\r\n </HelperText>\r\n )}\r\n </Flex>\r\n )\r\n})\r\n\r\nNumberField.displayName = 'NumberField'\r\n\r\nexport default NumberField\r\n"],"names":["NumberField","memo","props","id","label","helperText","error","width","sizeProp","className","disabled","required","readOnly","name","form","min","max","step","smallStep","largeStep","allowOutOfRange","allowWheelScrub","snapOnStep","format","locale","value","defaultValue","onValueChange","onValueCommitted","ref","ariaDescribedBy","inputProps","generatedId","useId","inputId","helperId","hasError","describedBy","jsxs","Flex","jsx","TextFieldLabel","BaseNumberField","NUMBER_FIELD_STYLES","NumberFieldInput","HelperText"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAMA,IAAcC,EAAuB,CAACC,MAAU;AAClD,QAAM;AAAA,IACF,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAMC,IAAW;AAAA,IACjB,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,KAAAC;AAAA,IACA,KAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,KAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"NumberField.js","sources":["../../../../src/components/forms/number-field/NumberField.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\nimport { memo, useId } from 'react'\r\n\r\nimport { TextFieldLabel } from '@components/forms/text-field/components'\r\nimport HelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport NumberFieldInput from '@components/forms/number-field/components/number-field-input/NumberFieldInput.tsx'\r\nimport { NUMBER_FIELD_STYLES } from '@components/forms/number-field/styles/NumberField.css.ts'\r\nimport type { NumberFieldProps } from '@components/forms/number-field/types'\r\nimport { Flex } from '@components/layout/flex'\r\n\r\n/**\r\n * A numeric field with keyboard and button increments, min/max constraints and\r\n * the same label, helper and error API as TextField.\r\n */\r\nconst NumberField = memo<NumberFieldProps>((props) => {\r\n const {\r\n id,\r\n label,\r\n helperText,\r\n error,\r\n width,\r\n size: sizeProp = 'md',\r\n fontSize = 'md',\r\n className,\r\n disabled,\r\n required,\r\n readOnly,\r\n name,\r\n form,\r\n min,\r\n max,\r\n step,\r\n smallStep,\r\n largeStep,\r\n allowOutOfRange,\r\n allowWheelScrub,\r\n snapOnStep,\r\n format,\r\n locale,\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n onValueCommitted,\r\n ref,\r\n 'aria-describedby': ariaDescribedBy,\r\n ...inputProps\r\n } = props\r\n const generatedId = useId()\r\n const inputId = id ?? generatedId\r\n const helperId = `${generatedId}-helper`\r\n const hasError = Boolean(error)\r\n const describedBy =\r\n [ariaDescribedBy, error || helperText ? helperId : undefined]\r\n .filter(Boolean)\r\n .join(' ') || undefined\r\n\r\n return (\r\n <Flex\r\n flexDirection={'column'}\r\n gap={'xs'}\r\n width={'100%'}\r\n alignItems={'start'}\r\n style={width !== undefined ? { width } : undefined}\r\n >\r\n {label && (\r\n <TextFieldLabel\r\n htmlFor={inputId}\r\n disabled={disabled}\r\n fontSize={fontSize}\r\n >\r\n {label}\r\n </TextFieldLabel>\r\n )}\r\n\r\n <BaseNumberField.Root\r\n id={inputId}\r\n min={min}\r\n max={max}\r\n step={step}\r\n smallStep={smallStep}\r\n largeStep={largeStep}\r\n allowOutOfRange={allowOutOfRange}\r\n allowWheelScrub={allowWheelScrub}\r\n snapOnStep={snapOnStep}\r\n format={format}\r\n locale={locale}\r\n value={value}\r\n defaultValue={defaultValue}\r\n onValueChange={onValueChange}\r\n onValueCommitted={onValueCommitted}\r\n disabled={disabled}\r\n readOnly={readOnly}\r\n required={required}\r\n name={name}\r\n form={form}\r\n className={NUMBER_FIELD_STYLES.root}\r\n >\r\n <NumberFieldInput\r\n inputProps={inputProps}\r\n inputRef={ref}\r\n className={className}\r\n describedBy={describedBy}\r\n hasError={hasError}\r\n size={sizeProp}\r\n fontSize={fontSize}\r\n />\r\n </BaseNumberField.Root>\r\n\r\n {(error || helperText) && (\r\n <HelperText\r\n id={helperId}\r\n hasError={hasError}\r\n >\r\n {error ?? helperText}\r\n </HelperText>\r\n )}\r\n </Flex>\r\n )\r\n})\r\n\r\nNumberField.displayName = 'NumberField'\r\n\r\nexport default NumberField\r\n"],"names":["NumberField","memo","props","id","label","helperText","error","width","sizeProp","fontSize","className","disabled","required","readOnly","name","form","min","max","step","smallStep","largeStep","allowOutOfRange","allowWheelScrub","snapOnStep","format","locale","value","defaultValue","onValueChange","onValueCommitted","ref","ariaDescribedBy","inputProps","generatedId","useId","inputId","helperId","hasError","describedBy","jsxs","Flex","jsx","TextFieldLabel","BaseNumberField","NUMBER_FIELD_STYLES","NumberFieldInput","HelperText"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAMA,IAAcC,EAAuB,CAACC,MAAU;AAClD,QAAM;AAAA,IACF,IAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,MAAMC,IAAW;AAAA,IACjB,UAAAC,IAAW;AAAA,IACX,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,KAAAC;AAAA,IACA,KAAAC;AAAA,IACA,MAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,KAAAC;AAAA,IACA,oBAAoBC;AAAA,IACpB,GAAGC;AAAA,EAAA,IACH9B,GACE+B,IAAcC,EAAA,GACdC,IAAUhC,KAAM8B,GAChBG,IAAW,GAAGH,CAAW,WACzBI,IAAW,EAAQ/B,GACnBgC,IACN,CAACP,GAAiBzB,KAASD,IAAa+B,IAAW,MAAS,EACvD,OAAO,OAAO,EACd,KAAK,GAAG,KAAK;AAElB,SACI,gBAAAG;AAAA,IAACC;AAAA,IAAA;AAAA,MACG,eAAe;AAAA,MACf,KAAK;AAAA,MACL,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,OAAOjC,MAAU,SAAY,EAAE,OAAAA,MAAU;AAAA,MAExC,UAAA;AAAA,QAAAH,KACG,gBAAAqC;AAAA,UAACC;AAAA,UAAA;AAAA,YACG,SAASP;AAAA,YACT,UAAAxB;AAAA,YACA,UAAAF;AAAA,YAEC,UAAAL;AAAA,UAAA;AAAA,QAAA;AAAA,QAIT,gBAAAqC;AAAA,UAACE,EAAgB;AAAA,UAAhB;AAAA,YACG,IAAIR;AAAA,YACJ,KAAAnB;AAAA,YACA,KAAAC;AAAA,YACA,MAAAC;AAAA,YACA,WAAAC;AAAA,YACA,WAAAC;AAAA,YACA,iBAAAC;AAAA,YACA,iBAAAC;AAAA,YACA,YAAAC;AAAA,YACA,QAAAC;AAAA,YACA,QAAAC;AAAA,YACA,OAAAC;AAAA,YACA,cAAAC;AAAA,YACA,eAAAC;AAAA,YACA,kBAAAC;AAAA,YACA,UAAAlB;AAAA,YACA,UAAAE;AAAA,YACA,UAAAD;AAAA,YACA,MAAAE;AAAA,YACA,MAAAC;AAAA,YACA,WAAW6B,EAAoB;AAAA,YAE/B,UAAA,gBAAAH;AAAA,cAACI;AAAA,cAAA;AAAA,gBACG,YAAAb;AAAA,gBACA,UAAUF;AAAA,gBACV,WAAApB;AAAA,gBACA,aAAA4B;AAAA,gBACA,UAAAD;AAAA,gBACA,MAAM7B;AAAA,gBACN,UAAAC;AAAA,cAAA;AAAA,YAAA;AAAA,UACJ;AAAA,QAAA;AAAA,SAGFH,KAASD,MACP,gBAAAoC;AAAA,UAACK;AAAA,UAAA;AAAA,YACG,IAAIV;AAAA,YACJ,UAAAC;AAAA,YAEC,UAAA/B,KAASD;AAAA,UAAA;AAAA,QAAA;AAAA,MACd;AAAA,IAAA;AAAA,EAAA;AAIhB,CAAC;AAEDL,EAAY,cAAc;"}
|
package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("@base-ui/react/number-field"),d=require("../../../text-field/styles/TextField.css.cjs"),o=require("./styles/NumberFieldInput.css.cjs"),m=require("../../../../../utils/cn.cjs"),N=require("../number-field-steppers/NumberFieldSteppers.cjs"),F=require("../../../../../theme/contract.css.cjs"),t=({inputProps:s,inputRef:c,className:n,describedBy:u,hasError:r,size:a,fontSize:l})=>e.jsxs(i.NumberField.Group,{className:o.NUMBER_FIELD_INPUT_STYLES.group,children:[e.jsx(i.NumberField.Input,{ref:c,...s,"aria-invalid":r||void 0,"aria-describedby":u,className:m.cn(d.TEXT_FIELD_STYLES.recipe({size:a,hasError:r,hasStartIcon:!1,hasEndAction:!0}),n),style:{fontSize:F.vars.fontSize[l],...s.style}}),e.jsx(N,{})]});t.displayName="NumberFieldInput";module.exports=t;
|
|
2
2
|
//# sourceMappingURL=NumberFieldInput.cjs.map
|
package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldInput.cjs","sources":["../../../../../../src/components/forms/number-field/components/number-field-input/NumberFieldInput.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\n\r\nimport { TEXT_FIELD_STYLES } from '@components/forms/text-field/styles/TextField.css.ts'\r\nimport { NUMBER_FIELD_INPUT_STYLES } from '@components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.ts'\r\nimport type { NumberFieldInputProps } from '@components/forms/number-field/components/number-field-input/types'\r\nimport { cn } from '@utils/cn.ts'\r\nimport NumberFieldSteppers from '@components/forms/number-field/components/number-field-steppers/NumberFieldSteppers.tsx'\r\n\r\nconst NumberFieldInput = ({\r\n inputProps,\r\n inputRef,\r\n className,\r\n describedBy,\r\n hasError,\r\n size,\r\n}: NumberFieldInputProps) => (\r\n <BaseNumberField.Group className={NUMBER_FIELD_INPUT_STYLES.group}>\r\n <BaseNumberField.Input\r\n ref={inputRef}\r\n {...inputProps}\r\n aria-invalid={hasError || undefined}\r\n aria-describedby={describedBy}\r\n className={cn(\r\n TEXT_FIELD_STYLES.recipe({\r\n size,\r\n hasError,\r\n hasStartIcon: false,\r\n hasEndAction: true,\r\n }),\r\n className,\r\n )}\r\n />\r\n <NumberFieldSteppers />\r\n </BaseNumberField.Group>\r\n)\r\n\r\nNumberFieldInput.displayName = 'NumberFieldInput'\r\n\r\nexport default NumberFieldInput\r\n"],"names":["NumberFieldInput","inputProps","inputRef","className","describedBy","hasError","size","BaseNumberField","NUMBER_FIELD_INPUT_STYLES","jsx","cn","TEXT_FIELD_STYLES","NumberFieldSteppers"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberFieldInput.cjs","sources":["../../../../../../src/components/forms/number-field/components/number-field-input/NumberFieldInput.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\n\r\nimport { TEXT_FIELD_STYLES } from '@components/forms/text-field/styles/TextField.css.ts'\r\nimport { NUMBER_FIELD_INPUT_STYLES } from '@components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.ts'\r\nimport type { NumberFieldInputProps } from '@components/forms/number-field/components/number-field-input/types'\r\nimport { cn } from '@utils/cn.ts'\r\nimport NumberFieldSteppers from '@components/forms/number-field/components/number-field-steppers/NumberFieldSteppers.tsx'\r\nimport { vars } from '@theme/contract.css.ts'\r\n\r\nconst NumberFieldInput = ({\r\n inputProps,\r\n inputRef,\r\n className,\r\n describedBy,\r\n hasError,\r\n size,\r\n fontSize,\r\n}: NumberFieldInputProps) => (\r\n <BaseNumberField.Group className={NUMBER_FIELD_INPUT_STYLES.group}>\r\n <BaseNumberField.Input\r\n ref={inputRef}\r\n {...inputProps}\r\n aria-invalid={hasError || undefined}\r\n aria-describedby={describedBy}\r\n className={cn(\r\n TEXT_FIELD_STYLES.recipe({\r\n size,\r\n hasError,\r\n hasStartIcon: false,\r\n hasEndAction: true,\r\n }),\r\n className,\r\n )}\r\n style={{ fontSize: vars.fontSize[fontSize], ...inputProps.style }}\r\n />\r\n <NumberFieldSteppers />\r\n </BaseNumberField.Group>\r\n)\r\n\r\nNumberFieldInput.displayName = 'NumberFieldInput'\r\n\r\nexport default NumberFieldInput\r\n"],"names":["NumberFieldInput","inputProps","inputRef","className","describedBy","hasError","size","fontSize","BaseNumberField","NUMBER_FIELD_INPUT_STYLES","jsx","cn","TEXT_FIELD_STYLES","vars","NumberFieldSteppers"],"mappings":"8VASMA,EAAmB,CAAC,CACtB,WAAAC,EACA,SAAAC,EACA,UAAAC,EACA,YAAAC,EACA,SAAAC,EACA,KAAAC,EACA,SAAAC,CACJ,WACKC,EAAAA,YAAgB,MAAhB,CAAsB,UAAWC,EAAAA,0BAA0B,MACxD,SAAA,CAAAC,EAAAA,IAACF,EAAAA,YAAgB,MAAhB,CACG,IAAKN,EACJ,GAAGD,EACJ,eAAcI,GAAY,OAC1B,mBAAkBD,EAClB,UAAWO,EAAAA,GACPC,EAAAA,kBAAkB,OAAO,CACrB,KAAAN,EACA,SAAAD,EACA,aAAc,GACd,aAAc,EAAA,CACjB,EACDF,CAAA,EAEJ,MAAO,CAAE,SAAUU,EAAAA,KAAK,SAASN,CAAQ,EAAG,GAAGN,EAAW,KAAA,CAAM,CAAA,QAEnEa,EAAA,CAAA,CAAoB,CAAA,CAAA,CACzB,EAGJd,EAAiB,YAAc"}
|
package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NumberFieldInputProps } from './types';
|
|
2
2
|
declare const NumberFieldInput: {
|
|
3
|
-
({ inputProps, inputRef, className, describedBy, hasError, size, }: NumberFieldInputProps): import("react").JSX.Element;
|
|
3
|
+
({ inputProps, inputRef, className, describedBy, hasError, size, fontSize, }: NumberFieldInputProps): import("react").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default NumberFieldInput;
|
package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.js
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { NumberField as
|
|
1
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { NumberField as m } from "@base-ui/react/number-field";
|
|
3
3
|
import { TEXT_FIELD_STYLES as d } from "../../../text-field/styles/TextField.css.js";
|
|
4
|
-
import { NUMBER_FIELD_INPUT_STYLES as
|
|
5
|
-
import { cn as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { NUMBER_FIELD_INPUT_STYLES as f } from "./styles/NumberFieldInput.css.js";
|
|
5
|
+
import { cn as n } from "../../../../../utils/cn.js";
|
|
6
|
+
import u from "../number-field-steppers/NumberFieldSteppers.js";
|
|
7
|
+
import { vars as c } from "../../../../../theme/contract.css.js";
|
|
8
|
+
const N = ({
|
|
9
|
+
inputProps: e,
|
|
9
10
|
inputRef: o,
|
|
10
11
|
className: t,
|
|
11
12
|
describedBy: a,
|
|
12
13
|
hasError: r,
|
|
13
|
-
size:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
size: s,
|
|
15
|
+
fontSize: p
|
|
16
|
+
}) => /* @__PURE__ */ l(m.Group, { className: f.group, children: [
|
|
17
|
+
/* @__PURE__ */ i(
|
|
18
|
+
m.Input,
|
|
17
19
|
{
|
|
18
20
|
ref: o,
|
|
19
|
-
...
|
|
21
|
+
...e,
|
|
20
22
|
"aria-invalid": r || void 0,
|
|
21
23
|
"aria-describedby": a,
|
|
22
|
-
className:
|
|
24
|
+
className: n(
|
|
23
25
|
d.recipe({
|
|
24
|
-
size:
|
|
26
|
+
size: s,
|
|
25
27
|
hasError: r,
|
|
26
28
|
hasStartIcon: !1,
|
|
27
29
|
hasEndAction: !0
|
|
28
30
|
}),
|
|
29
31
|
t
|
|
30
|
-
)
|
|
32
|
+
),
|
|
33
|
+
style: { fontSize: c.fontSize[p], ...e.style }
|
|
31
34
|
}
|
|
32
35
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ i(u, {})
|
|
34
37
|
] });
|
|
35
|
-
|
|
38
|
+
N.displayName = "NumberFieldInput";
|
|
36
39
|
export {
|
|
37
|
-
|
|
40
|
+
N as default
|
|
38
41
|
};
|
|
39
42
|
//# sourceMappingURL=NumberFieldInput.js.map
|
package/dist/components/forms/number-field/components/number-field-input/NumberFieldInput.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFieldInput.js","sources":["../../../../../../src/components/forms/number-field/components/number-field-input/NumberFieldInput.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\n\r\nimport { TEXT_FIELD_STYLES } from '@components/forms/text-field/styles/TextField.css.ts'\r\nimport { NUMBER_FIELD_INPUT_STYLES } from '@components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.ts'\r\nimport type { NumberFieldInputProps } from '@components/forms/number-field/components/number-field-input/types'\r\nimport { cn } from '@utils/cn.ts'\r\nimport NumberFieldSteppers from '@components/forms/number-field/components/number-field-steppers/NumberFieldSteppers.tsx'\r\n\r\nconst NumberFieldInput = ({\r\n inputProps,\r\n inputRef,\r\n className,\r\n describedBy,\r\n hasError,\r\n size,\r\n}: NumberFieldInputProps) => (\r\n <BaseNumberField.Group className={NUMBER_FIELD_INPUT_STYLES.group}>\r\n <BaseNumberField.Input\r\n ref={inputRef}\r\n {...inputProps}\r\n aria-invalid={hasError || undefined}\r\n aria-describedby={describedBy}\r\n className={cn(\r\n TEXT_FIELD_STYLES.recipe({\r\n size,\r\n hasError,\r\n hasStartIcon: false,\r\n hasEndAction: true,\r\n }),\r\n className,\r\n )}\r\n />\r\n <NumberFieldSteppers />\r\n </BaseNumberField.Group>\r\n)\r\n\r\nNumberFieldInput.displayName = 'NumberFieldInput'\r\n\r\nexport default NumberFieldInput\r\n"],"names":["NumberFieldInput","inputProps","inputRef","className","describedBy","hasError","size","BaseNumberField","NUMBER_FIELD_INPUT_STYLES","jsx","cn","TEXT_FIELD_STYLES","NumberFieldSteppers"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberFieldInput.js","sources":["../../../../../../src/components/forms/number-field/components/number-field-input/NumberFieldInput.tsx"],"sourcesContent":["import { NumberField as BaseNumberField } from '@base-ui/react/number-field'\r\n\r\nimport { TEXT_FIELD_STYLES } from '@components/forms/text-field/styles/TextField.css.ts'\r\nimport { NUMBER_FIELD_INPUT_STYLES } from '@components/forms/number-field/components/number-field-input/styles/NumberFieldInput.css.ts'\r\nimport type { NumberFieldInputProps } from '@components/forms/number-field/components/number-field-input/types'\r\nimport { cn } from '@utils/cn.ts'\r\nimport NumberFieldSteppers from '@components/forms/number-field/components/number-field-steppers/NumberFieldSteppers.tsx'\r\nimport { vars } from '@theme/contract.css.ts'\r\n\r\nconst NumberFieldInput = ({\r\n inputProps,\r\n inputRef,\r\n className,\r\n describedBy,\r\n hasError,\r\n size,\r\n fontSize,\r\n}: NumberFieldInputProps) => (\r\n <BaseNumberField.Group className={NUMBER_FIELD_INPUT_STYLES.group}>\r\n <BaseNumberField.Input\r\n ref={inputRef}\r\n {...inputProps}\r\n aria-invalid={hasError || undefined}\r\n aria-describedby={describedBy}\r\n className={cn(\r\n TEXT_FIELD_STYLES.recipe({\r\n size,\r\n hasError,\r\n hasStartIcon: false,\r\n hasEndAction: true,\r\n }),\r\n className,\r\n )}\r\n style={{ fontSize: vars.fontSize[fontSize], ...inputProps.style }}\r\n />\r\n <NumberFieldSteppers />\r\n </BaseNumberField.Group>\r\n)\r\n\r\nNumberFieldInput.displayName = 'NumberFieldInput'\r\n\r\nexport default NumberFieldInput\r\n"],"names":["NumberFieldInput","inputProps","inputRef","className","describedBy","hasError","size","fontSize","BaseNumberField","NUMBER_FIELD_INPUT_STYLES","jsx","cn","TEXT_FIELD_STYLES","vars","NumberFieldSteppers"],"mappings":";;;;;;;AASA,MAAMA,IAAmB,CAAC;AAAA,EACtB,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AACJ,wBACKC,EAAgB,OAAhB,EAAsB,WAAWC,EAA0B,OACxD,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAACF,EAAgB;AAAA,IAAhB;AAAA,MACG,KAAKN;AAAA,MACJ,GAAGD;AAAA,MACJ,gBAAcI,KAAY;AAAA,MAC1B,oBAAkBD;AAAA,MAClB,WAAWO;AAAA,QACPC,EAAkB,OAAO;AAAA,UACrB,MAAAN;AAAA,UACA,UAAAD;AAAA,UACA,cAAc;AAAA,UACd,cAAc;AAAA,QAAA,CACjB;AAAA,QACDF;AAAA,MAAA;AAAA,MAEJ,OAAO,EAAE,UAAUU,EAAK,SAASN,CAAQ,GAAG,GAAGN,EAAW,MAAA;AAAA,IAAM;AAAA,EAAA;AAAA,oBAEnEa,GAAA,CAAA,CAAoB;AAAA,EAAA,CACzB;AAGJd,EAAiB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit137.css');;/* empty css */var e={group:"c0w2cl0"};exports.NUMBER_FIELD_INPUT_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=NumberFieldInput.css.cjs.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes, Ref } from 'react';
|
|
2
2
|
import { NumberFieldSize } from '../../../types/NumberField.types.ts';
|
|
3
|
+
import { TypographySize } from '../../../../../foundation/typography/types/Typography.types.ts';
|
|
3
4
|
export type NumberFieldInputProps = {
|
|
4
5
|
inputProps: Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'defaultValue' | 'type' | 'value'>;
|
|
5
6
|
inputRef?: Ref<HTMLInputElement>;
|
|
@@ -7,4 +8,5 @@ export type NumberFieldInputProps = {
|
|
|
7
8
|
describedBy?: string;
|
|
8
9
|
hasError: boolean;
|
|
9
10
|
size: NumberFieldSize;
|
|
11
|
+
fontSize: TypographySize;
|
|
10
12
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit156.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={group:"_1sbt75z0",button:"_1sbt75z1",icon:"_1sbt75z2"};exports.NUMBER_FIELD_STEPPERS_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=NumberFieldSteppers.css.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../../../../ui-
|
|
1
|
+
import '../../../../../../ui-kit156.css';import '../../../../../../ui-kit.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
var _ = { group: "_1sbt75z0", button: "_1sbt75z1", icon: "_1sbt75z2" };
|
|
4
4
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../ui-kit40.css');;/* empty css */var e={root:"_1g01svz0"};exports.NUMBER_FIELD_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=NumberField.css.cjs.map
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
|
|
2
2
|
import { RefAttributes } from 'react';
|
|
3
3
|
import { NumberFieldSize } from './NumberField.types.ts';
|
|
4
|
+
import { TypographySize } from '../../../foundation/typography/types/Typography.types.ts';
|
|
4
5
|
import type * as React from 'react';
|
|
5
6
|
type NumberFieldRootProps = Pick<BaseNumberField.Root.Props, 'allowOutOfRange' | 'allowWheelScrub' | 'defaultValue' | 'format' | 'largeStep' | 'locale' | 'max' | 'min' | 'onValueChange' | 'onValueCommitted' | 'readOnly' | 'smallStep' | 'snapOnStep' | 'step' | 'value'>;
|
|
6
7
|
export type NumberFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'disabled' | 'form' | 'id' | 'max' | 'min' | 'name' | 'readOnly' | 'required' | 'size' | 'step' | 'type' | 'value'> & RefAttributes<HTMLInputElement> & NumberFieldRootProps & {
|
|
7
8
|
/** Input size. @default 'md' */
|
|
8
9
|
size?: NumberFieldSize;
|
|
10
|
+
/** Font size applied to the label and input text. @default 'md' */
|
|
11
|
+
fontSize?: TypographySize;
|
|
9
12
|
/** Text label rendered above the input, linked to the number input. */
|
|
10
13
|
label?: string;
|
|
11
14
|
/** Helper text rendered below the input. Hidden when `error` is provided. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit91.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_57s3sx0",indicator:"_57s3sx1",label:"_57s3sx2"};exports.RADIO_ITEM_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=RadioItem.css.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../../../../ui-
|
|
1
|
+
import '../../../../../../ui-kit91.css';import '../../../../../../ui-kit.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
var s = { root: "_57s3sx0", indicator: "_57s3sx1", label: "_57s3sx2" };
|
|
4
4
|
export {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../ui-
|
|
1
|
+
"use strict";require('../../../ui-kit113.css');require('../../../ui-kit2.css');require('../../../ui-kit.css');const G=require("react/jsx-runtime"),t=require("react"),k=require("./components/alignment-group/AlignmentGroup.cjs"),y=require("./components/block-format-group/BlockFormatGroup.cjs"),U=require("./components/editor-field/EditorField.cjs"),A=require("./components/helper-text/HelperText.cjs"),F=require("./components/history-group/HistoryGroup.cjs"),H=require("./components/history-group/Undo.cjs"),D=require("./components/history-group/Redo.cjs"),g=require("./components/image-group/ImageGroup.cjs"),C=require("./components/link-group/LinkGroup.cjs"),O=require("./components/link-group/SetLink.cjs"),f=require("./components/link-group/UnsetLink.cjs"),v=require("./components/lists-group/ListsGroup.cjs"),B=require("./components/rich-text-editor-label/RichTextEditorLabel.cjs");;/* empty css */;/* empty css */;/* empty css */const N=require("./components/read-only-field/ReadOnlyField.cjs"),j=require("./components/text-appearance-group/TextAppearanceGroup.cjs"),X=require("./components/text-style-group/TextStyleGroup.cjs"),r=require("./components/text-style-group/TextStyleAction.cjs"),M=require("./components/toolbar/Toolbar.cjs"),P=require("./components/toolbar-groups/ToolbarGroups.cjs"),Y=require("./components/toolbar-group/ToolbarGroup.cjs"),J=require("./components/toolbar-separator/ToolbarSeparator.cjs"),V=require("./context/RichTextEditor.context.cjs"),z=require("../../../utils/cn.cjs"),K=require("./constants/richTextEmptyDocument.const.cjs"),Q=require("./constants/richTextEditorDefaultLabels.const.cjs"),W=require("./styles/RichTextEditor.css.cjs"),Z=require("./hooks/useRichTextEditor.hook.cjs"),e=t.memo(({value:i,defaultValue:n,onValueChange:R,onImageUpload:_,label:s,helperText:c,error:u,placeholder:m,disabled:l=!1,readOnly:T=!1,required:a=!1,width:d,className:I,name:L,labels:S,"aria-label":p,"aria-labelledby":q,children:b})=>{const x=t.useId(),E=t.useId(),o=Z.useRichTextEditor({value:i,defaultValue:n,onValueChange:R,disabled:l,readOnly:T,required:a,label:s,placeholder:m,error:u,helperText:c,labelId:x,helperId:E,ariaLabel:p,ariaLabelledBy:q}),h={editor:o,disabled:l,readOnly:T,onImageUpload:_,label:s,helperText:c,error:u,ariaLabel:p,ariaLabelledBy:q,labelId:x,helperId:E,name:L,required:a,renderedValue:o?.getJSON()??i??n??K.EMPTY_RICH_TEXT_DOCUMENT,labels:{...Q.RICH_TEXT_EDITOR_DEFAULT_LABELS,...S}};return o?G.jsx(V.RichTextEditorContext.Provider,{value:h,children:G.jsx("div",{className:z.cn(W.RICH_TEXT_EDITOR_STYLES.root,I),style:d!==void 0?{width:d}:void 0,children:b})}):null});e.displayName="RichTextEditor";e.Label=B;e.EditorField=U;e.ReadOnlyField=N;e.HelperText=A;e.Toolbar=M;e.ToolbarGroups=P;e.ToolbarGroup=Y;e.ToolbarSeparator=J;e.HistoryGroup=F;e.Undo=H;e.Redo=D;e.TextStyleGroup=X;e.Bold=r.Bold;e.Italic=r.Italic;e.Underline=r.Underline;e.Strike=r.Strike;e.TextAppearanceGroup=j;e.LinkGroup=C;e.SetLink=O;e.UnsetLink=f;e.BlockFormatGroup=y;e.ListsGroup=v;e.AlignmentGroup=k;e.ImageGroup=g;module.exports=e;
|
|
2
2
|
//# sourceMappingURL=RichTextEditor.cjs.map
|
|
@@ -13,7 +13,7 @@ import v from "./components/link-group/SetLink.js";
|
|
|
13
13
|
import B from "./components/link-group/UnsetLink.js";
|
|
14
14
|
import D from "./components/lists-group/ListsGroup.js";
|
|
15
15
|
import N from "./components/rich-text-editor-label/RichTextEditorLabel.js";
|
|
16
|
-
import '../../../ui-
|
|
16
|
+
import '../../../ui-kit113.css';import '../../../ui-kit2.css';import '../../../ui-kit.css';/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import X from "./components/read-only-field/ReadOnlyField.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../ui-
|
|
1
|
+
"use strict";require('../../../ui-kit113.css');require('../../../ui-kit2.css');require('../../../ui-kit.css');const e=require("react/jsx-runtime"),c=require("react"),l=require("./RichTextEditor.cjs"),d=require("./components/rich-text-editor-label/RichTextEditorLabel.cjs");;/* empty css */;/* empty css */;/* empty css */const o=require("./components/editor-field/EditorField.cjs"),a=require("./components/helper-text/HelperText.cjs"),u=require("./components/read-only-field/ReadOnlyField.cjs"),x=require("./components/toolbar/Toolbar.cjs"),q=require("./components/toolbar-groups/ToolbarGroups.cjs"),n=c.memo(r=>{const t=r.label,i=r.readOnly??!1,s=e.jsxs(e.Fragment,{children:[t&&e.jsx(d,{disabled:i?!1:r.disabled,children:t}),i?e.jsx(u,{}):e.jsxs(e.Fragment,{children:[e.jsx(x,{children:e.jsx(q,{})}),e.jsx(o,{})]}),e.jsx(a,{})]});return t!==void 0||r["aria-label"]!==void 0?e.jsx(l,{...r,readOnly:i,children:s}):e.jsx(l,{...r,readOnly:i,children:s})});n.displayName="RichTextEditorField";module.exports=n;
|
|
2
2
|
//# sourceMappingURL=RichTextEditorField.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, Fragment as d, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as a } from "react";
|
|
3
3
|
import m from "./RichTextEditor.js";
|
|
4
4
|
import n from "./components/rich-text-editor-label/RichTextEditorLabel.js";
|
|
5
|
-
import '../../../ui-
|
|
5
|
+
import '../../../ui-kit113.css';import '../../../ui-kit2.css';import '../../../ui-kit.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import c from "./components/editor-field/EditorField.js";
|
package/dist/components/forms/rich-text-editor/components/alignment-group/AlignmentGroup.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),l=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const a=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */require("../../../../overlay/dropdown-menu/index.cjs");const f=require("react"),h=require("../../context/RichTextEditor.context.cjs"),x=require("./styles/AlignmentGroup.css.cjs"),o=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),u=({presentation:g="menu"})=>{const{editor:n,disabled:r,labels:t}=h.useRichTextEditorContext(),[c,p]=f.useState(!1);if(!n)return null;const s=n.getAttributes("paragraph").textAlign??n.getAttributes("heading").textAlign??"left";return e.jsx("div",{className:x.ALIGNMENT_GROUP_STYLES.root,role:"group","aria-label":t.alignmentGroup,children:g==="inline"?e.jsxs(e.Fragment,{children:[e.jsx(a,{content:t.alignLeft,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(l,{type:"button",icon:"lucide:align-left","aria-label":t.alignLeft,variant:"ghost",color:"primary",size:"sm",disabled:r,onMouseDown:i=>i.preventDefault(),onClick:()=>n.chain().focus().setTextAlign("left").run()})}),e.jsx(a,{content:t.alignCenter,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(l,{type:"button",icon:"lucide:align-center","aria-label":t.alignCenter,variant:"ghost",color:"primary",size:"sm",disabled:r,onMouseDown:i=>i.preventDefault(),onClick:()=>n.chain().focus().setTextAlign("center").run()})}),e.jsx(a,{content:t.alignRight,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(l,{type:"button",icon:"lucide:align-right","aria-label":t.alignRight,variant:"ghost",color:"primary",size:"sm",disabled:r,onMouseDown:i=>i.preventDefault(),onClick:()=>n.chain().focus().setTextAlign("right").run()})}),e.jsx(a,{content:t.justify,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(l,{type:"button",icon:"lucide:align-justify","aria-label":t.justify,variant:"ghost",color:"primary",size:"sm",disabled:r,onMouseDown:i=>i.preventDefault(),onClick:()=>n.chain().focus().setTextAlign("justify").run()})})]}):e.jsxs(o,{modal:!1,open:c,onOpenChange:p,children:[e.jsx(a,{content:t.alignmentTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(o.Trigger,{children:e.jsx(l,{type:"button",icon:"lucide:align-left","aria-label":t.alignmentTrigger,variant:"ghost",color:"primary",size:"sm",active:c,disabled:r})})}),e.jsxs(o.Content,{"aria-label":t.alignmentOptions,children:[e.jsx(o.Item,{label:t.alignLeft,startIcon:"lucide:align-left",active:s==="left",onClick:()=>n.chain().focus().setTextAlign("left").run()}),e.jsx(o.Item,{label:t.alignCenter,startIcon:"lucide:align-center",active:s==="center",onClick:()=>n.chain().focus().setTextAlign("center").run()}),e.jsx(o.Item,{label:t.alignRight,startIcon:"lucide:align-right",active:s==="right",onClick:()=>n.chain().focus().setTextAlign("right").run()}),e.jsx(o.Item,{label:t.justify,startIcon:"lucide:align-justify",active:s==="justify",onClick:()=>n.chain().focus().setTextAlign("justify").run()})]})]})})};u.displayName="RichTextEditor.AlignmentGroup";module.exports=u;
|
|
2
2
|
//# sourceMappingURL=AlignmentGroup.cjs.map
|
|
@@ -3,7 +3,7 @@ import r from "../../../../actions/icon-button/IconButton.js";
|
|
|
3
3
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
4
4
|
import a from "../../../../overlay/tooltip/Tooltip.js";
|
|
5
5
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
6
|
-
import '../../../../../ui-
|
|
6
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../../../overlay/dropdown-menu/index.js";
|
|
9
9
|
import { useState as m } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit133.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1hfg1yn0"};exports.ALIGNMENT_GROUP_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=AlignmentGroup.css.cjs.map
|
package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),a=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const c=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */require("../../../../overlay/dropdown-menu/index.cjs");const v=require("react"),f=require("../../context/RichTextEditor.context.cjs"),y=require("./styles/BlockFormatGroup.css.cjs"),n=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),s=({presentation:u="menu"})=>{const{editor:i,disabled:t,labels:o}=f.useRichTextEditorContext(),[r,d]=v.useState(!1);if(!i)return null;const g=i.isActive("paragraph"),p=i.isActive("heading",{level:1}),h=i.isActive("heading",{level:2}),m=i.isActive("heading",{level:3}),x=i.isActive("blockquote"),k=i.isActive("codeBlock"),l=b=>{const{from:j}=i.state.selection;i.chain().focus().setTextSelection(j).toggleHeading({level:b}).run()};return e.jsx("div",{className:y.BLOCK_FORMAT_GROUP_STYLES.root,role:"group","aria-label":o.blockFormatGroup,children:u==="inline"?e.jsxs(e.Fragment,{children:[e.jsx(c,{content:o.paragraph,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:pilcrow","aria-label":o.paragraph,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().setParagraph().run()})}),e.jsx(c,{content:o.heading1,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:heading-1","aria-label":o.heading1,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>l(1)})}),e.jsx(c,{content:o.heading2,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:heading-2","aria-label":o.heading2,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().toggleHeading({level:2}).run()})}),e.jsx(c,{content:o.heading3,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:heading-3","aria-label":o.heading3,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().toggleHeading({level:3}).run()})}),e.jsx(c,{content:o.blockQuote,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:quote","aria-label":o.blockQuote,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().toggleBlockquote().run()})}),e.jsx(c,{content:o.codeBlock,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:square-code","aria-label":o.codeBlock,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().toggleCodeBlock().run()})}),e.jsx(c,{content:o.insertHorizontalRule,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(a,{type:"button",icon:"lucide:minus","aria-label":o.insertHorizontalRule,variant:"ghost",color:"primary",size:"sm",disabled:t,onClick:()=>i.chain().focus().setHorizontalRule().run()})})]}):e.jsxs(n,{modal:!1,open:r,onOpenChange:d,children:[e.jsx(c,{content:o.blockFormatTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(n.Trigger,{children:e.jsx(a,{type:"button",icon:"lucide:pilcrow","aria-label":o.blockFormatTrigger,variant:"ghost",color:"primary",size:"sm",active:r,disabled:t})})}),e.jsxs(n.Content,{"aria-label":o.blockFormatOptions,children:[e.jsx(n.Item,{label:o.paragraph,startIcon:"lucide:pilcrow",active:g,onClick:()=>i.chain().focus().setParagraph().run()}),e.jsx(n.Item,{label:o.heading1,startIcon:"lucide:heading-1",active:p,onClick:()=>l(1)}),e.jsx(n.Item,{label:o.heading2,startIcon:"lucide:heading-2",active:h,onClick:()=>i.chain().focus().toggleHeading({level:2}).run()}),e.jsx(n.Item,{label:o.heading3,startIcon:"lucide:heading-3",active:m,onClick:()=>i.chain().focus().toggleHeading({level:3}).run()}),e.jsx(n.Separator,{}),e.jsx(n.Item,{label:o.blockQuote,startIcon:"lucide:quote",active:x,onClick:()=>i.chain().focus().toggleBlockquote().run()}),e.jsx(n.Item,{label:o.codeBlock,startIcon:"lucide:square-code",active:k,onClick:()=>i.chain().focus().toggleCodeBlock().run()}),e.jsx(n.Separator,{}),e.jsx(n.Item,{label:o.insertHorizontalRule,startIcon:"lucide:minus",onClick:()=>i.chain().focus().setHorizontalRule().run()})]})]})})};s.displayName="RichTextEditor.BlockFormatGroup";module.exports=s;
|
|
2
2
|
//# sourceMappingURL=BlockFormatGroup.cjs.map
|
package/dist/components/forms/rich-text-editor/components/block-format-group/BlockFormatGroup.js
CHANGED
|
@@ -3,7 +3,7 @@ import a from "../../../../actions/icon-button/IconButton.js";
|
|
|
3
3
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
4
4
|
import l from "../../../../overlay/tooltip/Tooltip.js";
|
|
5
5
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
6
|
-
import '../../../../../ui-
|
|
6
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../../../overlay/dropdown-menu/index.js";
|
|
9
9
|
import { useState as C } from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit140.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"q5tw7m0"};exports.BLOCK_FORMAT_GROUP_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=BlockFormatGroup.css.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit148.css');const e=require("react/jsx-runtime"),c=require("@tiptap/react"),a=require("react"),u=require("../rich-text-editor-form-field/RichTextEditorFormField.cjs");;/* empty css */const l=require("../../context/RichTextEditor.context.cjs"),x=require("../../styles/RichTextEditor.css.cjs"),E=require("../../../../../utils/cn.cjs"),o=a.memo(({className:s})=>{const{editor:r,disabled:t,error:d,name:i,required:n}=l.useRichTextEditorContext();return r?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:E.cn(x.RICH_TEXT_EDITOR_STYLES.editor,s),"data-disabled":t||void 0,"data-invalid":!!d||void 0,children:e.jsx(c.EditorContent,{editor:r})}),i&&e.jsx(u,{name:i,value:r.isEmpty?"":JSON.stringify(r.getJSON()),disabled:t,required:n})]}):null});o.displayName="RichTextEditor.EditorField";module.exports=o;
|
|
2
2
|
//# sourceMappingURL=EditorField.cjs.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as a, Fragment as n, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { EditorContent as l } from "@tiptap/react";
|
|
3
3
|
import { memo as s } from "react";
|
|
4
4
|
import p from "../rich-text-editor-form-field/RichTextEditorFormField.js";
|
|
5
|
-
import '../../../../../ui-
|
|
5
|
+
import '../../../../../ui-kit148.css';/* empty css */
|
|
6
6
|
import { useRichTextEditorContext as f } from "../../context/RichTextEditor.context.js";
|
|
7
7
|
import { RICH_TEXT_EDITOR_STYLES as E } from "../../styles/RichTextEditor.css.js";
|
|
8
8
|
import { cn as c } from "../../../../../utils/cn.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const r=require("react/jsx-runtime"),s=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:i,labels:o}=c.useRichTextEditorContext();return e?r.jsx(u,{content:o.redo,delayDuration:700,openOnFocus:!1,position:"top",children:r.jsx(s,{type:"button",icon:"lucide:redo-2","aria-label":o.redo,variant:"ghost",color:"primary",size:"sm",disabled:i||!e.can().redo(),onMouseDown:n=>n.preventDefault(),onClick:()=>e.chain().focus().redo().run()})}):null};t.displayName="RichTextEditor.Redo";module.exports=t;
|
|
2
2
|
//# sourceMappingURL=Redo.cjs.map
|
|
@@ -3,7 +3,7 @@ import n from "../../../../actions/icon-button/IconButton.js";
|
|
|
3
3
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
4
4
|
import a from "../../../../overlay/tooltip/Tooltip.js";
|
|
5
5
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
6
|
-
import '../../../../../ui-
|
|
6
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { useRichTextEditorContext as d } from "../../context/RichTextEditor.context.js";
|
|
9
9
|
const l = () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),u=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const s=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const c=require("../../context/RichTextEditor.context.cjs"),t=()=>{const{editor:e,disabled:r,labels:o}=c.useRichTextEditorContext();return e?n.jsx(s,{content:o.undo,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(u,{type:"button",icon:"lucide:undo-2","aria-label":o.undo,variant:"ghost",color:"primary",size:"sm",disabled:r||!e.can().undo(),onMouseDown:i=>i.preventDefault(),onClick:()=>e.chain().focus().undo().run()})}):null};t.displayName="RichTextEditor.Undo";module.exports=t;
|
|
2
2
|
//# sourceMappingURL=Undo.cjs.map
|
|
@@ -3,7 +3,7 @@ import e from "../../../../actions/icon-button/IconButton.js";
|
|
|
3
3
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
4
4
|
import a from "../../../../overlay/tooltip/Tooltip.js";
|
|
5
5
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
6
|
-
import '../../../../../ui-
|
|
6
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { useRichTextEditorContext as d } from "../../context/RichTextEditor.context.js";
|
|
9
9
|
const u = () => {
|
package/dist/components/forms/rich-text-editor/components/history-group/styles/HistoryGroup.css.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit124.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1oiges50"};exports.HISTORY_GROUP_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=HistoryGroup.css.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const t=require("react/jsx-runtime"),c=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const u=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */require("../../../../overlay/dropdown-menu/index.cjs");const h=require("react"),w=require("../../context/RichTextEditor.context.cjs"),j=require("./styles/ImageGroup.css.cjs"),a=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),y=10*1024*1024,I=({presentation:b="menu"})=>{const{editor:i,disabled:l,onImageUpload:d,labels:e}=w.useRichTextEditorContext(),m=h.useRef(null),[p,x]=h.useState(!1);return i?t.jsxs("div",{className:j.IMAGE_GROUP_STYLES.root,role:"group","aria-label":e.imageGroup,children:[b==="inline"?t.jsxs(t.Fragment,{children:[t.jsx(u,{content:e.insertImageUrl,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-plus","aria-label":e.insertImageUrl,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}})}),t.jsx(u,{content:e.uploadImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:upload","aria-label":e.uploadImage,variant:"ghost",color:"primary",size:"sm",disabled:l,onClick:()=>m.current?.click()})}),t.jsx(u,{content:e.editImageDetails,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:image-up","aria-label":e.editImageDetails,variant:"ghost",color:"primary",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}})}),t.jsx(u,{content:e.removeImage,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(c,{type:"button",icon:"lucide:trash-2","aria-label":e.removeImage,variant:"ghost",color:"destructive",size:"sm",disabled:l||!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})})]}):t.jsxs(a,{modal:!1,open:p,onOpenChange:x,children:[t.jsx(u,{content:e.imageGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:t.jsx(a.Trigger,{children:t.jsx(c,{type:"button",icon:"lucide:image","aria-label":e.imageGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:p,disabled:l})})}),t.jsxs(a.Content,{"aria-label":e.imageOptions,children:[t.jsx(a.Item,{label:e.insertImageUrl,startIcon:"lucide:image-plus",onClick:()=>{const r=window.prompt(e.imageUrlPrompt);r&&i.chain().focus().setImage({src:r}).run()}}),t.jsx(a.Item,{label:e.uploadImage,startIcon:"lucide:upload",onClick:()=>m.current?.click()}),t.jsx(a.Separator,{}),t.jsx(a.Item,{label:e.editImageDetails,startIcon:"lucide:image-up",disabled:!i.isActive("image"),onClick:()=>{const r=i.getAttributes("image"),o=window.prompt(e.imageAltPrompt,r.alt??""),n=window.prompt(e.imageWidthPrompt,r.width??"100%");i.chain().focus().updateAttributes("image",{...o!==null?{alt:o}:{},...n!==null?{width:n}:{}}).run()}}),t.jsx(a.Item,{label:e.removeImage,startIcon:"lucide:trash-2",destructive:!0,disabled:!i.isActive("image"),onClick:()=>i.chain().focus().deleteSelection().run()})]})]}),t.jsx("input",{ref:m,type:"file",accept:"image/*",hidden:!0,onChange:async r=>{const o=r.currentTarget.files?.[0];if(r.currentTarget.value="",!o||!o.type.startsWith("image/")||o.size>y)return;const n=d?await d(o):await new Promise((f,g)=>{const s=new FileReader;s.onload=()=>typeof s.result=="string"?f(s.result):g(new Error("Unable to read the image file.")),s.onerror=()=>g(s.error??new Error("Unable to read the image file.")),s.readAsDataURL(o)});i.chain().focus().setImage({src:n}).run()}})]}):null};I.displayName="RichTextEditor.ImageGroup";module.exports=I;
|
|
2
2
|
//# sourceMappingURL=ImageGroup.cjs.map
|
|
@@ -3,7 +3,7 @@ import c from "../../../../actions/icon-button/IconButton.js";
|
|
|
3
3
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
4
4
|
import m from "../../../../overlay/tooltip/Tooltip.js";
|
|
5
5
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
6
|
-
import '../../../../../ui-
|
|
6
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../../../overlay/dropdown-menu/index.js";
|
|
9
9
|
import { useRef as y, useState as v } from "react";
|
package/dist/components/forms/rich-text-editor/components/image-group/styles/ImageGroup.css.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../../../../ui-kit142.css');require('../../../../../../ui-kit.css');;/* empty css */;/* empty css */var e={root:"_1n5qrsc0"};exports.IMAGE_GROUP_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=ImageGroup.css.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),u=require("./styles/LinkGroup.css.cjs"),c=require("./SetLink.cjs"),a=require("./UnsetLink.cjs"),l=require("../../context/RichTextEditor.context.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const p=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const x=require("react"),i=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),t=()=>{const{disabled:o,labels:r}=l.useRichTextEditorContext(),[n,s]=x.useState(!1);return e.jsx("div",{className:u.LINK_GROUP_STYLES.root,role:"group","aria-label":r.linkGroup,children:e.jsxs(i,{modal:!1,open:n,onOpenChange:s,children:[e.jsx(d,{content:r.linkGroupTrigger,delayDuration:700,openOnFocus:!1,position:"top",children:e.jsx(i.Trigger,{children:e.jsx(p,{type:"button",icon:"lucide:link","aria-label":r.linkGroupTrigger,variant:"ghost",color:"primary",size:"sm",active:n,disabled:o})})}),e.jsxs(i.Content,{"aria-label":r.linkOptions,children:[e.jsx(c,{presentation:"menu"}),e.jsx(a,{presentation:"menu"})]})]})})};t.displayName="RichTextEditor.LinkGroup";module.exports=t;
|
|
2
2
|
//# sourceMappingURL=LinkGroup.cjs.map
|
|
@@ -8,7 +8,7 @@ import c from "../../../../actions/icon-button/IconButton.js";
|
|
|
8
8
|
import "../../../../actions/icon-button/styles/IconButton.css.js";
|
|
9
9
|
import u from "../../../../overlay/tooltip/Tooltip.js";
|
|
10
10
|
import "../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.js";
|
|
11
|
-
import '../../../../../ui-
|
|
11
|
+
import '../../../../../ui-kit24.css';import '../../../../../ui-kit.css';/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { useState as d } from "react";
|
|
14
14
|
import i from "../../../../overlay/dropdown-menu/DropdownMenu.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('../../../../../ui-
|
|
1
|
+
"use strict";require('../../../../../ui-kit24.css');require('../../../../../ui-kit.css');const n=require("react/jsx-runtime"),a=require("../../../../actions/icon-button/IconButton.cjs");require("../../../../actions/icon-button/styles/IconButton.css.cjs");require("../../../../overlay/dropdown-menu/index.cjs");const d=require("../../../../overlay/tooltip/Tooltip.cjs");require("../../../../overlay/tooltip/components/tooltip-provider/TooltipProvider.cjs");;/* empty css */;/* empty css */const k=require("../../context/RichTextEditor.context.cjs"),p=require("../../utils/richText.utils.cjs"),x=require("../../../../overlay/dropdown-menu/DropdownMenu.cjs"),c=({presentation:u="icon"})=>{const{editor:e,disabled:l,labels:t}=k.useRichTextEditorContext();if(!e)return null;const r=()=>{const i=e.getAttributes("link").href,o=window.prompt(t.linkUrlPrompt,i??"https://"),s=o?p.normalizeRichTextUrl(o):void 0;s&&e.chain().focus().extendMarkRange("link").setLink({href:s}).run()};return u==="menu"?n.jsx(x.Item,{label:t.addOrEditLink,startIcon:"lucide:link",active:e.isActive("link"),onClick:r}):n.jsx(d,{content:t.addOrEditLink,delayDuration:700,openOnFocus:!1,position:"top",children:n.jsx(a,{type:"button",icon:"lucide:link","aria-label":t.addOrEditLink,variant:"ghost",color:"primary",size:"sm",disabled:l,onMouseDown:i=>i.preventDefault(),onClick:r})})};c.displayName="RichTextEditor.SetLink";module.exports=c;
|
|
2
2
|
//# sourceMappingURL=SetLink.cjs.map
|