@cleen/ui 0.1.0 → 0.1.1
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 +37 -0
- package/dist/charts/index.d.ts +118 -0
- package/dist/charts/index.js +611 -0
- package/dist/icons/index.d.ts +35 -0
- package/dist/icons/index.js +77 -0
- package/dist/index.d.ts +2959 -0
- package/dist/index.js +16710 -0
- package/package.json +54 -54
- package/src/charts/chart/Chart.tsx +0 -82
- package/src/charts/chart/constant.ts +0 -50
- package/src/charts/chart/index.ts +0 -2
- package/src/charts/chart/types/apexcharts.ts +0 -9
- package/src/charts/chart/variants/BellCurve/BellCurve.tsx +0 -215
- package/src/charts/chart/variants/BellCurve/constant.ts +0 -112
- package/src/charts/chart/variants/BellCurve/helper.ts +0 -116
- package/src/charts/chart/variants/BellCurve/index.ts +0 -2
- package/src/charts/chart/variants/BellCurve/types/bellCurve.ts +0 -47
- package/src/charts/chart/variants/BellCurve/types/props.ts +0 -21
- package/src/charts/chart/variants/RadarChart/RadarChart.tsx +0 -22
- package/src/charts/chart/variants/RadarChart/constant.ts +0 -28
- package/src/charts/chart/variants/RadarChart/index.ts +0 -1
- package/src/charts/chart/variants/ScatterChart/ScatterChart.tsx +0 -23
- package/src/charts/chart/variants/ScatterChart/constant.ts +0 -54
- package/src/charts/chart/variants/ScatterChart/index.ts +0 -1
- package/src/charts/chart/variants/index.ts +0 -3
- package/src/charts/index.ts +0 -2
- package/src/charts/simpleChart/SimpleChart.tsx +0 -54
- package/src/charts/simpleChart/index.ts +0 -1
- package/src/components/advancedProgressBar/AdvancedProgressBar.tsx +0 -156
- package/src/components/advancedProgressBar/blocks/Bar.tsx +0 -118
- package/src/components/advancedProgressBar/blocks/BlockLabel.tsx +0 -49
- package/src/components/advancedProgressBar/blocks/Clamp.tsx +0 -85
- package/src/components/advancedProgressBar/constants.ts +0 -6
- package/src/components/advancedProgressBar/index.ts +0 -2
- package/src/components/advancedProgressBar/types/props.ts +0 -69
- package/src/components/advancedProgressBar/utils.ts +0 -17
- package/src/components/audioPlayback/AudioPlayback.tsx +0 -141
- package/src/components/audioPlayback/index.ts +0 -2
- package/src/components/audioRecorder/AudioRecorder.tsx +0 -391
- package/src/components/audioRecorder/constant/default.ts +0 -19
- package/src/components/audioRecorder/constant/labels.ts +0 -9
- package/src/components/audioRecorder/index.ts +0 -2
- package/src/components/audioRecorder/types/props.ts +0 -56
- package/src/components/avatar/Avatar.tsx +0 -132
- package/src/components/avatar/index.ts +0 -1
- package/src/components/avatar/variants.ts +0 -9
- package/src/components/avatarRow/AvatarRow.tsx +0 -127
- package/src/components/avatarRow/index.ts +0 -1
- package/src/components/breadcrumb/Breadcrumb.tsx +0 -158
- package/src/components/breadcrumb/index.ts +0 -1
- package/src/components/button/Button.tsx +0 -114
- package/src/components/button/index.ts +0 -2
- package/src/components/button/variants.ts +0 -41
- package/src/components/card/Card.tsx +0 -197
- package/src/components/card/index.ts +0 -3
- package/src/components/card/variants/CardIcon/CardIcon.tsx +0 -158
- package/src/components/card/variants/CardMedia/CardMedia.tsx +0 -127
- package/src/components/checkbox/Checkbox.tsx +0 -246
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/checkbox/variants.ts +0 -13
- package/src/components/checkboxGroup/CheckboxGroup.tsx +0 -163
- package/src/components/checkboxGroup/index.ts +0 -1
- package/src/components/cleenIcon/CleenIcon.tsx +0 -674
- package/src/components/cleenIcon/icons/IconAlertCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconAlertFeatured.tsx +0 -30
- package/src/components/cleenIcon/icons/IconAlertOctagon.tsx +0 -21
- package/src/components/cleenIcon/icons/IconAlertTriangle.tsx +0 -25
- package/src/components/cleenIcon/icons/IconAlignRight.tsx +0 -25
- package/src/components/cleenIcon/icons/IconArrowDown.tsx +0 -25
- package/src/components/cleenIcon/icons/IconArrowLeft.tsx +0 -25
- package/src/components/cleenIcon/icons/IconArrowLeft2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconArrowRight.tsx +0 -25
- package/src/components/cleenIcon/icons/IconArrowToTop.tsx +0 -20
- package/src/components/cleenIcon/icons/IconArrowUp.tsx +0 -22
- package/src/components/cleenIcon/icons/IconArrowUpRight.tsx +0 -22
- package/src/components/cleenIcon/icons/IconArrowUpRightNarrow.tsx +0 -22
- package/src/components/cleenIcon/icons/IconArrowUpRightSquare.tsx +0 -22
- package/src/components/cleenIcon/icons/IconAttachment.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBarChartSquare.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBold.tsx +0 -16
- package/src/components/cleenIcon/icons/IconBookmarkCheck.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBookmarkCheckFill.tsx +0 -37
- package/src/components/cleenIcon/icons/IconBookmarkPlus.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBookmarkX.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBoxLines.tsx +0 -16
- package/src/components/cleenIcon/icons/IconBoxText.tsx +0 -24
- package/src/components/cleenIcon/icons/IconBracketsCheck.tsx +0 -25
- package/src/components/cleenIcon/icons/IconBracketsEllipses.tsx +0 -22
- package/src/components/cleenIcon/icons/IconBuilding.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCalendar.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCertificateHeart.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCheck.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCheckCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCheckCircleBroken.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCheckFill.tsx +0 -45
- package/src/components/cleenIcon/icons/IconCheckVerified.tsx +0 -22
- package/src/components/cleenIcon/icons/IconChevronDown.tsx +0 -22
- package/src/components/cleenIcon/icons/IconChevronLeft.tsx +0 -25
- package/src/components/cleenIcon/icons/IconChevronLeftDouble.tsx +0 -22
- package/src/components/cleenIcon/icons/IconChevronRight.tsx +0 -25
- package/src/components/cleenIcon/icons/IconChevronRightDouble.tsx +0 -22
- package/src/components/cleenIcon/icons/IconChevronSelectorVertical.tsx +0 -22
- package/src/components/cleenIcon/icons/IconChevronUp.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCircleSwap.tsx +0 -22
- package/src/components/cleenIcon/icons/IconClockFastForward.tsx +0 -25
- package/src/components/cleenIcon/icons/IconClockRewind.tsx +0 -25
- package/src/components/cleenIcon/icons/IconClockRewind2.tsx +0 -21
- package/src/components/cleenIcon/icons/IconCodeBrowser.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCodeCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconColors.tsx +0 -25
- package/src/components/cleenIcon/icons/IconColumnEdit.tsx +0 -19
- package/src/components/cleenIcon/icons/IconCopy.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCopy2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCopy3.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCopy4.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCopy5.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCopyCheck.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCube.tsx +0 -25
- package/src/components/cleenIcon/icons/IconCubeOutline.tsx +0 -22
- package/src/components/cleenIcon/icons/IconCursorBox.tsx +0 -25
- package/src/components/cleenIcon/icons/IconDataflow.tsx +0 -22
- package/src/components/cleenIcon/icons/IconDataflow2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconDataflow3.tsx +0 -29
- package/src/components/cleenIcon/icons/IconDelete.tsx +0 -25
- package/src/components/cleenIcon/icons/IconDollarCircle.tsx +0 -25
- package/src/components/cleenIcon/icons/IconDotsGrid.tsx +0 -74
- package/src/components/cleenIcon/icons/IconDotsHorizontal.tsx +0 -34
- package/src/components/cleenIcon/icons/IconDotsVertical.tsx +0 -38
- package/src/components/cleenIcon/icons/IconEdit.tsx +0 -25
- package/src/components/cleenIcon/icons/IconEditable.tsx +0 -25
- package/src/components/cleenIcon/icons/IconExpand.tsx +0 -22
- package/src/components/cleenIcon/icons/IconEye.tsx +0 -28
- package/src/components/cleenIcon/icons/IconEyeHidden.tsx +0 -25
- package/src/components/cleenIcon/icons/IconEyeHidden2.tsx +0 -24
- package/src/components/cleenIcon/icons/IconFaceSmile.tsx +0 -24
- package/src/components/cleenIcon/icons/IconFilter.tsx +0 -22
- package/src/components/cleenIcon/icons/IconFilter2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconFlag.tsx +0 -22
- package/src/components/cleenIcon/icons/IconFlag2.tsx +0 -25
- package/src/components/cleenIcon/icons/IconFlag3.tsx +0 -16
- package/src/components/cleenIcon/icons/IconHandShield.tsx +0 -22
- package/src/components/cleenIcon/icons/IconHash.tsx +0 -22
- package/src/components/cleenIcon/icons/IconHeadsetMic.tsx +0 -21
- package/src/components/cleenIcon/icons/IconHeart.tsx +0 -24
- package/src/components/cleenIcon/icons/IconHouseLine.tsx +0 -22
- package/src/components/cleenIcon/icons/IconImage.tsx +0 -22
- package/src/components/cleenIcon/icons/IconImage2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconImage3.tsx +0 -17
- package/src/components/cleenIcon/icons/IconImage4.tsx +0 -25
- package/src/components/cleenIcon/icons/IconImageCheck.tsx +0 -22
- package/src/components/cleenIcon/icons/IconInfoCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconInfoHexagon.tsx +0 -25
- package/src/components/cleenIcon/icons/IconItalic.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLayersMultiple.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLayersSingle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLayout.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLayout2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLayoutColumns.tsx +0 -20
- package/src/components/cleenIcon/icons/IconLayoutCustom.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLayoutSequential.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLayoutStuffed.tsx +0 -20
- package/src/components/cleenIcon/icons/IconLayoutTile.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLifeBuoy.tsx +0 -29
- package/src/components/cleenIcon/icons/IconLightbulb.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLightning.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLightning2.tsx +0 -25
- package/src/components/cleenIcon/icons/IconLightningFast.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLineChartBar.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLineChartBreakoutSquare.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLineChartUp.tsx +0 -25
- package/src/components/cleenIcon/icons/IconLineChartUp2.tsx +0 -34
- package/src/components/cleenIcon/icons/IconLines.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLinesCheck.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLinesPlay.tsx +0 -23
- package/src/components/cleenIcon/icons/IconLink.tsx +0 -25
- package/src/components/cleenIcon/icons/IconLink2.tsx +0 -24
- package/src/components/cleenIcon/icons/IconLink3.tsx +0 -21
- package/src/components/cleenIcon/icons/IconLink4.tsx +0 -17
- package/src/components/cleenIcon/icons/IconLink5.tsx +0 -22
- package/src/components/cleenIcon/icons/IconListBullet.tsx +0 -18
- package/src/components/cleenIcon/icons/IconListOrder.tsx +0 -20
- package/src/components/cleenIcon/icons/IconListOrder2.tsx +0 -16
- package/src/components/cleenIcon/icons/IconLock.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLock2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconLogIn.tsx +0 -25
- package/src/components/cleenIcon/icons/IconLogOut.tsx +0 -25
- package/src/components/cleenIcon/icons/IconLogOut2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconMagicWand.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMagicWand2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconMail.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMessageSquare.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMessageSquare2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconMessageXSquare.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMinusCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconMobile.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMonitor.tsx +0 -22
- package/src/components/cleenIcon/icons/IconMonitor2.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMonitor3.tsx +0 -25
- package/src/components/cleenIcon/icons/IconMoonCircle.tsx +0 -28
- package/src/components/cleenIcon/icons/IconNavigationPointer.tsx +0 -22
- package/src/components/cleenIcon/icons/IconNotificationBox.tsx +0 -22
- package/src/components/cleenIcon/icons/IconPCSetup.tsx +0 -22
- package/src/components/cleenIcon/icons/IconPalette.tsx +0 -40
- package/src/components/cleenIcon/icons/IconPasscodeLock.tsx +0 -25
- package/src/components/cleenIcon/icons/IconPencil.tsx +0 -25
- package/src/components/cleenIcon/icons/IconPercentageCircle.tsx +0 -29
- package/src/components/cleenIcon/icons/IconPerspective.tsx +0 -22
- package/src/components/cleenIcon/icons/IconPhoneCall.tsx +0 -25
- package/src/components/cleenIcon/icons/IconPin.tsx +0 -22
- package/src/components/cleenIcon/icons/IconPlayCircle.tsx +0 -28
- package/src/components/cleenIcon/icons/IconPlus.tsx +0 -22
- package/src/components/cleenIcon/icons/IconPlusCircle.tsx +0 -25
- package/src/components/cleenIcon/icons/IconPulse.tsx +0 -25
- package/src/components/cleenIcon/icons/IconQuestionCircle.tsx +0 -24
- package/src/components/cleenIcon/icons/IconRadioButton.tsx +0 -27
- package/src/components/cleenIcon/icons/IconRadioButtonActive.tsx +0 -39
- package/src/components/cleenIcon/icons/IconReceiptCheck.tsx +0 -25
- package/src/components/cleenIcon/icons/IconRedo.tsx +0 -16
- package/src/components/cleenIcon/icons/IconRefresh.tsx +0 -22
- package/src/components/cleenIcon/icons/IconRefresh2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconRefresh3.tsx +0 -20
- package/src/components/cleenIcon/icons/IconRepeat.tsx +0 -22
- package/src/components/cleenIcon/icons/IconRepeat2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconRetweet.tsx +0 -33
- package/src/components/cleenIcon/icons/IconRoundChart.tsx +0 -25
- package/src/components/cleenIcon/icons/IconRoundChart2.tsx +0 -29
- package/src/components/cleenIcon/icons/IconRoute.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSave.tsx +0 -25
- package/src/components/cleenIcon/icons/IconSave2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconScanDots.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSearch.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSend.tsx +0 -25
- package/src/components/cleenIcon/icons/IconSettings.tsx +0 -32
- package/src/components/cleenIcon/icons/IconSettings2.tsx +0 -25
- package/src/components/cleenIcon/icons/IconSettings3.tsx +0 -22
- package/src/components/cleenIcon/icons/IconShieldLightning.tsx +0 -22
- package/src/components/cleenIcon/icons/IconShieldPlus.tsx +0 -22
- package/src/components/cleenIcon/icons/IconShieldRemove.tsx +0 -16
- package/src/components/cleenIcon/icons/IconShuffle.tsx +0 -25
- package/src/components/cleenIcon/icons/IconSlashCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSlashOctagon.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSocialGlobe.tsx +0 -23
- package/src/components/cleenIcon/icons/IconSocialLinkedin.tsx +0 -21
- package/src/components/cleenIcon/icons/IconSocialX.tsx +0 -28
- package/src/components/cleenIcon/icons/IconSpeedometer.tsx +0 -22
- package/src/components/cleenIcon/icons/IconStairsRound.tsx +0 -21
- package/src/components/cleenIcon/icons/IconStar.tsx +0 -22
- package/src/components/cleenIcon/icons/IconStarHalf.tsx +0 -39
- package/src/components/cleenIcon/icons/IconStars.tsx +0 -28
- package/src/components/cleenIcon/icons/IconStars2.tsx +0 -29
- package/src/components/cleenIcon/icons/IconStrikethrough.tsx +0 -16
- package/src/components/cleenIcon/icons/IconSuccessFeatured.tsx +0 -30
- package/src/components/cleenIcon/icons/IconSun.tsx +0 -22
- package/src/components/cleenIcon/icons/IconSwitchHorizontal.tsx +0 -22
- package/src/components/cleenIcon/icons/IconTag.tsx +0 -22
- package/src/components/cleenIcon/icons/IconTarget.tsx +0 -21
- package/src/components/cleenIcon/icons/IconTarget2.tsx +0 -34
- package/src/components/cleenIcon/icons/IconTextFormat.tsx +0 -17
- package/src/components/cleenIcon/icons/IconTextFormat2.tsx +0 -22
- package/src/components/cleenIcon/icons/IconTextHighlight.tsx +0 -16
- package/src/components/cleenIcon/icons/IconTranslate.tsx +0 -25
- package/src/components/cleenIcon/icons/IconTrash.tsx +0 -25
- package/src/components/cleenIcon/icons/IconTrending.tsx +0 -22
- package/src/components/cleenIcon/icons/IconUnderline.tsx +0 -16
- package/src/components/cleenIcon/icons/IconUndo.tsx +0 -22
- package/src/components/cleenIcon/icons/IconUndo2.tsx +0 -16
- package/src/components/cleenIcon/icons/IconUploadCloud.tsx +0 -22
- package/src/components/cleenIcon/icons/IconUser.tsx +0 -22
- package/src/components/cleenIcon/icons/IconUserEdit.tsx +0 -25
- package/src/components/cleenIcon/icons/IconUserRight.tsx +0 -22
- package/src/components/cleenIcon/icons/IconUserSquare.tsx +0 -25
- package/src/components/cleenIcon/icons/IconUsers.tsx +0 -25
- package/src/components/cleenIcon/icons/IconUsersUp.tsx +0 -25
- package/src/components/cleenIcon/icons/IconVolume.tsx +0 -25
- package/src/components/cleenIcon/icons/IconWrench.tsx +0 -22
- package/src/components/cleenIcon/icons/IconX.tsx +0 -25
- package/src/components/cleenIcon/icons/IconXCircle.tsx +0 -22
- package/src/components/cleenIcon/icons/IconXCircle2.tsx +0 -42
- package/src/components/cleenIcon/icons/IconXClose.tsx +0 -25
- package/src/components/cleenIcon/icons/IconXSquare.tsx +0 -22
- package/src/components/cleenIcon/icons/index.ts +0 -215
- package/src/components/cleenIcon/index.ts +0 -4
- package/src/components/cleenIcon/types/icon.ts +0 -226
- package/src/components/collapsible/Collapsible.tsx +0 -148
- package/src/components/collapsible/index.ts +0 -5
- package/src/components/creditCardInput/CreditCardInput.tsx +0 -236
- package/src/components/creditCardInput/index.ts +0 -2
- package/src/components/creditCardInput/types/card.ts +0 -13
- package/src/components/creditCardInput/types/props.ts +0 -44
- package/src/components/creditCardInput/util/format.ts +0 -102
- package/src/components/datePicker/DatePicker.tsx +0 -235
- package/src/components/datePicker/index.ts +0 -2
- package/src/components/datePicker/types/props.ts +0 -47
- package/src/components/datePicker/utils/date.ts +0 -40
- package/src/components/divider/Divider.tsx +0 -43
- package/src/components/divider/index.ts +0 -1
- package/src/components/drawer/Drawer.tsx +0 -222
- package/src/components/drawer/index.ts +0 -1
- package/src/components/dropdown/Dropdown.tsx +0 -224
- package/src/components/dropdown/index.ts +0 -1
- package/src/components/filterDrawer/FilterDrawer.tsx +0 -147
- package/src/components/filterDrawer/blocks/FilterDrawerFooter.tsx +0 -119
- package/src/components/filterDrawer/blocks/SaveFilterStep.tsx +0 -56
- package/src/components/filterDrawer/blocks/SavedFilterRow.tsx +0 -166
- package/src/components/filterDrawer/blocks/SavedFiltersDropdown.tsx +0 -142
- package/src/components/filterDrawer/constants/filter.ts +0 -4
- package/src/components/filterDrawer/constants/labels.ts +0 -52
- package/src/components/filterDrawer/constants/tab.ts +0 -7
- package/src/components/filterDrawer/context/context.ts +0 -28
- package/src/components/filterDrawer/context/provider.tsx +0 -50
- package/src/components/filterDrawer/index.ts +0 -7
- package/src/components/filterDrawer/types/filters.ts +0 -28
- package/src/components/filterDrawer/types/props.ts +0 -107
- package/src/components/filterDrawer/types/validation.ts +0 -6
- package/src/components/formGroup/FormGroup.tsx +0 -165
- package/src/components/formGroup/index.ts +0 -1
- package/src/components/groupSelector/GroupSelector.tsx +0 -729
- package/src/components/groupSelector/index.ts +0 -6
- package/src/components/index.ts +0 -44
- package/src/components/infoLabels/InfoLabels.tsx +0 -88
- package/src/components/infoLabels/index.ts +0 -1
- package/src/components/input/Input.tsx +0 -269
- package/src/components/input/index.ts +0 -1
- package/src/components/loader/Loader.tsx +0 -91
- package/src/components/loader/index.ts +0 -1
- package/src/components/lookup/Lookup.tsx +0 -433
- package/src/components/lookup/blocks/LookupOptionList.tsx +0 -130
- package/src/components/lookup/index.ts +0 -2
- package/src/components/lookup/types/lookup.ts +0 -97
- package/src/components/menu/Menu.tsx +0 -103
- package/src/components/menu/blocks/MenuContent.tsx +0 -105
- package/src/components/menu/blocks/MenuItem.tsx +0 -120
- package/src/components/menu/index.ts +0 -2
- package/src/components/menu/types/menu.ts +0 -30
- package/src/components/menu/types/menuItem.ts +0 -48
- package/src/components/modal/Modal.tsx +0 -191
- package/src/components/modal/index.ts +0 -1
- package/src/components/notification/Notification.tsx +0 -79
- package/src/components/notification/constant/notification.ts +0 -30
- package/src/components/notification/index.ts +0 -2
- package/src/components/notification/wrappers/CleenNotificationContainer.tsx +0 -9
- package/src/components/pagination/Pagination.tsx +0 -294
- package/src/components/pagination/blocks/PaginationGoToPage.tsx +0 -91
- package/src/components/pagination/blocks/PaginationPageSize.tsx +0 -145
- package/src/components/pagination/constants/labels.ts +0 -15
- package/src/components/pagination/index.ts +0 -9
- package/src/components/pillBadge/PillBadge.tsx +0 -130
- package/src/components/pillBadge/helper.ts +0 -11
- package/src/components/pillBadge/index.ts +0 -1
- package/src/components/pillBadge/variants.ts +0 -47
- package/src/components/popover/Popover.tsx +0 -108
- package/src/components/popover/index.ts +0 -2
- package/src/components/popover/types/popover.ts +0 -21
- package/src/components/progressBar/ProgressBar.tsx +0 -179
- package/src/components/progressBar/index.ts +0 -1
- package/src/components/progressCircle/ProgressCircle.tsx +0 -142
- package/src/components/progressCircle/index.ts +0 -1
- package/src/components/radioBoxGroup/RadioBoxGroup.tsx +0 -207
- package/src/components/radioBoxGroup/index.ts +0 -1
- package/src/components/radioButtonGroup/RadioButtonGroup.tsx +0 -208
- package/src/components/radioButtonGroup/blocks/RadioButton.tsx +0 -22
- package/src/components/radioButtonGroup/index.ts +0 -4
- package/src/components/radioButtonGroup/types/radioButton.ts +0 -10
- package/src/components/rangeSlider/RangeSlider.tsx +0 -366
- package/src/components/rangeSlider/index.ts +0 -1
- package/src/components/select/Select.tsx +0 -349
- package/src/components/select/blocks/SelectCustomMenuList.tsx +0 -70
- package/src/components/select/blocks/SelectNoOptionsMessage.tsx +0 -22
- package/src/components/select/blocks/SelectOption.tsx +0 -19
- package/src/components/select/blocks/SelectSingleValue.tsx +0 -28
- package/src/components/select/index.ts +0 -1
- package/src/components/sidebar/Sidebar.tsx +0 -210
- package/src/components/sidebar/SidebarItem.tsx +0 -88
- package/src/components/sidebar/drawerContainer/DrawerContainer.tsx +0 -36
- package/src/components/sidebar/drawerContainer/DrawerContentTitle.tsx +0 -165
- package/src/components/sidebar/drawerContainer/index.ts +0 -2
- package/src/components/sidebar/index.ts +0 -13
- package/src/components/sidebar/types.ts +0 -157
- package/src/components/skeletons/blocks/Skeleton.tsx +0 -72
- package/src/components/skeletons/blocks/SkeletonAvatar.tsx +0 -43
- package/src/components/skeletons/blocks/SkeletonBadge.tsx +0 -30
- package/src/components/skeletons/blocks/SkeletonBanner.tsx +0 -44
- package/src/components/skeletons/blocks/SkeletonButton.tsx +0 -31
- package/src/components/skeletons/blocks/SkeletonCard.tsx +0 -39
- package/src/components/skeletons/blocks/SkeletonCard2.tsx +0 -57
- package/src/components/skeletons/blocks/SkeletonCard3.tsx +0 -89
- package/src/components/skeletons/blocks/SkeletonCardStack.tsx +0 -22
- package/src/components/skeletons/blocks/SkeletonChart.tsx +0 -114
- package/src/components/skeletons/blocks/SkeletonContentCard.tsx +0 -75
- package/src/components/skeletons/blocks/SkeletonDataGrid.tsx +0 -73
- package/src/components/skeletons/blocks/SkeletonForm.tsx +0 -50
- package/src/components/skeletons/blocks/SkeletonImage.tsx +0 -45
- package/src/components/skeletons/blocks/SkeletonInfoCard.tsx +0 -130
- package/src/components/skeletons/blocks/SkeletonInput.tsx +0 -32
- package/src/components/skeletons/blocks/SkeletonList.tsx +0 -67
- package/src/components/skeletons/blocks/SkeletonParagraph.tsx +0 -52
- package/src/components/skeletons/blocks/SkeletonText.tsx +0 -22
- package/src/components/skeletons/blocks/SkeletonVideo.tsx +0 -71
- package/src/components/skeletons/blocks/SkeletonWidgetCard.tsx +0 -56
- package/src/components/skeletons/blocks/SkeletonWrapper.tsx +0 -140
- package/src/components/skeletons/index.ts +0 -24
- package/src/components/skeletons/styles/skeleton.ts +0 -2
- package/src/components/skeletons/types/skeleton.ts +0 -8
- package/src/components/slider/Slider.tsx +0 -298
- package/src/components/slider/index.ts +0 -1
- package/src/components/stepper/Stepper.tsx +0 -185
- package/src/components/stepper/index.ts +0 -1
- package/src/components/switch/Switch.tsx +0 -152
- package/src/components/switch/index.ts +0 -1
- package/src/components/tabs/Tabs.tsx +0 -140
- package/src/components/tabs/index.ts +0 -2
- package/src/components/tabs/types/tab.ts +0 -33
- package/src/components/tabs/variants.ts +0 -49
- package/src/components/textArea/TextArea.tsx +0 -244
- package/src/components/textArea/index.ts +0 -1
- package/src/components/tooltip/Tooltip.tsx +0 -200
- package/src/components/tooltip/index.ts +0 -1
- package/src/icons/IconFromLibrary.tsx +0 -13
- package/src/icons/getIconByName.ts +0 -81
- package/src/icons/index.ts +0 -16
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -27
- package/tsup.config.ts +0 -23
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents a single item in the sidebar navigation
|
|
5
|
-
*/
|
|
6
|
-
export interface SidebarItemConfig {
|
|
7
|
-
/** Unique identifier for the menu item */
|
|
8
|
-
id: string;
|
|
9
|
-
/** Display name for the item */
|
|
10
|
-
name?: string;
|
|
11
|
-
/** Label shown in tooltip */
|
|
12
|
-
label: string;
|
|
13
|
-
/** Icon name from the Icon component library */
|
|
14
|
-
iconName?: string;
|
|
15
|
-
/** Custom icon source (SVG path or component) */
|
|
16
|
-
iconSrc?: string;
|
|
17
|
-
/** Optional path for navigation */
|
|
18
|
-
path?: string | null;
|
|
19
|
-
/** Optional badge count to display */
|
|
20
|
-
badgeCount?: number | string;
|
|
21
|
-
/** Optional divider below the item */
|
|
22
|
-
withBottomDivider?: boolean;
|
|
23
|
-
/** Any additional custom data */
|
|
24
|
-
[key: string]: unknown;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Props for the SidebarItem component
|
|
29
|
-
*/
|
|
30
|
-
export interface SidebarItemProps {
|
|
31
|
-
/** Configuration object for the sidebar item */
|
|
32
|
-
item: SidebarItemConfig;
|
|
33
|
-
/** ID of the currently active item */
|
|
34
|
-
activeId?: string | null;
|
|
35
|
-
/** Click handler for the item */
|
|
36
|
-
onClick?: (item: SidebarItemConfig) => void;
|
|
37
|
-
/** Optional badge count to display on the item */
|
|
38
|
-
countBadge?: number | string | null;
|
|
39
|
-
/** Additional CSS classes */
|
|
40
|
-
className?: string;
|
|
41
|
-
/** Custom icon render function */
|
|
42
|
-
renderIcon?: (item: SidebarItemConfig, isActive: boolean) => ReactNode;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Submenu item for DrawerContentTitle
|
|
47
|
-
*/
|
|
48
|
-
export interface SubmenuItem {
|
|
49
|
-
/** Unique identifier */
|
|
50
|
-
id: string;
|
|
51
|
-
/** Display title */
|
|
52
|
-
title: string;
|
|
53
|
-
/** Click handler */
|
|
54
|
-
onClick: (item: SubmenuItem) => void;
|
|
55
|
-
/** Optional icon */
|
|
56
|
-
iconSrc?: string;
|
|
57
|
-
/** Any additional custom data */
|
|
58
|
-
[key: string]: unknown;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Props for the DrawerContentTitle component
|
|
63
|
-
*/
|
|
64
|
-
export interface DrawerContentTitleProps {
|
|
65
|
-
/** Title text to display */
|
|
66
|
-
title: string;
|
|
67
|
-
/** Icon name from the Icon component library */
|
|
68
|
-
iconName?: string;
|
|
69
|
-
/** Icon source (SVG path or component) */
|
|
70
|
-
iconSrc?: string;
|
|
71
|
-
/** Icon size in pixels */
|
|
72
|
-
iconSize?: number;
|
|
73
|
-
/** Badge color */
|
|
74
|
-
badgeColor?: string;
|
|
75
|
-
/** Badge count to display */
|
|
76
|
-
badgeCount?: string | number;
|
|
77
|
-
/** Array of submenu items (creates collapsible submenu) */
|
|
78
|
-
submenu?: SubmenuItem[];
|
|
79
|
-
/** Click handler */
|
|
80
|
-
onClick?: () => void;
|
|
81
|
-
/** Additional CSS classes */
|
|
82
|
-
className?: string;
|
|
83
|
-
/** Additional title CSS classes */
|
|
84
|
-
titleClassName?: string;
|
|
85
|
-
/** Whether this item is active */
|
|
86
|
-
isActive?: boolean;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Props for the DrawerContainer component
|
|
91
|
-
*/
|
|
92
|
-
export interface DrawerContainerProps {
|
|
93
|
-
/** Content to render inside the drawer */
|
|
94
|
-
children: ReactNode;
|
|
95
|
-
/** Title displayed at the top of the drawer */
|
|
96
|
-
title: string;
|
|
97
|
-
/** Additional CSS classes */
|
|
98
|
-
className?: string;
|
|
99
|
-
/** Custom header render function */
|
|
100
|
-
renderHeader?: (title: string) => ReactNode;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Configuration for drawer content based on menu ID
|
|
105
|
-
*/
|
|
106
|
-
export interface DrawerConfig {
|
|
107
|
-
/** Menu ID that triggers this drawer */
|
|
108
|
-
menuId: string;
|
|
109
|
-
/** Content to render in the drawer */
|
|
110
|
-
content: ReactNode;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Main Sidebar component props
|
|
115
|
-
*/
|
|
116
|
-
export interface SidebarProps {
|
|
117
|
-
/** Array of main navigation menu items */
|
|
118
|
-
navigationItems: SidebarItemConfig[];
|
|
119
|
-
/** Array of bottom navigation menu items */
|
|
120
|
-
bottomNavigationItems?: SidebarItemConfig[];
|
|
121
|
-
/** Drawer configurations mapped by menu ID */
|
|
122
|
-
drawerContent?: Record<string, ReactNode>;
|
|
123
|
-
/** Logo component or element */
|
|
124
|
-
logo?: ReactNode;
|
|
125
|
-
/** Click handler for logo */
|
|
126
|
-
onLogoClick?: () => void;
|
|
127
|
-
/** User avatar component or element */
|
|
128
|
-
userAvatar?: ReactNode;
|
|
129
|
-
/** User information component or element (shown in drawer footer) */
|
|
130
|
-
userInfo?: ReactNode;
|
|
131
|
-
/** Footer content shown when drawer is open */
|
|
132
|
-
drawerFooter?: ReactNode | ((activeMenuId: string | null) => ReactNode);
|
|
133
|
-
/** Width of the drawer when open (in pixels) */
|
|
134
|
-
drawerWidth?: number;
|
|
135
|
-
/** Initial active menu ID */
|
|
136
|
-
defaultActiveId?: string | null;
|
|
137
|
-
/** Controlled active menu ID */
|
|
138
|
-
activeId?: string | null;
|
|
139
|
-
/** Callback when active menu changes */
|
|
140
|
-
onActiveChange?: (menuId: string | null) => void;
|
|
141
|
-
/** Whether clicking outside should close the drawer */
|
|
142
|
-
closeOnOutsideClick?: boolean;
|
|
143
|
-
/** Whether losing focus should close the drawer (default: true) */
|
|
144
|
-
closeOnBlur?: boolean;
|
|
145
|
-
/** Additional CSS classes for the sidebar container */
|
|
146
|
-
className?: string;
|
|
147
|
-
/** Additional CSS classes for the navigation section */
|
|
148
|
-
navigationClassName?: string;
|
|
149
|
-
/** Additional CSS classes for the drawer */
|
|
150
|
-
drawerClassName?: string;
|
|
151
|
-
/** Custom render function for sidebar items */
|
|
152
|
-
renderSidebarItem?: (
|
|
153
|
-
item: SidebarItemConfig,
|
|
154
|
-
isActive: boolean,
|
|
155
|
-
onClick: (item: SidebarItemConfig) => void
|
|
156
|
-
) => ReactNode;
|
|
157
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import { cn } from '@cleen/ui-core';
|
|
3
|
-
import type { CSSProperties } from 'react';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
export type SkeletonRoundness =
|
|
7
|
-
| 'none'
|
|
8
|
-
| 'sm'
|
|
9
|
-
| 'md'
|
|
10
|
-
| 'lg'
|
|
11
|
-
| 'xl'
|
|
12
|
-
| '2xl'
|
|
13
|
-
| 'full';
|
|
14
|
-
|
|
15
|
-
export interface SkeletonProps {
|
|
16
|
-
width?: string | number;
|
|
17
|
-
height?: string | number;
|
|
18
|
-
roundness?: SkeletonRoundness;
|
|
19
|
-
variant?: 'pulse' | 'default';
|
|
20
|
-
className?: string;
|
|
21
|
-
style?: CSSProperties;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const roundnessMap: Record<SkeletonRoundness, string> = {
|
|
25
|
-
none: 'cleen-rounded-none',
|
|
26
|
-
sm: 'cleen-rounded-sm',
|
|
27
|
-
md: 'cleen-rounded-md',
|
|
28
|
-
lg: 'cleen-rounded-lg',
|
|
29
|
-
xl: 'cleen-rounded-xl',
|
|
30
|
-
'2xl': 'cleen-rounded-2xl',
|
|
31
|
-
full: 'cleen-rounded-full',
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The most basic skeleton block - a single rectangle with customizable size, roundness, and animation.
|
|
36
|
-
* Can be used on its own or as a building block for more complex skeleton components.
|
|
37
|
-
*/
|
|
38
|
-
export const Skeleton = forwardRef<HTMLDivElement, SkeletonProps>(
|
|
39
|
-
function Skeleton(
|
|
40
|
-
{ width, height, roundness = 'md', variant = 'default', className, style },
|
|
41
|
-
ref
|
|
42
|
-
) {
|
|
43
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
44
|
-
|
|
45
|
-
const inlineStyle: CSSProperties = {
|
|
46
|
-
// Numeric values get treated as px, strings pass through as-is (e.g. '3/4' won't work here - use className for that)
|
|
47
|
-
...(width !== undefined
|
|
48
|
-
? { width: typeof width === 'number' ? `${width}px` : width }
|
|
49
|
-
: {}),
|
|
50
|
-
...(height !== undefined
|
|
51
|
-
? { height: typeof height === 'number' ? `${height}px` : height }
|
|
52
|
-
: {}),
|
|
53
|
-
...style,
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<div ref={ref} className={cn('cleen', className)}>
|
|
58
|
-
<div
|
|
59
|
-
className={cn(
|
|
60
|
-
'cleen-bg-gray/10',
|
|
61
|
-
roundnessMap[roundness],
|
|
62
|
-
// Default to full width + sensible height when nothing is provided
|
|
63
|
-
width === undefined && 'cleen-w-full',
|
|
64
|
-
height === undefined && 'cleen-h-4',
|
|
65
|
-
pulseClass
|
|
66
|
-
)}
|
|
67
|
-
style={inlineStyle}
|
|
68
|
-
/>
|
|
69
|
-
</div>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
// Single avatar or a row of them when itemCount > 1
|
|
7
|
-
export const SkeletonAvatar = forwardRef<
|
|
8
|
-
HTMLDivElement,
|
|
9
|
-
SkeletonComponentProps
|
|
10
|
-
>(function SkeletonAvatar(
|
|
11
|
-
{ className, style, variant = 'default', itemCount = 1 },
|
|
12
|
-
ref
|
|
13
|
-
) {
|
|
14
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
18
|
-
<div className="cleen-flex cleen-items-start cleen-gap-4 cleen-flex-wrap">
|
|
19
|
-
{Array.from({ length: itemCount }).map((_, index) => (
|
|
20
|
-
<div
|
|
21
|
-
key={index}
|
|
22
|
-
className="cleen-flex cleen-flex-col cleen-items-center cleen-gap-2"
|
|
23
|
-
>
|
|
24
|
-
{/* Circle avatar */}
|
|
25
|
-
<div
|
|
26
|
-
className={cn(
|
|
27
|
-
'cleen-bg-gray/10 cleen-rounded-full cleen-size-12 cleen-border cleen-border-gray/15',
|
|
28
|
-
pulseClass
|
|
29
|
-
)}
|
|
30
|
-
/>
|
|
31
|
-
{/* Name underneath */}
|
|
32
|
-
<div
|
|
33
|
-
className={cn(
|
|
34
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-14 cleen-h-3',
|
|
35
|
-
pulseClass
|
|
36
|
-
)}
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
))}
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
// Pill badges - short, rounded, the universe's smallest skeleton
|
|
7
|
-
export const SkeletonBadge = forwardRef<HTMLDivElement, SkeletonComponentProps>(
|
|
8
|
-
function SkeletonBadge(
|
|
9
|
-
{ className, style, variant = 'default', itemCount = 1 },
|
|
10
|
-
ref
|
|
11
|
-
) {
|
|
12
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
16
|
-
<div className="cleen-flex cleen-items-center cleen-flex-wrap cleen-gap-2">
|
|
17
|
-
{Array.from({ length: itemCount }).map((_, index) => (
|
|
18
|
-
<div
|
|
19
|
-
key={index}
|
|
20
|
-
className={cn(
|
|
21
|
-
'cleen-bg-gray/10 cleen-rounded-full cleen-h-6 cleen-w-16',
|
|
22
|
-
pulseClass
|
|
23
|
-
)}
|
|
24
|
-
/>
|
|
25
|
-
))}
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
// Full-width hero/banner placeholder - big, chunky, attention-grabbing
|
|
7
|
-
export const SkeletonBanner = forwardRef<
|
|
8
|
-
HTMLDivElement,
|
|
9
|
-
SkeletonComponentProps
|
|
10
|
-
>(function SkeletonBanner({ className, style, variant = 'default' }, ref) {
|
|
11
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
15
|
-
<div
|
|
16
|
-
className={cn(
|
|
17
|
-
'cleen-relative cleen-bg-gray/10 cleen-rounded-2xl cleen-w-full cleen-overflow-hidden',
|
|
18
|
-
pulseClass
|
|
19
|
-
)}
|
|
20
|
-
>
|
|
21
|
-
{/* Background image strip */}
|
|
22
|
-
<div className="cleen-h-48 cleen-w-full" />
|
|
23
|
-
|
|
24
|
-
{/* Overlay content */}
|
|
25
|
-
<div className="cleen-absolute cleen-inset-0 cleen-flex cleen-flex-col cleen-justify-center cleen-items-start cleen-gap-4 cleen-px-8">
|
|
26
|
-
{/* Badge */}
|
|
27
|
-
<div className="cleen-bg-gray/20 cleen-rounded-full cleen-w-24 cleen-h-6" />
|
|
28
|
-
|
|
29
|
-
{/* Heading */}
|
|
30
|
-
<div className="cleen-flex cleen-flex-col cleen-gap-2 cleen-w-full">
|
|
31
|
-
<div className="cleen-bg-gray/20 cleen-rounded cleen-w-2/3 cleen-h-8" />
|
|
32
|
-
<div className="cleen-bg-gray/20 cleen-rounded cleen-w-1/2 cleen-h-5" />
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
{/* CTA buttons */}
|
|
36
|
-
<div className="cleen-flex cleen-gap-3">
|
|
37
|
-
<div className="cleen-bg-gray/20 cleen-rounded-lg cleen-w-28 cleen-h-10" />
|
|
38
|
-
<div className="cleen-bg-gray/15 cleen-rounded-lg cleen-w-24 cleen-h-10" />
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
);
|
|
44
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
// Single or multiple button placeholders in a row
|
|
7
|
-
export const SkeletonButton = forwardRef<
|
|
8
|
-
HTMLDivElement,
|
|
9
|
-
SkeletonComponentProps
|
|
10
|
-
>(function SkeletonButton(
|
|
11
|
-
{ className, style, variant = 'default', itemCount = 1 },
|
|
12
|
-
ref
|
|
13
|
-
) {
|
|
14
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
18
|
-
<div className="cleen-flex cleen-items-center cleen-gap-2">
|
|
19
|
-
{Array.from({ length: itemCount }).map((_, index) => (
|
|
20
|
-
<div
|
|
21
|
-
key={index}
|
|
22
|
-
className={cn(
|
|
23
|
-
'cleen-bg-gray/10 cleen-rounded-lg cleen-h-10 cleen-w-28',
|
|
24
|
-
pulseClass
|
|
25
|
-
)}
|
|
26
|
-
/>
|
|
27
|
-
))}
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { cn } from '@cleen/ui-core';
|
|
5
|
-
|
|
6
|
-
export const SkeletonCard = forwardRef<HTMLDivElement, SkeletonComponentProps>(
|
|
7
|
-
function SkeletonCard({ className, style, variant = 'default' }, ref) {
|
|
8
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
12
|
-
<div className="cleen-flex cleen-items-center cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray/15 cleen-rounded-xl cleen-w-full">
|
|
13
|
-
<div
|
|
14
|
-
className={cn(
|
|
15
|
-
'cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray/10 cleen-border cleen-border-gray/20 cleen-rounded-xl cleen-min-w-10 cleen-size-10',
|
|
16
|
-
pulseClass
|
|
17
|
-
)}
|
|
18
|
-
/>
|
|
19
|
-
|
|
20
|
-
<div className="cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2">
|
|
21
|
-
<div
|
|
22
|
-
className={cn(
|
|
23
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-3/4 cleen-h-4',
|
|
24
|
-
pulseClass
|
|
25
|
-
)}
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
<div
|
|
29
|
-
className={cn(
|
|
30
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-1/2 cleen-h-3',
|
|
31
|
-
pulseClass
|
|
32
|
-
)}
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
);
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
export const SkeletonCard2 = forwardRef<HTMLDivElement, SkeletonComponentProps>(
|
|
7
|
-
({ className, style, variant = 'default' }, ref) => {
|
|
8
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
12
|
-
<div className="cleen-flex cleen-flex-col cleen-justify-between cleen-items-start cleen-gap-3 cleen-bg-white cleen-px-4 cleen-py-4 cleen-border cleen-border-gray/15 cleen-rounded-lg">
|
|
13
|
-
<div className="cleen-flex cleen-items-center cleen-gap-3 cleen-w-full">
|
|
14
|
-
<div
|
|
15
|
-
className={cn(
|
|
16
|
-
'cleen-flex cleen-justify-center cleen-items-center cleen-bg-gray/10 cleen-border cleen-border-gray/20 cleen-rounded-xl cleen-size-10',
|
|
17
|
-
pulseClass
|
|
18
|
-
)}
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
<div className="cleen-flex cleen-flex-col cleen-flex-1 cleen-gap-2">
|
|
22
|
-
<div
|
|
23
|
-
className={cn(
|
|
24
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-1/2 cleen-h-5',
|
|
25
|
-
pulseClass
|
|
26
|
-
)}
|
|
27
|
-
/>
|
|
28
|
-
<div
|
|
29
|
-
className={cn(
|
|
30
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-3/4 cleen-h-4',
|
|
31
|
-
pulseClass
|
|
32
|
-
)}
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<div className="cleen-space-y-2 cleen-w-full">
|
|
38
|
-
<div
|
|
39
|
-
className={cn(
|
|
40
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-full cleen-h-2',
|
|
41
|
-
pulseClass
|
|
42
|
-
)}
|
|
43
|
-
/>
|
|
44
|
-
<div
|
|
45
|
-
className={cn(
|
|
46
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-16 cleen-h-3',
|
|
47
|
-
pulseClass
|
|
48
|
-
)}
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
SkeletonCard2.displayName = 'AssessmentHeaderSkeleton';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { getPulseAnimationClass } from '@/components/skeletons/styles/skeleton';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { cn } from '@cleen/ui-core';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
|
|
6
|
-
// Like Card2 but on steroids - full thumbnail + tags + footer with avatar
|
|
7
|
-
export const SkeletonCard3 = forwardRef<HTMLDivElement, SkeletonComponentProps>(
|
|
8
|
-
function SkeletonCard3({ className, style, variant = 'default' }, ref) {
|
|
9
|
-
const pulseClass = getPulseAnimationClass(variant);
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
13
|
-
<div className="cleen-flex cleen-flex-col cleen-bg-white cleen-border cleen-border-gray/15 cleen-rounded-xl cleen-overflow-hidden cleen-w-full">
|
|
14
|
-
{/* Thumbnail area */}
|
|
15
|
-
<div
|
|
16
|
-
className={cn(
|
|
17
|
-
'cleen-bg-gray/10 cleen-w-full cleen-h-40',
|
|
18
|
-
pulseClass
|
|
19
|
-
)}
|
|
20
|
-
/>
|
|
21
|
-
|
|
22
|
-
<div className="cleen-flex cleen-flex-col cleen-gap-3 cleen-px-4 cleen-py-4">
|
|
23
|
-
{/* Tags row */}
|
|
24
|
-
<div className="cleen-flex cleen-gap-2">
|
|
25
|
-
<div
|
|
26
|
-
className={cn(
|
|
27
|
-
'cleen-bg-gray/10 cleen-rounded-full cleen-w-16 cleen-h-5',
|
|
28
|
-
pulseClass
|
|
29
|
-
)}
|
|
30
|
-
/>
|
|
31
|
-
<div
|
|
32
|
-
className={cn(
|
|
33
|
-
'cleen-bg-gray/10 cleen-rounded-full cleen-w-12 cleen-h-5',
|
|
34
|
-
pulseClass
|
|
35
|
-
)}
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
{/* Title + subtitle */}
|
|
40
|
-
<div className="cleen-flex cleen-flex-col cleen-gap-2">
|
|
41
|
-
<div
|
|
42
|
-
className={cn(
|
|
43
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-4/5 cleen-h-5',
|
|
44
|
-
pulseClass
|
|
45
|
-
)}
|
|
46
|
-
/>
|
|
47
|
-
<div
|
|
48
|
-
className={cn(
|
|
49
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-full cleen-h-3',
|
|
50
|
-
pulseClass
|
|
51
|
-
)}
|
|
52
|
-
/>
|
|
53
|
-
<div
|
|
54
|
-
className={cn(
|
|
55
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-3/4 cleen-h-3',
|
|
56
|
-
pulseClass
|
|
57
|
-
)}
|
|
58
|
-
/>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
{/* Footer: avatar + name + action */}
|
|
62
|
-
<div className="cleen-flex cleen-justify-between cleen-items-center cleen-pt-1">
|
|
63
|
-
<div className="cleen-flex cleen-items-center cleen-gap-2">
|
|
64
|
-
<div
|
|
65
|
-
className={cn(
|
|
66
|
-
'cleen-bg-gray/10 cleen-rounded-full cleen-size-7 cleen-shrink-0',
|
|
67
|
-
pulseClass
|
|
68
|
-
)}
|
|
69
|
-
/>
|
|
70
|
-
<div
|
|
71
|
-
className={cn(
|
|
72
|
-
'cleen-bg-gray/10 cleen-rounded cleen-w-24 cleen-h-3',
|
|
73
|
-
pulseClass
|
|
74
|
-
)}
|
|
75
|
-
/>
|
|
76
|
-
</div>
|
|
77
|
-
<div
|
|
78
|
-
className={cn(
|
|
79
|
-
'cleen-bg-gray/10 cleen-rounded-lg cleen-w-16 cleen-h-7',
|
|
80
|
-
pulseClass
|
|
81
|
-
)}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SkeletonCard } from '@/components/skeletons/blocks/SkeletonCard';
|
|
2
|
-
import type { SkeletonComponentProps } from '@/components/skeletons/types/skeleton';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { cn } from '@cleen/ui-core';
|
|
5
|
-
|
|
6
|
-
export const SkeletonCardStack = forwardRef<
|
|
7
|
-
HTMLDivElement,
|
|
8
|
-
SkeletonComponentProps
|
|
9
|
-
>(function SkeletonCardStack(
|
|
10
|
-
{ className, style, itemCount = 3, variant = 'default' },
|
|
11
|
-
ref
|
|
12
|
-
) {
|
|
13
|
-
return (
|
|
14
|
-
<div ref={ref} className={cn('cleen', className)} style={style}>
|
|
15
|
-
<div className="cleen-flex cleen-flex-col cleen-gap-3">
|
|
16
|
-
{Array.from({ length: itemCount }).map((_, index) => (
|
|
17
|
-
<SkeletonCard key={index} variant={variant} />
|
|
18
|
-
))}
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
});
|