hrm_ui_lib 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/.babelrc +4 -0
- package/.eslintignore +5 -0
- package/.eslintrc.yml +43 -0
- package/.github/workflows/main.yml +71 -0
- package/.prettierrc +9 -0
- package/.releaserc +21 -0
- package/.storybook/main.ts +36 -0
- package/.storybook/preview-head.html +3 -0
- package/.storybook/preview.ts +7 -0
- package/.vscode/settings.json +16 -0
- package/CHANGELOG.md +0 -0
- package/bin/generate_svg_component.js +112 -0
- package/bin/import_all_svg_components.js +29 -0
- package/commitlint.config.js +3 -0
- package/package.json +143 -0
- package/rollup.config.js +149 -0
- package/slack-notification.yml +38 -0
- package/src/assets/images/ArCa.svg +3 -0
- package/src/assets/images/Avatar.png +0 -0
- package/src/assets/images/Mastercard.svg +5 -0
- package/src/assets/images/Visa.svg +3 -0
- package/src/assets/images/avatar.jpg +0 -0
- package/src/assets/images/cards-img.png +0 -0
- package/src/assets/images/illustrations.svg +15 -0
- package/src/assets/images/image-placeholder.png +0 -0
- package/src/assets/images/logo-closed.svg +8 -0
- package/src/assets/images/logo.svg +14 -0
- package/src/assets/images/no-result.svg +35 -0
- package/src/assets/styles/components/_alert.scss +85 -0
- package/src/assets/styles/components/_avatar.scss +268 -0
- package/src/assets/styles/components/_badge.scss +52 -0
- package/src/assets/styles/components/_breadcrumb.scss +43 -0
- package/src/assets/styles/components/_button-icon.scss +73 -0
- package/src/assets/styles/components/_button.scss +423 -0
- package/src/assets/styles/components/_card-body.scss +25 -0
- package/src/assets/styles/components/_card-item.scss +35 -0
- package/src/assets/styles/components/_card-select.scss +96 -0
- package/src/assets/styles/components/_chips.scss +267 -0
- package/src/assets/styles/components/_collapse.scss +62 -0
- package/src/assets/styles/components/_controllers.scss +333 -0
- package/src/assets/styles/components/_copy.scss +3 -0
- package/src/assets/styles/components/_counter.scss +15 -0
- package/src/assets/styles/components/_date-picker.scss +781 -0
- package/src/assets/styles/components/_divider.scss +28 -0
- package/src/assets/styles/components/_empty.scss +41 -0
- package/src/assets/styles/components/_error-message.scss +7 -0
- package/src/assets/styles/components/_file-upload.scss +89 -0
- package/src/assets/styles/components/_form-container.scss +7 -0
- package/src/assets/styles/components/_image.scss +15 -0
- package/src/assets/styles/components/_input.scss +225 -0
- package/src/assets/styles/components/_item-select.scss +115 -0
- package/src/assets/styles/components/_link.scss +27 -0
- package/src/assets/styles/components/_loader.scss +108 -0
- package/src/assets/styles/components/_modal.scss +178 -0
- package/src/assets/styles/components/_more.scss +4 -0
- package/src/assets/styles/components/_nested-menu.scss +46 -0
- package/src/assets/styles/components/_pagination.scss +130 -0
- package/src/assets/styles/components/_popover.scss +112 -0
- package/src/assets/styles/components/_progres-stepper.scss +263 -0
- package/src/assets/styles/components/_progress.scss +124 -0
- package/src/assets/styles/components/_radio-group.scss +60 -0
- package/src/assets/styles/components/_select.scss +287 -0
- package/src/assets/styles/components/_side-navigation.scss +224 -0
- package/src/assets/styles/components/_side-sheet.scss +113 -0
- package/src/assets/styles/components/_snackbar.scss +57 -0
- package/src/assets/styles/components/_status.scss +60 -0
- package/src/assets/styles/components/_svg-icons.scss +54 -0
- package/src/assets/styles/components/_switcher.scss +17 -0
- package/src/assets/styles/components/_tab.scss +203 -0
- package/src/assets/styles/components/_table.scss +99 -0
- package/src/assets/styles/components/_textarea.scss +122 -0
- package/src/assets/styles/components/_tooltip.scss +117 -0
- package/src/assets/styles/helpers/_classname.scss +606 -0
- package/src/assets/styles/helpers/_mixin.scss +718 -0
- package/src/assets/styles/helpers/_reset.scss +369 -0
- package/src/assets/styles/index.scss +59 -0
- package/src/assets/styles/tokens/_borders.scss +48 -0
- package/src/assets/styles/tokens/_colors.scss +208 -0
- package/src/assets/styles/tokens/_fonts.scss +107 -0
- package/src/assets/styles/tokens/_overlays.scss +36 -0
- package/src/assets/styles/tokens/_shadows.scss +53 -0
- package/src/assets/styles/tokens/_sizes.scss +58 -0
- package/src/assets/styles/tokens/_spaces.scss +54 -0
- package/src/components/Alert/Alert.tsx +69 -0
- package/src/components/Alert/consts.ts +17 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Alert/types.ts +18 -0
- package/src/components/Avatar/Avatar.tsx +60 -0
- package/src/components/Avatar/AvatarGroup.tsx +73 -0
- package/src/components/Avatar/index.ts +2 -0
- package/src/components/Avatar/types.ts +27 -0
- package/src/components/Badge/Badge.tsx +22 -0
- package/src/components/Badge/index.ts +1 -0
- package/src/components/Badge/types.ts +6 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +25 -0
- package/src/components/Breadcrumb/index.ts +1 -0
- package/src/components/Breadcrumb/types.ts +11 -0
- package/src/components/Button/Button.tsx +67 -0
- package/src/components/Button/consts.ts +18 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Button/types.ts +24 -0
- package/src/components/ButtonIcon/ButtonIcon.tsx +39 -0
- package/src/components/ButtonIcon/index.ts +1 -0
- package/src/components/ButtonIcon/types.ts +18 -0
- package/src/components/CardBody/CardBody.tsx +28 -0
- package/src/components/CardBody/index.ts +1 -0
- package/src/components/CardBody/types.ts +12 -0
- package/src/components/CardSelect/CardSelect.tsx +73 -0
- package/src/components/CardSelect/CardSelectGroup.tsx +49 -0
- package/src/components/CardSelect/components/CardAdditionalInfo.tsx +34 -0
- package/src/components/CardSelect/components/CardChips.tsx +25 -0
- package/src/components/CardSelect/components/CardDescription.tsx +15 -0
- package/src/components/CardSelect/components/CardInput.tsx +12 -0
- package/src/components/CardSelect/components/index.ts +4 -0
- package/src/components/CardSelect/index.ts +2 -0
- package/src/components/CardSelect/types.ts +39 -0
- package/src/components/Cards/CardItem.tsx +45 -0
- package/src/components/Cards/index.tsx +1 -0
- package/src/components/Cards/types.ts +15 -0
- package/src/components/Checkbox/Checkbox.tsx +139 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/Checkbox/types.ts +19 -0
- package/src/components/Chips/Chips.tsx +70 -0
- package/src/components/Chips/consts.ts +15 -0
- package/src/components/Chips/index.ts +1 -0
- package/src/components/Chips/types.ts +30 -0
- package/src/components/Collapse/CollapseGroup/CollapseGroup.tsx +50 -0
- package/src/components/Collapse/CollapseItem/CollapseItem.tsx +86 -0
- package/src/components/Collapse/index.ts +2 -0
- package/src/components/Collapse/types.ts +43 -0
- package/src/components/Container/Container.tsx +8 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/Container/types.ts +5 -0
- package/src/components/Copy/Copy.tsx +38 -0
- package/src/components/Copy/index.ts +1 -0
- package/src/components/Copy/types.ts +6 -0
- package/src/components/Counter/Counter.tsx +82 -0
- package/src/components/Counter/index.ts +1 -0
- package/src/components/Counter/types.ts +9 -0
- package/src/components/DatePicker/CustomHeader/CustomHeader.tsx +87 -0
- package/src/components/DatePicker/CustomHeader/styles.scss +21 -0
- package/src/components/DatePicker/RangeDatePicker.tsx +126 -0
- package/src/components/DatePicker/SimpleDatePicker.tsx +105 -0
- package/src/components/DatePicker/TimePicker.tsx +85 -0
- package/src/components/DatePicker/hooks.ts +30 -0
- package/src/components/DatePicker/index.ts +3 -0
- package/src/components/DatePicker/types.ts +50 -0
- package/src/components/Divider/Divider.tsx +20 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/Divider/types.ts +5 -0
- package/src/components/Empty/Empty.tsx +42 -0
- package/src/components/Empty/index.ts +1 -0
- package/src/components/Empty/types.ts +10 -0
- package/src/components/FileUpload/FileUpload.tsx +159 -0
- package/src/components/FileUpload/UploadItems.tsx +60 -0
- package/src/components/FileUpload/index.ts +2 -0
- package/src/components/FileUpload/types.ts +37 -0
- package/src/components/FormContainer/FormContainer.tsx +93 -0
- package/src/components/FormContainer/index.ts +1 -0
- package/src/components/FormContainer/types.ts +21 -0
- package/src/components/FormField/FormField.tsx +70 -0
- package/src/components/FormField/index.ts +1 -0
- package/src/components/FormField/types.ts +8 -0
- package/src/components/Heading/Heading.tsx +33 -0
- package/src/components/Heading/index.ts +1 -0
- package/src/components/Heading/types.ts +12 -0
- package/src/components/Image/Image.tsx +37 -0
- package/src/components/Image/index.ts +1 -0
- package/src/components/Image/types.ts +10 -0
- package/src/components/Input/Input.tsx +209 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/types.ts +46 -0
- package/src/components/ItemSelect/ItemSelect.tsx +74 -0
- package/src/components/ItemSelect/ItemSelectGroup.tsx +35 -0
- package/src/components/ItemSelect/index.ts +2 -0
- package/src/components/ItemSelect/types.ts +23 -0
- package/src/components/Link/Link.tsx +51 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Link/types.ts +10 -0
- package/src/components/Menu/Menu.tsx +99 -0
- package/src/components/Menu/NestedMenu.tsx +97 -0
- package/src/components/Menu/index.ts +2 -0
- package/src/components/Menu/types.ts +37 -0
- package/src/components/Modal/Modal.tsx +132 -0
- package/src/components/Modal/ModalConfirmation.tsx +108 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/Modal/types.ts +41 -0
- package/src/components/More/More.tsx +38 -0
- package/src/components/More/index.ts +1 -0
- package/src/components/More/types.ts +11 -0
- package/src/components/Pagination/Pagination.tsx +50 -0
- package/src/components/Pagination/consts.ts +9 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/Pagination/types.ts +16 -0
- package/src/components/Popover/Popover.tsx +89 -0
- package/src/components/Popover/index.ts +1 -0
- package/src/components/Popover/types.ts +22 -0
- package/src/components/Progress/Progress.tsx +67 -0
- package/src/components/Progress/index.ts +1 -0
- package/src/components/Progress/types.ts +11 -0
- package/src/components/ProgressStep/ProgressStep.tsx +36 -0
- package/src/components/ProgressStep/Step.tsx +96 -0
- package/src/components/ProgressStep/consts.ts +6 -0
- package/src/components/ProgressStep/index.ts +1 -0
- package/src/components/ProgressStep/types.ts +34 -0
- package/src/components/Radio/Radio.tsx +64 -0
- package/src/components/Radio/RadioGroup.tsx +74 -0
- package/src/components/Radio/index.ts +2 -0
- package/src/components/Radio/types.ts +31 -0
- package/src/components/SVGIcons/IconAdd.tsx +35 -0
- package/src/components/SVGIcons/IconAddCircle.tsx +38 -0
- package/src/components/SVGIcons/IconAddCircleFilled.tsx +38 -0
- package/src/components/SVGIcons/IconAddFilled.tsx +35 -0
- package/src/components/SVGIcons/IconAlert.tsx +38 -0
- package/src/components/SVGIcons/IconAlertBadge.tsx +38 -0
- package/src/components/SVGIcons/IconAlertBadgeFilled.tsx +38 -0
- package/src/components/SVGIcons/IconAlertFilled.tsx +38 -0
- package/src/components/SVGIcons/IconAm.tsx +46 -0
- package/src/components/SVGIcons/IconAmd.tsx +35 -0
- package/src/components/SVGIcons/IconAmdFilled.tsx +35 -0
- package/src/components/SVGIcons/IconApple.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDown.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDownFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDownLeft.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDownLeftFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDownload.tsx +38 -0
- package/src/components/SVGIcons/IconArrowDownloadFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowEnter.tsx +35 -0
- package/src/components/SVGIcons/IconArrowEnterFilled.tsx +35 -0
- package/src/components/SVGIcons/IconArrowExit.tsx +35 -0
- package/src/components/SVGIcons/IconArrowExitFilled.tsx +35 -0
- package/src/components/SVGIcons/IconArrowExportLeftToRight.tsx +38 -0
- package/src/components/SVGIcons/IconArrowExportLeftToRightFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowExportRightToLeft.tsx +38 -0
- package/src/components/SVGIcons/IconArrowExportRightToLeftFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowExportUp.tsx +38 -0
- package/src/components/SVGIcons/IconArrowExportUpFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowImport.tsx +38 -0
- package/src/components/SVGIcons/IconArrowImportFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowLeft.tsx +38 -0
- package/src/components/SVGIcons/IconArrowLeftFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowRepeatAll.tsx +38 -0
- package/src/components/SVGIcons/IconArrowRepeatAllFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowReset.tsx +38 -0
- package/src/components/SVGIcons/IconArrowResetFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowRight.tsx +38 -0
- package/src/components/SVGIcons/IconArrowRightFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowSort.tsx +35 -0
- package/src/components/SVGIcons/IconArrowSortFilled.tsx +35 -0
- package/src/components/SVGIcons/IconArrowSync.tsx +35 -0
- package/src/components/SVGIcons/IconArrowSyncFilled.tsx +35 -0
- package/src/components/SVGIcons/IconArrowUp.tsx +38 -0
- package/src/components/SVGIcons/IconArrowUpFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowUpLeft.tsx +38 -0
- package/src/components/SVGIcons/IconArrowUpLeftFilled.tsx +38 -0
- package/src/components/SVGIcons/IconArrowUpRight.tsx +38 -0
- package/src/components/SVGIcons/IconArrowUpRightFilled.tsx +38 -0
- package/src/components/SVGIcons/IconAttach.tsx +38 -0
- package/src/components/SVGIcons/IconAttachFilled.tsx +38 -0
- package/src/components/SVGIcons/IconBeach.tsx +35 -0
- package/src/components/SVGIcons/IconBeachFilled.tsx +35 -0
- package/src/components/SVGIcons/IconBook.tsx +38 -0
- package/src/components/SVGIcons/IconBookFilled.tsx +38 -0
- package/src/components/SVGIcons/IconBookmark.tsx +38 -0
- package/src/components/SVGIcons/IconBookmarkFilled.tsx +38 -0
- package/src/components/SVGIcons/IconBriefcase.tsx +38 -0
- package/src/components/SVGIcons/IconBriefcaseFilled.tsx +38 -0
- package/src/components/SVGIcons/IconBuilding.tsx +55 -0
- package/src/components/SVGIcons/IconBuildingBank.tsx +35 -0
- package/src/components/SVGIcons/IconBuildingBankFilled.tsx +35 -0
- package/src/components/SVGIcons/IconBuildingFilled.tsx +38 -0
- package/src/components/SVGIcons/IconBulletListAdd.tsx +38 -0
- package/src/components/SVGIcons/IconBulletListAddFilled.tsx +38 -0
- package/src/components/SVGIcons/IconCalculator.tsx +38 -0
- package/src/components/SVGIcons/IconCalculatorFilled.tsx +38 -0
- package/src/components/SVGIcons/IconCalendarClock.tsx +35 -0
- package/src/components/SVGIcons/IconCalendarClockFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCalendarDay.tsx +38 -0
- package/src/components/SVGIcons/IconCalendarDayFilled.tsx +38 -0
- package/src/components/SVGIcons/IconCalendarLeft.tsx +35 -0
- package/src/components/SVGIcons/IconCalendarLeftFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCalendarRight.tsx +35 -0
- package/src/components/SVGIcons/IconCalendarRightFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCall.tsx +38 -0
- package/src/components/SVGIcons/IconCallFilled.tsx +38 -0
- package/src/components/SVGIcons/IconCard.tsx +35 -0
- package/src/components/SVGIcons/IconCardFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCaretDown.tsx +35 -0
- package/src/components/SVGIcons/IconCaretDownFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCaretDownRight.tsx +35 -0
- package/src/components/SVGIcons/IconCaretDownRightFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCaretLeft.tsx +35 -0
- package/src/components/SVGIcons/IconCaretLeftFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCaretRight.tsx +35 -0
- package/src/components/SVGIcons/IconCaretRightFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCaretUp.tsx +35 -0
- package/src/components/SVGIcons/IconCaretUpFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChat.tsx +35 -0
- package/src/components/SVGIcons/IconChatFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChatMultiple.tsx +35 -0
- package/src/components/SVGIcons/IconChatMultipleFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCheckboxArrowRight.tsx +38 -0
- package/src/components/SVGIcons/IconCheckboxArrowRightFilled.tsx +38 -0
- package/src/components/SVGIcons/IconCheckmark.tsx +35 -0
- package/src/components/SVGIcons/IconCheckmarkCircle.tsx +35 -0
- package/src/components/SVGIcons/IconCheckmarkCircleFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCheckmarkFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChevronDown.tsx +35 -0
- package/src/components/SVGIcons/IconChevronDownFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChevronLeft.tsx +35 -0
- package/src/components/SVGIcons/IconChevronLeftFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChevronRight.tsx +35 -0
- package/src/components/SVGIcons/IconChevronRightFilled.tsx +35 -0
- package/src/components/SVGIcons/IconChevronUp.tsx +35 -0
- package/src/components/SVGIcons/IconChevronUpDown.tsx +38 -0
- package/src/components/SVGIcons/IconChevronUpDownFilled.tsx +38 -0
- package/src/components/SVGIcons/IconChevronUpFilled.tsx +35 -0
- package/src/components/SVGIcons/IconClock.tsx +38 -0
- package/src/components/SVGIcons/IconClockDismiss.tsx +35 -0
- package/src/components/SVGIcons/IconClockDismissFilled.tsx +35 -0
- package/src/components/SVGIcons/IconClockFilled.tsx +38 -0
- package/src/components/SVGIcons/IconComment.tsx +38 -0
- package/src/components/SVGIcons/IconCommentFilled.tsx +38 -0
- package/src/components/SVGIcons/IconContractCard.tsx +35 -0
- package/src/components/SVGIcons/IconContractCardFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCopy.tsx +35 -0
- package/src/components/SVGIcons/IconCopyFilled.tsx +35 -0
- package/src/components/SVGIcons/IconCubeTree.tsx +35 -0
- package/src/components/SVGIcons/IconCubeTreeFilled.tsx +38 -0
- package/src/components/SVGIcons/IconDatabase.tsx +38 -0
- package/src/components/SVGIcons/IconDatabaseFilled.tsx +38 -0
- package/src/components/SVGIcons/IconDelete.tsx +35 -0
- package/src/components/SVGIcons/IconDeleteFilled.tsx +35 -0
- package/src/components/SVGIcons/IconDeviceMeetingRoom.tsx +35 -0
- package/src/components/SVGIcons/IconDeviceMeetingRoomFilled.tsx +35 -0
- package/src/components/SVGIcons/IconDismiss.tsx +35 -0
- package/src/components/SVGIcons/IconDismissCircle.tsx +38 -0
- package/src/components/SVGIcons/IconDismissCircleFilled.tsx +38 -0
- package/src/components/SVGIcons/IconDismissFilled.tsx +35 -0
- package/src/components/SVGIcons/IconDocument.tsx +35 -0
- package/src/components/SVGIcons/IconDocumentBulletList.tsx +38 -0
- package/src/components/SVGIcons/IconDocumentBulletListFilled.tsx +38 -0
- package/src/components/SVGIcons/IconDocumentEdit.tsx +35 -0
- package/src/components/SVGIcons/IconDocumentEditFilled.tsx +35 -0
- package/src/components/SVGIcons/IconDocumentFilled.tsx +35 -0
- package/src/components/SVGIcons/IconEdit.tsx +35 -0
- package/src/components/SVGIcons/IconEditFilled.tsx +35 -0
- package/src/components/SVGIcons/IconErrorCircle.tsx +35 -0
- package/src/components/SVGIcons/IconErrorCircleFilled.tsx +35 -0
- package/src/components/SVGIcons/IconEur.tsx +35 -0
- package/src/components/SVGIcons/IconEurFilled.tsx +35 -0
- package/src/components/SVGIcons/IconExpandUpLeft.tsx +38 -0
- package/src/components/SVGIcons/IconExpandUpLeftFilled.tsx +38 -0
- package/src/components/SVGIcons/IconExpandUpRight.tsx +38 -0
- package/src/components/SVGIcons/IconExpandUpRightFilled.tsx +38 -0
- package/src/components/SVGIcons/IconEyeOff.tsx +38 -0
- package/src/components/SVGIcons/IconEyeOffFilled.tsx +38 -0
- package/src/components/SVGIcons/IconEyeOn.tsx +38 -0
- package/src/components/SVGIcons/IconEyeOnFilled.tsx +38 -0
- package/src/components/SVGIcons/IconFacebook.tsx +43 -0
- package/src/components/SVGIcons/IconFilter.tsx +35 -0
- package/src/components/SVGIcons/IconFilterFilled.tsx +35 -0
- package/src/components/SVGIcons/IconFlag.tsx +38 -0
- package/src/components/SVGIcons/IconFlagFilled.tsx +38 -0
- package/src/components/SVGIcons/IconFolderLink.tsx +35 -0
- package/src/components/SVGIcons/IconFolderLinkFilled.tsx +35 -0
- package/src/components/SVGIcons/IconGb.tsx +68 -0
- package/src/components/SVGIcons/IconGlobe.tsx +35 -0
- package/src/components/SVGIcons/IconGlobeFilled.tsx +35 -0
- package/src/components/SVGIcons/IconGoogle.tsx +45 -0
- package/src/components/SVGIcons/IconHandOpenHeart.tsx +38 -0
- package/src/components/SVGIcons/IconHandOpenHeartFilled.tsx +38 -0
- package/src/components/SVGIcons/IconHeart.tsx +38 -0
- package/src/components/SVGIcons/IconHeartFilled.tsx +38 -0
- package/src/components/SVGIcons/IconHistory.tsx +38 -0
- package/src/components/SVGIcons/IconHistoryFilled.tsx +38 -0
- package/src/components/SVGIcons/IconHome.tsx +38 -0
- package/src/components/SVGIcons/IconHomeFilled.tsx +38 -0
- package/src/components/SVGIcons/IconImage.tsx +38 -0
- package/src/components/SVGIcons/IconImageFilled.tsx +38 -0
- package/src/components/SVGIcons/IconInfo.tsx +35 -0
- package/src/components/SVGIcons/IconInfoFilled.tsx +35 -0
- package/src/components/SVGIcons/IconInstagram.tsx +48 -0
- package/src/components/SVGIcons/IconKeyReset.tsx +38 -0
- package/src/components/SVGIcons/IconKeyResetFilled.tsx +38 -0
- package/src/components/SVGIcons/IconLink.tsx +38 -0
- package/src/components/SVGIcons/IconLinkFilled.tsx +38 -0
- package/src/components/SVGIcons/IconLinkedin.tsx +38 -0
- package/src/components/SVGIcons/IconList.tsx +35 -0
- package/src/components/SVGIcons/IconListFilled.tsx +38 -0
- package/src/components/SVGIcons/IconLocation.tsx +38 -0
- package/src/components/SVGIcons/IconLocationFilled.tsx +38 -0
- package/src/components/SVGIcons/IconLockClosed.tsx +38 -0
- package/src/components/SVGIcons/IconLockClosedFilled.tsx +38 -0
- package/src/components/SVGIcons/IconLockOpen.tsx +38 -0
- package/src/components/SVGIcons/IconLockOpenFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMail.tsx +38 -0
- package/src/components/SVGIcons/IconMailAdd.tsx +38 -0
- package/src/components/SVGIcons/IconMailAddFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMailArrowForward.tsx +38 -0
- package/src/components/SVGIcons/IconMailArrowForwardFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMailFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMailLink.tsx +38 -0
- package/src/components/SVGIcons/IconMailLinkFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMedium.tsx +38 -0
- package/src/components/SVGIcons/IconMore.tsx +38 -0
- package/src/components/SVGIcons/IconMoreFilled.tsx +38 -0
- package/src/components/SVGIcons/IconMoreVertical.tsx +38 -0
- package/src/components/SVGIcons/IconMoreVerticalFilled.tsx +38 -0
- package/src/components/SVGIcons/IconNavigation.tsx +38 -0
- package/src/components/SVGIcons/IconNavigationFilled.tsx +38 -0
- package/src/components/SVGIcons/IconNotebook.tsx +38 -0
- package/src/components/SVGIcons/IconNotebookAdd.tsx +59 -0
- package/src/components/SVGIcons/IconNotebookAddFilled.tsx +55 -0
- package/src/components/SVGIcons/IconNotebookFilled.tsx +38 -0
- package/src/components/SVGIcons/IconOnlyEmployee.tsx +35 -0
- package/src/components/SVGIcons/IconOpen.tsx +38 -0
- package/src/components/SVGIcons/IconOpenFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPatient.tsx +35 -0
- package/src/components/SVGIcons/IconPatientFilled.tsx +35 -0
- package/src/components/SVGIcons/IconPeople.tsx +35 -0
- package/src/components/SVGIcons/IconPeopleAdd.tsx +38 -0
- package/src/components/SVGIcons/IconPeopleAddFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPeopleFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPercent.tsx +40 -0
- package/src/components/SVGIcons/IconPerson.tsx +38 -0
- package/src/components/SVGIcons/IconPersonAccount.tsx +35 -0
- package/src/components/SVGIcons/IconPersonAccountFilled.tsx +35 -0
- package/src/components/SVGIcons/IconPersonAdd.tsx +38 -0
- package/src/components/SVGIcons/IconPersonAddFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPersonFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPersonStar.tsx +38 -0
- package/src/components/SVGIcons/IconPersonStarFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPersonSubtract.tsx +38 -0
- package/src/components/SVGIcons/IconPersonSubtractFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPhone.tsx +38 -0
- package/src/components/SVGIcons/IconPhoneFilled.tsx +38 -0
- package/src/components/SVGIcons/IconPos.tsx +40 -0
- package/src/components/SVGIcons/IconPosFilled.tsx +40 -0
- package/src/components/SVGIcons/IconProhibited.tsx +38 -0
- package/src/components/SVGIcons/IconProhibitedFilled.tsx +38 -0
- package/src/components/SVGIcons/IconProjectProduct.tsx +35 -0
- package/src/components/SVGIcons/IconQuestion.tsx +38 -0
- package/src/components/SVGIcons/IconQuestionFilled.tsx +38 -0
- package/src/components/SVGIcons/IconRedo.tsx +38 -0
- package/src/components/SVGIcons/IconRedoFilled.tsx +38 -0
- package/src/components/SVGIcons/IconRu.tsx +63 -0
- package/src/components/SVGIcons/IconRub.tsx +35 -0
- package/src/components/SVGIcons/IconRubFilled.tsx +35 -0
- package/src/components/SVGIcons/IconSave.tsx +38 -0
- package/src/components/SVGIcons/IconSaveFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSavings.tsx +38 -0
- package/src/components/SVGIcons/IconSavingsFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSearch.tsx +38 -0
- package/src/components/SVGIcons/IconSearchFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSelectAllOff.tsx +38 -0
- package/src/components/SVGIcons/IconSelectAllOffFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSelectAllOn.tsx +38 -0
- package/src/components/SVGIcons/IconSelectAllOnFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSend.tsx +38 -0
- package/src/components/SVGIcons/IconSendFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSettings.tsx +35 -0
- package/src/components/SVGIcons/IconSettingsFilled.tsx +38 -0
- package/src/components/SVGIcons/IconShare.tsx +38 -0
- package/src/components/SVGIcons/IconShareAndroid.tsx +38 -0
- package/src/components/SVGIcons/IconShareAndroidFilled.tsx +38 -0
- package/src/components/SVGIcons/IconShareFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSignOut.tsx +38 -0
- package/src/components/SVGIcons/IconSignOutFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSpinner.tsx +38 -0
- package/src/components/SVGIcons/IconSpinnerFilled.tsx +38 -0
- package/src/components/SVGIcons/IconStatus.tsx +38 -0
- package/src/components/SVGIcons/IconStatusFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSubtract.tsx +38 -0
- package/src/components/SVGIcons/IconSubtractCircle.tsx +38 -0
- package/src/components/SVGIcons/IconSubtractCircleFilled.tsx +38 -0
- package/src/components/SVGIcons/IconSubtractFilled.tsx +38 -0
- package/src/components/SVGIcons/IconTableCellEdit.tsx +43 -0
- package/src/components/SVGIcons/IconTableCellEditFilled.tsx +51 -0
- package/src/components/SVGIcons/IconTelegram.tsx +45 -0
- package/src/components/SVGIcons/IconTimer.tsx +38 -0
- package/src/components/SVGIcons/IconTimerFilled.tsx +38 -0
- package/src/components/SVGIcons/IconTwitter.tsx +38 -0
- package/src/components/SVGIcons/IconUndo.tsx +38 -0
- package/src/components/SVGIcons/IconUndoFilled.tsx +38 -0
- package/src/components/SVGIcons/IconUnitsEmployee.tsx +35 -0
- package/src/components/SVGIcons/IconUsd.tsx +35 -0
- package/src/components/SVGIcons/IconUsdFilled.tsx +35 -0
- package/src/components/SVGIcons/IconVideo.tsx +35 -0
- package/src/components/SVGIcons/IconVideoFilled.tsx +35 -0
- package/src/components/SVGIcons/IconWallet.tsx +38 -0
- package/src/components/SVGIcons/IconWalletFilled.tsx +38 -0
- package/src/components/SVGIcons/IconWarning.tsx +35 -0
- package/src/components/SVGIcons/IconWarningFilled.tsx +35 -0
- package/src/components/SVGIcons/IconYoutube.tsx +38 -0
- package/src/components/SVGIcons/index.ts +286 -0
- package/src/components/SVGIcons/types.ts +38 -0
- package/src/components/Select/ButtonSelect/ButtonSelect.tsx +120 -0
- package/src/components/Select/FilterSelect/FilterDropdown.tsx +46 -0
- package/src/components/Select/FilterSelect/FilterGroupDropdown.tsx +22 -0
- package/src/components/Select/FilterSelect/FilterSelect.tsx +138 -0
- package/src/components/Select/MultiSelect/MultiBase/MultiBase.tsx +162 -0
- package/src/components/Select/MultiSelect/MultiSelect.tsx +147 -0
- package/src/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.tsx +219 -0
- package/src/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.tsx +177 -0
- package/src/components/Select/MultiSelect/OptionsWrapper.tsx +128 -0
- package/src/components/Select/NestedSelect/NestedSelect.tsx +124 -0
- package/src/components/Select/ProfileDropdown/index.tsx +90 -0
- package/src/components/Select/ProfileDropdown/styles.scss +47 -0
- package/src/components/Select/Select/Select.tsx +268 -0
- package/src/components/Select/SharedComponents/Actions.tsx +42 -0
- package/src/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.tsx +52 -0
- package/src/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.tsx +100 -0
- package/src/components/Select/SharedComponents/ContentTop.tsx +123 -0
- package/src/components/Select/SharedComponents/Footer.tsx +35 -0
- package/src/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.tsx +137 -0
- package/src/components/Select/SharedComponents/Loading.tsx +15 -0
- package/src/components/Select/SharedComponents/index.ts +6 -0
- package/src/components/Select/constants.ts +10 -0
- package/src/components/Select/index.ts +6 -0
- package/src/components/Select/types.ts +240 -0
- package/src/components/SideNavigation/Block.tsx +19 -0
- package/src/components/SideNavigation/NavigationItem/index.tsx +93 -0
- package/src/components/SideNavigation/NavigationItem/types.ts +26 -0
- package/src/components/SideNavigation/SideNavigation.tsx +46 -0
- package/src/components/SideNavigation/index.ts +2 -0
- package/src/components/SideNavigation/types.ts +19 -0
- package/src/components/SideSheet/Footer/Footer.tsx +59 -0
- package/src/components/SideSheet/SideSheet.tsx +168 -0
- package/src/components/SideSheet/index.ts +1 -0
- package/src/components/SideSheet/types.ts +37 -0
- package/src/components/Snackbar/Snackbar.tsx +75 -0
- package/src/components/Snackbar/consts.ts +17 -0
- package/src/components/Snackbar/index.ts +1 -0
- package/src/components/Snackbar/types.ts +22 -0
- package/src/components/Status/Status.tsx +50 -0
- package/src/components/Status/index.ts +1 -0
- package/src/components/Status/types.ts +24 -0
- package/src/components/Stepper/Stepper.tsx +45 -0
- package/src/components/Stepper/index.ts +1 -0
- package/src/components/Stepper/types.ts +15 -0
- package/src/components/Switcher/Switcher.tsx +75 -0
- package/src/components/Switcher/index.ts +1 -0
- package/src/components/Switcher/types.ts +11 -0
- package/src/components/Tab/Tab.tsx +29 -0
- package/src/components/Tab/TabItem.tsx +61 -0
- package/src/components/Tab/index.ts +1 -0
- package/src/components/Tab/types.ts +51 -0
- package/src/components/Table/Header.tsx +86 -0
- package/src/components/Table/IndeterminateCheckbox.tsx +31 -0
- package/src/components/Table/Row.tsx +48 -0
- package/src/components/Table/Table.tsx +134 -0
- package/src/components/Table/index.ts +1 -0
- package/src/components/Table/types.ts +45 -0
- package/src/components/Table/utils.tsx +27 -0
- package/src/components/Text/Text.tsx +38 -0
- package/src/components/Text/index.ts +1 -0
- package/src/components/Text/types.ts +33 -0
- package/src/components/Textarea/Textarea.tsx +100 -0
- package/src/components/Textarea/index.ts +1 -0
- package/src/components/Textarea/types.ts +17 -0
- package/src/components/Tooltip/Tooltip.tsx +88 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/Tooltip/types.ts +23 -0
- package/src/consts/index.ts +85 -0
- package/src/context/FormContextProvider.tsx +12 -0
- package/src/context/index.ts +2 -0
- package/src/context/types.ts +41 -0
- package/src/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.tsx +19 -0
- package/src/helperComponents/AnimatePresenceWrapper/index.ts +1 -0
- package/src/helperComponents/CodeBlock/CodeBlock.tsx +20 -0
- package/src/helperComponents/CodeBlock/index.ts +2 -0
- package/src/helperComponents/ErrorMessage/ErrorMessage.tsx +23 -0
- package/src/helperComponents/ErrorMessage/index.ts +1 -0
- package/src/helperComponents/ErrorMessage/types.ts +6 -0
- package/src/helperComponents/IconDynamicComponent/IconDynamicComponent.tsx +31 -0
- package/src/helperComponents/IconDynamicComponent/constants.ts +16 -0
- package/src/helperComponents/IconDynamicComponent/index.ts +1 -0
- package/src/helperComponents/Label/Label.tsx +31 -0
- package/src/helperComponents/Label/index.ts +1 -0
- package/src/helperComponents/Label/types.ts +12 -0
- package/src/helperComponents/Loader/Loader.tsx +11 -0
- package/src/helperComponents/Loader/index.ts +1 -0
- package/src/helperComponents/Loader/types.ts +4 -0
- package/src/helperComponents/OptionItem/OptionItem.tsx +98 -0
- package/src/helperComponents/OptionItem/index.ts +1 -0
- package/src/helperComponents/OptionItem/types.ts +18 -0
- package/src/helperComponents/index.ts +6 -0
- package/src/hooks/index.ts +12 -0
- package/src/hooks/useChangePositionsOnScroll.tsx +37 -0
- package/src/hooks/useDispatchEventOnScroll.tsx +10 -0
- package/src/hooks/useFieldArray.ts +1 -0
- package/src/hooks/useFormContext.ts +14 -0
- package/src/hooks/useFormProps.ts +6 -0
- package/src/hooks/useGetElemPositions.ts +28 -0
- package/src/hooks/useGetElemSizes.ts +29 -0
- package/src/hooks/useGetHasBottomSpace.ts +35 -0
- package/src/hooks/useGetTooltipPosition.ts +81 -0
- package/src/hooks/useGetTooltipStyles.ts +71 -0
- package/src/hooks/useHideBodyScroll.ts +29 -0
- package/src/hooks/useHideOnScroll.ts +24 -0
- package/src/hooks/useOnOutsideClick.ts +58 -0
- package/src/hooks/useScreenSize.ts +36 -0
- package/src/index.ts +53 -0
- package/src/stories/Alert.stories.tsx +42 -0
- package/src/stories/Avatar.stories.tsx +100 -0
- package/src/stories/Badge.stories.tsx +29 -0
- package/src/stories/Breadcrumb.stories.tsx +37 -0
- package/src/stories/Button.stories.tsx +74 -0
- package/src/stories/ButtonIcon.stories.tsx +52 -0
- package/src/stories/CardBody.stories.tsx +32 -0
- package/src/stories/CardSelect.stories.tsx +192 -0
- package/src/stories/Cards.stories.tsx +42 -0
- package/src/stories/Checkbox.stories.tsx +40 -0
- package/src/stories/Chips.stories.tsx +40 -0
- package/src/stories/Collapse.stories.tsx +69 -0
- package/src/stories/Container.stories.tsx +28 -0
- package/src/stories/Copy.stories.tsx +18 -0
- package/src/stories/Counter.stories.tsx +27 -0
- package/src/stories/DatePicker.stories.tsx +99 -0
- package/src/stories/Divider.stories.tsx +30 -0
- package/src/stories/Empty.stories.tsx +33 -0
- package/src/stories/FileUpload.stories.tsx +43 -0
- package/src/stories/Form.stories.tsx +188 -0
- package/src/stories/Heading.stories.tsx +42 -0
- package/src/stories/Image.stories.tsx +44 -0
- package/src/stories/Input.stories.tsx +71 -0
- package/src/stories/ItemSelect.stories.tsx +94 -0
- package/src/stories/Link.stories.tsx +21 -0
- package/src/stories/Menu.stories.tsx +178 -0
- package/src/stories/Modal.stories.tsx +93 -0
- package/src/stories/More.stories.tsx +27 -0
- package/src/stories/NavigationItem.stories.tsx +24 -0
- package/src/stories/Pagination.stories.tsx +34 -0
- package/src/stories/Popover.stories.tsx +55 -0
- package/src/stories/Progress.stories.tsx +33 -0
- package/src/stories/ProgressStep.stories.tsx +84 -0
- package/src/stories/Radio.stories.tsx +57 -0
- package/src/stories/SVGIcons.stories.tsx +75 -0
- package/src/stories/Select.stories.tsx +600 -0
- package/src/stories/SideNavigation.stories.tsx +252 -0
- package/src/stories/SideSheet.stories.tsx +346 -0
- package/src/stories/Snackbar.stories.tsx +72 -0
- package/src/stories/Status.stories.tsx +71 -0
- package/src/stories/Stepper.stories.tsx +28 -0
- package/src/stories/Switcher.stories.tsx +32 -0
- package/src/stories/Tab.stories.tsx +77 -0
- package/src/stories/Table.stories.tsx +96 -0
- package/src/stories/Text.stories.tsx +62 -0
- package/src/stories/Textarea.stories.tsx +37 -0
- package/src/stories/Tooltip.stories.tsx +60 -0
- package/src/types.d.ts +192 -0
- package/src/utils/helpers.ts +94 -0
- package/svg-icons/add-circle-filled.svg +5 -0
- package/svg-icons/add-circle.svg +5 -0
- package/svg-icons/add-filled.svg +3 -0
- package/svg-icons/add.svg +3 -0
- package/svg-icons/alert-badge-filled.svg +5 -0
- package/svg-icons/alert-badge.svg +5 -0
- package/svg-icons/alert-filled.svg +5 -0
- package/svg-icons/alert.svg +5 -0
- package/svg-icons/am.svg +11 -0
- package/svg-icons/amd-filled.svg +3 -0
- package/svg-icons/amd.svg +3 -0
- package/svg-icons/apple.svg +5 -0
- package/svg-icons/arrow-down-filled.svg +5 -0
- package/svg-icons/arrow-down-left-filled.svg +5 -0
- package/svg-icons/arrow-down-left.svg +5 -0
- package/svg-icons/arrow-down.svg +5 -0
- package/svg-icons/arrow-download-filled.svg +5 -0
- package/svg-icons/arrow-download.svg +5 -0
- package/svg-icons/arrow-enter-filled.svg +3 -0
- package/svg-icons/arrow-enter.svg +3 -0
- package/svg-icons/arrow-exit-filled.svg +3 -0
- package/svg-icons/arrow-exit.svg +3 -0
- package/svg-icons/arrow-export-left-to-right-filled.svg +5 -0
- package/svg-icons/arrow-export-left-to-right.svg +5 -0
- package/svg-icons/arrow-export-right-to-left-filled.svg +5 -0
- package/svg-icons/arrow-export-right-to-left.svg +5 -0
- package/svg-icons/arrow-export-up-filled.svg +5 -0
- package/svg-icons/arrow-export-up.svg +5 -0
- package/svg-icons/arrow-import-filled.svg +5 -0
- package/svg-icons/arrow-import.svg +5 -0
- package/svg-icons/arrow-left-filled.svg +5 -0
- package/svg-icons/arrow-left.svg +5 -0
- package/svg-icons/arrow-repeat-all-filled.svg +5 -0
- package/svg-icons/arrow-repeat-all.svg +5 -0
- package/svg-icons/arrow-reset-filled.svg +5 -0
- package/svg-icons/arrow-reset.svg +5 -0
- package/svg-icons/arrow-right-filled.svg +5 -0
- package/svg-icons/arrow-right.svg +5 -0
- package/svg-icons/arrow-sort-filled.svg +3 -0
- package/svg-icons/arrow-sort.svg +3 -0
- package/svg-icons/arrow-sync-filled.svg +3 -0
- package/svg-icons/arrow-sync.svg +3 -0
- package/svg-icons/arrow-up-filled.svg +5 -0
- package/svg-icons/arrow-up-left-filled.svg +5 -0
- package/svg-icons/arrow-up-left.svg +5 -0
- package/svg-icons/arrow-up-right-filled.svg +5 -0
- package/svg-icons/arrow-up-right.svg +5 -0
- package/svg-icons/arrow-up.svg +5 -0
- package/svg-icons/attach-filled.svg +5 -0
- package/svg-icons/attach.svg +5 -0
- package/svg-icons/beach-filled.svg +3 -0
- package/svg-icons/beach.svg +3 -0
- package/svg-icons/book-filled.svg +5 -0
- package/svg-icons/book.svg +5 -0
- package/svg-icons/bookmark-filled.svg +5 -0
- package/svg-icons/bookmark.svg +5 -0
- package/svg-icons/briefcase-filled.svg +5 -0
- package/svg-icons/briefcase.svg +5 -0
- package/svg-icons/building-bank-filled.svg +3 -0
- package/svg-icons/building-bank.svg +3 -0
- package/svg-icons/building-filled.svg +5 -0
- package/svg-icons/building.svg +14 -0
- package/svg-icons/bullet-list-add-filled.svg +5 -0
- package/svg-icons/bullet-list-add.svg +5 -0
- package/svg-icons/calculator-filled.svg +5 -0
- package/svg-icons/calculator.svg +5 -0
- package/svg-icons/calendar-clock-filled.svg +3 -0
- package/svg-icons/calendar-clock.svg +3 -0
- package/svg-icons/calendar-day-filled.svg +5 -0
- package/svg-icons/calendar-day.svg +5 -0
- package/svg-icons/calendar-left-filled.svg +3 -0
- package/svg-icons/calendar-left.svg +3 -0
- package/svg-icons/calendar-right-filled.svg +3 -0
- package/svg-icons/calendar-right.svg +3 -0
- package/svg-icons/call-filled.svg +5 -0
- package/svg-icons/call.svg +5 -0
- package/svg-icons/card-filled.svg +3 -0
- package/svg-icons/card.svg +3 -0
- package/svg-icons/caret-down-filled.svg +3 -0
- package/svg-icons/caret-down-right-filled.svg +3 -0
- package/svg-icons/caret-down-right.svg +3 -0
- package/svg-icons/caret-down.svg +3 -0
- package/svg-icons/caret-left-filled.svg +3 -0
- package/svg-icons/caret-left.svg +3 -0
- package/svg-icons/caret-right-filled.svg +3 -0
- package/svg-icons/caret-right.svg +3 -0
- package/svg-icons/caret-up-filled.svg +3 -0
- package/svg-icons/caret-up.svg +3 -0
- package/svg-icons/chat-filled.svg +3 -0
- package/svg-icons/chat-multiple-filled.svg +3 -0
- package/svg-icons/chat-multiple.svg +3 -0
- package/svg-icons/chat.svg +3 -0
- package/svg-icons/checkbox-arrow-right-filled.svg +5 -0
- package/svg-icons/checkbox-arrow-right.svg +5 -0
- package/svg-icons/checkmark-circle-filled.svg +3 -0
- package/svg-icons/checkmark-circle.svg +3 -0
- package/svg-icons/checkmark-filled.svg +3 -0
- package/svg-icons/checkmark.svg +3 -0
- package/svg-icons/chevron-down.svg +3 -0
- package/svg-icons/chevron-left.svg +3 -0
- package/svg-icons/chevron-right.svg +3 -0
- package/svg-icons/chevron-up-down-filled.svg +5 -0
- package/svg-icons/chevron-up-down.svg +5 -0
- package/svg-icons/chevron-up.svg +3 -0
- package/svg-icons/clock-filled.svg +5 -0
- package/svg-icons/clock.svg +5 -0
- package/svg-icons/comment-filled.svg +5 -0
- package/svg-icons/comment.svg +5 -0
- package/svg-icons/contract-card-filled.svg +3 -0
- package/svg-icons/contract-card.svg +3 -0
- package/svg-icons/copy.svg +3 -0
- package/svg-icons/cube-tree-filled.svg +5 -0
- package/svg-icons/cube-tree.svg +3 -0
- package/svg-icons/database-filled.svg +5 -0
- package/svg-icons/database.svg +5 -0
- package/svg-icons/delete-filled.svg +3 -0
- package/svg-icons/delete.svg +3 -0
- package/svg-icons/device-meeting-room-filled.svg +3 -0
- package/svg-icons/device-meeting-room.svg +3 -0
- package/svg-icons/dismiss-circle-filled.svg +5 -0
- package/svg-icons/dismiss-circle.svg +5 -0
- package/svg-icons/dismiss-filled.svg +3 -0
- package/svg-icons/dismiss.svg +3 -0
- package/svg-icons/document-bullet-list-filled.svg +5 -0
- package/svg-icons/document-bullet-list.svg +5 -0
- package/svg-icons/document-edit-filled.svg +3 -0
- package/svg-icons/document-edit.svg +3 -0
- package/svg-icons/document-filled.svg +3 -0
- package/svg-icons/document.svg +3 -0
- package/svg-icons/edit-filled.svg +3 -0
- package/svg-icons/edit.svg +4 -0
- package/svg-icons/error-circle-filled.svg +3 -0
- package/svg-icons/error-circle.svg +3 -0
- package/svg-icons/eur-filled.svg +3 -0
- package/svg-icons/eur.svg +3 -0
- package/svg-icons/expand-up-left-filled.svg +5 -0
- package/svg-icons/expand-up-left.svg +5 -0
- package/svg-icons/expand-up-right-filled.svg +5 -0
- package/svg-icons/expand-up-right.svg +5 -0
- package/svg-icons/eye-off-filled.svg +5 -0
- package/svg-icons/eye-off.svg +5 -0
- package/svg-icons/eye-on-filled.svg +5 -0
- package/svg-icons/eye-on.svg +5 -0
- package/svg-icons/facebook.svg +10 -0
- package/svg-icons/filter-filled.svg +3 -0
- package/svg-icons/filter.svg +3 -0
- package/svg-icons/flag-filled.svg +5 -0
- package/svg-icons/flag.svg +5 -0
- package/svg-icons/folder-link-filled.svg +3 -0
- package/svg-icons/folder-link.svg +3 -0
- package/svg-icons/gb.svg +15 -0
- package/svg-icons/globe-filled.svg +3 -0
- package/svg-icons/globe.svg +3 -0
- package/svg-icons/google.svg +10 -0
- package/svg-icons/hand-open-heart-filled.svg +5 -0
- package/svg-icons/hand-open-heart.svg +5 -0
- package/svg-icons/heart-filled.svg +5 -0
- package/svg-icons/heart.svg +5 -0
- package/svg-icons/history-filled.svg +5 -0
- package/svg-icons/history.svg +5 -0
- package/svg-icons/home-filled.svg +5 -0
- package/svg-icons/home.svg +5 -0
- package/svg-icons/image-filled.svg +5 -0
- package/svg-icons/image.svg +5 -0
- package/svg-icons/info-filled.svg +3 -0
- package/svg-icons/info.svg +3 -0
- package/svg-icons/instagram.svg +7 -0
- package/svg-icons/key-reset-filled.svg +5 -0
- package/svg-icons/key-reset.svg +5 -0
- package/svg-icons/link-filled.svg +5 -0
- package/svg-icons/link.svg +5 -0
- package/svg-icons/linkedin.svg +5 -0
- package/svg-icons/list-filled.svg +5 -0
- package/svg-icons/list.svg +3 -0
- package/svg-icons/location-filled.svg +5 -0
- package/svg-icons/location.svg +5 -0
- package/svg-icons/lock-closed-filled.svg +5 -0
- package/svg-icons/lock-closed.svg +5 -0
- package/svg-icons/lock-open-filled.svg +5 -0
- package/svg-icons/lock-open.svg +5 -0
- package/svg-icons/mail-add-filled.svg +5 -0
- package/svg-icons/mail-add.svg +5 -0
- package/svg-icons/mail-arrow-forward-filled.svg +5 -0
- package/svg-icons/mail-arrow-forward.svg +5 -0
- package/svg-icons/mail-filled.svg +5 -0
- package/svg-icons/mail-link-filled.svg +5 -0
- package/svg-icons/mail-link.svg +5 -0
- package/svg-icons/mail.svg +5 -0
- package/svg-icons/medium.svg +5 -0
- package/svg-icons/more-filled.svg +5 -0
- package/svg-icons/more-vertical-filled.svg +5 -0
- package/svg-icons/more-vertical.svg +5 -0
- package/svg-icons/more.svg +5 -0
- package/svg-icons/navigation-filled.svg +5 -0
- package/svg-icons/navigation.svg +5 -0
- package/svg-icons/notebook-add-filled.svg +11 -0
- package/svg-icons/notebook-add.svg +12 -0
- package/svg-icons/notebook-filled.svg +5 -0
- package/svg-icons/notebook.svg +5 -0
- package/svg-icons/only-employee.svg +3 -0
- package/svg-icons/open-filled.svg +5 -0
- package/svg-icons/open.svg +5 -0
- package/svg-icons/patient-filled.svg +3 -0
- package/svg-icons/patient.svg +3 -0
- package/svg-icons/people-add-filled.svg +5 -0
- package/svg-icons/people-add.svg +5 -0
- package/svg-icons/people-filled.svg +5 -0
- package/svg-icons/people.svg +3 -0
- package/svg-icons/percent.svg +5 -0
- package/svg-icons/person-account-filled.svg +3 -0
- package/svg-icons/person-account.svg +3 -0
- package/svg-icons/person-add-filled.svg +5 -0
- package/svg-icons/person-add.svg +5 -0
- package/svg-icons/person-filled.svg +5 -0
- package/svg-icons/person-star-filled.svg +5 -0
- package/svg-icons/person-star.svg +5 -0
- package/svg-icons/person-subtract-filled.svg +5 -0
- package/svg-icons/person-subtract.svg +5 -0
- package/svg-icons/person.svg +5 -0
- package/svg-icons/phone-filled.svg +5 -0
- package/svg-icons/phone.svg +5 -0
- package/svg-icons/pos-filled.svg +5 -0
- package/svg-icons/pos.svg +5 -0
- package/svg-icons/prohibited-filled.svg +5 -0
- package/svg-icons/prohibited.svg +5 -0
- package/svg-icons/project-product.svg +3 -0
- package/svg-icons/question-filled.svg +5 -0
- package/svg-icons/question.svg +5 -0
- package/svg-icons/redo-filled.svg +5 -0
- package/svg-icons/redo.svg +5 -0
- package/svg-icons/ru.svg +10 -0
- package/svg-icons/rub-filled.svg +3 -0
- package/svg-icons/rub.svg +3 -0
- package/svg-icons/save-filled.svg +5 -0
- package/svg-icons/save.svg +5 -0
- package/svg-icons/savings-filled.svg +5 -0
- package/svg-icons/savings.svg +5 -0
- package/svg-icons/search-filled.svg +5 -0
- package/svg-icons/search.svg +5 -0
- package/svg-icons/select-all-off-filled.svg +5 -0
- package/svg-icons/select-all-off.svg +5 -0
- package/svg-icons/select-all-on-filled.svg +5 -0
- package/svg-icons/select-all-on.svg +5 -0
- package/svg-icons/send-filled.svg +5 -0
- package/svg-icons/send.svg +5 -0
- package/svg-icons/settings-filled.svg +5 -0
- package/svg-icons/settings.svg +3 -0
- package/svg-icons/share-android-filled.svg +5 -0
- package/svg-icons/share-android.svg +5 -0
- package/svg-icons/share-filled.svg +5 -0
- package/svg-icons/share.svg +5 -0
- package/svg-icons/sign-out-filled.svg +5 -0
- package/svg-icons/sign-out.svg +5 -0
- package/svg-icons/spinner-filled.svg +5 -0
- package/svg-icons/spinner.svg +5 -0
- package/svg-icons/status-filled.svg +5 -0
- package/svg-icons/status.svg +5 -0
- package/svg-icons/subtract-circle-filled.svg +5 -0
- package/svg-icons/subtract-circle.svg +5 -0
- package/svg-icons/subtract-filled.svg +5 -0
- package/svg-icons/subtract.svg +5 -0
- package/svg-icons/table-cell-edit-filled.svg +10 -0
- package/svg-icons/table-cell-edit.svg +8 -0
- package/svg-icons/telegram.svg +10 -0
- package/svg-icons/timer-filled.svg +5 -0
- package/svg-icons/timer.svg +5 -0
- package/svg-icons/twitter.svg +5 -0
- package/svg-icons/undo-filled.svg +5 -0
- package/svg-icons/undo.svg +5 -0
- package/svg-icons/units-employee.svg +3 -0
- package/svg-icons/usd-filled.svg +3 -0
- package/svg-icons/usd.svg +3 -0
- package/svg-icons/video-filled.svg +3 -0
- package/svg-icons/video.svg +3 -0
- package/svg-icons/wallet-filled.svg +5 -0
- package/svg-icons/wallet.svg +5 -0
- package/svg-icons/warning-filled.svg +3 -0
- package/svg-icons/warning.svg +3 -0
- package/svg-icons/youtube.svg +5 -0
- package/tsconfig.json +33 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Popover, Status as _Status, Text } from '../index'
|
|
3
|
+
import IconPerson from '../components/SVGIcons/IconPerson'
|
|
4
|
+
import IconInfo from '../components/SVGIcons/IconInfo'
|
|
5
|
+
import { StoryFn } from '@storybook/react'
|
|
6
|
+
import { TStatusProps } from '../components/Status/types'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Status',
|
|
10
|
+
component: _Status,
|
|
11
|
+
argTypes: {
|
|
12
|
+
type: {
|
|
13
|
+
options: [
|
|
14
|
+
'primary',
|
|
15
|
+
'disabled',
|
|
16
|
+
'brand',
|
|
17
|
+
'danger',
|
|
18
|
+
'warning',
|
|
19
|
+
'success',
|
|
20
|
+
'information',
|
|
21
|
+
'discovery'
|
|
22
|
+
],
|
|
23
|
+
control: { type: 'radio' }
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
options: ['large', 'medium', 'small'],
|
|
27
|
+
control: { type: 'radio' }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const Template: StoryFn<TStatusProps> = (args) => {
|
|
33
|
+
return (
|
|
34
|
+
<>
|
|
35
|
+
<_Status {...args} type={'danger'}>
|
|
36
|
+
<Text type={'secondary'} size={'small'}>
|
|
37
|
+
Status subtext
|
|
38
|
+
</Text>
|
|
39
|
+
</_Status>
|
|
40
|
+
<_Status {...args} type={'information'}>
|
|
41
|
+
<Text type={'information'} size={'small'}>
|
|
42
|
+
Status subtext
|
|
43
|
+
</Text>
|
|
44
|
+
</_Status>
|
|
45
|
+
</>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const Status = Template.bind({})
|
|
50
|
+
|
|
51
|
+
Status.args = {
|
|
52
|
+
text: 'Status text',
|
|
53
|
+
type: 'primary',
|
|
54
|
+
size: 'large',
|
|
55
|
+
withCircle: true,
|
|
56
|
+
leftIconProps: {
|
|
57
|
+
Component: IconPerson
|
|
58
|
+
},
|
|
59
|
+
rightIconProps: (
|
|
60
|
+
<Popover
|
|
61
|
+
linkAddons={{ url: 'link', beforeLink: 'text before link' }}
|
|
62
|
+
id="beneficiary-tooltip"
|
|
63
|
+
text={'data'}
|
|
64
|
+
position="top-center"
|
|
65
|
+
>
|
|
66
|
+
<div id="beneficiary-tooltip">
|
|
67
|
+
<IconInfo type="information" size="xsmall" className={'ml-4 pointer'} />
|
|
68
|
+
</div>
|
|
69
|
+
</Popover>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Stepper as _Stepper } from '../index'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Stepper',
|
|
6
|
+
component: _Stepper
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const COMP1 = () => {
|
|
10
|
+
return <div>STEP1</div>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const COMP2 = () => {
|
|
14
|
+
return <div>STEP2</div>
|
|
15
|
+
}
|
|
16
|
+
const COMP3 = () => {
|
|
17
|
+
return <div>STEP3</div>
|
|
18
|
+
}
|
|
19
|
+
const COMP4 = () => {
|
|
20
|
+
return <div>STEP4</div>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const LIST = [COMP1, COMP2, COMP3, COMP4]
|
|
24
|
+
|
|
25
|
+
const Template = () => {
|
|
26
|
+
return <_Stepper list={LIST} />
|
|
27
|
+
}
|
|
28
|
+
export const Stepper = Template.bind({})
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { Switcher as _Switcher } from '../index'
|
|
3
|
+
import IconInfo from '../components/SVGIcons/IconInfo'
|
|
4
|
+
import { StoryFn } from '@storybook/react'
|
|
5
|
+
import { TSwitcherProps } from '../components/Switcher/types'
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Switcher',
|
|
9
|
+
component: _Switcher,
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
options: ['large', 'small'],
|
|
13
|
+
control: { type: 'radio' }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const ID = 'am_custom_switcher'
|
|
18
|
+
|
|
19
|
+
const Template: StoryFn<TSwitcherProps> = (args) => {
|
|
20
|
+
const [isChecked, setIsChecked] = useState(false)
|
|
21
|
+
return <_Switcher {...args} selectedValue={isChecked} onClick={setIsChecked} id={ID} />
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const Switcher = Template.bind({})
|
|
25
|
+
|
|
26
|
+
Switcher.args = {
|
|
27
|
+
size: 'small',
|
|
28
|
+
inlineType: false,
|
|
29
|
+
disabled: false,
|
|
30
|
+
label: 'label',
|
|
31
|
+
labelAddons: <IconInfo size={'xsmall'} type={'information'} className={'ml-4'} />
|
|
32
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { ReactElement, useState } from 'react'
|
|
2
|
+
import { Tab as _Tab } from '../index'
|
|
3
|
+
import IconDismissCircle from '../components/SVGIcons/IconDismissCircle'
|
|
4
|
+
import { StoryFn } from '@storybook/react'
|
|
5
|
+
import { TTabProps } from '../components/Tab/types'
|
|
6
|
+
import IconHome from '../components/SVGIcons/IconHome'
|
|
7
|
+
import IconApple from '../components/SVGIcons/IconApple'
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Tab',
|
|
11
|
+
component: _Tab,
|
|
12
|
+
argTypes: {
|
|
13
|
+
type: {
|
|
14
|
+
options: ['primary', 'secondary'],
|
|
15
|
+
control: { type: 'radio' }
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
options: ['large', 'medium', 'small'],
|
|
19
|
+
control: { type: 'radio' }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const Template: StoryFn<TTabProps> = (args) => {
|
|
25
|
+
const [selectedTab, onTabSelect] = useState(args.selectedValue)
|
|
26
|
+
return <_Tab {...args} selectedValue={selectedTab} onSelect={onTabSelect} />
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const Tab = Template.bind({})
|
|
30
|
+
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
Tab.args = {
|
|
33
|
+
type: 'primary',
|
|
34
|
+
size: 'large',
|
|
35
|
+
tabItems: [
|
|
36
|
+
{
|
|
37
|
+
label: 'Prompt text 1',
|
|
38
|
+
value: 1,
|
|
39
|
+
disabled: false,
|
|
40
|
+
iconProps: {
|
|
41
|
+
Component: IconHome
|
|
42
|
+
},
|
|
43
|
+
rightIconProps: {
|
|
44
|
+
Component: IconDismissCircle,
|
|
45
|
+
action: (e: string | number) => {
|
|
46
|
+
// eslint-disable-next-line no-console
|
|
47
|
+
console.log(e, 'e')
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
badgeProps: {
|
|
51
|
+
text: '9',
|
|
52
|
+
type: 'primary'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Prompt text 2Prompt text 2',
|
|
57
|
+
value: 2,
|
|
58
|
+
iconProps: {
|
|
59
|
+
Component: IconApple
|
|
60
|
+
},
|
|
61
|
+
rightIconProps: {
|
|
62
|
+
Component: IconDismissCircle,
|
|
63
|
+
action: (e: string | number) => {
|
|
64
|
+
// eslint-disable-next-line no-console
|
|
65
|
+
console.log(e, 'e')
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'Prompt text 3',
|
|
71
|
+
value: 3,
|
|
72
|
+
iconProps: {
|
|
73
|
+
Component: IconApple
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Table as _Table } from '../index'
|
|
3
|
+
import { TColumn, TTableProps, TTableState } from '../components/Table/types'
|
|
4
|
+
import { StoryFn } from '@storybook/react'
|
|
5
|
+
|
|
6
|
+
const data: any[] = [
|
|
7
|
+
{
|
|
8
|
+
user: 'Luke Skywalker',
|
|
9
|
+
age: 21,
|
|
10
|
+
id: 'fffffffsdf',
|
|
11
|
+
visits: [7, 8, 9],
|
|
12
|
+
progress: 'fdfsdfsdfsd',
|
|
13
|
+
status: 'Active'
|
|
14
|
+
},
|
|
15
|
+
...Array(13).fill({
|
|
16
|
+
user: 'John Doe',
|
|
17
|
+
age: 30,
|
|
18
|
+
id: 'dsfsdf',
|
|
19
|
+
visits: [4, 5, 6],
|
|
20
|
+
progress: 'divv',
|
|
21
|
+
status: 'Active'
|
|
22
|
+
}),
|
|
23
|
+
{
|
|
24
|
+
user: 'John Doe',
|
|
25
|
+
age: 30,
|
|
26
|
+
id: 'dsfsdf',
|
|
27
|
+
visits: [4, 5, 6],
|
|
28
|
+
progress: 'divv',
|
|
29
|
+
status: 'Active'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
user: 'Bruce wayne',
|
|
33
|
+
id: 'fffffffeeeee',
|
|
34
|
+
age: 29,
|
|
35
|
+
visits: [1, 2, 3],
|
|
36
|
+
progress: 'diff',
|
|
37
|
+
status: 'Active'
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
const Template: StoryFn<TTableProps> = (args) => {
|
|
42
|
+
const columns: TColumn[] = [
|
|
43
|
+
{
|
|
44
|
+
Header: 'User',
|
|
45
|
+
accessor: 'user',
|
|
46
|
+
fixed: 'left',
|
|
47
|
+
widthInPercent: 30,
|
|
48
|
+
width: 100
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
Header: 'Status',
|
|
52
|
+
accessor: 'status',
|
|
53
|
+
widthInPercent: 20
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
accessor: 'age',
|
|
57
|
+
Header: 'Age',
|
|
58
|
+
widthInPercent: 20,
|
|
59
|
+
minWidth: 100,
|
|
60
|
+
columnProps: {
|
|
61
|
+
sortable: true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
Header: 'Profile Progress',
|
|
66
|
+
accessor: 'progress',
|
|
67
|
+
widthInPercent: 20
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
Header: 'Visits',
|
|
71
|
+
widthInPercent: 10,
|
|
72
|
+
accessor: 'visits',
|
|
73
|
+
fixed: 'right'
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
const handleChange = (state: TTableState) => {
|
|
78
|
+
console.log(state)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return <_Table {...args} data={data} onChange={handleChange} columns={columns} />
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
title: 'Table',
|
|
86
|
+
component: _Table
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export const Table = Template.bind({})
|
|
90
|
+
|
|
91
|
+
Table.args = {
|
|
92
|
+
fixedHeader: { y: 500 },
|
|
93
|
+
withSelect: true,
|
|
94
|
+
data: [],
|
|
95
|
+
columns: []
|
|
96
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Text as _Text } from '../index'
|
|
3
|
+
import { StoryFn } from '@storybook/react'
|
|
4
|
+
import { TextPropTypes } from '../components/Text/types'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Text',
|
|
8
|
+
component: _Text,
|
|
9
|
+
argTypes: {
|
|
10
|
+
type: {
|
|
11
|
+
options: [
|
|
12
|
+
'primary',
|
|
13
|
+
'secondary',
|
|
14
|
+
'tertiary',
|
|
15
|
+
'disabled',
|
|
16
|
+
'inverse',
|
|
17
|
+
'selected',
|
|
18
|
+
'brand',
|
|
19
|
+
'danger',
|
|
20
|
+
'warning',
|
|
21
|
+
'success',
|
|
22
|
+
'information',
|
|
23
|
+
'discovery'
|
|
24
|
+
],
|
|
25
|
+
control: { type: 'radio' }
|
|
26
|
+
},
|
|
27
|
+
size: {
|
|
28
|
+
options: ['xxsmall', 'xsmall', 'small', 'standard', 'medium', 'large'],
|
|
29
|
+
control: { type: 'radio' }
|
|
30
|
+
},
|
|
31
|
+
as: {
|
|
32
|
+
options: ['p', 'span', 'div', 'h1'],
|
|
33
|
+
control: { type: 'radio' }
|
|
34
|
+
},
|
|
35
|
+
lineHeight: {
|
|
36
|
+
options: ['xsmall', 'small', 'medium', 'large'],
|
|
37
|
+
control: { type: 'radio' }
|
|
38
|
+
},
|
|
39
|
+
weight: {
|
|
40
|
+
options: ['regular', 'semibold', 'bold', 'bolder'],
|
|
41
|
+
control: { type: 'radio' }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const Template: StoryFn<TextPropTypes & { text: string }> = (args) => {
|
|
47
|
+
return (
|
|
48
|
+
<div style={{ padding: '20px', backgroundColor: `${args.type == 'inverse' ? '#919191' : ''}` }}>
|
|
49
|
+
<_Text {...args}>{args.text}</_Text>
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const Text = Template.bind({})
|
|
55
|
+
Text.args = {
|
|
56
|
+
type: 'primary',
|
|
57
|
+
as: 'p',
|
|
58
|
+
size: 'standard',
|
|
59
|
+
lineHeight: 'large',
|
|
60
|
+
weight: 'regular',
|
|
61
|
+
text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.'
|
|
62
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { Textarea as _Textarea } from '../index'
|
|
3
|
+
import IconInfo from '../components/SVGIcons/IconInfo'
|
|
4
|
+
import { StoryFn } from '@storybook/react'
|
|
5
|
+
import { TTextAreaTypeProps } from '../components/Textarea/types'
|
|
6
|
+
|
|
7
|
+
type TChangeEventType = React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Textarea',
|
|
11
|
+
component: _Textarea
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const Template: StoryFn<TTextAreaTypeProps> = (args) => {
|
|
15
|
+
const [value, setValue] = useState('')
|
|
16
|
+
const changeHandler = (e: TChangeEventType) => {
|
|
17
|
+
setValue(e.target.value)
|
|
18
|
+
}
|
|
19
|
+
return (
|
|
20
|
+
<div style={{ maxWidth: 300 }}>
|
|
21
|
+
<_Textarea {...args} currentValue={value} onChange={changeHandler} />
|
|
22
|
+
</div>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
export const Textarea = Template.bind({})
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
Textarea.args = {
|
|
28
|
+
label: 'Label',
|
|
29
|
+
disabled: false,
|
|
30
|
+
required: false,
|
|
31
|
+
placeHolder: 'Enter text',
|
|
32
|
+
helperText: 'This is your helper text',
|
|
33
|
+
successMessage: 'Success message',
|
|
34
|
+
error: 'Error message',
|
|
35
|
+
maxCount: 240,
|
|
36
|
+
labelAddons: <IconInfo size={'xsmall'} type={'information'} className={'ml-4'} />
|
|
37
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Tooltip as _Tooltip } from '../index'
|
|
3
|
+
import { StoryFn } from '@storybook/react'
|
|
4
|
+
import { TTooltipProps } from '../components/Tooltip/types'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Tooltip',
|
|
8
|
+
component: _Tooltip,
|
|
9
|
+
argTypes: {
|
|
10
|
+
position: {
|
|
11
|
+
options: [
|
|
12
|
+
'top-left',
|
|
13
|
+
'top-center',
|
|
14
|
+
'top-right',
|
|
15
|
+
'bottom-left',
|
|
16
|
+
'bottom-center',
|
|
17
|
+
'bottom-right',
|
|
18
|
+
'middle-left',
|
|
19
|
+
'middle-right'
|
|
20
|
+
],
|
|
21
|
+
control: { type: 'radio' }
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
options: ['large', 'small'],
|
|
25
|
+
control: { type: 'radio' }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const Template: StoryFn<TTooltipProps> = (args) => {
|
|
31
|
+
// const [elemRef, setelemRef] = useState<HTMLElement | null>(null)
|
|
32
|
+
return (
|
|
33
|
+
<div
|
|
34
|
+
style={{
|
|
35
|
+
backgroundColor: 'grey',
|
|
36
|
+
width: 100,
|
|
37
|
+
height: 100,
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
top: 200,
|
|
40
|
+
left: 400
|
|
41
|
+
}}
|
|
42
|
+
>
|
|
43
|
+
<_Tooltip
|
|
44
|
+
{...args}
|
|
45
|
+
id="ooooo"
|
|
46
|
+
timer={1000}
|
|
47
|
+
// position="bottom-left"
|
|
48
|
+
/>
|
|
49
|
+
<div id="ooooo">Hover on me</div>
|
|
50
|
+
</div>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const Tooltip = Template.bind({})
|
|
55
|
+
|
|
56
|
+
Tooltip.args = {
|
|
57
|
+
text: 'Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text Prompt text',
|
|
58
|
+
// position: 'top-right',
|
|
59
|
+
size: 'large'
|
|
60
|
+
}
|
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
declare type TIconSize = 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'
|
|
2
|
+
|
|
3
|
+
declare type TColor =
|
|
4
|
+
| 'borderGray'
|
|
5
|
+
| 'labelGray'
|
|
6
|
+
| 'justWhite'
|
|
7
|
+
| 'textBlack'
|
|
8
|
+
| 'dropdownGray'
|
|
9
|
+
| 'inputWhite'
|
|
10
|
+
| 'inputBorderGray'
|
|
11
|
+
| 'inputBorderActive'
|
|
12
|
+
| 'inputBorderError'
|
|
13
|
+
| 'buttonGreen'
|
|
14
|
+
| 'secButtonBorderGray'
|
|
15
|
+
| 'iconGray'
|
|
16
|
+
| 'footerTextGray'
|
|
17
|
+
| 'footerUnderlineGray'
|
|
18
|
+
| 'darkGray'
|
|
19
|
+
|
|
20
|
+
declare type CallbackFnType = () => void
|
|
21
|
+
|
|
22
|
+
declare type TIconSizes = {
|
|
23
|
+
[size in TIconSize]: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface TCustomIcons {
|
|
27
|
+
[iconName: string]: () => string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare type TCustomColors = {
|
|
31
|
+
[color: string]: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface HTMLInputEvent extends Event {
|
|
35
|
+
target: HTMLInputElement & EventTarget
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare type TFormData = {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
|
+
[key: string]: any
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface StringEventTarget extends EventTarget {
|
|
44
|
+
text: string
|
|
45
|
+
}
|
|
46
|
+
interface InputEvent extends EventTarget {
|
|
47
|
+
target: {
|
|
48
|
+
value: string
|
|
49
|
+
className?: string
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
interface MouseEvent extends EventTarget {
|
|
53
|
+
target: TextEventTarget | StringEventTarget
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type FieldError = {
|
|
57
|
+
message: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare type FieldErrors = {
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
62
|
+
[key: string]: FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface RefObject<T> {
|
|
66
|
+
readonly current: T | null
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare type TSetValue = (name: string, value: unknown, config?: { [key: string]: unknown }) => void
|
|
70
|
+
|
|
71
|
+
interface FileEventTarget extends EventTarget {
|
|
72
|
+
files: FileList
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare type TTextAreaEventType = ChangeEventHandler<HTMLTextAreaElement>
|
|
76
|
+
|
|
77
|
+
declare type TCreateErrorFieldParams = {
|
|
78
|
+
errorMessage: string | undefined
|
|
79
|
+
name: string
|
|
80
|
+
errors: FieldErrors | undefined
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare type TImageMimeTypes =
|
|
84
|
+
| 'image/jpeg'
|
|
85
|
+
| 'image/jpg'
|
|
86
|
+
| 'image/png'
|
|
87
|
+
| 'image/heic'
|
|
88
|
+
| 'image/heif'
|
|
89
|
+
| 'application/pdf'
|
|
90
|
+
|
|
91
|
+
declare type TItemValue = string | number | null
|
|
92
|
+
declare type TSelectedValue = {
|
|
93
|
+
value: TItemValue
|
|
94
|
+
label: TItemLabel
|
|
95
|
+
optionLeftIcon?: TSelectIconProps
|
|
96
|
+
}
|
|
97
|
+
declare type TItemLabel = string | number
|
|
98
|
+
|
|
99
|
+
declare type TClickHandler = (e: TClickEventType) => void
|
|
100
|
+
|
|
101
|
+
declare type TSVGIconComponent = (props: ISVGIconProps) => ReactElement
|
|
102
|
+
|
|
103
|
+
declare type TSelectIconProps = {
|
|
104
|
+
type?: TIconTypes
|
|
105
|
+
size?: TIconSize
|
|
106
|
+
className?: string
|
|
107
|
+
onClick?: TClickHandler
|
|
108
|
+
Component?: TSVGIconComponent
|
|
109
|
+
}
|
|
110
|
+
declare type TSelectOption = {
|
|
111
|
+
value: TItemValue
|
|
112
|
+
label: TItemLabel
|
|
113
|
+
meta?: string
|
|
114
|
+
disabled?: boolean
|
|
115
|
+
children?: TSelectOption[]
|
|
116
|
+
dataId?: string
|
|
117
|
+
optionLeftIcon?: TSelectIconProps
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare type TSelectOptions = TSelectOption[]
|
|
121
|
+
|
|
122
|
+
declare type TSelectGroupOption = {
|
|
123
|
+
title: string
|
|
124
|
+
dataId?: string
|
|
125
|
+
data: TSelectOptions
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare type TSelectGroupOptions = TSelectGroupOption[]
|
|
129
|
+
|
|
130
|
+
declare type TRangePickerValues = [Date | null, Date | null]
|
|
131
|
+
|
|
132
|
+
declare type TClickEventType = React.MouseEvent<HTMLElement>
|
|
133
|
+
declare type TChangeEventType =
|
|
134
|
+
| React.ChangeEvent<HTMLInputElement>
|
|
135
|
+
| React.ChangeEvent<HTMLTextAreaElement>
|
|
136
|
+
|
|
137
|
+
declare type TFormValue =
|
|
138
|
+
| string
|
|
139
|
+
| number
|
|
140
|
+
| boolean
|
|
141
|
+
| TSelectOption
|
|
142
|
+
| TItemValue
|
|
143
|
+
| File[]
|
|
144
|
+
| FileReader[]
|
|
145
|
+
| Date
|
|
146
|
+
| TRangePickerValues
|
|
147
|
+
| null
|
|
148
|
+
| TItemValue[]
|
|
149
|
+
| TSelectedValue[]
|
|
150
|
+
declare type TOnChange = (event: TChangeEventType) => void
|
|
151
|
+
|
|
152
|
+
// Props which will pass FormField to component
|
|
153
|
+
declare interface IFormCompProps {
|
|
154
|
+
hasError?: boolean
|
|
155
|
+
isValid?: boolean
|
|
156
|
+
value?: TFormValue
|
|
157
|
+
onChange?: TOnChange
|
|
158
|
+
dataId?: string
|
|
159
|
+
name?: string
|
|
160
|
+
setFieldValue?: (
|
|
161
|
+
name: string,
|
|
162
|
+
value: TFormValue,
|
|
163
|
+
shouldValidate?: { shouldValidate: boolean }
|
|
164
|
+
) => void
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare type TRegister = (name: string) => {
|
|
168
|
+
onChange: TOnChange
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare type TTooltipPosition =
|
|
172
|
+
| 'top-left'
|
|
173
|
+
| 'top-center'
|
|
174
|
+
| 'top-right'
|
|
175
|
+
| 'bottom-left'
|
|
176
|
+
| 'bottom-center'
|
|
177
|
+
| 'bottom-right'
|
|
178
|
+
| 'middle-left'
|
|
179
|
+
| 'middle-right'
|
|
180
|
+
|
|
181
|
+
declare type TTooltipInfo = {
|
|
182
|
+
hasTriangle?: boolean
|
|
183
|
+
initialPosition: TTooltipPosition
|
|
184
|
+
elemRef: HTMLElement | null
|
|
185
|
+
tooltipRef: HTMLElement | null
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare type TCallBackFn = () => void
|
|
189
|
+
|
|
190
|
+
declare type TDirtyFields = Partial<Readonly<{ [x: string]: unknown }>>
|
|
191
|
+
|
|
192
|
+
declare module '*.svg'
|