@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,323 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
const checkBoxStyles = css `
|
|
3
|
+
/* ========================================
|
|
4
|
+
* CHECKBOX CSS VARIABLES - FALLBACK VALUES
|
|
5
|
+
* ========================================
|
|
6
|
+
* These fallback values ensure the component works even without theme files
|
|
7
|
+
*/
|
|
8
|
+
:host {
|
|
9
|
+
/* Base checkbox appearance */
|
|
10
|
+
--nuraly-checkbox-background: var(--nuraly-color-checkbox-background, #ffffff);
|
|
11
|
+
--nuraly-checkbox-text-color: var(--nuraly-color-checkbox-text, rgba(0, 0, 0, 0.88));
|
|
12
|
+
--nuraly-checkbox-label-color: var(--nuraly-color-checkbox-label, rgba(0, 0, 0, 0.88));
|
|
13
|
+
|
|
14
|
+
/* Checkbox borders and outline */
|
|
15
|
+
--nuraly-checkbox-border: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border, #d9d9d9);
|
|
16
|
+
--nuraly-checkbox-border-radius: var(--nuraly-border-radius-checkbox, 2px);
|
|
17
|
+
--nuraly-checkbox-border-focus: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border-focus, #1890ff);
|
|
18
|
+
--nuraly-checkbox-border-hover: var(--nuraly-border-width-checkbox, 1px) solid var(--nuraly-color-checkbox-border-hover, #40a9ff);
|
|
19
|
+
|
|
20
|
+
/* Checked/active states */
|
|
21
|
+
--nuraly-checkbox-checked-background: var(--nuraly-color-checkbox-checked-background, #1890ff);
|
|
22
|
+
--nuraly-checkbox-checked-border: var(--nuraly-color-checkbox-checked-border, #1890ff);
|
|
23
|
+
--nuraly-checkbox-checkmark-color: var(--nuraly-color-checkbox-checkmark, #ffffff);
|
|
24
|
+
--nuraly-checkbox-indeterminate-background: var(--nuraly-color-checkbox-indeterminate-background, #1890ff);
|
|
25
|
+
--nuraly-checkbox-indeterminate-mark-color: var(--nuraly-color-checkbox-indeterminate-mark, #ffffff);
|
|
26
|
+
|
|
27
|
+
/* Disabled states */
|
|
28
|
+
--nuraly-checkbox-disabled-background: var(--nuraly-color-checkbox-disabled-background, #f5f5f5);
|
|
29
|
+
--nuraly-checkbox-disabled-border: var(--nuraly-color-checkbox-disabled-border, #d9d9d9);
|
|
30
|
+
--nuraly-checkbox-disabled-text-color: var(--nuraly-color-checkbox-disabled-text, rgba(0, 0, 0, 0.25));
|
|
31
|
+
--nuraly-checkbox-disabled-checkmark-color: var(--nuraly-color-checkbox-disabled-checkmark, rgba(0, 0, 0, 0.25));
|
|
32
|
+
|
|
33
|
+
/* Focus states */
|
|
34
|
+
--nuraly-checkbox-focus-outline: var(--nuraly-size-checkbox-focus-outline, 2px) solid var(--nuraly-color-checkbox-focus-outline, rgba(24, 144, 255, 0.2));
|
|
35
|
+
|
|
36
|
+
/* Typography */
|
|
37
|
+
--nuraly-checkbox-font-family: var(--nuraly-font-family-checkbox, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif);
|
|
38
|
+
--nuraly-checkbox-font-size: var(--nuraly-font-size-checkbox, 14px);
|
|
39
|
+
--nuraly-checkbox-font-weight: var(--nuraly-font-weight-checkbox, 400);
|
|
40
|
+
--nuraly-checkbox-line-height: var(--nuraly-line-height-checkbox, 1.5715);
|
|
41
|
+
|
|
42
|
+
/* Sizing */
|
|
43
|
+
--nuraly-checkbox-size-small: var(--nuraly-size-checkbox-small, 14px);
|
|
44
|
+
--nuraly-checkbox-size-medium: var(--nuraly-size-checkbox-medium, 16px);
|
|
45
|
+
--nuraly-checkbox-size-large: var(--nuraly-size-checkbox-large, 18px);
|
|
46
|
+
|
|
47
|
+
/* Spacing */
|
|
48
|
+
--nuraly-checkbox-gap: var(--nuraly-spacing-checkbox-gap, 8px);
|
|
49
|
+
--nuraly-checkbox-padding: var(--nuraly-spacing-checkbox-padding, 4px);
|
|
50
|
+
|
|
51
|
+
/* Animation */
|
|
52
|
+
--nuraly-checkbox-transition: var(--nuraly-transition-checkbox, all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1));
|
|
53
|
+
|
|
54
|
+
/* ========================================
|
|
55
|
+
* LEGACY COMPATIBILITY VARIABLES
|
|
56
|
+
* ========================================
|
|
57
|
+
* Keep old variable names for backward compatibility
|
|
58
|
+
* These will be deprecated in future versions
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/* Legacy local variables for backward compatibility */
|
|
62
|
+
--nuraly-checkbox-local-filled-background-color: var(--nuraly-checkbox-checked-background);
|
|
63
|
+
--nuraly-checkbox-local-color: var(--nuraly-checkbox-text-color);
|
|
64
|
+
--nuraly-checkbox-local-empty-background-color: var(--nuraly-checkbox-background);
|
|
65
|
+
--nuraly-checkbox-local-disabled-background-color: var(--nuraly-checkbox-disabled-background);
|
|
66
|
+
--nuraly-checkbox-local-disabled-text-color: var(--nuraly-checkbox-disabled-text-color);
|
|
67
|
+
--nuraly-checkbox-local-empty-border: var(--nuraly-checkbox-border);
|
|
68
|
+
--nuraly-checkbox-local-symbol-color: var(--nuraly-checkbox-checkmark-color);
|
|
69
|
+
--nuraly-checkbox-local-focus-border: var(--nuraly-checkbox-border-focus);
|
|
70
|
+
--nuraly-checkbox-local-focus-outline: var(--nuraly-checkbox-focus-outline);
|
|
71
|
+
--nuraly-checkbox-local-font-family: var(--nuraly-checkbox-font-family);
|
|
72
|
+
--nuraly-checkbox-local-border-radius: var(--nuraly-checkbox-border-radius);
|
|
73
|
+
--nuraly-checkbox-local-gap: var(--nuraly-checkbox-gap);
|
|
74
|
+
|
|
75
|
+
/* Legacy size variables */
|
|
76
|
+
--nuraly-checkbox-local-medium-width: var(--nuraly-checkbox-size-medium);
|
|
77
|
+
--nuraly-checkbox-local-medium-height: var(--nuraly-checkbox-size-medium);
|
|
78
|
+
--nuraly-checkbox-local-small-width: var(--nuraly-checkbox-size-small);
|
|
79
|
+
--nuraly-checkbox-local-small-height: var(--nuraly-checkbox-size-small);
|
|
80
|
+
--nuraly-checkbox-local-large-width: var(--nuraly-checkbox-size-large);
|
|
81
|
+
--nuraly-checkbox-local-large-height: var(--nuraly-checkbox-size-large);
|
|
82
|
+
|
|
83
|
+
/* Legacy checkmark sizing */
|
|
84
|
+
--nuraly-checkbox-local-small-indeterminate-size: calc(var(--nuraly-checkbox-size-small) * 0.7);
|
|
85
|
+
--nuraly-checkbox-local-large-indeterminate-size: calc(var(--nuraly-checkbox-size-large) * 0.7);
|
|
86
|
+
--nuraly-checkbox-local-medium-indeterminate-size: calc(var(--nuraly-checkbox-size-medium) * 0.7);
|
|
87
|
+
|
|
88
|
+
--nuraly-checkbox-local-small-checked-width: calc(var(--nuraly-checkbox-size-small) * 0.14);
|
|
89
|
+
--nuraly-checkbox-local-small-checked-height: calc(var(--nuraly-checkbox-size-small) * 0.5);
|
|
90
|
+
--nuraly-checkbox-local-medium-checked-width: calc(var(--nuraly-checkbox-size-medium) * 0.19);
|
|
91
|
+
--nuraly-checkbox-local-medium-checked-height: calc(var(--nuraly-checkbox-size-medium) * 0.56);
|
|
92
|
+
--nuraly-checkbox-local-large-checked-width: calc(var(--nuraly-checkbox-size-large) * 0.22);
|
|
93
|
+
--nuraly-checkbox-local-large-checked-height: calc(var(--nuraly-checkbox-size-large) * 0.56);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ========================================
|
|
97
|
+
* CHECKBOX COMPONENT STYLES
|
|
98
|
+
* ========================================
|
|
99
|
+
* Modern checkbox component with theme-aware styling
|
|
100
|
+
* Uses CSS custom properties for consistent theming
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
:host {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
flex-wrap: wrap;
|
|
107
|
+
gap: var(--nuraly-checkbox-gap);
|
|
108
|
+
font-family: var(--nuraly-checkbox-font-family);
|
|
109
|
+
font-size: var(--nuraly-checkbox-font-size);
|
|
110
|
+
font-weight: var(--nuraly-checkbox-font-weight);
|
|
111
|
+
line-height: var(--nuraly-checkbox-line-height);
|
|
112
|
+
color: var(--nuraly-checkbox-text-color);
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
transition: var(--nuraly-checkbox-transition);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ========================================
|
|
118
|
+
* CHECKBOX INPUT ELEMENT STYLES
|
|
119
|
+
* ======================================== */
|
|
120
|
+
|
|
121
|
+
input {
|
|
122
|
+
appearance: none;
|
|
123
|
+
-webkit-appearance: none;
|
|
124
|
+
-moz-appearance: none;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
position: relative;
|
|
127
|
+
border-radius: var(--nuraly-checkbox-border-radius);
|
|
128
|
+
background-color: var(--nuraly-checkbox-background);
|
|
129
|
+
border: var(--nuraly-checkbox-border);
|
|
130
|
+
transition: var(--nuraly-checkbox-transition);
|
|
131
|
+
margin: 0;
|
|
132
|
+
outline: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* ========================================
|
|
136
|
+
* SIZE VARIATIONS
|
|
137
|
+
* ======================================== */
|
|
138
|
+
|
|
139
|
+
/* Medium size (default) */
|
|
140
|
+
input {
|
|
141
|
+
width: var(--nuraly-checkbox-size-medium);
|
|
142
|
+
height: var(--nuraly-checkbox-size-medium);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([size='small']) input {
|
|
146
|
+
width: var(--nuraly-checkbox-size-small);
|
|
147
|
+
height: var(--nuraly-checkbox-size-small);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host([size='large']) input {
|
|
151
|
+
width: var(--nuraly-checkbox-size-large);
|
|
152
|
+
height: var(--nuraly-checkbox-size-large);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ========================================
|
|
156
|
+
* CHECKBOX STATE STYLES
|
|
157
|
+
* ======================================== */
|
|
158
|
+
|
|
159
|
+
/* Empty/unchecked state */
|
|
160
|
+
:host(:not([checked]):not([indeterminate]):not([disabled])) input {
|
|
161
|
+
background-color: var(--nuraly-checkbox-background);
|
|
162
|
+
border: var(--nuraly-checkbox-border);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Checked and indeterminate states */
|
|
166
|
+
:host(:not([disabled])[checked]) input,
|
|
167
|
+
:host(:not([disabled])[indeterminate]) input {
|
|
168
|
+
background-color: var(--nuraly-checkbox-checked-background);
|
|
169
|
+
border: 1px solid var(--nuraly-checkbox-checked-border);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Hover states for interactive elements */
|
|
173
|
+
:host(:not([disabled]):hover) input {
|
|
174
|
+
border: var(--nuraly-checkbox-border-hover);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
:host(:not([disabled]):hover[checked]) input,
|
|
178
|
+
:host(:not([disabled]):hover[indeterminate]) input {
|
|
179
|
+
background-color: var(--nuraly-checkbox-checked-background);
|
|
180
|
+
border: 1px solid var(--nuraly-checkbox-border-hover);
|
|
181
|
+
filter: brightness(1.1);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Focus states */
|
|
185
|
+
input:focus,
|
|
186
|
+
input:focus-visible {
|
|
187
|
+
border: var(--nuraly-checkbox-border-focus);
|
|
188
|
+
outline: var(--nuraly-checkbox-focus-outline);
|
|
189
|
+
outline-offset: 2px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* ========================================
|
|
193
|
+
* DISABLED STATE
|
|
194
|
+
* ======================================== */
|
|
195
|
+
|
|
196
|
+
:host([disabled]) {
|
|
197
|
+
color: var(--nuraly-checkbox-disabled-text-color);
|
|
198
|
+
cursor: not-allowed;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([disabled]) input {
|
|
202
|
+
background-color: var(--nuraly-checkbox-disabled-background);
|
|
203
|
+
border: 1px solid var(--nuraly-checkbox-disabled-border);
|
|
204
|
+
cursor: not-allowed;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* ========================================
|
|
208
|
+
* CHECKMARK AND INDETERMINATE SYMBOLS
|
|
209
|
+
* ======================================== */
|
|
210
|
+
|
|
211
|
+
/* Base symbol styling */
|
|
212
|
+
input:after {
|
|
213
|
+
color: var(--nuraly-checkbox-checkmark-color);
|
|
214
|
+
position: absolute;
|
|
215
|
+
left: 50%;
|
|
216
|
+
top: 50%;
|
|
217
|
+
transform: translate(-50%, -51%);
|
|
218
|
+
transition: var(--nuraly-checkbox-transition);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* Checked state checkmark */
|
|
222
|
+
:host([checked]) input:after {
|
|
223
|
+
border: solid var(--nuraly-checkbox-checkmark-color);
|
|
224
|
+
border-width: 0 2px 2px 0;
|
|
225
|
+
transform: translate(-50%, -51%) rotate(45deg);
|
|
226
|
+
content: '';
|
|
227
|
+
width: var(--nuraly-checkbox-local-medium-checked-width); /* Default to medium size */
|
|
228
|
+
height: var(--nuraly-checkbox-local-medium-checked-height); /* Default to medium size */
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Checkmark sizing per size variant */
|
|
232
|
+
:host([checked][size='small']) input:after {
|
|
233
|
+
width: var(--nuraly-checkbox-local-small-checked-width);
|
|
234
|
+
height: var(--nuraly-checkbox-local-small-checked-height);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host([checked][size='medium']) input:after {
|
|
238
|
+
width: var(--nuraly-checkbox-local-medium-checked-width);
|
|
239
|
+
height: var(--nuraly-checkbox-local-medium-checked-height);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
:host([checked][size='large']) input:after {
|
|
243
|
+
width: var(--nuraly-checkbox-local-large-checked-width);
|
|
244
|
+
height: var(--nuraly-checkbox-local-large-checked-height);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Indeterminate state symbol */
|
|
248
|
+
:host([indeterminate]:not([checked])) input:after {
|
|
249
|
+
content: '-';
|
|
250
|
+
color: var(--nuraly-checkbox-indeterminate-mark-color);
|
|
251
|
+
font-weight: bold;
|
|
252
|
+
transform: translate(-50%, -51%);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Indeterminate symbol sizing per size variant */
|
|
256
|
+
:host([indeterminate][size='small']) input:after {
|
|
257
|
+
font-size: var(--nuraly-checkbox-local-small-indeterminate-size);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host([indeterminate][size='medium']) input:after {
|
|
261
|
+
font-size: var(--nuraly-checkbox-local-medium-indeterminate-size);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:host([indeterminate][size='large']) input:after {
|
|
265
|
+
font-size: var(--nuraly-checkbox-local-large-indeterminate-size);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* Empty state - no symbol */
|
|
269
|
+
:host(:not([checked]):not([indeterminate])) input:after {
|
|
270
|
+
content: '';
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* ========================================
|
|
274
|
+
* DISABLED STATE SYMBOLS
|
|
275
|
+
* ======================================== */
|
|
276
|
+
|
|
277
|
+
:host([disabled]) input:after {
|
|
278
|
+
color: var(--nuraly-checkbox-disabled-checkmark-color);
|
|
279
|
+
border-color: var(--nuraly-checkbox-disabled-checkmark-color);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* ========================================
|
|
283
|
+
* LABEL TEXT STYLING
|
|
284
|
+
* ======================================== */
|
|
285
|
+
|
|
286
|
+
.checkbox-label {
|
|
287
|
+
flex: 1;
|
|
288
|
+
cursor: pointer;
|
|
289
|
+
user-select: none;
|
|
290
|
+
transition: var(--nuraly-checkbox-transition);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:host([disabled]) .checkbox-label {
|
|
294
|
+
cursor: not-allowed;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* ========================================
|
|
298
|
+
* ACCESSIBILITY IMPROVEMENTS
|
|
299
|
+
* ======================================== */
|
|
300
|
+
|
|
301
|
+
@media (prefers-reduced-motion: reduce) {
|
|
302
|
+
:host,
|
|
303
|
+
input,
|
|
304
|
+
input:after,
|
|
305
|
+
.checkbox-label {
|
|
306
|
+
transition: none;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* High contrast mode support */
|
|
311
|
+
@media (prefers-contrast: high) {
|
|
312
|
+
input {
|
|
313
|
+
border-width: 2px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:host([checked]) input:after,
|
|
317
|
+
:host([indeterminate]) input:after {
|
|
318
|
+
font-weight: 900;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
`;
|
|
322
|
+
export const styles = checkBoxStyles;
|
|
323
|
+
//# sourceMappingURL=checkbox.style.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createComponent } from '@lit-labs/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { NrCheckboxElement } from './checkbox.component.js';
|
|
4
|
+
export const NrCheckbox = createComponent({
|
|
5
|
+
tagName: 'nr-checkbox',
|
|
6
|
+
elementClass: NrCheckboxElement,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
'nr-change': 'nr-change',
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import{css as e,html as t,LitElement as i}from"lit";import{property as a,customElement as s}from"lit/decorators.js";import{createRef as r,ref as n}from"lit/directives/ref.js";import*as o from"monaco-editor";import{registerCompletion as l}from"monacopilot";import d from"monaco-editor/min/vs/editor/editor.main.css?inline";import h from"monaco-editor/esm/vs/editor/editor.worker?worker";import c from"monaco-editor/esm/vs/language/typescript/ts.worker?worker";import m from"monaco-editor/esm/vs/language/html/html.worker?worker";import u from"monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2024 Nuraly
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const p=e`
|
|
7
|
+
:host {
|
|
8
|
+
--nuraly-code-editor-width: 100%;
|
|
9
|
+
--nuraly-code-editor-height: 100%;
|
|
10
|
+
--nuraly-code-editor-min-height: 0;
|
|
11
|
+
--nuraly-code-editor-max-height: none;
|
|
12
|
+
--nuraly-code-editor-border-radius: 4px;
|
|
13
|
+
--nuraly-code-editor-border: 1px solid var(--nuraly-border-color, #e0e0e0);
|
|
14
|
+
|
|
15
|
+
display: block;
|
|
16
|
+
width: var(--nuraly-code-editor-width);
|
|
17
|
+
height: var(--nuraly-code-editor-height);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.editor-container {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
min-height: var(--nuraly-code-editor-min-height);
|
|
28
|
+
max-height: var(--nuraly-code-editor-max-height);
|
|
29
|
+
border-radius: var(--nuraly-code-editor-border-radius);
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
main {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
`
|
|
38
|
+
/**
|
|
39
|
+
* @license
|
|
40
|
+
* Copyright 2024 Nuraly
|
|
41
|
+
* SPDX-License-Identifier: MIT
|
|
42
|
+
*/,b={Light:"vs",Dark:"vs-dark",HighContrastDark:"hc-black",HighContrastLight:"hc-light"},y={JavaScript:"javascript",TypeScript:"typescript",JSON:"json",HTML:"html",CSS:"css",Markdown:"markdown",Python:"python",PlainText:"plaintext"},v=e=>class extends e{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.themeObserver)||void 0===e||e.disconnect(),null===(t=this.designSystemObserver)||void 0===t||t.disconnect(),null===(i=this.mediaQuery)||void 0===i||i.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var e;const t=this.explicitTheme;return t||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get explicitTheme(){var e;return(null===(e=this.closest("[data-theme]"))||void 0===e?void 0:e.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme")||null}get currentDesignSystem(){var e;const t=(null===(e=this.closest("[design-system]"))||void 0===e?void 0:e.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===t?t:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}};
|
|
43
|
+
/**
|
|
44
|
+
* @license
|
|
45
|
+
* Copyright 2024 Nuraly
|
|
46
|
+
* SPDX-License-Identifier: MIT
|
|
47
|
+
*/
|
|
48
|
+
var g=function(e,t,i,a){for(var s,r=arguments.length,n=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a,o=e.length-1;o>=0;o--)(s=e[o])&&(n=(r<3?s(n):r>3?s(t,i,n):s(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};"undefined"!=typeof self&&(self.MonacoEnvironment={getWorker:(e,t)=>"typescript"===t||"javascript"===t?new c:"json"===t?new u:"html"===t?new m:new h});let f=class extends(v(i)){constructor(){super(...arguments),this.isEditorReady=!1,this.containerRef=r(),this.readonly=!1,this.theme=b.Dark,this.language="javascript",this.code="",this.lineNumbers=!0,this.minimap=!1,this.wordWrap=!1,this.fontSize=13,this.aiCompletions=!0,this.completionsEndpoint="/api/v1/copilot/completion",this.extraTypeDefinitions=""}render(){return t`
|
|
49
|
+
<style>
|
|
50
|
+
${d}
|
|
51
|
+
</style>
|
|
52
|
+
<div class="editor-container" part="editor-container">
|
|
53
|
+
<main ${n(this.containerRef)}></main>
|
|
54
|
+
</div>
|
|
55
|
+
`}getValue(){var e,t;return null!==(t=null===(e=this.editor)||void 0===e?void 0:e.getValue())&&void 0!==t?t:""}setValue(e){if(this.editor){const t=this.editor.getPosition();this.editor.setValue(e),t&&this.editor.setPosition(t)}}setOptions(e){var t;null===(t=this.editor)||void 0===t||t.updateOptions(e)}focus(){var e;null===(e=this.editor)||void 0===e||e.focus()}firstUpdated(){this.containerRef.value?this.initializeEditor():console.error("NrCodeEditor: Container element not available")}initializeEditor(){const e=this.getInitialTheme();try{this.editor=o.editor.create(this.containerRef.value,{value:this.code,language:this.language,theme:e,fontSize:this.fontSize,automaticLayout:!0,readOnly:this.readonly,lineNumbers:this.lineNumbers?"on":"off",minimap:{enabled:this.minimap},wordWrap:this.wordWrap?"on":"off"}),this.isEditorReady=!0}catch(e){return void console.error("NrCodeEditor: Failed to create editor",e)}this.setupCustomIntelliSense(),this.aiCompletions&&l(o,this.editor,{language:this.language,endpoint:this.completionsEndpoint}),this.setupEventListeners(),this.setupThemeListener(),this.dispatchEvent(new CustomEvent("nr-ready",{detail:{editor:this.editor},bubbles:!0,composed:!0}))}setupEventListeners(){var e;this.editor&&(null===(e=this.editor.getModel())||void 0===e||e.onDidChangeContent(()=>{this.emit("nr-change",{value:this.getValue()})}),this.editor.onKeyDown(e=>{this.emit("nr-keydown",this.createKeyEventDetail(e))}),this.editor.onKeyUp(e=>{this.emit("nr-keyup",this.createKeyEventDetail(e))}),this.editor.onDidFocusEditorWidget(()=>this.emit("nr-focus")),this.editor.onDidBlurEditorWidget(()=>this.emit("nr-blur")))}createKeyEventDetail(e){return{event:e.browserEvent,key:e.browserEvent.key,code:e.browserEvent.code,ctrlKey:e.browserEvent.ctrlKey,shiftKey:e.browserEvent.shiftKey,altKey:e.browserEvent.altKey,metaKey:e.browserEvent.metaKey}}emit(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}setupThemeListener(){this.applyThemeFromMixin()}getMonacoThemeFromMixin(){if(this.theme)return this.theme;return this.currentTheme.includes("dark")?b.Dark:b.Light}applyThemeFromMixin(){if(!this.isEditorReady||!this.editor)return;const e=this.getMonacoThemeFromMixin();if(e!==this.lastAppliedTheme)try{o.editor.setTheme(e),this.lastAppliedTheme=e}catch(e){}}getInitialTheme(){return this.getMonacoThemeFromMixin()}setupCustomIntelliSense(){const e=o.languages.typescript.typescriptDefaults,t=o.languages.typescript.javascriptDefaults;[e,t].forEach(e=>{this.extraTypeDefinitions&&e.addExtraLib(this.extraTypeDefinitions,"database-types.d.ts")});const i={target:o.languages.typescript.ScriptTarget.ES2020,allowNonTsExtensions:!0,moduleResolution:o.languages.typescript.ModuleResolutionKind.NodeJs,module:o.languages.typescript.ModuleKind.CommonJS,noEmit:!0,esModuleInterop:!0,allowJs:!0};e.setCompilerOptions(Object.assign(Object.assign({},i),{jsx:o.languages.typescript.JsxEmit.React,reactNamespace:"React",typeRoots:["node_modules/@types"]})),t.setCompilerOptions(Object.assign(Object.assign({},i),{checkJs:!1})),o.languages.registerCompletionItemProvider(["javascript","typescript"],{provideCompletionItems:()=>({suggestions:[{label:"Database",kind:o.languages.CompletionItemKind.Class,insertText:"Database",documentation:"Static Database Client for Nuraly Database Manager",detail:"class Database"},{label:"Database.select",kind:o.languages.CompletionItemKind.Method,insertText:'Database.select(${1:"tableName"}, {${2:}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Select data from a table with optional criteria and relations",detail:"(method) Database.select(tableName: string, options?: SelectOptions): Promise<any>"},{label:"Database.insert",kind:o.languages.CompletionItemKind.Method,insertText:'Database.insert(${1:"tableName"}, ${2:{}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Insert data into a table",detail:"(method) Database.insert(tableName: string, data: Record<string, any>): Promise<any>"},{label:"Database.update",kind:o.languages.CompletionItemKind.Method,insertText:'Database.update(${1:"tableName"}, ${2:{}}, ${3:{}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Update data in a table",detail:"(method) Database.update(tableName: string, data: Record<string, any>, criteria: Record<string, any>): Promise<any>"},{label:"Database.delete",kind:o.languages.CompletionItemKind.Method,insertText:'Database.delete(${1:"tableName"}, ${2:{}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Delete data from a table",detail:"(method) Database.delete(tableName: string, criteria: Record<string, any>): Promise<any>"},{label:"Database.createTable",kind:o.languages.CompletionItemKind.Method,insertText:'Database.createTable(${1:"tableName"}, {\n ${2:field}: { type: ${3:"varchar"}, nullable: ${4:false} }\n})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Create a new table with specified schema",detail:"(method) Database.createTable(tableName: string, schema: TableSchema, options?: Record<string, any>): Promise<any>"},{label:"Database.paginate",kind:o.languages.CompletionItemKind.Method,insertText:'Database.paginate(${1:"tableName"}, ${2:1}, ${3:10}, ${4:{}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Get paginated results with metadata",detail:"(method) Database.paginate(tableName: string, page?: number, pageSize?: number, options?: SelectOptions): Promise<PaginationResult<any>>"},{label:"Database.schemaQuery",kind:o.languages.CompletionItemKind.Method,insertText:'Database.schemaQuery(${1:"LIST_TABLES"}${2:, "tableName"})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Execute schema queries for database introspection",detail:"(method) Database.schemaQuery(type: string, tableName?: string): Promise<any>"},{label:"Database.join",kind:o.languages.CompletionItemKind.Method,insertText:'Database.join(${1:"mainTable"}, [\n { table: ${2:"joinTable"}, on: ${3:"field1 = field2"}, type: ${4:"inner"} }\n], ${5:{}})',insertTextRules:o.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"Perform complex join queries",detail:"(method) Database.join(mainTable: string, joins: JoinDefinition[], options?: Record<string, any>): Promise<any>"}]})}),o.languages.registerHoverProvider(["javascript","typescript"],{provideHover:(e,t)=>{const i=e.getWordAtPosition(t);if(!i)return;return{Database:{contents:[{value:"**Database**"},{value:"Static Database Client for Nuraly Database Manager"},{value:"Provides a comprehensive interface for database operations including:"},{value:"- Table management (create, drop, schema operations)"},{value:"- Data operations (select, insert, update, delete)"},{value:"- Advanced queries (joins, aggregations, pagination)"},{value:"- Schema introspection and management"}]}}[i.word]||null}})}updated(e){var t;if(super.updated(e),this.isEditorReady&&this.editor){if(this.applyThemeFromMixin(),e.has("code")&&this.code!==e.get("code")){if(this.editor.getModel()&&this.code!==this.getValue())try{const e=this.editor.getPosition();this.editor.setValue(null!==(t=this.code)&&void 0!==t?t:""),e&&this.editor.setPosition(e)}catch(e){}}if(e.has("readonly"))try{this.editor.updateOptions({readOnly:this.readonly})}catch(e){}if(e.has("language")&&this.editor.getModel())try{o.editor.setModelLanguage(this.editor.getModel(),this.language||"plaintext")}catch(e){}if(e.has("theme"))try{o.editor.setTheme(this.theme)}catch(e){}if(e.has("fontSize"))try{this.editor.updateOptions({fontSize:this.fontSize})}catch(e){}if(e.has("lineNumbers"))try{this.editor.updateOptions({lineNumbers:this.lineNumbers?"on":"off"})}catch(e){}if(e.has("minimap"))try{this.editor.updateOptions({minimap:{enabled:this.minimap}})}catch(e){}if(e.has("wordWrap"))try{this.editor.updateOptions({wordWrap:this.wordWrap?"on":"off"})}catch(e){}}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getModel();this.editor.dispose(),null==e||e.dispose(),this.editor=void 0}this.isEditorReady=!1}};f.styles=p,g([a({type:Boolean,reflect:!0})],f.prototype,"readonly",void 0),g([a({type:String,reflect:!0})],f.prototype,"theme",void 0),g([a({type:String,reflect:!0})],f.prototype,"language",void 0),g([a({type:String})],f.prototype,"code",void 0),g([a({type:Boolean,attribute:"line-numbers"})],f.prototype,"lineNumbers",void 0),g([a({type:Boolean})],f.prototype,"minimap",void 0),g([a({type:Boolean,attribute:"word-wrap"})],f.prototype,"wordWrap",void 0),g([a({type:Number,attribute:"font-size"})],f.prototype,"fontSize",void 0),g([a({type:Boolean,attribute:"ai-completions"})],f.prototype,"aiCompletions",void 0),g([a({type:String,attribute:"completions-endpoint"})],f.prototype,"completionsEndpoint",void 0),g([a({attribute:!1})],f.prototype,"extraTypeDefinitions",void 0),f=g([s("nr-code-editor")],f);export{y as CODE_EDITOR_LANGUAGE,b as CODE_EDITOR_THEME,f as NrCodeEditorElement,p as codeEditorStyles};
|
|
Binary file
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2024 Nuraly
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
7
|
+
import { type CodeEditorTheme, type CodeEditorLanguage } from './code-editor.types.js';
|
|
8
|
+
import * as monaco from 'monaco-editor';
|
|
9
|
+
declare const NrCodeEditorElement_base: (new (...args: any[]) => import("../../shared/theme-mixin.js").ThemeAware) & typeof LitElement;
|
|
10
|
+
/**
|
|
11
|
+
* NuralyUI Code Editor component wrapping Monaco Editor.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <nr-code-editor
|
|
16
|
+
* language="javascript"
|
|
17
|
+
* theme="vs-dark"
|
|
18
|
+
* .code=${"console.log('Hello');"}
|
|
19
|
+
* @nr-change=${(e) => console.log(e.detail.value)}
|
|
20
|
+
* ></nr-code-editor>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @fires nr-change - Fired when the code content changes
|
|
24
|
+
* @fires nr-keydown - Fired on keydown events in the editor
|
|
25
|
+
* @fires nr-keyup - Fired on keyup events in the editor
|
|
26
|
+
* @fires nr-focus - Fired when the editor gains focus
|
|
27
|
+
* @fires nr-blur - Fired when the editor loses focus
|
|
28
|
+
* @fires nr-ready - Fired when the editor is ready
|
|
29
|
+
*
|
|
30
|
+
* @csspart editor-container - The container wrapping the editor
|
|
31
|
+
*
|
|
32
|
+
* @cssprop [--nr-code-editor-width=100%] - Width of the editor
|
|
33
|
+
* @cssprop [--nr-code-editor-height=100%] - Height of the editor
|
|
34
|
+
* @cssprop [--nr-code-editor-min-height=0] - Minimum height
|
|
35
|
+
* @cssprop [--nr-code-editor-max-height=none] - Maximum height
|
|
36
|
+
* @cssprop [--nr-code-editor-border-radius=4px] - Border radius
|
|
37
|
+
*/
|
|
38
|
+
export declare class NrCodeEditorElement extends NrCodeEditorElement_base {
|
|
39
|
+
static styles: import("lit").CSSResult;
|
|
40
|
+
/** Monaco editor instance */
|
|
41
|
+
editor?: monaco.editor.IStandaloneCodeEditor;
|
|
42
|
+
/** Whether editor is initialized */
|
|
43
|
+
private isEditorReady;
|
|
44
|
+
/** Reference to the editor container */
|
|
45
|
+
private containerRef;
|
|
46
|
+
/** Track the last applied Monaco theme to avoid unnecessary updates */
|
|
47
|
+
private lastAppliedTheme?;
|
|
48
|
+
/** Makes the editor read-only */
|
|
49
|
+
readonly: boolean;
|
|
50
|
+
/** Editor theme (vs, vs-dark, hc-black, hc-light) */
|
|
51
|
+
theme: CodeEditorTheme;
|
|
52
|
+
/** Programming language for syntax highlighting */
|
|
53
|
+
language: CodeEditorLanguage;
|
|
54
|
+
/** The code content */
|
|
55
|
+
code: string;
|
|
56
|
+
/** Show line numbers */
|
|
57
|
+
lineNumbers: boolean;
|
|
58
|
+
/** Show minimap */
|
|
59
|
+
minimap: boolean;
|
|
60
|
+
/** Enable word wrap */
|
|
61
|
+
wordWrap: boolean;
|
|
62
|
+
/** Font size in pixels */
|
|
63
|
+
fontSize: number;
|
|
64
|
+
/** Enable AI completions via monacopilot */
|
|
65
|
+
aiCompletions: boolean;
|
|
66
|
+
/** API endpoint for AI completions */
|
|
67
|
+
completionsEndpoint: string;
|
|
68
|
+
/** Extra type definitions for Monaco IntelliSense (host-provided) */
|
|
69
|
+
extraTypeDefinitions: string;
|
|
70
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the current code contents
|
|
73
|
+
*/
|
|
74
|
+
getValue(): string;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the editor value programmatically
|
|
77
|
+
*/
|
|
78
|
+
setValue(value: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* Updates Monaco editor options
|
|
81
|
+
*/
|
|
82
|
+
setOptions(options: monaco.editor.IStandaloneEditorConstructionOptions): void;
|
|
83
|
+
/**
|
|
84
|
+
* Focus the editor
|
|
85
|
+
*/
|
|
86
|
+
focus(): void;
|
|
87
|
+
firstUpdated(): void;
|
|
88
|
+
private initializeEditor;
|
|
89
|
+
private setupEventListeners;
|
|
90
|
+
/** Helper to create keyboard event detail */
|
|
91
|
+
private createKeyEventDetail;
|
|
92
|
+
/** Helper to emit custom events */
|
|
93
|
+
private emit;
|
|
94
|
+
private setupThemeListener;
|
|
95
|
+
/**
|
|
96
|
+
* Convert the mixin's currentTheme to Monaco theme
|
|
97
|
+
* Uses explicit theme prop if set, otherwise derives from data-theme
|
|
98
|
+
*/
|
|
99
|
+
private getMonacoThemeFromMixin;
|
|
100
|
+
/**
|
|
101
|
+
* Apply the current theme from the mixin to Monaco editor
|
|
102
|
+
*/
|
|
103
|
+
private applyThemeFromMixin;
|
|
104
|
+
/**
|
|
105
|
+
* Get the initial theme for the editor
|
|
106
|
+
* Priority: explicit theme prop > data-theme > system preference
|
|
107
|
+
*/
|
|
108
|
+
private getInitialTheme;
|
|
109
|
+
private setupCustomIntelliSense;
|
|
110
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
111
|
+
disconnectedCallback(): void;
|
|
112
|
+
}
|
|
113
|
+
declare global {
|
|
114
|
+
interface HTMLElementTagNameMap {
|
|
115
|
+
'nr-code-editor': NrCodeEditorElement;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export {};
|
|
119
|
+
//# sourceMappingURL=code-editor.component.d.ts.map
|