@selfdecode/sd-component-library 4.0.78 → 4.0.80
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/README.md +17 -15
- package/lib/components/accordions/base-accordion/base-accordian.stories.d.ts +7 -0
- package/lib/components/accordions/sublist-accordion/sublist-accordian.stories.d.ts +8 -0
- package/lib/components/badges/primary-badge/primary-badge.stories.d.ts +6 -0
- package/lib/components/badges/secondary-badge/secondary-badge.stories.d.ts +6 -0
- package/lib/components/boolean-feedback/thumbs-feedback/thumbs-feedback.stories.d.ts +7 -0
- package/lib/components/boxes/outside-click-box/outside-click-box.stories.d.ts +7 -0
- package/lib/components/breadcrumbs/primary-breadcrumb/primary-breadcrumb.stories.d.ts +6 -0
- package/lib/components/breadcrumbs/secondary-breadcrumb/secondary-breadcrumb.stories.d.ts +6 -0
- package/lib/components/buttons/cta/primary-blue-button/primary-blue-button.stories.d.ts +6 -0
- package/lib/components/buttons/cta/primary-orange-button/primary-orange-button.stories.d.ts +7 -0
- package/lib/components/buttons/cta/secondary-blue-button/secondary-blue-button.stories.d.ts +9 -0
- package/lib/components/buttons/cta/secondary-orange-button/secondary-orange-button.stories.d.ts +6 -0
- package/lib/components/buttons/cta/text-cta-button/text-cta-button.stories.d.ts +6 -0
- package/lib/components/buttons/logos/powered-by-grey-logo/powered-by-grey-logo.stories.d.ts +6 -0
- package/lib/components/buttons/logos/powered-by-white-logo/powered-by-grey-logo.stories.d.ts +6 -0
- package/lib/components/buttons/logos/sd-white-logo/sd-white-logo.stories.d.ts +6 -0
- package/lib/components/buttons/partials/circle-button/circle-button.stories.d.ts +6 -0
- package/lib/components/buttons/partials/icon-button/icon-button.stories.d.ts +9 -0
- package/lib/components/buttons/partials/square-button/square-button.stories.d.ts +6 -0
- package/lib/components/cards/round-card/round-card.stories.d.ts +6 -0
- package/lib/components/checkboxes/checkbox/checkbox.stories.d.ts +9 -0
- package/lib/components/checkboxes/checkbox-v2/checkbox.stories.d.ts +10 -0
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/interfaces.d.ts +1 -0
- package/lib/components/checkboxes/partial-checkbox/partial-checkbox.stories.d.ts +9 -0
- package/lib/components/checkboxes/partial-checkbox-v2/partial-checkbox-v2.stories.d.ts +10 -0
- package/lib/components/containers/layout-independend-max-width-container/layout-independend-max-width-container.stories.d.ts +6 -0
- package/lib/components/containers/section-container/section-container.stories.d.ts +6 -0
- package/lib/components/custom-scrollbar-box/custom-scrollbar-box.stories.d.ts +7 -0
- package/lib/components/dividers/horizontal-divider/horizontal-divider.stories.d.ts +6 -0
- package/lib/components/dividers/vertical-divider/vertical-divider.stories.d.ts +6 -0
- package/lib/components/feature-explanation/feature-explanation.stories.d.ts +6 -0
- package/lib/components/feedback/multiple-options-feedback/multiple-options-feedback.stories.d.ts +7 -0
- package/lib/components/feedback/yes-no-feedback-block/yes-no-feedback-block.stories.d.ts +7 -0
- package/lib/components/icons/bordered-plain-warning-circle-icon/bordered-plain-warning-circle-icon.stories.d.ts +8 -0
- package/lib/components/icons/round-bordered-star/round-bordered-star.stories.d.ts +9 -0
- package/lib/components/icons/triangular-pointer-icon/triangular-pointer-icon.stories.d.ts +6 -0
- package/lib/components/inputs/autocomplete-input/autocomplete-input.stories.d.ts +7 -0
- package/lib/components/inputs/autocomplete-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/client-portal-input/client-portal-input.stories.d.ts +8 -0
- package/lib/components/inputs/date-inputs/outlined-date-input/outlined-date-input.stories.d.ts +7 -0
- package/lib/components/inputs/date-inputs/outlined-date-range-input/outlined-date-range-input.stories.d.ts +8 -0
- package/lib/components/inputs/date-inputs/primary-date-input/primary-date-input.stories.d.ts +9 -0
- package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.stories.d.ts +7 -0
- package/lib/components/inputs/decody-question-input/decody-question-input.stories.d.ts +6 -0
- package/lib/components/inputs/input/interfaces.d.ts +1 -14
- package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.stories.d.ts +7 -0
- package/lib/components/inputs/primary-number-input/primary-number-input.stories.d.ts +6 -0
- package/lib/components/inputs/primary-text-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/primary-text-input/primary-number-input.stories.d.ts +7 -0
- package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.stories.d.ts +7 -0
- package/lib/components/inputs/search-input/search-input.stories.d.ts +6 -0
- package/lib/components/inputs/search-input-v2/search-input-v2.stories.d.ts +6 -0
- package/lib/components/inputs/secondary-number-input/secondary-number-input.stories.d.ts +10 -0
- package/lib/components/inputs/secondary-text-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/secondary-text-input/secondary-text-input.stories.d.ts +8 -0
- package/lib/components/inputs/text-input/interfaces.d.ts +1 -6
- package/lib/components/links/primary-link/primary-link.stories.d.ts +7 -0
- package/lib/components/lists/primary-list/primary-list.stories.d.ts +6 -0
- package/lib/components/menus/actions-menu/actions-menu.stories.d.ts +6 -0
- package/lib/components/meters/bars-meter/bars-meter.stories.d.ts +8 -0
- package/lib/components/meters/compact-donut-gauge/compact-donut-gauge.stories.d.ts +7 -0
- package/lib/components/meters/dashed-meter/dashed-meter.stories.d.ts +7 -0
- package/lib/components/meters/donut-diagram/donut-diagram.stories.d.ts +9 -0
- package/lib/components/meters/gradient-outline-meter/gradient-outline-meter.stories.d.ts +9 -0
- package/lib/components/meters/gradient-outline-meter/small-gradient-outline-meter.stories.d.ts +9 -0
- package/lib/components/meters/linear-discrete-gauge-meter/linear-discrete-gauge-meter.stories.d.ts +6 -0
- package/lib/components/meters/linear-numeric-gauge-meter/linear-numeric-gauge-meter.stories.d.ts +6 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/multi-option-discrete-outline-meter.stories.d.ts +6 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/small-multi-option-discrete-outline-meter.stories.d.ts +6 -0
- package/lib/components/meters/outline-meter/outline-meter.stories.d.ts +9 -0
- package/lib/components/meters/outline-meter/small-outline-meter.stories.d.ts +9 -0
- package/lib/components/meters/people-meter/people-meter.stories.d.ts +6 -0
- package/lib/components/meters/smiley-meter-v2/small-smiley-meter-v2.stories.d.ts +7 -0
- package/lib/components/meters/smiley-meter-v2/smiley-meter-v2.stories.d.ts +7 -0
- package/lib/components/modals/primary-modal/primary-modal.stories.d.ts +8 -0
- package/lib/components/page-selectors/page-selector/page-selector.stories.d.ts +6 -0
- package/lib/components/pagination-bars/pagination-bar/pagination-bar.stories.d.ts +6 -0
- package/lib/components/pagination-bars/pagination-bar-mobile/pagination-bar-mobile.stories.d.ts +7 -0
- package/lib/components/progress-bars/line-progress-bar/line-progress-bar.stories.d.ts +6 -0
- package/lib/components/progress-bars/rounded-progress-bar/rounded-progress-bar.stories.d.ts +6 -0
- package/lib/components/progress-bars/striped-line-progress-bar/striped-line-progress-bar.stories.d.ts +6 -0
- package/lib/components/progress-steps/progress-steps.stories.d.ts +7 -0
- package/lib/components/selectors/combined-secondary-custom-selector/combined-secondary-custom-selector.stories.d.ts +7 -0
- package/lib/components/selectors/combined-secondary-selector-v2/combined-secondary-selector-v2.stories.d.ts +7 -0
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.stories.d.ts +6 -0
- package/lib/components/selectors/custom-scrollable-selector/custom-scrollable-selector.stories.d.ts +7 -0
- package/lib/components/selectors/custom-selector/custom-selector.stories.d.ts +7 -0
- package/lib/components/selectors/primary-custom-scrollable-selector/primary-custom-scrollable-selector.stories.d.ts +8 -0
- package/lib/components/selectors/primary-selector/primary-selector.stories.d.ts +7 -0
- package/lib/components/selectors/primary-selector-v2/primary-selector-v2.stories.d.ts +7 -0
- package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.stories.d.ts +7 -0
- package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/secondary-selector/secondary-selector.stories.d.ts +9 -0
- package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.stories.d.ts +7 -0
- package/lib/components/selectors/selector/interfaces.d.ts +2 -1
- package/lib/components/selectors/selector/selector.stories.d.ts +6 -0
- package/lib/components/selectors/selector-v2/selector-v2.stories.d.ts +10 -0
- package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.stories.d.ts +7 -0
- package/lib/components/selectors/tertiary-selector/interfaces.d.ts +1 -1
- package/lib/components/selectors/tertiary-selector/tertiary-selector.stories.d.ts +8 -0
- package/lib/components/selectors/tertiary-selector-v2/tertiary-selector-v2.stories.d.ts +7 -0
- package/lib/components/selectors/updated-secondary-selector-v2/updated-secondary-selector-v2.stories.d.ts +7 -0
- package/lib/components/switches/carousel-switch/carousel-switch.stories.d.ts +7 -0
- package/lib/components/switches/text-switch/text-switch.stories.d.ts +7 -0
- package/lib/components/switches/toggle-switch/toggle-switch.stories.d.ts +6 -0
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
- package/lib/components/tabs/tab-bar/tab-bar.stories.d.ts +17 -0
- package/lib/components/tabs/tab-bar-v2/tab-bar-v2.stories.d.ts +9 -0
- package/lib/components/tabs/tabbed-view-v2/tab-bar-v2.stories.d.ts +7 -0
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
- package/lib/components/tabs/tabs-menu/tabs-menu.stories.d.ts +29 -0
- package/lib/components/texts/base-text-v2/base-text-v2.stories.d.ts +6 -0
- package/lib/components/texts/eighteen-bold/eighteen-bold.stories.d.ts +6 -0
- package/lib/components/texts/eighteen-regular/eighteen-regular.stories.d.ts +6 -0
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.stories.d.ts +6 -0
- package/lib/components/texts/fourteen-regular/fourteen-regular.stories.d.ts +6 -0
- package/lib/components/texts/fourteen-sb/fourteen-sb.stories.d.ts +6 -0
- package/lib/components/texts/fourty-bold/fourty-bold.stories.d.ts +6 -0
- package/lib/components/texts/no-translate/no-translate.stories.d.ts +6 -0
- package/lib/components/texts/responsive-text/responsive-text.stories.d.ts +6 -0
- package/lib/components/texts/responsive-text-v2/responsive-text-v2.stories.d.ts +6 -0
- package/lib/components/texts/sixteen-regular/sixteen-regular.stories.d.ts +6 -0
- package/lib/components/texts/sixteen-sb/sixteen-sb.stories.d.ts +6 -0
- package/lib/components/texts/ten-sb/ten-sb.stories.d.ts +6 -0
- package/lib/components/texts/thirteen-bold/thirteen-bold.stories.d.ts +6 -0
- package/lib/components/texts/thirteen-regular/thirteen-regular.stories.d.ts +6 -0
- package/lib/components/texts/thirteen-sb/thirteen-sb.stories.d.ts +6 -0
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.stories.d.ts +6 -0
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.stories.d.ts +6 -0
- package/lib/components/texts/twelve-regular/twelve-regular.stories.d.ts +6 -0
- package/lib/components/texts/twelve-sb/twelve-regular.stories.d.ts +6 -0
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.stories.d.ts +6 -0
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.stories.d.ts +6 -0
- package/lib/components/tooltips/actions-tooltip/actions-tooltip.stories.d.ts +6 -0
- package/lib/components/tooltips/primary-info-tooltip/primary-info-tooltip.stories.d.ts +6 -0
- package/lib/components/tooltips/react-element-tooltip/react-element-tooltip.stories.d.ts +6 -0
- package/lib/components/tooltips/tooltip-with-pointer/tooltip-with-pointer.stories.d.ts +8 -0
- package/lib/sd-component-library101.js +4 -4
- package/lib/sd-component-library106.js +1 -1
- package/lib/sd-component-library107.js +37 -38
- package/lib/sd-component-library107.js.map +1 -1
- package/lib/sd-component-library108.js +7 -8
- package/lib/sd-component-library108.js.map +1 -1
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library113.js +1 -1
- package/lib/sd-component-library115.js +1 -1
- package/lib/sd-component-library116.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library124.js +1 -1
- package/lib/sd-component-library127.js +3 -3
- package/lib/sd-component-library128.js +1 -1
- package/lib/sd-component-library130.js +2 -2
- package/lib/sd-component-library161.js +1 -1
- package/lib/sd-component-library162.js +1 -1
- package/lib/sd-component-library165.js +1 -1
- package/lib/sd-component-library166.js +4 -4
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library190.js +3 -3
- package/lib/sd-component-library193.js +2 -60
- package/lib/sd-component-library193.js.map +1 -1
- package/lib/sd-component-library194.js +30 -3
- package/lib/sd-component-library194.js.map +1 -1
- package/lib/sd-component-library195.js +599 -2
- package/lib/sd-component-library195.js.map +1 -1
- package/lib/sd-component-library196.js +60 -30
- package/lib/sd-component-library196.js.map +1 -1
- package/lib/sd-component-library197.js +3 -599
- package/lib/sd-component-library197.js.map +1 -1
- package/lib/sd-component-library203.js +65 -18
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library204.js +18 -64
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library210.js +1 -1
- package/lib/sd-component-library211.js +128 -13
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +13 -3
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +14 -3
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +3 -129
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +3 -13
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +3 -65
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +52 -3
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +65 -3
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +3 -52
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library222.js +26 -3
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +3 -31
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +31 -19
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +19 -20
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +20 -28
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +27 -32
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +33 -3
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +3 -129
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library230.js +129 -43
- package/lib/sd-component-library230.js.map +1 -1
- package/lib/sd-component-library231.js +41 -45
- package/lib/sd-component-library231.js.map +1 -1
- package/lib/sd-component-library232.js +46 -7
- package/lib/sd-component-library232.js.map +1 -1
- package/lib/sd-component-library233.js +8 -64
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library234.js +62 -41
- package/lib/sd-component-library234.js.map +1 -1
- package/lib/sd-component-library235.js +43 -13
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +13 -21
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +2 -109
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +2 -47
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +21 -24
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +103 -47
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +45 -46
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +23 -74
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +52 -40
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +47 -26
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +72 -18
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +41 -20
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +27 -2
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +19 -323
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +20 -5
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +2 -26
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +323 -27
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +5 -3
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +25 -20
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +1 -1
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +17 -18
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +3 -22
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +25 -30
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +21 -50
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +30 -131
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +39 -62
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +117 -62
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +74 -30
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +70 -15
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +25 -120
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +16 -117
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +125 -10
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +111 -39
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +10 -9
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +48 -49
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +8 -89
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +48 -89
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +89 -48
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +92 -2
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +49 -2
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library278.js +2 -2
- package/lib/sd-component-library279.js +2 -2
- package/lib/sd-component-library289.js +3 -3
- package/lib/sd-component-library290.js +4 -4
- package/lib/sd-component-library291.js +1 -1
- package/lib/sd-component-library292.js +58 -2
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +25 -76
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +50 -92
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +90 -50
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +25 -9
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +35 -5
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +5 -53
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +4 -2
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +9 -2
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +4 -8
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +4 -5
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +19 -4
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +3 -19
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +34 -3
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +2 -6
- package/lib/sd-component-library306.js.map +1 -1
- package/lib/sd-component-library307.js +75 -56
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library308.js +91 -24
- package/lib/sd-component-library308.js.map +1 -1
- package/lib/sd-component-library309.js +52 -50
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +9 -93
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +5 -35
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +52 -24
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +28 -4
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +21 -4
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +6 -34
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +89 -28
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +32 -21
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +2 -90
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +2 -32
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library32.js +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library55.js +23 -23
- package/lib/sd-component-library55.js.map +1 -1
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library65.js +28 -28
- package/lib/sd-component-library65.js.map +1 -1
- package/lib/sd-component-library67.js +3 -3
- package/lib/sd-component-library68.js +15 -19
- package/lib/sd-component-library68.js.map +1 -1
- package/lib/sd-component-library69.js +2 -2
- package/lib/sd-component-library70.js +3 -3
- package/lib/sd-component-library73.js +16 -15
- package/lib/sd-component-library73.js.map +1 -1
- package/lib/sd-component-library74.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +6 -6
- package/lib/sd-component-library82.js +2 -2
- package/lib/sd-component-library83.js +1 -1
- package/lib/sd-component-library84.js +5 -5
- package/lib/sd-component-library85.js +1 -1
- package/lib/sd-component-library87.js +6 -6
- package/lib/sd-component-library88.js +1 -1
- package/lib/sd-component-library89.js +7 -7
- package/lib/sd-component-library90.js +1 -1
- package/lib/sd-component-library93.js +2 -2
- package/lib/sd-component-library94.js +3 -3
- package/lib/sd-component-library95.js +2 -2
- package/lib/sd-component-library96.js +3 -3
- package/lib/sd-component-library97.js +2 -2
- package/lib/sd-component-library99.js +4 -4
- package/package.json +20 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library271.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-
|
|
1
|
+
{"version":3,"file":"sd-component-library271.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-mobile/tooltip-with-pointer-mobile.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { HorizontalDivider } from \"../../../../dividers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerProps } from \"../../interfaces\";\n\ntype Props = Pick<\n TooltipWithPointerProps,\n \"mobileTitle\" | \"tooltipText\" | \"tooltipWidth\" | \"zIndex\" | \"pointerColor\"\n>;\n\nexport const TooltipWithPointerMobile = React.forwardRef<HTMLDivElement, Props>(\n ({ mobileTitle, tooltipWidth, tooltipText, zIndex, pointerColor }, ref) => {\n return (\n <FlexCenter\n sx={{\n position: \"fixed\",\n top: 0,\n left: 0,\n width: \"100vw\",\n height: \"100vh\",\n bg: \"#262626AA\",\n zIndex,\n }}\n ref={ref}\n >\n <FlexCenter\n flexDirection=\"column\"\n sx={{\n width: tooltipWidth,\n maxWidth: \"min(500px, calc(100vw - 30px))\",\n bg: \"cl_white\",\n p: \"20px\",\n borderRadius: \"5px\",\n }}\n >\n {mobileTitle && (\n <>\n <ResponsiveTextV2 maxWidth=\"100%\" fontSizeWeight={[16, \"bold\"]}>\n {mobileTitle}\n </ResponsiveTextV2>\n\n <HorizontalDivider\n width=\"min(50px, calc(100% - 40px))\"\n color={pointerColor}\n height=\"2px\"\n m=\"10px 0\"\n />\n </>\n )}\n\n <ResponsiveTextV2 maxWidth=\"100%\" fontSizeWeight={[14, \"regular\"]}>\n {tooltipText}\n </ResponsiveTextV2>\n </FlexCenter>\n </FlexCenter>\n );\n }\n);\n"],"names":["TooltipWithPointerMobile","React","mobileTitle","tooltipWidth","tooltipText","zIndex","pointerColor","ref","jsx","FlexCenter","jsxs","Fragment","ResponsiveTextV2","HorizontalDivider"],"mappings":";;;;;AAYO,MAAMA,IAA2BC,EAAM;AAAA,EAC5C,CAAC,EAAE,aAAAC,GAAa,cAAAC,GAAc,aAAAC,GAAa,QAAAC,GAAQ,cAAAC,KAAgBC,MAE/DC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,IAAI;AAAA,QACJ,QAAAJ;AAAA,MACF;AAAA,MACA,KAAAE;AAAA,MAEA,UAAAG,gBAAAA,EAAA;AAAA,QAACD;AAAA,QAAA;AAAA,UACC,eAAc;AAAA,UACd,IAAI;AAAA,YACF,OAAON;AAAA,YACP,UAAU;AAAA,YACV,IAAI;AAAA,YACJ,GAAG;AAAA,YACH,cAAc;AAAA,UAChB;AAAA,UAEC,UAAA;AAAA,YAAAD,KAEGQ,gBAAAA,EAAA,KAAAC,YAAA,EAAA,UAAA;AAAA,cAACH,gBAAAA,EAAAA,IAAAI,GAAA,EAAiB,UAAS,QAAO,gBAAgB,CAAC,IAAI,MAAM,GAC1D,UACHV,EAAA,CAAA;AAAA,cAEAM,gBAAAA,EAAA;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,OAAM;AAAA,kBACN,OAAOP;AAAA,kBACP,QAAO;AAAA,kBACP,GAAE;AAAA,gBAAA;AAAA,cACJ;AAAA,YAAA,GACF;AAAA,YAGFE,gBAAAA,EAAAA,IAACI,KAAiB,UAAS,QAAO,gBAAgB,CAAC,IAAI,SAAS,GAC7D,UACHR,EAAA,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -1,52 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as r } from "./sd-component-library190.js";
|
|
2
|
+
import u from "react";
|
|
3
|
+
import { Flex as j, Box as s } from "rebass";
|
|
4
|
+
import { TriangularPointerIcon as x } from "./sd-component-library184.js";
|
|
5
|
+
import { ResponsiveTextV2 as R } from "./sd-component-library144.js";
|
|
6
|
+
const $ = u.forwardRef(
|
|
7
|
+
({
|
|
8
|
+
pointerSx: n,
|
|
9
|
+
tooltipSx: d,
|
|
10
|
+
tooltipText: p,
|
|
11
|
+
tooltipWidth: l,
|
|
12
|
+
tooltipPy: a,
|
|
13
|
+
tooltipPx: h,
|
|
14
|
+
pointerSize: c,
|
|
15
|
+
tooltipOffset: i,
|
|
16
|
+
placement: t,
|
|
17
|
+
containerSx: y,
|
|
18
|
+
animationDuration: g,
|
|
19
|
+
state: m,
|
|
20
|
+
pointerColor: o
|
|
21
|
+
}, f) => {
|
|
22
|
+
const b = t === "right" ? {
|
|
23
|
+
left: "100%"
|
|
24
|
+
} : {
|
|
25
|
+
right: "100%"
|
|
26
|
+
}, e = {
|
|
27
|
+
size: `${c}px`,
|
|
28
|
+
color: o,
|
|
29
|
+
sx: {
|
|
30
|
+
my: "auto",
|
|
31
|
+
...n
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ r.jsxs(
|
|
35
|
+
j,
|
|
36
|
+
{
|
|
37
|
+
sx: {
|
|
38
|
+
position: "absolute",
|
|
39
|
+
top: "calc(50% - 14px)",
|
|
40
|
+
cursor: "default",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
opacity: m === "entered" ? 1 : 0,
|
|
43
|
+
transition: `opacity ${g}ms`,
|
|
44
|
+
zIndex: 1,
|
|
45
|
+
...b,
|
|
46
|
+
...d
|
|
47
|
+
},
|
|
48
|
+
ref: f,
|
|
49
|
+
"data-test": "tooltip-content",
|
|
50
|
+
children: [
|
|
51
|
+
t === "right" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
52
|
+
/* @__PURE__ */ r.jsx(s, { width: `${i}px` }),
|
|
53
|
+
/* @__PURE__ */ r.jsx(x, { direction: "left", ...e })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ r.jsx(
|
|
56
|
+
R,
|
|
57
|
+
{
|
|
58
|
+
fontSizeWeight: [14, "regular"],
|
|
59
|
+
sx: {
|
|
60
|
+
width: l,
|
|
61
|
+
lineHeight: "16px",
|
|
62
|
+
bg: "cl_white",
|
|
63
|
+
px: h,
|
|
64
|
+
py: a,
|
|
65
|
+
borderColor: "cl_lightGrey",
|
|
66
|
+
borderWidth: "1px",
|
|
67
|
+
borderStyle: "solid",
|
|
68
|
+
...t === "left" ? {
|
|
69
|
+
borderRightWidth: "2px",
|
|
70
|
+
borderRightColor: o,
|
|
71
|
+
borderRadius: "3px 0 0 3px"
|
|
72
|
+
} : {
|
|
73
|
+
borderLeftWidth: "2px",
|
|
74
|
+
borderLeftColor: o,
|
|
75
|
+
borderRadius: "0 3px 3px 0"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
children: p
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
t === "left" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
82
|
+
/* @__PURE__ */ r.jsx(x, { direction: "right", ...e }),
|
|
83
|
+
/* @__PURE__ */ r.jsx(s, { width: `${i}px` })
|
|
84
|
+
] })
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
);
|
|
7
88
|
}
|
|
8
|
-
|
|
9
|
-
* Check if ref is registered for a component with provided ID.
|
|
10
|
-
* @param id ID for the component.
|
|
11
|
-
*/
|
|
12
|
-
doesRefExist(e) {
|
|
13
|
-
return !!this.refRegistry[e];
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Register a ref.
|
|
17
|
-
*
|
|
18
|
-
* @param id ID for the component.
|
|
19
|
-
* @param ref React Ref object for the component. Used for scrolling.
|
|
20
|
-
*/
|
|
21
|
-
addRef(e, s) {
|
|
22
|
-
const r = e.startsWith("#") ? e : `#${e}`;
|
|
23
|
-
this.refRegistry[r] = s;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Remove a ref from registry.
|
|
27
|
-
*
|
|
28
|
-
* @param id ID for the component.
|
|
29
|
-
*/
|
|
30
|
-
removeRef(e) {
|
|
31
|
-
this.doesRefExist(e) ? delete this.refRegistry[e] : console.error(`Ref with ID ${e} does not exist in the registry`);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Scroll the component with provided ID into the view.
|
|
35
|
-
*
|
|
36
|
-
* @param id ID for the component.
|
|
37
|
-
* @param behavior Scroll behavior.
|
|
38
|
-
*/
|
|
39
|
-
scrollToRef(e, { behavior: s = "smooth", block: r, inline: f }) {
|
|
40
|
-
var o;
|
|
41
|
-
this.doesRefExist(e) ? (o = this.refRegistry[e].current) == null || o.scrollIntoView({
|
|
42
|
-
behavior: s,
|
|
43
|
-
block: r,
|
|
44
|
-
inline: f
|
|
45
|
-
}) : console.error(`Ref with ID ${e} does not exist in the registry`);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
const g = new h();
|
|
89
|
+
);
|
|
49
90
|
export {
|
|
50
|
-
|
|
91
|
+
$ as TooltipWithPointerHorizontal
|
|
51
92
|
};
|
|
52
93
|
//# sourceMappingURL=sd-component-library272.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library272.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library272.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-horizontal/tooltip-with-pointer-horizontal.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerHorizontal = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipSx,\n tooltipText,\n tooltipWidth,\n tooltipPy,\n tooltipPx,\n pointerSize,\n tooltipOffset,\n placement,\n containerSx,\n animationDuration,\n state,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"right\"\n ? {\n left: \"100%\",\n }\n : {\n right: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n sx={{\n position: \"absolute\",\n top: \"calc(50% - 14px)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"right\" && (\n <>\n <Box width={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"left\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"left\"\n ? {\n borderRightWidth: \"2px\",\n borderRightColor: pointerColor,\n borderRadius: \"3px 0 0 3px\",\n }\n : {\n borderLeftWidth: \"2px\",\n borderLeftColor: pointerColor,\n borderRadius: \"0 3px 3px 0\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"left\" && (\n <>\n <TriangularPointerIcon direction=\"right\" {...pointerCommonProps} />\n <Box width={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerHorizontal","React","pointerSx","tooltipSx","tooltipText","tooltipWidth","tooltipPy","tooltipPx","pointerSize","tooltipOffset","placement","containerSx","animationDuration","state","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA+BC,EAAM;AAAA,EAIhD,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,UACV;AAAA,MACE,MAAM;AAAA,IAAA,IAER;AAAA,MACE,OAAO;AAAA,IAAA,GAGTO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,IAAI;AAAA,UACF,UAAU;AAAA,UACV,KAAK;AAAA,UACL,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASN,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWD,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGI;AAAA,UACH,GAAGb;AAAA,QACL;AAAA,QACA,KAAAY;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,WAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,OAAO,GAAGb,CAAa,MAAM;AAAA,YACjCY,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,QAAQ,GAAGN,EAAoB,CAAA;AAAA,UAAA,GAClE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOnB;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIE;AAAA,gBACJ,IAAID;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,SACd;AAAA,kBACE,kBAAkB;AAAA,kBAClB,kBAAkBI;AAAA,kBAClB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,iBAAiB;AAAA,kBACjB,iBAAiBA;AAAA,kBACjB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,UAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,SAAS,GAAGN,EAAoB,CAAA;AAAA,YAChEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,OAAO,GAAGb,CAAa,MAAM;AAAA,UAAA,GACpC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
|
|
@@ -1,5 +1,95 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as o } from "./sd-component-library190.js";
|
|
2
|
+
import g from "react";
|
|
3
|
+
import { Flex as j, Box as s } from "rebass";
|
|
4
|
+
import { TriangularPointerIcon as n } from "./sd-component-library184.js";
|
|
5
|
+
import { ResponsiveTextV2 as y } from "./sd-component-library144.js";
|
|
6
|
+
const w = g.forwardRef(
|
|
7
|
+
({
|
|
8
|
+
pointerSx: x,
|
|
9
|
+
tooltipPx: p,
|
|
10
|
+
tooltipText: d,
|
|
11
|
+
tooltipSx: a,
|
|
12
|
+
tooltipPy: l,
|
|
13
|
+
tooltipOffset: e,
|
|
14
|
+
pointerSize: m,
|
|
15
|
+
tooltipWidth: c,
|
|
16
|
+
placement: t,
|
|
17
|
+
state: h,
|
|
18
|
+
containerSx: R,
|
|
19
|
+
animationDuration: b,
|
|
20
|
+
pointerColor: r
|
|
21
|
+
}, u) => {
|
|
22
|
+
const f = t === "bottom" ? {
|
|
23
|
+
top: "100%"
|
|
24
|
+
} : {
|
|
25
|
+
bottom: "100%"
|
|
26
|
+
}, i = {
|
|
27
|
+
size: `${m}px`,
|
|
28
|
+
color: r,
|
|
29
|
+
sx: {
|
|
30
|
+
my: "auto",
|
|
31
|
+
...x
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */ o.jsxs(
|
|
35
|
+
j,
|
|
36
|
+
{
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
sx: {
|
|
39
|
+
position: "absolute",
|
|
40
|
+
left: "50%",
|
|
41
|
+
transform: "translateX(-50%)",
|
|
42
|
+
cursor: "default",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
opacity: h === "entered" ? 1 : 0,
|
|
45
|
+
transition: `opacity ${b}ms`,
|
|
46
|
+
zIndex: 1,
|
|
47
|
+
...f,
|
|
48
|
+
...a
|
|
49
|
+
},
|
|
50
|
+
ref: u,
|
|
51
|
+
"data-test": "tooltip-content",
|
|
52
|
+
children: [
|
|
53
|
+
t === "bottom" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ o.jsx(s, { height: `${e}px` }),
|
|
55
|
+
/* @__PURE__ */ o.jsx(n, { direction: "top", ...i })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ o.jsx(
|
|
58
|
+
y,
|
|
59
|
+
{
|
|
60
|
+
fontSizeWeight: [14, "regular"],
|
|
61
|
+
sx: {
|
|
62
|
+
width: c,
|
|
63
|
+
lineHeight: "16px",
|
|
64
|
+
bg: "cl_white",
|
|
65
|
+
px: p,
|
|
66
|
+
py: l,
|
|
67
|
+
borderColor: "cl_lightGrey",
|
|
68
|
+
borderWidth: "1px",
|
|
69
|
+
borderStyle: "solid",
|
|
70
|
+
...t === "top" ? {
|
|
71
|
+
borderBottomWidth: "2px",
|
|
72
|
+
borderBottomColor: r,
|
|
73
|
+
borderRadius: "3px 3px 0 0"
|
|
74
|
+
} : {
|
|
75
|
+
borderTopWidth: "2px",
|
|
76
|
+
borderTopColor: r,
|
|
77
|
+
borderRadius: "0 0 3px 3px"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
children: d
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
t === "top" && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
84
|
+
/* @__PURE__ */ o.jsx(n, { direction: "bottom", ...i }),
|
|
85
|
+
/* @__PURE__ */ o.jsx(s, { height: `${e}px` })
|
|
86
|
+
] })
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
2
92
|
export {
|
|
3
|
-
|
|
93
|
+
w as TooltipWithPointerVertical
|
|
4
94
|
};
|
|
5
95
|
//# sourceMappingURL=sd-component-library273.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library273.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library273.js","sources":["../src/components/tooltips/tooltip-with-pointer/partials/tooltip-with-pointer-vertical/tooltip-with-pointer-vertical.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { TriangularPointerIcon } from \"../../../../icons\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { TooltipWithPointerPartialProps as Props } from \"../interfaces\";\n\nexport const TooltipWithPointerVertical = React.forwardRef<\n HTMLDivElement,\n Props\n>(\n (\n {\n pointerSx,\n tooltipPx,\n tooltipText,\n tooltipSx,\n tooltipPy,\n tooltipOffset,\n pointerSize,\n tooltipWidth,\n placement,\n state,\n containerSx,\n animationDuration,\n pointerColor,\n },\n ref\n ) => {\n const tooltipContainerProps =\n placement === \"bottom\"\n ? {\n top: \"100%\",\n }\n : {\n bottom: \"100%\",\n };\n\n const pointerCommonProps = {\n size: `${pointerSize}px`,\n color: pointerColor,\n sx: {\n my: \"auto\",\n ...pointerSx,\n },\n };\n\n return (\n <Flex\n flexDirection=\"column\"\n sx={{\n position: \"absolute\",\n left: \"50%\",\n transform: \"translateX(-50%)\",\n cursor: \"default\",\n alignItems: \"center\",\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms`,\n zIndex: 1,\n ...tooltipContainerProps,\n ...tooltipSx,\n }}\n ref={ref}\n data-test=\"tooltip-content\"\n >\n {placement === \"bottom\" && (\n <>\n <Box height={`${tooltipOffset}px`} />\n <TriangularPointerIcon direction=\"top\" {...pointerCommonProps} />\n </>\n )}\n\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n width: tooltipWidth,\n lineHeight: \"16px\",\n bg: \"cl_white\",\n px: tooltipPx,\n py: tooltipPy,\n borderColor: \"cl_lightGrey\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n ...(placement === \"top\"\n ? {\n borderBottomWidth: \"2px\",\n borderBottomColor: pointerColor,\n borderRadius: \"3px 3px 0 0\",\n }\n : {\n borderTopWidth: \"2px\",\n borderTopColor: pointerColor,\n borderRadius: \"0 0 3px 3px\",\n }),\n }}\n >\n {tooltipText}\n </ResponsiveTextV2>\n\n {placement === \"top\" && (\n <>\n <TriangularPointerIcon direction=\"bottom\" {...pointerCommonProps} />\n <Box height={`${tooltipOffset}px`} />\n </>\n )}\n </Flex>\n );\n }\n);\n"],"names":["TooltipWithPointerVertical","React","pointerSx","tooltipPx","tooltipText","tooltipSx","tooltipPy","tooltipOffset","pointerSize","tooltipWidth","placement","state","containerSx","animationDuration","pointerColor","ref","tooltipContainerProps","pointerCommonProps","jsxs","Flex","Fragment","jsx","Box","TriangularPointerIcon","ResponsiveTextV2"],"mappings":";;;;;AAQO,MAAMA,IAA6BC,EAAM;AAAA,EAI9C,CACE;AAAA,IACE,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,eAAAC;AAAA,IACA,aAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IACJN,MAAc,WACV;AAAA,MACE,KAAK;AAAA,IAAA,IAEP;AAAA,MACE,QAAQ;AAAA,IAAA,GAGVO,IAAqB;AAAA,MACzB,MAAM,GAAGT,CAAW;AAAA,MACpB,OAAOM;AAAA,MACP,IAAI;AAAA,QACF,IAAI;AAAA,QACJ,GAAGZ;AAAA,MACL;AAAA,IAAA;AAIA,WAAAgB,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,eAAc;AAAA,QACd,IAAI;AAAA,UACF,UAAU;AAAA,UACV,MAAM;AAAA,UACN,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,SAASR,MAAU,YAAY,IAAI;AAAA,UACnC,YAAY,WAAWE,CAAiB;AAAA,UACxC,QAAQ;AAAA,UACR,GAAGG;AAAA,UACH,GAAGX;AAAA,QACL;AAAA,QACA,KAAAU;AAAA,QACA,aAAU;AAAA,QAET,UAAA;AAAA,UAAAL,MAAc,YAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACC,GAAI,EAAA,QAAQ,GAAGf,CAAa,MAAM;AAAA,YAClCc,gBAAAA,EAAA,IAAAE,GAAA,EAAsB,WAAU,OAAO,GAAGN,EAAoB,CAAA;AAAA,UAAA,GACjE;AAAA,UAGFI,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,cAC9B,IAAI;AAAA,gBACF,OAAOf;AAAA,gBACP,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,IAAIN;AAAA,gBACJ,IAAIG;AAAA,gBACJ,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,aAAa;AAAA,gBACb,GAAII,MAAc,QACd;AAAA,kBACE,mBAAmB;AAAA,kBACnB,mBAAmBI;AAAA,kBACnB,cAAc;AAAA,gBAAA,IAEhB;AAAA,kBACE,gBAAgB;AAAA,kBAChB,gBAAgBA;AAAA,kBAChB,cAAc;AAAA,gBAChB;AAAA,cACN;AAAA,cAEC,UAAAV;AAAA,YAAA;AAAA,UACH;AAAA,UAECM,MAAc,SAEXQ,gBAAAA,EAAAA,KAAAE,EAAA,UAAA,EAAA,UAAA;AAAA,YAAAC,gBAAAA,EAAA,IAACE,GAAsB,EAAA,WAAU,UAAU,GAAGN,EAAoB,CAAA;AAAA,YACjEI,gBAAAA,EAAA,IAAAC,GAAA,EAAI,QAAQ,GAAGf,CAAa,MAAM;AAAA,UAAA,GACrC;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
|
|
@@ -1,5 +1,52 @@
|
|
|
1
|
-
var
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var R = (t, e, s) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
+
var i = (t, e, s) => (R(t, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
+
class h {
|
|
5
|
+
constructor() {
|
|
6
|
+
i(this, "refRegistry", {});
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Check if ref is registered for a component with provided ID.
|
|
10
|
+
* @param id ID for the component.
|
|
11
|
+
*/
|
|
12
|
+
doesRefExist(e) {
|
|
13
|
+
return !!this.refRegistry[e];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Register a ref.
|
|
17
|
+
*
|
|
18
|
+
* @param id ID for the component.
|
|
19
|
+
* @param ref React Ref object for the component. Used for scrolling.
|
|
20
|
+
*/
|
|
21
|
+
addRef(e, s) {
|
|
22
|
+
const r = e.startsWith("#") ? e : `#${e}`;
|
|
23
|
+
this.refRegistry[r] = s;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Remove a ref from registry.
|
|
27
|
+
*
|
|
28
|
+
* @param id ID for the component.
|
|
29
|
+
*/
|
|
30
|
+
removeRef(e) {
|
|
31
|
+
this.doesRefExist(e) ? delete this.refRegistry[e] : console.error(`Ref with ID ${e} does not exist in the registry`);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Scroll the component with provided ID into the view.
|
|
35
|
+
*
|
|
36
|
+
* @param id ID for the component.
|
|
37
|
+
* @param behavior Scroll behavior.
|
|
38
|
+
*/
|
|
39
|
+
scrollToRef(e, { behavior: s = "smooth", block: r, inline: f }) {
|
|
40
|
+
var o;
|
|
41
|
+
this.doesRefExist(e) ? (o = this.refRegistry[e].current) == null || o.scrollIntoView({
|
|
42
|
+
behavior: s,
|
|
43
|
+
block: r,
|
|
44
|
+
inline: f
|
|
45
|
+
}) : console.error(`Ref with ID ${e} does not exist in the registry`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const g = new h();
|
|
2
49
|
export {
|
|
3
|
-
|
|
50
|
+
g as refsManager
|
|
4
51
|
};
|
|
5
52
|
//# sourceMappingURL=sd-component-library274.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library274.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library274.js","sources":["../src/components/utils/anchor/refs-manager.ts"],"sourcesContent":["import React from \"react\";\n\nimport { refsMap } from \"./interfaces\";\n\n/**\n * Refs Manager class to keep record of registered refs on the page.\n */\nclass RefsManager {\n refRegistry: refsMap = {};\n\n /**\n * Check if ref is registered for a component with provided ID.\n * @param id ID for the component.\n */\n public doesRefExist(id: string) {\n return !!this.refRegistry[id];\n }\n\n /**\n * Register a ref.\n *\n * @param id ID for the component.\n * @param ref React Ref object for the component. Used for scrolling.\n */\n public addRef(\n id: string,\n ref: React.MutableRefObject<HTMLDivElement | undefined>\n ) {\n const key = id.startsWith(\"#\") ? id : `#${id}`;\n\n this.refRegistry[key] = ref;\n }\n\n /**\n * Remove a ref from registry.\n *\n * @param id ID for the component.\n */\n public removeRef(id: string) {\n if (this.doesRefExist(id)) delete this.refRegistry[id];\n else console.error(`Ref with ID ${id} does not exist in the registry`);\n }\n\n /**\n * Scroll the component with provided ID into the view.\n *\n * @param id ID for the component.\n * @param behavior Scroll behavior.\n */\n public scrollToRef(\n id: string,\n { behavior = \"smooth\", block, inline }: ScrollIntoViewOptions\n ) {\n if (this.doesRefExist(id))\n this.refRegistry[id].current?.scrollIntoView({\n behavior,\n block,\n inline,\n });\n else console.error(`Ref with ID ${id} does not exist in the registry`);\n }\n}\n\nexport const refsManager = new RefsManager();\n"],"names":["RefsManager","__publicField","id","ref","key","behavior","block","inline","_a","refsManager"],"mappings":";;;AAOA,MAAMA,EAAY;AAAA,EAAlB;AACE,IAAAC,EAAA,qBAAuB,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,aAAaC,GAAY;AAC9B,WAAO,CAAC,CAAC,KAAK,YAAYA,CAAE;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,OACLA,GACAC,GACA;AACA,UAAMC,IAAMF,EAAG,WAAW,GAAG,IAAIA,IAAK,IAAIA,CAAE;AAEvC,SAAA,YAAYE,CAAG,IAAID;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,UAAUD,GAAY;AACvB,IAAA,KAAK,aAAaA,CAAE,IAAU,OAAA,KAAK,YAAYA,CAAE,IACxC,QAAA,MAAM,eAAeA,CAAE,iCAAiC;AAAA,EACvE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQO,YACLA,GACA,EAAE,UAAAG,IAAW,UAAU,OAAAC,GAAO,QAAAC,KAC9B;AA7CJ,QAAAC;AA8CQ,IAAA,KAAK,aAAaN,CAAE,KACtBM,IAAA,KAAK,YAAYN,CAAE,EAAE,YAArB,QAAAM,EAA8B,eAAe;AAAA,MAC3C,UAAAH;AAAA,MACA,OAAAC;AAAA,MACA,QAAAC;AAAA,IAAA,KAES,QAAA,MAAM,eAAeL,CAAE,iCAAiC;AAAA,EACvE;AACF;AAEa,MAAAO,IAAc,IAAIT,EAAY;"}
|
|
@@ -5,10 +5,10 @@ import { Box as x } from "rebass";
|
|
|
5
5
|
import { getCalendarProps as c } from "./sd-component-library277.js";
|
|
6
6
|
import { OutsideClickBox as m } from "./sd-component-library11.js";
|
|
7
7
|
import { ResponsiveTextV2 as f } from "./sd-component-library144.js";
|
|
8
|
-
import { SelectedRangeText as h } from "./sd-component-
|
|
8
|
+
import { SelectedRangeText as h } from "./sd-component-library313.js";
|
|
9
9
|
import { FrFrContainer as g } from "./sd-component-library37.js";
|
|
10
10
|
import { PrimaryTextButton as u } from "./sd-component-library21.js";
|
|
11
|
-
import { ApplyButton as R } from "./sd-component-
|
|
11
|
+
import { ApplyButton as R } from "./sd-component-library314.js";
|
|
12
12
|
const z = l.forwardRef(
|
|
13
13
|
(e, i) => {
|
|
14
14
|
const { zIndex: n, customOptionSelected: a, handleCancel: o, getStaticRanges: d } = e, p = (t) => {
|
|
@@ -4,8 +4,8 @@ import { Box as l } from "rebass";
|
|
|
4
4
|
import { getCalendarProps as x } from "./sd-component-library277.js";
|
|
5
5
|
import { TenSb as m } from "./sd-component-library147.js";
|
|
6
6
|
import { PrimaryTextButton as s } from "./sd-component-library21.js";
|
|
7
|
-
import { SelectedRangeText as c } from "./sd-component-
|
|
8
|
-
import { ApplyButton as f } from "./sd-component-
|
|
7
|
+
import { SelectedRangeText as c } from "./sd-component-library313.js";
|
|
8
|
+
import { ApplyButton as f } from "./sd-component-library314.js";
|
|
9
9
|
import { GridContainerV2 as g } from "./sd-component-library39.js";
|
|
10
10
|
const B = (r) => {
|
|
11
11
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __module as e } from "./sd-component-
|
|
2
|
-
import { __require as o } from "./sd-component-
|
|
3
|
-
import { __require as t } from "./sd-component-
|
|
1
|
+
import { __module as e } from "./sd-component-library306.js";
|
|
2
|
+
import { __require as o } from "./sd-component-library307.js";
|
|
3
|
+
import { __require as t } from "./sd-component-library308.js";
|
|
4
4
|
var r;
|
|
5
5
|
function p() {
|
|
6
6
|
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __require as F } from "./sd-component-library289.js";
|
|
2
|
-
import { __require as N } from "./sd-component-
|
|
3
|
-
import { __require as ee } from "./sd-component-
|
|
4
|
-
import { __require as re } from "./sd-component-
|
|
5
|
-
import { __require as ne } from "./sd-component-
|
|
2
|
+
import { __require as N } from "./sd-component-library309.js";
|
|
3
|
+
import { __require as ee } from "./sd-component-library310.js";
|
|
4
|
+
import { __require as re } from "./sd-component-library311.js";
|
|
5
|
+
import { __require as ne } from "./sd-component-library312.js";
|
|
6
6
|
var A, C;
|
|
7
7
|
function oe() {
|
|
8
8
|
if (C)
|
|
@@ -1,5 +1,61 @@
|
|
|
1
|
-
|
|
1
|
+
import { j as e } from "./sd-component-library190.js";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { Flex as p, Box as j } from "rebass";
|
|
4
|
+
import { SixteenRegular as l } from "./sd-component-library145.js";
|
|
5
|
+
import { ThirteenRegular as i } from "./sd-component-library149.js";
|
|
6
|
+
function b(o) {
|
|
7
|
+
const { synonyms: t, value: r, onSelect: c } = o, n = h(() => t[0], [t]), x = h(() => t.slice(1), [t]), a = h(() => {
|
|
8
|
+
const s = n.toLowerCase().indexOf(r.toLowerCase());
|
|
9
|
+
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
10
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(0, s) }) }),
|
|
11
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s, s + r.length) }) }),
|
|
12
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s + r.length) }) })
|
|
13
|
+
] });
|
|
14
|
+
}, [n, r]);
|
|
15
|
+
return /* @__PURE__ */ e.jsxs(
|
|
16
|
+
j,
|
|
17
|
+
{
|
|
18
|
+
sx: {
|
|
19
|
+
p: "10px 16px",
|
|
20
|
+
cursor: "pointer"
|
|
21
|
+
},
|
|
22
|
+
onClick: (s) => c(n),
|
|
23
|
+
"data-test": "result-box",
|
|
24
|
+
children: [
|
|
25
|
+
a,
|
|
26
|
+
/* @__PURE__ */ e.jsx(p, { flexWrap: "wrap", children: x.map((s, d, u) => /* @__PURE__ */ e.jsx(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
value: r,
|
|
30
|
+
synonym: s,
|
|
31
|
+
appendSlash: d !== u.length - 1
|
|
32
|
+
},
|
|
33
|
+
s
|
|
34
|
+
)) })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
const m = (o) => {
|
|
40
|
+
const { value: t, synonym: r, appendSlash: c } = o, n = r.toLowerCase().indexOf(t.toLowerCase());
|
|
41
|
+
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
42
|
+
n !== -1 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(0, n) }) }),
|
|
44
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n, n + t.length) }) }),
|
|
45
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n + t.length) }) })
|
|
46
|
+
] }) : /* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r }) }),
|
|
47
|
+
c && /* @__PURE__ */ e.jsx(
|
|
48
|
+
i,
|
|
49
|
+
{
|
|
50
|
+
color: "cl_darkGrey",
|
|
51
|
+
width: ["12px"],
|
|
52
|
+
textAlign: "center",
|
|
53
|
+
children: "/"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }, r);
|
|
57
|
+
};
|
|
2
58
|
export {
|
|
3
|
-
|
|
59
|
+
b as AutocompleteOptionBox
|
|
4
60
|
};
|
|
5
61
|
//# sourceMappingURL=sd-component-library292.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library292.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library292.js","sources":["../src/components/inputs/autocomplete-input/partials/autocomplete-option-box/autocomplete-option-box.tsx"],"sourcesContent":["import React, { PropsWithChildren, useMemo } from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { SixteenRegular } from \"../../../../texts/sixteen-regular\";\nimport { ThirteenRegular } from \"../../../../texts/thirteen-regular\";\nimport { AutocompleteOptionBox as Props } from \"./interfaces\";\n\nexport function AutocompleteOptionBox<T>(props: PropsWithChildren<Props<T>>) {\n const { synonyms, value, onSelect } = props;\n\n /* Synonym that first matches the query */\n const matchingSynonym = useMemo(() => synonyms[0], [synonyms]);\n /* List of synonyms to be displayed below the matching synonym */\n const otherSynonyms = useMemo(() => synonyms.slice(1), [synonyms]);\n\n const renderMatchingSynonym = useMemo(() => {\n const startIndex = matchingSynonym\n .toLowerCase()\n .indexOf(value.toLowerCase());\n\n return (\n <Flex>\n <SixteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(0, startIndex)}\n </span>\n </SixteenRegular>\n <SixteenRegular width={[\"\"]} color=\"cl_purple\" cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(startIndex, startIndex + value.length)}\n </span>\n </SixteenRegular>\n <SixteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(startIndex + value.length)}\n </span>\n </SixteenRegular>\n </Flex>\n );\n }, [matchingSynonym, value]);\n\n return (\n <Box\n sx={{\n p: \"10px 16px\",\n cursor: \"pointer\",\n }}\n onClick={(x) => onSelect(matchingSynonym)}\n data-test=\"result-box\"\n >\n {renderMatchingSynonym}\n <Flex flexWrap=\"wrap\">\n {otherSynonyms.map((synonym, idx, arr) => (\n <OtherSynonym\n key={synonym}\n value={value}\n synonym={synonym}\n appendSlash={idx !== arr.length - 1}\n />\n ))}\n </Flex>\n </Box>\n );\n}\n\nconst OtherSynonym: React.FC<{\n value: string;\n synonym: string;\n appendSlash: boolean;\n}> = (props) => {\n const { value, synonym, appendSlash } = props;\n const matchIdx = synonym.toLowerCase().indexOf(value.toLowerCase());\n\n return (\n <Flex key={synonym}>\n {matchIdx !== -1 ? (\n <>\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(0, matchIdx)}\n </span>\n </ThirteenRegular>\n <ThirteenRegular width={[\"\"]} color=\"cl_purple\" cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(matchIdx, matchIdx + value.length)}\n </span>\n </ThirteenRegular>\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(matchIdx + value.length)}\n </span>\n </ThirteenRegular>\n </>\n ) : (\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>{synonym}</span>\n </ThirteenRegular>\n )}\n\n {appendSlash && (\n <ThirteenRegular\n color=\"cl_darkGrey\"\n width={[\"12px\"]}\n textAlign=\"center\"\n >\n /\n </ThirteenRegular>\n )}\n </Flex>\n );\n};\n"],"names":["AutocompleteOptionBox","props","synonyms","value","onSelect","matchingSynonym","useMemo","otherSynonyms","renderMatchingSynonym","startIndex","Flex","jsx","SixteenRegular","jsxs","Box","x","synonym","idx","arr","OtherSynonym","appendSlash","matchIdx","Fragment","ThirteenRegular"],"mappings":";;;;;AAQO,SAASA,EAAyBC,GAAoC;AAC3E,QAAM,EAAE,UAAAC,GAAU,OAAAC,GAAO,UAAAC,EAAA,IAAaH,GAGhCI,IAAkBC,EAAQ,MAAMJ,EAAS,CAAC,GAAG,CAACA,CAAQ,CAAC,GAEvDK,IAAgBD,EAAQ,MAAMJ,EAAS,MAAM,CAAC,GAAG,CAACA,CAAQ,CAAC,GAE3DM,IAAwBF,EAAQ,MAAM;AAC1C,UAAMG,IAAaJ,EAChB,YAAA,EACA,QAAQF,EAAM,aAAa;AAE9B,kCACGO,GACC,EAAA,UAAA;AAAA,MAAAC,gBAAAA,MAACC,KAAe,OAAO,CAAC,EAAE,GAAG,QAAQ,WACnC,UAACD,gBAAAA,EAAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,MACxB,GAAA,UAAAN,EAAgB,UAAU,GAAGI,CAAU,EAC1C,CAAA,GACF;AAAA,MACAE,gBAAAA,EAAAA,IAACC,GAAe,EAAA,OAAO,CAAC,EAAE,GAAG,OAAM,aAAY,QAAQ,WACrD,UAACD,gBAAAA,EAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,SACxB,UAAgBN,EAAA,UAAUI,GAAYA,IAAaN,EAAM,MAAM,EAAA,CAClE,EACF,CAAA;AAAA,MACAQ,gBAAAA,EAAAA,IAACC,KAAe,OAAO,CAAC,EAAE,GAAG,QAAQ,WACnC,UAACD,gBAAAA,EAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,SACxB,UAAAN,EAAgB,UAAUI,IAAaN,EAAM,MAAM,EAAA,CACtD,EACF,CAAA;AAAA,IACF,EAAA,CAAA;AAAA,EAAA,GAED,CAACE,GAAiBF,CAAK,CAAC;AAGzB,SAAAU,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,GAAG;AAAA,QACH,QAAQ;AAAA,MACV;AAAA,MACA,SAAS,CAACC,MAAMX,EAASC,CAAe;AAAA,MACxC,aAAU;AAAA,MAET,UAAA;AAAA,QAAAG;AAAA,QACDG,gBAAAA,EAAAA,IAACD,KAAK,UAAS,QACZ,YAAc,IAAI,CAACM,GAASC,GAAKC,MAChCP,gBAAAA,EAAA;AAAA,UAACQ;AAAA,UAAA;AAAA,YAEC,OAAAhB;AAAA,YACA,SAAAa;AAAA,YACA,aAAaC,MAAQC,EAAI,SAAS;AAAA,UAAA;AAAA,UAH7BF;AAAA,QAKR,CAAA,GACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,MAAMG,IAID,CAAClB,MAAU;AACd,QAAM,EAAE,OAAAE,GAAO,SAAAa,GAAS,aAAAI,EAAA,IAAgBnB,GAClCoB,IAAWL,EAAQ,YAAA,EAAc,QAAQb,EAAM,aAAa;AAElE,gCACGO,GACE,EAAA,UAAA;AAAA,IAAAW,MAAa,KAEVR,gBAAAA,EAAA,KAAAS,EAAA,UAAA,EAAA,UAAA;AAAA,MAAAX,gBAAAA,MAACY,KAAgB,OAAO,CAAC,EAAE,GAAG,QAAQ,WACpC,UAACZ,gBAAAA,EAAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,MACxB,GAAA,UAAAK,EAAQ,UAAU,GAAGK,CAAQ,EAChC,CAAA,GACF;AAAA,MACAV,gBAAAA,EAAAA,IAACY,GAAgB,EAAA,OAAO,CAAC,EAAE,GAAG,OAAM,aAAY,QAAQ,WACtD,UAACZ,gBAAAA,EAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,SACxB,UAAQK,EAAA,UAAUK,GAAUA,IAAWlB,EAAM,MAAM,EAAA,CACtD,EACF,CAAA;AAAA,MACAQ,gBAAAA,EAAAA,IAACY,KAAgB,OAAO,CAAC,EAAE,GAAG,QAAQ,WACpC,UAACZ,gBAAAA,EAAA,IAAA,QAAA,EAAK,OAAO,EAAE,YAAY,SACxB,UAAAK,EAAQ,UAAUK,IAAWlB,EAAM,MAAM,EAAA,CAC5C,EACF,CAAA;AAAA,IAAA,GACF,IAECQ,gBAAAA,EAAA,IAAAY,GAAA,EAAgB,OAAO,CAAC,EAAE,GAAG,QAAQ,WACpC,UAAAZ,gBAAAA,EAAAA,IAAC,UAAK,OAAO,EAAE,YAAY,MAAM,GAAI,YAAQ,CAAA,GAC/C;AAAA,IAGDS,KACCT,gBAAAA,EAAA;AAAA,MAACY;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,OAAO,CAAC,MAAM;AAAA,QACd,WAAU;AAAA,QACX,UAAA;AAAA,MAAA;AAAA,IAED;AAAA,EAAA,EAAA,GAhCOP,CAkCX;AAEJ;"}
|
|
@@ -1,80 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
case u:
|
|
24
|
-
case n:
|
|
25
|
-
case f:
|
|
26
|
-
case c:
|
|
27
|
-
case l:
|
|
28
|
-
return e;
|
|
29
|
-
default:
|
|
30
|
-
switch (e = e && e.$$typeof, e) {
|
|
31
|
-
case s:
|
|
32
|
-
case y:
|
|
33
|
-
case p:
|
|
34
|
-
case m:
|
|
35
|
-
case i:
|
|
36
|
-
return e;
|
|
37
|
-
default:
|
|
38
|
-
return S;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
case b:
|
|
42
|
-
return S;
|
|
43
|
-
}
|
|
1
|
+
import { j as r } from "./sd-component-library190.js";
|
|
2
|
+
import { ResponsiveTextV2 as s } from "./sd-component-library144.js";
|
|
3
|
+
const x = (t) => {
|
|
4
|
+
const { onClick: e, title: o, height: i } = t;
|
|
5
|
+
return /* @__PURE__ */ r.jsx(
|
|
6
|
+
s,
|
|
7
|
+
{
|
|
8
|
+
fontSizeWeight: [[16, "regular"]],
|
|
9
|
+
sx: {
|
|
10
|
+
position: "relative",
|
|
11
|
+
height: `${i}px`,
|
|
12
|
+
px: "15px",
|
|
13
|
+
display: "flex",
|
|
14
|
+
justifyContent: "flex-start",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
opacity: 0.8,
|
|
17
|
+
":hover": {
|
|
18
|
+
opacity: 1
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
onClick: e,
|
|
22
|
+
children: o
|
|
44
23
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return o(e) === u;
|
|
48
|
-
}
|
|
49
|
-
return r.AsyncMode = d, r.ConcurrentMode = u, r.ContextConsumer = s, r.ContextProvider = i, r.Element = a, r.ForwardRef = y, r.Fragment = n, r.Lazy = p, r.Memo = m, r.Portal = b, r.Profiler = f, r.StrictMode = c, r.Suspense = l, r.isAsyncMode = function(e) {
|
|
50
|
-
return $(e) || o(e) === d;
|
|
51
|
-
}, r.isConcurrentMode = $, r.isContextConsumer = function(e) {
|
|
52
|
-
return o(e) === s;
|
|
53
|
-
}, r.isContextProvider = function(e) {
|
|
54
|
-
return o(e) === i;
|
|
55
|
-
}, r.isElement = function(e) {
|
|
56
|
-
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
57
|
-
}, r.isForwardRef = function(e) {
|
|
58
|
-
return o(e) === y;
|
|
59
|
-
}, r.isFragment = function(e) {
|
|
60
|
-
return o(e) === n;
|
|
61
|
-
}, r.isLazy = function(e) {
|
|
62
|
-
return o(e) === p;
|
|
63
|
-
}, r.isMemo = function(e) {
|
|
64
|
-
return o(e) === m;
|
|
65
|
-
}, r.isPortal = function(e) {
|
|
66
|
-
return o(e) === b;
|
|
67
|
-
}, r.isProfiler = function(e) {
|
|
68
|
-
return o(e) === f;
|
|
69
|
-
}, r.isStrictMode = function(e) {
|
|
70
|
-
return o(e) === c;
|
|
71
|
-
}, r.isSuspense = function(e) {
|
|
72
|
-
return o(e) === l;
|
|
73
|
-
}, r.isValidElementType = function(e) {
|
|
74
|
-
return typeof e == "string" || typeof e == "function" || e === n || e === u || e === f || e === c || e === l || e === x || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === m || e.$$typeof === i || e.$$typeof === s || e.$$typeof === y || e.$$typeof === M || e.$$typeof === v || e.$$typeof === w || e.$$typeof === C);
|
|
75
|
-
}, r.typeOf = o, r;
|
|
76
|
-
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
77
26
|
export {
|
|
78
|
-
|
|
27
|
+
x as SearchAutocompleteRow
|
|
79
28
|
};
|
|
80
29
|
//# sourceMappingURL=sd-component-library293.js.map
|