@andespindola/ui-core 0.1.1 → 0.3.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/dist/cjs/{floating-ui.dom-BPemvNRD.js → floating-ui.dom-BZk7Blsu.js} +93 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ui-alert.cjs.entry.js +40 -0
- package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
- package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ui-badge.cjs.entry.js +7 -2
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
- package/dist/cjs/ui-button.cjs.entry.js +5 -3
- package/dist/cjs/ui-card.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
- package/dist/cjs/ui-container.cjs.entry.js +26 -0
- package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
- package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/ui-field.cjs.entry.js +1 -1
- package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
- package/dist/cjs/ui-grid.cjs.entry.js +34 -0
- package/dist/cjs/ui-input.cjs.entry.js +10 -2
- package/dist/cjs/ui-label.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
- package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
- package/dist/cjs/ui-popover.cjs.entry.js +2 -2
- package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
- package/dist/cjs/ui-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ui-rating.cjs.entry.js +45 -0
- package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
- package/dist/cjs/ui-section.cjs.entry.js +1 -1
- package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
- package/dist/cjs/ui-select.cjs.entry.js +1 -1
- package/dist/cjs/ui-separator.cjs.entry.js +1 -1
- package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ui-slider.cjs.entry.js +1 -1
- package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ui-stack.cjs.entry.js +53 -0
- package/dist/cjs/ui-stat.cjs.entry.js +28 -0
- package/dist/cjs/ui-switch.cjs.entry.js +1 -1
- package/dist/cjs/ui-table.cjs.entry.js +25 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ui-toast.cjs.entry.js +1 -1
- package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
- package/dist/cjs/ui-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/uikit.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
- package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
- package/dist/collection/components/ui-alert/ui-alert.css +95 -0
- package/dist/collection/components/ui-alert/ui-alert.js +134 -0
- package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
- package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
- package/dist/collection/components/ui-badge/ui-badge.css +26 -0
- package/dist/collection/components/ui-badge/ui-badge.js +63 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
- package/dist/collection/components/ui-button/ui-button.css +13 -1
- package/dist/collection/components/ui-button/ui-button.js +24 -2
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
- package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
- package/dist/collection/components/ui-combobox/ui-combobox.css +93 -0
- package/dist/collection/components/ui-combobox/ui-combobox.js +248 -0
- package/dist/collection/components/ui-container/ui-container.css +38 -0
- package/dist/collection/components/ui-container/ui-container.js +79 -0
- package/dist/collection/components/ui-date-picker/ui-date-picker.css +176 -0
- package/dist/collection/components/ui-date-picker/ui-date-picker.js +243 -0
- package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
- package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
- package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
- package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
- package/dist/collection/components/ui-field/ui-field.js +1 -1
- package/dist/collection/components/ui-file-upload/ui-file-upload.css +79 -0
- package/dist/collection/components/ui-file-upload/ui-file-upload.js +151 -0
- package/dist/collection/components/ui-grid/ui-grid.css +8 -0
- package/dist/collection/components/ui-grid/ui-grid.js +106 -0
- package/dist/collection/components/ui-input/ui-input.css +65 -14
- package/dist/collection/components/ui-input/ui-input.js +29 -1
- package/dist/collection/components/ui-label/ui-label.js +1 -1
- package/dist/collection/components/ui-navbar/ui-navbar.css +36 -0
- package/dist/collection/components/ui-navbar/ui-navbar.js +18 -0
- package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
- package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
- package/dist/collection/components/ui-popover/ui-popover.js +1 -1
- package/dist/collection/components/ui-progress/ui-progress.js +1 -1
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.css +46 -0
- package/dist/collection/components/ui-progress-circular/ui-progress-circular.js +171 -0
- package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
- package/dist/collection/components/ui-rating/ui-rating.css +52 -0
- package/dist/collection/components/ui-rating/ui-rating.js +134 -0
- package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
- package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
- package/dist/collection/components/ui-section/ui-section.js +1 -1
- package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
- package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
- package/dist/collection/components/ui-select/ui-select.js +1 -1
- package/dist/collection/components/ui-separator/ui-separator.js +1 -1
- package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
- package/dist/collection/components/ui-slider/ui-slider.js +1 -1
- package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
- package/dist/collection/components/ui-stack/ui-stack.css +8 -0
- package/dist/collection/components/ui-stack/ui-stack.js +184 -0
- package/dist/collection/components/ui-stat/ui-stat.css +69 -0
- package/dist/collection/components/ui-stat/ui-stat.js +118 -0
- package/dist/collection/components/ui-switch/ui-switch.js +1 -1
- package/dist/collection/components/ui-table/ui-table.css +46 -0
- package/dist/collection/components/ui-table/ui-table.js +119 -0
- package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
- package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
- package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
- package/dist/collection/components/ui-toast/ui-toast.js +1 -1
- package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
- package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/components/{p-fApcMAzN.js → p-DDJE__UC.js} +1 -1
- package/dist/{uikit/p-CyBRmmbs.js → components/p-DDtwbwIl.js} +1 -1
- package/dist/components/{p-Bz9HyboB.js → p-DUT2Q8Df.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-alert.d.ts +11 -0
- package/dist/components/ui-alert.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-checkbox.js +1 -1
- package/dist/components/ui-combobox.d.ts +11 -0
- package/dist/components/ui-combobox.js +1 -0
- package/dist/components/ui-container.d.ts +11 -0
- package/dist/components/ui-container.js +1 -0
- package/dist/components/ui-date-picker.d.ts +11 -0
- package/dist/components/ui-date-picker.js +1 -0
- package/dist/components/ui-dialog.js +1 -1
- package/dist/components/ui-drawer.js +1 -1
- package/dist/components/ui-dropdown-item.js +1 -1
- package/dist/components/ui-dropdown-menu.js +1 -1
- package/dist/components/ui-field.js +1 -1
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-grid.d.ts +11 -0
- package/dist/components/ui-grid.js +1 -0
- package/dist/components/ui-input.js +1 -1
- package/dist/components/ui-label.js +1 -1
- package/dist/components/ui-loading-overlay.js +1 -1
- package/dist/components/ui-navbar.d.ts +11 -0
- package/dist/components/ui-navbar.js +1 -0
- package/dist/components/ui-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress-circular.d.ts +11 -0
- package/dist/components/ui-progress-circular.js +1 -0
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-radio-group.js +1 -1
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-reveal.js +1 -1
- package/dist/components/ui-scroll-progress.js +1 -1
- package/dist/components/ui-section.js +1 -1
- package/dist/components/ui-segmented.d.ts +11 -0
- package/dist/components/ui-segmented.js +1 -0
- package/dist/components/ui-select.js +1 -1
- package/dist/components/ui-separator.js +1 -1
- package/dist/components/ui-skeleton.js +1 -1
- package/dist/components/ui-slider.js +1 -1
- package/dist/components/ui-spinner.js +1 -1
- package/dist/components/ui-stack.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-stat.d.ts +11 -0
- package/dist/components/ui-stat.js +1 -0
- package/dist/components/ui-switch.js +1 -1
- package/dist/components/ui-table.d.ts +11 -0
- package/dist/components/ui-table.js +1 -0
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-textarea.js +1 -1
- package/dist/components/ui-theme-toggle.js +1 -1
- package/dist/components/ui-toast.js +1 -1
- package/dist/components/ui-toaster.js +1 -1
- package/dist/components/ui-tooltip.js +1 -1
- package/dist/esm/{floating-ui.dom-CyBRmmbs.js → floating-ui.dom-DDtwbwIl.js} +93 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ui-accordion-item.entry.js +1 -1
- package/dist/esm/ui-accordion.entry.js +1 -1
- package/dist/esm/ui-alert.entry.js +38 -0
- package/dist/esm/ui-avatar-group.entry.js +15 -0
- package/dist/esm/ui-avatar.entry.js +2 -2
- package/dist/esm/ui-badge.entry.js +8 -3
- package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
- package/dist/esm/ui-breadcrumb.entry.js +15 -0
- package/dist/esm/ui-button.entry.js +5 -3
- package/dist/esm/ui-card.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-combobox.entry.js +151 -0
- package/dist/esm/ui-container.entry.js +24 -0
- package/dist/esm/ui-date-picker.entry.js +169 -0
- package/dist/esm/ui-dialog.entry.js +1 -1
- package/dist/esm/ui-drawer.entry.js +1 -1
- package/dist/esm/ui-dropdown-item.entry.js +1 -1
- package/dist/esm/ui-dropdown-menu.entry.js +2 -2
- package/dist/esm/ui-field.entry.js +1 -1
- package/dist/esm/ui-file-upload.entry.js +55 -0
- package/dist/esm/ui-grid.entry.js +32 -0
- package/dist/esm/ui-input.entry.js +10 -2
- package/dist/esm/ui-label.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +15 -0
- package/dist/esm/ui-pagination.entry.js +61 -0
- package/dist/esm/ui-popover.entry.js +2 -2
- package/dist/esm/ui-progress-circular.entry.js +42 -0
- package/dist/esm/ui-progress.entry.js +1 -1
- package/dist/esm/ui-radio-group.entry.js +1 -1
- package/dist/esm/ui-rating.entry.js +43 -0
- package/dist/esm/ui-reveal.entry.js +1 -1
- package/dist/esm/ui-scroll-progress.entry.js +1 -1
- package/dist/esm/ui-section.entry.js +1 -1
- package/dist/esm/ui-segmented.entry.js +29 -0
- package/dist/esm/ui-select.entry.js +1 -1
- package/dist/esm/ui-separator.entry.js +1 -1
- package/dist/esm/ui-skeleton.entry.js +1 -1
- package/dist/esm/ui-slider.entry.js +1 -1
- package/dist/esm/ui-spinner.entry.js +1 -1
- package/dist/esm/ui-stack.entry.js +51 -0
- package/dist/esm/ui-stat.entry.js +26 -0
- package/dist/esm/ui-switch.entry.js +1 -1
- package/dist/esm/ui-table.entry.js +23 -0
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-textarea.entry.js +1 -1
- package/dist/esm/ui-theme-toggle.entry.js +1 -1
- package/dist/esm/ui-toast.entry.js +1 -1
- package/dist/esm/ui-toaster.entry.js +1 -1
- package/dist/esm/ui-tooltip.entry.js +2 -2
- package/dist/esm/uikit.js +1 -1
- package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
- package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
- package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
- package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
- package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
- package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
- package/dist/types/components/ui-button/ui-button.d.ts +2 -0
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
- package/dist/types/components/ui-container/ui-container.d.ts +8 -0
- package/dist/types/components/ui-date-picker/ui-date-picker.d.ts +42 -0
- package/dist/types/components/ui-file-upload/ui-file-upload.d.ts +24 -0
- package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
- package/dist/types/components/ui-input/ui-input.d.ts +3 -0
- package/dist/types/components/ui-navbar/ui-navbar.d.ts +3 -0
- package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
- package/dist/types/components/ui-progress-circular/ui-progress-circular.d.ts +17 -0
- package/dist/types/components/ui-rating/ui-rating.d.ts +17 -0
- package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
- package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
- package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
- package/dist/types/components/ui-table/ui-table.d.ts +16 -0
- package/dist/types/components.d.ts +961 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uikit/{p-8a238373.entry.js → p-008118af.entry.js} +1 -1
- package/dist/uikit/p-0715db16.entry.js +1 -0
- package/dist/uikit/p-10afa395.entry.js +1 -0
- package/dist/uikit/p-1449f229.entry.js +1 -0
- package/dist/uikit/p-1514ae37.entry.js +1 -0
- package/dist/uikit/{p-83159bfc.entry.js → p-1685191b.entry.js} +1 -1
- package/dist/uikit/p-1ef7948f.entry.js +1 -0
- package/dist/uikit/{p-e54139a1.entry.js → p-283e7623.entry.js} +1 -1
- package/dist/uikit/p-2d92ce04.entry.js +1 -0
- package/dist/uikit/{p-a0ccdb22.entry.js → p-3995852d.entry.js} +1 -1
- package/dist/uikit/p-3b1f92da.entry.js +1 -0
- package/dist/uikit/p-3fdfad2e.entry.js +1 -0
- package/dist/uikit/p-4044ebde.entry.js +1 -0
- package/dist/uikit/{p-9f0d4ae1.entry.js → p-413cfbc6.entry.js} +1 -1
- package/dist/uikit/p-45e80e73.entry.js +1 -0
- package/dist/uikit/p-4ba0e4bc.entry.js +1 -0
- package/dist/uikit/p-5951a496.entry.js +1 -0
- package/dist/uikit/p-5e0bc34a.entry.js +1 -0
- package/dist/uikit/{p-d8e7ae10.entry.js → p-60910c03.entry.js} +1 -1
- package/dist/uikit/{p-58ed99a2.entry.js → p-62881327.entry.js} +1 -1
- package/dist/uikit/p-6c51a216.entry.js +1 -0
- package/dist/uikit/p-6d363a02.entry.js +1 -0
- package/dist/uikit/{p-777c6902.entry.js → p-8535f5c9.entry.js} +1 -1
- package/dist/uikit/p-88238a16.entry.js +1 -0
- package/dist/uikit/{p-9aa557d1.entry.js → p-894fc85f.entry.js} +1 -1
- package/dist/uikit/p-8b882367.entry.js +1 -0
- package/dist/uikit/p-9310b73b.entry.js +1 -0
- package/dist/uikit/{p-4a1abc1c.entry.js → p-99b7e461.entry.js} +1 -1
- package/dist/uikit/p-9d8d420e.entry.js +1 -0
- package/dist/uikit/{p-97de6ea6.entry.js → p-9dbe7e12.entry.js} +1 -1
- package/dist/uikit/{p-29fe5b7f.entry.js → p-9f09fcec.entry.js} +1 -1
- package/dist/{components/p-CyBRmmbs.js → uikit/p-DDtwbwIl.js} +1 -1
- package/dist/uikit/{p-d6c9bfbc.entry.js → p-a3d819cd.entry.js} +1 -1
- package/dist/uikit/{p-777d8c7a.entry.js → p-b0f2b1c8.entry.js} +1 -1
- package/dist/uikit/{p-e0652ddf.entry.js → p-b7e30398.entry.js} +1 -1
- package/dist/uikit/p-bac2c523.entry.js +1 -0
- package/dist/uikit/p-bbc718ef.entry.js +1 -0
- package/dist/uikit/{p-b0aba484.entry.js → p-bdd30484.entry.js} +1 -1
- package/dist/uikit/{p-32df7fd0.entry.js → p-c1a9db7c.entry.js} +1 -1
- package/dist/uikit/p-c2138fb9.entry.js +1 -0
- package/dist/uikit/p-c94492ff.entry.js +1 -0
- package/dist/uikit/{p-38cbea54.entry.js → p-ccca2aeb.entry.js} +1 -1
- package/dist/uikit/p-d7ab158f.entry.js +1 -0
- package/dist/uikit/p-da807078.entry.js +1 -0
- package/dist/uikit/p-e2065caa.entry.js +1 -0
- package/dist/uikit/{p-9b43d670.entry.js → p-f2983e94.entry.js} +1 -1
- package/dist/uikit/p-f4344cce.entry.js +1 -0
- package/dist/uikit/{p-ed1111eb.entry.js → p-fb89d9a4.entry.js} +1 -1
- package/dist/uikit/p-fbe7806c.entry.js +1 -0
- package/dist/uikit/p-ffcd1faf.entry.js +1 -0
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +8 -3
- package/dist/uikit/p-0096eefe.entry.js +0 -1
- package/dist/uikit/p-11350db1.entry.js +0 -1
- package/dist/uikit/p-128ae3e4.entry.js +0 -1
- package/dist/uikit/p-24edfe3e.entry.js +0 -1
- package/dist/uikit/p-280337b0.entry.js +0 -1
- package/dist/uikit/p-3c866608.entry.js +0 -1
- package/dist/uikit/p-5555523c.entry.js +0 -1
- package/dist/uikit/p-6fa4be86.entry.js +0 -1
- package/dist/uikit/p-7b2a9e68.entry.js +0 -1
- package/dist/uikit/p-9c57cf57.entry.js +0 -1
- package/dist/uikit/p-cf56c9ba.entry.js +0 -1
- package/dist/uikit/p-d13860dc.entry.js +0 -1
|
@@ -31,7 +31,7 @@ export class UiRadioGroup {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'f7265dce62bf0d590da4b9d8f8756f11991680fb' }, h("div", { key: 'ba70adcb04fae5ba2f78089ac95f8dfed4014efd', class: "group", role: "radiogroup" }, this.options.map((option, index) => {
|
|
35
35
|
const selected = option.value === this.value;
|
|
36
36
|
return (h("button", { class: "radio", type: "button", role: "radio", "aria-checked": selected ? "true" : "false", tabindex: selected || (!this.value && index === 0) ? "0" : "-1", disabled: this.disabled, onClick: () => this.select(option.value), onKeyDown: (event) => this.onKeyDown(event, index) }, h("span", { class: "indicator" }, h("span", { class: "dot" })), h("span", { class: "label" }, option.label)));
|
|
37
37
|
}))));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.rating {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.125rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.star {
|
|
12
|
+
width: 1.5rem;
|
|
13
|
+
height: 1.5rem;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: none;
|
|
16
|
+
background: none;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
color: var(--ui-border-strong);
|
|
19
|
+
transition: color var(--ui-duration) var(--ui-ease),
|
|
20
|
+
transform var(--ui-duration) var(--ui-ease);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.star svg {
|
|
24
|
+
display: block;
|
|
25
|
+
fill: none;
|
|
26
|
+
stroke: currentColor;
|
|
27
|
+
stroke-width: 1.5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.star.filled {
|
|
31
|
+
color: var(--ui-warning);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.star.filled svg {
|
|
35
|
+
fill: currentColor;
|
|
36
|
+
stroke: currentColor;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.star:not(.readonly):hover {
|
|
40
|
+
transform: scale(1.15);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.star:focus-visible {
|
|
44
|
+
outline: none;
|
|
45
|
+
border-radius: var(--ui-radius);
|
|
46
|
+
box-shadow: 0 0 0 2px var(--ui-ring);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.star.readonly {
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
cursor: default;
|
|
52
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
export class UiRating {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Valor selecionado. */
|
|
5
|
+
this.value = 0;
|
|
6
|
+
/** Quantidade de estrelas. */
|
|
7
|
+
this.max = 5;
|
|
8
|
+
/** Apenas leitura, sem interação. */
|
|
9
|
+
this.readonly = false;
|
|
10
|
+
/** Estrela atualmente sob o cursor (-1 quando sem hover). */
|
|
11
|
+
this.hoverValue = -1;
|
|
12
|
+
this.onLeave = () => {
|
|
13
|
+
this.hoverValue = -1;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
select(index) {
|
|
17
|
+
if (this.readonly)
|
|
18
|
+
return;
|
|
19
|
+
this.value = index;
|
|
20
|
+
this.uiChange.emit(this.value);
|
|
21
|
+
}
|
|
22
|
+
onEnter(index) {
|
|
23
|
+
if (this.readonly)
|
|
24
|
+
return;
|
|
25
|
+
this.hoverValue = index;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const active = this.hoverValue > 0 ? this.hoverValue : this.value;
|
|
29
|
+
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
30
|
+
return (h(Host, { key: 'b334c2aea5f4b15907ef5d386f344403b97f0324' }, h("div", { key: '635e2ec90f98eb3f90c4f365d32fc82b5763cf42', class: "rating", role: "radiogroup", "aria-label": "Avalia\u00E7\u00E3o", onMouseLeave: this.onLeave }, stars.map((index) => {
|
|
31
|
+
const filled = index <= active;
|
|
32
|
+
return (h("button", { class: { star: true, filled, readonly: this.readonly }, type: "button", role: "radio", "aria-checked": index === this.value ? "true" : "false", "aria-label": `${index} estrelas`, onClick: () => this.select(index), onMouseEnter: () => this.onEnter(index) }, h("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%" }, h("path", { d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" }))));
|
|
33
|
+
}))));
|
|
34
|
+
}
|
|
35
|
+
static get is() { return "ui-rating"; }
|
|
36
|
+
static get encapsulation() { return "shadow"; }
|
|
37
|
+
static get originalStyleUrls() {
|
|
38
|
+
return {
|
|
39
|
+
"$": ["ui-rating.css"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
static get styleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["ui-rating.css"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get properties() {
|
|
48
|
+
return {
|
|
49
|
+
"value": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"mutable": true,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "number",
|
|
54
|
+
"resolved": "number",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": false,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "Valor selecionado."
|
|
62
|
+
},
|
|
63
|
+
"getter": false,
|
|
64
|
+
"setter": false,
|
|
65
|
+
"reflect": false,
|
|
66
|
+
"attribute": "value",
|
|
67
|
+
"defaultValue": "0"
|
|
68
|
+
},
|
|
69
|
+
"max": {
|
|
70
|
+
"type": "number",
|
|
71
|
+
"mutable": false,
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "number",
|
|
74
|
+
"resolved": "number",
|
|
75
|
+
"references": {}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": false,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "Quantidade de estrelas."
|
|
82
|
+
},
|
|
83
|
+
"getter": false,
|
|
84
|
+
"setter": false,
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"attribute": "max",
|
|
87
|
+
"defaultValue": "5"
|
|
88
|
+
},
|
|
89
|
+
"readonly": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"mutable": false,
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "boolean",
|
|
94
|
+
"resolved": "boolean",
|
|
95
|
+
"references": {}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": "Apenas leitura, sem intera\u00E7\u00E3o."
|
|
102
|
+
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
105
|
+
"reflect": false,
|
|
106
|
+
"attribute": "readonly",
|
|
107
|
+
"defaultValue": "false"
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get states() {
|
|
112
|
+
return {
|
|
113
|
+
"hoverValue": {}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get events() {
|
|
117
|
+
return [{
|
|
118
|
+
"method": "uiChange",
|
|
119
|
+
"name": "uiChange",
|
|
120
|
+
"bubbles": true,
|
|
121
|
+
"cancelable": true,
|
|
122
|
+
"composed": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": "Emitido quando o valor muda."
|
|
126
|
+
},
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "number",
|
|
129
|
+
"resolved": "number",
|
|
130
|
+
"references": {}
|
|
131
|
+
}
|
|
132
|
+
}];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -26,7 +26,7 @@ export class UiReveal {
|
|
|
26
26
|
this.observer?.disconnect();
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '5bb285428644e0c3e130178e5c34811ff5c52d5a' }, h("div", { key: '1884cbc6f94fdee392ed94ab8fbc4a449747138a', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, h("slot", { key: '270ee6624c2ba58edc786d80fb3d777ff3cebb41' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "ui-reveal"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class UiScrollProgress {
|
|
|
23
23
|
window.removeEventListener("scroll", this.onScroll);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: 'fee75a94ba6949fffe43501b672492795632f687' }, h("div", { key: 'fc881ac42582dc50df17861b918d96331216b86f', class: "bar", role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": Math.round(this.progress * 100), style: { transform: `scaleX(${this.progress})` } })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "ui-scroll-progress"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class UiSection {
|
|
|
9
9
|
this.description = "";
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '541fff68d5138d9c8767a22f4fc031d77d532010' }, h("section", { key: 'a05b3596b2dae7e78216b087af28f0be57d79468' }, this.eyebrow && h("p", { key: 'd429995b90a7877792fb4c2def70a2dd9fd1865d', class: "eyebrow" }, this.eyebrow), this.heading && h("h2", { key: '41849c37d94c9d91cfedaa0bceec0a453089326d', class: "heading" }, this.heading), this.description && h("p", { key: '5b244c629c70ed213426d141bec5c67da670d566', class: "description" }, this.description), h("slot", { key: '7ad5eafe43915eb69f31532417f1ea28f232b5c8' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "ui-section"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.track {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.125rem;
|
|
9
|
+
padding: 0.25rem;
|
|
10
|
+
border: 1px solid var(--ui-border);
|
|
11
|
+
border-radius: var(--ui-radius-full);
|
|
12
|
+
background: var(--ui-chip);
|
|
13
|
+
font-family: var(--ui-font-sans);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.segment {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
height: 2rem;
|
|
21
|
+
padding: 0 0.875rem;
|
|
22
|
+
border: none;
|
|
23
|
+
border-radius: var(--ui-radius-full);
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: var(--ui-text-muted);
|
|
26
|
+
font-family: var(--ui-font-sans);
|
|
27
|
+
font-size: 0.8125rem;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
outline: none;
|
|
31
|
+
transition: all var(--ui-duration) var(--ui-ease);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.segment:hover {
|
|
35
|
+
color: var(--ui-foreground);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.segment:focus-visible {
|
|
39
|
+
box-shadow: 0 0 0 2px var(--ui-ring);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.segment.active {
|
|
43
|
+
background: var(--ui-panel-strong);
|
|
44
|
+
color: var(--ui-foreground);
|
|
45
|
+
box-shadow: var(--ui-shadow-sm);
|
|
46
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class UiSegmented {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Lista de segmentos. */
|
|
5
|
+
this.items = [];
|
|
6
|
+
/** Valor do segmento ativo. */
|
|
7
|
+
this.value = "";
|
|
8
|
+
this.select = (value) => {
|
|
9
|
+
if (value === this.value)
|
|
10
|
+
return;
|
|
11
|
+
this.value = value;
|
|
12
|
+
this.uiChange.emit(value);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { key: 'ff4e74a388b0c7db02c4065e32c93b66d1338fb8' }, h("div", { key: '163708540ba5221f2b7a90dc7778c2d83072b6e4', class: "track", role: "radiogroup" }, this.items.map((item) => {
|
|
17
|
+
const active = item.value === this.value;
|
|
18
|
+
return (h("button", { key: item.value, class: { segment: true, active }, type: "button", role: "radio", "aria-checked": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
|
|
19
|
+
}))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "ui-segmented"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["ui-segmented.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get styleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["ui-segmented.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "unknown",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "UiSegmentedItem[]",
|
|
40
|
+
"resolved": "UiSegmentedItem[]",
|
|
41
|
+
"references": {
|
|
42
|
+
"UiSegmentedItem": {
|
|
43
|
+
"location": "local",
|
|
44
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-segmented/ui-segmented.tsx",
|
|
45
|
+
"id": "src/components/ui-segmented/ui-segmented.tsx::UiSegmentedItem"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": false,
|
|
50
|
+
"optional": false,
|
|
51
|
+
"docs": {
|
|
52
|
+
"tags": [],
|
|
53
|
+
"text": "Lista de segmentos."
|
|
54
|
+
},
|
|
55
|
+
"getter": false,
|
|
56
|
+
"setter": false,
|
|
57
|
+
"defaultValue": "[]"
|
|
58
|
+
},
|
|
59
|
+
"value": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": true,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Valor do segmento ativo."
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": true,
|
|
76
|
+
"attribute": "value",
|
|
77
|
+
"defaultValue": "\"\""
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get events() {
|
|
82
|
+
return [{
|
|
83
|
+
"method": "uiChange",
|
|
84
|
+
"name": "uiChange",
|
|
85
|
+
"bubbles": true,
|
|
86
|
+
"cancelable": true,
|
|
87
|
+
"composed": true,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Emitido quando o segmento ativo muda."
|
|
91
|
+
},
|
|
92
|
+
"complexType": {
|
|
93
|
+
"original": "string",
|
|
94
|
+
"resolved": "string",
|
|
95
|
+
"references": {}
|
|
96
|
+
}
|
|
97
|
+
}];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -13,7 +13,7 @@ export class UiSelect {
|
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const hasValue = this.value !== undefined && this.value !== "";
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'a1abda48256851c19e13b1516c9789ff270fd55f' }, h("div", { key: '9556917c11784833418565b305b814e176b4ce22', class: "wrapper" }, h("select", { key: '6f724cd6c5c83d841839c1a13b8e1f74720edd57', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: '2b70163c4f64850d05f8194b310041bc32d18930', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: '748cda678998b6739fc56aaa7df36964a37a0f12', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: '957613dc5eeb6471f4dfc1cc4e8203c90d291cdb', points: "6 9 12 15 18 9" })))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "ui-select"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiSeparator {
|
|
|
5
5
|
this.orientation = "horizontal";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '64211b51121d5c090a1f7e3feb88e7c076dc5b7b', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-separator"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class UiSkeleton {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'b8c2b1288e037ec55d582d07a6f9d83ad63789b4' }, h("span", { key: '3a939a4d6ab7ce5791bd3ffb7210743ad68e0db8', class: "skeleton" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "ui-skeleton"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class UiSlider {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'eeb569c6927ebcda5c1702c8bdbade3e15ede9c2' }, h("input", { key: '1fd45574a52ed9d857941c870650995f092283f8', class: "slider", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.onInput, onChange: this.onChange })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "ui-slider"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class UiSpinner {
|
|
|
5
5
|
this.size = "md";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '3ce50c4de9703a057c0971fbaa71f6535a30c196', role: "status" }, h("span", { key: '83aba34de038600be6535662d7243489d4db79f1', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'ff7523e8ab8e073dea03314b72c93aaf566fa32e', class: "sr-only" }, "Carregando")));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-spinner"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
const GAP = {
|
|
3
|
+
xs: "0.25rem",
|
|
4
|
+
sm: "0.5rem",
|
|
5
|
+
md: "1rem",
|
|
6
|
+
lg: "1.5rem",
|
|
7
|
+
xl: "2rem",
|
|
8
|
+
};
|
|
9
|
+
const ALIGN = {
|
|
10
|
+
start: "flex-start",
|
|
11
|
+
center: "center",
|
|
12
|
+
end: "flex-end",
|
|
13
|
+
stretch: "stretch",
|
|
14
|
+
};
|
|
15
|
+
const JUSTIFY = {
|
|
16
|
+
start: "flex-start",
|
|
17
|
+
center: "center",
|
|
18
|
+
end: "flex-end",
|
|
19
|
+
between: "space-between",
|
|
20
|
+
};
|
|
21
|
+
export class UiStack {
|
|
22
|
+
constructor() {
|
|
23
|
+
/** Direção do empilhamento. */
|
|
24
|
+
this.direction = "vertical";
|
|
25
|
+
/** Espaçamento entre itens. */
|
|
26
|
+
this.gap = "md";
|
|
27
|
+
/** Alinhamento no eixo cruzado. */
|
|
28
|
+
this.align = "stretch";
|
|
29
|
+
/** Distribuição no eixo principal. */
|
|
30
|
+
this.justify = "start";
|
|
31
|
+
/** Permite quebra de linha dos itens. */
|
|
32
|
+
this.wrap = false;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const style = {
|
|
36
|
+
flexDirection: this.direction === "horizontal" ? "row" : "column",
|
|
37
|
+
gap: GAP[this.gap],
|
|
38
|
+
alignItems: ALIGN[this.align],
|
|
39
|
+
justifyContent: JUSTIFY[this.justify],
|
|
40
|
+
flexWrap: this.wrap ? "wrap" : "nowrap",
|
|
41
|
+
};
|
|
42
|
+
return (h(Host, { key: 'f10c42228c323efa8c5ded4e8ca552e38d1ef923' }, h("div", { key: 'c296191b05e5ad4e9fdec382808b24b6e798867d', class: "stack", style: style }, h("slot", { key: '8cc418111a0833cf404e0578e81c23f9aaa69fda' }))));
|
|
43
|
+
}
|
|
44
|
+
static get is() { return "ui-stack"; }
|
|
45
|
+
static get encapsulation() { return "shadow"; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["ui-stack.css"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["ui-stack.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"direction": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "UiStackDirection",
|
|
63
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
64
|
+
"references": {
|
|
65
|
+
"UiStackDirection": {
|
|
66
|
+
"location": "local",
|
|
67
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
68
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackDirection"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": false,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Dire\u00E7\u00E3o do empilhamento."
|
|
77
|
+
},
|
|
78
|
+
"getter": false,
|
|
79
|
+
"setter": false,
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"attribute": "direction",
|
|
82
|
+
"defaultValue": "\"vertical\""
|
|
83
|
+
},
|
|
84
|
+
"gap": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "UiStackGap",
|
|
89
|
+
"resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
|
|
90
|
+
"references": {
|
|
91
|
+
"UiStackGap": {
|
|
92
|
+
"location": "local",
|
|
93
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
94
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackGap"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": "Espa\u00E7amento entre itens."
|
|
103
|
+
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"attribute": "gap",
|
|
108
|
+
"defaultValue": "\"md\""
|
|
109
|
+
},
|
|
110
|
+
"align": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "UiStackAlign",
|
|
115
|
+
"resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
|
|
116
|
+
"references": {
|
|
117
|
+
"UiStackAlign": {
|
|
118
|
+
"location": "local",
|
|
119
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
120
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackAlign"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": "Alinhamento no eixo cruzado."
|
|
129
|
+
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"attribute": "align",
|
|
134
|
+
"defaultValue": "\"stretch\""
|
|
135
|
+
},
|
|
136
|
+
"justify": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "UiStackJustify",
|
|
141
|
+
"resolved": "\"between\" | \"center\" | \"end\" | \"start\"",
|
|
142
|
+
"references": {
|
|
143
|
+
"UiStackJustify": {
|
|
144
|
+
"location": "local",
|
|
145
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
|
|
146
|
+
"id": "src/components/ui-stack/ui-stack.tsx::UiStackJustify"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Distribui\u00E7\u00E3o no eixo principal."
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"attribute": "justify",
|
|
160
|
+
"defaultValue": "\"start\""
|
|
161
|
+
},
|
|
162
|
+
"wrap": {
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "boolean",
|
|
167
|
+
"resolved": "boolean",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Permite quebra de linha dos itens."
|
|
175
|
+
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"attribute": "wrap",
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
}
|