@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 { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//#region src/assets/icons/Underlined.tsx
|
|
3
|
+
var UnderlinedIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
3
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 25 24",
|
|
@@ -12,4 +13,5 @@ const UnderlinedIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
12
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"
|
|
13
14
|
})
|
|
14
15
|
});
|
|
16
|
+
//#endregion
|
|
15
17
|
export { UnderlinedIcon };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//#region src/assets/icons/Upload.tsx
|
|
3
|
+
var UploadIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
3
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 24 24",
|
|
@@ -13,4 +14,5 @@ const UploadIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
13
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"
|
|
14
15
|
})]
|
|
15
16
|
});
|
|
17
|
+
//#endregion
|
|
16
18
|
export { UploadIcon };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//#region src/assets/icons/Visibility.tsx
|
|
3
|
+
var VisibilityIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
3
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 24 24",
|
|
@@ -10,4 +11,5 @@ const VisibilityIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
10
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"
|
|
11
12
|
})
|
|
12
13
|
});
|
|
14
|
+
//#endregion
|
|
13
15
|
export { VisibilityIcon };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//#region src/assets/icons/VisibilityOff.tsx
|
|
3
|
+
var VisibilityOffIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
3
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 24 24",
|
|
@@ -10,4 +11,5 @@ const VisibilityOffIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
10
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"
|
|
11
12
|
})
|
|
12
13
|
});
|
|
14
|
+
//#endregion
|
|
13
15
|
export { VisibilityOffIcon };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
//#region src/assets/icons/WarningFilled.tsx
|
|
3
|
+
var WarningFilledIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
3
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
5
|
fill: "none",
|
|
5
6
|
viewBox: "0 0 24 24",
|
|
@@ -12,4 +13,5 @@ const WarningFilledIcon = (props) => /* @__PURE__ */ jsx("svg", {
|
|
|
12
13
|
clipRule: "evenodd"
|
|
13
14
|
})
|
|
14
15
|
});
|
|
16
|
+
//#endregion
|
|
15
17
|
export { WarningFilledIcon };
|
|
@@ -9,7 +9,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
11
11
|
import { Breadcrumb, Breadcrumbs, Button, Link } from "react-aria-components";
|
|
12
|
-
|
|
12
|
+
//#region src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
13
|
+
var Breadcrumbs$1 = ({ items, className, onAction, iconOnly = false }) => {
|
|
13
14
|
const breadcrumbsCva$1 = UIStyle.useCva("breadcrumbs.cva", breadcrumbsCva);
|
|
14
15
|
const breadcrumbItem$1 = UIStyle.useCva("breadcrumbs.itemCva", breadcrumbItem);
|
|
15
16
|
const breadcrumbSegmentCva = UIStyle.useCva("breadcrumbs.segmentCva", breadcrumbSegment);
|
|
@@ -35,13 +36,13 @@ const Breadcrumbs$1 = ({ items, className, onAction, iconOnly = false }) => {
|
|
|
35
36
|
const firstItem = items[0];
|
|
36
37
|
const lastItem = items[items.length - 1];
|
|
37
38
|
const LinkComponent = LinkContext.useLinkContext()?.LinkComponent ?? Link;
|
|
38
|
-
const renderBreadcrumbLink = (item, isCurrent, iconOnly
|
|
39
|
+
const renderBreadcrumbLink = (item, isCurrent, iconOnly) => /* @__PURE__ */ jsxs(LinkComponent, {
|
|
39
40
|
href: item.href,
|
|
40
41
|
className: breadcrumbItem$1({ isCurrent }),
|
|
41
42
|
children: [item.icon && /* @__PURE__ */ jsx(item.icon, {
|
|
42
43
|
className: breadcrumbIconCva({}),
|
|
43
44
|
"aria-label": item.label
|
|
44
|
-
}), !iconOnly
|
|
45
|
+
}), !iconOnly && /* @__PURE__ */ jsx(Typography, {
|
|
45
46
|
variant: "default",
|
|
46
47
|
size: "label-3",
|
|
47
48
|
children: item.label
|
|
@@ -107,4 +108,5 @@ const Breadcrumbs$1 = ({ items, className, onAction, iconOnly = false }) => {
|
|
|
107
108
|
})
|
|
108
109
|
});
|
|
109
110
|
};
|
|
111
|
+
//#endregion
|
|
110
112
|
export { Breadcrumbs$1 as Breadcrumbs };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
//#region src/components/Breadcrumbs/breadcrumbs.cva.ts
|
|
3
|
+
var breadcrumbsCva = cva(["flex items-center gap-breadcrumbs-gap-segment-to-segment"]);
|
|
4
|
+
var breadcrumbSegment = cva(["flex items-center gap-breadcrumbs-gap-segment-to-segment"]);
|
|
5
|
+
var breadcrumbChevron = cva(["size-6 shrink-0 text-interactive-text-secondary-idle"]);
|
|
6
|
+
var breadcrumbIcon = cva(["size-4 shrink-0"]);
|
|
7
|
+
var breadcrumbItem = cva(["inline-flex cursor-pointer items-center gap-breadcrumbs-gap-icon-to-text whitespace-nowrap font-inter font-medium text-label-3 no-underline"], {
|
|
7
8
|
variants: {
|
|
8
9
|
isCurrent: {
|
|
9
10
|
true: "text-interactive-text-primary-idle",
|
|
@@ -19,4 +20,5 @@ const breadcrumbItem = cva(["inline-flex cursor-pointer items-center gap-breadcr
|
|
|
19
20
|
isEllipsis: false
|
|
20
21
|
}
|
|
21
22
|
});
|
|
23
|
+
//#endregion
|
|
22
24
|
export { breadcrumbChevron, breadcrumbIcon, breadcrumbItem, breadcrumbSegment, breadcrumbsCva };
|
|
@@ -2,8 +2,10 @@ import { MenuDesktop } from "./MenuDesktop.js";
|
|
|
2
2
|
import { MenuMobile } from "./MenuMobile.js";
|
|
3
3
|
import { useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
//#region src/components/Menu/Menu.tsx
|
|
6
|
+
var Menu = (props) => {
|
|
6
7
|
if (useBreakpoint("md")) return /* @__PURE__ */ jsx(MenuDesktop, { ...props });
|
|
7
8
|
return /* @__PURE__ */ jsx(MenuMobile, { ...props });
|
|
8
9
|
};
|
|
10
|
+
//#endregion
|
|
9
11
|
export { Menu };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { MenuPopover } from "./MenuPopover.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { MenuTrigger } from "react-aria-components";
|
|
4
|
-
|
|
4
|
+
//#region src/components/Menu/MenuDesktop.tsx
|
|
5
|
+
var MenuDesktop = ({ trigger, items, onAction, ...props }) => {
|
|
5
6
|
return /* @__PURE__ */ jsxs(MenuTrigger, { children: [trigger, /* @__PURE__ */ jsx(MenuPopover, {
|
|
6
7
|
...props,
|
|
7
8
|
offset: 0,
|
|
@@ -9,4 +10,5 @@ const MenuDesktop = ({ trigger, items, onAction, ...props }) => {
|
|
|
9
10
|
onAction
|
|
10
11
|
})] });
|
|
11
12
|
};
|
|
13
|
+
//#endregion
|
|
12
14
|
export { MenuDesktop };
|
|
@@ -4,7 +4,8 @@ import { UIStyle } from "../../config/uiStyle.context.js";
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { MenuItem } from "react-aria-components";
|
|
7
|
-
|
|
7
|
+
//#region src/components/Menu/MenuItem.tsx
|
|
8
|
+
var MenuItem$1 = ({ label, content, children, className, ...item }) => {
|
|
8
9
|
const hasSubmenu = !!children && children?.length > 0;
|
|
9
10
|
const menuItemCva$1 = UIStyle.useCva("menu.itemCva", menuItemCva);
|
|
10
11
|
return /* @__PURE__ */ jsxs(MenuItem, {
|
|
@@ -18,4 +19,5 @@ const MenuItem$1 = ({ label, content, children, className, ...item }) => {
|
|
|
18
19
|
children: [content ?? label, hasSubmenu && /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-6" })]
|
|
19
20
|
});
|
|
20
21
|
};
|
|
22
|
+
//#endregion
|
|
21
23
|
export { MenuItem$1 as MenuItem };
|
|
@@ -7,7 +7,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
9
9
|
import { Button, Menu } from "react-aria-components";
|
|
10
|
-
|
|
10
|
+
//#region src/components/Menu/MenuMobile.tsx
|
|
11
|
+
var MenuMobile = ({ trigger, items, onAction, ...props }) => {
|
|
11
12
|
const menuItemCva$1 = UIStyle.useCva("menu.itemCva", menuItemCva);
|
|
12
13
|
const menuCva$1 = UIStyle.useCva("menu.cva", menuCva);
|
|
13
14
|
const activeItemRef = useRef(null);
|
|
@@ -73,4 +74,5 @@ const MenuMobile = ({ trigger, items, onAction, ...props }) => {
|
|
|
73
74
|
})] })
|
|
74
75
|
});
|
|
75
76
|
};
|
|
77
|
+
//#endregion
|
|
76
78
|
export { MenuMobile };
|
|
@@ -4,7 +4,8 @@ import { MenuItem as MenuItem$1 } from "./MenuItem.js";
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useRef } from "react";
|
|
6
6
|
import { Menu, Popover, SubmenuTrigger } from "react-aria-components";
|
|
7
|
-
|
|
7
|
+
//#region src/components/Menu/MenuPopover.tsx
|
|
8
|
+
var MenuPopover = ({ items, className, onAction, ...props }) => {
|
|
8
9
|
const lastEventRef = useRef(null);
|
|
9
10
|
const menuPopoverCva$1 = UIStyle.useCva("menu.popoverCva", menuPopoverCva);
|
|
10
11
|
const menuPopoverWrapperCva$1 = UIStyle.useCva("menu.popoverWrapperCva", menuPopoverWrapperCva);
|
|
@@ -40,4 +41,5 @@ const MenuPopover = ({ items, className, onAction, ...props }) => {
|
|
|
40
41
|
})
|
|
41
42
|
});
|
|
42
43
|
};
|
|
44
|
+
//#endregion
|
|
43
45
|
export { MenuPopover };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
|
|
2
|
+
//#region src/components/Menu/menu.cva.ts
|
|
3
|
+
var menuCva = cva(["outline-none"], {
|
|
3
4
|
variants: { isMobile: {
|
|
4
5
|
true: [],
|
|
5
6
|
false: []
|
|
6
7
|
} },
|
|
7
8
|
defaultVariants: { isMobile: false }
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
var menuItemCva = cva([
|
|
10
11
|
"flex cursor-pointer items-center justify-between gap-list-gap-checkbox-to-label px-list-side-item-left py-list-height-item has-submenu:pr-list-side-item-right",
|
|
11
12
|
"border-b border-b-elevation-outline-default-1 outline-none last:border-b-0",
|
|
12
13
|
"bg-elevation-fill-default-1 text-interactive-text-secondary-idle",
|
|
@@ -21,6 +22,7 @@ const menuItemCva = cva([
|
|
|
21
22
|
} },
|
|
22
23
|
defaultVariants: { isMobile: false }
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
var menuPopoverCva = cva(["pt-2 outline-none"]);
|
|
26
|
+
var menuPopoverWrapperCva = cva(["overflow-hidden rounded-list-rounding-dropdown border border-elevation-outline-default-1 shadow-5 outline-none"]);
|
|
27
|
+
//#endregion
|
|
26
28
|
export { menuCva, menuItemCva, menuPopoverCva, menuPopoverWrapperCva };
|
|
@@ -6,7 +6,8 @@ import { button, buttonContent, buttonIconSize, buttonSize, buttonTypography } f
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { Button, Link, ToggleButton } from "react-aria-components";
|
|
9
|
-
|
|
9
|
+
//#region src/components/buttons/Button/Button.tsx
|
|
10
|
+
var Button$1 = ({ icon: Icon, iconPosition, children, isLoading, className, link, iconClassName, noDisableWhenLoading, contentRef, ...props }) => {
|
|
10
11
|
const linkContext = LinkContext.useLinkContext();
|
|
11
12
|
const uiConfig = UIConfig.useConfig();
|
|
12
13
|
const { variant = uiConfig.button.variant, size = uiConfig.button.size } = props;
|
|
@@ -61,4 +62,5 @@ const Button$1 = ({ icon: Icon, iconPosition, children, isLoading, className, li
|
|
|
61
62
|
})
|
|
62
63
|
});
|
|
63
64
|
};
|
|
65
|
+
//#endregion
|
|
64
66
|
export { Button$1 as Button };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
2
2
|
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
|
|
4
|
+
//#region src/components/buttons/Button/button.cva.ts
|
|
5
|
+
var button = cva([
|
|
5
6
|
"group inline-flex items-center justify-center border border-solid",
|
|
6
7
|
uiOutlineClass,
|
|
7
8
|
"group-data-[split]/split:data-[separator]:relative",
|
|
@@ -508,7 +509,7 @@ const button = cva([
|
|
|
508
509
|
inverted: false
|
|
509
510
|
}
|
|
510
511
|
});
|
|
511
|
-
|
|
512
|
+
var buttonSize = cva("", {
|
|
512
513
|
variants: {
|
|
513
514
|
size: {
|
|
514
515
|
none: "rounded-button-rounding-s p-0",
|
|
@@ -569,7 +570,7 @@ const buttonSize = cva("", {
|
|
|
569
570
|
iconOnly: false
|
|
570
571
|
}
|
|
571
572
|
});
|
|
572
|
-
|
|
573
|
+
var buttonContent = cva("", {
|
|
573
574
|
variants: {
|
|
574
575
|
size: {
|
|
575
576
|
none: "gap-button-gap-icon-to-label",
|
|
@@ -594,7 +595,7 @@ const buttonContent = cva("", {
|
|
|
594
595
|
iconOnly: false
|
|
595
596
|
}
|
|
596
597
|
});
|
|
597
|
-
|
|
598
|
+
var buttonIconSize = cva("", {
|
|
598
599
|
variants: { size: {
|
|
599
600
|
none: "h-6 w-6",
|
|
600
601
|
xs: "h-6 w-6",
|
|
@@ -604,7 +605,7 @@ const buttonIconSize = cva("", {
|
|
|
604
605
|
} },
|
|
605
606
|
defaultVariants: { size: "m" }
|
|
606
607
|
});
|
|
607
|
-
|
|
608
|
+
var buttonTypography = compoundMapper({
|
|
608
609
|
defaultVariants: { size: "m" },
|
|
609
610
|
compoundVariants: [
|
|
610
611
|
{
|
|
@@ -644,4 +645,5 @@ const buttonTypography = compoundMapper({
|
|
|
644
645
|
}
|
|
645
646
|
]
|
|
646
647
|
});
|
|
648
|
+
//#endregion
|
|
647
649
|
export { button, buttonContent, buttonIconSize, buttonSize, buttonTypography };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Tooltip } from "../../overlays/Tooltip/Tooltip.js";
|
|
2
2
|
import { Button } from "../Button/Button.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
//#region src/components/buttons/IconButton/IconButton.tsx
|
|
5
|
+
var IconButton = ({ label, disableTooltip, ...props }) => {
|
|
5
6
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
6
7
|
text: label,
|
|
7
8
|
placement: "bottom",
|
|
@@ -14,4 +15,5 @@ const IconButton = ({ label, disableTooltip, ...props }) => {
|
|
|
14
15
|
})
|
|
15
16
|
});
|
|
16
17
|
};
|
|
18
|
+
//#endregion
|
|
17
19
|
export { IconButton };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
//#region src/components/buttons/InlineIconButton/InlineIconButton.tsx
|
|
4
|
+
var InlineIconButton = ({ label, ...props }) => {
|
|
4
5
|
return /* @__PURE__ */ jsx(Button, {
|
|
5
6
|
...props,
|
|
6
7
|
iconOnly: true,
|
|
@@ -10,4 +11,5 @@ const InlineIconButton = ({ label, ...props }) => {
|
|
|
10
11
|
children: label
|
|
11
12
|
});
|
|
12
13
|
};
|
|
14
|
+
//#endregion
|
|
13
15
|
export { InlineIconButton };
|
|
@@ -5,7 +5,8 @@ import { pillButton, pillButtonContent, pillButtonIconSize, pillButtonTypography
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { Button, ToggleButton } from "react-aria-components";
|
|
8
|
-
|
|
8
|
+
//#region src/components/buttons/PillButton/PillButton.tsx
|
|
9
|
+
var PillButton = ({ children, dismissable, toggle, icon, iconPosition, contentRef, ...props }) => {
|
|
9
10
|
const pillButtonCva = UIStyle.useCva("pillButton.cva", pillButton);
|
|
10
11
|
const pillButtonTypographyMap = UIStyle.useMapper("pillButton.typography", pillButtonTypography);
|
|
11
12
|
const Component = toggle ? ToggleButton : Button;
|
|
@@ -29,4 +30,5 @@ const PillButton = ({ children, dismissable, toggle, icon, iconPosition, content
|
|
|
29
30
|
})
|
|
30
31
|
});
|
|
31
32
|
};
|
|
33
|
+
//#endregion
|
|
32
34
|
export { PillButton };
|
|
@@ -2,7 +2,8 @@ import { uiOutlineClass } from "../../outline.clsx.js";
|
|
|
2
2
|
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
|
|
5
|
+
//#region src/components/buttons/PillButton/pillButton.cva.ts
|
|
6
|
+
var pillButton = cva([
|
|
6
7
|
uiOutlineClass,
|
|
7
8
|
"flex items-center justify-center",
|
|
8
9
|
"rounded-pill-rounding-default border border-solid px-pill-side-default py-pill-height-s"
|
|
@@ -238,7 +239,7 @@ const pillButton = cva([
|
|
|
238
239
|
variant: "contained"
|
|
239
240
|
}
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
+
var pillButtonContent = cva("", {
|
|
242
243
|
variants: { iconPosition: {
|
|
243
244
|
left: "gap-button-gap-icon-to-label",
|
|
244
245
|
right: "gap-button-gap-icon-to-label",
|
|
@@ -246,9 +247,10 @@ const pillButtonContent = cva("", {
|
|
|
246
247
|
} },
|
|
247
248
|
defaultVariants: { iconPosition: "left" }
|
|
248
249
|
});
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
var pillButtonIconSize = clsx("h-6 w-6");
|
|
251
|
+
var pillButtonTypography = compoundMapper({ default: {
|
|
251
252
|
size: "label-2",
|
|
252
253
|
variant: "prominent-1"
|
|
253
254
|
} });
|
|
255
|
+
//#endregion
|
|
254
256
|
export { pillButton, pillButtonContent, pillButtonIconSize, pillButtonTypography };
|
|
@@ -4,7 +4,8 @@ import { IconButton } from "../IconButton/IconButton.js";
|
|
|
4
4
|
import { Menu } from "../../Menu/Menu.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
|
-
|
|
7
|
+
//#region src/components/buttons/SplitButton/SplitButton.tsx
|
|
8
|
+
var SplitButton = ({ variant, color, width, size, label, labelRight, link, items, className, isLoading, ...props }) => {
|
|
8
9
|
return /* @__PURE__ */ jsxs("div", {
|
|
9
10
|
className: "group/split flex items-center",
|
|
10
11
|
"data-split": "",
|
|
@@ -33,4 +34,5 @@ const SplitButton = ({ variant, color, width, size, label, labelRight, link, ite
|
|
|
33
34
|
})]
|
|
34
35
|
});
|
|
35
36
|
};
|
|
37
|
+
//#endregion
|
|
36
38
|
export { SplitButton };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
//#region src/components/buttons/TextButton/TextButton.tsx
|
|
4
|
+
var TextButton = ({ children, ...props }) => {
|
|
4
5
|
return /* @__PURE__ */ jsx(Button, {
|
|
5
6
|
...props,
|
|
6
7
|
variant: "text",
|
|
@@ -9,4 +10,5 @@ const TextButton = ({ children, ...props }) => {
|
|
|
9
10
|
children
|
|
10
11
|
});
|
|
11
12
|
};
|
|
13
|
+
//#endregion
|
|
12
14
|
export { TextButton };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Button } from "../Button/Button.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
//#region src/components/buttons/ToggleButton/ToggleButton.tsx
|
|
4
|
+
var ToggleButton = ({ children, ...props }) => {
|
|
4
5
|
return /* @__PURE__ */ jsx(Button, {
|
|
5
6
|
...props,
|
|
6
7
|
toggle: true,
|
|
@@ -9,4 +10,5 @@ const ToggleButton = ({ children, ...props }) => {
|
|
|
9
10
|
children
|
|
10
11
|
});
|
|
11
12
|
};
|
|
13
|
+
//#endregion
|
|
12
14
|
export { ToggleButton };
|
|
@@ -5,7 +5,8 @@ import { Loader } from "../../status/Loader/Loader.js";
|
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { isValidElement } from "react";
|
|
8
|
-
|
|
8
|
+
//#region src/components/buttons/shared/ButtonContent.tsx
|
|
9
|
+
var ButtonContent = ({ ref, text, isLoading, icon: Icon, iconClassName, hideText, iconPosition = "left", typography: typographyOverrides }) => {
|
|
9
10
|
const typographyCva = UIStyle.useCva("typography.cva", typography);
|
|
10
11
|
let iconOrLoader = null;
|
|
11
12
|
if (isLoading) iconOrLoader = /* @__PURE__ */ jsx(Loader, { className: "shrink-0" });
|
|
@@ -32,4 +33,5 @@ const ButtonContent = ({ ref, text, isLoading, icon: Icon, iconClassName, hideTe
|
|
|
32
33
|
iconOrLoader && iconPosition === "right" && iconOrLoader
|
|
33
34
|
] });
|
|
34
35
|
};
|
|
36
|
+
//#endregion
|
|
35
37
|
export { ButtonContent };
|
|
@@ -7,7 +7,7 @@ cva("flex w-full items-center justify-center", {
|
|
|
7
7
|
} },
|
|
8
8
|
defaultVariants: { iconPosition: "left" }
|
|
9
9
|
});
|
|
10
|
-
|
|
10
|
+
var buttonContentLabel = cva("hyphens-auto md:truncate", {
|
|
11
11
|
variants: {
|
|
12
12
|
iconPosition: {
|
|
13
13
|
left: "",
|
|
@@ -33,4 +33,5 @@ const buttonContentLabel = cva("hyphens-auto md:truncate", {
|
|
|
33
33
|
hideText: false
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
//#endregion
|
|
36
37
|
export { buttonContentLabel };
|
|
@@ -9,6 +9,7 @@ import { clsx } from "clsx";
|
|
|
9
9
|
import { Checkbox } from "react-aria-components";
|
|
10
10
|
import { mergeRefs } from "@react-aria/utils";
|
|
11
11
|
import { Controller } from "react-hook-form";
|
|
12
|
+
//#region src/components/inputs/Checkbox/Checkbox.tsx
|
|
12
13
|
var CheckboxBase = (props) => {
|
|
13
14
|
const ui = UIConfig.useConfig();
|
|
14
15
|
const checkboxTypographyMap = UIStyle.useMapper("checkbox.typography", checkboxTypography);
|
|
@@ -37,7 +38,7 @@ var CheckboxBase = (props) => {
|
|
|
37
38
|
})]
|
|
38
39
|
}), /* @__PURE__ */ jsx(FormFieldError, { ...formFieldErrorProps })] });
|
|
39
40
|
};
|
|
40
|
-
|
|
41
|
+
var Checkbox$1 = (props) => {
|
|
41
42
|
if ("formControl" in props && props.formControl) {
|
|
42
43
|
const { formControl, ref, ...innerProps } = props;
|
|
43
44
|
return /* @__PURE__ */ jsx(Controller, {
|
|
@@ -58,4 +59,5 @@ const Checkbox$1 = (props) => {
|
|
|
58
59
|
}
|
|
59
60
|
return /* @__PURE__ */ jsx(CheckboxBase, { ...props });
|
|
60
61
|
};
|
|
62
|
+
//#endregion
|
|
61
63
|
export { Checkbox$1 as Checkbox };
|
|
@@ -3,7 +3,8 @@ import { CheckboxIndeterminateIcon } from "../../../assets/icons/CheckboxIndeter
|
|
|
3
3
|
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
4
4
|
import { checkbox, checkboxIcon } from "./checkbox.cva.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
//#region src/components/inputs/Checkbox/CheckboxCheckmark.tsx
|
|
7
|
+
var CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = CheckboxCheckmarkIcon, indeterminateIcon: IndeterminateIcon = CheckboxIndeterminateIcon, ...props }) => {
|
|
7
8
|
const checkboxCva = UIStyle.useCva("checkbox.cva", checkbox);
|
|
8
9
|
const checkboxIconCva = UIStyle.useCva("checkbox.iconCva", checkboxIcon);
|
|
9
10
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -21,4 +22,5 @@ const CheckboxCheckmark = ({ variant, className, selectedIcon: SelectedIcon = Ch
|
|
|
21
22
|
}) })]
|
|
22
23
|
});
|
|
23
24
|
};
|
|
25
|
+
//#endregion
|
|
24
26
|
export { CheckboxCheckmark };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { uiGroupOutlineClass } from "../../outline.clsx.js";
|
|
2
2
|
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
|
|
4
|
+
//#region src/components/inputs/Checkbox/checkbox.cva.ts
|
|
5
|
+
var checkbox = cva([
|
|
5
6
|
"flex items-center justify-center border-2",
|
|
6
7
|
"relative size-4 shrink-0 rounded-xs p-1",
|
|
7
8
|
uiGroupOutlineClass
|
|
@@ -32,17 +33,18 @@ const checkbox = cva([
|
|
|
32
33
|
] } },
|
|
33
34
|
defaultVariants: { variant: "default" }
|
|
34
35
|
});
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
var checkboxIndicatorClass = "group flex items-center gap-2";
|
|
37
|
+
var checkboxTypography = compoundMapper({ default: {
|
|
37
38
|
size: "label-1",
|
|
38
39
|
sizeMobile: "label-1",
|
|
39
40
|
variant: "default"
|
|
40
41
|
} });
|
|
41
|
-
|
|
42
|
+
var checkboxIcon = cva(["absolute hidden size-3"], {
|
|
42
43
|
variants: { iconVariant: {
|
|
43
44
|
selected: ["group-selected:block"],
|
|
44
45
|
indeterminate: ["group-indeterminate:block"]
|
|
45
46
|
} },
|
|
46
47
|
defaultVariants: { iconVariant: "selected" }
|
|
47
48
|
});
|
|
49
|
+
//#endregion
|
|
48
50
|
export { checkbox, checkboxIcon, checkboxIndicatorClass, checkboxTypography };
|
|
@@ -15,6 +15,7 @@ import { Controller } from "react-hook-form";
|
|
|
15
15
|
import { createCalendar, getLocalTimeZone, toCalendarDate, today } from "@internationalized/date";
|
|
16
16
|
import { DateTime } from "luxon";
|
|
17
17
|
import { useCalendarState, useDatePickerState } from "react-stately";
|
|
18
|
+
//#region src/components/inputs/DateTime/DatePicker/DatePicker.tsx
|
|
18
19
|
var DatePickerBase = (props) => {
|
|
19
20
|
const ui = UIConfig.useConfig();
|
|
20
21
|
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDirty, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, className, placeholder, inputClassName, as = ui.input.as, hideLabel = ui.input.hideLabel, variant = ui.input.variant, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
|
|
@@ -149,7 +150,7 @@ var DatePickerBase = (props) => {
|
|
|
149
150
|
})
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
|
-
|
|
153
|
+
var DatePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
153
154
|
const formatCalendarDate = (calendarDate) => {
|
|
154
155
|
if (calendarDate === null) return null;
|
|
155
156
|
if (fullIso) return DateTimeUtils.fromCalendarDateToUTCISO(calendarDate);
|
|
@@ -191,4 +192,5 @@ const DatePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
|
191
192
|
onChange: (value) => props.onChange?.(formatCalendarDate(value))
|
|
192
193
|
});
|
|
193
194
|
};
|
|
195
|
+
//#endregion
|
|
194
196
|
export { DatePicker };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
2
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../../config/i18n.js";
|
|
4
4
|
import { DatePickerInput } from "../shared/DatePickerInput.js";
|
|
5
5
|
import { DateTimeDialog } from "../shared/DateTimeDialog.js";
|
|
6
6
|
import { DateTimeDialogFooter } from "../shared/DateTimeDialogFooter.js";
|
|
@@ -19,6 +19,7 @@ import { Controller } from "react-hook-form";
|
|
|
19
19
|
import { createCalendar, endOfMonth, endOfWeek, endOfYear, getLocalTimeZone, startOfMonth, startOfWeek, startOfYear, toCalendarDate, today } from "@internationalized/date";
|
|
20
20
|
import { DateTime } from "luxon";
|
|
21
21
|
import { useDateRangePickerState, useRangeCalendarState } from "react-stately";
|
|
22
|
+
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.tsx
|
|
22
23
|
var DateRangePickerBase = (props) => {
|
|
23
24
|
const ui = UIConfig.useConfig();
|
|
24
25
|
const { t } = useTranslation();
|
|
@@ -324,12 +325,12 @@ var DateRangePickerBase = (props) => {
|
|
|
324
325
|
state.toggle();
|
|
325
326
|
};
|
|
326
327
|
const onTodayPress = () => {
|
|
327
|
-
const todayDate
|
|
328
|
-
leftCalendarState.setFocusedDate(todayDate
|
|
329
|
-
rightCalendarState.setFocusedDate(todayDate
|
|
328
|
+
const todayDate = today(getLocalTimeZone());
|
|
329
|
+
leftCalendarState.setFocusedDate(todayDate);
|
|
330
|
+
rightCalendarState.setFocusedDate(todayDate.add({ months: 1 }));
|
|
330
331
|
syncCalendarStates({
|
|
331
|
-
start: todayDate
|
|
332
|
-
end: todayDate
|
|
332
|
+
start: todayDate,
|
|
333
|
+
end: todayDate
|
|
333
334
|
});
|
|
334
335
|
};
|
|
335
336
|
const onOpenChange = (isOpen) => {
|
|
@@ -528,7 +529,7 @@ var DateRangePickerBase = (props) => {
|
|
|
528
529
|
})
|
|
529
530
|
});
|
|
530
531
|
};
|
|
531
|
-
|
|
532
|
+
var DateRangePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
532
533
|
const formatDateRange = (range) => {
|
|
533
534
|
if (!range?.start || !range?.end) return null;
|
|
534
535
|
if (fullIso) return {
|
|
@@ -592,4 +593,5 @@ const DateRangePicker = ({ fullIso = true, minValue, maxValue, ...props }) => {
|
|
|
592
593
|
onChange: (value) => props.onChange?.(formatDateRange(value))
|
|
593
594
|
});
|
|
594
595
|
};
|
|
596
|
+
//#endregion
|
|
595
597
|
export { DateRangePicker };
|