@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,32 +1,93 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { j as o } from "./sd-component-library190.js";
|
|
2
|
+
import { useState as L, useCallback as M } from "react";
|
|
3
|
+
import V from "./sd-component-library189.js";
|
|
4
|
+
import { getCoordinateForArc as f } from "./sd-component-library86.js";
|
|
5
|
+
import { GridContainerV2 as X } from "./sd-component-library39.js";
|
|
6
|
+
import { ResponsiveTextV2 as g } from "./sd-component-library144.js";
|
|
7
|
+
const y = "21.5px", w = 10, j = `${w}px`, J = ({
|
|
8
|
+
segment: $,
|
|
9
|
+
isHover: r,
|
|
10
|
+
animationDuration: S,
|
|
11
|
+
labelOffset: i,
|
|
12
|
+
labelPointerOffset: k,
|
|
13
|
+
radius: c,
|
|
14
|
+
mobile: e,
|
|
15
|
+
labelOffsetMobile: u
|
|
16
|
+
}) => {
|
|
17
|
+
const { start: p, end: a, text: R, color: z, secondaryText: C } = $, d = c * 2, t = (p + a) / 2, h = Math.round(t * 360), { x: _, y: x } = f(c, h), [n, A] = L(), G = M((m) => {
|
|
18
|
+
m && A(m.getBoundingClientRect());
|
|
19
|
+
}, []), l = `all ${S}ms`, s = t > 0.5 ? "right" : "left", I = d + i, { x: T, y: W } = f(
|
|
20
|
+
c + u,
|
|
21
|
+
h,
|
|
22
|
+
c
|
|
23
|
+
), b = t < 0.5, B = t < 0.15 || t > 0.85, F = t > 0.35 || t < 0.65;
|
|
24
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
25
|
+
!e && /* @__PURE__ */ o.jsx(
|
|
26
|
+
"line",
|
|
27
|
+
{
|
|
28
|
+
x1: _ + (s === "left" ? -1 : 1) * k,
|
|
29
|
+
x2: s === "left" ? -i : d + i,
|
|
30
|
+
y1: x,
|
|
31
|
+
y2: x,
|
|
32
|
+
stroke: V.colors.cl_lightGrey,
|
|
33
|
+
strokeWidth: 1
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ o.jsx(
|
|
37
|
+
"foreignObject",
|
|
38
|
+
{
|
|
39
|
+
x: e ? T : s === "left" ? -i : I - ((n == null ? void 0 : n.width) ?? 0),
|
|
40
|
+
y: e ? W : x,
|
|
41
|
+
width: ((n == null ? void 0 : n.width) ?? 0) + w,
|
|
42
|
+
height: 50,
|
|
43
|
+
style: { overflow: "visible" },
|
|
44
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
45
|
+
X,
|
|
46
|
+
{
|
|
47
|
+
width: "fit-content",
|
|
48
|
+
justifyItems: "flex-start",
|
|
49
|
+
gap: r ? "1px" : "4px",
|
|
50
|
+
sx: {
|
|
51
|
+
transform: e ? `translate(${b ? -100 : 0}%, calc(${y} * ${B ? 0 : F ? -1 : -0.5}))` : `translateY(calc(${y} / -2)) scale(${r ? 1.3 : 1})`,
|
|
52
|
+
transition: l,
|
|
53
|
+
transformOrigin: s,
|
|
54
|
+
...e ? {
|
|
55
|
+
borderRadius: "4px",
|
|
56
|
+
boxShadow: "0px 3px 6px #00000029",
|
|
57
|
+
px: "5px",
|
|
58
|
+
py: "3px"
|
|
59
|
+
} : s === "left" ? { pr: j } : { pl: j }
|
|
60
|
+
},
|
|
61
|
+
bg: "cl_white",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ o.jsx(
|
|
64
|
+
g,
|
|
65
|
+
{
|
|
66
|
+
width: "fit-content",
|
|
67
|
+
fontSizeWeight: [18, "bold"],
|
|
68
|
+
color: z,
|
|
69
|
+
sx: { transition: l },
|
|
70
|
+
ref: G,
|
|
71
|
+
children: R
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ o.jsx(
|
|
75
|
+
g,
|
|
76
|
+
{
|
|
77
|
+
fontSizeWeight: [r ? 13 : 14, "bold"],
|
|
78
|
+
color: r ? "cl_darkGrey" : "cl_grey",
|
|
79
|
+
sx: { transition: l },
|
|
80
|
+
children: C ?? `${Math.round((a - p) * 100)}%`
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
] });
|
|
28
89
|
};
|
|
29
90
|
export {
|
|
30
|
-
|
|
91
|
+
J as SegmentLabel
|
|
31
92
|
};
|
|
32
93
|
//# sourceMappingURL=sd-component-library316.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/donut-diagram/partials/segment-label/segment-label.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\n\nimport theme from \"../../../../../core/theme\";\nimport { Grid } from \"../../../../containers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { DonutSegmentLabelPosition } from \"../../interfaces\";\nimport { SegmentLabelProps as Props } from \"./interfaces\";\n\nconst rowHeight = \"21.5px\";\nconst maskSize = 10;\nconst maskSizePx = `${maskSize}px`;\n\nexport const SegmentLabel: React.FC<Props> = ({\n segment,\n isHover,\n animationDuration,\n labelOffset,\n labelPointerOffset,\n radius,\n mobile,\n labelOffsetMobile,\n}) => {\n const { start, end, text, color, secondaryText } = segment;\n const diameter = radius * 2;\n const middle = (start + end) / 2;\n const middleAlpha = Math.round(middle * 360);\n const { x, y } = getCoordinateForArc(radius, middleAlpha);\n\n const [rect, setRect] = useState<DOMRect>();\n const ref = useCallback((node: HTMLDivElement) => {\n if (node) {\n setRect(node.getBoundingClientRect());\n }\n }, []);\n\n const transition = `all ${animationDuration}ms`;\n\n const position: DonutSegmentLabelPosition = middle > 0.5 ? \"right\" : \"left\";\n const maxX = diameter + labelOffset;\n\n const { x: pointerX, y: pointerY } = getCoordinateForArc(\n radius + labelOffsetMobile,\n middleAlpha,\n radius\n );\n\n const isAtLeft = middle < 0.5;\n const isInBottom = middle < 0.15 || middle > 0.85;\n const isInTop = middle > 0.35 || middle < 0.65;\n\n return (\n <>\n {!mobile && (\n <line\n x1={x + (position === \"left\" ? -1 : 1) * labelPointerOffset}\n x2={position === \"left\" ? -labelOffset : diameter + labelOffset}\n y1={y}\n y2={y}\n stroke={theme.colors[\"cl_lightGrey\"]}\n strokeWidth={1}\n />\n )}\n\n <foreignObject\n x={\n mobile\n ? pointerX\n : position === \"left\"\n ? -labelOffset\n : maxX - (rect?.width ?? 0)\n }\n y={mobile ? pointerY : y}\n width={(rect?.width ?? 0) + maskSize}\n height={50}\n style={{ overflow: \"visible\" }}\n >\n <Grid\n width=\"fit-content\"\n justifyItems=\"flex-start\"\n gap={isHover ? \"1px\" : \"4px\"}\n sx={{\n transform: mobile\n ? `translate(${isAtLeft ? -100 : 0}%, calc(${rowHeight} * ${\n isInBottom ? 0 : isInTop ? -1 : -0.5\n }))`\n : `translateY(calc(${rowHeight} / -2)) scale(${\n isHover ? 1.3 : 1\n })`,\n transition,\n transformOrigin: position,\n ...(mobile\n ? {\n borderRadius: \"4px\",\n boxShadow: \"0px 3px 6px #00000029\",\n px: \"5px\",\n py: \"3px\",\n }\n : position === \"left\"\n ? { pr: maskSizePx }\n : { pl: maskSizePx }),\n }}\n bg=\"cl_white\"\n >\n <ResponsiveTextV2\n width=\"fit-content\"\n fontSizeWeight={[18, \"bold\"]}\n color={color}\n sx={{ transition }}\n ref={ref}\n >\n {text}\n </ResponsiveTextV2>\n\n <ResponsiveTextV2\n fontSizeWeight={[isHover ? 13 : 14, \"bold\"]}\n color={isHover ? \"cl_darkGrey\" : \"cl_grey\"}\n sx={{ transition }}\n >\n {secondaryText ?? `${Math.round((end - start) * 100)}%`}\n </ResponsiveTextV2>\n </Grid>\n </foreignObject>\n </>\n );\n};\n"],"names":["rowHeight","maskSize","maskSizePx","SegmentLabel","segment","isHover","animationDuration","labelOffset","labelPointerOffset","radius","mobile","labelOffsetMobile","start","end","text","color","secondaryText","diameter","middle","middleAlpha","x","y","getCoordinateForArc","rect","setRect","useState","ref","useCallback","node","transition","position","maxX","pointerX","pointerY","isAtLeft","isInBottom","isInTop","jsxs","Fragment","jsx","theme","Grid","ResponsiveTextV2"],"mappings":"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"}
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library190.js";
|
|
2
|
+
import { ResponsiveTextV2 as l } from "./sd-component-library144.js";
|
|
3
|
+
const n = ({
|
|
4
|
+
title: e,
|
|
5
|
+
onClick: o,
|
|
6
|
+
isLast: r
|
|
7
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
8
|
+
l,
|
|
9
|
+
{
|
|
10
|
+
fontSizeWeight: [14, "regular"],
|
|
11
|
+
sx: {
|
|
12
|
+
height: "48px",
|
|
13
|
+
px: "15px",
|
|
14
|
+
display: "flex",
|
|
15
|
+
justifyContent: "flex-end",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
borderWidth: "1px",
|
|
18
|
+
borderStyle: "solid",
|
|
19
|
+
borderTopStyle: "none",
|
|
20
|
+
borderColor: "cl_lightGrey",
|
|
21
|
+
...r ? { borderRadius: "0 0 3px 3px", borderBottomStyle: "solid" } : { borderBottomStyle: "none" },
|
|
22
|
+
":hover": {
|
|
23
|
+
borderLeftColor: "cl_purple",
|
|
24
|
+
borderLeftWidth: "2px"
|
|
25
|
+
},
|
|
26
|
+
bg: "cl_white"
|
|
27
|
+
},
|
|
28
|
+
onClick: o,
|
|
29
|
+
children: e
|
|
30
|
+
}
|
|
31
|
+
);
|
|
21
32
|
export {
|
|
22
|
-
|
|
33
|
+
n as SecondaryCustomSelectorOptionRow
|
|
23
34
|
};
|
|
24
35
|
//# sourceMappingURL=sd-component-library317.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library317.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library317.js","sources":["../src/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-option-row/secondary-custom-selector-option-row.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { SecondaryCustomSelectorOptionRowProps as Props } from \"./interfaces\";\n\nexport const SecondaryCustomSelectorOptionRow: React.FC<Props> = ({\n title,\n onClick,\n isLast,\n}) => {\n return (\n <ResponsiveTextV2\n fontSizeWeight={[14, \"regular\"]}\n sx={{\n height: \"48px\",\n px: \"15px\",\n display: \"flex\",\n justifyContent: \"flex-end\",\n alignItems: \"center\",\n borderWidth: \"1px\",\n borderStyle: \"solid\",\n borderTopStyle: \"none\",\n borderColor: \"cl_lightGrey\",\n ...(isLast\n ? { borderRadius: \"0 0 3px 3px\", borderBottomStyle: \"solid\" }\n : { borderBottomStyle: \"none\" }),\n \":hover\": {\n borderLeftColor: \"cl_purple\",\n borderLeftWidth: \"2px\",\n },\n bg: \"cl_white\",\n }}\n onClick={onClick}\n >\n {title}\n </ResponsiveTextV2>\n );\n};\n"],"names":["SecondaryCustomSelectorOptionRow","title","onClick","isLast","jsx","ResponsiveTextV2"],"mappings":";;AAKO,MAAMA,IAAoD,CAAC;AAAA,EAChE,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,QAAAC;AACF,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgB,CAAC,IAAI,SAAS;AAAA,IAC9B,IAAI;AAAA,MACF,QAAQ;AAAA,MACR,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,aAAa;AAAA,MACb,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,GAAIF,IACA,EAAE,cAAc,eAAe,mBAAmB,QAAQ,IAC1D,EAAE,mBAAmB,OAAO;AAAA,MAChC,UAAU;AAAA,QACR,iBAAiB;AAAA,QACjB,iBAAiB;AAAA,MACnB;AAAA,MACA,IAAI;AAAA,IACN;AAAA,IACA,SAAAD;AAAA,IAEC,UAAAD;AAAA,EAAA;AAAA;"}
|
|
@@ -1,93 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { useState as L, useCallback as M } from "react";
|
|
3
|
-
import V from "./sd-component-library189.js";
|
|
4
|
-
import { getCoordinateForArc as f } from "./sd-component-library86.js";
|
|
5
|
-
import { GridContainerV2 as X } from "./sd-component-library39.js";
|
|
6
|
-
import { ResponsiveTextV2 as g } from "./sd-component-library144.js";
|
|
7
|
-
const y = "21.5px", w = 10, j = `${w}px`, J = ({
|
|
8
|
-
segment: $,
|
|
9
|
-
isHover: r,
|
|
10
|
-
animationDuration: S,
|
|
11
|
-
labelOffset: i,
|
|
12
|
-
labelPointerOffset: k,
|
|
13
|
-
radius: c,
|
|
14
|
-
mobile: e,
|
|
15
|
-
labelOffsetMobile: u
|
|
16
|
-
}) => {
|
|
17
|
-
const { start: p, end: a, text: R, color: z, secondaryText: C } = $, d = c * 2, t = (p + a) / 2, h = Math.round(t * 360), { x: _, y: x } = f(c, h), [n, A] = L(), G = M((m) => {
|
|
18
|
-
m && A(m.getBoundingClientRect());
|
|
19
|
-
}, []), l = `all ${S}ms`, s = t > 0.5 ? "right" : "left", I = d + i, { x: T, y: W } = f(
|
|
20
|
-
c + u,
|
|
21
|
-
h,
|
|
22
|
-
c
|
|
23
|
-
), b = t < 0.5, B = t < 0.15 || t > 0.85, F = t > 0.35 || t < 0.65;
|
|
24
|
-
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
25
|
-
!e && /* @__PURE__ */ o.jsx(
|
|
26
|
-
"line",
|
|
27
|
-
{
|
|
28
|
-
x1: _ + (s === "left" ? -1 : 1) * k,
|
|
29
|
-
x2: s === "left" ? -i : d + i,
|
|
30
|
-
y1: x,
|
|
31
|
-
y2: x,
|
|
32
|
-
stroke: V.colors.cl_lightGrey,
|
|
33
|
-
strokeWidth: 1
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ o.jsx(
|
|
37
|
-
"foreignObject",
|
|
38
|
-
{
|
|
39
|
-
x: e ? T : s === "left" ? -i : I - ((n == null ? void 0 : n.width) ?? 0),
|
|
40
|
-
y: e ? W : x,
|
|
41
|
-
width: ((n == null ? void 0 : n.width) ?? 0) + w,
|
|
42
|
-
height: 50,
|
|
43
|
-
style: { overflow: "visible" },
|
|
44
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
45
|
-
X,
|
|
46
|
-
{
|
|
47
|
-
width: "fit-content",
|
|
48
|
-
justifyItems: "flex-start",
|
|
49
|
-
gap: r ? "1px" : "4px",
|
|
50
|
-
sx: {
|
|
51
|
-
transform: e ? `translate(${b ? -100 : 0}%, calc(${y} * ${B ? 0 : F ? -1 : -0.5}))` : `translateY(calc(${y} / -2)) scale(${r ? 1.3 : 1})`,
|
|
52
|
-
transition: l,
|
|
53
|
-
transformOrigin: s,
|
|
54
|
-
...e ? {
|
|
55
|
-
borderRadius: "4px",
|
|
56
|
-
boxShadow: "0px 3px 6px #00000029",
|
|
57
|
-
px: "5px",
|
|
58
|
-
py: "3px"
|
|
59
|
-
} : s === "left" ? { pr: j } : { pl: j }
|
|
60
|
-
},
|
|
61
|
-
bg: "cl_white",
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ o.jsx(
|
|
64
|
-
g,
|
|
65
|
-
{
|
|
66
|
-
width: "fit-content",
|
|
67
|
-
fontSizeWeight: [18, "bold"],
|
|
68
|
-
color: z,
|
|
69
|
-
sx: { transition: l },
|
|
70
|
-
ref: G,
|
|
71
|
-
children: R
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ o.jsx(
|
|
75
|
-
g,
|
|
76
|
-
{
|
|
77
|
-
fontSizeWeight: [r ? 13 : 14, "bold"],
|
|
78
|
-
color: r ? "cl_darkGrey" : "cl_grey",
|
|
79
|
-
sx: { transition: l },
|
|
80
|
-
children: C ?? `${Math.round((a - p) * 100)}%`
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
)
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] });
|
|
89
|
-
};
|
|
1
|
+
var r = {};
|
|
90
2
|
export {
|
|
91
|
-
|
|
3
|
+
r as __exports
|
|
92
4
|
};
|
|
93
5
|
//# sourceMappingURL=sd-component-library318.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library318.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library318.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { ResponsiveTextV2 as l } from "./sd-component-library144.js";
|
|
3
|
-
const n = ({
|
|
4
|
-
title: e,
|
|
5
|
-
onClick: o,
|
|
6
|
-
isLast: r
|
|
7
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
8
|
-
l,
|
|
9
|
-
{
|
|
10
|
-
fontSizeWeight: [14, "regular"],
|
|
11
|
-
sx: {
|
|
12
|
-
height: "48px",
|
|
13
|
-
px: "15px",
|
|
14
|
-
display: "flex",
|
|
15
|
-
justifyContent: "flex-end",
|
|
16
|
-
alignItems: "center",
|
|
17
|
-
borderWidth: "1px",
|
|
18
|
-
borderStyle: "solid",
|
|
19
|
-
borderTopStyle: "none",
|
|
20
|
-
borderColor: "cl_lightGrey",
|
|
21
|
-
...r ? { borderRadius: "0 0 3px 3px", borderBottomStyle: "solid" } : { borderBottomStyle: "none" },
|
|
22
|
-
":hover": {
|
|
23
|
-
borderLeftColor: "cl_purple",
|
|
24
|
-
borderLeftWidth: "2px"
|
|
25
|
-
},
|
|
26
|
-
bg: "cl_white"
|
|
27
|
-
},
|
|
28
|
-
onClick: o,
|
|
29
|
-
children: e
|
|
30
|
-
}
|
|
31
|
-
);
|
|
1
|
+
var e = {};
|
|
32
2
|
export {
|
|
33
|
-
|
|
3
|
+
e as __exports
|
|
34
4
|
};
|
|
35
5
|
//# sourceMappingURL=sd-component-library319.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library319.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library319.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -2,7 +2,7 @@ import { j as e } from "./sd-component-library190.js";
|
|
|
2
2
|
import { useRef as T, useState as q, useCallback as J } from "react";
|
|
3
3
|
import { Box as o } from "rebass";
|
|
4
4
|
import { useResize as K } from "./sd-component-library3.js";
|
|
5
|
-
import { ReactComponent as L } from "./sd-component-
|
|
5
|
+
import { ReactComponent as L } from "./sd-component-library197.js";
|
|
6
6
|
const Z = (p) => {
|
|
7
7
|
const {
|
|
8
8
|
width: x = ["100%"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { j as p } from "./sd-component-library190.js";
|
|
2
|
+
import { useState as d, useRef as N, useCallback as S, useMemo as w } from "react";
|
|
3
3
|
import { Box as L } from "rebass";
|
|
4
4
|
import { useOnClickOutside as V } from "./sd-component-library3.js";
|
|
5
5
|
import { SecondaryTextInput as _ } from "./sd-component-library72.js";
|
|
@@ -18,34 +18,34 @@ function G(i) {
|
|
|
18
18
|
options: o,
|
|
19
19
|
width: c,
|
|
20
20
|
onSelect: t,
|
|
21
|
-
errorMessage:
|
|
21
|
+
errorMessage: x,
|
|
22
22
|
hideErrorText: R,
|
|
23
23
|
onSearch: O,
|
|
24
24
|
initialValue: h = "",
|
|
25
|
-
onFocus:
|
|
25
|
+
onFocus: m,
|
|
26
26
|
errorBackground: b,
|
|
27
27
|
focusInput: j,
|
|
28
|
-
autoFocus:
|
|
29
|
-
translateContent:
|
|
30
|
-
} = i, [s, g] =
|
|
28
|
+
autoFocus: T = !1,
|
|
29
|
+
translateContent: k = !0
|
|
30
|
+
} = i, [s, g] = d(h), [f, y] = d(
|
|
31
31
|
() => !!h
|
|
32
|
-
), [
|
|
32
|
+
), [v, C] = d(!0), I = N(null), B = S(() => {
|
|
33
33
|
C(!1);
|
|
34
|
-
}, []),
|
|
35
|
-
C(!0),
|
|
34
|
+
}, []), M = (e) => {
|
|
35
|
+
C(!0), m == null || m(e);
|
|
36
36
|
};
|
|
37
|
-
V(I,
|
|
37
|
+
V(I, B);
|
|
38
38
|
const u = w(() => {
|
|
39
|
-
if (s && !
|
|
39
|
+
if (s && !f)
|
|
40
40
|
return o.map((e) => ({
|
|
41
41
|
...e,
|
|
42
42
|
synonyms: e.synonyms.sort((n, r) => A(n, r, s))
|
|
43
43
|
}));
|
|
44
|
-
}, [s, o,
|
|
44
|
+
}, [s, o, f]), E = S(
|
|
45
45
|
(e) => {
|
|
46
46
|
g(e);
|
|
47
47
|
const n = u.find(
|
|
48
|
-
(r) => !!r.synonyms.find((
|
|
48
|
+
(r) => !!r.synonyms.find((F) => F === e)
|
|
49
49
|
);
|
|
50
50
|
t == null || t(
|
|
51
51
|
n.value,
|
|
@@ -54,38 +54,38 @@ function G(i) {
|
|
|
54
54
|
},
|
|
55
55
|
[t, u]
|
|
56
56
|
);
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ p.jsxs(
|
|
58
58
|
L,
|
|
59
59
|
{
|
|
60
60
|
sx: { position: "relative", bg: "inherit", width: c },
|
|
61
61
|
ref: I,
|
|
62
62
|
"data-test": "autocomplete-input",
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ p.jsx(
|
|
65
65
|
_,
|
|
66
66
|
{
|
|
67
67
|
onChange: (e, n) => {
|
|
68
|
-
|
|
68
|
+
f && (t(null), y(!1)), g(`${e}`), O(`${e}`);
|
|
69
69
|
},
|
|
70
70
|
value: s,
|
|
71
71
|
label: a,
|
|
72
72
|
placeholder: l,
|
|
73
73
|
labelMargin: ["0"],
|
|
74
|
-
errorMessage:
|
|
74
|
+
errorMessage: x || void 0,
|
|
75
75
|
hideErrorText: R,
|
|
76
|
-
onFocus:
|
|
76
|
+
onFocus: M,
|
|
77
77
|
focusInput: j,
|
|
78
|
-
autoFocus:
|
|
78
|
+
autoFocus: T,
|
|
79
79
|
errorBackground: b
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
u &&
|
|
82
|
+
u && v && /* @__PURE__ */ p.jsx(
|
|
83
83
|
$,
|
|
84
84
|
{
|
|
85
85
|
value: s,
|
|
86
86
|
results: u,
|
|
87
|
-
onSelect:
|
|
88
|
-
translateContent:
|
|
87
|
+
onSelect: E,
|
|
88
|
+
translateContent: k
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library55.js","sources":["../src/components/inputs/autocomplete-input/autocomplete-input.tsx"],"sourcesContent":["import React, {\n PropsWithChildren,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { useOnClickOutside } from \"../../../core/custom-hooks\";\nimport { SecondaryTextInput } from \"../secondary-text-input\";\nimport { AutocompleteInputProps as Props } from \"./interfaces\";\nimport { ResultsBox } from \"./partials/results-box\";\n\n/**\n * Sort synonyms. Synonyms in which the search value appear first show up first.\n * Synonyms which do not contain the search string will come up last.\n */\nfunction compareWithValue(a: string, b: string, value: string): number {\n const getValueToCompare = (text: string) => {\n const index = text.toLowerCase().indexOf(value.toLowerCase());\n if (index === -1) return Number.POSITIVE_INFINITY;\n return index;\n };\n\n return getValueToCompare(a) - getValueToCompare(b);\n}\n\nexport function AutocompleteInput<T>(props: PropsWithChildren<Props<T>>) {\n const {\n label,\n placeholder,\n options,\n width,\n onSelect,\n errorMessage,\n hideErrorText,\n onSearch,\n initialValue = \"\",\n onFocus: handleFocus,\n errorBackground,\n focusInput,\n autoFocus = false,\n translateContent = true,\n } = props;\n const [value, setValue] = useState(initialValue);\n const [optionSelected, setOptionSelected] = useState(() =>\n Boolean(initialValue)\n );\n const [showResults, setShowResults] = useState(true);\n const ref = useRef<HTMLElement | null>(null);\n\n const onClickOutside = useCallback(() => {\n setShowResults(false);\n }, []);\n\n const onFocus = () => {\n setShowResults(true);\n
|
|
1
|
+
{"version":3,"file":"sd-component-library55.js","sources":["../src/components/inputs/autocomplete-input/autocomplete-input.tsx"],"sourcesContent":["import React, {\n PropsWithChildren,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { useOnClickOutside } from \"../../../core/custom-hooks\";\nimport { SecondaryTextInput } from \"../secondary-text-input\";\nimport { AutocompleteInputProps as Props } from \"./interfaces\";\nimport { ResultsBox } from \"./partials/results-box\";\n\n/**\n * Sort synonyms. Synonyms in which the search value appear first show up first.\n * Synonyms which do not contain the search string will come up last.\n */\nfunction compareWithValue(a: string, b: string, value: string): number {\n const getValueToCompare = (text: string) => {\n const index = text.toLowerCase().indexOf(value.toLowerCase());\n if (index === -1) return Number.POSITIVE_INFINITY;\n return index;\n };\n\n return getValueToCompare(a) - getValueToCompare(b);\n}\n\nexport function AutocompleteInput<T>(props: PropsWithChildren<Props<T>>) {\n const {\n label,\n placeholder,\n options,\n width,\n onSelect,\n errorMessage,\n hideErrorText,\n onSearch,\n initialValue = \"\",\n onFocus: handleFocus,\n errorBackground,\n focusInput,\n autoFocus = false,\n translateContent = true,\n } = props;\n const [value, setValue] = useState(initialValue);\n const [optionSelected, setOptionSelected] = useState(() =>\n Boolean(initialValue)\n );\n const [showResults, setShowResults] = useState(true);\n const ref = useRef<HTMLElement | null>(null);\n\n const onClickOutside = useCallback(() => {\n setShowResults(false);\n }, []);\n\n const onFocus: Props<T>[\"onFocus\"] = (event) => {\n setShowResults(true);\n handleFocus?.(event);\n };\n\n useOnClickOutside(ref, onClickOutside);\n\n /* Sorted list of results that match the query. */\n const matchingResults = useMemo(() => {\n if (value && !optionSelected) {\n return options.map((option) => ({\n ...option,\n synonyms: option.synonyms.sort((a, b) => compareWithValue(a, b, value)),\n }));\n }\n }, [value, options, optionSelected]);\n\n const handleSelect = useCallback(\n (newValue: string) => {\n setValue(newValue);\n const matchingResult = matchingResults!.find(\n (result) => !!result.synonyms.find((synonym) => synonym === newValue)\n )!;\n onSelect?.(\n matchingResult.value,\n matchingResult.synonyms.find((synonym) => synonym === newValue)\n );\n setOptionSelected(true);\n },\n [onSelect, matchingResults]\n );\n\n return (\n <Box\n sx={{ position: \"relative\", bg: \"inherit\", width }}\n ref={ref}\n data-test=\"autocomplete-input\"\n >\n <SecondaryTextInput\n onChange={(newValue, _) => {\n if (optionSelected) {\n onSelect(null);\n setOptionSelected(false);\n }\n setValue(`${newValue}`);\n onSearch(`${newValue}`);\n }}\n value={value}\n label={label}\n placeholder={placeholder}\n labelMargin={[\"0\"]}\n errorMessage={errorMessage ? errorMessage : undefined}\n hideErrorText={hideErrorText}\n onFocus={onFocus}\n focusInput={focusInput}\n autoFocus={autoFocus}\n errorBackground={errorBackground}\n />\n {matchingResults && showResults && (\n <ResultsBox\n value={value}\n results={matchingResults}\n onSelect={handleSelect}\n translateContent={translateContent}\n />\n )}\n </Box>\n );\n}\n"],"names":["compareWithValue","a","b","value","getValueToCompare","text","index","AutocompleteInput","props","label","placeholder","options","width","onSelect","errorMessage","hideErrorText","onSearch","initialValue","handleFocus","errorBackground","focusInput","autoFocus","translateContent","setValue","useState","optionSelected","setOptionSelected","showResults","setShowResults","ref","useRef","onClickOutside","useCallback","onFocus","event","useOnClickOutside","matchingResults","useMemo","option","handleSelect","newValue","matchingResult","result","synonym","jsxs","Box","jsx","SecondaryTextInput","_","ResultsBox"],"mappings":"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"}
|
|
@@ -4,7 +4,7 @@ import { Box as e, Flex as S } from "rebass";
|
|
|
4
4
|
import { isPDFFlow as D } from "./sd-component-library4.js";
|
|
5
5
|
import { SecondaryBadge as F } from "./sd-component-library9.js";
|
|
6
6
|
import { MaxFrContainer as I } from "./sd-component-library40.js";
|
|
7
|
-
import { ReactComponent as k } from "./sd-component-
|
|
7
|
+
import { ReactComponent as k } from "./sd-component-library197.js";
|
|
8
8
|
const _ = (l) => {
|
|
9
9
|
const {
|
|
10
10
|
header: x,
|