@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 @@
|
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/toast/toaster.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,YAAY,EAAQ,MAAM,OAAO,CAAA;AAE9C,OAAO,EAKL,KAAK,eAAe,EAGpB,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAGxB,MAAM,gCAAgC,CAAA;AAMvC,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC,EACxD,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC;;;;;OAKG;IACH,QAAQ,EAAE,kBAAkB,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAA;IAExD;;;OAGG;IACH,OAAO,EAAE,UAAU,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EACH,OAAO,EACP,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,YAAY,CAyBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createGuardedContext as c}from"@qualcomm-ui/react-core/context";var[m,n]=c({hookName:"useTooltipContext",providerName:"<TooltipContextProvider>",strict:!0});import{c as p}from"react/compiler-runtime";import{createTooltipApi as u,tooltipMachine as l}from"@qualcomm-ui/core/tooltip";import{useOnDestroy as i}from"@qualcomm-ui/react-core/effects";import{normalizeProps as x,useMachine as T}from"@qualcomm-ui/react-core/machine";import{useControlledId as s}from"@qualcomm-ui/react-core/state";function D(t){let o=p(2),e=T(l,t),r;return o[0]!==e?(r=u(e,x),o[0]=e,o[1]=r):r=o[1],r}function P(t){let{id:o}=t;return n().getTooltipArrowBindings({id:s(o),onDestroy:i()})}function w(){let t=p(2),o=n(),e;return t[0]!==o?(e=o.getTooltipArrowTipBindings(),t[0]=o,t[1]=e):e=t[1],e}function h(t){let{id:o}=t;return n().getTooltipPositionerBindings({id:s(o),onDestroy:i()})}function v(t){let{id:o}=t;return n().getTooltipContentBindings({id:s(o),onDestroy:i()})}function M(t){let{id:o}=t;return n().getTooltipTriggerBindings({id:s(o),onDestroy:i()})}export{m as TooltipContextProvider,D as useTooltip,P as useTooltipArrow,w as useTooltipArrowTip,v as useTooltipContent,n as useTooltipContext,h as useTooltipPositioner,M as useTooltipTrigger};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/tooltip/tooltip-context.ts", "../../src/tooltip/use-tooltip.ts"],
|
|
4
|
+
"sourcesContent": ["import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TooltipContextProvider, useTooltipContext] = createGuardedContext({\n hookName: \"useTooltipContext\",\n providerName: \"<TooltipContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { createTooltipApi, tooltipMachine } from \"@qualcomm-ui/core/tooltip\";\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 { useTooltipContext } from \"./tooltip-context\";\nexport function useTooltip(props) {\n const $ = _c(2);\n const config = useMachine(tooltipMachine, props);\n let t0;\n if ($[0] !== config) {\n t0 = createTooltipApi(config, normalizeProps);\n $[0] = config;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTooltipArrow(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipArrowBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipArrowTip() {\n const $ = _c(2);\n const context = useTooltipContext();\n let t0;\n if ($[0] !== context) {\n t0 = context.getTooltipArrowTipBindings();\n $[0] = context;\n $[1] = t0;\n } else {\n t0 = $[1];\n }\n return t0;\n}\nexport function useTooltipPositioner(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipPositionerBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipContent(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipContentBindings({\n id: useControlledId(id),\n onDestroy: useOnDestroy()\n });\n}\nexport function useTooltipTrigger(t0) {\n const {\n id\n } = t0;\n const context = useTooltipContext();\n return context.getTooltipTriggerBindings({\n id: useControlledId(id),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AIJ,EAEJ,OADgBK,EAAkB,EACnB,0BAA0B,CACvC,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH,CACO,SAASK,EAAkBZ,EAAI,CACpC,GAAM,CACJ,GAAAI,CACF,EAAIJ,EAEJ,OADgBK,EAAkB,EACnB,0BAA0B,CACvC,GAAIC,EAAgBF,CAAE,EACtB,UAAWG,EAAa,CAC1B,CAAC,CACH",
|
|
6
|
+
"names": ["createGuardedContext", "TooltipContextProvider", "useTooltipContext", "_c", "createTooltipApi", "tooltipMachine", "useOnDestroy", "normalizeProps", "useMachine", "useControlledId", "useTooltip", "props", "$", "_c", "config", "useMachine", "tooltipMachine", "t0", "createTooltipApi", "normalizeProps", "useTooltipArrow", "id", "useTooltipContext", "useControlledId", "useOnDestroy", "useTooltipArrowTip", "context", "useTooltipPositioner", "useTooltipContent", "useTooltipTrigger"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-context.d.ts","sourceRoot":"","sources":["../../src/tooltip/tooltip-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAA;AAGzD,eAAO,MAAO,sBAAsB,wCAAE,iBAAiB,0CAKnD,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type TooltipApi, type TooltipApiProps, type TooltipArrowBindings, type TooltipArrowTipBindings, type TooltipContentBindings, type TooltipPositionerBindings, type TooltipTriggerBindings } from "@qualcomm-ui/core/tooltip";
|
|
2
|
+
import type { IdProp } from "@qualcomm-ui/react-core/system";
|
|
3
|
+
export declare function useTooltip(props: TooltipApiProps): TooltipApi;
|
|
4
|
+
export declare function useTooltipArrow({ id }: IdProp): TooltipArrowBindings;
|
|
5
|
+
export declare function useTooltipArrowTip(): TooltipArrowTipBindings;
|
|
6
|
+
export declare function useTooltipPositioner({ id }: IdProp): TooltipPositionerBindings;
|
|
7
|
+
export declare function useTooltipContent({ id }: IdProp): TooltipContentBindings;
|
|
8
|
+
export declare function useTooltipTrigger({ id }: IdProp): TooltipTriggerBindings;
|
|
9
|
+
//# sourceMappingURL=use-tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/use-tooltip.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAA;AAIlC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAI1D,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAG7D;AAED,wBAAgB,eAAe,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,oBAAoB,CAMlE;AAED,wBAAgB,kBAAkB,IAAI,uBAAuB,CAG5D;AAED,wBAAgB,oBAAoB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,yBAAyB,CAM5E;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,sBAAsB,CAMtE;AAED,wBAAgB,iBAAiB,CAAC,EAAC,EAAE,EAAC,EAAE,MAAM,GAAG,sBAAsB,CAMtE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { AnimationEasing } from "@qualcomm-ui/utils/transitions";
|
|
3
|
+
/**
|
|
4
|
+
* CSS hack to force a repaint
|
|
5
|
+
*/
|
|
6
|
+
export declare function reflow(node: Element): void;
|
|
7
|
+
interface ComponentProps {
|
|
8
|
+
easing: AnimationEasing;
|
|
9
|
+
style: CSSProperties | undefined;
|
|
10
|
+
timeout: number | "auto" | {
|
|
11
|
+
enter?: number;
|
|
12
|
+
exit?: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface Options {
|
|
16
|
+
mode: "enter" | "exit";
|
|
17
|
+
}
|
|
18
|
+
interface TransitionProps {
|
|
19
|
+
delay: string | undefined;
|
|
20
|
+
duration: string | number;
|
|
21
|
+
easing: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=get-transition-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-transition-props.d.ts","sourceRoot":"","sources":["../../src/transitions/get-transition-props.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAA;AAExC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAEnE;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAK1C;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,aAAa,GAAG,SAAS,CAAA;IAChC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;CAC3D;AAED,UAAU,OAAO;IACf,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;CACvB;AAED,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,OAAO,GACf,eAAe,CAcjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function i(o){o.scrollTop=o.scrollTop}function a(o,e){let{easing:n,style:r={},timeout:t}=o;return{delay:r.transitionDelay,duration:r.transitionDuration??(typeof t=="number"||t==="auto"?t:t[e.mode]||0),easing:r.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n)}}export{a as getTransitionProps,i as reflow};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/transitions/get-transition-props.ts"],
|
|
4
|
+
"sourcesContent": ["export function reflow(node) {\n node.scrollTop = node.scrollTop;\n}\nexport function getTransitionProps(props, options) {\n const {\n easing,\n style = {},\n timeout\n } = props;\n return {\n delay: style.transitionDelay,\n duration: style.transitionDuration ?? (typeof timeout === \"number\" || timeout === \"auto\" ? timeout : timeout[options.mode] || 0),\n easing: style.transitionTimingFunction ?? (typeof easing === \"object\" ? easing[options.mode] : easing)\n };\n}"],
|
|
5
|
+
"mappings": "AAAO,SAASA,EAAOC,EAAM,CAC3BA,EAAK,UAAYA,EAAK,SACxB,CACO,SAASC,EAAmBC,EAAOC,EAAS,CACjD,GAAM,CACJ,OAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,QAAAC,CACF,EAAIJ,EACJ,MAAO,CACL,MAAOG,EAAM,gBACb,SAAUA,EAAM,qBAAuB,OAAOC,GAAY,UAAYA,IAAY,OAASA,EAAUA,EAAQH,EAAQ,IAAI,GAAK,GAC9H,OAAQE,EAAM,2BAA6B,OAAOD,GAAW,SAAWA,EAAOD,EAAQ,IAAI,EAAIC,EACjG,CACF",
|
|
6
|
+
"names": ["reflow", "node", "getTransitionProps", "props", "options", "easing", "style", "timeout"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode, Ref } from "react";
|
|
2
|
+
export type EndHandler<RefElement extends HTMLElement> = (node: RefElement | null, done: () => void) => void;
|
|
3
|
+
export type EnterHandler<RefElement extends HTMLElement> = (node: RefElement | null, isAppearing: boolean) => void;
|
|
4
|
+
export type ExitHandler<RefElement extends HTMLElement> = (node: RefElement | null) => void;
|
|
5
|
+
/**
|
|
6
|
+
* @interface
|
|
7
|
+
*/
|
|
8
|
+
export type TransitionProps<RefElement extends HTMLElement> = {
|
|
9
|
+
/**
|
|
10
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
11
|
+
* node and a done callback. Allows for more fine-grained transition end
|
|
12
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
13
|
+
*/
|
|
14
|
+
addEndListener?: EndHandler<RefElement> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to show the animation when the component is first mounted.
|
|
17
|
+
*/
|
|
18
|
+
appear?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* React Children
|
|
21
|
+
*/
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Class applied to the root element.
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Show the component; triggers the enter or exit states
|
|
29
|
+
*/
|
|
30
|
+
in?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* By default, the child component is mounted immediately along with the
|
|
33
|
+
* parent Transition component. If you want to "lazy mount" the component on
|
|
34
|
+
* the first {@link in} = `true` you can set {@link mountOnEnter}. After the
|
|
35
|
+
* first enter transition the component will stay mounted, even on "exited",
|
|
36
|
+
* unless you also specify {@link unmountOnExit}.
|
|
37
|
+
*/
|
|
38
|
+
mountOnEnter?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* A React reference to DOM element that need to transition. {@link https://stackoverflow.com/a/51127130/4671932 example}.
|
|
41
|
+
* When `nodeRef` prop is used, node is not passed to callback functions (e.g.
|
|
42
|
+
* onEnter) because user already has direct access to the node. When changing
|
|
43
|
+
* `key` prop of `Transition` in a `TransitionGroup` a new `nodeRef` needs to be
|
|
44
|
+
* provided to `Transition` with changed `key` prop. {@link https://github.com/reactjs/react-transition-group/blob/master/test/Transition-test.js see also}.
|
|
45
|
+
*/
|
|
46
|
+
nodeRef?: Ref<RefElement> | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Callback fired before the "entering" status is applied. An extra
|
|
49
|
+
* parameter `isAppearing` is supplied to indicate if the enter stage is
|
|
50
|
+
* occurring on the initial mount
|
|
51
|
+
*/
|
|
52
|
+
onEnter?: EnterHandler<RefElement> | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
55
|
+
* isAppearing is supplied to indicate if the enter stage is occurring on
|
|
56
|
+
* the initial mount
|
|
57
|
+
*
|
|
58
|
+
* @interface
|
|
59
|
+
*/
|
|
60
|
+
onEntered?: EnterHandler<RefElement> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
63
|
+
* isAppearing is supplied to indicate if the enter stage is occurring on
|
|
64
|
+
* the initial mount
|
|
65
|
+
*/
|
|
66
|
+
onEntering?: EnterHandler<RefElement> | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Callback fired before the "exiting" status is applied.
|
|
69
|
+
*/
|
|
70
|
+
onExit?: ExitHandler<RefElement> | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Callback fired after the "exited" status is applied.
|
|
73
|
+
*/
|
|
74
|
+
onExited?: ExitHandler<RefElement> | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Callback fired after the "exiting" status is applied.
|
|
77
|
+
*/
|
|
78
|
+
onExiting?: ExitHandler<RefElement> | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Inline styles
|
|
81
|
+
*/
|
|
82
|
+
style?: CSSProperties;
|
|
83
|
+
/**
|
|
84
|
+
* The duration of the transition, in milliseconds. Required unless
|
|
85
|
+
* addEndListener is provided.
|
|
86
|
+
*
|
|
87
|
+
* You may specify a single timeout for all transitions:
|
|
88
|
+
*
|
|
89
|
+
* ```js
|
|
90
|
+
* timeout={500}
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* or individually:
|
|
94
|
+
*
|
|
95
|
+
* ```js
|
|
96
|
+
* timeout={{
|
|
97
|
+
* appear: 500,
|
|
98
|
+
* enter: 300,
|
|
99
|
+
* exit: 500,
|
|
100
|
+
* }}
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* appear defaults to the value of `enter`.
|
|
104
|
+
* enter defaults to `0`.
|
|
105
|
+
* exit defaults to `0`.
|
|
106
|
+
*/
|
|
107
|
+
timeout?: number | {
|
|
108
|
+
appear?: number | undefined;
|
|
109
|
+
enter?: number | undefined;
|
|
110
|
+
exit?: number | undefined;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* By default, the child component stays mounted after it reaches the
|
|
114
|
+
* 'exited' state. Set `unmountOnExit` if you'd prefer to unmount the
|
|
115
|
+
* component after it finishes exiting.
|
|
116
|
+
*/
|
|
117
|
+
unmountOnExit?: boolean | undefined;
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=transitions.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitions.types.d.ts","sourceRoot":"","sources":["../../src/transitions/transitions.types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,GAAG,EAAC,MAAM,OAAO,CAAA;AAExD,MAAM,MAAM,UAAU,CAAC,UAAU,SAAS,WAAW,IAAI,CACvD,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,IAAI,EAAE,MAAM,IAAI,KACb,IAAI,CAAA;AAET,MAAM,MAAM,YAAY,CAAC,UAAU,SAAS,WAAW,IAAI,CACzD,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,WAAW,EAA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J,MAAM,GACN;QACE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC1B,CAAA;IAEL;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACpC,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { type RenderStrategyApiProps } from "@qualcomm-ui/core/presence";
|
|
3
|
+
import { type TreeApi, type TreeApiProps } from "@qualcomm-ui/core/tree";
|
|
4
|
+
import { type ElementRenderProp, type IdProp, type RenderProp } from "@qualcomm-ui/react-core/system";
|
|
5
|
+
import type { TreeNode } from "@qualcomm-ui/utils/collection";
|
|
6
|
+
export interface CoreTreeRootProps<T extends TreeNode = TreeNode> extends IdProp, Omit<ElementRenderProp<"div">, "dir">, TreeApiProps<T>, RenderStrategyApiProps {
|
|
7
|
+
}
|
|
8
|
+
export declare function CoreTreeRoot<T extends TreeNode = TreeNode>({ children, id, ...props }: CoreTreeRootProps<T>): ReactElement;
|
|
9
|
+
export interface CoreTreeLabelProps extends IdProp, ElementRenderProp<"div"> {
|
|
10
|
+
}
|
|
11
|
+
export declare function CoreTreeLabel({ children, id, ...props }: CoreTreeLabelProps): ReactElement;
|
|
12
|
+
export interface CoreTreeBranchNodeProps extends ElementRenderProp<"div"> {
|
|
13
|
+
}
|
|
14
|
+
export declare function CoreTreeBranchNode({ children, ...props }: CoreTreeBranchNodeProps): ReactElement;
|
|
15
|
+
export interface CoreTreeBranchIndentGuideProps extends ElementRenderProp<"div"> {
|
|
16
|
+
}
|
|
17
|
+
export declare function CoreTreeBranchIndentGuide({ children, ...props }: CoreTreeBranchIndentGuideProps): ReactElement;
|
|
18
|
+
export interface CoreTreeBranchTriggerProps extends ElementRenderProp<"div"> {
|
|
19
|
+
}
|
|
20
|
+
export declare function CoreTreeBranchTrigger({ children, ...props }: CoreTreeBranchTriggerProps): ReactElement;
|
|
21
|
+
export interface CoreTreeContextProps<T extends TreeNode = TreeNode> {
|
|
22
|
+
/**
|
|
23
|
+
* {@link
|
|
24
|
+
* https://react-next.qui.qualcomm.com/render-props#render-prop
|
|
25
|
+
* Render Prop}
|
|
26
|
+
*
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
children: RenderProp<TreeApi<T>>;
|
|
30
|
+
}
|
|
31
|
+
export declare function CoreTreeContext({ children }: CoreTreeRootProps): ReactNode;
|
|
32
|
+
export interface CoreTreeNodeIndicatorProps extends ElementRenderProp<"div"> {
|
|
33
|
+
}
|
|
34
|
+
export declare function CoreTreeNodeIndicator({ children, ...props }: CoreTreeNodeIndicatorProps): ReactElement;
|
|
35
|
+
export interface CoreTreeNodeTextProps extends ElementRenderProp<"span"> {
|
|
36
|
+
}
|
|
37
|
+
export declare function CoreTreeNodeText({ children, ...props }: CoreTreeNodeTextProps): ReactElement;
|
|
38
|
+
export interface CoreTreeLeafNodeProps extends ElementRenderProp<"div"> {
|
|
39
|
+
}
|
|
40
|
+
export declare function CoreTreeLeafNode({ children, ...props }: CoreTreeLeafNodeProps): ReactElement;
|
|
41
|
+
export interface CoreTreeNodeCheckboxProps extends ElementRenderProp<"span"> {
|
|
42
|
+
/**
|
|
43
|
+
* React Node rendered when the node is checked.
|
|
44
|
+
*
|
|
45
|
+
* @default CheckmarkCheckedIcon
|
|
46
|
+
*/
|
|
47
|
+
checked?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* React Node rendered when the node is indeterminate.
|
|
50
|
+
*
|
|
51
|
+
* @default CheckmarkIndeterminateIcon
|
|
52
|
+
*/
|
|
53
|
+
indeterminate?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* React Node rendered when the node is unchecked.
|
|
56
|
+
*/
|
|
57
|
+
unchecked?: ReactNode;
|
|
58
|
+
}
|
|
59
|
+
export declare function CoreTreeNodeCheckbox({ checked, indeterminate, unchecked, ...props }: CoreTreeNodeCheckboxProps): ReactElement;
|
|
60
|
+
export interface CoreTreeNodeActionProps extends ElementRenderProp<"button"> {
|
|
61
|
+
}
|
|
62
|
+
export declare function CoreTreeNodeAction({ children, ...props }: CoreTreeNodeActionProps): ReactElement;
|
|
63
|
+
//# sourceMappingURL=core-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-tree.d.ts","sourceRoot":"","sources":["../../src/tree/core-tree.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,YAAY,EAElB,MAAM,wBAAwB,CAAA;AAM/B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,MAAM,EAEX,KAAK,UAAU,EAEhB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAA;AAM3D,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CAC9D,SAAQ,MAAM,EACZ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EACrC,YAAY,CAAC,CAAC,CAAC,EACf,sBAAsB;CAAG;AAE7B,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EAC1D,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,YAAY,CAuBrC;AAED,MAAM,WAAW,kBAAmB,SAAQ,MAAM,EAAE,iBAAiB,CAAC,KAAK,CAAC;CAAG;AAE/E,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,kBA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atC;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IAC1E;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAA;IAEnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,aAAa,EACb,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,GAAG,YAAY,CA6B1C;AAED,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB,CAAC,QAAQ,CAAC;CAAG;AAE/E,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,GAAG,YAAY,CAaxC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CoreTreeBranchIndentGuide, type CoreTreeBranchIndentGuideProps, CoreTreeBranchNode, type CoreTreeBranchNodeProps, CoreTreeBranchTrigger, type CoreTreeBranchTriggerProps, CoreTreeContext, type CoreTreeContextProps, CoreTreeLabel, type CoreTreeLabelProps, CoreTreeLeafNode, type CoreTreeLeafNodeProps, CoreTreeNodeAction, type CoreTreeNodeActionProps, CoreTreeNodeCheckbox, type CoreTreeNodeCheckboxProps, CoreTreeNodeIndicator, type CoreTreeNodeIndicatorProps, CoreTreeNodeText, type CoreTreeNodeTextProps, CoreTreeRoot, type CoreTreeRootProps } from "./core-tree";
|
|
2
|
+
export * from "./tree-context";
|
|
3
|
+
export * from "./tree-node-context";
|
|
4
|
+
export * from "./use-tree";
|
|
5
|
+
export type { CoreTreeRootProps, CoreTreeLabelProps, CoreTreeBranchNodeProps, CoreTreeBranchIndentGuideProps, CoreTreeBranchTriggerProps, CoreTreeContextProps, CoreTreeNodeIndicatorProps, CoreTreeNodeTextProps, CoreTreeLeafNodeProps, CoreTreeNodeCheckboxProps, CoreTreeNodeActionProps, };
|
|
6
|
+
type CoreTreeComponent = {
|
|
7
|
+
BranchIndentGuide: typeof CoreTreeBranchIndentGuide;
|
|
8
|
+
BranchNode: typeof CoreTreeBranchNode;
|
|
9
|
+
BranchTrigger: typeof CoreTreeBranchTrigger;
|
|
10
|
+
Context: typeof CoreTreeContext;
|
|
11
|
+
Label: typeof CoreTreeLabel;
|
|
12
|
+
LeafNode: typeof CoreTreeLeafNode;
|
|
13
|
+
NodeAction: typeof CoreTreeNodeAction;
|
|
14
|
+
NodeCheckbox: typeof CoreTreeNodeCheckbox;
|
|
15
|
+
NodeIndicator: typeof CoreTreeNodeIndicator;
|
|
16
|
+
NodeText: typeof CoreTreeNodeText;
|
|
17
|
+
Root: typeof CoreTreeRoot;
|
|
18
|
+
};
|
|
19
|
+
export declare const CoreTree: CoreTreeComponent;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,8BAA8B,EACnC,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,eAAe,EACf,KAAK,oBAAoB,EACzB,aAAa,EACb,KAAK,kBAAkB,EACvB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,EAC/B,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,YAAY,EACZ,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAA;AAEpB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAE1B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,EAC9B,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,GACxB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,iBAAiB,EAAE,OAAO,yBAAyB,CAAA;IACnD,UAAU,EAAE,OAAO,kBAAkB,CAAA;IACrC,aAAa,EAAE,OAAO,qBAAqB,CAAA;IAC3C,OAAO,EAAE,OAAO,eAAe,CAAA;IAC/B,KAAK,EAAE,OAAO,aAAa,CAAA;IAC3B,QAAQ,EAAE,OAAO,gBAAgB,CAAA;IACjC,UAAU,EAAE,OAAO,kBAAkB,CAAA;IACrC,YAAY,EAAE,OAAO,oBAAoB,CAAA;IACzC,aAAa,EAAE,OAAO,qBAAqB,CAAA;IAC3C,QAAQ,EAAE,OAAO,gBAAgB,CAAA;IACjC,IAAI,EAAE,OAAO,YAAY,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,iBAYtB,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as M}from"react/compiler-runtime";import{jsx as c}from"react/jsx-runtime";import{splitRenderStrategyProps as _}from"@qualcomm-ui/core/presence";import{createTreeApi as j,splitTreeProps as z,treeMachine as E}from"@qualcomm-ui/core/tree";import{useOnDestroy as O}from"@qualcomm-ui/react-core/effects";import{useLocaleContext as q}from"@qualcomm-ui/react-core/locale";import{normalizeProps as w,useMachine as F}from"@qualcomm-ui/react-core/machine";import{RenderStrategyPropsProvider as H}from"@qualcomm-ui/react-core/presence";import{useControlledId as h}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as p,renderProp as J}from"@qualcomm-ui/react-core/system";import{mergeProps as C}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext as $}from"@qualcomm-ui/react-core/context";var[T,D]=$({hookName:"useTreeContext",providerName:"<TreeContextProvider>",strict:!0});function d(){return D()}import{createGuardedContext as g}from"@qualcomm-ui/react-core/context";var[W,f]=g({hookName:"useTreeNodeContext",providerName:"<TreeNodeContextProvider>",strict:!0}),[X,i]=g({hookName:"useTreeNodeContext",providerName:"<TreeNodeContextProvider>",strict:!0});function P(e){let{children:o,id:t,...r}=e,[n,s]=_(r),[a,x]=z(s),{dir:m}=q(),G=F(E,{dir:m,...a}),u=j(G,w),A=C(u.getRootBindings({id:h(t)}),x);return c(T,{value:u,children:c(H,{value:n,children:c(p,{as:"div",...A,children:o})})})}function l(e){let{children:o,id:t,...r}=e,n=d(),s=C(n.getLabelBindings({id:h(t),onDestroy:O()}),r);return c(p,{as:"div",...s,children:o})}function N(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchNodeBindings(n),t);return c(p,{as:"div",...s,children:o})}function B(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchIndentGuideBindings(n),t);return c(p,{as:"div",...s,children:o})}function v(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getBranchTriggerBindings(n),t);return c(p,{as:"div",...s,children:o})}function k(e){let o=M(3),{children:t}=e,r=d(),n;return o[0]!==t||o[1]!==r?(n=J(t,r),o[0]=t,o[1]=r,o[2]=n):n=o[2],n}function S(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeIndicatorBindings(n),t);return c(p,{as:"div",...s,children:o})}function I(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeTextBindings(n),t);return c(p,{as:"span",...s,children:o})}function b(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getLeafNodeBindings(n),t);return c(p,{as:"div",...s,children:o})}function L(e){let{checked:o,indeterminate:t,unchecked:r,...n}=e,s=d(),a=i(),x=C(s.getNodeCheckboxBindings(a),n),m=s.getNodeState(a);return m.checked==="indeterminate"?c(p,{as:"span",...x,children:t}):m.checked?c(p,{as:"span",...x,children:o}):c(p,{as:"span",...x,children:r})}function y(e){let{children:o,...t}=e,r=d(),n=i(),s=C(r.getNodeActionBindings(n),t);return c(p,{as:"button",...s,children:o})}import{c as R}from"react/compiler-runtime";import{useRenderStrategyPropsContext as K}from"@qualcomm-ui/react-core/presence";function fe(){let e=R(7),o=d(),t=i(),r=f(),n=K(),s=r.expanded,a;e[0]!==t||e[1]!==o?(a=o.getBranchBindings(t),e[0]=t,e[1]=o,e[2]=a):a=e[2];let x;return e[3]!==r.expanded||e[4]!==n||e[5]!==a?(x={open:s,...n,...a},e[3]=r.expanded,e[4]=n,e[5]=a,e[6]=x):x=e[6],x}function he(){let e=R(3),o=d(),t=i(),r;return e[0]!==t||e[1]!==o?(r=o.getBranchContentBindings(t),e[0]=t,e[1]=o,e[2]=r):r=e[2],r}var Ne={BranchIndentGuide:B,BranchNode:N,BranchTrigger:v,Context:k,Label:l,LeafNode:b,NodeAction:y,NodeCheckbox:L,NodeIndicator:S,NodeText:I,Root:P};export{Ne as CoreTree,T as TreeContextProvider,X as TreeNodePropsContextProvider,W as TreeNodeStateContextProvider,fe as useTreeBranch,he as useTreeBranchContent,d as useTreeContext,D as useTreeContextImpl,i as useTreeNodePropsContext,f as useTreeNodeStateContext};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/tree/core-tree.tsx", "../../src/tree/tree-context.ts", "../../src/tree/tree-node-context.ts", "../../src/tree/use-tree.ts", "../../src/tree/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { splitRenderStrategyProps } from \"@qualcomm-ui/core/presence\";\nimport { createTreeApi, splitTreeProps, treeMachine } from \"@qualcomm-ui/core/tree\";\nimport { useOnDestroy } from \"@qualcomm-ui/react-core/effects\";\nimport { useLocaleContext } from \"@qualcomm-ui/react-core/locale\";\nimport { normalizeProps, useMachine } from \"@qualcomm-ui/react-core/machine\";\nimport { RenderStrategyPropsProvider } from \"@qualcomm-ui/react-core/presence\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement, renderProp } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { TreeContextProvider, useTreeContext } from \"./tree-context\";\nimport { useTreeNodePropsContext } from \"./tree-node-context\";\nexport function CoreTreeRoot(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const [renderStrategyProps, localTreeProps] = splitRenderStrategyProps(props);\n const [treeProps, localProps] = splitTreeProps(localTreeProps);\n const {\n dir\n } = useLocaleContext();\n const machine = useMachine(treeMachine, {\n dir,\n ...treeProps\n });\n const api = createTreeApi(machine, normalizeProps);\n const mergedProps = mergeProps(api.getRootBindings({\n id: useControlledId(id)\n }), localProps);\n return jsx(TreeContextProvider, {\n value: api,\n children: jsx(RenderStrategyPropsProvider, {\n value: renderStrategyProps,\n children: jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n })\n })\n });\n}\nexport function CoreTreeLabel(t0) {\n const {\n children,\n id,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const mergedProps = mergeProps(treeContext.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 CoreTreeBranchNode(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchNodeBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeBranchIndentGuide(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchIndentGuideBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeBranchTrigger(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getBranchTriggerBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const treeContext = useTreeContext();\n let t1;\n if ($[0] !== children || $[1] !== treeContext) {\n t1 = renderProp(children, treeContext);\n $[0] = children;\n $[1] = treeContext;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}\nexport function CoreTreeNodeIndicator(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeIndicatorBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeNodeText(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeTextBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeLeafNode(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getLeafNodeBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}\nexport function CoreTreeNodeCheckbox(t0) {\n const {\n checked,\n indeterminate,\n unchecked,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeCheckboxBindings(nodeProps), props);\n const nodeState = treeContext.getNodeState(nodeProps);\n if (nodeState.checked === \"indeterminate\") {\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: indeterminate\n });\n } else {\n if (nodeState.checked) {\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: checked\n });\n }\n }\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children: unchecked\n });\n}\nexport function CoreTreeNodeAction(t0) {\n const {\n children,\n ...props\n } = t0;\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const mergedProps = mergeProps(treeContext.getNodeActionBindings(nodeProps), props);\n return jsx(PolymorphicElement, {\n as: \"button\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TreeContextProvider, useTreeContextImpl] = createGuardedContext({\n hookName: \"useTreeContext\",\n providerName: \"<TreeContextProvider>\",\n strict: true\n});\nexport function useTreeContext() {\n return useTreeContextImpl();\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [TreeNodeStateContextProvider, useTreeNodeStateContext] = createGuardedContext({\n hookName: \"useTreeNodeContext\",\n providerName: \"<TreeNodeContextProvider>\",\n strict: true\n});\nexport const [TreeNodePropsContextProvider, useTreeNodePropsContext] = createGuardedContext({\n hookName: \"useTreeNodeContext\",\n providerName: \"<TreeNodeContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { useRenderStrategyPropsContext } from \"@qualcomm-ui/react-core/presence\";\nimport { useTreeContext } from \"./tree-context\";\nimport { useTreeNodePropsContext, useTreeNodeStateContext } from \"./tree-node-context\";\nexport function useTreeBranch() {\n const $ = _c(7);\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n const nodeState = useTreeNodeStateContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const t0 = nodeState.expanded;\n let t1;\n if ($[0] !== nodeProps || $[1] !== treeContext) {\n t1 = treeContext.getBranchBindings(nodeProps);\n $[0] = nodeProps;\n $[1] = treeContext;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n let t2;\n if ($[3] !== nodeState.expanded || $[4] !== renderStrategyProps || $[5] !== t1) {\n t2 = {\n open: t0,\n ...renderStrategyProps,\n ...t1\n };\n $[3] = nodeState.expanded;\n $[4] = renderStrategyProps;\n $[5] = t1;\n $[6] = t2;\n } else {\n t2 = $[6];\n }\n return t2;\n}\nexport function useTreeBranchContent() {\n const $ = _c(3);\n const treeContext = useTreeContext();\n const nodeProps = useTreeNodePropsContext();\n let t0;\n if ($[0] !== nodeProps || $[1] !== treeContext) {\n t0 = treeContext.getBranchContentBindings(nodeProps);\n $[0] = nodeProps;\n $[1] = treeContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { CoreTreeBranchIndentGuide, CoreTreeBranchNode, CoreTreeBranchTrigger, CoreTreeContext, CoreTreeLabel, CoreTreeLeafNode, CoreTreeNodeAction, CoreTreeNodeCheckbox, CoreTreeNodeIndicator, CoreTreeNodeText, CoreTreeRoot } from \"./core-tree\";\nexport * from \"./tree-context\";\nexport * from \"./tree-node-context\";\nexport * from \"./use-tree\";\nexport const CoreTree = {\n BranchIndentGuide: CoreTreeBranchIndentGuide,\n BranchNode: CoreTreeBranchNode,\n BranchTrigger: CoreTreeBranchTrigger,\n Context: CoreTreeContext,\n Label: CoreTreeLabel,\n LeafNode: CoreTreeLeafNode,\n NodeAction: CoreTreeNodeAction,\n NodeCheckbox: CoreTreeNodeCheckbox,\n NodeIndicator: CoreTreeNodeIndicator,\n NodeText: CoreTreeNodeText,\n Root: CoreTreeRoot\n};"],
|
|
5
|
+
"mappings": "AAAA,OAAS,KAAKA,MAAU,yBACxB,OAAS,OAAAC,MAAW,oBACpB,OAAS,4BAAAC,MAAgC,6BACzC,OAAS,iBAAAC,EAAe,kBAAAC,EAAgB,eAAAC,MAAmB,yBAC3D,OAAS,gBAAAC,MAAoB,kCAC7B,OAAS,oBAAAC,MAAwB,iCACjC,OAAS,kBAAAC,EAAgB,cAAAC,MAAkB,kCAC3C,OAAS,+BAAAC,MAAmC,mCAC5C,OAAS,mBAAAC,MAAuB,gCAChC,OAAS,sBAAAC,EAAoB,cAAAC,MAAkB,iCAC/C,OAAS,cAAAC,MAAk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,CAAC,EAAII,EACPJ,EAAE,CAAC,EAAIE,EACPF,EAAE,CAAC,EAAIU,GAEPA,EAAKV,EAAE,CAAC,EAEHU,CACT,CC9CO,IAAMI,GAAW,CACtB,kBAAmBC,EACnB,WAAYC,EACZ,cAAeC,EACf,QAASC,EACT,MAAOC,EACP,SAAUC,EACV,WAAYC,EACZ,aAAcC,EACd,cAAeC,EACf,SAAUC,EACV,KAAMC,CACR",
|
|
6
|
+
"names": ["_c", "jsx", "splitRenderStrategyProps", "createTreeApi", "splitTreeProps", "treeMachine", "useOnDestroy", "useLocaleContext", "normalizeProps", "useMachine", "RenderStrategyPropsProvider", "useControlledId", "PolymorphicElement", "renderProp", "mergeProps", "createGuardedContext", "TreeContextProvider", "useTreeContextImpl", "useTreeContext", "createGuardedContext", "TreeNodeStateContextProvider", "useTreeNodeStateContext", "TreeNodePropsContextProvider", "useTreeNodePropsContext", "CoreTreeRoot", "t0", "children", "id", "props", "renderStrategyProps", "localTreeProps", "splitRenderStrategyProps", "treeProps", "localProps", "splitTreeProps", "dir", "useLocaleContext", "machine", "useMachine", "treeMachine", "api", "createTreeApi", "normalizeProps", "mergedProps", "mergeProps", "useControlledId", "jsx", "TreeContextProvider", "RenderStrategyPropsProvider", "PolymorphicElement", "CoreTreeLabel", "treeContext", "useTreeContext", "useOnDestroy", "CoreTreeBranchNode", "nodeProps", "useTreeNodePropsContext", "CoreTreeBranchIndentGuide", "CoreTreeBranchTrigger", "CoreTreeContext", "$", "_c", "t1", "renderProp", "CoreTreeNodeIndicator", "CoreTreeNodeText", "CoreTreeLeafNode", "CoreTreeNodeCheckbox", "checked", "indeterminate", "unchecked", "nodeState", "CoreTreeNodeAction", "_c", "useRenderStrategyPropsContext", "useTreeBranch", "$", "_c", "treeContext", "useTreeContext", "nodeProps", "useTreeNodePropsContext", "nodeState", "useTreeNodeStateContext", "renderStrategyProps", "useRenderStrategyPropsContext", "t0", "t1", "t2", "useTreeBranchContent", "CoreTree", "CoreTreeBranchIndentGuide", "CoreTreeBranchNode", "CoreTreeBranchTrigger", "CoreTreeContext", "CoreTreeLabel", "CoreTreeLeafNode", "CoreTreeNodeAction", "CoreTreeNodeCheckbox", "CoreTreeNodeIndicator", "CoreTreeNodeText", "CoreTreeRoot"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TreeApi } from "@qualcomm-ui/core/tree";
|
|
2
|
+
import type { TreeNode } from "@qualcomm-ui/utils/collection";
|
|
3
|
+
export interface UseTreeContext<T extends TreeNode> extends TreeApi<T> {
|
|
4
|
+
}
|
|
5
|
+
export declare const TreeContextProvider: import("react").Provider<UseTreeContext<any>>, useTreeContextImpl: (requireContext?: boolean) => UseTreeContext<any>;
|
|
6
|
+
export declare function useTreeContext<T extends TreeNode = TreeNode>(): TreeApi<T>;
|
|
7
|
+
//# sourceMappingURL=tree-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-context.d.ts","sourceRoot":"","sources":["../../src/tree/tree-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAA;AAEnD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAA;AAE3D,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAO,mBAAmB,iDAAE,kBAAkB,mDAMnD,CAAA;AAEF,wBAAgB,cAAc,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAE1E"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeProps, NodeState } from "@qualcomm-ui/core/tree";
|
|
2
|
+
export declare const TreeNodeStateContextProvider: import("react").Provider<NodeState<any>>, useTreeNodeStateContext: (requireContext?: boolean) => NodeState<any>;
|
|
3
|
+
export declare const TreeNodePropsContextProvider: import("react").Provider<NodeProps<any>>, useTreeNodePropsContext: (requireContext?: boolean) => NodeProps<any>;
|
|
4
|
+
//# sourceMappingURL=tree-node-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node-context.d.ts","sourceRoot":"","sources":["../../src/tree/tree-node-context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,SAAS,EAAE,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAGhE,eAAO,MAAO,4BAA4B,4CAAE,uBAAuB,8CAK/D,CAAA;AAEJ,eAAO,MAAO,4BAA4B,4CAAE,uBAAuB,8CAK/D,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { TreeBranchBindings, TreeBranchContentBindings } from "@qualcomm-ui/core/tree";
|
|
2
|
+
import type { CoreCollapsibleRootProps } from "@qualcomm-ui/react-core/collapsible";
|
|
3
|
+
export declare function useTreeBranch(): CoreCollapsibleRootProps & TreeBranchBindings;
|
|
4
|
+
export declare function useTreeBranchContent(): TreeBranchContentBindings;
|
|
5
|
+
//# sourceMappingURL=use-tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-tree.d.ts","sourceRoot":"","sources":["../../src/tree/use-tree.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,qCAAqC,CAAA;AASjF,wBAAgB,aAAa,IAAI,wBAAwB,GAAG,kBAAkB,CAW7E;AAED,wBAAgB,oBAAoB,IAAI,yBAAyB,CAKhE"}
|