@povio/ui 2.3.2-rc.3 → 2.3.3
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/icons/AlignCenter.js +11 -26
- package/dist/assets/icons/AlignLeft.js +11 -26
- package/dist/assets/icons/AlignLeftRight.js +11 -26
- package/dist/assets/icons/AlignRight.js +11 -26
- package/dist/assets/icons/ArrowDropDown.js +11 -26
- package/dist/assets/icons/ArrowDropUp.js +11 -26
- package/dist/assets/icons/ArrowLeft.js +11 -26
- package/dist/assets/icons/ArrowRight.js +11 -26
- package/dist/assets/icons/Bold.js +11 -26
- package/dist/assets/icons/BulletedList.js +11 -26
- package/dist/assets/icons/Calendar.js +13 -28
- package/dist/assets/icons/Check.js +13 -28
- package/dist/assets/icons/CheckCircle.js +11 -26
- package/dist/assets/icons/CheckboxCheckmark.js +14 -29
- package/dist/assets/icons/CheckboxIndeterminate.js +14 -29
- package/dist/assets/icons/ChevronDown.js +13 -28
- package/dist/assets/icons/ChevronLeft.js +13 -28
- package/dist/assets/icons/ChevronRight.js +13 -28
- package/dist/assets/icons/ChevronUp.js +13 -28
- package/dist/assets/icons/ChevronsLeft.js +13 -28
- package/dist/assets/icons/ChevronsRight.js +13 -28
- package/dist/assets/icons/Clock.js +11 -26
- package/dist/assets/icons/Close.js +11 -26
- package/dist/assets/icons/DateTime.js +14 -35
- package/dist/assets/icons/DragIndicator.js +11 -26
- package/dist/assets/icons/File.js +13 -28
- package/dist/assets/icons/Highlight.js +11 -26
- package/dist/assets/icons/HighlightOn.js +15 -49
- package/dist/assets/icons/Home.js +11 -26
- package/dist/assets/icons/Info.js +16 -37
- package/dist/assets/icons/Italic.js +11 -26
- package/dist/assets/icons/Link.js +11 -26
- package/dist/assets/icons/Menu.js +11 -26
- package/dist/assets/icons/NumberedList.js +11 -26
- package/dist/assets/icons/PointerHorizontal.js +11 -26
- package/dist/assets/icons/PointerVertical.js +11 -26
- package/dist/assets/icons/Search.js +11 -26
- package/dist/assets/icons/Send.js +13 -28
- package/dist/assets/icons/Strikethrough.js +11 -26
- package/dist/assets/icons/TextColor.js +14 -48
- package/dist/assets/icons/Today.js +11 -26
- package/dist/assets/icons/Underlined.js +13 -28
- package/dist/assets/icons/Upload.js +14 -35
- package/dist/assets/icons/Visibility.js +11 -26
- package/dist/assets/icons/VisibilityOff.js +11 -26
- package/dist/assets/icons/WarningFilled.js +13 -28
- package/dist/assets/locales/sl/translation.json.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js +56 -207
- package/dist/components/Menu/Menu.js +2 -18
- package/dist/components/Menu/MenuDesktop.js +7 -41
- package/dist/components/Menu/MenuItem.js +9 -32
- package/dist/components/Menu/MenuMobile.js +38 -97
- package/dist/components/Menu/MenuPopover.js +29 -105
- package/dist/components/buttons/IconButton/IconButton.js +8 -40
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -2
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +9 -34
- package/dist/components/buttons/PillButton/PillButton.js +17 -55
- package/dist/components/buttons/SplitButton/SplitButton.js +18 -103
- package/dist/components/buttons/TextButton/TextButton.js +8 -30
- package/dist/components/buttons/ToggleButton/ToggleButton.js +8 -28
- package/dist/components/buttons/shared/ButtonContent.js +22 -80
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +35 -201
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +10 -24
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -3
- package/dist/components/inputs/Checkbox/checkbox.cva.js +1 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +75 -368
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +298 -506
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +5 -13
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +56 -273
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -6
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +130 -606
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +2 -5
- package/dist/components/inputs/DateTime/shared/Calendar.js +119 -332
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -3
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +102 -301
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -3
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +33 -146
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +93 -249
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +137 -318
- package/dist/components/inputs/DateTime/shared/DateField.js +112 -311
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -13
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +139 -383
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +11 -96
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +27 -81
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +10 -59
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
- package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +110 -279
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +1 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +65 -210
- package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
- package/dist/components/inputs/File/FileUpload.js +44 -87
- package/dist/components/inputs/File/FileUploadContainer.js +7 -15
- package/dist/components/inputs/File/InputUpload.js +79 -317
- package/dist/components/inputs/File/shared/FileCard.js +41 -104
- package/dist/components/inputs/File/shared/FileCardList.js +12 -47
- package/dist/components/inputs/File/shared/FileUploadContent.js +44 -175
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +46 -149
- package/dist/components/inputs/File/shared/FileUploadContentError.js +93 -234
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +97 -230
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +55 -199
- package/dist/components/inputs/File/shared/InputUploadContent.js +34 -148
- package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -49
- package/dist/components/inputs/File/shared/ProgressBar.js +9 -48
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +37 -119
- package/dist/components/inputs/FormField/FormFieldError.js +5 -25
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +22 -81
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
- package/dist/components/inputs/FormField/FormFieldHelper.js +6 -26
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +2 -5
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +97 -447
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +9 -48
- package/dist/components/inputs/Input/TextArea/TextArea.js +90 -305
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -3
- package/dist/components/inputs/Input/TextInput/TextInput.js +90 -419
- package/dist/components/inputs/Input/shared/InputContent.js +59 -192
- package/dist/components/inputs/Inputs/Form.js +11 -40
- package/dist/components/inputs/Inputs/InputItem.d.ts +21 -15
- package/dist/components/inputs/Inputs/InputItem.js +14 -69
- package/dist/components/inputs/Inputs/Inputs.js +11 -37
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/components/inputs/RadioGroup/RadioGroup.js +61 -353
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -17
- package/dist/components/inputs/RadioGroup/radio.cva.js +1 -42
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +2 -6
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +22 -214
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +18 -3
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +8 -104
- package/dist/components/inputs/Selection/Select/Select.d.ts +3 -7
- package/dist/components/inputs/Selection/Select/Select.js +18 -225
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -8
- package/dist/components/inputs/Selection/shared/SelectBase.js +18 -69
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +138 -393
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +116 -330
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +25 -99
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +52 -164
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +21 -70
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -9
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/select.context.js +36 -67
- package/dist/components/inputs/Selection/shared/select.types.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/useSelectItems.js +49 -109
- package/dist/components/inputs/Slider/Slider.d.ts +1 -2
- package/dist/components/inputs/Slider/Slider.js +76 -265
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +98 -447
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -1
- package/dist/components/inputs/Toggle/Toggle.js +37 -214
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -3
- package/dist/components/inputs/Toggle/toggle.cva.js +1 -2
- package/dist/components/inputs/shared/CheckContent.d.ts +1 -2
- package/dist/components/inputs/shared/CheckContent.js +11 -21
- package/dist/components/inputs/shared/InputClear.d.ts +1 -2
- package/dist/components/inputs/shared/InputClear.js +12 -88
- package/dist/components/inputs/shared/TooltipWrapper.js +11 -50
- package/dist/components/inputs/shared/input.cva.d.ts +0 -10
- package/dist/components/inputs/shared/input.cva.js +4 -32
- package/dist/components/navigation/Accordion/Accordion.js +22 -69
- package/dist/components/navigation/Accordion/AccordionItem.js +41 -86
- package/dist/components/navigation/Stepper/Stepper.js +22 -67
- package/dist/components/navigation/Stepper/StepperItem.js +31 -104
- package/dist/components/navigation/Stepper/StepperSeparator.js +5 -23
- package/dist/components/overlays/ActionModal/ActionModal.js +35 -169
- package/dist/components/overlays/BottomSheet/BottomSheet.js +23 -96
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +8 -48
- package/dist/components/overlays/Drawer/Drawer.js +20 -62
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +27 -83
- package/dist/components/overlays/Tooltip/Tooltip.js +28 -137
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +12 -37
- package/dist/components/segment/Segment.js +57 -218
- package/dist/components/segment/SegmentItem.js +10 -67
- package/dist/components/shared/pagination/Pagination.js +22 -108
- package/dist/components/shared/pagination/PaginationList.js +64 -167
- package/dist/components/status/Alert/Alert.js +30 -97
- package/dist/components/status/Loader/Loader.js +22 -77
- package/dist/components/status/Toast/Toast.js +13 -21
- package/dist/components/status/Toast/useToast.js +57 -62
- package/dist/components/table/ColumnConfig.js +54 -158
- package/dist/components/table/InfiniteTable.js +16 -67
- package/dist/components/table/PaginatedTable.js +18 -84
- package/dist/components/table/Table.js +27 -28
- package/dist/components/text/Link/Link.js +7 -19
- package/dist/components/text/Typography/Typography.js +8 -23
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +9 -23
- package/dist/config/router.context.js +16 -42
- package/dist/config/theme.context.js +45 -98
- package/dist/config/uiConfig.context.d.ts +6 -19
- package/dist/config/uiConfig.context.js +14 -67
- package/dist/config/uiStyle.context.d.ts +4 -27
- package/dist/config/uiStyle.context.js +5 -15
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +0 -3
- package/dist/hooks/useBreakpoint.js +3 -16
- package/dist/hooks/useDebounceCallback.js +17 -51
- package/dist/hooks/useFilters.js +64 -125
- package/dist/hooks/useForm.js +8 -42
- package/dist/hooks/useFormAutosave.js +30 -101
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +24 -91
- package/dist/hooks/useLocalStorage.js +10 -43
- package/dist/hooks/useLongPressRepeat.js +20 -55
- package/dist/hooks/usePagination.js +19 -49
- package/dist/hooks/useScrollableListBox.js +16 -37
- package/dist/hooks/useSorting.js +28 -69
- package/dist/hooks/useStateAndRef.js +7 -21
- package/dist/hooks/useTableColumnConfig.js +31 -124
- package/dist/hooks/useTranslationMemo.js +5 -25
- package/dist/index.d.ts +0 -7
- package/dist/index.js +2 -4
- package/dist/tw-ui-plugin.js +0 -6
- package/dist/utils/date-time.utils.d.ts +10 -38
- package/dist/utils/date-time.utils.js +22 -134
- package/package.json +1 -1
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -7
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -13
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -39
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -85
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -6
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -11
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -575
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -4
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -36
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -14
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -173
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -36
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -3
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -37
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -82
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -548
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -4
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -14
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -100
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -14
- package/dist/hooks/useQueryAutocomplete.js +0 -57
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/Today.tsx
|
|
4
|
-
var TodayIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if ($[1] !== props) {
|
|
16
|
-
t1 = /* @__PURE__ */ jsx("svg", {
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
fill: "none",
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
className: "fill-current",
|
|
21
|
-
...props,
|
|
22
|
-
children: t0
|
|
23
|
-
});
|
|
24
|
-
$[1] = props;
|
|
25
|
-
$[2] = t1;
|
|
26
|
-
} else t1 = $[2];
|
|
27
|
-
return t1;
|
|
28
|
-
};
|
|
3
|
+
var TodayIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M9.184 9.672v-.945h5.628v.945h-2.27V16H11.45V9.672z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
29
14
|
//#endregion
|
|
30
15
|
export { TodayIcon };
|
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/Underlined.tsx
|
|
4
|
-
var UnderlinedIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if ($[1] !== props) {
|
|
18
|
-
t1 = /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
fill: "none",
|
|
21
|
-
viewBox: "0 0 25 24",
|
|
22
|
-
className: "fill-current",
|
|
23
|
-
...props,
|
|
24
|
-
children: t0
|
|
25
|
-
});
|
|
26
|
-
$[1] = props;
|
|
27
|
-
$[2] = t1;
|
|
28
|
-
} else t1 = $[2];
|
|
29
|
-
return t1;
|
|
30
|
-
};
|
|
3
|
+
var UnderlinedIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 25 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: .2,
|
|
13
|
+
d: "M6.872 18.89q.212.21.518.21h9.892q.306 0 .518-.21.21-.212.21-.518a.7.7 0 0 0-.21-.518.7.7 0 0 0-.518-.21H7.39a.7.7 0 0 0-.518.209.7.7 0 0 0-.21.518q0 .308.21.519ZM8.353 5.155a.83.83 0 0 0-.264.615v5.851c0 1.348.371 2.434 1.123 3.248.754.815 1.8 1.218 3.124 1.218s2.37-.403 3.124-1.218c.752-.814 1.123-1.9 1.123-3.248v-5.85a.84.84 0 0 0-.255-.615.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255.83.83 0 0 0-.265.615V11.7c0 .828-.22 1.48-.65 1.968-.427.484-1.037.732-1.844.732s-1.417-.248-1.844-.732c-.43-.487-.65-1.14-.65-1.968V5.77a.84.84 0 0 0-.255-.614.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255Z"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
31
16
|
//#endregion
|
|
32
17
|
export { UnderlinedIcon };
|
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/Upload.tsx
|
|
4
|
-
var UploadIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
$[1] = t1;
|
|
19
|
-
} else {
|
|
20
|
-
t0 = $[0];
|
|
21
|
-
t1 = $[1];
|
|
22
|
-
}
|
|
23
|
-
let t2;
|
|
24
|
-
if ($[2] !== props) {
|
|
25
|
-
t2 = /* @__PURE__ */ jsxs("svg", {
|
|
26
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
-
fill: "none",
|
|
28
|
-
viewBox: "0 0 24 24",
|
|
29
|
-
className: "fill-current",
|
|
30
|
-
...props,
|
|
31
|
-
children: [t0, t1]
|
|
32
|
-
});
|
|
33
|
-
$[2] = props;
|
|
34
|
-
$[3] = t2;
|
|
35
|
-
} else t2 = $[3];
|
|
36
|
-
return t2;
|
|
37
|
-
};
|
|
3
|
+
var UploadIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M19.5 13.6a.9.9 0 0 1 .9.9v3.333a2.57 2.57 0 0 1-2.567 2.567H6.167a2.57 2.57 0 0 1-2.555-2.313l-.012-.254V14.5a.9.9 0 0 1 1.796-.092l.004.092v3.333l.015.15a.766.766 0 0 0 .752.617h11.666a.766.766 0 0 0 .767-.767V14.5a.9.9 0 0 1 .9-.9"
|
|
12
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
d: "M12.04 3.602h.007q.078.003.151.02.006 0 .011.003c.168.04.319.127.436.247l4.158 4.158.061.069A.9.9 0 0 1 15.6 9.365l-.069-.062-2.63-2.63V14.5a.9.9 0 0 1-1.8 0V6.672l-2.63 2.63-.069.063A.901.901 0 0 1 7.196 8.03l4.167-4.167.069-.061a.9.9 0 0 1 .432-.192l.027-.004A1 1 0 0 1 12 3.6z"
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
38
17
|
//#endregion
|
|
39
18
|
export { UploadIcon };
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/Visibility.tsx
|
|
4
|
-
var VisibilityIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if ($[1] !== props) {
|
|
16
|
-
t1 = /* @__PURE__ */ jsx("svg", {
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
fill: "none",
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
className: "fill-current",
|
|
21
|
-
...props,
|
|
22
|
-
children: t0
|
|
23
|
-
});
|
|
24
|
-
$[1] = props;
|
|
25
|
-
$[2] = t1;
|
|
26
|
-
} else t1 = $[2];
|
|
27
|
-
return t1;
|
|
28
|
-
};
|
|
3
|
+
var VisibilityIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M12 5.02q3.102 0 5.66 1.667a12 12 0 0 1 4.04 4.399q.115.207.172.425a1.75 1.75 0 0 1 0 .894 1.8 1.8 0 0 1-.172.425 12 12 0 0 1-4.04 4.4q-2.558 1.666-5.66 1.666T6.34 17.23a12 12 0 0 1-4.04-4.4 1.751 1.751 0 0 1-.173-1.32q.057-.216.172-.424a12 12 0 0 1 4.041-4.4Q8.898 5.022 12 5.02m0 1.816q-2.626 0-4.823 1.383a9.1 9.1 0 0 0-3.36 3.73l-.003.009.004.009a9.1 9.1 0 0 0 3.359 3.73A8.88 8.88 0 0 0 12 17.081q2.627 0 4.823-1.384a9.1 9.1 0 0 0 3.359-3.73l.005-.009-.005-.009a9.1 9.1 0 0 0-3.358-3.73A8.88 8.88 0 0 0 12 6.836m0 .967q1.731 0 2.943 1.212t1.211 2.943-1.211 2.943T12 16.113t-2.943-1.212q-1.212-1.212-1.212-2.943t1.212-2.943T12 7.803m0 1.63q-1.051 0-1.789.737a2.44 2.44 0 0 0-.736 1.788q0 1.05.736 1.788.737.736 1.79.737 1.051 0 1.787-.737.737-.736.737-1.788t-.737-1.788A2.44 2.44 0 0 0 12 9.434"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
29
14
|
//#endregion
|
|
30
15
|
export { VisibilityIcon };
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/VisibilityOff.tsx
|
|
4
|
-
var VisibilityOffIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
if ($[1] !== props) {
|
|
16
|
-
t1 = /* @__PURE__ */ jsx("svg", {
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
-
fill: "none",
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
className: "fill-current",
|
|
21
|
-
...props,
|
|
22
|
-
children: t0
|
|
23
|
-
});
|
|
24
|
-
$[1] = props;
|
|
25
|
-
$[2] = t1;
|
|
26
|
-
} else t1 = $[2];
|
|
27
|
-
return t1;
|
|
28
|
-
};
|
|
3
|
+
var VisibilityOffIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M3.482 3.52q.383 0 .632.249l15.699 15.699a.88.88 0 0 1 .26.62.84.84 0 0 1-.26.643.86.86 0 0 1-.632.25.86.86 0 0 1-.633-.25l-3.232-3.185-.008-.009-.012.004a11 11 0 0 1-3.318.507q-3.088 0-5.646-1.671a12 12 0 0 1-4.034-4.39l-.054-.094a1.5 1.5 0 0 1-.117-.306 1.7 1.7 0 0 1-.057-.445q0-.23.045-.435.046-.204.16-.41l.24-.456q.375-.677.833-1.308A9.4 9.4 0 0 1 4.74 7.001l.016-.014-.015-.015-1.916-1.939a.88.88 0 0 1-.237-.643.88.88 0 0 1 .26-.621.86.86 0 0 1 .633-.25m2.526 4.744a10 10 0 0 0-1.227 1.319q-.556.717-.949 1.55l-.004.009.005.008a9.05 9.05 0 0 0 3.343 3.714 8.84 8.84 0 0 0 4.802 1.377q.462 0 .902-.058t.901-.127l.039-.005-.027-.028-.832-.877-.008-.01-.011.004q-.253.069-.483.103a3 3 0 0 1-.481.034q-1.724 0-2.93-1.206t-1.206-2.93q0-.252.034-.48.035-.231.104-.483l.003-.012-.01-.008-1.938-1.893-.013-.013zm5.97-4.029q3.157 0 5.772 1.66t3.998 4.47a1.7 1.7 0 0 1 .183.777q0 .205-.034.4a1.4 1.4 0 0 1-.125.376 9 9 0 0 1-1.026 1.729q-.457.604-.987 1.131l-.361.343a.75.75 0 0 1-.63.203.82.82 0 0 1-.587-.361 1 1 0 0 1-.193-.691.93.93 0 0 1 .306-.622q.556-.531 1.018-1.157.463-.624.81-1.343l.004-.008-.004-.01A9.05 9.05 0 0 0 16.78 7.42a8.83 8.83 0 0 0-4.801-1.376q-.44 0-.857.034a6 6 0 0 0-.833.127.98.98 0 0 1-.69-.112.93.93 0 0 1-.418-.543.85.85 0 0 1 .079-.7.78.78 0 0 1 .552-.406q.53-.114 1.071-.16.542-.048 1.096-.048m-.322 2.794a3.8 3.8 0 0 1 1.723.218 4.1 4.1 0 0 1 1.517.977q.667.666.976 1.516.271.744.235 1.523l-.017.223v.002a.76.76 0 0 1-.248.575.82.82 0 0 1-.586.236.78.78 0 0 1-.575-.236.78.78 0 0 1-.236-.57 2.3 2.3 0 0 0-.07-1.166 2.4 2.4 0 0 0-.583-.954 2.6 2.6 0 0 0-.953-.604 2.2 2.2 0 0 0-1.188-.095.76.76 0 0 1-.57-.247.82.82 0 0 1-.238-.586q0-.34.236-.575a.78.78 0 0 1 .575-.237z"
|
|
12
|
+
})
|
|
13
|
+
});
|
|
29
14
|
//#endregion
|
|
30
15
|
export { VisibilityOffIcon };
|
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
import { c } from "react/compiler-runtime";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
//#region src/assets/icons/WarningFilled.tsx
|
|
4
|
-
var WarningFilledIcon = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if ($[1] !== props) {
|
|
18
|
-
t1 = /* @__PURE__ */ jsx("svg", {
|
|
19
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
fill: "none",
|
|
21
|
-
viewBox: "0 0 24 24",
|
|
22
|
-
className: "fill-current",
|
|
23
|
-
...props,
|
|
24
|
-
children: t0
|
|
25
|
-
});
|
|
26
|
-
$[1] = props;
|
|
27
|
-
$[2] = t1;
|
|
28
|
-
} else t1 = $[2];
|
|
29
|
-
return t1;
|
|
30
|
-
};
|
|
3
|
+
var WarningFilledIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
className: "fill-current",
|
|
8
|
+
...props,
|
|
9
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
d: "M12.165 3.52a2.57 2.57 0 0 1 1.94 1.091l.09.139.001.004 7.059 11.783.008.013.079.147a2.568 2.568 0 0 1-2.274 3.702H4.932a2.568 2.568 0 0 1-2.195-3.85l.007-.012L9.803 4.754l.002-.004.09-.139A2.57 2.57 0 0 1 12 3.514zM12 15.267a.9.9 0 0 0 0 1.8h.008l.092-.005a.9.9 0 0 0 0-1.79l-.092-.005zM12 8.6a.9.9 0 0 0-.9.9v3.333l.005.093a.9.9 0 0 0 1.79 0l.005-.093V9.5l-.005-.092A.9.9 0 0 0 12 8.6",
|
|
13
|
+
clipRule: "evenodd"
|
|
14
|
+
})
|
|
15
|
+
});
|
|
31
16
|
//#endregion
|
|
32
17
|
export { WarningFilledIcon };
|
|
@@ -22,9 +22,9 @@ var translation_default = {
|
|
|
22
22
|
"thisAndLastWeek": "Ta in prejšnji teden",
|
|
23
23
|
"thisMonth": "Ta mesec",
|
|
24
24
|
"thisAndLastMonth": "Ta in prejšnji mesec",
|
|
25
|
-
"thisYear": "
|
|
25
|
+
"thisYear": "To leto",
|
|
26
26
|
"lastYear": "Prejšnje leto",
|
|
27
|
-
"thisAndLastYear": "
|
|
27
|
+
"thisAndLastYear": "To in prejšnje leto",
|
|
28
28
|
"soFar": "Od začetka"
|
|
29
29
|
},
|
|
30
30
|
"navigation": {
|
|
@@ -5,16 +5,12 @@ import { MenuDesktop } from "../Menu/MenuDesktop.js";
|
|
|
5
5
|
import { Typography } from "../text/Typography/Typography.js";
|
|
6
6
|
import { Tooltip as Tooltip$1 } from "../overlays/Tooltip/Tooltip.js";
|
|
7
7
|
import { LinkContext } from "../../config/link.context.js";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { clsx } from "clsx";
|
|
11
10
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
12
11
|
import { Breadcrumb, Breadcrumbs, Button, Link } from "react-aria-components";
|
|
13
12
|
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
14
|
-
var Breadcrumbs$1 = (
|
|
15
|
-
const $ = c(58);
|
|
16
|
-
const { items, className, onAction, iconOnly: t1 } = t0;
|
|
17
|
-
const iconOnly = t1 === void 0 ? false : t1;
|
|
13
|
+
var Breadcrumbs$1 = ({ items, className, onAction, iconOnly = false }) => {
|
|
18
14
|
const breadcrumbsCva$1 = UIStyle.useCva("breadcrumbs.cva", breadcrumbsCva);
|
|
19
15
|
const breadcrumbItem$1 = UIStyle.useCva("breadcrumbs.itemCva", breadcrumbItem);
|
|
20
16
|
const breadcrumbSegmentCva = UIStyle.useCva("breadcrumbs.segmentCva", breadcrumbSegment);
|
|
@@ -22,61 +18,45 @@ var Breadcrumbs$1 = (t0) => {
|
|
|
22
18
|
const breadcrumbIconCva = UIStyle.useCva("breadcrumbs.iconCva", breadcrumbIcon);
|
|
23
19
|
const containerRef = useRef(null);
|
|
24
20
|
const [isOverflowing, setIsOverflowing] = useState(items.length <= 2 ? false : null);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return () => resizeObserver.disconnect();
|
|
39
|
-
};
|
|
40
|
-
$[0] = items.length;
|
|
41
|
-
$[1] = t2;
|
|
42
|
-
} else t2 = $[1];
|
|
43
|
-
let t3;
|
|
44
|
-
if ($[2] !== items) {
|
|
45
|
-
t3 = [items];
|
|
46
|
-
$[2] = items;
|
|
47
|
-
$[3] = t3;
|
|
48
|
-
} else t3 = $[3];
|
|
49
|
-
useLayoutEffect(t2, t3);
|
|
21
|
+
useLayoutEffect(() => {
|
|
22
|
+
if (items.length <= 2) {
|
|
23
|
+
setIsOverflowing(false);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const container = containerRef.current;
|
|
27
|
+
if (!container) return;
|
|
28
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
29
|
+
setIsOverflowing(container.scrollWidth > container.clientWidth);
|
|
30
|
+
});
|
|
31
|
+
resizeObserver.observe(container);
|
|
32
|
+
return () => resizeObserver.disconnect();
|
|
33
|
+
}, [items]);
|
|
50
34
|
const isReady = isOverflowing !== null;
|
|
51
35
|
const hiddenItems = items.length > 2 ? items.slice(1, -1) : [];
|
|
52
36
|
const firstItem = items[0];
|
|
53
37
|
const lastItem = items[items.length - 1];
|
|
54
38
|
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
className:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})]
|
|
68
|
-
});
|
|
69
|
-
$[4] = LinkComponent;
|
|
70
|
-
$[5] = breadcrumbIconCva;
|
|
71
|
-
$[6] = breadcrumbItem$1;
|
|
72
|
-
$[7] = t4;
|
|
73
|
-
} else t4 = $[7];
|
|
74
|
-
const renderBreadcrumbLink = t4;
|
|
39
|
+
const renderBreadcrumbLink = (item, isCurrent, iconOnly) => /* @__PURE__ */ jsxs(LinkComponent, {
|
|
40
|
+
...item.link,
|
|
41
|
+
className: breadcrumbItem$1({ isCurrent }),
|
|
42
|
+
children: [item.icon && /* @__PURE__ */ jsx(item.icon, {
|
|
43
|
+
className: breadcrumbIconCva({}),
|
|
44
|
+
"aria-label": item.label
|
|
45
|
+
}), !iconOnly && /* @__PURE__ */ jsx(Typography, {
|
|
46
|
+
variant: "default",
|
|
47
|
+
size: "label-3",
|
|
48
|
+
children: item.label
|
|
49
|
+
})]
|
|
50
|
+
});
|
|
75
51
|
if (isOverflowing === true && items.length > 2) {
|
|
76
|
-
const menuItems = hiddenItems.map(
|
|
52
|
+
const menuItems = hiddenItems.map((item) => ({
|
|
53
|
+
id: item.id,
|
|
54
|
+
label: item.label,
|
|
55
|
+
link: item.link
|
|
56
|
+
}));
|
|
77
57
|
const renderEllipsis = () => /* @__PURE__ */ jsx(MenuDesktop, {
|
|
78
58
|
trigger: /* @__PURE__ */ jsx(Tooltip$1, {
|
|
79
|
-
text: hiddenItems.map(
|
|
59
|
+
text: hiddenItems.map((i) => i.label).join(", "),
|
|
80
60
|
children: /* @__PURE__ */ jsx(Button, {
|
|
81
61
|
"aria-label": "Show hidden breadcrumbs",
|
|
82
62
|
className: breadcrumbItem$1({
|
|
@@ -93,171 +73,40 @@ var Breadcrumbs$1 = (t0) => {
|
|
|
93
73
|
items: menuItems,
|
|
94
74
|
onAction: onAction ? (key) => onAction(key) : void 0
|
|
95
75
|
});
|
|
96
|
-
let t5;
|
|
97
|
-
if ($[8] !== breadcrumbsCva$1 || $[9] !== className) {
|
|
98
|
-
t5 = clsx(breadcrumbsCva$1({}), className);
|
|
99
|
-
$[8] = breadcrumbsCva$1;
|
|
100
|
-
$[9] = className;
|
|
101
|
-
$[10] = t5;
|
|
102
|
-
} else t5 = $[10];
|
|
103
|
-
const t6 = firstItem.id;
|
|
104
|
-
let t7;
|
|
105
|
-
if ($[11] !== breadcrumbSegmentCva) {
|
|
106
|
-
t7 = breadcrumbSegmentCva({});
|
|
107
|
-
$[11] = breadcrumbSegmentCva;
|
|
108
|
-
$[12] = t7;
|
|
109
|
-
} else t7 = $[12];
|
|
110
|
-
let t8;
|
|
111
|
-
if ($[13] !== firstItem || $[14] !== iconOnly || $[15] !== renderBreadcrumbLink) {
|
|
112
|
-
t8 = renderBreadcrumbLink(firstItem, false, iconOnly);
|
|
113
|
-
$[13] = firstItem;
|
|
114
|
-
$[14] = iconOnly;
|
|
115
|
-
$[15] = renderBreadcrumbLink;
|
|
116
|
-
$[16] = t8;
|
|
117
|
-
} else t8 = $[16];
|
|
118
|
-
let t9;
|
|
119
|
-
if ($[17] !== breadcrumbChevronCva) {
|
|
120
|
-
t9 = breadcrumbChevronCva({});
|
|
121
|
-
$[17] = breadcrumbChevronCva;
|
|
122
|
-
$[18] = t9;
|
|
123
|
-
} else t9 = $[18];
|
|
124
|
-
let t10;
|
|
125
|
-
if ($[19] !== t9) {
|
|
126
|
-
t10 = /* @__PURE__ */ jsx(ChevronRightIcon, { className: t9 });
|
|
127
|
-
$[19] = t9;
|
|
128
|
-
$[20] = t10;
|
|
129
|
-
} else t10 = $[20];
|
|
130
|
-
let t11;
|
|
131
|
-
if ($[21] !== firstItem.id || $[22] !== t10 || $[23] !== t7 || $[24] !== t8) {
|
|
132
|
-
t11 = /* @__PURE__ */ jsxs(Breadcrumb, {
|
|
133
|
-
id: t6,
|
|
134
|
-
className: t7,
|
|
135
|
-
children: [t8, t10]
|
|
136
|
-
});
|
|
137
|
-
$[21] = firstItem.id;
|
|
138
|
-
$[22] = t10;
|
|
139
|
-
$[23] = t7;
|
|
140
|
-
$[24] = t8;
|
|
141
|
-
$[25] = t11;
|
|
142
|
-
} else t11 = $[25];
|
|
143
|
-
let t12;
|
|
144
|
-
if ($[26] !== breadcrumbSegmentCva) {
|
|
145
|
-
t12 = breadcrumbSegmentCva({});
|
|
146
|
-
$[26] = breadcrumbSegmentCva;
|
|
147
|
-
$[27] = t12;
|
|
148
|
-
} else t12 = $[27];
|
|
149
|
-
const t13 = renderEllipsis();
|
|
150
|
-
let t14;
|
|
151
|
-
if ($[28] !== breadcrumbChevronCva) {
|
|
152
|
-
t14 = breadcrumbChevronCva({});
|
|
153
|
-
$[28] = breadcrumbChevronCva;
|
|
154
|
-
$[29] = t14;
|
|
155
|
-
} else t14 = $[29];
|
|
156
|
-
let t15;
|
|
157
|
-
if ($[30] !== t14) {
|
|
158
|
-
t15 = /* @__PURE__ */ jsx(ChevronRightIcon, { className: t14 });
|
|
159
|
-
$[30] = t14;
|
|
160
|
-
$[31] = t15;
|
|
161
|
-
} else t15 = $[31];
|
|
162
|
-
const t16 = lastItem.id;
|
|
163
|
-
let t17;
|
|
164
|
-
if ($[32] !== breadcrumbSegmentCva) {
|
|
165
|
-
t17 = breadcrumbSegmentCva({});
|
|
166
|
-
$[32] = breadcrumbSegmentCva;
|
|
167
|
-
$[33] = t17;
|
|
168
|
-
} else t17 = $[33];
|
|
169
|
-
let t18;
|
|
170
|
-
if ($[34] !== lastItem || $[35] !== renderBreadcrumbLink) {
|
|
171
|
-
t18 = renderBreadcrumbLink(lastItem, true);
|
|
172
|
-
$[34] = lastItem;
|
|
173
|
-
$[35] = renderBreadcrumbLink;
|
|
174
|
-
$[36] = t18;
|
|
175
|
-
} else t18 = $[36];
|
|
176
|
-
let t19;
|
|
177
|
-
if ($[37] !== lastItem.id || $[38] !== t17 || $[39] !== t18) {
|
|
178
|
-
t19 = /* @__PURE__ */ jsx(Breadcrumb, {
|
|
179
|
-
id: t16,
|
|
180
|
-
className: t17,
|
|
181
|
-
children: t18
|
|
182
|
-
});
|
|
183
|
-
$[37] = lastItem.id;
|
|
184
|
-
$[38] = t17;
|
|
185
|
-
$[39] = t18;
|
|
186
|
-
$[40] = t19;
|
|
187
|
-
} else t19 = $[40];
|
|
188
76
|
return /* @__PURE__ */ jsxs(Breadcrumbs, {
|
|
189
77
|
onAction,
|
|
190
|
-
className:
|
|
78
|
+
className: clsx(breadcrumbsCva$1({}), className),
|
|
191
79
|
children: [
|
|
192
|
-
|
|
80
|
+
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
81
|
+
id: firstItem.id,
|
|
82
|
+
className: breadcrumbSegmentCva({}),
|
|
83
|
+
children: [renderBreadcrumbLink(firstItem, false, iconOnly), /* @__PURE__ */ jsx(ChevronRightIcon, { className: breadcrumbChevronCva({}) })]
|
|
84
|
+
}),
|
|
193
85
|
/* @__PURE__ */ jsxs(Breadcrumb, {
|
|
194
86
|
id: "ellipsis",
|
|
195
|
-
className:
|
|
196
|
-
children: [
|
|
87
|
+
className: breadcrumbSegmentCva({}),
|
|
88
|
+
children: [renderEllipsis(), /* @__PURE__ */ jsx(ChevronRightIcon, { className: breadcrumbChevronCva({}) })]
|
|
197
89
|
}),
|
|
198
|
-
|
|
90
|
+
/* @__PURE__ */ jsx(Breadcrumb, {
|
|
91
|
+
id: lastItem.id,
|
|
92
|
+
className: breadcrumbSegmentCva({}),
|
|
93
|
+
children: renderBreadcrumbLink(lastItem, true)
|
|
94
|
+
})
|
|
199
95
|
]
|
|
200
96
|
});
|
|
201
97
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
$
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
let t7;
|
|
211
|
-
if ($[44] !== t6) {
|
|
212
|
-
t7 = { visibility: t6 };
|
|
213
|
-
$[44] = t6;
|
|
214
|
-
$[45] = t7;
|
|
215
|
-
} else t7 = $[45];
|
|
216
|
-
let t8;
|
|
217
|
-
if ($[46] !== breadcrumbChevronCva || $[47] !== breadcrumbSegmentCva || $[48] !== iconOnly || $[49] !== items[0] || $[50] !== renderBreadcrumbLink) {
|
|
218
|
-
t8 = (item_1) => /* @__PURE__ */ jsx(Breadcrumb, {
|
|
219
|
-
id: item_1.id,
|
|
98
|
+
return /* @__PURE__ */ jsx(Breadcrumbs, {
|
|
99
|
+
ref: containerRef,
|
|
100
|
+
items,
|
|
101
|
+
onAction,
|
|
102
|
+
className: clsx(breadcrumbsCva$1({}), className),
|
|
103
|
+
style: { visibility: isReady ? "visible" : "hidden" },
|
|
104
|
+
children: (item) => /* @__PURE__ */ jsx(Breadcrumb, {
|
|
105
|
+
id: item.id,
|
|
220
106
|
className: breadcrumbSegmentCva({}),
|
|
221
|
-
children: (
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
$[46] = breadcrumbChevronCva;
|
|
227
|
-
$[47] = breadcrumbSegmentCva;
|
|
228
|
-
$[48] = iconOnly;
|
|
229
|
-
$[49] = items[0];
|
|
230
|
-
$[50] = renderBreadcrumbLink;
|
|
231
|
-
$[51] = t8;
|
|
232
|
-
} else t8 = $[51];
|
|
233
|
-
let t9;
|
|
234
|
-
if ($[52] !== items || $[53] !== onAction || $[54] !== t5 || $[55] !== t7 || $[56] !== t8) {
|
|
235
|
-
t9 = /* @__PURE__ */ jsx(Breadcrumbs, {
|
|
236
|
-
ref: containerRef,
|
|
237
|
-
items,
|
|
238
|
-
onAction,
|
|
239
|
-
className: t5,
|
|
240
|
-
style: t7,
|
|
241
|
-
children: t8
|
|
242
|
-
});
|
|
243
|
-
$[52] = items;
|
|
244
|
-
$[53] = onAction;
|
|
245
|
-
$[54] = t5;
|
|
246
|
-
$[55] = t7;
|
|
247
|
-
$[56] = t8;
|
|
248
|
-
$[57] = t9;
|
|
249
|
-
} else t9 = $[57];
|
|
250
|
-
return t9;
|
|
107
|
+
children: ({ isCurrent }) => /* @__PURE__ */ jsxs(Fragment, { children: [renderBreadcrumbLink(item, isCurrent, iconOnly && item === items[0]), !isCurrent && /* @__PURE__ */ jsx(ChevronRightIcon, { className: breadcrumbChevronCva({}) })] })
|
|
108
|
+
})
|
|
109
|
+
});
|
|
251
110
|
};
|
|
252
|
-
function _temp(item_0) {
|
|
253
|
-
return {
|
|
254
|
-
id: item_0.id,
|
|
255
|
-
label: item_0.label,
|
|
256
|
-
link: item_0.link
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
function _temp2(i) {
|
|
260
|
-
return i.label;
|
|
261
|
-
}
|
|
262
111
|
//#endregion
|
|
263
112
|
export { Breadcrumbs$1 as Breadcrumbs };
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import { MenuDesktop } from "./MenuDesktop.js";
|
|
2
2
|
import { MenuMobile } from "./MenuMobile.js";
|
|
3
3
|
import { useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
//#region src/components/Menu/Menu.tsx
|
|
7
6
|
var Menu = (props) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let t0;
|
|
11
|
-
if ($[0] !== props) {
|
|
12
|
-
t0 = /* @__PURE__ */ jsx(MenuDesktop, { ...props });
|
|
13
|
-
$[0] = props;
|
|
14
|
-
$[1] = t0;
|
|
15
|
-
} else t0 = $[1];
|
|
16
|
-
return t0;
|
|
17
|
-
}
|
|
18
|
-
let t0;
|
|
19
|
-
if ($[2] !== props) {
|
|
20
|
-
t0 = /* @__PURE__ */ jsx(MenuMobile, { ...props });
|
|
21
|
-
$[2] = props;
|
|
22
|
-
$[3] = t0;
|
|
23
|
-
} else t0 = $[3];
|
|
24
|
-
return t0;
|
|
7
|
+
if (useBreakpoint("md")) return /* @__PURE__ */ jsx(MenuDesktop, { ...props });
|
|
8
|
+
return /* @__PURE__ */ jsx(MenuMobile, { ...props });
|
|
25
9
|
};
|
|
26
10
|
//#endregion
|
|
27
11
|
export { Menu };
|