@nuraly/lumenui 0.1.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 +28 -0
- package/README.md +248 -0
- package/dist/nuralyui.bundle.js +29209 -0
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +103 -0
- package/dist/src/components/alert/alert.component.js +225 -0
- package/dist/src/components/alert/alert.style.d.ts +14 -0
- package/dist/src/components/alert/alert.style.js +191 -0
- package/dist/src/components/alert/alert.types.d.ts +46 -0
- package/dist/src/components/alert/alert.types.js +7 -0
- package/dist/src/components/alert/bundle.js +231 -0
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/alert/index.d.ts +8 -0
- package/dist/src/components/alert/index.js +8 -0
- package/dist/src/components/alert/react.d.ts +5 -0
- package/dist/src/components/alert/react.js +17 -0
- package/dist/src/components/badge/badge.component.d.ts +148 -0
- package/dist/src/components/badge/badge.component.js +270 -0
- package/dist/src/components/badge/badge.style.d.ts +14 -0
- package/dist/src/components/badge/badge.style.js +250 -0
- package/dist/src/components/badge/badge.types.d.ts +84 -0
- package/dist/src/components/badge/badge.types.js +7 -0
- package/dist/src/components/badge/bundle.js +277 -0
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/badge/index.d.ts +2 -0
- package/dist/src/components/badge/index.js +2 -0
- package/dist/src/components/badge/react.d.ts +3 -0
- package/dist/src/components/badge/react.js +10 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +121 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.js +257 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +14 -0
- package/dist/src/components/breadcrumb/breadcrumb.style.js +153 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.d.ts +63 -0
- package/dist/src/components/breadcrumb/breadcrumb.types.js +7 -0
- package/dist/src/components/breadcrumb/bundle.js +213 -0
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/index.d.ts +2 -0
- package/dist/src/components/breadcrumb/index.js +2 -0
- package/dist/src/components/breadcrumb/react.d.ts +5 -0
- package/dist/src/components/breadcrumb/react.js +12 -0
- package/dist/src/components/button/bundle.js +606 -0
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +96 -0
- package/dist/src/components/button/button.component.js +312 -0
- package/dist/src/components/button/button.style.d.ts +10 -0
- package/dist/src/components/button/button.style.js +535 -0
- package/dist/src/components/button/button.types.d.ts +57 -0
- package/dist/src/components/button/button.types.js +2 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/button/index.js +2 -0
- package/dist/src/components/button/react.d.ts +5 -0
- package/dist/src/components/button/react.js +12 -0
- package/dist/src/components/canvas/base-canvas.component.d.ts +177 -0
- package/dist/src/components/canvas/base-canvas.component.js +865 -0
- package/dist/src/components/canvas/bundle.js +16664 -0
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.component.d.ts +2 -0
- package/dist/src/components/canvas/canvas.component.js +295 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +66 -0
- package/dist/src/components/canvas/canvas.constants.js +61 -0
- package/dist/src/components/canvas/chatbot-panel.style.d.ts +11 -0
- package/dist/src/components/canvas/chatbot-panel.style.js +189 -0
- package/dist/src/components/canvas/index.d.ts +13 -0
- package/dist/src/components/canvas/index.js +21 -0
- package/dist/src/components/canvas/react.d.ts +354 -0
- package/dist/src/components/canvas/react.js +41 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +63 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.js +356 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-canvas.style.js +1011 -0
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +87 -0
- package/dist/src/components/canvas/whiteboard-node.component.js +809 -0
- package/dist/src/components/canvas/whiteboard-node.style.d.ts +7 -0
- package/dist/src/components/canvas/whiteboard-node.style.js +775 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +150 -0
- package/dist/src/components/canvas/workflow-canvas.component.js +1468 -0
- package/dist/src/components/canvas/workflow-canvas.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-canvas.style.js +2903 -0
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +710 -0
- package/dist/src/components/canvas/workflow-canvas.types.js +2305 -0
- package/dist/src/components/canvas/workflow-node.component.d.ts +96 -0
- package/dist/src/components/canvas/workflow-node.component.js +752 -0
- package/dist/src/components/canvas/workflow-node.style.d.ts +8 -0
- package/dist/src/components/canvas/workflow-node.style.js +1053 -0
- package/dist/src/components/card/bundle.js +69 -0
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +30 -0
- package/dist/src/components/card/card.component.js +64 -0
- package/dist/src/components/card/card.style.d.ts +2 -0
- package/dist/src/components/card/card.style.js +62 -0
- package/dist/src/components/card/card.types.d.ts +17 -0
- package/dist/src/components/card/card.types.js +2 -0
- package/dist/src/components/card/index.d.ts +3 -0
- package/dist/src/components/card/index.js +3 -0
- package/dist/src/components/card/react.d.ts +5 -0
- package/dist/src/components/card/react.js +12 -0
- package/dist/src/components/carousel/bundle.js +96 -0
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +19 -0
- package/dist/src/components/carousel/carousel.component.js +128 -0
- package/dist/src/components/carousel/carousel.style.d.ts +2 -0
- package/dist/src/components/carousel/carousel.style.js +68 -0
- package/dist/src/components/carousel/index.d.ts +2 -0
- package/dist/src/components/carousel/index.js +2 -0
- package/dist/src/components/carousel/react.d.ts +5 -0
- package/dist/src/components/carousel/react.js +12 -0
- package/dist/src/components/chatbot/bundle.js +2527 -0
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +215 -0
- package/dist/src/components/chatbot/chatbot.component.js +1097 -0
- package/dist/src/components/chatbot/chatbot.style.d.ts +3 -0
- package/dist/src/components/chatbot/chatbot.style.js +1638 -0
- package/dist/src/components/chatbot/chatbot.types.d.ts +246 -0
- package/dist/src/components/chatbot/chatbot.types.js +124 -0
- package/dist/src/components/chatbot/index.d.ts +13 -0
- package/dist/src/components/chatbot/index.js +20 -0
- package/dist/src/components/chatbot/react.d.ts +54 -0
- package/dist/src/components/chatbot/react.js +55 -0
- package/dist/src/components/checkbox/bundle.js +352 -0
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +62 -0
- package/dist/src/components/checkbox/checkbox.component.js +178 -0
- package/dist/src/components/checkbox/checkbox.style.d.ts +2 -0
- package/dist/src/components/checkbox/checkbox.style.js +323 -0
- package/dist/src/components/checkbox/checkbox.types.d.ts +6 -0
- package/dist/src/components/checkbox/checkbox.types.js +2 -0
- package/dist/src/components/checkbox/index.d.ts +2 -0
- package/dist/src/components/checkbox/index.js +2 -0
- package/dist/src/components/checkbox/react.d.ts +5 -0
- package/dist/src/components/checkbox/react.js +12 -0
- package/dist/src/components/code-editor/bundle.js +55 -0
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +119 -0
- package/dist/src/components/code-editor/code-editor.component.js +532 -0
- package/dist/src/components/code-editor/code-editor.style.d.ts +7 -0
- package/dist/src/components/code-editor/code-editor.style.js +39 -0
- package/dist/src/components/code-editor/code-editor.types.d.ts +39 -0
- package/dist/src/components/code-editor/code-editor.types.js +22 -0
- package/dist/src/components/code-editor/index.d.ts +9 -0
- package/dist/src/components/code-editor/index.js +9 -0
- package/dist/src/components/collapse/bundle.js +308 -0
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +93 -0
- package/dist/src/components/collapse/collapse.component.js +322 -0
- package/dist/src/components/collapse/collapse.style.d.ts +11 -0
- package/dist/src/components/collapse/collapse.style.js +234 -0
- package/dist/src/components/collapse/collapse.type.d.ts +79 -0
- package/dist/src/components/collapse/collapse.type.js +11 -0
- package/dist/src/components/collapse/index.d.ts +2 -0
- package/dist/src/components/collapse/index.js +2 -0
- package/dist/src/components/collapse/react.d.ts +6 -0
- package/dist/src/components/collapse/react.js +13 -0
- package/dist/src/components/colorpicker/bundle.js +242 -0
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +50 -0
- package/dist/src/components/colorpicker/color-holder.component.js +116 -0
- package/dist/src/components/colorpicker/color-holder.style.d.ts +2 -0
- package/dist/src/components/colorpicker/color-holder.style.js +45 -0
- package/dist/src/components/colorpicker/color-picker.component.d.ts +178 -0
- package/dist/src/components/colorpicker/color-picker.component.js +374 -0
- package/dist/src/components/colorpicker/color-picker.style.d.ts +10 -0
- package/dist/src/components/colorpicker/color-picker.style.js +86 -0
- package/dist/src/components/colorpicker/color-picker.types.d.ts +60 -0
- package/dist/src/components/colorpicker/color-picker.types.js +2 -0
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +45 -0
- package/dist/src/components/colorpicker/default-color-sets.component.js +121 -0
- package/dist/src/components/colorpicker/default-color-sets.style.d.ts +2 -0
- package/dist/src/components/colorpicker/default-color-sets.style.js +34 -0
- package/dist/src/components/colorpicker/index.d.ts +3 -0
- package/dist/src/components/colorpicker/index.js +3 -0
- package/dist/src/components/colorpicker/react.d.ts +6 -0
- package/dist/src/components/colorpicker/react.js +13 -0
- package/dist/src/components/console/react.d.ts +340 -0
- package/dist/src/components/console/react.js +13 -0
- package/dist/src/components/container/bundle.js +161 -0
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +85 -0
- package/dist/src/components/container/container.component.js +223 -0
- package/dist/src/components/container/container.style.d.ts +6 -0
- package/dist/src/components/container/container.style.js +146 -0
- package/dist/src/components/container/container.types.d.ts +67 -0
- package/dist/src/components/container/container.types.js +5 -0
- package/dist/src/components/container/index.d.ts +3 -0
- package/dist/src/components/container/index.js +3 -0
- package/dist/src/components/container/react.d.ts +3 -0
- package/dist/src/components/container/react.js +10 -0
- package/dist/src/components/datepicker/bundle.js +706 -0
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +190 -0
- package/dist/src/components/datepicker/datepicker.component.js +673 -0
- package/dist/src/components/datepicker/datepicker.constant.d.ts +60 -0
- package/dist/src/components/datepicker/datepicker.constant.js +60 -0
- package/dist/src/components/datepicker/datepicker.style.d.ts +17 -0
- package/dist/src/components/datepicker/datepicker.style.js +453 -0
- package/dist/src/components/datepicker/datepicker.style.variables.d.ts +2 -0
- package/dist/src/components/datepicker/datepicker.style.variables.js +119 -0
- package/dist/src/components/datepicker/datepicker.types.d.ts +142 -0
- package/dist/src/components/datepicker/datepicker.types.js +75 -0
- package/dist/src/components/datepicker/index.d.ts +4 -0
- package/dist/src/components/datepicker/index.js +4 -0
- package/dist/src/components/datepicker/react.d.ts +16 -0
- package/dist/src/components/datepicker/react.js +23 -0
- package/dist/src/components/db-connection-select/bundle.js +308 -0
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +105 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +573 -0
- package/dist/src/components/db-connection-select/index.d.ts +7 -0
- package/dist/src/components/db-connection-select/index.js +7 -0
- package/dist/src/components/divider/bundle.js +143 -0
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +90 -0
- package/dist/src/components/divider/divider.component.js +168 -0
- package/dist/src/components/divider/divider.style.d.ts +3 -0
- package/dist/src/components/divider/divider.style.js +139 -0
- package/dist/src/components/divider/divider.types.d.ts +55 -0
- package/dist/src/components/divider/divider.types.js +6 -0
- package/dist/src/components/divider/index.d.ts +3 -0
- package/dist/src/components/divider/index.js +3 -0
- package/dist/src/components/divider/react.d.ts +3 -0
- package/dist/src/components/divider/react.js +10 -0
- package/dist/src/components/document/bundle.js +242 -0
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +27 -0
- package/dist/src/components/document/document.component.js +136 -0
- package/dist/src/components/document/document.style.d.ts +3 -0
- package/dist/src/components/document/document.style.js +210 -0
- package/dist/src/components/document/document.types.d.ts +68 -0
- package/dist/src/components/document/document.types.js +7 -0
- package/dist/src/components/document/index.d.ts +3 -0
- package/dist/src/components/document/index.js +3 -0
- package/dist/src/components/document/react.d.ts +8 -0
- package/dist/src/components/document/react.js +15 -0
- package/dist/src/components/dropdown/bundle.js +528 -0
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +120 -0
- package/dist/src/components/dropdown/dropdown.component.js +390 -0
- package/dist/src/components/dropdown/dropdown.style.d.ts +2 -0
- package/dist/src/components/dropdown/dropdown.style.js +460 -0
- package/dist/src/components/dropdown/dropdown.types.d.ts +99 -0
- package/dist/src/components/dropdown/dropdown.types.js +2 -0
- package/dist/src/components/dropdown/index.d.ts +3 -0
- package/dist/src/components/dropdown/index.js +3 -0
- package/dist/src/components/dropdown/react.d.ts +7 -0
- package/dist/src/components/dropdown/react.js +14 -0
- package/dist/src/components/file-upload/bundle.js +472 -0
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +43 -0
- package/dist/src/components/file-upload/file-upload.component.js +398 -0
- package/dist/src/components/file-upload/index.d.ts +2 -0
- package/dist/src/components/file-upload/index.js +2 -0
- package/dist/src/components/file-upload/react.d.ts +7 -0
- package/dist/src/components/file-upload/react.js +14 -0
- package/dist/src/components/file-upload/styles.d.ts +2 -0
- package/dist/src/components/file-upload/styles.js +373 -0
- package/dist/src/components/file-upload/types.d.ts +11 -0
- package/dist/src/components/file-upload/types.js +2 -0
- package/dist/src/components/file-upload/utils.d.ts +6 -0
- package/dist/src/components/file-upload/utils.js +24 -0
- package/dist/src/components/flex/bundle.js +114 -0
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +89 -0
- package/dist/src/components/flex/flex.component.js +178 -0
- package/dist/src/components/flex/flex.style.d.ts +6 -0
- package/dist/src/components/flex/flex.style.js +101 -0
- package/dist/src/components/flex/flex.types.d.ts +63 -0
- package/dist/src/components/flex/flex.types.js +5 -0
- package/dist/src/components/flex/index.d.ts +3 -0
- package/dist/src/components/flex/index.js +3 -0
- package/dist/src/components/flex/react.d.ts +3 -0
- package/dist/src/components/flex/react.js +10 -0
- package/dist/src/components/form/bundle.js +98 -0
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +279 -0
- package/dist/src/components/form/form.component.js +644 -0
- package/dist/src/components/form/form.style.d.ts +7 -0
- package/dist/src/components/form/form.style.js +68 -0
- package/dist/src/components/form/form.types.d.ts +92 -0
- package/dist/src/components/form/form.types.js +38 -0
- package/dist/src/components/form/index.d.ts +10 -0
- package/dist/src/components/form/index.js +13 -0
- package/dist/src/components/grid/bundle.js +202 -0
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +103 -0
- package/dist/src/components/grid/col.component.js +253 -0
- package/dist/src/components/grid/col.style.d.ts +6 -0
- package/dist/src/components/grid/col.style.js +117 -0
- package/dist/src/components/grid/grid.types.d.ts +80 -0
- package/dist/src/components/grid/grid.types.js +16 -0
- package/dist/src/components/grid/index.d.ts +4 -0
- package/dist/src/components/grid/index.js +4 -0
- package/dist/src/components/grid/react.d.ts +5 -0
- package/dist/src/components/grid/react.js +17 -0
- package/dist/src/components/grid/row.component.d.ts +83 -0
- package/dist/src/components/grid/row.component.js +197 -0
- package/dist/src/components/grid/row.style.d.ts +6 -0
- package/dist/src/components/grid/row.style.js +68 -0
- package/dist/src/components/icon/bundle.js +340 -0
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon.component.d.ts +64 -0
- package/dist/src/components/icon/icon.component.js +207 -0
- package/dist/src/components/icon/icon.style.d.ts +2 -0
- package/dist/src/components/icon/icon.style.js +211 -0
- package/dist/src/components/icon/icon.types.d.ts +5 -0
- package/dist/src/components/icon/icon.types.js +2 -0
- package/dist/src/components/icon/icon.variables.d.ts +17 -0
- package/dist/src/components/icon/icon.variables.js +132 -0
- package/dist/src/components/icon/index.d.ts +2 -0
- package/dist/src/components/icon/index.js +2 -0
- package/dist/src/components/icon/react.d.ts +3 -0
- package/dist/src/components/icon/react.js +9 -0
- package/dist/src/components/iconpicker/bundle.js +2811 -0
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +119 -0
- package/dist/src/components/iconpicker/icon-picker.component.js +337 -0
- package/dist/src/components/iconpicker/icon-picker.constant.d.ts +15 -0
- package/dist/src/components/iconpicker/icon-picker.constant.js +31 -0
- package/dist/src/components/iconpicker/icon-picker.style.d.ts +8 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +216 -0
- package/dist/src/components/iconpicker/icon-picker.types.d.ts +49 -0
- package/dist/src/components/iconpicker/icon-picker.types.js +7 -0
- package/dist/src/components/iconpicker/index.d.ts +9 -0
- package/dist/src/components/iconpicker/index.js +9 -0
- package/dist/src/components/iconpicker/react.d.ts +14 -0
- package/dist/src/components/iconpicker/react.js +21 -0
- package/dist/src/components/image/bundle.js +98 -0
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +31 -0
- package/dist/src/components/image/image.component.js +143 -0
- package/dist/src/components/image/image.style.d.ts +3 -0
- package/dist/src/components/image/image.style.js +83 -0
- package/dist/src/components/image/image.types.d.ts +68 -0
- package/dist/src/components/image/image.types.js +7 -0
- package/dist/src/components/image/index.d.ts +3 -0
- package/dist/src/components/image/index.js +3 -0
- package/dist/src/components/image/react.d.ts +8 -0
- package/dist/src/components/image/react.js +15 -0
- package/dist/src/components/input/bundle.js +930 -0
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/index.d.ts +3 -0
- package/dist/src/components/input/index.js +3 -0
- package/dist/src/components/input/input.component.d.ts +174 -0
- package/dist/src/components/input/input.component.js +490 -0
- package/dist/src/components/input/input.style.d.ts +2 -0
- package/dist/src/components/input/input.style.js +810 -0
- package/dist/src/components/input/input.types.d.ts +127 -0
- package/dist/src/components/input/input.types.js +75 -0
- package/dist/src/components/input/react.d.ts +9 -0
- package/dist/src/components/input/react.js +16 -0
- package/dist/src/components/input/validation.d.ts +3 -0
- package/dist/src/components/input/validation.js +3 -0
- package/dist/src/components/kv-secret-select/bundle.js +183 -0
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/index.d.ts +2 -0
- package/dist/src/components/kv-secret-select/index.js +2 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +83 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +360 -0
- package/dist/src/components/label/bundle.js +104 -0
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/index.d.ts +2 -0
- package/dist/src/components/label/index.js +2 -0
- package/dist/src/components/label/label.component.d.ts +18 -0
- package/dist/src/components/label/label.component.js +64 -0
- package/dist/src/components/label/label.style.d.ts +3 -0
- package/dist/src/components/label/label.style.js +70 -0
- package/dist/src/components/label/label.style.variables.d.ts +2 -0
- package/dist/src/components/label/label.style.variables.js +35 -0
- package/dist/src/components/label/label.types.d.ts +42 -0
- package/dist/src/components/label/label.types.js +2 -0
- package/dist/src/components/label/react.d.ts +339 -0
- package/dist/src/components/label/react.js +12 -0
- package/dist/src/components/layout/bundle.js +220 -0
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +35 -0
- package/dist/src/components/layout/content.component.js +47 -0
- package/dist/src/components/layout/content.style.d.ts +2 -0
- package/dist/src/components/layout/content.style.js +17 -0
- package/dist/src/components/layout/footer.component.d.ts +38 -0
- package/dist/src/components/layout/footer.component.js +60 -0
- package/dist/src/components/layout/footer.style.d.ts +2 -0
- package/dist/src/components/layout/footer.style.js +17 -0
- package/dist/src/components/layout/header.component.d.ts +39 -0
- package/dist/src/components/layout/header.component.js +61 -0
- package/dist/src/components/layout/header.style.d.ts +2 -0
- package/dist/src/components/layout/header.style.js +19 -0
- package/dist/src/components/layout/index.d.ts +8 -0
- package/dist/src/components/layout/index.js +7 -0
- package/dist/src/components/layout/layout.component.d.ts +50 -0
- package/dist/src/components/layout/layout.component.js +89 -0
- package/dist/src/components/layout/layout.style.d.ts +2 -0
- package/dist/src/components/layout/layout.style.js +23 -0
- package/dist/src/components/layout/layout.types.d.ts +75 -0
- package/dist/src/components/layout/layout.types.js +12 -0
- package/dist/src/components/layout/react.d.ts +14 -0
- package/dist/src/components/layout/react.js +37 -0
- package/dist/src/components/layout/sider.component.d.ts +116 -0
- package/dist/src/components/layout/sider.component.js +273 -0
- package/dist/src/components/layout/sider.style.d.ts +2 -0
- package/dist/src/components/layout/sider.style.js +104 -0
- package/dist/src/components/menu/bundle.js +520 -0
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/index.d.ts +4 -0
- package/dist/src/components/menu/index.js +2 -0
- package/dist/src/components/menu/menu.component.d.ts +87 -0
- package/dist/src/components/menu/menu.component.js +596 -0
- package/dist/src/components/menu/menu.constants.d.ts +12 -0
- package/dist/src/components/menu/menu.constants.js +14 -0
- package/dist/src/components/menu/menu.style.d.ts +2 -0
- package/dist/src/components/menu/menu.style.js +372 -0
- package/dist/src/components/menu/menu.types.d.ts +66 -0
- package/dist/src/components/menu/menu.types.js +7 -0
- package/dist/src/components/menu/react.d.ts +5 -0
- package/dist/src/components/menu/react.js +12 -0
- package/dist/src/components/modal/bundle.js +442 -0
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/index.d.ts +10 -0
- package/dist/src/components/modal/index.js +10 -0
- package/dist/src/components/modal/modal-manager.d.ts +72 -0
- package/dist/src/components/modal/modal-manager.js +170 -0
- package/dist/src/components/modal/modal.component.d.ts +121 -0
- package/dist/src/components/modal/modal.component.js +461 -0
- package/dist/src/components/modal/modal.style.d.ts +9 -0
- package/dist/src/components/modal/modal.style.js +369 -0
- package/dist/src/components/modal/modal.types.d.ts +105 -0
- package/dist/src/components/modal/modal.types.js +93 -0
- package/dist/src/components/modal/react.d.ts +9 -0
- package/dist/src/components/modal/react.js +16 -0
- package/dist/src/components/panel/bundle.js +1075 -0
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/index.d.ts +9 -0
- package/dist/src/components/panel/index.js +9 -0
- package/dist/src/components/panel/panel.component.d.ts +199 -0
- package/dist/src/components/panel/panel.component.js +720 -0
- package/dist/src/components/panel/panel.style.d.ts +7 -0
- package/dist/src/components/panel/panel.style.js +497 -0
- package/dist/src/components/panel/panel.types.d.ts +94 -0
- package/dist/src/components/panel/panel.types.js +50 -0
- package/dist/src/components/panel/react.d.ts +11 -0
- package/dist/src/components/panel/react.js +18 -0
- package/dist/src/components/popconfirm/bundle.js +438 -0
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/index.d.ts +4 -0
- package/dist/src/components/popconfirm/index.js +4 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +129 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +372 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +137 -0
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +179 -0
- package/dist/src/components/popconfirm/popconfirm.component.js +409 -0
- package/dist/src/components/popconfirm/popconfirm.style.d.ts +2 -0
- package/dist/src/components/popconfirm/popconfirm.style.js +207 -0
- package/dist/src/components/popconfirm/popconfirm.types.d.ts +104 -0
- package/dist/src/components/popconfirm/popconfirm.types.js +2 -0
- package/dist/src/components/popconfirm/react.d.ts +7 -0
- package/dist/src/components/popconfirm/react.js +14 -0
- package/dist/src/components/radio/bundle.js +180 -0
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/index.d.ts +3 -0
- package/dist/src/components/radio/index.js +3 -0
- package/dist/src/components/radio/radio.component.d.ts +70 -0
- package/dist/src/components/radio/radio.component.js +187 -0
- package/dist/src/components/radio/radio.style.d.ts +7 -0
- package/dist/src/components/radio/radio.style.js +149 -0
- package/dist/src/components/radio/radio.types.d.ts +14 -0
- package/dist/src/components/radio/radio.types.js +15 -0
- package/dist/src/components/radio/react.d.ts +12 -0
- package/dist/src/components/radio/react.js +19 -0
- package/dist/src/components/radio-group/bundle.js +430 -0
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/index.d.ts +3 -0
- package/dist/src/components/radio-group/index.js +3 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +165 -0
- package/dist/src/components/radio-group/radio-group.component.js +437 -0
- package/dist/src/components/radio-group/radio-group.style.d.ts +7 -0
- package/dist/src/components/radio-group/radio-group.style.js +270 -0
- package/dist/src/components/radio-group/radio-group.types.d.ts +39 -0
- package/dist/src/components/radio-group/radio-group.types.js +29 -0
- package/dist/src/components/radio-group/radio.constant.d.ts +2 -0
- package/dist/src/components/radio-group/radio.constant.js +2 -0
- package/dist/src/components/radio-group/react.d.ts +10 -0
- package/dist/src/components/radio-group/react.js +17 -0
- package/dist/src/components/select/bundle.js +721 -0
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/index.d.ts +17 -0
- package/dist/src/components/select/index.js +20 -0
- package/dist/src/components/select/react.d.ts +19 -0
- package/dist/src/components/select/react.js +26 -0
- package/dist/src/components/select/select.component.d.ts +359 -0
- package/dist/src/components/select/select.component.js +775 -0
- package/dist/src/components/select/select.constant.d.ts +133 -0
- package/dist/src/components/select/select.constant.js +136 -0
- package/dist/src/components/select/select.style.d.ts +2 -0
- package/dist/src/components/select/select.style.js +533 -0
- package/dist/src/components/select/select.types.d.ts +100 -0
- package/dist/src/components/select/select.types.js +73 -0
- package/dist/src/components/skeleton/bundle.js +293 -0
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/index.d.ts +3 -0
- package/dist/src/components/skeleton/index.js +3 -0
- package/dist/src/components/skeleton/react.d.ts +3 -0
- package/dist/src/components/skeleton/react.js +10 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +165 -0
- package/dist/src/components/skeleton/skeleton.component.js +387 -0
- package/dist/src/components/skeleton/skeleton.style.d.ts +2 -0
- package/dist/src/components/skeleton/skeleton.style.js +224 -0
- package/dist/src/components/skeleton/skeleton.types.d.ts +82 -0
- package/dist/src/components/skeleton/skeleton.types.js +2 -0
- package/dist/src/components/slider-input/bundle.js +241 -0
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/index.d.ts +3 -0
- package/dist/src/components/slider-input/index.js +3 -0
- package/dist/src/components/slider-input/react.d.ts +340 -0
- package/dist/src/components/slider-input/react.js +13 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +38 -0
- package/dist/src/components/slider-input/slider-input.component.js +191 -0
- package/dist/src/components/slider-input/slider-input.style.d.ts +3 -0
- package/dist/src/components/slider-input/slider-input.style.js +171 -0
- package/dist/src/components/slider-input/slider-input.style.variables.d.ts +2 -0
- package/dist/src/components/slider-input/slider-input.style.variables.js +59 -0
- package/dist/src/components/slider-input/slider-input.types.d.ts +21 -0
- package/dist/src/components/slider-input/slider-input.types.js +6 -0
- package/dist/src/components/table/bundle.js +987 -0
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/index.d.ts +2 -0
- package/dist/src/components/table/index.js +2 -0
- package/dist/src/components/table/react.d.ts +7 -0
- package/dist/src/components/table/react.js +14 -0
- package/dist/src/components/table/table.component.d.ts +140 -0
- package/dist/src/components/table/table.component.js +433 -0
- package/dist/src/components/table/table.style.d.ts +3 -0
- package/dist/src/components/table/table.style.js +702 -0
- package/dist/src/components/table/table.types.d.ts +103 -0
- package/dist/src/components/table/table.types.js +2 -0
- package/dist/src/components/tabs/bundle.js +1782 -0
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/index.d.ts +9 -0
- package/dist/src/components/tabs/index.js +10 -0
- package/dist/src/components/tabs/react.d.ts +50 -0
- package/dist/src/components/tabs/react.js +50 -0
- package/dist/src/components/tabs/tabs.component.d.ts +100 -0
- package/dist/src/components/tabs/tabs.component.js +461 -0
- package/dist/src/components/tabs/tabs.constant.d.ts +20 -0
- package/dist/src/components/tabs/tabs.constant.js +21 -0
- package/dist/src/components/tabs/tabs.style.d.ts +9 -0
- package/dist/src/components/tabs/tabs.style.js +577 -0
- package/dist/src/components/tabs/tabs.types.d.ts +241 -0
- package/dist/src/components/tabs/tabs.types.js +13 -0
- package/dist/src/components/tag/bundle.js +108 -0
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/index.d.ts +2 -0
- package/dist/src/components/tag/index.js +2 -0
- package/dist/src/components/tag/react.d.ts +6 -0
- package/dist/src/components/tag/react.js +13 -0
- package/dist/src/components/tag/tag.component.d.ts +57 -0
- package/dist/src/components/tag/tag.component.js +157 -0
- package/dist/src/components/tag/tag.style.d.ts +7 -0
- package/dist/src/components/tag/tag.style.js +88 -0
- package/dist/src/components/tag/tag.types.d.ts +28 -0
- package/dist/src/components/tag/tag.types.js +7 -0
- package/dist/src/components/textarea/bundle.js +404 -0
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/index.d.ts +8 -0
- package/dist/src/components/textarea/index.js +7 -0
- package/dist/src/components/textarea/react.d.ts +9 -0
- package/dist/src/components/textarea/react.js +16 -0
- package/dist/src/components/textarea/textarea.component.d.ts +203 -0
- package/dist/src/components/textarea/textarea.component.js +657 -0
- package/dist/src/components/textarea/textarea.style.d.ts +59 -0
- package/dist/src/components/textarea/textarea.style.js +386 -0
- package/dist/src/components/textarea/textarea.types.d.ts +102 -0
- package/dist/src/components/textarea/textarea.types.js +14 -0
- package/dist/src/components/timeline/bundle.js +261 -0
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/index.d.ts +2 -0
- package/dist/src/components/timeline/index.js +2 -0
- package/dist/src/components/timeline/react.d.ts +3 -0
- package/dist/src/components/timeline/react.js +10 -0
- package/dist/src/components/timeline/timeline.component.d.ts +109 -0
- package/dist/src/components/timeline/timeline.component.js +214 -0
- package/dist/src/components/timeline/timeline.style.d.ts +14 -0
- package/dist/src/components/timeline/timeline.style.js +234 -0
- package/dist/src/components/timeline/timeline.types.d.ts +62 -0
- package/dist/src/components/timeline/timeline.types.js +7 -0
- package/dist/src/components/timepicker/bundle.js +810 -0
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/index.d.ts +12 -0
- package/dist/src/components/timepicker/index.js +12 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +115 -0
- package/dist/src/components/timepicker/timepicker.component.js +743 -0
- package/dist/src/components/timepicker/timepicker.constants.d.ts +85 -0
- package/dist/src/components/timepicker/timepicker.constants.js +85 -0
- package/dist/src/components/timepicker/timepicker.style.d.ts +7 -0
- package/dist/src/components/timepicker/timepicker.style.js +568 -0
- package/dist/src/components/timepicker/timepicker.style.variables.d.ts +2 -0
- package/dist/src/components/timepicker/timepicker.style.variables.js +122 -0
- package/dist/src/components/timepicker/timepicker.types.d.ts +161 -0
- package/dist/src/components/timepicker/timepicker.types.js +125 -0
- package/dist/src/components/toast/bundle.js +393 -0
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/index.d.ts +9 -0
- package/dist/src/components/toast/index.js +9 -0
- package/dist/src/components/toast/react.d.ts +7 -0
- package/dist/src/components/toast/react.js +19 -0
- package/dist/src/components/toast/toast.component.d.ts +152 -0
- package/dist/src/components/toast/toast.component.js +368 -0
- package/dist/src/components/toast/toast.style.d.ts +14 -0
- package/dist/src/components/toast/toast.style.js +338 -0
- package/dist/src/components/toast/toast.types.d.ts +124 -0
- package/dist/src/components/toast/toast.types.js +9 -0
- package/dist/src/components/tooltips/bundle.js +123 -0
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/index.d.ts +2 -0
- package/dist/src/components/tooltips/index.js +2 -0
- package/dist/src/components/tooltips/react.d.ts +1 -0
- package/dist/src/components/tooltips/react.js +2 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +33 -0
- package/dist/src/components/tooltips/tooltips.component.js +313 -0
- package/dist/src/components/tooltips/tooltips.constant.d.ts +13 -0
- package/dist/src/components/tooltips/tooltips.constant.js +15 -0
- package/dist/src/components/tooltips/tooltips.style.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.style.js +103 -0
- package/dist/src/components/tooltips/tooltips.variables.d.ts +2 -0
- package/dist/src/components/tooltips/tooltips.variables.js +14 -0
- package/dist/src/components/video/bundle.js +171 -0
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/index.d.ts +3 -0
- package/dist/src/components/video/index.js +3 -0
- package/dist/src/components/video/react.d.ts +10 -0
- package/dist/src/components/video/react.js +17 -0
- package/dist/src/components/video/video.component.d.ts +34 -0
- package/dist/src/components/video/video.component.js +184 -0
- package/dist/src/components/video/video.style.d.ts +3 -0
- package/dist/src/components/video/video.style.js +124 -0
- package/dist/src/components/video/video.types.d.ts +80 -0
- package/dist/src/components/video/video.types.js +7 -0
- package/package.json +215 -0
- package/packages/common/README.md +137 -0
- package/packages/common/dist/LICENSE +28 -0
- package/packages/common/dist/README.md +137 -0
- package/packages/common/dist/VERSIONS.md +4 -0
- package/packages/common/dist/constants/index.d.ts +2 -0
- package/packages/common/dist/constants/index.d.ts.map +1 -0
- package/packages/common/dist/constants/index.js +2 -0
- package/packages/common/dist/constants/index.js.map +1 -0
- package/packages/common/dist/constants.d.ts +17 -0
- package/packages/common/dist/constants.d.ts.map +1 -0
- package/packages/common/dist/constants.js +7 -0
- package/packages/common/dist/constants.js.map +1 -0
- package/packages/common/dist/controllers/index.d.ts +2 -0
- package/packages/common/dist/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/controllers/index.js +2 -0
- package/packages/common/dist/controllers/index.js.map +1 -0
- package/packages/common/dist/controllers.d.ts +21 -0
- package/packages/common/dist/controllers.d.ts.map +1 -0
- package/packages/common/dist/controllers.js +22 -0
- package/packages/common/dist/controllers.js.map +1 -0
- package/packages/common/dist/index.d.ts +25 -0
- package/packages/common/dist/index.d.ts.map +1 -0
- package/packages/common/dist/index.js +27 -0
- package/packages/common/dist/index.js.map +1 -0
- package/packages/common/dist/mixins/index.d.ts +2 -0
- package/packages/common/dist/mixins/index.d.ts.map +1 -0
- package/packages/common/dist/mixins/index.js +3 -0
- package/packages/common/dist/mixins/index.js.map +1 -0
- package/packages/common/dist/mixins.d.ts +26 -0
- package/packages/common/dist/mixins.d.ts.map +1 -0
- package/packages/common/dist/mixins.js +29 -0
- package/packages/common/dist/mixins.js.map +1 -0
- package/packages/common/dist/shared/base-mixin.d.ts +42 -0
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/base-mixin.js +38 -0
- package/packages/common/dist/shared/base-mixin.js.map +1 -0
- package/packages/common/dist/shared/constants.d.ts +1 -0
- package/packages/common/dist/shared/constants.d.ts.map +1 -0
- package/packages/common/dist/shared/constants.js +2 -0
- package/packages/common/dist/shared/constants.js.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts +81 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js +104 -0
- package/packages/common/dist/shared/controllers/base-validation.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts +76 -0
- package/packages/common/dist/shared/controllers/base.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/base.controller.js +129 -0
- package/packages/common/dist/shared/controllers/base.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts +77 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js +341 -0
- package/packages/common/dist/shared/controllers/dropdown.controller.js.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts +37 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js +2 -0
- package/packages/common/dist/shared/controllers/dropdown.interface.js.map +1 -0
- package/packages/common/dist/shared/controllers/index.d.ts +6 -0
- package/packages/common/dist/shared/controllers/index.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/index.js +6 -0
- package/packages/common/dist/shared/controllers/index.js.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts +48 -0
- package/packages/common/dist/shared/controllers/theme.controller.d.ts.map +1 -0
- package/packages/common/dist/shared/controllers/theme.controller.js +133 -0
- package/packages/common/dist/shared/controllers/theme.controller.js.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts +37 -0
- package/packages/common/dist/shared/dependency-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/dependency-mixin.js +141 -0
- package/packages/common/dist/shared/dependency-mixin.js.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts +64 -0
- package/packages/common/dist/shared/event-handler-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/event-handler-mixin.js +95 -0
- package/packages/common/dist/shared/event-handler-mixin.js.map +1 -0
- package/packages/common/dist/shared/index.d.ts +13 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -0
- package/packages/common/dist/shared/index.js +17 -0
- package/packages/common/dist/shared/index.js.map +1 -0
- package/packages/common/dist/shared/render-utils.d.ts +103 -0
- package/packages/common/dist/shared/render-utils.d.ts.map +1 -0
- package/packages/common/dist/shared/render-utils.js +132 -0
- package/packages/common/dist/shared/render-utils.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +78 -0
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -0
- package/packages/common/dist/shared/theme-mixin.js +194 -0
- package/packages/common/dist/shared/theme-mixin.js.map +1 -0
- package/packages/common/dist/shared/themes.d.ts +44 -0
- package/packages/common/dist/shared/themes.d.ts.map +1 -0
- package/packages/common/dist/shared/themes.js +85 -0
- package/packages/common/dist/shared/themes.js.map +1 -0
- package/packages/common/dist/shared/utils.d.ts +60 -0
- package/packages/common/dist/shared/utils.d.ts.map +1 -0
- package/packages/common/dist/shared/utils.js +85 -0
- package/packages/common/dist/shared/utils.js.map +1 -0
- package/packages/common/dist/shared/validation.types.d.ts +108 -0
- package/packages/common/dist/shared/validation.types.d.ts.map +1 -0
- package/packages/common/dist/shared/validation.types.js +17 -0
- package/packages/common/dist/shared/validation.types.js.map +1 -0
- package/packages/common/dist/themes/index.d.ts +2 -0
- package/packages/common/dist/themes/index.d.ts.map +1 -0
- package/packages/common/dist/themes/index.js +2 -0
- package/packages/common/dist/themes/index.js.map +1 -0
- package/packages/common/dist/themes.d.ts +22 -0
- package/packages/common/dist/themes.d.ts.map +1 -0
- package/packages/common/dist/themes.js +23 -0
- package/packages/common/dist/themes.js.map +1 -0
- package/packages/common/dist/utils/index.d.ts +2 -0
- package/packages/common/dist/utils/index.d.ts.map +1 -0
- package/packages/common/dist/utils/index.js +2 -0
- package/packages/common/dist/utils/index.js.map +1 -0
- package/packages/common/dist/utils.d.ts +22 -0
- package/packages/common/dist/utils.d.ts.map +1 -0
- package/packages/common/dist/utils.js +24 -0
- package/packages/common/dist/utils.js.map +1 -0
- package/packages/themes/README.md +146 -0
- package/packages/themes/dist/README.md +146 -0
- package/packages/themes/dist/carbon.css +2987 -0
- package/packages/themes/dist/default.css +2757 -0
- package/packages/themes/dist/editor.css +1063 -0
- package/packages/themes/dist/index.cjs +46 -0
- package/packages/themes/dist/index.js +46 -0
- package/packages/themes/dist/package.json +59 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { PanelMode } from '../panel/panel.types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Tab orientation options
|
|
9
|
+
*/
|
|
10
|
+
export declare const enum TabOrientation {
|
|
11
|
+
Horizontal = "horizontal",
|
|
12
|
+
Vertical = "vertical"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Tab alignment options
|
|
16
|
+
*/
|
|
17
|
+
export declare const enum TabsAlign {
|
|
18
|
+
Right = "right",
|
|
19
|
+
Left = "left",
|
|
20
|
+
Center = "center",
|
|
21
|
+
Stretch = "stretch"
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Tab size options
|
|
25
|
+
*/
|
|
26
|
+
export declare const enum TabSize {
|
|
27
|
+
Small = "small",
|
|
28
|
+
Medium = "medium",
|
|
29
|
+
Large = "large"
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Tab type/variant options
|
|
33
|
+
*/
|
|
34
|
+
export declare const enum TabType {
|
|
35
|
+
Default = "default",
|
|
36
|
+
Card = "card",
|
|
37
|
+
Line = "line",
|
|
38
|
+
Bordered = "bordered"
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Tab events enumeration
|
|
42
|
+
*/
|
|
43
|
+
export declare const enum TabEvent {
|
|
44
|
+
TabClick = "nr-tab-click",
|
|
45
|
+
TabAdd = "nr-tab-add",
|
|
46
|
+
TabRemove = "nr-tab-remove",
|
|
47
|
+
TabEdit = "nr-tab-edit",
|
|
48
|
+
TabOrderChange = "nr-tab-order-change",
|
|
49
|
+
TabChange = "nr-tab-change",
|
|
50
|
+
TabPopOut = "nr-tab-pop-out",
|
|
51
|
+
TabPopIn = "nr-tab-pop-in"
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Pop-out state enumeration
|
|
55
|
+
*/
|
|
56
|
+
export declare const enum TabPopOutState {
|
|
57
|
+
Normal = "normal",
|
|
58
|
+
PoppedOut = "popped-out",
|
|
59
|
+
Placeholder = "placeholder"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Pop-out configuration interface
|
|
63
|
+
*/
|
|
64
|
+
export interface TabPopOutConfig {
|
|
65
|
+
/** Whether pop-out functionality is enabled */
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
/** Whether tabs can be popped out */
|
|
68
|
+
canPopOut?: boolean;
|
|
69
|
+
/** Whether popped-out tabs can be popped back in */
|
|
70
|
+
canPopIn?: boolean;
|
|
71
|
+
/** Panel configuration for popped-out tabs */
|
|
72
|
+
windowPanel?: {
|
|
73
|
+
/** Panel title template (can use {tabLabel} placeholder) */
|
|
74
|
+
title?: string;
|
|
75
|
+
/** Panel icon */
|
|
76
|
+
icon?: string;
|
|
77
|
+
/** Default panel width */
|
|
78
|
+
width?: string;
|
|
79
|
+
/** Default panel height */
|
|
80
|
+
height?: string;
|
|
81
|
+
/** Whether panel is resizable */
|
|
82
|
+
resizable?: boolean;
|
|
83
|
+
/** Whether panel is draggable */
|
|
84
|
+
draggable?: boolean;
|
|
85
|
+
/** Whether panel can be closed (will pop tab back in) */
|
|
86
|
+
closable?: boolean;
|
|
87
|
+
/** Whether panel can be minimized */
|
|
88
|
+
minimizable?: boolean;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Popped-out tab tracking interface
|
|
93
|
+
*/
|
|
94
|
+
export interface PoppedOutTab {
|
|
95
|
+
/** Tab data */
|
|
96
|
+
tab: TabItem;
|
|
97
|
+
/** Original index in tabs array */
|
|
98
|
+
originalIndex: number;
|
|
99
|
+
/** Current pop-out state */
|
|
100
|
+
state: TabPopOutState;
|
|
101
|
+
/** Panel element reference */
|
|
102
|
+
panelElement?: HTMLElement;
|
|
103
|
+
/** Unique identifier for this pop-out instance */
|
|
104
|
+
popOutId: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Individual tab configuration interface
|
|
108
|
+
*/
|
|
109
|
+
export interface TabItem {
|
|
110
|
+
/** Unique identifier for the tab */
|
|
111
|
+
id?: string | number;
|
|
112
|
+
/** Tab label/title */
|
|
113
|
+
label: string;
|
|
114
|
+
/** Tab content (HTML template or string) */
|
|
115
|
+
content?: any;
|
|
116
|
+
/** Whether the tab is disabled */
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
/** Whether the tab can be closed */
|
|
119
|
+
closable?: boolean;
|
|
120
|
+
/** Icon for the tab */
|
|
121
|
+
icon?: string;
|
|
122
|
+
/** Custom CSS classes for the tab */
|
|
123
|
+
className?: string;
|
|
124
|
+
/** Tab-specific editable options */
|
|
125
|
+
editable?: Partial<TabEditable>;
|
|
126
|
+
/** Tab-specific pop-out options */
|
|
127
|
+
popOut?: Partial<TabPopOutConfig>;
|
|
128
|
+
/** Custom data attributes */
|
|
129
|
+
data?: Record<string, any>;
|
|
130
|
+
/** Current pop-out state */
|
|
131
|
+
popOutState?: TabPopOutState;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Tab editable configuration interface
|
|
135
|
+
*/
|
|
136
|
+
export interface TabEditable {
|
|
137
|
+
/** Whether tabs can be deleted/removed */
|
|
138
|
+
canDeleteTab: boolean;
|
|
139
|
+
/** Whether tab titles can be edited inline */
|
|
140
|
+
canEditTabTitle: boolean;
|
|
141
|
+
/** Whether new tabs can be added */
|
|
142
|
+
canAddTab: boolean;
|
|
143
|
+
/** Whether tabs can be reordered via drag & drop */
|
|
144
|
+
canMove: boolean;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Tab panel configuration interface for making tabs pannable
|
|
148
|
+
*/
|
|
149
|
+
export interface TabsPanelConfig {
|
|
150
|
+
/** Whether panel wrapper is enabled */
|
|
151
|
+
enabled: boolean;
|
|
152
|
+
/** Panel mode */
|
|
153
|
+
mode?: PanelMode;
|
|
154
|
+
/** Panel size (inherits from tabs if not specified) */
|
|
155
|
+
size?: string;
|
|
156
|
+
/** Whether the panel is resizable */
|
|
157
|
+
resizable?: boolean;
|
|
158
|
+
/** Whether the panel is draggable */
|
|
159
|
+
draggable?: boolean;
|
|
160
|
+
/** Whether the panel can be closed */
|
|
161
|
+
closable?: boolean;
|
|
162
|
+
/** Whether the panel can be minimized */
|
|
163
|
+
minimizable?: boolean;
|
|
164
|
+
/** Panel title */
|
|
165
|
+
title?: string;
|
|
166
|
+
/** Panel icon */
|
|
167
|
+
icon?: string;
|
|
168
|
+
/** Custom panel width */
|
|
169
|
+
width?: string;
|
|
170
|
+
/** Custom panel height */
|
|
171
|
+
height?: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Tab event detail interfaces
|
|
175
|
+
*/
|
|
176
|
+
export interface TabClickEventDetail {
|
|
177
|
+
index: number;
|
|
178
|
+
tab: TabItem;
|
|
179
|
+
previousIndex?: number;
|
|
180
|
+
}
|
|
181
|
+
export interface TabAddEventDetail {
|
|
182
|
+
tab?: Partial<TabItem>;
|
|
183
|
+
index?: number;
|
|
184
|
+
}
|
|
185
|
+
export interface TabRemoveEventDetail {
|
|
186
|
+
index: number;
|
|
187
|
+
tab: TabItem;
|
|
188
|
+
}
|
|
189
|
+
export interface TabEditEventDetail {
|
|
190
|
+
index: number;
|
|
191
|
+
tab: TabItem;
|
|
192
|
+
oldLabel: string;
|
|
193
|
+
newLabel: string;
|
|
194
|
+
}
|
|
195
|
+
export interface TabOrderChangeEventDetail {
|
|
196
|
+
sourceIndex: number;
|
|
197
|
+
targetIndex: number;
|
|
198
|
+
sourceTab: TabItem;
|
|
199
|
+
targetTab: TabItem;
|
|
200
|
+
}
|
|
201
|
+
export interface TabPopOutEventDetail {
|
|
202
|
+
index: number;
|
|
203
|
+
tab: TabItem;
|
|
204
|
+
popOutId: string;
|
|
205
|
+
}
|
|
206
|
+
export interface TabPopInEventDetail {
|
|
207
|
+
tab: TabItem;
|
|
208
|
+
originalIndex: number;
|
|
209
|
+
popOutId: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Tab configuration options
|
|
213
|
+
*/
|
|
214
|
+
export interface TabsConfig {
|
|
215
|
+
/** Tab orientation */
|
|
216
|
+
orientation?: TabOrientation;
|
|
217
|
+
/** Tab alignment */
|
|
218
|
+
align?: TabsAlign;
|
|
219
|
+
/** Tab size */
|
|
220
|
+
size?: TabSize;
|
|
221
|
+
/** Tab type/variant */
|
|
222
|
+
type?: TabType;
|
|
223
|
+
/** Whether tabs are editable */
|
|
224
|
+
editable?: TabEditable;
|
|
225
|
+
/** Pop-out configuration */
|
|
226
|
+
popOut?: TabPopOutConfig;
|
|
227
|
+
/** Whether tabs are animated */
|
|
228
|
+
animated?: boolean;
|
|
229
|
+
/** Whether to hide tab content when tab is not active */
|
|
230
|
+
destroyInactiveTabPane?: boolean;
|
|
231
|
+
/** Custom tab bar extra content */
|
|
232
|
+
tabBarExtraContent?: any;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Constants
|
|
236
|
+
*/
|
|
237
|
+
export declare const EMPTY_STRING = "";
|
|
238
|
+
export declare const NOTHING_STRING = "";
|
|
239
|
+
export declare const DEFAULT_ACTIVE_TAB = 0;
|
|
240
|
+
export declare const LABEL_ATTRIBUTES = "label";
|
|
241
|
+
//# sourceMappingURL=tabs.types.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Constants
|
|
8
|
+
*/
|
|
9
|
+
export const EMPTY_STRING = '';
|
|
10
|
+
export const NOTHING_STRING = '';
|
|
11
|
+
export const DEFAULT_ACTIVE_TAB = 0;
|
|
12
|
+
export const LABEL_ATTRIBUTES = 'label';
|
|
13
|
+
//# sourceMappingURL=tabs.types.js.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import{css as o,LitElement as r,html as a,nothing as t}from"lit";import{property as e,state as l,customElement as c}from"lit/decorators.js";import{classMap as i}from"lit/directives/class-map.js";import{ifDefined as s}from"lit/directives/if-defined.js";import{NuralyUIBaseMixin as n}from"@nuralyui/common/mixins";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2025 Nuraly
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const d=o`
|
|
7
|
+
:host { display: inline-block; }
|
|
8
|
+
|
|
9
|
+
.tag {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--nuraly-tag-gap, 6px);
|
|
13
|
+
height: var(--nuraly-tag-height, auto);
|
|
14
|
+
padding: var(--nuraly-tag-padding-y, 0px) var(--nuraly-tag-padding-x, 8px);
|
|
15
|
+
font-family: var(--nuraly-font-family);
|
|
16
|
+
font-size: var(--nuraly-tag-font-size, var(--nuraly-font-size-sm));
|
|
17
|
+
line-height: 1;
|
|
18
|
+
color: var(--nuraly-tag-color, var(--nuraly-color-text));
|
|
19
|
+
background-color: var(--nuraly-tag-bg, var(--nuraly-color-background));
|
|
20
|
+
border: 1px solid var(--nuraly-tag-border-color, var(--nuraly-color-border));
|
|
21
|
+
border-radius: var(--nuraly-tag-radius, var(--nuraly-border-radius-sm));
|
|
22
|
+
transition: all var(--nuraly-transition-fast) ease;
|
|
23
|
+
user-select: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tag--borderless { border-color: transparent; }
|
|
27
|
+
|
|
28
|
+
.tag--small {
|
|
29
|
+
padding: var(--nuraly-tag-padding-y-sm, 0px) var(--nuraly-tag-padding-x-sm, 6px);
|
|
30
|
+
font-size: var(--nuraly-tag-font-size-sm, var(--nuraly-font-size-xs));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Checkable behavior */
|
|
34
|
+
.tag--checkable { cursor: pointer; }
|
|
35
|
+
.tag--checkable:not(.tag--disabled):hover {
|
|
36
|
+
background-color: var(--nuraly-tag-checkable-hover-bg, var(--nuraly-color-background-hover));
|
|
37
|
+
}
|
|
38
|
+
.tag--checkable.tag--checked {
|
|
39
|
+
background-color: var(--nuraly-tag-checked-bg, var(--nuraly-color-primary-light));
|
|
40
|
+
color: var(--nuraly-tag-checked-color, var(--nuraly-color-primary-dark));
|
|
41
|
+
border-color: var(--nuraly-tag-checked-border-color, var(--nuraly-color-border-brand));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.tag--disabled { opacity: 0.6; cursor: not-allowed; }
|
|
45
|
+
|
|
46
|
+
.tag__icon { display: inline-flex; align-items: center; }
|
|
47
|
+
.tag__content { display: inline-flex; align-items: center; }
|
|
48
|
+
|
|
49
|
+
.tag__close {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
width: 16px;
|
|
54
|
+
height: 16px;
|
|
55
|
+
line-height: 1;
|
|
56
|
+
padding: 0;
|
|
57
|
+
border: none;
|
|
58
|
+
background: transparent;
|
|
59
|
+
color: currentColor;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
border-radius: var(--nuraly-border-radius-xs);
|
|
62
|
+
transition: background-color var(--nuraly-transition-fast) ease, opacity var(--nuraly-transition-fast) ease;
|
|
63
|
+
}
|
|
64
|
+
.tag__close:hover { background-color: var(--nuraly-color-background-hover); }
|
|
65
|
+
.tag__close:disabled { cursor: not-allowed; opacity: 0.6; }
|
|
66
|
+
|
|
67
|
+
/* Closing animation (height/opacity collapse) */
|
|
68
|
+
@keyframes tagFadeOut { from { opacity: 1; } to { opacity: 0; } }
|
|
69
|
+
.tag--closing { animation: tagFadeOut 0.2s ease forwards; }
|
|
70
|
+
|
|
71
|
+
/* Preset solid color tags similar to AntD */
|
|
72
|
+
.tag--magenta { background-color: #f759ab; border-color: #f759ab; color: #fff; }
|
|
73
|
+
.tag--red { background-color: #ff4d4f; border-color: #ff4d4f; color: #fff; }
|
|
74
|
+
.tag--volcano { background-color: #fa541c; border-color: #fa541c; color: #fff; }
|
|
75
|
+
.tag--orange { background-color: #fa8c16; border-color: #fa8c16; color: #fff; }
|
|
76
|
+
.tag--gold { background-color: #faad14; border-color: #faad14; color: rgba(0,0,0,0.88); }
|
|
77
|
+
.tag--lime { background-color: #a0d911; border-color: #a0d911; color: rgba(0,0,0,0.88); }
|
|
78
|
+
.tag--green { background-color: #52c41a; border-color: #52c41a; color: #fff; }
|
|
79
|
+
.tag--cyan { background-color: #13c2c2; border-color: #13c2c2; color: #fff; }
|
|
80
|
+
.tag--blue { background-color: #1677ff; border-color: #1677ff; color: #fff; }
|
|
81
|
+
.tag--geekblue { background-color: #2f54eb; border-color: #2f54eb; color: #fff; }
|
|
82
|
+
.tag--purple { background-color: #722ed1; border-color: #722ed1; color: #fff; }
|
|
83
|
+
|
|
84
|
+
/* Custom color tag hue via inline CSS variable */
|
|
85
|
+
.tag--custom { background-color: var(--nr-tag-custom-bg); border-color: var(--nr-tag-custom-bg); color: var(--nuraly-color-text-on-color, #fff); }
|
|
86
|
+
`
|
|
87
|
+
/**
|
|
88
|
+
* @license
|
|
89
|
+
* Copyright 2025 Nuraly
|
|
90
|
+
* SPDX-License-Identifier: MIT
|
|
91
|
+
*/;var g=function(o,r,a,t){for(var e,l=arguments.length,c=l<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,a):t,i=o.length-1;i>=0;i--)(e=o[i])&&(c=(l<3?e(c):l>3?e(r,a,c):e(r,a))||c);return l>3&&c&&Object.defineProperty(r,a,c),c};let u=class extends(n(r)){constructor(){super(...arguments),this.bordered=!0,this.size="default",this.closable=!1,this.checkable=!1,this.checked=!1,this.disabled=!1,this.closing=!1}connectedCallback(){super.connectedCallback(),this.lightDomObserver=new MutationObserver(()=>{this.requestUpdate()}),this.lightDomObserver.observe(this,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}disconnectedCallback(){var o;null===(o=this.lightDomObserver)||void 0===o||o.disconnect(),this.lightDomObserver=void 0,super.disconnectedCallback()}onCloseClick(o){o.stopPropagation(),this.closable&&!this.disabled&&(this.closing=!0,setTimeout(()=>{this.dispatchEvent(new CustomEvent("nr-tag-close",{bubbles:!0,composed:!0})),this.closing=!1},200))}onToggleChecked(){this.checkable&&!this.disabled&&(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("nr-tag-checked-change",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}isPreset(o){return!!o&&b.has(o)}render(){const o=!!this.querySelector('[slot="icon"]'),r=!!this.color&&!this.isPreset(this.color),e=Object.assign(Object.assign({tag:!0,"tag--small":"small"===this.size,"tag--borderless":!this.bordered,"tag--closable":this.closable,"tag--checkable":this.checkable,"tag--checked":this.checkable&&this.checked,"tag--disabled":this.disabled,"tag--closing":this.closing},this.color&&this.isPreset(this.color)?{[`tag--${this.color}`]:!0}:{}),{"tag--custom":r}),l={};r&&this.color&&(l["--nr-tag-custom-bg"]=this.color);const c=this.checkable?"switch":"button",n=this.checkable?this.checked?"true":"false":void 0;return a`
|
|
92
|
+
<span
|
|
93
|
+
class=${i(e)}
|
|
94
|
+
style=${Object.entries(l).map(([o,r])=>`${o}: ${r}`).join(";")}
|
|
95
|
+
role=${c}
|
|
96
|
+
aria-pressed=${s(n)}
|
|
97
|
+
aria-disabled=${this.disabled?"true":"false"}
|
|
98
|
+
@click=${this.checkable?this.onToggleChecked:void 0}
|
|
99
|
+
>
|
|
100
|
+
${o?a`<span class="tag__icon"><slot name="icon"></slot></span>`:t}
|
|
101
|
+
<span class="tag__content"><slot></slot></span>
|
|
102
|
+
${this.closable?a`
|
|
103
|
+
<button class="tag__close" part="close" aria-label="close" ?disabled=${this.disabled} @click=${this.onCloseClick}>
|
|
104
|
+
×
|
|
105
|
+
</button>
|
|
106
|
+
`:t}
|
|
107
|
+
</span>
|
|
108
|
+
`}};u.styles=d,g([e({type:String})],u.prototype,"color",void 0),g([e({type:Boolean,reflect:!0})],u.prototype,"bordered",void 0),g([e({type:String})],u.prototype,"size",void 0),g([e({type:Boolean})],u.prototype,"closable",void 0),g([e({type:Boolean})],u.prototype,"checkable",void 0),g([e({type:Boolean,reflect:!0})],u.prototype,"checked",void 0),g([e({type:Boolean,reflect:!0})],u.prototype,"disabled",void 0),g([l()],u.prototype,"closing",void 0),u=g([c("nr-tag")],u);const b=new Set(["magenta","red","volcano","orange","gold","lime","green","cyan","blue","geekblue","purple"]);export{u as NrTagElement};
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createComponent } from '@lit-labs/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { NrTagElement } from './tag.component.js';
|
|
4
|
+
export const NrTag = createComponent({
|
|
5
|
+
tagName: 'nr-tag',
|
|
6
|
+
elementClass: NrTagElement,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
'nr-tag-close': 'nr-tag-close',
|
|
10
|
+
'nr-tag-checked-change': 'nr-tag-checked-change',
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Nuraly
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { TagSize } from './tag.types.js';
|
|
8
|
+
declare const NrTagElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
|
|
9
|
+
/**
|
|
10
|
+
* Tag component
|
|
11
|
+
* Features:
|
|
12
|
+
* - Preset colors and custom color support
|
|
13
|
+
* - Closable tags with onClose event
|
|
14
|
+
* - Checkable tags with checked state and change event
|
|
15
|
+
* - Small size variant
|
|
16
|
+
* - Disabled state
|
|
17
|
+
* - Theme-aware through CSS variables
|
|
18
|
+
*
|
|
19
|
+
* @slot - Tag content
|
|
20
|
+
* @slot icon - Optional leading icon
|
|
21
|
+
* @fires nr-tag-close - when the close icon is clicked
|
|
22
|
+
* @fires nr-tag-checked-change - when a checkable tag toggles
|
|
23
|
+
*/
|
|
24
|
+
export declare class NrTagElement extends NrTagElement_base {
|
|
25
|
+
static styles: import("lit").CSSResult;
|
|
26
|
+
/** Tag color preset or custom color string (hex/rgb) */
|
|
27
|
+
color?: string;
|
|
28
|
+
/** Bordered style */
|
|
29
|
+
bordered: boolean;
|
|
30
|
+
/** Small size */
|
|
31
|
+
size: TagSize;
|
|
32
|
+
/** Closable */
|
|
33
|
+
closable: boolean;
|
|
34
|
+
/** Checkable */
|
|
35
|
+
checkable: boolean;
|
|
36
|
+
/** Checked (for checkable) */
|
|
37
|
+
checked: boolean;
|
|
38
|
+
/** Disabled */
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
/** Internal closing anim state */
|
|
41
|
+
private closing;
|
|
42
|
+
/** Track if an icon is actually provided via slot */
|
|
43
|
+
private lightDomObserver?;
|
|
44
|
+
connectedCallback(): void;
|
|
45
|
+
disconnectedCallback(): void;
|
|
46
|
+
private onCloseClick;
|
|
47
|
+
private onToggleChecked;
|
|
48
|
+
private isPreset;
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
'nr-tag': NrTagElement;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=tag.component.d.ts.map
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Nuraly
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
import { LitElement, html, nothing } from 'lit';
|
|
13
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
14
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
15
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
16
|
+
import { styles } from './tag.style.js';
|
|
17
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
18
|
+
/**
|
|
19
|
+
* Tag component
|
|
20
|
+
* Features:
|
|
21
|
+
* - Preset colors and custom color support
|
|
22
|
+
* - Closable tags with onClose event
|
|
23
|
+
* - Checkable tags with checked state and change event
|
|
24
|
+
* - Small size variant
|
|
25
|
+
* - Disabled state
|
|
26
|
+
* - Theme-aware through CSS variables
|
|
27
|
+
*
|
|
28
|
+
* @slot - Tag content
|
|
29
|
+
* @slot icon - Optional leading icon
|
|
30
|
+
* @fires nr-tag-close - when the close icon is clicked
|
|
31
|
+
* @fires nr-tag-checked-change - when a checkable tag toggles
|
|
32
|
+
*/
|
|
33
|
+
let NrTagElement = class NrTagElement extends NuralyUIBaseMixin(LitElement) {
|
|
34
|
+
constructor() {
|
|
35
|
+
super(...arguments);
|
|
36
|
+
/** Bordered style */
|
|
37
|
+
this.bordered = true;
|
|
38
|
+
/** Small size */
|
|
39
|
+
this.size = "default" /* TagSize.Default */;
|
|
40
|
+
/** Closable */
|
|
41
|
+
this.closable = false;
|
|
42
|
+
/** Checkable */
|
|
43
|
+
this.checkable = false;
|
|
44
|
+
/** Checked (for checkable) */
|
|
45
|
+
this.checked = false;
|
|
46
|
+
/** Disabled */
|
|
47
|
+
this.disabled = false;
|
|
48
|
+
/** Internal closing anim state */
|
|
49
|
+
this.closing = false;
|
|
50
|
+
}
|
|
51
|
+
connectedCallback() {
|
|
52
|
+
super.connectedCallback();
|
|
53
|
+
// Observe light DOM children to detect when an icon slot is added/removed dynamically
|
|
54
|
+
this.lightDomObserver = new MutationObserver(() => {
|
|
55
|
+
// Trigger re-render so we can recompute hasIcon in render()
|
|
56
|
+
this.requestUpdate();
|
|
57
|
+
});
|
|
58
|
+
this.lightDomObserver.observe(this, { childList: true, subtree: false, attributes: true, attributeFilter: ['slot'] });
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
var _a;
|
|
62
|
+
(_a = this.lightDomObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
|
+
this.lightDomObserver = undefined;
|
|
64
|
+
super.disconnectedCallback();
|
|
65
|
+
}
|
|
66
|
+
onCloseClick(e) {
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
if (!this.closable || this.disabled)
|
|
69
|
+
return;
|
|
70
|
+
this.closing = true;
|
|
71
|
+
// match CSS animation duration ~200ms
|
|
72
|
+
setTimeout(() => {
|
|
73
|
+
this.dispatchEvent(new CustomEvent('nr-tag-close', { bubbles: true, composed: true }));
|
|
74
|
+
// Consumers can remove the element on event; keep visible otherwise
|
|
75
|
+
this.closing = false;
|
|
76
|
+
}, 200);
|
|
77
|
+
}
|
|
78
|
+
onToggleChecked() {
|
|
79
|
+
if (!this.checkable || this.disabled)
|
|
80
|
+
return;
|
|
81
|
+
this.checked = !this.checked;
|
|
82
|
+
this.dispatchEvent(new CustomEvent('nr-tag-checked-change', {
|
|
83
|
+
detail: { checked: this.checked },
|
|
84
|
+
bubbles: true,
|
|
85
|
+
composed: true,
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
isPreset(color) {
|
|
89
|
+
if (!color)
|
|
90
|
+
return false;
|
|
91
|
+
return PRESET_COLOR_SET.has(color);
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
const hasIcon = !!this.querySelector('[slot="icon"]');
|
|
95
|
+
const isCustom = !!this.color && !this.isPreset(this.color);
|
|
96
|
+
const classes = Object.assign(Object.assign({ tag: true, 'tag--small': this.size === "small" /* TagSize.Small */, 'tag--borderless': !this.bordered, 'tag--closable': this.closable, 'tag--checkable': this.checkable, 'tag--checked': this.checkable && this.checked, 'tag--disabled': this.disabled, 'tag--closing': this.closing }, (this.color && this.isPreset(this.color) ? { [`tag--${this.color}`]: true } : {})), {
|
|
97
|
+
// custom color modifier
|
|
98
|
+
'tag--custom': isCustom });
|
|
99
|
+
const styleMap = {};
|
|
100
|
+
if (isCustom && this.color) {
|
|
101
|
+
styleMap['--nr-tag-custom-bg'] = this.color;
|
|
102
|
+
}
|
|
103
|
+
const role = this.checkable ? 'switch' : 'button';
|
|
104
|
+
const ariaPressed = this.checkable ? (this.checked ? 'true' : 'false') : undefined;
|
|
105
|
+
return html `
|
|
106
|
+
<span
|
|
107
|
+
class=${classMap(classes)}
|
|
108
|
+
style=${Object.entries(styleMap).map(([k, v]) => `${k}: ${v}`).join(';')}
|
|
109
|
+
role=${role}
|
|
110
|
+
aria-pressed=${ifDefined(ariaPressed)}
|
|
111
|
+
aria-disabled=${this.disabled ? 'true' : 'false'}
|
|
112
|
+
@click=${this.checkable ? this.onToggleChecked : undefined}
|
|
113
|
+
>
|
|
114
|
+
${hasIcon ? html `<span class="tag__icon"><slot name="icon"></slot></span>` : nothing}
|
|
115
|
+
<span class="tag__content"><slot></slot></span>
|
|
116
|
+
${this.closable ? html `
|
|
117
|
+
<button class="tag__close" part="close" aria-label="close" ?disabled=${this.disabled} @click=${this.onCloseClick}>
|
|
118
|
+
×
|
|
119
|
+
</button>
|
|
120
|
+
` : nothing}
|
|
121
|
+
</span>
|
|
122
|
+
`;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
NrTagElement.styles = styles;
|
|
126
|
+
__decorate([
|
|
127
|
+
property({ type: String })
|
|
128
|
+
], NrTagElement.prototype, "color", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property({ type: Boolean, reflect: true })
|
|
131
|
+
], NrTagElement.prototype, "bordered", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ type: String })
|
|
134
|
+
], NrTagElement.prototype, "size", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
property({ type: Boolean })
|
|
137
|
+
], NrTagElement.prototype, "closable", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
property({ type: Boolean })
|
|
140
|
+
], NrTagElement.prototype, "checkable", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
property({ type: Boolean, reflect: true })
|
|
143
|
+
], NrTagElement.prototype, "checked", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
property({ type: Boolean, reflect: true })
|
|
146
|
+
], NrTagElement.prototype, "disabled", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
state()
|
|
149
|
+
], NrTagElement.prototype, "closing", void 0);
|
|
150
|
+
NrTagElement = __decorate([
|
|
151
|
+
customElement('nr-tag')
|
|
152
|
+
], NrTagElement);
|
|
153
|
+
export { NrTagElement };
|
|
154
|
+
const PRESET_COLOR_SET = new Set([
|
|
155
|
+
'magenta', 'red', 'volcano', 'orange', 'gold', 'lime', 'green', 'cyan', 'blue', 'geekblue', 'purple'
|
|
156
|
+
]);
|
|
157
|
+
//# sourceMappingURL=tag.component.js.map
|