@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,60 +1,21 @@
|
|
|
1
|
-
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
1
|
import { Tooltip } from "../../overlays/Tooltip/Tooltip.js";
|
|
3
|
-
import { tooltipWrapperTrigger } from "./tooltipWrapper.cva.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
2
|
import { jsx } from "react/jsx-runtime";
|
|
6
3
|
//#region src/components/inputs/shared/TooltipWrapper.tsx
|
|
7
4
|
var TooltipWrapper = (props) => {
|
|
8
|
-
const $ = c(14);
|
|
9
|
-
const tooltipWrapperTriggerCva = UIStyle.useCva("tooltipWrapper.triggerCva", tooltipWrapperTrigger);
|
|
10
5
|
if (props.as !== "inline") return props.children;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const t3 = props.triggerTabIndex;
|
|
21
|
-
let t4;
|
|
22
|
-
if ($[3] !== tooltipWrapperTriggerCva) {
|
|
23
|
-
t4 = tooltipWrapperTriggerCva({});
|
|
24
|
-
$[3] = tooltipWrapperTriggerCva;
|
|
25
|
-
$[4] = t4;
|
|
26
|
-
} else t4 = $[4];
|
|
27
|
-
let t5;
|
|
28
|
-
if ($[5] !== props.children || $[6] !== t4) {
|
|
29
|
-
t5 = /* @__PURE__ */ jsx("div", {
|
|
6
|
+
return /* @__PURE__ */ jsx(Tooltip, {
|
|
7
|
+
text: props.error || void 0,
|
|
8
|
+
placement: "bottom",
|
|
9
|
+
color: "error",
|
|
10
|
+
hidden: !props.error,
|
|
11
|
+
isNonInteractiveTrigger: true,
|
|
12
|
+
triggerClassName: props.triggerClassName,
|
|
13
|
+
triggerTabIndex: props.triggerTabIndex,
|
|
14
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
30
15
|
tabIndex: -1,
|
|
31
|
-
className: t4,
|
|
32
16
|
children: props.children
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
$[6] = t4;
|
|
36
|
-
$[7] = t5;
|
|
37
|
-
} else t5 = $[7];
|
|
38
|
-
let t6;
|
|
39
|
-
if ($[8] !== props.triggerTabIndex || $[9] !== t0 || $[10] !== t1 || $[11] !== t2 || $[12] !== t5) {
|
|
40
|
-
t6 = /* @__PURE__ */ jsx(Tooltip, {
|
|
41
|
-
text: t0,
|
|
42
|
-
placement: "bottom",
|
|
43
|
-
color: "error",
|
|
44
|
-
hidden: t1,
|
|
45
|
-
isNonInteractiveTrigger: true,
|
|
46
|
-
triggerClassName: t2,
|
|
47
|
-
triggerTabIndex: t3,
|
|
48
|
-
children: t5
|
|
49
|
-
});
|
|
50
|
-
$[8] = props.triggerTabIndex;
|
|
51
|
-
$[9] = t0;
|
|
52
|
-
$[10] = t1;
|
|
53
|
-
$[11] = t2;
|
|
54
|
-
$[12] = t5;
|
|
55
|
-
$[13] = t6;
|
|
56
|
-
} else t6 = $[13];
|
|
57
|
-
return t6;
|
|
17
|
+
})
|
|
18
|
+
});
|
|
58
19
|
};
|
|
59
20
|
//#endregion
|
|
60
21
|
export { TooltipWrapper };
|
|
@@ -12,16 +12,6 @@ export declare const inputSize: (props?: ({
|
|
|
12
12
|
} & ClassProp) | undefined) => string;
|
|
13
13
|
export interface InputSizeProps extends VariantProps<typeof inputSize> {
|
|
14
14
|
}
|
|
15
|
-
export declare const inputContentWrapper: (props?: ({
|
|
16
|
-
as?: "filter" | "default" | "floating" | "inline" | null | undefined;
|
|
17
|
-
} & ClassProp) | undefined) => string;
|
|
18
|
-
export interface InputContentWrapperProps extends VariantProps<typeof inputContentWrapper> {
|
|
19
|
-
}
|
|
20
|
-
export declare const inputClearClass: (props?: ({
|
|
21
|
-
as?: "filter" | "default" | "floating" | "inline" | null | undefined;
|
|
22
|
-
} & ClassProp) | undefined) => string;
|
|
23
|
-
export interface InputClearClassProps extends VariantProps<typeof inputClearClass> {
|
|
24
|
-
}
|
|
25
15
|
export declare const inputSide: (props?: ({
|
|
26
16
|
size?: "small" | "default" | "extra-small" | "large" | null | undefined;
|
|
27
17
|
type?: "left" | "right" | "var" | null | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
2
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
3
|
-
import { c } from "react/compiler-runtime";
|
|
4
3
|
import { clsx } from "clsx";
|
|
5
4
|
import { cva } from "class-variance-authority";
|
|
6
5
|
//#region src/components/inputs/shared/input.cva.ts
|
|
@@ -204,24 +203,6 @@ var inputSize = cva("", {
|
|
|
204
203
|
as: "default"
|
|
205
204
|
}
|
|
206
205
|
});
|
|
207
|
-
var inputContentWrapper = cva("flex w-full", {
|
|
208
|
-
variants: { as: {
|
|
209
|
-
default: "",
|
|
210
|
-
floating: "flex-col",
|
|
211
|
-
filter: "gap-input-gap-input-text-to-elements",
|
|
212
|
-
inline: ""
|
|
213
|
-
} },
|
|
214
|
-
defaultVariants: { as: "default" }
|
|
215
|
-
});
|
|
216
|
-
var inputClearClass = cva("", {
|
|
217
|
-
variants: { as: {
|
|
218
|
-
default: "",
|
|
219
|
-
floating: "",
|
|
220
|
-
filter: "",
|
|
221
|
-
inline: ""
|
|
222
|
-
} },
|
|
223
|
-
defaultVariants: { as: "default" }
|
|
224
|
-
});
|
|
225
206
|
var inputSide = cva("", {
|
|
226
207
|
variants: {
|
|
227
208
|
size: {
|
|
@@ -301,20 +282,11 @@ var inputSide = cva("", {
|
|
|
301
282
|
defaultVariants: { size: "default" }
|
|
302
283
|
});
|
|
303
284
|
var useInputCva = () => {
|
|
304
|
-
const $ = c(3);
|
|
305
285
|
const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
|
|
306
286
|
const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
const { className, ...rest } = t1;
|
|
311
|
-
return clsx(inputBaseCva(rest), inputSizeCva(rest), className);
|
|
312
|
-
};
|
|
313
|
-
$[0] = inputBaseCva;
|
|
314
|
-
$[1] = inputSizeCva;
|
|
315
|
-
$[2] = t0;
|
|
316
|
-
} else t0 = $[2];
|
|
317
|
-
return t0;
|
|
287
|
+
return ({ className, ...rest }) => {
|
|
288
|
+
return clsx(inputBaseCva(rest), inputSizeCva(rest), className);
|
|
289
|
+
};
|
|
318
290
|
};
|
|
319
291
|
//#endregion
|
|
320
|
-
export { inputBase,
|
|
292
|
+
export { inputBase, inputSide, inputSize, useInputCva };
|
|
@@ -1,81 +1,34 @@
|
|
|
1
1
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
2
|
import { accordionCva } from "./accordion.cva.js";
|
|
3
3
|
import { AccordionItem } from "./AccordionItem.js";
|
|
4
|
-
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
6
|
import { DisclosureGroup } from "react-aria-components";
|
|
8
7
|
//#region src/components/navigation/Accordion/Accordion.tsx
|
|
9
|
-
var Accordion = (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const t4 = items.length === 1;
|
|
17
|
-
let t5;
|
|
18
|
-
if ($[0] !== accordionCva$1 || $[1] !== className || $[2] !== t4 || $[3] !== variant) {
|
|
19
|
-
t5 = clsx(accordionCva$1({
|
|
8
|
+
var Accordion = ({ items, variant = "filled", actionPosition = "right", allowsMultipleExpanded = false, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled }) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(DisclosureGroup, {
|
|
10
|
+
allowsMultipleExpanded,
|
|
11
|
+
expandedKeys,
|
|
12
|
+
defaultExpandedKeys,
|
|
13
|
+
onExpandedChange,
|
|
14
|
+
className: clsx(UIStyle.useCva("accordion.cva", accordionCva)({
|
|
20
15
|
className,
|
|
21
16
|
variant,
|
|
22
|
-
singleItem:
|
|
23
|
-
}))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
subheading: item.subheading,
|
|
38
|
-
icon: item.icon,
|
|
39
|
-
variant,
|
|
40
|
-
actionPosition,
|
|
41
|
-
disabled: item.disabled || disabled,
|
|
42
|
-
isSingle: items.length === 1,
|
|
43
|
-
children: item.children
|
|
44
|
-
}, item.id);
|
|
45
|
-
$[10] = actionPosition;
|
|
46
|
-
$[11] = disabled;
|
|
47
|
-
$[12] = items.length;
|
|
48
|
-
$[13] = variant;
|
|
49
|
-
$[14] = t7;
|
|
50
|
-
} else t7 = $[14];
|
|
51
|
-
t6 = items.map(t7);
|
|
52
|
-
$[5] = actionPosition;
|
|
53
|
-
$[6] = disabled;
|
|
54
|
-
$[7] = items;
|
|
55
|
-
$[8] = variant;
|
|
56
|
-
$[9] = t6;
|
|
57
|
-
} else t6 = $[9];
|
|
58
|
-
let t7;
|
|
59
|
-
if ($[15] !== allowsMultipleExpanded || $[16] !== defaultExpandedKeys || $[17] !== disabled || $[18] !== expandedKeys || $[19] !== onExpandedChange || $[20] !== t5 || $[21] !== t6) {
|
|
60
|
-
t7 = /* @__PURE__ */ jsx(DisclosureGroup, {
|
|
61
|
-
allowsMultipleExpanded,
|
|
62
|
-
expandedKeys,
|
|
63
|
-
defaultExpandedKeys,
|
|
64
|
-
onExpandedChange,
|
|
65
|
-
className: t5,
|
|
66
|
-
isDisabled: disabled,
|
|
67
|
-
children: t6
|
|
68
|
-
});
|
|
69
|
-
$[15] = allowsMultipleExpanded;
|
|
70
|
-
$[16] = defaultExpandedKeys;
|
|
71
|
-
$[17] = disabled;
|
|
72
|
-
$[18] = expandedKeys;
|
|
73
|
-
$[19] = onExpandedChange;
|
|
74
|
-
$[20] = t5;
|
|
75
|
-
$[21] = t6;
|
|
76
|
-
$[22] = t7;
|
|
77
|
-
} else t7 = $[22];
|
|
78
|
-
return t7;
|
|
17
|
+
singleItem: items.length === 1
|
|
18
|
+
})),
|
|
19
|
+
isDisabled: disabled,
|
|
20
|
+
children: items.map((item) => /* @__PURE__ */ jsx(AccordionItem, {
|
|
21
|
+
id: item.id,
|
|
22
|
+
heading: item.heading,
|
|
23
|
+
subheading: item.subheading,
|
|
24
|
+
icon: item.icon,
|
|
25
|
+
variant,
|
|
26
|
+
actionPosition,
|
|
27
|
+
disabled: item.disabled || disabled,
|
|
28
|
+
isSingle: items.length === 1,
|
|
29
|
+
children: item.children
|
|
30
|
+
}, item.id))
|
|
31
|
+
});
|
|
79
32
|
};
|
|
80
33
|
//#endregion
|
|
81
34
|
export { Accordion };
|
|
@@ -2,15 +2,10 @@ import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
|
2
2
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
4
|
import { accordionChevronCva, accordionHeadingCva, accordionHeadingSubtitleCva, accordionHeadingTitleCva, accordionIconCva, accordionItemCva, accordionPanelContentCva, accordionPanelCva, accordionTriggerCva } from "./accordion.cva.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
8
7
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
9
|
-
var AccordionItem = (
|
|
10
|
-
const $ = c(25);
|
|
11
|
-
const { id, disabled, heading, subheading, children, icon: Icon, variant: t1, actionPosition: t2, isSingle } = t0;
|
|
12
|
-
const variant = t1 === void 0 ? "filled" : t1;
|
|
13
|
-
const actionPosition = t2 === void 0 ? "right" : t2;
|
|
8
|
+
var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon, variant = "filled", actionPosition = "right", isSingle }) => {
|
|
14
9
|
const itemCva = UIStyle.useCva("accordion.itemCva", accordionItemCva);
|
|
15
10
|
const triggerCva = UIStyle.useCva("accordion.triggerCva", accordionTriggerCva);
|
|
16
11
|
const headingCva = UIStyle.useCva("accordion.headingCva", accordionHeadingCva);
|
|
@@ -20,89 +15,49 @@ var AccordionItem = (t0) => {
|
|
|
20
15
|
const iconCva = UIStyle.useCva("accordion.iconCva", accordionIconCva);
|
|
21
16
|
const panelCva = UIStyle.useCva("accordion.panelCva", accordionPanelCva);
|
|
22
17
|
const panelContentCva = UIStyle.useCva("accordion.panelContentCva", accordionPanelContentCva);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
return /* @__PURE__ */ jsx(Disclosure, {
|
|
19
|
+
id,
|
|
20
|
+
className: itemCva({
|
|
26
21
|
variant,
|
|
27
22
|
singleItem: isSingle
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
subheading && /* @__PURE__ */ jsx(Typography, {
|
|
58
|
-
size: "label-3",
|
|
59
|
-
variant: "default",
|
|
60
|
-
className: headingSubtitleCva({}),
|
|
61
|
-
children: subheading
|
|
62
|
-
})
|
|
63
|
-
]
|
|
64
|
-
})
|
|
65
|
-
}), /* @__PURE__ */ jsx(ChevronDownIcon, { className: chevronCva({ isExpanded }) })]
|
|
66
|
-
}) }), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
67
|
-
className: panelCva({ isExpanded }),
|
|
68
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
69
|
-
className: panelContentCva({}),
|
|
70
|
-
children
|
|
23
|
+
}),
|
|
24
|
+
isDisabled: disabled,
|
|
25
|
+
children: ({ isExpanded }) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heading, { children: /* @__PURE__ */ jsxs(Button, {
|
|
26
|
+
slot: "trigger",
|
|
27
|
+
className: triggerCva({
|
|
28
|
+
variant,
|
|
29
|
+
actionPosition,
|
|
30
|
+
disabled
|
|
31
|
+
}),
|
|
32
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
33
|
+
className: headingCva({}),
|
|
34
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
35
|
+
className: "flex flex-1 items-center gap-accordion-gap-icon-to-text",
|
|
36
|
+
children: [
|
|
37
|
+
Icon && /* @__PURE__ */ jsx(Icon, { className: iconCva({}) }),
|
|
38
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
39
|
+
size: "label-2",
|
|
40
|
+
variant: "default",
|
|
41
|
+
className: headingTitleCva({}),
|
|
42
|
+
children: heading
|
|
43
|
+
}),
|
|
44
|
+
subheading && /* @__PURE__ */ jsx(Typography, {
|
|
45
|
+
size: "label-3",
|
|
46
|
+
variant: "default",
|
|
47
|
+
className: headingSubtitleCva({}),
|
|
48
|
+
children: subheading
|
|
49
|
+
})
|
|
50
|
+
]
|
|
71
51
|
})
|
|
72
|
-
})
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
$[11] = headingSubtitleCva;
|
|
82
|
-
$[12] = headingTitleCva;
|
|
83
|
-
$[13] = iconCva;
|
|
84
|
-
$[14] = panelContentCva;
|
|
85
|
-
$[15] = panelCva;
|
|
86
|
-
$[16] = subheading;
|
|
87
|
-
$[17] = triggerCva;
|
|
88
|
-
$[18] = variant;
|
|
89
|
-
$[19] = t4;
|
|
90
|
-
} else t4 = $[19];
|
|
91
|
-
let t5;
|
|
92
|
-
if ($[20] !== disabled || $[21] !== id || $[22] !== t3 || $[23] !== t4) {
|
|
93
|
-
t5 = /* @__PURE__ */ jsx(Disclosure, {
|
|
94
|
-
id,
|
|
95
|
-
className: t3,
|
|
96
|
-
isDisabled: disabled,
|
|
97
|
-
children: t4
|
|
98
|
-
});
|
|
99
|
-
$[20] = disabled;
|
|
100
|
-
$[21] = id;
|
|
101
|
-
$[22] = t3;
|
|
102
|
-
$[23] = t4;
|
|
103
|
-
$[24] = t5;
|
|
104
|
-
} else t5 = $[24];
|
|
105
|
-
return t5;
|
|
52
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, { className: chevronCva({ isExpanded }) })]
|
|
53
|
+
}) }), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
54
|
+
className: panelCva({ isExpanded }),
|
|
55
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
56
|
+
className: panelContentCva({}),
|
|
57
|
+
children
|
|
58
|
+
})
|
|
59
|
+
})] })
|
|
60
|
+
});
|
|
106
61
|
};
|
|
107
62
|
//#endregion
|
|
108
63
|
export { AccordionItem };
|
|
@@ -2,78 +2,33 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
|
2
2
|
import { stepperCva } from "./stepper.cva.js";
|
|
3
3
|
import { StepperItem } from "./StepperItem.js";
|
|
4
4
|
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { Fragment as Fragment$1 } from "react";
|
|
8
7
|
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
9
|
-
var Stepper = (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const orientation = t1 === void 0 ? "horizontal" : t1;
|
|
13
|
-
const contentOrientation = t2 === void 0 ? "horizontal" : t2;
|
|
14
|
-
const stepperCva$1 = UIStyle.useCva("stepper.cva", stepperCva);
|
|
15
|
-
let t3;
|
|
16
|
-
if ($[0] !== className || $[1] !== orientation || $[2] !== stepperCva$1) {
|
|
17
|
-
t3 = stepperCva$1({
|
|
8
|
+
var Stepper = ({ steps, currentStep, orientation = "horizontal", contentOrientation = "horizontal", iconsOnly, titlesOnly, onStepClick, className }) => {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: UIStyle.useCva("stepper.cva", stepperCva)({
|
|
18
11
|
orientation,
|
|
19
12
|
className
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
onPress: onStepClick && status === "completed" ? () => onStepClick(index) : void 0
|
|
40
|
-
}), index < steps.length - 1 && /* @__PURE__ */ jsx(StepperSeparator, {
|
|
41
|
-
orientation,
|
|
42
|
-
contentOrientation
|
|
43
|
-
})] }, step.id);
|
|
44
|
-
};
|
|
45
|
-
$[12] = contentOrientation;
|
|
46
|
-
$[13] = currentStep;
|
|
47
|
-
$[14] = iconsOnly;
|
|
48
|
-
$[15] = onStepClick;
|
|
49
|
-
$[16] = orientation;
|
|
50
|
-
$[17] = steps.length;
|
|
51
|
-
$[18] = titlesOnly;
|
|
52
|
-
$[19] = t5;
|
|
53
|
-
} else t5 = $[19];
|
|
54
|
-
t4 = steps.map(t5);
|
|
55
|
-
$[4] = contentOrientation;
|
|
56
|
-
$[5] = currentStep;
|
|
57
|
-
$[6] = iconsOnly;
|
|
58
|
-
$[7] = onStepClick;
|
|
59
|
-
$[8] = orientation;
|
|
60
|
-
$[9] = steps;
|
|
61
|
-
$[10] = titlesOnly;
|
|
62
|
-
$[11] = t4;
|
|
63
|
-
} else t4 = $[11];
|
|
64
|
-
let t5;
|
|
65
|
-
if ($[20] !== t3 || $[21] !== t4) {
|
|
66
|
-
t5 = /* @__PURE__ */ jsx("div", {
|
|
67
|
-
className: t3,
|
|
68
|
-
role: "group",
|
|
69
|
-
"aria-label": "Progress",
|
|
70
|
-
children: t4
|
|
71
|
-
});
|
|
72
|
-
$[20] = t3;
|
|
73
|
-
$[21] = t4;
|
|
74
|
-
$[22] = t5;
|
|
75
|
-
} else t5 = $[22];
|
|
76
|
-
return t5;
|
|
13
|
+
}),
|
|
14
|
+
role: "group",
|
|
15
|
+
"aria-label": "Progress",
|
|
16
|
+
children: steps.map((step, index) => {
|
|
17
|
+
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
19
|
+
step,
|
|
20
|
+
stepNumber: index + 1,
|
|
21
|
+
status,
|
|
22
|
+
contentOrientation,
|
|
23
|
+
iconsOnly,
|
|
24
|
+
titlesOnly,
|
|
25
|
+
onPress: onStepClick && status === "completed" ? () => onStepClick(index) : void 0
|
|
26
|
+
}), index < steps.length - 1 && /* @__PURE__ */ jsx(StepperSeparator, {
|
|
27
|
+
orientation,
|
|
28
|
+
contentOrientation
|
|
29
|
+
})] }, step.id);
|
|
30
|
+
})
|
|
31
|
+
});
|
|
77
32
|
};
|
|
78
33
|
//#endregion
|
|
79
34
|
export { Stepper };
|
|
@@ -2,14 +2,11 @@ import { CheckIcon } from "../../../assets/icons/Check.js";
|
|
|
2
2
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
4
|
import { stepperIconCva, stepperItemCva, stepperNumberCva, stepperSubtextCva, stepperTitleCva } from "./stepper.cva.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { clsx } from "clsx";
|
|
8
7
|
import { Button } from "react-aria-components";
|
|
9
8
|
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
10
|
-
var StepperItem = (
|
|
11
|
-
const $ = c(31);
|
|
12
|
-
const { step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress } = t0;
|
|
9
|
+
var StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress }) => {
|
|
13
10
|
const stepperItemCva$1 = UIStyle.useCva("stepper.itemCva", stepperItemCva);
|
|
14
11
|
const stepperIconCva$1 = UIStyle.useCva("stepper.iconCva", stepperIconCva);
|
|
15
12
|
const stepperNumberCva$1 = UIStyle.useCva("stepper.numberCva", stepperNumberCva);
|
|
@@ -17,110 +14,40 @@ var StepperItem = (t0) => {
|
|
|
17
14
|
const stepperSubtextCva$1 = UIStyle.useCva("stepper.subtextCva", stepperSubtextCva);
|
|
18
15
|
const showTitle = !iconsOnly;
|
|
19
16
|
const showSubtext = !iconsOnly && !titlesOnly && !!step.subtext;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
$[0] = status;
|
|
24
|
-
$[1] = stepperIconCva$1;
|
|
25
|
-
$[2] = t1;
|
|
26
|
-
} else t1 = $[2];
|
|
27
|
-
let t2;
|
|
28
|
-
if ($[3] !== status || $[4] !== stepNumber || $[5] !== stepperNumberCva$1) {
|
|
29
|
-
t2 = status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
17
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
18
|
+
className: stepperIconCva$1({ status }),
|
|
19
|
+
children: status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
30
20
|
className: stepperNumberCva$1({ status }),
|
|
31
21
|
variant: "prominent-1",
|
|
32
22
|
size: "label-3",
|
|
33
23
|
children: stepNumber
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
className:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
size: "label-3",
|
|
62
|
-
variant: "default",
|
|
63
|
-
children: step.subtext
|
|
64
|
-
})]
|
|
65
|
-
});
|
|
66
|
-
$[10] = showSubtext;
|
|
67
|
-
$[11] = showTitle;
|
|
68
|
-
$[12] = status;
|
|
69
|
-
$[13] = step;
|
|
70
|
-
$[14] = stepperSubtextCva$1;
|
|
71
|
-
$[15] = stepperTitleCva$1;
|
|
72
|
-
$[16] = t4;
|
|
73
|
-
} else t4 = $[16];
|
|
74
|
-
let t5;
|
|
75
|
-
if ($[17] !== t3 || $[18] !== t4) {
|
|
76
|
-
t5 = /* @__PURE__ */ jsxs(Fragment, { children: [t3, t4] });
|
|
77
|
-
$[17] = t3;
|
|
78
|
-
$[18] = t4;
|
|
79
|
-
$[19] = t5;
|
|
80
|
-
} else t5 = $[19];
|
|
81
|
-
const content = t5;
|
|
82
|
-
let className;
|
|
83
|
-
let t6;
|
|
84
|
-
if ($[20] !== content || $[21] !== contentOrientation || $[22] !== onPress || $[23] !== status || $[24] !== stepperItemCva$1) {
|
|
85
|
-
t6 = Symbol.for("react.early_return_sentinel");
|
|
86
|
-
bb0: {
|
|
87
|
-
className = stepperItemCva$1({ contentOrientation });
|
|
88
|
-
if (onPress) {
|
|
89
|
-
t6 = /* @__PURE__ */ jsx(Button, {
|
|
90
|
-
onPress,
|
|
91
|
-
className: clsx("group cursor-pointer", className),
|
|
92
|
-
"aria-current": status === "active" ? "step" : void 0,
|
|
93
|
-
children: content
|
|
94
|
-
});
|
|
95
|
-
break bb0;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
$[20] = content;
|
|
99
|
-
$[21] = contentOrientation;
|
|
100
|
-
$[22] = onPress;
|
|
101
|
-
$[23] = status;
|
|
102
|
-
$[24] = stepperItemCva$1;
|
|
103
|
-
$[25] = className;
|
|
104
|
-
$[26] = t6;
|
|
105
|
-
} else {
|
|
106
|
-
className = $[25];
|
|
107
|
-
t6 = $[26];
|
|
108
|
-
}
|
|
109
|
-
if (t6 !== Symbol.for("react.early_return_sentinel")) return t6;
|
|
110
|
-
const t7 = status === "active" ? "step" : void 0;
|
|
111
|
-
let t8;
|
|
112
|
-
if ($[27] !== className || $[28] !== content || $[29] !== t7) {
|
|
113
|
-
t8 = /* @__PURE__ */ jsx("div", {
|
|
114
|
-
className,
|
|
115
|
-
"aria-current": t7,
|
|
116
|
-
children: content
|
|
117
|
-
});
|
|
118
|
-
$[27] = className;
|
|
119
|
-
$[28] = content;
|
|
120
|
-
$[29] = t7;
|
|
121
|
-
$[30] = t8;
|
|
122
|
-
} else t8 = $[30];
|
|
123
|
-
return t8;
|
|
24
|
+
})
|
|
25
|
+
}), showTitle && /* @__PURE__ */ jsxs("div", {
|
|
26
|
+
className: "flex flex-col gap-stepper-gap-text-to-subtext",
|
|
27
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
28
|
+
className: stepperTitleCva$1({ status }),
|
|
29
|
+
size: "label-2",
|
|
30
|
+
variant: "default",
|
|
31
|
+
children: step.title
|
|
32
|
+
}), showSubtext && /* @__PURE__ */ jsx(Typography, {
|
|
33
|
+
className: stepperSubtextCva$1({ status }),
|
|
34
|
+
size: "label-3",
|
|
35
|
+
variant: "default",
|
|
36
|
+
children: step.subtext
|
|
37
|
+
})]
|
|
38
|
+
})] });
|
|
39
|
+
const className = stepperItemCva$1({ contentOrientation });
|
|
40
|
+
if (onPress) return /* @__PURE__ */ jsx(Button, {
|
|
41
|
+
onPress,
|
|
42
|
+
className: clsx("group cursor-pointer", className),
|
|
43
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
44
|
+
children: content
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsx("div", {
|
|
47
|
+
className,
|
|
48
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
49
|
+
children: content
|
|
50
|
+
});
|
|
124
51
|
};
|
|
125
52
|
//#endregion
|
|
126
53
|
export { StepperItem };
|