@rufous/ui 0.2.0-beta.1 → 0.2.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 +484 -222
- package/dist/main.cjs +13877 -1039
- package/dist/main.css +14137 -6052
- package/dist/main.d.cts +1719 -71
- package/dist/main.d.ts +1719 -71
- package/dist/main.js +15344 -213
- package/package.json +32 -5
- package/dist/Buttons/addButton.cjs +0 -39
- package/dist/Buttons/addButton.d.cts +0 -8
- package/dist/Buttons/addButton.d.ts +0 -8
- package/dist/Buttons/addButton.js +0 -7
- package/dist/Buttons/cancelButton.cjs +0 -37
- package/dist/Buttons/cancelButton.d.cts +0 -8
- package/dist/Buttons/cancelButton.d.ts +0 -8
- package/dist/Buttons/cancelButton.js +0 -7
- package/dist/Buttons/index.cjs +0 -155
- package/dist/Buttons/index.d.cts +0 -5
- package/dist/Buttons/index.d.ts +0 -5
- package/dist/Buttons/index.js +0 -21
- package/dist/Buttons/stdButton.cjs +0 -39
- package/dist/Buttons/stdButton.d.cts +0 -8
- package/dist/Buttons/stdButton.d.ts +0 -8
- package/dist/Buttons/stdButton.js +0 -7
- package/dist/Buttons/submitButton.cjs +0 -124
- package/dist/Buttons/submitButton.d.cts +0 -13
- package/dist/Buttons/submitButton.d.ts +0 -13
- package/dist/Buttons/submitButton.js +0 -8
- package/dist/CheckBoxes/CheckBox.cjs +0 -62
- package/dist/CheckBoxes/CheckBox.d.cjs +0 -17
- package/dist/CheckBoxes/CheckBox.d.cts +0 -15
- package/dist/CheckBoxes/CheckBox.d.d.cts +0 -15
- package/dist/CheckBoxes/CheckBox.d.d.ts +0 -15
- package/dist/CheckBoxes/CheckBox.d.js +0 -0
- package/dist/CheckBoxes/CheckBox.d.ts +0 -15
- package/dist/CheckBoxes/CheckBox.js +0 -7
- package/dist/Contexts/rufousThemeProvider.cjs +0 -209
- package/dist/Contexts/rufousThemeProvider.d.cts +0 -8
- package/dist/Contexts/rufousThemeProvider.d.ts +0 -8
- package/dist/Contexts/rufousThemeProvider.js +0 -10
- package/dist/DataGrid/DataGrid.cjs +0 -418
- package/dist/DataGrid/DataGrid.d.cts +0 -8
- package/dist/DataGrid/DataGrid.d.ts +0 -8
- package/dist/DataGrid/DataGrid.js +0 -9
- package/dist/DataGrid/index.cjs +0 -418
- package/dist/DataGrid/index.d.cts +0 -3
- package/dist/DataGrid/index.d.ts +0 -3
- package/dist/DataGrid/index.js +0 -8
- package/dist/DataGrid/types.cjs +0 -17
- package/dist/DataGrid/types.d.cts +0 -31
- package/dist/DataGrid/types.d.ts +0 -31
- package/dist/DataGrid/types.js +0 -0
- package/dist/Dialogs/BaseDialog.cjs +0 -133
- package/dist/Dialogs/BaseDialog.css +0 -8469
- package/dist/Dialogs/BaseDialog.d.cts +0 -31
- package/dist/Dialogs/BaseDialog.d.ts +0 -31
- package/dist/Dialogs/BaseDialog.js +0 -79
- package/dist/Dialogs/index.cjs +0 -139
- package/dist/Dialogs/index.css +0 -8469
- package/dist/Dialogs/index.d.cts +0 -2
- package/dist/Dialogs/index.d.ts +0 -2
- package/dist/Dialogs/index.js +0 -79
- package/dist/Editors/RichTextEditor.cjs +0 -29477
- package/dist/Editors/RichTextEditor.css +0 -7179
- package/dist/Editors/RichTextEditor.d.cts +0 -57
- package/dist/Editors/RichTextEditor.d.ts +0 -57
- package/dist/Editors/RichTextEditor.js +0 -9
- package/dist/Editors/index.cjs +0 -29477
- package/dist/Editors/index.css +0 -7179
- package/dist/Editors/index.d.cts +0 -2
- package/dist/Editors/index.d.ts +0 -2
- package/dist/Editors/index.js +0 -8
- package/dist/Progress/circularProgress.cjs +0 -60
- package/dist/Progress/circularProgress.d.cts +0 -9
- package/dist/Progress/circularProgress.d.ts +0 -9
- package/dist/Progress/circularProgress.js +0 -7
- package/dist/TextFields/AddressLookup.cjs +0 -390
- package/dist/TextFields/AddressLookup.d.cts +0 -49
- package/dist/TextFields/AddressLookup.d.ts +0 -49
- package/dist/TextFields/AddressLookup.js +0 -11
- package/dist/TextFields/FloatingInput.cjs +0 -67
- package/dist/TextFields/FloatingInput.d.cts +0 -17
- package/dist/TextFields/FloatingInput.d.ts +0 -17
- package/dist/TextFields/FloatingInput.js +0 -7
- package/dist/chunk-2AJACSJ3.js +0 -8
- package/dist/chunk-3IBCGGN3.js +0 -48
- package/dist/chunk-3Y6QBRGD.js +0 -8
- package/dist/chunk-4BTXGP7U.js +0 -19
- package/dist/chunk-4Y7SQ5EP.js +0 -8
- package/dist/chunk-5DAOQ2V5.js +0 -99
- package/dist/chunk-5GK5B3FD.js +0 -8
- package/dist/chunk-5JWTJ5PY.js +0 -8
- package/dist/chunk-5QEWUCKT.js +0 -303
- package/dist/chunk-5XKFPQLH.js +0 -8
- package/dist/chunk-66HHM7VI.js +0 -468
- package/dist/chunk-6FEUS4CQ.js +0 -41
- package/dist/chunk-6KIFTMUN.js +0 -8
- package/dist/chunk-6SUKO6QW.js +0 -8
- package/dist/chunk-763IHEJ2.js +0 -8
- package/dist/chunk-77QDKDFI.js +0 -8
- package/dist/chunk-7II4Q2WY.js +0 -8
- package/dist/chunk-7KRG7VNW.js +0 -0
- package/dist/chunk-AH6RCYDL.js +0 -45
- package/dist/chunk-AXSFVJ3H.js +0 -10
- package/dist/chunk-B2LVMM55.js +0 -8
- package/dist/chunk-BMMDUQDJ.js +0 -8
- package/dist/chunk-CTBYVXFP.js +0 -31
- package/dist/chunk-CTWVJQJ5.js +0 -8
- package/dist/chunk-DK3DA5LH.js +0 -8
- package/dist/chunk-DLJHWFNG.js +0 -18
- package/dist/chunk-DMP72IAP.js +0 -8
- package/dist/chunk-E5RTHYCU.js +0 -0
- package/dist/chunk-EZI3QGYJ.js +0 -8
- package/dist/chunk-FPRXN3DS.js +0 -18
- package/dist/chunk-FZCFFVXW.js +0 -10
- package/dist/chunk-G2GZDPUL.js +0 -61
- package/dist/chunk-GESVGIAP.js +0 -10
- package/dist/chunk-GJGRMMAQ.js +0 -0
- package/dist/chunk-GL43GPEM.js +0 -18
- package/dist/chunk-H372BAXA.js +0 -42
- package/dist/chunk-HMG3FW2Q.js +0 -97
- package/dist/chunk-J6E3UO2W.js +0 -402
- package/dist/chunk-JI5XMLWT.js +0 -8
- package/dist/chunk-JVN6QVET.js +0 -8
- package/dist/chunk-MNPAE2ZF.js +0 -100
- package/dist/chunk-N26C33E6.js +0 -8
- package/dist/chunk-N4EJKMJK.js +0 -8
- package/dist/chunk-NEGQXBQV.js +0 -29
- package/dist/chunk-OJV6F5JC.js +0 -8
- package/dist/chunk-Q4DHI3B5.js +0 -8
- package/dist/chunk-Q5XKCUE3.js +0 -8
- package/dist/chunk-QDMNCTXT.js +0 -8
- package/dist/chunk-QIEQRNBE.js +0 -10
- package/dist/chunk-QJPQC544.js +0 -29
- package/dist/chunk-QPGJCRBS.js +0 -0
- package/dist/chunk-QTGVW36I.js +0 -8
- package/dist/chunk-QZFGQ5JM.js +0 -157
- package/dist/chunk-R3GARAVJ.js +0 -10
- package/dist/chunk-R4ISYGEP.js +0 -8
- package/dist/chunk-RJ43D3XB.js +0 -18
- package/dist/chunk-U7SARO5B.js +0 -10
- package/dist/chunk-UPCMMCPQ.js +0 -34
- package/dist/chunk-UTBCFDOX.js +0 -8
- package/dist/chunk-UTYIBUY2.js +0 -8
- package/dist/chunk-WG3Q6GZN.js +0 -29
- package/dist/chunk-WHGVO3HV.js +0 -8
- package/dist/chunk-WXANSSXF.js +0 -8
- package/dist/chunk-WZAU77G7.js +0 -55
- package/dist/chunk-XCE3QE6Q.js +0 -8
- package/dist/chunk-XHY3OCAQ.js +0 -8
- package/dist/chunk-XPJVVKOU.js +0 -8
- package/dist/chunk-YRLN3TBF.js +0 -69
- package/dist/chunk-YTVUM76D.js +0 -10
- package/dist/chunk-YXPBXCY5.js +0 -89
- package/dist/chunk-Z7USRFM2.js +0 -8
- package/dist/chunk-ZJAV3FEQ.js +0 -48
- package/dist/chunk-ZLJDOLXZ.js +0 -8
- package/dist/icons/activateUserIcon.cjs +0 -74
- package/dist/icons/activateUserIcon.d.cts +0 -8
- package/dist/icons/activateUserIcon.d.ts +0 -8
- package/dist/icons/activateUserIcon.js +0 -7
- package/dist/icons/archivedIcon.cjs +0 -77
- package/dist/icons/archivedIcon.d.cts +0 -8
- package/dist/icons/archivedIcon.d.ts +0 -8
- package/dist/icons/archivedIcon.js +0 -7
- package/dist/icons/assignGroupIcon.cjs +0 -129
- package/dist/icons/assignGroupIcon.d.cts +0 -8
- package/dist/icons/assignGroupIcon.d.ts +0 -8
- package/dist/icons/assignGroupIcon.js +0 -7
- package/dist/icons/closeIcon.cjs +0 -37
- package/dist/icons/closeIcon.d.cts +0 -8
- package/dist/icons/closeIcon.d.ts +0 -8
- package/dist/icons/closeIcon.js +0 -7
- package/dist/icons/copyIcon.cjs +0 -70
- package/dist/icons/copyIcon.d.cts +0 -8
- package/dist/icons/copyIcon.d.ts +0 -8
- package/dist/icons/copyIcon.js +0 -7
- package/dist/icons/difficultyAllIcon.cjs +0 -37
- package/dist/icons/difficultyAllIcon.d.cts +0 -8
- package/dist/icons/difficultyAllIcon.d.ts +0 -8
- package/dist/icons/difficultyAllIcon.js +0 -7
- package/dist/icons/difficultyEasyIcon.cjs +0 -37
- package/dist/icons/difficultyEasyIcon.d.cts +0 -8
- package/dist/icons/difficultyEasyIcon.d.ts +0 -8
- package/dist/icons/difficultyEasyIcon.js +0 -7
- package/dist/icons/difficultyHardIcon.cjs +0 -37
- package/dist/icons/difficultyHardIcon.d.cts +0 -8
- package/dist/icons/difficultyHardIcon.d.ts +0 -8
- package/dist/icons/difficultyHardIcon.js +0 -7
- package/dist/icons/difficultyMediumIcon.cjs +0 -37
- package/dist/icons/difficultyMediumIcon.d.cts +0 -8
- package/dist/icons/difficultyMediumIcon.d.ts +0 -8
- package/dist/icons/difficultyMediumIcon.js +0 -7
- package/dist/icons/dollarIcon.cjs +0 -47
- package/dist/icons/dollarIcon.d.cts +0 -8
- package/dist/icons/dollarIcon.d.ts +0 -8
- package/dist/icons/dollarIcon.js +0 -7
- package/dist/icons/downloadIcon.cjs +0 -39
- package/dist/icons/downloadIcon.d.cts +0 -8
- package/dist/icons/downloadIcon.d.ts +0 -8
- package/dist/icons/downloadIcon.js +0 -7
- package/dist/icons/downloadPdfIcon.cjs +0 -37
- package/dist/icons/downloadPdfIcon.d.cts +0 -8
- package/dist/icons/downloadPdfIcon.d.ts +0 -8
- package/dist/icons/downloadPdfIcon.js +0 -7
- package/dist/icons/editChatIcon.cjs +0 -37
- package/dist/icons/editChatIcon.d.cts +0 -8
- package/dist/icons/editChatIcon.d.ts +0 -8
- package/dist/icons/editChatIcon.js +0 -7
- package/dist/icons/editIcon.cjs +0 -71
- package/dist/icons/editIcon.d.cts +0 -8
- package/dist/icons/editIcon.d.ts +0 -8
- package/dist/icons/editIcon.js +0 -7
- package/dist/icons/engagementIcon.cjs +0 -37
- package/dist/icons/engagementIcon.d.cts +0 -8
- package/dist/icons/engagementIcon.d.ts +0 -8
- package/dist/icons/engagementIcon.js +0 -7
- package/dist/icons/functionIcon.cjs +0 -37
- package/dist/icons/functionIcon.d.cts +0 -8
- package/dist/icons/functionIcon.d.ts +0 -8
- package/dist/icons/functionIcon.js +0 -7
- package/dist/icons/helpOutlinedIcon.cjs +0 -39
- package/dist/icons/helpOutlinedIcon.d.cts +0 -8
- package/dist/icons/helpOutlinedIcon.d.ts +0 -8
- package/dist/icons/helpOutlinedIcon.js +0 -7
- package/dist/icons/hierarchyIcon.cjs +0 -84
- package/dist/icons/hierarchyIcon.d.cts +0 -8
- package/dist/icons/hierarchyIcon.d.ts +0 -8
- package/dist/icons/hierarchyIcon.js +0 -7
- package/dist/icons/inactiveGroupIcon.cjs +0 -37
- package/dist/icons/inactiveGroupIcon.d.cts +0 -8
- package/dist/icons/inactiveGroupIcon.d.ts +0 -8
- package/dist/icons/inactiveGroupIcon.js +0 -7
- package/dist/icons/index.cjs +0 -1056
- package/dist/icons/index.d.cts +0 -57
- package/dist/icons/index.d.ts +0 -57
- package/dist/icons/index.js +0 -228
- package/dist/icons/industryIcon.cjs +0 -48
- package/dist/icons/industryIcon.d.cts +0 -8
- package/dist/icons/industryIcon.d.ts +0 -8
- package/dist/icons/industryIcon.js +0 -7
- package/dist/icons/invoiceIcon.cjs +0 -37
- package/dist/icons/invoiceIcon.d.cts +0 -8
- package/dist/icons/invoiceIcon.d.ts +0 -8
- package/dist/icons/invoiceIcon.js +0 -7
- package/dist/icons/locationPinIcon.cjs +0 -37
- package/dist/icons/locationPinIcon.d.cts +0 -8
- package/dist/icons/locationPinIcon.d.ts +0 -8
- package/dist/icons/locationPinIcon.js +0 -7
- package/dist/icons/logsIcon.cjs +0 -37
- package/dist/icons/logsIcon.d.cts +0 -8
- package/dist/icons/logsIcon.d.ts +0 -8
- package/dist/icons/logsIcon.js +0 -7
- package/dist/icons/minExperienceIcon.cjs +0 -47
- package/dist/icons/minExperienceIcon.d.cts +0 -8
- package/dist/icons/minExperienceIcon.d.ts +0 -8
- package/dist/icons/minExperienceIcon.js +0 -7
- package/dist/icons/nineDotMenuIcon.cjs +0 -39
- package/dist/icons/nineDotMenuIcon.d.cts +0 -8
- package/dist/icons/nineDotMenuIcon.d.ts +0 -8
- package/dist/icons/nineDotMenuIcon.js +0 -7
- package/dist/icons/notificationIcon.cjs +0 -39
- package/dist/icons/notificationIcon.d.cts +0 -8
- package/dist/icons/notificationIcon.d.ts +0 -8
- package/dist/icons/notificationIcon.js +0 -7
- package/dist/icons/projectIcon.cjs +0 -47
- package/dist/icons/projectIcon.d.cts +0 -8
- package/dist/icons/projectIcon.d.ts +0 -8
- package/dist/icons/projectIcon.js +0 -7
- package/dist/icons/qualificationsIcon.cjs +0 -37
- package/dist/icons/qualificationsIcon.d.cts +0 -8
- package/dist/icons/qualificationsIcon.d.ts +0 -8
- package/dist/icons/qualificationsIcon.js +0 -7
- package/dist/icons/questionStatusAllIcon.cjs +0 -37
- package/dist/icons/questionStatusAllIcon.d.cts +0 -8
- package/dist/icons/questionStatusAllIcon.d.ts +0 -8
- package/dist/icons/questionStatusAllIcon.js +0 -7
- package/dist/icons/questionStatusPrivateIcon.cjs +0 -37
- package/dist/icons/questionStatusPrivateIcon.d.cts +0 -8
- package/dist/icons/questionStatusPrivateIcon.d.ts +0 -8
- package/dist/icons/questionStatusPrivateIcon.js +0 -7
- package/dist/icons/questionStatusPublicIcon.cjs +0 -37
- package/dist/icons/questionStatusPublicIcon.d.cts +0 -8
- package/dist/icons/questionStatusPublicIcon.d.ts +0 -8
- package/dist/icons/questionStatusPublicIcon.js +0 -7
- package/dist/icons/questionTypeAllIcon.cjs +0 -37
- package/dist/icons/questionTypeAllIcon.d.cts +0 -8
- package/dist/icons/questionTypeAllIcon.d.ts +0 -8
- package/dist/icons/questionTypeAllIcon.js +0 -7
- package/dist/icons/questionTypeCodingIcon.cjs +0 -37
- package/dist/icons/questionTypeCodingIcon.d.cts +0 -8
- package/dist/icons/questionTypeCodingIcon.d.ts +0 -8
- package/dist/icons/questionTypeCodingIcon.js +0 -7
- package/dist/icons/questionTypeDescriptiveIcon.cjs +0 -37
- package/dist/icons/questionTypeDescriptiveIcon.d.cts +0 -8
- package/dist/icons/questionTypeDescriptiveIcon.d.ts +0 -8
- package/dist/icons/questionTypeDescriptiveIcon.js +0 -7
- package/dist/icons/questionTypeMultipleIcon.cjs +0 -37
- package/dist/icons/questionTypeMultipleIcon.d.cts +0 -8
- package/dist/icons/questionTypeMultipleIcon.d.ts +0 -8
- package/dist/icons/questionTypeMultipleIcon.js +0 -7
- package/dist/icons/questionTypeSingleIcon.cjs +0 -37
- package/dist/icons/questionTypeSingleIcon.d.cts +0 -8
- package/dist/icons/questionTypeSingleIcon.d.ts +0 -8
- package/dist/icons/questionTypeSingleIcon.js +0 -7
- package/dist/icons/refreshIcon.cjs +0 -39
- package/dist/icons/refreshIcon.d.cts +0 -8
- package/dist/icons/refreshIcon.d.ts +0 -8
- package/dist/icons/refreshIcon.js +0 -7
- package/dist/icons/resendInviteIcon.cjs +0 -58
- package/dist/icons/resendInviteIcon.d.cts +0 -8
- package/dist/icons/resendInviteIcon.d.ts +0 -8
- package/dist/icons/resendInviteIcon.js +0 -7
- package/dist/icons/rolesIcon.cjs +0 -47
- package/dist/icons/rolesIcon.d.cts +0 -8
- package/dist/icons/rolesIcon.d.ts +0 -8
- package/dist/icons/rolesIcon.js +0 -7
- package/dist/icons/rufousAiIcon.cjs +0 -37
- package/dist/icons/rufousAiIcon.d.cts +0 -8
- package/dist/icons/rufousAiIcon.d.ts +0 -8
- package/dist/icons/rufousAiIcon.js +0 -7
- package/dist/icons/rufousBirdIcon.cjs +0 -37
- package/dist/icons/rufousBirdIcon.d.cts +0 -8
- package/dist/icons/rufousBirdIcon.d.ts +0 -8
- package/dist/icons/rufousBirdIcon.js +0 -7
- package/dist/icons/rufousLauncherBird.cjs +0 -186
- package/dist/icons/rufousLauncherBird.d.cts +0 -8
- package/dist/icons/rufousLauncherBird.d.ts +0 -8
- package/dist/icons/rufousLauncherBird.js +0 -7
- package/dist/icons/sidebarIcon.cjs +0 -37
- package/dist/icons/sidebarIcon.d.cts +0 -8
- package/dist/icons/sidebarIcon.d.ts +0 -8
- package/dist/icons/sidebarIcon.js +0 -7
- package/dist/icons/softSkillsIcon.cjs +0 -37
- package/dist/icons/softSkillsIcon.d.cts +0 -8
- package/dist/icons/softSkillsIcon.d.ts +0 -8
- package/dist/icons/softSkillsIcon.js +0 -7
- package/dist/icons/subscribeIcon.cjs +0 -37
- package/dist/icons/subscribeIcon.d.cts +0 -8
- package/dist/icons/subscribeIcon.d.ts +0 -8
- package/dist/icons/subscribeIcon.js +0 -7
- package/dist/icons/suspendUserIcon.cjs +0 -37
- package/dist/icons/suspendUserIcon.d.cts +0 -8
- package/dist/icons/suspendUserIcon.d.ts +0 -8
- package/dist/icons/suspendUserIcon.js +0 -7
- package/dist/icons/technicalSkillsIcon.cjs +0 -37
- package/dist/icons/technicalSkillsIcon.d.cts +0 -8
- package/dist/icons/technicalSkillsIcon.d.ts +0 -8
- package/dist/icons/technicalSkillsIcon.js +0 -7
- package/dist/icons/tickIcon.cjs +0 -37
- package/dist/icons/tickIcon.d.cts +0 -8
- package/dist/icons/tickIcon.d.ts +0 -8
- package/dist/icons/tickIcon.js +0 -7
- package/dist/icons/timerIcon.cjs +0 -37
- package/dist/icons/timerIcon.d.cts +0 -8
- package/dist/icons/timerIcon.d.ts +0 -8
- package/dist/icons/timerIcon.js +0 -7
- package/dist/icons/trashIcon.cjs +0 -37
- package/dist/icons/trashIcon.d.cts +0 -8
- package/dist/icons/trashIcon.d.ts +0 -8
- package/dist/icons/trashIcon.js +0 -7
- package/dist/icons/unArchivedIcon.cjs +0 -77
- package/dist/icons/unArchivedIcon.d.cts +0 -8
- package/dist/icons/unArchivedIcon.d.ts +0 -8
- package/dist/icons/unArchivedIcon.js +0 -7
- package/dist/icons/unsubscribeIcon.cjs +0 -37
- package/dist/icons/unsubscribeIcon.d.cts +0 -8
- package/dist/icons/unsubscribeIcon.d.ts +0 -8
- package/dist/icons/unsubscribeIcon.js +0 -7
- package/dist/icons/uploadIcon.cjs +0 -37
- package/dist/icons/uploadIcon.d.cts +0 -8
- package/dist/icons/uploadIcon.d.ts +0 -8
- package/dist/icons/uploadIcon.js +0 -7
- package/dist/icons/userAssignIcon.cjs +0 -90
- package/dist/icons/userAssignIcon.d.cts +0 -8
- package/dist/icons/userAssignIcon.d.ts +0 -8
- package/dist/icons/userAssignIcon.js +0 -7
- package/dist/icons/viewIcon.cjs +0 -37
- package/dist/icons/viewIcon.d.cts +0 -8
- package/dist/icons/viewIcon.d.ts +0 -8
- package/dist/icons/viewIcon.js +0 -7
- package/dist/icons/workItemIcon.cjs +0 -58
- package/dist/icons/workItemIcon.d.cts +0 -8
- package/dist/icons/workItemIcon.d.ts +0 -8
- package/dist/icons/workItemIcon.js +0 -7
- package/dist/style.css +0 -1181
- package/dist/style.d.cts +0 -2
- package/dist/style.d.ts +0 -2
- package/dist/styles/address-lookup.css +0 -107
- package/dist/styles/address-lookup.d.cts +0 -2
- package/dist/styles/address-lookup.d.ts +0 -2
- package/dist/styles/button.css +0 -109
- package/dist/styles/button.d.cts +0 -2
- package/dist/styles/button.d.ts +0 -2
- package/dist/styles/checkbox.css +0 -60
- package/dist/styles/checkbox.d.cts +0 -2
- package/dist/styles/checkbox.d.ts +0 -2
- package/dist/styles/datagrid.css +0 -531
- package/dist/styles/datagrid.d.cts +0 -2
- package/dist/styles/datagrid.d.ts +0 -2
- package/dist/styles/dialog.css +0 -118
- package/dist/styles/dialog.d.cts +0 -2
- package/dist/styles/dialog.d.ts +0 -2
- package/dist/styles/editor.css +0 -211
- package/dist/styles/editor.d.cts +0 -2
- package/dist/styles/editor.d.ts +0 -2
- package/dist/styles/progress.css +0 -36
- package/dist/styles/progress.d.cts +0 -2
- package/dist/styles/progress.d.ts +0 -2
- package/dist/utils/constants.cjs +0 -112
- package/dist/utils/constants.d.cts +0 -78
- package/dist/utils/constants.d.ts +0 -78
- package/dist/utils/constants.js +0 -7
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rufous/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Experimental: A lightweight React UI component library (Beta)",
|
|
7
|
-
"style": "./dist/
|
|
7
|
+
"style": "./dist/main.css",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
"import": "./dist/main.js",
|
|
17
17
|
"require": "./dist/main.cjs"
|
|
18
18
|
},
|
|
19
|
-
"./style.css": "./dist/
|
|
19
|
+
"./style.css": "./dist/main.css",
|
|
20
|
+
"./main.css": "./dist/main.css"
|
|
20
21
|
},
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
25
26
|
"dev": "vite",
|
|
26
|
-
"build": "
|
|
27
|
+
"build": "NODE_OPTIONS='--max-old-space-size=4096' tsup",
|
|
27
28
|
"build:dev": "npm version patch --no-git-tag-version && npm run build",
|
|
28
29
|
"build:staging": "vite build --config vite.app.config.ts",
|
|
29
30
|
"prebuild": "rm -rf dist",
|
|
@@ -32,6 +33,31 @@
|
|
|
32
33
|
"build:types": "tsc -p tsconfig.json"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"@floating-ui/dom": "^1.7.6",
|
|
37
|
+
"@tiptap/core": "^2.11.5",
|
|
38
|
+
"@tiptap/extension-character-count": "^2.11.5",
|
|
39
|
+
"@tiptap/extension-color": "^2.11.5",
|
|
40
|
+
"@tiptap/extension-highlight": "^2.11.5",
|
|
41
|
+
"@tiptap/extension-image": "^2.11.5",
|
|
42
|
+
"@tiptap/extension-link": "^2.11.5",
|
|
43
|
+
"@tiptap/extension-mention": "^2.11.5",
|
|
44
|
+
"@tiptap/extension-placeholder": "^2.11.5",
|
|
45
|
+
"@tiptap/extension-subscript": "^2.11.5",
|
|
46
|
+
"@tiptap/extension-superscript": "^2.11.5",
|
|
47
|
+
"@tiptap/extension-table": "^2.11.5",
|
|
48
|
+
"@tiptap/extension-table-cell": "^2.11.5",
|
|
49
|
+
"@tiptap/extension-table-header": "^2.11.5",
|
|
50
|
+
"@tiptap/extension-table-row": "^2.11.5",
|
|
51
|
+
"@tiptap/extension-task-item": "^2.11.5",
|
|
52
|
+
"@tiptap/extension-task-list": "^2.11.5",
|
|
53
|
+
"@tiptap/extension-text-align": "^2.11.5",
|
|
54
|
+
"@tiptap/extension-text-style": "^2.11.5",
|
|
55
|
+
"@tiptap/extension-underline": "^2.11.5",
|
|
56
|
+
"@tiptap/extension-youtube": "^2.11.5",
|
|
57
|
+
"@tiptap/pm": "^2.11.5",
|
|
58
|
+
"@tiptap/react": "^2.11.5",
|
|
59
|
+
"@tiptap/starter-kit": "^2.11.5",
|
|
60
|
+
"@tiptap/suggestion": "^2.27.2",
|
|
35
61
|
"@types/crypto-js": "^4.2.2",
|
|
36
62
|
"axios": "^1.13.5",
|
|
37
63
|
"country-state-city": "^3.2.1",
|
|
@@ -44,6 +70,7 @@
|
|
|
44
70
|
"react-router-dom": "^7.13.1",
|
|
45
71
|
"react-secure-storage": "^1.3.2",
|
|
46
72
|
"rufous-ui": "^0.4.6",
|
|
73
|
+
"tippy.js": "^6.3.7",
|
|
47
74
|
"vite": "^6.3.5",
|
|
48
75
|
"vite-tsconfig-paths": "^5.1.4"
|
|
49
76
|
},
|
|
@@ -67,4 +94,4 @@
|
|
|
67
94
|
"react": "^18.0.0 || ^19.0.0",
|
|
68
95
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
69
96
|
}
|
|
70
|
-
}
|
|
97
|
+
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// lib/Buttons/addButton.tsx
|
|
30
|
-
var addButton_exports = {};
|
|
31
|
-
__export(addButton_exports, {
|
|
32
|
-
default: () => addButton_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(addButton_exports);
|
|
35
|
-
var React = __toESM(require("react"), 1);
|
|
36
|
-
var AddButton = ({ children, ...props }) => {
|
|
37
|
-
return /* @__PURE__ */ React.createElement("button", { className: "btn add-btn", ...props }, "+ ", children);
|
|
38
|
-
};
|
|
39
|
-
var addButton_default = AddButton;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// lib/Buttons/cancelButton.tsx
|
|
30
|
-
var cancelButton_exports = {};
|
|
31
|
-
__export(cancelButton_exports, {
|
|
32
|
-
default: () => cancelButton_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(cancelButton_exports);
|
|
35
|
-
var React = __toESM(require("react"), 1);
|
|
36
|
-
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React.createElement("button", { className: "btn cancel-btn", ...props }, children);
|
|
37
|
-
var cancelButton_default = CancelButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CancelButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: string;
|
|
5
|
-
}
|
|
6
|
-
declare const CancelButton: React.FC<CancelButtonProps>;
|
|
7
|
-
|
|
8
|
-
export { type CancelButtonProps, CancelButton as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface CancelButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: string;
|
|
5
|
-
}
|
|
6
|
-
declare const CancelButton: React.FC<CancelButtonProps>;
|
|
7
|
-
|
|
8
|
-
export { type CancelButtonProps, CancelButton as default };
|
package/dist/Buttons/index.cjs
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// lib/Buttons/index.ts
|
|
30
|
-
var Buttons_exports = {};
|
|
31
|
-
__export(Buttons_exports, {
|
|
32
|
-
AddButton: () => addButton_default,
|
|
33
|
-
CancelButton: () => cancelButton_default,
|
|
34
|
-
StandardButton: () => stdButton_default,
|
|
35
|
-
SubmitButton: () => submitButton_default
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(Buttons_exports);
|
|
38
|
-
|
|
39
|
-
// lib/Buttons/addButton.tsx
|
|
40
|
-
var React = __toESM(require("react"), 1);
|
|
41
|
-
var AddButton = ({ children, ...props }) => {
|
|
42
|
-
return /* @__PURE__ */ React.createElement("button", { className: "btn add-btn", ...props }, "+ ", children);
|
|
43
|
-
};
|
|
44
|
-
var addButton_default = AddButton;
|
|
45
|
-
|
|
46
|
-
// lib/Buttons/submitButton.tsx
|
|
47
|
-
var React3 = __toESM(require("react"), 1);
|
|
48
|
-
|
|
49
|
-
// lib/Progress/circularProgress.tsx
|
|
50
|
-
var React2 = __toESM(require("react"), 1);
|
|
51
|
-
var CircularProgress = ({
|
|
52
|
-
size = 50,
|
|
53
|
-
color = "#a81c08",
|
|
54
|
-
...props
|
|
55
|
-
}) => {
|
|
56
|
-
return /* @__PURE__ */ React2.createElement(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
className: "rufous-loader",
|
|
60
|
-
style: { width: size, height: size },
|
|
61
|
-
...props
|
|
62
|
-
},
|
|
63
|
-
/* @__PURE__ */ React2.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React2.createElement(
|
|
64
|
-
"circle",
|
|
65
|
-
{
|
|
66
|
-
className: "rufous-loader-circle",
|
|
67
|
-
cx: "50",
|
|
68
|
-
cy: "50",
|
|
69
|
-
r: "45",
|
|
70
|
-
stroke: color
|
|
71
|
-
}
|
|
72
|
-
))
|
|
73
|
-
);
|
|
74
|
-
};
|
|
75
|
-
var circularProgress_default = CircularProgress;
|
|
76
|
-
|
|
77
|
-
// lib/Buttons/submitButton.tsx
|
|
78
|
-
var SubmitButton = ({
|
|
79
|
-
children,
|
|
80
|
-
type = "submit",
|
|
81
|
-
onClick,
|
|
82
|
-
onDoubleClick,
|
|
83
|
-
isLoading = false,
|
|
84
|
-
bgGradiant = false,
|
|
85
|
-
...props
|
|
86
|
-
}) => {
|
|
87
|
-
const [loading, setLoading] = React3.useState(false);
|
|
88
|
-
const clickTimeout = React3.useRef(null);
|
|
89
|
-
const handleClick = async (e) => {
|
|
90
|
-
const currentTarget = e.currentTarget;
|
|
91
|
-
if (loading) return;
|
|
92
|
-
if (clickTimeout.current) {
|
|
93
|
-
clearTimeout(clickTimeout.current);
|
|
94
|
-
clickTimeout.current = null;
|
|
95
|
-
}
|
|
96
|
-
clickTimeout.current = setTimeout(async () => {
|
|
97
|
-
if (onClick) {
|
|
98
|
-
setLoading(true);
|
|
99
|
-
try {
|
|
100
|
-
await onClick({ ...e, currentTarget });
|
|
101
|
-
} finally {
|
|
102
|
-
setLoading(false);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, 250);
|
|
106
|
-
};
|
|
107
|
-
const handleDoubleClick = async (e) => {
|
|
108
|
-
const currentTarget = e.currentTarget;
|
|
109
|
-
if (loading) return;
|
|
110
|
-
if (clickTimeout.current) {
|
|
111
|
-
clearTimeout(clickTimeout.current);
|
|
112
|
-
clickTimeout.current = null;
|
|
113
|
-
}
|
|
114
|
-
if (onDoubleClick) {
|
|
115
|
-
setLoading(true);
|
|
116
|
-
try {
|
|
117
|
-
await onDoubleClick({ ...e, currentTarget });
|
|
118
|
-
} finally {
|
|
119
|
-
setLoading(false);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
return /* @__PURE__ */ React3.createElement(
|
|
124
|
-
"button",
|
|
125
|
-
{
|
|
126
|
-
...props,
|
|
127
|
-
type: onClick ? void 0 : type,
|
|
128
|
-
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
129
|
-
disabled: props.disabled || loading || isLoading,
|
|
130
|
-
onClick: handleClick,
|
|
131
|
-
onDoubleClick: handleDoubleClick
|
|
132
|
-
},
|
|
133
|
-
/* @__PURE__ */ React3.createElement("span", { className: "btn-content" }, children, (loading || isLoading) && /* @__PURE__ */ React3.createElement("span", { className: "btn-loader" }, /* @__PURE__ */ React3.createElement(circularProgress_default, { size: 18, color: props.disabled || loading || isLoading ? "#00000042" : void 0 })))
|
|
134
|
-
);
|
|
135
|
-
};
|
|
136
|
-
var submitButton_default = SubmitButton;
|
|
137
|
-
|
|
138
|
-
// lib/Buttons/cancelButton.tsx
|
|
139
|
-
var React4 = __toESM(require("react"), 1);
|
|
140
|
-
var CancelButton = ({ children, ...props }) => /* @__PURE__ */ React4.createElement("button", { className: "btn cancel-btn", ...props }, children);
|
|
141
|
-
var cancelButton_default = CancelButton;
|
|
142
|
-
|
|
143
|
-
// lib/Buttons/stdButton.tsx
|
|
144
|
-
var React5 = __toESM(require("react"), 1);
|
|
145
|
-
var StandardButton = ({ children, ...props }) => {
|
|
146
|
-
return /* @__PURE__ */ React5.createElement("button", { className: "btn standard-btn", ...props }, children);
|
|
147
|
-
};
|
|
148
|
-
var stdButton_default = StandardButton;
|
|
149
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
150
|
-
0 && (module.exports = {
|
|
151
|
-
AddButton,
|
|
152
|
-
CancelButton,
|
|
153
|
-
StandardButton,
|
|
154
|
-
SubmitButton
|
|
155
|
-
});
|
package/dist/Buttons/index.d.cts
DELETED
package/dist/Buttons/index.d.ts
DELETED
package/dist/Buttons/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "../chunk-QPGJCRBS.js";
|
|
2
|
-
import {
|
|
3
|
-
addButton_default
|
|
4
|
-
} from "../chunk-U7SARO5B.js";
|
|
5
|
-
import {
|
|
6
|
-
cancelButton_default
|
|
7
|
-
} from "../chunk-BMMDUQDJ.js";
|
|
8
|
-
import {
|
|
9
|
-
stdButton_default
|
|
10
|
-
} from "../chunk-R3GARAVJ.js";
|
|
11
|
-
import {
|
|
12
|
-
submitButton_default
|
|
13
|
-
} from "../chunk-YRLN3TBF.js";
|
|
14
|
-
import "../chunk-CTBYVXFP.js";
|
|
15
|
-
import "../chunk-LI4N7JWK.js";
|
|
16
|
-
export {
|
|
17
|
-
addButton_default as AddButton,
|
|
18
|
-
cancelButton_default as CancelButton,
|
|
19
|
-
stdButton_default as StandardButton,
|
|
20
|
-
submitButton_default as SubmitButton
|
|
21
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// lib/Buttons/stdButton.tsx
|
|
30
|
-
var stdButton_exports = {};
|
|
31
|
-
__export(stdButton_exports, {
|
|
32
|
-
default: () => stdButton_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(stdButton_exports);
|
|
35
|
-
var React = __toESM(require("react"), 1);
|
|
36
|
-
var StandardButton = ({ children, ...props }) => {
|
|
37
|
-
return /* @__PURE__ */ React.createElement("button", { className: "btn standard-btn", ...props }, children);
|
|
38
|
-
};
|
|
39
|
-
var stdButton_default = StandardButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface StandardButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const StandardButton: React.FC<StandardButtonProps>;
|
|
7
|
-
|
|
8
|
-
export { type StandardButtonProps, StandardButton as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface StandardButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const StandardButton: React.FC<StandardButtonProps>;
|
|
7
|
-
|
|
8
|
-
export { type StandardButtonProps, StandardButton as default };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// lib/Buttons/submitButton.tsx
|
|
30
|
-
var submitButton_exports = {};
|
|
31
|
-
__export(submitButton_exports, {
|
|
32
|
-
default: () => submitButton_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(submitButton_exports);
|
|
35
|
-
var React2 = __toESM(require("react"), 1);
|
|
36
|
-
|
|
37
|
-
// lib/Progress/circularProgress.tsx
|
|
38
|
-
var React = __toESM(require("react"), 1);
|
|
39
|
-
var CircularProgress = ({
|
|
40
|
-
size = 50,
|
|
41
|
-
color = "#a81c08",
|
|
42
|
-
...props
|
|
43
|
-
}) => {
|
|
44
|
-
return /* @__PURE__ */ React.createElement(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
className: "rufous-loader",
|
|
48
|
-
style: { width: size, height: size },
|
|
49
|
-
...props
|
|
50
|
-
},
|
|
51
|
-
/* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 100 100" }, /* @__PURE__ */ React.createElement(
|
|
52
|
-
"circle",
|
|
53
|
-
{
|
|
54
|
-
className: "rufous-loader-circle",
|
|
55
|
-
cx: "50",
|
|
56
|
-
cy: "50",
|
|
57
|
-
r: "45",
|
|
58
|
-
stroke: color
|
|
59
|
-
}
|
|
60
|
-
))
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
var circularProgress_default = CircularProgress;
|
|
64
|
-
|
|
65
|
-
// lib/Buttons/submitButton.tsx
|
|
66
|
-
var SubmitButton = ({
|
|
67
|
-
children,
|
|
68
|
-
type = "submit",
|
|
69
|
-
onClick,
|
|
70
|
-
onDoubleClick,
|
|
71
|
-
isLoading = false,
|
|
72
|
-
bgGradiant = false,
|
|
73
|
-
...props
|
|
74
|
-
}) => {
|
|
75
|
-
const [loading, setLoading] = React2.useState(false);
|
|
76
|
-
const clickTimeout = React2.useRef(null);
|
|
77
|
-
const handleClick = async (e) => {
|
|
78
|
-
const currentTarget = e.currentTarget;
|
|
79
|
-
if (loading) return;
|
|
80
|
-
if (clickTimeout.current) {
|
|
81
|
-
clearTimeout(clickTimeout.current);
|
|
82
|
-
clickTimeout.current = null;
|
|
83
|
-
}
|
|
84
|
-
clickTimeout.current = setTimeout(async () => {
|
|
85
|
-
if (onClick) {
|
|
86
|
-
setLoading(true);
|
|
87
|
-
try {
|
|
88
|
-
await onClick({ ...e, currentTarget });
|
|
89
|
-
} finally {
|
|
90
|
-
setLoading(false);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}, 250);
|
|
94
|
-
};
|
|
95
|
-
const handleDoubleClick = async (e) => {
|
|
96
|
-
const currentTarget = e.currentTarget;
|
|
97
|
-
if (loading) return;
|
|
98
|
-
if (clickTimeout.current) {
|
|
99
|
-
clearTimeout(clickTimeout.current);
|
|
100
|
-
clickTimeout.current = null;
|
|
101
|
-
}
|
|
102
|
-
if (onDoubleClick) {
|
|
103
|
-
setLoading(true);
|
|
104
|
-
try {
|
|
105
|
-
await onDoubleClick({ ...e, currentTarget });
|
|
106
|
-
} finally {
|
|
107
|
-
setLoading(false);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
return /* @__PURE__ */ React2.createElement(
|
|
112
|
-
"button",
|
|
113
|
-
{
|
|
114
|
-
...props,
|
|
115
|
-
type: onClick ? void 0 : type,
|
|
116
|
-
className: `btn submit-btn ${bgGradiant ? "submit-btn-gradiant" : ""} ${props.className ?? ""}`,
|
|
117
|
-
disabled: props.disabled || loading || isLoading,
|
|
118
|
-
onClick: handleClick,
|
|
119
|
-
onDoubleClick: handleDoubleClick
|
|
120
|
-
},
|
|
121
|
-
/* @__PURE__ */ React2.createElement("span", { className: "btn-content" }, children, (loading || isLoading) && /* @__PURE__ */ React2.createElement("span", { className: "btn-loader" }, /* @__PURE__ */ React2.createElement(circularProgress_default, { size: 18, color: props.disabled || loading || isLoading ? "#00000042" : void 0 })))
|
|
122
|
-
);
|
|
123
|
-
};
|
|
124
|
-
var submitButton_default = SubmitButton;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
type?: "button" | "submit" | "reset";
|
|
6
|
-
bgGradiant?: boolean;
|
|
7
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => Promise<void> | void;
|
|
8
|
-
onDoubleClick?: (e: React.MouseEvent<HTMLButtonElement>) => Promise<void> | void;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
12
|
-
|
|
13
|
-
export { type SubmitButtonProps, SubmitButton as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
interface SubmitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
type?: "button" | "submit" | "reset";
|
|
6
|
-
bgGradiant?: boolean;
|
|
7
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => Promise<void> | void;
|
|
8
|
-
onDoubleClick?: (e: React.MouseEvent<HTMLButtonElement>) => Promise<void> | void;
|
|
9
|
-
isLoading?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
12
|
-
|
|
13
|
-
export { type SubmitButtonProps, SubmitButton as default };
|