@povio/ui 3.3.0 → 3.4.0-rc.10
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/assets/locales/en/translation.json.d.ts +158 -0
- package/dist/assets/locales/sl/translation.json.d.ts +154 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +4 -4
- package/dist/components/Menu/MenuMobile.js +5 -5
- package/dist/components/Menu/MenuPopover.js +2 -2
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +95 -102
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +1 -2
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +111 -115
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +17 -22
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +17 -23
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +21 -25
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +225 -238
- package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +7 -10
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -12
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -16
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +4 -5
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +10 -11
- package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.d.ts +1 -1
- package/dist/components/inputs/File/FileUpload.js +20 -20
- package/dist/components/inputs/File/InputUpload.d.ts +1 -1
- package/dist/components/inputs/File/InputUpload.js +19 -19
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- package/dist/components/inputs/File/inputUpload.types.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -5
- package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +109 -107
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +265 -254
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +25 -24
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +2 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +118 -117
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/Input/TextInput/TextInput.js +129 -129
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +50 -48
- package/dist/components/inputs/Inputs/Form.d.ts +4 -4
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +22 -22
- package/dist/components/inputs/Inputs/InputItem.js +36 -37
- package/dist/components/inputs/Inputs/Inputs.d.ts +2 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.js +109 -113
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +16 -16
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +20 -20
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +20 -20
- package/dist/components/inputs/Selection/Select/Select.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +23 -23
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +34 -37
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +58 -56
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +57 -56
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +5 -4
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/select.context.js +5 -9
- package/dist/components/inputs/Selection/shared/select.types.d.ts +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +10 -7
- package/dist/components/inputs/Slider/Slider.d.ts +1 -1
- package/dist/components/inputs/Slider/Slider.js +20 -20
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +20 -20
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +5 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -2
- package/dist/components/inputs/Toggle/Toggle.js +61 -65
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +45 -28
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/form.binding.d.ts +27 -0
- package/dist/components/inputs/shared/form.binding.js +57 -0
- package/dist/components/inputs/shared/form.types.d.ts +9 -8
- package/dist/components/inputs/shared/form.types.js +8 -0
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +4 -4
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
- package/dist/components/overlays/Drawer/Drawer.js +2 -2
- package/dist/components/overlays/Modal/Modal.js +3 -3
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +15 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.d.ts +1 -1
- package/dist/components/segment/Segment.js +21 -21
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/segment/segment.types.d.ts +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/Table.js +6 -8
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -3
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/theme.context.js +1 -1
- package/dist/config/uiConfig.context.d.ts +14 -5
- package/dist/config/uiConfig.context.js +9 -11
- package/dist/config/uiOverrides.context.js +2 -2
- package/dist/helpers/dynamicColumns.d.ts +1 -1
- package/dist/helpers/dynamicInputs.d.ts +7 -7
- package/dist/hooks/useAutosave.d.ts +4 -4
- package/dist/hooks/useAutosave.js +64 -49
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.d.ts +39 -15
- package/dist/hooks/useForm.js +96 -43
- package/dist/hooks/useFormAutosave.d.ts +8 -9
- package/dist/hooks/useFormAutosave.js +23 -9
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.js +1 -1
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/index.d.ts +1 -263
- package/dist/index.js +11 -71
- package/dist/rhf/Inputs.d.ts +60 -0
- package/dist/rhf/Inputs.js +148 -0
- package/dist/rhf/components.d.ts +80 -0
- package/dist/rhf/components.js +101 -0
- package/dist/rhf/dynamicInputs.d.ts +18 -0
- package/dist/rhf/dynamicInputs.js +5 -0
- package/dist/rhf/fieldAdapter.d.ts +7 -0
- package/dist/rhf/fieldAdapter.js +40 -0
- package/dist/rhf/form.types.d.ts +12 -0
- package/dist/rhf/useAutosave.d.ts +10 -0
- package/dist/rhf/useAutosave.js +71 -0
- package/dist/rhf/useForm.d.ts +18 -0
- package/dist/rhf/useForm.js +48 -0
- package/dist/rhf/useFormAutosave.d.ts +15 -0
- package/dist/rhf/useFormAutosave.js +59 -0
- package/dist/rhf.d.ts +225 -0
- package/dist/tanstack.d.ts +224 -0
- package/dist/tanstack.js +141 -0
- package/package.json +15 -3
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
- /package/dist/{hooks/useAutosave.spec.d.ts → rhf/entrypoints.type-test.d.ts} +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"ui": {
|
|
3
|
+
"openAlt": "Open",
|
|
4
|
+
"closeAlt": "Close",
|
|
5
|
+
"clearAlt": "Clear",
|
|
6
|
+
"loadingState": {
|
|
7
|
+
"text": "Loading..."
|
|
8
|
+
},
|
|
9
|
+
"select": {
|
|
10
|
+
"closeAlt": "Close the menu",
|
|
11
|
+
"selectAll": "Select all",
|
|
12
|
+
"clearSelection": "Clear",
|
|
13
|
+
"allOption": "All",
|
|
14
|
+
"search": "Search",
|
|
15
|
+
"clearSearch": "Clear search"
|
|
16
|
+
},
|
|
17
|
+
"datePicker": {
|
|
18
|
+
"today": "Today",
|
|
19
|
+
"clear": "Clear",
|
|
20
|
+
"save": "Save",
|
|
21
|
+
"presets": {
|
|
22
|
+
"thisWeek": "This week",
|
|
23
|
+
"lastWeek": "Last week",
|
|
24
|
+
"thisAndLastWeek": "This & Last week",
|
|
25
|
+
"thisMonth": "This month",
|
|
26
|
+
"thisAndLastMonth": "This & Last month",
|
|
27
|
+
"thisYear": "This year",
|
|
28
|
+
"lastYear": "Last year",
|
|
29
|
+
"thisAndLastYear": "This & Last year",
|
|
30
|
+
"soFar": "So far"
|
|
31
|
+
},
|
|
32
|
+
"navigation": {
|
|
33
|
+
"previousMonth": "Previous month",
|
|
34
|
+
"nextMonth": "Next month",
|
|
35
|
+
"previousYear": "Previous year",
|
|
36
|
+
"nextYear": "Next year"
|
|
37
|
+
},
|
|
38
|
+
"errors": {
|
|
39
|
+
"endDateBeforeStart": "End date cannot be before start date"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"modal": {
|
|
43
|
+
"closeBtn": "Close"
|
|
44
|
+
},
|
|
45
|
+
"autocomplete": {
|
|
46
|
+
"createNewBtn": "Create"
|
|
47
|
+
},
|
|
48
|
+
"password": {
|
|
49
|
+
"reveal": "Reveal password",
|
|
50
|
+
"hide": "Hide password"
|
|
51
|
+
},
|
|
52
|
+
"textEditor": {
|
|
53
|
+
"textStyle": {
|
|
54
|
+
"label": "Text style",
|
|
55
|
+
"normal": "Normal text",
|
|
56
|
+
"heading1": "Heading 1",
|
|
57
|
+
"heading2": "Heading 2",
|
|
58
|
+
"heading3": "Heading 3",
|
|
59
|
+
"heading4": "Heading 4",
|
|
60
|
+
"heading5": "Heading 5",
|
|
61
|
+
"heading6": "Heading 6"
|
|
62
|
+
},
|
|
63
|
+
"marks": {
|
|
64
|
+
"bold": "Bold",
|
|
65
|
+
"italic": "Italic",
|
|
66
|
+
"underline": "Underline",
|
|
67
|
+
"strikethrough": "Strikethrough"
|
|
68
|
+
},
|
|
69
|
+
"textAlign": {
|
|
70
|
+
"label": "Text align",
|
|
71
|
+
"left": "Left",
|
|
72
|
+
"center": "Center",
|
|
73
|
+
"right": "Right",
|
|
74
|
+
"justify": "Justify"
|
|
75
|
+
},
|
|
76
|
+
"link": {
|
|
77
|
+
"label": "Hyperlink",
|
|
78
|
+
"apply": "Apply",
|
|
79
|
+
"remove": "Remove",
|
|
80
|
+
"urlLabel": "URL",
|
|
81
|
+
"urlPlaceholder": "Enter the URL"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"tag": {
|
|
85
|
+
"dismiss": "Dismiss"
|
|
86
|
+
},
|
|
87
|
+
"clearInput": "Clear input",
|
|
88
|
+
"pagination": {
|
|
89
|
+
"nextBtn": "Next",
|
|
90
|
+
"backBtn": "Previous",
|
|
91
|
+
"firstBtn": "First",
|
|
92
|
+
"lastBtn": "Last",
|
|
93
|
+
"resultsPerPage": "Results per page"
|
|
94
|
+
},
|
|
95
|
+
"confirmation": {
|
|
96
|
+
"cancel": "Cancel",
|
|
97
|
+
"confirm": "Confirm"
|
|
98
|
+
},
|
|
99
|
+
"fileUpload": {
|
|
100
|
+
"emptyText": "Upload file",
|
|
101
|
+
"uploadText": "Drag & drop files here or",
|
|
102
|
+
"browse": "Browse",
|
|
103
|
+
"noFileUploaded": "No file uploaded",
|
|
104
|
+
"upload": "Upload",
|
|
105
|
+
"uploadFile": "Upload file",
|
|
106
|
+
"or": "or",
|
|
107
|
+
"removeFile": "Remove file",
|
|
108
|
+
"cancel": "Cancel"
|
|
109
|
+
},
|
|
110
|
+
"table": {
|
|
111
|
+
"column": "Column",
|
|
112
|
+
"show": "Show",
|
|
113
|
+
"configureColumns": "Configure columns"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"zodErrors": {
|
|
117
|
+
"required": "Required",
|
|
118
|
+
"invalid": "Invalid",
|
|
119
|
+
"string": {
|
|
120
|
+
"includes": "Must include \"{{text}}\"",
|
|
121
|
+
"startsWith": "Must start with \"{{text}}\"",
|
|
122
|
+
"endsWith": "Must end with \"{{text}}\"",
|
|
123
|
+
"constraint": "Invalid {{text}}",
|
|
124
|
+
"contains": "Must contain exactly {{count}} character(s)",
|
|
125
|
+
"containsAtLeast": "Must contain at least {{count}} character(s)",
|
|
126
|
+
"containsOver": "Must contain over {{count}} character(s)",
|
|
127
|
+
"containsAtMost": "Must contain at most {{count}} character(s)",
|
|
128
|
+
"containsUnder": "Must contain under {{count}} character(s)"
|
|
129
|
+
},
|
|
130
|
+
"array": {
|
|
131
|
+
"contains": "Array must contain exactly {{count}} element(s)",
|
|
132
|
+
"containsAtLeast": "Array must contain at least {{count}} element(s)",
|
|
133
|
+
"containsMoreThan": "Array must contain more than {{count}} element(s)",
|
|
134
|
+
"containsAtMost": "Array must contain at most {{count}} element(s)",
|
|
135
|
+
"containsLessThan": "Array must contain less than {{count}} element(s)"
|
|
136
|
+
},
|
|
137
|
+
"number": {
|
|
138
|
+
"exact": "Number must be exactly equal to {{number}}",
|
|
139
|
+
"greaterThanOrEqual": "Number must be greater than or equal to {{number}}",
|
|
140
|
+
"greaterThan": "Number must be greater than {{number}}",
|
|
141
|
+
"over": "Number must be over {{number}}",
|
|
142
|
+
"lessThanOrEqual": "Number must be less than or equal to {{number}}",
|
|
143
|
+
"lessThan": "Number must be less than {{number}}",
|
|
144
|
+
"multipleOf": "Number must be a multiple of {{multipleOf}}"
|
|
145
|
+
},
|
|
146
|
+
"date": {
|
|
147
|
+
"invalid": "Invalid date",
|
|
148
|
+
"exact": "Date must be exactly equal to {{date}}",
|
|
149
|
+
"greaterThanOrEqual": "Date must be greater than or equal to {{date}}",
|
|
150
|
+
"greaterThan": "Date must be greater than {{date}}",
|
|
151
|
+
"smallerThanOrEqual": "Date must be smaller than or equal to {{date}}",
|
|
152
|
+
"smallerThan": "Date must be smaller than {{date}}"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
;
|
|
157
|
+
|
|
158
|
+
export default _default;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"ui": {
|
|
3
|
+
"openAlt": "Odpri",
|
|
4
|
+
"closeAlt": "Zapri",
|
|
5
|
+
"clearAlt": "Sprazni",
|
|
6
|
+
"loadingState": {
|
|
7
|
+
"text": "Nalaganje..."
|
|
8
|
+
},
|
|
9
|
+
"select": {
|
|
10
|
+
"closeAlt": "Zapri meni",
|
|
11
|
+
"selectAll": "Izberi vse",
|
|
12
|
+
"clearSelection": "Sprazni",
|
|
13
|
+
"allOption": "Vse",
|
|
14
|
+
"search": "Išči",
|
|
15
|
+
"clearSearch": "Sprazni iskanje"
|
|
16
|
+
},
|
|
17
|
+
"datePicker": {
|
|
18
|
+
"today": "Danes",
|
|
19
|
+
"clear": "Sprazni",
|
|
20
|
+
"save": "Shrani",
|
|
21
|
+
"presets": {
|
|
22
|
+
"thisWeek": "Ta teden",
|
|
23
|
+
"lastWeek": "Prejšnji teden",
|
|
24
|
+
"thisAndLastWeek": "Ta in prejšnji teden",
|
|
25
|
+
"thisMonth": "Ta mesec",
|
|
26
|
+
"thisAndLastMonth": "Ta in prejšnji mesec",
|
|
27
|
+
"thisYear": "To leto",
|
|
28
|
+
"lastYear": "Prejšnje leto",
|
|
29
|
+
"thisAndLastYear": "To in prejšnje leto",
|
|
30
|
+
"soFar": "Od začetka"
|
|
31
|
+
},
|
|
32
|
+
"navigation": {
|
|
33
|
+
"previousMonth": "Prejšnji mesec",
|
|
34
|
+
"nextMonth": "Naslednji mesec",
|
|
35
|
+
"previousYear": "Prejšnje leto",
|
|
36
|
+
"nextYear": "Naslednje leto"
|
|
37
|
+
},
|
|
38
|
+
"errors": {
|
|
39
|
+
"endDateBeforeStart": "Datum konca ne more biti pred datumom začetka"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"modal": {
|
|
43
|
+
"closeBtn": "Zapri"
|
|
44
|
+
},
|
|
45
|
+
"autocomplete": {
|
|
46
|
+
"createNewBtn": "Ustvari"
|
|
47
|
+
},
|
|
48
|
+
"password": {
|
|
49
|
+
"reveal": "Prikaži geslo",
|
|
50
|
+
"hide": "Skrij geslo"
|
|
51
|
+
},
|
|
52
|
+
"textEditor": {
|
|
53
|
+
"textStyle": {
|
|
54
|
+
"label": "Vrsta besedila",
|
|
55
|
+
"normal": "Normalni tekst",
|
|
56
|
+
"heading1": "Naslov 1",
|
|
57
|
+
"heading2": "Naslov 2",
|
|
58
|
+
"heading3": "Naslov 3",
|
|
59
|
+
"heading4": "Naslov 4",
|
|
60
|
+
"heading5": "Naslov 5",
|
|
61
|
+
"heading6": "Naslov 6"
|
|
62
|
+
},
|
|
63
|
+
"marks": {
|
|
64
|
+
"bold": "Krepko",
|
|
65
|
+
"italic": "Poševno",
|
|
66
|
+
"underline": "Podčrtano",
|
|
67
|
+
"strikethrough": "Prečrtano"
|
|
68
|
+
},
|
|
69
|
+
"textAlign": {
|
|
70
|
+
"label": "Poravnava besedila",
|
|
71
|
+
"left": "Levo",
|
|
72
|
+
"center": "Sredina",
|
|
73
|
+
"right": "Desno",
|
|
74
|
+
"justify": "Obojestransko"
|
|
75
|
+
},
|
|
76
|
+
"link": {
|
|
77
|
+
"label": "Povezava",
|
|
78
|
+
"apply": "Ustvari",
|
|
79
|
+
"remove": "Odstrani",
|
|
80
|
+
"urlLabel": "URL",
|
|
81
|
+
"urlPlaceholder": "Vnesite URL"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"pagination": {
|
|
85
|
+
"nextBtn": "Naprej",
|
|
86
|
+
"backBtn": "Nazaj",
|
|
87
|
+
"firstBtn": "Prva",
|
|
88
|
+
"lastBtn": "Zadnja",
|
|
89
|
+
"resultsPerPage": "Rezultatov na stran"
|
|
90
|
+
},
|
|
91
|
+
"confirmation": {
|
|
92
|
+
"cancel": "Prekliči",
|
|
93
|
+
"confirm": "Potrdi"
|
|
94
|
+
},
|
|
95
|
+
"fileUpload": {
|
|
96
|
+
"emptyText": "Naloži datoteko",
|
|
97
|
+
"uploadText": "Povlecite datoteke sem ali",
|
|
98
|
+
"browse": "Izberi",
|
|
99
|
+
"noFileUploaded": "Ni datotek",
|
|
100
|
+
"upload": "Naloži",
|
|
101
|
+
"uploadFile": "Naloži datoteko",
|
|
102
|
+
"or": "ali",
|
|
103
|
+
"removeFile": "Odstrani datoteko",
|
|
104
|
+
"cancel": "Prekliči"
|
|
105
|
+
},
|
|
106
|
+
"table": {
|
|
107
|
+
"column": "Stolpec",
|
|
108
|
+
"show": "Prikaži",
|
|
109
|
+
"configureColumns": "Nastavi stolpce"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"zodErrors": {
|
|
113
|
+
"required": "Obvezno",
|
|
114
|
+
"invalid": "Neveljavno",
|
|
115
|
+
"string": {
|
|
116
|
+
"includes": "Mora vključevati \"{{text}}\"",
|
|
117
|
+
"startsWith": "Se mora začeti z \"{{text}}\"",
|
|
118
|
+
"endsWith": "Se mora končati z \"{{text}}\"",
|
|
119
|
+
"constraint": "Neveljaven {{text}}",
|
|
120
|
+
"contains": "Mora vsebovati natančno {{count}} znak(ov)",
|
|
121
|
+
"containsAtLeast": "Mora vsebovati vsaj {{count}} znak(ov)",
|
|
122
|
+
"containsOver": "Mora vsebovati več kot {{count}} znak(ov)",
|
|
123
|
+
"containsAtMost": "Mora vsebovati največ {{count}} znak(ov)",
|
|
124
|
+
"containsUnder": "Mora vsebovati manj kot {{count}} znak(ov)"
|
|
125
|
+
},
|
|
126
|
+
"array": {
|
|
127
|
+
"contains": "Polje mora vsebovati natančno {{count}} element(ov)",
|
|
128
|
+
"containsAtLeast": "Polje mora vsebovati vsaj {{count}} element(ov)",
|
|
129
|
+
"containsMoreThan": "Polje mora vsebovati več kot {{count}} element(ov)",
|
|
130
|
+
"containsAtMost": "Polje mora vsebovati največ {{count}} element(ov)",
|
|
131
|
+
"containsLessThan": "Polje mora vsebovati manj kot {{count}} element(ov)"
|
|
132
|
+
},
|
|
133
|
+
"number": {
|
|
134
|
+
"exact": "Število mora biti natančno enako {{number}}",
|
|
135
|
+
"greaterThanOrEqual": "Število mora biti večje ali enako {{number}}",
|
|
136
|
+
"greaterThan": "Število mora biti večje od {{number}}",
|
|
137
|
+
"over": "Število mora biti nad {{number}}",
|
|
138
|
+
"lessThanOrEqual": "Število mora biti manjše ali enako {{number}}",
|
|
139
|
+
"lessThan": "Število mora biti manjše od {{number}}",
|
|
140
|
+
"multipleOf": "Število mora biti večkratnik števila {{multipleOf}}"
|
|
141
|
+
},
|
|
142
|
+
"date": {
|
|
143
|
+
"invalid": "Neveljaven datum",
|
|
144
|
+
"exact": "Datum mora biti natančno enak {{date}}",
|
|
145
|
+
"greaterThanOrEqual": "Datum mora biti večji ali enak {{date}}",
|
|
146
|
+
"greaterThan": "Datum mora biti večji od {{date}}",
|
|
147
|
+
"smallerThanOrEqual": "Datum mora biti manjši ali enak {{date}}",
|
|
148
|
+
"smallerThan": "Datum mora biti manjši od {{date}}"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
;
|
|
153
|
+
|
|
154
|
+
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ChevronRightIcon } from "../../assets/icons/ChevronRight.js";
|
|
2
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition } from "./breadcrumbs.cva.js";
|
|
4
3
|
import { MenuDesktop } from "../Menu/MenuDesktop.js";
|
|
5
4
|
import { Typography } from "../text/Typography/Typography.js";
|
|
6
5
|
import { Tooltip as Tooltip$1 } from "../overlays/Tooltip/Tooltip.js";
|
|
7
6
|
import { LinkContext } from "../../config/link.context.js";
|
|
8
|
-
import {
|
|
7
|
+
import { ChevronRight } from "lucide-react";
|
|
9
8
|
import { clsx } from "clsx";
|
|
10
9
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
11
|
-
import { Breadcrumb, Breadcrumbs, Button, Link } from "react-aria-components";
|
|
10
|
+
import { Breadcrumb, Breadcrumbs, Button, Link as Link$1 } from "react-aria-components";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
13
13
|
var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false }) => {
|
|
14
14
|
const breadcrumbsCva = UIOverrides.useCva("breadcrumbs.cva", breadcrumbsDefinition);
|
|
@@ -35,7 +35,7 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
35
35
|
const hiddenItems = items.length > 2 ? items.slice(1, -1) : [];
|
|
36
36
|
const firstItem = items[0];
|
|
37
37
|
const lastItem = items[items.length - 1];
|
|
38
|
-
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link;
|
|
38
|
+
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link$1;
|
|
39
39
|
const renderBreadcrumbLink = (item, isCurrent, iconOnly) => /* @__PURE__ */ jsxs(LinkComponent, {
|
|
40
40
|
...item.link,
|
|
41
41
|
className: breadcrumbItem({ isCurrent }),
|
|
@@ -80,12 +80,12 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
80
80
|
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
81
81
|
id: firstItem.id,
|
|
82
82
|
className: breadcrumbSegmentCva({}),
|
|
83
|
-
children: [renderBreadcrumbLink(firstItem, false, iconOnly_0), /* @__PURE__ */ jsx(
|
|
83
|
+
children: [renderBreadcrumbLink(firstItem, false, iconOnly_0), /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })]
|
|
84
84
|
}),
|
|
85
85
|
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
86
86
|
id: "ellipsis",
|
|
87
87
|
className: breadcrumbSegmentCva({}),
|
|
88
|
-
children: [renderEllipsis(), /* @__PURE__ */ jsx(
|
|
88
|
+
children: [renderEllipsis(), /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })]
|
|
89
89
|
}),
|
|
90
90
|
/* @__PURE__ */ jsx(Breadcrumb, {
|
|
91
91
|
id: lastItem.id,
|
|
@@ -104,7 +104,7 @@ var Breadcrumbs$1 = ({ items, className, onAction, iconOnly: iconOnly_0 = false
|
|
|
104
104
|
children: (item_1) => /* @__PURE__ */ jsx(Breadcrumb, {
|
|
105
105
|
id: item_1.id,
|
|
106
106
|
className: breadcrumbSegmentCva({}),
|
|
107
|
-
children: ({ isCurrent: isCurrent_0 }) => /* @__PURE__ */ jsxs(Fragment, { children: [renderBreadcrumbLink(item_1, isCurrent_0, iconOnly_0 && item_1 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(
|
|
107
|
+
children: ({ isCurrent: isCurrent_0 }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [renderBreadcrumbLink(item_1, isCurrent_0, iconOnly_0 && item_1 === items[0]), !isCurrent_0 && /* @__PURE__ */ jsx(ChevronRight, { className: breadcrumbChevronCva({}) })] })
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuPopover } from "./MenuPopover.js";
|
|
2
|
+
import { MenuTrigger } from "react-aria-components";
|
|
2
3
|
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { MenuTrigger } from "react-aria-components";
|
|
5
5
|
//#region src/components/Menu/MenuDesktop.tsx
|
|
6
6
|
var MenuDesktop = (t0) => {
|
|
7
7
|
const $ = c(12);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ArrowRightIcon } from "../../assets/icons/ArrowRight.js";
|
|
2
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { menuItemDefinition } from "./menu.cva.js";
|
|
4
|
-
import {
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ArrowRight } from "lucide-react";
|
|
6
4
|
import { clsx } from "clsx";
|
|
7
5
|
import { MenuItem } from "react-aria-components";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Menu/MenuItem.tsx
|
|
9
9
|
var MenuItem$1 = (t0) => {
|
|
10
10
|
const $ = c(9);
|
|
@@ -19,7 +19,7 @@ var MenuItem$1 = (t0) => {
|
|
|
19
19
|
const t2 = content ?? label;
|
|
20
20
|
let t3;
|
|
21
21
|
if ($[0] !== hasSubmenu) {
|
|
22
|
-
t3 = hasSubmenu && /* @__PURE__ */ jsx(
|
|
22
|
+
t3 = hasSubmenu && /* @__PURE__ */ jsx(ArrowRight, { className: "size-6" });
|
|
23
23
|
$[0] = hasSubmenu;
|
|
24
24
|
$[1] = t3;
|
|
25
25
|
} else t3 = $[1];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ArrowLeftIcon } from "../../assets/icons/ArrowLeft.js";
|
|
2
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
2
|
import { menuDefinition, menuItemDefinition } from "./menu.cva.js";
|
|
4
3
|
import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
5
4
|
import { BottomSheet } from "../overlays/BottomSheet/BottomSheet.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { ArrowLeft } from "lucide-react";
|
|
8
6
|
import { clsx } from "clsx";
|
|
9
7
|
import { useRef, useState } from "react";
|
|
10
8
|
import { Button, Menu } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/Menu/MenuMobile.tsx
|
|
12
12
|
var MenuMobile = (t0) => {
|
|
13
13
|
const $ = c(23);
|
|
@@ -84,13 +84,13 @@ var MenuMobile = (t0) => {
|
|
|
84
84
|
const onBack = t4;
|
|
85
85
|
let t5;
|
|
86
86
|
if ($[11] !== activeItem || $[12] !== handleAction || $[13] !== items || $[14] !== menuCva || $[15] !== menuItemCva || $[16] !== props) {
|
|
87
|
-
t5 = () => /* @__PURE__ */ jsxs(Fragment, { children: [activeItem && /* @__PURE__ */ jsxs(Button, {
|
|
87
|
+
t5 = () => /* @__PURE__ */ jsxs(Fragment$1, { children: [activeItem && /* @__PURE__ */ jsxs(Button, {
|
|
88
88
|
className: clsx(menuItemCva({
|
|
89
89
|
...props,
|
|
90
90
|
isMobile: true
|
|
91
91
|
})),
|
|
92
92
|
onPress: onBack,
|
|
93
|
-
children: [/* @__PURE__ */ jsx(
|
|
93
|
+
children: [/* @__PURE__ */ jsx(ArrowLeft, { className: "size-6" }), activeItem.label]
|
|
94
94
|
}), /* @__PURE__ */ jsx("div", {
|
|
95
95
|
onClickCapture: (e) => {
|
|
96
96
|
lastEventRef.current = e;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
2
2
|
import { menuDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition } from "./menu.cva.js";
|
|
3
3
|
import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
import { useRef } from "react";
|
|
7
5
|
import { Menu, Popover, SubmenuTrigger } from "react-aria-components";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/Menu/MenuPopover.tsx
|
|
9
9
|
var MenuPopover = (t0) => {
|
|
10
10
|
const $ = c(28);
|
|
@@ -3,9 +3,9 @@ import { LinkContext } from "../../../config/link.context.js";
|
|
|
3
3
|
import { ButtonContent } from "../shared/ButtonContent.js";
|
|
4
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
5
|
import { buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, buttonTypography } from "./button.cva.js";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { Button, Link, ToggleButton } from "react-aria-components";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/buttons/Button/Button.tsx
|
|
10
10
|
var Button$1 = ({ icon: Icon, iconPosition, children, isLoading, className, link, iconClassName, noDisableWhenLoading, contentRef, ...props }) => {
|
|
11
11
|
const linkContext = LinkContext.useLinkContext();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { ButtonContent } from "../shared/ButtonContent.js";
|
|
4
3
|
import { pillButtonContent, pillButtonDefinition, pillButtonIconSize, pillButtonTypography } from "./pillButton.cva.js";
|
|
5
|
-
import {
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { X } from "lucide-react";
|
|
7
5
|
import { clsx } from "clsx";
|
|
8
6
|
import { Button, ToggleButton } from "react-aria-components";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/buttons/PillButton/PillButton.tsx
|
|
10
10
|
var PillButton = (t0) => {
|
|
11
11
|
const $ = c(17);
|
|
@@ -30,7 +30,7 @@ var PillButton = (t0) => {
|
|
|
30
30
|
className: props.className
|
|
31
31
|
}), pillButtonContent({ iconPosition: getIconPosition() }));
|
|
32
32
|
const T0 = ButtonContent;
|
|
33
|
-
const t3 = dismissable ?
|
|
33
|
+
const t3 = dismissable ? X : icon;
|
|
34
34
|
const t4 = dismissable ? "right" : iconPosition;
|
|
35
35
|
const t5 = pillButtonIconSize;
|
|
36
36
|
const t6 = pillButtonTypographyMap({ ...props });
|
|
@@ -31,7 +31,7 @@ export declare const pillButtonContentDefinition: {
|
|
|
31
31
|
}>;
|
|
32
32
|
};
|
|
33
33
|
export declare const pillButtonContent: (props?: ({
|
|
34
|
-
readonly iconPosition?: "
|
|
34
|
+
readonly iconPosition?: "left" | "right" | "none" | null | undefined;
|
|
35
35
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
36
36
|
export declare const pillButtonIconSize: string;
|
|
37
37
|
export declare const pillButtonTypography: (props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
2
1
|
import { Button } from "../Button/Button.js";
|
|
3
2
|
import { IconButton } from "../IconButton/IconButton.js";
|
|
4
3
|
import { Menu } from "../../Menu/Menu.js";
|
|
4
|
+
import { ChevronDown } from "lucide-react";
|
|
5
|
+
import { clsx } from "clsx";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { clsx } from "clsx";
|
|
8
8
|
//#region src/components/buttons/SplitButton/SplitButton.tsx
|
|
9
9
|
var SplitButton = (t0) => {
|
|
10
10
|
const $ = c(36);
|
|
@@ -85,7 +85,7 @@ var SplitButton = (t0) => {
|
|
|
85
85
|
variant,
|
|
86
86
|
color,
|
|
87
87
|
label: labelRight,
|
|
88
|
-
icon:
|
|
88
|
+
icon: ChevronDown,
|
|
89
89
|
className: "rounded-l-none! border-l-0!",
|
|
90
90
|
isDisabled: t3
|
|
91
91
|
});
|
|
@@ -2,9 +2,9 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { typographyDefinition } from "../../text/Typography/typography.cva.js";
|
|
3
3
|
import { buttonContentLabel } from "./buttonContent.cva.js";
|
|
4
4
|
import { Loader } from "../../status/Loader/Loader.js";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { isValidElement } from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/buttons/shared/ButtonContent.tsx
|
|
9
9
|
var ButtonContent = ({ ref, content, isLoading, icon: Icon, iconClassName, hideText, iconPosition = "left", typography: typographyOverrides }) => {
|
|
10
10
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
@@ -17,7 +17,7 @@ var ButtonContent = ({ ref, content, isLoading, icon: Icon, iconClassName, hideT
|
|
|
17
17
|
variant: "prominent-1",
|
|
18
18
|
...typographyOverrides
|
|
19
19
|
};
|
|
20
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
21
21
|
iconOrLoader && iconPosition === "left" && iconOrLoader,
|
|
22
22
|
/* @__PURE__ */ jsx("span", {
|
|
23
23
|
className: clsx(typographyCva({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonContentConfig } from '../Button/button.cva';
|
|
2
2
|
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
3
3
|
export declare const buttonContentLabel: (props?: ({
|
|
4
|
-
iconPosition?: "
|
|
4
|
+
iconPosition?: "left" | "right" | "none" | null | undefined;
|
|
5
5
|
hideText?: boolean | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonContentVariantProps extends UIOverrides.VariantProps<ButtonContentConfig> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType, ReactElement, Ref, SVGProps } from 'react';
|
|
2
2
|
import { CheckboxProps as AriaCheckboxProps } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../shared/form.binding';
|
|
4
4
|
import { CheckboxVariantProps } from './checkbox.cva';
|
|
5
5
|
import { FormFieldErrorProps } from '../FormField/FormFieldError';
|
|
6
6
|
import { ControlProps } from '../shared/form.types';
|
|
@@ -9,7 +9,6 @@ export interface CheckboxBaseProps extends FormFieldErrorProps, CheckboxVariantP
|
|
|
9
9
|
children: string | ReactElement;
|
|
10
10
|
hideLabel?: boolean;
|
|
11
11
|
hideError?: boolean;
|
|
12
|
-
fireBlurOnChange?: boolean;
|
|
13
12
|
selectedIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
14
13
|
indeterminateIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
15
14
|
isDirty?: boolean;
|