@dropi/ui 0.1.17 → 0.1.19
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.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert.cjs.entry.js +58 -0
- package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-card-section.cjs.entry.js +38 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +71 -0
- package/dist/cjs/dropi-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +58 -0
- package/dist/cjs/dropi-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +44 -0
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +62 -0
- package/dist/cjs/dropi-input.cjs.entry.js +5 -5
- package/dist/cjs/dropi-logo.cjs.entry.js +27 -0
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +92 -0
- package/dist/cjs/dropi-paginator.cjs.entry.js +5 -3
- package/dist/cjs/dropi-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +56 -0
- package/dist/cjs/dropi-read-more.cjs.entry.js +36 -0
- package/dist/cjs/dropi-search.cjs.entry.js +110 -0
- package/dist/cjs/dropi-select.cjs.entry.js +1 -1
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +51 -0
- package/dist/cjs/dropi-steps.cjs.entry.js +50 -0
- package/dist/cjs/dropi-switch.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tag.cjs.entry.js +1 -1
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-time-line.cjs.entry.js +34 -0
- package/dist/cjs/dropi-toast.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dropi-ui.cjs.js +1 -1
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +55 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +123 -0
- package/dist/collection/components/dropi-alert/dropi-alert.js +305 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.css +55 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +126 -0
- package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.js +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +42 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +178 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +44 -0
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +245 -0
- package/dist/collection/components/dropi-chips/dropi-chips.css +66 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +169 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +51 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +184 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +24 -0
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +78 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +45 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +150 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +82 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +155 -0
- package/dist/collection/components/dropi-input/dropi-input.css +11 -0
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- package/dist/collection/components/dropi-logo/dropi-logo.css +26 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +96 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +50 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +116 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +60 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +221 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +15 -12
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +24 -2
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +64 -0
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +209 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +28 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +110 -0
- package/dist/collection/components/dropi-search/dropi-search.css +112 -0
- package/dist/collection/components/dropi-search/dropi-search.js +392 -0
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +94 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +172 -0
- package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
- package/dist/collection/components/dropi-steps/dropi-steps.js +145 -0
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +108 -0
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +69 -0
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +95 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +167 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert.d.ts +11 -0
- package/dist/components/dropi-alert.js +1 -0
- package/dist/components/dropi-avatars.d.ts +11 -0
- package/dist/components/dropi-avatars.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-section.d.ts +11 -0
- package/dist/components/dropi-card-section.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.d.ts +11 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -0
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.d.ts +11 -0
- package/dist/components/dropi-chips.js +1 -0
- package/dist/components/dropi-dropdown.d.ts +11 -0
- package/dist/components/dropi-dropdown.js +1 -0
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.d.ts +11 -0
- package/dist/components/dropi-favorite-button.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-image-miniature.d.ts +11 -0
- package/dist/components/dropi-image-miniature.js +1 -0
- package/dist/components/dropi-image-overlay.d.ts +11 -0
- package/dist/components/dropi-image-overlay.js +1 -0
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-logo.d.ts +11 -0
- package/dist/components/dropi-logo.js +1 -0
- package/dist/components/dropi-lottie-loader.d.ts +11 -0
- package/dist/components/dropi-lottie-loader.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-otp-send-code.d.ts +11 -0
- package/dist/components/dropi-otp-send-code.js +1 -0
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.d.ts +11 -0
- package/dist/components/dropi-radio-selection-list.js +1 -0
- package/dist/components/dropi-read-more.d.ts +11 -0
- package/dist/components/dropi-read-more.js +1 -0
- package/dist/components/dropi-search.d.ts +11 -0
- package/dist/components/dropi-search.js +1 -0
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-simple-stepper.d.ts +11 -0
- package/dist/components/dropi-simple-stepper.js +1 -0
- package/dist/components/dropi-steps.d.ts +11 -0
- package/dist/components/dropi-steps.js +1 -0
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-tabs.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.d.ts +11 -0
- package/dist/components/dropi-time-line.js +1 -0
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.d.ts +11 -0
- package/dist/components/dropi-vertical-steps.js +1 -0
- package/dist/components/{p-ChOXWKmI.js → p-CPs3fHRc.js} +1 -1
- package/dist/components/p-DKXrREI4.js +1 -0
- package/dist/components/p-Ds74ZOlC.js +1 -0
- package/dist/components/{p-NCyvfOs2.js → p-WZTFyFH2.js} +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-061e1ad4.entry.js +1 -0
- package/dist/dropi-ui/{p-ecda6e19.entry.js → p-0c13dded.entry.js} +1 -1
- package/dist/dropi-ui/{p-79466fec.entry.js → p-121c8a09.entry.js} +1 -1
- package/dist/dropi-ui/p-291a1416.entry.js +1 -0
- package/dist/dropi-ui/p-2cee44f9.entry.js +1 -0
- package/dist/dropi-ui/{p-6031ac9d.entry.js → p-30fdd316.entry.js} +1 -1
- package/dist/dropi-ui/p-3537ee5a.entry.js +1 -0
- package/dist/dropi-ui/{p-26dbae0d.entry.js → p-3d859657.entry.js} +1 -1
- package/dist/dropi-ui/p-433d161d.entry.js +1 -0
- package/dist/dropi-ui/p-4bdfad16.entry.js +1 -0
- package/dist/dropi-ui/p-4ea7d3a7.entry.js +1 -0
- package/dist/dropi-ui/{p-09c38a49.entry.js → p-51c8ef68.entry.js} +1 -1
- package/dist/dropi-ui/{p-6d15d32f.entry.js → p-54780c90.entry.js} +1 -1
- package/dist/dropi-ui/{p-63e969da.entry.js → p-66deb85e.entry.js} +1 -1
- package/dist/dropi-ui/p-68f81080.entry.js +1 -0
- package/dist/dropi-ui/p-724a2aea.entry.js +1 -0
- package/dist/dropi-ui/p-74c37688.entry.js +1 -0
- package/dist/dropi-ui/p-7cec1cea.entry.js +1 -0
- package/dist/dropi-ui/{p-f0e1e0f6.entry.js → p-7daa2677.entry.js} +1 -1
- package/dist/dropi-ui/p-8906a68d.entry.js +1 -0
- package/dist/dropi-ui/{p-1739d20c.entry.js → p-a4204ece.entry.js} +1 -1
- package/dist/dropi-ui/p-a9116dbe.entry.js +1 -0
- package/dist/dropi-ui/p-b36b819f.entry.js +1 -0
- package/dist/dropi-ui/p-c10cbb8d.entry.js +1 -0
- package/dist/dropi-ui/{p-42179ae4.entry.js → p-c2316d4d.entry.js} +1 -1
- package/dist/dropi-ui/{p-e44242e2.entry.js → p-cb5fd7a9.entry.js} +1 -1
- package/dist/dropi-ui/p-d1e1b716.entry.js +1 -0
- package/dist/dropi-ui/p-d5ecc394.entry.js +1 -0
- package/dist/dropi-ui/p-db6c9828.entry.js +1 -0
- package/dist/dropi-ui/{p-4d582d58.entry.js → p-e721127d.entry.js} +1 -1
- package/dist/dropi-ui/p-e8557da0.entry.js +1 -0
- package/dist/dropi-ui/p-ebfd4665.entry.js +1 -0
- package/dist/dropi-ui/p-f3cef35a.entry.js +1 -0
- package/dist/dropi-ui/p-f6a69c4e.entry.js +1 -0
- package/dist/dropi-ui/{p-65fa8558.entry.js → p-ff45e7c8.entry.js} +1 -1
- package/dist/esm/dropi-accordion.entry.js +1 -1
- package/dist/esm/dropi-alert.entry.js +56 -0
- package/dist/esm/dropi-avatars.entry.js +29 -0
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-button.entry.js +2 -2
- package/dist/esm/dropi-card-section.entry.js +36 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +69 -0
- package/dist/esm/dropi-checkbox.entry.js +2 -2
- package/dist/esm/dropi-chips.entry.js +28 -0
- package/dist/esm/dropi-dropdown.entry.js +56 -0
- package/dist/esm/dropi-empty-state.entry.js +1 -1
- package/dist/esm/dropi-favorite-button.entry.js +25 -0
- package/dist/esm/dropi-icon.entry.js +1 -1
- package/dist/esm/dropi-image-miniature.entry.js +42 -0
- package/dist/esm/dropi-image-overlay.entry.js +60 -0
- package/dist/esm/dropi-input.entry.js +5 -5
- package/dist/esm/dropi-logo.entry.js +25 -0
- package/dist/esm/dropi-lottie-loader.entry.js +25 -0
- package/dist/esm/dropi-otp-send-code.entry.js +90 -0
- package/dist/esm/dropi-paginator.entry.js +5 -3
- package/dist/esm/dropi-radio-button.entry.js +1 -1
- package/dist/esm/dropi-radio-selection-list.entry.js +54 -0
- package/dist/esm/dropi-read-more.entry.js +34 -0
- package/dist/esm/dropi-search.entry.js +108 -0
- package/dist/esm/dropi-select.entry.js +1 -1
- package/dist/esm/dropi-simple-stepper.entry.js +49 -0
- package/dist/esm/dropi-steps.entry.js +48 -0
- package/dist/esm/dropi-switch.entry.js +1 -1
- package/dist/esm/dropi-tabs.entry.js +1 -1
- package/dist/esm/dropi-tag.entry.js +1 -1
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-time-line.entry.js +32 -0
- package/dist/esm/dropi-toast.entry.js +1 -1
- package/dist/esm/dropi-tooltip.entry.js +1 -1
- package/dist/esm/dropi-ui.js +1 -1
- package/dist/esm/dropi-vertical-steps.entry.js +53 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +35 -0
- package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +17 -0
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +22 -0
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +37 -0
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +23 -0
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +28 -0
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +14 -0
- package/dist/types/components/dropi-image-miniature/dropi-image-miniature.d.ts +23 -0
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +26 -0
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +14 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +15 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +33 -0
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +2 -0
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +34 -0
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +17 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +51 -0
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +20 -0
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +21 -0
- package/dist/types/components/dropi-time-line/dropi-time-line.d.ts +18 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +24 -0
- package/dist/types/components.d.ts +1830 -3
- package/package.json +1 -1
- package/readme.md +189 -2
- package/dist/dropi-ui/p-082b7039.entry.js +0 -1
- package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
- package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
2
|
|
|
3
|
-
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:10px;left:5px;z-index:1}.icon-input-password{position:absolute;top:10px;right:13px;cursor:pointer;z-index:1}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:28px}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}`;
|
|
3
|
+
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:10px;left:5px;z-index:1}.icon-input-password{position:absolute;top:10px;right:13px;cursor:pointer;z-index:1}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.padding-icon{padding-left:28px}.input-container--has-icon label.label-bottom{left:28px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}`;
|
|
4
4
|
|
|
5
5
|
const DropiInput = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -103,7 +103,7 @@ const DropiInput = class {
|
|
|
103
103
|
this.dropiInput.emit(val);
|
|
104
104
|
}
|
|
105
105
|
handleKeyDown(e) {
|
|
106
|
-
if (this.onlyNumbers && !this.isAllowedNumberKey(e)) {
|
|
106
|
+
if ((this.onlyNumbers || this.moneyFormat || this.thousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
107
107
|
e.preventDefault();
|
|
108
108
|
}
|
|
109
109
|
if (this.onlyLetters && !this.isAllowedLetterKey(e)) {
|
|
@@ -180,15 +180,15 @@ const DropiInput = class {
|
|
|
180
180
|
// ── Render ───────────────────────────────────────────────────
|
|
181
181
|
render() {
|
|
182
182
|
const showAsterisk = this.required && this.showAsterisk && !this.disabled;
|
|
183
|
-
const showIconInline = !!this.icon
|
|
184
|
-
return (h("div", { key: '
|
|
183
|
+
const showIconInline = !!this.icon;
|
|
184
|
+
return (h("div", { key: '444e873dc4175e75a5c85814499e28afb3f80b37', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (h("div", { key: 'a501500f872b87ad701f5c18e0e3b532005c3fcb', class: "input-label Body-S-Regular" }, this.label, showAsterisk && h("span", { key: '1ca3afb47b67cfb61cd8bceb8657c9f061462064', class: "asterisk" }, " *"))), h("div", { key: 'eb31110de652f6db7c5fdd747046280b0e81e2b6', class: "form-group" }, h("div", { key: 'b0bb2cac1e8d7f20d927437e4ba6327e333d1fdb', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (h("dropi-icon", { key: '604a369b358b1c95a19cc23dd4bc4f9c77e4b050', class: "icon-input", name: this.icon, color: this.iconColor, width: "20px", height: "20px" })), this.passwordInput && (h("dropi-icon", { key: 'b1b3b979d172ada0c3fe616f795c7cd5b2bf45cb', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', width: "20px", height: "20px", color: "Gray-Gray-500", onClick: () => this.togglePassword() })), h("input", { key: 'b5488711765a12b6e9fea7b0f8d5a23ae95de925', id: this.resolvedId, class: {
|
|
185
185
|
'form-control': true,
|
|
186
186
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
187
187
|
'form-control-invalid': this.isInvalid,
|
|
188
188
|
'padding-icon': showIconInline,
|
|
189
189
|
'text-password': this.passwordInput && !this.showPassword,
|
|
190
190
|
'fixed-label-input': this.fixedLabel,
|
|
191
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxlength, inputMode: this.inputMode, "data-cy": undefined, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: '
|
|
191
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxlength, inputMode: this.inputMode, "data-cy": undefined, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: 'f3008d901c41e6f362977e1232e7597733c4288e', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showAsterisk && h("span", { key: '1b982a1630f88557380df2f22c0c27bcceebbdc6', class: "asterisk" }, " *"))), this.showHelper && (h("div", { key: '30382a8e7beb0a14bb06f8fd25dae3da5371efd3', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: 'a1ef2b7a9a659301cc22c19d5e5f65bd7a595a2c', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" })), h("span", { key: '289250769c59d1ddde821395a9e97368404ca1ab', class: {
|
|
192
192
|
'disabled-helper': this.disabled,
|
|
193
193
|
'invalid-color': this.isInvalid,
|
|
194
194
|
} }, this.helperText)))))));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiLogoCss = () => `:host{display:inline-block}.dropi-logo{margin:0;padding:0;display:flex;align-items:center;justify-content:center}.dropi-logo img{display:block;object-fit:contain}.dropi-logo--large img{width:256px;height:84px}.dropi-logo--small img{width:86px;height:81px}`;
|
|
4
|
+
|
|
5
|
+
const FALLBACK_SVG = `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgNDAiPjx0ZXh0IHk9IjMwIiBmb250LXNpemU9IjI0IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZmlsbD0iI2Y0OWEzZCI+ZHJvcGk8L3RleHQ+PC9zdmc+`;
|
|
6
|
+
const DropiLogo = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
}
|
|
10
|
+
/** Logo image URL */
|
|
11
|
+
urlLogo = '';
|
|
12
|
+
/** Size variant */
|
|
13
|
+
size = 'large';
|
|
14
|
+
/** Theme (reserved for future use) */
|
|
15
|
+
theme = 'light';
|
|
16
|
+
handleError(e) {
|
|
17
|
+
e.target.src = FALLBACK_SVG;
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (h("figure", { key: '6b3335e9c4e8d799106f3c2080822d35d74bb16d', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, h("img", { key: 'e54ff2f0d1fb1f0f4eea4c46aae7a39f69268217', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", loading: "lazy", onError: (e) => this.handleError(e) })));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
DropiLogo.style = dropiLogoCss();
|
|
24
|
+
|
|
25
|
+
export { DropiLogo as dropi_logo };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiLottieLoaderCss = () => `:host{display:block}.loader-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255, 255, 255, 0.85);z-index:9999}.loader-container{display:flex;flex-direction:column;align-items:center;gap:var(--Size-4, 16px)}.lottie-animation{display:flex;align-items:center;justify-content:center;width:200px;height:200px}.loader-text{display:flex;flex-direction:column;align-items:center;gap:var(--Size-2, 8px);text-align:center}.loader-title{margin:0;font-size:var(--font-size-m, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.loader-message{margin:0;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-500, #69738c)}`;
|
|
4
|
+
|
|
5
|
+
const DropiLottieLoader = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Show or hide the loader */
|
|
10
|
+
visible = false;
|
|
11
|
+
/** Path to the Lottie JSON animation file */
|
|
12
|
+
loadingAnimation = '';
|
|
13
|
+
/** Title shown below the animation */
|
|
14
|
+
loaderTitle = '';
|
|
15
|
+
/** Descriptive message below the title */
|
|
16
|
+
message = '';
|
|
17
|
+
render() {
|
|
18
|
+
if (!this.visible)
|
|
19
|
+
return null;
|
|
20
|
+
return (h("div", { class: "loader-overlay" }, h("div", { class: "loader-container" }, this.loadingAnimation && (h("div", { class: "lottie-animation", innerHTML: `<lottie-player src="${this.loadingAnimation}" background="transparent" speed="1" style="width:200px;height:200px" loop autoplay></lottie-player>` })), (this.loaderTitle || this.message) && (h("div", { class: "loader-text" }, this.loaderTitle && h("h3", { class: "loader-title" }, this.loaderTitle), this.message && h("p", { class: "loader-message" }, this.message))))));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
DropiLottieLoader.style = dropiLottieLoaderCss();
|
|
24
|
+
|
|
25
|
+
export { DropiLottieLoader as dropi_lottie_loader };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiOtpSendCodeCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.otp{display:flex;flex-direction:column;align-items:center;gap:var(--Size-4, 16px)}.otp__label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066);text-align:center;margin:0}.otp__inputs{display:flex;gap:var(--Size-2, 8px)}.otp__digit{width:48px;height:56px;border:2px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);text-align:center;font-size:var(--font-size-xl, 20px);font-weight:var(--font-weight-bold, 700);font-family:inherit;color:var(--Gray-Gray-800, #1a2033);outline:none;transition:border-color 0.15s;background:var(--Neutral-White, #fff)}.otp__digit:focus{border-color:var(--Info-Info-500, #50a5f1)}.otp__digit--filled{border-color:var(--Success-Success-500, #34c55a);color:var(--Success-Success-500, #34c55a)}.otp__digit--error{border-color:var(--Error-Error-500, #f46a6b)}.otp__error{margin:0;font-size:var(--font-size-xs, 10px);color:var(--Error-Error-500, #f46a6b);text-align:center}.otp__resend{text-align:center}.otp__countdown{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-400, #858ea6)}.otp__resend-btn{background:none;border:none;padding:0;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d);cursor:pointer;text-decoration:underline}`;
|
|
4
|
+
|
|
5
|
+
const OTP_LENGTH = 6;
|
|
6
|
+
const RESEND_SECONDS = 30;
|
|
7
|
+
const DropiOtpSendCode = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.dropiCodeCompleted = createEvent(this, "dropiCodeCompleted");
|
|
11
|
+
this.dropiResend = createEvent(this, "dropiResend");
|
|
12
|
+
}
|
|
13
|
+
/** Delivery method label */
|
|
14
|
+
engine = 'email';
|
|
15
|
+
/** Contact info (email/phone to show in label) */
|
|
16
|
+
labelContact = '';
|
|
17
|
+
/** Show contact label */
|
|
18
|
+
showLabelContact = true;
|
|
19
|
+
/** Error message to display */
|
|
20
|
+
errorMessage = '';
|
|
21
|
+
digits = Array(OTP_LENGTH).fill('');
|
|
22
|
+
digitStates = Array(OTP_LENGTH).fill('idle');
|
|
23
|
+
countdown = RESEND_SECONDS;
|
|
24
|
+
canResend = false;
|
|
25
|
+
error = false;
|
|
26
|
+
inputs = [];
|
|
27
|
+
timer;
|
|
28
|
+
/** Emitted when all 6 digits are entered. e.detail = the complete code string */
|
|
29
|
+
dropiCodeCompleted;
|
|
30
|
+
/** Emitted when resend is requested */
|
|
31
|
+
dropiResend;
|
|
32
|
+
componentDidLoad() { this.startCountdown(); }
|
|
33
|
+
disconnectedCallback() { clearInterval(this.timer); }
|
|
34
|
+
startCountdown() {
|
|
35
|
+
this.countdown = RESEND_SECONDS;
|
|
36
|
+
this.canResend = false;
|
|
37
|
+
clearInterval(this.timer);
|
|
38
|
+
this.timer = setInterval(() => {
|
|
39
|
+
this.countdown--;
|
|
40
|
+
if (this.countdown <= 0) {
|
|
41
|
+
clearInterval(this.timer);
|
|
42
|
+
this.canResend = true;
|
|
43
|
+
}
|
|
44
|
+
}, 1000);
|
|
45
|
+
}
|
|
46
|
+
handleInput(e, index) {
|
|
47
|
+
const val = e.target.value.replace(/\D/g, '').slice(-1);
|
|
48
|
+
const newDigits = [...this.digits];
|
|
49
|
+
newDigits[index] = val;
|
|
50
|
+
this.digits = newDigits;
|
|
51
|
+
const newStates = [...this.digitStates];
|
|
52
|
+
newStates[index] = val ? 'filled' : 'idle';
|
|
53
|
+
this.digitStates = newStates;
|
|
54
|
+
if (val && index < OTP_LENGTH - 1)
|
|
55
|
+
this.inputs[index + 1]?.focus();
|
|
56
|
+
if (newDigits.every(d => d !== '')) {
|
|
57
|
+
this.dropiCodeCompleted.emit(newDigits.join(''));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
handleKeyDown(e, index) {
|
|
61
|
+
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
62
|
+
this.inputs[index - 1]?.focus();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
handlePaste(e) {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
const text = e.clipboardData?.getData('text')?.replace(/\D/g, '').slice(0, OTP_LENGTH) || '';
|
|
68
|
+
const newDigits = Array(OTP_LENGTH).fill('');
|
|
69
|
+
text.split('').forEach((c, i) => { newDigits[i] = c; });
|
|
70
|
+
this.digits = newDigits;
|
|
71
|
+
this.digitStates = newDigits.map(d => d ? 'filled' : 'idle');
|
|
72
|
+
this.inputs[Math.min(text.length, OTP_LENGTH - 1)]?.focus();
|
|
73
|
+
if (newDigits.every(d => d !== ''))
|
|
74
|
+
this.dropiCodeCompleted.emit(newDigits.join(''));
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
78
|
+
return (h("div", { key: '9c8e1efcdb61bd8f6988826b769240354d42339e', class: "otp" }, this.showLabelContact && (h("p", { key: 'dd8ccef18ed569371c1bba5fc2a39a43b6daf1b9', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && h("strong", { key: 'a3fc70430e66b153cf12ed2c0240f2fb00ec4a47' }, " ", this.labelContact))), h("div", { key: '450a3a7923a363c1ebbbbd06ca1cc291eba3281c', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, Array.from({ length: OTP_LENGTH }, (_, i) => (h("input", { key: i, ref: (el) => {
|
|
79
|
+
if (el)
|
|
80
|
+
this.inputs[i] = el;
|
|
81
|
+
}, class: {
|
|
82
|
+
'otp__digit': true,
|
|
83
|
+
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
84
|
+
'otp__digit--error': this.error,
|
|
85
|
+
}, 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: '4c6f9131d4a5b197dea318d6309540823b4cdfeb', class: "otp__error" }, this.errorMessage)), h("div", { key: 'a6a32b9ee19bc1b0394d5c14fbc44ddf73536630', 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")))));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
DropiOtpSendCode.style = dropiOtpSendCodeCss();
|
|
89
|
+
|
|
90
|
+
export { DropiOtpSendCode as dropi_otp_send_code };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
2
|
|
|
3
|
-
const dropiPaginatorCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.paginator{display:flex;align-items:center;justify-content:flex-end;gap:var(--Size-4, 16px);flex-wrap:wrap}.paginator-pages{display:flex;align-items:center;gap:var(--Size-1, 4px)}.paginator-btn{
|
|
3
|
+
const dropiPaginatorCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.paginator{display:flex;align-items:center;justify-content:flex-end;gap:var(--Size-4, 16px);flex-wrap:wrap}.paginator-pages{display:flex;align-items:center;gap:var(--Size-1, 4px)}.paginator-btn{width:32px;height:32px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.15s ease}.paginator-btn:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-btn:disabled{opacity:0.4;cursor:not-allowed}.paginator-btn--active{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #fff);font-weight:var(--font-weight-bold, 700)}.paginator-btn--active:hover{background:var(--Primary-Primary-500, #f49a3d)}.paginator-btn--arrow{width:auto;padding:0 var(--Size-2, 8px);border-radius:var(--Border-1, 4px);gap:4px}.paginator-btn--arrow:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-label{font-size:var(--font-size-s, 12px);color:inherit}.paginator-ellipsis{color:var(--Gray-Gray-400, #858ea6);padding:0 4px;font-size:var(--font-size-s, 12px);display:flex;align-items:center}.paginator-size{display:flex;align-items:center;gap:var(--Size-2, 8px)}.paginator-size-label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c)}.paginator-size-select{height:32px;padding:0 var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-1, 4px);background:var(--Neutral-White, #fff);color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;outline:none}`;
|
|
4
4
|
|
|
5
5
|
const DropiPaginator = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -15,6 +15,8 @@ const DropiPaginator = class {
|
|
|
15
15
|
page = 1;
|
|
16
16
|
/** Max page buttons to show at once */
|
|
17
17
|
maxPages = 5;
|
|
18
|
+
/** Hide "Anterior"/"Siguiente" text labels, show only arrows */
|
|
19
|
+
noLabels = false;
|
|
18
20
|
/** Whether to show the items-per-page selector */
|
|
19
21
|
showPageSizeSelector = false;
|
|
20
22
|
/** Options for items per page */
|
|
@@ -72,9 +74,9 @@ const DropiPaginator = class {
|
|
|
72
74
|
const pages = this.pageNumbers;
|
|
73
75
|
const isFirst = this.page <= 1;
|
|
74
76
|
const isLast = this.page >= this.totalPages;
|
|
75
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: '7a2b5b626be626d66d33cb7857d9243440559587', class: "paginator" }, this.showPageSizeSelector && (h("div", { key: 'e113aee78c554393e41ad1e2ec94daa24c65043e', class: "paginator-size" }, h("span", { key: 'ee5124c3b99a5d80b309df9d41daaf5c530a1313', class: "paginator-size-label" }, "Por p\u00E1gina:"), h("select", { key: '8c58fd97f11866a2467e4412be2cc18252d55d79', class: "paginator-size-select", onChange: (e) => this.onPageSizeChange(e) }, this.parsedOptions.map(opt => (h("option", { value: opt, selected: opt === this.pageSize }, opt)))))), h("div", { key: 'd727c882a91240cc9d777156c7b6cd2fac01ca67', class: "paginator-pages" }, !isFirst && !this.noLabels && (h("button", { key: '7efb966e0f8a6e8270ec8fda44551072acb46152', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina" }, h("dropi-icon", { key: 'ac59bf489afc4622101bdeaa2b1eb9d8628041d4', name: "Arrow-double-small-left", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isFirst && (h("button", { key: '0347c7803eed753d73fd0260330853995e74e734', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.page - 1), "aria-label": "Anterior" }, h("dropi-icon", { key: '7097ac1ba68a1953c686022ea73f812437cc96cd', name: "Dropdown-left", width: "16px", height: "16px", color: "Gray-Gray-600" }), !this.noLabels && h("span", { key: '786be5b0f0116c35c2685356607695e8f22328e0', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
76
78
|
? h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
77
|
-
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.page }, onClick: () => this.goTo(p), "aria-current": p === this.page ? 'page' : undefined }, p)), h("button", { key: '
|
|
79
|
+
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.page }, onClick: () => this.goTo(p), "aria-current": p === this.page ? 'page' : undefined }, p)), !isLast && (h("button", { key: 'e462ff2d53d1b1361e813701fb549505e0eada30', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.page + 1), "aria-label": "Siguiente" }, !this.noLabels && h("span", { key: '1d40fa0b8b69c72c3e7eed4cd4732f009508e052', class: "paginator-label" }, "Siguiente"), h("dropi-icon", { key: 'efcc1414a52a3946f38e2b7790bcbed2fce42328', name: "Dropdown-Right", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (h("button", { key: 'ad08274cb7d624d141ee7c1599fb5662e5715aca', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina" }, h("dropi-icon", { key: '579969aa3a6c0bc538a2d68fc399e017a836136d', name: "Arrow-double-small-right", width: "16px", height: "16px", color: "Gray-Gray-600" }))))));
|
|
78
80
|
}
|
|
79
81
|
static get watchers() { return {
|
|
80
82
|
"pageSizeOptions": [{
|
|
@@ -31,7 +31,7 @@ const DropiRadioButton = class {
|
|
|
31
31
|
this.dropiChange.emit(e);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'd1f58dca9ddeacc153cfd1808fdc19d8c830e738', class: "dropi-radio-button" }, h("label", { key: '569169ec20f9d8fe69abe1869aed04f80f569fe8', htmlFor: this.inputId }, h("input", { key: '47f93ccdeedb805ec79e3f349aefb1b5e818437d', id: this.inputId, type: "radio", name: this.name, checked: this.checked, onChange: (e) => this.handleChange(e) }), this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get formAssociated() { return true; }
|
|
37
37
|
static get watchers() { return {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiRadioSelectionListCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.rsl__search{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);margin-bottom:var(--Size-2, 8px)}.rsl__search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:transparent}.rsl__list{display:flex;flex-direction:column;gap:var(--Size-2, 8px)}.rsl__item{display:flex;align-items:flex-start;gap:var(--Size-3, 12px);padding:var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);cursor:pointer;transition:border-color 0.15s, background 0.15s}.rsl__item:hover{background:var(--Gray-Gray-50, #f7f8fa)}.rsl__item--selected{border-color:var(--Primary-Primary-500, #f49a3d);background:var(--Primary-Primary-50, #fff5eb)}.rsl__radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--Gray-Gray-300, #a3abbf);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;transition:border-color 0.15s}.rsl__radio--checked{border-color:var(--Primary-Primary-500, #f49a3d)}.rsl__radio-dot{width:8px;height:8px;border-radius:50%;background:var(--Primary-Primary-500, #f49a3d)}.rsl__content{display:flex;flex-direction:column;gap:2px}.rsl__name{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.rsl__desc{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c)}`;
|
|
4
|
+
|
|
5
|
+
const DropiRadioSelectionList = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
9
|
+
this.dropiSearch = createEvent(this, "dropiSearch");
|
|
10
|
+
}
|
|
11
|
+
/** Options array or JSON string */
|
|
12
|
+
options = [];
|
|
13
|
+
/** Selected option id */
|
|
14
|
+
selectedOption = '';
|
|
15
|
+
/** Show search box */
|
|
16
|
+
showFilter = false;
|
|
17
|
+
/** Search placeholder */
|
|
18
|
+
filterPlaceholder = 'Buscar...';
|
|
19
|
+
/** Show description below name */
|
|
20
|
+
typeLayout = 'default';
|
|
21
|
+
filterText = '';
|
|
22
|
+
parsedOptions = [];
|
|
23
|
+
/** Emitted on selection change. e.detail = selected option id */
|
|
24
|
+
dropiChange;
|
|
25
|
+
/** Emitted on search. e.detail = search text */
|
|
26
|
+
dropiSearch;
|
|
27
|
+
optionsChanged(val) {
|
|
28
|
+
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
29
|
+
}
|
|
30
|
+
componentWillLoad() { this.optionsChanged(this.options); }
|
|
31
|
+
get filtered() {
|
|
32
|
+
if (!this.filterText)
|
|
33
|
+
return this.parsedOptions;
|
|
34
|
+
const q = this.filterText.toLowerCase();
|
|
35
|
+
return this.parsedOptions.filter(o => o.name?.toLowerCase().includes(q));
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return (h("div", { key: '211875c5fad7a56c67628e888d6d2d497d0c8e8b', class: "rsl" }, this.showFilter && (h("div", { key: '324adac3e9c8f3a9e93d7da82144395bdb619345', class: "rsl__search" }, h("dropi-icon", { key: 'fb6dd199750ffb508f75404faa4a3014350aa52a', name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: 'f2121473bdfe6b98441f12f2751a9d954468110b', class: "rsl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
39
|
+
this.filterText = e.target.value;
|
|
40
|
+
this.dropiSearch.emit(this.filterText);
|
|
41
|
+
} }))), h("div", { key: '6ad89bc1840bc512bb7c78839186092d7fc73d3b', class: "rsl__list" }, this.filtered.map(opt => {
|
|
42
|
+
const isSelected = opt.id === this.selectedOption;
|
|
43
|
+
return (h("div", { class: { 'rsl__item': true, 'rsl__item--selected': isSelected }, key: opt.id, onClick: () => { this.selectedOption = opt.id; this.dropiChange.emit(opt.id); } }, h("div", { class: { 'rsl__radio': true, 'rsl__radio--checked': isSelected } }, isSelected && h("div", { class: "rsl__radio-dot" })), h("div", { class: "rsl__content" }, h("span", { class: "rsl__name" }, opt.name), this.typeLayout === 'description' && opt.description && (h("span", { class: "rsl__desc" }, opt.description)))));
|
|
44
|
+
}))));
|
|
45
|
+
}
|
|
46
|
+
static get watchers() { return {
|
|
47
|
+
"options": [{
|
|
48
|
+
"optionsChanged": 0
|
|
49
|
+
}]
|
|
50
|
+
}; }
|
|
51
|
+
};
|
|
52
|
+
DropiRadioSelectionList.style = dropiRadioSelectionListCss();
|
|
53
|
+
|
|
54
|
+
export { DropiRadioSelectionList as dropi_radio_selection_list };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiReadMoreCss = () => `:host{display:block}.read-more__text{margin:0 0 4px;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-800, #1a2033);line-height:1.5}.read-more__toggle{background:none;border:none;padding:0;margin:0;font-size:var(--font-size-s, 12px);font-family:inherit;font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d);cursor:pointer;text-decoration:underline}.read-more__toggle:hover{color:var(--Primary-Primary-600, #d4872e)}`;
|
|
4
|
+
|
|
5
|
+
const DropiReadMore = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Full text to display */
|
|
10
|
+
text = '';
|
|
11
|
+
/** Maximum number of words before truncating */
|
|
12
|
+
maxWords = 20;
|
|
13
|
+
/** Allow collapsing back after expanding */
|
|
14
|
+
showSeeLess = true;
|
|
15
|
+
expanded = false;
|
|
16
|
+
get words() {
|
|
17
|
+
return (this.text || '').split(/\s+/).filter(Boolean);
|
|
18
|
+
}
|
|
19
|
+
get needsTruncation() {
|
|
20
|
+
return this.words.length > this.maxWords;
|
|
21
|
+
}
|
|
22
|
+
get displayText() {
|
|
23
|
+
if (!this.needsTruncation || this.expanded)
|
|
24
|
+
return this.text;
|
|
25
|
+
return this.words.slice(0, this.maxWords).join(' ') + '…';
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const showToggle = this.needsTruncation && (this.expanded ? this.showSeeLess : true);
|
|
29
|
+
return (h("div", { key: 'c1f9429714adae91cbc8431ef890304091415618', class: "read-more" }, h("p", { key: 'f17394eeeec531bdc2d77e3ad853cfb5079864bc', class: "read-more__text" }, this.displayText), showToggle && (h("button", { key: 'c5a1febc2557c2d96114edb10479048ab3af10b8', class: "read-more__toggle", onClick: () => this.expanded = !this.expanded }, this.expanded ? 'Ver menos' : 'Ver más'))));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
DropiReadMore.style = dropiReadMoreCss();
|
|
33
|
+
|
|
34
|
+
export { DropiReadMore as dropi_read_more };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiSearchCss = () => `:host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.search-label{display:block;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:4px}.search-input-row{position:relative;display:flex;align-items:center;width:100%}.search-icon{position:absolute;left:10px;pointer-events:none;z-index:1}.search-input{width:100%;height:40px;padding:0 36px 0 34px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #fff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);outline:none;transition:border-color 0.2s}.search-input:focus{border-color:var(--Info-Info-500, #50a5f1)}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-clear{position:absolute;right:10px;display:flex;align-items:center;background:none;border:none;padding:0;cursor:pointer;z-index:1}.search-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:var(--dropdown-height, 240px);overflow-y:auto;background:var(--Neutral-White, #fff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.08);z-index:100}.search-option{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);cursor:pointer;transition:background 0.15s;user-select:none}.search-option:hover{background:var(--Gray-Gray-50, #f7f8fa)}.search-option--selected{background:var(--Primary-Primary-50, #fff5eb)}.search-option__label{flex:1;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-no-results{padding:var(--Size-3, 12px);font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-400, #858ea6);text-align:center}`;
|
|
4
|
+
|
|
5
|
+
const DropiSearch = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.dropiInput = createEvent(this, "dropiInput");
|
|
9
|
+
this.dropiBlur = createEvent(this, "dropiBlur");
|
|
10
|
+
this.dropiKeyEnter = createEvent(this, "dropiKeyEnter");
|
|
11
|
+
this.dropiClear = createEvent(this, "dropiClear");
|
|
12
|
+
this.dropiChange = createEvent(this, "dropiChange");
|
|
13
|
+
}
|
|
14
|
+
/** Placeholder text */
|
|
15
|
+
placeholder = 'Buscar...';
|
|
16
|
+
/** Controlled input value */
|
|
17
|
+
value = '';
|
|
18
|
+
/** Max character length */
|
|
19
|
+
maxlength;
|
|
20
|
+
/** Show clear (×) button when input has text */
|
|
21
|
+
showClear = true;
|
|
22
|
+
/** Data source to filter. Pass as array or JSON string */
|
|
23
|
+
options = [];
|
|
24
|
+
/** Property name to display and search */
|
|
25
|
+
labelKey = 'name';
|
|
26
|
+
/** Allow multiple selection */
|
|
27
|
+
multiSelect = false;
|
|
28
|
+
/** Max height of dropdown (CSS value) */
|
|
29
|
+
dropdownHeight = '240px';
|
|
30
|
+
/** Label shown above the input */
|
|
31
|
+
label = '';
|
|
32
|
+
open = false;
|
|
33
|
+
selected = [];
|
|
34
|
+
parsedOptions = [];
|
|
35
|
+
/** Emitted on input change. e.detail = current text */
|
|
36
|
+
dropiInput;
|
|
37
|
+
/** Emitted on blur */
|
|
38
|
+
dropiBlur;
|
|
39
|
+
/** Emitted when Enter is pressed. e.detail = current text */
|
|
40
|
+
dropiKeyEnter;
|
|
41
|
+
/** Emitted when clear button clicked */
|
|
42
|
+
dropiClear;
|
|
43
|
+
/** Emitted when selection changes. e.detail = selected items */
|
|
44
|
+
dropiChange;
|
|
45
|
+
optionsChanged(val) {
|
|
46
|
+
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
this.optionsChanged(this.options);
|
|
50
|
+
}
|
|
51
|
+
get filtered() {
|
|
52
|
+
if (!this.value)
|
|
53
|
+
return this.parsedOptions;
|
|
54
|
+
const q = this.value.toLowerCase();
|
|
55
|
+
return this.parsedOptions.filter(o => String(o[this.labelKey] ?? '').toLowerCase().includes(q));
|
|
56
|
+
}
|
|
57
|
+
handleInput(e) {
|
|
58
|
+
this.value = e.target.value;
|
|
59
|
+
this.open = this.parsedOptions.length > 0;
|
|
60
|
+
this.dropiInput.emit(this.value);
|
|
61
|
+
}
|
|
62
|
+
handleKeyDown(e) {
|
|
63
|
+
if (e.key === 'Enter')
|
|
64
|
+
this.dropiKeyEnter.emit(this.value);
|
|
65
|
+
if (e.key === 'Escape')
|
|
66
|
+
this.open = false;
|
|
67
|
+
}
|
|
68
|
+
handleClear() {
|
|
69
|
+
this.value = '';
|
|
70
|
+
this.open = false;
|
|
71
|
+
this.dropiClear.emit();
|
|
72
|
+
this.dropiInput.emit('');
|
|
73
|
+
}
|
|
74
|
+
isSelected(opt) {
|
|
75
|
+
return this.selected.some(s => s[this.labelKey] === opt[this.labelKey]);
|
|
76
|
+
}
|
|
77
|
+
selectOption(opt) {
|
|
78
|
+
if (this.multiSelect) {
|
|
79
|
+
if (this.isSelected(opt)) {
|
|
80
|
+
this.selected = this.selected.filter(s => s[this.labelKey] !== opt[this.labelKey]);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this.selected = [...this.selected, opt];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.value = opt[this.labelKey] ?? '';
|
|
88
|
+
this.selected = [opt];
|
|
89
|
+
this.open = false;
|
|
90
|
+
}
|
|
91
|
+
this.dropiChange.emit(this.selected);
|
|
92
|
+
}
|
|
93
|
+
render() {
|
|
94
|
+
const showDropdown = this.open && this.parsedOptions.length > 0;
|
|
95
|
+
return (h("div", { key: '279addf53afde1573747ffaf657a13160eeb3743', class: "search-wrap" }, this.label && h("label", { key: '1f85892d998de1e9086ea6d8d077ace4d92ec6bd', class: "search-label" }, this.label), h("div", { key: 'af9a3592bb880598d6aa9790a2929d813a268b83', class: "search-input-row" }, h("dropi-icon", { key: '02bfc0bb9319e7918dcd9e24ebe5bd8d4c23df24', class: "search-icon", name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: '62faea9197d2f376d0befe0c740865386877474a', class: "search-input", type: "text", placeholder: this.placeholder, value: this.value, maxLength: this.maxlength, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => {
|
|
96
|
+
if (this.parsedOptions.length)
|
|
97
|
+
this.open = true;
|
|
98
|
+
}, onBlur: () => { setTimeout(() => this.open = false, 150); this.dropiBlur.emit(); } }), this.showClear && this.value && (h("button", { key: '9ca3eb1c01aa527768fe0b34d60f2e8e4637fd20', class: "search-clear", onClick: () => this.handleClear(), "aria-label": "Limpiar" }, h("dropi-icon", { key: '4dbd5f3d1226b6925a832fc4651e5c3610f33575', name: "Close-small", width: "16px", height: "16px", color: "Gray-Gray-400" })))), showDropdown && (h("div", { key: '0f60b572e94cd5d9c4ef0595a2345314ea2622eb', class: "search-dropdown", style: { '--dropdown-height': this.dropdownHeight } }, this.filtered.length === 0 ? (h("div", { class: "search-no-results" }, "Sin resultados")) : (this.filtered.map((opt, i) => (h("div", { class: { 'search-option': true, 'search-option--selected': this.isSelected(opt) }, key: i, onMouseDown: (e) => { e.preventDefault(); this.selectOption(opt); } }, this.multiSelect && h("dropi-checkbox", { checked: this.isSelected(opt) }), h("span", { class: "search-option__label" }, opt[this.labelKey])))))))));
|
|
99
|
+
}
|
|
100
|
+
static get watchers() { return {
|
|
101
|
+
"options": [{
|
|
102
|
+
"optionsChanged": 0
|
|
103
|
+
}]
|
|
104
|
+
}; }
|
|
105
|
+
};
|
|
106
|
+
DropiSearch.style = dropiSearchCss();
|
|
107
|
+
|
|
108
|
+
export { DropiSearch as dropi_search };
|
|
@@ -313,7 +313,7 @@ const DropiSelect = class {
|
|
|
313
313
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (h("li", { class: "no-results" }, "Sin resultados"))));
|
|
314
314
|
}
|
|
315
315
|
render() {
|
|
316
|
-
return (h("div", { key: '
|
|
316
|
+
return (h("div", { key: '276daabfaed1bf21977f4dfee1c5da3aefed63ba', class: "custom-select" }, !this.dropdownType && this.label && (h("label", { key: '59a04e375f10bf2f9f85f17aaa47fe7b169f98d3', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && h("span", { key: 'e801bfc29322e1e389b0d838a38b04168cb5a6b3', class: "asterisk" }, " *"))), h("div", { key: '190fdc37fc2b7464aea841514fb3ab7f71ef0d04', class: "dropdown-container" }, this.dropdownType && this.label && (h("div", { key: '41c952f237f08af7d499d82fb49b9230fccfed99', class: "left-label" }, this.label)), this.renderTrigger()), this.helperText && !this.invalid && (h("div", { key: 'f87a7f09f8c0cb3f4768e4c18604dc626a8769a7', class: "select-helper" }, h("span", { key: 'fc967f18d637b2469997ec67d252e0f28c66ec7d' }, this.helperText))), this.invalid && this.errorText && (h("div", { key: '3b59c1c81921f5a5890d464c4d9072ef09965232', class: "select-helper-error" }, h("dropi-icon", { key: '83d0975b4e606ec11e1f8f1a43ec8407d0b22c0e', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" }), h("span", { key: 'ab365dad523b9069006d12942b169477b26a242e' }, this.errorText))), this.renderDropdown()));
|
|
317
317
|
}
|
|
318
318
|
static get formAssociated() { return true; }
|
|
319
319
|
static get watchers() { return {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiSimpleStepperCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__item{display:flex;flex-direction:column;align-items:center;flex:1}.stepper__circle-row{display:flex;align-items:center;width:100%}.stepper__circle{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Gray-Gray-100, #e6eaf2);border:2px solid var(--Gray-Gray-200, #c3c9d9)}.stepper__circle--active{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__dot{width:8px;height:8px;border-radius:50%;background:var(--Neutral-White, #fff);display:block}.stepper__circle--pending .stepper__dot{background:var(--Gray-Gray-400, #858ea6)}.stepper__number{font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);color:var(--Neutral-White, #fff)}.stepper__circle--pending .stepper__number{color:var(--Gray-Gray-500, #69738c)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{margin-top:6px;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);text-align:center}`;
|
|
4
|
+
|
|
5
|
+
const DropiSimpleStepper = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Total steps */
|
|
10
|
+
stepsCount = 3;
|
|
11
|
+
/** Circle content: 'point' (dot) | 'number' */
|
|
12
|
+
typeStep = 'number';
|
|
13
|
+
/** Current active step (1-based) */
|
|
14
|
+
currentStep = 1;
|
|
15
|
+
/** Labels shown below each step. Pass as JSON string or array */
|
|
16
|
+
labelStepper = [];
|
|
17
|
+
/** Flow mode (visual only) */
|
|
18
|
+
flowMode = 'Sequential';
|
|
19
|
+
get parsedLabels() {
|
|
20
|
+
if (typeof this.labelStepper === 'string') {
|
|
21
|
+
try {
|
|
22
|
+
return JSON.parse(this.labelStepper);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return this.labelStepper || [];
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
const labels = this.parsedLabels;
|
|
32
|
+
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
33
|
+
return (h("div", { key: 'fc845e4030b4a41c636bc93b969ec561a8e152a5', class: "stepper" }, steps.map((step, i) => {
|
|
34
|
+
const isCompleted = step < this.currentStep;
|
|
35
|
+
const isActive = step === this.currentStep;
|
|
36
|
+
const isLast = i === steps.length - 1;
|
|
37
|
+
const label = labels[i];
|
|
38
|
+
return (h("div", { class: "stepper__item", key: step }, h("div", { class: "stepper__circle-row" }, h("div", { class: {
|
|
39
|
+
'stepper__circle': true,
|
|
40
|
+
'stepper__circle--active': isActive,
|
|
41
|
+
'stepper__circle--completed': isCompleted,
|
|
42
|
+
'stepper__circle--pending': !isActive && !isCompleted,
|
|
43
|
+
} }, this.typeStep === 'point' ? (h("span", { class: "stepper__dot" })) : (h("span", { class: "stepper__number" }, step))), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': isCompleted } })), label && h("span", { class: "stepper__label" }, label)));
|
|
44
|
+
})));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
DropiSimpleStepper.style = dropiSimpleStepperCss();
|
|
48
|
+
|
|
49
|
+
export { DropiSimpleStepper as dropi_simple_stepper };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
+
|
|
3
|
+
const dropiStepsCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__step{display:flex;flex-direction:column;align-items:center;flex:1;position:relative}.stepper__circle-wrap{display:flex;align-items:center;width:100%;position:relative}.stepper__circle{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);flex-shrink:0;z-index:1;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Neutral-White, #fff);border:2px solid var(--Gray-Gray-200, #c3c9d9);color:var(--Gray-Gray-400, #858ea6)}.stepper__circle--focus{background:var(--Neutral-White, #fff);border:2px solid var(--Primary-Primary-500, #f49a3d);color:var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #fff)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:var(--Size-2, 8px);text-align:center;padding:0 4px}.stepper__title{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.stepper__desc{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c)}`;
|
|
4
|
+
|
|
5
|
+
const DropiSteps = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Total number of steps */
|
|
10
|
+
stepsCount = 3;
|
|
11
|
+
/** Show step number inside the circle */
|
|
12
|
+
showNumberOfStep = true;
|
|
13
|
+
/** Active/current step index (1-based) */
|
|
14
|
+
currentStep = 1;
|
|
15
|
+
/** Labels for each step. Pass as JSON string or array */
|
|
16
|
+
stepLabels = [];
|
|
17
|
+
get parsedLabels() {
|
|
18
|
+
if (typeof this.stepLabels === 'string') {
|
|
19
|
+
try {
|
|
20
|
+
return JSON.parse(this.stepLabels);
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return this.stepLabels || [];
|
|
27
|
+
}
|
|
28
|
+
stepState(index) {
|
|
29
|
+
if (index < this.currentStep)
|
|
30
|
+
return 'completed';
|
|
31
|
+
if (index === this.currentStep)
|
|
32
|
+
return 'focus';
|
|
33
|
+
return 'pending';
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
const labels = this.parsedLabels;
|
|
37
|
+
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
38
|
+
return (h("div", { key: '446597aa40fdfd1c5e5274a89d3cc45a98003da9', class: "stepper" }, steps.map((step) => {
|
|
39
|
+
const state = this.stepState(step);
|
|
40
|
+
const label = labels[step - 1];
|
|
41
|
+
const isLast = step === this.stepsCount;
|
|
42
|
+
return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", width: "12px", height: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
|
|
43
|
+
})));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
DropiSteps.style = dropiStepsCss();
|
|
47
|
+
|
|
48
|
+
export { DropiSteps as dropi_steps };
|
|
@@ -19,7 +19,7 @@ const DropiSwitch = class {
|
|
|
19
19
|
this.dropiChange.emit(this.isChecked);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("label", { key: '
|
|
22
|
+
return (h("label", { key: 'd756605f85a24fdbf8714824921b17e618bde921', class: "toggle-switch" }, h("input", { key: '8d774e122778bd286269552ebabac1c04aa894c4', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), h("span", { key: 'ff8d52dec5653e82fa965bca0ddd19ecb49cdad3', class: "slider" })));
|
|
23
23
|
}
|
|
24
24
|
static get formAssociated() { return true; }
|
|
25
25
|
};
|
|
@@ -29,7 +29,7 @@ const DropiTabs = class {
|
|
|
29
29
|
this.dropiTabChange.emit(tab);
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '73bb4c928411c00cd9c6cfa6c0ed591c4573bbb1', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
33
33
|
const isActive = tab.id === this.activeTab;
|
|
34
34
|
return (h("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, h("span", { class: "tab-label-row" }, h("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (h("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
35
35
|
? h("dropi-icon", { name: "Check-circle", width: "12px", height: "12px", color: "Success-Success-500" })
|
|
@@ -50,7 +50,7 @@ const DropiTag = class {
|
|
|
50
50
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '65711113151698b330e945197d0b626130dc06ef', class: "container-chips" }, h("div", { key: 'c49964c1bcdfd96f538a1782a4b564a0e73fa87e', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (h("dropi-icon", { key: 'cb1ed97b3f33c8e4171899f78a84e3572a37e462', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && h("span", { key: '92d71bb6f51dd7fa362023c230f27f9fa59744c0' }, this.text))));
|
|
54
54
|
}
|
|
55
55
|
static get watchers() { return {
|
|
56
56
|
"type": [{
|