@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-library234.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-
|
|
1
|
+
{"version":3,"file":"sd-component-library234.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseOutlineArc } from \"../../../outline-meter/partials/base-outline-arc\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { defaultTextBottomMargin } from \"../../constants\";\nimport { getRangeProperties } from \"../../utils\";\nimport { DiscreteMeterLabelPointer } from \"../discrete-meter-label-pointer\";\nimport { DiscreteRangeProps as Props } from \"./interfaces\";\n\nexport function DiscreteRange<T>(props: PropsWithChildren<Props<T>>) {\n const {\n color,\n idx,\n gaugeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n totalRanges,\n showLabel,\n label,\n isMatchedRange,\n pointerWidth,\n pointerLength,\n horizontal,\n } = props;\n\n const radius = diameter / 2;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const { x: rangeStartX, y: rangeStartY } = getCoordinateForArc(\n radius,\n rangeArcStart\n );\n const { x: rangeEndX, y: rangeEndY } = getCoordinateForArc(\n radius,\n rangeArcEnd\n );\n\n const middleArcAlpha = (rangeArcStart + rangeArcEnd) / 2;\n\n return (\n <g>\n <BaseOutlineArc\n startX={rangeStartX}\n startY={rangeStartY}\n endX={rangeEndX}\n endY={rangeEndY}\n startAlpha={rangeArcStart}\n endAlpha={rangeArcEnd}\n color={color}\n radius={radius}\n width={gaugeWidth}\n />\n\n {showLabel && label && !isMatchedRange && (\n <DiscreteMeterLabelPointer\n alpha={middleArcAlpha}\n pointerLength={pointerLength}\n pointerWidth={pointerWidth}\n radius={radius}\n color={color}\n textBottomMargin={defaultTextBottomMargin}\n label={label}\n horizontal={horizontal}\n />\n )}\n </g>\n );\n}\n"],"names":["DiscreteRange","props","color","idx","gaugeWidth","diameter","arc","distanceBetweenRanges","totalRanges","showLabel","label","isMatchedRange","pointerWidth","pointerLength","horizontal","radius","rangeArcStart","rangeArcEnd","getRangeProperties","rangeStartX","rangeStartY","getCoordinateForArc","rangeEndX","rangeEndY","middleArcAlpha","jsx","BaseOutlineArc","DiscreteMeterLabelPointer","defaultTextBottomMargin"],"mappings":";;;;;;AASO,SAASA,EAAiBC,GAAoC;AAC7D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAb,GAEEc,IAASV,IAAW,GAEpB,EAAE,eAAAW,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCZ;AAAA,IACAE;AAAA,IACAD;AAAA,IACAJ;AAAA,EAAA,GAGI,EAAE,GAAGgB,GAAa,GAAGC,EAAgB,IAAAC;AAAA,IACzCN;AAAA,IACAC;AAAA,EAAA,GAEI,EAAE,GAAGM,GAAW,GAAGC,EAAc,IAAAF;AAAA,IACrCN;AAAA,IACAE;AAAA,EAAA,GAGIO,KAAkBR,IAAgBC,KAAe;AAEvD,gCACG,KACC,EAAA,UAAA;AAAA,IAAAQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAQP;AAAA,QACR,QAAQC;AAAA,QACR,MAAME;AAAA,QACN,MAAMC;AAAA,QACN,YAAYP;AAAA,QACZ,UAAUC;AAAA,QACV,OAAAf;AAAA,QACA,QAAAa;AAAA,QACA,OAAOX;AAAA,MAAA;AAAA,IACT;AAAA,IAECK,KAAaC,KAAS,CAACC,KACtBc,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAOH;AAAA,QACP,eAAAX;AAAA,QACA,cAAAD;AAAA,QACA,QAAAG;AAAA,QACA,OAAAb;AAAA,QACA,kBAAkB0B;AAAA,QAClB,OAAAlB;AAAA,QACA,YAAAI;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,16 +1,46 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as M } from "./sd-component-library190.js";
|
|
2
|
+
import { getInnerX as T, getInnerY as W, degToRad as r, getCoordinateForArc as y } from "./sd-component-library86.js";
|
|
3
|
+
import { BaseNeedle as B } from "./sd-component-library297.js";
|
|
4
|
+
function E(p) {
|
|
5
|
+
const {
|
|
6
|
+
needleColor: u,
|
|
7
|
+
options: n,
|
|
8
|
+
value: h,
|
|
9
|
+
needleWidth: e,
|
|
10
|
+
innerCircleRadius: m,
|
|
11
|
+
innerCircleStrokeWidth: x,
|
|
12
|
+
diameter: R,
|
|
13
|
+
arc: a,
|
|
14
|
+
distanceBetweenRanges: c,
|
|
15
|
+
distanceFromRange: s,
|
|
16
|
+
gaugeWidth: i
|
|
17
|
+
} = p, o = n.findIndex(
|
|
18
|
+
(F) => h === F.value
|
|
19
|
+
), d = R / 2, f = (360 - a) / 2, l = a - (n.length - 1) * c, g = o / n.length, v = (o + 1) / n.length, A = l * (v - g), t = f + c * o + l * g + A / 2, { x: C, y: I } = y(d, t), S = T(
|
|
20
|
+
C,
|
|
21
|
+
r(t),
|
|
22
|
+
s + i + e / 2
|
|
23
|
+
), X = W(
|
|
24
|
+
I,
|
|
25
|
+
r(t),
|
|
26
|
+
s + i + e / 2
|
|
27
|
+
), Y = e / 2 * Math.cos(r(t)), j = e / 2 * Math.sin(r(t));
|
|
28
|
+
return /* @__PURE__ */ M.jsx(
|
|
29
|
+
B,
|
|
30
|
+
{
|
|
31
|
+
dx: Y,
|
|
32
|
+
dy: j,
|
|
33
|
+
color: u,
|
|
34
|
+
radius: d,
|
|
35
|
+
tipX: S,
|
|
36
|
+
tipY: X,
|
|
37
|
+
innerCircleStrokeWidth: x,
|
|
38
|
+
innerCircleRadius: m,
|
|
39
|
+
needleWidth: e
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
13
43
|
export {
|
|
14
|
-
|
|
44
|
+
E as DiscreteMeterNeedle
|
|
15
45
|
};
|
|
16
46
|
//# sourceMappingURL=sd-component-library235.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library235.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/
|
|
1
|
+
{"version":3,"file":"sd-component-library235.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseNeedle } from \"../../../outline-meter/partials/base-needle\";\nimport {\n degToRad,\n getCoordinateForArc,\n getInnerX,\n getInnerY,\n} from \"../../../outline-meter/utils\";\nimport { DiscreteMeterNeedleProps as Props } from \"./interfaces\";\n\nexport function DiscreteMeterNeedle<T>(props: PropsWithChildren<Props<T>>) {\n const {\n needleColor,\n options,\n value,\n needleWidth,\n innerCircleRadius,\n innerCircleStrokeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n distanceFromRange,\n gaugeWidth,\n } = props;\n\n const matchingRangeIndex = options.findIndex(\n (option) => value === option.value\n );\n\n const radius = diameter / 2;\n\n const arcStart = (360 - arc) / 2;\n const arcForRanges = arc - (options.length - 1) * distanceBetweenRanges;\n\n const start = matchingRangeIndex / options.length;\n const end = (matchingRangeIndex + 1) / options.length;\n\n const rangeArc = arcForRanges * (end - start);\n\n const rangeArcStart =\n arcStart +\n distanceBetweenRanges * matchingRangeIndex +\n arcForRanges * start;\n\n const valueAlpha = rangeArcStart + rangeArc / 2;\n const { x: valueX, y: valueY } = getCoordinateForArc(radius, valueAlpha);\n\n const needleTipX = getInnerX(\n valueX,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n const needleTipY = getInnerY(\n valueY,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n\n const dx = (needleWidth / 2) * Math.cos(degToRad(valueAlpha));\n const dy = (needleWidth / 2) * Math.sin(degToRad(valueAlpha));\n\n return (\n <BaseNeedle\n dx={dx}\n dy={dy}\n color={needleColor}\n radius={radius}\n tipX={needleTipX}\n tipY={needleTipY}\n innerCircleStrokeWidth={innerCircleStrokeWidth}\n innerCircleRadius={innerCircleRadius}\n needleWidth={needleWidth}\n />\n );\n}\n"],"names":["DiscreteMeterNeedle","props","needleColor","options","value","needleWidth","innerCircleRadius","innerCircleStrokeWidth","diameter","arc","distanceBetweenRanges","distanceFromRange","gaugeWidth","matchingRangeIndex","option","radius","arcStart","arcForRanges","start","end","rangeArc","valueAlpha","valueX","valueY","getCoordinateForArc","needleTipX","getInnerX","degToRad","needleTipY","getInnerY","dx","dy","jsx","BaseNeedle"],"mappings":";;;AAWO,SAASA,EAAuBC,GAAoC;AACnE,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAX,GAEEY,IAAqBV,EAAQ;AAAA,IACjC,CAACW,MAAWV,MAAUU,EAAO;AAAA,EAAA,GAGzBC,IAASP,IAAW,GAEpBQ,KAAY,MAAMP,KAAO,GACzBQ,IAAeR,KAAON,EAAQ,SAAS,KAAKO,GAE5CQ,IAAQL,IAAqBV,EAAQ,QACrCgB,KAAON,IAAqB,KAAKV,EAAQ,QAEzCiB,IAAWH,KAAgBE,IAAMD,IAOjCG,IAJJL,IACAN,IAAwBG,IACxBI,IAAeC,IAEkBE,IAAW,GACxC,EAAE,GAAGE,GAAQ,GAAGC,MAAWC,EAAoBT,GAAQM,CAAU,GAEjEI,IAAaC;AAAA,IACjBJ;AAAA,IACAK,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAE3CuB,IAAaC;AAAA,IACjBN;AAAA,IACAI,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAG3CyB,IAAMzB,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC,GACtDU,IAAM1B,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC;AAG1D,SAAAW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAAH;AAAA,MACA,IAAAC;AAAA,MACA,OAAO7B;AAAA,MACP,QAAAa;AAAA,MACA,MAAMU;AAAA,MACN,MAAMG;AAAA,MACN,wBAAArB;AAAA,MACA,mBAAAD;AAAA,MACA,aAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return "";
|
|
14
|
-
}, u = (t, n, e) => "#" + (16777216 + (t << 16) + (n << 8) + e).toString(16).slice(1), a = (t) => {
|
|
15
|
-
const n = t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
|
|
16
|
-
return n ? n.slice(1).map((e) => parseInt(e, 16)) : null;
|
|
17
|
-
}, h = (t, n, e) => Math.floor(t * n) === (e === "left" ? 0 : e === "right" ? n - 1 : 1), _ = (t) => t === "left" ? "right" : t === "top" ? "top" : "left";
|
|
1
|
+
import { j as g } from "./sd-component-library190.js";
|
|
2
|
+
import { getRangeProperties as d } from "./sd-component-library298.js";
|
|
3
|
+
import { MatchedRangeLabelBox as x } from "./sd-component-library295.js";
|
|
4
|
+
const h = (e) => {
|
|
5
|
+
const { idx: t, totalRanges: a, distanceBetweenRanges: r, arc: n } = e, { rangeArcStart: o, rangeArcEnd: s } = d(
|
|
6
|
+
n,
|
|
7
|
+
a,
|
|
8
|
+
r,
|
|
9
|
+
t
|
|
10
|
+
), c = Math.round((o + s) / 2);
|
|
11
|
+
return /* @__PURE__ */ g.jsx(x, { ...e, alpha: c, round: !0 });
|
|
12
|
+
};
|
|
18
13
|
export {
|
|
19
|
-
|
|
20
|
-
I as getFractionColor,
|
|
21
|
-
h as isLabelActive,
|
|
22
|
-
T as mapAdjacent
|
|
14
|
+
h as MatchedRangeLabelBox
|
|
23
15
|
};
|
|
24
16
|
//# sourceMappingURL=sd-component-library236.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library236.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library236.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { MatchedRangeLabelBox as LabelBox } from \"../../../common-outline-meter-partials\";\nimport { getRangeProperties } from \"../../utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const { idx, totalRanges, distanceBetweenRanges, arc } = props;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const alpha = Math.round((rangeArcStart + rangeArcEnd) / 2);\n\n return <LabelBox {...props} alpha={alpha} round />;\n};\n"],"names":["MatchedRangeLabelBox","props","idx","totalRanges","distanceBetweenRanges","arc","rangeArcStart","rangeArcEnd","getRangeProperties","alpha","LabelBox"],"mappings":";;;AAMa,MAAAA,IAAwC,CAACC,MAAU;AAC9D,QAAM,EAAE,KAAAC,GAAK,aAAAC,GAAa,uBAAAC,GAAuB,KAAAC,MAAQJ,GAEnD,EAAE,eAAAK,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCH;AAAA,IACAF;AAAA,IACAC;AAAA,IACAF;AAAA,EAAA,GAGIO,IAAQ,KAAK,OAAOH,IAAgBC,KAAe,CAAC;AAE1D,+BAAQG,GAAU,EAAA,GAAGT,GAAO,OAAAQ,GAAc,OAAK,GAAC,CAAA;AAClD;"}
|
|
@@ -1,112 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { getCoordinateForArc as A, getInnerX as H, getInnerY as M, degToRad as E } from "./sd-component-library86.js";
|
|
3
|
-
import { getFractionColor as O } from "./sd-component-library236.js";
|
|
4
|
-
import { BaseOutlineArc as X } from "./sd-component-library312.js";
|
|
5
|
-
const w = "#CCD0DB", q = (G) => {
|
|
6
|
-
const {
|
|
7
|
-
diameter: I,
|
|
8
|
-
idx: d,
|
|
9
|
-
endColor: Y,
|
|
10
|
-
startColor: f,
|
|
11
|
-
segmented: v,
|
|
12
|
-
totalRanges: n,
|
|
13
|
-
value: i,
|
|
14
|
-
arc: l,
|
|
15
|
-
innerPointRadius: W,
|
|
16
|
-
pointStrokeWidth: C,
|
|
17
|
-
gaugeWidth: e,
|
|
18
|
-
pointColor: $
|
|
19
|
-
} = G, c = d / n, x = (d + 1) / n, k = i >= c && i <= x, R = (360 - l) / 2, r = I / 2, g = R + l * c, j = R + l * x, { x: u, y: h } = A(
|
|
20
|
-
r,
|
|
21
|
-
g
|
|
22
|
-
), { x: m, y } = A(
|
|
23
|
-
r,
|
|
24
|
-
j
|
|
25
|
-
);
|
|
26
|
-
if (v || !k)
|
|
27
|
-
return /* @__PURE__ */ t.jsx(
|
|
28
|
-
X,
|
|
29
|
-
{
|
|
30
|
-
startX: u,
|
|
31
|
-
startY: h,
|
|
32
|
-
endX: m,
|
|
33
|
-
endY: y,
|
|
34
|
-
startAlpha: g,
|
|
35
|
-
endAlpha: j,
|
|
36
|
-
color: v || i > x ? `url(#gradient-${f}-${Y})` : w,
|
|
37
|
-
radius: r,
|
|
38
|
-
width: e
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
const o = g + (i - c) / (x - c) * l / n, { x: a, y: s } = A(r, o), F = H(a, E(o), e), B = M(s, E(o), e), D = d >= n / 2, S = d + 1 === n / 2 + 0.5, z = S ? (a - u) / (m - u) : (s - h) / (y - h), p = O(z, f, Y);
|
|
42
|
-
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsxs(
|
|
44
|
-
"linearGradient",
|
|
45
|
-
{
|
|
46
|
-
id: `value-gradient-${p}`,
|
|
47
|
-
...D ? {
|
|
48
|
-
x1: 0,
|
|
49
|
-
y1: 0,
|
|
50
|
-
x2: 0,
|
|
51
|
-
y2: 1
|
|
52
|
-
} : S ? { x1: 0, y1: 0, x2: 1, y2: 0 } : {
|
|
53
|
-
x1: 0,
|
|
54
|
-
y1: 1,
|
|
55
|
-
x2: 0,
|
|
56
|
-
y2: 0
|
|
57
|
-
},
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ t.jsx("stop", { stopColor: f, offset: "0%" }),
|
|
60
|
-
/* @__PURE__ */ t.jsx("stop", { stopColor: p, offset: "100%" })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
) }),
|
|
64
|
-
/* @__PURE__ */ t.jsxs("g", { children: [
|
|
65
|
-
/* @__PURE__ */ t.jsx(
|
|
66
|
-
X,
|
|
67
|
-
{
|
|
68
|
-
startX: u,
|
|
69
|
-
startY: h,
|
|
70
|
-
endX: a,
|
|
71
|
-
endY: s,
|
|
72
|
-
startAlpha: g,
|
|
73
|
-
endAlpha: o,
|
|
74
|
-
color: `url(#value-gradient-${p})`,
|
|
75
|
-
radius: r,
|
|
76
|
-
width: e,
|
|
77
|
-
roundEnd: !1
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ t.jsx(
|
|
81
|
-
X,
|
|
82
|
-
{
|
|
83
|
-
startX: a,
|
|
84
|
-
startY: s,
|
|
85
|
-
endX: m,
|
|
86
|
-
endY: y,
|
|
87
|
-
startAlpha: o,
|
|
88
|
-
endAlpha: j,
|
|
89
|
-
color: w,
|
|
90
|
-
radius: r,
|
|
91
|
-
width: e,
|
|
92
|
-
roundStart: !1
|
|
93
|
-
}
|
|
94
|
-
),
|
|
95
|
-
/* @__PURE__ */ t.jsx(
|
|
96
|
-
"circle",
|
|
97
|
-
{
|
|
98
|
-
cx: (a + F) / 2,
|
|
99
|
-
cy: (s + B) / 2,
|
|
100
|
-
r: C + W,
|
|
101
|
-
strokeWidth: C,
|
|
102
|
-
stroke: $ || p,
|
|
103
|
-
fill: "white"
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
] })
|
|
107
|
-
] });
|
|
108
|
-
};
|
|
1
|
+
var r = {};
|
|
109
2
|
export {
|
|
110
|
-
|
|
3
|
+
r as __exports
|
|
111
4
|
};
|
|
112
5
|
//# sourceMappingURL=sd-component-library237.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library237.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library237.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,50 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { getInnerX as k, getInnerY as B, degToRad as c, getCoordinateForArc as i } from "./sd-component-library86.js";
|
|
3
|
-
import { getFractionColor as b } from "./sd-component-library236.js";
|
|
4
|
-
import { BaseNeedle as q } from "./sd-component-library311.js";
|
|
5
|
-
const O = (R) => {
|
|
6
|
-
const {
|
|
7
|
-
ranges: r,
|
|
8
|
-
distanceFromRange: d,
|
|
9
|
-
innerCircleRadius: X,
|
|
10
|
-
innerCircleStrokeWidth: Y,
|
|
11
|
-
needleWidth: n,
|
|
12
|
-
arc: a,
|
|
13
|
-
value: l,
|
|
14
|
-
gaugeWidth: g,
|
|
15
|
-
diameter: v,
|
|
16
|
-
needleColor: S
|
|
17
|
-
} = R, s = v / 2, e = r.length, t = Math.floor(l * e), y = r[t][0], A = r[t][1], u = (360 - a) / 2, m = u + a * t / e, E = u + a * (t + 1) / e, p = t / e, M = (t + 1) / e, { x: h, y: x } = i(
|
|
18
|
-
s,
|
|
19
|
-
m
|
|
20
|
-
), { x: j, y: F } = i(
|
|
21
|
-
s,
|
|
22
|
-
E
|
|
23
|
-
), o = m + (l - p) / (M - p) * a / r.length, { x: C, y: f } = i(s, o), G = k(
|
|
24
|
-
C,
|
|
25
|
-
c(o),
|
|
26
|
-
d + g + n / 2
|
|
27
|
-
), I = B(
|
|
28
|
-
f,
|
|
29
|
-
c(o),
|
|
30
|
-
d + g + n / 2
|
|
31
|
-
), T = n / 2 * Math.cos(c(o)), W = n / 2 * Math.sin(c(o)), z = t + 1 === e / 2 + 0.5 ? (C - h) / (j - h) : (f - x) / (F - x), H = b(z, y, A);
|
|
32
|
-
return /* @__PURE__ */ N.jsx(
|
|
33
|
-
q,
|
|
34
|
-
{
|
|
35
|
-
radius: s,
|
|
36
|
-
innerCircleRadius: X,
|
|
37
|
-
innerCircleStrokeWidth: Y,
|
|
38
|
-
needleWidth: n,
|
|
39
|
-
color: S || H,
|
|
40
|
-
dx: T,
|
|
41
|
-
dy: W,
|
|
42
|
-
tipX: G,
|
|
43
|
-
tipY: I
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
};
|
|
1
|
+
var e = {};
|
|
47
2
|
export {
|
|
48
|
-
|
|
3
|
+
e as __exports
|
|
49
4
|
};
|
|
50
5
|
//# sourceMappingURL=sd-component-library238.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library238.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library238.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
startY: e || t / 2 - 0.5,
|
|
19
|
-
endX: t + r,
|
|
20
|
-
endY: t / 2 - 0.5
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ p.jsx("path", { d: `M${d},${i} L${X},${Y}`, stroke: "#CCD0DB" });
|
|
23
|
-
};
|
|
1
|
+
const i = (t, n) => [t, n], T = function* (t = []) {
|
|
2
|
+
for (; t.length > 1; )
|
|
3
|
+
yield i(t[0], t[1]), t = t.slice(1);
|
|
4
|
+
}, I = (t, n, e) => {
|
|
5
|
+
if (n && !e)
|
|
6
|
+
return n;
|
|
7
|
+
if (!n && e)
|
|
8
|
+
return e;
|
|
9
|
+
if (n && e) {
|
|
10
|
+
const s = a(n), r = a(e), c = s.map((B, f) => Math.round(B * (1 - t) + r[f] * t));
|
|
11
|
+
return c ? u(c[0], c[1], c[2]) : "";
|
|
12
|
+
}
|
|
13
|
+
return "";
|
|
14
|
+
}, u = (t, n, e) => "#" + (16777216 + (t << 16) + (n << 8) + e).toString(16).slice(1), a = (t) => {
|
|
15
|
+
const n = t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
|
|
16
|
+
return n ? n.slice(1).map((e) => parseInt(e, 16)) : null;
|
|
17
|
+
}, h = (t, n, e) => Math.floor(t * n) === (e === "left" ? 0 : e === "right" ? n - 1 : 1), _ = (t) => t === "left" ? "right" : t === "top" ? "top" : "left";
|
|
24
18
|
export {
|
|
25
|
-
|
|
19
|
+
_ as flipPosition,
|
|
20
|
+
I as getFractionColor,
|
|
21
|
+
h as isLabelActive,
|
|
22
|
+
T as mapAdjacent
|
|
26
23
|
};
|
|
27
24
|
//# sourceMappingURL=sd-component-library239.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library239.js","sources":["../src/components/meters/
|
|
1
|
+
{"version":3,"file":"sd-component-library239.js","sources":["../src/components/meters/gradient-outline-meter/utils.ts"],"sourcesContent":["import { OutlineMeterLabelPosition } from \"../outline-meter\";\n\nconst pair = <T>(a: T, b: T): [T, T] => [a, b];\n\n/**\n * Returns an array of mapped adjacent elements into pairs.\n */\nexport const mapAdjacent = function* <T>(iter: T[] = []) {\n while (iter.length > 1) {\n yield pair<T>(iter[0], iter[1]);\n iter = iter.slice(1);\n }\n};\n\n/**\n * @param fraction numerical value from 0 to 1.\n * @param lowColor initial color of the gradient.\n * @param topColor final color of the gradient.\n * @returns color of gradient at specified fraction point or empty string\n */\nexport const getFractionColor = (\n fraction: number,\n lowColor?: string,\n topColor?: string\n): string => {\n if (lowColor && !topColor) return lowColor;\n if (!lowColor && topColor) return topColor;\n if (lowColor && topColor) {\n const lowRGB = hexToRGB(lowColor);\n const topRGB = hexToRGB(topColor);\n const resultRGB = lowRGB!.map((component, i) => {\n return Math.round(component * (1 - fraction) + topRGB![i] * fraction);\n });\n return resultRGB ? rgbToHex(resultRGB[0], resultRGB[1], resultRGB[2]) : \"\";\n }\n return \"\";\n};\n\n/**\n * Converts rgb color representation into hex representation.\n * @param red component of color.\n * @param green component of color.\n * @param blue component of color.\n */\nconst rgbToHex = (red: number, green: number, blue: number): string => {\n const BITS_IN_BYTE = 8;\n return (\n \"#\" +\n (\n (1 << (3 * BITS_IN_BYTE)) +\n (red << (2 * BITS_IN_BYTE)) +\n (green << BITS_IN_BYTE) +\n blue\n )\n .toString(16)\n .slice(1)\n );\n};\n\n/**\n * Converts hex representation of color into rgb.\n * @param hex complete and correct representation of color\n */\nconst hexToRGB = (hex: string) => {\n const normal = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);\n return normal ? normal.slice(1).map((e) => parseInt(e, 16)) : null;\n};\n\nexport const isLabelActive = (\n value: number,\n totalColors: number,\n position: OutlineMeterLabelPosition\n) =>\n Math.floor(value * totalColors) ===\n (position === \"left\" ? 0 : position === \"right\" ? totalColors - 1 : 1);\n\n/**\n * Mirrors entered position for outline meter label.\n */\nexport const flipPosition = (position: OutlineMeterLabelPosition) =>\n position === \"left\" ? \"right\" : position === \"top\" ? \"top\" : \"left\";\n"],"names":["pair","a","b","mapAdjacent","iter","getFractionColor","fraction","lowColor","topColor","lowRGB","hexToRGB","topRGB","resultRGB","component","i","rgbToHex","red","green","blue","hex","normal","isLabelActive","value","totalColors","position","flipPosition"],"mappings":"AAEA,MAAMA,IAAO,CAAIC,GAAMC,MAAiB,CAACD,GAAGC,CAAC,GAKhCC,IAAc,WAAcC,IAAY,IAAI;AAChD,SAAAA,EAAK,SAAS;AACnB,UAAMJ,EAAQI,EAAK,CAAC,GAAGA,EAAK,CAAC,CAAC,GACvBA,IAAAA,EAAK,MAAM,CAAC;AAEvB,GAQaC,IAAmB,CAC9BC,GACAC,GACAC,MACW;AACX,MAAID,KAAY,CAACC;AAAiB,WAAAD;AAClC,MAAI,CAACA,KAAYC;AAAiB,WAAAA;AAClC,MAAID,KAAYC,GAAU;AAClB,UAAAC,IAASC,EAASH,CAAQ,GAC1BI,IAASD,EAASF,CAAQ,GAC1BI,IAAYH,EAAQ,IAAI,CAACI,GAAWC,MACjC,KAAK,MAAMD,KAAa,IAAIP,KAAYK,EAAQG,CAAC,IAAIR,CAAQ,CACrE;AACM,WAAAM,IAAYG,EAASH,EAAU,CAAC,GAAGA,EAAU,CAAC,GAAGA,EAAU,CAAC,CAAC,IAAI;AAAA,EAC1E;AACO,SAAA;AACT,GAQMG,IAAW,CAACC,GAAaC,GAAeC,MAG1C,OAEG,YACAF,KAAQ,OACRC,KAAS,KACVC,GAEC,SAAS,EAAE,EACX,MAAM,CAAC,GAQRR,IAAW,CAACS,MAAgB;AAC1B,QAAAC,IAASD,EAAI,MAAM,6CAA6C;AACtE,SAAOC,IAASA,EAAO,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC,IAAI;AAChE,GAEaC,IAAgB,CAC3BC,GACAC,GACAC,MAEA,KAAK,MAAMF,IAAQC,CAAW,OAC7BC,MAAa,SAAS,IAAIA,MAAa,UAAUD,IAAc,IAAI,IAKzDE,IAAe,CAACD,MAC3BA,MAAa,SAAS,UAAUA,MAAa,QAAQ,QAAQ;"}
|
|
@@ -1,56 +1,112 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const C = (x) => {
|
|
1
|
+
import { j as t } from "./sd-component-library190.js";
|
|
2
|
+
import { getCoordinateForArc as A, getInnerX as H, getInnerY as M, degToRad as E } from "./sd-component-library86.js";
|
|
3
|
+
import { getFractionColor as O } from "./sd-component-library239.js";
|
|
4
|
+
import { BaseOutlineArc as X } from "./sd-component-library296.js";
|
|
5
|
+
const w = "#CCD0DB", q = (G) => {
|
|
7
6
|
const {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
7
|
+
diameter: I,
|
|
8
|
+
idx: d,
|
|
9
|
+
endColor: Y,
|
|
10
|
+
startColor: f,
|
|
11
|
+
segmented: v,
|
|
12
|
+
totalRanges: n,
|
|
13
|
+
value: i,
|
|
14
|
+
arc: l,
|
|
15
|
+
innerPointRadius: W,
|
|
16
|
+
pointStrokeWidth: C,
|
|
17
|
+
gaugeWidth: e,
|
|
18
|
+
pointColor: $
|
|
19
|
+
} = G, c = d / n, x = (d + 1) / n, k = i >= c && i <= x, R = (360 - l) / 2, r = I / 2, g = R + l * c, j = R + l * x, { x: u, y: h } = A(
|
|
20
|
+
r,
|
|
21
|
+
g
|
|
22
|
+
), { x: m, y } = A(
|
|
23
|
+
r,
|
|
24
|
+
j
|
|
25
|
+
);
|
|
26
|
+
if (v || !k)
|
|
27
|
+
return /* @__PURE__ */ t.jsx(
|
|
28
|
+
X,
|
|
29
|
+
{
|
|
30
|
+
startX: u,
|
|
31
|
+
startY: h,
|
|
32
|
+
endX: m,
|
|
33
|
+
endY: y,
|
|
34
|
+
startAlpha: g,
|
|
35
|
+
endAlpha: j,
|
|
36
|
+
color: v || i > x ? `url(#gradient-${f}-${Y})` : w,
|
|
37
|
+
radius: r,
|
|
38
|
+
width: e
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
const o = g + (i - c) / (x - c) * l / n, { x: a, y: s } = A(r, o), F = H(a, E(o), e), B = M(s, E(o), e), D = d >= n / 2, S = d + 1 === n / 2 + 0.5, z = S ? (a - u) / (m - u) : (s - h) / (y - h), p = O(z, f, Y);
|
|
42
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsxs(
|
|
44
|
+
"linearGradient",
|
|
45
|
+
{
|
|
46
|
+
id: `value-gradient-${p}`,
|
|
47
|
+
...D ? {
|
|
48
|
+
x1: 0,
|
|
49
|
+
y1: 0,
|
|
50
|
+
x2: 0,
|
|
51
|
+
y2: 1
|
|
52
|
+
} : S ? { x1: 0, y1: 0, x2: 1, y2: 0 } : {
|
|
53
|
+
x1: 0,
|
|
54
|
+
y1: 1,
|
|
55
|
+
x2: 0,
|
|
56
|
+
y2: 0
|
|
57
|
+
},
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ t.jsx("stop", { stopColor: f, offset: "0%" }),
|
|
60
|
+
/* @__PURE__ */ t.jsx("stop", { stopColor: p, offset: "100%" })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
) }),
|
|
64
|
+
/* @__PURE__ */ t.jsxs("g", { children: [
|
|
65
|
+
/* @__PURE__ */ t.jsx(
|
|
66
|
+
X,
|
|
67
|
+
{
|
|
68
|
+
startX: u,
|
|
69
|
+
startY: h,
|
|
70
|
+
endX: a,
|
|
71
|
+
endY: s,
|
|
72
|
+
startAlpha: g,
|
|
73
|
+
endAlpha: o,
|
|
74
|
+
color: `url(#value-gradient-${p})`,
|
|
75
|
+
radius: r,
|
|
76
|
+
width: e,
|
|
77
|
+
roundEnd: !1
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ t.jsx(
|
|
81
|
+
X,
|
|
82
|
+
{
|
|
83
|
+
startX: a,
|
|
84
|
+
startY: s,
|
|
85
|
+
endX: m,
|
|
86
|
+
endY: y,
|
|
87
|
+
startAlpha: o,
|
|
88
|
+
endAlpha: j,
|
|
89
|
+
color: w,
|
|
90
|
+
radius: r,
|
|
91
|
+
width: e,
|
|
92
|
+
roundStart: !1
|
|
36
93
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
v,
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ t.jsx(
|
|
96
|
+
"circle",
|
|
41
97
|
{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
98
|
+
cx: (a + F) / 2,
|
|
99
|
+
cy: (s + B) / 2,
|
|
100
|
+
r: C + W,
|
|
101
|
+
strokeWidth: C,
|
|
102
|
+
stroke: $ || p,
|
|
103
|
+
fill: "white"
|
|
48
104
|
}
|
|
49
105
|
)
|
|
50
|
-
}
|
|
51
|
-
|
|
106
|
+
] })
|
|
107
|
+
] });
|
|
52
108
|
};
|
|
53
109
|
export {
|
|
54
|
-
|
|
110
|
+
q as GradientMeterRange
|
|
55
111
|
};
|
|
56
112
|
//# sourceMappingURL=sd-component-library240.js.map
|