@rededor/cura 1.6.1-alpha.0 → 1.6.1-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-5a7ddb39.js → app-globals-28c6f5c4.js} +2 -2
- package/dist/cjs/{app-globals-5a7ddb39.js.map → app-globals-28c6f5c4.js.map} +1 -1
- package/dist/cjs/cura-accordion_18.cjs.entry.js +39 -19
- package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js +1 -1
- package/dist/cjs/cura-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js +1 -1
- package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-outline.cjs.entry.js +1 -1
- package/dist/cjs/cura-button-outline.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-button-select.cjs.entry.js +1 -1
- package/dist/cjs/cura-button-select.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-calendar.cjs.entry.js +15 -13
- package/dist/cjs/cura-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-checkbox.cjs.entry.js +4 -2
- package/dist/cjs/cura-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-loader-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-modal.cjs.entry.js +15 -2
- package/dist/cjs/cura-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/cura-radio.cjs.entry.js +19 -17
- package/dist/cjs/cura-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
- package/dist/cjs/cura-switch.cjs.entry.js +4 -2
- package/dist/cjs/cura-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/{cura-theme-module-a100c643.js → cura-theme-module-f1e4a309.js} +2 -2
- package/dist/cjs/{cura-theme-module-a100c643.js.map → cura-theme-module-f1e4a309.js.map} +1 -1
- package/dist/cjs/cura-toast.cjs.entry.js +2 -2
- package/dist/cjs/cura-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/cura.cjs.js +4 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{static-4e83652c.js → static-44199808.js} +16 -2
- package/dist/cjs/static-44199808.js.map +1 -0
- package/dist/collection/api/theme-presets/static.js +15 -1
- package/dist/collection/api/theme-presets/static.js.map +1 -1
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js +3 -2
- package/dist/collection/components/accordion/cura-accordion/cura-accordion.stories.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +3 -3
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js +2 -1
- package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.js.map +1 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button/cura-button.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-outline/cura-button-outline.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-select/cura-button-select.stories.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.js.map +1 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js +2 -1
- package/dist/collection/components/buttons/cura-button-transparent/cura-button-transparent.stories.js.map +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js +1 -1
- package/dist/collection/components/cura-alert/cura-alert.js.map +1 -1
- package/dist/collection/components/cura-avatar/cura-avatar.js +34 -16
- package/dist/collection/components/cura-avatar/cura-avatar.js.map +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +39 -13
- package/dist/collection/components/cura-calendar/cura-calendar.js.map +1 -1
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +19 -6
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js.map +1 -1
- package/dist/collection/components/cura-card/cura-card.stories.js +56 -25
- package/dist/collection/components/cura-card/cura-card.stories.js.map +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +7 -2
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js.map +1 -1
- package/dist/collection/components/cura-modal/cura-modal.css +4 -2
- package/dist/collection/components/cura-modal/cura-modal.js +14 -1
- package/dist/collection/components/cura-modal/cura-modal.js.map +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.css +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js.map +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.css +17 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +45 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js.map +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js +16 -2
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.css +16 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +62 -18
- package/dist/collection/components/forms/cura-radio/cura-radio.js.map +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js +19 -5
- package/dist/collection/components/forms/cura-radio/cura-radio.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.css +3 -2
- package/dist/collection/components/forms/cura-select/cura-select.js +36 -3
- package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.stories.js +12 -0
- package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.css +2 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js.map +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.css +11 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +45 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js.map +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js +16 -2
- package/dist/collection/components/forms/cura-switch/cura-switch.stories.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.stories.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js.map +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.stories.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
- package/dist/collection/stories/blocks/index.js +9 -0
- package/dist/collection/utils/utils.js +2 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-alert.js.map +1 -1
- package/dist/components/cura-avatar.js +1 -1
- package/dist/components/cura-avatar.js.map +1 -1
- package/dist/components/cura-badge-pill2.js +1 -1
- package/dist/components/cura-badge-pill2.js.map +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-outline.js.map +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-select.js.map +1 -1
- package/dist/components/cura-button-transparent2.js +1 -1
- package/dist/components/cura-button-transparent2.js.map +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-button.js.map +1 -1
- package/dist/components/cura-calendar2.js +16 -13
- package/dist/components/cura-calendar2.js.map +1 -1
- package/dist/components/cura-checkbox.js +6 -2
- package/dist/components/cura-checkbox.js.map +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-dropdown-search.js +7 -2
- package/dist/components/cura-dropdown-search.js.map +1 -1
- package/dist/components/cura-heading2.js +1 -1
- package/dist/components/cura-heading2.js.map +1 -1
- package/dist/components/cura-icon2.js +1 -1
- package/dist/components/cura-icon2.js.map +1 -1
- package/dist/components/cura-input-date.js +1 -1
- package/dist/components/cura-input-text2.js +16 -2
- package/dist/components/cura-input-text2.js.map +1 -1
- package/dist/components/cura-label2.js +1 -1
- package/dist/components/cura-loader-bar2.js +1 -1
- package/dist/components/cura-loader-bar2.js.map +1 -1
- package/dist/components/cura-loader-circle2.js +1 -1
- package/dist/components/cura-loader-circle2.js.map +1 -1
- package/dist/components/cura-modal.js +31 -6
- package/dist/components/cura-modal.js.map +1 -1
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-paragraph2.js +1 -1
- package/dist/components/cura-progress-bar2.js +1 -1
- package/dist/components/cura-radio.js +21 -17
- package/dist/components/cura-radio.js.map +1 -1
- package/dist/components/cura-select-option2.js +2 -2
- package/dist/components/cura-select-option2.js.map +1 -1
- package/dist/components/cura-select2.js +20 -4
- package/dist/components/cura-select2.js.map +1 -1
- package/dist/components/cura-stepper-item2.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +6 -2
- package/dist/components/cura-switch.js.map +1 -1
- package/dist/components/cura-toast.js +2 -2
- package/dist/components/cura-toast.js.map +1 -1
- package/dist/components/cura-tooltip.js +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/index.esm.js +1 -1
- package/dist/cura/{p-3519d0ba.entry.js → p-0aeaf57a.entry.js} +2 -2
- package/dist/cura/p-0aeaf57a.entry.js.map +1 -0
- package/dist/cura/{p-25932952.entry.js → p-0b872499.entry.js} +2 -2
- package/dist/cura/{p-daf9feac.js → p-0c25333f.js} +2 -2
- package/dist/cura/p-0ccde0ff.entry.js +2 -0
- package/dist/cura/p-0ccde0ff.entry.js.map +1 -0
- package/dist/cura/{p-2090e71a.entry.js → p-12a4ae7e.entry.js} +2 -2
- package/dist/cura/p-12a4ae7e.entry.js.map +1 -0
- package/dist/cura/{p-777decf9.entry.js → p-137f003b.entry.js} +2 -2
- package/dist/cura/{p-3c305dbd.entry.js → p-202dc01a.entry.js} +2 -2
- package/dist/cura/p-20b05d8f.entry.js +2 -0
- package/dist/cura/p-20b05d8f.entry.js.map +1 -0
- package/dist/cura/p-2db4deb3.js +2 -0
- package/dist/cura/p-2db4deb3.js.map +1 -0
- package/dist/cura/p-5a43e745.entry.js +2 -0
- package/dist/cura/p-5a43e745.entry.js.map +1 -0
- package/dist/cura/{p-fc1fd622.entry.js → p-633c13cd.entry.js} +2 -2
- package/dist/cura/p-633c13cd.entry.js.map +1 -0
- package/dist/cura/p-7a68835f.entry.js +2 -0
- package/dist/cura/p-7a68835f.entry.js.map +1 -0
- package/dist/cura/{p-e1916252.entry.js → p-7e10b146.entry.js} +2 -2
- package/dist/cura/p-7e10b146.entry.js.map +1 -0
- package/dist/cura/p-9fce5ec5.entry.js +2 -0
- package/dist/cura/p-9fce5ec5.entry.js.map +1 -0
- package/dist/cura/{p-a1782f0e.entry.js → p-ac01bec2.entry.js} +2 -2
- package/dist/cura/p-ac01bec2.entry.js.map +1 -0
- package/dist/cura/{p-6f7f157e.entry.js → p-b60a6aaa.entry.js} +2 -2
- package/dist/cura/p-b60a6aaa.entry.js.map +1 -0
- package/dist/cura/{p-ec4996c2.js → p-bf8e2037.js} +2 -2
- package/dist/cura/p-d8e1e182.entry.js +2 -0
- package/dist/cura/p-d8e1e182.entry.js.map +1 -0
- package/dist/cura/p-d936d5cf.entry.js +2 -0
- package/dist/cura/p-d936d5cf.entry.js.map +1 -0
- package/dist/cura/{p-d7f46266.entry.js → p-d97719bc.entry.js} +2 -2
- package/dist/esm/{app-globals-83a601d0.js → app-globals-ca1945d1.js} +2 -2
- package/dist/esm/{app-globals-83a601d0.js.map → app-globals-ca1945d1.js.map} +1 -1
- package/dist/esm/cura-accordion_18.entry.js +39 -19
- package/dist/esm/cura-accordion_18.entry.js.map +1 -1
- package/dist/esm/cura-alert.entry.js +1 -1
- package/dist/esm/cura-alert.entry.js.map +1 -1
- package/dist/esm/cura-badge-pill.entry.js +1 -1
- package/dist/esm/cura-badge-pill.entry.js.map +1 -1
- package/dist/esm/cura-button-outline.entry.js +1 -1
- package/dist/esm/cura-button-outline.entry.js.map +1 -1
- package/dist/esm/cura-button-select.entry.js +1 -1
- package/dist/esm/cura-button-select.entry.js.map +1 -1
- package/dist/esm/cura-calendar.entry.js +15 -13
- package/dist/esm/cura-calendar.entry.js.map +1 -1
- package/dist/esm/cura-checkbox.entry.js +4 -2
- package/dist/esm/cura-checkbox.entry.js.map +1 -1
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-display.entry.js.map +1 -1
- package/dist/esm/cura-input-date.entry.js +1 -1
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-loader-bar.entry.js.map +1 -1
- package/dist/esm/cura-modal.entry.js +15 -2
- package/dist/esm/cura-modal.entry.js.map +1 -1
- package/dist/esm/cura-progress-bar_2.entry.js +2 -2
- package/dist/esm/cura-radio.entry.js +19 -17
- package/dist/esm/cura-radio.entry.js.map +1 -1
- package/dist/esm/cura-stepper.entry.js +1 -1
- package/dist/esm/cura-switch.entry.js +4 -2
- package/dist/esm/cura-switch.entry.js.map +1 -1
- package/dist/esm/{cura-theme-module-59e8e460.js → cura-theme-module-0fa5ee0b.js} +2 -2
- package/dist/esm/{cura-theme-module-59e8e460.js.map → cura-theme-module-0fa5ee0b.js.map} +1 -1
- package/dist/esm/cura-toast.entry.js +2 -2
- package/dist/esm/cura-toast.entry.js.map +1 -1
- package/dist/esm/cura-tooltip.entry.js +1 -1
- package/dist/esm/cura.js +4 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{static-061aa850.js → static-090f0088.js} +16 -2
- package/dist/esm/static-090f0088.js.map +1 -0
- package/dist/types/api/theme-presets/static.d.ts +7 -0
- package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +1 -1
- package/dist/types/components/cura-avatar/cura-avatar.d.ts +37 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +7 -0
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +11 -3
- package/dist/types/components/cura-card/cura-card.stories.d.ts +7 -98
- package/dist/types/components/cura-dropdown-search/cura-dropdown-search.d.ts +1 -0
- package/dist/types/components/cura-modal/cura-modal.d.ts +3 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.d.ts +18 -0
- package/dist/types/components/forms/cura-checkbox/cura-checkbox.stories.d.ts +15 -0
- package/dist/types/components/forms/cura-radio/cura-radio.d.ts +30 -12
- package/dist/types/components/forms/cura-radio/cura-radio.stories.d.ts +15 -0
- package/dist/types/components/forms/cura-select/cura-select.d.ts +9 -0
- package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +11 -0
- package/dist/types/components/forms/cura-switch/cura-switch.d.ts +18 -0
- package/dist/types/components/forms/cura-switch/cura-switch.stories.d.ts +15 -0
- package/dist/types/components.d.ts +152 -6
- package/package.json +15 -11
- package/dist/cjs/static-4e83652c.js.map +0 -1
- package/dist/cura/p-1016108a.entry.js +0 -2
- package/dist/cura/p-1016108a.entry.js.map +0 -1
- package/dist/cura/p-174d220e.entry.js +0 -2
- package/dist/cura/p-174d220e.entry.js.map +0 -1
- package/dist/cura/p-186392b7.entry.js +0 -2
- package/dist/cura/p-186392b7.entry.js.map +0 -1
- package/dist/cura/p-1b201271.js +0 -2
- package/dist/cura/p-1b201271.js.map +0 -1
- package/dist/cura/p-2090e71a.entry.js.map +0 -1
- package/dist/cura/p-3519d0ba.entry.js.map +0 -1
- package/dist/cura/p-38777561.entry.js +0 -2
- package/dist/cura/p-38777561.entry.js.map +0 -1
- package/dist/cura/p-405a50de.entry.js +0 -2
- package/dist/cura/p-405a50de.entry.js.map +0 -1
- package/dist/cura/p-5b928e46.entry.js +0 -2
- package/dist/cura/p-5b928e46.entry.js.map +0 -1
- package/dist/cura/p-6f7f157e.entry.js.map +0 -1
- package/dist/cura/p-a1782f0e.entry.js.map +0 -1
- package/dist/cura/p-d77df3f0.entry.js +0 -2
- package/dist/cura/p-d77df3f0.entry.js.map +0 -1
- package/dist/cura/p-e1916252.entry.js.map +0 -1
- package/dist/cura/p-fc1fd622.entry.js.map +0 -1
- package/dist/esm/static-061aa850.js.map +0 -1
- /package/dist/cura/{p-25932952.entry.js.map → p-0b872499.entry.js.map} +0 -0
- /package/dist/cura/{p-daf9feac.js.map → p-0c25333f.js.map} +0 -0
- /package/dist/cura/{p-777decf9.entry.js.map → p-137f003b.entry.js.map} +0 -0
- /package/dist/cura/{p-3c305dbd.entry.js.map → p-202dc01a.entry.js.map} +0 -0
- /package/dist/cura/{p-ec4996c2.js.map → p-bf8e2037.js.map} +0 -0
- /package/dist/cura/{p-d7f46266.entry.js.map → p-d97719bc.entry.js.map} +0 -0
|
@@ -73,14 +73,47 @@ export namespace Components {
|
|
|
73
73
|
"type": 'info' | 'success' | 'warning' | 'error';
|
|
74
74
|
}
|
|
75
75
|
interface CuraAvatar {
|
|
76
|
+
/**
|
|
77
|
+
* Background color of the avatar. Accepts any color from the theme.
|
|
78
|
+
* @default neutral-purewhite
|
|
79
|
+
*/
|
|
76
80
|
"backgroundColor": string;
|
|
81
|
+
/**
|
|
82
|
+
* Show border of the avatar.
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
77
85
|
"border": boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Border color of the avatar. Accepts any color from the theme.
|
|
88
|
+
*/
|
|
78
89
|
"borderColor": string;
|
|
90
|
+
/**
|
|
91
|
+
* Border radius of the avatar.
|
|
92
|
+
* @default 50%
|
|
93
|
+
*/
|
|
79
94
|
"borderRadius": string;
|
|
95
|
+
/**
|
|
96
|
+
* Floating state of the avatar.
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
80
99
|
"floating": boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Image source of the avatar. Accepts any image source. If not provided, the default image will be used.
|
|
102
|
+
*/
|
|
81
103
|
"imageSrc": string;
|
|
104
|
+
/**
|
|
105
|
+
* Default image source of the avatar. Some predefined images are available in the design system assets folder.
|
|
106
|
+
*/
|
|
82
107
|
"imageSrcDefault": string;
|
|
108
|
+
/**
|
|
109
|
+
* Size of the avatar. Values: 80, 40, 32, 24.
|
|
110
|
+
* @default 80
|
|
111
|
+
*/
|
|
83
112
|
"size": '80' | '40' | '32' | '24';
|
|
113
|
+
/**
|
|
114
|
+
* Type of the avatar.
|
|
115
|
+
* @default default
|
|
116
|
+
*/
|
|
84
117
|
"type": 'default' | 'branding';
|
|
85
118
|
}
|
|
86
119
|
interface CuraBadgeCounter {
|
|
@@ -127,7 +160,7 @@ export namespace Components {
|
|
|
127
160
|
/**
|
|
128
161
|
* Color base from color scheme. Default: primary
|
|
129
162
|
*/
|
|
130
|
-
"color": 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
163
|
+
"color": 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'whatsapp';
|
|
131
164
|
/**
|
|
132
165
|
* Disabled state. Boolean
|
|
133
166
|
*/
|
|
@@ -416,6 +449,12 @@ export namespace Components {
|
|
|
416
449
|
*/
|
|
417
450
|
"period": null | string[] | string;
|
|
418
451
|
"selectLabelColorMode": 'dark' | 'light' | string;
|
|
452
|
+
/**
|
|
453
|
+
* Hide today mark.
|
|
454
|
+
* @type {boolean}
|
|
455
|
+
* @default true
|
|
456
|
+
*/
|
|
457
|
+
"showToday": boolean;
|
|
419
458
|
/**
|
|
420
459
|
* Display type of the date picker.
|
|
421
460
|
* @type {'dropdown' | 'static'}
|
|
@@ -503,6 +542,16 @@ export namespace Components {
|
|
|
503
542
|
* Specifies the tabindex of the checkbox.
|
|
504
543
|
*/
|
|
505
544
|
"ontabindex": number;
|
|
545
|
+
/**
|
|
546
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
547
|
+
* @default 'none'
|
|
548
|
+
*/
|
|
549
|
+
"overflowHelper": 'none' | 'single' | string;
|
|
550
|
+
/**
|
|
551
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
552
|
+
* @default 'none'
|
|
553
|
+
*/
|
|
554
|
+
"overflowLabel": 'none' | 'single' | string;
|
|
506
555
|
/**
|
|
507
556
|
* Position of the label relative to the checkbox. Can be 'left' or 'right'.
|
|
508
557
|
*/
|
|
@@ -972,10 +1021,20 @@ export namespace Components {
|
|
|
972
1021
|
* Specifies the tabindex of the radio button.
|
|
973
1022
|
*/
|
|
974
1023
|
"ontabindex": number;
|
|
1024
|
+
/**
|
|
1025
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
1026
|
+
* @default 'none'
|
|
1027
|
+
*/
|
|
1028
|
+
"overflowHelper": 'none' | 'single' | string;
|
|
1029
|
+
/**
|
|
1030
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
1031
|
+
* @default 'none'
|
|
1032
|
+
*/
|
|
1033
|
+
"overflowLabel": 'none' | 'single' | string;
|
|
975
1034
|
/**
|
|
976
1035
|
* Position of the label relative to the radio button. Can be 'left' or 'right'.
|
|
977
1036
|
*/
|
|
978
|
-
"position":
|
|
1037
|
+
"position": 'left' | 'right';
|
|
979
1038
|
/**
|
|
980
1039
|
* Reflects the required state of the radio button.
|
|
981
1040
|
*/
|
|
@@ -1007,6 +1066,10 @@ export namespace Components {
|
|
|
1007
1066
|
* The label text for the select component. Reflects as an attribute in the DOM.
|
|
1008
1067
|
*/
|
|
1009
1068
|
"label": string;
|
|
1069
|
+
/**
|
|
1070
|
+
* CSS max-height property for dropdown item. Can also be used by css property --max-height. Default: 285px
|
|
1071
|
+
*/
|
|
1072
|
+
"maxHeight": string;
|
|
1010
1073
|
/**
|
|
1011
1074
|
* Display mode of the select component. Can be 'default' or 'transparent'.
|
|
1012
1075
|
*/
|
|
@@ -1107,6 +1170,16 @@ export namespace Components {
|
|
|
1107
1170
|
* Tab index for the switch element. Reflects as an HTML attribute.
|
|
1108
1171
|
*/
|
|
1109
1172
|
"ontabindex": number;
|
|
1173
|
+
/**
|
|
1174
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
1175
|
+
* @default 'none'
|
|
1176
|
+
*/
|
|
1177
|
+
"overflowHelper": 'none' | 'single' | string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
1180
|
+
* @default 'none'
|
|
1181
|
+
*/
|
|
1182
|
+
"overflowLabel": 'none' | 'single' | string;
|
|
1110
1183
|
/**
|
|
1111
1184
|
* Position of the label relative to the switch. Can be 'left' or 'right'.
|
|
1112
1185
|
*/
|
|
@@ -1507,7 +1580,7 @@ declare global {
|
|
|
1507
1580
|
new (): HTMLCuraProgressBarElement;
|
|
1508
1581
|
};
|
|
1509
1582
|
interface HTMLCuraRadioElementEventMap {
|
|
1510
|
-
"onchange": { value: string
|
|
1583
|
+
"onchange": { value: string; checked: boolean };
|
|
1511
1584
|
}
|
|
1512
1585
|
interface HTMLCuraRadioElement extends Components.CuraRadio, HTMLStencilElement {
|
|
1513
1586
|
addEventListener<K extends keyof HTMLCuraRadioElementEventMap>(type: K, listener: (this: HTMLCuraRadioElement, ev: CuraRadioCustomEvent<HTMLCuraRadioElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1718,14 +1791,47 @@ declare namespace LocalJSX {
|
|
|
1718
1791
|
"type"?: 'info' | 'success' | 'warning' | 'error';
|
|
1719
1792
|
}
|
|
1720
1793
|
interface CuraAvatar {
|
|
1794
|
+
/**
|
|
1795
|
+
* Background color of the avatar. Accepts any color from the theme.
|
|
1796
|
+
* @default neutral-purewhite
|
|
1797
|
+
*/
|
|
1721
1798
|
"backgroundColor"?: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* Show border of the avatar.
|
|
1801
|
+
* @default false
|
|
1802
|
+
*/
|
|
1722
1803
|
"border"?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* Border color of the avatar. Accepts any color from the theme.
|
|
1806
|
+
*/
|
|
1723
1807
|
"borderColor"?: string;
|
|
1808
|
+
/**
|
|
1809
|
+
* Border radius of the avatar.
|
|
1810
|
+
* @default 50%
|
|
1811
|
+
*/
|
|
1724
1812
|
"borderRadius"?: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* Floating state of the avatar.
|
|
1815
|
+
* @default false
|
|
1816
|
+
*/
|
|
1725
1817
|
"floating"?: boolean;
|
|
1818
|
+
/**
|
|
1819
|
+
* Image source of the avatar. Accepts any image source. If not provided, the default image will be used.
|
|
1820
|
+
*/
|
|
1726
1821
|
"imageSrc"?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* Default image source of the avatar. Some predefined images are available in the design system assets folder.
|
|
1824
|
+
*/
|
|
1727
1825
|
"imageSrcDefault"?: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* Size of the avatar. Values: 80, 40, 32, 24.
|
|
1828
|
+
* @default 80
|
|
1829
|
+
*/
|
|
1728
1830
|
"size"?: '80' | '40' | '32' | '24';
|
|
1831
|
+
/**
|
|
1832
|
+
* Type of the avatar.
|
|
1833
|
+
* @default default
|
|
1834
|
+
*/
|
|
1729
1835
|
"type"?: 'default' | 'branding';
|
|
1730
1836
|
}
|
|
1731
1837
|
interface CuraBadgeCounter {
|
|
@@ -1772,7 +1878,7 @@ declare namespace LocalJSX {
|
|
|
1772
1878
|
/**
|
|
1773
1879
|
* Color base from color scheme. Default: primary
|
|
1774
1880
|
*/
|
|
1775
|
-
"color"?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
1881
|
+
"color"?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error' | 'whatsapp';
|
|
1776
1882
|
/**
|
|
1777
1883
|
* Disabled state. Boolean
|
|
1778
1884
|
*/
|
|
@@ -2068,6 +2174,12 @@ declare namespace LocalJSX {
|
|
|
2068
2174
|
*/
|
|
2069
2175
|
"period"?: null | string[] | string;
|
|
2070
2176
|
"selectLabelColorMode"?: 'dark' | 'light' | string;
|
|
2177
|
+
/**
|
|
2178
|
+
* Hide today mark.
|
|
2179
|
+
* @type {boolean}
|
|
2180
|
+
* @default true
|
|
2181
|
+
*/
|
|
2182
|
+
"showToday"?: boolean;
|
|
2071
2183
|
/**
|
|
2072
2184
|
* Display type of the date picker.
|
|
2073
2185
|
* @type {'dropdown' | 'static'}
|
|
@@ -2156,6 +2268,16 @@ declare namespace LocalJSX {
|
|
|
2156
2268
|
* Specifies the tabindex of the checkbox.
|
|
2157
2269
|
*/
|
|
2158
2270
|
"ontabindex"?: number;
|
|
2271
|
+
/**
|
|
2272
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2273
|
+
* @default 'none'
|
|
2274
|
+
*/
|
|
2275
|
+
"overflowHelper"?: 'none' | 'single' | string;
|
|
2276
|
+
/**
|
|
2277
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2278
|
+
* @default 'none'
|
|
2279
|
+
*/
|
|
2280
|
+
"overflowLabel"?: 'none' | 'single' | string;
|
|
2159
2281
|
/**
|
|
2160
2282
|
* Position of the label relative to the checkbox. Can be 'left' or 'right'.
|
|
2161
2283
|
*/
|
|
@@ -2641,15 +2763,25 @@ declare namespace LocalJSX {
|
|
|
2641
2763
|
* Name attribute of the radio button.
|
|
2642
2764
|
*/
|
|
2643
2765
|
"name"?: string;
|
|
2644
|
-
"onOnchange"?: (event: CuraRadioCustomEvent<{ value: string
|
|
2766
|
+
"onOnchange"?: (event: CuraRadioCustomEvent<{ value: string; checked: boolean }>) => void;
|
|
2645
2767
|
/**
|
|
2646
2768
|
* Specifies the tabindex of the radio button.
|
|
2647
2769
|
*/
|
|
2648
2770
|
"ontabindex"?: number;
|
|
2771
|
+
/**
|
|
2772
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2773
|
+
* @default 'none'
|
|
2774
|
+
*/
|
|
2775
|
+
"overflowHelper"?: 'none' | 'single' | string;
|
|
2776
|
+
/**
|
|
2777
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2778
|
+
* @default 'none'
|
|
2779
|
+
*/
|
|
2780
|
+
"overflowLabel"?: 'none' | 'single' | string;
|
|
2649
2781
|
/**
|
|
2650
2782
|
* Position of the label relative to the radio button. Can be 'left' or 'right'.
|
|
2651
2783
|
*/
|
|
2652
|
-
"position"?:
|
|
2784
|
+
"position"?: 'left' | 'right';
|
|
2653
2785
|
/**
|
|
2654
2786
|
* Reflects the required state of the radio button.
|
|
2655
2787
|
*/
|
|
@@ -2681,6 +2813,10 @@ declare namespace LocalJSX {
|
|
|
2681
2813
|
* The label text for the select component. Reflects as an attribute in the DOM.
|
|
2682
2814
|
*/
|
|
2683
2815
|
"label"?: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* CSS max-height property for dropdown item. Can also be used by css property --max-height. Default: 285px
|
|
2818
|
+
*/
|
|
2819
|
+
"maxHeight"?: string;
|
|
2684
2820
|
/**
|
|
2685
2821
|
* Display mode of the select component. Can be 'default' or 'transparent'.
|
|
2686
2822
|
*/
|
|
@@ -2790,6 +2926,16 @@ declare namespace LocalJSX {
|
|
|
2790
2926
|
* Tab index for the switch element. Reflects as an HTML attribute.
|
|
2791
2927
|
*/
|
|
2792
2928
|
"ontabindex"?: number;
|
|
2929
|
+
/**
|
|
2930
|
+
* Controls how the helper text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2931
|
+
* @default 'none'
|
|
2932
|
+
*/
|
|
2933
|
+
"overflowHelper"?: 'none' | 'single' | string;
|
|
2934
|
+
/**
|
|
2935
|
+
* Controls how the label text should handle overflow. - `'none'`: No overflow handling; the label displays normally. - `'single'`: The label will be truncated with an ellipsis if it overflows a single line. - `string`: Custom overflow handling mode.
|
|
2936
|
+
* @default 'none'
|
|
2937
|
+
*/
|
|
2938
|
+
"overflowLabel"?: 'none' | 'single' | string;
|
|
2793
2939
|
/**
|
|
2794
2940
|
* Position of the label relative to the switch. Can be 'left' or 'right'.
|
|
2795
2941
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rededor/cura",
|
|
3
|
-
"version": "1.6.1-alpha.
|
|
3
|
+
"version": "1.6.1-alpha.10",
|
|
4
4
|
"description": "Cura Design System",
|
|
5
5
|
"author": "Rede D`Or São Luiz",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"generate": "stencil generate",
|
|
25
25
|
"build:iconset": "node ./node/iconset-builder.js",
|
|
26
26
|
"storybook": "npm run build && storybook dev -p 6006",
|
|
27
|
-
"build-storybook": "storybook build"
|
|
27
|
+
"build-storybook": "storybook build",
|
|
28
|
+
"test-storybook": "test-storybook --coverage"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@stencil/core": "^4.22.0",
|
|
@@ -35,21 +36,24 @@
|
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@stencil/react-output-target": "^0.5.3",
|
|
37
38
|
"@stencil/sass": "^2.0.4",
|
|
38
|
-
"@storybook/addon-
|
|
39
|
-
"@storybook/addon-
|
|
40
|
-
"@storybook/addon-
|
|
41
|
-
"@storybook/
|
|
42
|
-
"@storybook/
|
|
43
|
-
"@storybook/
|
|
44
|
-
"@storybook/
|
|
39
|
+
"@storybook/addon-a11y": "^7.6.10",
|
|
40
|
+
"@storybook/addon-coverage": "^1.0.0",
|
|
41
|
+
"@storybook/addon-essentials": "^7.6.10",
|
|
42
|
+
"@storybook/addon-interactions": "^7.6.10",
|
|
43
|
+
"@storybook/addon-links": "^7.6.10",
|
|
44
|
+
"@storybook/blocks": "^7.6.10",
|
|
45
|
+
"@storybook/html": "^7.6.10",
|
|
46
|
+
"@storybook/html-webpack5": "^7.6.10",
|
|
47
|
+
"@storybook/test": "^7.6.10",
|
|
48
|
+
"@storybook/test-runner": "^0.16.0",
|
|
45
49
|
"@types/jest": "^27.0.3",
|
|
46
50
|
"jest": "^27.4.5",
|
|
47
51
|
"jest-cli": "^27.4.5",
|
|
48
52
|
"puppeteer": "^22.13.1",
|
|
49
53
|
"react": "^18.2.0",
|
|
50
54
|
"react-dom": "^18.2.0",
|
|
51
|
-
"storybook": "^7.6.
|
|
55
|
+
"storybook": "^7.6.10",
|
|
52
56
|
"svgo": "^3.3.2"
|
|
53
57
|
},
|
|
54
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "60733f28bd66ef180bf5d6c9504e25946b658a2f"
|
|
55
59
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"static-4e83652c.js","mappings":";;AAAA;;;MAGa,MAAM,GAAG;;IAEpB,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,UAAU;SAClB;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU;SAClB;QACD,KAAK,EAAE;YACL,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,UAAU;SAClB;QACD,OAAO,EAAE;YACP,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,UAAU;SAClB;QACD,OAAO,EAAE;YACP,GAAG,EAAE,aAAa;YAClB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,aAAa;YACpB,KAAK,EAAE,UAAU;YACjB,KAAK,EAAE,UAAU;SAClB;KACF;IACD,WAAW,EAAE;QACX,MAAM,EAAE;YACN,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;SACT;QACD,KAAK,EAAE;YACL,GAAG,EAAE,GAAG;YACR,GAAG,EAAE,GAAG;SACT;QACD,MAAM,EAAE;YACN,GAAG,EAAE,GAAG;YACR,GAAG,EAAE,GAAG;SACT;QACD,KAAK,EAAE;YACL,GAAG,EAAE,GAAG;YACR,GAAG,EAAE,IAAI;SACV;QACD,MAAM,EAAE;YACN,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;SACV;KACF;;;;;","names":[],"sources":["src/api/theme-presets/static.ts"],"sourcesContent":["/**\n * Static\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480\n },\n small: {\n min: 481,\n max: 768\n },\n medium: {\n min: 769,\n max: 992\n },\n large: {\n min: 993,\n max: 1920\n },\n xlarge: {\n min: 1921,\n max: 4096\n }\n }\n};\n"],"version":3}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as s,h as r,H as e,g as t}from"./p-4ee8efca.js";const a=":host{display:block}:host .progress-bar{position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:var(--neutral-base)}:host .progress-bar span{position:absolute;left:0;bottom:0;width:var(--bar-width);height:100%;border-radius:0 2px 2px 0;background-color:var(--color-base);transition:width 0.2s linear}";const o=a;const i=class{constructor(r){s(this,r);this.color="primary-base";this.progress=0;this.styles={}}handleChangeColor(){this.setColor()}handleProgress(){this.setProgress()}connectedCallback(){this.setColor();this.setProgress()}render(){return r(e,{key:"1998824d6b116e2c4333b347476cfee523095f94"},r("div",{key:"2c97c04b18b84edabfe603cb98f81330a7b21a68",id:"progress-bar",class:"progress-bar",style:this.styles},r("span",{key:"7cca25e41f5d310123e9a07dff37f83edb5bdc62",class:"progress-bar-fill"})))}setColor(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-base":window.CuraAPI.theme.colors.getColor(`neutral-base`,.2),"--color-base":window.CuraAPI.theme.colors.getColor(this.color)})}setProgress(){this.styles=Object.assign(Object.assign({},this.styles),{"--bar-width":`${this.progress}%`})}get host(){return t(this)}static get watchers(){return{color:["handleChangeColor"],progress:["handleProgress"]}}};i.style=o;export{i as cura_loader_bar};
|
|
2
|
-
//# sourceMappingURL=p-1016108a.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["curaLoaderBarCss","CuraLoaderBarStyle0","CuraLoaderBar","handleChangeColor","this","setColor","handleProgress","setProgress","connectedCallback","render","h","Host","key","id","class","style","styles","Object","assign","window","CuraAPI","theme","colors","getColor","color","progress"],"sources":["src/components/loaders/cura-loader-bar/cura-loader-bar.scss?tag=cura-loader-bar&encapsulation=shadow","src/components/loaders/cura-loader-bar/cura-loader-bar.tsx"],"sourcesContent":[":host {\n display: block;\n\n .progress-bar {\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 4px;\n background-color: var(--neutral-base);\n\n span {\n position: absolute;\n left: 0;\n bottom: 0;\n width: var(--bar-width);\n height: 100%;\n border-radius: 0 2px 2px 0;\n background-color: var(--color-base);\n transition: width 0.2s linear;\n }\n }\n}\n","import { Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-loader-bar',\n styleUrl: 'cura-loader-bar.scss',\n shadow: true,\n})\nexport class CuraLoaderBar {\n @Element() host: HTMLElement;\n\n @Prop() color = 'primary-base';\n @Prop() progress = 0;\n\n @State() styles = {};\n\n @Watch('color')\n handleChangeColor() {\n this.setColor();\n }\n\n @Watch('progress')\n handleProgress() {\n this.setProgress();\n }\n\n connectedCallback() {\n this.setColor();\n this.setProgress();\n }\n \n render() {\n return (\n <Host>\n <div id=\"progress-bar\" class=\"progress-bar\" style={this.styles}>\n <span class=\"progress-bar-fill\"></span>\n </div>\n </Host>\n );\n }\n\n setColor() {\n this.styles = {\n ...this.styles,\n '--neutral-base': window.CuraAPI.theme.colors.getColor(`neutral-base`, 0.2),\n '--color-base': window.CuraAPI.theme.colors.getColor(this.color),\n }\n }\n\n setProgress() {\n this.styles = {\n ...this.styles,\n '--bar-width': `${this.progress}%`,\n }\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAmB,gUACzB,MAAAC,EAAeD,E,MCMFE,EAAa,M,oCAGR,e,cACG,E,YAED,E,CAGlB,iBAAAC,GACEC,KAAKC,U,CAIP,cAAAC,GACEF,KAAKG,a,CAGP,iBAAAC,GACEJ,KAAKC,WACLD,KAAKG,a,CAGP,MAAAE,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,GAAG,eAAeC,MAAM,eAAeC,MAAOX,KAAKY,QACtDN,EAAA,QAAAE,IAAA,2CAAME,MAAM,uB,CAMpB,QAAAT,GACED,KAAKY,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNd,KAAKY,QAAM,CACd,iBAAkBG,OAAOC,QAAQC,MAAMC,OAAOC,SAAS,eAAgB,IACvE,eAAgBJ,OAAOC,QAAQC,MAAMC,OAAOC,SAASnB,KAAKoB,Q,CAI9D,WAAAjB,GACEH,KAAKY,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNd,KAAKY,QAAM,CACd,cAAe,GAAGZ,KAAKqB,a","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as a,c as e,h as t,H as s}from"./p-4ee8efca.js";const i=":host{display:block}.modal{position:fixed;height:100%;width:100%;top:var(--top-offset);bottom:var(--bottom-offset);left:var(--left-offset);right:var(--right-offset);z-index:-1;margin-top:var(--offset-top)}.modal.open{z-index:var(--zIndex)}.modal.open .backdrop,.modal.open .wrapper{opacity:1;visibility:visible;animation:fadeIn 0.3s ease-out}.container{display:flex;align-items:center;justify-content:center}.backdrop,.wrapper{opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.backdrop{background-color:var(--background-color);z-index:calc(var(--zIndex) - 10);animation:fadeIn 0.3s ease-out}.wrapper{position:fixed;background-color:var(--neutral-white);border:2px solid var(--neutral-light);border-radius:calc(var(--cura-spacing-base) * 3px);max-width:600px;min-width:200px;padding:0px calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px) calc(var(--cura-spacing-base) * 4px);z-index:var(--zIndex);box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12));transform:scale(0.95);transition:transform 0.3s ease-out, opacity 0.3s ease, visibility 0.3s ease}.wrapper ::slotted(*){max-height:80vh;overflow:auto;padding-right:calc(var(--cura-spacing-base) * 5px)}.modal.open .wrapper{transform:scale(1);opacity:1;visibility:visible}.close{justify-self:flex-end;padding-top:calc(var(--cura-spacing-base) * 4px);background:none;border:none;cursor:pointer}.close.mobile{display:none}.close.desktop{display:flex}@media (max-width: 768px){.wrapper{position:fixed;bottom:0px;width:80%;padding-top:calc(var(--cura-spacing-base) * 4px);padding-bottom:0px;border-radius:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px) 0px 0px;border-bottom:none}.close{align-items:center;border-top:1px dashed var(--neutral-light);margin-top:calc(var(--cura-spacing-base) * 4px);padding:calc(var(--cura-spacing-base) * 4px) 0px;justify-content:center;width:100%}.close.mobile{display:flex;gap:calc(var(--cura-spacing-base) * 2px)}.close.desktop{display:none}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}";const o=i;const c=class{constructor(t){a(this,t);this.modalClose=e(this,"modalClose",7);this.handleClose=()=>{this.modalClose.emit();this.open=false};this.open=false;this.background="light";this.top=0;this.bottom=0;this.left=0;this.right=0;this.mobileCloseLabel="Fechar";this.zindex="100";this.styles={}}setColors(){const a={dark:window.CuraAPI.theme.colors.getColor("neutral-black",.4),light:window.CuraAPI.theme.colors.getColor("primary-darker",.8)};this.styles=Object.assign(Object.assign({},this.styles),{"--background-color":a[this.background]})}setOffset(a,e){this.styles=Object.assign(Object.assign({},this.styles),{[`--${a}-offset`]:`${e}px`})}setTop(){this.setOffset("top",this.top)}setBottom(){this.setOffset("bottom",this.bottom)}setLeft(){this.setOffset("left",this.left)}setRight(){this.setOffset("right",this.right)}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-white":window.CuraAPI.theme.colors.getColor("neutral-white"),"--neutral-light":window.CuraAPI.theme.colors.getColor("neutral-light"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()});this.setColors();this.setTop();this.setBottom();this.setLeft();this.setRight()}render(){return t(s,{key:"cec1266a4daaac89f69e4f08c94574db9cd970f8",role:"dialog","aria-modal":"true",style:{"--zIndex":this.zindex}},t("div",{key:"5b330fb69c2360e9c6053d2650c43cbf643eb751",class:this.open?"modal container open":"modal container",style:this.styles},t("div",{key:"8187dd2df05750a19f85e156059b66d8d56c8b00",class:this.open?"modal backdrop open":"modal backdrop",onClick:this.handleClose}),t("div",{key:"6a34bc7d67fa48c86d2ada7c167a834c09713ad7",class:"wrapper"},t("button",{key:"6e268d5260404b51dd8779007725c19635066881",class:"close desktop",onClick:this.handleClose},t("cura-icon",{key:"7b5644d466b0b9282b6b9d484ea1c0f4384e2aef",name:"close",color:"error-dark",size:"small"})),t("slot",{key:"890dc7befdbd96fc8d5cc62a4ad856631b6a7f1e"}),t("button",{key:"5f7610ea323e3cad1e12acac7cb66345c8eacf98",class:"close mobile",onClick:this.handleClose},t("cura-icon",{key:"e9e82d2d4fe0b181131bd0bd7fae8feebaabfd9c",name:"close",color:"error-dark",size:"16"}),t("cura-paragraph",{key:"b9930dd44ca205ec4747c62c005beb36e974698b",color:"error-dark",size:"small",marginBlock:"0"},this.mobileCloseLabel)))))}static get watchers(){return{background:["setColors"],top:["setTop"],bottom:["setBottom"],left:["setLeft"],right:["setRight"]}}};c.style=o;export{c as cura_modal};
|
|
2
|
-
//# sourceMappingURL=p-174d220e.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["curaModalCss","CuraModalStyle0","CuraModal","this","handleClose","modalClose","emit","open","setColors","backgroundTheme","dark","window","CuraAPI","theme","colors","getColor","light","styles","Object","assign","background","setOffset","name","value","setTop","top","setBottom","bottom","setLeft","left","setRight","right","connectedCallback","spacing","getSpacing","render","h","Host","key","role","style","zindex","class","onClick","color","size","marginBlock","mobileCloseLabel"],"sources":["src/components/cura-modal/cura-modal.scss?tag=cura-modal&encapsulation=shadow","src/components/cura-modal/cura-modal.tsx"],"sourcesContent":["@import '../../../src/scss/mixins/spacing.scss';\n@import '../../../src/scss/mixins/shadows.scss';\n@import '../../../src/scss/mixins/responsive.scss';\n@import '../../../src/scss/mixins/animations.scss';\n\n:host {\n display: block;\n}\n\n.modal {\n position: fixed;\n height: 100%;\n width: 100%;\n top: var(--top-offset);\n bottom: var(--bottom-offset);\n left: var(--left-offset);\n right: var(--right-offset);\n z-index: -1;\n margin-top: var(--offset-top);\n\n &.open {\n z-index: var(--zIndex);\n\n .backdrop,\n .wrapper {\n opacity: 1;\n visibility: visible;\n animation: fadeIn 0.3s ease-out;\n }\n }\n}\n\n.container {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.backdrop,\n.wrapper {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease, visibility 0.3s ease;\n}\n\n.backdrop {\n background-color: var(--background-color);\n z-index: calc(var(--zIndex) - 10);\n animation: fadeIn 0.3s ease-out;\n}\n\n.wrapper {\n position: fixed;\n background-color: var(--neutral-white);\n border: 2px solid var(--neutral-light);\n border-radius: #{$spacing-xxxs};\n max-width: 600px;\n min-width: 200px;\n padding: #{$spacing-none} #{$spacing-xxs} #{$spacing-xxs} #{$spacing-xxs};\n z-index: var(--zIndex);\n\n @include shadow-level4();\n\n transform: scale(0.95);\n transition: transform 0.3s ease-out, opacity 0.3s ease, visibility 0.3s ease;\n\n ::slotted(*) {\n max-height: 80vh;\n overflow: auto;\n padding-right: #{$spacing-xs};\n }\n}\n\n.modal.open .wrapper {\n transform: scale(1);\n opacity: 1;\n visibility: visible;\n}\n\n.close {\n justify-self: flex-end;\n padding-top: #{$spacing-xxs};\n background: none;\n border: none;\n cursor: pointer;\n\n &.mobile {\n display: none;\n }\n\n &.desktop {\n display: flex;\n }\n}\n\n@include mobile-only() {\n .wrapper {\n position: fixed;\n bottom: #{$spacing-none};\n width: 80%;\n padding-top: #{$spacing-xxs};\n padding-bottom: #{$spacing-none};\n border-radius: #{$spacing-xxxs} #{$spacing-xxxs} #{$spacing-none} #{$spacing-none};\n border-bottom: none;\n }\n\n .close {\n align-items: center;\n border-top: 1px dashed var(--neutral-light);\n margin-top: #{$spacing-xxs};\n padding: #{$spacing-xxs} #{$spacing-none};\n justify-content: center;\n width: 100%;\n\n &.mobile {\n display: flex;\n gap: #{$spacing-mini};\n }\n\n &.desktop {\n display: none;\n }\n }\n}\n\n@include fadeIn();\n@include fadeOut();\n","import { Component, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';\n\n@Component({\n tag: 'cura-modal',\n styleUrl: 'cura-modal.scss',\n shadow: true,\n})\nexport class CuraModal {\n /**\n * Property open to control modal visibility.\n * Default: false\n */\n @Prop({ mutable: true, reflect: true }) open?: boolean = false;\n /**\n * Property background to control modal backdrop color.\n * Default: light\n */\n @Prop() background?: 'dark' | 'light' = 'light';\n /**\n * Property top to control modal top position.\n * Default: 0px\n */\n @Prop() top?: number = 0;\n /**\n * Property bottom to control modal bottom position.\n * Default: 0px\n */\n @Prop() bottom?: number = 0;\n /**\n * Property left to control modal left position.\n * Default: 0px\n */\n @Prop() left?: number = 0;\n /**\n * Property right to control modal right position.\n * Default: 0px\n */\n @Prop() right?: number = 0;\n /**\n * Defines the label for the close button when the modal is viewed on mobile.\n * Default: Fechar\n */\n @Prop({ reflect: true }) mobileCloseLabel: string = 'Fechar';\n /**\n * Property zindex to control the z-index value of the component.\n * Default: 100\n */\n @Prop({ reflect: true }) zindex: string = '100';\n /**\n * Event close to handle modal close.\n */\n @Event({ eventName: 'modalClose' }) modalClose: EventEmitter<void>;\n\n @State() styles = {};\n\n @Watch('background')\n setColors() {\n const backgroundTheme = {\n dark: window.CuraAPI.theme.colors.getColor('neutral-black', 0.4),\n light: window.CuraAPI.theme.colors.getColor('primary-darker', 0.8),\n };\n\n this.styles = {\n ...this.styles,\n '--background-color': backgroundTheme[this.background],\n };\n }\n\n setOffset(name: string, value: number) {\n this.styles = {\n ...this.styles,\n [`--${name}-offset`]: `${value}px`,\n };\n }\n\n @Watch('top')\n setTop() {\n this.setOffset('top', this.top);\n }\n\n @Watch('bottom')\n setBottom() {\n this.setOffset('bottom', this.bottom);\n }\n\n @Watch('left')\n setLeft() {\n this.setOffset('left', this.left);\n }\n\n @Watch('right')\n setRight() {\n this.setOffset('right', this.right);\n }\n\n connectedCallback() {\n this.styles = {\n ...this.styles,\n '--neutral-white': window.CuraAPI.theme.colors.getColor('neutral-white'),\n '--neutral-light': window.CuraAPI.theme.colors.getColor('neutral-light'),\n '--base-spacing': window.CuraAPI.theme.spacing.getSpacing(),\n };\n this.setColors();\n this.setTop();\n this.setBottom();\n this.setLeft();\n this.setRight();\n }\n\n private handleClose = () => {\n this.modalClose.emit();\n this.open = false;\n };\n\n render() {\n return (\n <Host role=\"dialog\" aria-modal=\"true\" style={{ '--zIndex': this.zindex }}>\n <div class={this.open ? 'modal container open' : 'modal container'} style={this.styles}>\n <div class={this.open ? 'modal backdrop open' : 'modal backdrop'} onClick={this.handleClose}></div>\n <div class=\"wrapper\">\n {/* Desktop button */}\n <button class=\"close desktop\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"small\"></cura-icon>\n </button>\n <slot></slot>\n {/* Mobile button */}\n <button class=\"close mobile\" onClick={this.handleClose}>\n <cura-icon name=\"close\" color=\"error-dark\" size=\"16\"></cura-icon>\n <cura-paragraph color=\"error-dark\" size=\"small\" marginBlock=\"0\">\n {this.mobileCloseLabel}\n </cura-paragraph>\n </button>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAe,8kEACrB,MAAAC,EAAeD,E,MCMFE,EAAS,M,gEAsGZC,KAAAC,YAAc,KACpBD,KAAKE,WAAWC,OAChBH,KAAKI,KAAO,KAAK,E,UAnGsC,M,gBAKjB,Q,SAKjB,E,YAKG,E,UAKF,E,WAKC,E,sBAK2B,S,YAKV,M,YAMxB,E,CAGlB,SAAAC,GACE,MAAMC,EAAkB,CACtBC,KAAMC,OAAOC,QAAQC,MAAMC,OAAOC,SAAS,gBAAiB,IAC5DC,MAAOL,OAAOC,QAAQC,MAAMC,OAAOC,SAAS,iBAAkB,KAGhEZ,KAAKc,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNhB,KAAKc,QAAM,CACd,qBAAsBR,EAAgBN,KAAKiB,a,CAI/C,SAAAC,CAAUC,EAAcC,GACtBpB,KAAKc,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNhB,KAAKc,QAAM,CACd,CAAC,KAAKK,YAAgB,GAAGC,O,CAK7B,MAAAC,GACErB,KAAKkB,UAAU,MAAOlB,KAAKsB,I,CAI7B,SAAAC,GACEvB,KAAKkB,UAAU,SAAUlB,KAAKwB,O,CAIhC,OAAAC,GACEzB,KAAKkB,UAAU,OAAQlB,KAAK0B,K,CAI9B,QAAAC,GACE3B,KAAKkB,UAAU,QAASlB,KAAK4B,M,CAG/B,iBAAAC,GACE7B,KAAKc,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNhB,KAAKc,QAAM,CACd,kBAAmBN,OAAOC,QAAQC,MAAMC,OAAOC,SAAS,iBACxD,kBAAmBJ,OAAOC,QAAQC,MAAMC,OAAOC,SAAS,iBACxD,iBAAkBJ,OAAOC,QAAQC,MAAMoB,QAAQC,eAEjD/B,KAAKK,YACLL,KAAKqB,SACLrB,KAAKuB,YACLvB,KAAKyB,UACLzB,KAAK2B,U,CAQP,MAAAK,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,SAAQ,aAAY,OAAOC,MAAO,CAAE,WAAYrC,KAAKsC,SAC9DL,EAAA,OAAAE,IAAA,2CAAKI,MAAOvC,KAAKI,KAAO,uBAAyB,kBAAmBiC,MAAOrC,KAAKc,QAC9EmB,EAAA,OAAAE,IAAA,2CAAKI,MAAOvC,KAAKI,KAAO,sBAAwB,iBAAkBoC,QAASxC,KAAKC,cAChFgC,EAAA,OAAAE,IAAA,2CAAKI,MAAM,WAETN,EAAA,UAAAE,IAAA,2CAAQI,MAAM,gBAAgBC,QAASxC,KAAKC,aAC1CgC,EAAA,aAAAE,IAAA,2CAAWhB,KAAK,QAAQsB,MAAM,aAAaC,KAAK,WAElDT,EAAA,QAAAE,IAAA,6CAEAF,EAAA,UAAAE,IAAA,2CAAQI,MAAM,eAAeC,QAASxC,KAAKC,aACzCgC,EAAA,aAAAE,IAAA,2CAAWhB,KAAK,QAAQsB,MAAM,aAAaC,KAAK,OAChDT,EAAA,kBAAAE,IAAA,2CAAgBM,MAAM,aAAaC,KAAK,QAAQC,YAAY,KACzD3C,KAAK4C,qB","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r,c as e,h as a,H as s,g as t}from"./p-4ee8efca.js";import{f as o}from"./p-f9b8f665.js";const i='@charset "UTF-8";:host{display:block;width:fit-content;box-sizing:border-box;}:host .container{display:flex;align-items:center;flex-direction:row-reverse;gap:var(--gap)}:host .position.container{flex-direction:row}:host .position .label-wrapper{justify-content:end}:host .position .message{text-align:right}:host .position .label{order:1}:host .info{display:flex;flex-direction:column}:host .label-wrapper{display:flex;justify-content:start;align-items:center;gap:5px}:host .control{width:fit-content;cursor:pointer;position:relative}:host .radio{margin:0;appearance:none;-webkit-appearance:none;-moz-appearance:none;border-radius:50%;border:2px solid var(--primary-base-neutral-medium);background:var(--neutral-purewhite);box-sizing:border-box;transition:border-color 0.3s;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;width:var(--size);height:var(--size);flex:0 0 var(--size)}:host .radio::after{content:"";background:var(--color-base-light);border-radius:50%;opacity:0;transition:opacity 0.3s;width:var(--size-after);height:var(--size-after)}:host .radio:focus{border-color:var(--info-base) !important}:host .success .radio{border-color:var(--success-base);background:var(--success-lighter)}:host .success .radio:hover{border-color:var(--success-base) !important}:host .success.checked .radio{border-color:var(--success-base)}:host .success.checked .radio::after{background:var(--success-base)}:host .success.checked .radio:hover{background:var(--success-lighter) !important;border-color:var(--success-base) !important}:host .success.checked .radio:hover::after{background:var(--success-base) !important}:host .error .radio{border-color:var(--error-base);background:var(--error-lighter)}:host .error .radio:hover{border-color:var(--error-base) !important}:host .error.checked .radio{border-color:var(--error-base)}:host .error.checked .radio::after{background:var(--error-base)}:host .error.checked .radio:hover{background:var(--error-lighter) !important;border-color:var(--error-base) !important}:host .error.checked .radio:hover::after{background:var(--error-base) !important}:host .checked .radio::after{opacity:1;background:var(--color-base)}:host .checked .radio{border-color:var(--color-dark)}:host .checked .radio:hover{border-color:var(--color-light) !important}:host .checked .radio:hover::after{background:var(--color-light)}:host .disabled .radio{background:var(--primary-base-neutral-white);border-color:var(--primary-darker-neutral-base);cursor:not-allowed}:host .disabled .radio::after{background:var(--neutral-lighter)}:host .disabled.checked .radio{border-color:var(--primary-base-neutral-base) !important;background:var(--primary-darker-neutral-white) !important}:host .disabled.checked .radio::after{background:var(--primary-base-neutral-base) !important}:host :not(.disabled):not(.checked) .radio:hover{border-color:var(--primary-base-neutral-dark)}';const c=i;const d=class{constructor(a){r(this,a);this.onchange=e(this,"onchange",7);if(a.$hostElement$["s-ei"]){this.internals=a.$hostElement$["s-ei"]}else{this.internals=a.$hostElement$.attachInternals();a.$hostElement$["s-ei"]=this.internals}this.sizes={large:{size:20},medium:{size:14},small:{size:10}};this.isDarkbackground=()=>this.background==="dark";this.handleClick=()=>{if(this.disabled)return;this.checked=!this.checked;this.internals.setFormValue(this.value);this.onchange.emit({value:this.value,checked:this.checked})};this.checked=false;this.status="default";this.disabled=false;this.required=false;this.label="";this.ontabindex=undefined;this.position="left";this.value="";this.name="";this.background="light";this.size="medium";this.color="accent";this.styles={}}sizeHandler(){this.styles=Object.assign(Object.assign({},this.styles),{"--size-after":`${this.sizes[this.size].size}px`,"--size":`${o[this.size].size}px`,"--gap":`${o[this.size].gap}px`})}setColors(){const r=[{name:"--info-base",background:"info-base"},{name:"--color-light",background:`${this.color}-light`},{name:"--color-base",background:`${this.color}-base`},{name:"--color-dark",background:`${this.color}-dark`},{name:"--neutral-purewhite",background:"neutral-purewhite"},{name:"--success-lighter",background:"success-lighter"},{name:"--success-base",background:"success-base"},{name:"--error-lighter",background:"error-lighter"},{name:"--error-base",background:"error-base"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--primary-base-neutral-white",background:this.isDarkbackground()?"primary-base":"neutral-white"},{name:"--primary-darker-neutral-white",background:this.isDarkbackground()?"primary-darker":"neutral-white"},{name:"--primary-darker-neutral-base",background:this.isDarkbackground()?"primary-darker":"neutral-base"},{name:"--primary-base-neutral-base",background:this.isDarkbackground()?"primary-base":"neutral-base"},{name:"--primary-base-neutral-dark",background:this.isDarkbackground()?"primary-base":"neutral-dark"},{name:"--primary-base-neutral-medium",background:this.isDarkbackground()?"primary-base":"neutral-medium"},{name:"--success-base-dark",background:this.isDarkbackground()?"success-base":"success-dark"},{name:"--error-base-dark",background:this.isDarkbackground()?"error-base":"error-dark"}];r.forEach((r=>{this.styles[r.name]=window.CuraAPI.theme.colors.getColor(r.background)}));this.styles=Object.assign({},this.styles)}formAssociatedCallback(r){r.ariaLabel=this.label}formStateRestoreCallback(r){this.value=r.value;this.checked=r.checked;this.internals.setFormValue(this.value)}formResetCallback(){this.value="";this.checked=false;this.internals.setValidity({});this.internals.setFormValue(this.value)}formDisabledCallback(r){this.disabled=r}connectedCallback(){this.sizeHandler();this.setColors()}getClasses(){const r={};r["container"]=true;r["checked"]=this.checked;r["disabled"]=this.disabled;r["position"]=this.position==="right";r[this.status]=true;return r}assignColor(r){if(this.disabled)return this.isDarkbackground()?"primary-darker":"neutral-medium";const e={success:{label:this.isDarkbackground()?"success-lighter":"success-darker",message:this.isDarkbackground()?"success-base":"success-dark"},error:{label:this.isDarkbackground()?"error-lighter":"neutral-darker",message:this.isDarkbackground()?"error-base":"error-dark"},default:{label:this.isDarkbackground()?"neutral-white":"neutral-black",message:this.isDarkbackground()?"primary-lighter":"neutral-dark"}};return e[this.status][r]}render(){return a(s,{key:"0383d2901fc62d6a2a4731cb8ae942a6048a95d2"},a("div",{key:"20baf755c464c22d27245040d16aab088c3f5f6b",class:this.getClasses(),style:this.styles},a("div",{key:"187ac71dda217e0b9fbff9fafce7a48474285f06",class:"info"},a("div",{key:"65460b5be6a8f08c81109989cafc63eac165b170",class:"label-wrapper"},a("cura-label",{key:"83b9d50d07caba124bec86fd73581c7c59c6f8a6",class:"label",size:this.size==="large"?"medium":"xsmall",color:this.assignColor("label")},this.label),this.required&&a("cura-paragraph",{key:"c78a7020d7a3ddb8b28cd5e90c93bfb4b830fd95",lineHeight:"0%",marginBlock:"0",color:"error-base"},"* ")),a("cura-label",{key:"e1e12e9db63d9c7eeebb0705b7e8f0f4942fac94",color:this.assignColor("message"),size:"xsmall",class:"message"},a("slot",{key:"c5ac9ee96c4ec2bd1f38a0a305c1c33f892f8e4a"}))),a("input",{key:"dc29309c6b7423263905ab1ae459cecb0cae6969",type:"radio",class:`radio ${this.size.toLocaleLowerCase()}`,name:this.name,value:this.value,required:this.required,tabIndex:this.ontabindex,disabled:this.disabled,checked:this.checked,onClick:this.handleClick})))}static get formAssociated(){return true}get host(){return t(this)}static get watchers(){return{size:["sizeHandler"],color:["setColors"],background:["setColors","assignColor"]}}};d.style=c;export{d as cura_radio};
|
|
2
|
-
//# sourceMappingURL=p-186392b7.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["curaRadioCss","CuraRadioStyle0","CuraRadio","this","sizes","large","size","medium","small","isDarkbackground","background","handleClick","disabled","checked","internals","setFormValue","value","onchange","emit","sizeHandler","styles","Object","assign","formsSizes","gap","setColors","colors","name","color","forEach","window","CuraAPI","theme","getColor","formAssociatedCallback","form","ariaLabel","label","formStateRestoreCallback","state","formResetCallback","setValidity","formDisabledCallback","connectedCallback","getClasses","classes","position","status","assignColor","type","statusColors","success","message","error","default","render","h","Host","key","class","style","required","lineHeight","marginBlock","toLocaleLowerCase","tabIndex","ontabindex","onClick"],"sources":["src/components/forms/cura-radio/cura-radio.scss?tag=cura-radio&encapsulation=shadow","src/components/forms/cura-radio/cura-radio.tsx"],"sourcesContent":["\n\n:host {\n display: block;\n width: fit-content;\n box-sizing: border-box;\n\n.container {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n gap: var(--gap);\n}\n\n.position {\n\n &.container {\n flex-direction: row;\n }\n\n .label-wrapper {\n justify-content: end;\n }\n\n .message {\n text-align: right;\n }\n\n .label {\n order:1\n }\n\n}\n\n.info {\n display: flex;\n flex-direction: column;\n}\n\n.label-wrapper {\n display: flex;\n justify-content: start;\n align-items: center;\n gap: 5px;\n}\n\n\n.control {\n width: fit-content;\n cursor: pointer;\n position: relative;\n}\n\n\n.radio {\n margin: 0;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n border-radius: 50%;\n border: 2px solid var(--primary-base-neutral-medium);\n background: var(--neutral-purewhite);\n box-sizing: border-box;\n transition: border-color 0.3s;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n width: var(--size);\n height: var(--size);\n flex: 0 0 var(--size);\n\n &::after {\n content: '';\n background: var(--color-base-light);\n border-radius: 50%;\n opacity: 0;\n transition: opacity 0.3s;\n width: var(--size-after);\n height: var(--size-after);\n }\n\n &:focus {\n border-color: var(--info-base) !important;\n }\n\n}\n\n\n/* Estado Success */\n.success .radio {\n border-color: var(--success-base);\n background: var(--success-lighter);\n\n &:hover{\n border-color: var(--success-base) !important;\n }\n}\n\n.success.checked .radio {\n border-color: var(--success-base);\n\n &::after {\n background: var(--success-base);\n }\n\n &:hover {\n background: var(--success-lighter) !important;\n border-color: var(--success-base) !important;\n\n &::after {\n background: var(--success-base) !important;\n }\n }\n}\n\n\n/* Estado Error */\n.error .radio {\n border-color: var(--error-base);\n background: var(--error-lighter);\n\n &:hover{\n border-color: var(--error-base) !important;\n }\n}\n\n.error.checked .radio {\n border-color: var(--error-base);\n\n &::after {\n background: var(--error-base);\n }\n\n &:hover {\n background: var(--error-lighter) !important;\n border-color: var(--error-base) !important;\n\n &::after {\n background: var(--error-base) !important;\n }\n }\n}\n\n\n/* Estado checked */\n.checked .radio::after {\n opacity: 1;\n background: var(--color-base);\n}\n\n.checked .radio {\n border-color: var(--color-dark) ;\n}\n\n.checked .radio:hover {\n border-color: var(--color-light) !important;\n}\n\n.checked .radio:hover::after {\n background: var(--color-light);\n}\n\n/* Estado disabled */\n.disabled .radio {\n background: var(--primary-base-neutral-white);\n border-color: var(--primary-darker-neutral-base) ;\n cursor: not-allowed;\n}\n\n.disabled .radio::after {\n background: var(--neutral-lighter);\n}\n\n.disabled.checked .radio {\n border-color: var(--primary-base-neutral-base) !important;\n background: var(--primary-darker-neutral-white) !important;\n}\n\n.disabled.checked .radio::after {\n background: var(--primary-base-neutral-base) !important;\n}\n\n\n/* Estado hover para não disabled e não checked */\n:not(.disabled):not(.checked) .radio:hover {\n border-color: var(--primary-base-neutral-dark);\n}\n\n\n}\n","import { Component, Prop, Event, Element, h, Host, Watch, EventEmitter, State, AttachInternals } from '@stencil/core';\nimport { formsSizes } from '../cura-forms.definitions';\n\n@Component({\n tag: 'cura-radio',\n styleUrl: 'cura-radio.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CuraRadio {\n /**\n * Reflects the checked state of the radio button.\n * Mutable property allowing state change.\n */\n @Prop({ reflect: true, mutable: true }) checked: boolean = false;\n /**\n * Status of the radio button.\n * Can be 'error', 'success', or 'default'.\n */\n @Prop({ reflect: true, mutable: true }) status: 'error' | 'success' | 'default' = 'default';\n /**\n * Reflects the disabled state of the radio button.\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n /**\n * Reflects the required state of the radio button.\n */\n @Prop({ reflect: true }) required: boolean = false;\n /**\n * Text label associated with the radio button.\n */\n @Prop({ reflect: true }) label: string = '';\n /**\n * Specifies the tabindex of the radio button.\n */\n @Prop({ reflect: true }) ontabindex: number;\n /**\n * Position of the label relative to the radio button.\n * Can be 'left' or 'right'.\n */\n @Prop({ reflect: true }) position: \"left\" | \"right\" = 'left';\n /**\n * Value associated with the radio button.\n */\n @Prop({ reflect: true }) value: string = '';\n /**\n * Name attribute of the radio button.\n */\n @Prop({ reflect: true }) name: string = '';\n /**\n * Background theme of the radio button.\n * Can be 'dark' or 'light'.\n */\n @Prop() background: 'dark' | 'light' = 'light';\n /**\n * Size of the radio button.\n * Can be 'small', 'medium', or 'large'.\n */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n /**\n * Color theme of the radio button.\n */\n @Prop() color = 'accent';\n\n @State() styles = {}\n\n @Element() host: HTMLElement;\n\n @Event() onchange: EventEmitter<{ value: string, checked: boolean }>;\n\n @AttachInternals() internals: ElementInternals;\n\n sizes = {\n \"large\": { size: 20 },\n \"medium\": { size: 14 },\n \"small\": { size: 10 },\n };\n\n\n isDarkbackground = () => this.background === 'dark';\n\n @Watch('size')\n sizeHandler() {\n this.styles = {\n ...this.styles,\n '--size-after': `${this.sizes[this.size].size}px`,\n '--size': `${formsSizes[this.size].size}px`,\n '--gap': `${formsSizes[this.size].gap}px`\n };\n }\n\n\n @Watch('color')\n @Watch('background')\n setColors() {\n\n const colors = [\n { name: '--info-base', background: 'info-base' },\n { name: '--color-light', background: `${this.color}-light` },\n { name: '--color-base', background: `${this.color}-base` },\n { name: '--color-dark', background: `${this.color}-dark` },\n { name: '--neutral-purewhite', background: 'neutral-purewhite' },\n { name: '--success-lighter', background: 'success-lighter' },\n { name: '--success-base', background: 'success-base' },\n { name: '--error-lighter', background: 'error-lighter' },\n { name: '--error-base', background: 'error-base' },\n { name: '--primary-base-neutral-medium', background: this.isDarkbackground() ? 'primary-base' : 'neutral-medium' },\n { name: '--primary-base-neutral-white', background: this.isDarkbackground() ? 'primary-base' : 'neutral-white' },\n { name: '--primary-darker-neutral-white', background: this.isDarkbackground() ? 'primary-darker' : 'neutral-white' },\n { name: '--primary-darker-neutral-base', background: this.isDarkbackground() ? 'primary-darker' : 'neutral-base' },\n { name: '--primary-base-neutral-base', background: this.isDarkbackground() ? 'primary-base' : 'neutral-base' },\n { name: '--primary-base-neutral-dark', background: this.isDarkbackground() ? 'primary-base' : 'neutral-dark' },\n { name: '--primary-base-neutral-medium', background: this.isDarkbackground() ? 'primary-base' : 'neutral-medium' },\n { name: '--success-base-dark', background: this.isDarkbackground() ? 'success-base' : 'success-dark' },\n { name: '--error-base-dark', background: this.isDarkbackground() ? 'error-base' : 'error-dark' },\n ];\n\n colors.forEach(color => {\n this.styles[color.name] = window.CuraAPI.theme.colors.getColor(color.background);\n });\n this.styles = { ...this.styles };\n\n }\n\n /**\n * Callback for form association.\n */\n formAssociatedCallback(form: { ariaLabel: string; }) {\n form.ariaLabel = this.label;\n }\n\n /**\n * Callback to restore the switch state from the form.\n */\n formStateRestoreCallback(state: { value: string, checked: boolean }) {\n this.value = state.value;\n this.checked = state.checked;\n this.internals.setFormValue(this.value);\n }\n\n /**\n * Callback to reset the switch state when the form is reset.\n */\n formResetCallback() {\n this.value = '';\n this.checked = false;\n this.internals.setValidity({});\n this.internals.setFormValue(this.value);\n }\n\n /**\n * Callback to update the switch's disabled state when the form's disabled state changes.\n */\n formDisabledCallback(disabled: boolean) {\n this.disabled = disabled;\n }\n\n connectedCallback() {\n this.sizeHandler()\n this.setColors();\n }\n\n handleClick = () => {\n if (this.disabled) return;\n\n this.checked = !this.checked;\n this.internals.setFormValue(this.value);\n this.onchange.emit({ value: this.value, checked: this.checked });\n };\n\n getClasses() {\n const classes = {};\n classes['container'] = true;\n classes['checked'] = this.checked;\n classes['disabled'] = this.disabled;\n classes['position'] = this.position === 'right';\n classes[this.status] = true;\n\n return classes;\n }\n\n @Watch('background')\n assignColor(type: 'label' | 'message',) {\n if (this.disabled) return this.isDarkbackground() ? 'primary-darker' : 'neutral-medium';\n\n const statusColors = {\n success: {\n label: this.isDarkbackground() ? 'success-lighter' : 'success-darker',\n message: this.isDarkbackground() ? 'success-base' : 'success-dark'\n },\n error: {\n label: this.isDarkbackground() ? 'error-lighter' : 'neutral-darker',\n message: this.isDarkbackground() ? 'error-base' : 'error-dark'\n },\n default: {\n label: this.isDarkbackground() ? 'neutral-white' : 'neutral-black',\n message: this.isDarkbackground() ? 'primary-lighter' : 'neutral-dark'\n }\n };\n\n return statusColors[this.status][type];\n }\n\n render() {\n return (\n <Host>\n <div class={this.getClasses()} style={this.styles}>\n <div class=\"info\">\n <div class=\"label-wrapper\">\n <cura-label\n class=\"label\"\n size={this.size === 'large' ? 'medium' : 'xsmall'}\n color={this.assignColor('label')}>\n {this.label}\n </cura-label>\n {this.required && <cura-paragraph lineHeight='0%' marginBlock='0' color=\"error-base\" >* </cura-paragraph>}\n </div>\n <cura-label\n color={this.assignColor('message')}\n size=\"xsmall\"\n class=\"message\">\n <slot></slot>\n </cura-label>\n </div>\n <input\n type=\"radio\"\n class={`radio ${this.size.toLocaleLowerCase()}`}\n name={this.name}\n value={this.value}\n required={this.required}\n tabIndex={this.ontabindex}\n disabled={this.disabled}\n checked={this.checked}\n onClick={this.handleClick}\n />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"+FAAA,MAAMA,EAAe,o2FACrB,MAAAC,EAAeD,E,MCQFE,EAAS,M,4NA+DpBC,KAAAC,MAAQ,CACNC,MAAS,CAAEC,KAAM,IACjBC,OAAU,CAAED,KAAM,IAClBE,MAAS,CAAEF,KAAM,KAInBH,KAAAM,iBAAmB,IAAMN,KAAKO,aAAe,OAmF7CP,KAAAQ,YAAc,KACZ,GAAIR,KAAKS,SAAU,OAEnBT,KAAKU,SAAWV,KAAKU,QACrBV,KAAKW,UAAUC,aAAaZ,KAAKa,OACjCb,KAAKc,SAASC,KAAK,CAAEF,MAAOb,KAAKa,MAAOH,QAASV,KAAKU,SAAU,E,aAzJP,M,YAKuB,U,cAIrC,M,cAIA,M,WAIJ,G,wCASa,O,WAIb,G,UAID,G,gBAKD,Q,UAKM,S,WAI7B,S,YAEE,E,CAkBlB,WAAAM,GACEhB,KAAKiB,OAAMC,OAAAC,OAAAD,OAAAC,OAAA,GACNnB,KAAKiB,QAAM,CACd,eAAgB,GAAGjB,KAAKC,MAAMD,KAAKG,MAAMA,SACzC,SAAU,GAAGiB,EAAWpB,KAAKG,MAAMA,SACnC,QAAS,GAAGiB,EAAWpB,KAAKG,MAAMkB,S,CAOtC,SAAAC,GAEE,MAAMC,EAAS,CACb,CAAEC,KAAM,cAAejB,WAAY,aACnC,CAAEiB,KAAM,gBAAiBjB,WAAY,GAAGP,KAAKyB,eAC7C,CAAED,KAAM,eAAgBjB,WAAY,GAAGP,KAAKyB,cAC5C,CAAED,KAAM,eAAgBjB,WAAY,GAAGP,KAAKyB,cAC5C,CAAED,KAAM,sBAAuBjB,WAAY,qBAC3C,CAAEiB,KAAM,oBAAqBjB,WAAY,mBACzC,CAAEiB,KAAM,iBAAkBjB,WAAY,gBACtC,CAAEiB,KAAM,kBAAmBjB,WAAY,iBACvC,CAAEiB,KAAM,eAAgBjB,WAAY,cACpC,CAAEiB,KAAM,gCAAiCjB,WAAYP,KAAKM,mBAAqB,eAAiB,kBAChG,CAAEkB,KAAM,+BAAgCjB,WAAYP,KAAKM,mBAAqB,eAAiB,iBAC/F,CAAEkB,KAAM,iCAAkCjB,WAAYP,KAAKM,mBAAqB,iBAAmB,iBACnG,CAAEkB,KAAM,gCAAiCjB,WAAYP,KAAKM,mBAAqB,iBAAmB,gBAClG,CAAEkB,KAAM,8BAA+BjB,WAAYP,KAAKM,mBAAqB,eAAiB,gBAC9F,CAAEkB,KAAM,8BAA+BjB,WAAYP,KAAKM,mBAAqB,eAAiB,gBAC9F,CAAEkB,KAAM,gCAAiCjB,WAAYP,KAAKM,mBAAqB,eAAiB,kBAChG,CAAEkB,KAAM,sBAAuBjB,WAAYP,KAAKM,mBAAqB,eAAiB,gBACtF,CAAEkB,KAAM,oBAAqBjB,WAAYP,KAAKM,mBAAqB,aAAe,eAGpFiB,EAAOG,SAAQD,IACbzB,KAAKiB,OAAOQ,EAAMD,MAAQG,OAAOC,QAAQC,MAAMN,OAAOO,SAASL,EAAMlB,WAAW,IAElFP,KAAKiB,OAAMC,OAAAC,OAAA,GAAQnB,KAAKiB,O,CAO1B,sBAAAc,CAAuBC,GACrBA,EAAKC,UAAYjC,KAAKkC,K,CAMxB,wBAAAC,CAAyBC,GACvBpC,KAAKa,MAAQuB,EAAMvB,MACnBb,KAAKU,QAAU0B,EAAM1B,QACrBV,KAAKW,UAAUC,aAAaZ,KAAKa,M,CAMnC,iBAAAwB,GACErC,KAAKa,MAAQ,GACbb,KAAKU,QAAU,MACfV,KAAKW,UAAU2B,YAAY,IAC3BtC,KAAKW,UAAUC,aAAaZ,KAAKa,M,CAMnC,oBAAA0B,CAAqB9B,GACnBT,KAAKS,SAAWA,C,CAGlB,iBAAA+B,GACExC,KAAKgB,cACLhB,KAAKsB,W,CAWP,UAAAmB,GACE,MAAMC,EAAU,GAChBA,EAAQ,aAAe,KACvBA,EAAQ,WAAa1C,KAAKU,QAC1BgC,EAAQ,YAAc1C,KAAKS,SAC3BiC,EAAQ,YAAc1C,KAAK2C,WAAa,QACxCD,EAAQ1C,KAAK4C,QAAU,KAEvB,OAAOF,C,CAIT,WAAAG,CAAYC,GACV,GAAI9C,KAAKS,SAAU,OAAOT,KAAKM,mBAAqB,iBAAmB,iBAEvE,MAAMyC,EAAe,CACnBC,QAAS,CACPd,MAAOlC,KAAKM,mBAAqB,kBAAoB,iBACrD2C,QAASjD,KAAKM,mBAAqB,eAAiB,gBAEtD4C,MAAO,CACLhB,MAAOlC,KAAKM,mBAAqB,gBAAkB,iBACnD2C,QAASjD,KAAKM,mBAAqB,aAAe,cAEpD6C,QAAS,CACPjB,MAAOlC,KAAKM,mBAAqB,gBAAkB,gBACnD2C,QAASjD,KAAKM,mBAAqB,kBAAoB,iBAI3D,OAAOyC,EAAa/C,KAAK4C,QAAQE,E,CAGnC,MAAAM,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAOxD,KAAKyC,aAAcgB,MAAOzD,KAAKiB,QACzCoC,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QACTH,EAAA,OAAAE,IAAA,2CAAKC,MAAM,iBACTH,EAAA,cAAAE,IAAA,2CACEC,MAAM,QACNrD,KAAMH,KAAKG,OAAS,QAAU,SAAW,SACzCsB,MAAOzB,KAAK6C,YAAY,UACvB7C,KAAKkC,OAEPlC,KAAK0D,UAAYL,EAAA,kBAAAE,IAAA,2CAAgBI,WAAW,KAAKC,YAAY,IAAInC,MAAM,cAAY,OAEtF4B,EAAA,cAAAE,IAAA,2CACE9B,MAAOzB,KAAK6C,YAAY,WACxB1C,KAAK,SACLqD,MAAM,WACNH,EAAA,QAAAE,IAAA,+CAGJF,EAAA,SAAAE,IAAA,2CACET,KAAK,QACLU,MAAO,SAASxD,KAAKG,KAAK0D,sBAC1BrC,KAAMxB,KAAKwB,KACXX,MAAOb,KAAKa,MACZ6C,SAAU1D,KAAK0D,SACfI,SAAU9D,KAAK+D,WACftD,SAAUT,KAAKS,SACfC,QAASV,KAAKU,QACdsD,QAAShE,KAAKQ,e","ignoreList":[]}
|
package/dist/cura/p-1b201271.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const m={color:{success:{100:"223,246,233",300:"148,225,181",500:"95,210,144",700:"49,115,77",900:"19,42,29"},info:{100:"207,226,255",300:"149,191,255",500:"110,168,255",700:"66,100,153",900:"37,56,85"},error:{100:"251,221,221",300:"242,143,143",500:"235,87,87",700:"157,58,58",900:"47,17,17"},warning:{100:"252,250,196",300:"248,244,137",500:"245,239,78",700:"108,106,32",900:"49,48,16"},neutral:{0:"255,255,255",100:"246,246,246",200:"233,233,233",300:"226,226,226",400:"212,212,212",500:"183,183,183",600:"146,146,146",700:"110,110,110",800:"74,74,74",900:"38,38,38"}},breakpoints:{xsmall:{min:0,max:480},small:{min:481,max:768},medium:{min:769,max:992},large:{min:993,max:1920},xlarge:{min:1921,max:4096}}};export{m as S};
|
|
2
|
-
//# sourceMappingURL=p-1b201271.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Static","color","success","info","error","warning","neutral","breakpoints","xsmall","min","max","small","medium","large","xlarge"],"sources":["src/api/theme-presets/static.ts"],"sourcesContent":["/**\n * Static\n */\nexport const Static = {\n /* Colors */\n color: {\n success: {\n '100': '223,246,233',\n '300': '148,225,181',\n '500': '95,210,144',\n '700': '49,115,77',\n '900': '19,42,29',\n },\n info: {\n '100': '207,226,255',\n '300': '149,191,255',\n '500': '110,168,255',\n '700': '66,100,153',\n '900': '37,56,85',\n },\n error: {\n '100': '251,221,221',\n '300': '242,143,143',\n '500': '235,87,87',\n '700': '157,58,58',\n '900': '47,17,17',\n },\n warning: {\n '100': '252,250,196',\n '300': '248,244,137',\n '500': '245,239,78',\n '700': '108,106,32',\n '900': '49,48,16',\n },\n neutral: {\n '0': '255,255,255',\n '100': '246,246,246',\n '200': '233,233,233',\n '300': '226,226,226',\n '400': '212,212,212',\n '500': '183,183,183',\n '600': '146,146,146',\n '700': '110,110,110',\n '800': '74,74,74',\n '900': '38,38,38',\n },\n },\n breakpoints: {\n xsmall: {\n min: 0,\n max: 480\n },\n small: {\n min: 481,\n max: 768\n },\n medium: {\n min: 769,\n max: 992\n },\n large: {\n min: 993,\n max: 1920\n },\n xlarge: {\n min: 1921,\n max: 4096\n }\n }\n};\n"],"mappings":"MAGaA,EAAS,CAEpBC,MAAO,CACLC,QAAS,CACP,IAAO,cACP,IAAO,cACP,IAAO,aACP,IAAO,YACP,IAAO,YAETC,KAAM,CACJ,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,aACP,IAAO,YAETC,MAAO,CACL,IAAO,cACP,IAAO,cACP,IAAO,YACP,IAAO,YACP,IAAO,YAETC,QAAS,CACP,IAAO,cACP,IAAO,cACP,IAAO,aACP,IAAO,aACP,IAAO,YAETC,QAAS,CACP,EAAK,cACL,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,cACP,IAAO,WACP,IAAO,aAGXC,YAAa,CACXC,OAAQ,CACNC,IAAK,EACLC,IAAK,KAEPC,MAAO,CACLF,IAAK,IACLC,IAAK,KAEPE,OAAQ,CACNH,IAAK,IACLC,IAAK,KAEPG,MAAO,CACLJ,IAAK,IACLC,IAAK,MAEPI,OAAQ,CACNL,IAAK,KACLC,IAAK,e","ignoreList":[]}
|