@dropi/ui 0.1.46 → 0.1.49
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/dropi-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/dropi-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +15 -38
- package/dist/cjs/dropi-alert.cjs.entry.js +1 -1
- package/dist/cjs/dropi-avatars.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-banner-external.cjs.entry.js +1 -1
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/dropi-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-product.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-section.cjs.entry.js +1 -1
- package/dist/cjs/dropi-carousel.cjs.entry.js +1 -1
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/dropi-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/dropi-chips.cjs.entry.js +1 -1
- package/dist/cjs/dropi-city-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/dropi-country-flags.cjs.entry.js +1 -1
- package/dist/cjs/dropi-country-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/dropi-drawer.cjs.entry.js +1 -1
- package/dist/cjs/dropi-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/dropi-empty-state.cjs.entry.js +88 -11
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/dropi-icon.cjs.entry.js +295 -26
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dropi-input_3.cjs.entry.js +3 -3
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-logo.cjs.entry.js +2 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +1 -1
- package/dist/cjs/dropi-modal.cjs.entry.js +1 -1
- package/dist/cjs/dropi-navbar.cjs.entry.js +3 -3
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +3 -3
- package/dist/cjs/dropi-phone-input.cjs.entry.js +3 -3
- package/dist/cjs/dropi-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +1 -1
- package/dist/cjs/dropi-select.cjs.entry.js +2 -2
- package/dist/cjs/dropi-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +1 -1
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
- package/dist/cjs/dropi-table.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +1 -1
- package/dist/cjs/dropi-time-line.cjs.entry.js +1 -1
- package/dist/cjs/dropi-toast.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +2 -2
- package/dist/cjs/index-DKMSaf7l.js +2809 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +24 -65
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +24 -23
- package/dist/collection/components/dropi-icon/dropi-icon.js +27 -54
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +2 -2
- package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +1 -1
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
- package/dist/collection/utils/icon-map.generated.js +271 -0
- package/dist/collection/utils/illustration-map.generated.js +73 -0
- package/dist/collection/utils/lottie-map.generated.js +10 -0
- package/dist/components/dropi-accordion-item.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-progress-bar.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-1znuv59D.js +1 -0
- package/dist/components/p-B9-h_ikq.js +1 -0
- package/dist/components/p-B9rJd-Rf.js +1 -0
- package/dist/components/p-BYPkJN1-.js +1 -0
- package/dist/components/p-Bxs1HOVS.js +1 -0
- package/dist/components/p-CCZ6rIo5.js +1 -0
- package/dist/components/p-CQqWa7Kz.js +1 -0
- package/dist/components/p-CY6yN7wx.js +1 -0
- package/dist/components/p-D7GP-lmt.js +1 -0
- package/dist/components/p-DBUBcpw5.js +1 -0
- package/dist/components/p-DYAsdhfM.js +1 -0
- package/dist/components/p-Dnx3uXgo.js +1 -0
- package/dist/components/p-DqAyyLAT.js +1 -0
- package/dist/components/p-RQjw5hdz.js +1 -0
- package/dist/components/p-l48cENKO.js +1 -0
- package/dist/docs.json +35 -83
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-0086fbc8.entry.js +1 -0
- package/dist/dropi-ui/p-04cd97a1.entry.js +1 -0
- package/dist/dropi-ui/p-0d03e548.entry.js +1 -0
- package/dist/dropi-ui/p-0d877866.entry.js +1 -0
- package/dist/dropi-ui/p-11b83d87.entry.js +1 -0
- package/dist/dropi-ui/p-1c3a5cee.entry.js +1 -0
- package/dist/dropi-ui/p-1e3f0220.entry.js +1 -0
- package/dist/dropi-ui/p-2464f664.entry.js +1 -0
- package/dist/dropi-ui/p-258f147a.entry.js +1 -0
- package/dist/dropi-ui/p-260d2559.entry.js +1 -0
- package/dist/dropi-ui/p-26663648.entry.js +1 -0
- package/dist/dropi-ui/p-29dbfb9a.entry.js +1 -0
- package/dist/dropi-ui/p-2b8e9056.entry.js +1 -0
- package/dist/dropi-ui/p-32bc1d2a.entry.js +1 -0
- package/dist/dropi-ui/p-35ce96a3.entry.js +1 -0
- package/dist/dropi-ui/p-3615e06b.entry.js +1 -0
- package/dist/dropi-ui/p-3721a73a.entry.js +1 -0
- package/dist/dropi-ui/p-37a91ebb.entry.js +1 -0
- package/dist/dropi-ui/p-37d60102.entry.js +1 -0
- package/dist/dropi-ui/p-38bb4b42.entry.js +1 -0
- package/dist/dropi-ui/p-3d6fecfa.entry.js +1 -0
- package/dist/dropi-ui/p-3d7a3ea5.entry.js +1 -0
- package/dist/dropi-ui/p-4337fd7a.entry.js +1 -0
- package/dist/dropi-ui/p-44c9fb4e.entry.js +1 -0
- package/dist/dropi-ui/p-4531453d.entry.js +1 -0
- package/dist/dropi-ui/p-4759c782.entry.js +1 -0
- package/dist/dropi-ui/p-4986f584.entry.js +1 -0
- package/dist/dropi-ui/p-4b5775bd.entry.js +1 -0
- package/dist/dropi-ui/p-4e7ff518.entry.js +1 -0
- package/dist/dropi-ui/p-54ab9e77.entry.js +1 -0
- package/dist/dropi-ui/p-5662edbf.entry.js +1 -0
- package/dist/dropi-ui/p-5a6e3420.entry.js +1 -0
- package/dist/dropi-ui/p-64c37ff6.entry.js +1 -0
- package/dist/dropi-ui/p-67fbe7e4.entry.js +1 -0
- package/dist/dropi-ui/p-68891c64.entry.js +1 -0
- package/dist/dropi-ui/p-6ca312e3.entry.js +1 -0
- package/dist/dropi-ui/p-6e4f08eb.entry.js +1 -0
- package/dist/dropi-ui/p-704c6619.entry.js +1 -0
- package/dist/dropi-ui/p-74fcbc88.entry.js +1 -0
- package/dist/dropi-ui/p-76b33901.entry.js +1 -0
- package/dist/dropi-ui/p-7e4d0691.entry.js +1 -0
- package/dist/dropi-ui/p-7fe30856.entry.js +1 -0
- package/dist/dropi-ui/p-803ab87b.entry.js +1 -0
- package/dist/dropi-ui/p-8f4b21e8.entry.js +1 -0
- package/dist/dropi-ui/p-92185d67.entry.js +1 -0
- package/dist/dropi-ui/p-9733212c.entry.js +1 -0
- package/dist/dropi-ui/p-K5v4Q5tq.js +2 -0
- package/dist/dropi-ui/p-a805fbad.entry.js +1 -0
- package/dist/dropi-ui/p-a9213e90.entry.js +1 -0
- package/dist/dropi-ui/p-a9f8fc5e.entry.js +1 -0
- package/dist/dropi-ui/p-ab06bceb.entry.js +1 -0
- package/dist/dropi-ui/p-b1059e6f.entry.js +1 -0
- package/dist/dropi-ui/p-b2bcb723.entry.js +1 -0
- package/dist/dropi-ui/p-b9ddcabc.entry.js +1 -0
- package/dist/dropi-ui/p-baf66950.entry.js +1 -0
- package/dist/dropi-ui/p-bafb043e.entry.js +1 -0
- package/dist/dropi-ui/p-c567fd6b.entry.js +1 -0
- package/dist/dropi-ui/p-c66941cf.entry.js +1 -0
- package/dist/dropi-ui/p-ca020035.entry.js +1 -0
- package/dist/dropi-ui/p-ca7c025d.entry.js +1 -0
- package/dist/dropi-ui/p-cf1ffef1.entry.js +1 -0
- package/dist/dropi-ui/p-d205db7d.entry.js +1 -0
- package/dist/dropi-ui/p-d45feb08.entry.js +1 -0
- package/dist/dropi-ui/p-d5ab501d.entry.js +1 -0
- package/dist/dropi-ui/p-d9f90650.entry.js +1 -0
- package/dist/dropi-ui/p-deb3a0e3.entry.js +1 -0
- package/dist/dropi-ui/p-e423406c.entry.js +1 -0
- package/dist/dropi-ui/p-ed4bd1cc.entry.js +1 -0
- package/dist/dropi-ui/p-f3d0d25b.entry.js +1 -0
- package/dist/dropi-ui/p-f42337d9.entry.js +1 -0
- package/dist/dropi-ui/p-f6653da2.entry.js +1 -0
- package/dist/dropi-ui/p-f6f026c7.entry.js +1 -0
- package/dist/dropi-ui/p-fdfd0842.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +1 -1
- package/dist/esm/dropi-accordion.entry.js +1 -1
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +15 -38
- package/dist/esm/dropi-alert.entry.js +1 -1
- package/dist/esm/dropi-avatars.entry.js +1 -1
- package/dist/esm/dropi-badge-legacy.entry.js +1 -1
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-banner-external.entry.js +1 -1
- package/dist/esm/dropi-breadcrumb.entry.js +1 -1
- package/dist/esm/dropi-button.entry.js +1 -1
- package/dist/esm/dropi-card-checkbox.entry.js +1 -1
- package/dist/esm/dropi-card-product.entry.js +1 -1
- package/dist/esm/dropi-card-section.entry.js +1 -1
- package/dist/esm/dropi-carousel.entry.js +1 -1
- package/dist/esm/dropi-checkbox-selection-list.entry.js +1 -1
- package/dist/esm/dropi-checkbox.entry.js +1 -1
- package/dist/esm/dropi-chips.entry.js +1 -1
- package/dist/esm/dropi-city-selector.entry.js +1 -1
- package/dist/esm/dropi-color-picker.entry.js +1 -1
- package/dist/esm/dropi-country-flags.entry.js +1 -1
- package/dist/esm/dropi-country-selector.entry.js +1 -1
- package/dist/esm/dropi-date-picker-range.entry.js +1 -1
- package/dist/esm/dropi-date-picker.entry.js +1 -1
- package/dist/esm/dropi-drawer.entry.js +1 -1
- package/dist/esm/dropi-dropdown.entry.js +1 -1
- package/dist/esm/dropi-empty-state.entry.js +88 -11
- package/dist/esm/dropi-favorite-button.entry.js +1 -1
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/esm/dropi-file-upload.entry.js +1 -1
- package/dist/esm/dropi-icon.entry.js +295 -26
- package/dist/esm/dropi-ilustration-icon.entry.js +1 -1
- package/dist/esm/dropi-image-miniature.entry.js +2 -2
- package/dist/esm/dropi-image-overlay.entry.js +1 -1
- package/dist/esm/dropi-input_3.entry.js +3 -3
- package/dist/esm/dropi-languages-selector.entry.js +1 -1
- package/dist/esm/dropi-logo.entry.js +2 -2
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +1 -1
- package/dist/esm/dropi-modal.entry.js +1 -1
- package/dist/esm/dropi-navbar.entry.js +3 -3
- package/dist/esm/dropi-otp-send-code.entry.js +3 -3
- package/dist/esm/dropi-phone-input.entry.js +3 -3
- package/dist/esm/dropi-progress-bar.entry.js +2 -2
- package/dist/esm/dropi-radio-button.entry.js +2 -2
- package/dist/esm/dropi-radio-selection-list.entry.js +1 -1
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +1 -1
- package/dist/esm/dropi-select.entry.js +2 -2
- package/dist/esm/dropi-sidebar.entry.js +1 -1
- package/dist/esm/dropi-simple-stepper.entry.js +1 -1
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +1 -1
- package/dist/esm/dropi-switch.entry.js +2 -2
- package/dist/esm/dropi-table.entry.js +1 -1
- package/dist/esm/dropi-tabs.entry.js +1 -1
- package/dist/esm/dropi-tag-type-product.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +1 -1
- package/dist/esm/dropi-time-line.entry.js +1 -1
- package/dist/esm/dropi-toast.entry.js +1 -1
- package/dist/esm/dropi-tooltip-v2.entry.js +1 -1
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +1 -1
- package/dist/esm/dropi-youtube-lazy-video.entry.js +2 -2
- package/dist/esm/index-K5v4Q5tq.js +2798 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +1 -39
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +7 -13
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +5 -13
- package/dist/types/components.d.ts +10 -142
- package/dist/types/utils/icon-map.generated.d.ts +4 -0
- package/dist/types/utils/illustration-map.generated.d.ts +1 -0
- package/dist/types/utils/lottie-map.generated.d.ts +1 -0
- package/hydrate/index.js +414 -110
- package/hydrate/index.mjs +414 -110
- package/package.json +2 -2
- package/scripts/generate-icon-map.js +37 -0
- package/scripts/generate-illustration-map.js +37 -0
- package/scripts/generate-lottie-map.js +49 -0
|
@@ -1,39 +1,27 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
|
|
3
|
-
* @component dropi-icon
|
|
4
|
-
* Renders an SVG icon from the Dropi sprite sheet.
|
|
5
|
-
* The sprite must be available at `assets/icons/sprite.svg`.
|
|
6
|
-
*/
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { ICON_MAP } from "../../utils/icon-map.generated";
|
|
7
3
|
export class DropiIcon {
|
|
8
4
|
el;
|
|
9
|
-
/** Icon name
|
|
5
|
+
/** Icon name (case-insensitive, matches dropi-lib-icons sprite ids) */
|
|
10
6
|
name = '';
|
|
11
|
-
/** Width of the icon (CSS value) */
|
|
12
7
|
iconWidth = '20px';
|
|
13
8
|
iconHeight = '20px';
|
|
14
9
|
color = 'currentColor';
|
|
15
|
-
/** Stroke width for icons that use strokes */
|
|
16
10
|
strokeWidth = '';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
heightChanged() {
|
|
23
|
-
this.updateHostStyles();
|
|
24
|
-
}
|
|
25
|
-
colorChanged() {
|
|
26
|
-
this.applyColor();
|
|
27
|
-
}
|
|
28
|
-
strokeWidthChanged() {
|
|
29
|
-
this.applyStrokeWidth();
|
|
30
|
-
}
|
|
11
|
+
svgGroupRef;
|
|
12
|
+
currentPaths = '';
|
|
13
|
+
sizeChanged() { this.updateHostStyles(); }
|
|
14
|
+
colorChanged() { this.applyColor(); }
|
|
15
|
+
strokeWidthChanged() { this.applyStrokeWidth(); }
|
|
31
16
|
componentWillLoad() {
|
|
32
17
|
this.applyColor();
|
|
33
18
|
this.applyStrokeWidth();
|
|
34
19
|
this.updateHostStyles();
|
|
35
20
|
}
|
|
36
|
-
|
|
21
|
+
componentDidRender() {
|
|
22
|
+
if (this.svgGroupRef) {
|
|
23
|
+
this.svgGroupRef.innerHTML = this.currentPaths;
|
|
24
|
+
}
|
|
37
25
|
this.updateHostStyles();
|
|
38
26
|
}
|
|
39
27
|
applyStrokeWidth() {
|
|
@@ -48,15 +36,20 @@ export class DropiIcon {
|
|
|
48
36
|
applyColor() {
|
|
49
37
|
if (!this.color)
|
|
50
38
|
return;
|
|
51
|
-
const fill = this.color.startsWith('#')
|
|
39
|
+
const fill = this.color.startsWith('#') || this.color === 'currentColor'
|
|
52
40
|
? this.color
|
|
53
|
-
: this.color
|
|
54
|
-
? 'currentColor'
|
|
55
|
-
: `var(--${this.color})`;
|
|
41
|
+
: `var(--${this.color})`;
|
|
56
42
|
this.el.style.setProperty('--icon-fill', fill);
|
|
57
43
|
}
|
|
58
44
|
render() {
|
|
59
|
-
|
|
45
|
+
const key = (this.name ?? '').toLowerCase();
|
|
46
|
+
const icon = ICON_MAP[key];
|
|
47
|
+
if (!icon) {
|
|
48
|
+
this.currentPaths = '';
|
|
49
|
+
return h("svg", { width: this.iconWidth, height: this.iconHeight, "aria-hidden": "true" });
|
|
50
|
+
}
|
|
51
|
+
this.currentPaths = icon.paths;
|
|
52
|
+
return (h(Host, null, h("svg", { viewBox: icon.viewBox, width: this.iconWidth, height: this.iconHeight, class: { spin: key === 'spinner' }, "aria-hidden": "true" }, h("g", { ref: (el) => { this.svgGroupRef = el; } }))));
|
|
60
53
|
}
|
|
61
54
|
static get is() { return "dropi-icon"; }
|
|
62
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +77,7 @@ export class DropiIcon {
|
|
|
84
77
|
"optional": false,
|
|
85
78
|
"docs": {
|
|
86
79
|
"tags": [],
|
|
87
|
-
"text": "Icon name
|
|
80
|
+
"text": "Icon name (case-insensitive, matches dropi-lib-icons sprite ids)"
|
|
88
81
|
},
|
|
89
82
|
"getter": false,
|
|
90
83
|
"setter": false,
|
|
@@ -104,7 +97,7 @@ export class DropiIcon {
|
|
|
104
97
|
"optional": false,
|
|
105
98
|
"docs": {
|
|
106
99
|
"tags": [],
|
|
107
|
-
"text": "
|
|
100
|
+
"text": ""
|
|
108
101
|
},
|
|
109
102
|
"getter": false,
|
|
110
103
|
"setter": false,
|
|
@@ -164,33 +157,13 @@ export class DropiIcon {
|
|
|
164
157
|
"optional": false,
|
|
165
158
|
"docs": {
|
|
166
159
|
"tags": [],
|
|
167
|
-
"text": "
|
|
160
|
+
"text": ""
|
|
168
161
|
},
|
|
169
162
|
"getter": false,
|
|
170
163
|
"setter": false,
|
|
171
164
|
"reflect": false,
|
|
172
165
|
"attribute": "stroke-width",
|
|
173
166
|
"defaultValue": "''"
|
|
174
|
-
},
|
|
175
|
-
"spritePath": {
|
|
176
|
-
"type": "string",
|
|
177
|
-
"mutable": false,
|
|
178
|
-
"complexType": {
|
|
179
|
-
"original": "string",
|
|
180
|
-
"resolved": "string",
|
|
181
|
-
"references": {}
|
|
182
|
-
},
|
|
183
|
-
"required": false,
|
|
184
|
-
"optional": false,
|
|
185
|
-
"docs": {
|
|
186
|
-
"tags": [],
|
|
187
|
-
"text": "URL to the SVG sprite file. Defaults to dropi-lib-icons path in node_modules."
|
|
188
|
-
},
|
|
189
|
-
"getter": false,
|
|
190
|
-
"setter": false,
|
|
191
|
-
"reflect": false,
|
|
192
|
-
"attribute": "sprite-path",
|
|
193
|
-
"defaultValue": "'/node_modules/dropi-lib-icons/dist/sprite.svg'"
|
|
194
167
|
}
|
|
195
168
|
};
|
|
196
169
|
}
|
|
@@ -198,10 +171,10 @@ export class DropiIcon {
|
|
|
198
171
|
static get watchers() {
|
|
199
172
|
return [{
|
|
200
173
|
"propName": "iconWidth",
|
|
201
|
-
"methodName": "
|
|
174
|
+
"methodName": "sizeChanged"
|
|
202
175
|
}, {
|
|
203
176
|
"propName": "iconHeight",
|
|
204
|
-
"methodName": "
|
|
177
|
+
"methodName": "sizeChanged"
|
|
205
178
|
}, {
|
|
206
179
|
"propName": "color",
|
|
207
180
|
"methodName": "colorChanged"
|
|
@@ -31,7 +31,7 @@ export class DropiImageMiniature {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const imgs = this.parsedImages;
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '6e69ee9e8e277d35757b8f1fc84e93202bc76cba', class: "miniature" }, this.label && h("span", { key: '4a529ee9d6be76148b744c7cb187596329aff763', class: "miniature__label" }, this.label), h("div", { key: 'e191bb3044a5d1e3f79d0b1273f686e5055d18c1', class: "miniature__grid" }, imgs.map((src, i) => (h("div", { class: "miniature__item", style: { width: this.width, height: this.height }, key: i, onClick: () => this.dropiImageClick.emit({ images: imgs, index: i }) }, h("img", { src: src, alt: `imagen ${i + 1}`, loading: "lazy", onError: (e) => this.handleError(e) }), h("div", { class: "miniature__zoom" }, h("dropi-icon", { name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Neutral-White" }))))))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "dropi-image-miniature"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class DropiLogo {
|
|
|
25
25
|
e.target.src = FALLBACK_SVG;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("figure", { key: '
|
|
28
|
+
return (h("figure", { key: '4d8da6d53c501a88bc3a6f358e5ee9d31a3dc401', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, h("img", { key: 'eca9fac83cbffcdec34b7b9a89aaa36b36aa7001', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", onError: (e) => this.handleError(e) })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dropi-logo"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,9 +36,9 @@ export class DropiNavbar {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const items = this.parsedData;
|
|
39
|
-
return (h("nav", { key: '
|
|
39
|
+
return (h("nav", { key: '89379c4c29539aa933b59f34b379929950c1bad6', class: "navbar" }, h("div", { key: '4e78453b654c5b93c4c534955a8cc523138cdfd9', class: "navbar__left" }, this.showMenuToggle && (h("button", { key: '6aee8f1a706b73786c0def18f42394331313a4ef', class: "navbar__menu-btn", onClick: () => this.dropiMenuToggle.emit(), "aria-label": "Men\u00FA" }, h("dropi-icon", { key: 'f5b57eb49cf5e8c5feb1a6d5284096a54b294768', name: "Menu", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-700" }))), this.logoUrl && (h("img", { key: '92167bb904e69964fae2806ccb0c157bb16eb081', class: "navbar__logo", src: this.logoUrl, alt: this.logoAlt })), this.title && h("span", { key: 'fef8b99cd9a2c2d9d1ac0cba0361f0bdd69ecf09', class: "navbar__title" }, this.title)), items.length > 0 && (h("ul", { key: 'c8a1130c8f0a8ac5eabb00b1108af34eeba611fe', class: "navbar__items" }, items.map(item => (h("li", null, h("button", { class: { 'navbar__item': true, 'navbar__item--active': item.id === this.activeId }, onClick: () => this.clickLoadItem.emit(item), type: "button" }, item.icon && h("dropi-icon", { name: item.icon, iconWidth: "16px", iconHeight: "16px", color: item.id === this.activeId ? 'Primary-Primary-500' : 'Gray-Gray-600' }), h("span", null, item.name?.value || item.label), item.badge != null && String(item.badge) !== '0' && (h("span", { class: "navbar__badge" }, item.badge)))))))), h("div", { key: '390eb829076e112fb52da015903d5330666c533e', class: "navbar__right" }, h("button", { key: '0f8bdd5f78a310418c88b1a74cd7ac87a4308c1c', class: "navbar__icon-btn", onClick: () => this.dropiNotificationsClick.emit(), "aria-label": "Notificaciones" }, h("dropi-icon", { key: '6eb38a4cf19eb417bb8b18a96b5e6133c70ff35e', name: "Bell", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-600" }), this.notifications > 0 && (h("span", { key: 'a2fbfe367a46b50cbbd4e1b9a9b859d10c18c604', class: "navbar__notif-badge" }, this.notifications > 99 ? '99+' : this.notifications))), h("button", { key: 'dc9cbb054b2bd8088992d8feb33f0807e75b26e6', class: "navbar__user-btn", onClick: () => this.dropiUserClick.emit(), type: "button" }, this.userAvatar
|
|
40
40
|
? h("img", { class: "navbar__avatar", src: this.userAvatar, alt: this.userName })
|
|
41
|
-
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: '
|
|
41
|
+
: h("div", { class: "navbar__avatar-placeholder" }, this.userName ? this.userName[0].toUpperCase() : '?'), this.userName && h("span", { key: 'e1a6193fc9bd18f542204a38d1c0775e86ee3cd2', class: "navbar__user-name" }, this.userName), h("dropi-icon", { key: 'b870d026d52b11041ae0db711c4c3fdb02578b60', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dropi-navbar"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,14 +100,14 @@ export class DropiOtpSendCode {
|
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
102
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
103
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: '4fdb8eb4d4932b6509798a50ee474c56fb001fa8', class: "otp" }, this.showLabelContact && (h("p", { key: '2f95e7f0138ce067e3da3c0822d8277e7fccc357', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && h("strong", { key: '23508736c6cfdf095f2b9192ff3d566e98e715c7' }, " ", this.labelContact))), h("div", { key: '8c01d71b208ae557f9ffba7b76d60c049bdde9ce', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, this.digits.map((_, i) => (h("input", { key: i, ref: (el) => {
|
|
104
104
|
if (el)
|
|
105
105
|
this.inputs[i] = el;
|
|
106
106
|
}, class: {
|
|
107
107
|
'otp__digit': true,
|
|
108
108
|
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
109
109
|
'otp__digit--error': this.error,
|
|
110
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (h("p", { key: '
|
|
110
|
+
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (h("p", { key: '8215ecbdc651a3c79a8841c5620bd7e8c5c8228e', class: "otp__error" }, this.errorMessage)), h("div", { key: 'c1a81e44295abb3b373936a5c276aea4497cf2e9', class: "otp__resend" }, this.canResend ? (h("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (h("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "dropi-otp-send-code"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,9 +54,9 @@ export class DropiPaginator {
|
|
|
54
54
|
const pages = this.pageNumbers;
|
|
55
55
|
const isFirst = this.currentPage <= 1;
|
|
56
56
|
const isLast = this.currentPage >= this.totalPages;
|
|
57
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: '6b39ba2ff5168182a36c59e521e46e12a32ebe85', class: "paginator" }, h("div", { key: '9bc76ef25f10290b575ce047bb5f093e6698a670', class: "paginator-pages" }, !isFirst && !this.noLabels && (h("button", { key: '25def90ed595b4c56cd1481ecf1cc2ed2cc1aeb9', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: '505c131c240d7af5b5860802a69be6b8971b0ab3', name: "Arrow-double-small-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isFirst && (h("button", { key: '090d9b536a0b80d12ac1a48bf9519b34d4b6bc9a', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage - 1), "aria-label": "Anterior", disabled: this.disabled }, h("dropi-icon", { key: 'aec79c1b98329c1302478d8fe738586a8587dca0', name: "Dropdown-left", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }), !this.noLabels && h("span", { key: 'bc9416a0cfee88e4739c11a3ddbc0c4a244cc21d', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
58
58
|
? h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
59
|
-
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (h("button", { key: '
|
|
59
|
+
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.currentPage }, onClick: () => this.goTo(p), "aria-current": p === this.currentPage ? 'page' : undefined, disabled: this.disabled }, p)), !isLast && (h("button", { key: 'fb1f077bd49fdceb052c3d1613d58078f2202ba9', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.currentPage + 1), "aria-label": "Siguiente", disabled: this.disabled }, !this.noLabels && h("span", { key: 'fe05545abd3c8d72a897c5a68e76347bbe39625b', class: "paginator-label" }, "Siguiente"), h("dropi-icon", { key: '17063d4d03213cbf38b1ff2c79187ec07ba0c8b3', name: "Dropdown-Right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (h("button", { key: 'b4d0df3505ad5a1c5c0899a7a13aa9f8b79db511', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina", disabled: this.disabled }, h("dropi-icon", { key: 'd0db6c56e6a8dcbf441038b4391b004083a6f708', name: "Arrow-double-small-right", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "dropi-paginator"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -183,10 +183,10 @@ export class DropiPhoneInput {
|
|
|
183
183
|
render() {
|
|
184
184
|
const country = this.selectedCountry;
|
|
185
185
|
const isInvalid = this.isValidPhone === false;
|
|
186
|
-
return (h("div", { key: '
|
|
186
|
+
return (h("div", { key: 'c15336990cd554166dcfec74bbf577074a7fe870', class: "phone-wrap" }, h("div", { key: '7136d327befe46db5b9fd79075526d4a327532ff', class: "phone-input-container" }, h("div", { key: '2348818f20cc26941dd06730d75c95497eb73468', class: "custom-select" }, h("button", { key: '37a0289468cc49b914d31a056d94c1caafc4431d', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
187
187
|
if (!this.disabledInput)
|
|
188
188
|
this.open = !this.open;
|
|
189
|
-
} }, h("span", { key: '
|
|
189
|
+
} }, h("span", { key: '59368b25a2afa0a3e7fbb930483239680a867651', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, h("img", { key: 'd472729d11380a54182927000703c224104f9213', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), h("dropi-icon", { key: '9c73aea42e3f30793505277032c892b3947a90be', name: this.open ? 'Dropdown-up' : 'Dropdown-down', iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-500" })), h("ul", { key: 'b3238ad80a85356fbd95a482c3ffa0cf3ecb810f', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (h("li", null, h("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, h("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), h("input", { key: '3f0c3ef4f01b13f9f033b5205fe5ab019a923781', id: "phone-input", type: "tel", inputmode: "numeric", class: { 'form-control': true, 'is-invalid': isInvalid }, placeholder: this.phoneNumberPlaceholder, value: this.ngModelPhone, disabled: this.disabledInput, maxLength: country.maxLength, onInput: (e) => this.handleInput(e) }))));
|
|
190
190
|
}
|
|
191
191
|
static get is() { return "dropi-phone-input"; }
|
|
192
192
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class DropiProgressBar {
|
|
|
17
17
|
width: `${Math.min(100, Math.max(0, this.value))}%`,
|
|
18
18
|
backgroundColor: this.color || `var(--${this.getSeverityVariable()}, #50A5F1)`,
|
|
19
19
|
};
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '7093e06299ccb8365d07fa1bc20838254b08957e', class: "progress-container" }, this.showValue && (h("div", { key: 'f32dcb2d2c4dcfcdba5661dc7b66c1f36d4bb66c', class: "progress-header" }, h("span", { key: '5d556cff4beb0af77c28fd934757512a3470b83d', class: "progress-value" }, this.value, "%"))), h("div", { key: '35666669d0206354d2d3e797bf553b767bfb63d5', class: "progress-track", style: { height: this.height, backgroundColor: this.trackColor } }, h("div", { key: '037d4d7cacc0834b8d79d1fee8c6e9ba3edfc3f5', class: "progress-fill", style: fillStyle }))));
|
|
21
21
|
}
|
|
22
22
|
getSeverityVariable() {
|
|
23
23
|
switch (this.severity) {
|
|
@@ -35,7 +35,7 @@ export class DropiRadioButton {
|
|
|
35
35
|
this.dropiChange.emit(e);
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h("div", { key: '
|
|
38
|
+
return (h("div", { key: 'e42d178a92a815c22b197aec5d962a19f60a4f6f', class: "dropi-radio-button" }, h("label", { key: '0beae39fb6860265332c1ed12d38bc97c78b22c1', htmlFor: this.inputId }, h("input", { key: '4ddb55ecb50c030ed7d4a8795246a9d57f95f0da', id: this.inputId, type: "radio", name: this.name, checked: this.checked, onChange: (e) => this.handleChange(e) }), this.label)));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "dropi-radio-button"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class DropiReadMore {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const showToggle = this.needsTruncation && (this.expanded ? this.showSeeLess : true);
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '27f1da08ef634213771942cf956edb42f543cbbd', class: "read-more" }, h("p", { key: '0f8090c4776296e1d7c9073fe5445b5f1d195464', class: "read-more__text", style: this.textStyle ? this.textStyle : undefined }, this.displayText, showToggle && (h("button", { key: 'b2cc2616cd93dbc4b6025854ab9e4250d699f8fe', class: "read-more__toggle", style: this.buttonStyle ? this.buttonStyle : undefined, onClick: () => this.expanded = !this.expanded }, this.expanded ? ' Ver menos' : '... Ver más')))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "dropi-read-more"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -387,7 +387,7 @@ export class DropiSelect {
|
|
|
387
387
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (h("li", { class: "no-results" }, "Sin resultados"))));
|
|
388
388
|
}
|
|
389
389
|
render() {
|
|
390
|
-
return (h("div", { key: '
|
|
390
|
+
return (h("div", { key: 'cd22a44efb11820180aec0cc36aa0e7949712e78', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: 'f2b2c09818cf292828d6d6ce6d3e5c9e86508495', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: 'e84b30735dff4ccb40f8931835bf51e3bab6ff11', class: "asterisk" }, " *"))), h("div", { key: '048a25a502b2f7550d298d22439c46589ada08fe', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: '849b92a26294622e602fe2ff6bf2db89e22be4f4', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (h("div", { key: '8b9ac9ea4b494fb830237362f5b9db6b606df765', class: "select-helper" }, h("span", { key: '74fa19eee858b116f81d41ae1a3deb00beaf103e' }, this.textHelper))), this.hasError && this.errorText && (h("div", { key: '34a015639d80fb8df598f67129f84c34b737ecf4', class: "select-helper-error" }, h("dropi-icon", { key: 'ebcbcadc5c72d35f0a35bc975dda0995b2a493a1', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: 'f473e766279e0c784251251d6c59fbd92107a7e8' }, this.errorText))), this.renderDropdown()));
|
|
391
391
|
}
|
|
392
392
|
static get is() { return "dropi-select"; }
|
|
393
393
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class DropiSwitch {
|
|
|
25
25
|
this.dropiChange.emit(this.isChecked);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("label", { key: '
|
|
28
|
+
return (h("label", { key: 'bfe479e64d61f2ffcd76db084c4504842bbb6421', class: "toggle-switch" }, h("input", { key: 'add18063655620fd12d43e0c02b48775b81e9ffa', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), h("span", { key: '8b6c30839589d9354cf309905e9d0863e8354578', class: "slider" })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "dropi-switch"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class DropiTagTypeProduct {
|
|
|
7
7
|
/** Label text. Default: VARIABLE */
|
|
8
8
|
label = 'VARIABLE';
|
|
9
9
|
render() {
|
|
10
|
-
return h("div", { key: '
|
|
10
|
+
return h("div", { key: '89083374c365448b4862687559ce311e258ee031', class: "type-variation" }, this.label);
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "dropi-tag-type-product"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class DropiTooltip {
|
|
|
9
9
|
/** Whether the tooltip has an outline style (matches Angular `outlined`) */
|
|
10
10
|
outlined = false;
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: '42891ce799b8a62c9b389ee1f76104f69124f5be', class: { 'tooltip-simple': true, 'tooltip-simple--outlined': this.outlined } }, h("slot", { key: '2ef06f971f67c995bdf1ce3be6209f2173cca63d' }), this.text && (h("div", { key: '9417b2ca92cd320abe686d1cb71a18ff5cfc09e7', class: "tooltip-simple-bubble" }, this.text))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "dropi-tooltip"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@ export class DropiYoutubeLazyVideo {
|
|
|
24
24
|
return `https://www.youtube.com/embed/${this.videoId}?autoplay=1&rel=0&modestbranding=1`;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: '04b1c8c4c089306ddd94072510066e6687dea8da', class: `video-wrapper${this.isPlaying ? ' playing' : ''}` }, !this.isPlaying && (h("div", { key: '2c5c6a08d986b03bbb3d3f81bc167736518ac201', class: "thumbnail", onClick: () => { this.isPlaying = true; } }, h("img", { key: '7fcf622e553c278b5121ad6361d6a35eb1e7aa5d', src: this.thumbnail, alt: `Video thumbnail ${this.videoId}` }), h("button", { key: 'f99709c40c48f5b94d201ae0b8933152307253ba', class: "play-button", "aria-label": "Reproducir video" }, h("dropi-icon", { key: 'ad31b427514ca7f2fe29deee2bb01e72fee49d35', name: "Play", iconWidth: "17px", iconHeight: "21px", color: "Neutral-White" })))), this.isPlaying && (h("iframe", { key: '98b418bc525fedb92852d6bb67434affad36eb87', src: this.videoUrl, title: this.videoTitle, frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, loading: "lazy" }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "dropi-youtube-lazy-video"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|