@povio/ui 2.2.6 → 2.2.7
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 +3 -1
- package/dist/assets/icons/AlignLeft.js +3 -1
- package/dist/assets/icons/AlignLeftRight.js +3 -1
- package/dist/assets/icons/AlignRight.js +3 -1
- package/dist/assets/icons/ArrowDropDown.js +3 -1
- package/dist/assets/icons/ArrowDropUp.js +3 -1
- package/dist/assets/icons/ArrowLeft.js +3 -1
- package/dist/assets/icons/ArrowRight.js +3 -1
- package/dist/assets/icons/Bold.js +3 -1
- package/dist/assets/icons/BulletedList.js +3 -1
- package/dist/assets/icons/Calendar.js +3 -1
- package/dist/assets/icons/Check.js +3 -1
- package/dist/assets/icons/CheckCircle.js +3 -1
- package/dist/assets/icons/CheckboxCheckmark.js +3 -1
- package/dist/assets/icons/CheckboxIndeterminate.js +3 -1
- package/dist/assets/icons/ChevronDown.js +3 -1
- package/dist/assets/icons/ChevronLeft.js +3 -1
- package/dist/assets/icons/ChevronRight.js +3 -1
- package/dist/assets/icons/ChevronUp.js +3 -1
- package/dist/assets/icons/ChevronsLeft.js +3 -1
- package/dist/assets/icons/ChevronsRight.js +3 -1
- package/dist/assets/icons/Clock.js +3 -1
- package/dist/assets/icons/Close.js +3 -1
- package/dist/assets/icons/DateTime.js +3 -1
- package/dist/assets/icons/DragIndicator.js +3 -1
- package/dist/assets/icons/File.js +3 -1
- package/dist/assets/icons/Highlight.js +3 -1
- package/dist/assets/icons/HighlightOn.js +3 -1
- package/dist/assets/icons/Home.js +3 -1
- package/dist/assets/icons/Info.js +3 -1
- package/dist/assets/icons/Italic.js +3 -1
- package/dist/assets/icons/Link.js +3 -1
- package/dist/assets/icons/Menu.js +3 -1
- package/dist/assets/icons/NumberedList.js +3 -1
- package/dist/assets/icons/PointerHorizontal.js +3 -1
- package/dist/assets/icons/PointerVertical.js +3 -1
- package/dist/assets/icons/Search.js +3 -1
- package/dist/assets/icons/Send.js +3 -1
- package/dist/assets/icons/Strikethrough.js +3 -1
- package/dist/assets/icons/TextColor.js +3 -1
- package/dist/assets/icons/Today.js +3 -1
- package/dist/assets/icons/Underlined.js +3 -1
- package/dist/assets/icons/Upload.js +3 -1
- package/dist/assets/icons/Visibility.js +3 -1
- package/dist/assets/icons/VisibilityOff.js +3 -1
- package/dist/assets/icons/WarningFilled.js +3 -1
- package/dist/assets/locales/en/translation.json.js +1 -0
- package/dist/assets/locales/sl/translation.json.js +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -3
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +7 -5
- package/dist/components/Menu/Menu.js +3 -1
- package/dist/components/Menu/MenuDesktop.js +3 -1
- package/dist/components/Menu/MenuItem.js +3 -1
- package/dist/components/Menu/MenuMobile.js +3 -1
- package/dist/components/Menu/MenuPopover.js +3 -1
- package/dist/components/Menu/menu.cva.js +6 -4
- package/dist/components/buttons/Button/Button.js +3 -1
- package/dist/components/buttons/Button/button.cva.js +7 -5
- package/dist/components/buttons/IconButton/IconButton.js +3 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +3 -1
- package/dist/components/buttons/PillButton/PillButton.js +3 -1
- package/dist/components/buttons/PillButton/pillButton.cva.js +6 -4
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -1
- package/dist/components/buttons/TextButton/TextButton.js +3 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +3 -1
- package/dist/components/buttons/shared/ButtonContent.js +3 -1
- package/dist/components/buttons/shared/buttonContent.cva.js +2 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +3 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -1
- package/dist/components/inputs/Checkbox/checkbox.cva.js +6 -4
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +3 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +9 -7
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +3 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +3 -1
- package/dist/components/inputs/DateTime/shared/Calendar.js +3 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +3 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +3 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +3 -1
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +4 -2
- package/dist/components/inputs/DateTime/shared/DateField.js +3 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -1
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +4 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +4 -2
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +3 -1
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +3 -1
- package/dist/components/inputs/DateTime/shared/TimeField.js +3 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +3 -1
- package/dist/components/inputs/DateTime/shared/YearPicker.js +3 -1
- package/dist/components/inputs/File/FileUpload.js +6 -4
- package/dist/components/inputs/File/FileUploadContainer.js +3 -1
- package/dist/components/inputs/File/InputUpload.js +3 -1
- package/dist/components/inputs/File/shared/FileCard.js +3 -1
- package/dist/components/inputs/File/shared/FileCardList.js +3 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +3 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -1
- package/dist/components/inputs/File/shared/FileUploadContentError.js +4 -2
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +4 -2
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -2
- package/dist/components/inputs/File/shared/InputUploadContent.js +4 -2
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -1
- package/dist/components/inputs/File/shared/ProgressBar.js +3 -1
- package/dist/components/inputs/File/shared/fileUpload.cva.js +4 -2
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +6 -3
- package/dist/components/inputs/FormField/FormField.js +3 -1
- package/dist/components/inputs/FormField/FormFieldError.js +3 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +3 -1
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +4 -2
- package/dist/components/inputs/FormField/FormFieldHelper.js +3 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +3 -1
- package/dist/components/inputs/FormField/formFieldError.cva.js +3 -1
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +3 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +3 -1
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -2
- package/dist/components/inputs/Input/TextArea/TextArea.js +3 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +3 -1
- package/dist/components/inputs/Input/shared/InputContent.js +3 -1
- package/dist/components/inputs/Inputs/Form.js +2 -0
- package/dist/components/inputs/Inputs/InputItem.js +2 -0
- package/dist/components/inputs/Inputs/Inputs.js +2 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -1
- package/dist/components/inputs/RadioGroup/radio.cva.js +5 -3
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -1
- package/dist/components/inputs/Selection/Select/Select.js +3 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +3 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +3 -1
- package/dist/components/inputs/Selection/shared/SelectListBox.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +5 -3
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +4 -2
- package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -1
- package/dist/components/inputs/Selection/shared/select.context.js +20 -18
- package/dist/components/inputs/Selection/shared/useSelectItems.js +6 -4
- package/dist/components/inputs/Slider/Slider.js +3 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +4 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +3 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +4 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +4 -2
- package/dist/components/inputs/TextEditor/textEditor.types.js +3 -1
- package/dist/components/inputs/Toggle/Toggle.js +3 -1
- package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
- package/dist/components/inputs/shared/CheckContent.js +3 -1
- package/dist/components/inputs/shared/InputClear.js +5 -3
- package/dist/components/inputs/shared/TooltipWrapper.js +3 -1
- package/dist/components/inputs/shared/input.cva.js +6 -4
- package/dist/components/inputs/shared/label.cva.js +4 -2
- package/dist/components/navigation/Accordion/Accordion.js +3 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -1
- package/dist/components/navigation/Accordion/accordion.cva.js +12 -10
- package/dist/components/navigation/Stepper/Stepper.js +3 -1
- package/dist/components/navigation/Stepper/StepperItem.js +3 -1
- package/dist/components/navigation/Stepper/StepperSeparator.js +3 -1
- package/dist/components/navigation/Stepper/stepper.cva.js +9 -7
- package/dist/components/outline.clsx.js +4 -2
- package/dist/components/overlays/ActionModal/ActionModal.js +3 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -1
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -2
- package/dist/components/overlays/Drawer/Drawer.js +3 -1
- package/dist/components/overlays/Modal/Modal.js +4 -2
- package/dist/components/overlays/Modal/modal.cva.js +5 -3
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +7 -2
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +3 -1
- package/dist/components/overlays/Tooltip/tooltip.cva.js +6 -4
- package/dist/components/segment/Segment.js +3 -1
- package/dist/components/segment/SegmentItem.js +3 -1
- package/dist/components/segment/segment.cva.js +4 -2
- package/dist/components/shared/pagination/Pagination.js +4 -2
- package/dist/components/shared/pagination/PaginationList.js +4 -2
- package/dist/components/shared/pagination/minWidth.cva.js +3 -1
- package/dist/components/shared/popover.cva.js +3 -1
- package/dist/components/status/Alert/Alert.js +3 -1
- package/dist/components/status/Alert/alert.cva.js +3 -1
- package/dist/components/status/Loader/Loader.js +3 -1
- package/dist/components/status/Loader/loader.cva.js +4 -2
- package/dist/components/status/Toast/Toast.js +15 -6
- package/dist/components/status/Toast/toast.cva.js +6 -20
- package/dist/components/status/Toast/useToast.js +3 -1
- package/dist/components/status/shared/status.cva.js +4 -2
- package/dist/components/table/CellText.js +3 -1
- package/dist/components/table/ColumnConfig.js +3 -1
- package/dist/components/table/HeaderText.js +3 -1
- package/dist/components/table/InfiniteTable.js +3 -1
- package/dist/components/table/PaginatedTable.js +3 -1
- package/dist/components/table/Table.js +4 -2
- package/dist/components/table/table.cva.js +8 -6
- package/dist/components/text/Link/Link.js +3 -1
- package/dist/components/text/Link/link.cva.js +3 -1
- package/dist/components/text/Tag/Tag.d.ts +3 -0
- package/dist/components/text/Tag/Tag.js +9 -4
- package/dist/components/text/Tag/tag.cva.js +3 -1
- package/dist/components/text/Typography/Typography.js +3 -1
- package/dist/components/text/Typography/typography.cva.js +3 -1
- package/dist/config/confirmation.context.js +4 -2
- package/dist/config/i18n.js +4 -2
- package/dist/config/link.context.js +3 -1
- package/dist/config/router.context.js +3 -1
- package/dist/config/theme.context.js +8 -6
- package/dist/config/uiConfig.context.d.ts +4 -0
- package/dist/config/uiConfig.context.js +9 -2
- package/dist/config/uiStyle.context.js +3 -1
- package/dist/helpers/dynamicColumns.js +4 -2
- package/dist/helpers/dynamicInputs.js +5 -3
- package/dist/hooks/useAutosave.js +2 -0
- package/dist/hooks/useBreakpoint.js +5 -3
- package/dist/hooks/useDebounceCallback.js +2 -0
- package/dist/hooks/useDeepCompare.js +5 -3
- package/dist/hooks/useFilters.js +3 -1
- package/dist/hooks/useForm.js +2 -0
- package/dist/hooks/useFormAutosave.js +2 -0
- package/dist/hooks/useIntersectionObserver.js +3 -1
- package/dist/hooks/useLocalStorage.js +3 -1
- package/dist/hooks/useLongPressRepeat.js +3 -1
- package/dist/hooks/usePagination.js +2 -0
- package/dist/hooks/useScrollableListBox.js +2 -0
- package/dist/hooks/useSorting.js +2 -0
- package/dist/hooks/useStateAndRef.js +3 -1
- package/dist/hooks/useTableColumnConfig.js +2 -0
- package/dist/hooks/useTableNav.js +124 -20
- package/dist/hooks/useTranslationMemo.js +2 -0
- package/dist/tw-ui-plugin.js +4 -2
- package/dist/utils/array.utils.js +3 -1
- package/dist/utils/compoundMapper.js +3 -1
- package/dist/utils/date-time.utils.js +3 -1
- package/dist/utils/date.utils.js +3 -1
- package/dist/utils/dom.utils.js +3 -1
- package/dist/utils/file.utils.js +3 -1
- package/dist/utils/isEqual.js +3 -1
- package/dist/utils/logger.js +3 -1
- package/dist/utils/object.utils.js +3 -1
- package/dist/utils/queries.utils.js +3 -1
- package/dist/utils/rest.utils.js +3 -1
- package/dist/utils/routing.utils.js +3 -1
- package/dist/utils/string.utils.js +3 -1
- package/dist/utils/zod.utils.js +3 -1
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/navigation/Accordion/accordion.cva.ts
|
|
3
|
+
var accordionCva = cva("flex w-full flex-col", {
|
|
3
4
|
variants: {
|
|
4
5
|
variant: {
|
|
5
6
|
filled: "gap-1",
|
|
@@ -20,7 +21,7 @@ const accordionCva = cva("flex w-full flex-col", {
|
|
|
20
21
|
className: "rounded-global-rounding-s border border-elevation-outline-default-1"
|
|
21
22
|
}]
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
var accordionItemCva = cva("flex w-full flex-col", {
|
|
24
25
|
variants: {
|
|
25
26
|
variant: {
|
|
26
27
|
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2",
|
|
@@ -45,7 +46,7 @@ const accordionItemCva = cva("flex w-full flex-col", {
|
|
|
45
46
|
className: "not-last:border-elevation-outline-default-1 not-last:border-b"
|
|
46
47
|
}]
|
|
47
48
|
});
|
|
48
|
-
|
|
49
|
+
var accordionTriggerCva = cva([
|
|
49
50
|
"group flex w-full items-center gap-accordion-gap-content-to-arrow",
|
|
50
51
|
"px-accordion-side-accordion py-accordion-height-accordion",
|
|
51
52
|
"outline-none focus-visible:ring-2 focus-visible:ring-interactive-contained-primary-focus"
|
|
@@ -66,32 +67,33 @@ const accordionTriggerCva = cva([
|
|
|
66
67
|
actionPosition: "right"
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
|
-
|
|
70
|
+
var accordionHeadingCva = cva("flex flex-1 items-center justify-between gap-accordion-gap-content-to-arrow", {
|
|
70
71
|
variants: {},
|
|
71
72
|
defaultVariants: {}
|
|
72
73
|
});
|
|
73
|
-
|
|
74
|
+
var accordionHeadingTitleCva = cva("flex-1 text-left text-text-default-1", {
|
|
74
75
|
variants: {},
|
|
75
76
|
defaultVariants: {}
|
|
76
77
|
});
|
|
77
|
-
|
|
78
|
+
var accordionHeadingSubtitleCva = cva("flex-1 text-left text-text-default-2", {
|
|
78
79
|
variants: {},
|
|
79
80
|
defaultVariants: {}
|
|
80
81
|
});
|
|
81
|
-
|
|
82
|
+
var accordionChevronCva = cva("size-6 shrink-0 text-interactive-text-secondary-idle transition-transform duration-200", {
|
|
82
83
|
variants: { isExpanded: {
|
|
83
84
|
true: "rotate-180",
|
|
84
85
|
false: "rotate-0"
|
|
85
86
|
} },
|
|
86
87
|
defaultVariants: { isExpanded: false }
|
|
87
88
|
});
|
|
88
|
-
|
|
89
|
+
var accordionIconCva = cva("size-6 shrink-0 text-text-default-3", {
|
|
89
90
|
variants: {},
|
|
90
91
|
defaultVariants: {}
|
|
91
92
|
});
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
var accordionPanelCva = cva("", { variants: { isExpanded: { true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion" } } });
|
|
94
|
+
var accordionPanelContentCva = cva("py-accordion-height-content", {
|
|
94
95
|
variants: {},
|
|
95
96
|
defaultVariants: {}
|
|
96
97
|
});
|
|
98
|
+
//#endregion
|
|
97
99
|
export { accordionChevronCva, accordionCva, accordionHeadingCva, accordionHeadingSubtitleCva, accordionHeadingTitleCva, accordionIconCva, accordionItemCva, accordionPanelContentCva, accordionPanelCva, accordionTriggerCva };
|
|
@@ -4,7 +4,8 @@ import { StepperItem } from "./StepperItem.js";
|
|
|
4
4
|
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Fragment as Fragment$1 } from "react";
|
|
7
|
-
|
|
7
|
+
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
8
|
+
var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientation = "horizontal", iconsOnly, titlesOnly, onStepClick, className }) => {
|
|
8
9
|
return /* @__PURE__ */ jsx("div", {
|
|
9
10
|
className: UIStyle.useCva("stepper.cva", stepperCva)({
|
|
10
11
|
orientation,
|
|
@@ -29,4 +30,5 @@ const Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrient
|
|
|
29
30
|
})
|
|
30
31
|
});
|
|
31
32
|
};
|
|
33
|
+
//#endregion
|
|
32
34
|
export { Stepper };
|
|
@@ -5,7 +5,8 @@ import { stepperIconCva, stepperItemCva, stepperNumberCva, stepperSubtextCva, st
|
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { Button } from "react-aria-components";
|
|
8
|
-
|
|
8
|
+
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
9
|
+
var StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress }) => {
|
|
9
10
|
const stepperItemCva$1 = UIStyle.useCva("stepper.itemCva", stepperItemCva);
|
|
10
11
|
const stepperIconCva$1 = UIStyle.useCva("stepper.iconCva", stepperIconCva);
|
|
11
12
|
const stepperNumberCva$1 = UIStyle.useCva("stepper.numberCva", stepperNumberCva);
|
|
@@ -48,4 +49,5 @@ const StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly,
|
|
|
48
49
|
children: content
|
|
49
50
|
});
|
|
50
51
|
};
|
|
52
|
+
//#endregion
|
|
51
53
|
export { StepperItem };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
2
|
import { stepperSeparatorCva } from "./stepper.cva.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
//#region src/components/navigation/Stepper/StepperSeparator.tsx
|
|
5
|
+
var StepperSeparator = ({ orientation, contentOrientation }) => {
|
|
5
6
|
return /* @__PURE__ */ jsx("div", { className: UIStyle.useCva("stepper.separatorCva", stepperSeparatorCva)({
|
|
6
7
|
orientation,
|
|
7
8
|
contentOrientation
|
|
8
9
|
}) });
|
|
9
10
|
};
|
|
11
|
+
//#endregion
|
|
10
12
|
export { StepperSeparator };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/navigation/Stepper/stepper.cva.ts
|
|
3
|
+
var stepperCva = cva("", {
|
|
3
4
|
variants: { orientation: {
|
|
4
5
|
horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal",
|
|
5
6
|
vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical"
|
|
6
7
|
} },
|
|
7
8
|
defaultVariants: { orientation: "horizontal" }
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
var stepperItemCva = cva("flex shrink-0", {
|
|
10
11
|
variants: { contentOrientation: {
|
|
11
12
|
horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left",
|
|
12
13
|
vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center"
|
|
13
14
|
} },
|
|
14
15
|
defaultVariants: { contentOrientation: "horizontal" }
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
+
var stepperIconCva = cva("inline-flex size-5 shrink-0 items-center justify-center rounded-stepper-rounding-icon", {
|
|
17
18
|
variants: { status: {
|
|
18
19
|
completed: [
|
|
19
20
|
"border border-interactive-outlined-primary-outline-idle border-solid bg-interactive-contained-primary-idle",
|
|
@@ -25,7 +26,7 @@ const stepperIconCva = cva("inline-flex size-5 shrink-0 items-center justify-cen
|
|
|
25
26
|
} },
|
|
26
27
|
defaultVariants: { status: "todo" }
|
|
27
28
|
});
|
|
28
|
-
|
|
29
|
+
var stepperNumberCva = cva("text-center align-middle", {
|
|
29
30
|
variants: { status: {
|
|
30
31
|
completed: "",
|
|
31
32
|
active: "text-interactive-outlined-primary-on-idle",
|
|
@@ -33,7 +34,7 @@ const stepperNumberCva = cva("text-center align-middle", {
|
|
|
33
34
|
} },
|
|
34
35
|
defaultVariants: { status: "todo" }
|
|
35
36
|
});
|
|
36
|
-
|
|
37
|
+
var stepperTitleCva = cva("", {
|
|
37
38
|
variants: { status: {
|
|
38
39
|
completed: [
|
|
39
40
|
"text-interactive-text-secondary-idle",
|
|
@@ -45,7 +46,7 @@ const stepperTitleCva = cva("", {
|
|
|
45
46
|
} },
|
|
46
47
|
defaultVariants: { status: "todo" }
|
|
47
48
|
});
|
|
48
|
-
|
|
49
|
+
var stepperSubtextCva = cva("", {
|
|
49
50
|
variants: { status: {
|
|
50
51
|
completed: [
|
|
51
52
|
"text-interactive-text-secondary-idle",
|
|
@@ -57,7 +58,7 @@ const stepperSubtextCva = cva("", {
|
|
|
57
58
|
} },
|
|
58
59
|
defaultVariants: { status: "todo" }
|
|
59
60
|
});
|
|
60
|
-
|
|
61
|
+
var stepperSeparatorCva = cva("bg-elevation-outline-default-1", {
|
|
61
62
|
variants: {
|
|
62
63
|
orientation: {
|
|
63
64
|
horizontal: "h-px min-w-4 flex-1",
|
|
@@ -90,4 +91,5 @@ const stepperSeparatorCva = cva("bg-elevation-outline-default-1", {
|
|
|
90
91
|
}
|
|
91
92
|
]
|
|
92
93
|
});
|
|
94
|
+
//#endregion
|
|
93
95
|
export { stepperCva, stepperIconCva, stepperItemCva, stepperNumberCva, stepperSeparatorCva, stepperSubtextCva, stepperTitleCva };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { clsx } from "clsx";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
//#region src/components/outline.clsx.ts
|
|
3
|
+
var uiOutlineClass = clsx("focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-offset-2", "has-focus-visible:outline has-focus-visible:outline-2 has-focus-visible:outline-solid has-focus-visible:outline-offset-2");
|
|
4
|
+
var uiGroupOutlineClass = clsx("group-focus:outline-none group-focus-visible:outline group-focus-visible:outline-2 group-focus-visible:outline-solid group-focus-visible:outline-offset-2");
|
|
5
|
+
//#endregion
|
|
4
6
|
export { uiGroupOutlineClass, uiOutlineClass };
|
|
@@ -4,12 +4,13 @@ import { Button } from "../../buttons/Button/Button.js";
|
|
|
4
4
|
import { Modal } from "../Modal/Modal.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
+
//#region src/components/overlays/ActionModal/ActionModal.tsx
|
|
7
8
|
var textAlignClassMap = {
|
|
8
9
|
left: "text-left",
|
|
9
10
|
center: "text-center",
|
|
10
11
|
right: "text-right"
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
var ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps }) => {
|
|
13
14
|
const ui = UIConfig.useConfig();
|
|
14
15
|
const textAlignClass = textAlignClassMap[textAlign];
|
|
15
16
|
return /* @__PURE__ */ jsxs(Modal, {
|
|
@@ -49,4 +50,5 @@ const ActionModal = ({ heading, description, primaryAction, secondaryAction, but
|
|
|
49
50
|
})]
|
|
50
51
|
});
|
|
51
52
|
};
|
|
53
|
+
//#endregion
|
|
52
54
|
export { ActionModal };
|
|
@@ -8,6 +8,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
|
|
|
8
8
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
9
9
|
import { useResizeObserver, useViewportSize } from "@react-aria/utils";
|
|
10
10
|
import { AnimatePresence, animate, motion, useDragControls, useMotionValue } from "motion/react";
|
|
11
|
+
//#region src/components/overlays/BottomSheet/BottomSheet.tsx
|
|
11
12
|
var MotionModal = motion.create(Modal);
|
|
12
13
|
var MotionModalOverlay = motion.create(ModalOverlay);
|
|
13
14
|
var inertiaTransition = {
|
|
@@ -196,7 +197,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
|
|
|
196
197
|
})]
|
|
197
198
|
}) });
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
+
var BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }) => {
|
|
200
201
|
const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
|
|
201
202
|
const hasTrigger = !!trigger;
|
|
202
203
|
useEffect(() => {
|
|
@@ -227,4 +228,5 @@ const BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, childr
|
|
|
227
228
|
children
|
|
228
229
|
});
|
|
229
230
|
};
|
|
231
|
+
//#endregion
|
|
230
232
|
export { BottomSheet };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../config/i18n.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { Button } from "react-aria-components";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
|
-
|
|
8
|
+
//#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
|
|
9
|
+
var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose }) => {
|
|
9
10
|
const { t } = useTranslation("ui");
|
|
10
11
|
return /* @__PURE__ */ jsxs("div", {
|
|
11
12
|
className: clsx("pb-list-height-title-bottom", !isDismissable && "pt-list-height-title-top"),
|
|
@@ -33,4 +34,5 @@ const BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hide
|
|
|
33
34
|
})]
|
|
34
35
|
});
|
|
35
36
|
};
|
|
37
|
+
//#endregion
|
|
36
38
|
export { BottomSheetHeader };
|
|
@@ -2,7 +2,8 @@ import { modalOverlay } from "../Modal/modal.cva.js";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { Dialog, DialogTrigger, Modal, ModalOverlay } from "react-aria-components";
|
|
5
|
-
|
|
5
|
+
//#region src/components/overlays/Drawer/Drawer.tsx
|
|
6
|
+
var Drawer = ({ label, isOpen, portalContainerRef, onOpenChange, trigger, children, isDismissable, overlayClassName, dialogClassName, className, shouldCloseOnInteractOutside }) => {
|
|
6
7
|
if (trigger) return /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
7
8
|
isOpen,
|
|
8
9
|
onOpenChange,
|
|
@@ -48,4 +49,5 @@ var DrawerOverlay = ({ label, isOpen, onOpenChange, portalContainerRef, children
|
|
|
48
49
|
})
|
|
49
50
|
});
|
|
50
51
|
};
|
|
52
|
+
//#endregion
|
|
51
53
|
export { Drawer };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
2
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
3
|
import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
|
-
import
|
|
4
|
+
import "../../../config/i18n.js";
|
|
5
5
|
import { modalContent, modalMain, modalOverlay } from "./modal.cva.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { Dialog, Modal, ModalOverlay } from "react-aria-components";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
10
|
-
|
|
10
|
+
//#region src/components/overlays/Modal/Modal.tsx
|
|
11
|
+
var Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable = true, isKeyboardDismissable, shouldCloseOnInteractOutside }) => {
|
|
11
12
|
const { t } = useTranslation("ui");
|
|
12
13
|
const modalMainCva = UIStyle.useCva("modal.mainCva", modalMain);
|
|
13
14
|
const modalContentCva = UIStyle.useCva("modal.contentCva", modalContent);
|
|
@@ -50,4 +51,5 @@ const Modal$1 = ({ isOpen, portalContainerRef, onClose, aside, children, modalCl
|
|
|
50
51
|
})
|
|
51
52
|
});
|
|
52
53
|
};
|
|
54
|
+
//#endregion
|
|
53
55
|
export { Modal$1 as Modal };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/overlays/Modal/modal.cva.ts
|
|
3
|
+
var modalContent = cva([
|
|
3
4
|
"relative flex flex-col items-center gap-modal-gap-content px-modal-side-mobile py-modal-height-mobile md:px-modal-side-desktop md:py-modal-height-desktop",
|
|
4
5
|
"w-fit max-w-full [&>*]:max-w-full",
|
|
5
6
|
"border-elevation-outline-default-1 bg-elevation-fill-default-1 outline-none",
|
|
@@ -12,7 +13,7 @@ const modalContent = cva([
|
|
|
12
13
|
} },
|
|
13
14
|
defaultVariants: { aside: "center" }
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
var modalOverlay = cva(["fixed inset-0 z-10 flex h-(--visual-viewport-height) w-screen overflow-y-auto bg-support-overlay"], {
|
|
16
17
|
variants: { aside: {
|
|
17
18
|
left: "p-0",
|
|
18
19
|
right: "p-0",
|
|
@@ -20,7 +21,7 @@ const modalOverlay = cva(["fixed inset-0 z-10 flex h-(--visual-viewport-height)
|
|
|
20
21
|
} },
|
|
21
22
|
defaultVariants: { aside: "center" }
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
var modalMain = cva(["pointer-events-none my-auto flex w-full"], {
|
|
24
25
|
variants: { aside: {
|
|
25
26
|
left: "entering:animate-drawer-enter-left exiting:animate-drawer-exit-left justify-start",
|
|
26
27
|
right: "entering:animate-drawer-enter-right exiting:animate-drawer-exit-right justify-end",
|
|
@@ -28,4 +29,5 @@ const modalMain = cva(["pointer-events-none my-auto flex w-full"], {
|
|
|
28
29
|
} },
|
|
29
30
|
defaultVariants: { aside: "center" }
|
|
30
31
|
});
|
|
32
|
+
//#endregion
|
|
31
33
|
export { modalContent, modalMain, modalOverlay };
|
|
@@ -5,7 +5,8 @@ import { popover } from "../../shared/popover.cva.js";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { Dialog, DialogTrigger, Popover } from "react-aria-components";
|
|
8
|
-
|
|
8
|
+
//#region src/components/overlays/ResponsivePopover/ResponsivePopover.tsx
|
|
9
|
+
var ResponsivePopover = ({ trigger, isOpen, onOpenChange, children, popoverClassName, sheetLabel }) => {
|
|
9
10
|
const popoverCva = UIStyle.useCva("popover.cva", popover);
|
|
10
11
|
if (!useBreakpoint("md")) return /* @__PURE__ */ jsx(BottomSheet, {
|
|
11
12
|
isOpen,
|
|
@@ -36,4 +37,5 @@ const ResponsivePopover = ({ trigger, isOpen, onOpenChange, children, popoverCla
|
|
|
36
37
|
})]
|
|
37
38
|
});
|
|
38
39
|
};
|
|
40
|
+
//#endregion
|
|
39
41
|
export { ResponsivePopover };
|
|
@@ -8,6 +8,7 @@ import { clsx } from "clsx";
|
|
|
8
8
|
import { Fragment as Fragment$1, useRef } from "react";
|
|
9
9
|
import { OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
10
10
|
import { useFocusable } from "react-aria";
|
|
11
|
+
//#region src/components/overlays/Tooltip/Tooltip.tsx
|
|
11
12
|
var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
12
13
|
const ref = useRef(null);
|
|
13
14
|
const { focusableProps } = useFocusable({}, ref);
|
|
@@ -19,7 +20,7 @@ var CustomTrigger = ({ children, className, tabIndex }) => {
|
|
|
19
20
|
children
|
|
20
21
|
});
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
var Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNonInteractiveTrigger, triggerClassName, triggerTabIndex, ...tooltipProps }) => {
|
|
23
24
|
const tooltipCva$1 = UIStyle.useCva("tooltip.cva", tooltipCva);
|
|
24
25
|
const tooltipPointerHorizontalCva$1 = UIStyle.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalCva);
|
|
25
26
|
const tooltipPointerVerticalCva$1 = UIStyle.useCva("tooltip.pointerVerticalCva", tooltipPointerVerticalCva);
|
|
@@ -34,8 +35,11 @@ const Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNon
|
|
|
34
35
|
tabIndex: triggerTabIndex,
|
|
35
36
|
children
|
|
36
37
|
}) : /* @__PURE__ */ jsx(Trigger, { children }), /* @__PURE__ */ jsxs(Tooltip, {
|
|
37
|
-
className: tooltipCva$1({ color }),
|
|
38
38
|
...tooltipProps,
|
|
39
|
+
className: tooltipCva$1({
|
|
40
|
+
color,
|
|
41
|
+
className: tooltipProps.className
|
|
42
|
+
}),
|
|
39
43
|
offset: 13,
|
|
40
44
|
children: [/* @__PURE__ */ jsxs(OverlayArrow, { children: [/* @__PURE__ */ jsx(PointerHorizontalIcon, { className: tooltipPointerHorizontalCva$1({ color }) }), /* @__PURE__ */ jsx(PointerVerticalIcon, { className: tooltipPointerVerticalCva$1({ color }) })] }), /* @__PURE__ */ jsx(Typography, {
|
|
41
45
|
size: "body-4",
|
|
@@ -46,4 +50,5 @@ const Tooltip$1 = ({ children, text, isDisabled, delay, closeDelay, color, isNon
|
|
|
46
50
|
})]
|
|
47
51
|
});
|
|
48
52
|
};
|
|
53
|
+
//#endregion
|
|
49
54
|
export { Tooltip$1 as Tooltip };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Tooltip } from "./Tooltip.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
|
|
4
|
+
//#region src/components/overlays/Tooltip/TooltipEllipsis.tsx
|
|
5
|
+
var TooltipEllipsis = ({ text, children, isDisabled, isNonInteractiveTrigger }) => {
|
|
5
6
|
const [isEllipsisActive, setIsEllipsisActive] = useState(false);
|
|
6
7
|
const onContentRef = (ref) => {
|
|
7
8
|
if (ref) setIsEllipsisActive(ref.offsetWidth < ref.scrollWidth);
|
|
@@ -16,4 +17,5 @@ const TooltipEllipsis = ({ text, children, isDisabled, isNonInteractiveTrigger }
|
|
|
16
17
|
});
|
|
17
18
|
return content;
|
|
18
19
|
};
|
|
20
|
+
//#endregion
|
|
19
21
|
export { TooltipEllipsis };
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/overlays/Tooltip/tooltip.cva.ts
|
|
3
|
+
var tooltipCva = cva(["group max-w-64 rounded-tooltip-rounding-default px-tooltip-side-default py-tooltip-height-default shadow-2"], {
|
|
3
4
|
variants: { color: {
|
|
4
5
|
default: ["bg-interactive-contained-secondary-idle"],
|
|
5
6
|
error: ["w-max bg-elevation-fill-error-1"]
|
|
6
7
|
} },
|
|
7
8
|
defaultVariants: { color: "default" }
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
var tooltipPointerHorizontalCva = cva(["h-2-5 w-5 group-placement-left:hidden group-placement-right:hidden group-placement-top:rotate-180"], {
|
|
10
11
|
variants: { color: {
|
|
11
12
|
default: ["text-interactive-contained-secondary-idle"],
|
|
12
13
|
error: ["text-elevation-fill-error-1"]
|
|
13
14
|
} },
|
|
14
15
|
defaultVariants: { color: "default" }
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
+
var tooltipPointerVerticalCva = cva(["h-5 w-2-5 group-placement-bottom:hidden group-placement-top:hidden group-placement-left:rotate-180"], {
|
|
17
18
|
variants: { color: {
|
|
18
19
|
default: ["text-interactive-contained-secondary-idle"],
|
|
19
20
|
error: ["text-elevation-fill-error-1"]
|
|
20
21
|
} },
|
|
21
22
|
defaultVariants: { color: "default" }
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
+
var tooltipTextCva = cva([], {
|
|
24
25
|
variants: { color: {
|
|
25
26
|
default: ["text-interactive-contained-secondary-on-idle"],
|
|
26
27
|
error: ["text-text-error-inverted-1"]
|
|
27
28
|
} },
|
|
28
29
|
defaultVariants: { color: "default" }
|
|
29
30
|
});
|
|
31
|
+
//#endregion
|
|
30
32
|
export { tooltipCva, tooltipPointerHorizontalCva, tooltipPointerVerticalCva, tooltipTextCva };
|
|
@@ -10,6 +10,7 @@ import { useToggleButtonGroup } from "react-aria";
|
|
|
10
10
|
import { mergeRefs } from "@react-aria/utils";
|
|
11
11
|
import { Controller } from "react-hook-form";
|
|
12
12
|
import { useToggleGroupState } from "react-stately";
|
|
13
|
+
//#region src/components/segment/Segment.tsx
|
|
13
14
|
var SegmentBase = ({ className, items, error, onChange, value, defaultValue, ...rest }) => {
|
|
14
15
|
const props = {
|
|
15
16
|
...rest,
|
|
@@ -60,7 +61,7 @@ var SegmentBase = ({ className, items, error, onChange, value, defaultValue, ...
|
|
|
60
61
|
})
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
+
var Segment = (props) => {
|
|
64
65
|
if ("formControl" in props && props.formControl) {
|
|
65
66
|
const { formControl, ref, ...innerProps } = props;
|
|
66
67
|
return /* @__PURE__ */ jsx(Controller, {
|
|
@@ -78,4 +79,5 @@ const Segment = (props) => {
|
|
|
78
79
|
}
|
|
79
80
|
return /* @__PURE__ */ jsx(SegmentBase, { ...props });
|
|
80
81
|
};
|
|
82
|
+
//#endregion
|
|
81
83
|
export { Segment };
|
|
@@ -3,7 +3,8 @@ import { Typography } from "../text/Typography/Typography.js";
|
|
|
3
3
|
import { segmentItemCva } from "./segment.cva.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ToggleButton } from "react-aria-components";
|
|
6
|
-
|
|
6
|
+
//#region src/components/segment/SegmentItem.tsx
|
|
7
|
+
var SegmentItem = ({ label, icon, id, isDisabled, ...props }) => {
|
|
7
8
|
const IconComponent = icon;
|
|
8
9
|
const iconOnly = !!(icon && !label);
|
|
9
10
|
const segmentItemCva$1 = UIStyle.useCva("segment.itemCva", segmentItemCva);
|
|
@@ -20,4 +21,5 @@ const SegmentItem = ({ label, icon, id, isDisabled, ...props }) => {
|
|
|
20
21
|
})]
|
|
21
22
|
});
|
|
22
23
|
};
|
|
24
|
+
//#endregion
|
|
23
25
|
export { SegmentItem };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/segment/segment.cva.ts
|
|
3
|
+
var segmentCva = cva([
|
|
3
4
|
"group/segment grid w-fit items-center gap-segmented-control-side-segmented-control p-segmented-control-side-segmented-control",
|
|
4
5
|
"bg-elevation-fill-default-3",
|
|
5
6
|
"rounded-segmented-control-rounding-segmented-control"
|
|
6
7
|
]);
|
|
7
|
-
|
|
8
|
+
var segmentItemCva = cva([
|
|
8
9
|
"flex items-center justify-center gap-segmented-control-gap-content-icon-to-text transition-all duration-200",
|
|
9
10
|
"border border-support-transparent-outline",
|
|
10
11
|
"py-segmented-control-height-segment",
|
|
@@ -22,4 +23,5 @@ const segmentItemCva = cva([
|
|
|
22
23
|
} },
|
|
23
24
|
defaultVariants: { iconOnly: false }
|
|
24
25
|
});
|
|
26
|
+
//#endregion
|
|
25
27
|
export { segmentCva, segmentItemCva };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
2
|
-
import
|
|
2
|
+
import "../../../config/i18n.js";
|
|
3
3
|
import { NumberInput } from "../../inputs/Input/NumberInput/NumberInput.js";
|
|
4
4
|
import { PaginationList } from "./PaginationList.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
|
-
|
|
8
|
+
//#region src/components/shared/pagination/Pagination.tsx
|
|
9
|
+
var Pagination = ({ size = "s", variant = "subtle", color = "secondary", page, totalItems, totalPages, pageSize, hideText = true, hideFirstLast = true, hidePrevNext = false, hideNumbers = false, className, onPageChange, onPageSizeChange }) => {
|
|
9
10
|
const { t } = useTranslation("ui");
|
|
10
11
|
return /* @__PURE__ */ jsxs("nav", {
|
|
11
12
|
id: "pagination",
|
|
@@ -40,4 +41,5 @@ const Pagination = ({ size = "s", variant = "subtle", color = "secondary", page,
|
|
|
40
41
|
})]
|
|
41
42
|
});
|
|
42
43
|
};
|
|
44
|
+
//#endregion
|
|
43
45
|
export { Pagination };
|
|
@@ -3,13 +3,14 @@ import { ChevronRightIcon } from "../../../assets/icons/ChevronRight.js";
|
|
|
3
3
|
import { ChevronsLeftIcon } from "../../../assets/icons/ChevronsLeft.js";
|
|
4
4
|
import { ChevronsRightIcon } from "../../../assets/icons/ChevronsRight.js";
|
|
5
5
|
import { Button } from "../../buttons/Button/Button.js";
|
|
6
|
-
import
|
|
6
|
+
import "../../../config/i18n.js";
|
|
7
7
|
import { minWidth } from "./minWidth.cva.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useMemo } from "react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
|
-
|
|
12
|
+
//#region src/components/shared/pagination/PaginationList.tsx
|
|
13
|
+
var PaginationList = ({ page, totalPages, size, color, variant, hideText, hideFirstLast, hidePrevNext, hideNumbers, className, onPageChange }) => {
|
|
13
14
|
const { t } = useTranslation("ui");
|
|
14
15
|
const isPrevDisabled = page <= 1;
|
|
15
16
|
const isNextDisabled = page >= totalPages;
|
|
@@ -102,4 +103,5 @@ const PaginationList = ({ page, totalPages, size, color, variant, hideText, hide
|
|
|
102
103
|
]
|
|
103
104
|
});
|
|
104
105
|
};
|
|
106
|
+
//#endregion
|
|
105
107
|
export { PaginationList };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/shared/pagination/minWidth.cva.ts
|
|
3
|
+
var minWidth = cva("", { variants: { size: {
|
|
3
4
|
xxs: ["min-w-button-width-min-width-xxs"],
|
|
4
5
|
xs: ["min-w-button-width-min-width-xs"],
|
|
5
6
|
s: ["min-w-button-width-min-width-s"],
|
|
6
7
|
m: ["min-w-button-width-min-width-m"],
|
|
7
8
|
l: ["min-w-button-width-min-width-l"]
|
|
8
9
|
} } });
|
|
10
|
+
//#endregion
|
|
9
11
|
export { minWidth };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/shared/popover.cva.ts
|
|
3
|
+
var popover = cva("rounded-list-rounding-dropdown border border-elevation-outline-default-1 border-solid bg-elevation-fill-default-1 shadow-5 outline-none");
|
|
4
|
+
//#endregion
|
|
3
5
|
export { popover };
|
|
@@ -4,7 +4,8 @@ import { Loader } from "../Loader/Loader.js";
|
|
|
4
4
|
import { alert } from "./alert.cva.js";
|
|
5
5
|
import { statusIcon, statusSeparator } from "../shared/status.cva.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
//#region src/components/status/Alert/Alert.tsx
|
|
8
|
+
var Alert = ({ variant, color, text, isLoading = false, rightContent, hasSeparator, icon: Icon, className }) => {
|
|
8
9
|
const alertCva = UIStyle.useCva("alert.cva", alert);
|
|
9
10
|
const iconCva = UIStyle.useCva("status.iconCva", statusIcon);
|
|
10
11
|
const separatorCva = UIStyle.useCva("status.separatorCva", statusSeparator);
|
|
@@ -42,4 +43,5 @@ const Alert = ({ variant, color, text, isLoading = false, rightContent, hasSepar
|
|
|
42
43
|
})
|
|
43
44
|
});
|
|
44
45
|
};
|
|
46
|
+
//#endregion
|
|
45
47
|
export { Alert };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/status/Alert/alert.cva.ts
|
|
3
|
+
var alert = cva("min-h-0 overflow-hidden rounded-alert-rounding-default p-0", {
|
|
3
4
|
variants: {
|
|
4
5
|
variant: {
|
|
5
6
|
outlined: "border bg-elevation-fill-default-1 text-text-default-1",
|
|
@@ -59,4 +60,5 @@ const alert = cva("min-h-0 overflow-hidden rounded-alert-rounding-default p-0",
|
|
|
59
60
|
color: "neutral"
|
|
60
61
|
}
|
|
61
62
|
});
|
|
63
|
+
//#endregion
|
|
62
64
|
export { alert };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { loader, loaderWrapper } from "./loader.cva.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
//#region src/components/status/Loader/Loader.tsx
|
|
4
|
+
var Loader = ({ size, className, ...props }) => {
|
|
4
5
|
return /* @__PURE__ */ jsx("div", {
|
|
5
6
|
className: loaderWrapper({
|
|
6
7
|
size,
|
|
@@ -29,4 +30,5 @@ const Loader = ({ size, className, ...props }) => {
|
|
|
29
30
|
})
|
|
30
31
|
});
|
|
31
32
|
};
|
|
33
|
+
//#endregion
|
|
32
34
|
export { Loader };
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/status/Loader/loader.cva.ts
|
|
3
|
+
var loaderWrapper = cva("flex items-center justify-center", {
|
|
3
4
|
variants: { size: {
|
|
4
5
|
default: "size-6",
|
|
5
6
|
l: "size-16"
|
|
6
7
|
} },
|
|
7
8
|
defaultVariants: { size: "default" }
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
var loader = cva("animate-loader-spin", {
|
|
10
11
|
variants: { size: {
|
|
11
12
|
default: "size-3-5",
|
|
12
13
|
l: "size-8"
|
|
13
14
|
} },
|
|
14
15
|
defaultVariants: { size: "default" }
|
|
15
16
|
});
|
|
17
|
+
//#endregion
|
|
16
18
|
export { loader, loaderWrapper };
|