@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,352 @@
|
|
|
1
|
+
import{css as e,LitElement as r,html as a}from"lit";import{property as c,customElement as o}from"lit/decorators.js";import{NuralyUIBaseMixin as l}from"@nuralyui/common/mixins";const t=e`
|
|
2
|
+
/* ========================================
|
|
3
|
+
* CHECKBOX CSS VARIABLES - FALLBACK VALUES
|
|
4
|
+
* ========================================
|
|
5
|
+
* These fallback values ensure the component works even without theme files
|
|
6
|
+
*/
|
|
7
|
+
:host {
|
|
8
|
+
/* Base checkbox appearance */
|
|
9
|
+
--nuraly-checkbox-background: var(--nuraly-color-checkbox-background, #ffffff);
|
|
10
|
+
--nuraly-checkbox-text-color: var(--nuraly-color-checkbox-text, rgba(0, 0, 0, 0.88));
|
|
11
|
+
--nuraly-checkbox-label-color: var(--nuraly-color-checkbox-label, rgba(0, 0, 0, 0.88));
|
|
12
|
+
|
|
13
|
+
/* Checkbox borders and outline */
|
|
14
|
+
--nuraly-checkbox-border: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border, #d9d9d9);
|
|
15
|
+
--nuraly-checkbox-border-radius: var(--nuraly-border-radius-checkbox, 2px);
|
|
16
|
+
--nuraly-checkbox-border-focus: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border-focus, #1890ff);
|
|
17
|
+
--nuraly-checkbox-border-hover: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border-hover, #40a9ff);
|
|
18
|
+
|
|
19
|
+
/* Checked/active states */
|
|
20
|
+
--nuraly-checkbox-checked-background: var(--nuraly-color-checkbox-checked-background, #1890ff);
|
|
21
|
+
--nuraly-checkbox-checked-border: var(--nuraly-color-checkbox-checked-border, #1890ff);
|
|
22
|
+
--nuraly-checkbox-checkmark-color: var(--nuraly-color-checkbox-checkmark, #ffffff);
|
|
23
|
+
--nuraly-checkbox-indeterminate-background: var(--nuraly-color-checkbox-indeterminate-background, #1890ff);
|
|
24
|
+
--nuraly-checkbox-indeterminate-mark-color: var(--nuraly-color-checkbox-indeterminate-mark, #ffffff);
|
|
25
|
+
|
|
26
|
+
/* Disabled states */
|
|
27
|
+
--nuraly-checkbox-disabled-background: var(--nuraly-color-checkbox-disabled-background, #f5f5f5);
|
|
28
|
+
--nuraly-checkbox-disabled-border: var(--nuraly-color-checkbox-disabled-border, #d9d9d9);
|
|
29
|
+
--nuraly-checkbox-disabled-text-color: var(--nuraly-color-checkbox-disabled-text, rgba(0, 0, 0, 0.25));
|
|
30
|
+
--nuraly-checkbox-disabled-checkmark-color: var(--nuraly-color-checkbox-disabled-checkmark, rgba(0, 0, 0, 0.25));
|
|
31
|
+
|
|
32
|
+
/* Focus states */
|
|
33
|
+
--nuraly-checkbox-focus-outline: var(--nuraly-size-checkbox-focus-outline, 2px) solid var(--nuraly-color-checkbox-focus-outline, rgba(24, 144, 255, 0.2));
|
|
34
|
+
|
|
35
|
+
/* Typography */
|
|
36
|
+
--nuraly-checkbox-font-family: var(--nuraly-font-family-checkbox, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif);
|
|
37
|
+
--nuraly-checkbox-font-size: var(--nuraly-font-size-checkbox, 14px);
|
|
38
|
+
--nuraly-checkbox-font-weight: var(--nuraly-font-weight-checkbox, 400);
|
|
39
|
+
--nuraly-checkbox-line-height: var(--nuraly-line-height-checkbox, 1.5715);
|
|
40
|
+
|
|
41
|
+
/* Sizing */
|
|
42
|
+
--nuraly-checkbox-size-small: var(--nuraly-size-checkbox-small, 14px);
|
|
43
|
+
--nuraly-checkbox-size-medium: var(--nuraly-size-checkbox-medium, 16px);
|
|
44
|
+
--nuraly-checkbox-size-large: var(--nuraly-size-checkbox-large, 18px);
|
|
45
|
+
|
|
46
|
+
/* Spacing */
|
|
47
|
+
--nuraly-checkbox-gap: var(--nuraly-spacing-checkbox-gap, 8px);
|
|
48
|
+
--nuraly-checkbox-padding: var(--nuraly-spacing-checkbox-padding, 4px);
|
|
49
|
+
|
|
50
|
+
/* Animation */
|
|
51
|
+
--nuraly-checkbox-transition: var(--nuraly-transition-checkbox, all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1));
|
|
52
|
+
|
|
53
|
+
/* ========================================
|
|
54
|
+
* LEGACY COMPATIBILITY VARIABLES
|
|
55
|
+
* ========================================
|
|
56
|
+
* Keep old variable names for backward compatibility
|
|
57
|
+
* These will be deprecated in future versions
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/* Legacy local variables for backward compatibility */
|
|
61
|
+
--nuraly-checkbox-local-filled-background-color: var(--nuraly-checkbox-checked-background);
|
|
62
|
+
--nuraly-checkbox-local-color: var(--nuraly-checkbox-text-color);
|
|
63
|
+
--nuraly-checkbox-local-empty-background-color: var(--nuraly-checkbox-background);
|
|
64
|
+
--nuraly-checkbox-local-disabled-background-color: var(--nuraly-checkbox-disabled-background);
|
|
65
|
+
--nuraly-checkbox-local-disabled-text-color: var(--nuraly-checkbox-disabled-text-color);
|
|
66
|
+
--nuraly-checkbox-local-empty-border: var(--nuraly-checkbox-border);
|
|
67
|
+
--nuraly-checkbox-local-symbol-color: var(--nuraly-checkbox-checkmark-color);
|
|
68
|
+
--nuraly-checkbox-local-focus-border: var(--nuraly-checkbox-border-focus);
|
|
69
|
+
--nuraly-checkbox-local-focus-outline: var(--nuraly-checkbox-focus-outline);
|
|
70
|
+
--nuraly-checkbox-local-font-family: var(--nuraly-checkbox-font-family);
|
|
71
|
+
--nuraly-checkbox-local-border-radius: var(--nuraly-checkbox-border-radius);
|
|
72
|
+
--nuraly-checkbox-local-gap: var(--nuraly-checkbox-gap);
|
|
73
|
+
|
|
74
|
+
/* Legacy size variables */
|
|
75
|
+
--nuraly-checkbox-local-medium-width: var(--nuraly-checkbox-size-medium);
|
|
76
|
+
--nuraly-checkbox-local-medium-height: var(--nuraly-checkbox-size-medium);
|
|
77
|
+
--nuraly-checkbox-local-small-width: var(--nuraly-checkbox-size-small);
|
|
78
|
+
--nuraly-checkbox-local-small-height: var(--nuraly-checkbox-size-small);
|
|
79
|
+
--nuraly-checkbox-local-large-width: var(--nuraly-checkbox-size-large);
|
|
80
|
+
--nuraly-checkbox-local-large-height: var(--nuraly-checkbox-size-large);
|
|
81
|
+
|
|
82
|
+
/* Legacy checkmark sizing */
|
|
83
|
+
--nuraly-checkbox-local-small-indeterminate-size: calc(var(--nuraly-checkbox-size-small) * 0.7);
|
|
84
|
+
--nuraly-checkbox-local-large-indeterminate-size: calc(var(--nuraly-checkbox-size-large) * 0.7);
|
|
85
|
+
--nuraly-checkbox-local-medium-indeterminate-size: calc(var(--nuraly-checkbox-size-medium) * 0.7);
|
|
86
|
+
|
|
87
|
+
--nuraly-checkbox-local-small-checked-width: calc(var(--nuraly-checkbox-size-small) * 0.14);
|
|
88
|
+
--nuraly-checkbox-local-small-checked-height: calc(var(--nuraly-checkbox-size-small) * 0.5);
|
|
89
|
+
--nuraly-checkbox-local-medium-checked-width: calc(var(--nuraly-checkbox-size-medium) * 0.19);
|
|
90
|
+
--nuraly-checkbox-local-medium-checked-height: calc(var(--nuraly-checkbox-size-medium) * 0.56);
|
|
91
|
+
--nuraly-checkbox-local-large-checked-width: calc(var(--nuraly-checkbox-size-large) * 0.22);
|
|
92
|
+
--nuraly-checkbox-local-large-checked-height: calc(var(--nuraly-checkbox-size-large) * 0.56);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ========================================
|
|
96
|
+
* CHECKBOX COMPONENT STYLES
|
|
97
|
+
* ========================================
|
|
98
|
+
* Modern checkbox component with theme-aware styling
|
|
99
|
+
* Uses CSS custom properties for consistent theming
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
:host {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
gap: var(--nuraly-checkbox-gap);
|
|
107
|
+
font-family: var(--nuraly-checkbox-font-family);
|
|
108
|
+
font-size: var(--nuraly-checkbox-font-size);
|
|
109
|
+
font-weight: var(--nuraly-checkbox-font-weight);
|
|
110
|
+
line-height: var(--nuraly-checkbox-line-height);
|
|
111
|
+
color: var(--nuraly-checkbox-text-color);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
transition: var(--nuraly-checkbox-transition);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ========================================
|
|
117
|
+
* CHECKBOX INPUT ELEMENT STYLES
|
|
118
|
+
* ======================================== */
|
|
119
|
+
|
|
120
|
+
input {
|
|
121
|
+
appearance: none;
|
|
122
|
+
-webkit-appearance: none;
|
|
123
|
+
-moz-appearance: none;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
position: relative;
|
|
126
|
+
border-radius: var(--nuraly-checkbox-border-radius);
|
|
127
|
+
background-color: var(--nuraly-checkbox-background);
|
|
128
|
+
border: var(--nuraly-checkbox-border);
|
|
129
|
+
transition: var(--nuraly-checkbox-transition);
|
|
130
|
+
margin: 0;
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ========================================
|
|
135
|
+
* SIZE VARIATIONS
|
|
136
|
+
* ======================================== */
|
|
137
|
+
|
|
138
|
+
/* Medium size (default) */
|
|
139
|
+
input {
|
|
140
|
+
width: var(--nuraly-checkbox-size-medium);
|
|
141
|
+
height: var(--nuraly-checkbox-size-medium);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host([size='small']) input {
|
|
145
|
+
width: var(--nuraly-checkbox-size-small);
|
|
146
|
+
height: var(--nuraly-checkbox-size-small);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([size='large']) input {
|
|
150
|
+
width: var(--nuraly-checkbox-size-large);
|
|
151
|
+
height: var(--nuraly-checkbox-size-large);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ========================================
|
|
155
|
+
* CHECKBOX STATE STYLES
|
|
156
|
+
* ======================================== */
|
|
157
|
+
|
|
158
|
+
/* Empty/unchecked state */
|
|
159
|
+
:host(:not([checked]):not([indeterminate]):not([disabled])) input {
|
|
160
|
+
background-color: var(--nuraly-checkbox-background);
|
|
161
|
+
border: var(--nuraly-checkbox-border);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Checked and indeterminate states */
|
|
165
|
+
:host(:not([disabled])[checked]) input,
|
|
166
|
+
:host(:not([disabled])[indeterminate]) input {
|
|
167
|
+
background-color: var(--nuraly-checkbox-checked-background);
|
|
168
|
+
border: 1px solid var(--nuraly-checkbox-checked-border);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* Hover states for interactive elements */
|
|
172
|
+
:host(:not([disabled]):hover) input {
|
|
173
|
+
border: var(--nuraly-checkbox-border-hover);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host(:not([disabled]):hover[checked]) input,
|
|
177
|
+
:host(:not([disabled]):hover[indeterminate]) input {
|
|
178
|
+
background-color: var(--nuraly-checkbox-checked-background);
|
|
179
|
+
border: 1px solid var(--nuraly-checkbox-border-hover);
|
|
180
|
+
filter: brightness(1.1);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Focus states */
|
|
184
|
+
input:focus,
|
|
185
|
+
input:focus-visible {
|
|
186
|
+
border: var(--nuraly-checkbox-border-focus);
|
|
187
|
+
outline: var(--nuraly-checkbox-focus-outline);
|
|
188
|
+
outline-offset: 2px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* ========================================
|
|
192
|
+
* DISABLED STATE
|
|
193
|
+
* ======================================== */
|
|
194
|
+
|
|
195
|
+
:host([disabled]) {
|
|
196
|
+
color: var(--nuraly-checkbox-disabled-text-color);
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:host([disabled]) input {
|
|
201
|
+
background-color: var(--nuraly-checkbox-disabled-background);
|
|
202
|
+
border: 1px solid var(--nuraly-checkbox-disabled-border);
|
|
203
|
+
cursor: not-allowed;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* ========================================
|
|
207
|
+
* CHECKMARK AND INDETERMINATE SYMBOLS
|
|
208
|
+
* ======================================== */
|
|
209
|
+
|
|
210
|
+
/* Base symbol styling */
|
|
211
|
+
input:after {
|
|
212
|
+
color: var(--nuraly-checkbox-checkmark-color);
|
|
213
|
+
position: absolute;
|
|
214
|
+
left: 50%;
|
|
215
|
+
top: 50%;
|
|
216
|
+
transform: translate(-50%, -51%);
|
|
217
|
+
transition: var(--nuraly-checkbox-transition);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* Checked state checkmark */
|
|
221
|
+
:host([checked]) input:after {
|
|
222
|
+
border: solid var(--nuraly-checkbox-checkmark-color);
|
|
223
|
+
border-width: 0 2px 2px 0;
|
|
224
|
+
transform: translate(-50%, -51%) rotate(45deg);
|
|
225
|
+
content: '';
|
|
226
|
+
width: var(--nuraly-checkbox-local-medium-checked-width); /* Default to medium size */
|
|
227
|
+
height: var(--nuraly-checkbox-local-medium-checked-height); /* Default to medium size */
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Checkmark sizing per size variant */
|
|
231
|
+
:host([checked][size='small']) input:after {
|
|
232
|
+
width: var(--nuraly-checkbox-local-small-checked-width);
|
|
233
|
+
height: var(--nuraly-checkbox-local-small-checked-height);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:host([checked][size='medium']) input:after {
|
|
237
|
+
width: var(--nuraly-checkbox-local-medium-checked-width);
|
|
238
|
+
height: var(--nuraly-checkbox-local-medium-checked-height);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:host([checked][size='large']) input:after {
|
|
242
|
+
width: var(--nuraly-checkbox-local-large-checked-width);
|
|
243
|
+
height: var(--nuraly-checkbox-local-large-checked-height);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* Indeterminate state symbol */
|
|
247
|
+
:host([indeterminate]:not([checked])) input:after {
|
|
248
|
+
content: '-';
|
|
249
|
+
color: var(--nuraly-checkbox-indeterminate-mark-color);
|
|
250
|
+
font-weight: bold;
|
|
251
|
+
transform: translate(-50%, -51%);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Indeterminate symbol sizing per size variant */
|
|
255
|
+
:host([indeterminate][size='small']) input:after {
|
|
256
|
+
font-size: var(--nuraly-checkbox-local-small-indeterminate-size);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host([indeterminate][size='medium']) input:after {
|
|
260
|
+
font-size: var(--nuraly-checkbox-local-medium-indeterminate-size);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host([indeterminate][size='large']) input:after {
|
|
264
|
+
font-size: var(--nuraly-checkbox-local-large-indeterminate-size);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* Empty state - no symbol */
|
|
268
|
+
:host(:not([checked]):not([indeterminate])) input:after {
|
|
269
|
+
content: '';
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* ========================================
|
|
273
|
+
* DISABLED STATE SYMBOLS
|
|
274
|
+
* ======================================== */
|
|
275
|
+
|
|
276
|
+
:host([disabled]) input:after {
|
|
277
|
+
color: var(--nuraly-checkbox-disabled-checkmark-color);
|
|
278
|
+
border-color: var(--nuraly-checkbox-disabled-checkmark-color);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* ========================================
|
|
282
|
+
* LABEL TEXT STYLING
|
|
283
|
+
* ======================================== */
|
|
284
|
+
|
|
285
|
+
.checkbox-label {
|
|
286
|
+
flex: 1;
|
|
287
|
+
cursor: pointer;
|
|
288
|
+
user-select: none;
|
|
289
|
+
transition: var(--nuraly-checkbox-transition);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
:host([disabled]) .checkbox-label {
|
|
293
|
+
cursor: not-allowed;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* ========================================
|
|
297
|
+
* ACCESSIBILITY IMPROVEMENTS
|
|
298
|
+
* ======================================== */
|
|
299
|
+
|
|
300
|
+
@media (prefers-reduced-motion: reduce) {
|
|
301
|
+
:host,
|
|
302
|
+
input,
|
|
303
|
+
input:after,
|
|
304
|
+
.checkbox-label {
|
|
305
|
+
transition: none;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* High contrast mode support */
|
|
310
|
+
@media (prefers-contrast: high) {
|
|
311
|
+
input {
|
|
312
|
+
border-width: 2px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
:host([checked]) input:after,
|
|
316
|
+
:host([indeterminate]) input:after {
|
|
317
|
+
font-weight: 900;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
`,i=e=>class extends e{get checkboxElement(){var e;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('input[type="checkbox"]');if(!r)throw new Error("CheckboxFocusMixin requires a checkbox input element");return r}focus(e={}){const r=this.checkboxElement;r&&r.focus({preventScroll:e.preventScroll})}blur(){const e=this.checkboxElement;e&&e.blur()}isFocused(){const e=this.checkboxElement;return!!e&&document.activeElement===e}get nativeElement(){var e;return(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('input[type="checkbox"]'))||null}},n=e=>class extends e{handleChange(e){var r;const a=e.target.checked,c=this.name,o=this.value;this.indeterminate&&(this.indeterminate=!1),this.checked=a,null===(r=this.dispatchCustomEvent)||void 0===r||r.call(this,"nr-change",{checked:a,value:o,name:c,indeterminate:!1})}handleFocus(e){var r;null===(r=this.dispatchCustomEvent)||void 0===r||r.call(this,"nr-focus",{originalEvent:e})}handleBlur(e){var r;null===(r=this.dispatchCustomEvent)||void 0===r||r.call(this,"nr-blur",{originalEvent:e})}handleKeydown(e){var r,a,c;if(null===(r=this.isActivationKey)||void 0===r?void 0:r.call(this,e)){e.preventDefault();const r=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector('input[type="checkbox"]'),c=this.disabled;r&&!c&&r.click()}null===(c=this.dispatchCustomEvent)||void 0===c||c.call(this,"nr-keydown",{key:e.key,code:e.code,originalEvent:e})}handleMouseEnter(e){var r;null===(r=this.dispatchCustomEvent)||void 0===r||r.call(this,"nr-mouseenter",{originalEvent:e})}handleMouseLeave(e){var r;null===(r=this.dispatchCustomEvent)||void 0===r||r.call(this,"nr-mouseleave",{originalEvent:e})}};
|
|
321
|
+
/**
|
|
322
|
+
* @license
|
|
323
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
324
|
+
* SPDX-License-Identifier: MIT
|
|
325
|
+
*/
|
|
326
|
+
var h=function(e,r,a,c){for(var o,l=arguments.length,t=l<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,a):c,i=e.length-1;i>=0;i--)(o=e[i])&&(t=(l<3?o(t):l>3?o(r,a,t):o(r,a))||t);return l>3&&t&&Object.defineProperty(r,a,t),t};let s=class extends(n(i(l(r)))){constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this._size="medium",this.autoFocus=!1,this.title="",this.tabIndex=0,this.required=!1,this.id=""}get size(){return this._size}set size(e){["small","medium","large"].includes(e)?this._size=e:(console.warn(`Invalid size value: ${e}. Using default size: medium`),this._size="medium")}connectedCallback(){super.connectedCallback(),this.validateDependencies(),this.autoFocus&&requestAnimationFrame(()=>{this.focus()})}updated(e){super.updated(e),this.setAttribute("data-theme",this.currentTheme)}getCommonAttributes(){return{"data-theme":this.currentTheme,"data-size":this.size}}handleLabelClick(e){this.disabled||(e.preventDefault(),this.checked=!this.checked,this.dispatchEvent(new CustomEvent("nr-change",{detail:{checked:this.checked,value:this.value},bubbles:!0})))}render(){var e,r,c;const o=this.getCommonAttributes();return a`
|
|
327
|
+
<input
|
|
328
|
+
type="checkbox"
|
|
329
|
+
.checked=${this.checked}
|
|
330
|
+
.disabled=${this.disabled}
|
|
331
|
+
.indeterminate=${this.indeterminate}
|
|
332
|
+
name=${null!==(e=this.name)&&void 0!==e?e:""}
|
|
333
|
+
value=${null!==(r=this.value)&&void 0!==r?r:""}
|
|
334
|
+
id=${this.id}
|
|
335
|
+
title=${this.title}
|
|
336
|
+
?required=${this.required}
|
|
337
|
+
data-theme="${o["data-theme"]}"
|
|
338
|
+
data-size="${o["data-size"]}"
|
|
339
|
+
aria-checked=${this.indeterminate?"mixed":this.checked?"true":"false"}
|
|
340
|
+
aria-disabled=${this.disabled?"true":"false"}
|
|
341
|
+
tabindex=${this.disabled?-1:null!==(c=this.tabIndex)&&void 0!==c?c:0}
|
|
342
|
+
@change=${this.handleChange}
|
|
343
|
+
@focus=${this.handleFocus}
|
|
344
|
+
@blur=${this.handleBlur}
|
|
345
|
+
@keydown=${this.handleKeydown}
|
|
346
|
+
@mouseenter=${this.handleMouseEnter}
|
|
347
|
+
@mouseleave=${this.handleMouseLeave}
|
|
348
|
+
/>
|
|
349
|
+
<label class="checkbox-label" for=${this.id} @click=${this.handleLabelClick}>
|
|
350
|
+
<slot></slot>
|
|
351
|
+
</label>
|
|
352
|
+
`}};s.styles=t,h([c({type:Boolean,reflect:!0})],s.prototype,"checked",void 0),h([c({type:Boolean,reflect:!0})],s.prototype,"disabled",void 0),h([c({type:Boolean,reflect:!0})],s.prototype,"indeterminate",void 0),h([c({reflect:!0})],s.prototype,"size",null),h([c({type:String})],s.prototype,"name",void 0),h([c({type:String})],s.prototype,"value",void 0),h([c({type:Boolean})],s.prototype,"autoFocus",void 0),h([c({type:String})],s.prototype,"title",void 0),h([c({type:Number})],s.prototype,"tabIndex",void 0),h([c({type:Boolean})],s.prototype,"required",void 0),h([c({type:String})],s.prototype,"id",void 0),s=h([o("nr-checkbox")],s);export{s as NrCheckboxElement};
|
|
Binary file
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement } from 'lit';
|
|
7
|
+
import { CheckboxSize } from './checkbox.types.js';
|
|
8
|
+
declare const NrCheckboxElement_base: (new (...args: any[]) => import("./mixins/checkbox-event-mixin.js").CheckboxEventCapable) & (new (...args: any[]) => import("./mixins/checkbox-focus-mixin.js").CheckboxFocusCapable) & (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
|
+
* Versatile checkbox component with support for indeterminate state, theming, and multiple sizes.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```html
|
|
14
|
+
* <nr-checkbox>Check me</nr-checkbox>
|
|
15
|
+
* <nr-checkbox checked>Already checked</nr-checkbox>
|
|
16
|
+
* <nr-checkbox indeterminate>Indeterminate state</nr-checkbox>
|
|
17
|
+
* <nr-checkbox size="large" disabled>Large disabled</nr-checkbox>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @fires nr-change - Dispatched when checkbox state changes
|
|
21
|
+
* @fires nr-focus - Dispatched when checkbox receives focus
|
|
22
|
+
* @fires nr-blur - Dispatched when checkbox loses focus
|
|
23
|
+
* @fires nr-keydown - Dispatched on keydown events
|
|
24
|
+
* @fires nr-mouseenter - Dispatched when mouse enters checkbox
|
|
25
|
+
* @fires nr-mouseleave - Dispatched when mouse leaves checkbox
|
|
26
|
+
*
|
|
27
|
+
* @slot default - Checkbox label content
|
|
28
|
+
*/
|
|
29
|
+
export declare class NrCheckboxElement extends NrCheckboxElement_base {
|
|
30
|
+
static styles: import("lit").CSSResult;
|
|
31
|
+
/** Whether the checkbox is checked */
|
|
32
|
+
checked: boolean;
|
|
33
|
+
/** Whether the checkbox is disabled */
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
/** Whether the checkbox is in indeterminate state */
|
|
36
|
+
indeterminate: boolean;
|
|
37
|
+
/** Checkbox size (small, medium, large) */
|
|
38
|
+
get size(): CheckboxSize;
|
|
39
|
+
set size(value: CheckboxSize);
|
|
40
|
+
private _size;
|
|
41
|
+
/** Form field name */
|
|
42
|
+
name?: string;
|
|
43
|
+
/** Form field value */
|
|
44
|
+
value?: string;
|
|
45
|
+
/** Whether the checkbox should be focused when mounted */
|
|
46
|
+
autoFocus: boolean;
|
|
47
|
+
/** Checkbox title attribute */
|
|
48
|
+
title: string;
|
|
49
|
+
/** Tab index */
|
|
50
|
+
tabIndex: number;
|
|
51
|
+
/** Whether the checkbox is required */
|
|
52
|
+
required: boolean;
|
|
53
|
+
/** Checkbox ID */
|
|
54
|
+
id: string;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
updated(changedProperties: Map<string, any>): void;
|
|
57
|
+
private getCommonAttributes;
|
|
58
|
+
private handleLabelClick;
|
|
59
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
60
|
+
}
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=checkbox.component.d.ts.map
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
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 } from 'lit';
|
|
13
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
14
|
+
import { styles } from './checkbox.style.js';
|
|
15
|
+
import { NuralyUIBaseMixin } from '@nuralyui/common/mixins';
|
|
16
|
+
import { CheckboxFocusMixin, CheckboxEventMixin } from './mixins/index.js';
|
|
17
|
+
/**
|
|
18
|
+
* Versatile checkbox component with support for indeterminate state, theming, and multiple sizes.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```html
|
|
22
|
+
* <nr-checkbox>Check me</nr-checkbox>
|
|
23
|
+
* <nr-checkbox checked>Already checked</nr-checkbox>
|
|
24
|
+
* <nr-checkbox indeterminate>Indeterminate state</nr-checkbox>
|
|
25
|
+
* <nr-checkbox size="large" disabled>Large disabled</nr-checkbox>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @fires nr-change - Dispatched when checkbox state changes
|
|
29
|
+
* @fires nr-focus - Dispatched when checkbox receives focus
|
|
30
|
+
* @fires nr-blur - Dispatched when checkbox loses focus
|
|
31
|
+
* @fires nr-keydown - Dispatched on keydown events
|
|
32
|
+
* @fires nr-mouseenter - Dispatched when mouse enters checkbox
|
|
33
|
+
* @fires nr-mouseleave - Dispatched when mouse leaves checkbox
|
|
34
|
+
*
|
|
35
|
+
* @slot default - Checkbox label content
|
|
36
|
+
*/
|
|
37
|
+
let NrCheckboxElement = class NrCheckboxElement extends CheckboxEventMixin(CheckboxFocusMixin(NuralyUIBaseMixin(LitElement))) {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
/** Whether the checkbox is checked */
|
|
41
|
+
this.checked = false;
|
|
42
|
+
/** Whether the checkbox is disabled */
|
|
43
|
+
this.disabled = false;
|
|
44
|
+
/** Whether the checkbox is in indeterminate state */
|
|
45
|
+
this.indeterminate = false;
|
|
46
|
+
this._size = "medium" /* CheckboxSize.Medium */;
|
|
47
|
+
/** Whether the checkbox should be focused when mounted */
|
|
48
|
+
this.autoFocus = false;
|
|
49
|
+
/** Checkbox title attribute */
|
|
50
|
+
this.title = '';
|
|
51
|
+
/** Tab index */
|
|
52
|
+
this.tabIndex = 0;
|
|
53
|
+
/** Whether the checkbox is required */
|
|
54
|
+
this.required = false;
|
|
55
|
+
/** Checkbox ID */
|
|
56
|
+
this.id = '';
|
|
57
|
+
// Event handling methods are now provided by CheckboxEventMixin
|
|
58
|
+
}
|
|
59
|
+
/** Checkbox size (small, medium, large) */
|
|
60
|
+
get size() {
|
|
61
|
+
return this._size;
|
|
62
|
+
}
|
|
63
|
+
set size(value) {
|
|
64
|
+
const validSizes = ["small" /* CheckboxSize.Small */, "medium" /* CheckboxSize.Medium */, "large" /* CheckboxSize.Large */];
|
|
65
|
+
if (validSizes.includes(value)) {
|
|
66
|
+
this._size = value;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
console.warn(`Invalid size value: ${value}. Using default size: ${"medium" /* CheckboxSize.Medium */}`);
|
|
70
|
+
this._size = "medium" /* CheckboxSize.Medium */;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Focus/blur methods and nativeElement are now provided by CheckboxFocusMixin
|
|
74
|
+
connectedCallback() {
|
|
75
|
+
super.connectedCallback();
|
|
76
|
+
this.validateDependencies();
|
|
77
|
+
// Handle autoFocus
|
|
78
|
+
if (this.autoFocus) {
|
|
79
|
+
// Use requestAnimationFrame to ensure the element is fully rendered
|
|
80
|
+
requestAnimationFrame(() => {
|
|
81
|
+
this.focus();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
updated(changedProperties) {
|
|
86
|
+
super.updated(changedProperties);
|
|
87
|
+
// Update data-theme attribute on host for CSS theming
|
|
88
|
+
this.setAttribute('data-theme', this.currentTheme);
|
|
89
|
+
}
|
|
90
|
+
getCommonAttributes() {
|
|
91
|
+
return {
|
|
92
|
+
'data-theme': this.currentTheme,
|
|
93
|
+
'data-size': this.size
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
handleLabelClick(event) {
|
|
97
|
+
// Prevent double-firing when clicking the label
|
|
98
|
+
if (!this.disabled) {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
this.checked = !this.checked;
|
|
101
|
+
// Fire change event manually since we prevented the default
|
|
102
|
+
this.dispatchEvent(new CustomEvent('nr-change', {
|
|
103
|
+
detail: { checked: this.checked, value: this.value },
|
|
104
|
+
bubbles: true
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
const commonAttributes = this.getCommonAttributes();
|
|
111
|
+
return html `
|
|
112
|
+
<input
|
|
113
|
+
type="checkbox"
|
|
114
|
+
.checked=${this.checked}
|
|
115
|
+
.disabled=${this.disabled}
|
|
116
|
+
.indeterminate=${this.indeterminate}
|
|
117
|
+
name=${(_a = this.name) !== null && _a !== void 0 ? _a : ''}
|
|
118
|
+
value=${(_b = this.value) !== null && _b !== void 0 ? _b : ''}
|
|
119
|
+
id=${this.id}
|
|
120
|
+
title=${this.title}
|
|
121
|
+
?required=${this.required}
|
|
122
|
+
data-theme="${commonAttributes['data-theme']}"
|
|
123
|
+
data-size="${commonAttributes['data-size']}"
|
|
124
|
+
aria-checked=${this.indeterminate ? 'mixed' : (this.checked ? 'true' : 'false')}
|
|
125
|
+
aria-disabled=${this.disabled ? 'true' : 'false'}
|
|
126
|
+
tabindex=${this.disabled ? -1 : ((_c = this.tabIndex) !== null && _c !== void 0 ? _c : 0)}
|
|
127
|
+
@change=${this.handleChange}
|
|
128
|
+
@focus=${this.handleFocus}
|
|
129
|
+
@blur=${this.handleBlur}
|
|
130
|
+
@keydown=${this.handleKeydown}
|
|
131
|
+
@mouseenter=${this.handleMouseEnter}
|
|
132
|
+
@mouseleave=${this.handleMouseLeave}
|
|
133
|
+
/>
|
|
134
|
+
<label class="checkbox-label" for=${this.id} @click=${this.handleLabelClick}>
|
|
135
|
+
<slot></slot>
|
|
136
|
+
</label>
|
|
137
|
+
`;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
NrCheckboxElement.styles = styles;
|
|
141
|
+
__decorate([
|
|
142
|
+
property({ type: Boolean, reflect: true })
|
|
143
|
+
], NrCheckboxElement.prototype, "checked", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
property({ type: Boolean, reflect: true })
|
|
146
|
+
], NrCheckboxElement.prototype, "disabled", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ type: Boolean, reflect: true })
|
|
149
|
+
], NrCheckboxElement.prototype, "indeterminate", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
property({ reflect: true })
|
|
152
|
+
], NrCheckboxElement.prototype, "size", null);
|
|
153
|
+
__decorate([
|
|
154
|
+
property({ type: String })
|
|
155
|
+
], NrCheckboxElement.prototype, "name", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
property({ type: String })
|
|
158
|
+
], NrCheckboxElement.prototype, "value", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ type: Boolean })
|
|
161
|
+
], NrCheckboxElement.prototype, "autoFocus", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ type: String })
|
|
164
|
+
], NrCheckboxElement.prototype, "title", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ type: Number })
|
|
167
|
+
], NrCheckboxElement.prototype, "tabIndex", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
property({ type: Boolean })
|
|
170
|
+
], NrCheckboxElement.prototype, "required", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: String })
|
|
173
|
+
], NrCheckboxElement.prototype, "id", void 0);
|
|
174
|
+
NrCheckboxElement = __decorate([
|
|
175
|
+
customElement('nr-checkbox')
|
|
176
|
+
], NrCheckboxElement);
|
|
177
|
+
export { NrCheckboxElement };
|
|
178
|
+
//# sourceMappingURL=checkbox.component.js.map
|