@bethinkpl/design-system 26.14.10 → 26.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/design-system.umd.cjs +12 -12
  2. package/dist/design-system.umd.cjs.map +1 -1
  3. package/docs/assets/{BasicRichListItem.stories-6qskAByC.js → BasicRichListItem.stories-Du92pfHC.js} +1 -1
  4. package/docs/assets/{Color-ERTF36HU-knumLUL8.js → Color-ERTF36HU-Cq4yGxVI.js} +1 -1
  5. package/docs/assets/{DateBox.stories-BvGIrNgL.js → DateBox.stories-ITuNN3NV.js} +1 -1
  6. package/docs/assets/{DatePicker-BCT6boRT.js → DatePicker-MzMuc8fk.js} +1 -1
  7. package/docs/assets/{DatePicker.stories-k0wYjOME.js → DatePicker.stories-DZ4fuxm9.js} +1 -1
  8. package/docs/assets/{DateRangePicker-CnUEzq-Z.js → DateRangePicker-D1PXeiHM.js} +1 -1
  9. package/docs/assets/{DateRangePicker.stories-BWsIHtfr.js → DateRangePicker.stories-D-RLAJHJ.js} +1 -1
  10. package/docs/assets/{DocsRenderer-CFRXHY34-CsJlhGZ8.js → DocsRenderer-CFRXHY34-ciQO70gR.js} +5 -5
  11. package/docs/assets/{Modal-BcXHhF5p.js → Modal-BNfy5y5G.js} +1 -1
  12. package/docs/assets/Modal.stories-DfgQe09K.js +53 -0
  13. package/docs/assets/ModalDialog-C3_bDqrz.js +1 -0
  14. package/docs/assets/ModalDialog.stories-rQ8IipQ0.js +43 -0
  15. package/docs/assets/{RichListItem.stories-Ds8COMWc.js → RichListItem.stories-B7axni5v.js} +1 -1
  16. package/docs/assets/{SelectionTile-BUXi_pjW.js → SelectionTile-jvSsuAJD.js} +1 -1
  17. package/docs/assets/{SelectionTile.stories-BGkoASzB.js → SelectionTile.stories-BtKHjKvZ.js} +1 -1
  18. package/docs/assets/{iframe-DeX83N-_.js → iframe-bbt6wJ1S.js} +3 -3
  19. package/docs/assets/{index-BSZogKLd.js → index-BK1XWU9Y.js} +1 -1
  20. package/docs/assets/{index-Bt72ABkX.js → index-Cmt-_kET.js} +1 -1
  21. package/docs/assets/{preview-vDX9kXAW.js → preview-Cl6G_t91.js} +1 -1
  22. package/docs/assets/{preview-CxZpfmpr.js → preview-pqm_1-Xy.js} +2 -2
  23. package/docs/iframe.html +1 -1
  24. package/docs/project.json +1 -1
  25. package/lib/js/components/Modals/Modal/Modal.spec.ts +21 -0
  26. package/lib/js/components/Modals/Modal/Modal.stories.ts +5 -0
  27. package/lib/js/components/Modals/Modal/Modal.vue +27 -20
  28. package/lib/js/components/Modals/ModalDialog/ModalDialog.spec.ts +24 -0
  29. package/lib/js/components/Modals/ModalDialog/ModalDialog.stories.ts +4 -0
  30. package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +3 -0
  31. package/package.json +1 -1
  32. package/docs/assets/Modal.stories-CuBB-dA5.js +0 -53
  33. package/docs/assets/ModalDialog-BTKtgJej.js +0 -1
  34. package/docs/assets/ModalDialog.stories-HhLl8KlV.js +0 -43
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-CsJlhGZ8.js","./iframe-DeX83N-_.js","./_commonjsHelpers-CDR5Xrri.js","./index-C7dYv50j.js"])))=>i.map(i=>d[i]);
2
- import{_ as s}from"./iframe-DeX83N-_.js";import"../sb-preview/runtime.js";const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var o,i=Object.entries((o=_.TAGS_OPTIONS)!=null?o:{}).reduce((e,r)=>{let[t,a]=r;return a.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-CFRXHY34-CsJlhGZ8.js").then(r=>r.am),__vite__mapDeps([0,1,2,3]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-ciQO70gR.js","./iframe-bbt6wJ1S.js","./_commonjsHelpers-CDR5Xrri.js","./index-C7dYv50j.js"])))=>i.map(i=>d[i]);
2
+ import{_ as s}from"./iframe-bbt6wJ1S.js";import"../sb-preview/runtime.js";const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var o,i=Object.entries((o=_.TAGS_OPTIONS)!=null?o:{}).reduce((e,r)=>{let[t,a]=r;return a.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-CFRXHY34-ciQO70gR.js").then(r=>r.am),__vite__mapDeps([0,1,2,3]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
package/docs/iframe.html CHANGED
@@ -510,7 +510,7 @@
510
510
  </script>
511
511
  <link rel="stylesheet" href="./preview.css">
512
512
 
513
- <script type="module" crossorigin src="./assets/iframe-DeX83N-_.js"></script>
513
+ <script type="module" crossorigin src="./assets/iframe-bbt6wJ1S.js"></script>
514
514
  </head>
515
515
 
516
516
  <body>
package/docs/project.json CHANGED
@@ -1 +1 @@
1
- {"generatedAt":1749556610344,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@vitest/coverage-c8":"0.33.0","@vitest/ui":"3.1.4","vitest":"3.1.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":3,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
1
+ {"generatedAt":1749706739935,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@vitest/coverage-c8":"0.33.0","@vitest/ui":"3.1.4","vitest":"3.1.4"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":3,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
@@ -0,0 +1,21 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { mount } from '@vue/test-utils';
3
+ import { h } from 'vue';
4
+ import Modal from './Modal.vue';
5
+
6
+ describe('Modal', () => {
7
+ it('renders with right actions slot', () => {
8
+ const wrapper = mount(Modal, {
9
+ slots: {
10
+ rightActions: () => h('button', { id: 'test-right-action' }, 'Test button'),
11
+ },
12
+ global: {
13
+ stubs: {
14
+ teleport: true,
15
+ },
16
+ },
17
+ });
18
+
19
+ expect(wrapper.find('#test-right-action').exists()).toBe(true);
20
+ });
21
+ });
@@ -24,6 +24,7 @@ const StoryTemplate: StoryFn<typeof Modal> = (args) => ({
24
24
  ':footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" ' +
25
25
  ':footerCheckboxText="footerCheckboxText" :headerImage="headerImage">' +
26
26
  '<div v-html="defaultSlot" />' +
27
+ '<template v-if="rightActionsSlot" #rightActions><div style="display: inline-flex;" v-html="rightActionsSlot" /></template>' +
27
28
  '</modal>',
28
29
  data() {
29
30
  return {
@@ -37,6 +38,7 @@ export const Interactive = StoryTemplate.bind({});
37
38
  const args = {
38
39
  defaultSlot:
39
40
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
41
+ rightActionsSlot: 'Right actions',
40
42
  size: MODAL_SIZES.MEDIUM,
41
43
  danger: false,
42
44
  contentCentered: false,
@@ -128,6 +130,7 @@ Interactive.parameters = {
128
130
  const argsDanger = {
129
131
  defaultSlot:
130
132
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
133
+ rightActionsSlot: 'Right actions',
131
134
  size: MODAL_SIZES.MEDIUM,
132
135
  danger: true,
133
136
  contentCentered: false,
@@ -156,6 +159,7 @@ Danger.args = argsDanger;
156
159
  const argsWithImage = {
157
160
  defaultSlot:
158
161
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
162
+ rightActionsSlot: 'Right actions',
159
163
  size: MODAL_SIZES.MEDIUM,
160
164
  danger: false,
161
165
  contentCentered: false,
@@ -185,6 +189,7 @@ WithImage.args = argsWithImage;
185
189
  const argsSmallHeaderAndCentered = {
186
190
  defaultSlot:
187
191
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
192
+ rightActionsSlot: 'Right actions',
188
193
  size: MODAL_SIZES.SMALL,
189
194
  danger: false,
190
195
  contentCentered: true,
@@ -2,15 +2,17 @@
2
2
  <teleport to="body">
3
3
  <div class="ds-modal" v-bind="$attrs" @click.self="$emit('close-modal')">
4
4
  <div class="ds-modal__wrapper" :class="{ '-ds-small': size === MODAL_SIZES.SMALL }">
5
- <wnl-icon-button
6
- touchable
7
- :icon="ICONS.FA_XMARK"
8
- class="ds-modal__close"
9
- :size="ICON_SIZES.SMALL"
10
- :elevation="BUTTON_ELEVATIONS.X_SMALL"
11
- :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
12
- @click.stop="$emit('close-modal')"
13
- />
5
+ <div class="ds-modal__rightActions">
6
+ <slot name="rightActions" />
7
+ <wnl-icon-button
8
+ touchable
9
+ :icon="ICONS.FA_XMARK"
10
+ :size="ICON_SIZES.SMALL"
11
+ :elevation="BUTTON_ELEVATIONS.X_SMALL"
12
+ :color="ICON_BUTTON_COLORS.NEUTRAL_WEAK"
13
+ @click.stop="$emit('close-modal')"
14
+ />
15
+ </div>
14
16
  <div class="ds-modal__scrollableWrapper">
15
17
  <img v-if="headerImage" class="ds-modal__image" :src="headerImage" alt="" />
16
18
  <div class="ds-modal__content" :class="{ '-ds-centered': contentCentered }">
@@ -119,7 +121,7 @@
119
121
  @import '../../../../styles/settings/media-queries';
120
122
  @import '../../../../styles/settings/z-indexes';
121
123
 
122
- $modal-medium-width: 700px;
124
+ $modal-medium-width: 800px;
123
125
  $modal-small-width: 460px;
124
126
  $image-height: 200px;
125
127
  $image-height-small: 140px;
@@ -147,12 +149,19 @@ $image-height-small: 140px;
147
149
  background: $color-default-background;
148
150
  border-radius: $radius-m;
149
151
  box-shadow: $shadow-xl;
152
+ display: flex;
150
153
  margin: 0 auto;
154
+ max-height: calc(100vh - #{2 * $space-l});
151
155
  max-width: $modal-medium-width;
152
156
  overflow: hidden;
157
+ padding-top: $space-xl;
153
158
  position: relative;
154
159
  width: 100%;
155
160
 
161
+ @media #{breakpoint-s()} {
162
+ max-height: 84vh;
163
+ }
164
+
156
165
  &.-ds-small {
157
166
  max-width: $modal-small-width;
158
167
 
@@ -170,19 +179,15 @@ $image-height-small: 140px;
170
179
  }
171
180
 
172
181
  &__scrollableWrapper {
173
- max-height: calc(100vh - #{2 * $space-l});
182
+ flex: 1;
174
183
  overflow-y: auto;
175
-
176
- @media #{breakpoint-s()} {
177
- max-height: 84vh;
178
- }
179
184
  }
180
185
 
181
186
  &__content {
182
- padding: $space-l $space-s;
187
+ padding: 0 $space-s $space-l;
183
188
 
184
189
  @media #{breakpoint-s()} {
185
- padding: $space-l $space-xl;
190
+ padding: 0 $space-xl $space-l;
186
191
  }
187
192
 
188
193
  &.-ds-centered {
@@ -246,10 +251,12 @@ $image-height-small: 140px;
246
251
  margin-left: $space-2xs;
247
252
  }
248
253
 
249
- &__close {
254
+ &__rightActions {
250
255
  position: absolute;
251
- right: $space-3xs;
252
- top: $space-3xs;
256
+ right: $space-4xs;
257
+ top: $space-4xs;
258
+ // z-index needs to be higher than 0 to cover the content elements with `position: relative`
259
+ z-index: 1;
253
260
  }
254
261
 
255
262
  &__image {
@@ -0,0 +1,24 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { mount } from '@vue/test-utils';
3
+ import { h } from 'vue';
4
+ import ModalDialog from './ModalDialog.vue';
5
+
6
+ describe('ModalDialog', () => {
7
+ it('renders with right actions slot', () => {
8
+ const wrapper = mount(ModalDialog, {
9
+ props: {
10
+ headerTitle: 'Test Modal',
11
+ },
12
+ slots: {
13
+ rightActions: () => h('button', { id: 'test-right-action' }, 'Test button'),
14
+ },
15
+ global: {
16
+ stubs: {
17
+ teleport: true,
18
+ },
19
+ },
20
+ });
21
+
22
+ expect(wrapper.find('#test-right-action').exists()).toBe(true);
23
+ });
24
+ });
@@ -22,6 +22,7 @@ const StoryTemplate: StoryFn<typeof ModalDialog> = (args) => ({
22
22
  ':headerImage="headerImage" ' +
23
23
  ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="footerSecondaryButtonIcon" :footerSecondaryButtonState="footerSecondaryButtonState">' +
24
24
  '<div v-html="defaultSlot" />' +
25
+ '<template v-if="rightActionsSlot" #rightActions><div style="display: inline-flex;" v-html="rightActionsSlot" /></template>' +
25
26
  '</modal-dialog>',
26
27
  data() {
27
28
  return {
@@ -36,6 +37,7 @@ export const Interactive = StoryTemplate.bind({});
36
37
  const args = {
37
38
  defaultSlot:
38
39
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
40
+ rightActionsSlot: 'Right actions',
39
41
  danger: false,
40
42
  headerImage: '',
41
43
  headerTitle: 'Modal Title Accusantium occaecati atque similique gg provident nobis.',
@@ -102,6 +104,7 @@ Interactive.parameters = {
102
104
  const argsDanger = {
103
105
  defaultSlot:
104
106
  '<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',
107
+ rightActionsSlot: 'Right actions',
105
108
  danger: true,
106
109
  headerImage: '',
107
110
  headerTitle: 'Modal Title Accusantium occaecati atque similique gg provident nobis.',
@@ -123,6 +126,7 @@ Danger.args = argsDanger;
123
126
 
124
127
  const argsWithImage = {
125
128
  defaultSlot: '',
129
+ rightActionsSlot: '',
126
130
  danger: false,
127
131
  headerImage:
128
132
  'https://wiecejnizlek.pl/wp-content/themes/uncode-child/assets/patterns/pattern-black.png',
@@ -21,6 +21,9 @@
21
21
  @secondary-button-click="$emit('secondary-button-click')"
22
22
  >
23
23
  <slot />
24
+ <template #rightActions>
25
+ <slot name="rightActions" />
26
+ </template>
24
27
  </ds-modal>
25
28
  </template>
26
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bethinkpl/design-system",
3
- "version": "26.14.10",
3
+ "version": "26.15.0",
4
4
  "description": "Bethink universe design-system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,53 +0,0 @@
1
- import{D as g,M as u,a as i}from"./Modal-BcXHhF5p.js";import{I as n}from"./Icon-DLflpryl.js";import{a as c}from"./FeatureIcon-JKiMnOvS.js";import{a as t}from"./Button-DTM9D6tQ.js";import"./IconButton-jIBOZaL6.js";import"./vue.esm-bundler-DD4BrEtS.js";import"./device-9fgosCm4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const D={title:"Components/Modals/Modal",component:g},s=b=>({components:{Modal:g},setup(){return b},template:'<modal :headerFeatureIcon="ICONS[headerFeatureIcon]" :size="size" :danger="danger" :headerTitleSize="headerTitleSize" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :contentCentered="contentCentered" :headerFeatureIconColor="headerFeatureIconColor" :footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="ICONS[footerPrimaryButtonIcon]" :footerPrimaryButtonState="footerPrimaryButtonState" :footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="ICONS[footerSecondaryButtonIcon]" :footerSecondaryButtonState="footerSecondaryButtonState" :footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" :footerCheckboxText="footerCheckboxText" :headerImage="headerImage"><div v-html="defaultSlot" /></modal>',data(){return{ICONS:Object.freeze(n)}}}),e=s.bind({}),O={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',size:i.MEDIUM,danger:!1,contentCentered:!1,headerImage:"",headerTitleSize:u.MEDIUM,headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_QUESTION",headerFeatureIconColor:c.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:t.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:t.DEFAULT,footerTertiaryButtonText:"Tertiary M",footerTertiaryButtonIcon:null,footerTertiaryButtonState:t.DEFAULT,footerCheckboxText:""},l={size:{control:"select",options:Object.values(i)},danger:{control:"boolean"},headerTitleSize:{control:"select",options:Object.values(u)},headerTitle:{control:"text"},headerImage:{control:"text"},headerSubtitle:{control:"text"},headerFeatureIcon:{control:"select",options:[null,...Object.keys(n)]},headerFeatureIconColor:{control:"select",options:Object.values(c)},contentCentered:{control:"boolean"},footerPrimaryButtonText:{control:"text"},footerPrimaryButtonIcon:{control:"select",options:[null,...Object.keys(n)]},footerPrimaryButtonState:{control:"select",options:Object.values(t)},footerSecondaryButtonText:{control:"text"},footerSecondaryButtonIcon:{control:"select",options:[null,...Object.keys(n)]},footerSecondaryButtonState:{control:"select",options:Object.values(t)},footerTertiaryButtonText:{control:"text"},footerTertiaryButtonIcon:{control:"select",options:[null,...Object.keys(n)]},footerTertiaryButtonState:{control:"select",options:Object.values(t)},footerCheckboxText:{control:"text"},onCloseModal:{action:"close-modal"},onCheckboxChange:{action:"checkbox-change"},onPrimaryButtonClick:{action:"primary-button-click"},onSecondaryButtonClick:{action:"secondary-button-click"},onTertiaryButtonClick:{action:"tertiary-button-click"}};e.argTypes=l;e.args=O;e.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=5658%3A96416&t=lgUXCZhvWDuBr3qw-0"}};const E={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',size:i.MEDIUM,danger:!0,contentCentered:!1,headerImage:"",headerTitleSize:u.MEDIUM,headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_EXCLAMATION",headerFeatureIconColor:c.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:t.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:t.DEFAULT,footerTertiaryButtonText:"",footerTertiaryButtonIcon:null,footerTertiaryButtonState:t.DEFAULT,footerCheckboxText:""},o=s.bind({});o.argTypes=l;o.args=E;const q={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',size:i.MEDIUM,danger:!1,contentCentered:!1,headerImage:"https://wiecejnizlek.pl/wp-content/uploads/2022/10/WNL-Strona-cover-dla-filmu-2-1.jpg",headerTitleSize:u.MEDIUM,headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:null,headerFeatureIconColor:null,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:t.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:t.DEFAULT,footerTertiaryButtonText:"",footerTertiaryButtonIcon:null,footerTertiaryButtonState:t.DEFAULT,footerCheckboxText:""},r=s.bind({});r.argTypes=l;r.args=q;const P={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',size:i.SMALL,danger:!1,contentCentered:!0,headerImage:"",headerTitleSize:u.SMALL,headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_EXCLAMATION",headerFeatureIconColor:c.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:t.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:t.DEFAULT,footerTertiaryButtonText:"",footerTertiaryButtonIcon:null,footerTertiaryButtonState:t.DEFAULT,footerCheckboxText:""},a=s.bind({});a.argTypes=l;a.args=P;var d,m,S;e.parameters={...e.parameters,docs:{...(d=e.parameters)==null?void 0:d.docs,source:{originalSource:`args => ({
2
- components: {
3
- Modal
4
- },
5
- setup() {
6
- return args;
7
- },
8
- template: '<modal :headerFeatureIcon="ICONS[headerFeatureIcon]" :size="size" :danger="danger" ' + ':headerTitleSize="headerTitleSize" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :contentCentered="contentCentered" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="ICONS[footerPrimaryButtonIcon]" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="ICONS[footerSecondaryButtonIcon]" :footerSecondaryButtonState="footerSecondaryButtonState" ' + ':footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" ' + ':footerCheckboxText="footerCheckboxText" :headerImage="headerImage">' + '<div v-html="defaultSlot" />' + '</modal>',
9
- data() {
10
- return {
11
- ICONS: Object.freeze(ICONS)
12
- };
13
- }
14
- })`,...(S=(m=e.parameters)==null?void 0:m.docs)==null?void 0:S.source}}};var f,T,y;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`args => ({
15
- components: {
16
- Modal
17
- },
18
- setup() {
19
- return args;
20
- },
21
- template: '<modal :headerFeatureIcon="ICONS[headerFeatureIcon]" :size="size" :danger="danger" ' + ':headerTitleSize="headerTitleSize" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :contentCentered="contentCentered" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="ICONS[footerPrimaryButtonIcon]" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="ICONS[footerSecondaryButtonIcon]" :footerSecondaryButtonState="footerSecondaryButtonState" ' + ':footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" ' + ':footerCheckboxText="footerCheckboxText" :headerImage="headerImage">' + '<div v-html="defaultSlot" />' + '</modal>',
22
- data() {
23
- return {
24
- ICONS: Object.freeze(ICONS)
25
- };
26
- }
27
- })`,...(y=(T=o.parameters)==null?void 0:T.docs)==null?void 0:y.source}}};var I,B,p;r.parameters={...r.parameters,docs:{...(I=r.parameters)==null?void 0:I.docs,source:{originalSource:`args => ({
28
- components: {
29
- Modal
30
- },
31
- setup() {
32
- return args;
33
- },
34
- template: '<modal :headerFeatureIcon="ICONS[headerFeatureIcon]" :size="size" :danger="danger" ' + ':headerTitleSize="headerTitleSize" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :contentCentered="contentCentered" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="ICONS[footerPrimaryButtonIcon]" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="ICONS[footerSecondaryButtonIcon]" :footerSecondaryButtonState="footerSecondaryButtonState" ' + ':footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" ' + ':footerCheckboxText="footerCheckboxText" :headerImage="headerImage">' + '<div v-html="defaultSlot" />' + '</modal>',
35
- data() {
36
- return {
37
- ICONS: Object.freeze(ICONS)
38
- };
39
- }
40
- })`,...(p=(B=r.parameters)==null?void 0:B.docs)==null?void 0:p.source}}};var h,C,x;a.parameters={...a.parameters,docs:{...(h=a.parameters)==null?void 0:h.docs,source:{originalSource:`args => ({
41
- components: {
42
- Modal
43
- },
44
- setup() {
45
- return args;
46
- },
47
- template: '<modal :headerFeatureIcon="ICONS[headerFeatureIcon]" :size="size" :danger="danger" ' + ':headerTitleSize="headerTitleSize" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :contentCentered="contentCentered" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="ICONS[footerPrimaryButtonIcon]" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="ICONS[footerSecondaryButtonIcon]" :footerSecondaryButtonState="footerSecondaryButtonState" ' + ':footerTertiaryButtonText="footerTertiaryButtonText" :footerTertiaryButtonIcon="ICONS[footerTertiaryButtonIcon]" :footerTertiaryButtonState="footerTertiaryButtonState" ' + ':footerCheckboxText="footerCheckboxText" :headerImage="headerImage">' + '<div v-html="defaultSlot" />' + '</modal>',
48
- data() {
49
- return {
50
- ICONS: Object.freeze(ICONS)
51
- };
52
- }
53
- })`,...(x=(C=a.parameters)==null?void 0:C.docs)==null?void 0:x.source}}};const U=["Interactive","Danger","WithImage","SizeSAndCentered"];export{o as Danger,e as Interactive,a as SizeSAndCentered,r as WithImage,U as __namedExportsOrder,D as default};
@@ -1 +0,0 @@
1
- import{D as i,M as s,a as f}from"./Modal-BcXHhF5p.js";import{I as o}from"./Icon-DLflpryl.js";import{a as l}from"./FeatureIcon-JKiMnOvS.js";import{d as m,t as r,b as c,e as y,r as p,o as S,f as b}from"./vue.esm-bundler-DD4BrEtS.js";import{a}from"./Button-DTM9D6tQ.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const u=m({name:"ModalDialog",components:{DsModal:i},props:{danger:{type:Boolean,default:!1},headerTitle:{type:String,required:!0},headerSubtitle:{type:String,default:null},headerFeatureIcon:{type:Object,default:null,validator(e){return Object.values(o).includes(r(e))}},headerFeatureIconColor:{type:String,default:l.NEUTRAL,validator(e){return Object.values(l).includes(e)}},headerImage:{type:String,default:null},footerPrimaryButtonText:{type:String,default:null},footerPrimaryButtonIcon:{type:Object,default:null,validator(e){return Object.values(o).includes(r(e))}},footerPrimaryButtonState:{type:String,default:a.DEFAULT,validator(e){return Object.values(a).includes(e)}},footerSecondaryButtonText:{type:String,default:null},footerSecondaryButtonIcon:{type:Object,default:null,validator(e){return Object.values(o).includes(r(e))}},footerSecondaryButtonState:{type:String,default:a.DEFAULT,validator(e){return Object.values(a).includes(e)}}},emits:["close-modal","primary-button-click","secondary-button-click"],data(){return{MODAL_SIZES:Object.freeze(f),MODAL_HEADER_TITLE_SIZES:Object.freeze(s)}}});function T(e,t,v,I,E,O){const d=p("ds-modal");return S(),c(d,{class:"ds-modalDialog",size:e.MODAL_SIZES.SMALL,danger:e.danger,"content-centered":!0,"header-image":e.headerImage,"header-title-size":e.MODAL_HEADER_TITLE_SIZES.SMALL,"header-feature-icon":e.headerFeatureIcon,"header-feature-icon-color":e.headerFeatureIconColor,"header-title":e.headerTitle,"header-subtitle":e.headerSubtitle,"footer-primary-button-text":e.footerPrimaryButtonText,"footer-primary-button-icon":e.footerPrimaryButtonIcon,"footer-primary-button-state":e.footerPrimaryButtonState,"footer-secondary-button-text":e.footerSecondaryButtonText,"footer-secondary-button-icon":e.footerSecondaryButtonIcon,"footer-secondary-button-state":e.footerSecondaryButtonState,onCloseModal:t[0]||(t[0]=n=>e.$emit("close-modal")),onPrimaryButtonClick:t[1]||(t[1]=n=>e.$emit("primary-button-click")),onSecondaryButtonClick:t[2]||(t[2]=n=>e.$emit("secondary-button-click"))},{default:y(()=>[b(e.$slots,"default")]),_:3},8,["size","danger","header-image","header-title-size","header-feature-icon","header-feature-icon-color","header-title","header-subtitle","footer-primary-button-text","footer-primary-button-icon","footer-primary-button-state","footer-secondary-button-text","footer-secondary-button-icon","footer-secondary-button-state"])}const j=g(u,[["render",T]]);u.__docgenInfo={displayName:"ModalDialog",exportName:"default",description:"",tags:{},props:[{name:"danger",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"headerTitle",type:{name:"string"},required:!0},{name:"headerSubtitle",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"headerFeatureIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"headerFeatureIconColor",type:{name:"string"},defaultValue:{func:!1,value:"FEATURE_ICON_COLOR.NEUTRAL"}},{name:"headerImage",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"footerPrimaryButtonText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"footerPrimaryButtonIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"footerPrimaryButtonState",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_STATES.DEFAULT"}},{name:"footerSecondaryButtonText",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"footerSecondaryButtonIcon",type:{name:"object"},defaultValue:{func:!1,value:"null"}},{name:"footerSecondaryButtonState",type:{name:"string"},defaultValue:{func:!1,value:"BUTTON_STATES.DEFAULT"}}],events:[{name:"close-modal"},{name:"primary-button-click"},{name:"secondary-button-click"}],slots:[{name:"default"}],sourceFiles:["/home/runner/work/design-system/design-system/lib/js/components/Modals/ModalDialog/ModalDialog.vue"]};export{j as M};
@@ -1,43 +0,0 @@
1
- import{M as p}from"./ModalDialog-BTKtgJej.js";import{I as a}from"./Icon-DLflpryl.js";import{a as n}from"./FeatureIcon-JKiMnOvS.js";import{a as e}from"./Button-DTM9D6tQ.js";import"./Modal-BcXHhF5p.js";import"./IconButton-jIBOZaL6.js";import"./vue.esm-bundler-DD4BrEtS.js";import"./device-9fgosCm4.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={title:"Components/Modals/ModalDialog",component:p},u=I=>({components:{ModalDialog:p},setup(){return I},template:'<modal-dialog :headerFeatureIcon="ICONS[headerFeatureIcon]" :danger="danger" :headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :headerFeatureIconColor="headerFeatureIconColor" :footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="footerPrimaryButtonIcon" :footerPrimaryButtonState="footerPrimaryButtonState" :headerImage="headerImage" :footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="footerSecondaryButtonIcon" :footerSecondaryButtonState="footerSecondaryButtonState"><div v-html="defaultSlot" /></modal-dialog>',data(){return{ICONS:Object.freeze(a),BUTTON_STATES:Object.freeze(e)}}}),t=u.bind({}),g={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',danger:!1,headerImage:"",headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_QUESTION",headerFeatureIconColor:n.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:e.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:e.DEFAULT},i={danger:{control:"boolean"},headerImage:{control:"text",table:{type:{summary:"string"},defaultValue:{summary:"Hello"}}},headerTitle:{control:"text"},headerSubtitle:{control:"text"},headerFeatureIcon:{control:"select",options:[null,...Object.keys(a)]},headerFeatureIconColor:{control:"select",options:Object.values(n)},footerPrimaryButtonText:{control:"text"},footerPrimaryButtonIcon:{control:"select",options:[null,...Object.keys(a)]},footerPrimaryButtonState:{control:"select",options:Object.values(e)},footerSecondaryButtonText:{control:"text"},footerSecondaryButtonIcon:{control:"select",options:[null,...Object.keys(a)]},footerSecondaryButtonState:{control:"select",options:Object.values(e)}};t.argTypes=i;t.args=g;t.parameters={design:{type:"figma",url:"https://www.figma.com/file/izQdYyiBR1GQgFkaOIfIJI/LMS---DS-Components?node-id=5658%3A96416&t=lgUXCZhvWDuBr3qw-0"}};const B={defaultSlot:'<p style="margin-top: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p><p style="margin-top: 0; margin-bottom: 0">Text. Occaecati qui debitis ut minima ab ut ipsa. Eos qui eum. Vel eaque sint. Aut voluptatem est. Eos est aut sit soluta est facere qui soluta aspernatur. Et sint repellat sunt.</p>',danger:!0,headerImage:"",headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_EXCLAMATION",headerFeatureIconColor:n.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:e.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:e.DEFAULT},o=u.bind({});o.argTypes=i;o.args=B;const h={defaultSlot:"",danger:!1,headerImage:"https://wiecejnizlek.pl/wp-content/themes/uncode-child/assets/patterns/pattern-black.png",headerTitle:"Modal Title Accusantium occaecati atque similique gg provident nobis.",headerSubtitle:"Modal Subtitle Aut vitae neque consequatur. Consequuntur natus sint ad.",headerFeatureIcon:"FA_CIRCLE_EXCLAMATION",headerFeatureIconColor:n.NEUTRAL,footerPrimaryButtonText:"Primary M",footerPrimaryButtonIcon:null,footerPrimaryButtonState:e.DEFAULT,footerSecondaryButtonText:"Secondary M",footerSecondaryButtonIcon:null,footerSecondaryButtonState:e.DEFAULT},r=u.bind({});r.argTypes=i;r.args=h;var c,l,d;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`args => ({
2
- components: {
3
- ModalDialog
4
- },
5
- setup() {
6
- return args;
7
- },
8
- template: '<modal-dialog :headerFeatureIcon="ICONS[headerFeatureIcon]" :danger="danger" ' + ':headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="footerPrimaryButtonIcon" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':headerImage="headerImage" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="footerSecondaryButtonIcon" :footerSecondaryButtonState="footerSecondaryButtonState">' + '<div v-html="defaultSlot" />' + '</modal-dialog>',
9
- data() {
10
- return {
11
- ICONS: Object.freeze(ICONS),
12
- BUTTON_STATES: Object.freeze(BUTTON_STATES)
13
- };
14
- }
15
- })`,...(d=(l=t.parameters)==null?void 0:l.docs)==null?void 0:d.source}}};var s,m,S;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`args => ({
16
- components: {
17
- ModalDialog
18
- },
19
- setup() {
20
- return args;
21
- },
22
- template: '<modal-dialog :headerFeatureIcon="ICONS[headerFeatureIcon]" :danger="danger" ' + ':headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="footerPrimaryButtonIcon" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':headerImage="headerImage" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="footerSecondaryButtonIcon" :footerSecondaryButtonState="footerSecondaryButtonState">' + '<div v-html="defaultSlot" />' + '</modal-dialog>',
23
- data() {
24
- return {
25
- ICONS: Object.freeze(ICONS),
26
- BUTTON_STATES: Object.freeze(BUTTON_STATES)
27
- };
28
- }
29
- })`,...(S=(m=o.parameters)==null?void 0:m.docs)==null?void 0:S.source}}};var f,y,T;r.parameters={...r.parameters,docs:{...(f=r.parameters)==null?void 0:f.docs,source:{originalSource:`args => ({
30
- components: {
31
- ModalDialog
32
- },
33
- setup() {
34
- return args;
35
- },
36
- template: '<modal-dialog :headerFeatureIcon="ICONS[headerFeatureIcon]" :danger="danger" ' + ':headerTitle="headerTitle" :headerSubtitle="headerSubtitle" :headerFeatureIconColor="headerFeatureIconColor" ' + ':footerPrimaryButtonText="footerPrimaryButtonText" :footerPrimaryButtonIcon="footerPrimaryButtonIcon" :footerPrimaryButtonState="footerPrimaryButtonState" ' + ':headerImage="headerImage" ' + ':footerSecondaryButtonText="footerSecondaryButtonText" :footerSecondaryButtonIcon="footerSecondaryButtonIcon" :footerSecondaryButtonState="footerSecondaryButtonState">' + '<div v-html="defaultSlot" />' + '</modal-dialog>',
37
- data() {
38
- return {
39
- ICONS: Object.freeze(ICONS),
40
- BUTTON_STATES: Object.freeze(BUTTON_STATES)
41
- };
42
- }
43
- })`,...(T=(y=r.parameters)==null?void 0:y.docs)==null?void 0:T.source}}};const v=["Interactive","Danger","WithImage"];export{o as Danger,t as Interactive,r as WithImage,v as __namedExportsOrder,N as default};