@andespindola/ui-core 0.2.0 → 0.4.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/{index-Cb1tfi_9.js → index-DV8CICae.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/ui-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion.cjs.entry.js +2 -2
- package/dist/cjs/ui-alert.cjs.entry.js +1 -1
- package/dist/cjs/ui-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ui-badge.cjs.entry.js +1 -1
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ui-button.cjs.entry.js +2 -2
- package/dist/cjs/ui-card.cjs.entry.js +2 -2
- package/dist/cjs/ui-carousel.cjs.entry.js +104 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-combobox.cjs.entry.js +153 -0
- package/dist/cjs/ui-command.cjs.entry.js +137 -0
- package/dist/cjs/ui-container.cjs.entry.js +2 -2
- package/dist/cjs/ui-date-picker.cjs.entry.js +171 -0
- package/dist/cjs/ui-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ui-drawer.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown-menu.cjs.entry.js +3 -3
- package/dist/cjs/ui-field.cjs.entry.js +2 -2
- package/dist/cjs/ui-file-upload.cjs.entry.js +57 -0
- package/dist/cjs/ui-grid.cjs.entry.js +2 -2
- package/dist/cjs/ui-input.cjs.entry.js +2 -2
- package/dist/cjs/ui-label.cjs.entry.js +2 -2
- package/dist/cjs/ui-loading-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ui-navbar.cjs.entry.js +17 -0
- package/dist/cjs/ui-pagination.cjs.entry.js +3 -3
- package/dist/cjs/ui-popover.cjs.entry.js +3 -3
- package/dist/cjs/ui-progress-circular.cjs.entry.js +44 -0
- package/dist/cjs/ui-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/ui-rating.cjs.entry.js +45 -0
- package/dist/cjs/ui-reveal.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-progress.cjs.entry.js +2 -2
- package/dist/cjs/ui-section.cjs.entry.js +2 -2
- package/dist/cjs/ui-segmented.cjs.entry.js +2 -2
- package/dist/cjs/ui-select.cjs.entry.js +2 -2
- package/dist/cjs/ui-separator.cjs.entry.js +2 -2
- package/dist/cjs/ui-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ui-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ui-stack.cjs.entry.js +2 -2
- package/dist/cjs/ui-stat.cjs.entry.js +2 -2
- package/dist/cjs/ui-switch.cjs.entry.js +2 -2
- package/dist/cjs/ui-table.cjs.entry.js +25 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ui-theme-toggle.cjs.entry.js +2 -2
- package/dist/cjs/ui-timeline-item.cjs.entry.js +19 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +17 -0
- package/dist/cjs/ui-toast.cjs.entry.js +2 -2
- package/dist/cjs/ui-toaster.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/uikit.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +11 -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-avatar/ui-avatar.js +1 -1
- package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +1 -1
- package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +1 -1
- package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +1 -1
- package/dist/collection/components/ui-button/ui-button.css +2 -0
- package/dist/collection/components/ui-card/ui-card.js +1 -1
- package/dist/collection/components/ui-carousel/ui-carousel.css +103 -0
- package/dist/collection/components/ui-carousel/ui-carousel.js +273 -0
- 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-command/ui-command.css +85 -0
- package/dist/collection/components/ui-command/ui-command.js +290 -0
- package/dist/collection/components/ui-container/ui-container.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/ui-input/ui-input.js +1 -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.js +2 -2
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/ui-stat/ui-stat.js +1 -1
- 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-timeline/ui-timeline.css +8 -0
- package/dist/collection/components/ui-timeline/ui-timeline.js +18 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.css +83 -0
- package/dist/collection/components/ui-timeline-item/ui-timeline-item.js +90 -0
- 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/index.js +1 -1
- package/dist/components/{p-CgsjJD8o.js → p-DAnXvxY_.js} +1 -1
- package/dist/components/{p-CyBRmmbs.js → p-DDtwbwIl.js} +1 -1
- package/dist/components/{p-BwNtNvTb.js → p-yTNEyxh1.js} +1 -1
- package/dist/components/ui-accordion-item.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-avatar-group.js +1 -1
- package/dist/components/ui-avatar.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- 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-command.d.ts +11 -0
- package/dist/components/ui-command.js +1 -0
- package/dist/components/ui-container.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/ui-stat.js +1 -1
- 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-timeline-item.d.ts +11 -0
- package/dist/components/ui-timeline-item.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- 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/{index-DYwlrXg_.js → index-COlwaVJP.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/ui-accordion-item.entry.js +2 -2
- package/dist/esm/ui-accordion.entry.js +2 -2
- package/dist/esm/ui-alert.entry.js +1 -1
- package/dist/esm/ui-avatar-group.entry.js +2 -2
- package/dist/esm/ui-avatar.entry.js +2 -2
- package/dist/esm/ui-badge.entry.js +1 -1
- package/dist/esm/ui-breadcrumb-item.entry.js +2 -2
- package/dist/esm/ui-breadcrumb.entry.js +2 -2
- package/dist/esm/ui-button.entry.js +2 -2
- package/dist/esm/ui-card.entry.js +2 -2
- package/dist/esm/ui-carousel.entry.js +102 -0
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-combobox.entry.js +151 -0
- package/dist/esm/ui-command.entry.js +135 -0
- package/dist/esm/ui-container.entry.js +2 -2
- package/dist/esm/ui-date-picker.entry.js +169 -0
- package/dist/esm/ui-dialog.entry.js +2 -2
- package/dist/esm/ui-drawer.entry.js +2 -2
- package/dist/esm/ui-dropdown-item.entry.js +2 -2
- package/dist/esm/ui-dropdown-menu.entry.js +3 -3
- package/dist/esm/ui-field.entry.js +2 -2
- package/dist/esm/ui-file-upload.entry.js +55 -0
- package/dist/esm/ui-grid.entry.js +2 -2
- package/dist/esm/ui-input.entry.js +2 -2
- package/dist/esm/ui-label.entry.js +2 -2
- package/dist/esm/ui-loading-overlay.entry.js +1 -1
- package/dist/esm/ui-navbar.entry.js +15 -0
- package/dist/esm/ui-pagination.entry.js +3 -3
- package/dist/esm/ui-popover.entry.js +3 -3
- package/dist/esm/ui-progress-circular.entry.js +42 -0
- package/dist/esm/ui-progress.entry.js +2 -2
- package/dist/esm/ui-radio-group.entry.js +2 -2
- package/dist/esm/ui-rating.entry.js +43 -0
- package/dist/esm/ui-reveal.entry.js +2 -2
- package/dist/esm/ui-scroll-progress.entry.js +2 -2
- package/dist/esm/ui-section.entry.js +2 -2
- package/dist/esm/ui-segmented.entry.js +2 -2
- package/dist/esm/ui-select.entry.js +2 -2
- package/dist/esm/ui-separator.entry.js +2 -2
- package/dist/esm/ui-skeleton.entry.js +2 -2
- package/dist/esm/ui-slider.entry.js +2 -2
- package/dist/esm/ui-spinner.entry.js +2 -2
- package/dist/esm/ui-stack.entry.js +2 -2
- package/dist/esm/ui-stat.entry.js +2 -2
- package/dist/esm/ui-switch.entry.js +2 -2
- package/dist/esm/ui-table.entry.js +23 -0
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-textarea.entry.js +2 -2
- package/dist/esm/ui-theme-toggle.entry.js +2 -2
- package/dist/esm/ui-timeline-item.entry.js +17 -0
- package/dist/esm/ui-timeline.entry.js +15 -0
- package/dist/esm/ui-toast.entry.js +2 -2
- package/dist/esm/ui-toaster.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +3 -3
- package/dist/esm/uikit.js +3 -3
- package/dist/types/components/ui-carousel/ui-carousel.d.ts +35 -0
- package/dist/types/components/ui-combobox/ui-combobox.d.ts +38 -0
- package/dist/types/components/ui-command/ui-command.d.ts +42 -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-navbar/ui-navbar.d.ts +3 -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-table/ui-table.d.ts +16 -0
- package/dist/types/components/ui-timeline/ui-timeline.d.ts +3 -0
- package/dist/types/components/ui-timeline-item/ui-timeline-item.d.ts +10 -0
- package/dist/types/components.d.ts +645 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/uikit/{p-635862e6.entry.js → p-02583f33.entry.js} +1 -1
- package/dist/uikit/p-0b8fb2cc.entry.js +1 -0
- package/dist/uikit/{p-595e146f.entry.js → p-12777ebf.entry.js} +1 -1
- package/dist/uikit/p-186d394f.entry.js +1 -0
- package/dist/uikit/{p-fd05c146.entry.js → p-247f7a40.entry.js} +1 -1
- package/dist/uikit/{p-67963692.entry.js → p-24c9885b.entry.js} +1 -1
- package/dist/uikit/p-26c4b4f9.entry.js +1 -0
- package/dist/uikit/p-2716a9e4.entry.js +1 -0
- package/dist/uikit/{p-25637424.entry.js → p-27c609c2.entry.js} +1 -1
- package/dist/uikit/{p-5951a496.entry.js → p-2a4de93f.entry.js} +1 -1
- package/dist/uikit/{p-2601d8b6.entry.js → p-2ce36223.entry.js} +1 -1
- package/dist/uikit/p-30834f9e.entry.js +1 -0
- package/dist/uikit/{p-db07f9c5.entry.js → p-333a3598.entry.js} +1 -1
- package/dist/uikit/{p-86ed6154.entry.js → p-33a19160.entry.js} +1 -1
- package/dist/uikit/{p-a977a0db.entry.js → p-400536f7.entry.js} +1 -1
- package/dist/uikit/{p-81b45a43.entry.js → p-411a753f.entry.js} +1 -1
- package/dist/uikit/p-41355be1.entry.js +1 -0
- package/dist/uikit/p-4281fc69.entry.js +1 -0
- package/dist/uikit/p-4c2fb226.entry.js +1 -0
- package/dist/uikit/{p-45e80e73.entry.js → p-5562b70d.entry.js} +1 -1
- package/dist/uikit/{p-fd832f52.entry.js → p-56b1bf3f.entry.js} +1 -1
- package/dist/uikit/p-57adf02c.entry.js +1 -0
- package/dist/uikit/{p-cd0ec835.entry.js → p-58035d5a.entry.js} +1 -1
- package/dist/uikit/{p-567f7496.entry.js → p-5ff44eca.entry.js} +1 -1
- package/dist/uikit/{p-3996590f.entry.js → p-66037a7c.entry.js} +1 -1
- package/dist/uikit/p-6d58ff8d.entry.js +1 -0
- package/dist/uikit/p-7a04fd11.entry.js +1 -0
- package/dist/uikit/p-7aeed213.entry.js +1 -0
- package/dist/uikit/p-80236139.entry.js +1 -0
- package/dist/uikit/{p-a92a7b19.entry.js → p-81a37bda.entry.js} +1 -1
- package/dist/uikit/{p-2de05aac.entry.js → p-849347da.entry.js} +1 -1
- package/dist/uikit/p-866a0947.entry.js +1 -0
- package/dist/uikit/{p-74b60a60.entry.js → p-86bf22c1.entry.js} +1 -1
- package/dist/uikit/p-98234aed.entry.js +1 -0
- package/dist/uikit/p-COlwaVJP.js +2 -0
- package/dist/uikit/{p-CyBRmmbs.js → p-DDtwbwIl.js} +1 -1
- package/dist/uikit/{p-95cd976e.entry.js → p-a312d278.entry.js} +1 -1
- package/dist/uikit/{p-12db6a6e.entry.js → p-a4b535ad.entry.js} +1 -1
- package/dist/uikit/{p-94ad46a5.entry.js → p-a8f81996.entry.js} +1 -1
- package/dist/uikit/{p-1d016ea4.entry.js → p-aa0ce28c.entry.js} +1 -1
- package/dist/uikit/{p-979f6178.entry.js → p-aa41b084.entry.js} +1 -1
- package/dist/uikit/p-acce5342.entry.js +1 -0
- package/dist/uikit/p-b232849a.entry.js +1 -0
- package/dist/uikit/{p-dca9f6f9.entry.js → p-bd287e67.entry.js} +1 -1
- package/dist/uikit/p-bf66ce1b.entry.js +1 -0
- package/dist/uikit/{p-6c0e9809.entry.js → p-c0b3f5a3.entry.js} +1 -1
- package/dist/uikit/{p-09895cd0.entry.js → p-c29317aa.entry.js} +1 -1
- package/dist/uikit/{p-faa98928.entry.js → p-d73e789a.entry.js} +1 -1
- package/dist/uikit/p-dc00c84b.entry.js +1 -0
- package/dist/uikit/{p-3fc062a6.entry.js → p-de2bb69c.entry.js} +1 -1
- package/dist/uikit/{p-7f2c2924.entry.js → p-e2e35a6b.entry.js} +1 -1
- package/dist/uikit/{p-a01305a5.entry.js → p-e32fa613.entry.js} +1 -1
- package/dist/uikit/p-e61e7ef1.entry.js +1 -0
- package/dist/uikit/p-e891fec3.entry.js +1 -0
- package/dist/uikit/p-ef6ec7f7.entry.js +1 -0
- package/dist/uikit/p-faa31e8c.entry.js +1 -0
- package/dist/uikit/uikit.css +1 -1
- package/dist/uikit/uikit.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uikit/p-0cba0d11.entry.js +0 -1
- package/dist/uikit/p-55a23f91.entry.js +0 -1
- package/dist/uikit/p-7a3d85da.entry.js +0 -1
- package/dist/uikit/p-97d4dbf4.entry.js +0 -1
- package/dist/uikit/p-9a4dc343.entry.js +0 -1
- package/dist/uikit/p-9a9590b9.entry.js +0 -1
- package/dist/uikit/p-DYwlrXg_.js +0 -2
- package/dist/uikit/p-a080f46a.entry.js +0 -1
- package/dist/uikit/p-b2df8437.entry.js +0 -1
- package/dist/uikit/p-c73c1009.entry.js +0 -1
- package/dist/uikit/p-d20452b4.entry.js +0 -1
- package/dist/uikit/p-d7021157.entry.js +0 -1
- package/dist/uikit/p-ddd70374.entry.js +0 -1
|
@@ -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: '8425460115d823dbf165a46145e67721fe26160d' }, h("div", { key: 'efdc85de267af2789a96e3072b819a31886ddcd8', 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: 'e4d72fb7d28b5107aeee2dfbce303d726569caa3' }, h("div", { key: '4da09ffd02e072562da35831063377b7083def33', class: { reveal: true, visible: this.visible }, style: { transitionDelay: `${this.delay}ms` } }, h("slot", { key: '9501798c821935d87e6fdf2e595443e251e89192' }))));
|
|
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: '28ba2f0c5eb50a1fa2a2ef68ad8fb7017447cc5e' }, h("div", { key: '546cd39172466bc069eee65930fbf96706105b5c', 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: 'f9ca72986e90e560d62a8aae824e46ca054bfc60' }, h("section", { key: '2920c329302e4f263ea5f69d94e99f470d13b796' }, this.eyebrow && h("p", { key: '42a40e4eee0f4428669c07ef41f409fbb3050b90', class: "eyebrow" }, this.eyebrow), this.heading && h("h2", { key: 'e48b4a964d0afe76a4057e44393136fb85aece0b', class: "heading" }, this.heading), this.description && h("p", { key: '90aa856c92f63324f5cc31fb4e67378eef4150c2', class: "description" }, this.description), h("slot", { key: '7629ee2f0e291b5b9614819e82aea2bdc1cc1d8c' }))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "ui-section"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class UiSegmented {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'c33baee8f155b53bd94170e442b4e2bcc815e19a' }, h("div", { key: 'daf332aeaff637736164a429c5166a1277c301df', class: "track", role: "radiogroup" }, this.items.map((item) => {
|
|
17
17
|
const active = item.value === this.value;
|
|
18
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
19
|
}))));
|
|
@@ -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: '64c33b02b0515d5c2e3484aef7e3261c1edb5af4' }, h("div", { key: '0bbd78b01e44c403636d54930441a6576f2821e0', class: "wrapper" }, h("select", { key: '2435c3bf0053fc0f3670fd8aaa0506f2945eca39', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: 'cfba5ce9961f1960cf1e54e8efb27aaf82eeb2db', 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: '0af4fe1625061d35fd3e793f59fdbfc46429eb84', 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: '27787d33345ce50eafa3696c1d17f21768819fcf', 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: '8ad0a4bc68cdc9e2213c2236d61a7c882297a15f', 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: '6f8614815e2d8fb536225748b0883a0a1b3a34e7' }, h("span", { key: '41f6f75b31f55f0c468bdb7566983aca0c20f8c2', 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: 'c1175e775a1861d332064d8229f16ff46b2e2330' }, h("input", { key: 'ea65fc85d9f7c034560de24ed0df42340ee2509a', 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: 'fdbe42a3b0cd906ff4c0dd79cc661370aa36cf22', role: "status" }, h("span", { key: 'aab2633191dd34f3b9ba49d4335ec3aaafcfb0a8', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'bd4d9cf78c4b05dcf5e1146a13f9754dce2d5127', class: "sr-only" }, "Carregando")));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "ui-spinner"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,7 +39,7 @@ export class UiStack {
|
|
|
39
39
|
justifyContent: JUSTIFY[this.justify],
|
|
40
40
|
flexWrap: this.wrap ? "wrap" : "nowrap",
|
|
41
41
|
};
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '27299e680537c9b2cc57c2922f28ec01f2ff12f8' }, h("div", { key: '8201e2dadf2462e2f48113a6b4bf7f57b55328b2', class: "stack", style: style }, h("slot", { key: 'b2e1715ca077e101ba2519662b4365b6e2c52db4' }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "ui-stack"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class UiStat {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: 'bb31e4f164bd4e3b2d20b9639b4271358fb4a7b9' }, h("div", { key: 'f025dd01a43bde3377053710e752501dfe4a7960', class: "card" }, h("p", { key: '6c56a97d9bdf6cad4929bea1700cbccb0dafdb15', class: "label" }, this.label), h("div", { key: '9cb668b141f0db11700d58254821771ff0a6cdbf', class: "value-row" }, h("span", { key: '2cd39bc3703da766aa7bc0daafb078d0670376b7', class: "value" }, this.value), this.delta && (h("span", { key: '95ed79c13f055ffe672b3c3c6f7430c70639b096', class: { delta: true, [`trend-${this.trend}`]: true } }, this.renderArrow(), this.delta))), h("div", { key: '13c159ddb3b5aa850c543cba6bc8a507f7986e84', class: "extra" }, h("slot", { key: 'bd58d52d17e408952564f5984216d73ccb7c90a5' })))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "ui-stat"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class UiSwitch {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '9b6a322fd7129b403e8ef9b8dcfa686904af0a3f' }, h("button", { key: '263e42e0bdc147a3fe8b99f6d153ef8a38165b57', class: "switch", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("span", { key: 'd8c2917fa03aa147e86e9ba812bd2bf791bc3d5e', class: "thumb" }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ui-switch"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.wrapper {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
border: 1px solid var(--ui-border);
|
|
8
|
+
background: var(--ui-panel);
|
|
9
|
+
box-shadow: var(--ui-shadow-lg);
|
|
10
|
+
backdrop-filter: blur(22px) saturate(140%);
|
|
11
|
+
border-radius: var(--ui-radius-lg);
|
|
12
|
+
font-family: var(--ui-font-sans);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.table {
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-collapse: collapse;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.table thead th {
|
|
21
|
+
padding: 0.75rem 1rem;
|
|
22
|
+
font-size: 0.7rem;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
text-transform: uppercase;
|
|
25
|
+
letter-spacing: 0.05em;
|
|
26
|
+
color: var(--ui-text-faint);
|
|
27
|
+
background: var(--ui-chip);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.table tbody td {
|
|
31
|
+
padding: 0.75rem 1rem;
|
|
32
|
+
font-size: 0.875rem;
|
|
33
|
+
color: var(--ui-text-soft);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.table tbody tr {
|
|
37
|
+
border-top: 1px solid var(--ui-border);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.table.striped tbody tr:nth-child(even) {
|
|
41
|
+
background: color-mix(in srgb, var(--ui-chip) 50%, transparent);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.table.hoverable tbody tr:hover {
|
|
45
|
+
background: var(--ui-chip);
|
|
46
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class UiTable {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Definição das colunas. */
|
|
5
|
+
this.columns = [];
|
|
6
|
+
/** Linhas de dados. */
|
|
7
|
+
this.rows = [];
|
|
8
|
+
/** Aplica fundo alternado nas linhas pares. */
|
|
9
|
+
this.striped = false;
|
|
10
|
+
/** Destaca a linha sob o cursor. */
|
|
11
|
+
this.hoverable = true;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { key: 'aa3d75a6092f69ee274a7148e35ab54b83d6c356' }, h("div", { key: '4953b1c3e26eeaa1250185c559328e037a634985', class: "wrapper" }, h("table", { key: '2029b63484460261f8f46ae5d1a669019f3103f8', class: { table: true, striped: this.striped, hoverable: this.hoverable } }, h("thead", { key: '8a963402f6e7204c84e54cc07c2458ac4994c75c' }, h("tr", { key: '764743907d21a69235f1c55db12372348c876cee' }, this.columns.map((column) => (h("th", { key: column.key, style: { textAlign: column.align ?? "left" } }, column.label))))), h("tbody", { key: '60e287ad516e4280ce4f0878669325e9be977461' }, this.rows.map((row, rowIndex) => (h("tr", { key: rowIndex }, this.columns.map((column) => (h("td", { key: column.key, style: { textAlign: column.align ?? "left" } }, String(row[column.key] ?? ""))))))))))));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "ui-table"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["ui-table.css"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["ui-table.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"columns": {
|
|
31
|
+
"type": "unknown",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "UiTableColumn[]",
|
|
35
|
+
"resolved": "UiTableColumn[]",
|
|
36
|
+
"references": {
|
|
37
|
+
"UiTableColumn": {
|
|
38
|
+
"location": "local",
|
|
39
|
+
"path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-table/ui-table.tsx",
|
|
40
|
+
"id": "src/components/ui-table/ui-table.tsx::UiTableColumn"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": "Defini\u00E7\u00E3o das colunas."
|
|
49
|
+
},
|
|
50
|
+
"getter": false,
|
|
51
|
+
"setter": false,
|
|
52
|
+
"defaultValue": "[]"
|
|
53
|
+
},
|
|
54
|
+
"rows": {
|
|
55
|
+
"type": "unknown",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "Record<string, unknown>[]",
|
|
59
|
+
"resolved": "Record<string, unknown>[]",
|
|
60
|
+
"references": {
|
|
61
|
+
"Record": {
|
|
62
|
+
"location": "global",
|
|
63
|
+
"id": "global::Record"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "Linhas de dados."
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"defaultValue": "[]"
|
|
76
|
+
},
|
|
77
|
+
"striped": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "boolean",
|
|
82
|
+
"resolved": "boolean",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Aplica fundo alternado nas linhas pares."
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "striped",
|
|
95
|
+
"defaultValue": "false"
|
|
96
|
+
},
|
|
97
|
+
"hoverable": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "boolean",
|
|
102
|
+
"resolved": "boolean",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Destaca a linha sob o cursor."
|
|
110
|
+
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"attribute": "hoverable",
|
|
115
|
+
"defaultValue": "true"
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -13,10 +13,10 @@ export class UiTabs {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '41f5832ef24470811c6c1d64958bc3c2cb56bc2b' }, h("div", { key: 'fed127dfc1cea76ff1bd2a1ce4b6091244c89f4e', class: "tablist", role: "tablist" }, this.items.map((item) => {
|
|
17
17
|
const active = item.value === this.value;
|
|
18
18
|
return (h("button", { key: item.value, class: { tab: true, active }, type: "button", role: "tab", "aria-selected": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
|
|
19
|
-
})), h("div", { key: '
|
|
19
|
+
})), h("div", { key: '533f8c0dafcb55782d13c42d864cb1eb508b4d20', class: "panel", role: "tabpanel" }, h("slot", { key: 'dd75f808647deeb70991a366dd91d9ac65f78268', name: this.value }))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "ui-tabs"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class UiTextarea {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '66f45ad55373e76406aebfac1a7b9358757df9cb' }, h("textarea", { key: '05343ebf1f04bcef8c39c2e26e07973930a52417', class: { textarea: true, invalid: this.invalid }, name: this.name, rows: this.rows, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange }, this.value)));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ui-textarea"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class UiThemeToggle {
|
|
|
50
50
|
return (h("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("circle", { cx: "12", cy: "12", r: "4" }), h("line", { x1: "12", y1: "2", x2: "12", y2: "4" }), h("line", { x1: "12", y1: "20", x2: "12", y2: "22" }), h("line", { x1: "2", y1: "12", x2: "4", y2: "12" }), h("line", { x1: "20", y1: "12", x2: "22", y2: "12" }), h("line", { x1: "4.93", y1: "4.93", x2: "6.34", y2: "6.34" }), h("line", { x1: "17.66", y1: "17.66", x2: "19.07", y2: "19.07" }), h("line", { x1: "4.93", y1: "19.07", x2: "6.34", y2: "17.66" }), h("line", { x1: "17.66", y1: "6.34", x2: "19.07", y2: "4.93" })));
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '941b9c3a71cbbf850d292e95e11311ec4e53dcd4' }, h("button", { key: 'd4db89ef140e4d4f5ec2198d69f3c6645db64853', class: "toggle", type: "button", "aria-label": this.isDark ? "Ativar tema claro" : "Ativar tema escuro", "aria-pressed": this.isDark ? "true" : "false", onClick: this.toggle }, this.renderIcon())));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "ui-theme-toggle"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class UiTimeline {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '1d67e561676e216a05e314ffeb14e88e5cd6be7d' }, h("div", { key: '50bf6f54546237a55b4589cfe3ed52b20cb0f6cb', class: "timeline" }, h("slot", { key: 'e7c94095dcf74efaa81d1b1d0fb124e4595609ee' }))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "ui-timeline"; }
|
|
7
|
+
static get encapsulation() { return "shadow"; }
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["ui-timeline.css"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["ui-timeline.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.item {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 0.75rem;
|
|
9
|
+
padding-bottom: 1.5rem;
|
|
10
|
+
font-family: var(--ui-font-sans);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.marker {
|
|
14
|
+
position: relative;
|
|
15
|
+
flex: 0 0 1.5rem;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dot {
|
|
21
|
+
position: relative;
|
|
22
|
+
z-index: 1;
|
|
23
|
+
width: 0.75rem;
|
|
24
|
+
height: 0.75rem;
|
|
25
|
+
margin-top: 0.125rem;
|
|
26
|
+
border-radius: var(--ui-radius-full);
|
|
27
|
+
background: var(--dot-color, var(--ui-accent));
|
|
28
|
+
box-shadow: 0 0 0 2px var(--ui-background);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.line {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 0.5rem;
|
|
34
|
+
bottom: -1.5rem;
|
|
35
|
+
left: 50%;
|
|
36
|
+
width: 2px;
|
|
37
|
+
transform: translateX(-50%);
|
|
38
|
+
background: var(--ui-border);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host(:last-child) .line {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.content {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
gap: 0.25rem;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.time {
|
|
53
|
+
font-size: 0.7rem;
|
|
54
|
+
text-transform: uppercase;
|
|
55
|
+
letter-spacing: 0.08em;
|
|
56
|
+
color: var(--ui-text-faint);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.heading {
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
color: var(--ui-foreground);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.body {
|
|
65
|
+
font-size: 0.875rem;
|
|
66
|
+
color: var(--ui-text-soft);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.variant-accent {
|
|
70
|
+
--dot-color: var(--ui-accent);
|
|
71
|
+
}
|
|
72
|
+
.variant-success {
|
|
73
|
+
--dot-color: var(--ui-success);
|
|
74
|
+
}
|
|
75
|
+
.variant-warning {
|
|
76
|
+
--dot-color: var(--ui-warning);
|
|
77
|
+
}
|
|
78
|
+
.variant-danger {
|
|
79
|
+
--dot-color: var(--ui-danger);
|
|
80
|
+
}
|
|
81
|
+
.variant-muted {
|
|
82
|
+
--dot-color: var(--ui-text-faint);
|
|
83
|
+
}
|