@sparrowengg/integrations-templates-frontend 1.9.84-beta.8 → 2.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/dist/cjs/_virtual/index8.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- package/dist/cjs/cascader-dropdown/cascader-dropdown-breadcrumb.js +118 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-breadcrumb.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-content.js +186 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-content.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-item.js +65 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-item.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-list.js +83 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-list.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-node.js +90 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-node.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-provider.js +172 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-provider.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-root-node.js +56 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-root-node.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-search-input.js +141 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-search-input.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-search-list.js +174 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-search-list.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-value-selector.js +484 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown-value-selector.js.map +1 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown.js +98 -0
- package/dist/cjs/cascader-dropdown/cascader-dropdown.js.map +1 -0
- package/dist/cjs/cascader-dropdown/helpers/cascader-dropdown-constants.js +31 -0
- package/dist/cjs/cascader-dropdown/helpers/cascader-dropdown-constants.js.map +1 -0
- package/dist/cjs/cascader-dropdown/helpers/cascader-dropdown-utils.js +136 -0
- package/dist/cjs/cascader-dropdown/helpers/cascader-dropdown-utils.js.map +1 -0
- package/dist/cjs/cascader-dropdown/styled/StyledItem.js +42 -0
- package/dist/cjs/cascader-dropdown/styled/StyledItem.js.map +1 -0
- package/dist/cjs/cascader-dropdown/use-value.js +45 -0
- package/dist/cjs/cascader-dropdown/use-value.js.map +1 -0
- package/dist/cjs/commons/components/NamingModal.js +82 -0
- package/dist/cjs/commons/components/NamingModal.js.map +1 -0
- package/dist/cjs/commons/constants/index.js +1 -2
- package/dist/cjs/commons/constants/index.js.map +1 -1
- package/dist/cjs/dynamic-mapping/components/mapping.js +502 -0
- package/dist/cjs/dynamic-mapping/components/mapping.js.map +1 -0
- package/dist/cjs/dynamic-mapping/index.js +1096 -0
- package/dist/cjs/dynamic-mapping/index.js.map +1 -0
- package/dist/cjs/filter/filter-pill-value-selector.js +56 -0
- package/dist/cjs/filter/filter-pill-value-selector.js.map +1 -0
- package/dist/cjs/filter/filter-pill.js +301 -0
- package/dist/cjs/filter/filter-pill.js.map +1 -0
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard.js +222 -193
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/integration-template/index.js +29 -12
- package/dist/cjs/integration-template/index.js.map +1 -1
- package/dist/cjs/mapping/components/mapping.js +4 -5
- package/dist/cjs/mapping/components/mapping.js.map +1 -1
- package/dist/cjs/mapping/constants/index.js.map +1 -1
- package/dist/cjs/mapping/index.js +31 -4
- package/dist/cjs/mapping/index.js.map +1 -1
- package/dist/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.js +823 -0
- package/dist/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +378 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +746 -0
- package/dist/cjs/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +176 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +160 -0
- package/dist/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/CalendarDate.js +59 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/conversion.js +36 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/conversion.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/manipulation.js +120 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/manipulation.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/queries.js +10 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/queries.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/string.js +11 -0
- package/dist/cjs/node_modules/@internationalized/date/dist/string.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/utils.js +2 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/utils.js.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/primitive/dist/index.js +14 -0
- package/dist/cjs/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.js +48 -0
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-compose-refs/dist/index.js +62 -0
- package/dist/cjs/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.js +85 -0
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +234 -0
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-focus-guards/dist/index.js +51 -0
- package/dist/cjs/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.js +229 -0
- package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-id/dist/index.js +37 -0
- package/dist/cjs/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.js +337 -0
- package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.js +308 -0
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.js +39 -0
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-presence/dist/index.js +152 -0
- package/dist/cjs/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.js +67 -0
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.js +111 -0
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +34 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +92 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +40 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +29 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-size/dist/index.js +62 -0
- package/dist/cjs/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-header.js +37 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-header.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-range.js +336 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-range.js.map +1 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js +5 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +3 -3
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +2 -2
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +3 -3
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +3 -3
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/calendar/dist/import.js +57 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/calendar/dist/import.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/utils/dist/import.js +33 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/utils/dist/import.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-stately/calendar/dist/import.js +173 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-stately/calendar/dist/import.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-select/dist/index-baa8dc4f.esm.js +2 -2
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-select/dist/index-baa8dc4f.esm.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-transition-group/esm/Transition.js +5 -5
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/textarea/textarea.js +265 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/textarea/textarea.js.map +1 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/chevron-left.js +75 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/chevron-left.js.map +1 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/question-circle.js +99 -0
- package/dist/cjs/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/question-circle.js.map +1 -0
- package/dist/cjs/node_modules/@stitches/react/dist/index.js +9 -0
- package/dist/cjs/node_modules/@stitches/react/dist/index.js.map +1 -0
- package/dist/cjs/node_modules/aria-hidden/dist/es2015/index.js +140 -0
- package/dist/cjs/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/cjs/node_modules/get-nonce/dist/es2015/index.js +11 -0
- package/dist/cjs/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/Combination.js +34 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +184 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/UI.js +60 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +24 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +110 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/medium.js +8 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/sidecar.js +12 -0
- package/dist/cjs/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/component.js +80 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +16 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +35 -0
- package/dist/cjs/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/cjs/node_modules/react-select/dist/index-a301f526.esm.js +2 -2
- package/dist/cjs/node_modules/react-select/dist/index-a301f526.esm.js.map +1 -1
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/component.js +22 -0
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/hook.js +47 -0
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/singleton.js +54 -0
- package/dist/cjs/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/cjs/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/cjs/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/cjs/node_modules/tslib/tslib.es6.js +60 -0
- package/dist/cjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js +27 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +70 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js +45 -0
- package/dist/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/cjs/node_modules/use-sidecar/dist/es2015/exports.js +43 -0
- package/dist/cjs/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/cjs/node_modules/use-sidecar/dist/es2015/medium.js +80 -0
- package/dist/cjs/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/cjs/packages/frontend-templates/slitches.config.js +392 -0
- package/dist/cjs/packages/frontend-templates/slitches.config.js.map +1 -0
- package/dist/cjs/popover/popover.js +55 -0
- package/dist/cjs/popover/popover.js.map +1 -0
- package/dist/cjs/single-mapping/components/mapping.js +3 -3
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +10 -16
- package/dist/cjs/single-mapping/index.js.map +1 -1
- package/dist/cjs/triggers/components/subcomponents.js +22 -21
- package/dist/cjs/triggers/components/subcomponents.js.map +1 -1
- package/dist/cjs/triggers/components/trigger.js +17 -14
- package/dist/cjs/triggers/components/trigger.js.map +1 -1
- package/dist/cjs/triggers/index.js +25 -21
- package/dist/cjs/triggers/index.js.map +1 -1
- package/dist/es/_virtual/index8.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/cascader-dropdown/cascader-dropdown-breadcrumb.js +116 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-breadcrumb.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-content.js +184 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-content.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-item.js +63 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-item.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-list.js +81 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-list.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-node.js +88 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-node.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-provider.js +170 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-provider.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-root-node.js +54 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-root-node.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-search-input.js +139 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-search-input.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-search-list.js +172 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-search-list.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-value-selector.js +478 -0
- package/dist/es/cascader-dropdown/cascader-dropdown-value-selector.js.map +1 -0
- package/dist/es/cascader-dropdown/cascader-dropdown.js +96 -0
- package/dist/es/cascader-dropdown/cascader-dropdown.js.map +1 -0
- package/dist/es/cascader-dropdown/helpers/cascader-dropdown-constants.js +27 -0
- package/dist/es/cascader-dropdown/helpers/cascader-dropdown-constants.js.map +1 -0
- package/dist/es/cascader-dropdown/helpers/cascader-dropdown-utils.js +129 -0
- package/dist/es/cascader-dropdown/helpers/cascader-dropdown-utils.js.map +1 -0
- package/dist/es/cascader-dropdown/styled/StyledItem.js +39 -0
- package/dist/es/cascader-dropdown/styled/StyledItem.js.map +1 -0
- package/dist/es/cascader-dropdown/use-value.js +42 -0
- package/dist/es/cascader-dropdown/use-value.js.map +1 -0
- package/dist/es/commons/components/NamingModal.js +78 -0
- package/dist/es/commons/components/NamingModal.js.map +1 -0
- package/dist/es/commons/constants/index.js +1 -2
- package/dist/es/commons/constants/index.js.map +1 -1
- package/dist/es/dynamic-mapping/components/mapping.js +498 -0
- package/dist/es/dynamic-mapping/components/mapping.js.map +1 -0
- package/dist/es/dynamic-mapping/index.js +1094 -0
- package/dist/es/dynamic-mapping/index.js.map +1 -0
- package/dist/es/filter/filter-pill-value-selector.js +52 -0
- package/dist/es/filter/filter-pill-value-selector.js.map +1 -0
- package/dist/es/filter/filter-pill.js +298 -0
- package/dist/es/filter/filter-pill.js.map +1 -0
- package/dist/es/index.js +3 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/integration-template/components/dashboard.js +222 -193
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/index.js +29 -12
- package/dist/es/integration-template/index.js.map +1 -1
- package/dist/es/mapping/components/mapping.js +4 -5
- package/dist/es/mapping/components/mapping.js.map +1 -1
- package/dist/es/mapping/constants/index.js.map +1 -1
- package/dist/es/mapping/index.js +31 -4
- package/dist/es/mapping/index.js.map +1 -1
- package/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js +812 -0
- package/dist/es/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +348 -0
- package/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/es/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +734 -0
- package/dist/es/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +155 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +137 -0
- package/dist/es/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/es/node_modules/@internationalized/date/dist/CalendarDate.js +62 -4
- package/dist/es/node_modules/@internationalized/date/dist/CalendarDate.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/conversion.js +33 -2
- package/dist/es/node_modules/@internationalized/date/dist/conversion.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/manipulation.js +117 -1
- package/dist/es/node_modules/@internationalized/date/dist/manipulation.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/queries.js +9 -1
- package/dist/es/node_modules/@internationalized/date/dist/queries.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/string.js +11 -1
- package/dist/es/node_modules/@internationalized/date/dist/string.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/utils.js +2 -1
- package/dist/es/node_modules/@internationalized/date/dist/utils.js.map +1 -1
- package/dist/es/node_modules/@radix-ui/primitive/dist/index.js +12 -0
- package/dist/es/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js +26 -0
- package/dist/es/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js +40 -0
- package/dist/es/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-context/dist/index.js +64 -0
- package/dist/es/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +212 -0
- package/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -0
- package/dist/es/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js +208 -0
- package/dist/es/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-id/dist/index.js +16 -0
- package/dist/es/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-popover/dist/index.js +302 -0
- package/dist/es/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-popper/dist/index.js +279 -0
- package/dist/es/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +18 -0
- package/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +131 -0
- package/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +44 -0
- package/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-slot/dist/index.js +90 -0
- package/dist/es/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -0
- package/dist/es/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +71 -0
- package/dist/es/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +19 -0
- package/dist/es/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +8 -0
- package/dist/es/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js +41 -0
- package/dist/es/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-header.js +37 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-header.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-range.js +334 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-range.js.map +1 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js +5 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +2 -2
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js +2 -2
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js +2 -2
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/calendar/dist/import.js +58 -2
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/calendar/dist/import.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/utils/dist/import.js +33 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/utils/dist/import.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-stately/calendar/dist/import.js +175 -3
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-stately/calendar/dist/import.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-transition-group/esm/Transition.js +5 -5
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/textarea/textarea.js +263 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/textarea/textarea.js.map +1 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/chevron-left.js +73 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/chevron-left.js.map +1 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/question-circle.js +97 -0
- package/dist/es/node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/question-circle.js.map +1 -0
- package/dist/es/node_modules/@stitches/react/dist/index.js +6 -0
- package/dist/es/node_modules/@stitches/react/dist/index.js.map +1 -0
- package/dist/es/node_modules/aria-hidden/dist/es2015/index.js +138 -0
- package/dist/es/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/es/node_modules/get-nonce/dist/es2015/index.js +9 -0
- package/dist/es/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +161 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js +39 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +22 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +107 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/es/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js +57 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +11 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +32 -0
- package/dist/es/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/component.js +20 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js +26 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js +52 -0
- package/dist/es/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/es/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/es/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/es/node_modules/tslib/tslib.es6.js +57 -0
- package/dist/es/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +25 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +49 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js +43 -0
- package/dist/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/es/node_modules/use-sidecar/dist/es2015/exports.js +22 -0
- package/dist/es/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/es/node_modules/use-sidecar/dist/es2015/medium.js +78 -0
- package/dist/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/es/packages/frontend-templates/slitches.config.js +379 -0
- package/dist/es/packages/frontend-templates/slitches.config.js.map +1 -0
- package/dist/es/popover/popover.js +52 -0
- package/dist/es/popover/popover.js.map +1 -0
- package/dist/es/single-mapping/components/mapping.js +3 -3
- package/dist/es/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/single-mapping/index.js +10 -16
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/es/triggers/components/subcomponents.js +22 -21
- package/dist/es/triggers/components/subcomponents.js.map +1 -1
- package/dist/es/triggers/components/trigger.js +17 -14
- package/dist/es/triggers/components/trigger.js.map +1 -1
- package/dist/es/triggers/index.js +25 -21
- package/dist/es/triggers/index.js.map +1 -1
- package/dist/index.d.ts +236 -23
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-range.js","sources":["../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-range.js"],"sourcesContent":["import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, createCalendar as $64244302c3013299$export$dd0bbc9b26defe37 } from '../node_modules/@internationalized/date/dist/import.js';\nimport { prefixClassName } from '../utils/prefix-class-name.js';\nimport { useEffect, useRef, useMemo, useState } from 'react';\nimport { Box } from '../box/box.js';\nimport { Button } from '../button/button.js';\nimport '../button/icon-button.js';\nimport '../button/split-button.js';\nimport { Flex } from '../flex/flex.js';\nimport { Text } from '../text/text.js';\nimport { CALENDAR_VIEW } from './calendar.js';\nimport { CalendarGrid } from './calendar-grid.js';\nimport { CalendarNavigationButton, RangeCalendarTitle } from './calendar-header.js';\nimport { CalendarMonthsView } from './calendar-months-view.js';\nimport { CalendarContext, useCalendarContext, CALENDAR_SIZE_TO_WIDTH, CALENDAR_SIZE_TO_DAY_BTN_SIZE } from './calendar-utils.js';\nimport { CalendarYearsView } from './calendar-years-view.js';\nimport { useRangeCalendarState as $9a36b6ba2fb1a7c5$export$9a987164d97ecc90 } from '../node_modules/@react-stately/calendar/dist/import.js';\nimport { useRangeCalendar as $46a4342aab3d8076$export$87e0539f600c24e5 } from '../node_modules/@react-aria/calendar/dist/import.js';\nimport { ChevronLeftIcon } from '../packages/react-icons/dist/es/icons/chevron-left.js';\nimport { ChevronRightIcon } from '../packages/react-icons/dist/es/icons/chevron-right.js';\nimport { useLocale as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, useDateFormatter as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from '../node_modules/@react-aria/i18n/dist/real-module.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst CalendarRange = (_a) => {\n var _b = _a, {\n size = \"lg\",\n showFooter = true,\n footerActionText = \"Apply\",\n containerCSS,\n footerAction,\n onDaySelect,\n onMonthSelect,\n onYearSelect,\n compact = false\n } = _b, props = __objRest(_b, [\n \"size\",\n \"showFooter\",\n \"footerActionText\",\n \"containerCSS\",\n \"footerAction\",\n \"onDaySelect\",\n \"onMonthSelect\",\n \"onYearSelect\",\n \"compact\"\n ]);\n var _a2, _b2;\n const { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();\n const state = $9a36b6ba2fb1a7c5$export$9a987164d97ecc90(__spreadProps(__spreadValues({}, props), {\n visibleDuration: compact ? { months: 1 } : { months: 2 },\n pageBehavior: compact ? \"single\" : void 0,\n locale,\n createCalendar: $64244302c3013299$export$dd0bbc9b26defe37\n }));\n const dateType = state.anchorDate ? \"start\" : \"end\";\n useEffect(() => {\n if (props.showTimePicker && !(props.value instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea || props.value instanceof $35ea8db9cb2ccb90$export$ca871e8dbb80966f)) {\n console.warn(\n // eslint-disable-next-line max-len\n \"The value prop must be an instance of ZonedDateTime or CalendarDateTime when showTimePicker is true. Use parseDateTime or parseZonedDateTime from @internationalized/date. The value type will be changed to CalendarDateTime\"\n );\n }\n if (props.showTimezonePicker && !(props.value instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea)) {\n console.warn(\n \"The value prop must be an instance of ZonedDateTime when showTimezonePicker is true. The value type will be changed to ZonedDateTime\"\n );\n }\n }, [props.showTimePicker]);\n const ref = useRef(null);\n const { calendarProps, prevButtonProps, nextButtonProps } = $46a4342aab3d8076$export$87e0539f600c24e5(\n props,\n state,\n ref\n );\n const contextProviderValue = useMemo(() => {\n return {\n size\n };\n }, [size]);\n const formatter = $896ba0a80a8f4d36$export$85fd5fdf27bacc79({\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\"\n });\n return /* @__PURE__ */ jsx(CalendarContext.Provider, { value: contextProviderValue, children: /* @__PURE__ */ jsxs(\n Box,\n {\n css: __spreadValues({\n borderRadius: \"$2xl\",\n border: \"1px solid\",\n borderColor: \"$neutral300\",\n paddingTop: \"$6\",\n maxWidth: \"max-content\"\n }, containerCSS),\n children: [\n compact ? /* @__PURE__ */ jsx(Flex, __spreadProps(__spreadValues({}, calendarProps), { ref, css: { overflow: \"auto\" }, children: /* @__PURE__ */ jsx(\n CalendarSingleSection,\n {\n state,\n navigationButtonProps: { prev: prevButtonProps, next: nextButtonProps },\n sectionName: \"end\",\n onDaySelect: (date) => onDaySelect == null ? void 0 : onDaySelect(date, dateType),\n onMonthSelect: (date) => onMonthSelect == null ? void 0 : onMonthSelect(date, dateType),\n onYearSelect: (date) => onYearSelect == null ? void 0 : onYearSelect(date, dateType)\n }\n ) })) : /* @__PURE__ */ jsxs(Flex, __spreadProps(__spreadValues({}, calendarProps), { gap: \"$8\", ref, css: { overflow: \"auto\" }, children: [\n /* @__PURE__ */ jsx(\n CalendarSingleSection,\n {\n state,\n navigationButtonProps: prevButtonProps,\n sectionName: \"start\",\n onDaySelect: (date) => onDaySelect == null ? void 0 : onDaySelect(date, dateType),\n onMonthSelect: (date) => onMonthSelect == null ? void 0 : onMonthSelect(date, dateType),\n onYearSelect: (date) => onYearSelect == null ? void 0 : onYearSelect(date, dateType)\n }\n ),\n /* @__PURE__ */ jsx(\n CalendarSingleSection,\n {\n state,\n calendarOffset: { months: 1 },\n sectionName: \"end\",\n navigationButtonProps: nextButtonProps,\n onDaySelect: (date) => onDaySelect == null ? void 0 : onDaySelect(date, dateType),\n onMonthSelect: (date) => onMonthSelect == null ? void 0 : onMonthSelect(date, dateType),\n onYearSelect: (date) => onYearSelect == null ? void 0 : onYearSelect(date, dateType)\n }\n )\n ] })),\n showFooter && /* @__PURE__ */ jsx(Fragment, { children: props.renderFooter ? props.renderFooter(state) : /* @__PURE__ */ jsxs(\n Flex,\n {\n alignItems: \"center\",\n justifyContent: \"space-between\",\n css: {\n borderTop: \"1px solid\",\n borderColor: \"$neutral200\",\n padding: \"$6 $8\"\n },\n children: [\n /* @__PURE__ */ jsx(\n Text,\n {\n weight: \"bold\",\n css: {\n color: \"$neutral700\"\n },\n children: ((_a2 = state.value) == null ? void 0 : _a2.start) && ((_b2 = state.value) == null ? void 0 : _b2.end) && formatter.formatRange(\n state.value.start.toDate(state.timeZone),\n state.value.end.toDate(state.timeZone)\n )\n }\n ),\n /* @__PURE__ */ jsx(\n Button,\n {\n size: \"lg\",\n color: \"primary\",\n onClick: () => {\n if (footerAction)\n footerAction(state);\n },\n children: footerActionText\n }\n )\n ]\n }\n ) })\n ]\n }\n ) });\n};\nconst CalendarSingleSection = ({\n navigationButtonProps,\n calendarOffset,\n sectionName,\n state,\n onDaySelect,\n onYearSelect,\n onMonthSelect\n}) => {\n const [currentCalendarView, setCurrentCalendarView] = useState(CALENDAR_VIEW.GRID);\n const calendarContext = useCalendarContext();\n const compact = \"prev\" in navigationButtonProps && \"next\" in navigationButtonProps;\n return /* @__PURE__ */ jsxs(\n Box,\n {\n className: prefixClassName(\"calendar-range-section\"),\n css: {\n flexShrink: 1,\n flexGrow: 1,\n flexBasis: 0,\n maxWidth: CALENDAR_SIZE_TO_WIDTH[calendarContext.size]\n },\n children: [\n currentCalendarView === CALENDAR_VIEW.GRID && /* @__PURE__ */ jsxs(\n Flex,\n {\n flexDirection: \"column\",\n alignItems: \"center\",\n css: {\n maxWidth: \"max-content\"\n },\n children: [\n /* @__PURE__ */ jsx(\n Flex,\n {\n alignItems: \"center\",\n justifyContent: \"space-between\",\n css: {\n marginBottom: \"$12\",\n padding: \"0 $8\",\n width: \"100%\"\n },\n children: compact ? /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n CalendarNavigationButton,\n __spreadProps(__spreadValues({}, navigationButtonProps.prev), {\n icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {})\n })\n ),\n /* @__PURE__ */ jsx(\n RangeCalendarTitle,\n {\n timezone: state.timeZone,\n value: state.visibleRange[sectionName],\n setCurrentCalendarView\n }\n ),\n /* @__PURE__ */ jsx(\n CalendarNavigationButton,\n __spreadProps(__spreadValues({}, navigationButtonProps.next), {\n icon: /* @__PURE__ */ jsx(ChevronRightIcon, {})\n })\n )\n ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [\n sectionName === \"end\" && /* @__PURE__ */ jsx(Box, {}),\n sectionName === \"start\" && /* @__PURE__ */ jsx(\n CalendarNavigationButton,\n __spreadProps(__spreadValues({}, navigationButtonProps), {\n icon: /* @__PURE__ */ jsx(ChevronLeftIcon, {})\n })\n ),\n /* @__PURE__ */ jsx(\n RangeCalendarTitle,\n {\n timezone: state.timeZone,\n value: state.visibleRange[sectionName],\n setCurrentCalendarView\n }\n ),\n sectionName === \"end\" && /* @__PURE__ */ jsx(\n CalendarNavigationButton,\n __spreadProps(__spreadValues({}, navigationButtonProps), {\n icon: /* @__PURE__ */ jsx(ChevronRightIcon, {})\n })\n ),\n sectionName === \"start\" && /* @__PURE__ */ jsx(Box, {})\n ] })\n }\n ),\n /* @__PURE__ */ jsx(\n CalendarGrid,\n __spreadProps(__spreadValues({\n state\n }, calendarOffset && {\n offset: calendarOffset\n }), {\n containerCSS: {\n maxWidth: `calc(7 * ${CALENDAR_SIZE_TO_DAY_BTN_SIZE[calendarContext.size]})`,\n boxSizing: \"content-box\",\n padding: \"0 $8 0 $8\"\n },\n onDaySelect\n })\n )\n ]\n }\n ),\n currentCalendarView === CALENDAR_VIEW.MONTH && /* @__PURE__ */ jsx(\n CalendarMonthsView,\n {\n state,\n range: sectionName,\n setCurrentCalendarView,\n onMonthSelect\n }\n ),\n currentCalendarView === CALENDAR_VIEW.YEAR && /* @__PURE__ */ jsx(\n CalendarYearsView,\n {\n state,\n range: sectionName,\n setCurrentCalendarView,\n onYearSelect\n }\n )\n ]\n }\n );\n};\n\nexport { CalendarRange };\n//# sourceMappingURL=calendar-range.js.map\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAA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;AACpB,kBAAkB,YAAY,EAAE;AAChC,oBAAoB,QAAQ,EAAE,CAAC,SAAS,EAAE,6BAA6B,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChG,oBAAoB,SAAS,EAAE,aAAa;AAC5C,oBAAoB,OAAO,EAAE,WAAW;AACxC,mBAAmB;AACnB,kBAAkB,WAAW;AAC7B,iBAAiB,CAAC;AAClB,eAAe;AACf,aAAa;AACb,WAAW;AACX,SAAS;AACT,QAAQ,mBAAmB,KAAK,aAAa,CAAC,KAAK,oBAAoB,GAAG;AAC1E,UAAU,kBAAkB;AAC5B,UAAU;AACV,YAAY,KAAK;AACjB,YAAY,KAAK,EAAE,WAAW;AAC9B,YAAY,sBAAsB;AAClC,YAAY,aAAa;AACzB,WAAW;AACX,SAAS;AACT,QAAQ,mBAAmB,KAAK,aAAa,CAAC,IAAI,oBAAoB,GAAG;AACzE,UAAU,iBAAiB;AAC3B,UAAU;AACV,YAAY,KAAK;AACjB,YAAY,KAAK,EAAE,WAAW;AAC9B,YAAY,sBAAsB;AAClC,YAAY,YAAY;AACxB,WAAW;AACX,SAAS;AACT,OAAO;AACP,KAAK;AACL,GAAG,CAAC;AACJ,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -22,6 +22,10 @@ const CALENDAR_SIZE_TO_BORDER_RADIUS = {
|
|
|
22
22
|
lg: "$2xl",
|
|
23
23
|
md: "$xl"
|
|
24
24
|
};
|
|
25
|
+
const CALENDAR_SIZE_TO_DAY_BTN_SIZE = {
|
|
26
|
+
lg: "$10",
|
|
27
|
+
md: "$8"
|
|
28
|
+
};
|
|
25
29
|
|
|
26
|
-
export { CALENDAR_SIZE_TO_BORDER_RADIUS, CALENDAR_SIZE_TO_FONT_SIZE, CALENDAR_SIZE_TO_WIDTH, CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT, CalendarContext, useCalendarContext };
|
|
30
|
+
export { CALENDAR_SIZE_TO_BORDER_RADIUS, CALENDAR_SIZE_TO_DAY_BTN_SIZE, CALENDAR_SIZE_TO_FONT_SIZE, CALENDAR_SIZE_TO_WIDTH, CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT, CalendarContext, useCalendarContext };
|
|
27
31
|
//# sourceMappingURL=calendar-utils.js.map
|
package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-utils.js","sources":["../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nconst CalendarContext = createContext({\n size: \"lg\"\n});\nconst useCalendarContext = () => {\n return useContext(CalendarContext);\n};\nconst CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT = {\n lg: \"$20\",\n md: \"$14\"\n};\nconst CALENDAR_SIZE_TO_FONT_SIZE = {\n lg: \"md\",\n md: \"sm\"\n};\nconst CALENDAR_SIZE_TO_WIDTH = {\n lg: 340,\n md: 260\n};\nconst CALENDAR_SIZE_TO_BORDER_RADIUS = {\n lg: \"$2xl\",\n md: \"$xl\"\n};\nconst CALENDAR_SIZE_TO_DAY_BTN_SIZE = {\n lg: \"$10\",\n md: \"$8\"\n};\n\nexport { CALENDAR_SIZE_TO_BORDER_RADIUS, CALENDAR_SIZE_TO_DAY_BTN_SIZE, CALENDAR_SIZE_TO_FONT_SIZE, CALENDAR_SIZE_TO_WIDTH, CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT, CalendarContext, useCalendarContext };\n//# sourceMappingURL=calendar-utils.js.map\n"],"names":[],"mappings":";;AAEK,MAAC,eAAe,GAAG,aAAa,CAAC;AACtC,EAAE,IAAI,EAAE,IAAI;AACZ,CAAC,EAAE;AACE,MAAC,kBAAkB,GAAG,MAAM;AACjC,EAAE,OAAO,UAAU,CAAC,eAAe,CAAC,CAAC;AACrC,EAAE;AACG,MAAC,sCAAsC,GAAG;AAC/C,EAAE,EAAE,EAAE,KAAK;AACX,EAAE,EAAE,EAAE,KAAK;AACX,EAAE;AACG,MAAC,0BAA0B,GAAG;AACnC,EAAE,EAAE,EAAE,IAAI;AACV,EAAE,EAAE,EAAE,IAAI;AACV,EAAE;AACG,MAAC,sBAAsB,GAAG;AAC/B,EAAE,EAAE,EAAE,GAAG;AACT,EAAE,EAAE,EAAE,GAAG;AACT,EAAE;AACG,MAAC,8BAA8B,GAAG;AACvC,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,EAAE,EAAE,KAAK;AACX;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"calendar-utils.js","sources":["../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar-utils.js"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nconst CalendarContext = createContext({\n size: \"lg\"\n});\nconst useCalendarContext = () => {\n return useContext(CalendarContext);\n};\nconst CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT = {\n lg: \"$20\",\n md: \"$14\"\n};\nconst CALENDAR_SIZE_TO_FONT_SIZE = {\n lg: \"md\",\n md: \"sm\"\n};\nconst CALENDAR_SIZE_TO_WIDTH = {\n lg: 340,\n md: 260\n};\nconst CALENDAR_SIZE_TO_BORDER_RADIUS = {\n lg: \"$2xl\",\n md: \"$xl\"\n};\nconst CALENDAR_SIZE_TO_DAY_BTN_SIZE = {\n lg: \"$10\",\n md: \"$8\"\n};\n\nexport { CALENDAR_SIZE_TO_BORDER_RADIUS, CALENDAR_SIZE_TO_DAY_BTN_SIZE, CALENDAR_SIZE_TO_FONT_SIZE, CALENDAR_SIZE_TO_WIDTH, CALENDAR_SIZE_TO_YEAR_MONTH_BTN_HEIGHT, CalendarContext, useCalendarContext };\n//# sourceMappingURL=calendar-utils.js.map\n"],"names":[],"mappings":";;AAEK,MAAC,eAAe,GAAG,aAAa,CAAC;AACtC,EAAE,IAAI,EAAE,IAAI;AACZ,CAAC,EAAE;AACE,MAAC,kBAAkB,GAAG,MAAM;AACjC,EAAE,OAAO,UAAU,CAAC,eAAe,CAAC,CAAC;AACrC,EAAE;AACG,MAAC,sCAAsC,GAAG;AAC/C,EAAE,EAAE,EAAE,KAAK;AACX,EAAE,EAAE,EAAE,KAAK;AACX,EAAE;AACG,MAAC,0BAA0B,GAAG;AACnC,EAAE,EAAE,EAAE,IAAI;AACV,EAAE,EAAE,EAAE,IAAI;AACV,EAAE;AACG,MAAC,sBAAsB,GAAG;AAC/B,EAAE,EAAE,EAAE,GAAG;AACT,EAAE,EAAE,EAAE,GAAG;AACT,EAAE;AACG,MAAC,8BAA8B,GAAG;AACvC,EAAE,EAAE,EAAE,MAAM;AACZ,EAAE,EAAE,EAAE,KAAK;AACX,EAAE;AACG,MAAC,6BAA6B,GAAG;AACtC,EAAE,EAAE,EAAE,KAAK;AACX,EAAE,EAAE,EAAE,IAAI;AACV;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
|
-
import { Overlay, Content as Content$1, Title, Description, Portal, Root
|
|
3
|
+
import { Overlay, Content as Content$1, Title, Description, Close, Portal, Root } from '../node_modules/@radix-ui/react-dialog/dist/index.js';
|
|
4
4
|
import { prefixClassName } from '../utils/prefix-class-name.js';
|
|
5
5
|
import { clsx } from '../packages/react-components/node_modules/clsx/dist/clsx.js';
|
|
6
6
|
import { keyframes, styled } from '../stitches.config.js';
|
|
@@ -2,7 +2,7 @@ import { computePosition } from '../../dom/dist/floating-ui.dom.js';
|
|
|
2
2
|
export { autoUpdate, platform } from '../../dom/dist/floating-ui.dom.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useLayoutEffect, useEffect } from 'react';
|
|
5
|
-
import * as
|
|
5
|
+
import * as ReactDOM from 'react-dom';
|
|
6
6
|
import { arrow as arrow$1 } from '../../core/dist/floating-ui.core.js';
|
|
7
7
|
export { detectOverflow, flip, hide, limitShift, offset, shift, size } from '../../core/dist/floating-ui.core.js';
|
|
8
8
|
|
|
@@ -187,7 +187,7 @@ function useFloating(options) {
|
|
|
187
187
|
};
|
|
188
188
|
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
189
189
|
dataRef.current = fullData;
|
|
190
|
-
|
|
190
|
+
ReactDOM.flushSync(() => {
|
|
191
191
|
setData(fullData);
|
|
192
192
|
});
|
|
193
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-ui.react-dom.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js"],"sourcesContent":["import { computePosition } from '../../dom/dist/floating-ui.dom.js';\nexport { autoUpdate, platform } from '../../dom/dist/floating-ui.dom.js';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { arrow as arrow$1 } from '../../core/dist/floating-ui.core.js';\nexport { detectOverflow, flip, hide, limitShift, offset, shift, size } from '../../core/dist/floating-ui.core.js';\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$1({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n } else if (element) {\n return arrow$1({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length, i, keys;\n if (a && b && typeof a == 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/react\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node != referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, [_setReference]);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, [_setFloating]);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n isPositioned: true\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n } else {\n update();\n }\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\nexport { arrow, computePosition, useFloating };\n//# sourceMappingURL=floating-ui.react-dom.js.map\n"],"names":["ReactDOM"],"mappings":";;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,KAAK,GAAG,OAAO,IAAI;AACzB,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE;AACxB,IAAI,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACpD,GAAG;AACH,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO;AACX,IAAI,EAAE,CAAC,KAAK,EAAE;AACd,MAAM,MAAM;AACZ,QAAQ,OAAO;AACf,QAAQ,OAAO;AACf,OAAO,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;AACnE,MAAM,IAAI,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;AACrC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;AACrC,UAAU,OAAO,OAAO,CAAC;AACzB,YAAY,OAAO,EAAE,OAAO,CAAC,OAAO;AACpC,YAAY,OAAO;AACnB,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvB,SAAS;AACT,QAAQ,OAAO,EAAE,CAAC;AAClB,OAAO,MAAM,IAAI,OAAO,EAAE;AAC1B,QAAQ,OAAO,OAAO,CAAC;AACvB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,SAAS,CAAC,CAAC,EAAE,CAAC,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CAAC,CAAC;AAC/D,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO;AAC9B,IAAI,GAAG,IAAI;AACX,IAAI,MAAM;AACV,IAAI,IAAI;AACR,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AACtD;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"floating-ui.react-dom.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js"],"sourcesContent":["import { computePosition } from '../../dom/dist/floating-ui.dom.js';\nexport { autoUpdate, platform } from '../../dom/dist/floating-ui.dom.js';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { arrow as arrow$1 } from '../../core/dist/floating-ui.core.js';\nexport { detectOverflow, flip, hide, limitShift, offset, shift, size } from '../../core/dist/floating-ui.core.js';\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$1({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n } else if (element) {\n return arrow$1({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length, i, keys;\n if (a && b && typeof a == 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/react\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node != referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, [_setReference]);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, [_setFloating]);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n isPositioned: true\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n } else {\n update();\n }\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\nexport { arrow, computePosition, useFloating };\n//# sourceMappingURL=floating-ui.react-dom.js.map\n"],"names":[],"mappings":";;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACK,MAAC,KAAK,GAAG,OAAO,IAAI;AACzB,EAAE,SAAS,KAAK,CAAC,KAAK,EAAE;AACxB,IAAI,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACpD,GAAG;AACH,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO;AACX,IAAI,EAAE,CAAC,KAAK,EAAE;AACd,MAAM,MAAM;AACZ,QAAQ,OAAO;AACf,QAAQ,OAAO;AACf,OAAO,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;AACnE,MAAM,IAAI,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE;AACrC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;AACrC,UAAU,OAAO,OAAO,CAAC;AACzB,YAAY,OAAO,EAAE,OAAO,CAAC,OAAO;AACpC,YAAY,OAAO;AACnB,WAAW,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvB,SAAS;AACT,QAAQ,OAAO,EAAE,CAAC;AAClB,OAAO,MAAM,IAAI,OAAO,EAAE;AAC1B,QAAQ,OAAO,OAAO,CAAC;AACvB,UAAU,OAAO;AACjB,UAAU,OAAO;AACjB,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACrB,OAAO;AACP,MAAM,OA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AAO,CAAC,OAAO;AAC9B,IAAI,GAAG,IAAI;AACX,IAAI,MAAM;AACV,IAAI,IAAI;AACR,IAAI,QAAQ;AACZ,IAAI,cAAc;AAClB,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC;AACtD;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import ReactDOM__default from 'react-dom';
|
|
3
3
|
import { Primitive } from '../../react-primitive/dist/index.js';
|
|
4
4
|
import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -10,7 +10,7 @@ var Portal = React.forwardRef((props, forwardedRef) => {
|
|
|
10
10
|
const [mounted, setMounted] = React.useState(false);
|
|
11
11
|
useLayoutEffect2(() => setMounted(true), []);
|
|
12
12
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
13
|
-
return container ?
|
|
13
|
+
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
14
14
|
});
|
|
15
15
|
Portal.displayName = PORTAL_NAME;
|
|
16
16
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport ReactDOM__default from 'react-dom';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect2(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\n\nexport { Portal, Root };\n//# sourceMappingURL=index.js.map\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-portal/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport ReactDOM__default from 'react-dom';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect2(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\n\nexport { Portal, Root };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;;AAMA,IAAI,WAAW,GAAG,QAAQ,CAAC;AACxB,IAAC,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AACvD,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;AAC7D,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACtD,EAAE,gBAAgB,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AAC/C,EAAE,MAAM,SAAS,GAAG,aAAa,IAAI,OAAO,IAAI,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;AAC3E,EAAE,OAAO,SAAS,GAAG,iBAAiB,CAAC,YAAY,iBAAiB,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;AACjJ,CAAC,EAAE;AACH,MAAM,CAAC,WAAW,GAAG,WAAW;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ReactDOM from 'react-dom';
|
|
3
3
|
import { useComposedRefs } from '../../react-compose-refs/dist/index.js';
|
|
4
4
|
import { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';
|
|
5
5
|
|
|
@@ -71,7 +71,7 @@ function usePresence(present) {
|
|
|
71
71
|
const currentAnimationName = getAnimationName(stylesRef.current);
|
|
72
72
|
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
73
73
|
if (event.target === node && isCurrentAnimation) {
|
|
74
|
-
|
|
74
|
+
ReactDOM.flushSync(() => send("ANIMATION_END"));
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
const handleAnimationStart = (event) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\n\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React.useState();\n const stylesRef = React.useRef({});\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect2(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect2(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\n\nexport { Presence };\n//# sourceMappingURL=index.js.map\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-presence/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { useLayoutEffect as useLayoutEffect2 } from '../../react-use-layout-effect/dist/index.js';\n\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/Presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React.useState();\n const stylesRef = React.useRef({});\n const prevPresentRef = React.useRef(present);\n const prevAnimationNameRef = React.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect2(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect2(() => {\n if (node) {\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n ReactDOM.flushSync(() => send(\"ANIMATION_END\"));\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\n\nexport { Presence };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;AAKA,SAAS,eAAe,CAAC,YAAY,EAAE,OAAO,EAAE;AAChD,EAAE,OAAO,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK;AAC5C,IAAI,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;AAC5C,IAAI,OAAO,SAAS,IAAI,KAAK,CAAC;AAC9B,GAAG,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC;AACD;AACA;AACG,IAAC,QAAQ,GAAG,CAAC,KAAK,KAAK;AAC1B,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AACtC,EAAE,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACxC,EAAE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,UAAU,GAAG,QA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* as React from 'react';
|
|
2
|
-
import * as
|
|
2
|
+
import * as ReactDOM from 'react-dom';
|
|
3
3
|
import { Slot } from '../../react-slot/dist/index.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -35,7 +35,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
35
35
|
return { ...primitive, [node]: Node };
|
|
36
36
|
}, {});
|
|
37
37
|
function dispatchDiscreteCustomEvent(target, event) {
|
|
38
|
-
if (target)
|
|
38
|
+
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export { Primitive, dispatchDiscreteCustomEvent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\n// packages/react/primitive/src/Primitive.tsx\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\n\nexport { Primitive, dispatchDiscreteCustomEvent };\n//# sourceMappingURL=index.js.map\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-primitive/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx } from 'react/jsx-runtime';\n\n// packages/react/primitive/src/Primitive.tsx\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\n\nexport { Primitive, dispatchDiscreteCustomEvent };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":";;;;;AAKA;AACA,IAAI,KAAK,GAAG;AACZ,EAAE,GAAG;AACL,EAAE,QAAQ;AACV,EAAE,KAAK;AACP,EAAE,MAAM;AACR,EAAE,IAAI;AACN,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,OAAO;AACT,EAAE,OAAO;AACT,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE,IAAI;AACN,EAAE,GAAG;AACL,EAAE,MAAM;AACR,EAAE,KAAK;AACP,EAAE,IAAI;AACN,CAAC,CAAC;AACC,IAAC,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,IAAI,KAAK;AAClD,EAAE,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK;AACzD,IAAI,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,EAAE,GAAG,KAAK,CAAC;AACjD,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;AACvC,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC;AAC5C,KAAK;AACL,IAAI,uBAAuB,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC;AAC/E,GAAG,CAAC,CAAC;AACL,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;AACzC,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAC,IAAI,GAAG,IAAI,EAAE,CAAC;AACxC,CAAC,EAAE,EAAE,EAAE;AACP,SAAS,2BAA2B,CAAC,MAAM,EAAE,KAAK,EAAE;AACpD,EAAE,IAAI,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACpE;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { announce as $319e236875307eab$export$a9b970dcc4ae71a9 } from '../../live-announcer/dist/import.js';
|
|
2
|
-
import { filterDOMProps as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, useUpdateEffect as $4f58c5f72bcf79f7$export$496315a1608d9602, useSlotId as $bdb11010cef70236$export$b4cc09c592e8fdb8, useLabels as $313b98861ee5dd6c$export$d6875122194c7b44, mergeProps as $3ef42575df84b30b$export$9d1611c77c2fe928, useDeepMemo as $5a387cc49350e6db$export$722debc0e56fea39, useDescription as $ef06256079686ba0$export$f8aeda7b10753fa1, focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3, scrollIntoViewport as $2f04cbc44ee30ce0$export$c826860796309d1b, getScrollParent as $62d8ded9296f3872$export$cfa2225e87938781 } from '../../utils/dist/import.js';
|
|
2
|
+
import { filterDOMProps as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, useUpdateEffect as $4f58c5f72bcf79f7$export$496315a1608d9602, useSlotId as $bdb11010cef70236$export$b4cc09c592e8fdb8, useLabels as $313b98861ee5dd6c$export$d6875122194c7b44, mergeProps as $3ef42575df84b30b$export$9d1611c77c2fe928, useEvent as $e9faafb641e167db$export$90fc3a17d93f704c, useDeepMemo as $5a387cc49350e6db$export$722debc0e56fea39, useDescription as $ef06256079686ba0$export$f8aeda7b10753fa1, focusWithoutScrolling as $7215afc6de606d6b$export$de79e2c695e052f3, scrollIntoViewport as $2f04cbc44ee30ce0$export$c826860796309d1b, getScrollParent as $62d8ded9296f3872$export$cfa2225e87938781 } from '../../utils/dist/import.js';
|
|
3
3
|
import { useState, useMemo, useRef, useEffect } from 'react';
|
|
4
4
|
import { startOfWeek as $14e0f24ef4ac5c92$export$42c81a444fbfb5d4, today as $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3, isSameDay as $14e0f24ef4ac5c92$export$ea39ec197993aef0, startOfMonth as $14e0f24ef4ac5c92$export$a5a3b454ada2268e, endOfMonth as $14e0f24ef4ac5c92$export$a2258d9c4118825c, isEqualDay as $14e0f24ef4ac5c92$export$91b62ebf2ba703ee, isToday as $14e0f24ef4ac5c92$export$629b0a497aa65267 } from '../../../@internationalized/date/dist/import.js';
|
|
5
5
|
import { usePress as $f6c31cce2adf654f$export$45712eceda6fad21, getInteractionModality as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from '../../interactions/dist/import.js';
|
|
@@ -874,6 +874,62 @@ function $9942cad8a072a530$export$3ee915f8151bd4f1(props, state) {
|
|
|
874
874
|
*/
|
|
875
875
|
|
|
876
876
|
|
|
877
|
+
function $46a4342aab3d8076$export$87e0539f600c24e5(props, state, ref) {
|
|
878
|
+
let res = ($c4acc1de3ab169cf$export$d652b3ea2d672d5b)(props, state);
|
|
879
|
+
// We need to ignore virtual pointer events from VoiceOver due to these bugs.
|
|
880
|
+
// https://bugs.webkit.org/show_bug.cgi?id=222627
|
|
881
|
+
// https://bugs.webkit.org/show_bug.cgi?id=223202
|
|
882
|
+
// usePress also does this and waits for the following click event before firing.
|
|
883
|
+
// We need to match that here otherwise this will fire before the press event in
|
|
884
|
+
// useCalendarCell, causing range selection to not work properly.
|
|
885
|
+
let isVirtualClick = (useRef)(false);
|
|
886
|
+
let windowRef = (useRef)(typeof window !== "undefined" ? window : null);
|
|
887
|
+
($e9faafb641e167db$export$90fc3a17d93f704c)(windowRef, "pointerdown", (e)=>{
|
|
888
|
+
isVirtualClick.current = e.width === 0 && e.height === 0;
|
|
889
|
+
});
|
|
890
|
+
// Stop range selection when pressing or releasing a pointer outside the calendar body,
|
|
891
|
+
// except when pressing the next or previous buttons to switch months.
|
|
892
|
+
let endDragging = (e)=>{
|
|
893
|
+
if (isVirtualClick.current) {
|
|
894
|
+
isVirtualClick.current = false;
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
state.setDragging(false);
|
|
898
|
+
if (!state.anchorDate) return;
|
|
899
|
+
let target = e.target;
|
|
900
|
+
let body = document.getElementById(res.calendarProps.id);
|
|
901
|
+
if (body && body.contains(document.activeElement) && (!body.contains(target) || !target.closest('button, [role="button"]'))) state.selectFocusedDate();
|
|
902
|
+
};
|
|
903
|
+
($e9faafb641e167db$export$90fc3a17d93f704c)(windowRef, "pointerup", endDragging);
|
|
904
|
+
($e9faafb641e167db$export$90fc3a17d93f704c)(windowRef, "pointercancel", endDragging);
|
|
905
|
+
// Also stop range selection on blur, e.g. tabbing away from the calendar.
|
|
906
|
+
res.calendarProps.onBlur = (e)=>{
|
|
907
|
+
if ((!e.relatedTarget || !ref.current.contains(e.relatedTarget)) && state.anchorDate) state.selectFocusedDate();
|
|
908
|
+
};
|
|
909
|
+
// Prevent touch scrolling while dragging
|
|
910
|
+
($e9faafb641e167db$export$90fc3a17d93f704c)(ref, "touchmove", (e)=>{
|
|
911
|
+
if (state.isDragging) e.preventDefault();
|
|
912
|
+
}, {
|
|
913
|
+
passive: false,
|
|
914
|
+
capture: true
|
|
915
|
+
});
|
|
916
|
+
return res;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/*
|
|
921
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
922
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
923
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
924
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
925
|
+
*
|
|
926
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
927
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
928
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
929
|
+
* governing permissions and limitations under the License.
|
|
930
|
+
*/
|
|
931
|
+
|
|
932
|
+
|
|
877
933
|
|
|
878
934
|
|
|
879
935
|
function $e3031d1f8c9d64eb$export$cb95147730a423f5(props, state) {
|
|
@@ -1243,5 +1299,5 @@ function $36a0ac60f04457c5$export$136073280381448e(props, state, ref) {
|
|
|
1243
1299
|
};
|
|
1244
1300
|
}
|
|
1245
1301
|
|
|
1246
|
-
export { $9942cad8a072a530$export$3ee915f8151bd4f1 as useCalendar, $36a0ac60f04457c5$export$136073280381448e as useCalendarCell, $e3031d1f8c9d64eb$export$cb95147730a423f5 as useCalendarGrid };
|
|
1302
|
+
export { $9942cad8a072a530$export$3ee915f8151bd4f1 as useCalendar, $36a0ac60f04457c5$export$136073280381448e as useCalendarCell, $e3031d1f8c9d64eb$export$cb95147730a423f5 as useCalendarGrid, $46a4342aab3d8076$export$87e0539f600c24e5 as useRangeCalendar };
|
|
1247
1303
|
//# sourceMappingURL=import.js.map
|