@ryanhe919/lumen-ui 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/LMBadge-BBDOGTps.js +126 -0
- package/dist/LMBadge-BBDOGTps.js.map +1 -0
- package/dist/LMBadge-D95iccla.cjs +125 -0
- package/dist/LMBadge-D95iccla.cjs.map +1 -0
- package/dist/LMButton-B258yfky.cjs +333 -0
- package/dist/LMButton-B258yfky.cjs.map +1 -0
- package/dist/LMButton-S4xQSohi.js +334 -0
- package/dist/LMButton-S4xQSohi.js.map +1 -0
- package/dist/LMCard-D7ABNC95.js +207 -0
- package/dist/LMCard-D7ABNC95.js.map +1 -0
- package/dist/LMCard-D_K051f2.cjs +206 -0
- package/dist/LMCard-D_K051f2.cjs.map +1 -0
- package/dist/LMCheckbox-C2YvEQ8f.cjs +197 -0
- package/dist/LMCheckbox-C2YvEQ8f.cjs.map +1 -0
- package/dist/LMCheckbox-DaaJRjKt.js +198 -0
- package/dist/LMCheckbox-DaaJRjKt.js.map +1 -0
- package/dist/LMDatePicker-BlUwN4On.cjs +565 -0
- package/dist/LMDatePicker-BlUwN4On.cjs.map +1 -0
- package/dist/LMDatePicker-DSv28BFH.js +566 -0
- package/dist/LMDatePicker-DSv28BFH.js.map +1 -0
- package/dist/LMDrawer--lFV_a3m.cjs +207 -0
- package/dist/LMDrawer--lFV_a3m.cjs.map +1 -0
- package/dist/LMDrawer-DJ5ugeZR.js +208 -0
- package/dist/LMDrawer-DJ5ugeZR.js.map +1 -0
- package/dist/LMDropdown-wiTMuyhU.js +285 -0
- package/dist/LMDropdown-wiTMuyhU.js.map +1 -0
- package/dist/LMDropdown-yl5l7qtz.cjs +284 -0
- package/dist/LMDropdown-yl5l7qtz.cjs.map +1 -0
- package/dist/LMEmpty-BedQxpbi.cjs +188 -0
- package/dist/LMEmpty-BedQxpbi.cjs.map +1 -0
- package/dist/LMEmpty-DzHM1fOb.js +189 -0
- package/dist/LMEmpty-DzHM1fOb.js.map +1 -0
- package/dist/LMField-BS-DSEya.js +67 -0
- package/dist/LMField-BS-DSEya.js.map +1 -0
- package/dist/LMField-DhDHj64z.cjs +66 -0
- package/dist/LMField-DhDHj64z.cjs.map +1 -0
- package/dist/LMInput-CVjawj1F.cjs +140 -0
- package/dist/LMInput-CVjawj1F.cjs.map +1 -0
- package/dist/LMInput-D9csGyhj.js +141 -0
- package/dist/LMInput-D9csGyhj.js.map +1 -0
- package/dist/LMMenu-IDAgZFuC.cjs +234 -0
- package/dist/LMMenu-IDAgZFuC.cjs.map +1 -0
- package/dist/LMMenu-yXadjQLQ.js +235 -0
- package/dist/LMMenu-yXadjQLQ.js.map +1 -0
- package/dist/LMModal-BCVVPLot.cjs +203 -0
- package/dist/LMModal-BCVVPLot.cjs.map +1 -0
- package/dist/LMModal-DCJPlfA4.js +204 -0
- package/dist/LMModal-DCJPlfA4.js.map +1 -0
- package/dist/LMNumberInput-B1tU7T_W.cjs +294 -0
- package/dist/LMNumberInput-B1tU7T_W.cjs.map +1 -0
- package/dist/LMNumberInput-BI5_OEx4.js +295 -0
- package/dist/LMNumberInput-BI5_OEx4.js.map +1 -0
- package/dist/LMPagination-BypfLRlF.js +305 -0
- package/dist/LMPagination-BypfLRlF.js.map +1 -0
- package/dist/LMPagination-CouDFIwd.cjs +304 -0
- package/dist/LMPagination-CouDFIwd.cjs.map +1 -0
- package/dist/LMRadio-CHn6nFSy.cjs +189 -0
- package/dist/LMRadio-CHn6nFSy.cjs.map +1 -0
- package/dist/LMRadio-UQLNgTMF.js +190 -0
- package/dist/LMRadio-UQLNgTMF.js.map +1 -0
- package/dist/LMSearchInput-CIvVkEf2.js +205 -0
- package/dist/LMSearchInput-CIvVkEf2.js.map +1 -0
- package/dist/LMSearchInput-nBlAX734.cjs +204 -0
- package/dist/LMSearchInput-nBlAX734.cjs.map +1 -0
- package/dist/LMSelect-B-MWX2JI.js +309 -0
- package/dist/LMSelect-B-MWX2JI.js.map +1 -0
- package/dist/LMSelect-ByQcUp2S.cjs +308 -0
- package/dist/LMSelect-ByQcUp2S.cjs.map +1 -0
- package/dist/LMStatCard-D5HV9r6d.js +348 -0
- package/dist/LMStatCard-D5HV9r6d.js.map +1 -0
- package/dist/LMStatCard-MXs9Z0qH.cjs +347 -0
- package/dist/LMStatCard-MXs9Z0qH.cjs.map +1 -0
- package/dist/LMSwitch-CP1_nrfU.js +207 -0
- package/dist/LMSwitch-CP1_nrfU.js.map +1 -0
- package/dist/LMSwitch-DYoSH6wE.cjs +206 -0
- package/dist/LMSwitch-DYoSH6wE.cjs.map +1 -0
- package/dist/LMTable-Cp8HZqiV.js +594 -0
- package/dist/LMTable-Cp8HZqiV.js.map +1 -0
- package/dist/LMTable-j1ZzAzXB.cjs +593 -0
- package/dist/LMTable-j1ZzAzXB.cjs.map +1 -0
- package/dist/LMTabs-D5n9lB8X.js +210 -0
- package/dist/LMTabs-D5n9lB8X.js.map +1 -0
- package/dist/LMTabs-NPmOzPat.cjs +209 -0
- package/dist/LMTabs-NPmOzPat.cjs.map +1 -0
- package/dist/LMTextarea-5dVVPeL2.js +136 -0
- package/dist/LMTextarea-5dVVPeL2.js.map +1 -0
- package/dist/LMTextarea-yG0OBZjA.cjs +135 -0
- package/dist/LMTextarea-yG0OBZjA.cjs.map +1 -0
- package/dist/LMTooltip-30_lOAnH.cjs +85 -0
- package/dist/LMTooltip-30_lOAnH.cjs.map +1 -0
- package/dist/LMTooltip-h47oYhl8.js +86 -0
- package/dist/LMTooltip-h47oYhl8.js.map +1 -0
- package/dist/LMUpload-BwXoxIfE.js +380 -0
- package/dist/LMUpload-BwXoxIfE.js.map +1 -0
- package/dist/LMUpload-CJopkWc6.cjs +379 -0
- package/dist/LMUpload-CJopkWc6.cjs.map +1 -0
- package/dist/componentSizes-CdWNL526.js +125 -0
- package/dist/componentSizes-CdWNL526.js.map +1 -0
- package/dist/componentSizes-DUTZ7uEM.cjs +124 -0
- package/dist/componentSizes-DUTZ7uEM.cjs.map +1 -0
- package/dist/components/Chat/LMChatBubble/LMChatBubble.d.ts +28 -0
- package/dist/components/Chat/LMChatBubble/LMChatBubble.d.ts.map +1 -0
- package/dist/components/Chat/LMChatBubble/LMChatBubble.stories.d.ts +25 -0
- package/dist/components/Chat/LMChatBubble/LMChatBubble.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMChatBubble/index.d.ts +3 -0
- package/dist/components/Chat/LMChatBubble/index.d.ts.map +1 -0
- package/dist/components/Chat/LMChatContainer/LMChatContainer.d.ts +85 -0
- package/dist/components/Chat/LMChatContainer/LMChatContainer.d.ts.map +1 -0
- package/dist/components/Chat/LMChatContainer/LMChatContainer.stories.d.ts +23 -0
- package/dist/components/Chat/LMChatContainer/LMChatContainer.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMChatContainer/index.d.ts +3 -0
- package/dist/components/Chat/LMChatContainer/index.d.ts.map +1 -0
- package/dist/components/Chat/LMChatInput/LMChatInput.d.ts +55 -0
- package/dist/components/Chat/LMChatInput/LMChatInput.d.ts.map +1 -0
- package/dist/components/Chat/LMChatInput/LMChatInput.stories.d.ts +27 -0
- package/dist/components/Chat/LMChatInput/LMChatInput.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMChatInput/index.d.ts +3 -0
- package/dist/components/Chat/LMChatInput/index.d.ts.map +1 -0
- package/dist/components/Chat/LMChatList/LMChatList.d.ts +60 -0
- package/dist/components/Chat/LMChatList/LMChatList.d.ts.map +1 -0
- package/dist/components/Chat/LMChatList/LMChatList.stories.d.ts +21 -0
- package/dist/components/Chat/LMChatList/LMChatList.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMChatList/index.d.ts +3 -0
- package/dist/components/Chat/LMChatList/index.d.ts.map +1 -0
- package/dist/components/Chat/LMChatMessage/LMChatMessage.d.ts +56 -0
- package/dist/components/Chat/LMChatMessage/LMChatMessage.d.ts.map +1 -0
- package/dist/components/Chat/LMChatMessage/LMChatMessage.stories.d.ts +27 -0
- package/dist/components/Chat/LMChatMessage/LMChatMessage.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMChatMessage/index.d.ts +3 -0
- package/dist/components/Chat/LMChatMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/LMCodeBlock/LMCodeBlock.d.ts +32 -0
- package/dist/components/Chat/LMCodeBlock/LMCodeBlock.d.ts.map +1 -0
- package/dist/components/Chat/LMCodeBlock/LMCodeBlock.stories.d.ts +27 -0
- package/dist/components/Chat/LMCodeBlock/LMCodeBlock.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMCodeBlock/index.d.ts +3 -0
- package/dist/components/Chat/LMCodeBlock/index.d.ts.map +1 -0
- package/dist/components/Chat/LMMarkdownRenderer/LMMarkdownRenderer.d.ts +24 -0
- package/dist/components/Chat/LMMarkdownRenderer/LMMarkdownRenderer.d.ts.map +1 -0
- package/dist/components/Chat/LMMarkdownRenderer/LMMarkdownRenderer.stories.d.ts +23 -0
- package/dist/components/Chat/LMMarkdownRenderer/LMMarkdownRenderer.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMMarkdownRenderer/index.d.ts +3 -0
- package/dist/components/Chat/LMMarkdownRenderer/index.d.ts.map +1 -0
- package/dist/components/Chat/LMTypingIndicator/LMTypingIndicator.d.ts +21 -0
- package/dist/components/Chat/LMTypingIndicator/LMTypingIndicator.d.ts.map +1 -0
- package/dist/components/Chat/LMTypingIndicator/LMTypingIndicator.stories.d.ts +25 -0
- package/dist/components/Chat/LMTypingIndicator/LMTypingIndicator.stories.d.ts.map +1 -0
- package/dist/components/Chat/LMTypingIndicator/index.d.ts +3 -0
- package/dist/components/Chat/LMTypingIndicator/index.d.ts.map +1 -0
- package/dist/components/Chat/index.d.ts +9 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMCard/LMCard.d.ts +30 -0
- package/dist/components/DataDisplay/LMCard/LMCard.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMCard/LMCard.stories.d.ts +33 -0
- package/dist/components/DataDisplay/LMCard/LMCard.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMCard/LMCard.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMCard/LMCard.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMCard/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMCard/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.d.ts +18 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.stories.d.ts +31 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMEmpty/LMEmpty.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMEmpty/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMEmpty/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.d.ts +40 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.stories.d.ts +35 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMStatCard/LMStatCard.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMStatCard/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMStatCard/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTable/LMTable.d.ts +93 -0
- package/dist/components/DataDisplay/LMTable/LMTable.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTable/LMTable.stories.d.ts +35 -0
- package/dist/components/DataDisplay/LMTable/LMTable.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTable/LMTable.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMTable/LMTable.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTable/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMTable/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.d.ts +40 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.stories.d.ts +35 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMTabs/LMTabs.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTabs/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMTabs/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.d.ts +18 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.stories.d.ts +27 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.stories.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.test.d.ts +2 -0
- package/dist/components/DataDisplay/LMTooltip/LMTooltip.test.d.ts.map +1 -0
- package/dist/components/DataDisplay/LMTooltip/index.d.ts +3 -0
- package/dist/components/DataDisplay/LMTooltip/index.d.ts.map +1 -0
- package/dist/components/DataDisplay/index.d.ts +7 -0
- package/dist/components/DataDisplay/index.d.ts.map +1 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.d.ts +25 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.d.ts.map +1 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.stories.d.ts +19 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.stories.d.ts.map +1 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.test.d.ts +2 -0
- package/dist/components/Feedback/LMConfirm/LMConfirm.test.d.ts.map +1 -0
- package/dist/components/Feedback/LMConfirm/index.d.ts +5 -0
- package/dist/components/Feedback/LMConfirm/index.d.ts.map +1 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.d.ts +38 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.d.ts.map +1 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.stories.d.ts +33 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.stories.d.ts.map +1 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.test.d.ts +2 -0
- package/dist/components/Feedback/LMDrawer/LMDrawer.test.d.ts.map +1 -0
- package/dist/components/Feedback/LMDrawer/index.d.ts +3 -0
- package/dist/components/Feedback/LMDrawer/index.d.ts.map +1 -0
- package/dist/components/Feedback/LMMessage/LMMessage.d.ts +31 -0
- package/dist/components/Feedback/LMMessage/LMMessage.d.ts.map +1 -0
- package/dist/components/Feedback/LMMessage/LMMessage.stories.d.ts +25 -0
- package/dist/components/Feedback/LMMessage/LMMessage.stories.d.ts.map +1 -0
- package/dist/components/Feedback/LMMessage/LMMessage.test.d.ts +2 -0
- package/dist/components/Feedback/LMMessage/LMMessage.test.d.ts.map +1 -0
- package/dist/components/Feedback/LMMessage/index.d.ts +5 -0
- package/dist/components/Feedback/LMMessage/index.d.ts.map +1 -0
- package/dist/components/Feedback/LMModal/LMModal.d.ts +62 -0
- package/dist/components/Feedback/LMModal/LMModal.d.ts.map +1 -0
- package/dist/components/Feedback/LMModal/LMModal.stories.d.ts +23 -0
- package/dist/components/Feedback/LMModal/LMModal.stories.d.ts.map +1 -0
- package/dist/components/Feedback/LMModal/LMModal.test.d.ts +2 -0
- package/dist/components/Feedback/LMModal/LMModal.test.d.ts.map +1 -0
- package/dist/components/Feedback/LMModal/index.d.ts +3 -0
- package/dist/components/Feedback/LMModal/index.d.ts.map +1 -0
- package/dist/components/Feedback/index.d.ts +5 -0
- package/dist/components/Feedback/index.d.ts.map +1 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.d.ts +18 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.d.ts.map +1 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.stories.d.ts +23 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.stories.d.ts.map +1 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.test.d.ts +2 -0
- package/dist/components/Form/LMCheckbox/LMCheckbox.test.d.ts.map +1 -0
- package/dist/components/Form/LMCheckbox/index.d.ts +3 -0
- package/dist/components/Form/LMCheckbox/index.d.ts.map +1 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.d.ts +52 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.d.ts.map +1 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.stories.d.ts +41 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.stories.d.ts.map +1 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.test.d.ts +2 -0
- package/dist/components/Form/LMDatePicker/LMDatePicker.test.d.ts.map +1 -0
- package/dist/components/Form/LMDatePicker/index.d.ts +3 -0
- package/dist/components/Form/LMDatePicker/index.d.ts.map +1 -0
- package/dist/components/Form/LMField/LMField.d.ts +19 -0
- package/dist/components/Form/LMField/LMField.d.ts.map +1 -0
- package/dist/components/Form/LMField/LMField.stories.d.ts +23 -0
- package/dist/components/Form/LMField/LMField.stories.d.ts.map +1 -0
- package/dist/components/Form/LMField/LMField.test.d.ts +2 -0
- package/dist/components/Form/LMField/LMField.test.d.ts.map +1 -0
- package/dist/components/Form/LMField/index.d.ts +3 -0
- package/dist/components/Form/LMField/index.d.ts.map +1 -0
- package/dist/components/Form/LMInput/LMInput.d.ts +20 -0
- package/dist/components/Form/LMInput/LMInput.d.ts.map +1 -0
- package/dist/components/Form/LMInput/LMInput.stories.d.ts +29 -0
- package/dist/components/Form/LMInput/LMInput.stories.d.ts.map +1 -0
- package/dist/components/Form/LMInput/LMInput.test.d.ts +2 -0
- package/dist/components/Form/LMInput/LMInput.test.d.ts.map +1 -0
- package/dist/components/Form/LMInput/index.d.ts +3 -0
- package/dist/components/Form/LMInput/index.d.ts.map +1 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.d.ts +40 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.d.ts.map +1 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.stories.d.ts +33 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.stories.d.ts.map +1 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.test.d.ts +2 -0
- package/dist/components/Form/LMNumberInput/LMNumberInput.test.d.ts.map +1 -0
- package/dist/components/Form/LMNumberInput/index.d.ts +3 -0
- package/dist/components/Form/LMNumberInput/index.d.ts.map +1 -0
- package/dist/components/Form/LMRadio/LMRadio.d.ts +18 -0
- package/dist/components/Form/LMRadio/LMRadio.d.ts.map +1 -0
- package/dist/components/Form/LMRadio/LMRadio.stories.d.ts +25 -0
- package/dist/components/Form/LMRadio/LMRadio.stories.d.ts.map +1 -0
- package/dist/components/Form/LMRadio/LMRadio.test.d.ts +2 -0
- package/dist/components/Form/LMRadio/LMRadio.test.d.ts.map +1 -0
- package/dist/components/Form/LMRadio/index.d.ts +3 -0
- package/dist/components/Form/LMRadio/index.d.ts.map +1 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.d.ts +36 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.d.ts.map +1 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.stories.d.ts +27 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.stories.d.ts.map +1 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.test.d.ts +2 -0
- package/dist/components/Form/LMSearchInput/LMSearchInput.test.d.ts.map +1 -0
- package/dist/components/Form/LMSearchInput/index.d.ts +3 -0
- package/dist/components/Form/LMSearchInput/index.d.ts.map +1 -0
- package/dist/components/Form/LMSelect/LMSelect.d.ts +37 -0
- package/dist/components/Form/LMSelect/LMSelect.d.ts.map +1 -0
- package/dist/components/Form/LMSelect/LMSelect.stories.d.ts +27 -0
- package/dist/components/Form/LMSelect/LMSelect.stories.d.ts.map +1 -0
- package/dist/components/Form/LMSelect/LMSelect.test.d.ts +2 -0
- package/dist/components/Form/LMSelect/LMSelect.test.d.ts.map +1 -0
- package/dist/components/Form/LMSelect/index.d.ts +3 -0
- package/dist/components/Form/LMSelect/index.d.ts.map +1 -0
- package/dist/components/Form/LMSwitch/LMSwitch.d.ts +18 -0
- package/dist/components/Form/LMSwitch/LMSwitch.d.ts.map +1 -0
- package/dist/components/Form/LMSwitch/LMSwitch.stories.d.ts +25 -0
- package/dist/components/Form/LMSwitch/LMSwitch.stories.d.ts.map +1 -0
- package/dist/components/Form/LMSwitch/LMSwitch.test.d.ts +2 -0
- package/dist/components/Form/LMSwitch/LMSwitch.test.d.ts.map +1 -0
- package/dist/components/Form/LMSwitch/index.d.ts +3 -0
- package/dist/components/Form/LMSwitch/index.d.ts.map +1 -0
- package/dist/components/Form/LMTextarea/LMTextarea.d.ts +14 -0
- package/dist/components/Form/LMTextarea/LMTextarea.d.ts.map +1 -0
- package/dist/components/Form/LMTextarea/LMTextarea.stories.d.ts +23 -0
- package/dist/components/Form/LMTextarea/LMTextarea.stories.d.ts.map +1 -0
- package/dist/components/Form/LMTextarea/LMTextarea.test.d.ts +2 -0
- package/dist/components/Form/LMTextarea/LMTextarea.test.d.ts.map +1 -0
- package/dist/components/Form/LMTextarea/index.d.ts +3 -0
- package/dist/components/Form/LMTextarea/index.d.ts.map +1 -0
- package/dist/components/Form/LMUpload/LMUpload.d.ts +68 -0
- package/dist/components/Form/LMUpload/LMUpload.d.ts.map +1 -0
- package/dist/components/Form/LMUpload/LMUpload.stories.d.ts +41 -0
- package/dist/components/Form/LMUpload/LMUpload.stories.d.ts.map +1 -0
- package/dist/components/Form/LMUpload/LMUpload.test.d.ts +2 -0
- package/dist/components/Form/LMUpload/LMUpload.test.d.ts.map +1 -0
- package/dist/components/Form/LMUpload/index.d.ts +3 -0
- package/dist/components/Form/LMUpload/index.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +12 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/General/LMBadge/LMBadge.d.ts +21 -0
- package/dist/components/General/LMBadge/LMBadge.d.ts.map +1 -0
- package/dist/components/General/LMBadge/LMBadge.stories.d.ts +31 -0
- package/dist/components/General/LMBadge/LMBadge.stories.d.ts.map +1 -0
- package/dist/components/General/LMBadge/LMBadge.test.d.ts +2 -0
- package/dist/components/General/LMBadge/LMBadge.test.d.ts.map +1 -0
- package/dist/components/General/LMBadge/index.d.ts +3 -0
- package/dist/components/General/LMBadge/index.d.ts.map +1 -0
- package/dist/components/General/LMButton/LMButton.d.ts +25 -0
- package/dist/components/General/LMButton/LMButton.d.ts.map +1 -0
- package/dist/components/General/LMButton/LMButton.stories.d.ts +39 -0
- package/dist/components/General/LMButton/LMButton.stories.d.ts.map +1 -0
- package/dist/components/General/LMButton/LMButton.test.d.ts +2 -0
- package/dist/components/General/LMButton/LMButton.test.d.ts.map +1 -0
- package/dist/components/General/LMButton/index.d.ts +3 -0
- package/dist/components/General/LMButton/index.d.ts.map +1 -0
- package/dist/components/General/index.d.ts +3 -0
- package/dist/components/General/index.d.ts.map +1 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.d.ts +40 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.d.ts.map +1 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.stories.d.ts +31 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.stories.d.ts.map +1 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.test.d.ts +2 -0
- package/dist/components/Navigation/LMDropdown/LMDropdown.test.d.ts.map +1 -0
- package/dist/components/Navigation/LMDropdown/index.d.ts +3 -0
- package/dist/components/Navigation/LMDropdown/index.d.ts.map +1 -0
- package/dist/components/Navigation/LMMenu/LMMenu.d.ts +48 -0
- package/dist/components/Navigation/LMMenu/LMMenu.d.ts.map +1 -0
- package/dist/components/Navigation/LMMenu/LMMenu.stories.d.ts +25 -0
- package/dist/components/Navigation/LMMenu/LMMenu.stories.d.ts.map +1 -0
- package/dist/components/Navigation/LMMenu/LMMenu.test.d.ts +2 -0
- package/dist/components/Navigation/LMMenu/LMMenu.test.d.ts.map +1 -0
- package/dist/components/Navigation/LMMenu/index.d.ts +3 -0
- package/dist/components/Navigation/LMMenu/index.d.ts.map +1 -0
- package/dist/components/Navigation/LMPagination/LMPagination.d.ts +32 -0
- package/dist/components/Navigation/LMPagination/LMPagination.d.ts.map +1 -0
- package/dist/components/Navigation/LMPagination/LMPagination.stories.d.ts +35 -0
- package/dist/components/Navigation/LMPagination/LMPagination.stories.d.ts.map +1 -0
- package/dist/components/Navigation/LMPagination/LMPagination.test.d.ts +2 -0
- package/dist/components/Navigation/LMPagination/LMPagination.test.d.ts.map +1 -0
- package/dist/components/Navigation/LMPagination/index.d.ts +3 -0
- package/dist/components/Navigation/LMPagination/index.d.ts.map +1 -0
- package/dist/components/Navigation/index.d.ts +4 -0
- package/dist/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/badge/index.cjs +5 -0
- package/dist/components/badge/index.cjs.map +1 -0
- package/dist/components/badge/index.js +5 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/button/index.cjs +5 -0
- package/dist/components/button/index.cjs.map +1 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/index.cjs +5 -0
- package/dist/components/card/index.cjs.map +1 -0
- package/dist/components/card/index.js +5 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.cjs +5 -0
- package/dist/components/checkbox/index.cjs.map +1 -0
- package/dist/components/checkbox/index.js +5 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/confirm/index.cjs +6 -0
- package/dist/components/confirm/index.cjs.map +1 -0
- package/dist/components/confirm/index.js +6 -0
- package/dist/components/confirm/index.js.map +1 -0
- package/dist/components/date-picker/index.cjs +5 -0
- package/dist/components/date-picker/index.cjs.map +1 -0
- package/dist/components/date-picker/index.js +5 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/drawer/index.cjs +5 -0
- package/dist/components/drawer/index.cjs.map +1 -0
- package/dist/components/drawer/index.js +5 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown/index.cjs +5 -0
- package/dist/components/dropdown/index.cjs.map +1 -0
- package/dist/components/dropdown/index.js +5 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/empty/index.cjs +5 -0
- package/dist/components/empty/index.cjs.map +1 -0
- package/dist/components/empty/index.js +5 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/field/index.cjs +5 -0
- package/dist/components/field/index.cjs.map +1 -0
- package/dist/components/field/index.js +5 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/input/index.cjs +5 -0
- package/dist/components/input/index.cjs.map +1 -0
- package/dist/components/input/index.js +5 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/menu/index.cjs +5 -0
- package/dist/components/menu/index.cjs.map +1 -0
- package/dist/components/menu/index.js +5 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/message/index.cjs +7 -0
- package/dist/components/message/index.cjs.map +1 -0
- package/dist/components/message/index.js +7 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/modal/index.cjs +5 -0
- package/dist/components/modal/index.cjs.map +1 -0
- package/dist/components/modal/index.js +5 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/number-input/index.cjs +5 -0
- package/dist/components/number-input/index.cjs.map +1 -0
- package/dist/components/number-input/index.js +5 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/pagination/index.cjs +5 -0
- package/dist/components/pagination/index.cjs.map +1 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/radio/index.cjs +5 -0
- package/dist/components/radio/index.cjs.map +1 -0
- package/dist/components/radio/index.js +5 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/search-input/index.cjs +5 -0
- package/dist/components/search-input/index.cjs.map +1 -0
- package/dist/components/search-input/index.js +5 -0
- package/dist/components/search-input/index.js.map +1 -0
- package/dist/components/select/index.cjs +5 -0
- package/dist/components/select/index.cjs.map +1 -0
- package/dist/components/select/index.js +5 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/stat-card/index.cjs +5 -0
- package/dist/components/stat-card/index.cjs.map +1 -0
- package/dist/components/stat-card/index.js +5 -0
- package/dist/components/stat-card/index.js.map +1 -0
- package/dist/components/switch/index.cjs +5 -0
- package/dist/components/switch/index.cjs.map +1 -0
- package/dist/components/switch/index.js +5 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.cjs +5 -0
- package/dist/components/table/index.cjs.map +1 -0
- package/dist/components/table/index.js +5 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.cjs +5 -0
- package/dist/components/tabs/index.cjs.map +1 -0
- package/dist/components/tabs/index.js +5 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/textarea/index.cjs +5 -0
- package/dist/components/textarea/index.cjs.map +1 -0
- package/dist/components/textarea/index.js +5 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/tooltip/index.cjs +5 -0
- package/dist/components/tooltip/index.cjs.map +1 -0
- package/dist/components/tooltip/index.js +5 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/upload/index.cjs +5 -0
- package/dist/components/upload/index.cjs.map +1 -0
- package/dist/components/upload/index.js +5 -0
- package/dist/components/upload/index.js.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useConfirm.d.ts +17 -0
- package/dist/hooks/useConfirm.d.ts.map +1 -0
- package/dist/hooks/useMessage.d.ts +14 -0
- package/dist/hooks/useMessage.d.ts.map +1 -0
- package/dist/index.cjs +1907 -6229
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -982
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1906 -6227
- package/dist/index.js.map +1 -1
- package/dist/style.css +389 -60
- package/dist/types/index.d.ts +25 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/useConfirm-BIxTX3mT.js +218 -0
- package/dist/useConfirm-BIxTX3mT.js.map +1 -0
- package/dist/useConfirm-BO5Ch3Bf.cjs +217 -0
- package/dist/useConfirm-BO5Ch3Bf.cjs.map +1 -0
- package/dist/useMessage-BBxUPe8b.cjs +242 -0
- package/dist/useMessage-BBxUPe8b.cjs.map +1 -0
- package/dist/useMessage-CRsCgzDR.js +243 -0
- package/dist/useMessage-CRsCgzDR.js.map +1 -0
- package/dist/utils/cn.d.ts +8 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/componentSizes.d.ts +57 -0
- package/dist/utils/componentSizes.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +270 -9
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const componentSizes = require("./componentSizes-DUTZ7uEM.cjs");
|
|
5
|
+
const CaretUpIcon = ({ active }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
className: "w-2.5 h-2.5",
|
|
9
|
+
viewBox: "0 0 10 6",
|
|
10
|
+
fill: "none",
|
|
11
|
+
style: { color: active ? "var(--lm-primary-500)" : "var(--lm-gray-400)" },
|
|
12
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 0L10 6H0L5 0Z", fill: "currentColor" })
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
const CaretDownIcon = ({ active }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
"svg",
|
|
17
|
+
{
|
|
18
|
+
className: "w-2.5 h-2.5",
|
|
19
|
+
viewBox: "0 0 10 6",
|
|
20
|
+
fill: "none",
|
|
21
|
+
style: { color: active ? "var(--lm-primary-500)" : "var(--lm-gray-400)" },
|
|
22
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 6L0 0H10L5 6Z", fill: "currentColor" })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
const ChevronLeftIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) });
|
|
26
|
+
const ChevronRightIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-4 h-4", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) });
|
|
27
|
+
const SpinnerIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { className: "w-4 h-4 animate-spin", viewBox: "0 0 24 24", fill: "none", children: [
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
"circle",
|
|
30
|
+
{
|
|
31
|
+
className: "opacity-25",
|
|
32
|
+
cx: "12",
|
|
33
|
+
cy: "12",
|
|
34
|
+
r: "10",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
strokeWidth: "4"
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
+
"path",
|
|
41
|
+
{
|
|
42
|
+
className: "opacity-75",
|
|
43
|
+
fill: "currentColor",
|
|
44
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] });
|
|
48
|
+
const LMTable = ({
|
|
49
|
+
dataSource,
|
|
50
|
+
columns,
|
|
51
|
+
rowKey = "id",
|
|
52
|
+
pagination,
|
|
53
|
+
loadMore,
|
|
54
|
+
loading = false,
|
|
55
|
+
emptyText = "No data",
|
|
56
|
+
size = "md",
|
|
57
|
+
bordered = false,
|
|
58
|
+
striped = false,
|
|
59
|
+
selectable = false,
|
|
60
|
+
selectedRowKeys = [],
|
|
61
|
+
onSelectionChange,
|
|
62
|
+
onRowClick,
|
|
63
|
+
onSortChange,
|
|
64
|
+
className = "",
|
|
65
|
+
fullHeight = false,
|
|
66
|
+
variant = "default"
|
|
67
|
+
}) => {
|
|
68
|
+
const [currentPage, setCurrentPage] = React.useState(1);
|
|
69
|
+
const [pageSize, setPageSize] = React.useState(10);
|
|
70
|
+
const [sortField, setSortField] = React.useState("");
|
|
71
|
+
const [sortOrder, setSortOrder] = React.useState("ascend");
|
|
72
|
+
const containerRef = React.useRef(null);
|
|
73
|
+
const getRowKey = React.useCallback(
|
|
74
|
+
(record, index) => {
|
|
75
|
+
if (typeof rowKey === "function") {
|
|
76
|
+
return rowKey(record, index);
|
|
77
|
+
}
|
|
78
|
+
const key = record[rowKey];
|
|
79
|
+
return (typeof key === "string" ? key : String(key)) || index.toString();
|
|
80
|
+
},
|
|
81
|
+
[rowKey]
|
|
82
|
+
);
|
|
83
|
+
const getValueByDataIndex = React.useCallback((record, dataIndex) => {
|
|
84
|
+
const parts = String(dataIndex).split(".");
|
|
85
|
+
let current = record;
|
|
86
|
+
for (const p of parts) {
|
|
87
|
+
if (current == null || typeof current !== "object" || !(p in current)) {
|
|
88
|
+
return "";
|
|
89
|
+
}
|
|
90
|
+
current = current[p];
|
|
91
|
+
}
|
|
92
|
+
return current;
|
|
93
|
+
}, []);
|
|
94
|
+
const handleSort = React.useCallback(
|
|
95
|
+
(column) => {
|
|
96
|
+
if (!column.sorter) return;
|
|
97
|
+
let newSortOrder = "ascend";
|
|
98
|
+
if (sortField === column.dataIndex) {
|
|
99
|
+
newSortOrder = sortOrder === "ascend" ? "descend" : "ascend";
|
|
100
|
+
}
|
|
101
|
+
setSortField(column.dataIndex);
|
|
102
|
+
setSortOrder(newSortOrder);
|
|
103
|
+
onSortChange == null ? void 0 : onSortChange(column.dataIndex, newSortOrder);
|
|
104
|
+
},
|
|
105
|
+
[sortField, sortOrder, onSortChange]
|
|
106
|
+
);
|
|
107
|
+
const handlePageChange = React.useCallback(
|
|
108
|
+
(page) => {
|
|
109
|
+
var _a;
|
|
110
|
+
setCurrentPage(page);
|
|
111
|
+
(_a = pagination == null ? void 0 : pagination.onChange) == null ? void 0 : _a.call(pagination, page, pageSize);
|
|
112
|
+
},
|
|
113
|
+
[pagination, pageSize]
|
|
114
|
+
);
|
|
115
|
+
const handlePageSizeChange = React.useCallback(
|
|
116
|
+
(newPageSize) => {
|
|
117
|
+
var _a;
|
|
118
|
+
setPageSize(newPageSize);
|
|
119
|
+
setCurrentPage(1);
|
|
120
|
+
(_a = pagination == null ? void 0 : pagination.onChange) == null ? void 0 : _a.call(pagination, 1, newPageSize);
|
|
121
|
+
},
|
|
122
|
+
[pagination]
|
|
123
|
+
);
|
|
124
|
+
const handleRowSelect = React.useCallback(
|
|
125
|
+
(record, checked) => {
|
|
126
|
+
const key = getRowKey(record, dataSource.indexOf(record));
|
|
127
|
+
let newSelectedRowKeys;
|
|
128
|
+
if (checked) {
|
|
129
|
+
newSelectedRowKeys = [...selectedRowKeys, key];
|
|
130
|
+
} else {
|
|
131
|
+
newSelectedRowKeys = selectedRowKeys.filter((k) => k !== key);
|
|
132
|
+
}
|
|
133
|
+
const newSelectedRows = dataSource.filter(
|
|
134
|
+
(item) => newSelectedRowKeys.includes(getRowKey(item, dataSource.indexOf(item)))
|
|
135
|
+
);
|
|
136
|
+
onSelectionChange == null ? void 0 : onSelectionChange(newSelectedRowKeys, newSelectedRows);
|
|
137
|
+
},
|
|
138
|
+
[selectedRowKeys, dataSource, getRowKey, onSelectionChange]
|
|
139
|
+
);
|
|
140
|
+
const handleSelectAll = React.useCallback(
|
|
141
|
+
(checked) => {
|
|
142
|
+
if (checked) {
|
|
143
|
+
const allKeys = dataSource.map((record, index) => getRowKey(record, index));
|
|
144
|
+
onSelectionChange == null ? void 0 : onSelectionChange(allKeys, dataSource);
|
|
145
|
+
} else {
|
|
146
|
+
onSelectionChange == null ? void 0 : onSelectionChange([], []);
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
[dataSource, getRowKey, onSelectionChange]
|
|
150
|
+
);
|
|
151
|
+
const handleScroll = React.useCallback(() => {
|
|
152
|
+
if (!(loadMore == null ? void 0 : loadMore.enabled) || loadMore.loading || !loadMore.hasMore) return;
|
|
153
|
+
const container = containerRef.current;
|
|
154
|
+
if (!container) return;
|
|
155
|
+
const { scrollTop, scrollHeight, clientHeight } = container;
|
|
156
|
+
const threshold = loadMore.threshold || 100;
|
|
157
|
+
if (scrollTop + clientHeight >= scrollHeight - threshold) {
|
|
158
|
+
loadMore.onLoadMore();
|
|
159
|
+
}
|
|
160
|
+
}, [loadMore]);
|
|
161
|
+
React.useEffect(() => {
|
|
162
|
+
const container = containerRef.current;
|
|
163
|
+
if (!container || !(loadMore == null ? void 0 : loadMore.enabled)) return;
|
|
164
|
+
container.addEventListener("scroll", handleScroll);
|
|
165
|
+
return () => container.removeEventListener("scroll", handleScroll);
|
|
166
|
+
}, [handleScroll, loadMore == null ? void 0 : loadMore.enabled, loadMore == null ? void 0 : loadMore.loading, loadMore == null ? void 0 : loadMore.hasMore]);
|
|
167
|
+
React.useEffect(() => {
|
|
168
|
+
if ((pagination == null ? void 0 : pagination.current) !== void 0) {
|
|
169
|
+
setCurrentPage(pagination.current);
|
|
170
|
+
}
|
|
171
|
+
if ((pagination == null ? void 0 : pagination.pageSize) !== void 0) {
|
|
172
|
+
setPageSize(pagination.pageSize);
|
|
173
|
+
}
|
|
174
|
+
}, [pagination]);
|
|
175
|
+
const paginationUiClasses = {
|
|
176
|
+
xs: {
|
|
177
|
+
container: "px-3 py-2",
|
|
178
|
+
text: "text-xs",
|
|
179
|
+
control: "px-2 py-1 text-xs",
|
|
180
|
+
gap: "gap-1",
|
|
181
|
+
select: "px-2 py-1 text-xs",
|
|
182
|
+
input: "px-2 py-1 text-xs w-14"
|
|
183
|
+
},
|
|
184
|
+
sm: {
|
|
185
|
+
container: "px-3 py-2",
|
|
186
|
+
text: "text-sm",
|
|
187
|
+
control: "px-2 py-1 text-sm",
|
|
188
|
+
gap: "gap-2",
|
|
189
|
+
select: "px-2 py-1 text-sm",
|
|
190
|
+
input: "px-2 py-1 text-sm w-16"
|
|
191
|
+
},
|
|
192
|
+
md: {
|
|
193
|
+
container: "px-4 py-3",
|
|
194
|
+
text: "text-sm",
|
|
195
|
+
control: "px-3 py-1 text-sm",
|
|
196
|
+
gap: "gap-2",
|
|
197
|
+
select: "px-2 py-1 text-sm",
|
|
198
|
+
input: "px-2 py-1 text-sm w-16"
|
|
199
|
+
},
|
|
200
|
+
lg: {
|
|
201
|
+
container: "px-5 py-3.5",
|
|
202
|
+
text: "text-base",
|
|
203
|
+
control: "px-3.5 py-1.5 text-base",
|
|
204
|
+
gap: "gap-3",
|
|
205
|
+
select: "px-3 py-1.5 text-base",
|
|
206
|
+
input: "px-3 py-1.5 text-base w-20"
|
|
207
|
+
},
|
|
208
|
+
xl: {
|
|
209
|
+
container: "px-6 py-4",
|
|
210
|
+
text: "text-lg",
|
|
211
|
+
control: "px-4 py-2 text-lg",
|
|
212
|
+
gap: "gap-3",
|
|
213
|
+
select: "px-4 py-2 text-lg",
|
|
214
|
+
input: "px-4 py-2 text-lg w-24"
|
|
215
|
+
},
|
|
216
|
+
"2xl": {
|
|
217
|
+
container: "px-8 py-5",
|
|
218
|
+
text: "text-xl",
|
|
219
|
+
control: "px-5 py-2.5 text-xl",
|
|
220
|
+
gap: "gap-4",
|
|
221
|
+
select: "px-5 py-2.5 text-xl",
|
|
222
|
+
input: "px-5 py-2.5 text-xl w-28"
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const totalPages = pagination && pagination.total && pageSize ? Math.max(1, Math.ceil(pagination.total / pageSize)) : 1;
|
|
226
|
+
const getTableStyles = () => ({
|
|
227
|
+
backgroundColor: variant === "minimal" ? "transparent" : variant === "soft" ? "var(--lm-bg-paper)" : "var(--lm-bg-elevated)",
|
|
228
|
+
borderColor: variant === "outline" ? "var(--lm-border-strong)" : bordered ? "var(--lm-border-default)" : "transparent"
|
|
229
|
+
});
|
|
230
|
+
const getHeaderStyles = () => ({
|
|
231
|
+
backgroundColor: variant === "minimal" ? "transparent" : "var(--lm-bg-elevated)",
|
|
232
|
+
color: "var(--lm-text-primary)",
|
|
233
|
+
borderColor: variant === "outline" ? "var(--lm-border-strong)" : "var(--lm-border-light)"
|
|
234
|
+
});
|
|
235
|
+
const getCellStyles = (isHeader = false) => ({
|
|
236
|
+
backgroundColor: isHeader ? variant === "minimal" ? "transparent" : "var(--lm-bg-paper)" : variant === "minimal" ? "transparent" : variant === "soft" ? "var(--lm-bg-paper)" : "var(--lm-bg-elevated)",
|
|
237
|
+
color: "var(--lm-text-primary)",
|
|
238
|
+
borderColor: variant === "outline" ? "var(--lm-border-strong)" : variant === "minimal" ? "transparent" : "var(--lm-border-light)"
|
|
239
|
+
});
|
|
240
|
+
const getRowStyles = (index, isSelected = false) => {
|
|
241
|
+
const baseStyles = {
|
|
242
|
+
backgroundColor: isSelected ? "var(--lm-primary-50)" : (striped || variant === "zebra") && index % 2 === 1 ? "var(--lm-bg-paper)" : variant === "minimal" ? "transparent" : variant === "soft" ? "var(--lm-bg-paper)" : "var(--lm-bg-elevated)",
|
|
243
|
+
color: "var(--lm-text-primary)"
|
|
244
|
+
};
|
|
245
|
+
if (isSelected) {
|
|
246
|
+
return {
|
|
247
|
+
...baseStyles,
|
|
248
|
+
borderColor: "var(--lm-primary-200)"
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
return baseStyles;
|
|
252
|
+
};
|
|
253
|
+
const getPaginationStyles = () => ({
|
|
254
|
+
backgroundColor: variant === "minimal" ? "transparent" : variant === "soft" ? "var(--lm-bg-paper)" : "var(--lm-bg-elevated)",
|
|
255
|
+
color: "var(--lm-text-primary)",
|
|
256
|
+
borderColor: variant === "outline" ? "var(--lm-border-strong)" : "var(--lm-border-default)",
|
|
257
|
+
boxShadow: variant === "elevated" ? "var(--lm-shadow-md)" : void 0
|
|
258
|
+
});
|
|
259
|
+
const getButtonStyles = (disabled = false, active = false) => {
|
|
260
|
+
if (disabled) {
|
|
261
|
+
return {
|
|
262
|
+
backgroundColor: "var(--lm-bg-paper)",
|
|
263
|
+
color: "var(--lm-text-disabled)",
|
|
264
|
+
borderColor: "var(--lm-border-light)",
|
|
265
|
+
cursor: "not-allowed",
|
|
266
|
+
opacity: 0.6
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
if (active) {
|
|
270
|
+
return {
|
|
271
|
+
backgroundColor: "var(--lm-primary-500)",
|
|
272
|
+
color: "white",
|
|
273
|
+
borderColor: "var(--lm-primary-500)"
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
backgroundColor: "var(--lm-bg-paper)",
|
|
278
|
+
color: "var(--lm-text-primary)",
|
|
279
|
+
borderColor: "var(--lm-border-default)"
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
const getLoadingStyles = () => ({
|
|
283
|
+
color: "var(--lm-text-secondary)"
|
|
284
|
+
});
|
|
285
|
+
const getEmptyStyles = () => ({
|
|
286
|
+
color: "var(--lm-text-secondary)"
|
|
287
|
+
});
|
|
288
|
+
const tableClassName = `w-full ${componentSizes.SIZE_TEXT_CLASSES[size]} border-collapse ${className}`.trim().replace(/\s+/g, " ");
|
|
289
|
+
const isAllSelected = dataSource.length > 0 && selectedRowKeys.length === dataSource.length;
|
|
290
|
+
const isIndeterminate = selectedRowKeys.length > 0 && selectedRowKeys.length < dataSource.length;
|
|
291
|
+
const rootClassName = `space-y-4 ${fullHeight ? "h-full flex flex-col min-h-0" : ""}`.trim().replace(/\s+/g, " ");
|
|
292
|
+
const tableContainerClassName = `${fullHeight ? "flex-1 min-h-0 overflow-auto" : `overflow-auto ${(loadMore == null ? void 0 : loadMore.enabled) ? "max-h-96" : ""}`}`.trim().replace(/\s+/g, " ");
|
|
293
|
+
const wrapperVariantClasses = (() => {
|
|
294
|
+
switch (variant) {
|
|
295
|
+
case "elevated":
|
|
296
|
+
return "rounded-2xl border shadow-lg";
|
|
297
|
+
case "outline":
|
|
298
|
+
return "rounded-xl border";
|
|
299
|
+
case "soft":
|
|
300
|
+
return "rounded-xl border";
|
|
301
|
+
case "minimal":
|
|
302
|
+
return "rounded-xl";
|
|
303
|
+
case "zebra":
|
|
304
|
+
return "rounded-xl border";
|
|
305
|
+
default:
|
|
306
|
+
return "";
|
|
307
|
+
}
|
|
308
|
+
})();
|
|
309
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: rootClassName, children: [
|
|
310
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
311
|
+
"div",
|
|
312
|
+
{
|
|
313
|
+
ref: containerRef,
|
|
314
|
+
className: `${tableContainerClassName} ${wrapperVariantClasses}`,
|
|
315
|
+
style: { borderColor: "var(--lm-border-default)" },
|
|
316
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: tableClassName, style: getTableStyles(), children: [
|
|
317
|
+
/* @__PURE__ */ jsxRuntime.jsx("thead", { className: "sticky top-0 z-20", style: getHeaderStyles(), children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
318
|
+
selectable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
319
|
+
"th",
|
|
320
|
+
{
|
|
321
|
+
className: `${componentSizes.SIZE_TABLE_CONFIG[size].cellPadding} py-3 ${componentSizes.SIZE_TEXT_CLASSES[size]} text-left ${bordered ? "border-r" : ""} font-semibold`,
|
|
322
|
+
style: getCellStyles(true),
|
|
323
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
+
"input",
|
|
325
|
+
{
|
|
326
|
+
type: "checkbox",
|
|
327
|
+
checked: isAllSelected,
|
|
328
|
+
ref: (input) => {
|
|
329
|
+
if (input) input.indeterminate = isIndeterminate;
|
|
330
|
+
},
|
|
331
|
+
onChange: (e) => handleSelectAll(e.target.checked),
|
|
332
|
+
className: "w-4 h-4",
|
|
333
|
+
style: { accentColor: "var(--lm-primary-500)" }
|
|
334
|
+
}
|
|
335
|
+
)
|
|
336
|
+
}
|
|
337
|
+
),
|
|
338
|
+
columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
339
|
+
"th",
|
|
340
|
+
{
|
|
341
|
+
className: `${componentSizes.SIZE_TABLE_CONFIG[size].cellPadding} py-3 text-left ${bordered ? "border-r" : ""} ${column.sorter ? "cursor-pointer hover:bg-opacity-60" : ""} font-semibold`,
|
|
342
|
+
style: {
|
|
343
|
+
...getCellStyles(true),
|
|
344
|
+
width: column.width,
|
|
345
|
+
textAlign: column.align || "left",
|
|
346
|
+
fontSize: size === "xs" ? "0.8125rem" : size === "sm" ? "0.875rem" : "0.9375rem"
|
|
347
|
+
},
|
|
348
|
+
onClick: () => handleSort(column),
|
|
349
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
350
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: column.title }),
|
|
351
|
+
column.sorter && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col -space-y-1", children: [
|
|
352
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
353
|
+
CaretUpIcon,
|
|
354
|
+
{
|
|
355
|
+
active: sortField === column.dataIndex && sortOrder === "ascend"
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
359
|
+
CaretDownIcon,
|
|
360
|
+
{
|
|
361
|
+
active: sortField === column.dataIndex && sortOrder === "descend"
|
|
362
|
+
}
|
|
363
|
+
)
|
|
364
|
+
] })
|
|
365
|
+
] })
|
|
366
|
+
},
|
|
367
|
+
column.dataIndex
|
|
368
|
+
))
|
|
369
|
+
] }) }),
|
|
370
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: loading ? /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
371
|
+
"td",
|
|
372
|
+
{
|
|
373
|
+
colSpan: columns.length + (selectable ? 1 : 0),
|
|
374
|
+
className: `px-4 py-8 text-center ${componentSizes.SIZE_TEXT_CLASSES[size]}`,
|
|
375
|
+
style: getLoadingStyles(),
|
|
376
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
|
|
377
|
+
/* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, {}),
|
|
378
|
+
"Loading..."
|
|
379
|
+
] })
|
|
380
|
+
}
|
|
381
|
+
) }) : dataSource.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
382
|
+
"td",
|
|
383
|
+
{
|
|
384
|
+
colSpan: columns.length + (selectable ? 1 : 0),
|
|
385
|
+
className: `px-4 py-8 text-center ${componentSizes.SIZE_TEXT_CLASSES[size]}`,
|
|
386
|
+
style: getEmptyStyles(),
|
|
387
|
+
children: emptyText
|
|
388
|
+
}
|
|
389
|
+
) }) : dataSource.map((record, index) => {
|
|
390
|
+
const key = getRowKey(record, index);
|
|
391
|
+
const isSelected = selectedRowKeys.includes(key);
|
|
392
|
+
const isLastRow = index === dataSource.length - 1;
|
|
393
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
394
|
+
"tr",
|
|
395
|
+
{
|
|
396
|
+
className: `${onRowClick ? "cursor-pointer hover:bg-opacity-60" : ""} transition-colors border-t ${isLastRow ? "border-b" : ""}`,
|
|
397
|
+
style: {
|
|
398
|
+
...getRowStyles(index, isSelected),
|
|
399
|
+
borderColor: "var(--lm-border-light)"
|
|
400
|
+
},
|
|
401
|
+
onClick: () => onRowClick == null ? void 0 : onRowClick(record, index),
|
|
402
|
+
children: [
|
|
403
|
+
selectable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
404
|
+
"td",
|
|
405
|
+
{
|
|
406
|
+
className: `${componentSizes.SIZE_TABLE_CONFIG[size].cellPadding} ${componentSizes.SIZE_TEXT_CLASSES[size]} ${bordered ? "border-r" : ""}`,
|
|
407
|
+
style: getCellStyles(),
|
|
408
|
+
onClick: (e) => e.stopPropagation(),
|
|
409
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
+
"input",
|
|
411
|
+
{
|
|
412
|
+
type: "checkbox",
|
|
413
|
+
checked: isSelected,
|
|
414
|
+
onChange: (e) => handleRowSelect(record, e.target.checked),
|
|
415
|
+
className: "w-4 h-4",
|
|
416
|
+
style: { accentColor: "var(--lm-primary-500)" }
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
422
|
+
"td",
|
|
423
|
+
{
|
|
424
|
+
className: `${componentSizes.SIZE_TABLE_CONFIG[size].cellPadding} ${componentSizes.SIZE_TEXT_CLASSES[size]} ${bordered ? "border-r" : ""}`,
|
|
425
|
+
style: {
|
|
426
|
+
...getCellStyles(),
|
|
427
|
+
textAlign: column.align || "left"
|
|
428
|
+
},
|
|
429
|
+
children: column.render ? column.render(
|
|
430
|
+
getValueByDataIndex(record, column.dataIndex),
|
|
431
|
+
record,
|
|
432
|
+
index
|
|
433
|
+
) : String(getValueByDataIndex(record, column.dataIndex) ?? "")
|
|
434
|
+
},
|
|
435
|
+
column.dataIndex
|
|
436
|
+
))
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
key
|
|
440
|
+
);
|
|
441
|
+
}) })
|
|
442
|
+
] })
|
|
443
|
+
}
|
|
444
|
+
),
|
|
445
|
+
(pagination == null ? void 0 : pagination.showPagination) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
446
|
+
"div",
|
|
447
|
+
{
|
|
448
|
+
className: `flex items-center justify-between ${paginationUiClasses[size].container} rounded-2xl border`,
|
|
449
|
+
style: getPaginationStyles(),
|
|
450
|
+
children: (() => {
|
|
451
|
+
var _a;
|
|
452
|
+
const maxButtons = 5;
|
|
453
|
+
const half = Math.floor(maxButtons / 2);
|
|
454
|
+
let start = Math.max(1, currentPage - half);
|
|
455
|
+
const end = Math.min(totalPages, start + maxButtons - 1);
|
|
456
|
+
if (end - start + 1 < maxButtons) {
|
|
457
|
+
start = Math.max(1, end - maxButtons + 1);
|
|
458
|
+
}
|
|
459
|
+
const pageNumbers = Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
460
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
461
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
462
|
+
pagination.showTotal && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
463
|
+
"span",
|
|
464
|
+
{
|
|
465
|
+
className: paginationUiClasses[size].text,
|
|
466
|
+
style: { color: "var(--lm-text-secondary)" },
|
|
467
|
+
children: [
|
|
468
|
+
"Total ",
|
|
469
|
+
pagination.total,
|
|
470
|
+
" items / ",
|
|
471
|
+
totalPages,
|
|
472
|
+
" pages"
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
),
|
|
476
|
+
pagination.showSizeChanger && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
477
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
478
|
+
"span",
|
|
479
|
+
{
|
|
480
|
+
className: paginationUiClasses[size].text,
|
|
481
|
+
style: { color: "var(--lm-text-secondary)" },
|
|
482
|
+
children: "Show:"
|
|
483
|
+
}
|
|
484
|
+
),
|
|
485
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
486
|
+
"select",
|
|
487
|
+
{
|
|
488
|
+
value: pageSize,
|
|
489
|
+
onChange: (e) => handlePageSizeChange(Number(e.target.value)),
|
|
490
|
+
className: `${paginationUiClasses[size].select} border rounded-lg focus:ring-2 focus:ring-primary-400 focus:outline-none`,
|
|
491
|
+
style: {
|
|
492
|
+
backgroundColor: "var(--lm-bg-paper)",
|
|
493
|
+
color: "var(--lm-text-primary)",
|
|
494
|
+
borderColor: "var(--lm-border-default)"
|
|
495
|
+
},
|
|
496
|
+
children: (_a = pagination.pageSizeOptions) == null ? void 0 : _a.map((s) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: s, children: [
|
|
497
|
+
s,
|
|
498
|
+
" / page"
|
|
499
|
+
] }, s))
|
|
500
|
+
}
|
|
501
|
+
)
|
|
502
|
+
] })
|
|
503
|
+
] }),
|
|
504
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex items-center ${paginationUiClasses[size].gap}`, children: [
|
|
505
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
506
|
+
"button",
|
|
507
|
+
{
|
|
508
|
+
onClick: () => handlePageChange(currentPage - 1),
|
|
509
|
+
disabled: currentPage <= 1,
|
|
510
|
+
className: `${paginationUiClasses[size].control} border rounded-lg transition-colors`,
|
|
511
|
+
style: getButtonStyles(currentPage <= 1),
|
|
512
|
+
"aria-label": "Previous page",
|
|
513
|
+
title: "Previous page",
|
|
514
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeftIcon, {})
|
|
515
|
+
}
|
|
516
|
+
),
|
|
517
|
+
pageNumbers.map((page) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
518
|
+
"button",
|
|
519
|
+
{
|
|
520
|
+
onClick: () => handlePageChange(page),
|
|
521
|
+
className: `${paginationUiClasses[size].control} border rounded-lg transition-colors ${currentPage === page ? "font-medium" : ""}`,
|
|
522
|
+
style: getButtonStyles(false, currentPage === page),
|
|
523
|
+
children: page
|
|
524
|
+
},
|
|
525
|
+
page
|
|
526
|
+
)),
|
|
527
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
528
|
+
"button",
|
|
529
|
+
{
|
|
530
|
+
onClick: () => handlePageChange(currentPage + 1),
|
|
531
|
+
disabled: currentPage >= totalPages,
|
|
532
|
+
className: `${paginationUiClasses[size].control} border rounded-lg transition-colors`,
|
|
533
|
+
style: getButtonStyles(currentPage >= totalPages),
|
|
534
|
+
"aria-label": "Next page",
|
|
535
|
+
title: "Next page",
|
|
536
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, {})
|
|
537
|
+
}
|
|
538
|
+
),
|
|
539
|
+
pagination.showQuickJumper && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex items-center ${paginationUiClasses[size].gap} ml-4`, children: [
|
|
540
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
541
|
+
"span",
|
|
542
|
+
{
|
|
543
|
+
className: paginationUiClasses[size].text,
|
|
544
|
+
style: { color: "var(--lm-text-secondary)" },
|
|
545
|
+
children: "Go to:"
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
549
|
+
"input",
|
|
550
|
+
{
|
|
551
|
+
type: "number",
|
|
552
|
+
min: 1,
|
|
553
|
+
max: totalPages,
|
|
554
|
+
className: `${paginationUiClasses[size].input} border rounded-lg focus:ring-2 focus:ring-primary-400 focus:outline-none`,
|
|
555
|
+
style: {
|
|
556
|
+
backgroundColor: "var(--lm-bg-paper)",
|
|
557
|
+
color: "var(--lm-text-primary)",
|
|
558
|
+
borderColor: "var(--lm-border-default)"
|
|
559
|
+
},
|
|
560
|
+
onKeyDown: (e) => {
|
|
561
|
+
if (e.key === "Enter") {
|
|
562
|
+
const page = Number(e.currentTarget.value);
|
|
563
|
+
if (page >= 1 && page <= totalPages) {
|
|
564
|
+
handlePageChange(page);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
)
|
|
570
|
+
] })
|
|
571
|
+
] })
|
|
572
|
+
] });
|
|
573
|
+
})()
|
|
574
|
+
}
|
|
575
|
+
),
|
|
576
|
+
(loadMore == null ? void 0 : loadMore.enabled) && loadMore.hasMore && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center py-4", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
577
|
+
"button",
|
|
578
|
+
{
|
|
579
|
+
onClick: loadMore.onLoadMore,
|
|
580
|
+
disabled: loadMore.loading,
|
|
581
|
+
className: "px-6 py-2 text-sm border rounded-2xl transition-colors",
|
|
582
|
+
style: getButtonStyles(loadMore.loading),
|
|
583
|
+
children: loadMore.loading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
584
|
+
/* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, {}),
|
|
585
|
+
"Loading..."
|
|
586
|
+
] }) : "Load more"
|
|
587
|
+
}
|
|
588
|
+
) })
|
|
589
|
+
] });
|
|
590
|
+
};
|
|
591
|
+
const LMTable_default = React.memo(LMTable);
|
|
592
|
+
exports.LMTable_default = LMTable_default;
|
|
593
|
+
//# sourceMappingURL=LMTable-j1ZzAzXB.cjs.map
|