jebamo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/index-d5fa9014.js +1722 -0
- package/dist/cjs/index-d5fa9014.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/je-alert_31.cjs.entry.js +4772 -0
- package/dist/cjs/je-alert_31.cjs.entry.js.map +1 -0
- package/dist/cjs/je-branch.cjs.entry.js +22 -0
- package/dist/cjs/je-branch.cjs.entry.js.map +1 -0
- package/dist/cjs/je-column-group.cjs.entry.js +29 -0
- package/dist/cjs/je-column-group.cjs.entry.js.map +1 -0
- package/dist/cjs/je-column.cjs.entry.js +73 -0
- package/dist/cjs/je-column.cjs.entry.js.map +1 -0
- package/dist/cjs/je-infinite.cjs.entry.js +45 -0
- package/dist/cjs/je-infinite.cjs.entry.js.map +1 -0
- package/dist/cjs/je-menu-option.cjs.entry.js +22 -0
- package/dist/cjs/je-menu-option.cjs.entry.js.map +1 -0
- package/dist/cjs/je-menu.cjs.entry.js +22 -0
- package/dist/cjs/je-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tab.cjs.entry.js +22 -0
- package/dist/cjs/je-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tabs.cjs.entry.js +22 -0
- package/dist/cjs/je-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/je-toast.cjs.entry.js +22 -0
- package/dist/cjs/je-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/je-tree.cjs.entry.js +22 -0
- package/dist/cjs/je-tree.cjs.entry.js.map +1 -0
- package/dist/cjs/jebamo.cjs.js +27 -0
- package/dist/cjs/jebamo.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +52 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.css +10 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.js +141 -0
- package/dist/collection/components/checkbox-group/je-checkbox-group/je-checkbox-group.js.map +1 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.css +13 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.js +153 -0
- package/dist/collection/components/checkbox-group/je-checkbox-option/je-checkbox-option.js.map +1 -0
- package/dist/collection/components/column/je-column/je-column.css +10 -0
- package/dist/collection/components/column/je-column/je-column.js +187 -0
- package/dist/collection/components/column/je-column/je-column.js.map +1 -0
- package/dist/collection/components/column/je-column-group/je-column-group.css +4 -0
- package/dist/collection/components/column/je-column-group/je-column-group.js +49 -0
- package/dist/collection/components/column/je-column-group/je-column-group.js.map +1 -0
- package/dist/collection/components/je-alert/je-alert.css +84 -0
- package/dist/collection/components/je-alert/je-alert.js +339 -0
- package/dist/collection/components/je-alert/je-alert.js.map +1 -0
- package/dist/collection/components/je-button/je-button.css +180 -0
- package/dist/collection/components/je-button/je-button.js +252 -0
- package/dist/collection/components/je-button/je-button.js.map +1 -0
- package/dist/collection/components/je-card/je-card.css +113 -0
- package/dist/collection/components/je-card/je-card.js +67 -0
- package/dist/collection/components/je-card/je-card.js.map +1 -0
- package/dist/collection/components/je-checkbox/je-checkbox.css +14 -0
- package/dist/collection/components/je-checkbox/je-checkbox.js +191 -0
- package/dist/collection/components/je-checkbox/je-checkbox.js.map +1 -0
- package/dist/collection/components/je-color/je-color.css +39 -0
- package/dist/collection/components/je-color/je-color.js +116 -0
- package/dist/collection/components/je-color/je-color.js.map +1 -0
- package/dist/collection/components/je-datepicker/je-datepicker.css +56 -0
- package/dist/collection/components/je-datepicker/je-datepicker.js +129 -0
- package/dist/collection/components/je-datepicker/je-datepicker.js.map +1 -0
- package/dist/collection/components/je-details/je-details.css +39 -0
- package/dist/collection/components/je-details/je-details.js +63 -0
- package/dist/collection/components/je-details/je-details.js.map +1 -0
- package/dist/collection/components/je-divider/je-divider.css +32 -0
- package/dist/collection/components/je-divider/je-divider.js +63 -0
- package/dist/collection/components/je-divider/je-divider.js.map +1 -0
- package/dist/collection/components/je-drawer/je-drawer.css +51 -0
- package/dist/collection/components/je-drawer/je-drawer.js +71 -0
- package/dist/collection/components/je-drawer/je-drawer.js.map +1 -0
- package/dist/collection/components/je-dropzone/je-dropzone.css +21 -0
- package/dist/collection/components/je-dropzone/je-dropzone.js +86 -0
- package/dist/collection/components/je-dropzone/je-dropzone.js.map +1 -0
- package/dist/collection/components/je-form/je-form.css +12 -0
- package/dist/collection/components/je-form/je-form.js +95 -0
- package/dist/collection/components/je-form/je-form.js.map +1 -0
- package/dist/collection/components/je-icon/je-icon.css +60 -0
- package/dist/collection/components/je-icon/je-icon.js +122 -0
- package/dist/collection/components/je-icon/je-icon.js.map +1 -0
- package/dist/collection/components/je-infinite/je-infinite.css +18 -0
- package/dist/collection/components/je-infinite/je-infinite.js +119 -0
- package/dist/collection/components/je-infinite/je-infinite.js.map +1 -0
- package/dist/collection/components/je-input/je-input.css +96 -0
- package/dist/collection/components/je-input/je-input.js +862 -0
- package/dist/collection/components/je-input/je-input.js.map +1 -0
- package/dist/collection/components/je-link/je-link.css +15 -0
- package/dist/collection/components/je-link/je-link.js +207 -0
- package/dist/collection/components/je-link/je-link.js.map +1 -0
- package/dist/collection/components/je-loading/je-loading.css +50 -0
- package/dist/collection/components/je-loading/je-loading.js +48 -0
- package/dist/collection/components/je-loading/je-loading.js.map +1 -0
- package/dist/collection/components/je-modal/je-modal.css +75 -0
- package/dist/collection/components/je-modal/je-modal.js +220 -0
- package/dist/collection/components/je-modal/je-modal.js.map +1 -0
- package/dist/collection/components/je-page/je-page.css +202 -0
- package/dist/collection/components/je-page/je-page.js +129 -0
- package/dist/collection/components/je-page/je-page.js.map +1 -0
- package/dist/collection/components/je-pill/je-pill.css +43 -0
- package/dist/collection/components/je-pill/je-pill.js +82 -0
- package/dist/collection/components/je-pill/je-pill.js.map +1 -0
- package/dist/collection/components/je-placeholder/je-placeholder.css +39 -0
- package/dist/collection/components/je-placeholder/je-placeholder.js +44 -0
- package/dist/collection/components/je-placeholder/je-placeholder.js.map +1 -0
- package/dist/collection/components/je-popover/je-popover.css +60 -0
- package/dist/collection/components/je-popover/je-popover.js +499 -0
- package/dist/collection/components/je-popover/je-popover.js.map +1 -0
- package/dist/collection/components/je-textarea/je-textarea.css +59 -0
- package/dist/collection/components/je-textarea/je-textarea.js +171 -0
- package/dist/collection/components/je-textarea/je-textarea.js.map +1 -0
- package/dist/collection/components/je-toast/je-toast.css +3 -0
- package/dist/collection/components/je-toast/je-toast.js +19 -0
- package/dist/collection/components/je-toast/je-toast.js.map +1 -0
- package/dist/collection/components/je-toggle/je-toggle.css +48 -0
- package/dist/collection/components/je-toggle/je-toggle.js +105 -0
- package/dist/collection/components/je-toggle/je-toggle.js.map +1 -0
- package/dist/collection/components/je-toolbar/je-toolbar.css +16 -0
- package/dist/collection/components/je-toolbar/je-toolbar.js +19 -0
- package/dist/collection/components/je-toolbar/je-toolbar.js.map +1 -0
- package/dist/collection/components/menu/je-menu/je-menu.css +3 -0
- package/dist/collection/components/menu/je-menu/je-menu.js +19 -0
- package/dist/collection/components/menu/je-menu/je-menu.js.map +1 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.css +3 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.js +19 -0
- package/dist/collection/components/menu/je-menu-option/je-menu-option.js.map +1 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.css +79 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.js +244 -0
- package/dist/collection/components/multiselect/je-multiselect/je-multiselect.js.map +1 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.css +31 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.js +122 -0
- package/dist/collection/components/multiselect/je-multiselect-option/je-multiselect-option.js.map +1 -0
- package/dist/collection/components/radio/je-radio/je-radio.css +13 -0
- package/dist/collection/components/radio/je-radio/je-radio.js +128 -0
- package/dist/collection/components/radio/je-radio/je-radio.js.map +1 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.css +10 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.js +172 -0
- package/dist/collection/components/radio/je-radio-group/je-radio-group.js.map +1 -0
- package/dist/collection/components/select/je-select/je-select.css +20 -0
- package/dist/collection/components/select/je-select/je-select.js +289 -0
- package/dist/collection/components/select/je-select/je-select.js.map +1 -0
- package/dist/collection/components/select/je-select-option/je-select-option.css +31 -0
- package/dist/collection/components/select/je-select-option/je-select-option.js +102 -0
- package/dist/collection/components/select/je-select-option/je-select-option.js.map +1 -0
- package/dist/collection/components/tabs/je-tab/je-tab.css +3 -0
- package/dist/collection/components/tabs/je-tab/je-tab.js +19 -0
- package/dist/collection/components/tabs/je-tab/je-tab.js.map +1 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.css +3 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.js +19 -0
- package/dist/collection/components/tabs/je-tabs/je-tabs.js.map +1 -0
- package/dist/collection/components/tree/je-branch/je-branch.css +3 -0
- package/dist/collection/components/tree/je-branch/je-branch.js +19 -0
- package/dist/collection/components/tree/je-branch/je-branch.js.map +1 -0
- package/dist/collection/components/tree/je-tree/je-tree.css +3 -0
- package/dist/collection/components/tree/je-tree/je-tree.js +19 -0
- package/dist/collection/components/tree/je-tree/je-tree.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +18 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/je-alert.d.ts +11 -0
- package/dist/components/je-alert.js +146 -0
- package/dist/components/je-alert.js.map +1 -0
- package/dist/components/je-branch.d.ts +11 -0
- package/dist/components/je-branch.js +37 -0
- package/dist/components/je-branch.js.map +1 -0
- package/dist/components/je-button.d.ts +11 -0
- package/dist/components/je-button.js +8 -0
- package/dist/components/je-button.js.map +1 -0
- package/dist/components/je-card.d.ts +11 -0
- package/dist/components/je-card.js +8 -0
- package/dist/components/je-card.js.map +1 -0
- package/dist/components/je-checkbox-group.d.ts +11 -0
- package/dist/components/je-checkbox-group.js +90 -0
- package/dist/components/je-checkbox-group.js.map +1 -0
- package/dist/components/je-checkbox-option.d.ts +11 -0
- package/dist/components/je-checkbox-option.js +65 -0
- package/dist/components/je-checkbox-option.js.map +1 -0
- package/dist/components/je-checkbox.d.ts +11 -0
- package/dist/components/je-checkbox.js +83 -0
- package/dist/components/je-checkbox.js.map +1 -0
- package/dist/components/je-color.d.ts +11 -0
- package/dist/components/je-color.js +8 -0
- package/dist/components/je-color.js.map +1 -0
- package/dist/components/je-column-group.d.ts +11 -0
- package/dist/components/je-column-group.js +46 -0
- package/dist/components/je-column-group.js.map +1 -0
- package/dist/components/je-column.d.ts +11 -0
- package/dist/components/je-column.js +95 -0
- package/dist/components/je-column.js.map +1 -0
- package/dist/components/je-datepicker.d.ts +11 -0
- package/dist/components/je-datepicker.js +3249 -0
- package/dist/components/je-datepicker.js.map +1 -0
- package/dist/components/je-details.d.ts +11 -0
- package/dist/components/je-details.js +49 -0
- package/dist/components/je-details.js.map +1 -0
- package/dist/components/je-divider.d.ts +11 -0
- package/dist/components/je-divider.js +42 -0
- package/dist/components/je-divider.js.map +1 -0
- package/dist/components/je-drawer.d.ts +11 -0
- package/dist/components/je-drawer.js +60 -0
- package/dist/components/je-drawer.js.map +1 -0
- package/dist/components/je-dropzone.d.ts +11 -0
- package/dist/components/je-dropzone.js +55 -0
- package/dist/components/je-dropzone.js.map +1 -0
- package/dist/components/je-form.d.ts +11 -0
- package/dist/components/je-form.js +8 -0
- package/dist/components/je-form.js.map +1 -0
- package/dist/components/je-icon.d.ts +11 -0
- package/dist/components/je-icon.js +8 -0
- package/dist/components/je-icon.js.map +1 -0
- package/dist/components/je-infinite.d.ts +11 -0
- package/dist/components/je-infinite.js +64 -0
- package/dist/components/je-infinite.js.map +1 -0
- package/dist/components/je-input.d.ts +11 -0
- package/dist/components/je-input.js +8 -0
- package/dist/components/je-input.js.map +1 -0
- package/dist/components/je-link.d.ts +11 -0
- package/dist/components/je-link.js +62 -0
- package/dist/components/je-link.js.map +1 -0
- package/dist/components/je-loading.d.ts +11 -0
- package/dist/components/je-loading.js +66 -0
- package/dist/components/je-loading.js.map +1 -0
- package/dist/components/je-menu-option.d.ts +11 -0
- package/dist/components/je-menu-option.js +37 -0
- package/dist/components/je-menu-option.js.map +1 -0
- package/dist/components/je-menu.d.ts +11 -0
- package/dist/components/je-menu.js +37 -0
- package/dist/components/je-menu.js.map +1 -0
- package/dist/components/je-modal.d.ts +11 -0
- package/dist/components/je-modal.js +104 -0
- package/dist/components/je-modal.js.map +1 -0
- package/dist/components/je-multiselect-option.d.ts +11 -0
- package/dist/components/je-multiselect-option.js +62 -0
- package/dist/components/je-multiselect-option.js.map +1 -0
- package/dist/components/je-multiselect.d.ts +11 -0
- package/dist/components/je-multiselect.js +146 -0
- package/dist/components/je-multiselect.js.map +1 -0
- package/dist/components/je-page.d.ts +11 -0
- package/dist/components/je-page.js +61 -0
- package/dist/components/je-page.js.map +1 -0
- package/dist/components/je-pill.d.ts +11 -0
- package/dist/components/je-pill.js +8 -0
- package/dist/components/je-pill.js.map +1 -0
- package/dist/components/je-placeholder.d.ts +11 -0
- package/dist/components/je-placeholder.js +40 -0
- package/dist/components/je-placeholder.js.map +1 -0
- package/dist/components/je-popover.d.ts +11 -0
- package/dist/components/je-popover.js +8 -0
- package/dist/components/je-popover.js.map +1 -0
- package/dist/components/je-radio-group.d.ts +11 -0
- package/dist/components/je-radio-group.js +92 -0
- package/dist/components/je-radio-group.js.map +1 -0
- package/dist/components/je-radio.d.ts +11 -0
- package/dist/components/je-radio.js +68 -0
- package/dist/components/je-radio.js.map +1 -0
- package/dist/components/je-select-option.d.ts +11 -0
- package/dist/components/je-select-option.js +56 -0
- package/dist/components/je-select-option.js.map +1 -0
- package/dist/components/je-select.d.ts +11 -0
- package/dist/components/je-select.js +208 -0
- package/dist/components/je-select.js.map +1 -0
- package/dist/components/je-tab.d.ts +11 -0
- package/dist/components/je-tab.js +37 -0
- package/dist/components/je-tab.js.map +1 -0
- package/dist/components/je-tabs.d.ts +11 -0
- package/dist/components/je-tabs.js +37 -0
- package/dist/components/je-tabs.js.map +1 -0
- package/dist/components/je-textarea.d.ts +11 -0
- package/dist/components/je-textarea.js +55 -0
- package/dist/components/je-textarea.js.map +1 -0
- package/dist/components/je-toast.d.ts +11 -0
- package/dist/components/je-toast.js +37 -0
- package/dist/components/je-toast.js.map +1 -0
- package/dist/components/je-toggle.d.ts +11 -0
- package/dist/components/je-toggle.js +57 -0
- package/dist/components/je-toggle.js.map +1 -0
- package/dist/components/je-toolbar.d.ts +11 -0
- package/dist/components/je-toolbar.js +37 -0
- package/dist/components/je-toolbar.js.map +1 -0
- package/dist/components/je-tree.d.ts +11 -0
- package/dist/components/je-tree.js +37 -0
- package/dist/components/je-tree.js.map +1 -0
- package/dist/components/p-1f3759e7.js +41 -0
- package/dist/components/p-1f3759e7.js.map +1 -0
- package/dist/components/p-243cc91b.js +50 -0
- package/dist/components/p-243cc91b.js.map +1 -0
- package/dist/components/p-2df369c4.js +265 -0
- package/dist/components/p-2df369c4.js.map +1 -0
- package/dist/components/p-41492a72.js +1514 -0
- package/dist/components/p-41492a72.js.map +1 -0
- package/dist/components/p-4b8ae8ef.js +51 -0
- package/dist/components/p-4b8ae8ef.js.map +1 -0
- package/dist/components/p-5dee004d.js +246 -0
- package/dist/components/p-5dee004d.js.map +1 -0
- package/dist/components/p-8401b4e4.js +48 -0
- package/dist/components/p-8401b4e4.js.map +1 -0
- package/dist/components/p-94327b0d.js +39 -0
- package/dist/components/p-94327b0d.js.map +1 -0
- package/dist/components/p-aa4caa39.js +76 -0
- package/dist/components/p-aa4caa39.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/index-a65634db.js +1692 -0
- package/dist/esm/index-a65634db.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/je-alert_31.entry.js +4738 -0
- package/dist/esm/je-alert_31.entry.js.map +1 -0
- package/dist/esm/je-branch.entry.js +18 -0
- package/dist/esm/je-branch.entry.js.map +1 -0
- package/dist/esm/je-column-group.entry.js +25 -0
- package/dist/esm/je-column-group.entry.js.map +1 -0
- package/dist/esm/je-column.entry.js +69 -0
- package/dist/esm/je-column.entry.js.map +1 -0
- package/dist/esm/je-infinite.entry.js +41 -0
- package/dist/esm/je-infinite.entry.js.map +1 -0
- package/dist/esm/je-menu-option.entry.js +18 -0
- package/dist/esm/je-menu-option.entry.js.map +1 -0
- package/dist/esm/je-menu.entry.js +18 -0
- package/dist/esm/je-menu.entry.js.map +1 -0
- package/dist/esm/je-tab.entry.js +18 -0
- package/dist/esm/je-tab.entry.js.map +1 -0
- package/dist/esm/je-tabs.entry.js +18 -0
- package/dist/esm/je-tabs.entry.js.map +1 -0
- package/dist/esm/je-toast.entry.js +18 -0
- package/dist/esm/je-toast.entry.js.map +1 -0
- package/dist/esm/je-tree.entry.js +18 -0
- package/dist/esm/je-tree.entry.js.map +1 -0
- package/dist/esm/jebamo.js +22 -0
- package/dist/esm/jebamo.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/jebamo/index.esm.js +2 -0
- package/dist/jebamo/index.esm.js.map +1 -0
- package/dist/jebamo/jebamo.esm.js +2 -0
- package/dist/jebamo/jebamo.esm.js.map +1 -0
- package/dist/jebamo/p-0d0cb311.entry.js +2 -0
- package/dist/jebamo/p-0d0cb311.entry.js.map +1 -0
- package/dist/jebamo/p-254ac389.entry.js +2 -0
- package/dist/jebamo/p-254ac389.entry.js.map +1 -0
- package/dist/jebamo/p-286807aa.entry.js +2 -0
- package/dist/jebamo/p-286807aa.entry.js.map +1 -0
- package/dist/jebamo/p-44735e2f.entry.js +2 -0
- package/dist/jebamo/p-44735e2f.entry.js.map +1 -0
- package/dist/jebamo/p-456b52ee.js +3 -0
- package/dist/jebamo/p-456b52ee.js.map +1 -0
- package/dist/jebamo/p-5b8d9daf.entry.js +2 -0
- package/dist/jebamo/p-5b8d9daf.entry.js.map +1 -0
- package/dist/jebamo/p-c519a7a4.entry.js +2 -0
- package/dist/jebamo/p-c519a7a4.entry.js.map +1 -0
- package/dist/jebamo/p-c6111d19.entry.js +2 -0
- package/dist/jebamo/p-c6111d19.entry.js.map +1 -0
- package/dist/jebamo/p-c8615128.entry.js +2 -0
- package/dist/jebamo/p-c8615128.entry.js.map +1 -0
- package/dist/jebamo/p-e1255160.js +2 -0
- package/dist/jebamo/p-e1255160.js.map +1 -0
- package/dist/jebamo/p-e330c9bb.entry.js +2 -0
- package/dist/jebamo/p-e330c9bb.entry.js.map +1 -0
- package/dist/jebamo/p-f6e777be.entry.js +2 -0
- package/dist/jebamo/p-f6e777be.entry.js.map +1 -0
- package/dist/jebamo/p-ff27b55f.entry.js +2 -0
- package/dist/jebamo/p-ff27b55f.entry.js.map +1 -0
- package/dist/types/components/checkbox-group/je-checkbox-group/je-checkbox-group.d.ts +25 -0
- package/dist/types/components/checkbox-group/je-checkbox-option/je-checkbox-option.d.ts +30 -0
- package/dist/types/components/column/je-column/je-column.d.ts +31 -0
- package/dist/types/components/column/je-column-group/je-column-group.d.ts +9 -0
- package/dist/types/components/je-alert/je-alert.d.ts +77 -0
- package/dist/types/components/je-button/je-button.d.ts +28 -0
- package/dist/types/components/je-card/je-card.d.ts +6 -0
- package/dist/types/components/je-checkbox/je-checkbox.d.ts +38 -0
- package/dist/types/components/je-color/je-color.d.ts +12 -0
- package/dist/types/components/je-datepicker/je-datepicker.d.ts +18 -0
- package/dist/types/components/je-details/je-details.d.ts +6 -0
- package/dist/types/components/je-divider/je-divider.d.ts +5 -0
- package/dist/types/components/je-drawer/je-drawer.d.ts +10 -0
- package/dist/types/components/je-dropzone/je-dropzone.d.ts +10 -0
- package/dist/types/components/je-form/je-form.d.ts +12 -0
- package/dist/types/components/je-icon/je-icon.d.ts +15 -0
- package/dist/types/components/je-infinite/je-infinite.d.ts +25 -0
- package/dist/types/components/je-input/je-input.d.ts +155 -0
- package/dist/types/components/je-link/je-link.d.ts +22 -0
- package/dist/types/components/je-loading/je-loading.d.ts +22 -0
- package/dist/types/components/je-modal/je-modal.d.ts +28 -0
- package/dist/types/components/je-page/je-page.d.ts +12 -0
- package/dist/types/components/je-pill/je-pill.d.ts +6 -0
- package/dist/types/components/je-placeholder/je-placeholder.d.ts +7 -0
- package/dist/types/components/je-popover/je-popover.d.ts +70 -0
- package/dist/types/components/je-textarea/je-textarea.d.ts +11 -0
- package/dist/types/components/je-toast/je-toast.d.ts +3 -0
- package/dist/types/components/je-toggle/je-toggle.d.ts +18 -0
- package/dist/types/components/je-toolbar/je-toolbar.d.ts +3 -0
- package/dist/types/components/menu/je-menu/je-menu.d.ts +3 -0
- package/dist/types/components/menu/je-menu-option/je-menu-option.d.ts +3 -0
- package/dist/types/components/multiselect/je-multiselect/je-multiselect.d.ts +27 -0
- package/dist/types/components/multiselect/je-multiselect-option/je-multiselect-option.d.ts +11 -0
- package/dist/types/components/radio/je-radio/je-radio.d.ts +25 -0
- package/dist/types/components/radio/je-radio-group/je-radio-group.d.ts +32 -0
- package/dist/types/components/select/je-select/je-select.d.ts +23 -0
- package/dist/types/components/select/je-select-option/je-select-option.d.ts +10 -0
- package/dist/types/components/tabs/je-tab/je-tab.d.ts +3 -0
- package/dist/types/components/tabs/je-tabs/je-tabs.d.ts +3 -0
- package/dist/types/components/tree/je-branch/je-branch.d.ts +3 -0
- package/dist/types/components/tree/je-tree/je-tree.d.ts +3 -0
- package/dist/types/components.d.ts +1846 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +4 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +31 -26
- package/readme.md +114 -0
- package/README.md +0 -24
- package/esm2020/jebamo.mjs +0 -5
- package/esm2020/lib/jebamo.component.mjs +0 -19
- package/esm2020/lib/jebamo.module.mjs +0 -21
- package/esm2020/lib/jebamo.service.mjs +0 -14
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/jebamo.mjs +0 -60
- package/fesm2015/jebamo.mjs.map +0 -1
- package/fesm2020/jebamo.mjs +0 -60
- package/fesm2020/jebamo.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/jebamo.component.d.ts +0 -5
- package/lib/jebamo.module.d.ts +0 -7
- package/lib/jebamo.service.d.ts +0 -6
- package/public-api.d.ts +0 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host([color=primary]), :host([color=auto][primary]) {
|
|
6
|
+
color: var(--je-primary-500);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([color=error]), :host([color=auto][error]) {
|
|
10
|
+
color: var(--je-error-500);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([color=secondary]), :host([color=auto][secondary]) {
|
|
14
|
+
color: var(--je-secondary-500);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([color=tertiary]), :host([color=auto][tertiary]) {
|
|
18
|
+
color: var(--je-tertiary-500);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([color=warning]), :host([color=auto][warning]) {
|
|
22
|
+
color: var(--je-warning-500);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([color=success]), :host([color=auto][success]) {
|
|
26
|
+
color: var(--je-success-500);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([color=medium]), :host([color=auto][medium]) {
|
|
30
|
+
color: var(--je-medium-500);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([color=light]), :host([color=auto][light]) {
|
|
34
|
+
color: var(--je-medium-100);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([color=dark]), :host([color=auto][dark]) {
|
|
38
|
+
color: var(--je-medium-850);
|
|
39
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JeColor {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.color = 'primary';
|
|
5
|
+
this.lightModeColor = 'dark';
|
|
6
|
+
this.darkModeColor = 'light';
|
|
7
|
+
}
|
|
8
|
+
handleThemeChange(e) {
|
|
9
|
+
if (this.color == 'auto') {
|
|
10
|
+
this.el.toggleAttribute(this.lightModeColor, e.detail == 'light');
|
|
11
|
+
this.el.toggleAttribute(this.darkModeColor, e.detail == 'dark');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, { key: 'f282f9cc373d41672e2f89d28ca63ae2eb68bead' }, h("slot", { key: '595b55df77aa90cd06c63e96a3eb2f2a1a5d300f' })));
|
|
16
|
+
}
|
|
17
|
+
static get is() { return "je-color"; }
|
|
18
|
+
static get encapsulation() { return "shadow"; }
|
|
19
|
+
static get originalStyleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["je-color.scss"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get styleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["je-color.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
"color": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "Color | 'auto'",
|
|
36
|
+
"resolved": "\"auto\" | \"dark\" | \"error\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
|
|
37
|
+
"references": {
|
|
38
|
+
"Color": {
|
|
39
|
+
"location": "import",
|
|
40
|
+
"path": "../../components",
|
|
41
|
+
"id": "src/components.d.ts::Color"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": "Predefined colors. Auto will switch between light and dark based on the closest je-page's theme."
|
|
50
|
+
},
|
|
51
|
+
"attribute": "color",
|
|
52
|
+
"reflect": true,
|
|
53
|
+
"defaultValue": "'primary'"
|
|
54
|
+
},
|
|
55
|
+
"lightModeColor": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "Color",
|
|
60
|
+
"resolved": "\"dark\" | \"error\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
|
|
61
|
+
"references": {
|
|
62
|
+
"Color": {
|
|
63
|
+
"location": "import",
|
|
64
|
+
"path": "../../components",
|
|
65
|
+
"id": "src/components.d.ts::Color"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": "Overrides what the light mode color will be when color is \"auto\"."
|
|
74
|
+
},
|
|
75
|
+
"attribute": "light-mode-color",
|
|
76
|
+
"reflect": false,
|
|
77
|
+
"defaultValue": "'dark'"
|
|
78
|
+
},
|
|
79
|
+
"darkModeColor": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "Color",
|
|
84
|
+
"resolved": "\"dark\" | \"error\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\"",
|
|
85
|
+
"references": {
|
|
86
|
+
"Color": {
|
|
87
|
+
"location": "import",
|
|
88
|
+
"path": "../../components",
|
|
89
|
+
"id": "src/components.d.ts::Color"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": "Overrides what the dark mode color will be when color is \"auto\"."
|
|
98
|
+
},
|
|
99
|
+
"attribute": "dark-mode-color",
|
|
100
|
+
"reflect": false,
|
|
101
|
+
"defaultValue": "'light'"
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get elementRef() { return "el"; }
|
|
106
|
+
static get listeners() {
|
|
107
|
+
return [{
|
|
108
|
+
"name": "themeChange",
|
|
109
|
+
"method": "handleThemeChange",
|
|
110
|
+
"target": "body",
|
|
111
|
+
"capture": false,
|
|
112
|
+
"passive": false
|
|
113
|
+
}];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=je-color.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"je-color.js","sourceRoot":"","sources":["../../../src/components/je-color/je-color.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAQ1E,MAAM,OAAO,OAAO;;qBAI+B,SAAS;8BAG1B,MAAM;6BAGP,OAAO;;IAGtC,iBAAiB,CAAC,CAAgC;QAChD,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC,CAAA;YACjE,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,CAAA;QACjE,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Listen, Prop, h, Element } from '@stencil/core';\nimport { Color } from '../../components';\n\n@Component({\n tag: 'je-color',\n styleUrl: 'je-color.scss',\n shadow: true,\n})\nexport class JeColor {\n @Element() el: HTMLJeColorElement;\n\n /** Predefined colors. Auto will switch between light and dark based on the closest je-page's theme. */\n @Prop({ reflect: true }) color: Color | 'auto' = 'primary';\n\n /** Overrides what the light mode color will be when color is \"auto\". */\n @Prop() lightModeColor: Color = 'dark';\n\n /** Overrides what the dark mode color will be when color is \"auto\". */\n @Prop() darkModeColor: Color = 'light';\n\n @Listen('themeChange', { target: 'body' })\n handleThemeChange(e: CustomEvent<'light' | 'dark'>) {\n if (this.color == 'auto') {\n this.el.toggleAttribute(this.lightModeColor, e.detail == 'light')\n this.el.toggleAttribute(this.darkModeColor, e.detail == 'dark')\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
padding: var(--je-spacing-xs);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
je-button.day {
|
|
8
|
+
--je-button-min-width: 20px;
|
|
9
|
+
--je-button-height: 20px;
|
|
10
|
+
--je-button-inline-padding: 0px;
|
|
11
|
+
}
|
|
12
|
+
je-button.day::part(inner-button) {
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.header {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
margin-bottom: 10px;
|
|
20
|
+
}
|
|
21
|
+
.header div {
|
|
22
|
+
user-select: none;
|
|
23
|
+
display: flex;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
flex: 1;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.weekdays-grid {
|
|
30
|
+
display: grid;
|
|
31
|
+
grid-template-columns: repeat(7, 1fr);
|
|
32
|
+
gap: 5px;
|
|
33
|
+
margin-bottom: 8px;
|
|
34
|
+
}
|
|
35
|
+
.weekdays-grid div {
|
|
36
|
+
height: 20px;
|
|
37
|
+
font-size: 1em;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: var(--je-medium-600);
|
|
40
|
+
text-align: center;
|
|
41
|
+
align-content: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.days-grid {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: repeat(7, 1fr);
|
|
47
|
+
gap: 5px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
je-icon {
|
|
51
|
+
transition: transform 250ms ease;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
je-icon.open {
|
|
55
|
+
transform: rotate(180deg);
|
|
56
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { startOfMonth, endOfMonth, eachDayOfInterval, addMonths, subMonths, isSameDay, isToday, format, getDay } from "date-fns";
|
|
3
|
+
export class JeDatepicker {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.nextMonth = () => {
|
|
6
|
+
this.currentDate = addMonths(this.currentDate, 1);
|
|
7
|
+
};
|
|
8
|
+
this.prevMonth = () => {
|
|
9
|
+
this.currentDate = subMonths(this.currentDate, 1);
|
|
10
|
+
};
|
|
11
|
+
this.currentDate = new Date();
|
|
12
|
+
this.value = undefined;
|
|
13
|
+
this.isDark = false;
|
|
14
|
+
this.monthYearPicker = false;
|
|
15
|
+
}
|
|
16
|
+
handleThemeChange(e) {
|
|
17
|
+
this.isDark = e.detail === 'dark';
|
|
18
|
+
}
|
|
19
|
+
valueChangeHandler() {
|
|
20
|
+
this.valueChange.emit(this.value ? new Date(this.value) : undefined);
|
|
21
|
+
}
|
|
22
|
+
getDaysInMonth() {
|
|
23
|
+
const start = startOfMonth(this.currentDate);
|
|
24
|
+
const end = endOfMonth(this.currentDate);
|
|
25
|
+
return eachDayOfInterval({ start, end });
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const daysOfWeek = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
|
|
29
|
+
const firstDayOfMonth = startOfMonth(this.currentDate);
|
|
30
|
+
const lastDayOfMonth = endOfMonth(this.currentDate);
|
|
31
|
+
const firstDayOfWeek = getDay(firstDayOfMonth);
|
|
32
|
+
const lastDayOfWeek = getDay(lastDayOfMonth);
|
|
33
|
+
const daysInMonth = eachDayOfInterval({ start: firstDayOfMonth, end: lastDayOfMonth });
|
|
34
|
+
const prevMonth = subMonths(this.currentDate, 1);
|
|
35
|
+
const prevMonthEnd = endOfMonth(prevMonth);
|
|
36
|
+
const daysBefore = Array.from({ length: firstDayOfWeek }).map((_, i) => subMonths(this.currentDate, 1).setDate(prevMonthEnd.getDate() - (firstDayOfWeek - i - 1)));
|
|
37
|
+
const daysAfter = Array.from({ length: 6 - lastDayOfWeek }).map((_, i) => addMonths(this.currentDate, 1).setDate(i + 1));
|
|
38
|
+
return (h(Host, { key: 'ff2ec54e4e3de84b80468820efa641a2922b93cf' }, h("div", { key: '44b43c08d7dcdb90d3db8ee837fe902e804b8255', class: "header" }, h("div", { key: '34649267bbeeab302a646017714da9f00aa3503a', onClick: () => this.monthYearPicker = !this.monthYearPicker }, h("span", { key: 'f83d4b65cc03662bdd7555113a0d367f263e30f6' }, format(this.currentDate, 'MMMM yyyy')), h("je-button", { key: 'c12c79e67bb19ce76b37ff122a9aba76c33d8627', fill: 'clear', iconOnly: true }, h("je-icon", { key: '7fd6737727798a895899015a30c295913c9c9077', class: { open: this.monthYearPicker }, icon: 'expand_more' }))), h("je-button", { key: '17d319c0c3120906ce733bee52eaf31e3ecfce77', iconOnly: true, fill: 'clear', onClick: this.prevMonth }, h("je-icon", { key: 'c6c86b0c4f0360a335903a0298e39f1db9658d51', fill: true, icon: 'arrow_left' })), h("je-button", { key: '21a79c20202fd0acd26589deab5746bfdda32a3c', iconOnly: true, fill: 'clear', onClick: this.nextMonth }, h("je-icon", { key: '508587d9cd3642520f6b58d197df066da15c10ab', icon: 'arrow_right', fill: true }))), h("div", { key: 'c40de53a4277adebef8c7077af02ab4e80491aea', class: "weekdays-grid" }, daysOfWeek.map(day => h("div", null, day))), h("div", { key: '90a3fea593cd4772cfa4006180532a79264e3502', class: "days-grid" }, daysBefore.map(day => (h("je-button", { expand: true, disabled: true, color: 'medium', fill: 'clear', class: 'day' }, format(day, 'd')))), daysInMonth.map(day => {
|
|
39
|
+
const selected = this.value && isSameDay(day, this.value);
|
|
40
|
+
const today = isToday(day);
|
|
41
|
+
return (h("je-button", { expand: true, color: selected || today ? 'primary' : this.isDark ? 'light' : 'dark', fill: selected ? 'solid' : 'clear', class: 'day', onClick: () => this.value = day }, format(day, 'd')));
|
|
42
|
+
}), daysAfter.map(day => (h("je-button", { expand: true, disabled: true, color: 'medium', fill: 'clear', class: 'day' }, format(day, 'd')))))));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "je-datepicker"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["je-datepicker.scss"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["je-datepicker.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"value": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": true,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "Date | string",
|
|
63
|
+
"resolved": "Date | string",
|
|
64
|
+
"references": {
|
|
65
|
+
"Date": {
|
|
66
|
+
"location": "global",
|
|
67
|
+
"id": "global::Date"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": true,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": ""
|
|
76
|
+
},
|
|
77
|
+
"attribute": "value",
|
|
78
|
+
"reflect": false
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static get states() {
|
|
83
|
+
return {
|
|
84
|
+
"currentDate": {},
|
|
85
|
+
"isDark": {},
|
|
86
|
+
"monthYearPicker": {}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static get events() {
|
|
90
|
+
return [{
|
|
91
|
+
"method": "valueChange",
|
|
92
|
+
"name": "valueChange",
|
|
93
|
+
"bubbles": true,
|
|
94
|
+
"cancelable": true,
|
|
95
|
+
"composed": true,
|
|
96
|
+
"docs": {
|
|
97
|
+
"tags": [],
|
|
98
|
+
"text": ""
|
|
99
|
+
},
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "Date | undefined",
|
|
102
|
+
"resolved": "Date",
|
|
103
|
+
"references": {
|
|
104
|
+
"Date": {
|
|
105
|
+
"location": "global",
|
|
106
|
+
"id": "global::Date"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}];
|
|
111
|
+
}
|
|
112
|
+
static get elementRef() { return "el"; }
|
|
113
|
+
static get watchers() {
|
|
114
|
+
return [{
|
|
115
|
+
"propName": "value",
|
|
116
|
+
"methodName": "valueChangeHandler"
|
|
117
|
+
}];
|
|
118
|
+
}
|
|
119
|
+
static get listeners() {
|
|
120
|
+
return [{
|
|
121
|
+
"name": "themeChange",
|
|
122
|
+
"method": "handleThemeChange",
|
|
123
|
+
"target": "body",
|
|
124
|
+
"capture": false,
|
|
125
|
+
"passive": false
|
|
126
|
+
}];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=je-datepicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"je-datepicker.js","sourceRoot":"","sources":["../../../src/components/je-datepicker/je-datepicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOjI,MAAM,OAAO,YAAY;;QAwBvB,cAAS,GAAG,GAAG,EAAE;YACf,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC,CAAA;QAED,cAAS,GAAG,GAAG,EAAE;YACf,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACpD,CAAC,CAAA;2BA5BsB,IAAI,IAAI,EAAE;;sBAGf,KAAK;+BACI,KAAK;;IAGhC,iBAAiB,CAAC,CAAgC;QAChD,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC;IACpC,CAAC;IAGD,kBAAkB;QAChB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACvE,CAAC;IAED,cAAc;QACZ,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC7C,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,OAAO,iBAAiB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;IAC3C,CAAC;IAUD,MAAM;QACJ,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvD,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACpD,MAAM,cAAc,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;QAC/C,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QAC7C,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC,CAAC;QAEvF,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACjD,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;QAE3C,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACrE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,cAAc,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAC1F,CAAC;QACF,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACvE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAC9C,CAAC;QAEF,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAC,QAAQ;gBACjB,4DAAK,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,eAAe;oBAC9D,+DAAO,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAQ;oBACpD,kEAAW,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,IAAI;wBACpC,gEAAS,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAC,aAAa,GAAG,CAC3D,CACR;gBACN,kEAAW,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,SAAS;oBAC7D,gEAAS,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,YAAY,GAAG,CAC/B;gBACZ,kEAAW,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,SAAS;oBAC7D,gEAAS,IAAI,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,GAAI,CAChC,CACR;YAEN,4DAAK,KAAK,EAAC,eAAe,IACvB,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,eAAM,GAAG,CAAO,CAAC,CACpC;YAEN,4DAAK,KAAK,EAAC,WAAW;gBACnB,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACrB,iBAAW,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,KAAK,IAC7E,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CACP,CACb,CAAC;gBAED,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;oBACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC1D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;oBAC3B,OAAO,CACL,iBACE,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EACrE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAClC,KAAK,EAAC,KAAK,EACX,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,IAE9B,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CACP,CACb,CAAC;gBACJ,CAAC,CAAC;gBAED,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACpB,iBAAW,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,KAAK,IAC7E,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CACP,CACb,CAAC,CACE,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Listen, Prop, State, Watch, h } from '@stencil/core';\nimport { startOfMonth, endOfMonth, eachDayOfInterval, addMonths, subMonths, isSameDay, isToday, format, getDay } from 'date-fns';\n\n@Component({\n tag: 'je-datepicker',\n styleUrl: 'je-datepicker.scss',\n shadow: true,\n})\nexport class JeDatepicker {\n @Element() el!: HTMLJeDatepickerElement;\n @State() currentDate = new Date();\n @Prop({ mutable: true }) value?: Date | string;\n @Event() valueChange: EventEmitter<Date | undefined>;\n @State() isDark = false;\n @State() monthYearPicker = false;\n\n @Listen('themeChange', { target: 'body' })\n handleThemeChange(e: CustomEvent<'light' | 'dark'>) {\n this.isDark = e.detail === 'dark';\n }\n\n @Watch('value')\n valueChangeHandler() {\n this.valueChange.emit(this.value ? new Date(this.value) : undefined);\n }\n\n getDaysInMonth() {\n const start = startOfMonth(this.currentDate);\n const end = endOfMonth(this.currentDate);\n return eachDayOfInterval({ start, end });\n }\n\n nextMonth = () => {\n this.currentDate = addMonths(this.currentDate, 1);\n }\n\n prevMonth = () => {\n this.currentDate = subMonths(this.currentDate, 1);\n }\n\n render() {\n const daysOfWeek = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];\n const firstDayOfMonth = startOfMonth(this.currentDate);\n const lastDayOfMonth = endOfMonth(this.currentDate);\n const firstDayOfWeek = getDay(firstDayOfMonth);\n const lastDayOfWeek = getDay(lastDayOfMonth);\n const daysInMonth = eachDayOfInterval({ start: firstDayOfMonth, end: lastDayOfMonth });\n\n const prevMonth = subMonths(this.currentDate, 1);\n const prevMonthEnd = endOfMonth(prevMonth);\n\n const daysBefore = Array.from({ length: firstDayOfWeek }).map((_, i) =>\n subMonths(this.currentDate, 1).setDate(prevMonthEnd.getDate() - (firstDayOfWeek - i - 1))\n );\n const daysAfter = Array.from({ length: 6 - lastDayOfWeek }).map((_, i) =>\n addMonths(this.currentDate, 1).setDate(i + 1)\n );\n\n return (\n <Host>\n <div class=\"header\">\n <div onClick={() => this.monthYearPicker = !this.monthYearPicker}>\n <span>{format(this.currentDate, 'MMMM yyyy')}</span>\n <je-button fill='clear' iconOnly={true}>\n <je-icon class={{ open: this.monthYearPicker }} icon='expand_more' />\n </je-button>\n </div>\n <je-button iconOnly={true} fill='clear' onClick={this.prevMonth}>\n <je-icon fill={true} icon='arrow_left' />\n </je-button>\n <je-button iconOnly={true} fill='clear' onClick={this.nextMonth}>\n <je-icon icon='arrow_right' fill={true} />\n </je-button>\n </div>\n\n <div class=\"weekdays-grid\">\n {daysOfWeek.map(day => <div>{day}</div>)}\n </div>\n\n <div class=\"days-grid\">\n {daysBefore.map(day => (\n <je-button expand={true} disabled={true} color='medium' fill='clear' class='day'>\n {format(day, 'd')}\n </je-button>\n ))}\n\n {daysInMonth.map(day => {\n const selected = this.value && isSameDay(day, this.value);\n const today = isToday(day);\n return (\n <je-button\n expand={true}\n color={selected || today ? 'primary' : this.isDark ? 'light' : 'dark'}\n fill={selected ? 'solid' : 'clear'}\n class='day'\n onClick={() => this.value = day}\n >\n {format(day, 'd')}\n </je-button>\n );\n })}\n\n {daysAfter.map(day => (\n <je-button expand={true} disabled={true} color='medium' fill='clear' class='day'>\n {format(day, 'd')}\n </je-button>\n ))}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
[part=summary-container] {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
user-select: none;
|
|
10
|
+
-webkit-user-select: none;
|
|
11
|
+
align-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[part=details-icon] {
|
|
15
|
+
height: 24px;
|
|
16
|
+
width: 24px;
|
|
17
|
+
transition: transform 250ms ease-in-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part=details-container] {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-rows: 0fr;
|
|
24
|
+
padding-top: 0;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
transition: all 250ms ease-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([state=open]) [part=details-container] {
|
|
30
|
+
grid-template-rows: 1fr;
|
|
31
|
+
opacity: 1;
|
|
32
|
+
padding-top: var(--je-spacing);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([state=closed]) [part=details-icon] {
|
|
36
|
+
height: 24px;
|
|
37
|
+
width: 24px;
|
|
38
|
+
transform: rotate(-180deg);
|
|
39
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class JeDetails {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.summary = undefined;
|
|
5
|
+
this.state = 'closed';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h("je-card", { key: 'f06bead6338803d66a638688e5999b5061bb8d89' }, h("div", { key: '05900c217e26e721c4f266525b79b87664fc3a43', part: 'summary-container', onClick: () => this.state = this.state == 'open' ? 'closed' : 'open' }, h("slot", { key: 'e641bb5f360cb268043e3e2dbfc0b5b147c5a8da', name: "summary" }, this.summary && h("summary", { key: '2cca006be4897431aeb8c13287d1db25d05e1295' }, this.summary)), h("div", { key: 'd77902ab93d12d79ca6dd705788a6be11badd209', part: 'details-icon' }, h("svg", { key: 'b2bcfdbc26f1b76fb21475a4cbe58b1a877a6883', xmlns: "XXXXXXXXXXXXXXXXXXXXXXXXXX", viewBox: "0 0 24 24" }, h("path", { key: '8d691bf302c104054d03a96f9a6493e4c7051083', d: "M0 0h24v24H0z", fill: "none" }), h("path", { key: 'de42815153c122e0a054c77ee9c752987da92cba', d: "M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" })))), h("div", { key: '5bfe7b312601083e8855c9f23ee5a209f9468bba', part: 'details-container' }, h("div", { key: '1e6f0a4f17e44d59d8655e576b73ecc2c6c67d33', style: { overflow: 'hidden' } }, h("slot", { key: 'f4802e440f736f76f146a81149d1526b393c305f' })))));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "je-details"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["je-details.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["je-details.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"summary": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "string",
|
|
29
|
+
"resolved": "string",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": true,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "summary",
|
|
39
|
+
"reflect": false
|
|
40
|
+
},
|
|
41
|
+
"state": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"mutable": true,
|
|
44
|
+
"complexType": {
|
|
45
|
+
"original": "'open' | 'closed'",
|
|
46
|
+
"resolved": "\"closed\" | \"open\"",
|
|
47
|
+
"references": {}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": ""
|
|
54
|
+
},
|
|
55
|
+
"attribute": "state",
|
|
56
|
+
"reflect": true,
|
|
57
|
+
"defaultValue": "'closed'"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get elementRef() { return "el"; }
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=je-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"je-details.js","sourceRoot":"","sources":["../../../src/components/je-details/je-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO5D,MAAM,OAAO,SAAS;;;qBAG+C,QAAQ;;IAE3E,MAAM;QACJ,OAAO,CACL;YACE,4DAAK,IAAI,EAAC,mBAAmB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;gBAChG,6DAAM,IAAI,EAAC,SAAS,IACjB,IAAI,CAAC,OAAO,IAAI,kEAAU,IAAI,CAAC,OAAO,CAAW,CAC7C;gBACP,4DAAK,IAAI,EAAC,cAAc;oBACtB,4DAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW;wBACzD,6DAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAE;wBACrC,6DAAM,CAAC,EAAC,gDAAgD,GAAE,CACtD,CACF,CACF;YACN,4DAAK,IAAI,EAAC,mBAAmB;gBAC3B,4DAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAC;oBAC9B,8DAAO,CACH,CACF,CACE,CACX,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'je-details',\n styleUrl: 'je-details.scss',\n shadow: true,\n})\nexport class JeDetails {\n @Element() el!: HTMLElement;\n @Prop() summary?: string;\n @Prop({ reflect: true, mutable: true }) state: 'open' | 'closed' = 'closed';\n\n render() {\n return (\n <je-card>\n <div part='summary-container' onClick={() => this.state = this.state == 'open' ? 'closed' : 'open' }>\n <slot name=\"summary\">\n {this.summary && <summary>{this.summary}</summary>}\n </slot>\n <div part='details-icon'>\n <svg xmlns=\"XXXXXXXXXXXXXXXXXXXXXXXXXX\" viewBox=\"0 0 24 24\">\n <path d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"/>\n </svg>\n </div>\n </div>\n <div part='details-container'>\n <div style={{overflow: 'hidden'}}>\n <slot/>\n </div>\n </div>\n </je-card>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--thickness: 1px;
|
|
3
|
+
--color: var(--je-medium-500);
|
|
4
|
+
--spacing: var(--je-spacing-sm);
|
|
5
|
+
background-color: var(--color);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([spacing=sm]) {
|
|
9
|
+
--spacing: var(--je-spacing-2xs);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([spacing=lg]) {
|
|
13
|
+
--spacing: var(--je-spacing-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([spacing=none]) {
|
|
17
|
+
--spacing: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([type=horizontal]) {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: var(--thickness);
|
|
24
|
+
margin-block: var(--spacing);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([type=vertical]) {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
align-self: normal;
|
|
30
|
+
width: var(--thickness);
|
|
31
|
+
margin-inline: var(--spacing);
|
|
32
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JeDivider {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.type = 'horizontal';
|
|
5
|
+
this.spacing = 'md';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return h(Host, { key: 'f8db6d54b81c4d874f0e837202ea79c8bad6d328' });
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "je-divider"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["je-divider.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["je-divider.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"type": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "'horizontal' | 'vertical'",
|
|
29
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"attribute": "type",
|
|
39
|
+
"reflect": true,
|
|
40
|
+
"defaultValue": "'horizontal'"
|
|
41
|
+
},
|
|
42
|
+
"spacing": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "'sm' | 'md' | 'lg' | 'none'",
|
|
47
|
+
"resolved": "\"lg\" | \"md\" | \"none\" | \"sm\"",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"attribute": "spacing",
|
|
57
|
+
"reflect": true,
|
|
58
|
+
"defaultValue": "'md'"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=je-divider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"je-divider.js","sourceRoot":"","sources":["../../../src/components/je-divider/je-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,SAAS;;oBACuC,YAAY;uBACP,IAAI;;IAEpE,MAAM;QACJ,OAAO,EAAC,IAAI,sDAAE,CAAC;IACjB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'je-divider',\n styleUrl: 'je-divider.scss',\n shadow: true,\n})\nexport class JeDivider {\n @Prop({ reflect: true }) type: 'horizontal' | 'vertical' = 'horizontal';\n @Prop({ reflect: true }) spacing: 'sm' | 'md' | 'lg' | 'none' = 'md';\n\n render() {\n return <Host/>;\n }\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
--je-drawer-width: 500px;
|
|
4
|
+
--je-drawer-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
5
|
+
--je-drawer-padding: var(--je-spacing-lg, 20px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.backdrop {
|
|
9
|
+
display: block;
|
|
10
|
+
position: fixed;
|
|
11
|
+
transition: all 250ms ease-in-out;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
background: var(--je-backdrop-color);
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
height: 100%;
|
|
17
|
+
width: 100%;
|
|
18
|
+
z-index: -1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
div[part=container] {
|
|
22
|
+
display: block;
|
|
23
|
+
position: fixed;
|
|
24
|
+
left: 0;
|
|
25
|
+
top: 0;
|
|
26
|
+
height: 100%;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
background-color: canvas;
|
|
29
|
+
color: canvastext;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
overflow-x: hidden;
|
|
32
|
+
width: var(--je-drawer-width);
|
|
33
|
+
transition: all 250ms ease-in-out;
|
|
34
|
+
z-index: 900;
|
|
35
|
+
padding: var(--je-drawer-padding);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([state=closed]) .backdrop {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
:host([state=closed]) div[part=container] {
|
|
42
|
+
margin-left: calc(var(--je-drawer-width) * -1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([state=open]) .backdrop {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
z-index: 899;
|
|
48
|
+
}
|
|
49
|
+
:host([state=open]) div[part=container] {
|
|
50
|
+
box-shadow: var(--je-drawer-shadow);
|
|
51
|
+
}
|