@cerberus-design/react 0.0.0-next-bd980a6d9bd07d60e8d7200bd4d56624754e936c
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/LICENSE +201 -0
- package/README.md +68 -0
- package/dist/components/AnimatingUploadIcon.cjs +71 -0
- package/dist/components/AnimatingUploadIcon.d.cts +8 -0
- package/dist/components/AnimatingUploadIcon.d.ts +8 -0
- package/dist/components/AnimatingUploadIcon.js +71 -0
- package/dist/components/accordion/index.cjs +12 -0
- package/dist/components/accordion/index.d.cts +3 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/accordion/index.js +4 -0
- package/dist/components/accordion/item-group.cjs +52 -0
- package/dist/components/accordion/item-group.d.cts +28 -0
- package/dist/components/accordion/item-group.d.ts +28 -0
- package/dist/components/accordion/item-group.js +51 -0
- package/dist/components/accordion/item-indicator.cjs +22 -0
- package/dist/components/accordion/item-indicator.d.cts +7 -0
- package/dist/components/accordion/item-indicator.d.ts +7 -0
- package/dist/components/accordion/item-indicator.js +22 -0
- package/dist/components/accordion/parts.cjs +20 -0
- package/dist/components/accordion/parts.d.cts +38 -0
- package/dist/components/accordion/parts.d.ts +38 -0
- package/dist/components/accordion/parts.js +20 -0
- package/dist/components/accordion/primitives.cjs +58 -0
- package/dist/components/accordion/primitives.d.cts +47 -0
- package/dist/components/accordion/primitives.d.ts +47 -0
- package/dist/components/accordion/primitives.js +54 -0
- package/dist/components/admonition/admonition.cjs +38 -0
- package/dist/components/admonition/admonition.d.cts +28 -0
- package/dist/components/admonition/admonition.d.ts +28 -0
- package/dist/components/admonition/admonition.js +38 -0
- package/dist/components/admonition/index.cjs +11 -0
- package/dist/components/admonition/index.d.cts +3 -0
- package/dist/components/admonition/index.d.ts +3 -0
- package/dist/components/admonition/index.js +4 -0
- package/dist/components/admonition/match-avatar.cjs +41 -0
- package/dist/components/admonition/match-avatar.d.cts +4 -0
- package/dist/components/admonition/match-avatar.d.ts +4 -0
- package/dist/components/admonition/match-avatar.js +41 -0
- package/dist/components/admonition/parts.cjs +20 -0
- package/dist/components/admonition/parts.d.cts +38 -0
- package/dist/components/admonition/parts.d.ts +38 -0
- package/dist/components/admonition/parts.js +20 -0
- package/dist/components/admonition/primitives.cjs +49 -0
- package/dist/components/admonition/primitives.d.cts +29 -0
- package/dist/components/admonition/primitives.d.ts +29 -0
- package/dist/components/admonition/primitives.js +45 -0
- package/dist/components/avatar/avatar.cjs +27 -0
- package/dist/components/avatar/avatar.d.cts +24 -0
- package/dist/components/avatar/avatar.d.ts +24 -0
- package/dist/components/avatar/avatar.js +27 -0
- package/dist/components/avatar/index.cjs +16 -0
- package/dist/components/avatar/index.d.cts +4 -0
- package/dist/components/avatar/index.d.ts +4 -0
- package/dist/components/avatar/index.js +5 -0
- package/dist/components/avatar/parts.cjs +18 -0
- package/dist/components/avatar/parts.d.cts +30 -0
- package/dist/components/avatar/parts.d.ts +30 -0
- package/dist/components/avatar/parts.js +18 -0
- package/dist/components/avatar/primitives.cjs +25 -0
- package/dist/components/avatar/primitives.d.cts +19 -0
- package/dist/components/avatar/primitives.d.ts +19 -0
- package/dist/components/avatar/primitives.js +23 -0
- package/dist/components/button/button.cjs +58 -0
- package/dist/components/button/button.d.cts +21 -0
- package/dist/components/button/button.d.ts +21 -0
- package/dist/components/button/button.js +57 -0
- package/dist/components/button/index.cjs +8 -0
- package/dist/components/button/index.d.cts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4 -0
- package/dist/components/button/parts.cjs +17 -0
- package/dist/components/button/parts.d.cts +26 -0
- package/dist/components/button/parts.d.ts +26 -0
- package/dist/components/button/parts.js +17 -0
- package/dist/components/button/primitives.cjs +21 -0
- package/dist/components/button/primitives.d.cts +14 -0
- package/dist/components/button/primitives.d.ts +14 -0
- package/dist/components/button/primitives.js +21 -0
- package/dist/components/carousel/carousel.cjs +38 -0
- package/dist/components/carousel/carousel.d.cts +33 -0
- package/dist/components/carousel/carousel.d.ts +33 -0
- package/dist/components/carousel/carousel.js +38 -0
- package/dist/components/carousel/index.cjs +14 -0
- package/dist/components/carousel/index.d.cts +3 -0
- package/dist/components/carousel/index.d.ts +3 -0
- package/dist/components/carousel/index.js +4 -0
- package/dist/components/carousel/parts.cjs +23 -0
- package/dist/components/carousel/parts.d.cts +50 -0
- package/dist/components/carousel/parts.d.ts +50 -0
- package/dist/components/carousel/parts.js +23 -0
- package/dist/components/carousel/primitives.cjs +26 -0
- package/dist/components/carousel/primitives.d.cts +20 -0
- package/dist/components/carousel/primitives.d.ts +20 -0
- package/dist/components/carousel/primitives.js +19 -0
- package/dist/components/checkbox/checkbox-icon.cjs +33 -0
- package/dist/components/checkbox/checkbox-icon.d.cts +21 -0
- package/dist/components/checkbox/checkbox-icon.d.ts +21 -0
- package/dist/components/checkbox/checkbox-icon.js +33 -0
- package/dist/components/checkbox/checkbox.cjs +38 -0
- package/dist/components/checkbox/checkbox.d.cts +14 -0
- package/dist/components/checkbox/checkbox.d.ts +14 -0
- package/dist/components/checkbox/checkbox.js +38 -0
- package/dist/components/checkbox/index.cjs +12 -0
- package/dist/components/checkbox/index.d.cts +3 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox/parts.cjs +21 -0
- package/dist/components/checkbox/parts.d.cts +42 -0
- package/dist/components/checkbox/parts.d.ts +42 -0
- package/dist/components/checkbox/parts.js +21 -0
- package/dist/components/checkbox/primitives.cjs +54 -0
- package/dist/components/checkbox/primitives.d.cts +48 -0
- package/dist/components/checkbox/primitives.d.ts +48 -0
- package/dist/components/checkbox/primitives.js +49 -0
- package/dist/components/circular-progress/circular-progress.cjs +16 -0
- package/dist/components/circular-progress/circular-progress.d.cts +19 -0
- package/dist/components/circular-progress/circular-progress.d.ts +19 -0
- package/dist/components/circular-progress/circular-progress.js +16 -0
- package/dist/components/circular-progress/index.cjs +11 -0
- package/dist/components/circular-progress/index.d.cts +2 -0
- package/dist/components/circular-progress/index.d.ts +2 -0
- package/dist/components/circular-progress/index.js +3 -0
- package/dist/components/circular-progress/primitives.cjs +24 -0
- package/dist/components/circular-progress/primitives.d.cts +19 -0
- package/dist/components/circular-progress/primitives.d.ts +19 -0
- package/dist/components/circular-progress/primitives.js +18 -0
- package/dist/components/clipboard/copy-indicator.cjs +20 -0
- package/dist/components/clipboard/copy-indicator.d.cts +6 -0
- package/dist/components/clipboard/copy-indicator.d.ts +6 -0
- package/dist/components/clipboard/copy-indicator.js +20 -0
- package/dist/components/clipboard/copy-text.cjs +17 -0
- package/dist/components/clipboard/copy-text.d.cts +6 -0
- package/dist/components/clipboard/copy-text.d.ts +6 -0
- package/dist/components/clipboard/copy-text.js +17 -0
- package/dist/components/clipboard/index.cjs +11 -0
- package/dist/components/clipboard/index.d.cts +2 -0
- package/dist/components/clipboard/index.d.ts +2 -0
- package/dist/components/clipboard/index.js +3 -0
- package/dist/components/clipboard/parts.cjs +26 -0
- package/dist/components/clipboard/parts.d.cts +53 -0
- package/dist/components/clipboard/parts.d.ts +53 -0
- package/dist/components/clipboard/parts.js +26 -0
- package/dist/components/clipboard/primitives.cjs +23 -0
- package/dist/components/clipboard/primitives.d.cts +17 -0
- package/dist/components/clipboard/primitives.d.ts +17 -0
- package/dist/components/clipboard/primitives.js +17 -0
- package/dist/components/clipboard/trigger.cjs +19 -0
- package/dist/components/clipboard/trigger.d.cts +5 -0
- package/dist/components/clipboard/trigger.d.ts +5 -0
- package/dist/components/clipboard/trigger.js +19 -0
- package/dist/components/collapsible/index.cjs +9 -0
- package/dist/components/collapsible/index.d.cts +2 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/collapsible/index.js +3 -0
- package/dist/components/collapsible/parts.cjs +20 -0
- package/dist/components/collapsible/parts.d.cts +38 -0
- package/dist/components/collapsible/parts.d.ts +38 -0
- package/dist/components/collapsible/parts.js +20 -0
- package/dist/components/collapsible/primitives.cjs +20 -0
- package/dist/components/collapsible/primitives.d.cts +14 -0
- package/dist/components/collapsible/primitives.d.ts +14 -0
- package/dist/components/collapsible/primitives.js +16 -0
- package/dist/components/combobox/combobox.cjs +42 -0
- package/dist/components/combobox/combobox.d.cts +14 -0
- package/dist/components/combobox/combobox.d.ts +14 -0
- package/dist/components/combobox/combobox.js +42 -0
- package/dist/components/combobox/index.cjs +28 -0
- package/dist/components/combobox/index.d.cts +6 -0
- package/dist/components/combobox/index.d.ts +6 -0
- package/dist/components/combobox/index.js +7 -0
- package/dist/components/combobox/item-group.cjs +13 -0
- package/dist/components/combobox/item-group.d.cts +8 -0
- package/dist/components/combobox/item-group.d.ts +8 -0
- package/dist/components/combobox/item-group.js +13 -0
- package/dist/components/combobox/item.cjs +25 -0
- package/dist/components/combobox/item.d.cts +11 -0
- package/dist/components/combobox/item.d.ts +11 -0
- package/dist/components/combobox/item.js +25 -0
- package/dist/components/combobox/parts.cjs +29 -0
- package/dist/components/combobox/parts.d.cts +74 -0
- package/dist/components/combobox/parts.d.ts +74 -0
- package/dist/components/combobox/parts.js +29 -0
- package/dist/components/combobox/primitives.cjs +86 -0
- package/dist/components/combobox/primitives.d.cts +82 -0
- package/dist/components/combobox/primitives.d.ts +82 -0
- package/dist/components/combobox/primitives.js +71 -0
- package/dist/components/combobox/use-stateful-collection.cjs +32 -0
- package/dist/components/combobox/use-stateful-collection.d.cts +28 -0
- package/dist/components/combobox/use-stateful-collection.d.ts +28 -0
- package/dist/components/combobox/use-stateful-collection.js +32 -0
- package/dist/components/cta-dialog/context.cjs +6 -0
- package/dist/components/cta-dialog/context.d.cts +32 -0
- package/dist/components/cta-dialog/context.d.ts +32 -0
- package/dist/components/cta-dialog/context.js +7 -0
- package/dist/components/cta-dialog/index.cjs +6 -0
- package/dist/components/cta-dialog/index.d.cts +2 -0
- package/dist/components/cta-dialog/index.d.ts +2 -0
- package/dist/components/cta-dialog/index.js +3 -0
- package/dist/components/cta-dialog/provider.cjs +147 -0
- package/dist/components/cta-dialog/provider.d.cts +41 -0
- package/dist/components/cta-dialog/provider.d.ts +41 -0
- package/dist/components/cta-dialog/provider.js +146 -0
- package/dist/components/cta-dialog/trigger-item.cjs +31 -0
- package/dist/components/cta-dialog/trigger-item.d.cts +14 -0
- package/dist/components/cta-dialog/trigger-item.d.ts +14 -0
- package/dist/components/cta-dialog/trigger-item.js +31 -0
- package/dist/components/cta-dialog/utils.cjs +18 -0
- package/dist/components/cta-dialog/utils.d.cts +30 -0
- package/dist/components/cta-dialog/utils.d.ts +30 -0
- package/dist/components/cta-dialog/utils.js +18 -0
- package/dist/components/date-picker/calendar.cjs +36 -0
- package/dist/components/date-picker/calendar.d.cts +27 -0
- package/dist/components/date-picker/calendar.d.ts +27 -0
- package/dist/components/date-picker/calendar.js +36 -0
- package/dist/components/date-picker/content.cjs +19 -0
- package/dist/components/date-picker/content.d.cts +12 -0
- package/dist/components/date-picker/content.d.ts +12 -0
- package/dist/components/date-picker/content.js +19 -0
- package/dist/components/date-picker/date-picker.cjs +17 -0
- package/dist/components/date-picker/date-picker.d.cts +7 -0
- package/dist/components/date-picker/date-picker.d.ts +7 -0
- package/dist/components/date-picker/date-picker.js +17 -0
- package/dist/components/date-picker/day-view.cjs +39 -0
- package/dist/components/date-picker/day-view.d.cts +13 -0
- package/dist/components/date-picker/day-view.d.ts +13 -0
- package/dist/components/date-picker/day-view.js +39 -0
- package/dist/components/date-picker/index.cjs +68 -0
- package/dist/components/date-picker/index.d.cts +8 -0
- package/dist/components/date-picker/index.d.ts +8 -0
- package/dist/components/date-picker/index.js +9 -0
- package/dist/components/date-picker/input.cjs +23 -0
- package/dist/components/date-picker/input.d.cts +11 -0
- package/dist/components/date-picker/input.d.ts +11 -0
- package/dist/components/date-picker/input.js +23 -0
- package/dist/components/date-picker/month-view.cjs +31 -0
- package/dist/components/date-picker/month-view.d.cts +12 -0
- package/dist/components/date-picker/month-view.d.ts +12 -0
- package/dist/components/date-picker/month-view.js +31 -0
- package/dist/components/date-picker/parts.cjs +39 -0
- package/dist/components/date-picker/parts.d.cts +114 -0
- package/dist/components/date-picker/parts.d.ts +114 -0
- package/dist/components/date-picker/parts.js +39 -0
- package/dist/components/date-picker/primitives.cjs +58 -0
- package/dist/components/date-picker/primitives.d.cts +136 -0
- package/dist/components/date-picker/primitives.d.ts +136 -0
- package/dist/components/date-picker/primitives.js +35 -0
- package/dist/components/date-picker/range-input.cjs +35 -0
- package/dist/components/date-picker/range-input.d.cts +12 -0
- package/dist/components/date-picker/range-input.d.ts +12 -0
- package/dist/components/date-picker/range-input.js +35 -0
- package/dist/components/date-picker/trigger.cjs +31 -0
- package/dist/components/date-picker/trigger.d.cts +10 -0
- package/dist/components/date-picker/trigger.d.ts +10 -0
- package/dist/components/date-picker/trigger.js +31 -0
- package/dist/components/date-picker/view-control-group.cjs +59 -0
- package/dist/components/date-picker/view-control-group.d.cts +12 -0
- package/dist/components/date-picker/view-control-group.d.ts +12 -0
- package/dist/components/date-picker/view-control-group.js +59 -0
- package/dist/components/date-picker/year-view.cjs +28 -0
- package/dist/components/date-picker/year-view.d.cts +12 -0
- package/dist/components/date-picker/year-view.d.ts +12 -0
- package/dist/components/date-picker/year-view.js +28 -0
- package/dist/components/dialog/close-icon-trigger.cjs +32 -0
- package/dist/components/dialog/close-icon-trigger.d.cts +6 -0
- package/dist/components/dialog/close-icon-trigger.d.ts +6 -0
- package/dist/components/dialog/close-icon-trigger.js +32 -0
- package/dist/components/dialog/dialog.cjs +26 -0
- package/dist/components/dialog/dialog.d.cts +24 -0
- package/dist/components/dialog/dialog.d.ts +24 -0
- package/dist/components/dialog/dialog.js +26 -0
- package/dist/components/dialog/index.cjs +18 -0
- package/dist/components/dialog/index.d.cts +7 -0
- package/dist/components/dialog/index.d.ts +7 -0
- package/dist/components/dialog/index.js +5 -0
- package/dist/components/dialog/parts.cjs +23 -0
- package/dist/components/dialog/parts.d.cts +50 -0
- package/dist/components/dialog/parts.d.ts +50 -0
- package/dist/components/dialog/parts.js +23 -0
- package/dist/components/dialog/primitives.cjs +33 -0
- package/dist/components/dialog/primitives.d.cts +51 -0
- package/dist/components/dialog/primitives.d.ts +51 -0
- package/dist/components/dialog/primitives.js +24 -0
- package/dist/components/feature-flag/feature-flag.cjs +17 -0
- package/dist/components/feature-flag/feature-flag.d.cts +12 -0
- package/dist/components/feature-flag/feature-flag.d.ts +12 -0
- package/dist/components/feature-flag/feature-flag.js +17 -0
- package/dist/components/feature-flag/index.cjs +3 -0
- package/dist/components/feature-flag/index.d.cts +1 -0
- package/dist/components/feature-flag/index.d.ts +1 -0
- package/dist/components/feature-flag/index.js +2 -0
- package/dist/components/field/error-text.cjs +22 -0
- package/dist/components/field/error-text.d.cts +14 -0
- package/dist/components/field/error-text.d.ts +14 -0
- package/dist/components/field/error-text.js +22 -0
- package/dist/components/field/field.cjs +72 -0
- package/dist/components/field/field.d.cts +45 -0
- package/dist/components/field/field.d.ts +45 -0
- package/dist/components/field/field.js +72 -0
- package/dist/components/field/helper-text.cjs +18 -0
- package/dist/components/field/helper-text.d.cts +11 -0
- package/dist/components/field/helper-text.d.ts +11 -0
- package/dist/components/field/helper-text.js +18 -0
- package/dist/components/field/index.cjs +20 -0
- package/dist/components/field/index.d.cts +6 -0
- package/dist/components/field/index.d.ts +6 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/field/input.cjs +21 -0
- package/dist/components/field/input.d.cts +18 -0
- package/dist/components/field/input.d.ts +18 -0
- package/dist/components/field/input.js +21 -0
- package/dist/components/field/parts.cjs +26 -0
- package/dist/components/field/parts.d.cts +54 -0
- package/dist/components/field/parts.d.ts +54 -0
- package/dist/components/field/parts.js +26 -0
- package/dist/components/field/primitives.cjs +81 -0
- package/dist/components/field/primitives.d.cts +73 -0
- package/dist/components/field/primitives.d.ts +73 -0
- package/dist/components/field/primitives.js +72 -0
- package/dist/components/field/start-indicator.cjs +20 -0
- package/dist/components/field/start-indicator.d.cts +7 -0
- package/dist/components/field/start-indicator.d.ts +7 -0
- package/dist/components/field/start-indicator.js +20 -0
- package/dist/components/field/status-indicator.cjs +41 -0
- package/dist/components/field/status-indicator.d.cts +18 -0
- package/dist/components/field/status-indicator.d.ts +18 -0
- package/dist/components/field/status-indicator.js +41 -0
- package/dist/components/fieldset/fieldset.cjs +35 -0
- package/dist/components/fieldset/fieldset.d.cts +26 -0
- package/dist/components/fieldset/fieldset.d.ts +26 -0
- package/dist/components/fieldset/fieldset.js +35 -0
- package/dist/components/fieldset/index.cjs +10 -0
- package/dist/components/fieldset/index.d.cts +3 -0
- package/dist/components/fieldset/index.d.ts +3 -0
- package/dist/components/fieldset/index.js +4 -0
- package/dist/components/fieldset/parts.cjs +19 -0
- package/dist/components/fieldset/parts.d.cts +34 -0
- package/dist/components/fieldset/parts.d.ts +34 -0
- package/dist/components/fieldset/parts.js +19 -0
- package/dist/components/fieldset/primitives.cjs +18 -0
- package/dist/components/fieldset/primitives.d.cts +12 -0
- package/dist/components/fieldset/primitives.d.ts +12 -0
- package/dist/components/fieldset/primitives.js +15 -0
- package/dist/components/file-upload/file-status.cjs +169 -0
- package/dist/components/file-upload/file-status.d.cts +74 -0
- package/dist/components/file-upload/file-status.d.ts +74 -0
- package/dist/components/file-upload/file-status.js +168 -0
- package/dist/components/file-upload/file-uploader.cjs +47 -0
- package/dist/components/file-upload/file-uploader.d.cts +17 -0
- package/dist/components/file-upload/file-uploader.d.ts +17 -0
- package/dist/components/file-upload/file-uploader.js +47 -0
- package/dist/components/file-upload/helpers.cjs +19 -0
- package/dist/components/file-upload/helpers.d.cts +16 -0
- package/dist/components/file-upload/helpers.d.ts +16 -0
- package/dist/components/file-upload/helpers.js +19 -0
- package/dist/components/file-upload/img-preview.cjs +37 -0
- package/dist/components/file-upload/img-preview.d.cts +2 -0
- package/dist/components/file-upload/img-preview.d.ts +2 -0
- package/dist/components/file-upload/img-preview.js +37 -0
- package/dist/components/file-upload/index.cjs +31 -0
- package/dist/components/file-upload/index.d.cts +6 -0
- package/dist/components/file-upload/index.d.ts +6 -0
- package/dist/components/file-upload/index.js +7 -0
- package/dist/components/file-upload/parts.cjs +33 -0
- package/dist/components/file-upload/parts.d.cts +90 -0
- package/dist/components/file-upload/parts.d.ts +90 -0
- package/dist/components/file-upload/parts.js +33 -0
- package/dist/components/file-upload/primitives.cjs +42 -0
- package/dist/components/file-upload/primitives.d.cts +41 -0
- package/dist/components/file-upload/primitives.d.ts +41 -0
- package/dist/components/file-upload/primitives.js +25 -0
- package/dist/components/file-upload/utils.cjs +18 -0
- package/dist/components/file-upload/utils.d.cts +7 -0
- package/dist/components/file-upload/utils.d.ts +7 -0
- package/dist/components/file-upload/utils.js +18 -0
- package/dist/components/for/for.cjs +20 -0
- package/dist/components/for/for.d.cts +28 -0
- package/dist/components/for/for.d.ts +28 -0
- package/dist/components/for/for.js +20 -0
- package/dist/components/for/index.cjs +3 -0
- package/dist/components/for/index.d.cts +1 -0
- package/dist/components/for/index.d.ts +1 -0
- package/dist/components/for/index.js +2 -0
- package/dist/components/group/index.cjs +3 -0
- package/dist/components/group/index.d.cts +1 -0
- package/dist/components/group/index.d.ts +1 -0
- package/dist/components/group/index.js +2 -0
- package/dist/components/group/primitives.cjs +7 -0
- package/dist/components/group/primitives.d.cts +6 -0
- package/dist/components/group/primitives.d.ts +6 -0
- package/dist/components/group/primitives.js +7 -0
- package/dist/components/icon-button/button.cjs +16 -0
- package/dist/components/icon-button/button.d.cts +27 -0
- package/dist/components/icon-button/button.d.ts +27 -0
- package/dist/components/icon-button/button.js +16 -0
- package/dist/components/icon-button/index.d.cts +2 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/primitives.cjs +14 -0
- package/dist/components/icon-button/primitives.d.cts +6 -0
- package/dist/components/icon-button/primitives.d.ts +6 -0
- package/dist/components/icon-button/primitives.js +14 -0
- package/dist/components/marquee/Marquee.1.d.cts +1 -0
- package/dist/components/marquee/Marquee.1.d.ts +1 -0
- package/dist/components/marquee/index.cjs +10 -0
- package/dist/components/marquee/index.d.cts +2 -0
- package/dist/components/marquee/index.d.ts +2 -0
- package/dist/components/marquee/index.js +3 -0
- package/dist/components/marquee/marquee.cjs +46 -0
- package/dist/components/marquee/marquee.d.cts +23 -0
- package/dist/components/marquee/marquee.d.ts +23 -0
- package/dist/components/marquee/marquee.js +46 -0
- package/dist/components/marquee/primitives.cjs +18 -0
- package/dist/components/marquee/primitives.d.cts +16 -0
- package/dist/components/marquee/primitives.d.ts +16 -0
- package/dist/components/marquee/primitives.js +13 -0
- package/dist/components/marquee/utils.cjs +33 -0
- package/dist/components/marquee/utils.d.cts +4 -0
- package/dist/components/marquee/utils.d.ts +4 -0
- package/dist/components/marquee/utils.js +31 -0
- package/dist/components/menu/index.cjs +20 -0
- package/dist/components/menu/index.d.cts +2 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +3 -0
- package/dist/components/menu/menu.cjs +134 -0
- package/dist/components/menu/menu.d.cts +120 -0
- package/dist/components/menu/menu.d.ts +120 -0
- package/dist/components/menu/menu.js +128 -0
- package/dist/components/menu/primitives.cjs +30 -0
- package/dist/components/menu/primitives.d.cts +24 -0
- package/dist/components/menu/primitives.d.ts +24 -0
- package/dist/components/menu/primitives.js +21 -0
- package/dist/components/notifications/center.cjs +58 -0
- package/dist/components/notifications/center.d.cts +13 -0
- package/dist/components/notifications/center.d.ts +13 -0
- package/dist/components/notifications/center.js +58 -0
- package/dist/components/notifications/close-trigger.cjs +20 -0
- package/dist/components/notifications/close-trigger.d.cts +6 -0
- package/dist/components/notifications/close-trigger.d.ts +6 -0
- package/dist/components/notifications/close-trigger.js +20 -0
- package/dist/components/notifications/index.cjs +14 -0
- package/dist/components/notifications/index.d.cts +5 -0
- package/dist/components/notifications/index.d.ts +5 -0
- package/dist/components/notifications/index.js +5 -0
- package/dist/components/notifications/match-icon.cjs +30 -0
- package/dist/components/notifications/match-icon.d.cts +8 -0
- package/dist/components/notifications/match-icon.d.ts +8 -0
- package/dist/components/notifications/match-icon.js +30 -0
- package/dist/components/notifications/parts.cjs +20 -0
- package/dist/components/notifications/parts.d.cts +38 -0
- package/dist/components/notifications/parts.d.ts +38 -0
- package/dist/components/notifications/parts.js +20 -0
- package/dist/components/notifications/primitives.cjs +22 -0
- package/dist/components/notifications/primitives.d.cts +16 -0
- package/dist/components/notifications/primitives.d.ts +16 -0
- package/dist/components/notifications/primitives.js +17 -0
- package/dist/components/notifications/toaster.cjs +10 -0
- package/dist/components/notifications/toaster.d.cts +2 -0
- package/dist/components/notifications/toaster.d.ts +2 -0
- package/dist/components/notifications/toaster.js +11 -0
- package/dist/components/notifications/types.d.cts +5 -0
- package/dist/components/notifications/types.d.ts +5 -0
- package/dist/components/number-input/decrement-trigger.cjs +16 -0
- package/dist/components/number-input/decrement-trigger.d.cts +2 -0
- package/dist/components/number-input/decrement-trigger.d.ts +2 -0
- package/dist/components/number-input/decrement-trigger.js +16 -0
- package/dist/components/number-input/increment-trigger.cjs +16 -0
- package/dist/components/number-input/increment-trigger.d.cts +2 -0
- package/dist/components/number-input/increment-trigger.d.ts +2 -0
- package/dist/components/number-input/increment-trigger.js +16 -0
- package/dist/components/number-input/index.cjs +13 -0
- package/dist/components/number-input/index.d.cts +3 -0
- package/dist/components/number-input/index.d.ts +3 -0
- package/dist/components/number-input/index.js +4 -0
- package/dist/components/number-input/input.cjs +26 -0
- package/dist/components/number-input/input.d.cts +13 -0
- package/dist/components/number-input/input.d.ts +13 -0
- package/dist/components/number-input/input.js +26 -0
- package/dist/components/number-input/parts.cjs +22 -0
- package/dist/components/number-input/parts.d.cts +46 -0
- package/dist/components/number-input/parts.d.ts +46 -0
- package/dist/components/number-input/parts.js +22 -0
- package/dist/components/number-input/primitives.cjs +24 -0
- package/dist/components/number-input/primitives.d.cts +18 -0
- package/dist/components/number-input/primitives.d.ts +18 -0
- package/dist/components/number-input/primitives.js +18 -0
- package/dist/components/pagination/compact.cjs +28 -0
- package/dist/components/pagination/compact.d.cts +7 -0
- package/dist/components/pagination/compact.d.ts +7 -0
- package/dist/components/pagination/compact.js +28 -0
- package/dist/components/pagination/index.cjs +20 -0
- package/dist/components/pagination/index.d.cts +6 -0
- package/dist/components/pagination/index.d.ts +6 -0
- package/dist/components/pagination/index.js +7 -0
- package/dist/components/pagination/item-list.cjs +28 -0
- package/dist/components/pagination/item-list.d.cts +7 -0
- package/dist/components/pagination/item-list.d.ts +7 -0
- package/dist/components/pagination/item-list.js +28 -0
- package/dist/components/pagination/item.cjs +13 -0
- package/dist/components/pagination/item.d.cts +2 -0
- package/dist/components/pagination/item.d.ts +2 -0
- package/dist/components/pagination/item.js +13 -0
- package/dist/components/pagination/pagination.cjs +31 -0
- package/dist/components/pagination/pagination.d.cts +21 -0
- package/dist/components/pagination/pagination.d.ts +21 -0
- package/dist/components/pagination/pagination.js +31 -0
- package/dist/components/pagination/parts.cjs +22 -0
- package/dist/components/pagination/parts.d.cts +46 -0
- package/dist/components/pagination/parts.d.ts +46 -0
- package/dist/components/pagination/parts.js +22 -0
- package/dist/components/pagination/primitives.cjs +19 -0
- package/dist/components/pagination/primitives.d.cts +20 -0
- package/dist/components/pagination/primitives.d.ts +20 -0
- package/dist/components/pagination/primitives.js +13 -0
- package/dist/components/pagination/triggers.cjs +46 -0
- package/dist/components/pagination/triggers.d.cts +7 -0
- package/dist/components/pagination/triggers.d.ts +7 -0
- package/dist/components/pagination/triggers.js +45 -0
- package/dist/components/pin-input/index.cjs +11 -0
- package/dist/components/pin-input/index.d.cts +3 -0
- package/dist/components/pin-input/index.d.ts +3 -0
- package/dist/components/pin-input/index.js +4 -0
- package/dist/components/pin-input/input.cjs +22 -0
- package/dist/components/pin-input/input.d.cts +6 -0
- package/dist/components/pin-input/input.d.ts +6 -0
- package/dist/components/pin-input/input.js +22 -0
- package/dist/components/pin-input/parts.cjs +20 -0
- package/dist/components/pin-input/parts.d.cts +38 -0
- package/dist/components/pin-input/parts.d.ts +38 -0
- package/dist/components/pin-input/parts.js +20 -0
- package/dist/components/pin-input/primitives.cjs +20 -0
- package/dist/components/pin-input/primitives.d.cts +14 -0
- package/dist/components/pin-input/primitives.d.ts +14 -0
- package/dist/components/pin-input/primitives.js +16 -0
- package/dist/components/popover/index.cjs +19 -0
- package/dist/components/popover/index.d.cts +3 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.js +4 -0
- package/dist/components/popover/parts.cjs +23 -0
- package/dist/components/popover/parts.d.cts +65 -0
- package/dist/components/popover/parts.d.ts +65 -0
- package/dist/components/popover/parts.js +23 -0
- package/dist/components/popover/placement-container.cjs +12 -0
- package/dist/components/popover/placement-container.d.cts +7 -0
- package/dist/components/popover/placement-container.d.ts +7 -0
- package/dist/components/popover/placement-container.js +12 -0
- package/dist/components/popover/popover.cjs +46 -0
- package/dist/components/popover/popover.d.cts +15 -0
- package/dist/components/popover/popover.d.ts +15 -0
- package/dist/components/popover/popover.js +46 -0
- package/dist/components/popover/primitives.cjs +38 -0
- package/dist/components/popover/primitives.d.cts +30 -0
- package/dist/components/popover/primitives.d.ts +30 -0
- package/dist/components/popover/primitives.js +26 -0
- package/dist/components/portal/index.cjs +3 -0
- package/dist/components/portal/index.d.cts +1 -0
- package/dist/components/portal/index.d.ts +1 -0
- package/dist/components/portal/index.js +2 -0
- package/dist/components/portal/portal.cjs +23 -0
- package/dist/components/portal/portal.d.cts +26 -0
- package/dist/components/portal/portal.d.ts +26 -0
- package/dist/components/portal/portal.js +24 -0
- package/dist/components/progress/index.cjs +6 -0
- package/dist/components/progress/index.d.cts +2 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.js +3 -0
- package/dist/components/progress/primitives.cjs +17 -0
- package/dist/components/progress/primitives.d.cts +8 -0
- package/dist/components/progress/primitives.d.ts +8 -0
- package/dist/components/progress/primitives.js +16 -0
- package/dist/components/progress/progress-bar.cjs +29 -0
- package/dist/components/progress/progress-bar.d.cts +51 -0
- package/dist/components/progress/progress-bar.d.ts +51 -0
- package/dist/components/progress/progress-bar.js +29 -0
- package/dist/components/radio/index.cjs +14 -0
- package/dist/components/radio/index.d.cts +3 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.js +4 -0
- package/dist/components/radio/parts.cjs +22 -0
- package/dist/components/radio/parts.d.cts +46 -0
- package/dist/components/radio/parts.d.ts +46 -0
- package/dist/components/radio/parts.js +22 -0
- package/dist/components/radio/primitives.cjs +42 -0
- package/dist/components/radio/primitives.d.cts +35 -0
- package/dist/components/radio/primitives.d.ts +35 -0
- package/dist/components/radio/primitives.js +35 -0
- package/dist/components/radio/radio.cjs +28 -0
- package/dist/components/radio/radio.d.cts +17 -0
- package/dist/components/radio/radio.d.ts +17 -0
- package/dist/components/radio/radio.js +28 -0
- package/dist/components/rating/index.cjs +13 -0
- package/dist/components/rating/index.d.cts +4 -0
- package/dist/components/rating/index.d.ts +4 -0
- package/dist/components/rating/index.js +4 -0
- package/dist/components/rating/parts.cjs +22 -0
- package/dist/components/rating/parts.d.cts +46 -0
- package/dist/components/rating/parts.d.ts +46 -0
- package/dist/components/rating/parts.js +22 -0
- package/dist/components/rating/primitives.cjs +24 -0
- package/dist/components/rating/primitives.d.cts +18 -0
- package/dist/components/rating/primitives.d.ts +18 -0
- package/dist/components/rating/primitives.js +18 -0
- package/dist/components/rating/rating.cjs +42 -0
- package/dist/components/rating/rating.d.cts +34 -0
- package/dist/components/rating/rating.d.ts +34 -0
- package/dist/components/rating/rating.js +42 -0
- package/dist/components/select/index.cjs +27 -0
- package/dist/components/select/index.d.cts +5 -0
- package/dist/components/select/index.d.ts +5 -0
- package/dist/components/select/index.js +6 -0
- package/dist/components/select/option-group.cjs +34 -0
- package/dist/components/select/option-group.d.cts +31 -0
- package/dist/components/select/option-group.d.ts +31 -0
- package/dist/components/select/option-group.js +33 -0
- package/dist/components/select/option.cjs +27 -0
- package/dist/components/select/option.d.cts +22 -0
- package/dist/components/select/option.d.ts +22 -0
- package/dist/components/select/option.js +27 -0
- package/dist/components/select/parts.cjs +30 -0
- package/dist/components/select/parts.d.cts +78 -0
- package/dist/components/select/parts.d.ts +78 -0
- package/dist/components/select/parts.js +30 -0
- package/dist/components/select/primitives.cjs +52 -0
- package/dist/components/select/primitives.d.cts +45 -0
- package/dist/components/select/primitives.d.ts +45 -0
- package/dist/components/select/primitives.js +37 -0
- package/dist/components/select/select.cjs +61 -0
- package/dist/components/select/select.d.cts +63 -0
- package/dist/components/select/select.d.ts +63 -0
- package/dist/components/select/select.js +61 -0
- package/dist/components/show/index.cjs +3 -0
- package/dist/components/show/index.d.cts +1 -0
- package/dist/components/show/index.d.ts +1 -0
- package/dist/components/show/index.js +2 -0
- package/dist/components/show/show.cjs +23 -0
- package/dist/components/show/show.d.cts +32 -0
- package/dist/components/show/show.d.ts +32 -0
- package/dist/components/show/show.js +23 -0
- package/dist/components/spinner/index.cjs +3 -0
- package/dist/components/spinner/index.d.cts +1 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +2 -0
- package/dist/components/spinner/spinner.cjs +65 -0
- package/dist/components/spinner/spinner.d.cts +25 -0
- package/dist/components/spinner/spinner.d.ts +25 -0
- package/dist/components/spinner/spinner.js +65 -0
- package/dist/components/split-button/button.cjs +41 -0
- package/dist/components/split-button/button.d.cts +18 -0
- package/dist/components/split-button/button.d.ts +18 -0
- package/dist/components/split-button/button.js +41 -0
- package/dist/components/split-button/index.d.cts +1 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/switch/index.cjs +11 -0
- package/dist/components/switch/index.d.cts +3 -0
- package/dist/components/switch/index.d.ts +3 -0
- package/dist/components/switch/index.js +4 -0
- package/dist/components/switch/parts.cjs +20 -0
- package/dist/components/switch/parts.d.cts +38 -0
- package/dist/components/switch/parts.d.ts +38 -0
- package/dist/components/switch/parts.js +20 -0
- package/dist/components/switch/primitives.cjs +20 -0
- package/dist/components/switch/primitives.d.cts +14 -0
- package/dist/components/switch/primitives.d.ts +14 -0
- package/dist/components/switch/primitives.js +16 -0
- package/dist/components/switch/switch-indicator.cjs +12 -0
- package/dist/components/switch/switch-indicator.d.cts +1 -0
- package/dist/components/switch/switch-indicator.d.ts +1 -0
- package/dist/components/switch/switch-indicator.js +12 -0
- package/dist/components/switch/switch.cjs +23 -0
- package/dist/components/switch/switch.d.cts +8 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +23 -0
- package/dist/components/table/index.cjs +16 -0
- package/dist/components/table/index.d.cts +3 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.js +4 -0
- package/dist/components/table/parts.cjs +25 -0
- package/dist/components/table/parts.d.cts +57 -0
- package/dist/components/table/parts.d.ts +57 -0
- package/dist/components/table/parts.js +25 -0
- package/dist/components/table/primitives.cjs +59 -0
- package/dist/components/table/primitives.d.cts +24 -0
- package/dist/components/table/primitives.d.ts +24 -0
- package/dist/components/table/primitives.js +50 -0
- package/dist/components/table/table.cjs +46 -0
- package/dist/components/table/table.d.cts +24 -0
- package/dist/components/table/table.d.ts +24 -0
- package/dist/components/table/table.js +46 -0
- package/dist/components/tabs/index.cjs +11 -0
- package/dist/components/tabs/index.d.cts +3 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.js +4 -0
- package/dist/components/tabs/parts.cjs +20 -0
- package/dist/components/tabs/parts.d.cts +37 -0
- package/dist/components/tabs/parts.d.ts +37 -0
- package/dist/components/tabs/parts.js +20 -0
- package/dist/components/tabs/primitives.cjs +20 -0
- package/dist/components/tabs/primitives.d.cts +14 -0
- package/dist/components/tabs/primitives.d.ts +14 -0
- package/dist/components/tabs/primitives.js +16 -0
- package/dist/components/tabs/tabs.cjs +29 -0
- package/dist/components/tabs/tabs.d.cts +26 -0
- package/dist/components/tabs/tabs.d.ts +26 -0
- package/dist/components/tabs/tabs.js +29 -0
- package/dist/components/tag/closable.cjs +30 -0
- package/dist/components/tag/closable.d.cts +9 -0
- package/dist/components/tag/closable.d.ts +9 -0
- package/dist/components/tag/closable.js +30 -0
- package/dist/components/tag/index.cjs +5 -0
- package/dist/components/tag/index.d.cts +2 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.js +3 -0
- package/dist/components/tag/primitives.cjs +10 -0
- package/dist/components/tag/primitives.d.cts +5 -0
- package/dist/components/tag/primitives.d.ts +5 -0
- package/dist/components/tag/primitives.js +10 -0
- package/dist/components/tag/tag.cjs +34 -0
- package/dist/components/tag/tag.d.cts +13 -0
- package/dist/components/tag/tag.d.ts +13 -0
- package/dist/components/tag/tag.js +34 -0
- package/dist/components/text/index.cjs +3 -0
- package/dist/components/text/index.d.cts +1 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +2 -0
- package/dist/components/text/text.cjs +38 -0
- package/dist/components/text/text.d.cts +26 -0
- package/dist/components/text/text.d.ts +26 -0
- package/dist/components/text/text.js +38 -0
- package/dist/components/theme/index.cjs +3 -0
- package/dist/components/theme/index.d.cts +1 -0
- package/dist/components/theme/index.d.ts +1 -0
- package/dist/components/theme/index.js +2 -0
- package/dist/components/theme/theme.cjs +16 -0
- package/dist/components/theme/theme.d.cts +16 -0
- package/dist/components/theme/theme.d.ts +16 -0
- package/dist/components/theme/theme.js +16 -0
- package/dist/components/toggle/index.cjs +6 -0
- package/dist/components/toggle/index.d.cts +2 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.js +3 -0
- package/dist/components/toggle/parts.cjs +17 -0
- package/dist/components/toggle/parts.d.cts +26 -0
- package/dist/components/toggle/parts.d.ts +26 -0
- package/dist/components/toggle/parts.js +17 -0
- package/dist/components/toggle/primitives.cjs +13 -0
- package/dist/components/toggle/primitives.d.cts +7 -0
- package/dist/components/toggle/primitives.d.ts +7 -0
- package/dist/components/toggle/primitives.js +12 -0
- package/dist/components/tooltip/index.cjs +12 -0
- package/dist/components/tooltip/index.d.cts +3 -0
- package/dist/components/tooltip/index.d.ts +3 -0
- package/dist/components/tooltip/index.js +4 -0
- package/dist/components/tooltip/parts.cjs +21 -0
- package/dist/components/tooltip/parts.d.cts +42 -0
- package/dist/components/tooltip/parts.d.ts +42 -0
- package/dist/components/tooltip/parts.js +21 -0
- package/dist/components/tooltip/primitives.cjs +22 -0
- package/dist/components/tooltip/primitives.d.cts +15 -0
- package/dist/components/tooltip/primitives.d.ts +15 -0
- package/dist/components/tooltip/primitives.js +17 -0
- package/dist/components/tooltip/renderer.cjs +11 -0
- package/dist/components/tooltip/renderer.d.cts +6 -0
- package/dist/components/tooltip/renderer.d.ts +6 -0
- package/dist/components/tooltip/renderer.js +11 -0
- package/dist/components/tooltip/tooltip.cjs +31 -0
- package/dist/components/tooltip/tooltip.d.cts +26 -0
- package/dist/components/tooltip/tooltip.d.ts +26 -0
- package/dist/components/tooltip/tooltip.js +31 -0
- package/dist/config/defineIcons.cjs +23 -0
- package/dist/config/defineIcons.d.cts +15 -0
- package/dist/config/defineIcons.d.ts +15 -0
- package/dist/config/defineIcons.js +23 -0
- package/dist/config/icons/checkbox.icons.cjs +97 -0
- package/dist/config/icons/checkbox.icons.d.cts +20 -0
- package/dist/config/icons/checkbox.icons.d.ts +20 -0
- package/dist/config/icons/checkbox.icons.js +94 -0
- package/dist/config/icons/default.cjs +56 -0
- package/dist/config/icons/default.d.cts +5 -0
- package/dist/config/icons/default.d.ts +5 -0
- package/dist/config/icons/default.js +56 -0
- package/dist/config/icons/pinned.icons.cjs +28 -0
- package/dist/config/icons/pinned.icons.d.cts +5 -0
- package/dist/config/icons/pinned.icons.d.ts +5 -0
- package/dist/config/icons/pinned.icons.js +25 -0
- package/dist/config/icons/sort.icons.cjs +20 -0
- package/dist/config/icons/sort.icons.d.cts +3 -0
- package/dist/config/icons/sort.icons.d.ts +3 -0
- package/dist/config/icons/sort.icons.js +19 -0
- package/dist/config/index.cjs +37 -0
- package/dist/config/index.d.cts +24 -0
- package/dist/config/index.d.ts +24 -0
- package/dist/config/index.js +35 -0
- package/dist/config/types.d.cts +56 -0
- package/dist/config/types.d.ts +56 -0
- package/dist/context/cerberus.cjs +33 -0
- package/dist/context/cerberus.d.cts +17 -0
- package/dist/context/cerberus.d.ts +17 -0
- package/dist/context/cerberus.js +32 -0
- package/dist/context/confirm-modal.cjs +149 -0
- package/dist/context/confirm-modal.d.cts +82 -0
- package/dist/context/confirm-modal.d.ts +82 -0
- package/dist/context/confirm-modal.js +148 -0
- package/dist/context/feature-flags.cjs +45 -0
- package/dist/context/feature-flags.d.cts +38 -0
- package/dist/context/feature-flags.d.ts +38 -0
- package/dist/context/feature-flags.js +44 -0
- package/dist/context/field.d.cts +34 -0
- package/dist/context/field.d.ts +34 -0
- package/dist/context/navMenu.cjs +43 -0
- package/dist/context/navMenu.d.cts +34 -0
- package/dist/context/navMenu.d.ts +34 -0
- package/dist/context/navMenu.js +42 -0
- package/dist/context/prompt-modal.cjs +206 -0
- package/dist/context/prompt-modal.d.cts +85 -0
- package/dist/context/prompt-modal.d.ts +85 -0
- package/dist/context/prompt-modal.js +205 -0
- package/dist/context/theme.cjs +40 -0
- package/dist/context/theme.d.cts +53 -0
- package/dist/context/theme.d.ts +53 -0
- package/dist/context/theme.js +39 -0
- package/dist/hooks/useModal.d.cts +36 -0
- package/dist/hooks/useModal.d.ts +36 -0
- package/dist/hooks/useRootColors.cjs +44 -0
- package/dist/hooks/useRootColors.d.cts +22 -0
- package/dist/hooks/useRootColors.d.ts +22 -0
- package/dist/hooks/useRootColors.js +44 -0
- package/dist/hooks/useTheme.cjs +64 -0
- package/dist/hooks/useTheme.d.cts +29 -0
- package/dist/hooks/useTheme.d.ts +29 -0
- package/dist/hooks/useTheme.js +62 -0
- package/dist/index.cjs +1220 -0
- package/dist/index.client.d.cts +2 -0
- package/dist/index.client.d.ts +2 -0
- package/dist/index.client.js +5 -0
- package/dist/index.d.cts +60 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +136 -0
- package/dist/panda.buildinfo.json +376 -0
- package/dist/system/factory.cjs +20 -0
- package/dist/system/factory.d.cts +7 -0
- package/dist/system/factory.d.ts +7 -0
- package/dist/system/factory.js +20 -0
- package/dist/system/index.cjs +44 -0
- package/dist/system/index.d.cts +38 -0
- package/dist/system/index.d.ts +38 -0
- package/dist/system/index.js +42 -0
- package/dist/system/primitive-factory.cjs +107 -0
- package/dist/system/primitive-factory.d.cts +48 -0
- package/dist/system/primitive-factory.d.ts +48 -0
- package/dist/system/primitive-factory.js +107 -0
- package/dist/system/types.d.cts +38 -0
- package/dist/system/types.d.ts +38 -0
- package/dist/types.d.cts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/utils/index.cjs +46 -0
- package/dist/utils/index.d.cts +25 -0
- package/dist/utils/index.d.ts +25 -0
- package/dist/utils/index.js +42 -0
- package/dist/utils/localStorage.cjs +26 -0
- package/dist/utils/localStorage.d.cts +13 -0
- package/dist/utils/localStorage.d.ts +13 -0
- package/dist/utils/localStorage.js +25 -0
- package/package.json +97 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FileUploadFileError } from '@ark-ui/react/file-upload';
|
|
2
|
+
type FileErrorTypes = {
|
|
3
|
+
tooMany?: string;
|
|
4
|
+
invalidType?: string;
|
|
5
|
+
tooLarge?: string;
|
|
6
|
+
tooSmall?: string;
|
|
7
|
+
invalid?: string;
|
|
8
|
+
exists?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Helper function to create error messages for file upload errors. Returns a
|
|
12
|
+
* record of FileUploadFileError codes and their corresponding error messages.
|
|
13
|
+
* @returns Record<FileUploadFileError, string>
|
|
14
|
+
*/
|
|
15
|
+
export declare function createErrorMessages(options: FileErrorTypes): Record<FileUploadFileError, string>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/file-upload/helpers.ts
|
|
3
|
+
/**
|
|
4
|
+
* Helper function to create error messages for file upload errors. Returns a
|
|
5
|
+
* record of FileUploadFileError codes and their corresponding error messages.
|
|
6
|
+
* @returns Record<FileUploadFileError, string>
|
|
7
|
+
*/
|
|
8
|
+
function createErrorMessages(options) {
|
|
9
|
+
return {
|
|
10
|
+
TOO_MANY_FILES: options.tooMany || "📊 Too many files selected",
|
|
11
|
+
FILE_INVALID_TYPE: options.invalidType || "🚫 Invalid file type",
|
|
12
|
+
FILE_TOO_LARGE: options.tooLarge || "📏 File too large",
|
|
13
|
+
FILE_TOO_SMALL: options.tooSmall || "📐 File too small",
|
|
14
|
+
FILE_INVALID: options.invalid || "⚠️ Invalid file",
|
|
15
|
+
FILE_EXISTS: options.exists || "🔄 File already exists"
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { createErrorMessages };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
const require_cerberus = require("../../context/cerberus.cjs");
|
|
4
|
+
const require_button = require("../icon-button/button.cjs");
|
|
5
|
+
const require_parts = require("./parts.cjs");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
//#region src/components/file-upload/img-preview.tsx
|
|
8
|
+
function ImgPreview(props) {
|
|
9
|
+
const { icons } = require_cerberus.useCerberusContext();
|
|
10
|
+
const { close: Icon } = icons;
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemGroup, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.Context, {
|
|
12
|
+
...props,
|
|
13
|
+
children: (ctx) => ctx.acceptedFiles.map((file) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_parts.FileUploadParts.Item, {
|
|
14
|
+
file,
|
|
15
|
+
className: "file-item",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemPreview, {
|
|
18
|
+
type: "image/*",
|
|
19
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemPreviewImage, {})
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemName, {}),
|
|
22
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemSizeText, {}),
|
|
23
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_parts.FileUploadParts.ItemDeleteTrigger, {
|
|
24
|
+
asChild: true,
|
|
25
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.IconButton, {
|
|
26
|
+
clipboard: true,
|
|
27
|
+
size: "sm",
|
|
28
|
+
usage: "ghost",
|
|
29
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {})
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}, file.name))
|
|
34
|
+
}) });
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.ImgPreview = ImgPreview;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useCerberusContext } from "../../context/cerberus.js";
|
|
4
|
+
import { IconButton } from "../icon-button/button.js";
|
|
5
|
+
import { FileUploadParts } from "./parts.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/file-upload/img-preview.tsx
|
|
8
|
+
function ImgPreview(props) {
|
|
9
|
+
const { icons } = useCerberusContext();
|
|
10
|
+
const { close: Icon } = icons;
|
|
11
|
+
return /* @__PURE__ */ jsx(FileUploadParts.ItemGroup, { children: /* @__PURE__ */ jsx(FileUploadParts.Context, {
|
|
12
|
+
...props,
|
|
13
|
+
children: (ctx) => ctx.acceptedFiles.map((file) => /* @__PURE__ */ jsxs(FileUploadParts.Item, {
|
|
14
|
+
file,
|
|
15
|
+
className: "file-item",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx(FileUploadParts.ItemPreview, {
|
|
18
|
+
type: "image/*",
|
|
19
|
+
children: /* @__PURE__ */ jsx(FileUploadParts.ItemPreviewImage, {})
|
|
20
|
+
}),
|
|
21
|
+
/* @__PURE__ */ jsx(FileUploadParts.ItemName, {}),
|
|
22
|
+
/* @__PURE__ */ jsx(FileUploadParts.ItemSizeText, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(FileUploadParts.ItemDeleteTrigger, {
|
|
24
|
+
asChild: true,
|
|
25
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
26
|
+
clipboard: true,
|
|
27
|
+
size: "sm",
|
|
28
|
+
usage: "ghost",
|
|
29
|
+
children: /* @__PURE__ */ jsx(Icon, {})
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}, file.name))
|
|
34
|
+
}) });
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ImgPreview };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_primitives = require("./primitives.cjs");
|
|
3
|
+
const require_parts = require("./parts.cjs");
|
|
4
|
+
const require_file_status = require("./file-status.cjs");
|
|
5
|
+
const require_img_preview = require("./img-preview.cjs");
|
|
6
|
+
const require_file_uploader = require("./file-uploader.cjs");
|
|
7
|
+
const require_helpers = require("./helpers.cjs");
|
|
8
|
+
exports.FileStatus = require_file_status.FileStatus;
|
|
9
|
+
exports.FileUploadClearTrigger = require_primitives.FileUploadClearTrigger;
|
|
10
|
+
exports.FileUploadContent = require_primitives.FileUploadContent;
|
|
11
|
+
exports.FileUploadContext = require_primitives.FileUploadContext;
|
|
12
|
+
exports.FileUploadDescription = require_primitives.FileUploadDescription;
|
|
13
|
+
exports.FileUploadDropzone = require_primitives.FileUploadDropzone;
|
|
14
|
+
exports.FileUploadHeading = require_primitives.FileUploadHeading;
|
|
15
|
+
exports.FileUploadHiddenInput = require_primitives.FileUploadHiddenInput;
|
|
16
|
+
exports.FileUploadIcon = require_primitives.FileUploadIcon;
|
|
17
|
+
exports.FileUploadItem = require_primitives.FileUploadItem;
|
|
18
|
+
exports.FileUploadItemDeleteTrigger = require_primitives.FileUploadItemDeleteTrigger;
|
|
19
|
+
exports.FileUploadItemGroup = require_primitives.FileUploadItemGroup;
|
|
20
|
+
exports.FileUploadItemName = require_primitives.FileUploadItemName;
|
|
21
|
+
exports.FileUploadItemPreview = require_primitives.FileUploadItemPreview;
|
|
22
|
+
exports.FileUploadItemPreviewImage = require_primitives.FileUploadItemPreviewImage;
|
|
23
|
+
exports.FileUploadItemSizeText = require_primitives.FileUploadItemSizeText;
|
|
24
|
+
exports.FileUploadLabel = require_primitives.FileUploadLabel;
|
|
25
|
+
exports.FileUploadParts = require_parts.FileUploadParts;
|
|
26
|
+
exports.FileUploadRoot = require_primitives.FileUploadRoot;
|
|
27
|
+
exports.FileUploadTrigger = require_primitives.FileUploadTrigger;
|
|
28
|
+
exports.FileUploader = require_file_uploader.FileUploader;
|
|
29
|
+
exports.ImgPreview = require_img_preview.ImgPreview;
|
|
30
|
+
exports.createErrorMessages = require_helpers.createErrorMessages;
|
|
31
|
+
exports.processStatus = require_file_status.processStatus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileUploadClearTrigger, FileUploadContent, FileUploadContext, FileUploadDescription, FileUploadDropzone, FileUploadHeading, FileUploadHiddenInput, FileUploadIcon, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadTrigger } from "./primitives.js";
|
|
2
|
+
import { FileUploadParts } from "./parts.js";
|
|
3
|
+
import { FileStatus, processStatus } from "./file-status.js";
|
|
4
|
+
import { ImgPreview } from "./img-preview.js";
|
|
5
|
+
import { FileUploader } from "./file-uploader.js";
|
|
6
|
+
import { createErrorMessages } from "./helpers.js";
|
|
7
|
+
export { FileStatus, FileUploadClearTrigger, FileUploadContent, FileUploadContext, FileUploadDescription, FileUploadDropzone, FileUploadHeading, FileUploadHiddenInput, FileUploadIcon, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadParts, FileUploadRoot, FileUploadTrigger, FileUploader, ImgPreview, createErrorMessages, processStatus };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_primitives = require("./primitives.cjs");
|
|
2
|
+
//#region src/components/file-upload/parts.tsx
|
|
3
|
+
/**
|
|
4
|
+
* An Object containing the parts of the FileUploader component. For users that
|
|
5
|
+
* prefer Object component syntax.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
*
|
|
9
|
+
* When using object component syntax, you import the uploaderParts object and
|
|
10
|
+
* the entire family of components vs. only what you use.
|
|
11
|
+
*/
|
|
12
|
+
var FileUploadParts = {
|
|
13
|
+
Context: require_primitives.FileUploadContext,
|
|
14
|
+
Root: require_primitives.FileUploadRoot,
|
|
15
|
+
Label: require_primitives.FileUploadLabel,
|
|
16
|
+
Dropzone: require_primitives.FileUploadDropzone,
|
|
17
|
+
Trigger: require_primitives.FileUploadTrigger,
|
|
18
|
+
ClearTrigger: require_primitives.FileUploadClearTrigger,
|
|
19
|
+
ItemGroup: require_primitives.FileUploadItemGroup,
|
|
20
|
+
Item: require_primitives.FileUploadItem,
|
|
21
|
+
ItemPreview: require_primitives.FileUploadItemPreview,
|
|
22
|
+
ItemPreviewImage: require_primitives.FileUploadItemPreviewImage,
|
|
23
|
+
ItemName: require_primitives.FileUploadItemName,
|
|
24
|
+
ItemSizeText: require_primitives.FileUploadItemSizeText,
|
|
25
|
+
ItemDeleteTrigger: require_primitives.FileUploadItemDeleteTrigger,
|
|
26
|
+
HiddenInput: require_primitives.FileUploadHiddenInput,
|
|
27
|
+
Content: require_primitives.FileUploadContent,
|
|
28
|
+
Icon: require_primitives.FileUploadIcon,
|
|
29
|
+
Heading: require_primitives.FileUploadHeading,
|
|
30
|
+
Description: require_primitives.FileUploadDescription
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
exports.FileUploadParts = FileUploadParts;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This module contains the parts of the FileUploadParts component.
|
|
4
|
+
* @module 'fileUpload/parts'
|
|
5
|
+
*/
|
|
6
|
+
interface FileUploadPartsValue {
|
|
7
|
+
/**
|
|
8
|
+
* The container of the uploader.
|
|
9
|
+
*/
|
|
10
|
+
Root: ElementType;
|
|
11
|
+
/**
|
|
12
|
+
* The label of the uploader.
|
|
13
|
+
*/
|
|
14
|
+
Label: ElementType;
|
|
15
|
+
/**
|
|
16
|
+
* The dropzone of the uploader.
|
|
17
|
+
*/
|
|
18
|
+
Dropzone: ElementType;
|
|
19
|
+
/**
|
|
20
|
+
* The trigger of the uploader.
|
|
21
|
+
*/
|
|
22
|
+
Trigger: ElementType;
|
|
23
|
+
/**
|
|
24
|
+
* The clear trigger of the uploader.
|
|
25
|
+
*/
|
|
26
|
+
ClearTrigger: ElementType;
|
|
27
|
+
/**
|
|
28
|
+
* The item group of the uploader.
|
|
29
|
+
*/
|
|
30
|
+
ItemGroup: ElementType;
|
|
31
|
+
/**
|
|
32
|
+
* The item of the uploader.
|
|
33
|
+
*/
|
|
34
|
+
Item: ElementType;
|
|
35
|
+
/**
|
|
36
|
+
* The item preview of the uploader.
|
|
37
|
+
*/
|
|
38
|
+
ItemPreview: ElementType;
|
|
39
|
+
/**
|
|
40
|
+
* The item preview image of the uploader.
|
|
41
|
+
*/
|
|
42
|
+
ItemPreviewImage: ElementType;
|
|
43
|
+
/**
|
|
44
|
+
* The item name of the uploader.
|
|
45
|
+
*/
|
|
46
|
+
ItemName: ElementType;
|
|
47
|
+
/**
|
|
48
|
+
* The item size text of the uploader.
|
|
49
|
+
*/
|
|
50
|
+
ItemSizeText: ElementType;
|
|
51
|
+
/**
|
|
52
|
+
* The item delete trigger of the uploader.
|
|
53
|
+
*/
|
|
54
|
+
ItemDeleteTrigger: ElementType;
|
|
55
|
+
/**
|
|
56
|
+
* The hidden input of the uploader.
|
|
57
|
+
*/
|
|
58
|
+
HiddenInput: ElementType;
|
|
59
|
+
/**
|
|
60
|
+
* The context of the uploader.
|
|
61
|
+
*/
|
|
62
|
+
Context: ElementType;
|
|
63
|
+
/**
|
|
64
|
+
* The content container of the dropzone.
|
|
65
|
+
*/
|
|
66
|
+
Content: ElementType;
|
|
67
|
+
/**
|
|
68
|
+
* The icon of the uploader.
|
|
69
|
+
*/
|
|
70
|
+
Icon: ElementType;
|
|
71
|
+
/**
|
|
72
|
+
* The heading of the uploader.
|
|
73
|
+
*/
|
|
74
|
+
Heading: ElementType;
|
|
75
|
+
/**
|
|
76
|
+
* The description of the uploader.
|
|
77
|
+
*/
|
|
78
|
+
Description: ElementType;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* An Object containing the parts of the FileUploader component. For users that
|
|
82
|
+
* prefer Object component syntax.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
*
|
|
86
|
+
* When using object component syntax, you import the uploaderParts object and
|
|
87
|
+
* the entire family of components vs. only what you use.
|
|
88
|
+
*/
|
|
89
|
+
export declare const FileUploadParts: FileUploadPartsValue;
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* This module contains the parts of the FileUploadParts component.
|
|
4
|
+
* @module 'fileUpload/parts'
|
|
5
|
+
*/
|
|
6
|
+
interface FileUploadPartsValue {
|
|
7
|
+
/**
|
|
8
|
+
* The container of the uploader.
|
|
9
|
+
*/
|
|
10
|
+
Root: ElementType;
|
|
11
|
+
/**
|
|
12
|
+
* The label of the uploader.
|
|
13
|
+
*/
|
|
14
|
+
Label: ElementType;
|
|
15
|
+
/**
|
|
16
|
+
* The dropzone of the uploader.
|
|
17
|
+
*/
|
|
18
|
+
Dropzone: ElementType;
|
|
19
|
+
/**
|
|
20
|
+
* The trigger of the uploader.
|
|
21
|
+
*/
|
|
22
|
+
Trigger: ElementType;
|
|
23
|
+
/**
|
|
24
|
+
* The clear trigger of the uploader.
|
|
25
|
+
*/
|
|
26
|
+
ClearTrigger: ElementType;
|
|
27
|
+
/**
|
|
28
|
+
* The item group of the uploader.
|
|
29
|
+
*/
|
|
30
|
+
ItemGroup: ElementType;
|
|
31
|
+
/**
|
|
32
|
+
* The item of the uploader.
|
|
33
|
+
*/
|
|
34
|
+
Item: ElementType;
|
|
35
|
+
/**
|
|
36
|
+
* The item preview of the uploader.
|
|
37
|
+
*/
|
|
38
|
+
ItemPreview: ElementType;
|
|
39
|
+
/**
|
|
40
|
+
* The item preview image of the uploader.
|
|
41
|
+
*/
|
|
42
|
+
ItemPreviewImage: ElementType;
|
|
43
|
+
/**
|
|
44
|
+
* The item name of the uploader.
|
|
45
|
+
*/
|
|
46
|
+
ItemName: ElementType;
|
|
47
|
+
/**
|
|
48
|
+
* The item size text of the uploader.
|
|
49
|
+
*/
|
|
50
|
+
ItemSizeText: ElementType;
|
|
51
|
+
/**
|
|
52
|
+
* The item delete trigger of the uploader.
|
|
53
|
+
*/
|
|
54
|
+
ItemDeleteTrigger: ElementType;
|
|
55
|
+
/**
|
|
56
|
+
* The hidden input of the uploader.
|
|
57
|
+
*/
|
|
58
|
+
HiddenInput: ElementType;
|
|
59
|
+
/**
|
|
60
|
+
* The context of the uploader.
|
|
61
|
+
*/
|
|
62
|
+
Context: ElementType;
|
|
63
|
+
/**
|
|
64
|
+
* The content container of the dropzone.
|
|
65
|
+
*/
|
|
66
|
+
Content: ElementType;
|
|
67
|
+
/**
|
|
68
|
+
* The icon of the uploader.
|
|
69
|
+
*/
|
|
70
|
+
Icon: ElementType;
|
|
71
|
+
/**
|
|
72
|
+
* The heading of the uploader.
|
|
73
|
+
*/
|
|
74
|
+
Heading: ElementType;
|
|
75
|
+
/**
|
|
76
|
+
* The description of the uploader.
|
|
77
|
+
*/
|
|
78
|
+
Description: ElementType;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* An Object containing the parts of the FileUploader component. For users that
|
|
82
|
+
* prefer Object component syntax.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
*
|
|
86
|
+
* When using object component syntax, you import the uploaderParts object and
|
|
87
|
+
* the entire family of components vs. only what you use.
|
|
88
|
+
*/
|
|
89
|
+
export declare const FileUploadParts: FileUploadPartsValue;
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FileUploadClearTrigger, FileUploadContent, FileUploadContext, FileUploadDescription, FileUploadDropzone, FileUploadHeading, FileUploadHiddenInput, FileUploadIcon, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadTrigger } from "./primitives.js";
|
|
2
|
+
//#region src/components/file-upload/parts.tsx
|
|
3
|
+
/**
|
|
4
|
+
* An Object containing the parts of the FileUploader component. For users that
|
|
5
|
+
* prefer Object component syntax.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
*
|
|
9
|
+
* When using object component syntax, you import the uploaderParts object and
|
|
10
|
+
* the entire family of components vs. only what you use.
|
|
11
|
+
*/
|
|
12
|
+
var FileUploadParts = {
|
|
13
|
+
Context: FileUploadContext,
|
|
14
|
+
Root: FileUploadRoot,
|
|
15
|
+
Label: FileUploadLabel,
|
|
16
|
+
Dropzone: FileUploadDropzone,
|
|
17
|
+
Trigger: FileUploadTrigger,
|
|
18
|
+
ClearTrigger: FileUploadClearTrigger,
|
|
19
|
+
ItemGroup: FileUploadItemGroup,
|
|
20
|
+
Item: FileUploadItem,
|
|
21
|
+
ItemPreview: FileUploadItemPreview,
|
|
22
|
+
ItemPreviewImage: FileUploadItemPreviewImage,
|
|
23
|
+
ItemName: FileUploadItemName,
|
|
24
|
+
ItemSizeText: FileUploadItemSizeText,
|
|
25
|
+
ItemDeleteTrigger: FileUploadItemDeleteTrigger,
|
|
26
|
+
HiddenInput: FileUploadHiddenInput,
|
|
27
|
+
Content: FileUploadContent,
|
|
28
|
+
Icon: FileUploadIcon,
|
|
29
|
+
Heading: FileUploadHeading,
|
|
30
|
+
Description: FileUploadDescription
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { FileUploadParts };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_index = require("../../system/index.cjs");
|
|
2
|
+
let styled_system_recipes = require("styled-system/recipes");
|
|
3
|
+
let _ark_ui_react_file_upload = require("@ark-ui/react/file-upload");
|
|
4
|
+
//#region src/components/file-upload/primitives.ts
|
|
5
|
+
var { withSlotRecipe, withNoRecipe } = require_index.createCerberusPrimitive(styled_system_recipes.fileUploader);
|
|
6
|
+
var FileUploadRoot = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.Root, "root");
|
|
7
|
+
var FileUploadDropzone = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.Dropzone, "dropzone");
|
|
8
|
+
var FileUploadLabel = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.Label, "label");
|
|
9
|
+
var FileUploadTrigger = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.Trigger, "trigger");
|
|
10
|
+
var FileUploadClearTrigger = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ClearTrigger, "clearTrigger");
|
|
11
|
+
var FileUploadItemGroup = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemGroup, "itemGroup");
|
|
12
|
+
var FileUploadItem = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.Item, "item");
|
|
13
|
+
var FileUploadItemPreview = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemPreview, "itemPreview");
|
|
14
|
+
var FileUploadItemPreviewImage = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemPreviewImage, "itemPreviewImage");
|
|
15
|
+
var FileUploadItemName = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemName, "itemName");
|
|
16
|
+
var FileUploadItemSizeText = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemSizeText, "itemSizeText");
|
|
17
|
+
var FileUploadItemDeleteTrigger = withSlotRecipe(_ark_ui_react_file_upload.FileUpload.ItemDeleteTrigger, "itemDeleteTrigger");
|
|
18
|
+
var FileUploadHiddenInput = withNoRecipe(_ark_ui_react_file_upload.FileUpload.HiddenInput);
|
|
19
|
+
var FileUploadContext = withNoRecipe(_ark_ui_react_file_upload.FileUpload.Context);
|
|
20
|
+
var FileUploadContent = withSlotRecipe("div", "label");
|
|
21
|
+
var FileUploadIcon = withSlotRecipe("div", "icon");
|
|
22
|
+
var FileUploadHeading = withSlotRecipe("p", "heading");
|
|
23
|
+
var FileUploadDescription = withSlotRecipe("p", "description");
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.FileUploadClearTrigger = FileUploadClearTrigger;
|
|
26
|
+
exports.FileUploadContent = FileUploadContent;
|
|
27
|
+
exports.FileUploadContext = FileUploadContext;
|
|
28
|
+
exports.FileUploadDescription = FileUploadDescription;
|
|
29
|
+
exports.FileUploadDropzone = FileUploadDropzone;
|
|
30
|
+
exports.FileUploadHeading = FileUploadHeading;
|
|
31
|
+
exports.FileUploadHiddenInput = FileUploadHiddenInput;
|
|
32
|
+
exports.FileUploadIcon = FileUploadIcon;
|
|
33
|
+
exports.FileUploadItem = FileUploadItem;
|
|
34
|
+
exports.FileUploadItemDeleteTrigger = FileUploadItemDeleteTrigger;
|
|
35
|
+
exports.FileUploadItemGroup = FileUploadItemGroup;
|
|
36
|
+
exports.FileUploadItemName = FileUploadItemName;
|
|
37
|
+
exports.FileUploadItemPreview = FileUploadItemPreview;
|
|
38
|
+
exports.FileUploadItemPreviewImage = FileUploadItemPreviewImage;
|
|
39
|
+
exports.FileUploadItemSizeText = FileUploadItemSizeText;
|
|
40
|
+
exports.FileUploadLabel = FileUploadLabel;
|
|
41
|
+
exports.FileUploadRoot = FileUploadRoot;
|
|
42
|
+
exports.FileUploadTrigger = FileUploadTrigger;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FileUpload, FileUploadContextProps as ArkFileUploadContextProps, FileUploadRootProps as ArkFileUploadRootProps, FileUploadLabelProps as ArkFileUploadLabelProps, FileUploadDropzoneProps as ArkFileUploadDropzoneProps, FileUploadTriggerProps as ArkFileUploadTriggerProps, FileUploadClearTriggerProps as ArkFileUploadClearTriggerProps, FileUploadItemGroupProps as ArkFileUploadItemGroupProps, FileUploadItemProps as ArkFileUploadItemProps, FileUploadItemPreviewProps as ArkFileUploadItemPreviewProps, FileUploadItemPreviewImageProps as ArkFileUploadItemPreviewImageProps, FileUploadItemNameProps as ArkFileUploadItemNameProps, FileUploadItemSizeTextProps as ArkFileUploadItemSizeTextProps, FileUploadItemDeleteTriggerProps as ArkFileUploadItemDeleteTriggerProps, FileUploadHiddenInputProps as ArkFileUploadHiddenInputProps } from '@ark-ui/react/file-upload';
|
|
2
|
+
import { FileUploaderVariantProps } from 'styled-system/recipes';
|
|
3
|
+
import { CerberusPrimitiveProps } from '../../system/index';
|
|
4
|
+
import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
5
|
+
export type FileUploadRootProps = CerberusPrimitiveProps<ArkFileUploadRootProps & FileUploaderVariantProps>;
|
|
6
|
+
export declare const FileUploadRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.RootProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
7
|
+
export type FileUploadDropzoneProps = CerberusPrimitiveProps<ArkFileUploadDropzoneProps>;
|
|
8
|
+
export declare const FileUploadDropzone: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.DropzoneProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
9
|
+
export type FileUploadLabelProps = CerberusPrimitiveProps<ArkFileUploadLabelProps>;
|
|
10
|
+
export declare const FileUploadLabel: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.LabelProps & RefAttributes<HTMLLabelElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
11
|
+
export type FileUploadTriggerProps = CerberusPrimitiveProps<ArkFileUploadTriggerProps>;
|
|
12
|
+
export declare const FileUploadTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.TriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
13
|
+
export type FileUploadClearTriggerProps = CerberusPrimitiveProps<ArkFileUploadClearTriggerProps>;
|
|
14
|
+
export declare const FileUploadClearTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ClearTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
15
|
+
export type FileUploadItemGroupProps = CerberusPrimitiveProps<ArkFileUploadItemGroupProps>;
|
|
16
|
+
export declare const FileUploadItemGroup: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemGroupProps & RefAttributes<HTMLUListElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
17
|
+
export type FileUploadItemProps = CerberusPrimitiveProps<ArkFileUploadItemProps>;
|
|
18
|
+
export declare const FileUploadItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemProps & RefAttributes<HTMLLIElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
19
|
+
export type FileUploadItemPreviewProps = CerberusPrimitiveProps<ArkFileUploadItemPreviewProps>;
|
|
20
|
+
export declare const FileUploadItemPreview: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemPreviewProps & RefAttributes<HTMLImageElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
21
|
+
export type FileUploadItemPreviewImageProps = CerberusPrimitiveProps<ArkFileUploadItemPreviewImageProps>;
|
|
22
|
+
export declare const FileUploadItemPreviewImage: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemPreviewImageProps & RefAttributes<HTMLImageElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
23
|
+
export type FileUploadItemNameProps = CerberusPrimitiveProps<ArkFileUploadItemNameProps>;
|
|
24
|
+
export declare const FileUploadItemName: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemNameProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
25
|
+
export type FileUploadItemSizeTextProps = CerberusPrimitiveProps<ArkFileUploadItemSizeTextProps>;
|
|
26
|
+
export declare const FileUploadItemSizeText: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemSizeTextProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
27
|
+
export type FileUploadItemDeleteTriggerProps = CerberusPrimitiveProps<ArkFileUploadItemDeleteTriggerProps>;
|
|
28
|
+
export declare const FileUploadItemDeleteTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemDeleteTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
29
|
+
export type FileUploadHiddenInputProps = CerberusPrimitiveProps<ArkFileUploadHiddenInputProps>;
|
|
30
|
+
export declare const FileUploadHiddenInput: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.HiddenInputProps & RefAttributes<HTMLInputElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
31
|
+
export type FileUploadContextProps = CerberusPrimitiveProps<ArkFileUploadContextProps>;
|
|
32
|
+
export declare const FileUploadContext: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ContextProps>, "ref"> & RefAttributes<HTMLElement>>;
|
|
33
|
+
export type FileUploadContentProps = CerberusPrimitiveProps<HTMLDivElement>;
|
|
34
|
+
export declare const FileUploadContent: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
35
|
+
export type FileUploadIconProps = CerberusPrimitiveProps<HTMLDivElement>;
|
|
36
|
+
export declare const FileUploadIcon: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
37
|
+
export type FileUploadHeadingProps = CerberusPrimitiveProps<HTMLParagraphElement>;
|
|
38
|
+
export declare const FileUploadHeading: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
39
|
+
export type FileUploadDescriptionProps = CerberusPrimitiveProps<HTMLParagraphElement>;
|
|
40
|
+
export declare const FileUploadDescription: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
41
|
+
export type { UseFileUploadContext } from '@ark-ui/react';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FileUpload, FileUploadContextProps as ArkFileUploadContextProps, FileUploadRootProps as ArkFileUploadRootProps, FileUploadLabelProps as ArkFileUploadLabelProps, FileUploadDropzoneProps as ArkFileUploadDropzoneProps, FileUploadTriggerProps as ArkFileUploadTriggerProps, FileUploadClearTriggerProps as ArkFileUploadClearTriggerProps, FileUploadItemGroupProps as ArkFileUploadItemGroupProps, FileUploadItemProps as ArkFileUploadItemProps, FileUploadItemPreviewProps as ArkFileUploadItemPreviewProps, FileUploadItemPreviewImageProps as ArkFileUploadItemPreviewImageProps, FileUploadItemNameProps as ArkFileUploadItemNameProps, FileUploadItemSizeTextProps as ArkFileUploadItemSizeTextProps, FileUploadItemDeleteTriggerProps as ArkFileUploadItemDeleteTriggerProps, FileUploadHiddenInputProps as ArkFileUploadHiddenInputProps } from '@ark-ui/react/file-upload';
|
|
2
|
+
import { FileUploaderVariantProps } from 'styled-system/recipes';
|
|
3
|
+
import { CerberusPrimitiveProps } from '../../system/index';
|
|
4
|
+
import { ForwardRefExoticComponent, RefAttributes, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
5
|
+
export type FileUploadRootProps = CerberusPrimitiveProps<ArkFileUploadRootProps & FileUploaderVariantProps>;
|
|
6
|
+
export declare const FileUploadRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.RootProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
7
|
+
export type FileUploadDropzoneProps = CerberusPrimitiveProps<ArkFileUploadDropzoneProps>;
|
|
8
|
+
export declare const FileUploadDropzone: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.DropzoneProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
9
|
+
export type FileUploadLabelProps = CerberusPrimitiveProps<ArkFileUploadLabelProps>;
|
|
10
|
+
export declare const FileUploadLabel: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.LabelProps & RefAttributes<HTMLLabelElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
11
|
+
export type FileUploadTriggerProps = CerberusPrimitiveProps<ArkFileUploadTriggerProps>;
|
|
12
|
+
export declare const FileUploadTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.TriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
13
|
+
export type FileUploadClearTriggerProps = CerberusPrimitiveProps<ArkFileUploadClearTriggerProps>;
|
|
14
|
+
export declare const FileUploadClearTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ClearTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
15
|
+
export type FileUploadItemGroupProps = CerberusPrimitiveProps<ArkFileUploadItemGroupProps>;
|
|
16
|
+
export declare const FileUploadItemGroup: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemGroupProps & RefAttributes<HTMLUListElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
17
|
+
export type FileUploadItemProps = CerberusPrimitiveProps<ArkFileUploadItemProps>;
|
|
18
|
+
export declare const FileUploadItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemProps & RefAttributes<HTMLLIElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
19
|
+
export type FileUploadItemPreviewProps = CerberusPrimitiveProps<ArkFileUploadItemPreviewProps>;
|
|
20
|
+
export declare const FileUploadItemPreview: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemPreviewProps & RefAttributes<HTMLImageElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
21
|
+
export type FileUploadItemPreviewImageProps = CerberusPrimitiveProps<ArkFileUploadItemPreviewImageProps>;
|
|
22
|
+
export declare const FileUploadItemPreviewImage: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemPreviewImageProps & RefAttributes<HTMLImageElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
23
|
+
export type FileUploadItemNameProps = CerberusPrimitiveProps<ArkFileUploadItemNameProps>;
|
|
24
|
+
export declare const FileUploadItemName: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemNameProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
25
|
+
export type FileUploadItemSizeTextProps = CerberusPrimitiveProps<ArkFileUploadItemSizeTextProps>;
|
|
26
|
+
export declare const FileUploadItemSizeText: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemSizeTextProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
27
|
+
export type FileUploadItemDeleteTriggerProps = CerberusPrimitiveProps<ArkFileUploadItemDeleteTriggerProps>;
|
|
28
|
+
export declare const FileUploadItemDeleteTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ItemDeleteTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
29
|
+
export type FileUploadHiddenInputProps = CerberusPrimitiveProps<ArkFileUploadHiddenInputProps>;
|
|
30
|
+
export declare const FileUploadHiddenInput: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.HiddenInputProps & RefAttributes<HTMLInputElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
31
|
+
export type FileUploadContextProps = CerberusPrimitiveProps<ArkFileUploadContextProps>;
|
|
32
|
+
export declare const FileUploadContext: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<FileUpload.ContextProps>, "ref"> & RefAttributes<HTMLElement>>;
|
|
33
|
+
export type FileUploadContentProps = CerberusPrimitiveProps<HTMLDivElement>;
|
|
34
|
+
export declare const FileUploadContent: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
35
|
+
export type FileUploadIconProps = CerberusPrimitiveProps<HTMLDivElement>;
|
|
36
|
+
export declare const FileUploadIcon: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
37
|
+
export type FileUploadHeadingProps = CerberusPrimitiveProps<HTMLParagraphElement>;
|
|
38
|
+
export declare const FileUploadHeading: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
39
|
+
export type FileUploadDescriptionProps = CerberusPrimitiveProps<HTMLParagraphElement>;
|
|
40
|
+
export declare const FileUploadDescription: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps< DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>>, "ref"> & RefAttributes<HTMLElement>>;
|
|
41
|
+
export type { UseFileUploadContext } from '@ark-ui/react';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createCerberusPrimitive } from "../../system/index.js";
|
|
2
|
+
import { fileUploader } from "styled-system/recipes";
|
|
3
|
+
import { FileUpload } from "@ark-ui/react/file-upload";
|
|
4
|
+
//#region src/components/file-upload/primitives.ts
|
|
5
|
+
var { withSlotRecipe, withNoRecipe } = createCerberusPrimitive(fileUploader);
|
|
6
|
+
var FileUploadRoot = withSlotRecipe(FileUpload.Root, "root");
|
|
7
|
+
var FileUploadDropzone = withSlotRecipe(FileUpload.Dropzone, "dropzone");
|
|
8
|
+
var FileUploadLabel = withSlotRecipe(FileUpload.Label, "label");
|
|
9
|
+
var FileUploadTrigger = withSlotRecipe(FileUpload.Trigger, "trigger");
|
|
10
|
+
var FileUploadClearTrigger = withSlotRecipe(FileUpload.ClearTrigger, "clearTrigger");
|
|
11
|
+
var FileUploadItemGroup = withSlotRecipe(FileUpload.ItemGroup, "itemGroup");
|
|
12
|
+
var FileUploadItem = withSlotRecipe(FileUpload.Item, "item");
|
|
13
|
+
var FileUploadItemPreview = withSlotRecipe(FileUpload.ItemPreview, "itemPreview");
|
|
14
|
+
var FileUploadItemPreviewImage = withSlotRecipe(FileUpload.ItemPreviewImage, "itemPreviewImage");
|
|
15
|
+
var FileUploadItemName = withSlotRecipe(FileUpload.ItemName, "itemName");
|
|
16
|
+
var FileUploadItemSizeText = withSlotRecipe(FileUpload.ItemSizeText, "itemSizeText");
|
|
17
|
+
var FileUploadItemDeleteTrigger = withSlotRecipe(FileUpload.ItemDeleteTrigger, "itemDeleteTrigger");
|
|
18
|
+
var FileUploadHiddenInput = withNoRecipe(FileUpload.HiddenInput);
|
|
19
|
+
var FileUploadContext = withNoRecipe(FileUpload.Context);
|
|
20
|
+
var FileUploadContent = withSlotRecipe("div", "label");
|
|
21
|
+
var FileUploadIcon = withSlotRecipe("div", "icon");
|
|
22
|
+
var FileUploadHeading = withSlotRecipe("p", "heading");
|
|
23
|
+
var FileUploadDescription = withSlotRecipe("p", "description");
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FileUploadClearTrigger, FileUploadContent, FileUploadContext, FileUploadDescription, FileUploadDropzone, FileUploadHeading, FileUploadHiddenInput, FileUploadIcon, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/file-upload/utils.ts
|
|
3
|
+
/**
|
|
4
|
+
* Format a given file type string into a human-readable format.
|
|
5
|
+
* @param accept FileUploadRootProps['accept']
|
|
6
|
+
* @returns string (e.g., ".png, .jpg, .svg")
|
|
7
|
+
*/
|
|
8
|
+
function formatFileTypes(accept) {
|
|
9
|
+
if (Array.isArray(accept)) return accept.join(", ");
|
|
10
|
+
if (typeof accept === "object") return Object.keys(accept).join(", ");
|
|
11
|
+
if (typeof accept === "string") {
|
|
12
|
+
if (accept.includes("/*")) return `any ${accept.split("/")[0]}`;
|
|
13
|
+
return accept.split(",").join(", ");
|
|
14
|
+
}
|
|
15
|
+
return "any";
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.formatFileTypes = formatFileTypes;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileUploadRootProps } from '@ark-ui/react';
|
|
2
|
+
/**
|
|
3
|
+
* Format a given file type string into a human-readable format.
|
|
4
|
+
* @param accept FileUploadRootProps['accept']
|
|
5
|
+
* @returns string (e.g., ".png, .jpg, .svg")
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatFileTypes(accept: FileUploadRootProps['accept']): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FileUploadRootProps } from '@ark-ui/react';
|
|
2
|
+
/**
|
|
3
|
+
* Format a given file type string into a human-readable format.
|
|
4
|
+
* @param accept FileUploadRootProps['accept']
|
|
5
|
+
* @returns string (e.g., ".png, .jpg, .svg")
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatFileTypes(accept: FileUploadRootProps['accept']): string;
|