@qualcomm-ui/react-core 1.0.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/LICENSE.txt +31 -0
- package/dist/accordion/accordion-context.d.ts +5 -0
- package/dist/accordion/accordion-context.d.ts.map +1 -0
- package/dist/accordion/index.d.ts +3 -0
- package/dist/accordion/index.d.ts.map +1 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/index.js.map +7 -0
- package/dist/accordion/use-accordion.d.ts +10 -0
- package/dist/accordion/use-accordion.d.ts.map +1 -0
- package/dist/avatar/avatar-context.d.ts +3 -0
- package/dist/avatar/avatar-context.d.ts.map +1 -0
- package/dist/avatar/index.d.ts +3 -0
- package/dist/avatar/index.d.ts.map +1 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/index.js.map +7 -0
- package/dist/avatar/use-avatar.d.ts +7 -0
- package/dist/avatar/use-avatar.d.ts.map +1 -0
- package/dist/checkbox/checkbox-context.d.ts +5 -0
- package/dist/checkbox/checkbox-context.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +3 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/index.js.map +7 -0
- package/dist/checkbox/use-checkbox.d.ts +13 -0
- package/dist/checkbox/use-checkbox.d.ts.map +1 -0
- package/dist/classes/index.d.ts +2 -0
- package/dist/classes/index.d.ts.map +1 -0
- package/dist/classes/index.js +2 -0
- package/dist/classes/index.js.map +7 -0
- package/dist/classes/state-classes.d.ts +4 -0
- package/dist/classes/state-classes.d.ts.map +1 -0
- package/dist/collapsible/collapsible-context.d.ts +3 -0
- package/dist/collapsible/collapsible-context.d.ts.map +1 -0
- package/dist/collapsible/core-collapsible.d.ts +43 -0
- package/dist/collapsible/core-collapsible.d.ts.map +1 -0
- package/dist/collapsible/index.d.ts +12 -0
- package/dist/collapsible/index.d.ts.map +1 -0
- package/dist/collapsible/index.js +2 -0
- package/dist/collapsible/index.js.map +7 -0
- package/dist/collection/index.d.ts +3 -0
- package/dist/collection/index.d.ts.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +7 -0
- package/dist/collection/use-async-list-collection.d.ts +38 -0
- package/dist/collection/use-async-list-collection.d.ts.map +1 -0
- package/dist/collection/use-list-collection.d.ts +88 -0
- package/dist/collection/use-list-collection.d.ts.map +1 -0
- package/dist/combobox/combobox-context.d.ts +3 -0
- package/dist/combobox/combobox-context.d.ts.map +1 -0
- package/dist/combobox/combobox-item-context.d.ts +3 -0
- package/dist/combobox/combobox-item-context.d.ts.map +1 -0
- package/dist/combobox/combobox-item-group-context.d.ts +3 -0
- package/dist/combobox/combobox-item-group-context.d.ts.map +1 -0
- package/dist/combobox/core-combobox.d.ts +62 -0
- package/dist/combobox/core-combobox.d.ts.map +1 -0
- package/dist/combobox/index.d.ts +26 -0
- package/dist/combobox/index.d.ts.map +1 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/index.js.map +7 -0
- package/dist/context/create-guarded-context.d.ts +19 -0
- package/dist/context/create-guarded-context.d.ts.map +1 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +7 -0
- package/dist/context/use-context-id.d.ts +29 -0
- package/dist/context/use-context-id.d.ts.map +1 -0
- package/dist/descendants/index.d.ts +2 -0
- package/dist/descendants/index.d.ts.map +1 -0
- package/dist/descendants/index.js +2 -0
- package/dist/descendants/index.js.map +7 -0
- package/dist/descendants/use-descendants.d.ts +10 -0
- package/dist/descendants/use-descendants.d.ts.map +1 -0
- package/dist/dialog/core-dialog.d.ts +81 -0
- package/dist/dialog/core-dialog.d.ts.map +1 -0
- package/dist/dialog/dialog-context.d.ts +3 -0
- package/dist/dialog/dialog-context.d.ts.map +1 -0
- package/dist/dialog/index.d.ts +17 -0
- package/dist/dialog/index.d.ts.map +1 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/index.js.map +7 -0
- package/dist/dom/get-valid-children.d.ts +9 -0
- package/dist/dom/get-valid-children.d.ts.map +1 -0
- package/dist/dom/index.d.ts +10 -0
- package/dist/dom/index.d.ts.map +1 -0
- package/dist/dom/index.js +2 -0
- package/dist/dom/index.js.map +7 -0
- package/dist/dom/is-action-element.d.ts +2 -0
- package/dist/dom/is-action-element.d.ts.map +1 -0
- package/dist/dom/use-clickable.d.ts +52 -0
- package/dist/dom/use-clickable.d.ts.map +1 -0
- package/dist/dom/use-event-listeners.d.ts +9 -0
- package/dist/dom/use-event-listeners.d.ts.map +1 -0
- package/dist/dom/use-grouped-children.d.ts +21 -0
- package/dist/dom/use-grouped-children.d.ts.map +1 -0
- package/dist/dom/use-intersection-observer.d.ts +72 -0
- package/dist/dom/use-intersection-observer.d.ts.map +1 -0
- package/dist/dom/use-mutation-observer.d.ts +12 -0
- package/dist/dom/use-mutation-observer.d.ts.map +1 -0
- package/dist/dom/use-real-shape.d.ts +9 -0
- package/dist/dom/use-real-shape.d.ts.map +1 -0
- package/dist/dom/use-sizes.d.ts +20 -0
- package/dist/dom/use-sizes.d.ts.map +1 -0
- package/dist/effects/index.d.ts +8 -0
- package/dist/effects/index.d.ts.map +1 -0
- package/dist/effects/index.js +2 -0
- package/dist/effects/index.js.map +7 -0
- package/dist/effects/use-debounce.d.ts +8 -0
- package/dist/effects/use-debounce.d.ts.map +1 -0
- package/dist/effects/use-effect-once.d.ts +2 -0
- package/dist/effects/use-effect-once.d.ts.map +1 -0
- package/dist/effects/use-enhanced-effect.d.ts +6 -0
- package/dist/effects/use-enhanced-effect.d.ts.map +1 -0
- package/dist/effects/use-event-callback.d.ts +8 -0
- package/dist/effects/use-event-callback.d.ts.map +1 -0
- package/dist/effects/use-on-destroy-when.d.ts +14 -0
- package/dist/effects/use-on-destroy-when.d.ts.map +1 -0
- package/dist/effects/use-on-destroy.d.ts +12 -0
- package/dist/effects/use-on-destroy.d.ts.map +1 -0
- package/dist/effects/use-safe-layout-effect.d.ts +3 -0
- package/dist/effects/use-safe-layout-effect.d.ts.map +1 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +2 -0
- package/dist/events/index.js.map +7 -0
- package/dist/events/use-event.d.ts +12 -0
- package/dist/events/use-event.d.ts.map +1 -0
- package/dist/field/field-context.d.ts +5 -0
- package/dist/field/field-context.d.ts.map +1 -0
- package/dist/field/fieldset-context.d.ts +10 -0
- package/dist/field/fieldset-context.d.ts.map +1 -0
- package/dist/field/index.d.ts +5 -0
- package/dist/field/index.d.ts.map +1 -0
- package/dist/field/index.js +2 -0
- package/dist/field/index.js.map +7 -0
- package/dist/field/use-field.d.ts +9 -0
- package/dist/field/use-field.d.ts.map +1 -0
- package/dist/field/use-fieldset.d.ts +4 -0
- package/dist/field/use-fieldset.d.ts.map +1 -0
- package/dist/highlight/highlight-text.d.ts +6 -0
- package/dist/highlight/highlight-text.d.ts.map +1 -0
- package/dist/highlight/index.d.ts +3 -0
- package/dist/highlight/index.d.ts.map +1 -0
- package/dist/highlight/index.js +2 -0
- package/dist/highlight/index.js.map +7 -0
- package/dist/highlight/use-highlight.d.ts +6 -0
- package/dist/highlight/use-highlight.d.ts.map +1 -0
- package/dist/inline-notification/core-inline-notification.d.ts +25 -0
- package/dist/inline-notification/core-inline-notification.d.ts.map +1 -0
- package/dist/inline-notification/index.d.ts +11 -0
- package/dist/inline-notification/index.d.ts.map +1 -0
- package/dist/inline-notification/index.js +2 -0
- package/dist/inline-notification/index.js.map +7 -0
- package/dist/inline-notification/inline-notification-context.d.ts +3 -0
- package/dist/inline-notification/inline-notification-context.d.ts.map +1 -0
- package/dist/inline-notification/use-inline-notification.d.ts +4 -0
- package/dist/inline-notification/use-inline-notification.d.ts.map +1 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/index.d.ts.map +1 -0
- package/dist/locale/index.js +2 -0
- package/dist/locale/index.js.map +7 -0
- package/dist/locale/locale-context.d.ts +3 -0
- package/dist/locale/locale-context.d.ts.map +1 -0
- package/dist/locale/use-filter.d.ts +7 -0
- package/dist/locale/use-filter.d.ts.map +1 -0
- package/dist/lorem-ipsum/index.d.ts +2 -0
- package/dist/lorem-ipsum/index.d.ts.map +1 -0
- package/dist/lorem-ipsum/index.js +2 -0
- package/dist/lorem-ipsum/index.js.map +7 -0
- package/dist/lorem-ipsum/lorem-ipsum.d.ts +10 -0
- package/dist/lorem-ipsum/lorem-ipsum.d.ts.map +1 -0
- package/dist/lucide/icon.types.d.ts +15 -0
- package/dist/lucide/icon.types.d.ts.map +1 -0
- package/dist/lucide/index.d.ts +2 -0
- package/dist/lucide/index.d.ts.map +1 -0
- package/dist/lucide/index.js +1 -0
- package/dist/lucide/index.js.map +7 -0
- package/dist/machine/index.d.ts +9 -0
- package/dist/machine/index.d.ts.map +1 -0
- package/dist/machine/index.js +2 -0
- package/dist/machine/index.js.map +7 -0
- package/dist/machine/normalize-props.d.ts +2 -0
- package/dist/machine/normalize-props.d.ts.map +1 -0
- package/dist/machine/use-bindable-id-collection.d.ts +3 -0
- package/dist/machine/use-bindable-id-collection.d.ts.map +1 -0
- package/dist/machine/use-bindable-id.d.ts +3 -0
- package/dist/machine/use-bindable-id.d.ts.map +1 -0
- package/dist/machine/use-bindable.d.ts +3 -0
- package/dist/machine/use-bindable.d.ts.map +1 -0
- package/dist/machine/use-machine.d.ts +11 -0
- package/dist/machine/use-machine.d.ts.map +1 -0
- package/dist/machine/use-optional-content-id.d.ts +11 -0
- package/dist/machine/use-optional-content-id.d.ts.map +1 -0
- package/dist/machine/use-prop.d.ts +15 -0
- package/dist/machine/use-prop.d.ts.map +1 -0
- package/dist/machine/use-track.d.ts +2 -0
- package/dist/machine/use-track.d.ts.map +1 -0
- package/dist/menu/index.d.ts +8 -0
- package/dist/menu/index.d.ts.map +1 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/index.js.map +7 -0
- package/dist/menu/menu-context.d.ts +16 -0
- package/dist/menu/menu-context.d.ts.map +1 -0
- package/dist/menu/menu-item-context.d.ts +4 -0
- package/dist/menu/menu-item-context.d.ts.map +1 -0
- package/dist/menu/menu-item-group-context.d.ts +4 -0
- package/dist/menu/menu-item-group-context.d.ts.map +1 -0
- package/dist/menu/menu-machine-context.d.ts +4 -0
- package/dist/menu/menu-machine-context.d.ts.map +1 -0
- package/dist/menu/menu-trigger-context.d.ts +3 -0
- package/dist/menu/menu-trigger-context.d.ts.map +1 -0
- package/dist/menu/use-menu-item.d.ts +38 -0
- package/dist/menu/use-menu-item.d.ts.map +1 -0
- package/dist/menu/use-menu.d.ts +22 -0
- package/dist/menu/use-menu.d.ts.map +1 -0
- package/dist/number-input/core-number-input.d.ts +57 -0
- package/dist/number-input/core-number-input.d.ts.map +1 -0
- package/dist/number-input/index.d.ts +16 -0
- package/dist/number-input/index.d.ts.map +1 -0
- package/dist/number-input/index.js +2 -0
- package/dist/number-input/index.js.map +7 -0
- package/dist/number-input/number-input-context.d.ts +3 -0
- package/dist/number-input/number-input-context.d.ts.map +1 -0
- package/dist/pagination/index.d.ts +3 -0
- package/dist/pagination/index.d.ts.map +1 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/index.js.map +7 -0
- package/dist/pagination/pagination-context.d.ts +3 -0
- package/dist/pagination/pagination-context.d.ts.map +1 -0
- package/dist/pagination/use-pagination.d.ts +25 -0
- package/dist/pagination/use-pagination.d.ts.map +1 -0
- package/dist/password-input/index.d.ts +3 -0
- package/dist/password-input/index.d.ts.map +1 -0
- package/dist/password-input/index.js +2 -0
- package/dist/password-input/index.js.map +7 -0
- package/dist/password-input/password-input-context.d.ts +3 -0
- package/dist/password-input/password-input-context.d.ts.map +1 -0
- package/dist/password-input/use-password-input.d.ts +12 -0
- package/dist/password-input/use-password-input.d.ts.map +1 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.d.ts.map +1 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/index.js.map +7 -0
- package/dist/popover/popover-context.d.ts +3 -0
- package/dist/popover/popover-context.d.ts.map +1 -0
- package/dist/popover/use-popover.d.ts +12 -0
- package/dist/popover/use-popover.d.ts.map +1 -0
- package/dist/portal/index.d.ts +3 -0
- package/dist/portal/index.d.ts.map +1 -0
- package/dist/portal/index.js +2 -0
- package/dist/portal/index.js.map +7 -0
- package/dist/portal/portal-context.d.ts +10 -0
- package/dist/portal/portal-context.d.ts.map +1 -0
- package/dist/portal/portal.d.ts +19 -0
- package/dist/portal/portal.d.ts.map +1 -0
- package/dist/position/index.d.ts +2 -0
- package/dist/position/index.d.ts.map +1 -0
- package/dist/position/index.js +1 -0
- package/dist/position/index.js.map +7 -0
- package/dist/position/position.types.d.ts +2 -0
- package/dist/position/position.types.d.ts.map +1 -0
- package/dist/presence/index.d.ts +5 -0
- package/dist/presence/index.d.ts.map +1 -0
- package/dist/presence/index.js +2 -0
- package/dist/presence/index.js.map +7 -0
- package/dist/presence/presence-context.d.ts +3 -0
- package/dist/presence/presence-context.d.ts.map +1 -0
- package/dist/presence/presence.d.ts +11 -0
- package/dist/presence/presence.d.ts.map +1 -0
- package/dist/presence/render-strategy.d.ts +3 -0
- package/dist/presence/render-strategy.d.ts.map +1 -0
- package/dist/presence/use-presence.d.ts +18 -0
- package/dist/presence/use-presence.d.ts.map +1 -0
- package/dist/progress/core-progress.d.ts +53 -0
- package/dist/progress/core-progress.d.ts.map +1 -0
- package/dist/progress/index.d.ts +14 -0
- package/dist/progress/index.d.ts.map +1 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/index.js.map +7 -0
- package/dist/progress/progress-context.d.ts +3 -0
- package/dist/progress/progress-context.d.ts.map +1 -0
- package/dist/progress-ring/core-progress-ring.d.ts +45 -0
- package/dist/progress-ring/core-progress-ring.d.ts.map +1 -0
- package/dist/progress-ring/index.d.ts +14 -0
- package/dist/progress-ring/index.d.ts.map +1 -0
- package/dist/progress-ring/index.js +2 -0
- package/dist/progress-ring/index.js.map +7 -0
- package/dist/progress-ring/progress-ring-context.d.ts +3 -0
- package/dist/progress-ring/progress-ring-context.d.ts.map +1 -0
- package/dist/props/index.d.ts +2 -0
- package/dist/props/index.d.ts.map +1 -0
- package/dist/props/index.js +2 -0
- package/dist/props/index.js.map +7 -0
- package/dist/props/use-previous-props.d.ts +2 -0
- package/dist/props/use-previous-props.d.ts.map +1 -0
- package/dist/radio/index.d.ts +3 -0
- package/dist/radio/index.d.ts.map +1 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/index.js.map +7 -0
- package/dist/radio/radio-context.d.ts +4 -0
- package/dist/radio/radio-context.d.ts.map +1 -0
- package/dist/radio/use-radio.d.ts +14 -0
- package/dist/radio/use-radio.d.ts.map +1 -0
- package/dist/refs/compose-refs.d.ts +5 -0
- package/dist/refs/compose-refs.d.ts.map +1 -0
- package/dist/refs/get-child-ref.d.ts +4 -0
- package/dist/refs/get-child-ref.d.ts.map +1 -0
- package/dist/refs/index.d.ts +5 -0
- package/dist/refs/index.d.ts.map +1 -0
- package/dist/refs/index.js +2 -0
- package/dist/refs/index.js.map +7 -0
- package/dist/refs/set-ref.d.ts +15 -0
- package/dist/refs/set-ref.d.ts.map +1 -0
- package/dist/refs/use-merged-ref.d.ts +9 -0
- package/dist/refs/use-merged-ref.d.ts.map +1 -0
- package/dist/segmented-control/index.d.ts +3 -0
- package/dist/segmented-control/index.d.ts.map +1 -0
- package/dist/segmented-control/index.js +2 -0
- package/dist/segmented-control/index.js.map +7 -0
- package/dist/segmented-control/segmented-control-context.d.ts +3 -0
- package/dist/segmented-control/segmented-control-context.d.ts.map +1 -0
- package/dist/segmented-control/use-segmented-control.d.ts +7 -0
- package/dist/segmented-control/use-segmented-control.d.ts.map +1 -0
- package/dist/select/core-select.d.ts +29 -0
- package/dist/select/core-select.d.ts.map +1 -0
- package/dist/select/index.d.ts +16 -0
- package/dist/select/index.d.ts.map +1 -0
- package/dist/select/index.js +2 -0
- package/dist/select/index.js.map +7 -0
- package/dist/select/select-context.d.ts +4 -0
- package/dist/select/select-context.d.ts.map +1 -0
- package/dist/select/use-select.d.ts +7 -0
- package/dist/select/use-select.d.ts.map +1 -0
- package/dist/side-nav/core-side-nav.d.ts +39 -0
- package/dist/side-nav/core-side-nav.d.ts.map +1 -0
- package/dist/side-nav/index.d.ts +14 -0
- package/dist/side-nav/index.d.ts.map +1 -0
- package/dist/side-nav/index.js +2 -0
- package/dist/side-nav/index.js.map +7 -0
- package/dist/side-nav/side-nav-context.d.ts +3 -0
- package/dist/side-nav/side-nav-context.d.ts.map +1 -0
- package/dist/slider/index.d.ts +3 -0
- package/dist/slider/index.d.ts.map +1 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/index.js.map +7 -0
- package/dist/slider/slider-context.d.ts +4 -0
- package/dist/slider/slider-context.d.ts.map +1 -0
- package/dist/slider/use-slider.d.ts +22 -0
- package/dist/slider/use-slider.d.ts.map +1 -0
- package/dist/state/controlled-open.d.ts +23 -0
- package/dist/state/controlled-open.d.ts.map +1 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +3 -0
- package/dist/state/index.js.map +7 -0
- package/dist/state/use-controlled-id.d.ts +8 -0
- package/dist/state/use-controlled-id.d.ts.map +1 -0
- package/dist/state/use-controlled-state.d.ts +35 -0
- package/dist/state/use-controlled-state.d.ts.map +1 -0
- package/dist/switch/index.d.ts +3 -0
- package/dist/switch/index.d.ts.map +1 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.js.map +7 -0
- package/dist/switch/switch-context.d.ts +3 -0
- package/dist/switch/switch-context.d.ts.map +1 -0
- package/dist/switch/use-switch.d.ts +9 -0
- package/dist/switch/use-switch.d.ts.map +1 -0
- package/dist/system/index.d.ts +5 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +2 -0
- package/dist/system/index.js.map +7 -0
- package/dist/system/polymorphic-as-element.d.ts +20 -0
- package/dist/system/polymorphic-as-element.d.ts.map +1 -0
- package/dist/system/polymorphic-element.d.ts +13 -0
- package/dist/system/polymorphic-element.d.ts.map +1 -0
- package/dist/system/system.types.d.ts +69 -0
- package/dist/system/system.types.d.ts.map +1 -0
- package/dist/system/system.utils.d.ts +31 -0
- package/dist/system/system.utils.d.ts.map +1 -0
- package/dist/tabs/core-tabs.d.ts +60 -0
- package/dist/tabs/core-tabs.d.ts.map +1 -0
- package/dist/tabs/index.d.ts +16 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/index.js.map +7 -0
- package/dist/tabs/tab-prop-context.d.ts +3 -0
- package/dist/tabs/tab-prop-context.d.ts.map +1 -0
- package/dist/tabs/tabs-context.d.ts +3 -0
- package/dist/tabs/tabs-context.d.ts.map +1 -0
- package/dist/text-area/index.d.ts +2 -0
- package/dist/text-area/index.d.ts.map +1 -0
- package/dist/text-area/index.js +1 -0
- package/dist/text-area/index.js.map +7 -0
- package/dist/text-input/index.d.ts +3 -0
- package/dist/text-input/index.d.ts.map +1 -0
- package/dist/text-input/index.js +2 -0
- package/dist/text-input/index.js.map +7 -0
- package/dist/text-input/text-input-context.d.ts +3 -0
- package/dist/text-input/text-input-context.d.ts.map +1 -0
- package/dist/text-input/use-text-input.d.ts +10 -0
- package/dist/text-input/use-text-input.d.ts.map +1 -0
- package/dist/toast/core-toast.d.ts +35 -0
- package/dist/toast/core-toast.d.ts.map +1 -0
- package/dist/toast/index.d.ts +13 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/index.js.map +7 -0
- package/dist/toast/toast-context.d.ts +3 -0
- package/dist/toast/toast-context.d.ts.map +1 -0
- package/dist/toast/toaster.d.ts +19 -0
- package/dist/toast/toaster.d.ts.map +1 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.d.ts.map +1 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/index.js.map +7 -0
- package/dist/tooltip/tooltip-context.d.ts +3 -0
- package/dist/tooltip/tooltip-context.d.ts.map +1 -0
- package/dist/tooltip/use-tooltip.d.ts +9 -0
- package/dist/tooltip/use-tooltip.d.ts.map +1 -0
- package/dist/transitions/get-transition-props.d.ts +25 -0
- package/dist/transitions/get-transition-props.d.ts.map +1 -0
- package/dist/transitions/index.d.ts +3 -0
- package/dist/transitions/index.d.ts.map +1 -0
- package/dist/transitions/index.js +2 -0
- package/dist/transitions/index.js.map +7 -0
- package/dist/transitions/transitions.types.d.ts +119 -0
- package/dist/transitions/transitions.types.d.ts.map +1 -0
- package/dist/tree/core-tree.d.ts +63 -0
- package/dist/tree/core-tree.d.ts.map +1 -0
- package/dist/tree/index.d.ts +20 -0
- package/dist/tree/index.d.ts.map +1 -0
- package/dist/tree/index.js +2 -0
- package/dist/tree/index.js.map +7 -0
- package/dist/tree/tree-context.d.ts +7 -0
- package/dist/tree/tree-context.d.ts.map +1 -0
- package/dist/tree/tree-node-context.d.ts +4 -0
- package/dist/tree/tree-node-context.d.ts.map +1 -0
- package/dist/tree/use-tree.d.ts +5 -0
- package/dist/tree/use-tree.d.ts.map +1 -0
- package/dist/tsbuildinfo +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/field/field-context.ts", "../../src/field/fieldset-context.ts", "../../src/field/use-field.ts", "../../src/field/use-fieldset.ts"],
|
|
4
|
+
"sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [FieldContextProvider, useFieldContext] = createGuardedContext({\n hookName: \"useFieldContext\",\n providerName: \"<FieldContextProvider>\",\n strict: false\n});", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [FieldsetContextProvider, useFieldsetContext] = createGuardedContext({\n hookName: \"useFieldsetContext\",\n providerName: \"<FieldsetContextProvider>\",\n strict: false\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { useCallback, useMemo, useState } from \"react\";\nimport { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { booleanAriaAttr, booleanDataAttr } from \"@qualcomm-ui/utils/attributes\";\nimport { useFieldContext } from \"./field-context\";\nimport { useFieldsetContext } from \"./fieldset-context\";\nconst scope = {\n \"data-scope\": \"field\"\n};\nexport function useField(props) {\n const $ = _c(51);\n const fieldsetDisabled = useFieldsetContext()?.disabled;\n const {\n dir: t0,\n disabled: t1,\n invalid: t2,\n readOnly: t3,\n required: t4\n } = props;\n const dir = t0 === undefined ? \"ltr\" : t0;\n const disabled = t1 === undefined ? Boolean(fieldsetDisabled) : t1;\n const invalid = t2 === undefined ? false : t2;\n const readOnly = t3 === undefined ? false : t3;\n const required = t4 === undefined ? false : t4;\n const [controlId, setControlId] = useState(\"\");\n const [errorTextId, setErrorTextId] = useState();\n const [hintId, setHintId] = useState();\n const [labelId, setLabelId] = useState();\n let ids;\n if ($[0] !== errorTextId || $[1] !== hintId || $[2] !== invalid) {\n ids = [];\n if (errorTextId && invalid) {\n ids.push(errorTextId);\n }\n if (hintId) {\n ids.push(hintId);\n }\n $[0] = errorTextId;\n $[1] = hintId;\n $[2] = invalid;\n $[3] = ids;\n } else {\n ids = $[3];\n }\n const labelIds = ids.join(\" \") || void 0;\n let t5;\n if ($[4] !== dir || $[5] !== disabled || $[6] !== invalid || $[7] !== readOnly) {\n t5 = () => ({\n ...scope,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-invalid\": booleanDataAttr(invalid),\n \"data-part\": \"root\",\n \"data-readonly\": booleanDataAttr(readOnly),\n dir,\n role: \"group\"\n });\n $[4] = dir;\n $[5] = disabled;\n $[6] = invalid;\n $[7] = readOnly;\n $[8] = t5;\n } else {\n t5 = $[8];\n }\n const getRootBindings = t5;\n let t6;\n if ($[9] !== controlId || $[10] !== dir || $[11] !== disabled || $[12] !== invalid || $[13] !== labelId || $[14] !== required) {\n t6 = () => ({\n ...scope,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-invalid\": booleanDataAttr(invalid),\n \"data-part\": \"label\",\n \"data-required\": booleanDataAttr(required),\n dir,\n htmlFor: controlId,\n id: labelId\n });\n $[9] = controlId;\n $[10] = dir;\n $[11] = disabled;\n $[12] = invalid;\n $[13] = labelId;\n $[14] = required;\n $[15] = t6;\n } else {\n t6 = $[15];\n }\n const getLabelBindings = t6;\n let t7;\n if ($[16] !== controlId || $[17] !== dir || $[18] !== disabled || $[19] !== invalid || $[20] !== labelIds || $[21] !== readOnly || $[22] !== required) {\n t7 = () => ({\n ...scope,\n \"aria-describedby\": labelIds,\n \"aria-invalid\": booleanAriaAttr(invalid),\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-invalid\": booleanDataAttr(invalid),\n \"data-part\": \"control\",\n \"data-required\": booleanDataAttr(required),\n dir,\n disabled,\n id: controlId,\n readOnly,\n required: booleanDataAttr(required)\n });\n $[16] = controlId;\n $[17] = dir;\n $[18] = disabled;\n $[19] = invalid;\n $[20] = labelIds;\n $[21] = readOnly;\n $[22] = required;\n $[23] = t7;\n } else {\n t7 = $[23];\n }\n const getControlBindings = t7;\n let t8;\n if ($[24] !== dir || $[25] !== disabled || $[26] !== hintId) {\n t8 = () => ({\n ...scope,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-part\": \"hint\",\n dir,\n id: hintId\n });\n $[24] = dir;\n $[25] = disabled;\n $[26] = hintId;\n $[27] = t8;\n } else {\n t8 = $[27];\n }\n const getHintBindings = t8;\n let t9;\n if ($[28] !== dir || $[29] !== disabled || $[30] !== errorTextId) {\n t9 = () => ({\n ...scope,\n \"aria-live\": \"polite\",\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-part\": \"error-text\",\n dir,\n id: errorTextId\n });\n $[28] = dir;\n $[29] = disabled;\n $[30] = errorTextId;\n $[31] = t9;\n } else {\n t9 = $[31];\n }\n const getErrorTextBindings = t9;\n let t10;\n if ($[32] !== dir) {\n t10 = () => ({\n ...scope,\n \"aria-hidden\": \"true\",\n \"data-part\": \"required-indicator\",\n dir\n });\n $[32] = dir;\n $[33] = t10;\n } else {\n t10 = $[33];\n }\n const getRequiredIndicatorBindings = t10;\n let t11;\n if ($[34] !== controlId || $[35] !== errorTextId || $[36] !== hintId || $[37] !== labelId) {\n t11 = {\n control: controlId,\n errorText: errorTextId,\n hint: hintId,\n label: labelId,\n setControlId,\n setErrorTextId,\n setHintId,\n setLabelId\n };\n $[34] = controlId;\n $[35] = errorTextId;\n $[36] = hintId;\n $[37] = labelId;\n $[38] = t11;\n } else {\n t11 = $[38];\n }\n let t12;\n if ($[39] !== disabled || $[40] !== getControlBindings || $[41] !== getErrorTextBindings || $[42] !== getHintBindings || $[43] !== getLabelBindings || $[44] !== getRequiredIndicatorBindings || $[45] !== getRootBindings || $[46] !== invalid || $[47] !== readOnly || $[48] !== required || $[49] !== t11) {\n t12 = {\n disabled,\n getControlBindings,\n getErrorTextBindings,\n getHintBindings,\n getLabelBindings,\n getRequiredIndicatorBindings,\n getRootBindings,\n ids: t11,\n invalid,\n readOnly,\n required\n };\n $[39] = disabled;\n $[40] = getControlBindings;\n $[41] = getErrorTextBindings;\n $[42] = getHintBindings;\n $[43] = getLabelBindings;\n $[44] = getRequiredIndicatorBindings;\n $[45] = getRootBindings;\n $[46] = invalid;\n $[47] = readOnly;\n $[48] = required;\n $[49] = t11;\n $[50] = t12;\n } else {\n t12 = $[50];\n }\n return t12;\n}\nexport function useFieldLabel(t0) {\n const {\n id\n } = t0;\n const context = useFieldContext(true);\n return context.getLabelBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useFieldControl(t0) {\n const {\n id\n } = t0;\n const context = useFieldContext(true);\n return context.getControlBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useFieldErrorText(t0) {\n const {\n id\n } = t0;\n const context = useFieldContext(true);\n return context.getErrorTextBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useFieldHint(t0) {\n const {\n id\n } = t0;\n const context = useFieldContext(true);\n return context.getHintBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useCallback, useMemo, useState } from \"react\";\nimport { booleanDataAttr } from \"@qualcomm-ui/utils/attributes\";\nconst scope = {\n \"data-scope\": \"fieldset\"\n};\nexport function useFieldset(props) {\n const $ = _c(28);\n const {\n disabled: t0,\n invalid: t1\n } = props;\n const disabled = t0 === undefined ? false : t0;\n const invalid = t1 === undefined ? false : t1;\n const [hintId, setHintId] = useState(void 0);\n const [errorTextId, setErrorTextId] = useState(void 0);\n let ids2;\n if ($[0] !== errorTextId || $[1] !== hintId || $[2] !== invalid) {\n ids2 = [];\n if (errorTextId && invalid) {\n ids2.push(errorTextId);\n }\n if (hintId) {\n ids2.push(hintId);\n }\n $[0] = errorTextId;\n $[1] = hintId;\n $[2] = invalid;\n $[3] = ids2;\n } else {\n ids2 = $[3];\n }\n const labelIds = ids2.join(\" \") || void 0;\n let t2;\n if ($[4] !== disabled || $[5] !== invalid || $[6] !== labelIds) {\n t2 = () => ({\n ...scope,\n \"aria-describedby\": labelIds,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-invalid\": booleanDataAttr(invalid),\n disabled,\n role: \"group\"\n });\n $[4] = disabled;\n $[5] = invalid;\n $[6] = labelIds;\n $[7] = t2;\n } else {\n t2 = $[7];\n }\n const getRootBindings = t2;\n let t3;\n if ($[8] !== disabled || $[9] !== invalid) {\n t3 = () => ({\n ...scope,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-invalid\": booleanDataAttr(invalid),\n \"data-part\": \"legend\"\n });\n $[8] = disabled;\n $[9] = invalid;\n $[10] = t3;\n } else {\n t3 = $[10];\n }\n const getLegendBindings = t3;\n let t4;\n if ($[11] !== disabled || $[12] !== errorTextId) {\n t4 = () => ({\n ...scope,\n \"aria-live\": \"polite\",\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-part\": \"error-text\",\n id: errorTextId\n });\n $[11] = disabled;\n $[12] = errorTextId;\n $[13] = t4;\n } else {\n t4 = $[13];\n }\n const getErrorTextBindings = t4;\n let t5;\n if ($[14] !== disabled || $[15] !== hintId) {\n t5 = () => ({\n ...scope,\n \"data-disabled\": booleanDataAttr(disabled),\n \"data-part\": \"hint\",\n id: hintId\n });\n $[14] = disabled;\n $[15] = hintId;\n $[16] = t5;\n } else {\n t5 = $[16];\n }\n const getHintBindings = t5;\n let t6;\n if ($[17] !== errorTextId || $[18] !== hintId) {\n t6 = {\n errorText: errorTextId,\n hint: hintId,\n setErrorTextId,\n setHintId\n };\n $[17] = errorTextId;\n $[18] = hintId;\n $[19] = t6;\n } else {\n t6 = $[19];\n }\n const ids = t6;\n let t7;\n if ($[20] !== disabled || $[21] !== getErrorTextBindings || $[22] !== getHintBindings || $[23] !== getLegendBindings || $[24] !== getRootBindings || $[25] !== ids || $[26] !== invalid) {\n t7 = {\n disabled,\n getErrorTextBindings,\n getHintBindings,\n getLegendBindings,\n getRootBindings,\n ids,\n invalid\n };\n $[20] = disabled;\n $[21] = getErrorTextBindings;\n $[22] = getHintBindings;\n $[23] = getLegendBindings;\n $[24] = getRootBindings;\n $[25] = ids;\n $[26] = invalid;\n $[27] = t7;\n } else {\n t7 = $[27];\n }\n return t7;\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAS,wBAAAA,MAA4B,kCAC9B,GAAM,CAACC,EAAsBC,CAAe,EAAIF,EAAqB,CAC1E,SAAU,kBACV,aAAc,yBACd,OAAQ,EACV,CAAC,ECLD,OAAS,wBAAAG,MAA4B,kCAC9B,GAAM,CAACC,GAAyBC,CAAkB,EAAIF,EAAqB,CAChF,SAAU,qBACV,aAAc,4BACd,OAAQ,EACV,CAAC,ECLD,OAAS,KAAKG,MAAU,yBACxB,OAA+B,YAAAC,MAAgB,QAC/C,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,mBAAAC,MAAuB,gCAChC,OAAS,mBAAAC,EAAiB,mBAAAC,MAAuB,gCAGjD,IAAMC,EAAQ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EACRL,EAAE,EAAE,EAAIiB,GAERA,EAAKjB,EAAE,EAAE,EAEX,IAAMkB,EAAkBD,EACpBE,EACAnB,EAAE,EAAE,IAAMO,GAAeP,EAAE,EAAE,IAAMK,GACrCc,EAAK,CACH,UAAWZ,EACX,KAAMF,EACN,eAAAG,EACA,UAAAF,CACF,EACAN,EAAE,EAAE,EAAIO,EACRP,EAAE,EAAE,EAAIK,EACRL,EAAE,EAAE,EAAImB,GAERA,EAAKnB,EAAE,EAAE,EAEX,IAAMoB,EAAMD,EACRE,EACJ,OAAIrB,EAAE,EAAE,IAAMG,GAAYH,EAAE,EAAE,IAAMgB,GAAwBhB,EAAE,EAAE,IAAMkB,GAAmBlB,EAAE,EAAE,IAAMc,GAAqBd,EAAE,EAAE,IAAMY,GAAmBZ,EAAE,EAAE,IAAMoB,GAAOpB,EAAE,EAAE,IAAMI,GAC9KiB,EAAK,CACH,SAAAlB,EACA,qBAAAa,EACA,gBAAAE,EACA,kBAAAJ,EACA,gBAAAF,EACA,IAAAQ,EACA,QAAAhB,CACF,EACAJ,EAAE,EAAE,EAAIG,EACRH,EAAE,EAAE,EAAIgB,EACRhB,EAAE,EAAE,EAAIkB,EACRlB,EAAE,EAAE,EAAIc,EACRd,EAAE,EAAE,EAAIY,EACRZ,EAAE,EAAE,EAAIoB,EACRpB,EAAE,EAAE,EAAII,EACRJ,EAAE,EAAE,EAAIqB,GAERA,EAAKrB,EAAE,EAAE,EAEJqB,CACT",
|
|
6
|
+
"names": ["createGuardedContext", "FieldContextProvider", "useFieldContext", "createGuardedContext", "FieldsetContextProvider", "useFieldsetContext", "_c", "useState", "useOnDestroy", "useControlledId", "booleanAriaAttr", "booleanDataAttr", "scope", "useField", "props", "$", "_c", "fieldsetDisabled", "useFieldsetContext", "t0", "t1", "t2", "t3", "t4", "dir", "disabled", "invalid", "readOnly", "required", "controlId", "setControlId", "useState", "errorTextId", "setErrorTextId", "hintId", "setHintId", "labelId", "setLabelId", "ids", "labelIds", "t5", "booleanDataAttr", "getRootBindings", "t6", "getLabelBindings", "t7", "booleanAriaAttr", "getControlBindings", "t8", "getHintBindings", "t9", "getErrorTextBindings", "t10", "getRequiredIndicatorBindings", "t11", "t12", "useFieldLabel", "id", "useFieldContext", "useControlledId", "useOnDestroy", "useFieldControl", "useFieldErrorText", "useFieldHint", "_c", "useState", "booleanDataAttr", "scope", "useFieldset", "props", "$", "t0", "t1", "disabled", "invalid", "hintId", "setHintId", "errorTextId", "setErrorTextId", "ids2", "labelIds", "t2", "getRootBindings", "t3", "getLegendBindings", "t4", "getErrorTextBindings", "t5", "getHintBindings", "t6", "ids", "t7"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FieldApiProps, FieldControlBindings, FieldErrorTextBindings, FieldHintBindings, FieldLabelBindings } from "@qualcomm-ui/core/field";
|
|
2
|
+
import type { IdProp } from "@qualcomm-ui/react-core/system";
|
|
3
|
+
import { type FieldContextValue } from "./field-context";
|
|
4
|
+
export declare function useField(props: FieldApiProps): FieldContextValue;
|
|
5
|
+
export declare function useFieldLabel({ id }: IdProp): FieldLabelBindings;
|
|
6
|
+
export declare function useFieldControl({ id }: IdProp): FieldControlBindings;
|
|
7
|
+
export declare function useFieldErrorText({ id }: IdProp): FieldErrorTextBindings;
|
|
8
|
+
export declare function useFieldHint({ id }: IdProp): FieldHintBindings;
|
|
9
|
+
//# sourceMappingURL=use-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-field.d.ts","sourceRoot":"","sources":["../../src/field/use-field.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAG1D,OAAO,EAAC,KAAK,iBAAiB,EAAkB,MAAM,iBAAiB,CAAA;AAOvE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,iBAAiB,CAkJhE;AAED,wBAAgB,aAAa,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,kBAAkB,CAM9D;AAED,wBAAgB,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,oBAAoB,CAMlE;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,sBAAsB,CAMtE;AAED,wBAAgB,YAAY,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,iBAAiB,CAM5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-fieldset.d.ts","sourceRoot":"","sources":["../../src/field/use-fieldset.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,gBAAgB,EAKjB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAA;AAM5D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,CAyFzE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactElement } from "react";
|
|
2
|
+
import { type UseHighlightProps } from "./use-highlight";
|
|
3
|
+
export interface HighlightTextProps extends ComponentProps<"mark">, UseHighlightProps {
|
|
4
|
+
}
|
|
5
|
+
export declare function HighlightText(props: HighlightTextProps): ReactElement;
|
|
6
|
+
//# sourceMappingURL=highlight-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"highlight-text.d.ts","sourceRoot":"","sources":["../../src/highlight/highlight-text.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,cAAc,EAAY,KAAK,YAAY,EAAC,MAAM,OAAO,CAAA;AAItE,OAAO,EAAe,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AAYpE,MAAM,WAAW,kBACf,SAAQ,cAAc,CAAC,MAAM,CAAC,EAC5B,iBAAiB;CAAG;AAExB,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,YAAY,CAsBrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/highlight/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Fragment as c}from"react";import{createProps as p,createSplitProps as f}from"@qualcomm-ui/utils/object";import{c as g}from"react/compiler-runtime";import"react";import{highlightWord as a}from"@qualcomm-ui/utils/highlight-word";function m(t){let r=g(2),o;return r[0]!==t?(o=a(t),r[0]=t,r[1]=o):o=r[1],o}var u=p()("exactMatch","ignoreCase","matchAll","query","text"),x=f(u);function j(t){if(typeof t.text!="string")throw new Error("[@qualcomm-ui/react-core/highlight] text must be a string");let[r,o]=x(t),n=m(r);return e(c,{children:n.map((s,i)=>{let{match:l,text:h}=s;return l?e("mark",{...o,children:h},i):e(c,{children:h},i)})})}export{j as HighlightText,m as useHighlight};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/highlight/highlight-text.tsx", "../../src/highlight/use-highlight.ts"],
|
|
4
|
+
"sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { Fragment } from \"react\";\nimport { createProps, createSplitProps } from \"@qualcomm-ui/utils/object\";\nimport { useHighlight } from \"./use-highlight\";\nconst highlightProps = createProps()(\"exactMatch\", \"ignoreCase\", \"matchAll\", \"query\", \"text\");\nconst splitProps = createSplitProps(highlightProps);\nexport function HighlightText(props) {\n if (typeof props.text !== \"string\") {\n throw new Error(\"[@qualcomm-ui/react-core/highlight] text must be a string\");\n }\n const [highlightProps2, localProps] = splitProps(props);\n const chunks = useHighlight(highlightProps2);\n return jsx(Fragment, {\n children: chunks.map((t0, i) => {\n const {\n match,\n text\n } = t0;\n return match ? jsx(\"mark\", {\n ...localProps,\n children: text\n }, i) : jsx(Fragment, {\n children: text\n }, i);\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useMemo } from \"react\";\nimport { highlightWord } from \"@qualcomm-ui/utils/highlight-word\";\nexport function useHighlight(props) {\n const $ = _c(2);\n let t0;\n if ($[0] !== props) {\n t0 = highlightWord(props);\n $[0] = props;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAS,OAAAA,MAAW,oBACpB,OAAS,YAAAC,MAAgB,QACzB,OAAS,eAAAC,EAAa,oBAAAC,MAAwB,4BCF9C,OAAS,KAAKC,MAAU,yBACxB,MAAwB,QACxB,OAAS,iBAAAC,MAAqB,oCACvB,SAASC,EAAaC,EAAO,CAClC,IAAMC,EAAIJ,EAAG,CAAC,EACVK,EACJ,OAAID,EAAE,CAAC,IAAMD,GACXE,EAAKJ,EAAcE,CAAK,EACxBC,EAAE,CAAC,EAAID,EACPC,EAAE,CAAC,EAAIC,GAEPA,EAAKD,EAAE,CAAC,EAEHC,CACT,CDVA,IAAMC,EAAiBC,EAAY,EAAE,aAAc,aAAc,WAAY,QAAS,MAAM,EACtFC,EAAaC,EAAiBH,CAAc,EAC3C,SAASI,EAAcC,EAAO,CACnC,GAAI,OAAOA,EAAM,MAAS,SACxB,MAAM,IAAI,MAAM,2DAA2D,EAE7E,GAAM,CAACC,EAAiBC,CAAU,EAAIL,EAAWG,CAAK,EAChDG,EAASC,EAAaH,CAAe,EAC3C,OAAOI,EAAIC,EAAU,CACnB,SAAUH,EAAO,IAAI,CAACI,EAAI,IAAM,CAC9B,GAAM,CACJ,MAAAC,EACA,KAAAC,CACF,EAAIF,EACJ,OAAOC,EAAQH,EAAI,OAAQ,CACzB,GAAGH,EACH,SAAUO,CACZ,EAAG,CAAC,EAAIJ,EAAIC,EAAU,CACpB,SAAUG,CACZ,EAAG,CAAC,CACN,CAAC,CACH,CAAC,CACH",
|
|
6
|
+
"names": ["jsx", "Fragment", "createProps", "createSplitProps", "_c", "highlightWord", "useHighlight", "props", "$", "t0", "highlightProps", "createProps", "splitProps", "createSplitProps", "HighlightText", "props", "highlightProps2", "localProps", "chunks", "useHighlight", "jsx", "Fragment", "t0", "match", "text"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type HighlightChunk, type HighlightWordProps } from "@qualcomm-ui/utils/highlight-word";
|
|
2
|
+
export interface UseHighlightProps extends HighlightWordProps {
|
|
3
|
+
}
|
|
4
|
+
export declare function useHighlight(props: UseHighlightProps): HighlightChunk[];
|
|
5
|
+
export type { HighlightChunk };
|
|
6
|
+
//# sourceMappingURL=use-highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-highlight.d.ts","sourceRoot":"","sources":["../../src/highlight/use-highlight.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAA;AAE1C,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;CAAG;AAEhE,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,cAAc,EAAE,CAEvE;AAED,YAAY,EAAC,cAAc,EAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { type InlineNotificationApiProps } from "@qualcomm-ui/core/inline-notification";
|
|
3
|
+
import { type ElementRenderProp, type IdProp } from "@qualcomm-ui/react-core/system";
|
|
4
|
+
export interface CoreInlineNotificationRootProps extends InlineNotificationApiProps, IdProp, Omit<ElementRenderProp<"div">, "dir" | "role"> {
|
|
5
|
+
/**
|
|
6
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function CoreInlineNotificationRoot({ children, id, ...props }: CoreInlineNotificationRootProps): ReactElement;
|
|
11
|
+
export interface CoreInlineNotificationLabelProps extends ElementRenderProp<"div"> {
|
|
12
|
+
/**
|
|
13
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function CoreInlineNotificationLabel({ children, id, ...props }: CoreInlineNotificationLabelProps): ReactElement;
|
|
18
|
+
export interface CoreInlineNotificationDescriptionProps extends IdProp, ElementRenderProp<"div"> {
|
|
19
|
+
/**
|
|
20
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
21
|
+
*/
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function CoreInlineNotificationDescription({ children, id, ...props }: CoreInlineNotificationDescriptionProps): ReactElement;
|
|
25
|
+
//# sourceMappingURL=core-inline-notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-inline-notification.d.ts","sourceRoot":"","sources":["../../src/inline-notification/core-inline-notification.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAEL,KAAK,0BAA0B,EAGhC,MAAM,uCAAuC,CAAA;AAI9C,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAEZ,MAAM,gCAAgC,CAAA;AAQvC,MAAM,WAAW,+BACf,SAAQ,0BAA0B,EAChC,MAAM,EACN,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,+BAA+B,GAAG,YAAY,CAoBhD;AAED,MAAM,WAAW,gCACf,SAAQ,iBAAiB,CAAC,KAAK,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,gCAAgC,GAAG,YAAY,CAgBjD;AAED,MAAM,WAAW,sCACf,SAAQ,MAAM,EACZ,iBAAiB,CAAC,KAAK,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,iCAAiC,CAAC,EAChD,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,sCAAsC,GAAG,YAAY,CAgBvD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CoreInlineNotificationDescription, type CoreInlineNotificationDescriptionProps, CoreInlineNotificationLabel, type CoreInlineNotificationLabelProps, CoreInlineNotificationRoot, type CoreInlineNotificationRootProps } from "./core-inline-notification";
|
|
2
|
+
export * from "./inline-notification-context";
|
|
3
|
+
export * from "./use-inline-notification";
|
|
4
|
+
export type { CoreInlineNotificationRootProps, CoreInlineNotificationLabelProps, CoreInlineNotificationDescriptionProps, };
|
|
5
|
+
type CoreInlineNotificationComponent = {
|
|
6
|
+
Description: typeof CoreInlineNotificationDescription;
|
|
7
|
+
Label: typeof CoreInlineNotificationLabel;
|
|
8
|
+
Root: typeof CoreInlineNotificationRoot;
|
|
9
|
+
};
|
|
10
|
+
export declare const CoreInlineNotification: CoreInlineNotificationComponent;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/inline-notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,KAAK,sCAAsC,EAC3C,2BAA2B,EAC3B,KAAK,gCAAgC,EACrC,0BAA0B,EAC1B,KAAK,+BAA+B,EACrC,MAAM,4BAA4B,CAAA;AAEnC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2BAA2B,CAAA;AAEzC,YAAY,EACV,+BAA+B,EAC/B,gCAAgC,EAChC,sCAAsC,GACvC,CAAA;AAED,KAAK,+BAA+B,GAAG;IACrC,WAAW,EAAE,OAAO,iCAAiC,CAAA;IACrD,KAAK,EAAE,OAAO,2BAA2B,CAAA;IACzC,IAAI,EAAE,OAAO,0BAA0B,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,+BAIpC,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{createInlineNotificationApi as P,inlineNotificationMachine as h,splitInlineNotificationProps as D}from"@qualcomm-ui/core/inline-notification";import{useOnDestroy as d}from"@qualcomm-ui/react-core/effects";import{normalizeProps as v,useMachine as y}from"@qualcomm-ui/react-core/machine";import{useControlledId as p}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as l}from"@qualcomm-ui/react-core/system";import{mergeProps as a}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext as g}from"@qualcomm-ui/react-core/context";var[m,c]=g({hookName:"useInlineNotificationContext",providerName:"<InlineNotificationContextProvider>",strict:!0});function u(o){let{children:i,id:t,...n}=o,[e,r]=D(n),C=y(h,e),f=P(C,v),I=a(f.getRootBindings({id:p(t)}),r);return s(m,{value:f,children:s(l,{as:"div",...I,children:i})})}function x(o){let{children:i,id:t,...n}=o,e=c(),r=a(e.getLabelBindings({id:p(t),onDestroy:d()}),n);return s(l,{as:"div",...r,children:i})}function N(o){let{children:i,id:t,...n}=o,e=c(),r=a(e.getDescriptionBindings({id:p(t),onDestroy:d()}),n);return s(l,{as:"div",...r,children:i})}import{useOnDestroy as b}from"@qualcomm-ui/react-core/effects";import{useControlledId as B}from"@qualcomm-ui/react-core/state";function H(o){let{id:i}=o;return c().getCloseTriggerBindings({id:B(i),onDestroy:b()})}var Q={Description:N,Label:x,Root:u};export{Q as CoreInlineNotification,m as InlineNotificationContextProvider,H as useInlineNotificationCloseTrigger,c as useInlineNotificationContext};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/inline-notification/core-inline-notification.tsx", "../../src/inline-notification/inline-notification-context.ts", "../../src/inline-notification/use-inline-notification.ts", "../../src/inline-notification/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { createInlineNotificationApi, inlineNotificationMachine, splitInlineNotificationProps } from \"@qualcomm-ui/core/inline-notification\";\nimport { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { InlineNotificationContextProvider, useInlineNotificationContext } from \"./inline-notification-context\";\nexport function CoreInlineNotificationRoot(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const [inlineNotificationProps, localProps] = splitInlineNotificationProps(props);\n const machine = useMachine(inlineNotificationMachine, inlineNotificationProps);\n const api = createInlineNotificationApi(machine, normalizeProps);\n const mergedProps = mergeProps(api.getRootBindings({\n id: useControlledId(id)\n }), localProps);\n return jsx(InlineNotificationContextProvider, {\n value: api,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n });\n}\nexport function CoreInlineNotificationLabel(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const context = useInlineNotificationContext();\n const mergedProps = mergeProps(context.getLabelBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreInlineNotificationDescription(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const context = useInlineNotificationContext();\n const mergedProps = mergeProps(context.getDescriptionBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n }), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [InlineNotificationContextProvider, useInlineNotificationContext] = createGuardedContext({\n hookName: \"useInlineNotificationContext\",\n providerName: \"<InlineNotificationContextProvider>\",\n strict: true\n});", "import { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { useInlineNotificationContext } from \"./inline-notification-context\";\nexport function useInlineNotificationCloseTrigger(t0) {\n const {\n id\n } = t0;\n const context = useInlineNotificationContext();\n return context.getCloseTriggerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}", "import { CoreInlineNotificationDescription, CoreInlineNotificationLabel, CoreInlineNotificationRoot } from \"./core-inline-notification\";\nexport * from \"./inline-notification-context\";\nexport * from \"./use-inline-notification\";\nexport const CoreInlineNotification = {\n Description: CoreInlineNotificationDescription,\n Label: CoreInlineNotificationLabel,\n Root: CoreInlineNotificationRoot\n};"],
|
|
5
|
+
"mappings": "AAAA,OAAS,OAAAA,MAAW,oBACpB,OAAS,+BAAAC,EAA6B,6BAAAC,EAA2B,gCAAAC,MAAoC,wCACrG,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,kBAAAC,EAAgB,cAAAC,MAAkB,kCAC3C,OAAS,mBAAAC,MAAuB,gCAChC,OAAS,sBAAAC,MAA0B,iCACnC,OAAS,cAAAC,MAAkB,iCCN3B,OAAS,wBAAAC,MAA4B,kCAC9B,GAAM,CAACC,EAAmCC,CAA4B,EAAIF,EAAqB,CACpG,SAAU,+BACV,aAAc,sCACd,OAAQ,EACV,CAAC,EDGM,SAASG,EAA2BC,EAAI,CAC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,CAAC,CACH,CCTO,IAAMC,EAAyB,CACpC,YAAaC,EACb,MAAOC,EACP,KAAMC,CACR",
|
|
6
|
+
"names": ["jsx", "createInlineNotificationApi", "inlineNotificationMachine", "splitInlineNotificationProps", "useOnDestroy", "normalizeProps", "useMachine", "useControlledId", "PolymorphicElement", "mergeProps", "createGuardedContext", "InlineNotificationContextProvider", "useInlineNotificationContext", "CoreInlineNotificationRoot", "t0", "children", "id", "props", "inlineNotificationProps", "localProps", "splitInlineNotificationProps", "machine", "useMachine", "inlineNotificationMachine", "api", "createInlineNotificationApi", "normalizeProps", "mergedProps", "mergeProps", "useControlledId", "jsx", "InlineNotificationContextProvider", "PolymorphicElement", "CoreInlineNotificationLabel", "context", "useInlineNotificationContext", "useOnDestroy", "CoreInlineNotificationDescription", "useOnDestroy", "useControlledId", "useInlineNotificationCloseTrigger", "t0", "id", "useInlineNotificationContext", "useControlledId", "useOnDestroy", "CoreInlineNotification", "CoreInlineNotificationDescription", "CoreInlineNotificationLabel", "CoreInlineNotificationRoot"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { InlineNotificationApi } from "@qualcomm-ui/core/inline-notification";
|
|
2
|
+
export declare const InlineNotificationContextProvider: import("react").Provider<InlineNotificationApi>, useInlineNotificationContext: (requireContext?: boolean) => InlineNotificationApi;
|
|
3
|
+
//# sourceMappingURL=inline-notification-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-notification-context.d.ts","sourceRoot":"","sources":["../../src/inline-notification/inline-notification-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,uCAAuC,CAAA;AAGhF,eAAO,MAAO,iCAAiC,mDAAE,4BAA4B,qDAKzE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InlineNotificationCloseTriggerBindings } from "@qualcomm-ui/core/inline-notification";
|
|
2
|
+
import type { IdProp } from "@qualcomm-ui/react-core/system";
|
|
3
|
+
export declare function useInlineNotificationCloseTrigger({ id, }: IdProp): InlineNotificationCloseTriggerBindings;
|
|
4
|
+
//# sourceMappingURL=use-inline-notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-inline-notification.d.ts","sourceRoot":"","sources":["../../src/inline-notification/use-inline-notification.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,sCAAsC,EAAC,MAAM,uCAAuC,CAAA;AAGjG,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAI1D,wBAAgB,iCAAiC,CAAC,EAChD,EAAE,GACH,EAAE,MAAM,GAAG,sCAAsC,CAOjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createGuardedContext as c}from"@qualcomm-ui/react-core/context";var[f,l]=c({defaultValue:{dir:"ltr",locale:"en-US"},hookName:"useLocaleContext",name:"LocaleContext",providerName:"<LocaleProvider />",strict:!1});import{c as m}from"react/compiler-runtime";import"react";import{createFilter as n}from"@qualcomm-ui/utils/i18n";function p(o){let e=m(3),a=l(),r=o.locale??a.locale,t;return e[0]!==r||e[1]!==o?(t=n({...o,locale:r}),e[0]=r,e[1]=o,e[2]=t):t=e[2],t}export{f as LocaleContextProvider,p as useFilter,l as useLocaleContext};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locale/locale-context.ts", "../../src/locale/use-filter.ts"],
|
|
4
|
+
"sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [LocaleContextProvider, useLocaleContext] = createGuardedContext({\n defaultValue: {\n dir: \"ltr\",\n locale: \"en-US\"\n },\n hookName: \"useLocaleContext\",\n name: \"LocaleContext\",\n providerName: \"<LocaleProvider />\",\n strict: false\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { useMemo } from \"react\";\nimport { createFilter } from \"@qualcomm-ui/utils/i18n\";\nimport { useLocaleContext } from \"./locale-context\";\nexport function useFilter(props) {\n const $ = _c(3);\n const env = useLocaleContext();\n const locale = props.locale ?? env.locale;\n let t0;\n if ($[0] !== locale || $[1] !== props) {\n t0 = createFilter({\n ...props,\n locale\n });\n $[0] = locale;\n $[1] = props;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAS,wBAAAA,MAA4B,kCAC9B,GAAM,CAACC,EAAuBC,CAAgB,EAAIF,EAAqB,CAC5E,aAAc,CACZ,IAAK,MACL,OAAQ,OACV,EACA,SAAU,mBACV,KAAM,gBACN,aAAc,qBACd,OAAQ,EACV,CAAC,ECVD,OAAS,KAAKG,MAAU,yBACxB,MAAwB,QACxB,OAAS,gBAAAC,MAAoB,0BAEtB,SAASC,EAAUC,EAAO,CAC/B,IAAMC,EAAIC,EAAG,CAAC,EACRC,EAAMC,EAAiB,EACvBC,EAASL,EAAM,QAAUG,EAAI,OAC/BG,EACJ,OAAIL,EAAE,CAAC,IAAMI,GAAUJ,EAAE,CAAC,IAAMD,GAC9BM,EAAKC,EAAa,CAChB,GAAGP,EACH,OAAAK,CACF,CAAC,EACDJ,EAAE,CAAC,EAAII,EACPJ,EAAE,CAAC,EAAID,EACPC,EAAE,CAAC,EAAIK,GAEPA,EAAKL,EAAE,CAAC,EAEHK,CACT",
|
|
6
|
+
"names": ["createGuardedContext", "LocaleContextProvider", "useLocaleContext", "_c", "createFilter", "useFilter", "props", "$", "_c", "env", "useLocaleContext", "locale", "t0", "createFilter"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-context.d.ts","sourceRoot":"","sources":["../../src/locale/locale-context.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAA;AAExD,eAAO,MAAO,qBAAqB,oCAAE,gBAAgB,sCAOjD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FilterOptions, type FilterReturn } from "@qualcomm-ui/utils/i18n";
|
|
2
|
+
export interface UseFilterProps extends FilterOptions {
|
|
3
|
+
}
|
|
4
|
+
export interface UseFilterReturn extends FilterReturn {
|
|
5
|
+
}
|
|
6
|
+
export declare function useFilter(props: UseFilterProps): UseFilterReturn;
|
|
7
|
+
//# sourceMappingURL=use-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-filter.d.ts","sourceRoot":"","sources":["../../src/locale/use-filter.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,yBAAyB,CAAA;AAIhC,MAAM,WAAW,cAAe,SAAQ,aAAa;CAAG;AAExD,MAAM,WAAW,eAAgB,SAAQ,YAAY;CAAG;AAExD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,CAIhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lorem-ipsum/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{PolymorphicAsElement as p}from"@qualcomm-ui/react-core/system";import{loremIpsum as n}from"@qualcomm-ui/utils/lorem-ipsum";function l({paragraphElement:r="p",...o}){return n(o).map((m,t)=>e(p,{as:r,children:m},o.random?`${m}-${t}`:m))}export{l as LoremIpsum};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lorem-ipsum/lorem-ipsum.tsx"],
|
|
4
|
+
"sourcesContent": ["import { jsx } from \"react/jsx-runtime\";\nimport { PolymorphicAsElement } from \"@qualcomm-ui/react-core/system\";\nimport { loremIpsum } from \"@qualcomm-ui/utils/lorem-ipsum\";\nexport function LoremIpsum({\n paragraphElement = \"p\",\n ...props\n}) {\n const paragraphs = loremIpsum(props);\n return paragraphs.map((paragraph, index) => /* @__PURE__ */jsx(PolymorphicAsElement, {\n as: paragraphElement,\n children: paragraph\n }, props.random ? `${paragraph}-${index}` : paragraph));\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAS,OAAAA,MAAW,oBACpB,OAAS,wBAAAC,MAA4B,iCACrC,OAAS,cAAAC,MAAkB,iCACpB,SAASC,EAAW,CACzB,iBAAAC,EAAmB,IACnB,GAAGC,CACL,EAAG,CAED,OADmBH,EAAWG,CAAK,EACjB,IAAI,CAACC,EAAWC,IAAyBP,EAAIC,EAAsB,CACnF,GAAIG,EACJ,SAAUE,CACZ,EAAGD,EAAM,OAAS,GAAGC,CAAS,IAAIC,CAAK,GAAKD,CAAS,CAAC,CACxD",
|
|
6
|
+
"names": ["jsx", "PolymorphicAsElement", "loremIpsum", "LoremIpsum", "paragraphElement", "props", "paragraph", "index"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import { type LoremIpsumOptions } from "@qualcomm-ui/utils/lorem-ipsum";
|
|
3
|
+
export interface LoremIpsumProps extends LoremIpsumOptions {
|
|
4
|
+
/**
|
|
5
|
+
* @default 'p'
|
|
6
|
+
*/
|
|
7
|
+
paragraphElement?: ElementType;
|
|
8
|
+
}
|
|
9
|
+
export declare function LoremIpsum({ paragraphElement, ...props }: LoremIpsumProps): ReactNode;
|
|
10
|
+
//# sourceMappingURL=lorem-ipsum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lorem-ipsum.d.ts","sourceRoot":"","sources":["../../src/lorem-ipsum/lorem-ipsum.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAGjD,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAA;AAEvC,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAA;CAC/B;AAED,wBAAgB,UAAU,CAAC,EACzB,gBAAsB,EACtB,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,SAAS,CAU7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
/**
|
|
4
|
+
* LucideIcon or React Node.
|
|
5
|
+
*
|
|
6
|
+
* @custom LucideIcon | ReactNode
|
|
7
|
+
*/
|
|
8
|
+
export type LucideIconOrNode = LucideIcon | ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* LucideIcon or React Element.
|
|
11
|
+
*
|
|
12
|
+
* @custom LucideIcon | ReactNode
|
|
13
|
+
*/
|
|
14
|
+
export type LucideIconOrElement = LucideIcon | ReactElement;
|
|
15
|
+
//# sourceMappingURL=icon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.types.d.ts","sourceRoot":"","sources":["../../src/lucide/icon.types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AAE5C;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,CAAA;AAErD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lucide/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./normalize-props";
|
|
2
|
+
export * from "./use-bindable-id-collection";
|
|
3
|
+
export * from "./use-bindable-id";
|
|
4
|
+
export * from "./use-bindable";
|
|
5
|
+
export * from "./use-machine";
|
|
6
|
+
export * from "./use-optional-content-id";
|
|
7
|
+
export * from "./use-prop";
|
|
8
|
+
export * from "./use-track";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/machine/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createPropNormalizer as nt}from"@qualcomm-ui/utils/machine";var qt=nt(t=>t);import{useRef as F,useState as ct}from"react";import{useSafeLayoutEffect as ot}from"@qualcomm-ui/react-core/effects";function G(){let[t,r]=ct({}),n=F(!1),c=F({});return ot(()=>(n.current=!0,JSON.stringify(c.current)!==JSON.stringify(t)&&r(c.current),()=>{n.current=!1}),[t]),{get(u){return c.current[u]},getAll(){return{...c.current}},keys(){return Object.keys(c.current)},register(u,s,m){c.current[u]!==s&&(m?.(()=>{let{[u]:a,...l}=c.current;c.current=l,queueMicrotask(()=>{n.current&&r(l)})}),c.current={...c.current,[u]:s},queueMicrotask(()=>{n.current&&r(c.current)}))},remove(u){let{[u]:s,...m}=c.current;c.current=m,queueMicrotask(()=>{n.current&&r(m)})},set(u,s){c.current={...c.current,[u]:s},queueMicrotask(()=>{n.current&&r(c.current)})}}}import{c as ut}from"react/compiler-runtime";import{useEffect as st,useRef as H,useState as it}from"react";function Q(t){let r=ut(7),[,n]=it(t),c=H(!1),u=H(t),s;r[0]!==n?(s=()=>(c.current=!0,n(u.current),()=>{c.current=!1}),r[0]=n,r[1]=s):s=r[1];let m;r[2]===Symbol.for("react.memo_cache_sentinel")?(m=[],r[2]=m):m=r[2],st(s,m);let a;r[3]===Symbol.for("react.memo_cache_sentinel")?(a=()=>u.current,r[3]=a):a=r[3];let l;return r[4]!==n||r[5]!==t?(l={get:a,set(R,p){let d=u.current;u.current=R,p?.cleanup||p?.immediate?n(R):queueMicrotask(()=>{c.current&&d!==R&&n(t||R)})}},r[4]=n,r[5]=t,r[6]=l):l=r[6],l}import{useRef as U,useState as W}from"react";import{flushSync as ft}from"react-dom";import{useSafeLayoutEffect as at}from"@qualcomm-ui/react-core/effects";import{identity as lt}from"@qualcomm-ui/utils/functions";import{isFunction as mt}from"@qualcomm-ui/utils/guard";function N(t){let r=t().value??t().defaultValue,n=t().isEqual??Object.is,[c]=W(r),[u,s]=W(c),m=t().value!==void 0,a=U(u);a.current=m?t().value:u;let l=U(a.current);at(()=>{l.current=a.current},[u,t().value]);let R=(d,g)=>{let x=l.current,b=mt(d)?d(x):d;m||s(b),n(b,x)||t().onChange?.(b,g,x)};function p(){return m?t().value:u}return{get:p,hash(d){return t().hash?.(d)??String(d)},initial:c,invoke(d,g){t().onChange?.(d,null,g)},ref:a,set(d,g){(t().sync?ft:lt)(()=>R(d,g))}}}import{c as xt}from"react/compiler-runtime";import{useMemo as Rt,useRef as _,useState as St}from"react";import{flushSync as et}from"react-dom";import{createScope as _t}from"@qualcomm-ui/dom/query";import{useSafeLayoutEffect as P}from"@qualcomm-ui/react-core/effects";import{toArray as bt}from"@qualcomm-ui/utils/array";import{isFunction as A,isString as yt}from"@qualcomm-ui/utils/guard";import{INIT_STATE as Et,MachineStatus as I}from"@qualcomm-ui/utils/machine";import{compact as Mt}from"@qualcomm-ui/utils/object";import{c as dt}from"react/compiler-runtime";import{useRef as pt}from"react";function q(t){let r=pt(t);return r.current=t,r}function X(t){let r=dt(2),n=q(t),c;return r[0]!==n?(c=function(s){return n.current[s]},r[0]=n,r[1]=c):c=r[1],c}import{c as ht}from"react/compiler-runtime";import{useEffect as Y,useRef as Z}from"react";function K(t,r){let n=ht(6),c=Z(!1),u=Z(!1),s;n[0]!==r?(s=()=>{if(c.current&&u.current)return r();u.current=!0},n[0]=r,n[1]=s):s=n[1];let m;n[2]!==t?(m=[...(t??[]).map(gt)],n[2]=t,n[3]=m):m=n[3],Y(s,m);let a,l;n[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>(c.current=!0,()=>{c.current=!1}),l=[],n[4]=a,n[5]=l):(a=n[4],l=n[5]),Y(a,l)}function gt(t){return typeof t=="function"?t():t}function ie(t,r={},n={}){let c=(...e)=>{n.debug&&console.debug(...e)},[,u]=St(!0);P(()=>{u(!1)},[]);let s=Rt(()=>{let{getRootNode:e,id:o,ids:i}=r;return _t({getRootNode:e,id:o,ids:i})},[r]),m=t.ids?.({bindableId:Q,bindableIdCollection:G,ids:r.ids}),a=q(m),l=_({collection(e){return a.current?.[e]},get(e){return a.current?.[e].get()},register(e,o,i){if(typeof o=="object"&&o!==null&&"id"in o){let f=o;a.current?.[e].set(f.id),f.onDestroy?.(()=>a.current?.[e].set(void 0,{cleanup:!0,immediate:!0}))}else a.current?.[e].set(o),i?.(()=>a.current?.[e].set(void 0,{cleanup:!0,immediate:!0}))},set(e,o){a.current?.[e].set(o)}}),R=t.props?.({props:Mt(r),scope:{...s,ids:l.current}})??r,p=X(R),d=t.context?.({bindable:N,flush:tt,getComputed(){return C},getContext(){return x},getEvent(){return k()},getRefs(){return b},prop:p,scope:{...s,ids:l}}),g=q(d),x={get(e){return g.current?.[e].ref.current},hash(e){let o=g.current?.[e].get();return g.current?.[e].hash(o)},initial(e){return g.current?.[e].initial},set(e,o,...i){g.current?.[e].set(o,...i)}},b=Ct(t.refs?.({context:x,prop:p})??{}),C=e=>{if(!t.computed)throw new Error("No computed object found on store");let o=t.computed[e];return o({computed:C,context:x,event:k(),prop:p,refs:b,scope:{...s,ids:l.current}})},M=_(new Map),V=_(null),B={};if(t.actions)for(let e of Object.keys(t.actions)){let o=t.actions[e];B[e]=()=>o(y.current())}let D=()=>({...h,hasTag(e){return!!t.states[h.ref.current]?.tags?.includes(e)},matches(...e){return e.includes(h.ref.current)}}),j=e=>A(e)?e(y.current()):t.guards?.[e](y.current()),w=(e=[])=>bt(e).find(o=>yt(o.guard)?!!j(o.guard):A(o.guard)?o.guard(y.current()):!o.guard),L=e=>{if(!e)return;let o=e.map(f=>t.effects?.[f]),i=[];for(let f of o){let S=f?.(y.current());S&&i.push(S)}return()=>i.forEach(f=>f?.())},E=e=>{if(!e)return;let o=A(e)?e(y.current()):e;if(o)for(let i of o){let f=t.actions?.[i];f&&f(y.current())}},h=N(()=>({defaultValue:t.initialState({prop:p}),name:"state",onChange(e,o,i){i&&(M.current.get(i)?.(),M.current.delete(i)),i&&E(t.states[i]?.exit),E(V.current?.actions);let f=L(t.states[e]?.effects);if(f&&M.current.set(e,f),i==="__init__"){E(t.onInit?.actions||[]);let S=L(t.onInit?.effects||[]);S&&M.current.set("__init__",S)}E(t.states[e]?.entry)}})),rt=()=>"ref"in h?h.ref.current:h.get(),$=_(null),T=_({type:""}),k=()=>({...T.current,current(){return T.current},previous(){return $.current}}),O=e=>{queueMicrotask(()=>{$.current=T.current,T.current=e;let o=rt(),i=t.states[o]?.on?.[e.type]??t.on?.[e.type],f=w(i);if(!f)return;V.current=f;let S=f.target??o,J=S!==o;c("transition",e.type,f.target||o,`(${f.actions})`),J?et(()=>h.set(S)):f.reenter&&!J?h.invoke(o,o):E(f.actions??[])})},z=_(void 0),v=_(I.NOT_STARTED);P(()=>{queueMicrotask(()=>{let i=v.current===I.STARTED;v.current=I.STARTED,c(i?"rehydrating...":"initializing...");let f=z.current??h.initial;h.invoke(f,i?h.get():Et)});let e=M.current,o=h.ref.current;return()=>{c("unmounting..."),z.current=o,v.current=I.STOPPED,e.forEach(i=>i?.()),M.current=new Map,V.current=null,queueMicrotask(()=>{E(t.onDestroy?.actions)})}},[]);let y=_(()=>({action:E,actions:B,choose:w,computed:C,context:x,event:k(),flush:tt,guard:j,prop:p,refs:b,scope:{...s,ids:l.current},send:O,state:D(),track:K}));return t.watch?.(y.current()),{computed:C,context:x,event:k(),prop:p,refs:b,scope:{...s,ids:l.current},send:O,state:D()}}function Ct(t){let r=xt(1),n=_(t),c;return r[0]===Symbol.for("react.memo_cache_sentinel")?(c={get(u){return n.current[u]},set(u,s){n.current[u]=s}},r[0]=c):c=r[0],c}function tt(t){queueMicrotask(()=>{et(()=>t())})}import{useControlledId as Tt}from"@qualcomm-ui/react-core/state";function le(t,r){let n=Tt(r?.id);return t?n:""}export{qt as normalizeProps,N as useBindable,Q as useBindableId,G as useBindableIdCollection,q as useLiveRef,ie as useMachine,le as useOptionalContentId,X as useProp,K as useTrack};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/machine/normalize-props.ts", "../../src/machine/use-bindable-id-collection.ts", "../../src/machine/use-bindable-id.ts", "../../src/machine/use-bindable.ts", "../../src/machine/use-machine.ts", "../../src/machine/use-prop.ts", "../../src/machine/use-track.ts", "../../src/machine/use-optional-content-id.ts"],
|
|
4
|
+
"sourcesContent": ["import { createPropNormalizer } from \"@qualcomm-ui/utils/machine\";\nexport const normalizeProps = createPropNormalizer(v => v);", "import { useRef, useState } from \"react\";\nimport { useSafeLayoutEffect } from \"@qualcomm-ui/react-core/effects\";\nexport function useBindableIdCollection() {\n const [collection, setCollection] = useState({});\n const isMountedRef = useRef(false);\n const pendingCollectionRef = useRef({});\n useSafeLayoutEffect(() => {\n isMountedRef.current = true;\n if (JSON.stringify(pendingCollectionRef.current) !== JSON.stringify(collection)) {\n setCollection(pendingCollectionRef.current);\n }\n return () => {\n isMountedRef.current = false;\n };\n }, [collection]);\n return {\n get(itemKey) {\n return pendingCollectionRef.current[itemKey];\n },\n getAll() {\n return {\n ...pendingCollectionRef.current\n };\n },\n keys() {\n return Object.keys(pendingCollectionRef.current);\n },\n register(itemKey_0, value, onDestroy) {\n if (pendingCollectionRef.current[itemKey_0] === value) {\n return;\n }\n onDestroy?.(() => {\n const {\n [itemKey_0]: _removed,\n ...rest\n } = pendingCollectionRef.current;\n pendingCollectionRef.current = rest;\n queueMicrotask(() => {\n if (isMountedRef.current) {\n setCollection(rest);\n }\n });\n });\n pendingCollectionRef.current = {\n ...pendingCollectionRef.current,\n [itemKey_0]: value\n };\n queueMicrotask(() => {\n if (isMountedRef.current) {\n setCollection(pendingCollectionRef.current);\n }\n });\n },\n remove(itemKey_1) {\n const {\n [itemKey_1]: _removed,\n ...rest_0\n } = pendingCollectionRef.current;\n pendingCollectionRef.current = rest_0;\n queueMicrotask(() => {\n if (isMountedRef.current) {\n setCollection(rest_0);\n }\n });\n },\n set(itemKey_2, value_0) {\n pendingCollectionRef.current = {\n ...pendingCollectionRef.current,\n [itemKey_2]: value_0\n };\n queueMicrotask(() => {\n if (isMountedRef.current) {\n setCollection(pendingCollectionRef.current);\n }\n });\n }\n };\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useEffect, useRef, useState } from \"react\";\nexport function useBindableId(valueFromIdsProp) {\n const $ = _c(7);\n const [, setValue] = useState(valueFromIdsProp);\n const isMountedRef = useRef(false);\n const pendingValueRef = useRef(valueFromIdsProp);\n let t0;\n if ($[0] !== setValue) {\n t0 = () => {\n isMountedRef.current = true;\n setValue(pendingValueRef.current);\n return () => {\n isMountedRef.current = false;\n };\n };\n $[0] = setValue;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n let t1;\n if ($[2] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t1 = [];\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n useEffect(t0, t1);\n let t2;\n if ($[3] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t2 = () => pendingValueRef.current;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n let t3;\n if ($[4] !== setValue || $[5] !== valueFromIdsProp) {\n t3 = {\n get: t2,\n set(value, opts) {\n const prevValue = pendingValueRef.current;\n pendingValueRef.current = value;\n if (opts?.cleanup || opts?.immediate) {\n setValue(value);\n } else {\n queueMicrotask(() => {\n if (isMountedRef.current && prevValue !== value) {\n setValue(valueFromIdsProp || value);\n }\n });\n }\n }\n };\n $[4] = setValue;\n $[5] = valueFromIdsProp;\n $[6] = t3;\n } else {\n t3 = $[6];\n }\n return t3;\n}", "import { useRef, useState } from \"react\";\nimport { flushSync } from \"react-dom\";\nimport { useSafeLayoutEffect } from \"@qualcomm-ui/react-core/effects\";\nimport { identity } from \"@qualcomm-ui/utils/functions\";\nimport { isFunction } from \"@qualcomm-ui/utils/guard\";\nexport function useBindable(props) {\n const initial = props().value ?? props().defaultValue;\n const eq = props().isEqual ?? Object.is;\n const [initialValue] = useState(initial);\n const [value, setValue] = useState(initialValue);\n const controlled = props().value !== void 0;\n const valueRef = useRef(value);\n valueRef.current = controlled ? props().value : value;\n const prevValue = useRef(valueRef.current);\n useSafeLayoutEffect(() => {\n prevValue.current = valueRef.current;\n }, [value, props().value]);\n const setFn = (value2, event) => {\n const prev = prevValue.current;\n const next = isFunction(value2) ? value2(prev) : value2;\n if (!controlled) {\n setValue(next);\n }\n if (!eq(next, prev)) {\n props().onChange?.(next, event, prev);\n }\n };\n function get() {\n return controlled ? props().value : value;\n }\n return {\n get,\n hash(value2_0) {\n return props().hash?.(value2_0) ?? String(value2_0);\n },\n initial: initialValue,\n invoke(nextValue, prevValue2) {\n props().onChange?.(nextValue, null, prevValue2);\n },\n ref: valueRef,\n set(value2_1, event_0) {\n const exec = props().sync ? flushSync : identity;\n exec(() => setFn(value2_1, event_0));\n }\n };\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useMemo, useRef, useState } from \"react\";\nimport { flushSync } from \"react-dom\";\nimport { createScope } from \"@qualcomm-ui/dom/query\";\nimport { useSafeLayoutEffect } from \"@qualcomm-ui/react-core/effects\";\nimport { toArray } from \"@qualcomm-ui/utils/array\";\nimport { isFunction, isString } from \"@qualcomm-ui/utils/guard\";\nimport { INIT_STATE, MachineStatus } from \"@qualcomm-ui/utils/machine\";\nimport { compact } from \"@qualcomm-ui/utils/object\";\nimport { useBindable } from \"./use-bindable\";\nimport { useBindableId } from \"./use-bindable-id\";\nimport { useBindableIdCollection } from \"./use-bindable-id-collection\";\nimport { useLiveRef, useProp } from \"./use-prop\";\nimport { useTrack } from \"./use-track\";\nexport function useMachine(config, userProps = {}, opts = {}) {\n const debug = (...args) => {\n if (opts.debug) {\n console.debug(...args);\n }\n };\n const [, setSsr] = useState(true);\n useSafeLayoutEffect(() => {\n setSsr(false);\n }, []);\n const scope = useMemo(() => {\n const {\n getRootNode,\n id,\n ids: ids2\n } = userProps;\n return createScope({\n getRootNode,\n id,\n ids: ids2\n });\n }, [userProps]);\n const configIds = config.ids?.({\n bindableId: useBindableId,\n bindableIdCollection: useBindableIdCollection,\n ids: userProps.ids\n });\n const idsRef = useLiveRef(configIds);\n const ids = useRef({\n collection(key) {\n return idsRef.current?.[key];\n },\n get(key_0) {\n return idsRef.current?.[key_0].get();\n },\n register(key_1, valueOrParams, onDestroy) {\n if (typeof valueOrParams === \"object\" && valueOrParams !== null && \"id\" in valueOrParams) {\n const params = valueOrParams;\n idsRef.current?.[key_1].set(params.id);\n params.onDestroy?.(() => idsRef.current?.[key_1].set(void 0, {\n cleanup: true,\n immediate: true\n }));\n } else {\n idsRef.current?.[key_1].set(valueOrParams);\n onDestroy?.(() => idsRef.current?.[key_1].set(void 0, {\n cleanup: true,\n immediate: true\n }));\n }\n },\n set(key_2, value) {\n idsRef.current?.[key_2].set(value);\n }\n });\n const props = config.props?.({\n props: compact(userProps),\n scope: {\n ...scope,\n ids: ids.current\n }\n }) ?? userProps;\n const prop = useProp(props);\n const configContext = config.context?.({\n bindable: useBindable,\n flush,\n getComputed() {\n return computed;\n },\n getContext() {\n return context;\n },\n getEvent() {\n return getEvent();\n },\n getRefs() {\n return refs;\n },\n prop,\n scope: {\n ...scope,\n ids\n }\n });\n const contextRef = useLiveRef(configContext);\n const context = {\n get(key_3) {\n return contextRef.current?.[key_3].ref.current;\n },\n hash(key_4) {\n const current = contextRef.current?.[key_4].get();\n return contextRef.current?.[key_4].hash(current);\n },\n initial(key_5) {\n return contextRef.current?.[key_5].initial;\n },\n set(key_6, value_0, ...details) {\n contextRef.current?.[key_6].set(value_0, ...details);\n }\n };\n const refs = useRefs(config.refs?.({\n context,\n prop\n }) ?? {});\n const computed = key_7 => {\n if (!config.computed) {\n throw new Error(`No computed object found on store`);\n }\n const fn = config.computed[key_7];\n return fn({\n computed,\n context,\n event: getEvent(),\n prop,\n refs,\n scope: {\n ...scope,\n ids: ids.current\n }\n });\n };\n const effects = useRef(/* @__PURE__ */new Map());\n const transitionRef = useRef(null);\n const actions = {};\n if (config.actions) {\n for (const key_8 of Object.keys(config.actions)) {\n const actionFn = config.actions[key_8];\n actions[key_8] = () => {\n return actionFn(getParams.current());\n };\n }\n }\n const getState = () => ({\n ...state,\n hasTag(tag) {\n return !!config.states[state.ref.current]?.tags?.includes(tag);\n },\n matches(...values) {\n return values.includes(state.ref.current);\n }\n });\n const guard = guard2 => {\n if (isFunction(guard2)) {\n return guard2(getParams.current());\n }\n return config.guards?.[guard2](getParams.current());\n };\n const choose = (transitions = []) => {\n return toArray(transitions).find(t => {\n if (isString(t.guard)) {\n return !!guard(t.guard);\n } else if (isFunction(t.guard)) {\n return t.guard(getParams.current());\n }\n return !t.guard;\n });\n };\n const effect = keys => {\n if (!keys) {\n return;\n }\n const fns = keys.map(s => {\n return config.effects?.[s];\n });\n const cleanups = [];\n for (const fn_0 of fns) {\n const cleanup = fn_0?.(getParams.current());\n if (cleanup) {\n cleanups.push(cleanup);\n }\n }\n return () => cleanups.forEach(fn_1 => fn_1?.());\n };\n const action = keys_0 => {\n if (!keys_0) {\n return;\n }\n const strs = isFunction(keys_0) ? keys_0(getParams.current()) : keys_0;\n if (!strs) {\n return;\n }\n for (const key_9 of strs) {\n const fn_2 = config.actions?.[key_9];\n if (fn_2) {\n fn_2(getParams.current());\n }\n }\n };\n const state = useBindable(() => ({\n defaultValue: config.initialState({\n prop\n }),\n name: \"state\",\n onChange(nextState, details_0, prevState) {\n if (prevState) {\n const exitEffects = effects.current.get(prevState);\n exitEffects?.();\n effects.current.delete(prevState);\n }\n if (prevState) {\n action(config.states[prevState]?.exit);\n }\n action(transitionRef.current?.actions);\n const cleanup_0 = effect(config.states[nextState]?.effects);\n if (cleanup_0) {\n effects.current.set(nextState, cleanup_0);\n }\n if (prevState === \"__init__\") {\n action(config.onInit?.actions || []);\n const cleanup2 = effect(config.onInit?.effects || []);\n if (cleanup2) {\n effects.current.set(\"__init__\", cleanup2);\n }\n }\n action(config.states[nextState]?.entry);\n }\n }));\n const getCurrentState = () => {\n if (\"ref\" in state) {\n return state.ref.current;\n }\n return state.get();\n };\n const previousEventRef = useRef(null);\n const eventRef = useRef({\n type: \"\"\n });\n const getEvent = () => ({\n ...eventRef.current,\n current() {\n return eventRef.current;\n },\n previous() {\n return previousEventRef.current;\n }\n });\n const send = event => {\n queueMicrotask(() => {\n previousEventRef.current = eventRef.current;\n eventRef.current = event;\n const currentState = getCurrentState();\n const transitions_0 = config.states[currentState]?.on?.[event.type] ?? config.on?.[event.type];\n const transition = choose(transitions_0);\n if (!transition) {\n return;\n }\n transitionRef.current = transition;\n const target = transition.target ?? currentState;\n const changed = target !== currentState;\n debug(\"transition\", event.type, transition.target || currentState, `(${transition.actions})`);\n if (changed) {\n flushSync(() => state.set(target));\n } else if (transition.reenter && !changed) {\n state.invoke(currentState, currentState);\n } else {\n action(transition.actions ?? []);\n }\n });\n };\n const hydratedStateRef = useRef(void 0);\n const statusRef = useRef(MachineStatus.NOT_STARTED);\n useSafeLayoutEffect(() => {\n queueMicrotask(() => {\n const started = statusRef.current === MachineStatus.STARTED;\n statusRef.current = MachineStatus.STARTED;\n debug(started ? \"rehydrating...\" : \"initializing...\");\n const initialState = hydratedStateRef.current ?? state.initial;\n state.invoke(initialState, started ? state.get() : INIT_STATE);\n });\n const fns_0 = effects.current;\n const currentState_0 = state.ref.current;\n return () => {\n debug(\"unmounting...\");\n hydratedStateRef.current = currentState_0;\n statusRef.current = MachineStatus.STOPPED;\n fns_0.forEach(fn_3 => fn_3?.());\n effects.current = /* @__PURE__ */new Map();\n transitionRef.current = null;\n queueMicrotask(() => {\n action(config.onDestroy?.actions);\n });\n };\n }, []);\n const getParams = useRef(() => ({\n action,\n actions,\n choose,\n computed,\n context,\n event: getEvent(),\n flush,\n guard,\n prop,\n refs,\n scope: {\n ...scope,\n ids: ids.current\n },\n send,\n state: getState(),\n track: useTrack\n }));\n config.watch?.(getParams.current());\n return {\n computed,\n context,\n event: getEvent(),\n prop,\n refs,\n scope: {\n ...scope,\n ids: ids.current\n },\n send,\n state: getState()\n };\n}\nfunction useRefs(refs) {\n const $ = _c(1);\n const ref = useRef(refs);\n let t0;\n if ($[0] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t0 = {\n get(key) {\n return ref.current[key];\n },\n set(key_0, value) {\n ref.current[key_0] = value;\n }\n };\n $[0] = t0;\n } else {\n t0 = $[0];\n }\n return t0;\n}\nfunction flush(fn) {\n queueMicrotask(() => {\n flushSync(() => fn());\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useRef } from \"react\";\nexport function useLiveRef(value) {\n const ref = useRef(value);\n ref.current = value;\n return ref;\n}\nexport function useProp(value) {\n const $ = _c(2);\n const ref = useLiveRef(value);\n let t0;\n if ($[0] !== ref) {\n t0 = function get(key) {\n return ref.current[key];\n };\n $[0] = ref;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useEffect, useRef } from \"react\";\nexport function useTrack(deps, effect) {\n const $ = _c(6);\n const render = useRef(false);\n const called = useRef(false);\n let t0;\n if ($[0] !== effect) {\n t0 = () => {\n const mounted = render.current;\n const run = mounted && called.current;\n if (run) {\n return effect();\n }\n called.current = true;\n };\n $[0] = effect;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n let t1;\n if ($[2] !== deps) {\n t1 = [...(deps ?? []).map(_temp)];\n $[2] = deps;\n $[3] = t1;\n } else {\n t1 = $[3];\n }\n useEffect(t0, t1);\n let t2;\n let t3;\n if ($[4] === Symbol.for(\"react.memo_cache_sentinel\")) {\n t2 = () => {\n render.current = true;\n return () => {\n render.current = false;\n };\n };\n t3 = [];\n $[4] = t2;\n $[5] = t3;\n } else {\n t2 = $[4];\n t3 = $[5];\n }\n useEffect(t2, t3);\n}\nfunction _temp(d) {\n return typeof d === \"function\" ? d() : d;\n}", "import { useControlledId } from \"@qualcomm-ui/react-core/state\";\nexport function useOptionalContentId(content, contentProps) {\n const id = useControlledId(contentProps?.id);\n return content ? id : \"\";\n}"],
|
|
5
|
+
"mappings": "AAAA,OAAS,wBAAAA,OAA4B,6BAC9B,IAAMC,GAAiBD,GAAqBE,GAAKA,CAAC,ECDzD,OAAS,UAAAC,EAAQ,YAAAC,OAAgB,QACjC,OAAS,uBAAAC,OAA2B,kCAC7B,SAASC,GAA0B,CACxC,GAAM,CAACC,EAAYC,CAAa,EAAIJ,GAAS,CAAC,CAAC,EACzCK,EAAeN,EAAO,EAAK,EAC3BO,EAAuBP,EAAO,CAAC,CAAC,EACtC,OAAAE,GAAoB,KAClBI,EAAa,QAAU,GACnB,KAAK,UAAUC,EAAqB,OAAO,IAAM,KAAK,UAAUH,CAAU,GAC5EC,EAAcE,EAAqB,OAAO,EAErC,IAAM,CACXD,EAAa,QAAU,EACzB,GACC,CAACF,CAAU,CAAC,EACR,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A0B,EACA,KAAA9B,EACA,KAAAQ,EACA,MAAO,CACL,GAAG/B,EACH,IAAKW,EAAI,OACX,EACA,KAAAuE,EACA,MAAOjC,EAAS,EAChB,MAAOkD,CACT,EAAE,EACF,OAAA3G,EAAO,QAAQwD,EAAU,QAAQ,CAAC,EAC3B,CACL,SAAApB,EACA,QAAAC,EACA,MAAOC,EAAS,EAChB,KAAAP,EACA,KAAAQ,EACA,MAAO,CACL,GAAG/B,EACH,IAAKW,EAAI,OACX,EACA,KAAAuE,EACA,MAAOjC,EAAS,CAClB,CACF,CACA,SAAST,GAAQT,EAAM,CACrB,IAAMqE,EAAIC,GAAG,CAAC,EACRC,EAAM1F,EAAOmB,CAAI,EACnBwE,EACJ,OAAIH,EAAE,CAAC,IAAM,OAAO,IAAI,2BAA2B,GACjDG,EAAK,CACH,IAAI1F,EAAK,CACP,OAAOyF,EAAI,QAAQzF,CAAG,CACxB,EACA,IAAIC,EAAOM,EAAO,CAChBkF,EAAI,QAAQxF,CAAK,EAAIM,CACvB,CACF,EACAgF,EAAE,CAAC,EAAIG,GAEPA,EAAKH,EAAE,CAAC,EAEHG,CACT,CACA,SAAS5E,GAAMe,EAAI,CACjB,eAAe,IAAM,CACnB+C,GAAU,IAAM/C,EAAG,CAAC,CACtB,CAAC,CACH,CGlWA,OAAS,mBAAA8D,OAAuB,gCACzB,SAASC,GAAqBC,EAASC,EAAc,CAC1D,IAAMC,EAAKJ,GAAgBG,GAAc,EAAE,EAC3C,OAAOD,EAAUE,EAAK,EACxB",
|
|
6
|
+
"names": ["createPropNormalizer", "normalizeProps", "v", "useRef", "useState", "useSafeLayoutEffect", "useBindableIdCollection", "collection", "setCollection", "isMountedRef", "pendingCollectionRef", "itemKey", "itemKey_0", "value", "onDestroy", "_removed", "rest", "itemKey_1", "rest_0", "itemKey_2", "value_0", "_c", "useEffect", "useRef", "useState", "useBindableId", "valueFromIdsProp", "$", "setValue", "isMountedRef", "pendingValueRef", "t0", "t1", "t2", "t3", "value", "opts", "prevValue", "useRef", "useState", "flushSync", "useSafeLayoutEffect", "identity", "isFunction", "useBindable", "props", "initial", "eq", "initialValue", "value", "setValue", "controlled", "valueRef", "prevValue", "setFn", "value2", "event", "prev", "next", "get", "value2_0", "nextValue", "prevValue2", "value2_1", "event_0", "_c", "useMemo", "useRef", "useState", "flushSync", "createScope", "useSafeLayoutEffect", "toArray", "isFunction", "isString", "INIT_STATE", "MachineStatus", "compact", "_c", "useRef", "useLiveRef", "value", "ref", "useProp", "$", "t0", "key", "_c", "useEffect", "useRef", "useTrack", "deps", "effect", "$", "render", "called", "t0", "t1", "_temp", "t2", "t3", "d", "useMachine", "config", "userProps", "opts", "debug", "args", "setSsr", "useState", "useSafeLayoutEffect", "scope", "useMemo", "getRootNode", "id", "ids2", "createScope", "configIds", "useBindableId", "useBindableIdCollection", "idsRef", "useLiveRef", "ids", "useRef", "key", "key_0", "key_1", "valueOrParams", "onDestroy", "params", "key_2", "value", "props", "compact", "prop", "useProp", "configContext", "useBindable", "flush", "computed", "context", "getEvent", "refs", "contextRef", "key_3", "key_4", "current", "key_5", "key_6", "value_0", "details", "useRefs", "key_7", "fn", "effects", "transitionRef", "actions", "key_8", "actionFn", "getParams", "getState", "state", "tag", "values", "guard", "guard2", "isFunction", "choose", "transitions", "toArray", "t", "isString", "effect", "keys", "fns", "s", "cleanups", "fn_0", "cleanup", "fn_1", "action", "keys_0", "strs", "key_9", "fn_2", "nextState", "details_0", "prevState", "cleanup_0", "cleanup2", "getCurrentState", "previousEventRef", "eventRef", "send", "event", "currentState", "transitions_0", "transition", "target", "changed", "flushSync", "hydratedStateRef", "statusRef", "MachineStatus", "started", "initialState", "INIT_STATE", "fns_0", "currentState_0", "fn_3", "useTrack", "$", "_c", "ref", "t0", "useControlledId", "useOptionalContentId", "content", "contentProps", "id"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-props.d.ts","sourceRoot":"","sources":["../../src/machine/normalize-props.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,6GAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable-id-collection.d.ts","sourceRoot":"","sources":["../../src/machine/use-bindable-id-collection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,oBAAoB,EAAE,IAAI,EAAC,MAAM,4BAA4B,CAAA;AAE1E,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,IAAI,KAAK,oBAAoB,CAC7E,GAAG,EACH,GAAG,CACJ,CAgFA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable-id.d.ts","sourceRoot":"","sources":["../../src/machine/use-bindable-id.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,4BAA4B,CAAA;AAkB1D,wBAAgB,aAAa,CAC3B,gBAAgB,CAAC,EAAE,MAAM,GACxB,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAiChC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Bindable, BindableParams, EventDetails } from "@qualcomm-ui/utils/machine";
|
|
2
|
+
export declare function useBindable<T, ChangeEvent extends EventDetails | void | null>(props: () => BindableParams<T, ChangeEvent>): Bindable<T, ChangeEvent>;
|
|
3
|
+
//# sourceMappingURL=use-bindable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bindable.d.ts","sourceRoot":"","sources":["../../src/machine/use-bindable.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,YAAY,EACb,MAAM,4BAA4B,CAAA;AAEnC,wBAAgB,WAAW,CAAC,CAAC,EAAE,WAAW,SAAS,YAAY,GAAG,IAAI,GAAG,IAAI,EAC3E,KAAK,EAAE,MAAM,cAAc,CAAC,CAAC,EAAE,WAAW,CAAC,GAC1C,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,CAiD1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Machine, type MachineConfig, type MachineSchema } from "@qualcomm-ui/utils/machine";
|
|
2
|
+
export interface UseMachineOpts {
|
|
3
|
+
/**
|
|
4
|
+
* If true, enable debug logging.
|
|
5
|
+
*
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
debug?: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function useMachine<T extends MachineSchema>(config: MachineConfig<T>, userProps?: Partial<T["props"]>, opts?: UseMachineOpts): Machine<T>;
|
|
11
|
+
//# sourceMappingURL=use-machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-machine.d.ts","sourceRoot":"","sources":["../../src/machine/use-machine.ts"],"names":[],"mappings":"AAWA,OAAO,EAcL,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAOnB,MAAM,4BAA4B,CAAA;AASnC,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,aAAa,EAChD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EACxB,SAAS,GAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAM,EACnC,IAAI,GAAE,cAAmB,GACxB,OAAO,CAAC,CAAC,CAAC,CAmXZ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Generates an optional content identifier based on the provided content and its
|
|
4
|
+
* properties.
|
|
5
|
+
*
|
|
6
|
+
* @param {ReactNode | boolean | undefined} content - The truthy value for which the ID is being generated. If no content is provided, an empty string is returned.
|
|
7
|
+
* @param {ComponentPropsWithRef<any> | undefined} contentProps - The properties of the content, which may include an ID.
|
|
8
|
+
* @return {string} The generated ID if content is provided; otherwise, returns an empty string.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useOptionalContentId(content: ReactNode | boolean | undefined, contentProps: ComponentPropsWithRef<any> | undefined): string;
|
|
11
|
+
//# sourceMappingURL=use-optional-content-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-optional-content-id.d.ts","sourceRoot":"","sources":["../../src/machine/use-optional-content-id.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,qBAAqB,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAI3D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,EACxC,YAAY,EAAE,qBAAqB,CAAC,GAAG,CAAC,GAAG,SAAS,GACnD,MAAM,CAGR"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Unlike state variables, updating a ref doesn't trigger a re-render. The ref
|
|
4
|
+
* always contains the most recent value, even in closure contexts like event
|
|
5
|
+
* handlers or effects. This creates a stable reference that doesn't change between
|
|
6
|
+
* renders.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useLiveRef<T>(value: T): RefObject<T>;
|
|
9
|
+
/**
|
|
10
|
+
* This hook provides a way to access the latest prop values in React components,
|
|
11
|
+
* particularly in scenarios where you need to reference them in callbacks, effects,
|
|
12
|
+
* or other asynchronous contexts.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useProp<T>(value: T): <K extends keyof T>(key: K) => T[K];
|
|
15
|
+
//# sourceMappingURL=use-prop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-prop.d.ts","sourceRoot":"","sources":["../../src/machine/use-prop.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,SAAS,EAAS,MAAM,OAAO,CAAA;AAE5C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAIpD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAEb,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,CAAC,KAAG,CAAC,CAAC,CAAC,CAAC,CAGrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-track.d.ts","sourceRoot":"","sources":["../../src/machine/use-track.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,YAAY,QAoBzD"}
|