commerce-toolkit 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Combination-B_L7xrJs.js +674 -0
- package/dist/Combination-B_L7xrJs.js.map +1 -0
- package/dist/Combination-D7-DB-sH.cjs +42 -0
- package/dist/Combination-D7-DB-sH.cjs.map +1 -0
- package/dist/accordion-trigger-Bj1Laf6l.cjs +2 -0
- package/dist/{accordion-trigger-Bhrl2g4p.cjs.map → accordion-trigger-Bj1Laf6l.cjs.map} +1 -1
- package/dist/{accordion-trigger-DedSFrtg.js → accordion-trigger-Cdkd0tWD.js} +28 -26
- package/dist/{accordion-trigger-DedSFrtg.js.map → accordion-trigger-Cdkd0tWD.js.map} +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/{alert-dismiss-DA9LNmIE.js → alert-dismiss-EYWAId7r.js} +3 -3
- package/dist/{alert-dismiss-DA9LNmIE.js.map → alert-dismiss-EYWAId7r.js.map} +1 -1
- package/dist/{alert-dismiss-10OVmm_h.cjs → alert-dismiss-m6lm9pLf.cjs} +2 -2
- package/dist/{alert-dismiss-10OVmm_h.cjs.map → alert-dismiss-m6lm9pLf.cjs.map} +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/{banner-dismiss-DfFezmDg.cjs → banner-dismiss-0uh1GtF1.cjs} +2 -2
- package/dist/{banner-dismiss-DfFezmDg.cjs.map → banner-dismiss-0uh1GtF1.cjs.map} +1 -1
- package/dist/{banner-dismiss-DTT0uoeG.js → banner-dismiss-B_j9wqx-.js} +2 -2
- package/dist/{banner-dismiss-DTT0uoeG.js.map → banner-dismiss-B_j9wqx-.js.map} +1 -1
- package/dist/banner.cjs +1 -1
- package/dist/banner.js +1 -1
- package/dist/{blog-post-card-author-D4zo7N_N.cjs → blog-post-card-author-B55DKFff.cjs} +2 -2
- package/dist/{blog-post-card-author-D4zo7N_N.cjs.map → blog-post-card-author-B55DKFff.cjs.map} +1 -1
- package/dist/{blog-post-card-author-CD_eplIv.js → blog-post-card-author-C1GuND4f.js} +8 -8
- package/dist/{blog-post-card-author-CD_eplIv.js.map → blog-post-card-author-C1GuND4f.js.map} +1 -1
- package/dist/blog-post-card.cjs +1 -1
- package/dist/blog-post-card.js +4 -4
- package/dist/button-W0_PtryU.js +106 -0
- package/dist/button-W0_PtryU.js.map +1 -0
- package/dist/button-ibzOCImJ.cjs +7 -0
- package/dist/button-ibzOCImJ.cjs.map +1 -0
- package/dist/button-radio-group.cjs +2 -0
- package/dist/button-radio-group.cjs.map +1 -0
- package/dist/button-radio-group.js +63 -0
- package/dist/button-radio-group.js.map +1 -0
- package/dist/{card-link-COguZcAK.js → card-link-C48N1y5C.js} +2 -2
- package/dist/{card-link-COguZcAK.js.map → card-link-C48N1y5C.js.map} +1 -1
- package/dist/{card-link-Dnn-M6g-.cjs → card-link-i_zrZjnx.cjs} +2 -2
- package/dist/{card-link-Dnn-M6g-.cjs.map → card-link-i_zrZjnx.cjs.map} +1 -1
- package/dist/card-radio-group.cjs +2 -0
- package/dist/card-radio-group.cjs.map +1 -0
- package/dist/card-radio-group.js +81 -0
- package/dist/card-radio-group.js.map +1 -0
- package/dist/card.cjs +1 -1
- package/dist/card.js +3 -3
- package/dist/{carousel-next-Co4dy8i8.cjs → carousel-next-BGIZglEF.cjs} +2 -2
- package/dist/{carousel-next-Co4dy8i8.cjs.map → carousel-next-BGIZglEF.cjs.map} +1 -1
- package/dist/{carousel-next-H6-vbcKz.js → carousel-next-BzKOs3K-.js} +2 -2
- package/dist/{carousel-next-H6-vbcKz.js.map → carousel-next-BzKOs3K-.js.map} +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.js +1 -1
- package/dist/{category-card-link-BwSFHFcd.cjs → category-card-link-BSmQDScF.cjs} +2 -2
- package/dist/{category-card-link-BwSFHFcd.cjs.map → category-card-link-BSmQDScF.cjs.map} +1 -1
- package/dist/{category-card-link-BqMAG9Op.js → category-card-link-mgtggmo_.js} +3 -3
- package/dist/{category-card-link-BqMAG9Op.js.map → category-card-link-mgtggmo_.js.map} +1 -1
- package/dist/category-card.cjs +1 -1
- package/dist/category-card.js +5 -5
- package/dist/checkbox-group.cjs +2 -0
- package/dist/checkbox-group.cjs.map +1 -0
- package/dist/checkbox-group.js +21 -0
- package/dist/checkbox-group.js.map +1 -0
- package/dist/checkbox-indicator-DVkOzOV6.cjs +2 -0
- package/dist/checkbox-indicator-DVkOzOV6.cjs.map +1 -0
- package/dist/checkbox-indicator-sO8XNm-j.js +296 -0
- package/dist/checkbox-indicator-sO8XNm-j.js.map +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +3 -5
- package/dist/checkbox.js.map +1 -1
- package/dist/{chip-button-BVG27Nve.js → chip-button-BhdyJZ5U.js} +2 -2
- package/dist/{chip-button-BVG27Nve.js.map → chip-button-BhdyJZ5U.js.map} +1 -1
- package/dist/{chip-button-B-QabGrN.cjs → chip-button-DRroMV7K.cjs} +2 -2
- package/dist/{chip-button-B-QabGrN.cjs.map → chip-button-DRroMV7K.cjs.map} +1 -1
- package/dist/chip.cjs +1 -1
- package/dist/chip.js +1 -1
- package/dist/compare-card-specs-empty-D42h8BPm.cjs +2 -0
- package/dist/compare-card-specs-empty-D42h8BPm.cjs.map +1 -0
- package/dist/compare-card-specs-empty-n4gOqNXU.js +285 -0
- package/dist/compare-card-specs-empty-n4gOqNXU.js.map +1 -0
- package/dist/compare-card.cjs +1 -1
- package/dist/compare-card.cjs.map +1 -1
- package/dist/compare-card.js +29 -30
- package/dist/compare-card.js.map +1 -1
- package/dist/{compare-drawer-remove-B6UNek1W.js → compare-drawer-remove-DqQAu7qC.js} +3 -3
- package/dist/{compare-drawer-remove-B6UNek1W.js.map → compare-drawer-remove-DqQAu7qC.js.map} +1 -1
- package/dist/{compare-drawer-remove-DcaPIOnG.cjs → compare-drawer-remove-DxYGdJay.cjs} +2 -2
- package/dist/{compare-drawer-remove-DcaPIOnG.cjs.map → compare-drawer-remove-DxYGdJay.cjs.map} +1 -1
- package/dist/compare-drawer.cjs +1 -1
- package/dist/compare-drawer.js +1 -1
- package/dist/components/button/button.d.ts +13 -13
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button-link/button-link.d.ts +1 -1
- package/dist/components/button-link/button-link.d.ts.map +1 -1
- package/dist/components/button-radio-group/button-radio-group.d.ts +33 -0
- package/dist/components/button-radio-group/button-radio-group.d.ts.map +1 -0
- package/dist/components/button-radio-group/index.d.ts +3 -0
- package/dist/components/button-radio-group/index.d.ts.map +1 -0
- package/dist/components/button-radio-group/primitives/button-radio-group-item.d.ts +5 -0
- package/dist/components/button-radio-group/primitives/button-radio-group-item.d.ts.map +1 -0
- package/dist/components/button-radio-group/primitives/button-radio-group-root.d.ts +5 -0
- package/dist/components/button-radio-group/primitives/button-radio-group-root.d.ts.map +1 -0
- package/dist/components/button-radio-group/primitives.d.ts +3 -0
- package/dist/components/button-radio-group/primitives.d.ts.map +1 -0
- package/dist/components/card-radio-group/card-radio-group.d.ts +37 -0
- package/dist/components/card-radio-group/card-radio-group.d.ts.map +1 -0
- package/dist/components/card-radio-group/index.d.ts +3 -0
- package/dist/components/card-radio-group/index.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-image.d.ts +6 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-image.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-item.d.ts +5 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-item.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-label.d.ts +4 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-label.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-root.d.ts +5 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-root.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-thumbnail.d.ts +4 -0
- package/dist/components/card-radio-group/primitives/card-radio-group-thumbnail.d.ts.map +1 -0
- package/dist/components/card-radio-group/primitives.d.ts +6 -0
- package/dist/components/card-radio-group/primitives.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +5 -15
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/primitives/checkbox-root.d.ts +2 -10
- package/dist/components/checkbox/primitives/checkbox-root.d.ts.map +1 -1
- package/dist/components/checkbox/primitives.d.ts +1 -1
- package/dist/components/checkbox/primitives.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +16 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group/index.d.ts +3 -0
- package/dist/components/checkbox-group/index.d.ts.map +1 -0
- package/dist/components/checkbox-group/primitives/checkbox-group-option.d.ts +4 -0
- package/dist/components/checkbox-group/primitives/checkbox-group-option.d.ts.map +1 -0
- package/dist/components/checkbox-group/primitives/checkbox-group-root.d.ts +4 -0
- package/dist/components/checkbox-group/primitives/checkbox-group-root.d.ts.map +1 -0
- package/dist/components/checkbox-group/primitives.d.ts +3 -0
- package/dist/components/checkbox-group/primitives.d.ts.map +1 -0
- package/dist/components/counter/counter.d.ts +4 -5
- package/dist/components/counter/counter.d.ts.map +1 -1
- package/dist/components/counter/primitives/counter-decrease.d.ts +1 -1
- package/dist/components/counter/primitives/counter-decrease.d.ts.map +1 -1
- package/dist/components/counter/primitives/counter-increase.d.ts +1 -1
- package/dist/components/counter/primitives/counter-increase.d.ts.map +1 -1
- package/dist/components/counter/primitives/counter-input.d.ts +1 -1
- package/dist/components/counter/primitives/counter-input.d.ts.map +1 -1
- package/dist/components/counter/primitives/counter-root.d.ts +2 -14
- package/dist/components/counter/primitives/counter-root.d.ts.map +1 -1
- package/dist/components/counter/primitives.d.ts +1 -1
- package/dist/components/counter/primitives.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +10 -0
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/primitives/date-picker-content.d.ts +5 -0
- package/dist/components/date-picker/primitives/date-picker-content.d.ts.map +1 -0
- package/dist/components/date-picker/primitives/date-picker-portal.d.ts +5 -0
- package/dist/components/date-picker/primitives/date-picker-portal.d.ts.map +1 -0
- package/dist/components/date-picker/primitives/date-picker-root.d.ts +5 -0
- package/dist/components/date-picker/primitives/date-picker-root.d.ts.map +1 -0
- package/dist/components/date-picker/primitives/date-picker-trigger.d.ts +5 -0
- package/dist/components/date-picker/primitives/date-picker-trigger.d.ts.map +1 -0
- package/dist/components/date-picker/primitives.d.ts +5 -0
- package/dist/components/date-picker/primitives.d.ts.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/primitives/field-description.d.ts +4 -0
- package/dist/components/field/primitives/field-description.d.ts.map +1 -0
- package/dist/components/field/primitives/field-error.d.ts +4 -0
- package/dist/components/field/primitives/field-error.d.ts.map +1 -0
- package/dist/components/field/primitives/field-group.d.ts +4 -0
- package/dist/components/field/primitives/field-group.d.ts.map +1 -0
- package/dist/components/field/primitives/field-hint.d.ts +4 -0
- package/dist/components/field/primitives/field-hint.d.ts.map +1 -0
- package/dist/components/field/primitives/field-item.d.ts +6 -0
- package/dist/components/field/primitives/field-item.d.ts.map +1 -0
- package/dist/components/field/primitives/field-label.d.ts +4 -0
- package/dist/components/field/primitives/field-label.d.ts.map +1 -0
- package/dist/components/field/primitives/field-legend.d.ts +4 -0
- package/dist/components/field/primitives/field-legend.d.ts.map +1 -0
- package/dist/components/field/primitives/field-separator.d.ts +4 -0
- package/dist/components/field/primitives/field-separator.d.ts.map +1 -0
- package/dist/components/field/primitives/field-set.d.ts +4 -0
- package/dist/components/field/primitives/field-set.d.ts.map +1 -0
- package/dist/components/field/primitives.d.ts +10 -0
- package/dist/components/field/primitives.d.ts.map +1 -0
- package/dist/components/file-input/file-input.d.ts +27 -0
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/index.d.ts +3 -0
- package/dist/components/file-input/index.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-details.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-details.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-dropzone-error.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-dropzone-error.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-dropzone-hint.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-dropzone-hint.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-dropzone.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-dropzone.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-error.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-error.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-header.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-header.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-icon.d.ts +8 -0
- package/dist/components/file-input/primitives/file-input-icon.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-item.d.ts +15 -0
- package/dist/components/file-input/primitives/file-input-item.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-list.d.ts +10 -0
- package/dist/components/file-input/primitives/file-input-list.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-message.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-message.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-metadata.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-metadata.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-name.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-name.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-progress.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-progress.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-remove.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-remove.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-root.d.ts +40 -0
- package/dist/components/file-input/primitives/file-input-root.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-status.d.ts +4 -0
- package/dist/components/file-input/primitives/file-input-status.d.ts.map +1 -0
- package/dist/components/file-input/primitives/file-input-trigger.d.ts +5 -0
- package/dist/components/file-input/primitives/file-input-trigger.d.ts.map +1 -0
- package/dist/components/file-input/primitives.d.ts +18 -0
- package/dist/components/file-input/primitives.d.ts.map +1 -0
- package/dist/components/form-status/form-status.d.ts +21 -0
- package/dist/components/form-status/form-status.d.ts.map +1 -0
- package/dist/components/form-status/index.d.ts +3 -0
- package/dist/components/form-status/index.d.ts.map +1 -0
- package/dist/components/form-status/primitives/form-status-root.d.ts +6 -0
- package/dist/components/form-status/primitives/form-status-root.d.ts.map +1 -0
- package/dist/components/form-status/primitives.d.ts +2 -0
- package/dist/components/form-status/primitives.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/input.d.ts +18 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/primitives/input-field.d.ts +4 -0
- package/dist/components/input/primitives/input-field.d.ts.map +1 -0
- package/dist/components/input/primitives/input-prepend.d.ts +4 -0
- package/dist/components/input/primitives/input-prepend.d.ts.map +1 -0
- package/dist/components/input/primitives/input-root.d.ts +6 -0
- package/dist/components/input/primitives/input-root.d.ts.map +1 -0
- package/dist/components/input/primitives.d.ts +4 -0
- package/dist/components/input/primitives.d.ts.map +1 -0
- package/dist/components/label/label.d.ts +2 -4
- package/dist/components/label/label.d.ts.map +1 -1
- package/dist/components/logo/index.d.ts +0 -1
- package/dist/components/logo/index.d.ts.map +1 -1
- package/dist/components/logo/primitives/logo-text.d.ts +3 -1
- package/dist/components/logo/primitives/logo-text.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.d.ts +3 -0
- package/dist/components/navigation-menu/index.d.ts.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +51 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-content.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-content.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-column.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-column.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-label.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-label.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-link.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid-link.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-grid.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-item.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-item.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-link.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-link.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-list.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-list.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-panel.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-panel.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-root.d.ts +8 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-root.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-slot.d.ts +4 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-slot.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-trigger.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-trigger.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-viewport.d.ts +5 -0
- package/dist/components/navigation-menu/primitives/navigation-menu-viewport.d.ts.map +1 -0
- package/dist/components/navigation-menu/primitives.d.ts +14 -0
- package/dist/components/navigation-menu/primitives.d.ts.map +1 -0
- package/dist/components/product-card/primitives/product-card-label.d.ts.map +1 -1
- package/dist/components/radio-group/index.d.ts +3 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/primitives/radio-group-indicator.d.ts +5 -0
- package/dist/components/radio-group/primitives/radio-group-indicator.d.ts.map +1 -0
- package/dist/components/radio-group/primitives/radio-group-item.d.ts +5 -0
- package/dist/components/radio-group/primitives/radio-group-item.d.ts.map +1 -0
- package/dist/components/radio-group/primitives/radio-group-option.d.ts +4 -0
- package/dist/components/radio-group/primitives/radio-group-option.d.ts.map +1 -0
- package/dist/components/radio-group/primitives/radio-group-root.d.ts +5 -0
- package/dist/components/radio-group/primitives/radio-group-root.d.ts.map +1 -0
- package/dist/components/radio-group/primitives.d.ts +5 -0
- package/dist/components/radio-group/primitives.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +31 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/range-input/index.d.ts +3 -0
- package/dist/components/range-input/index.d.ts.map +1 -0
- package/dist/components/range-input/primitives/range-input-root.d.ts +4 -0
- package/dist/components/range-input/primitives/range-input-root.d.ts.map +1 -0
- package/dist/components/range-input/primitives.d.ts +2 -0
- package/dist/components/range-input/primitives.d.ts.map +1 -0
- package/dist/components/range-input/range-input.d.ts +32 -0
- package/dist/components/range-input/range-input.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-root.d.ts +5 -1
- package/dist/components/rating/primitives/rating-root.d.ts.map +1 -1
- package/dist/components/rating/primitives/rating-star.d.ts.map +1 -1
- package/dist/components/rating/primitives/rating-total.d.ts +4 -0
- package/dist/components/rating/primitives/rating-total.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-value.d.ts +1 -1
- package/dist/components/rating/primitives/rating-value.d.ts.map +1 -1
- package/dist/components/rating/primitives.d.ts +1 -0
- package/dist/components/rating/primitives.d.ts.map +1 -1
- package/dist/components/rating/rating.d.ts +3 -1
- package/dist/components/rating/rating.d.ts.map +1 -1
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/primitives/select-content.d.ts +5 -0
- package/dist/components/select/primitives/select-content.d.ts.map +1 -0
- package/dist/components/select/primitives/select-icon.d.ts +5 -0
- package/dist/components/select/primitives/select-icon.d.ts.map +1 -0
- package/dist/components/select/primitives/select-item-text.d.ts +5 -0
- package/dist/components/select/primitives/select-item-text.d.ts.map +1 -0
- package/dist/components/select/primitives/select-item.d.ts +5 -0
- package/dist/components/select/primitives/select-item.d.ts.map +1 -0
- package/dist/components/select/primitives/select-portal.d.ts +5 -0
- package/dist/components/select/primitives/select-portal.d.ts.map +1 -0
- package/dist/components/select/primitives/select-root.d.ts +9 -0
- package/dist/components/select/primitives/select-root.d.ts.map +1 -0
- package/dist/components/select/primitives/select-scroll-down-button.d.ts +5 -0
- package/dist/components/select/primitives/select-scroll-down-button.d.ts.map +1 -0
- package/dist/components/select/primitives/select-scroll-up-button.d.ts +5 -0
- package/dist/components/select/primitives/select-scroll-up-button.d.ts.map +1 -0
- package/dist/components/select/primitives/select-trigger.d.ts +5 -0
- package/dist/components/select/primitives/select-trigger.d.ts.map +1 -0
- package/dist/components/select/primitives/select-value.d.ts +5 -0
- package/dist/components/select/primitives/select-value.d.ts.map +1 -0
- package/dist/components/select/primitives/select-viewport.d.ts +5 -0
- package/dist/components/select/primitives/select-viewport.d.ts.map +1 -0
- package/dist/components/select/primitives.d.ts +12 -0
- package/dist/components/select/primitives.d.ts.map +1 -0
- package/dist/components/select/select.d.ts +44 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/index.d.ts +3 -0
- package/dist/components/swatch-radio-group/index.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-color.d.ts +6 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-color.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-image.d.ts +6 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-image.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-indicator.d.ts +4 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-indicator.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-item.d.ts +5 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-item.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-root.d.ts +5 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-root.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-thumbnail.d.ts +4 -0
- package/dist/components/swatch-radio-group/primitives/swatch-radio-group-thumbnail.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/primitives.d.ts +8 -0
- package/dist/components/swatch-radio-group/primitives.d.ts.map +1 -0
- package/dist/components/swatch-radio-group/swatch-radio-group.d.ts +42 -0
- package/dist/components/swatch-radio-group/swatch-radio-group.d.ts.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/textarea.d.ts +4 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/toggle-group/index.d.ts +3 -0
- package/dist/components/toggle-group/index.d.ts.map +1 -0
- package/dist/components/toggle-group/primitives/toggle-group-item.d.ts +5 -0
- package/dist/components/toggle-group/primitives/toggle-group-item.d.ts.map +1 -0
- package/dist/components/toggle-group/primitives/toggle-group-root.d.ts +5 -0
- package/dist/components/toggle-group/primitives/toggle-group-root.d.ts.map +1 -0
- package/dist/components/toggle-group/primitives.d.ts +3 -0
- package/dist/components/toggle-group/primitives.d.ts.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +32 -0
- package/dist/components/toggle-group/toggle-group.d.ts.map +1 -0
- package/dist/counter-input-60Nb59Nw.cjs +2 -0
- package/dist/counter-input-60Nb59Nw.cjs.map +1 -0
- package/dist/counter-input-staB16MG.js +80 -0
- package/dist/counter-input-staB16MG.js.map +1 -0
- package/dist/counter.cjs +1 -1
- package/dist/counter.js +2 -3
- package/dist/{cursor-pagination-link-BJafEeyH.cjs → cursor-pagination-link-C6otmDIa.cjs} +2 -2
- package/dist/{cursor-pagination-link-BJafEeyH.cjs.map → cursor-pagination-link-C6otmDIa.cjs.map} +1 -1
- package/dist/{cursor-pagination-link-CkZ5dwLY.js → cursor-pagination-link-CWbshIOY.js} +2 -2
- package/dist/{cursor-pagination-link-CkZ5dwLY.js.map → cursor-pagination-link-CWbshIOY.js.map} +1 -1
- package/dist/cursor-pagination.cjs +1 -1
- package/dist/cursor-pagination.js +4 -4
- package/dist/date-picker.cjs +2 -0
- package/dist/date-picker.cjs.map +1 -0
- package/dist/date-picker.js +258 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/dropdown-menu-node-CAwgTGIA.cjs +7 -0
- package/dist/dropdown-menu-node-CAwgTGIA.cjs.map +1 -0
- package/dist/dropdown-menu-node-x6qIrxA6.js +1101 -0
- package/dist/dropdown-menu-node-x6qIrxA6.js.map +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/{favorite-heart-DfzWBG3K.js → favorite-heart-DM8QjcYe.js} +17 -44
- package/dist/favorite-heart-DM8QjcYe.js.map +1 -0
- package/dist/favorite-heart-JHXkEZUQ.cjs +2 -0
- package/dist/favorite-heart-JHXkEZUQ.cjs.map +1 -0
- package/dist/favorite.cjs +1 -1
- package/dist/favorite.js +1 -1
- package/dist/field-error-D5NKv8wq.cjs +7 -0
- package/dist/field-error-D5NKv8wq.cjs.map +1 -0
- package/dist/field-error-DtlucLPM.js +150 -0
- package/dist/field-error-DtlucLPM.js.map +1 -0
- package/dist/field.cjs +2 -0
- package/dist/field.cjs.map +1 -0
- package/dist/field.js +13 -0
- package/dist/field.js.map +1 -0
- package/dist/file-input.cjs +2 -0
- package/dist/file-input.cjs.map +1 -0
- package/dist/file-input.js +625 -0
- package/dist/file-input.js.map +1 -0
- package/dist/form-status.cjs +2 -0
- package/dist/form-status.cjs.map +1 -0
- package/dist/form-status.js +32 -0
- package/dist/form-status.js.map +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +2 -2
- package/dist/{index-Cn_ZXVPF.js → index-437EL2iq.js} +2 -2
- package/dist/{index-Cn_ZXVPF.js.map → index-437EL2iq.js.map} +1 -1
- package/dist/index-B8ydIT5v.cjs +2 -0
- package/dist/index-B8ydIT5v.cjs.map +1 -0
- package/dist/index-BEcVxceo.js +235 -0
- package/dist/index-BEcVxceo.js.map +1 -0
- package/dist/{index-B_420jYs.js → index-BGQepRFJ.js} +2 -2
- package/dist/{index-B_420jYs.js.map → index-BGQepRFJ.js.map} +1 -1
- package/dist/index-BRpvnewZ.js +1541 -0
- package/dist/index-BRpvnewZ.js.map +1 -0
- package/dist/index-BZPx6jYI.js +9 -0
- package/dist/index-BZPx6jYI.js.map +1 -0
- package/dist/index-Baakt2Nc.js +32 -0
- package/dist/index-Baakt2Nc.js.map +1 -0
- package/dist/index-Bd0gQB0k.cjs +2 -0
- package/dist/index-Bd0gQB0k.cjs.map +1 -0
- package/dist/index-Bj4dHMqQ.cjs +2 -0
- package/dist/{index-BgU5ZH3M.cjs.map → index-Bj4dHMqQ.cjs.map} +1 -1
- package/dist/index-BpWB3aFK.js +71 -0
- package/dist/index-BpWB3aFK.js.map +1 -0
- package/dist/index-Bw3eeUEE.cjs +2 -0
- package/dist/index-Bw3eeUEE.cjs.map +1 -0
- package/dist/index-BybPvee-.js +135 -0
- package/dist/index-BybPvee-.js.map +1 -0
- package/dist/{index-BwVkw1mh.cjs → index-C8aODXfJ.cjs} +2 -2
- package/dist/{index-BwVkw1mh.cjs.map → index-C8aODXfJ.cjs.map} +1 -1
- package/dist/index-C8ni3LLa.cjs +2 -0
- package/dist/index-C8ni3LLa.cjs.map +1 -0
- package/dist/index-C9i1xBih.cjs +2 -0
- package/dist/index-C9i1xBih.cjs.map +1 -0
- package/dist/index-CCKe-Mpx.js +7 -0
- package/dist/index-CCKe-Mpx.js.map +1 -0
- package/dist/{index-Aj7AU26N.js → index-CFzSulqY.js} +3 -3
- package/dist/{index-Aj7AU26N.js.map → index-CFzSulqY.js.map} +1 -1
- package/dist/index-CHBN4DXC.cjs +2 -0
- package/dist/index-CHBN4DXC.cjs.map +1 -0
- package/dist/index-CfUNQctP.cjs +2 -0
- package/dist/index-CfUNQctP.cjs.map +1 -0
- package/dist/{index-9BYBSfjb.js → index-Cv867SGx.js} +2 -2
- package/dist/{index-9BYBSfjb.js.map → index-Cv867SGx.js.map} +1 -1
- package/dist/{index-ChSlzMYI.js → index-D54L0mSJ.js} +23 -21
- package/dist/{index-ChSlzMYI.js.map → index-D54L0mSJ.js.map} +1 -1
- package/dist/index-DFZozV_h.js +69 -0
- package/dist/index-DFZozV_h.js.map +1 -0
- package/dist/index-DO-atGp-.cjs +2 -0
- package/dist/index-DO-atGp-.cjs.map +1 -0
- package/dist/index-DYM6xIoO.js +81 -0
- package/dist/index-DYM6xIoO.js.map +1 -0
- package/dist/index-DYxWvftI.cjs +2 -0
- package/dist/index-DYxWvftI.cjs.map +1 -0
- package/dist/{index-DgGfdcU-.js → index-DbDmtVzS.js} +6 -6
- package/dist/{index-DgGfdcU-.js.map → index-DbDmtVzS.js.map} +1 -1
- package/dist/index-Dgln3ACt.cjs +6 -0
- package/dist/{index-BppAzNV8.cjs.map → index-Dgln3ACt.cjs.map} +1 -1
- package/dist/index-DqtbJbQD.cjs +2 -0
- package/dist/index-DqtbJbQD.cjs.map +1 -0
- package/dist/index-MQ0c3ZX_.cjs +2 -0
- package/dist/index-MQ0c3ZX_.cjs.map +1 -0
- package/dist/{index-wBo-Jtto.cjs → index-VgAaryF4.cjs} +2 -2
- package/dist/{index-wBo-Jtto.cjs.map → index-VgAaryF4.cjs.map} +1 -1
- package/dist/{index-BRcWOeqw.cjs → index-WIv2ndLu.cjs} +2 -2
- package/dist/{index-BRcWOeqw.cjs.map → index-WIv2ndLu.cjs.map} +1 -1
- package/dist/index-YyKO8LfJ.js +34 -0
- package/dist/index-YyKO8LfJ.js.map +1 -0
- package/dist/index-_4V-_s4C.js +18 -0
- package/dist/{index-CM8VpmHn.js.map → index-_4V-_s4C.js.map} +1 -1
- package/dist/{index-6tKkLrHE.cjs → index-bSPhqlcX.cjs} +2 -2
- package/dist/{index-6tKkLrHE.cjs.map → index-bSPhqlcX.cjs.map} +1 -1
- package/dist/{index-CB459AZm.cjs → index-ioB9fNr9.cjs} +2 -2
- package/dist/{index-CB459AZm.cjs.map → index-ioB9fNr9.cjs.map} +1 -1
- package/dist/index-rKs9bXHr.js +7 -0
- package/dist/index-rKs9bXHr.js.map +1 -0
- package/dist/index.cjs +7 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1118 -1078
- package/dist/index.js.map +1 -1
- package/dist/input.cjs +2 -0
- package/dist/input.cjs.map +1 -0
- package/dist/input.js +72 -0
- package/dist/input.js.map +1 -0
- package/dist/label-C2HI4Bjj.js +38 -0
- package/dist/label-C2HI4Bjj.js.map +1 -0
- package/dist/label-CP55xclp.cjs +2 -0
- package/dist/label-CP55xclp.cjs.map +1 -0
- package/dist/logo-skeleton-DPhYgp4v.cjs +2 -0
- package/dist/logo-skeleton-DPhYgp4v.cjs.map +1 -0
- package/dist/logo-skeleton-DSSJAa_5.js +44 -0
- package/dist/logo-skeleton-DSSJAa_5.js.map +1 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.cjs.map +1 -1
- package/dist/logo.js +4 -10
- package/dist/logo.js.map +1 -1
- package/dist/{modal-title-CuB6IpxH.cjs → modal-title-D0y_YSeK.cjs} +2 -2
- package/dist/{modal-title-CuB6IpxH.cjs.map → modal-title-D0y_YSeK.cjs.map} +1 -1
- package/dist/{modal-title-MIH3Xsp2.js → modal-title-DIVsr1XZ.js} +3 -3
- package/dist/{modal-title-MIH3Xsp2.js.map → modal-title-DIVsr1XZ.js.map} +1 -1
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/navigation-menu.cjs +2 -0
- package/dist/navigation-menu.cjs.map +1 -0
- package/dist/navigation-menu.js +830 -0
- package/dist/navigation-menu.js.map +1 -0
- package/dist/{offset-pagination-ellipsis-MCFHXB-5.cjs → offset-pagination-ellipsis-BDbVGBuP.cjs} +2 -2
- package/dist/{offset-pagination-ellipsis-MCFHXB-5.cjs.map → offset-pagination-ellipsis-BDbVGBuP.cjs.map} +1 -1
- package/dist/{offset-pagination-ellipsis-DWDhFCgW.js → offset-pagination-ellipsis-bGa7YpkD.js} +2 -2
- package/dist/{offset-pagination-ellipsis-DWDhFCgW.js.map → offset-pagination-ellipsis-bGa7YpkD.js.map} +1 -1
- package/dist/offset-pagination.cjs +1 -1
- package/dist/offset-pagination.js +1 -1
- package/dist/{price-strike-DD2WNPQX.cjs → price-strike-BTE4S5Na.cjs} +2 -2
- package/dist/{price-strike-DD2WNPQX.cjs.map → price-strike-BTE4S5Na.cjs.map} +1 -1
- package/dist/{price-strike-Br_Yriv9.js → price-strike-Ciakdz8c.js} +2 -2
- package/dist/{price-strike-Br_Yriv9.js.map → price-strike-Ciakdz8c.js.map} +1 -1
- package/dist/price.cjs +1 -1
- package/dist/price.js +1 -1
- package/dist/product-card-label-BQeJxNcX.cjs +2 -0
- package/dist/product-card-label-BQeJxNcX.cjs.map +1 -0
- package/dist/{product-card-label-CJmC9ICf.js → product-card-label-C6D-fYjj.js} +68 -95
- package/dist/product-card-label-C6D-fYjj.js.map +1 -0
- package/dist/{product-card-root-4Xz4-pdL.js → product-card-root-BGUa-vQ_.js} +2 -2
- package/dist/{product-card-root-4Xz4-pdL.js.map → product-card-root-BGUa-vQ_.js.map} +1 -1
- package/dist/{product-card-root-BMTVhhFp.cjs → product-card-root-Q5lwSPd8.cjs} +2 -2
- package/dist/{product-card-root-BMTVhhFp.cjs.map → product-card-root-Q5lwSPd8.cjs.map} +1 -1
- package/dist/{product-card-skeleton-Dkqf-bfA.js → product-card-skeleton-B8DGleVJ.js} +8 -9
- package/dist/{product-card-skeleton-Dkqf-bfA.js.map → product-card-skeleton-B8DGleVJ.js.map} +1 -1
- package/dist/product-card-skeleton-CCbWpq16.cjs +2 -0
- package/dist/{product-card-skeleton-CCQkDMNl.cjs.map → product-card-skeleton-CCbWpq16.cjs.map} +1 -1
- package/dist/product-card.cjs +1 -1
- package/dist/product-card.js +4 -4
- package/dist/radio-group.cjs +2 -0
- package/dist/radio-group.cjs.map +1 -0
- package/dist/radio-group.js +82 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/range-input.cjs +2 -0
- package/dist/range-input.cjs.map +1 -0
- package/dist/range-input.js +17 -0
- package/dist/range-input.js.map +1 -0
- package/dist/rating-total-BxVcB0gt.cjs +2 -0
- package/dist/rating-total-BxVcB0gt.cjs.map +1 -0
- package/dist/rating-total-C_vpBVPa.js +144 -0
- package/dist/rating-total-C_vpBVPa.js.map +1 -0
- package/dist/rating.cjs +1 -1
- package/dist/rating.js +4 -3
- package/dist/{reveal-trigger-XpH07-oH.cjs → reveal-trigger-CCTnO9e2.cjs} +2 -2
- package/dist/{reveal-trigger-XpH07-oH.cjs.map → reveal-trigger-CCTnO9e2.cjs.map} +1 -1
- package/dist/{reveal-trigger-C-dcymoc.js → reveal-trigger-ScuufoFq.js} +7 -7
- package/dist/{reveal-trigger-C-dcymoc.js.map → reveal-trigger-ScuufoFq.js.map} +1 -1
- package/dist/reveal.cjs +1 -1
- package/dist/reveal.js +1 -1
- package/dist/scroll-area-corner-Bc4E-OBW.cjs +2 -0
- package/dist/scroll-area-corner-Bc4E-OBW.cjs.map +1 -0
- package/dist/{scroll-area-corner-Bq7PB1XK.js → scroll-area-corner-DfIRArAE.js} +59 -59
- package/dist/scroll-area-corner-DfIRArAE.js.map +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/select.cjs +2 -0
- package/dist/select.cjs.map +1 -0
- package/dist/select.js +991 -0
- package/dist/select.js.map +1 -0
- package/dist/{side-panel-close-Bjcn4BEE.cjs → side-panel-close-BSEnX7wo.cjs} +2 -2
- package/dist/{side-panel-close-Bjcn4BEE.cjs.map → side-panel-close-BSEnX7wo.cjs.map} +1 -1
- package/dist/{side-panel-close-DVJwOxdM.js → side-panel-close-CbsiwlUW.js} +3 -3
- package/dist/{side-panel-close-DVJwOxdM.js.map → side-panel-close-CbsiwlUW.js.map} +1 -1
- package/dist/side-panel.cjs +1 -1
- package/dist/side-panel.js +1 -1
- package/dist/{skeleton-box-yQLivCqg.cjs → skeleton-box-BsY5q4RG.cjs} +2 -2
- package/dist/{skeleton-box-yQLivCqg.cjs.map → skeleton-box-BsY5q4RG.cjs.map} +1 -1
- package/dist/{skeleton-box-BSzQ5f9Y.js → skeleton-box-D0XcgPLs.js} +2 -2
- package/dist/{skeleton-box-BSzQ5f9Y.js.map → skeleton-box-D0XcgPLs.js.map} +1 -1
- package/dist/{skeleton-icon-ThRjXhfU.js → skeleton-icon-Cm6f9u-Z.js} +2 -2
- package/dist/{skeleton-icon-ThRjXhfU.js.map → skeleton-icon-Cm6f9u-Z.js.map} +1 -1
- package/dist/{skeleton-icon-CCCgNtIy.cjs → skeleton-icon-o8gtDMoj.cjs} +2 -2
- package/dist/{skeleton-icon-CCCgNtIy.cjs.map → skeleton-icon-o8gtDMoj.cjs.map} +1 -1
- package/dist/{skeleton-root-DHW28LoV.js → skeleton-root-BIYF02UE.js} +2 -2
- package/dist/{skeleton-root-DHW28LoV.js.map → skeleton-root-BIYF02UE.js.map} +1 -1
- package/dist/{skeleton-root-uIgjea8b.cjs → skeleton-root-Bahq1UoM.cjs} +2 -2
- package/dist/{skeleton-root-uIgjea8b.cjs.map → skeleton-root-Bahq1UoM.cjs.map} +1 -1
- package/dist/{skeleton-text-Dd4GbnEz.js → skeleton-text-BCsnfhcU.js} +2 -2
- package/dist/{skeleton-text-Dd4GbnEz.js.map → skeleton-text-BCsnfhcU.js.map} +1 -1
- package/dist/{skeleton-text-CLzoDFvz.cjs → skeleton-text-BxefRRo2.cjs} +2 -2
- package/dist/{skeleton-text-CLzoDFvz.cjs.map → skeleton-text-BxefRRo2.cjs.map} +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +4 -4
- package/dist/swatch-radio-group.cjs +2 -0
- package/dist/swatch-radio-group.cjs.map +1 -0
- package/dist/swatch-radio-group.js +169 -0
- package/dist/swatch-radio-group.js.map +1 -0
- package/dist/{tabs-root-BmY1p2kY.js → tabs-root-BLHqpIyN.js} +19 -18
- package/dist/{tabs-root-BmY1p2kY.js.map → tabs-root-BLHqpIyN.js.map} +1 -1
- package/dist/tabs-root-DzmRz2Up.cjs +2 -0
- package/dist/{tabs-root-D3Bg29y-.cjs.map → tabs-root-DzmRz2Up.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/toggle-group.cjs +2 -0
- package/dist/toggle-group.cjs.map +1 -0
- package/dist/toggle-group.js +193 -0
- package/dist/toggle-group.js.map +1 -0
- package/dist/{utils-BOGlfttm.js → utils-CRiPKpXj.js} +2 -1
- package/dist/{utils-BOGlfttm.js.map → utils-CRiPKpXj.js.map} +1 -1
- package/dist/{utils-LBH114_M.cjs → utils-DoxiiusW.cjs} +2 -2
- package/dist/{utils-LBH114_M.cjs.map → utils-DoxiiusW.cjs.map} +1 -1
- package/package.json +144 -1
- package/tailwind.preset.js +3 -0
- package/dist/Combination-49q9aXeT.js +0 -801
- package/dist/Combination-49q9aXeT.js.map +0 -1
- package/dist/Combination-DAFZFTdA.cjs +0 -42
- package/dist/Combination-DAFZFTdA.cjs.map +0 -1
- package/dist/accordion-trigger-Bhrl2g4p.cjs +0 -2
- package/dist/button-BFVyxGhc.js +0 -104
- package/dist/button-BFVyxGhc.js.map +0 -1
- package/dist/button-Br8dBU5w.cjs +0 -7
- package/dist/button-Br8dBU5w.cjs.map +0 -1
- package/dist/checkbox-indicator-GNoyS6OL.cjs +0 -2
- package/dist/checkbox-indicator-GNoyS6OL.cjs.map +0 -1
- package/dist/checkbox-indicator-os50dewx.js +0 -18
- package/dist/checkbox-indicator-os50dewx.js.map +0 -1
- package/dist/checkbox-root-B9W2Y8rY.js +0 -302
- package/dist/checkbox-root-B9W2Y8rY.js.map +0 -1
- package/dist/checkbox-root-g9HcYZCP.cjs +0 -2
- package/dist/checkbox-root-g9HcYZCP.cjs.map +0 -1
- package/dist/compare-card-specs-empty-BMLUSqQL.js +0 -281
- package/dist/compare-card-specs-empty-BMLUSqQL.js.map +0 -1
- package/dist/compare-card-specs-empty-ar5CneZv.cjs +0 -2
- package/dist/compare-card-specs-empty-ar5CneZv.cjs.map +0 -1
- package/dist/components/field-error/field-error.d.ts +0 -14
- package/dist/components/field-error/field-error.d.ts.map +0 -1
- package/dist/components/field-error/index.d.ts +0 -2
- package/dist/components/field-error/index.d.ts.map +0 -1
- package/dist/components/logo/logo.d.ts +0 -32
- package/dist/components/logo/logo.d.ts.map +0 -1
- package/dist/counter-input-BJov0Fub.cjs +0 -2
- package/dist/counter-input-BJov0Fub.cjs.map +0 -1
- package/dist/counter-input-hbz8NVA1.js +0 -106
- package/dist/counter-input-hbz8NVA1.js.map +0 -1
- package/dist/dropdown-menu-node-4Pe3uXjC.js +0 -2621
- package/dist/dropdown-menu-node-4Pe3uXjC.js.map +0 -1
- package/dist/dropdown-menu-node-zOplWIzZ.cjs +0 -7
- package/dist/dropdown-menu-node-zOplWIzZ.cjs.map +0 -1
- package/dist/favorite-heart-DfzWBG3K.js.map +0 -1
- package/dist/favorite-heart-uZBiApM_.cjs +0 -2
- package/dist/favorite-heart-uZBiApM_.cjs.map +0 -1
- package/dist/index-BgU5ZH3M.cjs +0 -2
- package/dist/index-BppAzNV8.cjs +0 -6
- package/dist/index-Bw7_huW8.cjs +0 -2
- package/dist/index-Bw7_huW8.cjs.map +0 -1
- package/dist/index-BzgbBl8b.js +0 -83
- package/dist/index-BzgbBl8b.js.map +0 -1
- package/dist/index-CM8VpmHn.js +0 -17
- package/dist/index-CnXYiTkW.cjs +0 -2
- package/dist/index-CnXYiTkW.cjs.map +0 -1
- package/dist/index-Df-2-3xv.js +0 -136
- package/dist/index-Df-2-3xv.js.map +0 -1
- package/dist/logo-text-CK4vcNPY.js +0 -39
- package/dist/logo-text-CK4vcNPY.js.map +0 -1
- package/dist/logo-text-Db3yd3b1.cjs +0 -2
- package/dist/logo-text-Db3yd3b1.cjs.map +0 -1
- package/dist/product-card-label-CJmC9ICf.js.map +0 -1
- package/dist/product-card-label-D43AXtRL.cjs +0 -2
- package/dist/product-card-label-D43AXtRL.cjs.map +0 -1
- package/dist/product-card-skeleton-CCQkDMNl.cjs +0 -2
- package/dist/rating-value-CkSY9Pyr.cjs +0 -2
- package/dist/rating-value-CkSY9Pyr.cjs.map +0 -1
- package/dist/rating-value-DBtmrorI.js +0 -115
- package/dist/rating-value-DBtmrorI.js.map +0 -1
- package/dist/scroll-area-corner-Bq7PB1XK.js.map +0 -1
- package/dist/scroll-area-corner-DsyetkPH.cjs +0 -2
- package/dist/scroll-area-corner-DsyetkPH.cjs.map +0 -1
- package/dist/tabs-root-D3Bg29y-.cjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-error-DtlucLPM.js","sources":["../node_modules/.pnpm/lucide-react@0.545.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/circle-alert.js","../src/components/field/primitives/field-group.tsx","../src/components/field/primitives/field-set.tsx","../src/components/field/primitives/field-legend.tsx","../src/components/field/primitives/field-description.tsx","../src/components/field/primitives/field-item.tsx","../src/components/field/primitives/field-label.tsx","../src/components/field/primitives/field-hint.tsx","../src/components/field/primitives/field-separator.tsx","../src/components/field/primitives/field-error.tsx"],"sourcesContent":["/**\n * @license lucide-react v0.545.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"8\", y2: \"12\", key: \"1pkeuh\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"16\", y2: \"16\", key: \"4dfq90\" }]\n];\nconst CircleAlert = createLucideIcon(\"circle-alert\", __iconNode);\n\nexport { __iconNode, CircleAlert as default };\n//# sourceMappingURL=circle-alert.js.map\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldGroupProps = ComponentProps<'div'>;\n\nexport function FieldGroup({ className, children, ...props }: FieldGroupProps) {\n return (\n <div\n className={cn(\n 'group/field-group flex w-full flex-col gap-8 @container/field-group',\n // Nested state (inside another field-group)\n '[[data-slot=field-group]_&]:gap-5',\n // Sibling state (following legend or description)\n '[[data-slot=field-description]+&]:mt-5 [[data-slot=field-legend]+&]:mt-5',\n className,\n )}\n data-slot=\"field-group\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldSetProps = ComponentProps<'fieldset'>;\n\nexport function FieldSet({ className, children, ...props }: FieldSetProps) {\n return (\n <fieldset className={cn(className)} data-slot=\"field-set\" {...props}>\n {children}\n </fieldset>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldLegendProps = ComponentProps<'legend'>;\n\nexport function FieldLegend({ className, children, ...props }: FieldLegendProps) {\n return (\n <legend\n className={cn(\n 'mb-1 text-2xl font-medium text-[var(--field-legend,hsl(var(--foreground)))] [font-family:var(--field-legend-font-family,var(--font-family-heading))]',\n className,\n )}\n data-slot=\"field-legend\"\n {...props}\n >\n {children}\n </legend>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldDescriptionProps = ComponentProps<'p'>;\n\nexport function FieldDescription({ className, children, ...props }: FieldDescriptionProps) {\n return (\n <p\n className={cn(\n 'text-sm font-normal text-[var(--field-description,hsl(var(--contrast-500)))] [font-family:var(--field-description-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"field-description\"\n {...props}\n >\n {children}\n </p>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldItemProps = ComponentProps<'div'> & {\n orientation?: 'vertical' | 'horizontal';\n};\n\nexport function FieldItem({\n className,\n children,\n orientation = 'vertical',\n ...props\n}: FieldItemProps) {\n return (\n <div\n className={cn(\n 'group/field-item flex',\n // Vertical orientation (default)\n 'data-[orientation=vertical]:flex-col data-[orientation=vertical]:gap-2',\n // Horizontal orientation\n 'data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:items-center data-[orientation=horizontal]:gap-3',\n className,\n )}\n data-label-orientation={orientation}\n data-orientation={orientation}\n data-slot=\"field-item\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { Label } from '@/components/label';\nimport { cn } from '@/lib';\n\nexport type FieldLabelProps = ComponentProps<'label'>;\n\nexport function FieldLabel({ className, children, ...props }: FieldLabelProps) {\n return (\n <Label className={cn(className)} data-slot=\"field-label\" {...props}>\n {children}\n </Label>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldHintProps = ComponentProps<'p'>;\n\nexport function FieldHint({ className, children, ...props }: FieldHintProps) {\n return (\n <p\n className={cn(\n 'text-xs font-medium text-[var(--field-hint,hsl(var(--contrast-500)))] [font-family:var(--field-hint-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"field-hint\"\n {...props}\n >\n {children}\n </p>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldSeparatorProps = ComponentProps<'hr'>;\n\nexport function FieldSeparator({ className, ...props }: FieldSeparatorProps) {\n return (\n <hr\n className={cn('h-px bg-[var(--field-separator,hsl(var(--contrast-200)))]', className)}\n data-slot=\"field-separator\"\n {...props}\n />\n );\n}\n","import { CircleAlert } from 'lucide-react';\nimport type { ComponentPropsWithoutRef } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FieldErrorProps = ComponentPropsWithoutRef<'div'>;\n\nexport function FieldError({ className, children, ...props }: FieldErrorProps) {\n return (\n <div\n className={cn(\n 'flex items-center gap-1 text-xs text-[var(--field-error,hsl(var(--error)))]',\n className,\n )}\n data-slot=\"field-error\"\n {...props}\n >\n <CircleAlert size={16} strokeWidth={1.5} />\n {children}\n </div>\n );\n}\n"],"names":["__iconNode","CircleAlert","createLucideIcon","FieldGroup","className","children","props","jsx","cn","FieldSet","FieldLegend","FieldDescription","FieldItem","orientation","FieldLabel","Label","FieldHint","FieldSeparator","FieldError","jsxs"],"mappings":";;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,MAAM,KAAK,UAAU;AAAA,EACzD,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,KAAK,SAAQ,CAAE;AAAA,EACjE,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,IAAI,MAAM,KAAK,SAAQ,CAAE;AACvE,GACMC,IAAcC,EAAiB,gBAAgBF,CAAU;;;;;ACRxD,SAASG,EAAW,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAA0B;AAC7E,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AA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7E,SACE,gBAAAC,EAACQ,GAAA,EAAM,WAAWP,EAAGJ,CAAS,GAAG,aAAU,eAAe,GAAGE,GAC1D,UAAAD,EAAA,CACH;AAEJ;ACPO,SAASW,EAAU,EAAE,WAAAZ,GAAW,UAAAC,GAAU,GAAGC,KAAyB;AAC3E,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;ACbO,SAASY,EAAe,EAAE,WAAAb,GAAW,GAAGE,KAA8B;AAC3E,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,6DAA6DJ,CAAS;AAAA,MACpF,aAAU;AAAA,MACT,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;ACPO,SAASY,EAAW,EAAE,WAAAd,GAAW,UAAAC,GAAU,GAAGC,KAA0B;AAC7E,SACE,gBAAAa;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWX;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEF,aAAU;AAAA,MACT,GAAGE;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAC,EAACN,GAAA,EAAY,MAAM,IAAI,aAAa,KAAK;AAAA,QACxCI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;","x_google_ignoreList":[0]}
|
package/dist/field.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./field-error-D5NKv8wq.cjs");exports.Description=e.FieldDescription;exports.Error=e.FieldError;exports.Group=e.FieldGroup;exports.Hint=e.FieldHint;exports.Item=e.FieldItem;exports.Label=e.FieldLabel;exports.Legend=e.FieldLegend;exports.Separator=e.FieldSeparator;exports.Set=e.FieldSet;
|
|
2
|
+
//# sourceMappingURL=field.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/field.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { c as e, h as r, F as o, f as t, d as p, e as i, b as n, g as b, a as c } from "./field-error-DtlucLPM.js";
|
|
2
|
+
export {
|
|
3
|
+
e as Description,
|
|
4
|
+
r as Error,
|
|
5
|
+
o as Group,
|
|
6
|
+
t as Hint,
|
|
7
|
+
p as Item,
|
|
8
|
+
i as Label,
|
|
9
|
+
n as Legend,
|
|
10
|
+
b as Separator,
|
|
11
|
+
c as Set
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),u=require("./utils-DoxiiusW.cjs"),s=require("react"),U=require("./button-ibzOCImJ.cjs"),Y=require("./index-DGaxX11V.cjs"),Z=require("./file-image-8ckBuEWu.cjs"),ee=require("./file-play-YogIRbxq.cjs"),te=require("./file-audio-D7cEc3Jr.cjs"),re=require("./file-text-B7wVmZz9.cjs"),ne=require("./file-code-CiiIRc5U.cjs"),se=require("./file-archive-Chb-MnrQ.cjs"),ie=require("./file-cog-C9hbyTce.cjs"),ae=require("./file-CLLTDda_.cjs"),K={files:new Map};function oe(t,r){switch(r.type){case"ADD_FILES":{const e=new Map(t.files);return r.files.forEach(n=>{e.has(n)||e.set(n,{file:n,progress:0,status:"idle"})}),{...t,files:e}}case"SET_PROGRESS":{const e=new Map(t.files),n=e.get(r.file);return n&&e.set(r.file,{...n,progress:r.progress,status:"uploading"}),{...t,files:e}}case"SET_SUCCESS":{const e=new Map(t.files),n=e.get(r.file);return n&&e.set(r.file,{...n,status:"success",progress:100}),{...t,files:e}}case"SET_ERROR":{const e=new Map(t.files),n=e.get(r.file);return n&&e.set(r.file,{...n,status:"error",error:r.error}),{...t,files:e}}case"REMOVE_FILE":{const e=new Map(t.files);return e.delete(r.file),{...t,files:e}}case"CLEAR":return K;default:return t}}const V=s.createContext(null);function C(){const t=s.useContext(V);if(!t)throw new Error("useFileInput must be used within a FileInputRoot");return t}function le({id:t,children:r,className:e,accept:n,multiple:i,disabled:m,invalid:p,name:h,maxFiles:b,maxSize:v,onFileValidate:I,onFileAccept:D,onFileReject:w,onUploadFile:z,onUploadSuccess:T,onUploadError:N,...M}){const o=s.useRef(null),g=`${t}-input`,[y,E]=s.useReducer(oe,K),[S,L]=s.useState(void 0),_=s.useCallback((f,d)=>{E({type:"SET_PROGRESS",file:f,progress:d})},[]),q=s.useCallback(f=>{E({type:"SET_SUCCESS",file:f})},[]),O=s.useCallback((f,d)=>{E({type:"SET_ERROR",file:f,error:d})},[]),W=s.useCallback(f=>{E({type:"ADD_FILES",files:f})},[]),H=s.useCallback(f=>{const d=o.current;if(d?.files){const R=new DataTransfer;Array.from(d.files).filter(a=>a!==f).forEach(a=>R.items.add(a)),d.files=R.files}E({type:"REMOVE_FILE",file:f})},[]),G=s.useCallback(()=>{o.current?.click()},[]),$=s.useCallback(f=>{const d=[],R=[];f.forEach(a=>{let F=!1,c="";if(I){const x=I(a);x!=null&&(c=x,F=!0)}if(!F&&n!=null){const x=n.split(",").map(j=>j.trim().toLowerCase()),P=a.type.toLowerCase(),Q=`.${a.name.split(".").pop()?.toLowerCase()}`;x.some(j=>j===P||j===Q||j.endsWith("/*")&&P.startsWith(j.slice(0,-1)))||(c="File type not accepted",F=!0)}!F&&v!=null&&a.size>v&&(c="File size exceeds limit",F=!0),F?(L(c),w?.(a,c)):(L(void 0),D?.(a),d.push(a),R.push(a))});const A=o.current;if(A){const a=new DataTransfer,c=[...Array.from(y.files.keys()),...R],x=b!=null?c.slice(0,b):c;x.forEach(P=>a.items.add(P)),A.files=a.files,W(x)}d.length>0&&(z?d.forEach(a=>{_(a,0);const F=c=>{_(a,c)};Promise.resolve(z(a,F)).then(c=>{q(a),T?.(a,c)}).catch(c=>{const x=c instanceof Error?c:new Error("Upload failed");O(a,x.message),N?.(a,x)})}):d.forEach(a=>{q(a)}))},[n,b,v,y.files,I,D,w,z,T,N,W,_,q,O]),X=s.useCallback(f=>{const d=Array.from(f.target.files??[]);$(d)},[$]),J=s.useMemo(()=>({files:y.files,id:t,inputId:g,inputRef:o,disabled:m,invalid:p,validationError:S,addFiles:$,removeFile:H,openFilePicker:G}),[y.files,t,g,m,p,S,$,H,G]);return l.jsx(V.Provider,{value:J,children:l.jsxs("div",{"aria-disabled":m===!0?!0:void 0,"aria-invalid":p===!0||S!=null?!0:void 0,className:u.clsx("group",e,"@container"),...M,children:[l.jsx("input",{accept:n,className:"sr-only",disabled:m,id:g,multiple:i,name:h,onChange:X,ref:o,tabIndex:-1,type:"file"}),r]})})}function ue({children:t,className:r,...e}){const{id:n,disabled:i,invalid:m,addFiles:p,openFilePicker:h}=C(),[b,v]=s.useState(!1),I=s.useCallback(o=>{o.preventDefault(),v(!1);const g=Array.from(o.dataTransfer.files);p(g)},[p]),D=s.useCallback(o=>{o.preventDefault(),v(!0)},[]),w=s.useCallback(o=>{o.preventDefault(),v(!0)},[]),z=s.useCallback(o=>{const g=o.relatedTarget;g&&g instanceof Node&&o.currentTarget.contains(g)||(o.preventDefault(),v(!1))},[]),T=s.useCallback(o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),h())},[h]),N=s.useCallback(o=>{o.preventDefault(),v(!1);const g=o.clipboardData.items;if(g.length===0)return;const y=[];for(const E of Array.from(g))if(E.kind==="file"){const S=E.getAsFile();S&&y.push(S)}y.length!==0&&p(y)},[p]),M=s.useCallback(()=>{h()},[h]);return l.jsx("div",{"aria-controls":`${n}-input ${n}-list`,"aria-disabled":i===!0?!0:void 0,"aria-invalid":m===!0?!0:void 0,className:u.clsx("min-h-19 flex flex-col items-center justify-center gap-1.5","p-4","rounded-lg border-[1.5px] border-dashed border-[var(--file-input-dropzone-border,hsl(var(--contrast-200)))]","bg-[var(--file-input-dropzone-background,hsl(var(--background)))]","cursor-pointer select-none","transition-colors duration-300 ease-in-out","hover:border-[var(--file-input-dropzone-border-hover,hsl(var(--foreground)))] hover:bg-[var(--file-input-dropzone-background-hover,hsl(var(--contrast-100)))]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--file-input-focus,hsl(var(--primary)))] focus-visible:ring-offset-2","group-aria-disabled:cursor-not-allowed group-aria-disabled:border-[var(--file-input-dropzone-border-disabled,color-mix(in_oklab,hsl(var(--contrast-200))_70%,transparent))] group-aria-disabled:bg-[var(--file-input-dropzone-background-disabled,hsl(var(--background)))]","group-aria-disabled:focus-visible:outline-none group-aria-disabled:focus-visible:ring-0 group-aria-disabled:focus-visible:ring-offset-0","group-aria-invalid:border-[var(--file-input-dropzone-border-error,hsl(var(--error)))]","data-[dragging]:border-[var(--file-input-dropzone-border-dragging,hsl(var(--foreground)))] data-[dragging]:bg-[var(--file-input-dropzone-background-dragging,color-mix(in_oklab,hsl(var(--success)),white_75%))]","@sm:flex-row",r),"data-dragging":b?"":void 0,onClick:M,onDragEnter:w,onDragLeave:z,onDragOver:D,onDrop:I,onKeyDown:T,onPaste:N,role:"button",tabIndex:i===!0?-1:0,...e,children:t})}function ce({children:t,disabled:r,...e}){const{inputId:n,disabled:i,openFilePicker:m}=C(),p=r??i;return l.jsx(U.Button,{"aria-controls":`${n}-input`,className:"pointer-events-none",disabled:p,onClick:m,size:"small",tabIndex:-1,type:"button",variant:"outline",...e,children:t})}const B=s.createContext(void 0);function fe({className:t,children:r,file:e,...n}){const i=s.useId(),{files:m,removeFile:p}=C(),h=s.useRef(!1),b=m.get(e),v=s.useCallback(()=>p(e),[p,e]);if(!b)return null;const I=s.useMemo(()=>({file:e,fileState:b,generatedId:i,removeFile:v}),[e,b,i,v]);s.useEffect(()=>{h.current||setTimeout(()=>{h.current=!0},300)},[b]);const{status:D,error:w}=b;return l.jsx(B.Provider,{value:I,children:l.jsx("div",{"aria-describedby":`${i}-status${w!=null?` ${i}-error`:""}`.trim(),"aria-invalid":D==="error","aria-labelledby":`${i}-name`,className:u.cn("relative flex items-center justify-between gap-2 overflow-hidden rounded-lg border-[1.5px] border-[var(--file-input-item-border,hsl(var(--contrast-200)))] p-4","data-[start-animation]:animate-in data-[start-animation]:fade-in-0 data-[start-animation]:slide-in-from-top-2","aria-invalid:border-[var(--file-input-item-border-error,hsl(var(--error)))]",t),"data-slot":"file-input-item","data-start-animation":h.current?void 0:"",role:"listitem",...n,children:typeof r=="function"?r(I):r})})}function k(){const t=s.use(B);if(!t)throw new Error("useFileInputItem must be used within a FileInputItem");return t}function de({className:t,children:r,...e}){const{id:n,files:i}=C();if(i.size===0)return null;const m=s.useMemo(()=>({files:i}),[i]);return l.jsx("div",{className:u.cn("mt-3 grid gap-3",t),"data-slot":"file-input-list",id:`${n}-list`,role:"list",...e,children:typeof r=="function"?r(m):r})}function pe({className:t,children:r,...e}){const{id:n}=C();return l.jsx("p",{className:u.cn("mt-2 font-[family-name:var(--file-input-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-message,hsl(var(--contrast-500)))]",t),"data-slot":"file-input-message",id:`${n}-message`,...e,children:r})}function me({className:t,children:r,...e}){const{id:n,validationError:i}=C();return i!=null?null:l.jsx("p",{className:u.cn("font-[family-name:var(--file-input-dropzone-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-dropzone-message,hsl(var(--contrast-500)))]","group-aria-disabled:text-[var(--file-input-dropzone-message-disabled,color-mix(in_oklab,hsl(var(--contrast-500))_70%,transparent))]",t),"data-slot":"file-input-dropzone-hint",id:`${n}-hint`,...e,children:r})}function ve({className:t,children:r,...e}){const{id:n,validationError:i}=C();return i==null?null:l.jsx("p",{className:u.cn("font-[family-name:var(--file-input-dropzone-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-dropzone-message-error,hsl(var(--error)))]",t),"data-slot":"file-input-dropzone-error",id:`${n}-error`,role:"alert",...e,children:r??i})}function ge({className:t,children:r,...e}){return l.jsx("div",{className:u.cn("flex min-w-0 flex-1 flex-col",t),"data-slot":"file-input-metadata",...e,children:r})}function be({className:t,children:r,...e}){return l.jsx("div",{className:u.cn("flex-1",t),"data-slot":"file-input-details",...e,children:r})}function he({className:t,children:r,...e}){return l.jsx("div",{className:u.cn("flex items-center gap-1 font-[family-name:var(--file-input-item-name-font-family,var(--font-family-body))]",t),"data-slot":"file-input-header",...e,children:r})}function xe({className:t,children:r,...e}){const{generatedId:n}=k();return l.jsx("p",{className:u.cn("truncate text-sm font-semibold text-[var(--file-input-item-name,hsl(var(--foreground)))]",t),"data-slot":"file-input-name",id:`${n}-name`,...e,children:r})}function Fe({className:t,children:r,...e}){const{generatedId:n}=k();return l.jsx("p",{className:u.cn("text-xs font-normal text-[var(--file-input-item-status,hsl(var(--contrast-500)))]",t),"data-slot":"file-input-status",id:`${n}-status`,...e,children:r})}function Ie({className:t,children:r,...e}){const{generatedId:n}=k();return l.jsx("p",{className:u.cn("text-xs font-normal text-[var(--file-input-item-status-error,hsl(var(--error)))]",t),"data-slot":"file-input-error",id:`${n}-error`,...e,children:r})}function ye({className:t,children:r,...e}){const{fileState:{file:{name:n}},removeFile:i}=k();return l.jsx("button",{"aria-label":`Remove ${n}`,className:u.cn("inline-flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors","hover:bg-[var(--file-input-item-delete-hover,hsl(var(--contrast-100)))]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--file-input-focus,hsl(var(--primary)))]",t),"data-slot":"file-input-remove",onClick:i,type:"button",...e,children:r})}function Ee({className:t,...r}){const{generatedId:e,fileState:{progress:n}}=k();return l.jsx("div",{"aria-labelledby":`${e}-name`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":n,"aria-valuetext":`${n}%`,className:u.cn("absolute bottom-0 left-0 h-1 w-full bg-[var(--file-input-item-progress,hsl(var(--primary)))] transition-transform duration-300 ease-linear",t),role:"progressbar",style:{transform:`translateX(-${100-n}%)`},...r})}function Ce({asChild:t=!1,className:r,children:e}){const{fileState:n}=k(),i=ke(n.file);return t?l.jsx(Y.Slot,{className:u.cn("size-4 text-[var(--file-input-icon,hsl(var(--contrast-400)))]",r),"data-slot":"file-input-icon",children:e}):l.jsx(i,{className:u.cn("size-4 text-[var(--file-input-icon,hsl(var(--contrast-400)))]",r),"data-slot":"file-input-icon"})}function ke(t){const r=t.type,e=t.name.split(".").pop()?.toLowerCase()??"";return r.startsWith("image/")?Z.default:r.startsWith("video/")?ee.default:r.startsWith("audio/")?te.default:r.startsWith("text/")||["txt","md","rtf","pdf"].includes(e)?re.default:["html","css","js","jsx","ts","tsx","json","xml","php","py","rb","java","c","cpp","cs"].includes(e)?ne.default:["zip","rar","7z","tar","gz","bz2"].includes(e)?se.default:["exe","msi","app","apk","deb","rpm"].includes(e)||r.startsWith("application/")?ie.default:ae.default}exports.Details=be;exports.Dropzone=ue;exports.DropzoneError=ve;exports.DropzoneHint=me;exports.Error=Ie;exports.Header=he;exports.Icon=Ce;exports.Item=fe;exports.List=de;exports.Message=pe;exports.Metadata=ge;exports.Name=xe;exports.Progress=Ee;exports.Remove=ye;exports.Root=le;exports.Status=Fe;exports.Trigger=ce;exports.useFileInput=C;exports.useFileInputItem=k;
|
|
2
|
+
//# sourceMappingURL=file-input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-input.cjs","sources":["../src/components/file-input/primitives/file-input-root.tsx","../src/components/file-input/primitives/file-input-dropzone.tsx","../src/components/file-input/primitives/file-input-trigger.tsx","../src/components/file-input/primitives/file-input-item.tsx","../src/components/file-input/primitives/file-input-list.tsx","../src/components/file-input/primitives/file-input-message.tsx","../src/components/file-input/primitives/file-input-dropzone-hint.tsx","../src/components/file-input/primitives/file-input-dropzone-error.tsx","../src/components/file-input/primitives/file-input-metadata.tsx","../src/components/file-input/primitives/file-input-details.tsx","../src/components/file-input/primitives/file-input-header.tsx","../src/components/file-input/primitives/file-input-name.tsx","../src/components/file-input/primitives/file-input-status.tsx","../src/components/file-input/primitives/file-input-error.tsx","../src/components/file-input/primitives/file-input-remove.tsx","../src/components/file-input/primitives/file-input-progress.tsx","../src/components/file-input/primitives/file-input-icon.tsx"],"sourcesContent":["'use client';\n\nimport { clsx } from 'clsx';\nimport {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useReducer,\n useRef,\n useState,\n} from 'react';\nimport type { ChangeEvent, ComponentPropsWithoutRef, ReactNode, RefObject } from 'react';\n\nexport interface FileState {\n file: File;\n progress: number;\n status: 'idle' | 'uploading' | 'success' | 'error';\n error?: string;\n}\n\ninterface FileInputState {\n files: Map<File, FileState>;\n}\n\ntype FileInputAction =\n | { type: 'ADD_FILES'; files: File[] }\n | { type: 'SET_PROGRESS'; file: File; progress: number }\n | { type: 'SET_SUCCESS'; file: File }\n | { type: 'SET_ERROR'; file: File; error: string }\n | { type: 'REMOVE_FILE'; file: File }\n | { type: 'CLEAR' };\n\nconst initialState: FileInputState = {\n files: new Map(),\n};\n\nfunction fileInputReducer(state: FileInputState, action: FileInputAction): FileInputState {\n switch (action.type) {\n case 'ADD_FILES': {\n const newFiles = new Map(state.files);\n\n action.files.forEach((file) => {\n if (!newFiles.has(file)) {\n newFiles.set(file, {\n file,\n progress: 0,\n status: 'idle',\n });\n }\n });\n\n return { ...state, files: newFiles };\n }\n\n case 'SET_PROGRESS': {\n const updatedFiles = new Map(state.files);\n const fileState = updatedFiles.get(action.file);\n\n if (fileState) {\n updatedFiles.set(action.file, {\n ...fileState,\n progress: action.progress,\n status: 'uploading',\n });\n }\n\n return { ...state, files: updatedFiles };\n }\n\n case 'SET_SUCCESS': {\n const successFiles = new Map(state.files);\n const fileState = successFiles.get(action.file);\n\n if (fileState) {\n successFiles.set(action.file, {\n ...fileState,\n status: 'success',\n progress: 100,\n });\n }\n\n return { ...state, files: successFiles };\n }\n\n case 'SET_ERROR': {\n const errorFiles = new Map(state.files);\n const fileState = errorFiles.get(action.file);\n\n if (fileState) {\n errorFiles.set(action.file, {\n ...fileState,\n status: 'error',\n error: action.error,\n });\n }\n\n return { ...state, files: errorFiles };\n }\n\n case 'REMOVE_FILE': {\n const removeFiles = new Map(state.files);\n\n removeFiles.delete(action.file);\n\n return { ...state, files: removeFiles };\n }\n\n case 'CLEAR':\n return initialState;\n\n default:\n return state;\n }\n}\n\ninterface FileInputContextValue {\n files: Map<File, FileState>;\n id: string;\n inputId: string;\n inputRef: RefObject<HTMLInputElement | null>;\n disabled?: boolean;\n invalid?: boolean;\n validationError?: string;\n addFiles: (files: File[]) => void;\n removeFile: (file: File) => void;\n openFilePicker: () => void;\n}\n\nconst FileInputContext = createContext<FileInputContextValue | null>(null);\n\nexport function useFileInput() {\n const context = useContext(FileInputContext);\n\n if (!context) {\n throw new Error('useFileInput must be used within a FileInputRoot');\n }\n\n return context;\n}\n\nexport interface FileInputRootProps\n extends Omit<ComponentPropsWithoutRef<'div'>, 'id' | 'onError'> {\n id: string;\n children: ReactNode;\n accept?: string;\n multiple?: boolean;\n disabled?: boolean;\n invalid?: boolean;\n name?: string;\n maxFiles?: number;\n maxSize?: number;\n onFileValidate?: (file: File) => string | null | undefined;\n onFileAccept?: (file: File) => void;\n onFileReject?: (file: File, reason: string) => void;\n onUploadFile?: (file: File, reportProgress: (progress: number) => void) => Promise<unknown>;\n onUploadSuccess?: (file: File, result: unknown) => void;\n onUploadError?: (file: File, error: Error) => void;\n}\n\nexport function FileInputRoot({\n id,\n children,\n className,\n accept,\n multiple,\n disabled,\n invalid,\n name,\n maxFiles,\n maxSize,\n onFileValidate,\n onFileAccept,\n onFileReject,\n onUploadFile,\n onUploadSuccess,\n onUploadError,\n ...props\n}: FileInputRootProps) {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const inputId = `${id}-input`;\n\n const [state, dispatch] = useReducer(fileInputReducer, initialState);\n const [validationError, setValidationError] = useState<string | undefined>(undefined);\n\n const setProgress = useCallback((file: File, progress: number) => {\n dispatch({ type: 'SET_PROGRESS', file, progress });\n }, []);\n\n const setSuccess = useCallback((file: File) => {\n dispatch({ type: 'SET_SUCCESS', file });\n }, []);\n\n const setError = useCallback((file: File, error: string) => {\n dispatch({ type: 'SET_ERROR', file, error });\n }, []);\n\n const addFilesToState = useCallback((files: File[]) => {\n dispatch({ type: 'ADD_FILES', files });\n }, []);\n\n const removeFile = useCallback((file: File) => {\n const input = inputRef.current;\n\n if (input?.files) {\n const dataTransfer = new DataTransfer();\n const currentFiles = Array.from(input.files);\n\n currentFiles.filter((f) => f !== file).forEach((f) => dataTransfer.items.add(f));\n\n input.files = dataTransfer.files;\n }\n\n dispatch({ type: 'REMOVE_FILE', file });\n }, []);\n\n const openFilePicker = useCallback(() => {\n inputRef.current?.click();\n }, []);\n\n const processFiles = useCallback(\n (newFiles: File[]) => {\n const filesToUpload: File[] = [];\n const acceptedFiles: File[] = [];\n\n newFiles.forEach((file) => {\n let rejected = false;\n let rejectionReason = '';\n\n if (onFileValidate) {\n const validationMessage = onFileValidate(file);\n\n if (validationMessage != null) {\n rejectionReason = validationMessage;\n rejected = true;\n }\n }\n\n if (!rejected && accept != null) {\n const acceptTypes = accept.split(',').map((t) => t.trim().toLowerCase());\n const fileType = file.type.toLowerCase();\n const fileExtension = `.${file.name.split('.').pop()?.toLowerCase()}`;\n\n const isAccepted = acceptTypes.some(\n (type) =>\n type === fileType ||\n type === fileExtension ||\n (type.endsWith('/*') && fileType.startsWith(type.slice(0, -1))),\n );\n\n if (!isAccepted) {\n rejectionReason = 'File type not accepted';\n rejected = true;\n }\n }\n\n if (!rejected && maxSize != null && file.size > maxSize) {\n rejectionReason = 'File size exceeds limit';\n rejected = true;\n }\n\n if (rejected) {\n setValidationError(rejectionReason);\n onFileReject?.(file, rejectionReason);\n } else {\n setValidationError(undefined);\n onFileAccept?.(file);\n filesToUpload.push(file);\n acceptedFiles.push(file);\n }\n });\n\n const input = inputRef.current;\n\n if (input) {\n const dataTransfer = new DataTransfer();\n const existingFiles = Array.from(state.files.keys());\n const allFiles = [...existingFiles, ...acceptedFiles];\n const limitedFiles = maxFiles != null ? allFiles.slice(0, maxFiles) : allFiles;\n\n limitedFiles.forEach((file) => dataTransfer.items.add(file));\n input.files = dataTransfer.files;\n\n addFilesToState(limitedFiles);\n }\n\n if (filesToUpload.length > 0) {\n if (onUploadFile) {\n filesToUpload.forEach((file) => {\n setProgress(file, 0);\n\n const reportProgress = (progress: number) => {\n setProgress(file, progress);\n };\n\n void Promise.resolve(onUploadFile(file, reportProgress))\n .then((result) => {\n setSuccess(file);\n onUploadSuccess?.(file, result);\n })\n .catch((error: unknown) => {\n const err = error instanceof Error ? error : new Error('Upload failed');\n\n setError(file, err.message);\n onUploadError?.(file, err);\n });\n });\n } else {\n filesToUpload.forEach((file) => {\n setSuccess(file);\n });\n }\n }\n },\n [\n accept,\n maxFiles,\n maxSize,\n state.files,\n onFileValidate,\n onFileAccept,\n onFileReject,\n onUploadFile,\n onUploadSuccess,\n onUploadError,\n addFilesToState,\n setProgress,\n setSuccess,\n setError,\n ],\n );\n\n const handleChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n const newFiles = Array.from(event.target.files ?? []);\n\n processFiles(newFiles);\n },\n [processFiles],\n );\n\n const contextValue = useMemo<FileInputContextValue>(\n () => ({\n files: state.files,\n id,\n inputId,\n inputRef,\n disabled,\n invalid,\n validationError,\n addFiles: processFiles,\n removeFile,\n openFilePicker,\n }),\n [\n state.files,\n id,\n inputId,\n disabled,\n invalid,\n validationError,\n processFiles,\n removeFile,\n openFilePicker,\n ],\n );\n\n return (\n <FileInputContext.Provider value={contextValue}>\n <div\n aria-disabled={disabled === true ? true : undefined}\n aria-invalid={invalid === true || validationError != null ? true : undefined}\n className={clsx('group', className, '@container')}\n {...props}\n >\n <input\n accept={accept}\n className=\"sr-only\"\n disabled={disabled}\n id={inputId}\n multiple={multiple}\n name={name}\n onChange={handleChange}\n ref={inputRef}\n tabIndex={-1}\n type=\"file\"\n />\n {children}\n </div>\n </FileInputContext.Provider>\n );\n}\n","'use client';\n\nimport { clsx } from 'clsx';\nimport { useCallback, useState } from 'react';\nimport type { ClipboardEvent, ComponentPropsWithoutRef, DragEvent, KeyboardEvent } from 'react';\n\nimport { useFileInput } from '@/components/file-input';\n\nexport type FileInputDropzoneProps = ComponentPropsWithoutRef<'div'>;\n\nexport function FileInputDropzone({ children, className, ...props }: FileInputDropzoneProps) {\n const { id, disabled, invalid, addFiles, openFilePicker } = useFileInput();\n const [isDragging, setIsDragging] = useState(false);\n\n const handleDrop = useCallback(\n (event: DragEvent<HTMLDivElement>) => {\n event.preventDefault();\n setIsDragging(false);\n\n const newFiles = Array.from(event.dataTransfer.files);\n\n addFiles(newFiles);\n },\n [addFiles],\n );\n\n const handleDragOver = useCallback((event: DragEvent<HTMLDivElement>) => {\n event.preventDefault();\n setIsDragging(true);\n }, []);\n\n const handleDragEnter = useCallback((event: DragEvent<HTMLDivElement>) => {\n event.preventDefault();\n setIsDragging(true);\n }, []);\n\n const handleDragLeave = useCallback((event: DragEvent<HTMLDivElement>) => {\n const relatedTarget = event.relatedTarget;\n\n if (\n relatedTarget &&\n relatedTarget instanceof Node &&\n event.currentTarget.contains(relatedTarget)\n ) {\n return;\n }\n\n event.preventDefault();\n setIsDragging(false);\n }, []);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLDivElement>) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n openFilePicker();\n }\n },\n [openFilePicker],\n );\n\n const handlePaste = useCallback(\n (event: ClipboardEvent<HTMLDivElement>) => {\n event.preventDefault();\n setIsDragging(false);\n\n const items = event.clipboardData.items;\n\n if (items.length === 0) return;\n\n const pastedFiles: File[] = [];\n\n for (const item of Array.from(items)) {\n if (item.kind === 'file') {\n const file = item.getAsFile();\n\n if (file) {\n pastedFiles.push(file);\n }\n }\n }\n\n if (pastedFiles.length === 0) return;\n\n addFiles(pastedFiles);\n },\n [addFiles],\n );\n\n const handleClick = useCallback(() => {\n openFilePicker();\n }, [openFilePicker]);\n\n return (\n <div\n aria-controls={`${id}-input ${id}-list`}\n aria-disabled={disabled === true ? true : undefined}\n aria-invalid={invalid === true ? true : undefined}\n className={clsx(\n // Base layout\n 'min-h-19 flex flex-col items-center justify-center gap-1.5',\n // Spacing\n 'p-4',\n // Borders & Rounded\n 'rounded-lg border-[1.5px] border-dashed border-[var(--file-input-dropzone-border,hsl(var(--contrast-200)))]',\n // Background\n 'bg-[var(--file-input-dropzone-background,hsl(var(--background)))]',\n // Interaction\n 'cursor-pointer select-none',\n // Transitions\n 'transition-colors duration-300 ease-in-out',\n // Hover state\n 'hover:border-[var(--file-input-dropzone-border-hover,hsl(var(--foreground)))] hover:bg-[var(--file-input-dropzone-background-hover,hsl(var(--contrast-100)))]',\n // Focus-visible state\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--file-input-focus,hsl(var(--primary)))] focus-visible:ring-offset-2',\n // Disabled state\n 'group-aria-disabled:cursor-not-allowed group-aria-disabled:border-[var(--file-input-dropzone-border-disabled,color-mix(in_oklab,hsl(var(--contrast-200))_70%,transparent))] group-aria-disabled:bg-[var(--file-input-dropzone-background-disabled,hsl(var(--background)))]',\n 'group-aria-disabled:focus-visible:outline-none group-aria-disabled:focus-visible:ring-0 group-aria-disabled:focus-visible:ring-offset-0',\n // Invalid state\n 'group-aria-invalid:border-[var(--file-input-dropzone-border-error,hsl(var(--error)))]',\n // Dragging state\n 'data-[dragging]:border-[var(--file-input-dropzone-border-dragging,hsl(var(--foreground)))] data-[dragging]:bg-[var(--file-input-dropzone-background-dragging,color-mix(in_oklab,hsl(var(--success)),white_75%))]',\n // Container queries\n '@sm:flex-row',\n className,\n )}\n data-dragging={isDragging ? '' : undefined}\n onClick={handleClick}\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n onKeyDown={handleKeyDown}\n onPaste={handlePaste}\n role=\"button\"\n tabIndex={disabled === true ? -1 : 0}\n {...props}\n >\n {children}\n </div>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { Button } from '@/components/button';\nimport { useFileInput } from '@/components/file-input';\n\nexport type FileInputTriggerProps = ComponentProps<typeof Button>;\n\nexport function FileInputTrigger({ children, disabled, ...props }: FileInputTriggerProps) {\n const { inputId, disabled: contextDisabled, openFilePicker } = useFileInput();\n\n const isDisabled = disabled ?? contextDisabled;\n\n return (\n <Button\n aria-controls={`${inputId}-input`}\n className=\"pointer-events-none\"\n disabled={isDisabled}\n onClick={openFilePicker}\n size=\"small\"\n tabIndex={-1}\n type=\"button\"\n variant=\"outline\"\n {...props}\n >\n {children}\n </Button>\n );\n}\n","'use client';\n\nimport type { ComponentProps, ReactNode } from 'react';\nimport { createContext, use, useCallback, useEffect, useId, useMemo, useRef } from 'react';\n\nimport type { FileState } from '@/components/file-input';\nimport { useFileInput } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport interface FileInputItemRenderProps {\n file: File;\n fileState: FileState;\n generatedId: string;\n removeFile: () => void;\n}\n\nconst FileInputItemContext = createContext<FileInputItemRenderProps | undefined>(undefined);\n\nexport type FileInputItemProps = Omit<ComponentProps<'div'>, 'children'> & {\n file: File;\n children: ReactNode | ((props: FileInputItemRenderProps) => ReactNode);\n};\n\nexport function FileInputItem({ className, children, file, ...props }: FileInputItemProps) {\n const generatedId = useId();\n const { files, removeFile: removeFileFromRoot } = useFileInput();\n const hasAnimatedRef = useRef(false);\n\n const fileState = files.get(file);\n\n const removeFile = useCallback(() => removeFileFromRoot(file), [removeFileFromRoot, file]);\n\n if (!fileState) {\n return null;\n }\n\n const renderProps: FileInputItemRenderProps = useMemo(\n () => ({ file, fileState, generatedId, removeFile }),\n [file, fileState, generatedId, removeFile],\n );\n\n useEffect(() => {\n // Only animate the file item once since\n // re-rendering will reset the animation\n if (!hasAnimatedRef.current) {\n setTimeout(() => {\n hasAnimatedRef.current = true;\n }, 300);\n }\n }, [fileState]);\n\n const { status, error } = fileState;\n\n return (\n <FileInputItemContext.Provider value={renderProps}>\n <div\n aria-describedby={`${generatedId}-status${error != null ? ` ${generatedId}-error` : ''}`.trim()}\n aria-invalid={status === 'error'}\n aria-labelledby={`${generatedId}-name`}\n className={cn(\n 'relative flex items-center justify-between gap-2 overflow-hidden rounded-lg border-[1.5px] border-[var(--file-input-item-border,hsl(var(--contrast-200)))] p-4',\n // Start animation state\n 'data-[start-animation]:animate-in data-[start-animation]:fade-in-0 data-[start-animation]:slide-in-from-top-2',\n // Invalid state\n 'aria-invalid:border-[var(--file-input-item-border-error,hsl(var(--error)))]',\n className,\n )}\n data-slot=\"file-input-item\"\n data-start-animation={!hasAnimatedRef.current ? '' : undefined}\n role=\"listitem\"\n {...props}\n >\n {typeof children === 'function' ? children(renderProps) : children}\n </div>\n </FileInputItemContext.Provider>\n );\n}\n\nexport function useFileInputItem() {\n const context = use(FileInputItemContext);\n\n if (!context) {\n throw new Error('useFileInputItem must be used within a FileInputItem');\n }\n\n return context;\n}\n","'use client';\n\nimport type { ComponentProps, ReactNode } from 'react';\nimport { useMemo } from 'react';\n\nimport type { FileState } from '@/components/file-input';\nimport { useFileInput } from '@/components/file-input';\nimport { cn } from '@/lib/utils';\n\nexport interface FileInputListRenderProps {\n files: Map<File, FileState>;\n}\n\nexport type FileInputListProps = Omit<ComponentProps<'div'>, 'children'> & {\n children: ReactNode | ((props: FileInputListRenderProps) => ReactNode);\n};\n\nexport function FileInputList({ className, children, ...props }: FileInputListProps) {\n const { id, files } = useFileInput();\n\n if (files.size === 0) {\n return null;\n }\n\n const renderProps: FileInputListRenderProps = useMemo(() => ({ files }), [files]);\n\n return (\n <div\n className={cn('mt-3 grid gap-3', className)}\n data-slot=\"file-input-list\"\n id={`${id}-list`}\n role=\"list\"\n {...props}\n >\n {typeof children === 'function' ? children(renderProps) : children}\n </div>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { useFileInput } from '@/components/file-input';\nimport { cn } from '@/lib/utils';\n\nexport type FileInputMessageProps = ComponentProps<'p'>;\n\nexport function FileInputMessage({ className, children, ...props }: FileInputMessageProps) {\n const { id } = useFileInput();\n\n return (\n <p\n className={cn(\n 'mt-2 font-[family-name:var(--file-input-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-message,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"file-input-message\"\n id={`${id}-message`}\n {...props}\n >\n {children}\n </p>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { useFileInput } from '@/components/file-input';\nimport { cn } from '@/lib/utils';\n\nexport type FileInputDropzoneHintProps = ComponentProps<'p'>;\n\nexport function FileInputDropzoneHint({\n className,\n children,\n ...props\n}: FileInputDropzoneHintProps) {\n const { id, validationError } = useFileInput();\n\n if (validationError != null) {\n return null;\n }\n\n return (\n <p\n className={cn(\n 'font-[family-name:var(--file-input-dropzone-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-dropzone-message,hsl(var(--contrast-500)))]',\n // Disabled styles\n 'group-aria-disabled:text-[var(--file-input-dropzone-message-disabled,color-mix(in_oklab,hsl(var(--contrast-500))_70%,transparent))]',\n className,\n )}\n data-slot=\"file-input-dropzone-hint\"\n id={`${id}-hint`}\n {...props}\n >\n {children}\n </p>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { useFileInput } from '@/components/file-input';\nimport { cn } from '@/lib/utils';\n\nexport type FileInputDropzoneErrorProps = ComponentProps<'p'>;\n\nexport function FileInputDropzoneError({\n className,\n children,\n ...props\n}: FileInputDropzoneErrorProps) {\n const { id, validationError } = useFileInput();\n\n if (validationError == null) {\n return null;\n }\n\n return (\n <p\n className={cn(\n 'font-[family-name:var(--file-input-dropzone-message-font-family,var(--font-family-body))] text-sm font-normal text-[var(--file-input-dropzone-message-error,hsl(var(--error)))]',\n className,\n )}\n data-slot=\"file-input-dropzone-error\"\n id={`${id}-error`}\n role=\"alert\"\n {...props}\n >\n {children ?? validationError}\n </p>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FileInputMetadataProps = ComponentProps<'div'>;\n\nexport function FileInputMetadata({ className, children, ...props }: FileInputMetadataProps) {\n return (\n <div\n className={cn('flex min-w-0 flex-1 flex-col', className)}\n data-slot=\"file-input-metadata\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FileInputDetailsProps = ComponentProps<'div'>;\n\nexport function FileInputDetails({ className, children, ...props }: FileInputDetailsProps) {\n return (\n <div className={cn('flex-1', className)} data-slot=\"file-input-details\" {...props}>\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { cn } from '@/lib';\n\nexport type FileInputHeaderProps = ComponentProps<'div'>;\n\nexport function FileInputHeader({ className, children, ...props }: FileInputHeaderProps) {\n return (\n <div\n className={cn(\n 'flex items-center gap-1 font-[family-name:var(--file-input-item-name-font-family,var(--font-family-body))]',\n className,\n )}\n data-slot=\"file-input-header\"\n {...props}\n >\n {children}\n </div>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport type FileInputNameProps = ComponentProps<'p'>;\n\nexport function FileInputName({ className, children, ...props }: FileInputNameProps) {\n const { generatedId } = useFileInputItem();\n\n return (\n <p\n className={cn(\n 'truncate text-sm font-semibold text-[var(--file-input-item-name,hsl(var(--foreground)))]',\n className,\n )}\n data-slot=\"file-input-name\"\n id={`${generatedId}-name`}\n {...props}\n >\n {children}\n </p>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport type FileInputStatusProps = ComponentProps<'p'>;\n\nexport function FileInputStatus({ className, children, ...props }: FileInputStatusProps) {\n const { generatedId } = useFileInputItem();\n\n return (\n <p\n className={cn(\n 'text-xs font-normal text-[var(--file-input-item-status,hsl(var(--contrast-500)))]',\n className,\n )}\n data-slot=\"file-input-status\"\n id={`${generatedId}-status`}\n {...props}\n >\n {children}\n </p>\n );\n}\n","'use client';\n\nimport type { ComponentProps } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport type FileInputErrorProps = ComponentProps<'p'>;\n\nexport function FileInputError({ className, children, ...props }: FileInputErrorProps) {\n const { generatedId } = useFileInputItem();\n\n return (\n <p\n className={cn(\n 'text-xs font-normal text-[var(--file-input-item-status-error,hsl(var(--error)))]',\n className,\n )}\n data-slot=\"file-input-error\"\n id={`${generatedId}-error`}\n {...props}\n >\n {children}\n </p>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport type FileInputRemoveProps = ComponentProps<'button'>;\n\nexport function FileInputRemove({ className, children, ...props }: FileInputRemoveProps) {\n const {\n fileState: {\n file: { name },\n },\n removeFile,\n } = useFileInputItem();\n\n return (\n <button\n aria-label={`Remove ${name}`}\n className={cn(\n 'inline-flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors',\n // Hover state\n 'hover:bg-[var(--file-input-item-delete-hover,hsl(var(--contrast-100)))]',\n // Focus-visible state\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--file-input-focus,hsl(var(--primary)))]',\n className,\n )}\n data-slot=\"file-input-remove\"\n onClick={removeFile}\n type=\"button\"\n {...props}\n >\n {children}\n </button>\n );\n}\n","import type { ComponentProps } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport type FileInputProgressProps = ComponentProps<'div'>;\n\nexport function FileInputProgress({ className, ...props }: FileInputProgressProps) {\n const {\n generatedId,\n fileState: { progress },\n } = useFileInputItem();\n\n return (\n <div\n aria-labelledby={`${generatedId}-name`}\n aria-valuemax={100}\n aria-valuemin={0}\n aria-valuenow={progress}\n aria-valuetext={`${progress}%`}\n className={cn(\n 'absolute bottom-0 left-0 h-1 w-full bg-[var(--file-input-item-progress,hsl(var(--primary)))] transition-transform duration-300 ease-linear',\n className,\n )}\n role=\"progressbar\"\n style={{ transform: `translateX(-${100 - progress}%)` }}\n {...props}\n />\n );\n}\n","'use client';\n\nimport { Slot } from '@radix-ui/react-slot';\nimport {\n FileArchive,\n FileAudio,\n FileCode,\n FileCog,\n FileIcon as FileIconDefault,\n FileImage,\n FileText,\n FileVideo,\n} from 'lucide-react';\nimport type { ElementType, ReactNode } from 'react';\n\nimport { useFileInputItem } from '@/components/file-input';\nimport { cn } from '@/lib';\n\nexport interface FileInputIconProps {\n asChild?: boolean;\n className?: string;\n children?: ReactNode;\n}\n\nexport function FileInputIcon({ asChild = false, className, children }: FileInputIconProps) {\n const { fileState } = useFileInputItem();\n\n const DefaultIcon = getIconForFile(fileState.file);\n\n if (asChild) {\n return (\n <Slot\n className={cn('size-4 text-[var(--file-input-icon,hsl(var(--contrast-400)))]', className)}\n data-slot=\"file-input-icon\"\n >\n {children}\n </Slot>\n );\n }\n\n return (\n <DefaultIcon\n className={cn('size-4 text-[var(--file-input-icon,hsl(var(--contrast-400)))]', className)}\n data-slot=\"file-input-icon\"\n />\n );\n}\n\nfunction getIconForFile(file: File): ElementType {\n const type = file.type;\n const extension = file.name.split('.').pop()?.toLowerCase() ?? '';\n\n if (type.startsWith('image/')) {\n return FileImage;\n }\n\n if (type.startsWith('video/')) {\n return FileVideo;\n }\n\n if (type.startsWith('audio/')) {\n return FileAudio;\n }\n\n if (type.startsWith('text/') || ['txt', 'md', 'rtf', 'pdf'].includes(extension)) {\n return FileText;\n }\n\n if (\n [\n 'html',\n 'css',\n 'js',\n 'jsx',\n 'ts',\n 'tsx',\n 'json',\n 'xml',\n 'php',\n 'py',\n 'rb',\n 'java',\n 'c',\n 'cpp',\n 'cs',\n ].includes(extension)\n ) {\n return FileCode;\n }\n\n if (['zip', 'rar', '7z', 'tar', 'gz', 'bz2'].includes(extension)) {\n return FileArchive;\n }\n\n if (\n ['exe', 'msi', 'app', 'apk', 'deb', 'rpm'].includes(extension) ||\n type.startsWith('application/')\n ) {\n return FileCog;\n }\n\n return FileIconDefault;\n}\n"],"names":["initialState","fileInputReducer","state","action","newFiles","file","updatedFiles","fileState","successFiles","errorFiles","removeFiles","FileInputContext","createContext","useFileInput","context","useContext","FileInputRoot","id","children","className","accept","multiple","disabled","invalid","name","maxFiles","maxSize","onFileValidate","onFileAccept","onFileReject","onUploadFile","onUploadSuccess","onUploadError","props","inputRef","useRef","inputId","dispatch","useReducer","validationError","setValidationError","useState","setProgress","useCallback","progress","setSuccess","setError","error","addFilesToState","files","removeFile","input","dataTransfer","f","openFilePicker","processFiles","filesToUpload","acceptedFiles","rejected","rejectionReason","validationMessage","acceptTypes","t","fileType","fileExtension","type","allFiles","limitedFiles","reportProgress","result","err","handleChange","event","contextValue","useMemo","jsx","jsxs","clsx","FileInputDropzone","addFiles","isDragging","setIsDragging","handleDrop","handleDragOver","handleDragEnter","handleDragLeave","relatedTarget","handleKeyDown","handlePaste","items","pastedFiles","item","handleClick","FileInputTrigger","contextDisabled","isDisabled","Button","FileInputItemContext","FileInputItem","generatedId","useId","removeFileFromRoot","hasAnimatedRef","renderProps","useEffect","status","cn","useFileInputItem","use","FileInputList","FileInputMessage","FileInputDropzoneHint","FileInputDropzoneError","FileInputMetadata","FileInputDetails","FileInputHeader","FileInputName","FileInputStatus","FileInputError","FileInputRemove","FileInputProgress","FileInputIcon","asChild","DefaultIcon","getIconForFile","Slot","extension","FileImage","FileVideo","FileAudio","FileText","FileCode","FileArchive","FileCog","FileIconDefault"],"mappings":"qiBAiCMA,EAA+B,CACnC,UAAW,GACb,EAEA,SAASC,GAAiBC,EAAuBC,EAAyC,CACxF,OAAQA,EAAO,KAAA,CACb,IAAK,YAAa,CAChB,MAAMC,EAAW,IAAI,IAAIF,EAAM,KAAK,EAEpC,OAAAC,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