test-stpr-ui-kit 0.6.15 → 1.0.0
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/README.md +52 -9
- package/dist/components/Accordion/Accordion.css +1 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.js +78 -0
- package/dist/components/Accordion/Accordion.module.scss.js +37 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/types/index.d.ts +22 -0
- package/dist/components/ApplyButtons/ApplyButtons.css +1 -0
- package/dist/components/ApplyButtons/ApplyButtons.d.ts +3 -0
- package/dist/components/ApplyButtons/ApplyButtons.js +67 -0
- package/dist/components/ApplyButtons/ApplyButtons.module.scss.js +16 -0
- package/dist/components/ApplyButtons/index.d.ts +2 -0
- package/dist/components/ApplyButtons/types/index.d.ts +24 -0
- package/dist/components/AuthProtected/AuthProtected.d.ts +3 -0
- package/dist/components/AuthProtected/AuthProtected.js +37 -0
- package/dist/components/AuthProtected/index.d.ts +2 -0
- package/dist/components/AuthProtected/types/index.d.ts +11 -0
- package/dist/components/BaseTooltip/BaseTooltip.css +1 -0
- package/dist/components/BaseTooltip/BaseTooltip.d.ts +3 -0
- package/dist/components/BaseTooltip/BaseTooltip.js +25 -0
- package/dist/components/BaseTooltip/BaseTooltip.module.scss.js +11 -0
- package/dist/components/BaseTooltip/index.d.ts +2 -0
- package/dist/components/BaseTooltip/types/index.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +42 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.scss.js +17 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Breadcrumb/types/index.d.ts +11 -0
- package/dist/components/Button/Button.css +1 -0
- package/dist/components/Button/Button.d.ts +3 -0
- package/dist/components/Button/Button.js +74 -0
- package/dist/components/Button/Button.module.scss.js +33 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/types/index.d.ts +24 -0
- package/dist/components/Checkbox/Checkbox.css +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.js +72 -0
- package/dist/components/Checkbox/Checkbox.module.scss.js +33 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types/index.d.ts +24 -0
- package/dist/components/Confirm/Confirm.d.ts +3 -0
- package/dist/components/Confirm/Confirm.js +85 -0
- package/dist/components/Confirm/index.d.ts +2 -0
- package/dist/components/Confirm/types/index.d.ts +7 -0
- package/dist/components/ContextMenu/ContextMenu.css +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +3 -0
- package/dist/components/ContextMenu/ContextMenu.js +39 -0
- package/dist/components/ContextMenu/ContextMenu.module.scss.js +13 -0
- package/dist/components/ContextMenu/index.d.ts +2 -0
- package/dist/components/ContextMenu/types/index.d.ts +12 -0
- package/dist/components/DatePicker/DatePicker.css +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.js +198 -0
- package/dist/components/DatePicker/DatePicker.module.scss.js +31 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/types/index.d.ts +33 -0
- package/dist/components/DatePickerInput/DatePickerInput.css +1 -0
- package/dist/components/DatePickerInput/DatePickerInput.d.ts +3 -0
- package/dist/components/DatePickerInput/DatePickerInput.js +101 -0
- package/dist/components/DatePickerInput/DatePickerInput.module.scss.js +25 -0
- package/dist/components/DatePickerInput/index.d.ts +2 -0
- package/dist/components/DatePickerInput/types/index.d.ts +32 -0
- package/dist/components/DefaultDropzone/DefaultDropzone.d.ts +3 -0
- package/dist/components/DefaultDropzone/DefaultDropzone.js +11 -0
- package/dist/components/DefaultDropzone/hooks/useDefaultDropzone.d.ts +2 -0
- package/dist/components/DefaultDropzone/hooks/useDefaultDropzone.js +5 -0
- package/dist/components/DefaultDropzone/index.d.ts +2 -0
- package/dist/components/DefaultDropzone/types/index.d.ts +10 -0
- package/dist/components/Dropdown/Dropdown.css +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.js +68 -0
- package/dist/components/Dropdown/Dropdown.module.scss.js +21 -0
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Dropdown/types/index.d.ts +14 -0
- package/dist/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.css +1 -0
- package/dist/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.d.ts +3 -0
- package/dist/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.js +75 -0
- package/dist/components/EllipsisTextWithTooltip/EllipsisTextWithTooltip.module.scss.js +11 -0
- package/dist/components/EllipsisTextWithTooltip/index.d.ts +2 -0
- package/dist/components/EllipsisTextWithTooltip/types/index.d.ts +13 -0
- package/dist/components/EllipsisTextWithTooltip/utils/index.d.ts +2 -0
- package/dist/components/EllipsisTextWithTooltip/utils/index.js +5 -0
- package/dist/components/Form/Form.css +1 -0
- package/dist/components/Form/Form.d.ts +3 -0
- package/dist/components/Form/Form.js +28 -0
- package/dist/components/Form/Form.module.scss.js +15 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Form/types/index.d.ts +13 -0
- package/dist/components/Icons/Icon.css +1 -0
- package/dist/components/Icons/Icon.d.ts +43 -0
- package/dist/components/Icons/Icon.js +136 -0
- package/dist/components/Icons/Icon.module.scss.js +7 -0
- package/dist/components/Icons/index.d.ts +3 -0
- package/dist/components/Icons/types/index.d.ts +47 -0
- package/dist/components/Icons/types/index.js +4 -0
- package/dist/components/IfcPreview/IfcPreview.css +1 -0
- package/dist/components/IfcPreview/IfcPreview.d.ts +3 -0
- package/dist/components/IfcPreview/IfcPreview.js +104 -0
- package/dist/components/IfcPreview/IfcPreview.module.scss.js +37 -0
- package/dist/components/IfcPreview/components/IfcPreviewCard/IfcPreviewCard.d.ts +14 -0
- package/dist/components/IfcPreview/components/IfcPreviewCard/IfcPreviewCard.js +79 -0
- package/dist/components/IfcPreview/components/IfcPreviewCard/index.d.ts +1 -0
- package/dist/components/IfcPreview/components/IfcPreviewViewerLayer/IfcPreviewViewerLayer.d.ts +18 -0
- package/dist/components/IfcPreview/components/IfcPreviewViewerLayer/IfcPreviewViewerLayer.js +59 -0
- package/dist/components/IfcPreview/components/IfcPreviewViewerLayer/index.d.ts +1 -0
- package/dist/components/IfcPreview/constants/index.d.ts +3 -0
- package/dist/components/IfcPreview/constants/index.js +6 -0
- package/dist/components/IfcPreview/hooks/useIfcPreviewModel.d.ts +20 -0
- package/dist/components/IfcPreview/hooks/useIfcPreviewModel.js +34 -0
- package/dist/components/IfcPreview/hooks/useIfcPreviewViewer.d.ts +30 -0
- package/dist/components/IfcPreview/hooks/useIfcPreviewViewer.js +73 -0
- package/dist/components/IfcPreview/index.d.ts +2 -0
- package/dist/components/IfcPreview/types/index.d.ts +52 -0
- package/dist/components/IfcPreview/utils/file-hellper.d.ts +2 -0
- package/dist/components/IfcPreview/utils/file-hellper.js +7 -0
- package/dist/components/IfcPreview/utils/fileSizeLimit.d.ts +7 -0
- package/dist/components/IfcPreview/utils/fileSizeLimit.js +8 -0
- package/dist/components/IfcPreview/utils/modelSource.d.ts +7 -0
- package/dist/components/IfcPreview/utils/modelSource.js +35 -0
- package/dist/components/IfcViewer/IfcViewer.css +1 -0
- package/dist/components/IfcViewer/IfcViewer.d.ts +3 -0
- package/dist/components/IfcViewer/IfcViewer.js +71 -0
- package/dist/components/IfcViewer/IfcViewer.module.scss.js +13 -0
- package/dist/components/IfcViewer/index.d.ts +2 -0
- package/dist/components/IfcViewer/types/index.d.ts +12 -0
- package/dist/components/IfcViewer/utils/fetchIfc.d.ts +1 -0
- package/dist/components/IfcViewer/utils/fetchIfc.js +9 -0
- package/dist/components/IfcViewer/utils/formatMeshProgress.d.ts +1 -0
- package/dist/components/IfcViewer/utils/formatMeshProgress.js +4 -0
- package/dist/components/IfcViewer/utils/ifcWebViewer.d.ts +14 -0
- package/dist/components/IfcViewer/utils/ifcWebViewer.js +120 -0
- package/dist/components/Input/Input.css +1 -0
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.js +121 -0
- package/dist/components/Input/Input.module.scss.js +33 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/types/index.d.ts +40 -0
- package/dist/components/Label/Label.css +1 -0
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Label/Label.js +36 -0
- package/dist/components/Label/Label.module.scss.js +9 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/types/index.d.ts +9 -0
- package/dist/components/Layer/Layer.css +1 -0
- package/dist/components/Layer/Layer.d.ts +3 -0
- package/dist/components/Layer/Layer.js +26 -0
- package/dist/components/Layer/Layer.module.scss.js +9 -0
- package/dist/components/Layer/index.d.ts +2 -0
- package/dist/components/Layer/types/index.d.ts +7 -0
- package/dist/components/MediaContextProvider/MediaContextProvider.d.ts +3 -0
- package/dist/components/MediaContextProvider/MediaContextProvider.js +25 -0
- package/dist/components/MediaContextProvider/constants/index.d.ts +3 -0
- package/dist/components/MediaContextProvider/constants/index.js +11 -0
- package/dist/components/MediaContextProvider/hooks/index.d.ts +8 -0
- package/dist/components/MediaContextProvider/hooks/index.js +14 -0
- package/dist/components/MediaContextProvider/index.d.ts +4 -0
- package/dist/components/MediaContextProvider/types/index.d.ts +23 -0
- package/dist/components/Modal/Modal.css +1 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.js +89 -0
- package/dist/components/Modal/Modal.module.scss.js +56 -0
- package/dist/components/Modal/hooks/index.d.ts +17 -0
- package/dist/components/Modal/hooks/index.js +25 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/types/index.d.ts +24 -0
- package/dist/components/Portal/Potral.d.ts +3 -0
- package/dist/components/Portal/Potral.js +18 -0
- package/dist/components/Portal/index.d.ts +2 -0
- package/dist/components/Portal/types/index.d.ts +5 -0
- package/dist/components/ProgressWrapper/ProgressWrapper.css +1 -0
- package/dist/components/ProgressWrapper/ProgressWrapper.d.ts +3 -0
- package/dist/components/ProgressWrapper/ProgressWrapper.js +50 -0
- package/dist/components/ProgressWrapper/ProgressWrapper.module.scss.js +17 -0
- package/dist/components/ProgressWrapper/constants/index.d.ts +1 -0
- package/dist/components/ProgressWrapper/constants/index.js +4 -0
- package/dist/components/ProgressWrapper/hooks/index.d.ts +5 -0
- package/dist/components/ProgressWrapper/hooks/index.js +41 -0
- package/dist/components/ProgressWrapper/index.d.ts +3 -0
- package/dist/components/ProgressWrapper/types/index.d.ts +17 -0
- package/dist/components/Select/Select.css +1 -0
- package/dist/components/Select/Select.d.ts +3 -0
- package/dist/components/Select/Select.js +195 -0
- package/dist/components/Select/Select.module.scss.js +69 -0
- package/dist/components/Select/constants/index.d.ts +3 -0
- package/dist/components/Select/constants/index.js +5 -0
- package/dist/components/Select/hooks/useSelect.d.ts +28 -0
- package/dist/components/Select/hooks/useSelect.js +73 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/types/index.d.ts +50 -0
- package/dist/components/Skeleton/Skeleton.css +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.module.scss.js +13 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Skeleton/typs/index.d.ts +10 -0
- package/dist/components/Spinner/Spinner.css +1 -0
- package/dist/components/Spinner/Spinner.d.ts +3 -0
- package/dist/components/Spinner/Spinner.js +46 -0
- package/dist/components/Spinner/Spinner.module.scss.js +28 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner/types/index.d.ts +9 -0
- package/dist/components/Table/Table.css +1 -0
- package/dist/components/Table/Table.d.ts +2 -0
- package/dist/components/Table/Table.js +219 -0
- package/dist/components/Table/Table.module.scss.js +41 -0
- package/dist/components/Table/hooks/index.d.ts +12 -0
- package/dist/components/Table/hooks/index.js +28 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/types/index.d.ts +39 -0
- package/dist/components/Table/utils/index.d.ts +2 -0
- package/dist/components/Table/utils/index.js +5 -0
- package/dist/components/Tabs/Tabs.css +1 -0
- package/dist/components/Tabs/Tabs.d.ts +3 -0
- package/dist/components/Tabs/Tabs.js +73 -0
- package/dist/components/Tabs/Tabs.module.scss.js +26 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/types/index.d.ts +25 -0
- package/dist/components/Text/Text.css +1 -0
- package/dist/components/Text/Text.d.ts +3 -0
- package/dist/components/Text/Text.js +39 -0
- package/dist/components/Text/Text.module.scss.js +17 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/types/index.d.ts +15 -0
- package/dist/components/TextWithLabel/TextWithLabel.css +1 -0
- package/dist/components/TextWithLabel/TextWithLabel.d.ts +3 -0
- package/dist/components/TextWithLabel/TextWithLabel.js +39 -0
- package/dist/components/TextWithLabel/TextWithLabel.module.scss.js +9 -0
- package/dist/components/TextWithLabel/index.d.ts +2 -0
- package/dist/components/TextWithLabel/types/index.d.ts +6 -0
- package/dist/components/Textarea/Textarea.css +1 -0
- package/dist/components/Textarea/Textarea.d.ts +3 -0
- package/dist/components/Textarea/Textarea.js +132 -0
- package/dist/components/Textarea/Textarea.module.scss.js +35 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/types/index.d.ts +45 -0
- package/dist/components/Tooltip/Tooltip.css +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.js +191 -0
- package/dist/components/Tooltip/Tooltip.module.scss.js +13 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/types/index.d.ts +36 -0
- package/dist/components/Tooltip/types/index.js +4 -0
- package/dist/components/UploadFiles/UploadFiles.css +1 -0
- package/dist/components/UploadFiles/UploadFiles.d.ts +3 -0
- package/dist/components/UploadFiles/UploadFiles.js +238 -0
- package/dist/components/UploadFiles/UploadFiles.module.scss.js +73 -0
- package/dist/components/UploadFiles/index.d.ts +2 -0
- package/dist/components/UploadFiles/types/index.d.ts +33 -0
- package/dist/components/UploadFiles/utils/index.d.ts +12 -0
- package/dist/components/UploadFiles/utils/index.js +67 -0
- package/dist/components/ViewImageModal/ViewImageModal.css +1 -0
- package/dist/components/ViewImageModal/ViewImageModal.d.ts +3 -0
- package/dist/components/ViewImageModal/ViewImageModal.js +71 -0
- package/dist/components/ViewImageModal/ViewImageModal.module.scss.js +19 -0
- package/dist/components/ViewImageModal/index.d.ts +2 -0
- package/dist/components/ViewImageModal/types/index.d.ts +13 -0
- package/dist/components-assets/IfcPreview/web-ifc/web-ifc.wasm +0 -0
- package/dist/hooks/useClickOutside.d.ts +14 -0
- package/dist/hooks/useClickOutside.js +15 -0
- package/dist/images/add_file.svg.js +5 -0
- package/dist/images/add_user.svg.js +5 -0
- package/dist/images/arrow-bottom.svg.js +5 -0
- package/dist/images/calendar.svg.js +5 -0
- package/dist/images/check.svg.js +5 -0
- package/dist/images/chevron_down.svg.js +5 -0
- package/dist/images/close.svg.js +5 -0
- package/dist/images/copy.svg.js +5 -0
- package/dist/images/dots.svg.js +5 -0
- package/dist/images/download.svg.js +5 -0
- package/dist/images/edit.svg.js +5 -0
- package/dist/images/eye.svg.js +5 -0
- package/dist/images/file.svg.js +5 -0
- package/dist/images/file_not_filled.svg.js +5 -0
- package/dist/images/filter.svg.js +5 -0
- package/dist/images/folder.svg.js +5 -0
- package/dist/images/history_clock.svg.js +5 -0
- package/dist/images/info.svg.js +5 -0
- package/dist/images/info_error.svg.js +5 -0
- package/dist/images/layers-three.svg.js +5 -0
- package/dist/images/link-angled.svg.js +5 -0
- package/dist/images/logout.svg.js +5 -0
- package/dist/images/minus.svg.js +5 -0
- package/dist/images/pause-circle.svg.js +5 -0
- package/dist/images/play-circle.svg.js +5 -0
- package/dist/images/plus.svg.js +5 -0
- package/dist/images/plus_circle.svg.js +5 -0
- package/dist/images/plus_square.svg.js +5 -0
- package/dist/images/refresh.svg.js +5 -0
- package/dist/images/save.svg.js +5 -0
- package/dist/images/search.svg.js +5 -0
- package/dist/images/select_chevron_down.svg.js +5 -0
- package/dist/images/terminal_square.svg.js +5 -0
- package/dist/images/trash.svg.js +5 -0
- package/dist/images/update.svg.js +5 -0
- package/dist/images/upload-top.svg.js +5 -0
- package/dist/images/upload.svg.js +5 -0
- package/dist/images/user-right.svg.js +5 -0
- package/dist/images/warning_color.svg.js +5 -0
- package/dist/styles/tokens.css +250 -0
- package/dist/test-stpr-ui-kit.d.ts +36 -0
- package/dist/test-stpr-ui-kit.js +43 -15043
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/sleep.d.ts +1 -0
- package/dist/utils/stringHelper.d.ts +13 -0
- package/dist/utils/stringHelper.js +4 -0
- package/package.json +34 -30
- package/dist/images/icon.svg +0 -8
- package/dist/images/viewImageExample.jpg +0 -0
- package/dist/test-stpr-ui-kit.css +0 -1
- package/dist/test-stpr-ui-kit.es.d.ts +0 -829
- package/dist/test-stpr-ui-kit.umd.cjs +0 -9
- /package/dist/{images → components-assets/ViewImageModal}/fallBackSrc.jpeg +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDatePickerInputProps } from "../../DatePickerInput";
|
|
3
|
+
import { ETooltipPosition } from "../../Tooltip";
|
|
4
|
+
export type TOnChangeDatePicker = (data: {
|
|
5
|
+
name: string;
|
|
6
|
+
value: Date | null;
|
|
7
|
+
}, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
export interface IDatePickerProps extends Omit<IDatePickerInputProps, "classNameRoot" | "onClick" | "value" | "onChange" | "dateFormatMask" | "isVisibleErrorText" | "isVisibleLabelText" | "isVisibleCalendarIcon" | "onMouseEnter"> {
|
|
9
|
+
dateFormatMask?: string | (string | RegExp)[];
|
|
10
|
+
dateFormat?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange?: TOnChangeDatePicker;
|
|
13
|
+
selected: Date | null;
|
|
14
|
+
minDate?: Date;
|
|
15
|
+
maxDate?: Date;
|
|
16
|
+
isRelative?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
isClearable?: boolean;
|
|
19
|
+
closeOnScroll?: boolean;
|
|
20
|
+
shouldCloseOnSelect?: boolean;
|
|
21
|
+
enablePortal?: boolean;
|
|
22
|
+
label?: string;
|
|
23
|
+
infoTooltipText?: string;
|
|
24
|
+
tooltipPosition?: ETooltipPosition;
|
|
25
|
+
onCalendarOpen?: () => void;
|
|
26
|
+
onCalendarClose?: () => void;
|
|
27
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
28
|
+
classNameRoot?: string;
|
|
29
|
+
classNameDatePickerInputRoot?: string;
|
|
30
|
+
classNameLabel?: string;
|
|
31
|
+
classNameBaseTooltipRoot?: string;
|
|
32
|
+
classNamePortalRoot?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._datepickerInput_nanpb_1{display:inline-flex;flex-direction:column;width:100%}._datepickerInput_nanpb_1{opacity:1;visibility:visible}._datepickerInput_nanpb_1{transition:all .3s ease-in-out}@starting-style{._datepickerInput_nanpb_1{opacity:0;visibility:hidden}}._datepickerInput_error_nanpb_19 ._datepickerInput__control_nanpb_19{border-color:var(--spui-color-border-error);color:var(--spui-color-text-error)}._datepickerInput_error_nanpb_19 ._datepickerInput__control_nanpb_19:hover::placeholder{color:var(--spui-color-text-secondary)}._datepickerInput__container_nanpb_26{position:relative;width:100%}._datepickerInput__control_nanpb_19{width:100%;font-family:var(--spui-font-family-main),serif;font-weight:var(--spui-font-weight-regular);font-size:16px;color:var(--spui-color-text-primary);padding:11.5px 16px;text-overflow:ellipsis;white-space:nowrap;border-width:var(--spui-border-width-md);border-style:solid}@media only screen and (min-width:768px){._datepickerInput__control_nanpb_19{font-size:18px;padding:16.5px 16px}}._datepickerInput__control_filled_nanpb_48{border-color:var(--spui-color-border-secondary);background-color:var(--spui-color-surface-page)}._datepickerInput__control_outlined_nanpb_52{border-color:var(--spui-color-border-primary);background-color:var(--spui-color-surface-transparent)}._datepickerInput__control_disabled_nanpb_56{pointer-events:none;color:var(--spui-color-text-disabled)}._datepickerInput__control_withIcon_nanpb_60{padding-right:var(--spui-spacing-12x)}._datepickerInput__control_nanpb_19:focus,._datepickerInput__control_nanpb_19:focus-visible{outline:none;border-style:solid;border-color:var(--spui-color-border-action);background-color:var(--spui-color-surface-transparent)}._datepickerInput__control_nanpb_19:focus:hover::placeholder,._datepickerInput__control_nanpb_19:focus-visible:hover::placeholder{color:var(--spui-color-text-secondary)}._datepickerInput__control_nanpb_19:focus~._datepickerInput__icon_nanpb_72,._datepickerInput__control_nanpb_19:focus-visible~._datepickerInput__icon_nanpb_72{color:var(--spui-color-icon-action)}._datepickerInput__control_nanpb_19::placeholder{color:var(--spui-color-text-secondary)}._datepickerInput__control_nanpb_19:hover::placeholder{color:var(--spui-color-text-primary)}._datepickerInput__control_disabled_nanpb_56:hover::placeholder{color:var(--spui-color-text-disabled)}._datepickerInput__icon_nanpb_72{color:var(--spui-color-icon-disabled);cursor:pointer;position:absolute;right:var(--spui-spacing-4x);top:var(--spui-spacing-none);bottom:var(--spui-spacing-none);margin:auto}._datepickerInput__error_nanpb_93{padding-top:var(--spui-spacing-2x);font-family:var(--spui-font-family-main),serif;font-weight:var(--spui-font-weight-regular);font-size:12px;color:var(--spui-color-text-error)}@media only screen and (min-width:768px){._datepickerInput__error_nanpb_93{font-size:14px}}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { jsxs as N, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import q from "@mona-health/react-input-mask";
|
|
3
|
+
import a from "clsx";
|
|
4
|
+
import { forwardRef as F } from "react";
|
|
5
|
+
import e from "./DatePickerInput.module.scss.js";
|
|
6
|
+
import { Label as O } from "../Label/Label.js";
|
|
7
|
+
import $ from "../../images/calendar.svg.js";
|
|
8
|
+
const z = F((k, C) => {
|
|
9
|
+
const {
|
|
10
|
+
value: f,
|
|
11
|
+
name: _,
|
|
12
|
+
onChange: s,
|
|
13
|
+
dateFormatMask: I = "99.99.9999",
|
|
14
|
+
placeholderText: h = "дд.мм.гггг",
|
|
15
|
+
variant: n = "outlined",
|
|
16
|
+
disabled: l = !1,
|
|
17
|
+
error: r,
|
|
18
|
+
onClick: c,
|
|
19
|
+
onMouseDownInput: b,
|
|
20
|
+
readOnlyInput: v = !1,
|
|
21
|
+
isVisibleCalendarIcon: i = !0,
|
|
22
|
+
isVisibleErrorText: M = !0,
|
|
23
|
+
required: R,
|
|
24
|
+
classNameRoot: p,
|
|
25
|
+
classNameError: m,
|
|
26
|
+
classNameLabel: u,
|
|
27
|
+
tooltipPosition: x,
|
|
28
|
+
label: d,
|
|
29
|
+
infoTooltipText: T,
|
|
30
|
+
classNameBaseTooltipRoot: g,
|
|
31
|
+
onMouseEnter: w
|
|
32
|
+
} = k, E = a({
|
|
33
|
+
[e.datepickerInput]: !0,
|
|
34
|
+
[e.datepickerInput_error]: !!r,
|
|
35
|
+
...p && { [p]: !0 }
|
|
36
|
+
}), y = a({
|
|
37
|
+
[e.datepickerInput__container]: !0
|
|
38
|
+
}), B = a({
|
|
39
|
+
[e.datepickerInput__control]: !0,
|
|
40
|
+
[e.datepickerInput__control_disabled]: l,
|
|
41
|
+
[e[`datepickerInput__control_${n}`]]: n,
|
|
42
|
+
[e.datepickerInput__control_withIcon]: i
|
|
43
|
+
}), D = a({
|
|
44
|
+
[e.datepickerInput__icon]: !0
|
|
45
|
+
}), L = a({
|
|
46
|
+
[e.datepickerInput__error]: !0,
|
|
47
|
+
...m && { [m]: !0 }
|
|
48
|
+
}), P = a({
|
|
49
|
+
...u && { [u]: !0 }
|
|
50
|
+
});
|
|
51
|
+
return /* @__PURE__ */ N("div", { className: E, children: [
|
|
52
|
+
d && /* @__PURE__ */ t(
|
|
53
|
+
O,
|
|
54
|
+
{
|
|
55
|
+
classNameRoot: P,
|
|
56
|
+
tooltipPosition: x,
|
|
57
|
+
required: R,
|
|
58
|
+
label: d,
|
|
59
|
+
infoTooltipText: T,
|
|
60
|
+
classNameBaseTooltipRoot: g
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ N(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
className: y,
|
|
67
|
+
onMouseEnter: w,
|
|
68
|
+
onMouseDown: b,
|
|
69
|
+
onClick: (o) => {
|
|
70
|
+
c && c(o);
|
|
71
|
+
},
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ t(
|
|
74
|
+
q,
|
|
75
|
+
{
|
|
76
|
+
ref: C,
|
|
77
|
+
className: B,
|
|
78
|
+
alwaysShowMask: !1,
|
|
79
|
+
disabled: l,
|
|
80
|
+
mask: I,
|
|
81
|
+
onChange: (o) => {
|
|
82
|
+
const { target: j } = o, { value: S, name: V } = j;
|
|
83
|
+
v || s && s(o, { value: S, name: V });
|
|
84
|
+
},
|
|
85
|
+
name: _,
|
|
86
|
+
value: f || "",
|
|
87
|
+
placeholder: h,
|
|
88
|
+
autoComplete: "off"
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
i && /* @__PURE__ */ t($, { className: D })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
M && r && /* @__PURE__ */ t("div", { className: L, children: r })
|
|
96
|
+
] });
|
|
97
|
+
});
|
|
98
|
+
z.displayName = "DatePickerInput";
|
|
99
|
+
export {
|
|
100
|
+
z as DatePickerInput
|
|
101
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import './DatePickerInput.css';const t = "_datepickerInput_nanpb_1", _ = "_datepickerInput_error_nanpb_19", n = "_datepickerInput__control_nanpb_19", e = "_datepickerInput__container_nanpb_26", p = "_datepickerInput__control_filled_nanpb_48", r = "_datepickerInput__control_outlined_nanpb_52", c = "_datepickerInput__control_disabled_nanpb_56", o = "_datepickerInput__control_withIcon_nanpb_60", a = "_datepickerInput__icon_nanpb_72", i = "_datepickerInput__error_nanpb_93", d = {
|
|
2
|
+
datepickerInput: t,
|
|
3
|
+
datepickerInput_error: _,
|
|
4
|
+
datepickerInput__control: n,
|
|
5
|
+
datepickerInput__container: e,
|
|
6
|
+
datepickerInput__control_filled: p,
|
|
7
|
+
datepickerInput__control_outlined: r,
|
|
8
|
+
datepickerInput__control_disabled: c,
|
|
9
|
+
datepickerInput__control_withIcon: o,
|
|
10
|
+
datepickerInput__icon: a,
|
|
11
|
+
datepickerInput__error: i
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
t as datepickerInput,
|
|
15
|
+
e as datepickerInput__container,
|
|
16
|
+
n as datepickerInput__control,
|
|
17
|
+
c as datepickerInput__control_disabled,
|
|
18
|
+
p as datepickerInput__control_filled,
|
|
19
|
+
r as datepickerInput__control_outlined,
|
|
20
|
+
o as datepickerInput__control_withIcon,
|
|
21
|
+
i as datepickerInput__error,
|
|
22
|
+
a as datepickerInput__icon,
|
|
23
|
+
_ as datepickerInput_error,
|
|
24
|
+
d as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ETooltipPosition } from "../../Tooltip";
|
|
3
|
+
export type TOnChangeDatePickerInput = (event: React.ChangeEvent<HTMLInputElement>, data: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string | null;
|
|
6
|
+
}) => void;
|
|
7
|
+
export type TDatePickerInputVariant = "outlined" | "filled";
|
|
8
|
+
export interface IDatePickerInputProps {
|
|
9
|
+
value?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
onChange?: TOnChangeDatePickerInput;
|
|
12
|
+
dateFormatMask?: string | (string | RegExp)[];
|
|
13
|
+
variant?: TDatePickerInputVariant;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
placeholderText?: string;
|
|
17
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
18
|
+
onMouseDownInput?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
19
|
+
readOnlyInput?: boolean;
|
|
20
|
+
isVisibleCalendarIcon?: boolean;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
isVisibleErrorText?: boolean;
|
|
23
|
+
isVisibleLabelText?: boolean;
|
|
24
|
+
label?: string;
|
|
25
|
+
infoTooltipText?: string;
|
|
26
|
+
tooltipPosition?: ETooltipPosition;
|
|
27
|
+
classNameRoot?: string;
|
|
28
|
+
classNameLabel?: string;
|
|
29
|
+
classNameError?: string;
|
|
30
|
+
classNameBaseTooltipRoot?: string;
|
|
31
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs as s, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
const l = (t) => {
|
|
3
|
+
const { getRootProps: e, children: n, disabled: o, name: i, getInputProps: r } = t;
|
|
4
|
+
return /* @__PURE__ */ s("div", { ...e({}), style: { minHeight: "100%", minWidth: "100%" }, children: [
|
|
5
|
+
/* @__PURE__ */ p("input", { ...r({}), disabled: o, name: i }),
|
|
6
|
+
n
|
|
7
|
+
] });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
l as DefaultDropzone
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropzoneOptions, DropzoneState } from "react-dropzone";
|
|
3
|
+
export interface DefaultDropzoneProps {
|
|
4
|
+
getRootProps: DropzoneState["getRootProps"];
|
|
5
|
+
getInputProps: DropzoneState["getInputProps"];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export type TUseDefaultDropzoneProps = DropzoneOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._spDropdown_139q7_1{position:relative;display:inline-flex;height:var(--spui-control-height-md);align-items:center;width:fit-content;background:var(--spui-color-surface-secondary);cursor:pointer;color:var(--spui-color-text-action)}._spDropdown_139q7_1{opacity:1;visibility:visible}._spDropdown_139q7_1{transition:all .3s ease-in-out}@starting-style{._spDropdown_139q7_1{opacity:0;visibility:hidden}}._spDropdown_139q7_1:hover{background-color:var(--spui-color-surface-secondary)}._spDropdown__labelText_139q7_27{display:flex;padding:var(--spui-spacing-none) var(--spui-spacing-4x);justify-content:center;align-items:center;align-self:stretch;border-right:var(--spui-border-width-sm) solid var(--spui-color-border-action);font-family:var(--spui-font-family-main),serif;font-weight:var(--spui-font-weight-medium);font-size:16px;color:currentColor}._spDropdown__tooltipContainer_139q7_39{display:flex;padding:var(--spui-spacing-none) var(--spui-spacing-3x);align-items:center;align-self:stretch;color:currentColor}._spDropdown__dropdownList_139q7_46{min-width:275px;display:flex;flex-direction:column;background-color:var(--spui-color-surface-default)}._spDropdown__dropdownListHeader_139q7_52{font-family:var(--spui-font-family-main),serif;font-size:18px;color:var(--spui-color-text-secondary);padding:var(--spui-spacing-4x)}._spDropdown__dopdownListItem_139q7_58{display:flex;padding:var(--spui-spacing-3x) var(--spui-spacing-4x);align-items:flex-start;align-self:stretch;justify-content:space-between;font-family:var(--spui-font-family-main),serif;font-weight:var(--spui-font-weight-regular);font-size:16px;cursor:pointer;gap:var(--spui-spacing-2x)}._spDropdown__dopdownListItem_139q7_58:hover{background-color:var(--spui-color-surface-page)}._spDropdown__dopdownListItem_textCenter_139q7_73{align-items:center;flex-direction:column}._spDropdown__downloadListItemDescription_139q7_77{color:var(--spui-color-text-secondary)}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import t from "clsx";
|
|
3
|
+
import { useState as g } from "react";
|
|
4
|
+
import o from "./Dropdown.module.scss.js";
|
|
5
|
+
import { ETooltipPosition as h } from "../Tooltip/types/index.js";
|
|
6
|
+
import { Tooltip as x } from "../Tooltip/Tooltip.js";
|
|
7
|
+
import { Icon as L } from "../Icons/Icon.js";
|
|
8
|
+
import { EIconName as T } from "../Icons/types/index.js";
|
|
9
|
+
const E = (a) => {
|
|
10
|
+
const {
|
|
11
|
+
labelText: d = "Выпадающий список",
|
|
12
|
+
listName: n,
|
|
13
|
+
dropdownList: l = [],
|
|
14
|
+
dropdownPosition: c = h.BottomRight,
|
|
15
|
+
classNameRoot: i
|
|
16
|
+
} = a, m = t({
|
|
17
|
+
[o.spDropdown]: !0,
|
|
18
|
+
...i && { [i]: !0 }
|
|
19
|
+
}), w = t({
|
|
20
|
+
[o.spDropdown__labelText]: !0
|
|
21
|
+
}), u = t({
|
|
22
|
+
[o.spDropdown__tooltipContainer]: !0
|
|
23
|
+
}), N = t({
|
|
24
|
+
[o.spDropdown__dropdownList]: !0
|
|
25
|
+
}), D = t({
|
|
26
|
+
[o.spDropdown__dropdownListHeader]: !0
|
|
27
|
+
}), _ = t({
|
|
28
|
+
[o.spDropdown__downloadListItemDescription]: !0
|
|
29
|
+
}), [C, p] = g(!1);
|
|
30
|
+
return /* @__PURE__ */ e(
|
|
31
|
+
x,
|
|
32
|
+
{
|
|
33
|
+
hover: !1,
|
|
34
|
+
triggerAction: () => p(!0),
|
|
35
|
+
actionOnClose: () => p(!1),
|
|
36
|
+
text: /* @__PURE__ */ s("div", { className: N, children: [
|
|
37
|
+
n && /* @__PURE__ */ e("div", { className: D, children: n }),
|
|
38
|
+
l.map((r, f) => /* @__PURE__ */ s(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: t({
|
|
42
|
+
[o.spDropdown__dopdownListItem]: !0,
|
|
43
|
+
[o.spDropdown__dopdownListItem_textCenter]: r.textCenter
|
|
44
|
+
}),
|
|
45
|
+
onClick: r.onClick,
|
|
46
|
+
children: [
|
|
47
|
+
r.name,
|
|
48
|
+
r.description && /* @__PURE__ */ e("span", { className: _, children: r.description })
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
f
|
|
52
|
+
))
|
|
53
|
+
] }),
|
|
54
|
+
position: c,
|
|
55
|
+
lockPosition: !0,
|
|
56
|
+
noPadding: !0,
|
|
57
|
+
isToggleClick: !0,
|
|
58
|
+
isStopPropagationClickOnTrigger: !0,
|
|
59
|
+
trigger: /* @__PURE__ */ s("div", { className: m, children: [
|
|
60
|
+
/* @__PURE__ */ e("div", { className: w, children: d }),
|
|
61
|
+
/* @__PURE__ */ e("div", { className: u, children: /* @__PURE__ */ e(L, { name: T.SelectChevronDown, rotate: C ? 180 : void 0 }) })
|
|
62
|
+
] })
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
E as Dropdown
|
|
68
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './Dropdown.css';const o = "_spDropdown_139q7_1", _ = "_spDropdown__labelText_139q7_27", p = "_spDropdown__tooltipContainer_139q7_39", n = "_spDropdown__dropdownList_139q7_46", t = "_spDropdown__dropdownListHeader_139q7_52", d = "_spDropdown__dopdownListItem_139q7_58", s = "_spDropdown__dopdownListItem_textCenter_139q7_73", r = "_spDropdown__downloadListItemDescription_139q7_77", e = {
|
|
2
|
+
spDropdown: o,
|
|
3
|
+
spDropdown__labelText: _,
|
|
4
|
+
spDropdown__tooltipContainer: p,
|
|
5
|
+
spDropdown__dropdownList: n,
|
|
6
|
+
spDropdown__dropdownListHeader: t,
|
|
7
|
+
spDropdown__dopdownListItem: d,
|
|
8
|
+
spDropdown__dopdownListItem_textCenter: s,
|
|
9
|
+
spDropdown__downloadListItemDescription: r
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
e as default,
|
|
13
|
+
o as spDropdown,
|
|
14
|
+
d as spDropdown__dopdownListItem,
|
|
15
|
+
s as spDropdown__dopdownListItem_textCenter,
|
|
16
|
+
r as spDropdown__downloadListItemDescription,
|
|
17
|
+
n as spDropdown__dropdownList,
|
|
18
|
+
t as spDropdown__dropdownListHeader,
|
|
19
|
+
_ as spDropdown__labelText,
|
|
20
|
+
p as spDropdown__tooltipContainer
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ETooltipPosition } from "../../Tooltip";
|
|
2
|
+
export type TDropdownListItem = {
|
|
3
|
+
name: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
description?: string;
|
|
6
|
+
textCenter?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export interface DropdownProps {
|
|
9
|
+
labelText?: string;
|
|
10
|
+
listName?: string;
|
|
11
|
+
classNameRoot?: string;
|
|
12
|
+
dropdownList: TDropdownListItem[];
|
|
13
|
+
dropdownPosition?: ETooltipPosition;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._ellipsisTextWithTooltip_bvsvk_1{width:100%;position:relative}._ellipsisTextWithTooltip_inheritFontStyles_bvsvk_5{font-family:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;font-style:inherit}._ellipsisTextWithTooltip__tooltip_bvsvk_12{width:100%}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as e, jsxs as f, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import u from "clsx";
|
|
3
|
+
import { useRef as h, useState as F, useLayoutEffect as S } from "react";
|
|
4
|
+
import n from "./EllipsisTextWithTooltip.module.scss.js";
|
|
5
|
+
import { getEndText as l } from "./utils/index.js";
|
|
6
|
+
import { Tooltip as b } from "../Tooltip/Tooltip.js";
|
|
7
|
+
import { Text as p } from "../Text/Text.js";
|
|
8
|
+
const V = (x) => {
|
|
9
|
+
const {
|
|
10
|
+
text: t,
|
|
11
|
+
isWithFixedEnd: R = !1,
|
|
12
|
+
isInheritFontStyles: w = !1,
|
|
13
|
+
classNameRoot: c,
|
|
14
|
+
classNameTooltipRoot: a,
|
|
15
|
+
classNameBaseTooltipContentRoot: E,
|
|
16
|
+
classNameBaseTooltipRoot: g,
|
|
17
|
+
defaultTooltipPosition: v,
|
|
18
|
+
...i
|
|
19
|
+
} = x, o = h(null), N = h(null), [d, y] = F(!1), m = l(t), W = !!t && m !== t, s = () => {
|
|
20
|
+
o.current && y(o.current.scrollWidth > o.current.clientWidth);
|
|
21
|
+
};
|
|
22
|
+
S(() => (s(), window.addEventListener("resize", s), () => {
|
|
23
|
+
window.removeEventListener("resize", s);
|
|
24
|
+
}), [t, m]);
|
|
25
|
+
const r = u({
|
|
26
|
+
[n.ellipsisTextWithTooltip]: !0,
|
|
27
|
+
[n.ellipsisTextWithTooltip_inheritFontStyles]: w,
|
|
28
|
+
...c && { [c]: !0 }
|
|
29
|
+
}), C = u({
|
|
30
|
+
[n.ellipsisTextWithTooltip__tooltip]: !0,
|
|
31
|
+
...a && { [a]: !0 }
|
|
32
|
+
});
|
|
33
|
+
return /* @__PURE__ */ e(
|
|
34
|
+
b,
|
|
35
|
+
{
|
|
36
|
+
hover: !0,
|
|
37
|
+
position: v,
|
|
38
|
+
classNameBaseTooltipRoot: g,
|
|
39
|
+
classNameTooltip: C,
|
|
40
|
+
classNameBaseTooltipContentRoot: E,
|
|
41
|
+
isVisibleTooltip: d,
|
|
42
|
+
text: t,
|
|
43
|
+
trigger: /* @__PURE__ */ f(T, { children: [
|
|
44
|
+
/* @__PURE__ */ e(p, { ...i, classNameRoot: r, isEllipsis: !0, ref: o, children: t }),
|
|
45
|
+
R && d && W && /* @__PURE__ */ f(T, { children: [
|
|
46
|
+
/* @__PURE__ */ e(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
ref: N,
|
|
50
|
+
style: {
|
|
51
|
+
position: "absolute",
|
|
52
|
+
opacity: 0,
|
|
53
|
+
pointerEvents: "none",
|
|
54
|
+
whiteSpace: "nowrap"
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ e(p, { ...i, classNameRoot: r, children: l(t) })
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
p,
|
|
61
|
+
{
|
|
62
|
+
style: { width: "fit-content" },
|
|
63
|
+
...i,
|
|
64
|
+
classNameRoot: r,
|
|
65
|
+
children: l(t)
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
V as EllipsisTextWithTooltip
|
|
75
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './EllipsisTextWithTooltip.css';const t = "_ellipsisTextWithTooltip_bvsvk_1", i = "_ellipsisTextWithTooltip_inheritFontStyles_bvsvk_5", l = "_ellipsisTextWithTooltip__tooltip_bvsvk_12", o = {
|
|
2
|
+
ellipsisTextWithTooltip: t,
|
|
3
|
+
ellipsisTextWithTooltip_inheritFontStyles: i,
|
|
4
|
+
ellipsisTextWithTooltip__tooltip: l
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
o as default,
|
|
8
|
+
t as ellipsisTextWithTooltip,
|
|
9
|
+
l as ellipsisTextWithTooltip__tooltip,
|
|
10
|
+
i as ellipsisTextWithTooltip_inheritFontStyles
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TextProps } from "../../Text";
|
|
3
|
+
import { ETooltipPosition } from "../../Tooltip";
|
|
4
|
+
export interface EllipsisTextWithTooltipProps extends Omit<TextProps, "children" | "isEllipsis" | "ref"> {
|
|
5
|
+
text?: string | ReactNode;
|
|
6
|
+
classNameRoot?: string;
|
|
7
|
+
defaultTooltipPosition?: ETooltipPosition;
|
|
8
|
+
classNameBaseTooltipContentRoot?: string;
|
|
9
|
+
classNameTooltipRoot?: string;
|
|
10
|
+
classNameBaseTooltipRoot?: string;
|
|
11
|
+
isWithFixedEnd?: boolean;
|
|
12
|
+
isInheritFontStyles?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._spForm_1egzl_1{width:fit-content;display:flex;flex-direction:column}._spForm_1egzl_1{opacity:1;visibility:visible}._spForm_1egzl_1{transition:all .3s ease-in-out}@starting-style{._spForm_1egzl_1{opacity:0;visibility:hidden}}._spForm_fullWidth_1egzl_19{width:100%}._spForm_addMargin_1egzl_22._spForm--size-lg_1egzl_22{--form-gap: var(--spui-spacing-8x);gap:var(--form-gap)}@media only screen and (min-width:768px){._spForm_addMargin_1egzl_22._spForm--size-lg_1egzl_22{--form-gap: var(--spui-spacing-12x)}}._spForm_addMargin_1egzl_22._spForm--size-md_1egzl_31{--form-gap: var(--spui-spacing-6x);gap:var(--form-gap)}@media only screen and (min-width:768px){._spForm_addMargin_1egzl_22._spForm--size-md_1egzl_31{--form-gap: var(--spui-spacing-8x)}}._spForm_withSeparator_1egzl_40>*:not(:first-child){position:relative}._spForm_withSeparator_1egzl_40>*:not(:first-child):before{content:"";position:absolute;width:100%;right:0;top:calc(var(--form-gap) / -2);height:1px;background:var(--color-light-steel)}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import c from "clsx";
|
|
3
|
+
import o from "./Form.module.scss.js";
|
|
4
|
+
const _ = (m) => {
|
|
5
|
+
const {
|
|
6
|
+
size: r = "lg",
|
|
7
|
+
children: a,
|
|
8
|
+
onSubmit: t,
|
|
9
|
+
addMargin: s = !1,
|
|
10
|
+
withSeparator: i = !1,
|
|
11
|
+
fullWidth: p = !0,
|
|
12
|
+
classNameRoot: e,
|
|
13
|
+
...l
|
|
14
|
+
} = m, n = c({
|
|
15
|
+
[o.spForm]: !0,
|
|
16
|
+
[o[`spForm--size-${r}`]]: r,
|
|
17
|
+
[o.spForm_fullWidth]: p,
|
|
18
|
+
[o.spForm_addMargin]: s,
|
|
19
|
+
[o.spForm_withSeparator]: i && s,
|
|
20
|
+
...e && { [e]: !0 }
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ f("form", { ...l, onSubmit: (u) => {
|
|
23
|
+
u.preventDefault(), t && t();
|
|
24
|
+
}, className: n, children: a });
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
_ as Form
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './Form.css';const s = "_spForm_1egzl_1", _ = "_spForm_fullWidth_1egzl_19", r = "_spForm_addMargin_1egzl_22", o = "_spForm_withSeparator_1egzl_40", p = {
|
|
2
|
+
spForm: s,
|
|
3
|
+
spForm_fullWidth: _,
|
|
4
|
+
spForm_addMargin: r,
|
|
5
|
+
"spForm--size-lg": "_spForm--size-lg_1egzl_22",
|
|
6
|
+
"spForm--size-md": "_spForm--size-md_1egzl_31",
|
|
7
|
+
spForm_withSeparator: o
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
p as default,
|
|
11
|
+
s as spForm,
|
|
12
|
+
r as spForm_addMargin,
|
|
13
|
+
_ as spForm_fullWidth,
|
|
14
|
+
o as spForm_withSeparator
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type TFormSize = "md" | "lg";
|
|
3
|
+
export interface FormProps extends React.PropsWithChildren {
|
|
4
|
+
size?: TFormSize;
|
|
5
|
+
withSeparator?: boolean;
|
|
6
|
+
classNameRoot?: string;
|
|
7
|
+
addMargin?: boolean;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
onSubmit?: () => void;
|
|
10
|
+
id?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
noValidate?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._spIcon_11vrs_1{opacity:1;visibility:visible}._spIcon_11vrs_1{transition:all .3s ease-in-out}@starting-style{._spIcon_11vrs_1{opacity:0;visibility:hidden}}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import AddFileIcon from "../../images/add_file.svg?react";
|
|
3
|
+
import AddUserIcon from "../../images/add_user.svg?react";
|
|
4
|
+
import ArrowBottomIcon from "../../images/arrow-bottom.svg?react";
|
|
5
|
+
import CalendarIcon from "../../images/calendar.svg?react";
|
|
6
|
+
import CheckIcon from "../../images/check.svg?react";
|
|
7
|
+
import ChevronDownIcon from "../../images/chevron_down.svg?react";
|
|
8
|
+
import CloseIcon from "../../images/close.svg?react";
|
|
9
|
+
import CopyIcon from "../../images/copy.svg?react";
|
|
10
|
+
import DotsIcon from "../../images/dots.svg?react";
|
|
11
|
+
import DownloadIcon from "../../images/download.svg?react";
|
|
12
|
+
import EditIcon from "../../images/edit.svg?react";
|
|
13
|
+
import EyeIcon from "../../images/eye.svg?react";
|
|
14
|
+
import FileIcon from "../../images/file.svg?react";
|
|
15
|
+
import FileNotFilledIcon from "../../images/file_not_filled.svg?react";
|
|
16
|
+
import FilterIcon from "../../images/filter.svg?react";
|
|
17
|
+
import FolderIcon from "../../images/folder.svg?react";
|
|
18
|
+
import HistoryClockIcon from "../../images/history_clock.svg?react";
|
|
19
|
+
import InfoIcon from "../../images/info.svg?react";
|
|
20
|
+
import InfoErrorIcon from "../../images/info_error.svg?react";
|
|
21
|
+
import LayersThreeIcon from "../../images/layers-three.svg?react";
|
|
22
|
+
import LinkAngledIcon from "../../images/link-angled.svg?react";
|
|
23
|
+
import LogoutIcon from "../../images/logout.svg?react";
|
|
24
|
+
import MinusIcon from "../../images/minus.svg?react";
|
|
25
|
+
import PauseCircleIcon from "../../images/pause-circle.svg?react";
|
|
26
|
+
import PlayCircleIcon from "../../images/play-circle.svg?react";
|
|
27
|
+
import PlusIcon from "../../images/plus.svg?react";
|
|
28
|
+
import PlusCircleIcon from "../../images/plus_circle.svg?react";
|
|
29
|
+
import PlusSquareIcon from "../../images/plus_square.svg?react";
|
|
30
|
+
import RefreshIcon from "../../images/refresh.svg?react";
|
|
31
|
+
import SaveIcon from "../../images/save.svg?react";
|
|
32
|
+
import SearchIcon from "../../images/search.svg?react";
|
|
33
|
+
import SelectChevronDownIcon from "../../images/select_chevron_down.svg?react";
|
|
34
|
+
import TerminalSquareIcon from "../../images/terminal_square.svg?react";
|
|
35
|
+
import TrashIcon from "../../images/trash.svg?react";
|
|
36
|
+
import UpdateIcon from "../../images/update.svg?react";
|
|
37
|
+
import UploadIcon from "../../images/upload.svg?react";
|
|
38
|
+
import UploadTopIcon from "../../images/upload-top.svg?react";
|
|
39
|
+
import UserRightIcon from "../../images/user-right.svg?react";
|
|
40
|
+
import WarningColorIcon from "../../images/warning_color.svg?react";
|
|
41
|
+
import { IconProps } from "./types";
|
|
42
|
+
export declare const Icon: React.FC<IconProps>;
|
|
43
|
+
export { AddFileIcon, AddUserIcon, ArrowBottomIcon, CalendarIcon, CheckIcon, ChevronDownIcon, CloseIcon, CopyIcon, DotsIcon, DownloadIcon, EditIcon, EyeIcon, FileIcon, FileNotFilledIcon, FilterIcon, FolderIcon, HistoryClockIcon, InfoErrorIcon, InfoIcon, LayersThreeIcon, LinkAngledIcon, LogoutIcon, MinusIcon, PauseCircleIcon, PlayCircleIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, RefreshIcon, SaveIcon, SearchIcon, SelectChevronDownIcon, TerminalSquareIcon, TrashIcon, UpdateIcon, UploadIcon, UploadTopIcon, UserRightIcon, WarningColorIcon, };
|