@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,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Time format types - supports 12-hour and 24-hour formats
|
|
8
|
+
*/
|
|
9
|
+
export declare enum TimeFormat {
|
|
10
|
+
TwentyFourHour = "24h",
|
|
11
|
+
TwelveHour = "12h"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Time picker display modes
|
|
15
|
+
*/
|
|
16
|
+
export declare enum TimePickerMode {
|
|
17
|
+
Hours = "hours",
|
|
18
|
+
Minutes = "minutes",
|
|
19
|
+
Seconds = "seconds"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Time picker sizes
|
|
23
|
+
*/
|
|
24
|
+
export declare enum TimePickerSize {
|
|
25
|
+
Small = "small",
|
|
26
|
+
Medium = "medium",
|
|
27
|
+
Large = "large"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Time picker variants
|
|
31
|
+
*/
|
|
32
|
+
export declare enum TimePickerVariant {
|
|
33
|
+
Default = "default",
|
|
34
|
+
Outlined = "outlined",
|
|
35
|
+
Filled = "filled"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Time picker states for validation
|
|
39
|
+
*/
|
|
40
|
+
export declare enum TimePickerState {
|
|
41
|
+
Default = "default",
|
|
42
|
+
Error = "error",
|
|
43
|
+
Warning = "warning",
|
|
44
|
+
Success = "success"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Time picker placement options for dropdown
|
|
48
|
+
*/
|
|
49
|
+
export declare enum TimePickerPlacement {
|
|
50
|
+
Bottom = "bottom",
|
|
51
|
+
Top = "top",
|
|
52
|
+
Auto = "auto"
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Time selection step increments
|
|
56
|
+
*/
|
|
57
|
+
export declare enum TimeStep {
|
|
58
|
+
One = 1,
|
|
59
|
+
Five = 5,
|
|
60
|
+
Ten = 10,
|
|
61
|
+
Fifteen = 15,
|
|
62
|
+
Thirty = 30
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Time period for 12-hour format
|
|
66
|
+
*/
|
|
67
|
+
export declare enum TimePeriod {
|
|
68
|
+
AM = "AM",
|
|
69
|
+
PM = "PM"
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Time structure interface
|
|
73
|
+
*/
|
|
74
|
+
export interface TimeValue {
|
|
75
|
+
hours: number;
|
|
76
|
+
minutes: number;
|
|
77
|
+
seconds: number;
|
|
78
|
+
period?: TimePeriod;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Time picker option for dropdowns
|
|
82
|
+
*/
|
|
83
|
+
export interface TimePickerOption {
|
|
84
|
+
value: string;
|
|
85
|
+
label: string;
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Time validation constraints
|
|
90
|
+
*/
|
|
91
|
+
export interface TimeConstraints {
|
|
92
|
+
minTime?: string;
|
|
93
|
+
maxTime?: string;
|
|
94
|
+
disabledTimes?: string[];
|
|
95
|
+
enabledTimes?: string[];
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Time picker configuration
|
|
99
|
+
*/
|
|
100
|
+
export interface TimePickerConfig {
|
|
101
|
+
format: TimeFormat;
|
|
102
|
+
showSeconds: boolean;
|
|
103
|
+
step: {
|
|
104
|
+
hours: TimeStep;
|
|
105
|
+
minutes: TimeStep;
|
|
106
|
+
seconds: TimeStep;
|
|
107
|
+
};
|
|
108
|
+
use12HourClock: boolean;
|
|
109
|
+
minuteInterval: number;
|
|
110
|
+
secondInterval: number;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Time picker event details
|
|
114
|
+
*/
|
|
115
|
+
export interface TimeChangeEventDetail {
|
|
116
|
+
value: string;
|
|
117
|
+
timeValue: TimeValue;
|
|
118
|
+
formattedValue: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Default time formats
|
|
122
|
+
*/
|
|
123
|
+
export declare const DEFAULT_TIME_FORMATS: {
|
|
124
|
+
readonly "24h": "HH:mm";
|
|
125
|
+
readonly "12h": "hh:mm A";
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Default time format with seconds
|
|
129
|
+
*/
|
|
130
|
+
export declare const DEFAULT_TIME_FORMATS_WITH_SECONDS: {
|
|
131
|
+
readonly "24h": "HH:mm:ss";
|
|
132
|
+
readonly "12h": "hh:mm:ss A";
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Time picker constants
|
|
136
|
+
*/
|
|
137
|
+
export declare const TIME_PICKER_CONSTANTS: {
|
|
138
|
+
readonly HOURS_24: 24;
|
|
139
|
+
readonly HOURS_12: 12;
|
|
140
|
+
readonly MINUTES: 60;
|
|
141
|
+
readonly SECONDS: 60;
|
|
142
|
+
readonly DEFAULT_STEP: 1;
|
|
143
|
+
readonly DEFAULT_MINUTE_INTERVAL: 1;
|
|
144
|
+
readonly DEFAULT_SECOND_INTERVAL: 1;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Time picker events
|
|
148
|
+
*/
|
|
149
|
+
export declare const TIME_PICKER_EVENTS: {
|
|
150
|
+
readonly TIME_CHANGE: "nr-time-change";
|
|
151
|
+
readonly FOCUS: "nr-focus";
|
|
152
|
+
readonly BLUR: "nr-blur";
|
|
153
|
+
readonly CLOCK_OPEN: "nr-clock-open";
|
|
154
|
+
readonly CLOCK_CLOSE: "nr-clock-close";
|
|
155
|
+
readonly VALIDATION: "nr-validation";
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Empty time value
|
|
159
|
+
*/
|
|
160
|
+
export declare const EMPTY_TIME_VALUE: TimeValue;
|
|
161
|
+
//# sourceMappingURL=timepicker.types.d.ts.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Time format types - supports 12-hour and 24-hour formats
|
|
8
|
+
*/
|
|
9
|
+
export var TimeFormat;
|
|
10
|
+
(function (TimeFormat) {
|
|
11
|
+
TimeFormat["TwentyFourHour"] = "24h";
|
|
12
|
+
TimeFormat["TwelveHour"] = "12h";
|
|
13
|
+
})(TimeFormat || (TimeFormat = {}));
|
|
14
|
+
/**
|
|
15
|
+
* Time picker display modes
|
|
16
|
+
*/
|
|
17
|
+
export var TimePickerMode;
|
|
18
|
+
(function (TimePickerMode) {
|
|
19
|
+
TimePickerMode["Hours"] = "hours";
|
|
20
|
+
TimePickerMode["Minutes"] = "minutes";
|
|
21
|
+
TimePickerMode["Seconds"] = "seconds";
|
|
22
|
+
})(TimePickerMode || (TimePickerMode = {}));
|
|
23
|
+
/**
|
|
24
|
+
* Time picker sizes
|
|
25
|
+
*/
|
|
26
|
+
export var TimePickerSize;
|
|
27
|
+
(function (TimePickerSize) {
|
|
28
|
+
TimePickerSize["Small"] = "small";
|
|
29
|
+
TimePickerSize["Medium"] = "medium";
|
|
30
|
+
TimePickerSize["Large"] = "large";
|
|
31
|
+
})(TimePickerSize || (TimePickerSize = {}));
|
|
32
|
+
/**
|
|
33
|
+
* Time picker variants
|
|
34
|
+
*/
|
|
35
|
+
export var TimePickerVariant;
|
|
36
|
+
(function (TimePickerVariant) {
|
|
37
|
+
TimePickerVariant["Default"] = "default";
|
|
38
|
+
TimePickerVariant["Outlined"] = "outlined";
|
|
39
|
+
TimePickerVariant["Filled"] = "filled";
|
|
40
|
+
})(TimePickerVariant || (TimePickerVariant = {}));
|
|
41
|
+
/**
|
|
42
|
+
* Time picker states for validation
|
|
43
|
+
*/
|
|
44
|
+
export var TimePickerState;
|
|
45
|
+
(function (TimePickerState) {
|
|
46
|
+
TimePickerState["Default"] = "default";
|
|
47
|
+
TimePickerState["Error"] = "error";
|
|
48
|
+
TimePickerState["Warning"] = "warning";
|
|
49
|
+
TimePickerState["Success"] = "success";
|
|
50
|
+
})(TimePickerState || (TimePickerState = {}));
|
|
51
|
+
/**
|
|
52
|
+
* Time picker placement options for dropdown
|
|
53
|
+
*/
|
|
54
|
+
export var TimePickerPlacement;
|
|
55
|
+
(function (TimePickerPlacement) {
|
|
56
|
+
TimePickerPlacement["Bottom"] = "bottom";
|
|
57
|
+
TimePickerPlacement["Top"] = "top";
|
|
58
|
+
TimePickerPlacement["Auto"] = "auto";
|
|
59
|
+
})(TimePickerPlacement || (TimePickerPlacement = {}));
|
|
60
|
+
/**
|
|
61
|
+
* Time selection step increments
|
|
62
|
+
*/
|
|
63
|
+
export var TimeStep;
|
|
64
|
+
(function (TimeStep) {
|
|
65
|
+
TimeStep[TimeStep["One"] = 1] = "One";
|
|
66
|
+
TimeStep[TimeStep["Five"] = 5] = "Five";
|
|
67
|
+
TimeStep[TimeStep["Ten"] = 10] = "Ten";
|
|
68
|
+
TimeStep[TimeStep["Fifteen"] = 15] = "Fifteen";
|
|
69
|
+
TimeStep[TimeStep["Thirty"] = 30] = "Thirty";
|
|
70
|
+
})(TimeStep || (TimeStep = {}));
|
|
71
|
+
/**
|
|
72
|
+
* Time period for 12-hour format
|
|
73
|
+
*/
|
|
74
|
+
export var TimePeriod;
|
|
75
|
+
(function (TimePeriod) {
|
|
76
|
+
TimePeriod["AM"] = "AM";
|
|
77
|
+
TimePeriod["PM"] = "PM";
|
|
78
|
+
})(TimePeriod || (TimePeriod = {}));
|
|
79
|
+
/**
|
|
80
|
+
* Default time formats
|
|
81
|
+
*/
|
|
82
|
+
export const DEFAULT_TIME_FORMATS = {
|
|
83
|
+
[TimeFormat.TwentyFourHour]: 'HH:mm',
|
|
84
|
+
[TimeFormat.TwelveHour]: 'hh:mm A',
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Default time format with seconds
|
|
88
|
+
*/
|
|
89
|
+
export const DEFAULT_TIME_FORMATS_WITH_SECONDS = {
|
|
90
|
+
[TimeFormat.TwentyFourHour]: 'HH:mm:ss',
|
|
91
|
+
[TimeFormat.TwelveHour]: 'hh:mm:ss A',
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Time picker constants
|
|
95
|
+
*/
|
|
96
|
+
export const TIME_PICKER_CONSTANTS = {
|
|
97
|
+
HOURS_24: 24,
|
|
98
|
+
HOURS_12: 12,
|
|
99
|
+
MINUTES: 60,
|
|
100
|
+
SECONDS: 60,
|
|
101
|
+
DEFAULT_STEP: 1,
|
|
102
|
+
DEFAULT_MINUTE_INTERVAL: 1,
|
|
103
|
+
DEFAULT_SECOND_INTERVAL: 1,
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Time picker events
|
|
107
|
+
*/
|
|
108
|
+
export const TIME_PICKER_EVENTS = {
|
|
109
|
+
TIME_CHANGE: 'nr-time-change',
|
|
110
|
+
FOCUS: 'nr-focus',
|
|
111
|
+
BLUR: 'nr-blur',
|
|
112
|
+
CLOCK_OPEN: 'nr-clock-open',
|
|
113
|
+
CLOCK_CLOSE: 'nr-clock-close',
|
|
114
|
+
VALIDATION: 'nr-validation',
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Empty time value
|
|
118
|
+
*/
|
|
119
|
+
export const EMPTY_TIME_VALUE = {
|
|
120
|
+
hours: 0,
|
|
121
|
+
minutes: 0,
|
|
122
|
+
seconds: 0,
|
|
123
|
+
period: TimePeriod.AM,
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=timepicker.types.js.map
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import{css as t,LitElement as o,html as a,nothing as r}from"lit";import{property as s,state as n,customElement as i}from"lit/decorators.js";import{repeat as e}from"lit/directives/repeat.js";import{classMap as l}from"lit/directives/class-map.js";import{NuralyUIBaseMixin as c}from"@nuralyui/common/mixins";import{BaseComponentController as u}from"@nuralyui/common/controllers";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/const d=t`
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
position: fixed;
|
|
10
|
+
z-index: var(--nuraly-z-index-toast);
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
|
|
13
|
+
/* Force CSS custom property inheritance to ensure theme switching works properly */
|
|
14
|
+
color: var(--nuraly-color-text);
|
|
15
|
+
font-family: var(--nuraly-font-family);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Container positioning */
|
|
19
|
+
:host([position="top-right"]) {
|
|
20
|
+
top: var(--nuraly-spacing-4);
|
|
21
|
+
right: var(--nuraly-spacing-4);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host([position="top-left"]) {
|
|
25
|
+
top: var(--nuraly-spacing-4);
|
|
26
|
+
left: var(--nuraly-spacing-4);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([position="top-center"]) {
|
|
30
|
+
top: var(--nuraly-spacing-4);
|
|
31
|
+
left: 50%;
|
|
32
|
+
transform: translateX(-50%);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([position="bottom-right"]) {
|
|
36
|
+
bottom: var(--nuraly-spacing-4);
|
|
37
|
+
right: var(--nuraly-spacing-4);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([position="bottom-left"]) {
|
|
41
|
+
bottom: var(--nuraly-spacing-4);
|
|
42
|
+
left: var(--nuraly-spacing-4);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([position="bottom-center"]) {
|
|
46
|
+
bottom: var(--nuraly-spacing-4);
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translateX(-50%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.toast-container {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
gap: var(--nuraly-toast-stack-gap);
|
|
55
|
+
min-width: var(--nuraly-toast-min-width);
|
|
56
|
+
max-width: var(--nuraly-toast-max-width);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.toast {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: start;
|
|
62
|
+
gap: var(--nuraly-toast-gap);
|
|
63
|
+
padding: var(--nuraly-toast-padding-vertical) var(--nuraly-toast-padding-horizontal);
|
|
64
|
+
background-color: var(--nuraly-color-background);
|
|
65
|
+
color: var(--nuraly-color-text);
|
|
66
|
+
border: 1px solid var(--nuraly-color-border);
|
|
67
|
+
border-radius: var(--nuraly-border-radius-toast);
|
|
68
|
+
box-shadow: var(--nuraly-shadow-toast);
|
|
69
|
+
pointer-events: auto;
|
|
70
|
+
cursor: default;
|
|
71
|
+
transition: all var(--nuraly-transition-fast) ease;
|
|
72
|
+
position: relative;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.toast:hover {
|
|
77
|
+
box-shadow: var(--nuraly-shadow-toast-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Toast type variants */
|
|
81
|
+
.toast--default {
|
|
82
|
+
background-color: var(--nuraly-toast-default-background);
|
|
83
|
+
border-color: var(--nuraly-toast-default-border);
|
|
84
|
+
color: var(--nuraly-toast-default-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.toast--success {
|
|
88
|
+
background-color: var(--nuraly-toast-success-background);
|
|
89
|
+
border-color: var(--nuraly-toast-success-border);
|
|
90
|
+
color: var(--nuraly-toast-success-text);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.toast--error {
|
|
94
|
+
background-color: var(--nuraly-toast-error-background);
|
|
95
|
+
border-color: var(--nuraly-toast-error-border);
|
|
96
|
+
color: var(--nuraly-toast-error-text);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.toast--warning {
|
|
100
|
+
background-color: var(--nuraly-toast-warning-background);
|
|
101
|
+
border-color: var(--nuraly-toast-warning-border);
|
|
102
|
+
color: var(--nuraly-toast-warning-text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.toast--info {
|
|
106
|
+
background-color: var(--nuraly-toast-info-background);
|
|
107
|
+
border-color: var(--nuraly-toast-info-border);
|
|
108
|
+
color: var(--nuraly-toast-info-text);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Toast icon */
|
|
112
|
+
.toast__icon {
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
margin-top: 0.125rem; /* Slight adjustment for better visual alignment */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.toast__icon nr-icon {
|
|
121
|
+
color: inherit;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Toast content */
|
|
125
|
+
.toast__content {
|
|
126
|
+
flex: 1;
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
gap: var(--nuraly-spacing-2);
|
|
130
|
+
min-width: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.toast__text {
|
|
134
|
+
font-size: var(--nuraly-font-size-sm);
|
|
135
|
+
line-height: 1.5;
|
|
136
|
+
word-break: break-word;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Toast button */
|
|
140
|
+
.toast__button {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
margin-top: var(--nuraly-spacing-1);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.toast__button nr-button {
|
|
147
|
+
flex-shrink: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Close button */
|
|
151
|
+
.toast__close {
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
min-width: var(--nuraly-toast-close-size);
|
|
154
|
+
min-height: var(--nuraly-toast-close-size);
|
|
155
|
+
padding: 0;
|
|
156
|
+
border: none;
|
|
157
|
+
background: transparent;
|
|
158
|
+
color: currentColor;
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
border-radius: var(--nuraly-border-radius-small);
|
|
164
|
+
transition: all var(--nuraly-transition-fast) ease;
|
|
165
|
+
opacity: var(--nuraly-toast-close-opacity);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.toast__close:hover {
|
|
169
|
+
opacity: var(--nuraly-toast-close-opacity-hover);
|
|
170
|
+
background-color: var(--nuraly-toast-close-hover-background);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.toast__close:focus {
|
|
174
|
+
outline: var(--nuraly-focus-outline);
|
|
175
|
+
outline-offset: var(--nuraly-focus-outline-offset);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.toast__close nr-icon {
|
|
179
|
+
color: inherit;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Animations */
|
|
183
|
+
@keyframes toast-fade-in {
|
|
184
|
+
from {
|
|
185
|
+
opacity: 0;
|
|
186
|
+
transform: translateY(-1rem);
|
|
187
|
+
}
|
|
188
|
+
to {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
transform: translateY(0);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@keyframes toast-fade-out {
|
|
195
|
+
from {
|
|
196
|
+
opacity: 1;
|
|
197
|
+
transform: translateY(0);
|
|
198
|
+
}
|
|
199
|
+
to {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
transform: translateY(-1rem);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@keyframes toast-slide-in-right {
|
|
206
|
+
from {
|
|
207
|
+
opacity: 0;
|
|
208
|
+
transform: translateX(100%);
|
|
209
|
+
}
|
|
210
|
+
to {
|
|
211
|
+
opacity: 1;
|
|
212
|
+
transform: translateX(0);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@keyframes toast-slide-out-right {
|
|
217
|
+
from {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: translateX(0);
|
|
220
|
+
}
|
|
221
|
+
to {
|
|
222
|
+
opacity: 0;
|
|
223
|
+
transform: translateX(100%);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes toast-slide-in-left {
|
|
228
|
+
from {
|
|
229
|
+
opacity: 0;
|
|
230
|
+
transform: translateX(-100%);
|
|
231
|
+
}
|
|
232
|
+
to {
|
|
233
|
+
opacity: 1;
|
|
234
|
+
transform: translateX(0);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@keyframes toast-slide-out-left {
|
|
239
|
+
from {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
transform: translateX(0);
|
|
242
|
+
}
|
|
243
|
+
to {
|
|
244
|
+
opacity: 0;
|
|
245
|
+
transform: translateX(-100%);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@keyframes toast-bounce-in {
|
|
250
|
+
0% {
|
|
251
|
+
opacity: 0;
|
|
252
|
+
transform: scale(0.3);
|
|
253
|
+
}
|
|
254
|
+
50% {
|
|
255
|
+
transform: scale(1.05);
|
|
256
|
+
}
|
|
257
|
+
70% {
|
|
258
|
+
transform: scale(0.9);
|
|
259
|
+
}
|
|
260
|
+
100% {
|
|
261
|
+
opacity: 1;
|
|
262
|
+
transform: scale(1);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@keyframes toast-bounce-out {
|
|
267
|
+
0% {
|
|
268
|
+
transform: scale(1);
|
|
269
|
+
}
|
|
270
|
+
25% {
|
|
271
|
+
transform: scale(0.95);
|
|
272
|
+
}
|
|
273
|
+
50% {
|
|
274
|
+
opacity: 1;
|
|
275
|
+
transform: scale(1.1);
|
|
276
|
+
}
|
|
277
|
+
100% {
|
|
278
|
+
opacity: 0;
|
|
279
|
+
transform: scale(0.3);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Animation classes */
|
|
284
|
+
.toast--fade-in {
|
|
285
|
+
animation: toast-fade-in var(--nuraly-transition-toast) ease;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.toast--fade-out {
|
|
289
|
+
animation: toast-fade-out var(--nuraly-transition-toast) ease;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.toast--slide-in {
|
|
293
|
+
animation: toast-slide-in-right var(--nuraly-transition-toast) ease;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.toast--slide-out {
|
|
297
|
+
animation: toast-slide-out-right var(--nuraly-transition-toast) ease;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.toast--bounce-in {
|
|
301
|
+
animation: toast-bounce-in var(--nuraly-transition-toast) ease;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.toast--bounce-out {
|
|
305
|
+
animation: toast-bounce-out var(--nuraly-transition-toast) ease;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* Position-specific slide animations */
|
|
309
|
+
:host([position="top-left"]) .toast--slide-in,
|
|
310
|
+
:host([position="bottom-left"]) .toast--slide-in {
|
|
311
|
+
animation: toast-slide-in-left var(--nuraly-transition-toast) ease;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
:host([position="top-left"]) .toast--slide-out,
|
|
315
|
+
:host([position="bottom-left"]) .toast--slide-out {
|
|
316
|
+
animation: toast-slide-out-left var(--nuraly-transition-toast) ease;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Progress bar for duration indicator */
|
|
320
|
+
.toast__progress {
|
|
321
|
+
position: absolute;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
left: 0;
|
|
324
|
+
height: var(--nuraly-toast-progress-height);
|
|
325
|
+
background-color: currentColor;
|
|
326
|
+
opacity: var(--nuraly-toast-progress-opacity);
|
|
327
|
+
transition: width linear;
|
|
328
|
+
}
|
|
329
|
+
`
|
|
330
|
+
/**
|
|
331
|
+
* @license
|
|
332
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
333
|
+
* SPDX-License-Identifier: MIT
|
|
334
|
+
*/,f="",m=5e3,y=5;
|
|
335
|
+
/**
|
|
336
|
+
* @license
|
|
337
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
338
|
+
* SPDX-License-Identifier: MIT
|
|
339
|
+
*/
|
|
340
|
+
var p=function(t,o,a,r){for(var s,n=arguments.length,i=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,a):r,e=t.length-1;e>=0;e--)(s=t[e])&&(i=(n<3?s(i):n>3?s(o,a,i):s(o,a))||i);return n>3&&i&&Object.defineProperty(o,a,i),i};let h=class extends(c(o)){constructor(){super(...arguments),this.requiredComponents=["nr-icon","nr-button"],this.position="top-right",this.maxToasts=5,this.defaultDuration=5e3,this.animation="fade",this.stack=!0,this.autoDismiss=!0,this.toasts=[],this.timeouts=new Map}show(t){var o,a,r;const s="string"==typeof t?{text:t}:t,n={id:this.generateId(),timestamp:Date.now(),text:s.text,content:s.content,type:s.type||"default",duration:null!==(o=s.duration)&&void 0!==o?o:this.defaultDuration,autoDismiss:null!==(a=s.autoDismiss)&&void 0!==a?a:this.autoDismiss,closable:null===(r=s.closable)||void 0===r||r,icon:s.icon||this.getDefaultIcon(s.type),customClass:s.customClass,button:s.button,onClose:s.onClose,onClick:s.onClick};if(this.stack?this.toasts.length>=this.maxToasts&&this.removeToast(this.toasts[0].id):this.clearAll(),this.toasts=[...this.toasts,n],this.emitToastEvent("nr-toast-show",n,"show"),n.autoDismiss&&n.duration&&n.duration>0){const t=window.setTimeout(()=>{this.removeToast(n.id)},n.duration);this.timeouts.set(n.id,t)}return n.id}success(t,o){return this.show({text:t,type:"success",duration:o})}error(t,o){return this.show({text:t,type:"error",duration:o})}warning(t,o){return this.show({text:t,type:"warning",duration:o})}info(t,o){return this.show({text:t,type:"info",duration:o})}removeToast(t){const o=this.toasts.find(o=>o.id===t);if(!o)return;o.removing=!0,this.requestUpdate();const a=this.timeouts.get(t);a&&(clearTimeout(a),this.timeouts.delete(t)),setTimeout(()=>{var a;this.toasts=this.toasts.filter(o=>o.id!==t),this.emitToastEvent("nr-toast-close",o,"close"),null===(a=o.onClose)||void 0===a||a.call(o)},300)}clearAll(){this.toasts.forEach(t=>{const o=this.timeouts.get(t.id);o&&clearTimeout(o)}),this.timeouts.clear(),this.toasts=[]}handleToastClick(t){var o;this.emitToastEvent("nr-toast-click",t,"click"),null===(o=t.onClick)||void 0===o||o.call(t)}handleCloseClick(t,o){t.stopPropagation(),this.removeToast(o.id)}getDefaultIcon(t){switch(t){case"success":return"check-circle";case"error":return"x-circle";case"warning":return"alert-triangle";case"info":return"info";default:return""}}generateId(){return`toast-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}getAnimationClass(t){const o=t.removing?"out":"in";return`toast--${this.animation}-${o}`}emitToastEvent(t,o,a){this.dispatchEvent(new CustomEvent(t,{detail:{toast:o,action:a},bubbles:!0,composed:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.clearAll()}render(){return a`
|
|
341
|
+
<div class="toast-container">
|
|
342
|
+
${e(this.toasts,t=>t.id,t=>this.renderToast(t))}
|
|
343
|
+
</div>
|
|
344
|
+
`}renderToast(t){const o={toast:!0,[`toast--${t.type}`]:!0,[this.getAnimationClass(t)]:!0,[t.customClass||""]:!!t.customClass};return a`
|
|
345
|
+
<div
|
|
346
|
+
class=${l(o)}
|
|
347
|
+
@click=${()=>this.handleToastClick(t)}
|
|
348
|
+
role="alert"
|
|
349
|
+
aria-live="polite"
|
|
350
|
+
>
|
|
351
|
+
${t.icon?a`
|
|
352
|
+
<div class="toast__icon">
|
|
353
|
+
<nr-icon name=${t.icon} size="medium"></nr-icon>
|
|
354
|
+
</div>
|
|
355
|
+
`:r}
|
|
356
|
+
|
|
357
|
+
<div class="toast__content">
|
|
358
|
+
${t.content?t.content:a`
|
|
359
|
+
<div class="toast__text">${t.text}</div>
|
|
360
|
+
${t.button?this.renderButton(t.button):r}
|
|
361
|
+
`}
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
${t.closable?a`
|
|
365
|
+
<button
|
|
366
|
+
class="toast__close"
|
|
367
|
+
@click=${o=>this.handleCloseClick(o,t)}
|
|
368
|
+
aria-label="Close notification"
|
|
369
|
+
type="button"
|
|
370
|
+
>
|
|
371
|
+
<nr-icon name="x" size="small"></nr-icon>
|
|
372
|
+
</button>
|
|
373
|
+
`:r}
|
|
374
|
+
</div>
|
|
375
|
+
`}renderButton(t){return a`
|
|
376
|
+
<div class="toast__button">
|
|
377
|
+
<nr-button
|
|
378
|
+
type=${t.type||"default"}
|
|
379
|
+
size=${t.size||"small"}
|
|
380
|
+
?disabled=${t.disabled||!1}
|
|
381
|
+
@click=${o=>{o.stopPropagation(),t.onClick(o)}}
|
|
382
|
+
>
|
|
383
|
+
${t.icon?a`<nr-icon slot="icon-left" name=${t.icon}></nr-icon>`:r}
|
|
384
|
+
${t.label}
|
|
385
|
+
</nr-button>
|
|
386
|
+
</div>
|
|
387
|
+
`}};h.styles=d,p([s({type:String,reflect:!0})],h.prototype,"position",void 0),p([s({type:Number})],h.prototype,"maxToasts",void 0),p([s({type:Number})],h.prototype,"defaultDuration",void 0),p([s({type:String})],h.prototype,"animation",void 0),p([s({type:Boolean})],h.prototype,"stack",void 0),p([s({type:Boolean})],h.prototype,"autoDismiss",void 0),p([n()],h.prototype,"toasts",void 0),h=p([i("nr-toast")],h);
|
|
388
|
+
/**
|
|
389
|
+
* @license
|
|
390
|
+
* Copyright 2023 Nuraly, Laabidi Aymen
|
|
391
|
+
* SPDX-License-Identifier: MIT
|
|
392
|
+
*/
|
|
393
|
+
class v extends u{}export{v as BaseToastController,y as DEFAULT_MAX_TOASTS,m as DEFAULT_TOAST_DURATION,f as EMPTY_STRING,h as NrToastElement};
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NrToastElement } from './toast.component.js';
|
|
2
|
+
export declare const NrToast: import("@lit-labs/react").ReactWebComponent<NrToastElement, {
|
|
3
|
+
'nr-toast-show': string;
|
|
4
|
+
'nr-toast-close': string;
|
|
5
|
+
'nr-toast-click': string;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=react.d.ts.map
|