@kubex/zinc 0.0.2 → 1.0.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/.editorconfig +18 -0
- package/.eslintignore +8 -0
- package/.eslintrc.cjs +208 -0
- package/.github/workflows/eleventy_build.yml +42 -0
- package/.github/workflows/js_build_and_deploy.yaml +62 -0
- package/custom-elements-manifest.config.js +230 -0
- package/custom-elements.json +24227 -0
- package/docs/_includes/component.njk +340 -0
- package/docs/_includes/default.njk +137 -0
- package/docs/_includes/sidebar.njk +24 -0
- package/docs/_utilities/active-links.cjs +41 -0
- package/docs/_utilities/anchor-headings.cjs +74 -0
- package/docs/_utilities/cem.cjs +89 -0
- package/docs/_utilities/code-previews.cjs +98 -0
- package/docs/_utilities/copy-code-buttons.cjs +26 -0
- package/docs/_utilities/external-links.cjs +53 -0
- package/docs/_utilities/highlight-code.cjs +74 -0
- package/docs/_utilities/markdown.cjs +74 -0
- package/docs/_utilities/prettier.cjs +26 -0
- package/docs/_utilities/replacer.cjs +24 -0
- package/docs/_utilities/scrolling-tables.cjs +23 -0
- package/docs/_utilities/strings.cjs +16 -0
- package/docs/_utilities/table-of-contents.cjs +48 -0
- package/docs/_utilities/typography.cjs +24 -0
- package/docs/assets/icons.json +57989 -0
- package/docs/assets/images/chrome.png +0 -0
- package/docs/assets/images/edge.png +0 -0
- package/docs/assets/images/firefox.png +0 -0
- package/docs/assets/images/opera.png +0 -0
- package/docs/assets/images/safari.png +0 -0
- package/docs/assets/images/watermark.svg +1 -0
- package/docs/assets/rip.js +78 -0
- package/docs/assets/scripts/code-previews.js +250 -0
- package/docs/assets/scripts/docs.js +374 -0
- package/docs/assets/scripts/search.js +441 -0
- package/docs/assets/scripts/turbo.js +29 -0
- package/docs/assets/styles/code-previews.css +169 -0
- package/docs/assets/styles/docs.css +1168 -0
- package/docs/assets/styles/search.css +347 -0
- package/docs/eleventy.config.cjs +262 -0
- package/docs/pages/components/absolute-container.md +35 -0
- package/docs/pages/components/action-bar.md +58 -0
- package/docs/pages/components/alert.md +45 -0
- package/docs/pages/components/bulk-actions.md +26 -0
- package/docs/pages/components/button-group.md +78 -0
- package/docs/pages/components/button-menu.md +127 -0
- package/docs/pages/components/button.md +80 -0
- package/docs/pages/components/chart.md +27 -0
- package/docs/pages/components/checkbox-group.md +196 -0
- package/docs/pages/components/checkbox.md +157 -0
- package/docs/pages/components/chip.md +61 -0
- package/docs/pages/components/collapsible.md +52 -0
- package/docs/pages/components/cols.md +66 -0
- package/docs/pages/components/confirm.md +52 -0
- package/docs/pages/components/content-block.md +108 -0
- package/docs/pages/components/copy-button.md +22 -0
- package/docs/pages/components/data-select.md +54 -0
- package/docs/pages/components/data-table-filter.md +23 -0
- package/docs/pages/components/data-table-sort.md +20 -0
- package/docs/pages/components/data-table.md +74 -0
- package/docs/pages/components/datepicker.md +25 -0
- package/docs/pages/components/defined-label.md +26 -0
- package/docs/pages/components/dialog.md +145 -0
- package/docs/pages/components/dropdown.md +22 -0
- package/docs/pages/components/editor.md +26 -0
- package/docs/pages/components/empty-state.md +51 -0
- package/docs/pages/components/expanding-action.md +55 -0
- package/docs/pages/components/file.md +45 -0
- package/docs/pages/components/form-group.md +22 -0
- package/docs/pages/components/header.md +103 -0
- package/docs/pages/components/icon.md +322 -0
- package/docs/pages/components/inline-edit.md +41 -0
- package/docs/pages/components/input.md +261 -0
- package/docs/pages/components/item.md +78 -0
- package/docs/pages/components/linked-select.md +41 -0
- package/docs/pages/components/menu-item.md +22 -0
- package/docs/pages/components/menu.md +36 -0
- package/docs/pages/components/navbar.md +57 -0
- package/docs/pages/components/note.md +55 -0
- package/docs/pages/components/option.md +22 -0
- package/docs/pages/components/order-table.md +22 -0
- package/docs/pages/components/page-nav.md +23 -0
- package/docs/pages/components/pagination.md +22 -0
- package/docs/pages/components/pane.md +22 -0
- package/docs/pages/components/panel.md +124 -0
- package/docs/pages/components/popup.md +22 -0
- package/docs/pages/components/progress-bar.md +22 -0
- package/docs/pages/components/progress-tile.md +22 -0
- package/docs/pages/components/query-builder.md +148 -0
- package/docs/pages/components/radio-group.md +129 -0
- package/docs/pages/components/radio.md +20 -0
- package/docs/pages/components/rating.md +28 -0
- package/docs/pages/components/scroll-container.md +22 -0
- package/docs/pages/components/select.md +452 -0
- package/docs/pages/components/sidebar.md +28 -0
- package/docs/pages/components/simple-chart.md +23 -0
- package/docs/pages/components/skeleton.md +70 -0
- package/docs/pages/components/slideout.md +23 -0
- package/docs/pages/components/sp.md +87 -0
- package/docs/pages/components/split-button.md +32 -0
- package/docs/pages/components/split-pane.md +22 -0
- package/docs/pages/components/stat.md +24 -0
- package/docs/pages/components/status-indicator.md +13 -0
- package/docs/pages/components/stepper.md +20 -0
- package/docs/pages/components/style.md +106 -0
- package/docs/pages/components/table.md +22 -0
- package/docs/pages/components/tabs.md +57 -0
- package/docs/pages/components/textarea.md +120 -0
- package/docs/pages/components/tile-property.md +29 -0
- package/docs/pages/components/tile.md +51 -0
- package/docs/pages/components/timer.md +22 -0
- package/docs/pages/components/toggle.md +22 -0
- package/docs/pages/components/tooltip.md +242 -0
- package/docs/pages/components/vertical-stepper.md +22 -0
- package/docs/pages/components/well.md +13 -0
- package/docs/pages/getting-started/example-layout.md +143 -0
- package/docs/pages/getting-started/example-page.md +83 -0
- package/docs/pages/getting-started/form-controls.md +552 -0
- package/docs/pages/getting-started/form-examples.md +122 -0
- package/docs/pages/getting-started/table-examples.md +43 -0
- package/docs/pages/index.md +32 -0
- package/index.html +22 -0
- package/package.json +111 -11
- package/scripts/build.js +381 -0
- package/scripts/generator/generator.js +102 -0
- package/scripts/generator/index.js +17 -0
- package/scripts/generator/preprocess.js +20 -0
- package/scripts/generator/resolver.js +86 -0
- package/scripts/generator/tailwind.config.js +14 -0
- package/scripts/make-metadata.js +10 -0
- package/scripts/make-themes.js +27 -0
- package/scripts/plop/plopfile.js +63 -0
- package/scripts/plop/templates/component.hbs +43 -0
- package/scripts/plop/templates/define.hbs +12 -0
- package/scripts/plop/templates/docs.hbs +20 -0
- package/scripts/plop/templates/style.hbs +5 -0
- package/scripts/plop/templates/test.hbs +10 -0
- package/scss/_global-components.scss +4 -0
- package/scss/_global-spacing.scss +96 -0
- package/scss/_root.scss +202 -0
- package/scss/boot.scss +29 -0
- package/scss/mixins/_helper-mixins.scss +24 -0
- package/scss/mixins/_spacing-mixins.scss +84 -0
- package/scss/mixins/index.scss +2 -0
- package/scss/shared/_base.scss +138 -0
- package/scss/shared/_button.scss +27 -0
- package/scss/shared/_form-elements.scss +162 -0
- package/scss/shared/_opacity.scss +27 -0
- package/scss/shared/_reset.scss +288 -0
- package/scss/shared/_table.scss +73 -0
- package/scss/shared/divide.scss +41 -0
- package/scss/shared/index.scss +12 -0
- package/scss/shared/layout.scss +290 -0
- package/scss/shared/nav.scss +71 -0
- package/scss/themes/_dark.scss +277 -0
- package/scss/themes/_index.scss +3 -0
- package/scss/themes/_light.scss +540 -0
- package/scss/themes/_utility.scss +44 -0
- package/scss/variables/_spacing.scss +35 -0
- package/scss/variables/index.scss +1 -0
- package/src/components/absolute-container/absolute-container.component.ts +62 -0
- package/src/components/absolute-container/absolute-container.test.ts +10 -0
- package/src/components/absolute-container/index.ts +12 -0
- package/src/components/action-bar/action-bar.component.ts +41 -0
- package/src/components/action-bar/action-bar.scss +33 -0
- package/src/components/action-bar/action-bar.test.ts +10 -0
- package/src/components/action-bar/index.ts +12 -0
- package/src/components/alert/alert.component.ts +71 -0
- package/src/components/alert/alert.scss +170 -0
- package/src/components/alert/alert.test.ts +10 -0
- package/src/components/alert/index.ts +12 -0
- package/src/components/bulk-actions/bulk-actions.component.ts +229 -0
- package/src/components/bulk-actions/bulk-actions.scss +56 -0
- package/src/components/bulk-actions/bulk-actions.test.ts +10 -0
- package/src/components/bulk-actions/index.ts +12 -0
- package/src/components/button/button.component.ts +242 -0
- package/src/components/button/button.scss +346 -0
- package/src/components/button/button.test.ts +32 -0
- package/src/components/button/index.ts +12 -0
- package/src/components/button-group/button-group.component.ts +74 -0
- package/src/components/button-group/button-group.scss +39 -0
- package/src/components/button-group/button-group.test.ts +10 -0
- package/src/components/button-group/index.ts +12 -0
- package/src/components/button-menu/button-menu.component.ts +353 -0
- package/src/components/button-menu/button-menu.scss +41 -0
- package/src/components/button-menu/button-menu.test.ts +10 -0
- package/src/components/button-menu/index.ts +12 -0
- package/src/components/chart/chart.component.ts +206 -0
- package/src/components/chart/chart.scss +11 -0
- package/src/components/chart/chart.test.ts +10 -0
- package/src/components/chart/index.ts +12 -0
- package/src/components/checkbox/checkbox.component.ts +326 -0
- package/src/components/checkbox/checkbox.scss +202 -0
- package/src/components/checkbox/checkbox.test.ts +10 -0
- package/src/components/checkbox/index.ts +12 -0
- package/src/components/checkbox-group/checkbox-group.component.ts +351 -0
- package/src/components/checkbox-group/checkbox-group.scss +60 -0
- package/src/components/checkbox-group/checkbox-group.test.ts +10 -0
- package/src/components/checkbox-group/index.ts +12 -0
- package/src/components/chip/chip.component.ts +70 -0
- package/src/components/chip/chip.scss +101 -0
- package/src/components/chip/chip.test.ts +10 -0
- package/src/components/chip/index.ts +12 -0
- package/src/components/collapsible/collapsible.component.ts +86 -0
- package/src/components/collapsible/collapsible.scss +100 -0
- package/src/components/collapsible/collapsible.test.ts +10 -0
- package/src/components/collapsible/index.ts +12 -0
- package/src/components/cols/cols.component.ts +76 -0
- package/src/components/cols/cols.scss +99 -0
- package/src/components/cols/cols.test.ts +10 -0
- package/src/components/cols/index.ts +12 -0
- package/src/components/confirm/confirm.component.ts +181 -0
- package/src/components/confirm/confirm.scss +44 -0
- package/src/components/confirm/confirm.test.ts +10 -0
- package/src/components/confirm/index.ts +12 -0
- package/src/components/content-block/content-block.component.ts +225 -0
- package/src/components/content-block/content-block.scss +64 -0
- package/src/components/content-block/content-block.test.ts +10 -0
- package/src/components/content-block/index.ts +12 -0
- package/src/components/copy-button/copy-button.component.ts +163 -0
- package/src/components/copy-button/copy-button.scss +47 -0
- package/src/components/copy-button/copy-button.test.ts +10 -0
- package/src/components/copy-button/index.ts +12 -0
- package/src/components/data-select/data-select.component.ts +219 -0
- package/src/components/data-select/data-select.scss +43 -0
- package/src/components/data-select/data-select.test.ts +10 -0
- package/src/components/data-select/index.ts +12 -0
- package/src/components/data-select/providers/color-data-provider.ts +16 -0
- package/src/components/data-select/providers/country-code-data-provider.ts +517 -0
- package/src/components/data-select/providers/country-data-provider.ts +527 -0
- package/src/components/data-select/providers/currency-data-provider.ts +328 -0
- package/src/components/data-select/providers/provider.ts +32 -0
- package/src/components/data-table/data-table.component.ts +1093 -0
- package/src/components/data-table/data-table.scss +330 -0
- package/src/components/data-table/data-table.test.ts +10 -0
- package/src/components/data-table/index.ts +12 -0
- package/src/components/data-table-filter/data-table-filter.component.ts +126 -0
- package/src/components/data-table-filter/data-table-filter.scss +22 -0
- package/src/components/data-table-filter/data-table-filter.test.ts +10 -0
- package/src/components/data-table-filter/index.ts +12 -0
- package/src/components/data-table-sort/data-table-sort.component.ts +56 -0
- package/src/components/data-table-sort/data-table-sort.scss +37 -0
- package/src/components/data-table-sort/data-table-sort.test.ts +10 -0
- package/src/components/data-table-sort/index.ts +12 -0
- package/src/components/datepicker/datepicker.component.ts +315 -0
- package/src/components/datepicker/datepicker.scss +237 -0
- package/src/components/datepicker/datepicker.test.ts +10 -0
- package/src/components/datepicker/index.ts +12 -0
- package/src/components/defined-label/defined-label.component.ts +241 -0
- package/src/components/defined-label/defined-label.scss +43 -0
- package/src/components/defined-label/defined-label.test.ts +10 -0
- package/src/components/defined-label/index.ts +12 -0
- package/src/components/dialog/dialog.component.ts +237 -0
- package/src/components/dialog/dialog.scss +197 -0
- package/src/components/dialog/dialog.test.ts +10 -0
- package/src/components/dialog/index.ts +12 -0
- package/src/components/dropdown/dropdown.component.ts +380 -0
- package/src/components/dropdown/dropdown.scss +9 -0
- package/src/components/dropdown/dropdown.test.ts +10 -0
- package/src/components/dropdown/index.ts +12 -0
- package/src/components/editor/editor.component.ts +423 -0
- package/src/components/editor/editor.scss +131 -0
- package/src/components/editor/editor.test.ts +10 -0
- package/src/components/editor/index.ts +12 -0
- package/src/components/editor/modules/attachment-module.ts +195 -0
- package/src/components/editor/modules/dialog-module/dialog-module.component.ts +289 -0
- package/src/components/editor/modules/dialog-module/dialog-module.scss +115 -0
- package/src/components/editor/modules/dialog-module/dialog-module.ts +99 -0
- package/src/components/editor/modules/drag-drop-module.ts +125 -0
- package/src/components/editor/modules/events/zn-command-select.ts +7 -0
- package/src/components/editor/modules/events/zn-editor-update.ts +7 -0
- package/src/components/editor/modules/events/zn-show-canned-response-dialog.ts +15 -0
- package/src/components/editor/modules/image-resize-module/image-resize-module.ts +157 -0
- package/src/components/editor/modules/menu-module/menu-module.component.ts +149 -0
- package/src/components/editor/modules/menu-module/menu-module.scss +17 -0
- package/src/components/editor/modules/menu-module/menu-module.ts +203 -0
- package/src/components/editor/modules/time-tracking-module.ts +35 -0
- package/src/components/empty-state/empty-state.component.ts +63 -0
- package/src/components/empty-state/empty-state.scss +91 -0
- package/src/components/empty-state/empty-state.test.ts +10 -0
- package/src/components/empty-state/index.ts +12 -0
- package/src/components/expanding-action/expanding-action.component.ts +312 -0
- package/src/components/expanding-action/expanding-action.scss +87 -0
- package/src/components/expanding-action/expanding-action.test.ts +10 -0
- package/src/components/expanding-action/index.ts +12 -0
- package/src/components/file/file.component.ts +619 -0
- package/src/components/file/file.scss +200 -0
- package/src/components/file/file.test.ts +10 -0
- package/src/components/file/index.ts +12 -0
- package/src/components/form-group/form-group.component.ts +93 -0
- package/src/components/form-group/form-group.scss +84 -0
- package/src/components/form-group/form-group.test.ts +10 -0
- package/src/components/form-group/index.ts +12 -0
- package/src/components/header/header.component.ts +186 -0
- package/src/components/header/header.scss +244 -0
- package/src/components/header/header.test.ts +10 -0
- package/src/components/header/index.ts +12 -0
- package/src/components/hover-container/hover-container.component.ts +214 -0
- package/src/components/hover-container/hover-container.scss +59 -0
- package/src/components/hover-container/hover-container.ts +10 -0
- package/src/components/hover-container/index.ts +12 -0
- package/src/components/icon/icon.component.ts +251 -0
- package/src/components/icon/icon.scss +186 -0
- package/src/components/icon/icon.test.ts +10 -0
- package/src/components/icon/index.ts +13 -0
- package/src/components/icon/lni.scss +2492 -0
- package/src/components/inline-edit/index.ts +12 -0
- package/src/components/inline-edit/inline-edit.component.ts +289 -0
- package/src/components/inline-edit/inline-edit.scss +139 -0
- package/src/components/inline-edit/inline-edit.test.ts +10 -0
- package/src/components/input/index.ts +12 -0
- package/src/components/input/input.component.ts +614 -0
- package/src/components/input/input.scss +355 -0
- package/src/components/input/input.test.ts +10 -0
- package/src/components/item/index.ts +12 -0
- package/src/components/item/item.component.ts +102 -0
- package/src/components/item/item.scss +161 -0
- package/src/components/item/item.test.ts +10 -0
- package/src/components/linked-select/index.ts +12 -0
- package/src/components/linked-select/linked-select.component.ts +156 -0
- package/src/components/linked-select/linked-select.scss +9 -0
- package/src/components/linked-select/linked-select.test.ts +17 -0
- package/src/components/menu/index.ts +12 -0
- package/src/components/menu/menu.component.ts +243 -0
- package/src/components/menu/menu.scss +14 -0
- package/src/components/menu/menu.test.ts +10 -0
- package/src/components/menu-item/index.ts +12 -0
- package/src/components/menu-item/menu-item.component.ts +220 -0
- package/src/components/menu-item/menu-item.scss +157 -0
- package/src/components/menu-item/menu-item.test.ts +10 -0
- package/src/components/menu-item/submenu-controller.ts +291 -0
- package/src/components/navbar/index.ts +12 -0
- package/src/components/navbar/navbar.component.ts +240 -0
- package/src/components/navbar/navbar.scss +411 -0
- package/src/components/navbar/navbar.test.ts +10 -0
- package/src/components/note/index.ts +12 -0
- package/src/components/note/note.component.ts +60 -0
- package/src/components/note/note.scss +69 -0
- package/src/components/note/note.test.ts +10 -0
- package/src/components/option/index.ts +12 -0
- package/src/components/option/option.component.ts +152 -0
- package/src/components/option/option.scss +88 -0
- package/src/components/option/option.test.ts +10 -0
- package/src/components/order-table/index.ts +12 -0
- package/src/components/order-table/order-table.component.ts +323 -0
- package/src/components/order-table/order-table.scss +154 -0
- package/src/components/order-table/order-table.test.ts +10 -0
- package/src/components/page-nav/index.ts +12 -0
- package/src/components/page-nav/page-nav.component.ts +117 -0
- package/src/components/page-nav/page-nav.scss +155 -0
- package/src/components/page-nav/page-nav.test.ts +10 -0
- package/src/components/pagination/index.ts +12 -0
- package/src/components/pagination/pagination.component.ts +91 -0
- package/src/components/pagination/pagination.scss +76 -0
- package/src/components/pagination/pagination.test.ts +10 -0
- package/src/components/pane/index.ts +12 -0
- package/src/components/pane/pane.component.ts +52 -0
- package/src/components/pane/pane.scss +45 -0
- package/src/components/pane/pane.test.ts +10 -0
- package/src/components/panel/index.ts +12 -0
- package/src/components/panel/panel.component.ts +100 -0
- package/src/components/panel/panel.scss +129 -0
- package/src/components/panel/panel.test.ts +10 -0
- package/src/components/popup/index.ts +12 -0
- package/src/components/popup/popup.component.ts +543 -0
- package/src/components/popup/popup.scss +59 -0
- package/src/components/popup/popup.test.ts +10 -0
- package/src/components/progress-bar/index.ts +12 -0
- package/src/components/progress-bar/progress-bar.component.ts +80 -0
- package/src/components/progress-bar/progress-bar.scss +46 -0
- package/src/components/progress-bar/progress-bar.test.ts +10 -0
- package/src/components/progress-tile/index.ts +12 -0
- package/src/components/progress-tile/progress-tile.component.ts +127 -0
- package/src/components/progress-tile/progress-tile.scss +116 -0
- package/src/components/progress-tile/progress-tile.test.ts +10 -0
- package/src/components/query-builder/index.ts +12 -0
- package/src/components/query-builder/query-builder.component.ts +544 -0
- package/src/components/query-builder/query-builder.scss +53 -0
- package/src/components/query-builder/query-builder.test.ts +10 -0
- package/src/components/radio/index.ts +12 -0
- package/src/components/radio/radio.component.ts +305 -0
- package/src/components/radio/radio.scss +197 -0
- package/src/components/radio/radio.test.ts +10 -0
- package/src/components/radio-group/index.ts +12 -0
- package/src/components/radio-group/radio-group.component.ts +362 -0
- package/src/components/radio-group/radio-group.scss +60 -0
- package/src/components/radio-group/radio-group.test.ts +10 -0
- package/src/components/rating/index.ts +12 -0
- package/src/components/rating/rating.component.ts +235 -0
- package/src/components/rating/rating.scss +82 -0
- package/src/components/rating/rating.test.ts +10 -0
- package/src/components/scroll-container/index.ts +12 -0
- package/src/components/scroll-container/scroll-container.component.ts +41 -0
- package/src/components/scroll-container/scroll-container.scss +17 -0
- package/src/components/scroll-container/scroll-container.test.ts +10 -0
- package/src/components/select/index.ts +12 -0
- package/src/components/select/select.component.ts +984 -0
- package/src/components/select/select.scss +325 -0
- package/src/components/select/select.test.ts +10 -0
- package/src/components/sidebar/index.ts +12 -0
- package/src/components/sidebar/sidebar.component.ts +98 -0
- package/src/components/sidebar/sidebar.scss +294 -0
- package/src/components/sidebar/sidebar.test.ts +10 -0
- package/src/components/simple-chart/index.ts +12 -0
- package/src/components/simple-chart/simple-chart.component.ts +204 -0
- package/src/components/simple-chart/simple-chart.scss +9 -0
- package/src/components/simple-chart/simple-chart.test.ts +10 -0
- package/src/components/skeleton/index.ts +12 -0
- package/src/components/skeleton/skeleton.component.ts +34 -0
- package/src/components/skeleton/skeleton.scss +39 -0
- package/src/components/skeleton/skeleton.test.ts +10 -0
- package/src/components/slideout/index.ts +12 -0
- package/src/components/slideout/slideout.component.ts +223 -0
- package/src/components/slideout/slideout.scss +96 -0
- package/src/components/slideout/slideout.test.ts +10 -0
- package/src/components/sp/index.ts +12 -0
- package/src/components/sp/sp.component.ts +86 -0
- package/src/components/sp/sp.scss +88 -0
- package/src/components/sp/sp.test.ts +10 -0
- package/src/components/split-button/index.ts +12 -0
- package/src/components/split-button/split-button.component.ts +154 -0
- package/src/components/split-button/split-button.scss +9 -0
- package/src/components/split-button/split-button.test.ts +10 -0
- package/src/components/split-pane/index.ts +12 -0
- package/src/components/split-pane/split-pane.component.ts +195 -0
- package/src/components/split-pane/split-pane.scss +303 -0
- package/src/components/split-pane/split-pane.test.ts +10 -0
- package/src/components/stat/index.ts +12 -0
- package/src/components/stat/stat.component.ts +117 -0
- package/src/components/stat/stat.scss +92 -0
- package/src/components/stat/stat.test.ts +10 -0
- package/src/components/status-indicator/index.ts +12 -0
- package/src/components/status-indicator/status-indicator.component.ts +31 -0
- package/src/components/status-indicator/status-indicator.scss +32 -0
- package/src/components/status-indicator/status-indicator.test.ts +10 -0
- package/src/components/stepper/index.ts +12 -0
- package/src/components/stepper/stepper.component.ts +80 -0
- package/src/components/stepper/stepper.scss +88 -0
- package/src/components/stepper/stepper.test.ts +10 -0
- package/src/components/style/index.ts +12 -0
- package/src/components/style/style.component.ts +150 -0
- package/src/components/style/style.scss +1 -0
- package/src/components/style/style.test.ts +10 -0
- package/src/components/table/index.ts +12 -0
- package/src/components/table/table.component.ts +297 -0
- package/src/components/table/table.scss +209 -0
- package/src/components/table/table.test.ts +10 -0
- package/src/components/tabs/index.ts +12 -0
- package/src/components/tabs/tabs.component.ts +496 -0
- package/src/components/tabs/tabs.scss +147 -0
- package/src/components/tabs/tabs.test.ts +10 -0
- package/src/components/textarea/index.ts +12 -0
- package/src/components/textarea/textarea.component.ts +417 -0
- package/src/components/textarea/textarea.scss +152 -0
- package/src/components/textarea/textarea.test.ts +10 -0
- package/src/components/tile/index.ts +12 -0
- package/src/components/tile/tile.component.ts +105 -0
- package/src/components/tile/tile.scss +144 -0
- package/src/components/tile/tile.test.ts +10 -0
- package/src/components/tile-property/index.ts +12 -0
- package/src/components/tile-property/tile-property.component.ts +43 -0
- package/src/components/tile-property/tile-property.scss +43 -0
- package/src/components/tile-property/tile-property.test.ts +10 -0
- package/src/components/timer/index.ts +12 -0
- package/src/components/timer/timer.component.ts +88 -0
- package/src/components/timer/timer.scss +40 -0
- package/src/components/timer/timer.test.ts +10 -0
- package/src/components/toggle/index.ts +12 -0
- package/src/components/toggle/toggle.component.ts +203 -0
- package/src/components/toggle/toggle.scss +93 -0
- package/src/components/toggle/toggle.test.ts +10 -0
- package/src/components/tooltip/index.ts +12 -0
- package/src/components/tooltip/tooltip.component.ts +215 -0
- package/src/components/tooltip/tooltip.scss +43 -0
- package/src/components/tooltip/tooltip.test.ts +10 -0
- package/src/components/vertical-stepper/index.ts +12 -0
- package/src/components/vertical-stepper/vertical-stepper.component.ts +53 -0
- package/src/components/vertical-stepper/vertical-stepper.scss +84 -0
- package/src/components/vertical-stepper/vertical-stepper.test.ts +10 -0
- package/src/components/well/index.ts +12 -0
- package/src/components/well/well.component.ts +43 -0
- package/src/components/well/well.scss +19 -0
- package/src/components/well/well.test.ts +10 -0
- package/src/declaration.d.ts +39 -0
- package/src/events/events.ts +7 -0
- package/src/events/zn-after-collapse.ts +7 -0
- package/src/events/zn-after-expand.ts +7 -0
- package/src/events/zn-after-hide.ts +7 -0
- package/src/events/zn-after-show.ts +7 -0
- package/src/events/zn-blur.ts +7 -0
- package/src/events/zn-cancel.ts +7 -0
- package/src/events/zn-change.ts +7 -0
- package/src/events/zn-clear.ts +7 -0
- package/src/events/zn-close.ts +7 -0
- package/src/events/zn-collapse.ts +7 -0
- package/src/events/zn-copy.ts +7 -0
- package/src/events/zn-element-added.ts +7 -0
- package/src/events/zn-error.ts +7 -0
- package/src/events/zn-expand.ts +7 -0
- package/src/events/zn-filter-change.ts +7 -0
- package/src/events/zn-finish.ts +7 -0
- package/src/events/zn-focus.ts +7 -0
- package/src/events/zn-hide.ts +7 -0
- package/src/events/zn-hover.ts +10 -0
- package/src/events/zn-initial-focus.ts +7 -0
- package/src/events/zn-input.ts +7 -0
- package/src/events/zn-invalid.ts +7 -0
- package/src/events/zn-load.ts +7 -0
- package/src/events/zn-menu-ready.ts +9 -0
- package/src/events/zn-menu-select.ts +9 -0
- package/src/events/zn-open.ts +7 -0
- package/src/events/zn-remove.ts +7 -0
- package/src/events/zn-request-close.ts +7 -0
- package/src/events/zn-select.ts +9 -0
- package/src/events/zn-show.ts +7 -0
- package/src/events/zn-sort-change.ts +7 -0
- package/src/events/zn-submit.ts +7 -0
- package/src/form-control.scss +123 -0
- package/src/internal/animate.ts +64 -0
- package/src/internal/default-value.ts +49 -0
- package/src/internal/event.ts +75 -0
- package/src/internal/form.ts +527 -0
- package/src/internal/offset.ts +13 -0
- package/src/internal/scroll.ts +69 -0
- package/src/internal/slot.ts +110 -0
- package/src/internal/storage.ts +70 -0
- package/src/internal/tabbable.ts +198 -0
- package/src/internal/theme.ts +54 -0
- package/src/internal/watch.ts +63 -0
- package/src/internal/zinc-element.ts +113 -0
- package/src/translations/en.ts +30 -0
- package/src/utilities/animation-registry.ts +74 -0
- package/src/utilities/base-path.ts +46 -0
- package/src/utilities/lit-to-html.ts +7 -0
- package/src/utilities/localize.ts +37 -0
- package/src/utilities/md5.ts +216 -0
- package/src/utilities/on.ts +29 -0
- package/src/utilities/query.ts +36 -0
- package/src/wc.scss +33 -0
- package/src/zinc-autoloader.ts +58 -0
- package/src/zinc.ts +83 -0
- package/tsconfig.json +41 -0
- package/tsconfig.prod.json +12 -0
- package/vscode.html-custom-data.json +2804 -0
- package/web-test-runner.config.js +50 -0
- package/web-types.json +6420 -0
- package/zn.d.ts +6318 -0
- package/zn.min.css +1 -0
- package/zn.min.js +3701 -0
- package/.idea/.name +0 -1
- package/.idea/fusion.iml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/php.xml +0 -4
- package/.idea/vcs.xml +0 -6
- package/.idea/watcherTasks.xml +0 -25
- package/components/Blank/demo/demo.html +0 -11
- package/components/Blank/dist/zn-blank.js +0 -39
- package/components/Blank/go/component.go +0 -18
- package/components/Blank/go/go.mod +0 -3
- package/components/Blank/package.json +0 -33
- package/components/Blank/php/composer.json +0 -25
- package/components/Blank/php/src/Blank.php +0 -15
- package/components/Blank/rollup.config.js +0 -32
- package/components/Blank/scss/Styles.scss +0 -6
- package/components/Blank/ts/Component.ts +0 -15
- package/components/Blank/tsconfig.json +0 -7
- package/components/Icon/demo/demo.html +0 -90
- package/components/Icon/dist/zn-icon.js +0 -55
- package/components/Icon/go/component.go +0 -56
- package/components/Icon/go/go.mod +0 -3
- package/components/Icon/package.json +0 -33
- package/components/Icon/php/composer.json +0 -26
- package/components/Icon/php/src/Icon.php +0 -38
- package/components/Icon/php/src/Library.php +0 -17
- package/components/Icon/php/src/Size.php +0 -42
- package/components/Icon/roadmap.md +0 -7
- package/components/Icon/rollup.config.js +0 -32
- package/components/Icon/scss/Styles.scss +0 -65
- package/components/Icon/ts/Component.ts +0 -108
- package/components/Icon/ts/md5.ts +0 -215
- package/components/Icon/tsconfig.json +0 -7
- package/components/MaxWidth/demo/demo.html +0 -11
- package/components/MaxWidth/dist/zn-max-width.js +0 -51
- package/components/MaxWidth/go/component.go +0 -24
- package/components/MaxWidth/go/go.mod +0 -3
- package/components/MaxWidth/package.json +0 -33
- package/components/MaxWidth/php/composer.json +0 -25
- package/components/MaxWidth/php/src/MaxWidth.php +0 -32
- package/components/MaxWidth/rollup.config.js +0 -32
- package/components/MaxWidth/scss/Styles.scss +0 -13
- package/components/MaxWidth/ts/Component.ts +0 -27
- package/components/MaxWidth/tsconfig.json +0 -7
- package/components/roadmap.md +0 -4
- package/layout/components/Columns/demo/demo.html +0 -16
- package/layout/components/Columns/ts/Component.ts +0 -59
- package/layout/demo/index.html +0 -24
- package/layout/dist/zn-layout.js +0 -87
- package/layout/package.json +0 -38
- package/layout/rollup.config.js +0 -38
- package/layout/scss/layout.scss +0 -24
- package/layout/tailwind.config.js +0 -42
- package/layout/ts/import.ts +0 -2
- package/layout/tsconfig.json +0 -7
- /package/{layout/components/Columns/scss/Styles.scss → src/internal/zinc-element.test.ts} +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Input
|
|
4
|
+
description: Inputs collect data from the user.
|
|
5
|
+
layout: component
|
|
6
|
+
unusedProperties: |
|
|
7
|
+
- Size `small`
|
|
8
|
+
- Booleans `pill`
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
### Basic Input with Label
|
|
14
|
+
|
|
15
|
+
Use the `label` attribute to give the input an accessible label.
|
|
16
|
+
|
|
17
|
+
```html:preview
|
|
18
|
+
<zn-input label="Name"></zn-input>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
:::tip
|
|
22
|
+
This component works with standard `<form>` elements. Please refer to the section
|
|
23
|
+
on [form controls](/getting-started/form-controls) to learn more about form submission and client-side validation.
|
|
24
|
+
:::
|
|
25
|
+
|
|
26
|
+
### Help Text
|
|
27
|
+
|
|
28
|
+
Add descriptive help text to an input with the `help-text` attribute. For help text that contains HTML, use the
|
|
29
|
+
`help-text` slot instead.
|
|
30
|
+
|
|
31
|
+
```html:preview
|
|
32
|
+
<zn-input label="Previous legal names" help-text="List full names, separated by a semicolon"></zn-input>
|
|
33
|
+
<br />
|
|
34
|
+
<zn-input label="Previous legal names">
|
|
35
|
+
<div slot="help-text">List <strong>full</strong> names, separated by a <strong>semicolon</strong></div>
|
|
36
|
+
</zn-input>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Label with Tooltip
|
|
40
|
+
|
|
41
|
+
Use the `label-tooltip` attribute to add text that appears in a tooltip triggered by an info icon next to the label.
|
|
42
|
+
|
|
43
|
+
:::tip
|
|
44
|
+
**Usage:** Use a **label tooltip** to provide helpful but non-essential instructions or examples to guide people when
|
|
45
|
+
filling in the input. Use **help text** to communicate instructions or requirements for filling in the input without
|
|
46
|
+
errors.
|
|
47
|
+
:::
|
|
48
|
+
|
|
49
|
+
```html:preview
|
|
50
|
+
<zn-input label="Previous legal names" label-tooltip="Names previously used on official government documents, such as passport, driver license, or ID card" help-text="List full names, separated by a semicolon"></zn-input>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Label with Context Note
|
|
54
|
+
|
|
55
|
+
Use the `context-note` attribute to add text that provides additional context or reference. For text that contains HTML,
|
|
56
|
+
use the `context-note` slot. **Note:** On small screens the context note will wrap below the label if there isn't enough
|
|
57
|
+
room next to the label.
|
|
58
|
+
|
|
59
|
+
:::tip
|
|
60
|
+
**Usage:** Use a **context note** to provide secondary contextual data, especially dynamic data, that would help people
|
|
61
|
+
when filling in the input. Use **help text** to communicate instructions or requirements for filling in the input
|
|
62
|
+
without errors.
|
|
63
|
+
:::
|
|
64
|
+
|
|
65
|
+
```html:preview
|
|
66
|
+
<zn-input type="currency" label="Amount" context-note="$10,000.29 available" help-text="You can transfer up to $2,500 per day"></zn-input>
|
|
67
|
+
<br />
|
|
68
|
+
<zn-input type="currency" label="Amount" help-text="You can transfer up to $2,500 per day">
|
|
69
|
+
<div slot="context-note"><strong>$10,000.29</strong> available</div>
|
|
70
|
+
</zn-input>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Placeholders
|
|
74
|
+
|
|
75
|
+
Use the `placeholder` attribute to add a placeholder.
|
|
76
|
+
|
|
77
|
+
```html:preview
|
|
78
|
+
<zn-input placeholder="Type something"></zn-input>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Clearable
|
|
82
|
+
|
|
83
|
+
Add the `clearable` attribute to add a clear button when the input has content.
|
|
84
|
+
|
|
85
|
+
```html:preview
|
|
86
|
+
<zn-input label="Clearable input" value="I can be cleared!" clearable></zn-input>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Toggle Password
|
|
90
|
+
|
|
91
|
+
Add the `password-toggle` attribute to add a toggle button that will show the password when activated.
|
|
92
|
+
|
|
93
|
+
```html:preview
|
|
94
|
+
<zn-input type="password" label="Password" password-toggle></zn-input>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Disabled
|
|
98
|
+
|
|
99
|
+
Use the `disabled` attribute to disable an input.
|
|
100
|
+
|
|
101
|
+
```html:preview
|
|
102
|
+
<zn-input label="Disabled input" disabled></zn-input>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Sizes
|
|
106
|
+
|
|
107
|
+
Use the `size` attribute to change an input's size. Size `medium` is the input's default.
|
|
108
|
+
|
|
109
|
+
```html:preview
|
|
110
|
+
<zn-input label="small input" size="small"></zn-input>
|
|
111
|
+
<br />
|
|
112
|
+
<zn-input label="Medium input" size="medium"></zn-input>
|
|
113
|
+
<br />
|
|
114
|
+
<zn-input label="Large input" size="large"></zn-input>
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Pill
|
|
118
|
+
|
|
119
|
+
Use the `pill` attribute to give inputs rounded edges.
|
|
120
|
+
|
|
121
|
+
:::warning
|
|
122
|
+
**Note:** Pill inputs are not a standard input pattern in our Design System
|
|
123
|
+
:::
|
|
124
|
+
|
|
125
|
+
```html:preview
|
|
126
|
+
<zn-input label="Medium pill" pill></zn-input>
|
|
127
|
+
<br />
|
|
128
|
+
<zn-input label="Large pill" size="large" pill></zn-input>
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Input Types
|
|
132
|
+
|
|
133
|
+
The `type` attribute controls the type of input the browser renders. As shown in the examples below, some input types
|
|
134
|
+
have default prefix and suffix elements. Not all available types are shown below. See
|
|
135
|
+
the [Properties table](#properties) for the full list of options.
|
|
136
|
+
|
|
137
|
+
```html:preview
|
|
138
|
+
<zn-input type="currency" label="Input type: Currency"><div slot="help-text">Has <code>$</code> prefix and <code>USD</code> suffix by default and native input type set to <code>number</code>. The currency input does <strong>NOT</strong> have input masking at this time.</div></zn-input>
|
|
139
|
+
<br />
|
|
140
|
+
<zn-input type="date" label="Input type: Date" placeholder="Date" help-text="Calendar icon opens the browser default date picker"></zn-input>
|
|
141
|
+
<br />
|
|
142
|
+
<zn-input type="email" label="Input type: Email">
|
|
143
|
+
<div slot="help-text">Has no icon by default</div>
|
|
144
|
+
</zn-input>
|
|
145
|
+
<br />
|
|
146
|
+
<zn-input type="email" label="Input type: Email, with icon" optional-icon>
|
|
147
|
+
<div slot="help-text">Use the <code>optional-icon</code> attribute to display the default optional icon for email inputs </div>
|
|
148
|
+
</zn-input>
|
|
149
|
+
<br />
|
|
150
|
+
<zn-input type="tel" label="Input type: Tel">
|
|
151
|
+
<div slot="help-text">Has no icon by default</div>
|
|
152
|
+
</zn-input>
|
|
153
|
+
<br />
|
|
154
|
+
<zn-input type="tel" label="Input type: Tel, with icon" optional-icon>
|
|
155
|
+
<div slot="help-text">Use the <code>optional-icon</code> attribute to display the default optional icon for phone number inputs </div>
|
|
156
|
+
</zn-input>
|
|
157
|
+
<br />
|
|
158
|
+
<zn-input type="number" label="Input type: Number"></zn-input>
|
|
159
|
+
<br />
|
|
160
|
+
<zn-input type="number" label="Input type: Number, no spin buttons" no-spin-buttons>
|
|
161
|
+
<div slot="help-text">Use the <code>no-spin-buttons</code> attribute to hide the browser's default increment/decrement buttons for number inputs</div>
|
|
162
|
+
</zn-input>
|
|
163
|
+
<br />
|
|
164
|
+
<zn-input type="search" label="Input type: Search" clearable><div slot="help-text">Has a search icon by default. Use the <code>clearable</code> attribute to make the input clearable</div></zn-input>
|
|
165
|
+
<br />
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Min Max Validation
|
|
169
|
+
|
|
170
|
+
```html:preview
|
|
171
|
+
<zn-input type="date" label="Input type: Date" placeholder="Date" help-text="Calendar icon opens the browser default date picker" min="01/01/1970"></zn-input>
|
|
172
|
+
<br />
|
|
173
|
+
<zn-input type="number" label="Input type: Number" min="10" max="100"></zn-input>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Prefix & Suffix Icons
|
|
177
|
+
|
|
178
|
+
Several input types have specific `prefix` and `suffix` elements or icons that are displayed by default. You can also
|
|
179
|
+
use the `prefix` and `suffix` slots to add icons or text elements for other use cases.
|
|
180
|
+
|
|
181
|
+
Follow these general guidelines when adding prefix and suffix icons to the input:
|
|
182
|
+
|
|
183
|
+
- Use the `zn-icon` component
|
|
184
|
+
- In general **don't** resize icons or change their color from the default already set by the `zn-input` component
|
|
185
|
+
|
|
186
|
+
:::warning
|
|
187
|
+
**Note:** If you find your use case requires a different size or color from the default, bring it up to the Design Team
|
|
188
|
+
so that we can consider whether the pattern needs to be updated.
|
|
189
|
+
:::
|
|
190
|
+
:::warning
|
|
191
|
+
**Note:** `ts_form_for` doesn't support slots. Prefix and suffix icons cannot be added when rendering `zn-input` with
|
|
192
|
+
`ts_form_for`. However, the `optional-icon` attribute can be set to `true` to display default icons for input types
|
|
193
|
+
`currency`, `email`, `tel`, and `search`.
|
|
194
|
+
:::
|
|
195
|
+
|
|
196
|
+
```html:preview
|
|
197
|
+
<zn-input label="Prefix icon example: DO">
|
|
198
|
+
<zn-icon src="rocket_launch" slot="prefix"></zn-icon>
|
|
199
|
+
</zn-input>
|
|
200
|
+
<br />
|
|
201
|
+
<br />
|
|
202
|
+
<zn-input label="Prefix icon example: RESIZED" help-text="Same icon as above, resized. Note that a larger prefix or suffix icon will push the input text out of alignment." value="Input text, shifted 4px right due to icon size">
|
|
203
|
+
<zn-icon src="rocket_launch" style="--icon-size: 24px" slot="prefix"></zn-icon>
|
|
204
|
+
</zn-input>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Prefix Submit Button
|
|
208
|
+
|
|
209
|
+
Use the `type="submit"` attribute to create a submit button as a Suffix to the input. This is useful for search inputs.
|
|
210
|
+
|
|
211
|
+
```html:preview
|
|
212
|
+
<zn-input label="Search" placeholder="Search">
|
|
213
|
+
<zn-button slot="suffix" type="submit" variant="primary" outline>Search</zn-button>
|
|
214
|
+
</zn-input>
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Or as a Prefix
|
|
218
|
+
|
|
219
|
+
```html:preview
|
|
220
|
+
<zn-input label="Search" placeholder="Search">
|
|
221
|
+
<zn-button slot="prefix" type="submit" variant="primary">Search</zn-button>
|
|
222
|
+
</zn-input>
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Customizing Label Position
|
|
226
|
+
|
|
227
|
+
Use [CSS parts](#css-parts) to customize the way form controls are drawn. This example uses CSS grid to position the
|
|
228
|
+
label to the left of the control, but the possible orientations are nearly endless. The same technique works for inputs,
|
|
229
|
+
textareas, radio groups, and similar form controls.
|
|
230
|
+
|
|
231
|
+
```html:preview
|
|
232
|
+
<zn-input class="label-on-left" label="Name" help-text="Enter your name"></zn-input>
|
|
233
|
+
<zn-input class="label-on-left" label="Email" type="email" help-text="Enter your email"></zn-input>
|
|
234
|
+
<zn-textarea class="label-on-left" label="Bio" help-text="Tell us something about yourself"></zn-textarea>
|
|
235
|
+
|
|
236
|
+
<style>
|
|
237
|
+
.label-on-left {
|
|
238
|
+
--label-width: 3.75rem;
|
|
239
|
+
--gap-width: 1rem;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.label-on-left + .label-on-left {
|
|
243
|
+
margin-top: var(--zn-spacing-medium);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.label-on-left::part(form-control) {
|
|
247
|
+
display: grid;
|
|
248
|
+
grid: auto / var(--label-width) 1fr;
|
|
249
|
+
gap: var(--zn-spacing-3x-small) var(--gap-width);
|
|
250
|
+
align-items: center;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.label-on-left::part(form-control-label) {
|
|
254
|
+
text-align: right;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.label-on-left::part(form-control-help-text) {
|
|
258
|
+
grid-column-start: 2;
|
|
259
|
+
}
|
|
260
|
+
</style>
|
|
261
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Item
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-sp divide no-gap>
|
|
11
|
+
<zn-item caption="Full name" edit-on-hover>
|
|
12
|
+
<zn-inline-edit name="name"
|
|
13
|
+
value="EN"
|
|
14
|
+
options="{"":"-","EN":"English","IT":"Italian","FR":"French","DE":"German","ES":"Spanish","PT":"Portuguese","AB":"Abkhazian","OM":"Afan\/Oromoor\/Oriya","AA":"Afar","AF":"Afrikaans","SQ":"Albanian","AM":"Amharic","AR":"Arabic","HY":"Armenian","AS":"Assamese","AY":"Aymara","AZ":"Azerbaijani","BA":"Bashkir","EU":"Basque","BN":"Bengali\/Bangla","DZ":"Bhutani","BH":"Bihari","BI":"Bislama","BR":"Breton","BG":"Bulgarian","MY":"Burmese","BE":"Byelorussian","KM":"Cambodian","CA":"Catalan","ZH":"Chinese","CO":"Corsican","HR":"Croatian","CS":"Czech","DA":"Danish","NL":"Dutch","EO":"Esperanto","ET":"Estonian","FO":"Faeroese","FJ":"Fiji","FI":"Finnish","FY":"Frisian","GL":"Galician","KA":"Georgian","EL":"Greek","KL":"Greenlandic","GN":"Guarani","GU":"Gujarati","HA":"Hausa","HE":"Hebrew","HI":"Hindi","HU":"Hungarian","IS":"Icelandic","ID":"Indonesian","IA":"Interlingua","IE":"Interlingue","IK":"Inupiak","GA":"Irish","JA":"Japanese","JV":"Javanese","KN":"Kannada","KS":"Kashmiri","KK":"Kazakh","RW":"Kinyarwanda","KY":"Kirghiz","RN":"Kirundi","KO":"Korean","KU":"Kurdish","LO":"Laothian","LA":"Latin","LV":"Latvian\/Lettish","LN":"Lingala","LT":"Lithuanian","MK":"Macedonian","MG":"Malagasy","MS":"Malay","ML":"Malayalam","MT":"Maltese","MI":"Maori","MR":"Marathi","MO":"Moldavian","MN":"Mongolian","NA":"Nauru","NB":"Norwegian Bokm\u00e5l","NE":"Nepali","NO":"Norwegian","OC":"Occitan","PS":"Pashto\/Pushto","FA":"Persian","PL":"Polish","PA":"Punjabi","QU":"Quechua","RM":"Rhaeto-Romance","RO":"Romanian","RU":"Russian","SM":"Samoan","SG":"Sangro","SA":"Sanskrit","GD":"Scots\/Gaelic","SR":"Serbian","SH":"Serbo-Croatian","ST":"Sesotho","TN":"Setswana","SN":"Shona","SD":"Sindhi","SE":"Northern Sami","SI":"Singhalese","SS":"Siswati","SK":"Slovak","SL":"Slovenian","SO":"Somali","SU":"Sundanese","SW":"Swahili","SV":"Swedish","TL":"Tagalog","TG":"Tajik","TA":"Tamil","TT":"Tatar","TE":"Tegulu","TH":"Thai","BO":"Tibetan","TI":"Tigrinya","TO":"Tonga","TS":"Tsonga","TR":"Turkish","TK":"Turkmen","TW":"Twi","UK":"Ukrainian","UR":"Urdu","UZ":"Uzbek","VI":"Vietnamese","VO":"Volapuk","CY":"Welsh","WO":"Wolof","XH":"Xhosa","JI":"Yiddish","YO":"Yoruba","ZU":"Zulu"}"></zn-inline-edit>
|
|
15
|
+
</zn-item>
|
|
16
|
+
<zn-item caption="Full name">
|
|
17
|
+
Margot Foster
|
|
18
|
+
</zn-item>
|
|
19
|
+
<zn-item caption="Full name">
|
|
20
|
+
margot.foster@example.com
|
|
21
|
+
</zn-item>
|
|
22
|
+
<zn-item caption="Full name">
|
|
23
|
+
lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
24
|
+
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
25
|
+
</zn-item>
|
|
26
|
+
</zn-sp>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
### Lots of Content
|
|
32
|
+
|
|
33
|
+
```html:preview
|
|
34
|
+
<zn-item caption="Full name">
|
|
35
|
+
lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
36
|
+
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
37
|
+
</zn-item>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Icons
|
|
41
|
+
|
|
42
|
+
```html:preview
|
|
43
|
+
|
|
44
|
+
<zn-item caption="Full name" icon="person">
|
|
45
|
+
This is the content
|
|
46
|
+
</zn-item>
|
|
47
|
+
|
|
48
|
+
<zn-cols layout="1, 1">
|
|
49
|
+
<zn-item inline icon="person">
|
|
50
|
+
<div>First Name</div>
|
|
51
|
+
<div>Second Name</div>
|
|
52
|
+
</zn-item>
|
|
53
|
+
<zn-item inline icon="person">This is the content</zn-item>
|
|
54
|
+
</zn-cols>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Multiple Actions
|
|
58
|
+
|
|
59
|
+
Example of multiple actions in a description item.
|
|
60
|
+
|
|
61
|
+
```html:preview
|
|
62
|
+
|
|
63
|
+
<zn-item caption="Address">
|
|
64
|
+
<div><strong>Company</strong> Example here </div>
|
|
65
|
+
<div><strong>Line 1</strong> Example here </div>
|
|
66
|
+
<div><strong>Line 2</strong> Example here </div>
|
|
67
|
+
<div><strong>Line 3</strong> Example here </div>
|
|
68
|
+
<div><strong>Town</strong> Example here </div>
|
|
69
|
+
<div><strong>County</strong> Example here </div>
|
|
70
|
+
<div><strong>Postal Code</strong> Example here </div>
|
|
71
|
+
<div><strong>Country</strong> Example here </div>
|
|
72
|
+
|
|
73
|
+
<zn-button id="address-modal" slot="actions" size="x-small" color="secondary" modal>Edit</zn-button>
|
|
74
|
+
<zn-button id="address-modal" slot="actions" size="x-small" color="secondary" modal>Edit</zn-button>
|
|
75
|
+
|
|
76
|
+
</zn-item>
|
|
77
|
+
```
|
|
78
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Linked Select
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-select name="departmentFid" id="departmentFid" label="Department" class="zn-mb" size="medium" placement="bottom"
|
|
11
|
+
form="" data-optional="" data-valid="" data-user-valid="" open="">
|
|
12
|
+
<zn-option value="" role="option" aria-selected="false" aria-disabled="false" tabindex="-1">Select Department
|
|
13
|
+
</zn-option>
|
|
14
|
+
<zn-option value="FID:DEP:1677585809:MZxvTiWlzBlSG" role="option" aria-selected="true" aria-disabled="false"
|
|
15
|
+
tabindex="-1">Billing
|
|
16
|
+
</zn-option>
|
|
17
|
+
<zn-option value="FID:DEP:1677585809:Kd83L0aIhsGpB" role="option" aria-selected="false" aria-disabled="false"
|
|
18
|
+
tabindex="-1">Sales
|
|
19
|
+
</zn-option>
|
|
20
|
+
<zn-option value="FID:DEP:1677585809:3mBpgQnrkzLSO" role="option" aria-selected="false" aria-disabled="false"
|
|
21
|
+
tabindex="-1">
|
|
22
|
+
Support
|
|
23
|
+
</zn-option>
|
|
24
|
+
</zn-select>
|
|
25
|
+
|
|
26
|
+
<zn-linked-select linked-select="departmentFid" value="" name="queueFid" label="Queue"
|
|
27
|
+
options="{"-":{"-":"Select Department"},"FID:DEP:1677585809:MZxvTiWlzBlSG":{"-":"Select Queue","FID:TKT:QUE:1677585809:DFP20NM0Q":"Generic","FID:TKT:QUE:1678099064:8nGJ5OQfp":"Money Back"},"FID:DEP:1677585809:Kd83L0aIhsGpB":{"-":"Select Queue","FID:TKT:QUE:1677585809:ma9I3ORGu":"Generic"},"FID:DEP:1677585809:3mBpgQnrkzLSO":{"-":"Select Queue","FID:TKT:QUE:1677585809:cFvFFL8o6":"Generic"}}"
|
|
28
|
+
data-optional="" data-valid="" data-user-valid=""></zn-linked-select>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
### First Example
|
|
34
|
+
|
|
35
|
+
TODO
|
|
36
|
+
|
|
37
|
+
### Second Example
|
|
38
|
+
|
|
39
|
+
TODO
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Menu
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-menu>
|
|
11
|
+
<zn-menu-item>Menu Item 1</zn-menu-item>
|
|
12
|
+
<zn-menu-item>Menu Item 2</zn-menu-item>
|
|
13
|
+
<zn-menu-item>Menu Item 3</zn-menu-item>
|
|
14
|
+
<zn-menu-item>Menu Item 4</zn-menu-item>
|
|
15
|
+
<zn-menu-item>
|
|
16
|
+
Menu Item 5
|
|
17
|
+
<zn-menu slot="submenu">
|
|
18
|
+
<zn-menu-item value="find">One</zn-menu-item>
|
|
19
|
+
<zn-menu-item value="find-previous">Two</zn-menu-item>
|
|
20
|
+
<zn-menu-item value="find-next">Three</zn-menu-item>
|
|
21
|
+
</zn-menu>
|
|
22
|
+
</zn-menu-item>
|
|
23
|
+
</zn-menu>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
### First Example
|
|
29
|
+
|
|
30
|
+
TODO
|
|
31
|
+
|
|
32
|
+
### Second Example
|
|
33
|
+
|
|
34
|
+
TODO
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Navbar
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-navbar
|
|
11
|
+
navigation="[{"path":"#","title":"Dashboard"},{"path":"#","title":"Another"}]">
|
|
12
|
+
</zn-navbar>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
### Stacked
|
|
18
|
+
|
|
19
|
+
```html:preview
|
|
20
|
+
|
|
21
|
+
<zn-tabs>
|
|
22
|
+
<zn-navbar
|
|
23
|
+
slot="left"
|
|
24
|
+
stacked
|
|
25
|
+
navigation="[{"path":"#","icon":"phone"},{"path":"#","icon":"home"}]">
|
|
26
|
+
</zn-navbar>
|
|
27
|
+
|
|
28
|
+
<div id="">
|
|
29
|
+
000000
|
|
30
|
+
</div>
|
|
31
|
+
<div id="1">
|
|
32
|
+
111111
|
|
33
|
+
</div>
|
|
34
|
+
</zn-tabs>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Second Example
|
|
38
|
+
|
|
39
|
+
```html:preview
|
|
40
|
+
|
|
41
|
+
<zn-navbar
|
|
42
|
+
navigation="[{"path":"#","title":"Dashboard"},{"path":"#","title":"Another"}]">
|
|
43
|
+
|
|
44
|
+
<zn-expanding-action icon="new_label"
|
|
45
|
+
content-uri="/test"
|
|
46
|
+
method="drop"></zn-expanding-action>
|
|
47
|
+
</zn-navbar>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Third Example
|
|
52
|
+
|
|
53
|
+
```html:preview
|
|
54
|
+
|
|
55
|
+
<zn-navbar small icon-bar rounded navigation="[{"path":"#","title":"HTML"},{"path":"#","title":"Text"}]">>
|
|
56
|
+
</zn-navbar>
|
|
57
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Note
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-note color="gray">
|
|
11
|
+
<span slot="caption">The caption</span>
|
|
12
|
+
<span>The body</span>
|
|
13
|
+
<span slot="date">
|
|
14
|
+
<small>11/10/24</small>
|
|
15
|
+
</span>
|
|
16
|
+
</zn-note>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
### Using HTML
|
|
22
|
+
|
|
23
|
+
```html:preview
|
|
24
|
+
|
|
25
|
+
<zn-note color="gray">
|
|
26
|
+
<span slot="caption">The caption</span>
|
|
27
|
+
<span>The body</span>
|
|
28
|
+
<span slot="date">
|
|
29
|
+
<small>11/10/24</small>
|
|
30
|
+
</span>
|
|
31
|
+
</zn-note>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Changing Colour
|
|
35
|
+
|
|
36
|
+
```html:preview
|
|
37
|
+
<zn-note caption="The caption" date="11/10/24" color="red"><div>I'm red!</div></zn-note>
|
|
38
|
+
<zn-note caption="The caption" date="11/10/24" color="blue"><div>I'm blue!</div></zn-note>
|
|
39
|
+
<zn-note caption="The caption" date="11/10/24" color="orange"><div>I'm orange!</div></zn-note>
|
|
40
|
+
<zn-note caption="The caption" date="11/10/24" color="yellow"><div>I'm yellow!</div></zn-note>
|
|
41
|
+
<zn-note caption="The caption" date="11/10/24" color="indigo"><div>I'm indigo!</div></zn-note>
|
|
42
|
+
<zn-note caption="The caption" date="11/10/24" color="violet"><div>I'm violet!</div></zn-note>
|
|
43
|
+
<zn-note caption="The caption" date="11/10/24" color="green"><div>I'm green!</div></zn-note>
|
|
44
|
+
<zn-note caption="The caption" date="11/10/24" color="pink"><div>I'm pink!</div></zn-note>
|
|
45
|
+
<zn-note caption="The caption" date="11/10/24" color="gray"><div>I'm gray!</div></zn-note>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### No Border Colour
|
|
49
|
+
|
|
50
|
+
```html:preview
|
|
51
|
+
<zn-note caption="The caption"
|
|
52
|
+
date="11/10/24">
|
|
53
|
+
<div>The Body</div>
|
|
54
|
+
</zn-note>
|
|
55
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
meta:
|
|
3
|
+
title: Page Nav
|
|
4
|
+
description:
|
|
5
|
+
layout: component
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
```html:preview
|
|
9
|
+
|
|
10
|
+
<zn-page-nav
|
|
11
|
+
navigation="{"data": [{"title":"Page Nav","items":[{ "label": "First Example", "uri": "TODO" }, { "label": "Second Example", "uri": "TODO" }]}, { "title": "Page Nav 2", "items": [{ "label": "First Example", "uri": "TODO" }, { "label": "Second Example", "uri": "TODO"}]}]}">
|
|
12
|
+
</zn-page-nav>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
### First Example
|
|
18
|
+
|
|
19
|
+
TODO
|
|
20
|
+
|
|
21
|
+
### Second Example
|
|
22
|
+
|
|
23
|
+
TODO
|