@purpur/library 9.8.1 → 9.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +57 -0
- package/CHANGELOG.md +23 -1
- package/dist/{autocomplete-CcVDJbwS.js → autocomplete-C6FXaaAT.js} +2 -2
- package/dist/{autocomplete-CcVDJbwS.js.map → autocomplete-C6FXaaAT.js.map} +1 -1
- package/dist/{autocomplete-DF17Zm7Q.mjs → autocomplete-q4ObPRfM.mjs} +2 -2
- package/dist/{autocomplete-DF17Zm7Q.mjs.map → autocomplete-q4ObPRfM.mjs.map} +1 -1
- package/dist/autocomplete.cjs.js +1 -1
- package/dist/autocomplete.es.js +1 -1
- package/dist/button-4-yWOgtD.mjs.map +1 -1
- package/dist/button-DmybVApa.js.map +1 -1
- package/dist/{comparison-table-DQJL1IVC.mjs → comparison-table-D1evE0ri.mjs} +77 -77
- package/dist/{comparison-table-DQJL1IVC.mjs.map → comparison-table-D1evE0ri.mjs.map} +1 -1
- package/dist/{comparison-table-DHFpydbq.js → comparison-table-Dtqxz8vL.js} +2 -2
- package/dist/{comparison-table-DHFpydbq.js.map → comparison-table-Dtqxz8vL.js.map} +1 -1
- package/dist/comparison-table.cjs.js +1 -1
- package/dist/comparison-table.es.js +1 -1
- package/dist/components/button/src/button.d.ts +3 -22
- package/dist/components/button/src/button.d.ts.map +1 -1
- package/dist/components/counter-badge/src/counter-badge.visual.fixtures.d.ts +13 -0
- package/dist/components/counter-badge/src/counter-badge.visual.fixtures.d.ts.map +1 -0
- package/dist/components/cta-link/src/cta-link.d.ts +6 -4
- package/dist/components/cta-link/src/cta-link.d.ts.map +1 -1
- package/dist/components/cta-link/src/cta-link.visual.fixtures.d.ts +14 -0
- package/dist/components/cta-link/src/cta-link.visual.fixtures.d.ts.map +1 -0
- package/dist/components/date-field/src/date-field.visual.fixtures.d.ts +14 -0
- package/dist/components/date-field/src/date-field.visual.fixtures.d.ts.map +1 -0
- package/dist/components/icon/src/all-icon-components.d.ts +3 -0
- package/dist/components/icon/src/all-icon-components.d.ts.map +1 -1
- package/dist/components/icon/src/all-icons.d.ts +3 -0
- package/dist/components/icon/src/all-icons.d.ts.map +1 -1
- package/dist/components/icon/src/assets/moon.d.ts +7 -0
- package/dist/components/icon/src/assets/moon.d.ts.map +1 -0
- package/dist/components/icon/src/assets/sun.d.ts +7 -0
- package/dist/components/icon/src/assets/sun.d.ts.map +1 -0
- package/dist/components/icon/src/assets/unpin.d.ts +7 -0
- package/dist/components/icon/src/assets/unpin.d.ts.map +1 -0
- package/dist/components/icon/src/components/moon.d.ts +7 -0
- package/dist/components/icon/src/components/moon.d.ts.map +1 -0
- package/dist/components/icon/src/components/sun.d.ts +7 -0
- package/dist/components/icon/src/components/sun.d.ts.map +1 -0
- package/dist/components/icon/src/components/unpin.d.ts +7 -0
- package/dist/components/icon/src/components/unpin.d.ts.map +1 -0
- package/dist/components/icon/src/icon-imports.d.ts +18 -0
- package/dist/components/icon/src/icon-imports.d.ts.map +1 -1
- package/dist/components/illustrative-icon/src/all-animated-illustrative-icon-components.d.ts +34 -0
- package/dist/components/illustrative-icon/src/all-animated-illustrative-icon-components.d.ts.map +1 -1
- package/dist/components/illustrative-icon/src/all-static-illustrative-icon-components.d.ts +36 -0
- package/dist/components/illustrative-icon/src/all-static-illustrative-icon-components.d.ts.map +1 -1
- package/dist/components/illustrative-icon/src/assets/accessories-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/accessories-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/accessories-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/accessories-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/bag-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/bag-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/bag-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/bag-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/bag-plus-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/bag-plus-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/bag-plus-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/bag-plus-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/box-sync-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/box-sync-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/box-sync-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/box-sync-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/display-protection-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/display-protection-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/display-protection-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/display-protection-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/enrollment-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/enrollment-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/enrollment-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/enrollment-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-plus-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-plus-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-plus-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/gift-box-plus-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/info-letter-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/info-letter-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/info-letter-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/info-letter-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/leaf-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/leaf-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/leaf-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/leaf-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/number-tranfer-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/number-tranfer-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/number-tranfer-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/number-tranfer-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/page-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/page-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/page-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/page-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/phone-repair-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/phone-repair-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/phone-repair-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/phone-repair-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/phone-settings-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/phone-settings-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/phone-settings-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/phone-settings-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/return-label-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/return-label-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/return-label-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/return-label-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/settings-pen-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/settings-pen-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/settings-pen-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/settings-pen-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/shield-time-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/shield-time-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/shield-time-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/shield-time-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/user-duocolor-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/user-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/assets/user-offblack-static.d.ts +4 -0
- package/dist/components/illustrative-icon/src/assets/user-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/accessories-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/accessories-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/accessories-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/accessories-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/accessories-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/accessories-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/accessories-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/accessories-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/bag-plus-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/box-sync-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/box-sync-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/box-sync-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/box-sync-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/box-sync-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/box-sync-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/box-sync-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/box-sync-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/display-protection-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/display-protection-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/display-protection-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/display-protection-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/display-protection-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/display-protection-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/display-protection-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/display-protection-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/enrollment-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/enrollment-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/enrollment-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/enrollment-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/enrollment-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/enrollment-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/enrollment-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/enrollment-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/gift-box-plus-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/info-letter-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/info-letter-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/info-letter-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/info-letter-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/info-letter-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/info-letter-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/info-letter-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/info-letter-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/leaf-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/leaf-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/leaf-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/leaf-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/leaf-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/leaf-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/leaf-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/leaf-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/number-tranfer-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/number-tranfer-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/number-tranfer-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/number-tranfer-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/number-transfer-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/number-transfer-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/number-transfer-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/number-transfer-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/page-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/page-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/page-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/page-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-repair-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/phone-settings-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/return-label-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/return-label-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/return-label-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/return-label-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/return-label-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/return-label-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/return-label-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/return-label-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/settings-pen-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/shield-time-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/shield-time-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/shield-time-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/shield-time-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/shield-time-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/shield-time-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/shield-time-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/shield-time-offblack-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/user-duocolor-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/user-duocolor-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/user-duocolor-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/user-duocolor-static.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/user-offblack-animated.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/user-offblack-animated.d.ts.map +1 -0
- package/dist/components/illustrative-icon/src/components/user-offblack-static.d.ts +7 -0
- package/dist/components/illustrative-icon/src/components/user-offblack-static.d.ts.map +1 -0
- package/dist/components/label/src/label.visual.fixtures.d.ts +14 -0
- package/dist/components/label/src/label.visual.fixtures.d.ts.map +1 -0
- package/dist/components/listbox/src/listbox.visual.fixtures.d.ts +13 -0
- package/dist/components/listbox/src/listbox.visual.fixtures.d.ts.map +1 -0
- package/dist/components/select/src/select.d.ts.map +1 -1
- package/dist/components/select/src/select.visual.fixtures.d.ts +14 -0
- package/dist/components/select/src/select.visual.fixtures.d.ts.map +1 -0
- package/dist/components/table/src/story-utils/column-def.d.ts.map +1 -1
- package/dist/components/table/src/table-column-header-cell.d.ts +3 -10
- package/dist/components/table/src/table-column-header-cell.d.ts.map +1 -1
- package/dist/components/table/src/table-headers.d.ts +2 -4
- package/dist/components/table/src/table-headers.d.ts.map +1 -1
- package/dist/components/table/src/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/src/table.d.ts +2 -2
- package/dist/components/table/src/table.d.ts.map +1 -1
- package/dist/components/table/src/test-utils/helpers.d.ts +0 -5
- package/dist/components/table/src/test-utils/helpers.d.ts.map +1 -1
- package/dist/components/table/src/types.d.ts +8 -8
- package/dist/components/table/src/types.d.ts.map +1 -1
- package/dist/components/table/src/use-drag-handle.hook.d.ts.map +1 -1
- package/dist/components/text-field/src/text-field-base.d.ts.map +1 -1
- package/dist/components-metadata.js +456 -0
- package/dist/{date-field-HEFdHIxk.mjs → date-field-DOCLv_xS.mjs} +2 -2
- package/dist/{date-field-HEFdHIxk.mjs.map → date-field-DOCLv_xS.mjs.map} +1 -1
- package/dist/{date-field-CKxEWHG3.js → date-field-uN87mgbH.js} +2 -2
- package/dist/{date-field-CKxEWHG3.js.map → date-field-uN87mgbH.js.map} +1 -1
- package/dist/date-field.cjs.js +1 -1
- package/dist/date-field.es.js +1 -1
- package/dist/{date-picker-cQewKIMN.mjs → date-picker-BtEuRtAu.mjs} +3 -3
- package/dist/{date-picker-cQewKIMN.mjs.map → date-picker-BtEuRtAu.mjs.map} +1 -1
- package/dist/{date-picker-CDBwkAJI.js → date-picker-X8b9wDfp.js} +2 -2
- package/dist/{date-picker-CDBwkAJI.js.map → date-picker-X8b9wDfp.js.map} +1 -1
- package/dist/date-picker.cjs.js +1 -1
- package/dist/date-picker.es.js +1 -1
- package/dist/{date-range-field-_WctWD29.mjs → date-range-field-B6gP8w2w.mjs} +2 -2
- package/dist/{date-range-field-_WctWD29.mjs.map → date-range-field-B6gP8w2w.mjs.map} +1 -1
- package/dist/{date-range-field-D7Hn9FGN.js → date-range-field-DLt6q5TQ.js} +2 -2
- package/dist/{date-range-field-D7Hn9FGN.js.map → date-range-field-DLt6q5TQ.js.map} +1 -1
- package/dist/date-range-field.cjs.js +1 -1
- package/dist/date-range-field.es.js +1 -1
- package/dist/{footer-CS6ZfztM.js → footer-Cn1-zG1v.js} +2 -2
- package/dist/{footer-CS6ZfztM.js.map → footer-Cn1-zG1v.js.map} +1 -1
- package/dist/{footer-OJXbTn1e.mjs → footer-D-2b7UIB.mjs} +2 -2
- package/dist/{footer-OJXbTn1e.mjs.map → footer-D-2b7UIB.mjs.map} +1 -1
- package/dist/footer.cjs.js +1 -1
- package/dist/footer.es.js +1 -1
- package/dist/icon/all-icon-components.d.ts +3 -0
- package/dist/icon/all-icon-components.d.ts.map +1 -1
- package/dist/icon/all-icons.cjs.js +1 -1
- package/dist/icon/all-icons.cjs.js.map +1 -1
- package/dist/icon/all-icons.d.ts +3 -0
- package/dist/icon/all-icons.d.ts.map +1 -1
- package/dist/icon/all-icons.es.js +395 -377
- package/dist/icon/all-icons.es.js.map +1 -1
- package/dist/icon/assets/moon.cjs.js +2 -0
- package/dist/icon/assets/moon.cjs.js.map +1 -0
- package/dist/icon/assets/moon.d.ts +7 -0
- package/dist/icon/assets/moon.d.ts.map +1 -0
- package/dist/icon/assets/moon.es.js +10 -0
- package/dist/icon/assets/moon.es.js.map +1 -0
- package/dist/icon/assets/sun.cjs.js +2 -0
- package/dist/icon/assets/sun.cjs.js.map +1 -0
- package/dist/icon/assets/sun.d.ts +7 -0
- package/dist/icon/assets/sun.d.ts.map +1 -0
- package/dist/icon/assets/sun.es.js +10 -0
- package/dist/icon/assets/sun.es.js.map +1 -0
- package/dist/icon/assets/unpin.cjs.js +2 -0
- package/dist/icon/assets/unpin.cjs.js.map +1 -0
- package/dist/icon/assets/unpin.d.ts +7 -0
- package/dist/icon/assets/unpin.d.ts.map +1 -0
- package/dist/icon/assets/unpin.es.js +10 -0
- package/dist/icon/assets/unpin.es.js.map +1 -0
- package/dist/icon/components/moon.cjs.js +2 -0
- package/dist/icon/components/moon.cjs.js.map +1 -0
- package/dist/icon/components/moon.d.ts +7 -0
- package/dist/icon/components/moon.d.ts.map +1 -0
- package/dist/icon/components/moon.es.js +13 -0
- package/dist/icon/components/moon.es.js.map +1 -0
- package/dist/icon/components/sun.cjs.js +2 -0
- package/dist/icon/components/sun.cjs.js.map +1 -0
- package/dist/icon/components/sun.d.ts +7 -0
- package/dist/icon/components/sun.d.ts.map +1 -0
- package/dist/icon/components/sun.es.js +13 -0
- package/dist/icon/components/sun.es.js.map +1 -0
- package/dist/icon/components/unpin.cjs.js +2 -0
- package/dist/icon/components/unpin.cjs.js.map +1 -0
- package/dist/icon/components/unpin.d.ts +7 -0
- package/dist/icon/components/unpin.d.ts.map +1 -0
- package/dist/icon/components/unpin.es.js +13 -0
- package/dist/icon/components/unpin.es.js.map +1 -0
- package/dist/icon/components-metadata.js +24 -0
- package/dist/icon/dynamic-icon.cjs.js +1 -1
- package/dist/icon/dynamic-icon.cjs.js.map +1 -1
- package/dist/icon/dynamic-icon.es.js +1 -1
- package/dist/icon/dynamic-icon.es.js.map +1 -1
- package/dist/icon/icon-imports.d.ts +18 -0
- package/dist/icon/icon-imports.d.ts.map +1 -1
- package/dist/icon/moon.svg +1 -0
- package/dist/icon/sun.svg +1 -0
- package/dist/icon/unpin.svg +1 -0
- package/dist/illustrative-icon/all-animated-illustrative-icon-components.d.ts +34 -0
- package/dist/illustrative-icon/all-animated-illustrative-icon-components.d.ts.map +1 -1
- package/dist/illustrative-icon/all-static-illustrative-icon-components.d.ts +36 -0
- package/dist/illustrative-icon/all-static-illustrative-icon-components.d.ts.map +1 -1
- package/dist/illustrative-icon/assets/accessories-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/accessories-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/accessories-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/accessories-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/bag-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/bag-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/bag-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/bag-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/bag-plus-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/bag-plus-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/bag-plus-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/bag-plus-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/box-sync-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/box-sync-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/box-sync-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/box-sync-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/display-protection-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/display-protection-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/display-protection-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/display-protection-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/enrollment-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/enrollment-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/enrollment-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/enrollment-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/gift-box-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/gift-box-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/gift-box-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/gift-box-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/gift-box-plus-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/gift-box-plus-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/gift-box-plus-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/gift-box-plus-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/info-letter-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/info-letter-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/info-letter-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/info-letter-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/json/accessories-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/accessories-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/bag-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/bag-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/bag-plus-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/bag-plus-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/box-sync-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/box-sync-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/display-protection-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/display-protection-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/enrollment-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/enrollment-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/gift-box-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/gift-box-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/gift-box-plus-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/gift-box-plus-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/info-letter-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/info-letter-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/leaf-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/leaf-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/number-transfer-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/number-transfer-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/phone-repair-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/phone-repair-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/phone-settings-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/phone-settings-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/return-label-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/return-label-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/settings-pen-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/settings-pen-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/shield-time-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/shield-time-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/user-duocolor-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/json/user-offblack-animated.json.d.ts +3 -0
- package/dist/illustrative-icon/assets/leaf-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/leaf-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/leaf-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/leaf-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/number-tranfer-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/number-tranfer-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/number-tranfer-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/number-tranfer-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/page-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/page-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/page-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/page-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/phone-repair-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/phone-repair-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/phone-repair-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/phone-repair-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/phone-settings-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/phone-settings-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/phone-settings-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/phone-settings-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/return-label-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/return-label-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/return-label-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/return-label-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/settings-pen-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/settings-pen-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/settings-pen-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/settings-pen-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/shield-time-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/shield-time-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/shield-time-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/shield-time-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/user-duocolor-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/user-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/assets/user-offblack-static.d.ts +4 -0
- package/dist/illustrative-icon/assets/user-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/accessories-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/accessories-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/accessories-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/accessories-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/bag-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/bag-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/bag-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/bag-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/bag-plus-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/bag-plus-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/box-sync-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/box-sync-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/box-sync-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/display-protection-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/display-protection-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/display-protection-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/enrollment-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/enrollment-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/enrollment-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/gift-box-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/gift-box-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/gift-box-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/gift-box-plus-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/gift-box-plus-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/info-letter-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/info-letter-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/info-letter-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/leaf-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/leaf-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/leaf-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/leaf-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/number-tranfer-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/number-tranfer-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/number-transfer-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/number-transfer-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/page-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/page-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/page-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/page-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/page-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/page-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/page-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/page-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/page-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/page-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/page-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/page-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/phone-repair-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/phone-repair-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/phone-settings-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/phone-settings-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/return-label-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/return-label-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/return-label-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/return-label-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/settings-pen-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/settings-pen-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/shield-time-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/shield-time-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/shield-time-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.es.js +20 -0
- package/dist/illustrative-icon/components/user-duocolor-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/user-duocolor-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-static.d.ts +7 -0
- package/dist/illustrative-icon/components/user-duocolor-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/user-duocolor-static.es.js +10 -0
- package/dist/illustrative-icon/components/user-duocolor-static.es.js.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-animated.cjs.js +2 -0
- package/dist/illustrative-icon/components/user-offblack-animated.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-animated.d.ts +7 -0
- package/dist/illustrative-icon/components/user-offblack-animated.d.ts.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-animated.es.js +20 -0
- package/dist/illustrative-icon/components/user-offblack-animated.es.js.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-static.cjs.js +2 -0
- package/dist/illustrative-icon/components/user-offblack-static.cjs.js.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-static.d.ts +7 -0
- package/dist/illustrative-icon/components/user-offblack-static.d.ts.map +1 -0
- package/dist/illustrative-icon/components/user-offblack-static.es.js +10 -0
- package/dist/illustrative-icon/components/user-offblack-static.es.js.map +1 -0
- package/dist/illustrative-icon/components-metadata.js +280 -0
- package/dist/libraries/action/src/action.d.ts +2 -1
- package/dist/libraries/action/src/action.d.ts.map +1 -1
- package/dist/library.cjs.js +1 -1
- package/dist/library.es.js +12 -12
- package/dist/{pagination-BDfaybj3.js → pagination-C1rYXq9I.js} +2 -2
- package/dist/{pagination-BDfaybj3.js.map → pagination-C1rYXq9I.js.map} +1 -1
- package/dist/{pagination-Bm38GKga.mjs → pagination-CS1AMyBl.mjs} +2 -2
- package/dist/{pagination-Bm38GKga.mjs.map → pagination-CS1AMyBl.mjs.map} +1 -1
- package/dist/pagination.cjs.js +1 -1
- package/dist/pagination.es.js +1 -1
- package/dist/purpur.css +1 -1
- package/dist/{quantity-selector-B4YnfmNb.mjs → quantity-selector-COtqc-Iy.mjs} +2 -2
- package/dist/{quantity-selector-B4YnfmNb.mjs.map → quantity-selector-COtqc-Iy.mjs.map} +1 -1
- package/dist/{quantity-selector-CTBoxiPO.js → quantity-selector-CwxuBsVC.js} +2 -2
- package/dist/{quantity-selector-CTBoxiPO.js.map → quantity-selector-CwxuBsVC.js.map} +1 -1
- package/dist/quantity-selector.cjs.js +1 -1
- package/dist/quantity-selector.es.js +1 -1
- package/dist/{search-field-BPLzy3RR.mjs → search-field-BMC3WG2H.mjs} +2 -2
- package/dist/{search-field-BPLzy3RR.mjs.map → search-field-BMC3WG2H.mjs.map} +1 -1
- package/dist/{search-field-Dx4qCcrh.js → search-field-b1_QCs3U.js} +2 -2
- package/dist/{search-field-Dx4qCcrh.js.map → search-field-b1_QCs3U.js.map} +1 -1
- package/dist/search-field.cjs.js +1 -1
- package/dist/search-field.es.js +1 -1
- package/dist/select-D6R7I5b5.js +2 -0
- package/dist/select-D6R7I5b5.js.map +1 -0
- package/dist/{select-BEmu_fh9.mjs → select-XNPtpZhh.mjs} +59 -63
- package/dist/select-XNPtpZhh.mjs.map +1 -0
- package/dist/select.cjs.js +1 -1
- package/dist/select.es.js +1 -1
- package/dist/table-CR2Wj-O9.js +9 -0
- package/dist/{table-rS3hITtj.js.map → table-CR2Wj-O9.js.map} +1 -1
- package/dist/{table-D9MKkbPO.mjs → table-jvrz_ulj.mjs} +2315 -2337
- package/dist/{table-D9MKkbPO.mjs.map → table-jvrz_ulj.mjs.map} +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.es.js +1 -1
- package/dist/{text-field-D8MMa6ij.mjs → text-field-AsvqJh6P.mjs} +135 -135
- package/dist/text-field-AsvqJh6P.mjs.map +1 -0
- package/dist/{text-field-C2W13n15.js → text-field-CthxpKsp.js} +2 -2
- package/dist/text-field-CthxpKsp.js.map +1 -0
- package/dist/text-field.cjs.js +1 -1
- package/dist/text-field.es.js +1 -1
- package/package.json +25 -25
- package/dist/select-BEmu_fh9.mjs.map +0 -1
- package/dist/select-DOqTJgTj.js +0 -2
- package/dist/select-DOqTJgTj.js.map +0 -1
- package/dist/table-rS3hITtj.js +0 -9
- package/dist/text-field-C2W13n15.js.map +0 -1
- package/dist/text-field-D8MMa6ij.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { isValidElement as W, useRef as A, useState as V, useEffect as M, useCallback as
|
|
2
|
+
import { isValidElement as W, useRef as A, useState as V, useEffect as M, useCallback as k, useId as G, createElement as J } from "react";
|
|
3
3
|
import { c as D } from "./bind-CU-R61T-.mjs";
|
|
4
4
|
import { a as Q } from "./checkmark.es-DdgIZN2R.mjs";
|
|
5
5
|
import { e as U } from "./minus.es-BK9qA9iJ.mjs";
|
|
@@ -24,8 +24,8 @@ const er = {
|
|
|
24
24
|
"purpur-comparison-table-cell--minus": "_purpur-comparison-table-cell--minus_glb5z_20",
|
|
25
25
|
"purpur-comparison-table-cell__icon": "_purpur-comparison-table-cell__icon_glb5z_23"
|
|
26
26
|
}, H = D.bind(or), L = "purpur-comparison-table-cell", ar = ({ value: a }) => {
|
|
27
|
-
const c = W(a) || ["string", "number"].includes(typeof a), t = H(L, [c ? "" : `${L}--${a ? "check" : "minus"}`]),
|
|
28
|
-
return /* @__PURE__ */ r("span", { className: H(t), children: c ? a : /* @__PURE__ */ r(
|
|
27
|
+
const c = W(a) || ["string", "number"].includes(typeof a), t = H(L, [c ? "" : `${L}--${a ? "check" : "minus"}`]), y = a ? Q : U;
|
|
28
|
+
return /* @__PURE__ */ r("span", { className: H(t), children: c ? a : /* @__PURE__ */ r(y, { size: "xs", className: H(`${L}__icon`) }) });
|
|
29
29
|
}, tr = {
|
|
30
30
|
"purpur-comparison-table-lead-cell": "_purpur-comparison-table-lead-cell_rqs9w_1",
|
|
31
31
|
"purpur-comparison-table-lead-cell__description": "_purpur-comparison-table-lead-cell__description_rqs9w_5",
|
|
@@ -42,56 +42,56 @@ const er = {
|
|
|
42
42
|
c && /* @__PURE__ */ r(q, { variant: "paragraph-100", className: O(`${j}__description`), children: c })
|
|
43
43
|
] });
|
|
44
44
|
}, nr = {
|
|
45
|
-
"purpur-comparison-table-option-card": "_purpur-comparison-table-option-
|
|
46
|
-
"purpur-comparison-table-option-card--highlighted": "_purpur-comparison-table-option-card--
|
|
47
|
-
"purpur-comparison-table-option-card__badge": "_purpur-comparison-table-option-
|
|
48
|
-
"purpur-comparison-table-option-card__main-content": "_purpur-comparison-table-option-card__main-
|
|
49
|
-
"purpur-comparison-table-option-card__image": "_purpur-comparison-table-option-
|
|
50
|
-
"purpur-comparison-table-option-card__body": "_purpur-comparison-table-option-
|
|
51
|
-
"purpur-comparison-table-option-card__description": "_purpur-comparison-table-option-
|
|
52
|
-
"purpur-comparison-table-option-card__description-text": "_purpur-comparison-table-option-card__description-
|
|
53
|
-
"purpur-comparison-table-option-card__description-inner": "_purpur-comparison-table-option-card__description-
|
|
54
|
-
"purpur-comparison-table-option-card__read-more": "_purpur-comparison-table-option-card__read-
|
|
55
|
-
"purpur-comparison-table-option-card__read-more--hidden": "_purpur-comparison-table-option-card__read-more--
|
|
56
|
-
"purpur-comparison-table-option-card__read-more-icon": "_purpur-comparison-table-option-card__read-more-
|
|
57
|
-
"purpur-comparison-table-option-card__footer": "_purpur-comparison-table-option-
|
|
58
|
-
"purpur-comparison-table-option-card__price": "_purpur-comparison-table-option-
|
|
59
|
-
"purpur-comparison-table-option-card--show-full-descriptions": "_purpur-comparison-table-option-card--show-full-
|
|
60
|
-
"purpur-comparison-table-option-card--first-card": "_purpur-comparison-table-option-card--first-
|
|
45
|
+
"purpur-comparison-table-option-card": "_purpur-comparison-table-option-card_zggg8_1",
|
|
46
|
+
"purpur-comparison-table-option-card--highlighted": "_purpur-comparison-table-option-card--highlighted_zggg8_11",
|
|
47
|
+
"purpur-comparison-table-option-card__badge": "_purpur-comparison-table-option-card__badge_zggg8_14",
|
|
48
|
+
"purpur-comparison-table-option-card__main-content": "_purpur-comparison-table-option-card__main-content_zggg8_19",
|
|
49
|
+
"purpur-comparison-table-option-card__image": "_purpur-comparison-table-option-card__image_zggg8_25",
|
|
50
|
+
"purpur-comparison-table-option-card__body": "_purpur-comparison-table-option-card__body_zggg8_31",
|
|
51
|
+
"purpur-comparison-table-option-card__description": "_purpur-comparison-table-option-card__description_zggg8_36",
|
|
52
|
+
"purpur-comparison-table-option-card__description-text": "_purpur-comparison-table-option-card__description-text_zggg8_41",
|
|
53
|
+
"purpur-comparison-table-option-card__description-inner": "_purpur-comparison-table-option-card__description-inner_zggg8_50",
|
|
54
|
+
"purpur-comparison-table-option-card__read-more": "_purpur-comparison-table-option-card__read-more_zggg8_56",
|
|
55
|
+
"purpur-comparison-table-option-card__read-more--hidden": "_purpur-comparison-table-option-card__read-more--hidden_zggg8_60",
|
|
56
|
+
"purpur-comparison-table-option-card__read-more-icon": "_purpur-comparison-table-option-card__read-more-icon_zggg8_63",
|
|
57
|
+
"purpur-comparison-table-option-card__footer": "_purpur-comparison-table-option-card__footer_zggg8_71",
|
|
58
|
+
"purpur-comparison-table-option-card__price": "_purpur-comparison-table-option-card__price_zggg8_76",
|
|
59
|
+
"purpur-comparison-table-option-card--show-full-descriptions": "_purpur-comparison-table-option-card--show-full-descriptions_zggg8_83",
|
|
60
|
+
"purpur-comparison-table-option-card--first-card": "_purpur-comparison-table-option-card--first-card_zggg8_126"
|
|
61
61
|
}, _ = D.bind(nr), n = "purpur-comparison-table-option-card", cr = ({
|
|
62
62
|
id: a,
|
|
63
63
|
cardIndex: c,
|
|
64
64
|
description: i,
|
|
65
65
|
variablePriceText: t,
|
|
66
|
-
price:
|
|
67
|
-
isHighlighted:
|
|
68
|
-
ariaLabels:
|
|
69
|
-
badge:
|
|
70
|
-
actions:
|
|
71
|
-
isFirstCard:
|
|
66
|
+
price: y,
|
|
67
|
+
isHighlighted: g,
|
|
68
|
+
ariaLabels: f,
|
|
69
|
+
badge: h,
|
|
70
|
+
actions: N,
|
|
71
|
+
isFirstCard: C,
|
|
72
72
|
image: e,
|
|
73
73
|
title: p,
|
|
74
74
|
showFullDescriptions: u,
|
|
75
75
|
toggleShowFullDescriptions: m
|
|
76
76
|
}) => {
|
|
77
|
-
const l = A(null), s = A(null), o = A(u), [b,
|
|
78
|
-
[`${n}--highlighted`]:
|
|
79
|
-
[`${n}--first-card`]:
|
|
77
|
+
const l = A(null), s = A(null), o = A(u), [b, x] = V(!1), z = _(n, {
|
|
78
|
+
[`${n}--highlighted`]: g,
|
|
79
|
+
[`${n}--first-card`]: C,
|
|
80
80
|
[`${n}--show-full-descriptions`]: u
|
|
81
81
|
});
|
|
82
82
|
M(() => {
|
|
83
83
|
o.current = u;
|
|
84
84
|
}, [u]);
|
|
85
|
-
const I =
|
|
85
|
+
const I = k(() => {
|
|
86
86
|
if (o.current)
|
|
87
87
|
return;
|
|
88
88
|
const S = l.current, E = s.current;
|
|
89
89
|
if (!S || !E) {
|
|
90
|
-
|
|
90
|
+
x(!1);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
const B = S.clientHeight, K = E.offsetHeight;
|
|
94
|
-
|
|
94
|
+
x(K > B + 1);
|
|
95
95
|
}, []);
|
|
96
96
|
M(() => {
|
|
97
97
|
const S = l.current;
|
|
@@ -116,14 +116,14 @@ const er = {
|
|
|
116
116
|
"aria-hidden": !b,
|
|
117
117
|
tabIndex: b ? void 0 : -1,
|
|
118
118
|
children: [
|
|
119
|
-
/* @__PURE__ */ r("span", { className: _(`${n}__read-more-text`), children: u ?
|
|
119
|
+
/* @__PURE__ */ r("span", { className: _(`${n}__read-more-text`), children: u ? f.readLess : f.readMore }),
|
|
120
120
|
/* @__PURE__ */ r(F, { className: _(`${n}__read-more-icon`), size: "xs" })
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
)
|
|
124
124
|
] }) : null;
|
|
125
|
-
return /* @__PURE__ */ d("article", { className:
|
|
126
|
-
|
|
125
|
+
return /* @__PURE__ */ d("article", { className: z, "data-card-id": a, "data-card-index": c, children: [
|
|
126
|
+
h && /* @__PURE__ */ r(X, { ...h, className: _(`${n}__badge`) }),
|
|
127
127
|
/* @__PURE__ */ d("section", { className: _(`${n}__main-content`), children: [
|
|
128
128
|
/* @__PURE__ */ r("img", { src: e.src, alt: e.alt, className: _(`${n}__image`) }),
|
|
129
129
|
/* @__PURE__ */ d("div", { className: _(`${n}__body`), children: [
|
|
@@ -134,9 +134,9 @@ const er = {
|
|
|
134
134
|
/* @__PURE__ */ d("footer", { className: _(`${n}__footer`), children: [
|
|
135
135
|
/* @__PURE__ */ d("span", { className: _(`${n}__price`), id: a, children: [
|
|
136
136
|
/* @__PURE__ */ r(q, { variant: "paragraph-100", children: t }),
|
|
137
|
-
/* @__PURE__ */ r(q, { variant: "paragraph-100-bold", children:
|
|
137
|
+
/* @__PURE__ */ r(q, { variant: "paragraph-100-bold", children: y })
|
|
138
138
|
] }),
|
|
139
|
-
|
|
139
|
+
N
|
|
140
140
|
] })
|
|
141
141
|
] });
|
|
142
142
|
}, ir = "_active_kvsnm_44", pr = {
|
|
@@ -147,8 +147,8 @@ const er = {
|
|
|
147
147
|
"purpur-comparison-table-scroll-progress__buttons": "_purpur-comparison-table-scroll-progress__buttons_kvsnm_48",
|
|
148
148
|
"purpur-comparison-table-scroll-progress__button": "_purpur-comparison-table-scroll-progress__button_kvsnm_48",
|
|
149
149
|
"purpur-comparison-table-scroll-progress__button-icon": "_purpur-comparison-table-scroll-progress__button-icon_kvsnm_57"
|
|
150
|
-
},
|
|
151
|
-
const [t,
|
|
150
|
+
}, $ = D.bind(pr), v = "purpur-comparison-table-scroll-progress", lr = ({ items: a, container: c, ariaLabels: i }) => {
|
|
151
|
+
const [t, y] = V(/* @__PURE__ */ new Set()), g = k(
|
|
152
152
|
(e) => {
|
|
153
153
|
const p = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
154
154
|
c.current?.querySelector(
|
|
@@ -156,26 +156,26 @@ const er = {
|
|
|
156
156
|
)?.scrollIntoView({ behavior: p ? "instant" : "smooth", block: "nearest" });
|
|
157
157
|
},
|
|
158
158
|
[c]
|
|
159
|
-
),
|
|
159
|
+
), f = k(() => {
|
|
160
160
|
if (t.size === 0) return;
|
|
161
161
|
const p = Math.min(...Array.from(t)) - 1;
|
|
162
|
-
p < 0 ||
|
|
163
|
-
}, [t,
|
|
162
|
+
p < 0 || g(p);
|
|
163
|
+
}, [t, g]), h = k(() => {
|
|
164
164
|
if (t.size === 0) return;
|
|
165
165
|
const p = Math.max(...Array.from(t)) + 1;
|
|
166
|
-
p >= a.length ||
|
|
167
|
-
}, [t, a.length,
|
|
166
|
+
p >= a.length || g(p);
|
|
167
|
+
}, [t, a.length, g]), N = k(
|
|
168
168
|
(e) => {
|
|
169
|
-
(e.key === "ArrowRight" || e.key === "ArrowLeft") && (e.preventDefault(), e.key === "ArrowRight" ?
|
|
169
|
+
(e.key === "ArrowRight" || e.key === "ArrowLeft") && (e.preventDefault(), e.key === "ArrowRight" ? h() : e.key === "ArrowLeft" && f());
|
|
170
170
|
},
|
|
171
|
-
[
|
|
171
|
+
[h, f]
|
|
172
172
|
);
|
|
173
173
|
M(() => {
|
|
174
174
|
const e = c.current;
|
|
175
175
|
if (!e) return;
|
|
176
176
|
const p = new IntersectionObserver(
|
|
177
177
|
(u) => {
|
|
178
|
-
|
|
178
|
+
y((m) => {
|
|
179
179
|
const l = new Set(m);
|
|
180
180
|
return u.forEach((s) => {
|
|
181
181
|
const o = Number(s.target.getAttribute("data-card-index"));
|
|
@@ -192,9 +192,9 @@ const er = {
|
|
|
192
192
|
}, [c, a]), M(() => {
|
|
193
193
|
const e = c.current;
|
|
194
194
|
if (e)
|
|
195
|
-
return e.addEventListener("keydown",
|
|
196
|
-
}, [c,
|
|
197
|
-
const
|
|
195
|
+
return e.addEventListener("keydown", N), () => e.removeEventListener("keydown", N);
|
|
196
|
+
}, [c, N]);
|
|
197
|
+
const C = () => {
|
|
198
198
|
if (t.size === 0) return;
|
|
199
199
|
const e = [], p = t.size, u = Math.min(...Array.from(t)), m = a.slice(0, u).length, l = a.slice(u + p).length;
|
|
200
200
|
let s = 0;
|
|
@@ -202,24 +202,24 @@ const er = {
|
|
|
202
202
|
if (m + 1 !== o && m <= o && o < a.length - l) continue;
|
|
203
203
|
let b = "active";
|
|
204
204
|
(o < m || o > a.length - 1 - l) && (b = ""), e.push(
|
|
205
|
-
/* @__PURE__ */ r("li", { className:
|
|
205
|
+
/* @__PURE__ */ r("li", { className: $(`${v}__indicator`, b) }, `indicator-${s++}`)
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
return e.length < 2 ? null : e;
|
|
209
209
|
};
|
|
210
|
-
return /* @__PURE__ */ d("li", { className:
|
|
211
|
-
/* @__PURE__ */ r("ul", { className:
|
|
212
|
-
/* @__PURE__ */ d("div", { className:
|
|
210
|
+
return /* @__PURE__ */ d("li", { className: $(v), children: [
|
|
211
|
+
/* @__PURE__ */ r("ul", { className: $(`${v}__indicators`), children: C() }),
|
|
212
|
+
/* @__PURE__ */ d("div", { className: $(`${v}__buttons`), children: [
|
|
213
213
|
/* @__PURE__ */ r(
|
|
214
214
|
P,
|
|
215
215
|
{
|
|
216
216
|
"aria-label": i.previous,
|
|
217
217
|
variant: "secondary",
|
|
218
218
|
iconOnly: !0,
|
|
219
|
-
className:
|
|
219
|
+
className: $(`${v}__button`),
|
|
220
220
|
disabled: t.has(0),
|
|
221
|
-
onClick:
|
|
222
|
-
children: /* @__PURE__ */ r(Z, { className:
|
|
221
|
+
onClick: f,
|
|
222
|
+
children: /* @__PURE__ */ r(Z, { className: $(`${v}__button-icon`), size: "xs" })
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
225
|
/* @__PURE__ */ r(
|
|
@@ -228,58 +228,58 @@ const er = {
|
|
|
228
228
|
"aria-label": i.next,
|
|
229
229
|
variant: "secondary",
|
|
230
230
|
iconOnly: !0,
|
|
231
|
-
className:
|
|
231
|
+
className: $(`${v}__button`),
|
|
232
232
|
disabled: t.has(a.length - 1),
|
|
233
|
-
onClick:
|
|
234
|
-
children: /* @__PURE__ */ r(rr, { className:
|
|
233
|
+
onClick: h,
|
|
234
|
+
children: /* @__PURE__ */ r(rr, { className: $(`${v}__button-icon`), size: "xs" })
|
|
235
235
|
}
|
|
236
236
|
)
|
|
237
237
|
] })
|
|
238
238
|
] });
|
|
239
|
-
}, R = D.bind(er),
|
|
239
|
+
}, R = D.bind(er), w = "purpur-comparison-table", _r = ({
|
|
240
240
|
classname: a,
|
|
241
241
|
features: c,
|
|
242
242
|
items: i,
|
|
243
243
|
ariaLabels: t,
|
|
244
|
-
variant:
|
|
244
|
+
variant: y = "primary"
|
|
245
245
|
}) => {
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
}, []), p = () => /* @__PURE__ */ d("li", { className: R(`${
|
|
249
|
-
/* @__PURE__ */ r("div", { className: R(`${
|
|
246
|
+
const g = G(), f = R(a, w, `${w}--${y}`), h = A(null), [N, C] = V(!1), e = k(() => {
|
|
247
|
+
C((s) => !s);
|
|
248
|
+
}, []), p = () => /* @__PURE__ */ d("li", { className: R(`${w}__cards`), children: [
|
|
249
|
+
/* @__PURE__ */ r("div", { className: R(`${w}__separator`) }),
|
|
250
250
|
i.map((s, o) => /* @__PURE__ */ J(
|
|
251
251
|
cr,
|
|
252
252
|
{
|
|
253
253
|
...s,
|
|
254
|
-
showFullDescriptions:
|
|
254
|
+
showFullDescriptions: N,
|
|
255
255
|
toggleShowFullDescriptions: e,
|
|
256
256
|
key: o,
|
|
257
257
|
isFirstCard: o === 0,
|
|
258
258
|
ariaLabels: t,
|
|
259
259
|
cardIndex: o,
|
|
260
|
-
id: `${o}-${
|
|
260
|
+
id: `${o}-${g}`
|
|
261
261
|
}
|
|
262
262
|
))
|
|
263
|
-
] }), u = () => Object.entries(c).map(([s, o], b) => /* @__PURE__ */ d("li", { className: R(`${
|
|
263
|
+
] }), u = () => Object.entries(c).map(([s, o], b) => /* @__PURE__ */ d("li", { className: R(`${w}__feature-row`), children: [
|
|
264
264
|
/* @__PURE__ */ r(sr, { title: s, description: o }),
|
|
265
|
-
i.map((
|
|
265
|
+
i.map((x, z) => /* @__PURE__ */ r(ar, { value: x.features[s] ?? !1 }, z))
|
|
266
266
|
] }, b)), m = A(0), l = (s) => {
|
|
267
|
-
const o = s.currentTarget, b = o.querySelector("[data-card-id]")?.clientWidth ?? 0,
|
|
268
|
-
m.current && I < 200 || T < 10 || (m.current = s.timeStamp, o.scrollTo({ left:
|
|
267
|
+
const o = s.currentTarget, b = o.querySelector("[data-card-id]")?.clientWidth ?? 0, x = Math.round(o.scrollLeft / b), z = x * b + x, I = s.timeStamp - m.current, T = Math.abs(o.scrollLeft - z);
|
|
268
|
+
m.current && I < 200 || T < 10 || (m.current = s.timeStamp, o.scrollTo({ left: z, behavior: "smooth" }));
|
|
269
269
|
};
|
|
270
|
-
return /* @__PURE__ */ r("div", { className: R(
|
|
270
|
+
return /* @__PURE__ */ r("div", { className: R(w + "__wrapper"), children: /* @__PURE__ */ d(
|
|
271
271
|
"ul",
|
|
272
272
|
{
|
|
273
|
-
id:
|
|
274
|
-
ref:
|
|
275
|
-
className:
|
|
273
|
+
id: w + `-${g}`,
|
|
274
|
+
ref: h,
|
|
275
|
+
className: f,
|
|
276
276
|
onScrollEnd: l,
|
|
277
277
|
style: {
|
|
278
278
|
// @ts-expect-error | Typescript doesn't recognize the CSS variable, but it works as intended
|
|
279
279
|
"--initial-columns": i.length + 1
|
|
280
280
|
},
|
|
281
281
|
children: [
|
|
282
|
-
/* @__PURE__ */ r(lr, { items: i, container:
|
|
282
|
+
/* @__PURE__ */ r(lr, { items: i, container: h, ariaLabels: t }),
|
|
283
283
|
p(),
|
|
284
284
|
u()
|
|
285
285
|
]
|
|
@@ -290,4 +290,4 @@ _r.displayName = "ComparisonTable";
|
|
|
290
290
|
export {
|
|
291
291
|
_r as C
|
|
292
292
|
};
|
|
293
|
-
//# sourceMappingURL=comparison-table-
|
|
293
|
+
//# sourceMappingURL=comparison-table-D1evE0ri.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison-table-DQJL1IVC.mjs","sources":["../../../components/comparison-table/src/components/Cell/cell.tsx","../../../components/comparison-table/src/components/LeadCell/lead-cell.tsx","../../../components/comparison-table/src/components/OptionCard/option-card.tsx","../../../components/comparison-table/src/components/ScrollProgress/scroll-progress.tsx","../../../components/comparison-table/src/comparison-table.tsx"],"sourcesContent":["import React, { isValidElement, type ReactNode } from \"react\";\nimport { IconCheckmark } from \"@purpur/icon/checkmark\";\nimport { IconMinus } from \"@purpur/icon/minus\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./cell.module.scss\";\n\ntype CellProps = {\n value: boolean | ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-cell\";\n\nexport const Cell = ({ value }: CellProps) => {\n const isReactNode = isValidElement(value) || [\"string\", \"number\"].includes(typeof value);\n\n const getClassName = () => {\n if (isReactNode) return \"\";\n return `${rootClassName}--${value ? \"check\" : \"minus\"}`;\n };\n\n const classes = cx(rootClassName, [getClassName()]);\n\n const Icon = value ? IconCheckmark : IconMinus;\n\n return (\n <span className={cx(classes)}>\n {isReactNode ? value : <Icon size=\"xs\" className={cx(`${rootClassName}__icon`)} />}\n </span>\n );\n};\n","import React, { type ReactNode } from \"react\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./lead-cell.module.scss\";\n\ntype LeadCellProps = {\n title: string;\n description?: ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-lead-cell\";\n\nexport const LeadCell = ({ title, description }: LeadCellProps) => {\n const isExpandable = typeof description === \"string\";\n const classes = cx(rootClassName);\n\n return (\n <details className={classes} data-is-expandable={isExpandable}>\n <summary className={cx(`${rootClassName}__summary`)} tabIndex={isExpandable ? 0 : -1}>\n <Paragraph className={cx(`${rootClassName}__summary-title`)} variant=\"paragraph-100-bold\">\n {title}\n </Paragraph>\n <IconChevronDown className={cx(`${rootClassName}__summary-icon`)} size=\"sm\" />\n </summary>\n {description && (\n <Paragraph variant=\"paragraph-100\" className={cx(`${rootClassName}__description`)}>\n {description}\n </Paragraph>\n )}\n </details>\n );\n};\n","import React, { type ReactNode, useCallback, useEffect, useRef, useState } from \"react\";\nimport { Badge, type BadgeProps } from \"@purpur/badge\";\nimport { Button } from \"@purpur/button\";\nimport { Heading } from \"@purpur/heading\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps } from \"../../comparison-table\";\nimport styles from \"./option-card.module.scss\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-option-card\";\n\nexport type OptionCardProps = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: ReactNode;\n variablePriceText: string;\n price: string;\n\n actions: ReactNode;\n\n badge?: BadgeProps;\n isHighlighted?: boolean;\n};\n\ntype OptionCardPropsAdditions = {\n id: string;\n cardIndex: number;\n isFirstCard: boolean;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n\n showFullDescriptions: boolean;\n toggleShowFullDescriptions: () => void;\n};\n\nexport const OptionCard = ({\n id,\n cardIndex,\n description,\n variablePriceText,\n price,\n isHighlighted,\n ariaLabels,\n badge,\n actions,\n isFirstCard,\n image,\n title,\n showFullDescriptions,\n toggleShowFullDescriptions,\n}: OptionCardProps & OptionCardPropsAdditions) => {\n const descriptionRef = useRef<HTMLDivElement | HTMLParagraphElement>(null);\n const descriptionContentRef = useRef<HTMLDivElement | null>(null);\n const showFullDescriptionsRef = useRef(showFullDescriptions);\n const [descriptionOverflows, setDescriptionOverflows] = useState(false);\n\n const classes = cx(rootClassName, {\n [`${rootClassName}--highlighted`]: isHighlighted,\n [`${rootClassName}--first-card`]: isFirstCard,\n [`${rootClassName}--show-full-descriptions`]: showFullDescriptions,\n });\n\n useEffect(() => {\n showFullDescriptionsRef.current = showFullDescriptions;\n }, [showFullDescriptions]);\n\n const checkDescriptionOverflow = useCallback(() => {\n if (showFullDescriptionsRef.current) {\n return;\n }\n\n const description = descriptionRef.current;\n const descriptionContent = descriptionContentRef.current;\n\n if (!description || !descriptionContent) {\n setDescriptionOverflows(false);\n return;\n }\n\n const descriptionHeight = description.clientHeight;\n const contentHeight = descriptionContent.offsetHeight;\n\n setDescriptionOverflows(contentHeight > descriptionHeight + 1);\n }, []);\n\n useEffect(() => {\n const descriptionElement = descriptionRef.current;\n\n checkDescriptionOverflow();\n\n if (!descriptionElement || typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n const resizeObserver = new ResizeObserver(checkDescriptionOverflow);\n resizeObserver.observe(descriptionElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [checkDescriptionOverflow, description]);\n\n const renderDescription = () => {\n if (!description) return null;\n\n return (\n <div className={cx(`${rootClassName}__description`)}>\n {typeof description === \"string\" ? (\n <Paragraph ref={descriptionRef} className={cx(`${rootClassName}__description-text`)}>\n <span ref={descriptionContentRef}>{description}</span>\n </Paragraph>\n ) : (\n <div ref={descriptionRef} className={cx(`${rootClassName}__description-text`)}>\n <div ref={descriptionContentRef} className={cx(`${rootClassName}__description-inner`)}>\n {description}\n </div>\n </div>\n )}\n <Button\n variant=\"text\"\n size=\"xs\"\n className={cx(`${rootClassName}__read-more`, {\n [`${rootClassName}__read-more--hidden`]: !descriptionOverflows,\n })}\n onClick={toggleShowFullDescriptions}\n aria-hidden={!descriptionOverflows}\n tabIndex={descriptionOverflows ? undefined : -1}\n >\n <span className={cx(`${rootClassName}__read-more-text`)}>\n {showFullDescriptions ? ariaLabels.readLess : ariaLabels.readMore}\n </span>\n <IconChevronDown className={cx(`${rootClassName}__read-more-icon`)} size=\"xs\" />\n </Button>\n </div>\n );\n };\n\n return (\n <article className={classes} data-card-id={id} data-card-index={cardIndex}>\n {badge && <Badge {...badge} className={cx(`${rootClassName}__badge`)} />}\n\n <section className={cx(`${rootClassName}__main-content`)}>\n <img src={image.src} alt={image.alt} className={cx(`${rootClassName}__image`)} />\n\n <div className={cx(`${rootClassName}__body`)}>\n <Heading tag=\"h3\" variant=\"title-200\" className={cx(`${rootClassName}__title`)}>\n {title}\n </Heading>\n {renderDescription()}\n </div>\n </section>\n\n <footer className={cx(`${rootClassName}__footer`)}>\n <span className={cx(`${rootClassName}__price`)} id={id}>\n <Paragraph variant=\"paragraph-100\">{variablePriceText}</Paragraph>\n <Paragraph variant=\"paragraph-100-bold\">{price}</Paragraph>\n </span>\n\n {actions}\n </footer>\n </article>\n );\n};\n","import React, { type RefObject, useCallback, useEffect, useState } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { IconArrowLeft } from \"@purpur/icon/arrow-left\";\nimport { IconArrowRight } from \"@purpur/icon/arrow-right\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps, type Features, type Item } from \"../../comparison-table\";\nimport styles from \"./scroll-progress.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-comparison-table-scroll-progress\";\n\ntype ScrollProgressProps = {\n items: Array<Item<Features>>;\n container: RefObject<HTMLUListElement | null>;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n};\n\nexport const ScrollProgress = ({ items, container, ariaLabels }: ScrollProgressProps) => {\n const [inViewSet, setInViewSet] = useState<Set<number>>(new Set());\n\n const scrollToCard = useCallback(\n (index: number) => {\n const reduceMotion = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\n const card = container.current?.querySelector(\n `[data-card-index=\"${index}\"]`\n ) as HTMLElement | null;\n card?.scrollIntoView({ behavior: reduceMotion ? \"instant\" : \"smooth\", block: \"nearest\" });\n },\n [container]\n );\n\n const previousCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const leftmostactiveIndex = Math.min(...Array.from(inViewSet));\n const targetIndex = leftmostactiveIndex - 1;\n\n if (targetIndex < 0) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, scrollToCard]);\n\n const nextCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const rightmostactiveIndex = Math.max(...Array.from(inViewSet));\n const targetIndex = rightmostactiveIndex + 1;\n\n if (targetIndex >= items.length) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, items.length, scrollToCard]);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === \"ArrowRight\" || e.key === \"ArrowLeft\") {\n e.preventDefault();\n\n if (e.key === \"ArrowRight\") nextCard();\n else if (e.key === \"ArrowLeft\") previousCard();\n }\n },\n [nextCard, previousCard]\n );\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n setInViewSet((prev) => {\n const next = new Set(prev);\n\n entries.forEach((entry) => {\n const index = Number(entry.target.getAttribute(\"data-card-index\"));\n\n if (Number.isNaN(index)) return;\n\n if (entry.isIntersecting) {\n next.add(index);\n } else {\n next.delete(index);\n }\n });\n return next;\n });\n },\n { root, threshold: 0.5 }\n );\n\n items.forEach((_, index) => {\n const card = root.querySelector(`[data-card-index=\"${index}\"]`) as HTMLElement | null;\n\n if (card) observer.observe(card);\n });\n\n return () => observer.disconnect();\n }, [container, items]);\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n root.addEventListener(\"keydown\", handleKeyDown);\n\n return () => root.removeEventListener(\"keydown\", handleKeyDown);\n }, [container, handleKeyDown]);\n\n const renderIndicators = () => {\n if (inViewSet.size === 0) return;\n\n const indicators = [];\n const viewCapacity = inViewSet.size;\n const leftmostActiveIndex = Math.min(...Array.from(inViewSet));\n const head = items.slice(0, leftmostActiveIndex).length;\n const trail = items.slice(leftmostActiveIndex + viewCapacity).length;\n\n let key = 0;\n\n for (let i = 0; i < items.length; i++) {\n if (head + 1 !== i && head <= i && i < items.length - trail) continue;\n\n let status = \"active\";\n\n if (i < head || i > items.length - 1 - trail) status = \"\";\n\n indicators.push(\n <li key={`indicator-${key++}`} className={cx(`${rootClassName}__indicator`, status)} />\n );\n }\n\n if (indicators.length < 2) return null;\n\n return indicators;\n };\n\n return (\n <li className={cx(rootClassName)}>\n <ul className={cx(`${rootClassName}__indicators`)}>{renderIndicators()}</ul>\n\n <div className={cx(`${rootClassName}__buttons`)}>\n <Button\n aria-label={ariaLabels.previous}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(0)}\n onClick={previousCard}\n >\n <IconArrowLeft className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n <Button\n aria-label={ariaLabels.next}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(items.length - 1)}\n onClick={nextCard}\n >\n <IconArrowRight className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n </div>\n </li>\n );\n};\n","import React, { type ReactNode, type UIEvent, useCallback, useId, useRef, useState } from \"react\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./comparison-table.module.scss\";\nimport { Cell } from \"./components/Cell/cell\";\nimport { LeadCell } from \"./components/LeadCell/lead-cell\";\nimport { OptionCard, type OptionCardProps } from \"./components/OptionCard/option-card\";\nimport { ScrollProgress } from \"./components/ScrollProgress/scroll-progress\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table\";\n\nexport type Features = Record<string, ReactNode | null>;\n\nexport type Item<TFeatures extends Features = Features> = OptionCardProps & {\n features: Partial<Record<keyof TFeatures, ReactNode | string | boolean>>;\n};\n\nexport type ComparisonTableProps<TFeatures extends Features = Features> = {\n /** List of features that can be supported by the comparison table\n *\n * string = description of the feature that can be viewed by expanding cell.\n *\n * null = no description\n *\n {\n [featureName]: ReactNode | null\n }\n */\n features: TFeatures;\n\n /** List of items to be displayed in the comparison table\n *\n *\n Item = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: string;\n variablePriceText: string;\n price: string;\n actions: ReactNode;\n badge?: BadgeProps;\n isHighlighted?: boolean;\n\n features: {\n [featureName in keyof Features]?: string | boolean;\n };\n }\n */\n items: Array<Item<TFeatures>>;\n\n /** Aria labels for the comparison table and various components\n *\n {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n }\n */\n ariaLabels: {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n };\n variant?: \"primary\" | \"secondary\";\n classname?: string;\n};\n\nexport const ComparisonTable = <TFeatures extends Features>({\n classname,\n features,\n items,\n ariaLabels,\n variant = \"primary\",\n}: ComparisonTableProps<TFeatures>) => {\n const id = useId();\n const classes = cx(classname, rootClassName, `${rootClassName}--${variant}`);\n const containerRef = useRef<HTMLUListElement>(null);\n const [showFullDescriptions, setShowFullDescriptions] = useState(false);\n\n const handleToggleShowFullDescriptions = useCallback(() => {\n setShowFullDescriptions((prev) => !prev);\n }, []);\n\n const renderCards = () => {\n return (\n <li className={cx(`${rootClassName}__cards`)}>\n <div className={cx(`${rootClassName}__separator`)} />\n {items.map((item, index) => (\n <OptionCard\n {...item}\n showFullDescriptions={showFullDescriptions}\n toggleShowFullDescriptions={handleToggleShowFullDescriptions}\n key={index}\n isFirstCard={index === 0}\n ariaLabels={ariaLabels}\n cardIndex={index}\n id={`${index}-${id}`}\n />\n ))}\n </li>\n );\n };\n\n const renderFeatures = () => {\n return Object.entries(features).map(([title, description], i) => (\n <li key={i} className={cx(`${rootClassName}__feature-row`)}>\n <LeadCell title={title} description={description} />\n {items.map((item, index) => (\n <Cell key={index} value={item.features[title as keyof TFeatures] ?? false} />\n ))}\n </li>\n ));\n };\n\n const deltaTime = useRef(0);\n\n const handleScrollEnd = (e: UIEvent<HTMLUListElement>) => {\n /**\n * This function makes sure that the scroll position is never stuck between two cards, since scroll snap is not fully reliable.\n */\n\n const target = e.currentTarget;\n const cardwidth = target.querySelector(\"[data-card-id]\")?.clientWidth ?? 0;\n const cardPos = Math.round(target.scrollLeft / cardwidth);\n const scrollTarget = cardPos * cardwidth + cardPos;\n const timeDiff = e.timeStamp - deltaTime.current;\n const scrollDiff = Math.abs(target.scrollLeft - scrollTarget);\n\n if (deltaTime.current && timeDiff < 200) return;\n if (scrollDiff < 10) return;\n\n deltaTime.current = e.timeStamp;\n\n target.scrollTo({ left: scrollTarget, behavior: \"smooth\" });\n };\n\n return (\n <div className={cx(rootClassName + \"__wrapper\")}>\n <ul\n id={rootClassName + `-${id}`}\n ref={containerRef}\n className={classes}\n // eslint-disable-next-line react/no-unknown-property\n onScrollEnd={handleScrollEnd}\n style={{\n // @ts-expect-error | Typescript doesn't recognize the CSS variable, but it works as intended\n [\"--initial-columns\"]: items.length + 1,\n }}\n >\n <ScrollProgress items={items} container={containerRef} ariaLabels={ariaLabels} />\n {renderCards()}\n {renderFeatures()}\n </ul>\n </div>\n );\n};\n\nComparisonTable.displayName = \"ComparisonTable\";\n"],"names":["cx","c","styles","rootClassName","Cell","value","isReactNode","isValidElement","classes","Icon","IconCheckmark","IconMinus","jsx","LeadCell","title","description","isExpandable","jsxs","Paragraph","IconChevronDown","OptionCard","id","cardIndex","variablePriceText","price","isHighlighted","ariaLabels","badge","actions","isFirstCard","image","showFullDescriptions","toggleShowFullDescriptions","descriptionRef","useRef","descriptionContentRef","showFullDescriptionsRef","descriptionOverflows","setDescriptionOverflows","useState","useEffect","checkDescriptionOverflow","useCallback","descriptionContent","descriptionHeight","contentHeight","descriptionElement","resizeObserver","renderDescription","Button","Badge","Heading","ScrollProgress","items","container","inViewSet","setInViewSet","scrollToCard","index","reduceMotion","previousCard","targetIndex","nextCard","handleKeyDown","root","observer","entries","prev","next","entry","_","card","renderIndicators","indicators","viewCapacity","leftmostActiveIndex","head","trail","key","i","status","IconArrowLeft","IconArrowRight","ComparisonTable","classname","features","variant","useId","containerRef","setShowFullDescriptions","handleToggleShowFullDescriptions","renderCards","item","createElement","renderFeatures","deltaTime","handleScrollEnd","e","target","cardwidth","cardPos","scrollTarget","timeDiff","scrollDiff"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;GAWMA,IAAKC,EAAE,KAAKC,EAAM,GAElBC,IAAgB,gCAETC,KAAO,CAAC,EAAE,OAAAC,QAAuB;AAC5C,QAAMC,IAAcC,EAAeF,CAAK,KAAK,CAAC,UAAU,QAAQ,EAAE,SAAS,OAAOA,CAAK,GAOjFG,IAAUR,EAAGG,GAAe,CAJ5BG,IAAoB,KACjB,GAAGH,CAAa,KAAKE,IAAQ,UAAU,OAAO,EAGN,CAAC,GAE5CI,IAAOJ,IAAQK,IAAgBC;AAErC,2BACG,QAAA,EAAK,WAAWX,EAAGQ,CAAO,GACxB,cAAcH,IAAQ,gBAAAO,EAACH,GAAA,EAAK,MAAK,MAAK,WAAWT,EAAG,GAAGG,CAAa,QAAQ,GAAG,GAClF;AAEJ;;;;;;GCpBMH,IAAKC,EAAE,KAAKC,EAAM,GAElBC,IAAgB,qCAETU,KAAW,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAAiC;AACjE,QAAMC,IAAe,OAAOD,KAAgB,UACtCP,IAAUR,EAAGG,CAAa;AAEhC,SACE,gBAAAc,EAAC,WAAA,EAAQ,WAAWT,GAAS,sBAAoBQ,GAC/C,UAAA;AAAA,IAAA,gBAAAC,EAAC,WAAA,EAAQ,WAAWjB,EAAG,GAAGG,CAAa,WAAW,GAAG,UAAUa,IAAe,IAAI,IAChF,UAAA;AAAA,MAAA,gBAAAJ,EAACM,GAAA,EAAU,WAAWlB,EAAG,GAAGG,CAAa,iBAAiB,GAAG,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EAAA,CAA0B;AAAA,IACjDsC,EAAM,IAAI,CAACuC,GAAMlC,MAChB,gBAAA9C,EAACR,IAAA,EAAiB,OAAOwF,EAAK,SAAS9E,CAAwB,KAAK,GAAA,GAAzD4C,CAAgE,CAC5E;AAAA,EAAA,EAAA,GAJMqB,CAKT,CACD,GAGGgB,IAAY7D,EAAO,CAAC,GAEpB8D,IAAkB,CAACC,MAAiC;AAKxD,UAAMC,IAASD,EAAE,eACXE,IAAYD,EAAO,cAAc,gBAAgB,GAAG,eAAe,GACnEE,IAAU,KAAK,MAAMF,EAAO,aAAaC,CAAS,GAClDE,IAAeD,IAAUD,IAAYC,GACrCE,IAAWL,EAAE,YAAYF,EAAU,SACnCQ,IAAa,KAAK,IAAIL,EAAO,aAAaG,CAAY;AAE5D,IAAIN,EAAU,WAAWO,IAAW,OAChCC,IAAa,OAEjBR,EAAU,UAAUE,EAAE,WAEtBC,EAAO,SAAS,EAAE,MAAMG,GAAc,UAAU,UAAU;AAAA,EAC5D;AAEA,2BACG,OAAA,EAAI,WAAWrG,EAAGG,IAAgB,WAAW,GAC5C,UAAA,gBAAAc;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAId,IAAgB,IAAIkB,CAAE;AAAA,MAC1B,KAAKmE;AAAA,MACL,WAAWhF;AAAA,MAEX,aAAawF;AAAA,MACb,OAAO;AAAA;AAAA,QAEJ,qBAAsB3C,EAAM,SAAS;AAAA,MAAA;AAAA,MAGxC,UAAA;AAAA,QAAA,gBAAAzC,EAACwC,IAAA,EAAe,OAAAC,GAAc,WAAWmC,GAAc,YAAA9D,GAAwB;AAAA,QAC9EiE,EAAA;AAAA,QACAG,EAAA;AAAA,MAAe;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEJ;AAEAX,GAAgB,cAAc;"}
|
|
1
|
+
{"version":3,"file":"comparison-table-D1evE0ri.mjs","sources":["../../../components/comparison-table/src/components/Cell/cell.tsx","../../../components/comparison-table/src/components/LeadCell/lead-cell.tsx","../../../components/comparison-table/src/components/OptionCard/option-card.tsx","../../../components/comparison-table/src/components/ScrollProgress/scroll-progress.tsx","../../../components/comparison-table/src/comparison-table.tsx"],"sourcesContent":["import React, { isValidElement, type ReactNode } from \"react\";\nimport { IconCheckmark } from \"@purpur/icon/checkmark\";\nimport { IconMinus } from \"@purpur/icon/minus\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./cell.module.scss\";\n\ntype CellProps = {\n value: boolean | ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-cell\";\n\nexport const Cell = ({ value }: CellProps) => {\n const isReactNode = isValidElement(value) || [\"string\", \"number\"].includes(typeof value);\n\n const getClassName = () => {\n if (isReactNode) return \"\";\n return `${rootClassName}--${value ? \"check\" : \"minus\"}`;\n };\n\n const classes = cx(rootClassName, [getClassName()]);\n\n const Icon = value ? IconCheckmark : IconMinus;\n\n return (\n <span className={cx(classes)}>\n {isReactNode ? value : <Icon size=\"xs\" className={cx(`${rootClassName}__icon`)} />}\n </span>\n );\n};\n","import React, { type ReactNode } from \"react\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./lead-cell.module.scss\";\n\ntype LeadCellProps = {\n title: string;\n description?: ReactNode;\n};\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-lead-cell\";\n\nexport const LeadCell = ({ title, description }: LeadCellProps) => {\n const isExpandable = typeof description === \"string\";\n const classes = cx(rootClassName);\n\n return (\n <details className={classes} data-is-expandable={isExpandable}>\n <summary className={cx(`${rootClassName}__summary`)} tabIndex={isExpandable ? 0 : -1}>\n <Paragraph className={cx(`${rootClassName}__summary-title`)} variant=\"paragraph-100-bold\">\n {title}\n </Paragraph>\n <IconChevronDown className={cx(`${rootClassName}__summary-icon`)} size=\"sm\" />\n </summary>\n {description && (\n <Paragraph variant=\"paragraph-100\" className={cx(`${rootClassName}__description`)}>\n {description}\n </Paragraph>\n )}\n </details>\n );\n};\n","import React, { type ReactNode, useCallback, useEffect, useRef, useState } from \"react\";\nimport { Badge, type BadgeProps } from \"@purpur/badge\";\nimport { Button } from \"@purpur/button\";\nimport { Heading } from \"@purpur/heading\";\nimport { IconChevronDown } from \"@purpur/icon/chevron-down\";\nimport { Paragraph } from \"@purpur/paragraph\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps } from \"../../comparison-table\";\nimport styles from \"./option-card.module.scss\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table-option-card\";\n\nexport type OptionCardProps = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: ReactNode;\n variablePriceText: string;\n price: string;\n\n actions: ReactNode;\n\n badge?: BadgeProps;\n isHighlighted?: boolean;\n};\n\ntype OptionCardPropsAdditions = {\n id: string;\n cardIndex: number;\n isFirstCard: boolean;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n\n showFullDescriptions: boolean;\n toggleShowFullDescriptions: () => void;\n};\n\nexport const OptionCard = ({\n id,\n cardIndex,\n description,\n variablePriceText,\n price,\n isHighlighted,\n ariaLabels,\n badge,\n actions,\n isFirstCard,\n image,\n title,\n showFullDescriptions,\n toggleShowFullDescriptions,\n}: OptionCardProps & OptionCardPropsAdditions) => {\n const descriptionRef = useRef<HTMLDivElement | HTMLParagraphElement>(null);\n const descriptionContentRef = useRef<HTMLDivElement | null>(null);\n const showFullDescriptionsRef = useRef(showFullDescriptions);\n const [descriptionOverflows, setDescriptionOverflows] = useState(false);\n\n const classes = cx(rootClassName, {\n [`${rootClassName}--highlighted`]: isHighlighted,\n [`${rootClassName}--first-card`]: isFirstCard,\n [`${rootClassName}--show-full-descriptions`]: showFullDescriptions,\n });\n\n useEffect(() => {\n showFullDescriptionsRef.current = showFullDescriptions;\n }, [showFullDescriptions]);\n\n const checkDescriptionOverflow = useCallback(() => {\n if (showFullDescriptionsRef.current) {\n return;\n }\n\n const description = descriptionRef.current;\n const descriptionContent = descriptionContentRef.current;\n\n if (!description || !descriptionContent) {\n setDescriptionOverflows(false);\n return;\n }\n\n const descriptionHeight = description.clientHeight;\n const contentHeight = descriptionContent.offsetHeight;\n\n setDescriptionOverflows(contentHeight > descriptionHeight + 1);\n }, []);\n\n useEffect(() => {\n const descriptionElement = descriptionRef.current;\n\n checkDescriptionOverflow();\n\n if (!descriptionElement || typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n const resizeObserver = new ResizeObserver(checkDescriptionOverflow);\n resizeObserver.observe(descriptionElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [checkDescriptionOverflow, description]);\n\n const renderDescription = () => {\n if (!description) return null;\n\n return (\n <div className={cx(`${rootClassName}__description`)}>\n {typeof description === \"string\" ? (\n <Paragraph ref={descriptionRef} className={cx(`${rootClassName}__description-text`)}>\n <span ref={descriptionContentRef}>{description}</span>\n </Paragraph>\n ) : (\n <div ref={descriptionRef} className={cx(`${rootClassName}__description-text`)}>\n <div ref={descriptionContentRef} className={cx(`${rootClassName}__description-inner`)}>\n {description}\n </div>\n </div>\n )}\n <Button\n variant=\"text\"\n size=\"xs\"\n className={cx(`${rootClassName}__read-more`, {\n [`${rootClassName}__read-more--hidden`]: !descriptionOverflows,\n })}\n onClick={toggleShowFullDescriptions}\n aria-hidden={!descriptionOverflows}\n tabIndex={descriptionOverflows ? undefined : -1}\n >\n <span className={cx(`${rootClassName}__read-more-text`)}>\n {showFullDescriptions ? ariaLabels.readLess : ariaLabels.readMore}\n </span>\n <IconChevronDown className={cx(`${rootClassName}__read-more-icon`)} size=\"xs\" />\n </Button>\n </div>\n );\n };\n\n return (\n <article className={classes} data-card-id={id} data-card-index={cardIndex}>\n {badge && <Badge {...badge} className={cx(`${rootClassName}__badge`)} />}\n\n <section className={cx(`${rootClassName}__main-content`)}>\n <img src={image.src} alt={image.alt} className={cx(`${rootClassName}__image`)} />\n\n <div className={cx(`${rootClassName}__body`)}>\n <Heading tag=\"h3\" variant=\"title-200\" className={cx(`${rootClassName}__title`)}>\n {title}\n </Heading>\n {renderDescription()}\n </div>\n </section>\n\n <footer className={cx(`${rootClassName}__footer`)}>\n <span className={cx(`${rootClassName}__price`)} id={id}>\n <Paragraph variant=\"paragraph-100\">{variablePriceText}</Paragraph>\n <Paragraph variant=\"paragraph-100-bold\">{price}</Paragraph>\n </span>\n\n {actions}\n </footer>\n </article>\n );\n};\n","import React, { type RefObject, useCallback, useEffect, useState } from \"react\";\nimport { Button } from \"@purpur/button\";\nimport { IconArrowLeft } from \"@purpur/icon/arrow-left\";\nimport { IconArrowRight } from \"@purpur/icon/arrow-right\";\nimport c from \"classnames/bind\";\n\nimport { type ComparisonTableProps, type Features, type Item } from \"../../comparison-table\";\nimport styles from \"./scroll-progress.module.scss\";\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-comparison-table-scroll-progress\";\n\ntype ScrollProgressProps = {\n items: Array<Item<Features>>;\n container: RefObject<HTMLUListElement | null>;\n ariaLabels: ComparisonTableProps[\"ariaLabels\"];\n};\n\nexport const ScrollProgress = ({ items, container, ariaLabels }: ScrollProgressProps) => {\n const [inViewSet, setInViewSet] = useState<Set<number>>(new Set());\n\n const scrollToCard = useCallback(\n (index: number) => {\n const reduceMotion = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n\n const card = container.current?.querySelector(\n `[data-card-index=\"${index}\"]`\n ) as HTMLElement | null;\n card?.scrollIntoView({ behavior: reduceMotion ? \"instant\" : \"smooth\", block: \"nearest\" });\n },\n [container]\n );\n\n const previousCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const leftmostactiveIndex = Math.min(...Array.from(inViewSet));\n const targetIndex = leftmostactiveIndex - 1;\n\n if (targetIndex < 0) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, scrollToCard]);\n\n const nextCard = useCallback(() => {\n if (inViewSet.size === 0) return;\n\n const rightmostactiveIndex = Math.max(...Array.from(inViewSet));\n const targetIndex = rightmostactiveIndex + 1;\n\n if (targetIndex >= items.length) return;\n\n scrollToCard(targetIndex);\n }, [inViewSet, items.length, scrollToCard]);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent) => {\n if (e.key === \"ArrowRight\" || e.key === \"ArrowLeft\") {\n e.preventDefault();\n\n if (e.key === \"ArrowRight\") nextCard();\n else if (e.key === \"ArrowLeft\") previousCard();\n }\n },\n [nextCard, previousCard]\n );\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n setInViewSet((prev) => {\n const next = new Set(prev);\n\n entries.forEach((entry) => {\n const index = Number(entry.target.getAttribute(\"data-card-index\"));\n\n if (Number.isNaN(index)) return;\n\n if (entry.isIntersecting) {\n next.add(index);\n } else {\n next.delete(index);\n }\n });\n return next;\n });\n },\n { root, threshold: 0.5 }\n );\n\n items.forEach((_, index) => {\n const card = root.querySelector(`[data-card-index=\"${index}\"]`) as HTMLElement | null;\n\n if (card) observer.observe(card);\n });\n\n return () => observer.disconnect();\n }, [container, items]);\n\n useEffect(() => {\n const root = container.current;\n\n if (!root) return;\n\n root.addEventListener(\"keydown\", handleKeyDown);\n\n return () => root.removeEventListener(\"keydown\", handleKeyDown);\n }, [container, handleKeyDown]);\n\n const renderIndicators = () => {\n if (inViewSet.size === 0) return;\n\n const indicators = [];\n const viewCapacity = inViewSet.size;\n const leftmostActiveIndex = Math.min(...Array.from(inViewSet));\n const head = items.slice(0, leftmostActiveIndex).length;\n const trail = items.slice(leftmostActiveIndex + viewCapacity).length;\n\n let key = 0;\n\n for (let i = 0; i < items.length; i++) {\n if (head + 1 !== i && head <= i && i < items.length - trail) continue;\n\n let status = \"active\";\n\n if (i < head || i > items.length - 1 - trail) status = \"\";\n\n indicators.push(\n <li key={`indicator-${key++}`} className={cx(`${rootClassName}__indicator`, status)} />\n );\n }\n\n if (indicators.length < 2) return null;\n\n return indicators;\n };\n\n return (\n <li className={cx(rootClassName)}>\n <ul className={cx(`${rootClassName}__indicators`)}>{renderIndicators()}</ul>\n\n <div className={cx(`${rootClassName}__buttons`)}>\n <Button\n aria-label={ariaLabels.previous}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(0)}\n onClick={previousCard}\n >\n <IconArrowLeft className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n <Button\n aria-label={ariaLabels.next}\n variant=\"secondary\"\n iconOnly\n className={cx(`${rootClassName}__button`)}\n disabled={inViewSet.has(items.length - 1)}\n onClick={nextCard}\n >\n <IconArrowRight className={cx(`${rootClassName}__button-icon`)} size=\"xs\" />\n </Button>\n </div>\n </li>\n );\n};\n","import React, { type ReactNode, type UIEvent, useCallback, useId, useRef, useState } from \"react\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./comparison-table.module.scss\";\nimport { Cell } from \"./components/Cell/cell\";\nimport { LeadCell } from \"./components/LeadCell/lead-cell\";\nimport { OptionCard, type OptionCardProps } from \"./components/OptionCard/option-card\";\nimport { ScrollProgress } from \"./components/ScrollProgress/scroll-progress\";\n\nconst cx = c.bind(styles);\n\nconst rootClassName = \"purpur-comparison-table\";\n\nexport type Features = Record<string, ReactNode | null>;\n\nexport type Item<TFeatures extends Features = Features> = OptionCardProps & {\n features: Partial<Record<keyof TFeatures, ReactNode | string | boolean>>;\n};\n\nexport type ComparisonTableProps<TFeatures extends Features = Features> = {\n /** List of features that can be supported by the comparison table\n *\n * string = description of the feature that can be viewed by expanding cell.\n *\n * null = no description\n *\n {\n [featureName]: ReactNode | null\n }\n */\n features: TFeatures;\n\n /** List of items to be displayed in the comparison table\n *\n *\n Item = {\n image: {\n src: string;\n alt: string;\n };\n\n title: string;\n description: string;\n variablePriceText: string;\n price: string;\n actions: ReactNode;\n badge?: BadgeProps;\n isHighlighted?: boolean;\n\n features: {\n [featureName in keyof Features]?: string | boolean;\n };\n }\n */\n items: Array<Item<TFeatures>>;\n\n /** Aria labels for the comparison table and various components\n *\n {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n }\n */\n ariaLabels: {\n previous: string;\n next: string;\n readMore: string;\n readLess: string;\n };\n variant?: \"primary\" | \"secondary\";\n classname?: string;\n};\n\nexport const ComparisonTable = <TFeatures extends Features>({\n classname,\n features,\n items,\n ariaLabels,\n variant = \"primary\",\n}: ComparisonTableProps<TFeatures>) => {\n const id = useId();\n const classes = cx(classname, rootClassName, `${rootClassName}--${variant}`);\n const containerRef = useRef<HTMLUListElement>(null);\n const [showFullDescriptions, setShowFullDescriptions] = useState(false);\n\n const handleToggleShowFullDescriptions = useCallback(() => {\n setShowFullDescriptions((prev) => !prev);\n }, []);\n\n const renderCards = () => {\n return (\n <li className={cx(`${rootClassName}__cards`)}>\n <div className={cx(`${rootClassName}__separator`)} />\n {items.map((item, index) => (\n <OptionCard\n {...item}\n showFullDescriptions={showFullDescriptions}\n toggleShowFullDescriptions={handleToggleShowFullDescriptions}\n key={index}\n isFirstCard={index === 0}\n ariaLabels={ariaLabels}\n cardIndex={index}\n id={`${index}-${id}`}\n />\n ))}\n </li>\n );\n };\n\n const renderFeatures = () => {\n return Object.entries(features).map(([title, description], i) => (\n <li key={i} className={cx(`${rootClassName}__feature-row`)}>\n <LeadCell title={title} description={description} />\n {items.map((item, index) => (\n <Cell key={index} value={item.features[title as keyof TFeatures] ?? false} />\n ))}\n </li>\n ));\n };\n\n const deltaTime = useRef(0);\n\n const handleScrollEnd = (e: UIEvent<HTMLUListElement>) => {\n /**\n * This function makes sure that the scroll position is never stuck between two cards, since scroll snap is not fully reliable.\n */\n\n const target = e.currentTarget;\n const cardwidth = target.querySelector(\"[data-card-id]\")?.clientWidth ?? 0;\n const cardPos = Math.round(target.scrollLeft / cardwidth);\n const scrollTarget = cardPos * cardwidth + cardPos;\n const timeDiff = e.timeStamp - deltaTime.current;\n const scrollDiff = Math.abs(target.scrollLeft - scrollTarget);\n\n if (deltaTime.current && timeDiff < 200) return;\n if (scrollDiff < 10) return;\n\n deltaTime.current = e.timeStamp;\n\n target.scrollTo({ left: scrollTarget, behavior: \"smooth\" });\n };\n\n return (\n <div className={cx(rootClassName + \"__wrapper\")}>\n <ul\n id={rootClassName + `-${id}`}\n ref={containerRef}\n className={classes}\n // eslint-disable-next-line react/no-unknown-property\n onScrollEnd={handleScrollEnd}\n style={{\n // @ts-expect-error | Typescript doesn't recognize the CSS variable, but it works as intended\n [\"--initial-columns\"]: items.length + 1,\n }}\n >\n <ScrollProgress items={items} container={containerRef} ariaLabels={ariaLabels} />\n {renderCards()}\n {renderFeatures()}\n </ul>\n </div>\n );\n};\n\nComparisonTable.displayName = \"ComparisonTable\";\n"],"names":["cx","c","styles","rootClassName","Cell","value","isReactNode","isValidElement","classes","Icon","IconCheckmark","IconMinus","jsx","LeadCell","title","description","isExpandable","jsxs","Paragraph","IconChevronDown","OptionCard","id","cardIndex","variablePriceText","price","isHighlighted","ariaLabels","badge","actions","isFirstCard","image","showFullDescriptions","toggleShowFullDescriptions","descriptionRef","useRef","descriptionContentRef","showFullDescriptionsRef","descriptionOverflows","setDescriptionOverflows","useState","useEffect","checkDescriptionOverflow","useCallback","descriptionContent","descriptionHeight","contentHeight","descriptionElement","resizeObserver","renderDescription","Button","Badge","Heading","ScrollProgress","items","container","inViewSet","setInViewSet","scrollToCard","index","reduceMotion","previousCard","targetIndex","nextCard","handleKeyDown","root","observer","entries","prev","next","entry","_","card","renderIndicators","indicators","viewCapacity","leftmostActiveIndex","head","trail","key","i","status","IconArrowLeft","IconArrowRight","ComparisonTable","classname","features","variant","useId","containerRef","setShowFullDescriptions","handleToggleShowFullDescriptions","renderCards","item","createElement","renderFeatures","deltaTime","handleScrollEnd","e","target","cardwidth","cardPos","scrollTarget","timeDiff","scrollDiff"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;GAWMA,IAAKC,EAAE,KAAKC,EAAM,GAElBC,IAAgB,gCAETC,KAAO,CAAC,EAAE,OAAAC,QAAuB;AAC5C,QAAMC,IAAcC,EAAeF,CAAK,KAAK,CAAC,UAAU,QAAQ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G,CAAY;AAE5D,IAAIN,EAAU,WAAWO,IAAW,OAChCC,IAAa,OAEjBR,EAAU,UAAUE,EAAE,WAEtBC,EAAO,SAAS,EAAE,MAAMG,GAAc,UAAU,UAAU;AAAA,EAC5D;AAEA,2BACG,OAAA,EAAI,WAAWrG,EAAGG,IAAgB,WAAW,GAC5C,UAAA,gBAAAc;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAId,IAAgB,IAAIkB,CAAE;AAAA,MAC1B,KAAKmE;AAAA,MACL,WAAWhF;AAAA,MAEX,aAAawF;AAAA,MACb,OAAO;AAAA;AAAA,QAEJ,qBAAsB3C,EAAM,SAAS;AAAA,MAAA;AAAA,MAGxC,UAAA;AAAA,QAAA,gBAAAzC,EAACwC,IAAA,EAAe,OAAAC,GAAc,WAAWmC,GAAc,YAAA9D,GAAwB;AAAA,QAC9EiE,EAAA;AAAA,QACAG,EAAA;AAAA,MAAe;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEJ;AAEAX,GAAgB,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),a=require("react"),O=require("./bind-DeUYJ6m9.js"),V=require("./checkmark.es-lYntWFA3.js"),F=require("./minus.es-DtXArdKK.js"),P=require("./chevron-down.es-BMjgiS3F.js"),E=require("./paragraph-B8HFdNne.js"),K=require("./badge-CQ0SS_t8.js"),M=require("./button-DmybVApa.js"),W=require("./heading-drD5ugCC.js"),G=require("./arrow-left.es-CCWJyrcQ.js"),J=require("./arrow-right.es-eH-IgGi9.js"),Q={"purpur-comparison-table__wrapper":"_purpur-comparison-table__wrapper_1udkj_1","purpur-comparison-table":"_purpur-comparison-table_1udkj_1","purpur-comparison-table--primary":"_purpur-comparison-table--primary_1udkj_11","purpur-comparison-table--secondary":"_purpur-comparison-table--secondary_1udkj_15","purpur-comparison-table__feature-row":"_purpur-comparison-table__feature-row_1udkj_32","purpur-comparison-table__cards":"_purpur-comparison-table__cards_1udkj_32","purpur-comparison-table__separator":"_purpur-comparison-table__separator_1udkj_49"},U={"purpur-comparison-table-cell":"_purpur-comparison-table-cell_glb5z_1","purpur-comparison-table-cell--check":"_purpur-comparison-table-cell--check_glb5z_17","purpur-comparison-table-cell--minus":"_purpur-comparison-table-cell--minus_glb5z_20","purpur-comparison-table-cell__icon":"_purpur-comparison-table-cell__icon_glb5z_23"},D=O.c.bind(U),T="purpur-comparison-table-cell",X=({value:o})=>{const i=a.isValidElement(o)||["string","number"].includes(typeof o),t=D(T,[i?"":`${T}--${o?"check":"minus"}`]),$=o?V.a:F.e;return r.jsx("span",{className:D(t),children:i?o:r.jsx($,{size:"xs",className:D(`${T}__icon`)})})},Y={"purpur-comparison-table-lead-cell":"_purpur-comparison-table-lead-cell_rqs9w_1","purpur-comparison-table-lead-cell__description":"_purpur-comparison-table-lead-cell__description_rqs9w_5","purpur-comparison-table-lead-cell__summary":"_purpur-comparison-table-lead-cell__summary_rqs9w_40","purpur-comparison-table-lead-cell__summary-title":"_purpur-comparison-table-lead-cell__summary-title_rqs9w_48","purpur-comparison-table-lead-cell__summary-icon":"_purpur-comparison-table-lead-cell__summary-icon_rqs9w_51"},z=O.c.bind(Y),I="purpur-comparison-table-lead-cell",Z=({title:o,description:i})=>{const l=typeof i=="string",t=z(I);return r.jsxs("details",{className:t,"data-is-expandable":l,children:[r.jsxs("summary",{className:z(`${I}__summary`),tabIndex:l?0:-1,children:[r.jsx(E.Paragraph,{className:z(`${I}__summary-title`),variant:"paragraph-100-bold",children:o}),r.jsx(P.l,{className:z(`${I}__summary-icon`),size:"sm"})]}),i&&r.jsx(E.Paragraph,{variant:"paragraph-100",className:z(`${I}__description`),children:i})]})},rr={"purpur-comparison-table-option-card":"_purpur-comparison-table-option-card_xxwrc_1","purpur-comparison-table-option-card--highlighted":"_purpur-comparison-table-option-card--highlighted_xxwrc_11","purpur-comparison-table-option-card__badge":"_purpur-comparison-table-option-card__badge_xxwrc_14","purpur-comparison-table-option-card__main-content":"_purpur-comparison-table-option-card__main-content_xxwrc_19","purpur-comparison-table-option-card__image":"_purpur-comparison-table-option-card__image_xxwrc_25","purpur-comparison-table-option-card__body":"_purpur-comparison-table-option-card__body_xxwrc_31","purpur-comparison-table-option-card__description":"_purpur-comparison-table-option-card__description_xxwrc_36","purpur-comparison-table-option-card__description-text":"_purpur-comparison-table-option-card__description-text_xxwrc_41","purpur-comparison-table-option-card__description-inner":"_purpur-comparison-table-option-card__description-inner_xxwrc_50","purpur-comparison-table-option-card__read-more":"_purpur-comparison-table-option-card__read-more_xxwrc_53","purpur-comparison-table-option-card__read-more--hidden":"_purpur-comparison-table-option-card__read-more--hidden_xxwrc_57","purpur-comparison-table-option-card__read-more-icon":"_purpur-comparison-table-option-card__read-more-icon_xxwrc_60","purpur-comparison-table-option-card__footer":"_purpur-comparison-table-option-card__footer_xxwrc_68","purpur-comparison-table-option-card__price":"_purpur-comparison-table-option-card__price_xxwrc_73","purpur-comparison-table-option-card--show-full-descriptions":"_purpur-comparison-table-option-card--show-full-descriptions_xxwrc_80","purpur-comparison-table-option-card--first-card":"_purpur-comparison-table-option-card--first-card_xxwrc_118"},_=O.c.bind(rr),c="purpur-comparison-table-option-card",er=({id:o,cardIndex:i,description:l,variablePriceText:t,price:$,isHighlighted:x,ariaLabels:f,badge:h,actions:j,isFirstCard:k,image:e,title:p,showFullDescriptions:d,toggleShowFullDescriptions:m})=>{const u=a.useRef(null),n=a.useRef(null),s=a.useRef(d),[b,v]=a.useState(!1),N=_(c,{[`${c}--highlighted`]:x,[`${c}--first-card`]:k,[`${c}--show-full-descriptions`]:d});a.useEffect(()=>{s.current=d},[d]);const C=a.useCallback(()=>{if(s.current)return;const q=u.current,S=n.current;if(!q||!S){v(!1);return}const H=q.clientHeight,B=S.offsetHeight;v(B>H+1)},[]);a.useEffect(()=>{const q=u.current;if(C(),!q||typeof ResizeObserver>"u")return;const S=new ResizeObserver(C);return S.observe(q),()=>{S.disconnect()}},[C,l]);const A=()=>l?r.jsxs("div",{className:_(`${c}__description`),children:[typeof l=="string"?r.jsx(E.Paragraph,{ref:u,className:_(`${c}__description-text`),children:r.jsx("span",{ref:n,children:l})}):r.jsx("div",{ref:u,className:_(`${c}__description-text`),children:r.jsx("div",{ref:n,className:_(`${c}__description-inner`),children:l})}),r.jsxs(M.Button,{variant:"text",size:"xs",className:_(`${c}__read-more`,{[`${c}__read-more--hidden`]:!b}),onClick:m,"aria-hidden":!b,tabIndex:b?void 0:-1,children:[r.jsx("span",{className:_(`${c}__read-more-text`),children:d?f.readLess:f.readMore}),r.jsx(P.l,{className:_(`${c}__read-more-icon`),size:"xs"})]})]}):null;return r.jsxs("article",{className:N,"data-card-id":o,"data-card-index":i,children:[h&&r.jsx(K.Badge,{...h,className:_(`${c}__badge`)}),r.jsxs("section",{className:_(`${c}__main-content`),children:[r.jsx("img",{src:e.src,alt:e.alt,className:_(`${c}__image`)}),r.jsxs("div",{className:_(`${c}__body`),children:[r.jsx(W.Heading,{tag:"h3",variant:"title-200",className:_(`${c}__title`),children:p}),A()]})]}),r.jsxs("footer",{className:_(`${c}__footer`),children:[r.jsxs("span",{className:_(`${c}__price`),id:o,children:[r.jsx(E.Paragraph,{variant:"paragraph-100",children:t}),r.jsx(E.Paragraph,{variant:"paragraph-100-bold",children:$})]}),j]})]})},sr="_active_kvsnm_44",or={"purpur-comparison-table-scroll-progress":"_purpur-comparison-table-scroll-progress_kvsnm_1","purpur-comparison-table-scroll-progress__indicators":"_purpur-comparison-table-scroll-progress__indicators_kvsnm_15","purpur-comparison-table-scroll-progress__indicator":"_purpur-comparison-table-scroll-progress__indicator_kvsnm_15",active:sr,"purpur-comparison-table-scroll-progress__buttons":"_purpur-comparison-table-scroll-progress__buttons_kvsnm_48","purpur-comparison-table-scroll-progress__button":"_purpur-comparison-table-scroll-progress__button_kvsnm_48","purpur-comparison-table-scroll-progress__button-icon":"_purpur-comparison-table-scroll-progress__button-icon_kvsnm_57"},g=O.c.bind(or),w="purpur-comparison-table-scroll-progress",ar=({items:o,container:i,ariaLabels:l})=>{const[t,$]=a.useState(new Set),x=a.useCallback(e=>{const p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;i.current?.querySelector(`[data-card-index="${e}"]`)?.scrollIntoView({behavior:p?"instant":"smooth",block:"nearest"})},[i]),f=a.useCallback(()=>{if(t.size===0)return;const p=Math.min(...Array.from(t))-1;p<0||x(p)},[t,x]),h=a.useCallback(()=>{if(t.size===0)return;const p=Math.max(...Array.from(t))+1;p>=o.length||x(p)},[t,o.length,x]),j=a.useCallback(e=>{(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(e.preventDefault(),e.key==="ArrowRight"?h():e.key==="ArrowLeft"&&f())},[h,f]);a.useEffect(()=>{const e=i.current;if(!e)return;const p=new IntersectionObserver(d=>{$(m=>{const u=new Set(m);return d.forEach(n=>{const s=Number(n.target.getAttribute("data-card-index"));Number.isNaN(s)||(n.isIntersecting?u.add(s):u.delete(s))}),u})},{root:e,threshold:.5});return o.forEach((d,m)=>{const u=e.querySelector(`[data-card-index="${m}"]`);u&&p.observe(u)}),()=>p.disconnect()},[i,o]),a.useEffect(()=>{const e=i.current;if(e)return e.addEventListener("keydown",j),()=>e.removeEventListener("keydown",j)},[i,j]);const k=()=>{if(t.size===0)return;const e=[],p=t.size,d=Math.min(...Array.from(t)),m=o.slice(0,d).length,u=o.slice(d+p).length;let n=0;for(let s=0;s<o.length;s++){if(m+1!==s&&m<=s&&s<o.length-u)continue;let b="active";(s<m||s>o.length-1-u)&&(b=""),e.push(r.jsx("li",{className:g(`${w}__indicator`,b)},`indicator-${n++}`))}return e.length<2?null:e};return r.jsxs("li",{className:g(w),children:[r.jsx("ul",{className:g(`${w}__indicators`),children:k()}),r.jsxs("div",{className:g(`${w}__buttons`),children:[r.jsx(M.Button,{"aria-label":l.previous,variant:"secondary",iconOnly:!0,className:g(`${w}__button`),disabled:t.has(0),onClick:f,children:r.jsx(G.l,{className:g(`${w}__button-icon`),size:"xs"})}),r.jsx(M.Button,{"aria-label":l.next,variant:"secondary",iconOnly:!0,className:g(`${w}__button`),disabled:t.has(o.length-1),onClick:h,children:r.jsx(J.i,{className:g(`${w}__button-icon`),size:"xs"})})]})]})},R=O.c.bind(Q),y="purpur-comparison-table",L=({classname:o,features:i,items:l,ariaLabels:t,variant:$="primary"})=>{const x=a.useId(),f=R(o,y,`${y}--${$}`),h=a.useRef(null),[j,k]=a.useState(!1),e=a.useCallback(()=>{k(n=>!n)},[]),p=()=>r.jsxs("li",{className:R(`${y}__cards`),children:[r.jsx("div",{className:R(`${y}__separator`)}),l.map((n,s)=>a.createElement(er,{...n,showFullDescriptions:j,toggleShowFullDescriptions:e,key:s,isFirstCard:s===0,ariaLabels:t,cardIndex:s,id:`${s}-${x}`}))]}),d=()=>Object.entries(i).map(([n,s],b)=>r.jsxs("li",{className:R(`${y}__feature-row`),children:[r.jsx(Z,{title:n,description:s}),l.map((v,N)=>r.jsx(X,{value:v.features[n]??!1},N))]},b)),m=a.useRef(0),u=n=>{const s=n.currentTarget,b=s.querySelector("[data-card-id]")?.clientWidth??0,v=Math.round(s.scrollLeft/b),N=v*b+v,C=n.timeStamp-m.current,A=Math.abs(s.scrollLeft-N);m.current&&C<200||A<10||(m.current=n.timeStamp,s.scrollTo({left:N,behavior:"smooth"}))};return r.jsx("div",{className:R(y+"__wrapper"),children:r.jsxs("ul",{id:y+`-${x}`,ref:h,className:f,onScrollEnd:u,style:{"--initial-columns":l.length+1},children:[r.jsx(ar,{items:l,container:h,ariaLabels:t}),p(),d()]})})};L.displayName="ComparisonTable";exports.ComparisonTable=L;
|
|
2
|
-
//# sourceMappingURL=comparison-table-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),O=require("./bind-DeUYJ6m9.js"),V=require("./checkmark.es-lYntWFA3.js"),F=require("./minus.es-DtXArdKK.js"),P=require("./chevron-down.es-BMjgiS3F.js"),E=require("./paragraph-B8HFdNne.js"),K=require("./badge-CQ0SS_t8.js"),M=require("./button-DmybVApa.js"),W=require("./heading-drD5ugCC.js"),G=require("./arrow-left.es-CCWJyrcQ.js"),J=require("./arrow-right.es-eH-IgGi9.js"),Q={"purpur-comparison-table__wrapper":"_purpur-comparison-table__wrapper_1udkj_1","purpur-comparison-table":"_purpur-comparison-table_1udkj_1","purpur-comparison-table--primary":"_purpur-comparison-table--primary_1udkj_11","purpur-comparison-table--secondary":"_purpur-comparison-table--secondary_1udkj_15","purpur-comparison-table__feature-row":"_purpur-comparison-table__feature-row_1udkj_32","purpur-comparison-table__cards":"_purpur-comparison-table__cards_1udkj_32","purpur-comparison-table__separator":"_purpur-comparison-table__separator_1udkj_49"},U={"purpur-comparison-table-cell":"_purpur-comparison-table-cell_glb5z_1","purpur-comparison-table-cell--check":"_purpur-comparison-table-cell--check_glb5z_17","purpur-comparison-table-cell--minus":"_purpur-comparison-table-cell--minus_glb5z_20","purpur-comparison-table-cell__icon":"_purpur-comparison-table-cell__icon_glb5z_23"},D=O.c.bind(U),T="purpur-comparison-table-cell",X=({value:o})=>{const i=a.isValidElement(o)||["string","number"].includes(typeof o),t=D(T,[i?"":`${T}--${o?"check":"minus"}`]),j=o?V.a:F.e;return r.jsx("span",{className:D(t),children:i?o:r.jsx(j,{size:"xs",className:D(`${T}__icon`)})})},Y={"purpur-comparison-table-lead-cell":"_purpur-comparison-table-lead-cell_rqs9w_1","purpur-comparison-table-lead-cell__description":"_purpur-comparison-table-lead-cell__description_rqs9w_5","purpur-comparison-table-lead-cell__summary":"_purpur-comparison-table-lead-cell__summary_rqs9w_40","purpur-comparison-table-lead-cell__summary-title":"_purpur-comparison-table-lead-cell__summary-title_rqs9w_48","purpur-comparison-table-lead-cell__summary-icon":"_purpur-comparison-table-lead-cell__summary-icon_rqs9w_51"},S=O.c.bind(Y),I="purpur-comparison-table-lead-cell",Z=({title:o,description:i})=>{const l=typeof i=="string",t=S(I);return r.jsxs("details",{className:t,"data-is-expandable":l,children:[r.jsxs("summary",{className:S(`${I}__summary`),tabIndex:l?0:-1,children:[r.jsx(E.Paragraph,{className:S(`${I}__summary-title`),variant:"paragraph-100-bold",children:o}),r.jsx(P.l,{className:S(`${I}__summary-icon`),size:"sm"})]}),i&&r.jsx(E.Paragraph,{variant:"paragraph-100",className:S(`${I}__description`),children:i})]})},rr={"purpur-comparison-table-option-card":"_purpur-comparison-table-option-card_zggg8_1","purpur-comparison-table-option-card--highlighted":"_purpur-comparison-table-option-card--highlighted_zggg8_11","purpur-comparison-table-option-card__badge":"_purpur-comparison-table-option-card__badge_zggg8_14","purpur-comparison-table-option-card__main-content":"_purpur-comparison-table-option-card__main-content_zggg8_19","purpur-comparison-table-option-card__image":"_purpur-comparison-table-option-card__image_zggg8_25","purpur-comparison-table-option-card__body":"_purpur-comparison-table-option-card__body_zggg8_31","purpur-comparison-table-option-card__description":"_purpur-comparison-table-option-card__description_zggg8_36","purpur-comparison-table-option-card__description-text":"_purpur-comparison-table-option-card__description-text_zggg8_41","purpur-comparison-table-option-card__description-inner":"_purpur-comparison-table-option-card__description-inner_zggg8_50","purpur-comparison-table-option-card__read-more":"_purpur-comparison-table-option-card__read-more_zggg8_56","purpur-comparison-table-option-card__read-more--hidden":"_purpur-comparison-table-option-card__read-more--hidden_zggg8_60","purpur-comparison-table-option-card__read-more-icon":"_purpur-comparison-table-option-card__read-more-icon_zggg8_63","purpur-comparison-table-option-card__footer":"_purpur-comparison-table-option-card__footer_zggg8_71","purpur-comparison-table-option-card__price":"_purpur-comparison-table-option-card__price_zggg8_76","purpur-comparison-table-option-card--show-full-descriptions":"_purpur-comparison-table-option-card--show-full-descriptions_zggg8_83","purpur-comparison-table-option-card--first-card":"_purpur-comparison-table-option-card--first-card_zggg8_126"},_=O.c.bind(rr),c="purpur-comparison-table-option-card",er=({id:o,cardIndex:i,description:l,variablePriceText:t,price:j,isHighlighted:g,ariaLabels:f,badge:h,actions:v,isFirstCard:k,image:e,title:p,showFullDescriptions:d,toggleShowFullDescriptions:m})=>{const u=a.useRef(null),n=a.useRef(null),s=a.useRef(d),[b,y]=a.useState(!1),w=_(c,{[`${c}--highlighted`]:g,[`${c}--first-card`]:k,[`${c}--show-full-descriptions`]:d});a.useEffect(()=>{s.current=d},[d]);const z=a.useCallback(()=>{if(s.current)return;const C=u.current,q=n.current;if(!C||!q){y(!1);return}const H=C.clientHeight,B=q.offsetHeight;y(B>H+1)},[]);a.useEffect(()=>{const C=u.current;if(z(),!C||typeof ResizeObserver>"u")return;const q=new ResizeObserver(z);return q.observe(C),()=>{q.disconnect()}},[z,l]);const A=()=>l?r.jsxs("div",{className:_(`${c}__description`),children:[typeof l=="string"?r.jsx(E.Paragraph,{ref:u,className:_(`${c}__description-text`),children:r.jsx("span",{ref:n,children:l})}):r.jsx("div",{ref:u,className:_(`${c}__description-text`),children:r.jsx("div",{ref:n,className:_(`${c}__description-inner`),children:l})}),r.jsxs(M.Button,{variant:"text",size:"xs",className:_(`${c}__read-more`,{[`${c}__read-more--hidden`]:!b}),onClick:m,"aria-hidden":!b,tabIndex:b?void 0:-1,children:[r.jsx("span",{className:_(`${c}__read-more-text`),children:d?f.readLess:f.readMore}),r.jsx(P.l,{className:_(`${c}__read-more-icon`),size:"xs"})]})]}):null;return r.jsxs("article",{className:w,"data-card-id":o,"data-card-index":i,children:[h&&r.jsx(K.Badge,{...h,className:_(`${c}__badge`)}),r.jsxs("section",{className:_(`${c}__main-content`),children:[r.jsx("img",{src:e.src,alt:e.alt,className:_(`${c}__image`)}),r.jsxs("div",{className:_(`${c}__body`),children:[r.jsx(W.Heading,{tag:"h3",variant:"title-200",className:_(`${c}__title`),children:p}),A()]})]}),r.jsxs("footer",{className:_(`${c}__footer`),children:[r.jsxs("span",{className:_(`${c}__price`),id:o,children:[r.jsx(E.Paragraph,{variant:"paragraph-100",children:t}),r.jsx(E.Paragraph,{variant:"paragraph-100-bold",children:j})]}),v]})]})},sr="_active_kvsnm_44",or={"purpur-comparison-table-scroll-progress":"_purpur-comparison-table-scroll-progress_kvsnm_1","purpur-comparison-table-scroll-progress__indicators":"_purpur-comparison-table-scroll-progress__indicators_kvsnm_15","purpur-comparison-table-scroll-progress__indicator":"_purpur-comparison-table-scroll-progress__indicator_kvsnm_15",active:sr,"purpur-comparison-table-scroll-progress__buttons":"_purpur-comparison-table-scroll-progress__buttons_kvsnm_48","purpur-comparison-table-scroll-progress__button":"_purpur-comparison-table-scroll-progress__button_kvsnm_48","purpur-comparison-table-scroll-progress__button-icon":"_purpur-comparison-table-scroll-progress__button-icon_kvsnm_57"},x=O.c.bind(or),$="purpur-comparison-table-scroll-progress",ar=({items:o,container:i,ariaLabels:l})=>{const[t,j]=a.useState(new Set),g=a.useCallback(e=>{const p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;i.current?.querySelector(`[data-card-index="${e}"]`)?.scrollIntoView({behavior:p?"instant":"smooth",block:"nearest"})},[i]),f=a.useCallback(()=>{if(t.size===0)return;const p=Math.min(...Array.from(t))-1;p<0||g(p)},[t,g]),h=a.useCallback(()=>{if(t.size===0)return;const p=Math.max(...Array.from(t))+1;p>=o.length||g(p)},[t,o.length,g]),v=a.useCallback(e=>{(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(e.preventDefault(),e.key==="ArrowRight"?h():e.key==="ArrowLeft"&&f())},[h,f]);a.useEffect(()=>{const e=i.current;if(!e)return;const p=new IntersectionObserver(d=>{j(m=>{const u=new Set(m);return d.forEach(n=>{const s=Number(n.target.getAttribute("data-card-index"));Number.isNaN(s)||(n.isIntersecting?u.add(s):u.delete(s))}),u})},{root:e,threshold:.5});return o.forEach((d,m)=>{const u=e.querySelector(`[data-card-index="${m}"]`);u&&p.observe(u)}),()=>p.disconnect()},[i,o]),a.useEffect(()=>{const e=i.current;if(e)return e.addEventListener("keydown",v),()=>e.removeEventListener("keydown",v)},[i,v]);const k=()=>{if(t.size===0)return;const e=[],p=t.size,d=Math.min(...Array.from(t)),m=o.slice(0,d).length,u=o.slice(d+p).length;let n=0;for(let s=0;s<o.length;s++){if(m+1!==s&&m<=s&&s<o.length-u)continue;let b="active";(s<m||s>o.length-1-u)&&(b=""),e.push(r.jsx("li",{className:x(`${$}__indicator`,b)},`indicator-${n++}`))}return e.length<2?null:e};return r.jsxs("li",{className:x($),children:[r.jsx("ul",{className:x(`${$}__indicators`),children:k()}),r.jsxs("div",{className:x(`${$}__buttons`),children:[r.jsx(M.Button,{"aria-label":l.previous,variant:"secondary",iconOnly:!0,className:x(`${$}__button`),disabled:t.has(0),onClick:f,children:r.jsx(G.l,{className:x(`${$}__button-icon`),size:"xs"})}),r.jsx(M.Button,{"aria-label":l.next,variant:"secondary",iconOnly:!0,className:x(`${$}__button`),disabled:t.has(o.length-1),onClick:h,children:r.jsx(J.i,{className:x(`${$}__button-icon`),size:"xs"})})]})]})},R=O.c.bind(Q),N="purpur-comparison-table",L=({classname:o,features:i,items:l,ariaLabels:t,variant:j="primary"})=>{const g=a.useId(),f=R(o,N,`${N}--${j}`),h=a.useRef(null),[v,k]=a.useState(!1),e=a.useCallback(()=>{k(n=>!n)},[]),p=()=>r.jsxs("li",{className:R(`${N}__cards`),children:[r.jsx("div",{className:R(`${N}__separator`)}),l.map((n,s)=>a.createElement(er,{...n,showFullDescriptions:v,toggleShowFullDescriptions:e,key:s,isFirstCard:s===0,ariaLabels:t,cardIndex:s,id:`${s}-${g}`}))]}),d=()=>Object.entries(i).map(([n,s],b)=>r.jsxs("li",{className:R(`${N}__feature-row`),children:[r.jsx(Z,{title:n,description:s}),l.map((y,w)=>r.jsx(X,{value:y.features[n]??!1},w))]},b)),m=a.useRef(0),u=n=>{const s=n.currentTarget,b=s.querySelector("[data-card-id]")?.clientWidth??0,y=Math.round(s.scrollLeft/b),w=y*b+y,z=n.timeStamp-m.current,A=Math.abs(s.scrollLeft-w);m.current&&z<200||A<10||(m.current=n.timeStamp,s.scrollTo({left:w,behavior:"smooth"}))};return r.jsx("div",{className:R(N+"__wrapper"),children:r.jsxs("ul",{id:N+`-${g}`,ref:h,className:f,onScrollEnd:u,style:{"--initial-columns":l.length+1},children:[r.jsx(ar,{items:l,container:h,ariaLabels:t}),p(),d()]})})};L.displayName="ComparisonTable";exports.ComparisonTable=L;
|
|
2
|
+
//# sourceMappingURL=comparison-table-Dtqxz8vL.js.map
|