@choco-vanille/ui 1.17.1 → 1.17.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/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/status-badge/styles/StatusBadge.css.cjs +1 -1
- package/dist/components/data-display/status-badge/styles/StatusBadge.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/Toast.cjs +1 -1
- package/dist/components/feedback/toast/Toast.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-icon/styles/ToastIcon.css.cjs +1 -1
- package/dist/components/feedback/toast/components/toast-icon/styles/ToastIcon.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/form-label/styles/FormLabel.css.cjs +1 -1
- package/dist/components/forms/_shared/components/form-label/styles/FormLabel.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.js +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.cjs +1 -1
- package/dist/components/forms/autocomplete/components/autocomplete-input/AutocompleteInput.js +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-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/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/image-picker/ImagePicker.cjs +1 -1
- package/dist/components/forms/image-picker/ImagePicker.cjs.map +1 -1
- package/dist/components/forms/image-picker/ImagePicker.js +157 -150
- package/dist/components/forms/image-picker/ImagePicker.js.map +1 -1
- package/dist/components/forms/image-picker/components/image-picker-crop-dialog/ImagePickerCropDialog.cjs +1 -1
- package/dist/components/forms/image-picker/components/image-picker-crop-dialog/ImagePickerCropDialog.js +1 -1
- package/dist/components/forms/image-picker/styles/ImagePicker.css.cjs +1 -1
- package/dist/components/forms/image-picker/styles/ImagePicker.css.d.ts +0 -1
- package/dist/components/forms/image-picker/styles/ImagePicker.css.js +1 -1
- package/dist/components/forms/image-picker/types/ImagePicker.props.d.ts +4 -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-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/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-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.js +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/styles/Select.css.cjs +1 -1
- package/dist/components/forms/select/styles/Select.css.js +1 -1
- 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.js +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-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-field/TextField.cjs +1 -1
- package/dist/components/forms/text-field/TextField.js +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-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/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/layout/svg-image/styles/SvgImage.css.cjs +1 -1
- package/dist/components/layout/svg-image/styles/SvgImage.css.js +1 -1
- package/dist/components/navigation/bottom-navigation/styles/BottomNavigation.css.cjs +1 -1
- package/dist/components/navigation/bottom-navigation/styles/BottomNavigation.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/styles/Link.css.cjs +1 -1
- package/dist/components/navigation/link/styles/Link.css.js +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/_shared/styles/DrawerItemShared.css.cjs +1 -1
- package/dist/components/overlay/drawer/components/items/_shared/styles/DrawerItemShared.css.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-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/shortcut/styles/DropdownMenuShortcut.css.cjs +1 -1
- package/dist/components/overlay/dropdown-menu/components/shortcut/styles/DropdownMenuShortcut.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/components/panel-header/styles/PanelHeader.css.cjs +1 -1
- package/dist/components/overlay/panel/components/panel-header/styles/PanelHeader.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/slideUpIn.css.cjs +1 -1
- package/dist/constants/animations/slide/slideUpIn.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/hooks/use-notification/useNotification.hook.cjs +1 -1
- package/dist/hooks/use-notification/useNotification.hook.js +1 -1
- package/dist/hooks/use-toast/useToast.hook.cjs +1 -1
- package/dist/hooks/use-toast/useToast.hook.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +144 -144
- 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-kit114.css +1 -1
- package/dist/ui-kit115.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-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-kit13.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-kit139.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-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-kit158.css +1 -1
- package/dist/ui-kit159.css +1 -1
- package/dist/ui-kit16.css +1 -1
- package/dist/ui-kit160.css +1 -1
- package/dist/ui-kit161.css +1 -1
- package/dist/ui-kit17.css +1 -1
- package/dist/ui-kit18.css +1 -1
- package/dist/ui-kit19.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-kit65.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,188 +1,195 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { ImagePickerActions as
|
|
5
|
-
import { ImagePickerCropDialog as
|
|
6
|
-
import { ImagePickerInput as
|
|
7
|
-
import { ImagePickerPreview as
|
|
8
|
-
import { ImagePickerRemoveButton as
|
|
9
|
-
import { IMAGE_PICKER_DEFAULT_ACCEPT as
|
|
10
|
-
import { IMAGE_PICKER_SHAPES as
|
|
11
|
-
import { IMAGE_PICKER_STYLES as
|
|
12
|
-
import { useImagePicker as
|
|
13
|
-
import { resolveImagePickerAspectRatio as
|
|
14
|
-
import { cn as
|
|
15
|
-
import { memo as
|
|
16
|
-
const
|
|
1
|
+
import { jsxs as L, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import be from "../_shared/components/form-label/FormLabel.js";
|
|
3
|
+
import ue from "../_shared/components/helper-text/HelperText.js";
|
|
4
|
+
import { ImagePickerActions as Pe } from "./components/image-picker-actions/ImagePickerActions.js";
|
|
5
|
+
import { ImagePickerCropDialog as ye } from "./components/image-picker-crop-dialog/ImagePickerCropDialog.js";
|
|
6
|
+
import { ImagePickerInput as ke } from "./components/image-picker-input/ImagePickerInput.js";
|
|
7
|
+
import { ImagePickerPreview as Ee } from "./components/image-picker-preview/ImagePickerPreview.js";
|
|
8
|
+
import { ImagePickerRemoveButton as Re } from "./components/image-picker-remove-button/ImagePickerRemoveButton.js";
|
|
9
|
+
import { IMAGE_PICKER_DEFAULT_ACCEPT as Ae } from "./constants/imagePickerDefaults.const.js";
|
|
10
|
+
import { IMAGE_PICKER_SHAPES as B } from "./constants/imagePickerShapes.const.js";
|
|
11
|
+
import { IMAGE_PICKER_STYLES as _ } from "./styles/ImagePicker.css.js";
|
|
12
|
+
import { useImagePicker as Le } from "./hooks/useImagePicker.hook.js";
|
|
13
|
+
import { resolveImagePickerAspectRatio as Be } from "./utils/imagePicker.utils.js";
|
|
14
|
+
import { cn as _e } from "../../../utils/cn.js";
|
|
15
|
+
import { memo as we, useId as Se } from "react";
|
|
16
|
+
const je = we(
|
|
17
17
|
({
|
|
18
|
-
value:
|
|
19
|
-
defaultValue:
|
|
20
|
-
onValueChange:
|
|
18
|
+
value: w,
|
|
19
|
+
defaultValue: S,
|
|
20
|
+
onValueChange: j,
|
|
21
21
|
label: i,
|
|
22
|
-
alt:
|
|
23
|
-
helperText:
|
|
24
|
-
error:
|
|
25
|
-
accept:
|
|
26
|
-
maxSize:
|
|
27
|
-
onValidationError:
|
|
28
|
-
disabled:
|
|
29
|
-
disableChange:
|
|
30
|
-
disableRemove:
|
|
22
|
+
alt: x,
|
|
23
|
+
helperText: c,
|
|
24
|
+
error: F,
|
|
25
|
+
accept: G,
|
|
26
|
+
maxSize: K,
|
|
27
|
+
onValidationError: N,
|
|
28
|
+
disabled: m = !1,
|
|
29
|
+
disableChange: O = !1,
|
|
30
|
+
disableRemove: T = !1,
|
|
31
31
|
required: p = !1,
|
|
32
32
|
clearable: v = !0,
|
|
33
|
-
isMobile:
|
|
34
|
-
icon:
|
|
35
|
-
inputId:
|
|
36
|
-
name:
|
|
37
|
-
capture:
|
|
38
|
-
labels:
|
|
39
|
-
crop:
|
|
40
|
-
cropAspectRatio:
|
|
41
|
-
width:
|
|
33
|
+
isMobile: e = !1,
|
|
34
|
+
icon: $,
|
|
35
|
+
inputId: H,
|
|
36
|
+
name: U,
|
|
37
|
+
capture: V,
|
|
38
|
+
labels: W,
|
|
39
|
+
crop: Y = !1,
|
|
40
|
+
cropAspectRatio: q,
|
|
41
|
+
width: f,
|
|
42
42
|
height: z,
|
|
43
|
-
aspectRatio:
|
|
44
|
-
shape: n =
|
|
43
|
+
aspectRatio: g,
|
|
44
|
+
shape: n = B.rounded,
|
|
45
45
|
objectFit: J = "cover",
|
|
46
|
-
className:
|
|
47
|
-
style:
|
|
48
|
-
ref:
|
|
49
|
-
"aria-label":
|
|
50
|
-
"aria-labelledby":
|
|
51
|
-
"aria-describedby":
|
|
46
|
+
className: Q,
|
|
47
|
+
style: I,
|
|
48
|
+
ref: X,
|
|
49
|
+
"aria-label": h,
|
|
50
|
+
"aria-labelledby": Z,
|
|
51
|
+
"aria-describedby": M,
|
|
52
52
|
"aria-invalid": ee,
|
|
53
53
|
...oe
|
|
54
54
|
}) => {
|
|
55
|
-
const re =
|
|
55
|
+
const re = Se(), t = H ?? re, C = i ? `${t}-label` : void 0, D = `${t}-action`, b = `${t}-helper`, u = G ?? Ae, {
|
|
56
56
|
inputRef: ae,
|
|
57
57
|
previewUrl: ie,
|
|
58
|
-
resolvedLabels:
|
|
58
|
+
resolvedLabels: o,
|
|
59
59
|
validationMessage: ne,
|
|
60
60
|
hasValue: a,
|
|
61
|
-
isChangeDisabled:
|
|
62
|
-
isRemoveDisabled:
|
|
63
|
-
isDragging:
|
|
64
|
-
handleOpen:
|
|
65
|
-
handleInputChange:
|
|
61
|
+
isChangeDisabled: l,
|
|
62
|
+
isRemoveDisabled: P,
|
|
63
|
+
isDragging: te,
|
|
64
|
+
handleOpen: y,
|
|
65
|
+
handleInputChange: le,
|
|
66
66
|
handleDragOver: se,
|
|
67
67
|
handleDragLeave: de,
|
|
68
|
-
handleDrop:
|
|
69
|
-
handleClear:
|
|
70
|
-
pendingCropFile:
|
|
71
|
-
handleCropCancel:
|
|
68
|
+
handleDrop: ce,
|
|
69
|
+
handleClear: k,
|
|
70
|
+
pendingCropFile: E,
|
|
71
|
+
handleCropCancel: me,
|
|
72
72
|
handleCropConfirm: pe
|
|
73
|
-
} =
|
|
74
|
-
value:
|
|
75
|
-
defaultValue:
|
|
76
|
-
onValueChange:
|
|
77
|
-
accept:
|
|
78
|
-
maxSize:
|
|
79
|
-
onValidationError:
|
|
80
|
-
disabled:
|
|
81
|
-
disableChange:
|
|
82
|
-
disableRemove:
|
|
83
|
-
isMobile:
|
|
84
|
-
labels:
|
|
85
|
-
crop:
|
|
86
|
-
}), s =
|
|
87
|
-
return /* @__PURE__ */
|
|
73
|
+
} = Le({
|
|
74
|
+
value: w,
|
|
75
|
+
defaultValue: S,
|
|
76
|
+
onValueChange: j,
|
|
77
|
+
accept: u,
|
|
78
|
+
maxSize: K,
|
|
79
|
+
onValidationError: N,
|
|
80
|
+
disabled: m,
|
|
81
|
+
disableChange: O,
|
|
82
|
+
disableRemove: T,
|
|
83
|
+
isMobile: e,
|
|
84
|
+
labels: W,
|
|
85
|
+
crop: Y
|
|
86
|
+
}), s = F ?? ne, d = !!s, ve = d ? !0 : ee, R = !!(s || c), A = a ? o.change : o.choose, fe = h ? void 0 : [Z ?? C, D].filter(Boolean).join(" "), ge = [M, R ? b : void 0].filter(Boolean).join(" ") || void 0, Ie = !e && a && v, he = q ?? (n === B.circle ? 1 : Be(g)), Ce = e ? I : { width: f, ...I }, De = e ? { width: f } : void 0;
|
|
87
|
+
return /* @__PURE__ */ L(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
ref:
|
|
91
|
-
className:
|
|
92
|
-
style:
|
|
93
|
-
"data-mobile":
|
|
90
|
+
ref: X,
|
|
91
|
+
className: _e(_.root, Q),
|
|
92
|
+
style: Ce,
|
|
93
|
+
"data-mobile": e ? "true" : "false",
|
|
94
94
|
...oe,
|
|
95
95
|
children: [
|
|
96
|
-
i && /* @__PURE__ */
|
|
97
|
-
|
|
96
|
+
i && /* @__PURE__ */ r(
|
|
97
|
+
be,
|
|
98
98
|
{
|
|
99
|
-
id:
|
|
100
|
-
disabled:
|
|
99
|
+
id: C,
|
|
100
|
+
disabled: m,
|
|
101
101
|
required: p,
|
|
102
102
|
children: i
|
|
103
103
|
}
|
|
104
104
|
),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
105
|
+
/* @__PURE__ */ L(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: _.wrapper,
|
|
109
|
+
style: De,
|
|
110
|
+
children: [
|
|
111
|
+
/* @__PURE__ */ r(
|
|
112
|
+
Ee,
|
|
113
|
+
{
|
|
114
|
+
actionId: D,
|
|
115
|
+
actionLabel: A,
|
|
116
|
+
alt: x ?? i ?? o.selected,
|
|
117
|
+
ariaDescribedBy: ge,
|
|
118
|
+
ariaInvalid: ve,
|
|
119
|
+
ariaLabel: h,
|
|
120
|
+
ariaLabelledBy: fe,
|
|
121
|
+
aspectRatio: g,
|
|
122
|
+
disabled: l,
|
|
123
|
+
emptyLabel: o.empty,
|
|
124
|
+
hasError: d,
|
|
125
|
+
hasValue: a,
|
|
126
|
+
height: z,
|
|
127
|
+
icon: $,
|
|
128
|
+
isDragging: te,
|
|
129
|
+
isMobile: e,
|
|
130
|
+
objectFit: J,
|
|
131
|
+
onClick: y,
|
|
132
|
+
onDragLeave: de,
|
|
133
|
+
onDragOver: se,
|
|
134
|
+
onDrop: ce,
|
|
135
|
+
previewUrl: ie,
|
|
136
|
+
shape: n
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
Ie && /* @__PURE__ */ r(
|
|
140
|
+
Re,
|
|
141
|
+
{
|
|
142
|
+
disabled: P,
|
|
143
|
+
label: o.remove,
|
|
144
|
+
onClick: k,
|
|
145
|
+
shape: n
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ r(
|
|
149
|
+
ke,
|
|
150
|
+
{
|
|
151
|
+
accept: u,
|
|
152
|
+
capture: V,
|
|
153
|
+
disabled: l,
|
|
154
|
+
id: t,
|
|
155
|
+
inputRef: ae,
|
|
156
|
+
name: U,
|
|
157
|
+
required: p && !a,
|
|
158
|
+
onChange: le
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
e && /* @__PURE__ */ r(
|
|
165
|
+
Pe,
|
|
159
166
|
{
|
|
160
|
-
actionLabel:
|
|
161
|
-
changeDisabled:
|
|
167
|
+
actionLabel: A,
|
|
168
|
+
changeDisabled: l,
|
|
162
169
|
hasValue: a,
|
|
163
|
-
onChange:
|
|
164
|
-
onRemove:
|
|
165
|
-
removeDisabled:
|
|
166
|
-
removeLabel:
|
|
170
|
+
onChange: y,
|
|
171
|
+
onRemove: k,
|
|
172
|
+
removeDisabled: P,
|
|
173
|
+
removeLabel: o.remove,
|
|
167
174
|
showRemove: v
|
|
168
175
|
}
|
|
169
176
|
),
|
|
170
|
-
|
|
171
|
-
|
|
177
|
+
R && /* @__PURE__ */ r(
|
|
178
|
+
ue,
|
|
172
179
|
{
|
|
173
|
-
id:
|
|
180
|
+
id: b,
|
|
174
181
|
hasError: d,
|
|
175
|
-
children: s ??
|
|
182
|
+
children: s ?? c
|
|
176
183
|
}
|
|
177
184
|
),
|
|
178
|
-
|
|
179
|
-
|
|
185
|
+
E && /* @__PURE__ */ r(
|
|
186
|
+
ye,
|
|
180
187
|
{
|
|
181
|
-
file:
|
|
188
|
+
file: E,
|
|
182
189
|
aspectRatio: he,
|
|
183
190
|
shape: n,
|
|
184
|
-
labels:
|
|
185
|
-
onCancel:
|
|
191
|
+
labels: o,
|
|
192
|
+
onCancel: me,
|
|
186
193
|
onConfirm: pe
|
|
187
194
|
}
|
|
188
195
|
)
|
|
@@ -191,8 +198,8 @@ const we = Be(
|
|
|
191
198
|
);
|
|
192
199
|
}
|
|
193
200
|
);
|
|
194
|
-
|
|
201
|
+
je.displayName = "ImagePicker";
|
|
195
202
|
export {
|
|
196
|
-
|
|
203
|
+
je as default
|
|
197
204
|
};
|
|
198
205
|
//# sourceMappingURL=ImagePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePicker.js","sources":["../../../../src/components/forms/image-picker/ImagePicker.tsx"],"sourcesContent":["import FormLabel from '@components/forms/_shared/components/form-label/FormLabel.tsx'\r\nimport HelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport {\r\n ImagePickerActions,\r\n ImagePickerCropDialog,\r\n ImagePickerInput,\r\n ImagePickerPreview,\r\n ImagePickerRemoveButton,\r\n} from '@components/forms/image-picker/components'\r\nimport { IMAGE_PICKER_DEFAULT_ACCEPT } from '@components/forms/image-picker/constants/imagePickerDefaults.const.ts'\r\nimport { IMAGE_PICKER_SHAPES } from '@components/forms/image-picker/constants'\r\nimport { IMAGE_PICKER_STYLES } from '@components/forms/image-picker/styles/ImagePicker.css.ts'\r\nimport type { ImagePickerProps } from '@components/forms/image-picker/types/ImagePicker.props.ts'\r\nimport { useImagePicker } from '@components/forms/image-picker/hooks/useImagePicker.hook.ts'\r\nimport { resolveImagePickerAspectRatio } from '@components/forms/image-picker/utils/imagePicker.utils.ts'\r\nimport { cn } from '@utils/cn.ts'\r\nimport { memo, useId } from 'react'\r\n\r\n/**\r\n * A controlled or uncontrolled single-image picker, designed first for\r\n * profile pictures. The preview is the button that opens the native chooser.\r\n * On desktop it accepts drag and drop, reveals a \"change\" hint on hover and\r\n * shows a corner remove button; with `isMobile` it renders explicit\r\n * touch-sized action buttons instead. Change and remove actions can be\r\n * disabled independently. Set `crop` to open a crop editor before a newly\r\n * selected image is committed.\r\n *\r\n * @example\r\n * ```tsx\r\n * import { useState } from 'react'\r\n * import { ImagePicker } from '@choco-vanille/ui'\r\n *\r\n * const ProfilePictureField = () => {\r\n * const [value, setValue] = useState<File | string | null>(null)\r\n *\r\n * return (\r\n * <ImagePicker\r\n * label=\"Profile picture\"\r\n * name=\"profilePicture\"\r\n * value={value}\r\n * onValueChange={setValue}\r\n * shape=\"circle\"\r\n * />\r\n * )\r\n * }\r\n * ```\r\n */\r\nconst ImagePicker = memo<ImagePickerProps>(\r\n ({\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n label,\r\n alt,\r\n helperText,\r\n error,\r\n accept: acceptProp,\r\n maxSize,\r\n onValidationError,\r\n disabled = false,\r\n disableChange = false,\r\n disableRemove = false,\r\n required = false,\r\n clearable = true,\r\n isMobile = false,\r\n icon,\r\n inputId,\r\n name,\r\n capture,\r\n labels,\r\n crop = false,\r\n cropAspectRatio,\r\n width,\r\n height,\r\n aspectRatio,\r\n shape = IMAGE_PICKER_SHAPES.rounded,\r\n objectFit = 'cover',\r\n className,\r\n style,\r\n ref,\r\n 'aria-label': ariaLabel,\r\n 'aria-labelledby': ariaLabelledBy,\r\n 'aria-describedby': ariaDescribedBy,\r\n 'aria-invalid': ariaInvalid,\r\n ...rootProps\r\n }) => {\r\n const generatedId = useId()\r\n const resolvedInputId = inputId ?? generatedId\r\n const labelId = label ? `${resolvedInputId}-label` : undefined\r\n const actionId = `${resolvedInputId}-action`\r\n const helperId = `${resolvedInputId}-helper`\r\n const accept = acceptProp ?? IMAGE_PICKER_DEFAULT_ACCEPT\r\n const {\r\n inputRef,\r\n previewUrl,\r\n resolvedLabels,\r\n validationMessage,\r\n hasValue,\r\n isChangeDisabled,\r\n isRemoveDisabled,\r\n isDragging,\r\n handleOpen,\r\n handleInputChange,\r\n handleDragOver,\r\n handleDragLeave,\r\n handleDrop,\r\n handleClear,\r\n pendingCropFile,\r\n handleCropCancel,\r\n handleCropConfirm,\r\n } = useImagePicker({\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n accept,\r\n maxSize,\r\n onValidationError,\r\n disabled,\r\n disableChange,\r\n disableRemove,\r\n isMobile,\r\n labels,\r\n crop,\r\n })\r\n const displayedError = error ?? validationMessage\r\n const hasError = Boolean(displayedError)\r\n const buttonAriaInvalid = hasError ? true : ariaInvalid\r\n const hasDescription = Boolean(displayedError || helperText)\r\n const actionLabel = hasValue\r\n ? resolvedLabels.change\r\n : resolvedLabels.choose\r\n // The picker button is named \"<label> <action>\", e.g. \"Profile picture Change image\".\r\n const previewLabelledBy = ariaLabel\r\n ? undefined\r\n : [ariaLabelledBy ?? labelId, actionId].filter(Boolean).join(' ')\r\n const describedBy =\r\n [ariaDescribedBy, hasDescription ? helperId : undefined]\r\n .filter(Boolean)\r\n .join(' ') || undefined\r\n const showDesktopRemove = !isMobile && hasValue && clearable\r\n const resolvedCropAspectRatio = cropAspectRatio ?? (\r\n shape === IMAGE_PICKER_SHAPES.circle\r\n ? 1\r\n : resolveImagePickerAspectRatio(aspectRatio)\r\n )\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n className={cn(IMAGE_PICKER_STYLES.root, className)}\r\n style={{ width, ...style }}\r\n data-mobile={isMobile ? 'true' : 'false'}\r\n {...rootProps}\r\n >\r\n {label && (\r\n <FormLabel\r\n id={labelId}\r\n disabled={disabled}\r\n required={required}\r\n >\r\n {label}\r\n </FormLabel>\r\n )}\r\n\r\n <div className={IMAGE_PICKER_STYLES.wrapper}>\r\n <ImagePickerPreview\r\n actionId={actionId}\r\n actionLabel={actionLabel}\r\n alt={alt ?? label ?? resolvedLabels.selected}\r\n ariaDescribedBy={describedBy}\r\n ariaInvalid={buttonAriaInvalid}\r\n ariaLabel={ariaLabel}\r\n ariaLabelledBy={previewLabelledBy}\r\n aspectRatio={aspectRatio}\r\n disabled={isChangeDisabled}\r\n emptyLabel={resolvedLabels.empty}\r\n hasError={hasError}\r\n hasValue={hasValue}\r\n height={height}\r\n icon={icon}\r\n isDragging={isDragging}\r\n isMobile={isMobile}\r\n objectFit={objectFit}\r\n onClick={handleOpen}\r\n onDragLeave={handleDragLeave}\r\n onDragOver={handleDragOver}\r\n onDrop={handleDrop}\r\n previewUrl={previewUrl}\r\n shape={shape}\r\n />\r\n\r\n {showDesktopRemove && (\r\n <ImagePickerRemoveButton\r\n disabled={isRemoveDisabled}\r\n label={resolvedLabels.remove}\r\n onClick={handleClear}\r\n shape={shape}\r\n />\r\n )}\r\n\r\n <ImagePickerInput\r\n accept={accept}\r\n capture={capture}\r\n disabled={isChangeDisabled}\r\n id={resolvedInputId}\r\n inputRef={inputRef}\r\n name={name}\r\n required={required && !hasValue}\r\n onChange={handleInputChange}\r\n />\r\n </div>\r\n\r\n {isMobile && (\r\n <ImagePickerActions\r\n actionLabel={actionLabel}\r\n changeDisabled={isChangeDisabled}\r\n hasValue={hasValue}\r\n onChange={handleOpen}\r\n onRemove={handleClear}\r\n removeDisabled={isRemoveDisabled}\r\n removeLabel={resolvedLabels.remove}\r\n showRemove={clearable}\r\n />\r\n )}\r\n\r\n {hasDescription && (\r\n <HelperText\r\n id={helperId}\r\n hasError={hasError}\r\n >\r\n {displayedError ?? helperText}\r\n </HelperText>\r\n )}\r\n\r\n {pendingCropFile && (\r\n <ImagePickerCropDialog\r\n file={pendingCropFile}\r\n aspectRatio={resolvedCropAspectRatio}\r\n shape={shape}\r\n labels={resolvedLabels}\r\n onCancel={handleCropCancel}\r\n onConfirm={handleCropConfirm}\r\n />\r\n )}\r\n </div>\r\n )\r\n },\r\n)\r\n\r\nImagePicker.displayName = 'ImagePicker'\r\n\r\nexport default ImagePicker\r\n"],"names":["ImagePicker","memo","value","defaultValue","onValueChange","label","alt","helperText","error","acceptProp","maxSize","onValidationError","disabled","disableChange","disableRemove","required","clearable","isMobile","icon","inputId","name","capture","labels","crop","cropAspectRatio","width","height","aspectRatio","shape","IMAGE_PICKER_SHAPES","objectFit","className","style","ref","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaInvalid","rootProps","generatedId","useId","resolvedInputId","labelId","actionId","helperId","accept","IMAGE_PICKER_DEFAULT_ACCEPT","inputRef","previewUrl","resolvedLabels","validationMessage","hasValue","isChangeDisabled","isRemoveDisabled","isDragging","handleOpen","handleInputChange","handleDragOver","handleDragLeave","handleDrop","handleClear","pendingCropFile","handleCropCancel","handleCropConfirm","useImagePicker","displayedError","hasError","buttonAriaInvalid","hasDescription","actionLabel","previewLabelledBy","describedBy","showDesktopRemove","resolvedCropAspectRatio","resolveImagePickerAspectRatio","jsxs","cn","IMAGE_PICKER_STYLES","jsx","FormLabel","ImagePickerPreview","ImagePickerRemoveButton","ImagePickerInput","ImagePickerActions","HelperText","ImagePickerCropDialog"],"mappings":";;;;;;;;;;;;;;;AA+CA,MAAMA,KAAcC;AAAA,EAChB,CAAC;AAAA,IACG,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAQC;AAAA,IACR,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,eAAAC,IAAgB;AAAA,IAChB,eAAAC,IAAgB;AAAA,IAChB,UAAAC,IAAW;AAAA,IACX,WAAAC,IAAY;AAAA,IACZ,UAAAC,IAAW;AAAA,IACX,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,iBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,OAAAC,IAAQC,EAAoB;AAAA,IAC5B,WAAAC,IAAY;AAAA,IACZ,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,cAAcC;AAAA,IACd,mBAAmBC;AAAA,IACnB,oBAAoBC;AAAA,IACpB,gBAAgBC;AAAA,IAChB,GAAGC;AAAA,EAAA,MACD;AACF,UAAMC,KAAcC,GAAA,GACdC,IAAkBtB,KAAWoB,IAC7BG,IAAUrC,IAAQ,GAAGoC,CAAe,WAAW,QAC/CE,IAAW,GAAGF,CAAe,WAC7BG,IAAW,GAAGH,CAAe,WAC7BI,IAASpC,KAAcqC,IACvB;AAAA,MACF,UAAAC;AAAA,MACA,YAAAC;AAAA,MACA,gBAAAC;AAAA,M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cACG,aAAAd;AAAA,cACA,gBAAgBjB;AAAA,cAChB,UAAAD;AAAA,cACA,UAAUI;AAAA,cACV,UAAUK;AAAA,cACV,gBAAgBP;AAAA,cAChB,aAAaJ,EAAe;AAAA,cAC5B,YAAYjC;AAAA,YAAA;AAAA,UAAA;AAAA,UAInBoD,KACG,gBAAAU;AAAA,YAACM;AAAA,YAAA;AAAA,cACG,IAAIxC;AAAA,cACJ,UAAAsB;AAAA,cAEC,UAAAD,KAAkB1D;AAAA,YAAA;AAAA,UAAA;AAAA,UAI1BsD,KACG,gBAAAiB;AAAA,YAACO;AAAA,YAAA;AAAA,cACG,MAAMxB;AAAA,cACN,aAAaY;AAAA,cACb,OAAA7C;AAAA,cACA,QAAQqB;AAAA,cACR,UAAUa;AAAA,cACV,WAAWC;AAAA,YAAA;AAAA,UAAA;AAAA,QACf;AAAA,MAAA;AAAA,IAAA;AAAA,EAIhB;AACJ;AAEA/D,GAAY,cAAc;"}
|
|
1
|
+
{"version":3,"file":"ImagePicker.js","sources":["../../../../src/components/forms/image-picker/ImagePicker.tsx"],"sourcesContent":["import FormLabel from '@components/forms/_shared/components/form-label/FormLabel.tsx'\r\nimport HelperText from '@components/forms/_shared/components/helper-text/HelperText.tsx'\r\nimport {\r\n ImagePickerActions,\r\n ImagePickerCropDialog,\r\n ImagePickerInput,\r\n ImagePickerPreview,\r\n ImagePickerRemoveButton,\r\n} from '@components/forms/image-picker/components'\r\nimport { IMAGE_PICKER_DEFAULT_ACCEPT } from '@components/forms/image-picker/constants/imagePickerDefaults.const.ts'\r\nimport { IMAGE_PICKER_SHAPES } from '@components/forms/image-picker/constants'\r\nimport { IMAGE_PICKER_STYLES } from '@components/forms/image-picker/styles/ImagePicker.css.ts'\r\nimport type { ImagePickerProps } from '@components/forms/image-picker/types/ImagePicker.props.ts'\r\nimport { useImagePicker } from '@components/forms/image-picker/hooks/useImagePicker.hook.ts'\r\nimport { resolveImagePickerAspectRatio } from '@components/forms/image-picker/utils/imagePicker.utils.ts'\r\nimport { cn } from '@utils/cn.ts'\r\nimport { memo, useId } from 'react'\r\n\r\n/**\r\n * A controlled or uncontrolled single-image picker, designed first for\r\n * profile pictures. The preview is the button that opens the native chooser.\r\n * On desktop it accepts drag and drop, reveals a \"change\" hint on hover and\r\n * shows a corner remove button; with `isMobile` it renders explicit\r\n * touch-sized action buttons instead. Change and remove actions can be\r\n * disabled independently. Set `crop` to open a crop editor before a newly\r\n * selected image is committed.\r\n *\r\n * @example\r\n * ```tsx\r\n * import { useState } from 'react'\r\n * import { ImagePicker } from '@choco-vanille/ui'\r\n *\r\n * const ProfilePictureField = () => {\r\n * const [value, setValue] = useState<File | string | null>(null)\r\n *\r\n * return (\r\n * <ImagePicker\r\n * label=\"Profile picture\"\r\n * name=\"profilePicture\"\r\n * value={value}\r\n * onValueChange={setValue}\r\n * shape=\"circle\"\r\n * />\r\n * )\r\n * }\r\n * ```\r\n */\r\nconst ImagePicker = memo<ImagePickerProps>(\r\n ({\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n label,\r\n alt,\r\n helperText,\r\n error,\r\n accept: acceptProp,\r\n maxSize,\r\n onValidationError,\r\n disabled = false,\r\n disableChange = false,\r\n disableRemove = false,\r\n required = false,\r\n clearable = true,\r\n isMobile = false,\r\n icon,\r\n inputId,\r\n name,\r\n capture,\r\n labels,\r\n crop = false,\r\n cropAspectRatio,\r\n width,\r\n height,\r\n aspectRatio,\r\n shape = IMAGE_PICKER_SHAPES.rounded,\r\n objectFit = 'cover',\r\n className,\r\n style,\r\n ref,\r\n 'aria-label': ariaLabel,\r\n 'aria-labelledby': ariaLabelledBy,\r\n 'aria-describedby': ariaDescribedBy,\r\n 'aria-invalid': ariaInvalid,\r\n ...rootProps\r\n }) => {\r\n const generatedId = useId()\r\n const resolvedInputId = inputId ?? generatedId\r\n const labelId = label ? `${resolvedInputId}-label` : undefined\r\n const actionId = `${resolvedInputId}-action`\r\n const helperId = `${resolvedInputId}-helper`\r\n const accept = acceptProp ?? IMAGE_PICKER_DEFAULT_ACCEPT\r\n const {\r\n inputRef,\r\n previewUrl,\r\n resolvedLabels,\r\n validationMessage,\r\n hasValue,\r\n isChangeDisabled,\r\n isRemoveDisabled,\r\n isDragging,\r\n handleOpen,\r\n handleInputChange,\r\n handleDragOver,\r\n handleDragLeave,\r\n handleDrop,\r\n handleClear,\r\n pendingCropFile,\r\n handleCropCancel,\r\n handleCropConfirm,\r\n } = useImagePicker({\r\n value,\r\n defaultValue,\r\n onValueChange,\r\n accept,\r\n maxSize,\r\n onValidationError,\r\n disabled,\r\n disableChange,\r\n disableRemove,\r\n isMobile,\r\n labels,\r\n crop,\r\n })\r\n const displayedError = error ?? validationMessage\r\n const hasError = Boolean(displayedError)\r\n const buttonAriaInvalid = hasError ? true : ariaInvalid\r\n const hasDescription = Boolean(displayedError || helperText)\r\n const actionLabel = hasValue\r\n ? resolvedLabels.change\r\n : resolvedLabels.choose\r\n // The picker button is named \"<label> <action>\", e.g. \"Profile picture Change image\".\r\n const previewLabelledBy = ariaLabel\r\n ? undefined\r\n : [ariaLabelledBy ?? labelId, actionId].filter(Boolean).join(' ')\r\n const describedBy =\r\n [ariaDescribedBy, hasDescription ? helperId : undefined]\r\n .filter(Boolean)\r\n .join(' ') || undefined\r\n const showDesktopRemove = !isMobile && hasValue && clearable\r\n const resolvedCropAspectRatio = cropAspectRatio ?? (\r\n shape === IMAGE_PICKER_SHAPES.circle\r\n ? 1\r\n : resolveImagePickerAspectRatio(aspectRatio)\r\n )\r\n const rootStyle = isMobile\r\n ? style\r\n : { width, ...style }\r\n const previewWrapperStyle = isMobile ? { width } : undefined\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n className={cn(IMAGE_PICKER_STYLES.root, className)}\r\n style={rootStyle}\r\n data-mobile={isMobile ? 'true' : 'false'}\r\n {...rootProps}\r\n >\r\n {label && (\r\n <FormLabel\r\n id={labelId}\r\n disabled={disabled}\r\n required={required}\r\n >\r\n {label}\r\n </FormLabel>\r\n )}\r\n\r\n <div\r\n className={IMAGE_PICKER_STYLES.wrapper}\r\n style={previewWrapperStyle}\r\n >\r\n <ImagePickerPreview\r\n actionId={actionId}\r\n actionLabel={actionLabel}\r\n alt={alt ?? label ?? resolvedLabels.selected}\r\n ariaDescribedBy={describedBy}\r\n ariaInvalid={buttonAriaInvalid}\r\n ariaLabel={ariaLabel}\r\n ariaLabelledBy={previewLabelledBy}\r\n aspectRatio={aspectRatio}\r\n disabled={isChangeDisabled}\r\n emptyLabel={resolvedLabels.empty}\r\n hasError={hasError}\r\n hasValue={hasValue}\r\n height={height}\r\n icon={icon}\r\n isDragging={isDragging}\r\n isMobile={isMobile}\r\n objectFit={objectFit}\r\n onClick={handleOpen}\r\n onDragLeave={handleDragLeave}\r\n onDragOver={handleDragOver}\r\n onDrop={handleDrop}\r\n previewUrl={previewUrl}\r\n shape={shape}\r\n />\r\n\r\n {showDesktopRemove && (\r\n <ImagePickerRemoveButton\r\n disabled={isRemoveDisabled}\r\n label={resolvedLabels.remove}\r\n onClick={handleClear}\r\n shape={shape}\r\n />\r\n )}\r\n\r\n <ImagePickerInput\r\n accept={accept}\r\n capture={capture}\r\n disabled={isChangeDisabled}\r\n id={resolvedInputId}\r\n inputRef={inputRef}\r\n name={name}\r\n required={required && !hasValue}\r\n onChange={handleInputChange}\r\n />\r\n </div>\r\n\r\n {isMobile && (\r\n <ImagePickerActions\r\n actionLabel={actionLabel}\r\n changeDisabled={isChangeDisabled}\r\n hasValue={hasValue}\r\n onChange={handleOpen}\r\n onRemove={handleClear}\r\n removeDisabled={isRemoveDisabled}\r\n removeLabel={resolvedLabels.remove}\r\n showRemove={clearable}\r\n />\r\n )}\r\n\r\n {hasDescription && (\r\n <HelperText\r\n id={helperId}\r\n hasError={hasError}\r\n >\r\n {displayedError ?? helperText}\r\n </HelperText>\r\n )}\r\n\r\n {pendingCropFile && (\r\n <ImagePickerCropDialog\r\n file={pendingCropFile}\r\n aspectRatio={resolvedCropAspectRatio}\r\n shape={shape}\r\n labels={resolvedLabels}\r\n onCancel={handleCropCancel}\r\n onConfirm={handleCropConfirm}\r\n />\r\n )}\r\n </div>\r\n )\r\n },\r\n)\r\n\r\nImagePicker.displayName = 'ImagePicker'\r\n\r\nexport default ImagePicker\r\n"],"names":["ImagePicker","memo","value","defaultValue","onValueChange","label","alt","helperText","error","acceptProp","maxSize","onValidationError","disabled","disableChange","disableRemove","required","clearable","isMobile","icon","inputId","name","capture","labels","crop","cropAspectRatio","width","height","aspectRatio","shape","IMAGE_PICKER_SHAPES","objectFit","className","style","ref","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaInvalid","rootProps","generatedId","useId","resolvedInputId","labelId","actionId","helperId","accept","IMAGE_PICKER_DEFAULT_ACCEPT","inputRef","previewUrl","resolvedLabels","validationMessage","hasValue","isChangeDisabled","isRemoveDisabled","isDragging","handleOpen","handleInputChange","handleDragOver","handleDragLeave","handleDrop","handleClear","pendingCropFile","handleCropCancel","handleCropConfirm","useImagePicker","displayedError","hasError","buttonAriaInvalid","hasDescription","actionLabel","previewLabelledBy","describedBy","showDesktopRemove","resolvedCropAspectRatio","resolveImagePickerAspectRatio","rootStyle","previewWrapperStyle","jsxs","cn","IMAGE_PICKER_STYLES","jsx","FormLabel","ImagePickerPreview","ImagePickerRemoveButton","ImagePickerInput","ImagePickerActions","HelperText","ImagePickerCropDialog"],"mappings":";;;;;;;;;;;;;;;AA+CA,MAAMA,KAAcC;AAAA,EAChB,CAAC;AAAA,IACG,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAQC;AAAA,IACR,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,eAAAC,IAAgB;AAAA,IAChB,eAAAC,IAAgB;AAAA,IAChB,UAAAC,IAAW;AAAA,IACX,WAAAC,IAAY;AAAA,IACZ,UAAAC,IAAW;AAAA,I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aAAaY;AAAA,cACb,OAAA7C;AAAA,cACA,QAAQqB;AAAA,cACR,UAAUa;AAAA,cACV,WAAWC;AAAA,YAAA;AAAA,UAAA;AAAA,QACf;AAAA,MAAA;AAAA,IAAA;AAAA,EAIhB;AACJ;AAEA/D,GAAY,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-kit80.css');require('../../../../../ui-kit29.css');require('../../../../../ui-kit28.css');require('../../../../../ui-kit6.css');require('../../../../../ui-kit7.css');require('../../../../../ui-kit9.css');require('../../../../../ui-kit14.css');require('../../../../../ui-kit13.css');require('../../../../../ui-kit3.css');require('../../../../../ui-kit5.css');require('../../../../../ui-kit12.css');require('../../../../../ui-kit4.css');require('../../../../../ui-kit10.css');require('../../../../../ui-kit8.css');require('../../../../../ui-kit11.css');require('../../../../../ui-kit68.css');require('../../../../../ui-kit.css');const e=require("react/jsx-runtime"),Z=require("react-easy-crop"),t=require("react"),g=require("../../../../actions/button/Button.cjs");require("../../../../actions/button/styles/Button.css.cjs");const v=require("../../../slider/Slider.cjs");;/* empty css */;/* empty css */const z=require("../../../_shared/components/helper-text/HelperText.cjs"),G=require("../../../../layout/box/Box.cjs");require("../../../../layout/box/styles/Box.css.cjs");const L=require("../../../../layout/flex/Flex.cjs");require("../../../../layout/flex/styles/Flex.css.cjs");const q=require("./styles/ImagePickerCropDialog.css.cjs"),O=require("../../hooks/useImagePickerCrop.hook.cjs"),o=require("../../../../overlay/dialog/Dialog.cjs");;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const C=require("../../constants/imagePickerShapes.const.cjs"),h=t.memo(({file:x,aspectRatio:i,shape:c,labels:r,onCancel:P,onConfirm:I})=>{const l=t.useId(),u=t.useId(),{imageUrl:d,crop:E,setCrop:S,zoom:p,setZoom:m,croppedAreaPixels:j,handleCropComplete:_,handleMediaLoaded:A,handleMediaError:D,isProcessing:a,cropError:s,handleConfirm:b}=O.useImagePickerCrop({file:x,cropErrorLabel:r.cropError,onConfirm:I}),y=n=>{!n&&!a&&P()},k=typeof i=="number"&&Number.isFinite(i)&&i>0?i:4/3,f=c===C.IMAGE_PICKER_SHAPES.circle?"round":"rect",M=c===C.IMAGE_PICKER_SHAPES.rounded?q.IMAGE_PICKER_CROP_DIALOG_STYLES.roundedCropArea:void 0;return e.jsx(o.Dialog,{open:!0,onOpenChange:y,children:e.jsxs(o.Dialog.Content,{size:"lg","aria-labelledby":l,"aria-describedby":s?u:void 0,children:[e.jsx(o.Dialog.Header,{title:r.crop,titleProps:{id:l},showCloseButton:!1}),e.jsx(o.Dialog.Body,{padding:"lg",children:e.jsxs(L,{flexDirection:"column",gap:"md",children:[e.jsx(G,{className:q.IMAGE_PICKER_CROP_DIALOG_STYLES.viewport,children:d&&e.jsx(Z,{image:d,crop:E,zoom:p,aspect:k,minZoom:1,maxZoom:3,zoomSpeed:.1,cropShape:f,showGrid:!0,roundCropAreaPixels:!0,onCropChange:S,onZoomChange:m,onCropComplete:_,onMediaLoaded:A,mediaProps:{onError:D},cropperProps:{role:"group","aria-label":r.cropArea},classes:{cropAreaClassName:M}})}),e.jsx(v.Slider,{label:r.zoom,value:p,min:1,max:3,step:.1,showValue:!0,onValueChange:n=>{typeof n=="number"&&m(n)}}),s&&e.jsx(z,{id:u,hasError:!0,children:s})]})}),e.jsxs(o.Dialog.Footer,{children:[e.jsx(o.Dialog.Close,{children:e.jsx(g,{type:"button",label:r.cancel,variant:"outlined",color:"primary",disabled:a})}),e.jsx(g,{type:"button",label:r.apply,variant:"contained",color:"primary",disabled:!j||a,onClick:b})]})]})})});h.displayName="ImagePicker.CropDialog";exports.ImagePickerCropDialog=h;
|
|
2
2
|
//# sourceMappingURL=ImagePickerCropDialog.cjs.map
|
|
@@ -4,7 +4,7 @@ import { memo as k, useId as u } from "react";
|
|
|
4
4
|
import h from "../../../../actions/button/Button.js";
|
|
5
5
|
import "../../../../actions/button/styles/Button.css.js";
|
|
6
6
|
import { Slider as w } from "../../../slider/Slider.js";
|
|
7
|
-
import '../../../../../ui-
|
|
7
|
+
import '../../../../../ui-kit80.css';import '../../../../../ui-kit29.css';import '../../../../../ui-kit28.css';import '../../../../../ui-kit6.css';import '../../../../../ui-kit7.css';import '../../../../../ui-kit9.css';import '../../../../../ui-kit14.css';import '../../../../../ui-kit13.css';import '../../../../../ui-kit3.css';import '../../../../../ui-kit5.css';import '../../../../../ui-kit12.css';import '../../../../../ui-kit4.css';import '../../../../../ui-kit10.css';import '../../../../../ui-kit8.css';import '../../../../../ui-kit11.css';import '../../../../../ui-kit68.css';import '../../../../../ui-kit.css';/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import B from "../../../_shared/components/helper-text/HelperText.js";
|
|
10
10
|
import G from "../../../../layout/box/Box.js";
|
|
@@ -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-kit72.css');require('../../../../ui-kit.css');;/* empty css */;/* empty css */const e=require("@vanilla-extract/recipes/createRuntimeFn");var a={root:"_8x2wlj1",wrapper:"_8x2wlj2",preview:e.createRuntimeFn({defaultClassName:"_8x2wlj3",variantClassNames:{shape:{square:"_8x2wlj4",rounded:"_8x2wlj5",circle:"_8x2wlj6"}},defaultVariants:{shape:"rounded"},compoundVariants:[]}),empty:"_8x2wlj7",emptyIcon:"_8x2wlj8",emptyText:"_8x2wlj9",image:"_8x2wlja",scrim:"_8x2wljb",scrimText:"_8x2wljc",removeButton:e.createRuntimeFn({defaultClassName:"_8x2wljd",variantClassNames:{shape:{square:"_8x2wlje",rounded:"_8x2wljf",circle:"_8x2wljg"}},defaultVariants:{shape:"rounded"},compoundVariants:[]}),actions:"_8x2wljh",visuallyHidden:"_8x2wlji",input:"_8x2wljj"};exports.IMAGE_PICKER_STYLES=a;
|
|
2
2
|
//# sourceMappingURL=ImagePicker.css.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '../../../../ui-
|
|
1
|
+
import '../../../../ui-kit72.css';import '../../../../ui-kit.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { createRuntimeFn as a } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
4
|
var t = { root: "_8x2wlj1", wrapper: "_8x2wlj2", preview: a({ defaultClassName: "_8x2wlj3", variantClassNames: { shape: { square: "_8x2wlj4", rounded: "_8x2wlj5", circle: "_8x2wlj6" } }, defaultVariants: { shape: "rounded" }, compoundVariants: [] }), empty: "_8x2wlj7", emptyIcon: "_8x2wlj8", emptyText: "_8x2wlj9", image: "_8x2wlja", scrim: "_8x2wljb", scrimText: "_8x2wljc", removeButton: a({ defaultClassName: "_8x2wljd", variantClassNames: { shape: { square: "_8x2wlje", rounded: "_8x2wljf", circle: "_8x2wljg" } }, defaultVariants: { shape: "rounded" }, compoundVariants: [] }), actions: "_8x2wljh", visuallyHidden: "_8x2wlji", input: "_8x2wljj" };
|
|
@@ -68,7 +68,10 @@ export type ImagePickerProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' |
|
|
|
68
68
|
* provided, or `4 / 3`.
|
|
69
69
|
*/
|
|
70
70
|
cropAspectRatio?: number;
|
|
71
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* CSS width of the picker preview. On mobile, action buttons use the
|
|
73
|
+
* available width of the parent container. @default '100%'
|
|
74
|
+
*/
|
|
72
75
|
width?: CSSProperties['width'];
|
|
73
76
|
/** CSS height of the preview surface. Ignored when `shape` is `circle`. */
|
|
74
77
|
height?: CSSProperties['height'];
|
|
@@ -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-kit143.css');;/* empty css */var e={group:"c0w2cl0"};exports.NUMBER_FIELD_INPUT_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=NumberFieldInput.css.cjs.map
|
|
@@ -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-kit161.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-kit161.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-kit94.css');;/* empty css */var e={root:"_1g01svz0"};exports.NUMBER_FIELD_STYLES=e;
|
|
2
2
|
//# sourceMappingURL=NumberField.css.cjs.map
|
|
@@ -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-kit102.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-kit102.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-kit98.css');require('../../../ui-kit24.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 */;/* 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":q,"aria-labelledby":p,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:q,ariaLabelledBy:p}),h={editor:o,disabled:l,readOnly:T,onImageUpload:_,label:s,helperText:c,error:u,ariaLabel:q,ariaLabelledBy:p,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-kit98.css';import '../../../ui-kit24.css';import '../../../ui-kit2.css';import '../../../ui-kit.css';/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
/* empty css */
|