@designcrowd/fe-shared-lib 1.8.7 → 1.8.9-edge-fallback-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 (158) hide show
  1. package/.storybook-static/assets/AiPoweredLoader-K9ofJ40T.js +1 -0
  2. package/.storybook-static/assets/AiPoweredLoader.stories-ek9rwGQG.js +567 -0
  3. package/.storybook-static/assets/Auth-BEjq1pFf.css +1 -0
  4. package/.storybook-static/assets/Auth.stories-D1247dT1.js +490 -0
  5. package/.storybook-static/assets/AuthCrazyDomains.stories-BIamICEC.js +73 -0
  6. package/.storybook-static/assets/Button-CkyYO9sU.js +1 -0
  7. package/.storybook-static/assets/Button-CsmXX2Kh.css +1 -0
  8. package/.storybook-static/assets/ButtonGroup-B1fnbW1G.css +1 -0
  9. package/.storybook-static/assets/ButtonGroup.stories-B_Y6Qiue.js +504 -0
  10. package/.storybook-static/assets/ButtonPrimary-Bu6bXb_c.css +1 -0
  11. package/.storybook-static/assets/ButtonPrimary-LDY_rMmo.js +1 -0
  12. package/.storybook-static/assets/Buttons.stories-UtLyTNDh.js +761 -0
  13. package/.storybook-static/assets/ButtonsCrazyDomains.stories-B_dAvsPN.js +199 -0
  14. package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +1 -0
  15. package/.storybook-static/assets/Checkbox.stories-C2JNNPiv.js +246 -0
  16. package/.storybook-static/assets/Checktile.stories-A2EEo588.js +88 -0
  17. package/.storybook-static/assets/CollapsiblePanel.stories-C1n7g5nQ.js +56 -0
  18. package/.storybook-static/assets/ColorPicker.stories-Qp6snl1f.js +73 -0
  19. package/.storybook-static/assets/CopyToClipboardText.stories-sChI7F7B.js +32 -0
  20. package/.storybook-static/assets/Dropdown.stories-b--FBRDl.js +159 -0
  21. package/.storybook-static/assets/DropdownItem-B-sUYaug.js +1 -0
  22. package/.storybook-static/assets/DropdownItem-BV-BdThU.css +1 -0
  23. package/.storybook-static/assets/FormControl.mixin-Du0pWSns.js +1 -0
  24. package/.storybook-static/assets/HashRouteModal.stories-CNcrRtbp.js +64 -0
  25. package/.storybook-static/assets/HelloBar-DEIIHhYa.js +1 -0
  26. package/.storybook-static/assets/HelloBar.stories-tyJmZL4_.js +342 -0
  27. package/.storybook-static/assets/Icon-B_xzgi_Q.js +145 -0
  28. package/.storybook-static/assets/Icon.stories-BZzjXimT.js +151 -0
  29. package/.storybook-static/assets/Icon.stories-Bgp3oN6t.js +787 -0
  30. package/.storybook-static/assets/Loader-w-8rPZZr.js +1 -0
  31. package/.storybook-static/assets/LogoBusinessBrandColours-CeAaMKke.css +1 -0
  32. package/.storybook-static/assets/LogoBusinessBrandColours-wfQKCU3x.js +1 -0
  33. package/.storybook-static/assets/LogoBusinessBrandColours.stories-Br6U96nz.js +36 -0
  34. package/.storybook-static/assets/LogoKeywords-eT_i8ucw.js +1 -0
  35. package/.storybook-static/assets/LogoKeywords.stories-2eAnYOwT.js +86 -0
  36. package/.storybook-static/assets/Masonry-C2MNiGg0.css +1 -0
  37. package/.storybook-static/assets/Masonry.stories-DvvP8ATW.js +71 -0
  38. package/.storybook-static/assets/Modal-CGwEIF5R.css +1 -0
  39. package/.storybook-static/assets/Modal-DKAacz7P.js +1 -0
  40. package/.storybook-static/assets/Modal.stories-B9faUP3R.js +345 -0
  41. package/.storybook-static/assets/Notice.stories-E5fzboZ_.js +222 -0
  42. package/.storybook-static/assets/NumberStepper-Blffv09R.css +1 -0
  43. package/.storybook-static/assets/NumberStepper.stories-DxFzm0J9.js +64 -0
  44. package/.storybook-static/assets/PaymentConfigList-BpUMV6cp.css +1 -0
  45. package/.storybook-static/assets/PaymentConfigList.stories-DgQ5DKoI.js +130 -0
  46. package/.storybook-static/assets/Picture-C-f6m6ze.js +1 -0
  47. package/.storybook-static/assets/Picture.stories-CDN0TmGy.js +119 -0
  48. package/.storybook-static/assets/Pill-40wjWWYr.js +1 -0
  49. package/.storybook-static/assets/Pill.stories-DlxPmQuw.js +18 -0
  50. package/.storybook-static/assets/PillBar-os4mJV3M.css +1 -0
  51. package/.storybook-static/assets/PillBar.stories-DuJpicaI.js +41 -0
  52. package/.storybook-static/assets/Price-DmIyQdA3.js +1 -0
  53. package/.storybook-static/assets/Price.stories-gvqiKJzs.js +358 -0
  54. package/.storybook-static/assets/PromoCard.stories-DCqsBuOI.js +299 -0
  55. package/.storybook-static/assets/PublishBrandPageModal-Q9-mNG1q.css +1 -0
  56. package/.storybook-static/assets/PublishBrandPageModal.stories-BFr76U5n.js +324 -0
  57. package/.storybook-static/assets/SearchBar.stories-BjqtXwFK.js +12 -0
  58. package/.storybook-static/assets/Select-Dw-zvSUg.css +1 -0
  59. package/.storybook-static/assets/Select.stories-LGfzNS8M.js +108 -0
  60. package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +1 -0
  61. package/.storybook-static/assets/SellDomainNameListModal-Cs6_cMyh.js +1 -0
  62. package/.storybook-static/assets/SellDomainNameListModal-DH6khE10.css +1 -0
  63. package/.storybook-static/assets/SellDomainNameListModal.stories-n-gs1OP1.js +71 -0
  64. package/.storybook-static/assets/SellDomainNameListSearchResult-Cpxq0jDA.css +1 -0
  65. package/.storybook-static/assets/SellDomainNameListSearchResult-DGov8cKY.js +1 -0
  66. package/.storybook-static/assets/SellDomainNameSearchWithResults-DHzu6fnp.js +1 -0
  67. package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-CW_xjbiq.js +37 -0
  68. package/.storybook-static/assets/SellDomainNameWidget.stories-DwaHPJv8.js +36 -0
  69. package/.storybook-static/assets/SideNavigationPanel-CcuQm_Sc.css +1 -0
  70. package/.storybook-static/assets/SideNavigationPanel.stories-BkDnJq6A.js +143 -0
  71. package/.storybook-static/assets/SignIn-CE_SoJx-.css +1 -0
  72. package/.storybook-static/assets/SignIn-CVWfb7be.js +1 -0
  73. package/.storybook-static/assets/Slider-Cog2FFdj.css +1 -0
  74. package/.storybook-static/assets/Slider.stories-dEVLBxDH.js +141 -0
  75. package/.storybook-static/assets/SparkleIcon.stories-qzRF8GqJ.js +547 -0
  76. package/.storybook-static/assets/StarRating-BtKh7pzm.css +1 -0
  77. package/.storybook-static/assets/StarRating.stories-CaHUrkco.js +45 -0
  78. package/.storybook-static/assets/TabMenu.stories-zjRIYR91.js +47 -0
  79. package/.storybook-static/assets/TextCopyField-8fLItNK1.js +1 -0
  80. package/.storybook-static/assets/TextCopyField.stories-DhtlsOEJ.js +47 -0
  81. package/.storybook-static/assets/TextInput-ChcUAMVU.js +1 -0
  82. package/.storybook-static/assets/TextInput.stories-CYg-wtE3.js +233 -0
  83. package/.storybook-static/assets/Textarea.stories-CIbFJ5BC.js +207 -0
  84. package/.storybook-static/assets/Toggle.stories-PzUJM04E.js +161 -0
  85. package/.storybook-static/assets/Tooltip-DmYewPhE.js +1 -0
  86. package/.storybook-static/assets/Tooltip-DyXIgFQH.css +1 -0
  87. package/.storybook-static/assets/Tooltip.stories-BbvfQkdB.js +953 -0
  88. package/.storybook-static/assets/UploadYourLogoApplication-nGy7BMKH.css +9 -0
  89. package/.storybook-static/assets/UploadYourLogoApplication.stories-BhZE8DD8.js +252 -0
  90. package/.storybook-static/assets/UploadYourLogoDropzone-DQqACf-e.css +1 -0
  91. package/.storybook-static/assets/UploadYourLogoDropzone-DjLMXjVf.js +24 -0
  92. package/.storybook-static/assets/UploadYourLogoDropzone.stories-DmrtZdrQ.js +55 -0
  93. package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-H46TQzf5.js +79 -0
  94. package/.storybook-static/assets/WebsiteContextualUpgradeModal-Dec1RypL.css +1 -0
  95. package/.storybook-static/assets/WebsiteContextualUpgradeModal.stories-CF2wZFGr.js +211 -0
  96. package/.storybook-static/assets/_commonjsHelpers-D6-XlEtG.js +1 -0
  97. package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
  98. package/.storybook-static/assets/api-BlGvmpef.js +1 -0
  99. package/.storybook-static/assets/axe-CVuRbXyi.js +30 -0
  100. package/.storybook-static/assets/brand-crowd-api.client-CMc6GnPx.js +1 -0
  101. package/.storybook-static/assets/bundled-translations-BoWhEDU_.js +1 -0
  102. package/.storybook-static/assets/bundled-translations.de-DE-C4lqla4O.js +1 -0
  103. package/.storybook-static/assets/bundled-translations.es-ES-BxMIllUH.js +1 -0
  104. package/.storybook-static/assets/bundled-translations.fr-CA-MxZpyz0w.js +1 -0
  105. package/.storybook-static/assets/bundled-translations.fr-FR-N7UPCZVr.js +1 -0
  106. package/.storybook-static/assets/bundled-translations.pt-BR-C8tscYuG.js +1 -0
  107. package/.storybook-static/assets/bundled-translations.pt-PT-Dszj5Xfa.js +1 -0
  108. package/.storybook-static/assets/carousel-Dt2XmYc_.css +1 -0
  109. package/.storybook-static/assets/carousel.stories-CC4v-h62.js +668 -0
  110. package/.storybook-static/assets/event-constants-CMO9VQVu.js +1 -0
  111. package/.storybook-static/assets/iframe-ndUd-rmt.js +1126 -0
  112. package/.storybook-static/assets/index-Bz4la0P9.js +6 -0
  113. package/.storybook-static/assets/index-_aBqSnL8.js +29 -0
  114. package/.storybook-static/assets/matchers-7Z3WT2CE-OIiPHzXs.js +14 -0
  115. package/.storybook-static/assets/mediaQueryMixin-CISNqd93.js +1 -0
  116. package/.storybook-static/assets/tracking-ATsLLehC.js +1 -0
  117. package/.storybook-static/css/tailwind-brandCrowd.css +2623 -0
  118. package/.storybook-static/css/tailwind-brandPage.css +2295 -0
  119. package/.storybook-static/css/tailwind-crazyDomains.css +2623 -0
  120. package/.storybook-static/css/tailwind-designCom.css +2623 -0
  121. package/.storybook-static/css/tailwind-designCrowd.css +2623 -0
  122. package/.storybook-static/favicon.svg +1 -0
  123. package/.storybook-static/iframe.html +694 -0
  124. package/.storybook-static/index.html +156 -0
  125. package/.storybook-static/index.json +1 -0
  126. package/.storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  127. package/.storybook-static/nunito-sans-bold.woff2 +0 -0
  128. package/.storybook-static/nunito-sans-italic.woff2 +0 -0
  129. package/.storybook-static/nunito-sans-regular.woff2 +0 -0
  130. package/.storybook-static/project.json +1 -0
  131. package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +5 -0
  132. package/.storybook-static/sb-addons/links-2/manager-bundle.js +3 -0
  133. package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +188 -0
  134. package/.storybook-static/sb-addons/themes-3/manager-bundle.js +3 -0
  135. package/.storybook-static/sb-common-assets/favicon.svg +1 -0
  136. package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  137. package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  138. package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  139. package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  140. package/.storybook-static/sb-manager/globals-module-info.js +797 -0
  141. package/.storybook-static/sb-manager/globals-runtime.js +72062 -0
  142. package/.storybook-static/sb-manager/globals.js +34 -0
  143. package/.storybook-static/sb-manager/runtime.js +13002 -0
  144. package/.vscode/settings.json +2 -0
  145. package/dist/css/tailwind-brandCrowd.css +81 -16
  146. package/dist/css/tailwind-brandPage.css +80 -11
  147. package/dist/css/tailwind-crazyDomains.css +81 -16
  148. package/dist/css/tailwind-designCom.css +81 -16
  149. package/dist/css/tailwind-designCrowd.css +81 -16
  150. package/package.json +1 -1
  151. package/public/css/tailwind-brandCrowd.css +2644 -0
  152. package/public/css/tailwind-brandPage.css +2312 -0
  153. package/public/css/tailwind-crazyDomains.css +2644 -0
  154. package/public/css/tailwind-designCom.css +2644 -0
  155. package/public/css/tailwind-designCrowd.css +2644 -0
  156. package/src/atoms/components/Button/variants/ButtonDarkModePill.vue +5 -5
  157. package/src/experiences/components/CompactSearchForm/CompactSearchForm.vue +140 -0
  158. package/src/useVoiceToText.ts +6 -1
@@ -0,0 +1,345 @@
1
+ import{M as n}from"./Modal-DKAacz7P.js";import{B as Y}from"./Button-CkyYO9sU.js";import"./Icon-B_xzgi_Q.js";import"./iframe-ndUd-rmt.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonPrimary-LDY_rMmo.js";const D={title:"Components/Modal",component:n},t={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
2
+ <Modal v-bind="args" close-on-esc @close-modal="closeLoginModal">
3
+ Your component goes here
4
+ </Modal>
5
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},i={render:e=>({components:{Modal:n,Button:Y},setup(){return{args:e}},template:`
6
+ <div>
7
+ <Button size="medium" variant="primary" label="Click Me" @on-click="onButtonClick" />
8
+ <Modal v-bind="args" close-on-esc @close-modal="closeLoginModal" :disable-body-scroll-on-visible="true">
9
+ Your component goes here
10
+ </Modal>
11
+ </div>
12
+ `,methods:{closeLoginModal(){this.visible=!1},onButtonClick(){this.visible=!0}}}),args:{visible:!0}},d={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
13
+ <Modal v-bind="args" :simple="true" @close-modal="closeLoginModal">
14
+ <div class="tw-px-8">
15
+ <div>
16
+ <h2 class="tw-text-2xl tw-text-center tw-mb-4">Hello World</h2>
17
+ </div>
18
+ </div>
19
+ </Modal>
20
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},o={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
21
+ <Modal v-bind="args" :mandatory="true" @close-modal="closeLoginModal">
22
+ I'm a mandatory modal
23
+ </Modal>
24
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},s={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
25
+ <Modal v-bind="args" @close-modal="closeLoginModal">
26
+ <div>
27
+ <div>Heading</div>
28
+ <div style="height: 150px;">Contents 1</div>
29
+ <div style="height: 250px;">Contents 2</div>
30
+ <div style="height: 300px;">Contents 3</div>
31
+ <button>Save</button>
32
+ </div>
33
+ </Modal>
34
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},r={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
35
+ <Modal v-bind="args" @close-modal="closeLoginModal">
36
+ <template v-slot:header>
37
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
38
+ <span>Header</span>
39
+ </div>
40
+ <div>
41
+ <span>Sticky content here which does not overflow</span>
42
+ </div>
43
+ </template>
44
+ <div class="sm:tw-h-96">
45
+ <div style="height: 150px;">Over flowing Contents 1</div>
46
+ <div style="height: 200px;">Over flowing Contents 2</div>
47
+ <div style="height: 350px;">Over flowing Contents 3</div>
48
+ <div style="height: 350px;">Over flowing Contents 4</div>
49
+ <div style="height: 350px;">Over flowing Contents 5</div>
50
+ <button>Save</button>
51
+ </div>
52
+ <template v-slot:footer>
53
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
54
+ <span>Footer</span>
55
+ </div>
56
+ </template>
57
+ </Modal>
58
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},a={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
59
+ <Modal v-bind="args" @close-modal="closeLoginModal" fullScreenBreakpoint="sm">
60
+ <template v-slot:header>
61
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
62
+ <span>Try resizing browser</span>
63
+ </div>
64
+ </template>
65
+ <div class="sm:tw-h-96">
66
+ <div style="height: 150px;">Over flowing Contents 1</div>
67
+ <div style="height: 200px;">Over flowing Contents 2</div>
68
+ <div style="height: 350px;">Over flowing Contents 3</div>
69
+ <div style="height: 350px;">Over flowing Contents 4</div>
70
+ <div style="height: 350px;">Over flowing Contents 5</div>
71
+ <button>Save</button>
72
+ </div>
73
+ <template v-slot:footer>
74
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
75
+ <span>Footer</span>
76
+ </div>
77
+ </template>
78
+ </Modal>
79
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}},l={render:e=>({components:{Modal:n},setup(){return{args:e}},template:`
80
+ <Modal mode="image" v-bind="args" @close-modal="closeLoginModal">
81
+ <img alt="modal-img" src="https://source.unsplash.com/random/1200x1200"/>
82
+ </Modal>
83
+ `,methods:{closeLoginModal(){this.visible=!1}}}),args:{visible:!0}};l.story={name:"Modal — Image"};t.story={name:"Modal"};o.story={name:"Modal — Mandatory"};s.story={name:"Modal — Overflow Height"};r.story={name:"Modal — Header and Footer"};a.story={name:"Modal — Fullscreen breakpoint"};var p,v,m;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{
84
+ render: args => {
85
+ return {
86
+ components: {
87
+ Modal
88
+ },
89
+ setup() {
90
+ return {
91
+ args
92
+ };
93
+ },
94
+ template: \`
95
+ <Modal v-bind="args" close-on-esc @close-modal="closeLoginModal">
96
+ Your component goes here
97
+ </Modal>
98
+ \`,
99
+ methods: {
100
+ closeLoginModal() {
101
+ this.visible = false;
102
+ }
103
+ }
104
+ };
105
+ },
106
+ args: {
107
+ visible: true
108
+ }
109
+ }`,...(m=(v=t.parameters)==null?void 0:v.docs)==null?void 0:m.source}}};var c,g,u;i.parameters={...i.parameters,docs:{...(c=i.parameters)==null?void 0:c.docs,source:{originalSource:`{
110
+ render: args => {
111
+ return {
112
+ components: {
113
+ Modal,
114
+ Button
115
+ },
116
+ setup() {
117
+ return {
118
+ args
119
+ };
120
+ },
121
+ template: \`
122
+ <div>
123
+ <Button size="medium" variant="primary" label="Click Me" @on-click="onButtonClick" />
124
+ <Modal v-bind="args" close-on-esc @close-modal="closeLoginModal" :disable-body-scroll-on-visible="true">
125
+ Your component goes here
126
+ </Modal>
127
+ </div>
128
+ \`,
129
+ methods: {
130
+ closeLoginModal() {
131
+ this.visible = false;
132
+ },
133
+ onButtonClick() {
134
+ this.visible = true;
135
+ }
136
+ }
137
+ };
138
+ },
139
+ args: {
140
+ visible: true
141
+ }
142
+ }`,...(u=(g=i.parameters)==null?void 0:g.docs)==null?void 0:u.source}}};var h,M,b;d.parameters={...d.parameters,docs:{...(h=d.parameters)==null?void 0:h.docs,source:{originalSource:`{
143
+ render: args => {
144
+ return {
145
+ components: {
146
+ Modal
147
+ },
148
+ setup() {
149
+ return {
150
+ args
151
+ };
152
+ },
153
+ template: \`
154
+ <Modal v-bind="args" :simple="true" @close-modal="closeLoginModal">
155
+ <div class="tw-px-8">
156
+ <div>
157
+ <h2 class="tw-text-2xl tw-text-center tw-mb-4">Hello World</h2>
158
+ </div>
159
+ </div>
160
+ </Modal>
161
+ \`,
162
+ methods: {
163
+ closeLoginModal() {
164
+ this.visible = false;
165
+ }
166
+ }
167
+ };
168
+ },
169
+ args: {
170
+ visible: true
171
+ }
172
+ }`,...(b=(M=d.parameters)==null?void 0:M.docs)==null?void 0:b.source}}};var f,y,x;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`{
173
+ render: args => {
174
+ return {
175
+ components: {
176
+ Modal
177
+ },
178
+ setup() {
179
+ return {
180
+ args
181
+ };
182
+ },
183
+ template: \`
184
+ <Modal v-bind="args" :mandatory="true" @close-modal="closeLoginModal">
185
+ I'm a mandatory modal
186
+ </Modal>
187
+ \`,
188
+ methods: {
189
+ closeLoginModal() {
190
+ this.visible = false;
191
+ }
192
+ }
193
+ };
194
+ },
195
+ args: {
196
+ visible: true
197
+ }
198
+ }`,...(x=(y=o.parameters)==null?void 0:y.docs)==null?void 0:x.source}}};var w,C,L;s.parameters={...s.parameters,docs:{...(w=s.parameters)==null?void 0:w.docs,source:{originalSource:`{
199
+ render: args => {
200
+ return {
201
+ components: {
202
+ Modal
203
+ },
204
+ setup() {
205
+ return {
206
+ args
207
+ };
208
+ },
209
+ template: \`
210
+ <Modal v-bind="args" @close-modal="closeLoginModal">
211
+ <div>
212
+ <div>Heading</div>
213
+ <div style="height: 150px;">Contents 1</div>
214
+ <div style="height: 250px;">Contents 2</div>
215
+ <div style="height: 300px;">Contents 3</div>
216
+ <button>Save</button>
217
+ </div>
218
+ </Modal>
219
+ \`,
220
+ methods: {
221
+ closeLoginModal() {
222
+ this.visible = false;
223
+ }
224
+ }
225
+ };
226
+ },
227
+ args: {
228
+ visible: true
229
+ }
230
+ }`,...(L=(C=s.parameters)==null?void 0:C.docs)==null?void 0:L.source}}};var S,O,k;r.parameters={...r.parameters,docs:{...(S=r.parameters)==null?void 0:S.docs,source:{originalSource:`{
231
+ render: args => {
232
+ return {
233
+ components: {
234
+ Modal
235
+ },
236
+ setup() {
237
+ return {
238
+ args
239
+ };
240
+ },
241
+ template: \`
242
+ <Modal v-bind="args" @close-modal="closeLoginModal">
243
+ <template v-slot:header>
244
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
245
+ <span>Header</span>
246
+ </div>
247
+ <div>
248
+ <span>Sticky content here which does not overflow</span>
249
+ </div>
250
+ </template>
251
+ <div class="sm:tw-h-96">
252
+ <div style="height: 150px;">Over flowing Contents 1</div>
253
+ <div style="height: 200px;">Over flowing Contents 2</div>
254
+ <div style="height: 350px;">Over flowing Contents 3</div>
255
+ <div style="height: 350px;">Over flowing Contents 4</div>
256
+ <div style="height: 350px;">Over flowing Contents 5</div>
257
+ <button>Save</button>
258
+ </div>
259
+ <template v-slot:footer>
260
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
261
+ <span>Footer</span>
262
+ </div>
263
+ </template>
264
+ </Modal>
265
+ \`,
266
+ methods: {
267
+ closeLoginModal() {
268
+ this.visible = false;
269
+ }
270
+ }
271
+ };
272
+ },
273
+ args: {
274
+ visible: true
275
+ }
276
+ }`,...(k=(O=r.parameters)==null?void 0:O.docs)==null?void 0:k.source}}};var B,z,F;a.parameters={...a.parameters,docs:{...(B=a.parameters)==null?void 0:B.docs,source:{originalSource:`{
277
+ render: args => {
278
+ return {
279
+ components: {
280
+ Modal
281
+ },
282
+ setup() {
283
+ return {
284
+ args
285
+ };
286
+ },
287
+ template: \`
288
+ <Modal v-bind="args" @close-modal="closeLoginModal" fullScreenBreakpoint="sm">
289
+ <template v-slot:header>
290
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
291
+ <span>Try resizing browser</span>
292
+ </div>
293
+ </template>
294
+ <div class="sm:tw-h-96">
295
+ <div style="height: 150px;">Over flowing Contents 1</div>
296
+ <div style="height: 200px;">Over flowing Contents 2</div>
297
+ <div style="height: 350px;">Over flowing Contents 3</div>
298
+ <div style="height: 350px;">Over flowing Contents 4</div>
299
+ <div style="height: 350px;">Over flowing Contents 5</div>
300
+ <button>Save</button>
301
+ </div>
302
+ <template v-slot:footer>
303
+ <div style="text-align: center; font-weight: 600; font-size: 20px;">
304
+ <span>Footer</span>
305
+ </div>
306
+ </template>
307
+ </Modal>
308
+ \`,
309
+ methods: {
310
+ closeLoginModal() {
311
+ this.visible = false;
312
+ }
313
+ }
314
+ };
315
+ },
316
+ args: {
317
+ visible: true
318
+ }
319
+ }`,...(F=(z=a.parameters)==null?void 0:z.docs)==null?void 0:F.source}}};var H,I,W;l.parameters={...l.parameters,docs:{...(H=l.parameters)==null?void 0:H.docs,source:{originalSource:`{
320
+ render: args => {
321
+ return {
322
+ components: {
323
+ Modal
324
+ },
325
+ setup() {
326
+ return {
327
+ args
328
+ };
329
+ },
330
+ template: \`
331
+ <Modal mode="image" v-bind="args" @close-modal="closeLoginModal">
332
+ <img alt="modal-img" src="https://source.unsplash.com/random/1200x1200"/>
333
+ </Modal>
334
+ \`,
335
+ methods: {
336
+ closeLoginModal() {
337
+ this.visible = false;
338
+ }
339
+ }
340
+ };
341
+ },
342
+ args: {
343
+ visible: true
344
+ }
345
+ }`,...(W=(I=l.parameters)==null?void 0:I.docs)==null?void 0:W.source}}};const G=["Sample","OpenWithButton","Simple","MandatorySample","InnerOverflowSample","HeaderFooterSample","FullscreenBreakpointSample","Image"];export{a as FullscreenBreakpointSample,r as HeaderFooterSample,l as Image,s as InnerOverflowSample,o as MandatorySample,i as OpenWithButton,t as Sample,d as Simple,G as __namedExportsOrder,D as default};
@@ -0,0 +1,222 @@
1
+ import{c as p,g as l,e as g,b as r,o as N,d as v}from"./iframe-ndUd-rmt.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{B as o}from"./Button-CkyYO9sU.js";import"./ButtonPrimary-LDY_rMmo.js";import"./Icon-B_xzgi_Q.js";const f={props:{color:{type:String,required:!1,default:"primary"},direction:{type:String,required:!1,default:"top"},alignment:{type:String,required:!1,default:"left"},size:{type:String,required:!1,default:void 0},closable:{type:Boolean,required:!1,default:!1},isVisible:{type:Boolean,required:!1,default:void 0}}};function h(e,i,t,C,k,x){return N(),p("div",{class:r({"tw-relative tw-inline-flex tw-flex-col sm:tw-flex-row tw-w-full sm:tw-w-auto":!0,"tw-justify-center":t.alignment==="center","tw-justify-end":t.alignment==="right","tw-justify-start":t.alignment==="left"})},[l(e.$slots,"target"),g("div",{class:r({"sm:tw-absolute tw-static tw-w-full tw-z-10 tw-border tw-border-solid tw-border-grayscale-500 tw-rounded tw-bg-white tw-top-full tw-mt-4":!0,"sm:tw-top-auto sm:tw-mt-0":t.direction!=="bottom","sm:tw-bottom-full sm:tw-mb-4":t.direction==="top","sm:tw-left-full sm:tw-ml-4":t.direction==="right","sm:tw-right-full sm:tw-mr-4":t.direction==="left","tw-right-0":t.alignment==="right","tw-left-0":t.alignment==="left","sm:tw-w-64":t.size==="sm","sm:tw-w-72":t.size==="md","sm:tw-w-96":t.size==="lg","tw-hidden":!t.isVisible})},[l(e.$slots,"body")],2)],2)}const a=y(f,[["render",h]]);f.__docgenInfo={exportName:"default",displayName:"Notice",description:"",tags:{},props:[{name:"color",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'primary'"}},{name:"direction",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'top'"}},{name:"alignment",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'left'"}},{name:"size",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"closable",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isVisible",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"target"},{name:"body"}],sourceFiles:["/Users/kristianbonitz/Repos/fe-shared-lib/src/atoms/components/Notice/Notice.vue"]};const R={title:"Components/Notice",component:a},V=(e,i,t)=>({notice:{direction:e,isVisible:i},button:{label:"Click me",variant:"primary",size:"small-wide",onClick:t}}),B=v("StorybookNoticeBody",{components:{Button:o},template:`
2
+ <div class="tw-p-4">
3
+ <input type="text" class="tw-mb-2" />
4
+ <Button
5
+ label="Submit"
6
+ variant="primary"
7
+ size="small-wide"
8
+ :full-width="true"
9
+ />
10
+ </div>
11
+ `}),n=()=>({components:{Notice:a,Button:o,StorybookNoticeBodyComponent:B},data(){return{isTopNoticeVisible:!1,isRightNoticeVisible:!1,isBottomNoticeVisible:!1,isLeftNoticeVisible:!1,directions:["Top","Right","Bottom","Left"]}},computed:{onClickFunctions(){return{top:()=>{this.isTopNoticeVisible=!this.isTopNoticeVisible},right:()=>{this.isRightNoticeVisible=!this.isRightNoticeVisible},bottom:()=>{this.isBottomNoticeVisible=!this.isBottomNoticeVisible},left:()=>{this.isLeftNoticeVisible=!this.isLeftNoticeVisible}}},variants(){return this.directions.map(e=>{const i=e.toLowerCase();return V(i,this[`is${e}NoticeVisible`],this.onClickFunctions[i])})}},template:`
12
+ <div class="tw-flex tw-justify-center tw-mt-40">
13
+ <div class="tw-container tw-max-w-300">
14
+ <table class="tw-w-full">
15
+ <thead>
16
+ <tr>
17
+ <th class="tw-text-left tw-p-4 tw-bg-grayscale-400 tw-font-sans">Notice</th>
18
+ <th class="tw-text-left tw-p-4 tw-bg-grayscale-400 tw-font-sans">Code</th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ <tr
23
+ v-for="(variant, index) in variants"
24
+ :key="index"
25
+ class="tw-bg-grayscale-200"
26
+ >
27
+ <td class="tw-p-4">
28
+ <Notice
29
+ :direction="variant.notice.direction"
30
+ :is-visible="variant.notice.isVisible"
31
+ >
32
+ <template #target>
33
+ <Button
34
+ :label="variant.button.label"
35
+ :variant="variant.button.variant"
36
+ :size="variant.button.size"
37
+ @on-click="variant.button.onClick"
38
+ />
39
+ </template>
40
+ <template #body>
41
+ <StorybookNoticeBodyComponent />
42
+ </template>
43
+ </Notice>
44
+ </td>
45
+ <td class="tw-p-4">
46
+ <code
47
+ class="tw-bg-info-100 tw-p-2 tw-rounded tw-bg-gray-400 tw-border tw-border-solid tw-border-info-300 tw-text-info-900"
48
+ >
49
+ &lt;Notice direction="{{ variant.notice.direction }}" is-visible="{{ variant.notice.isVisible }}"&gt;
50
+
51
+ &lt;template #target&gt;...&lt;/template&gt;
52
+
53
+ &lt;template #body&gt;...&lt;/template&gt;
54
+ &lt;/Notice&gt;
55
+ </code>
56
+ </td>
57
+ </tr>
58
+ </tbody>
59
+ </table>
60
+ </div>
61
+ </div>
62
+ `}),s=()=>({components:{Notice:a,Button:o},data(){return{isNoticeVisible:!1}},template:`
63
+ <Notice
64
+ direction="bottom"
65
+ :is-visible="isNoticeVisible"
66
+ size="md"
67
+ >
68
+ <template #target>
69
+ <Button
70
+ :full-width="true"
71
+ label="Click me"
72
+ variant="primary"
73
+ size="small-wide"
74
+ @on-click="isNoticeVisible = !isNoticeVisible"
75
+ />
76
+ </template>
77
+ <template #body>
78
+ <div class="tw-p-4">
79
+ <input type="text" class="tw-mb-2 tw-w-full" />
80
+ <Button
81
+ label="Submit"
82
+ variant="primary"
83
+ size="small-wide"
84
+ :full-width="true"
85
+ />
86
+ </div>
87
+ </template>
88
+ </Notice>
89
+ `});var c,d,m;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`() => {
90
+ return {
91
+ components: {
92
+ Notice,
93
+ Button,
94
+ StorybookNoticeBodyComponent
95
+ },
96
+ data() {
97
+ return {
98
+ isTopNoticeVisible: false,
99
+ isRightNoticeVisible: false,
100
+ isBottomNoticeVisible: false,
101
+ isLeftNoticeVisible: false,
102
+ directions: ['Top', 'Right', 'Bottom', 'Left']
103
+ };
104
+ },
105
+ computed: {
106
+ onClickFunctions() {
107
+ return {
108
+ top: () => {
109
+ this.isTopNoticeVisible = !this.isTopNoticeVisible;
110
+ },
111
+ right: () => {
112
+ this.isRightNoticeVisible = !this.isRightNoticeVisible;
113
+ },
114
+ bottom: () => {
115
+ this.isBottomNoticeVisible = !this.isBottomNoticeVisible;
116
+ },
117
+ left: () => {
118
+ this.isLeftNoticeVisible = !this.isLeftNoticeVisible;
119
+ }
120
+ };
121
+ },
122
+ variants() {
123
+ return this.directions.map(direction => {
124
+ const directionLowerCase = direction.toLowerCase();
125
+ return generateNoticeVariant(directionLowerCase, this[\`is\${direction}NoticeVisible\`], this.onClickFunctions[directionLowerCase]);
126
+ });
127
+ }
128
+ },
129
+ template: \`
130
+ <div class="tw-flex tw-justify-center tw-mt-40">
131
+ <div class="tw-container tw-max-w-300">
132
+ <table class="tw-w-full">
133
+ <thead>
134
+ <tr>
135
+ <th class="tw-text-left tw-p-4 tw-bg-grayscale-400 tw-font-sans">Notice</th>
136
+ <th class="tw-text-left tw-p-4 tw-bg-grayscale-400 tw-font-sans">Code</th>
137
+ </tr>
138
+ </thead>
139
+ <tbody>
140
+ <tr
141
+ v-for="(variant, index) in variants"
142
+ :key="index"
143
+ class="tw-bg-grayscale-200"
144
+ >
145
+ <td class="tw-p-4">
146
+ <Notice
147
+ :direction="variant.notice.direction"
148
+ :is-visible="variant.notice.isVisible"
149
+ >
150
+ <template #target>
151
+ <Button
152
+ :label="variant.button.label"
153
+ :variant="variant.button.variant"
154
+ :size="variant.button.size"
155
+ @on-click="variant.button.onClick"
156
+ />
157
+ </template>
158
+ <template #body>
159
+ <StorybookNoticeBodyComponent />
160
+ </template>
161
+ </Notice>
162
+ </td>
163
+ <td class="tw-p-4">
164
+ <code
165
+ class="tw-bg-info-100 tw-p-2 tw-rounded tw-bg-gray-400 tw-border tw-border-solid tw-border-info-300 tw-text-info-900"
166
+ >
167
+ &lt;Notice direction="{{ variant.notice.direction }}" is-visible="{{ variant.notice.isVisible }}"&gt;
168
+
169
+ &lt;template #target&gt;...&lt;/template&gt;
170
+
171
+ &lt;template #body&gt;...&lt;/template&gt;
172
+ &lt;/Notice&gt;
173
+ </code>
174
+ </td>
175
+ </tr>
176
+ </tbody>
177
+ </table>
178
+ </div>
179
+ </div>
180
+ \`
181
+ };
182
+ }`,...(m=(d=n.parameters)==null?void 0:d.docs)==null?void 0:m.source}}};var u,b,w;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`() => {
183
+ return {
184
+ components: {
185
+ Notice,
186
+ Button
187
+ },
188
+ data() {
189
+ return {
190
+ isNoticeVisible: false
191
+ };
192
+ },
193
+ template: \`
194
+ <Notice
195
+ direction="bottom"
196
+ :is-visible="isNoticeVisible"
197
+ size="md"
198
+ >
199
+ <template #target>
200
+ <Button
201
+ :full-width="true"
202
+ label="Click me"
203
+ variant="primary"
204
+ size="small-wide"
205
+ @on-click="isNoticeVisible = !isNoticeVisible"
206
+ />
207
+ </template>
208
+ <template #body>
209
+ <div class="tw-p-4">
210
+ <input type="text" class="tw-mb-2 tw-w-full" />
211
+ <Button
212
+ label="Submit"
213
+ variant="primary"
214
+ size="small-wide"
215
+ :full-width="true"
216
+ />
217
+ </div>
218
+ </template>
219
+ </Notice>
220
+ \`
221
+ };
222
+ }`,...(w=(b=s.parameters)==null?void 0:b.docs)==null?void 0:w.source}}};const T=["Sample","Mobile"];export{s as Mobile,n as Sample,T as __namedExportsOrder,R as default};
@@ -0,0 +1 @@
1
+ input[data-v-e5f3dd60]::-webkit-outer-spin-button,input[data-v-e5f3dd60]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.border-radius-none[data-v-e5f3dd60]{border-radius:0!important}
@@ -0,0 +1,64 @@
1
+ import{c,h as r,e as g,C as u,G as m,b as d,i as T,a as N,o as S}from"./iframe-ndUd-rmt.js";import{B as p}from"./Button-CkyYO9sU.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonPrimary-LDY_rMmo.js";import"./Icon-B_xzgi_Q.js";const v={components:{Button:p},props:{id:{type:String,default:()=>"1"},modelValue:{type:Number,default:void 0},min:{type:Number,default:1},max:{type:Number,default:void 0},dataAttribute:{type:String,default:null},disabled:{type:Boolean,default:void 0},disableManualInput:{type:Boolean,default:void 0},size:{type:String,default:"medium"},inputClasses:{type:String,default:void 0},containerClass:{type:String,default:void 0},fullHeight:{type:Boolean,default:!1},timerToMinimum:{type:Number,default:!1}},setup(t){const e=`js-number-stepper-${t.id}`;return{numberStepperRef:e,[e]:T(null)}},data(){return{num:null,longPress:null,longPressDelayTimeout:null,longPressTimeout:null,longPressInterval:null,resetToMinTimer:null}},computed:{buttonStyle(){let t="";return this.size==="medium"&&(t="!tw-p-4"),t},buttonIconSize(){let t="xs";return this.size==="medium"&&(t="sm"),t},number:{get(){return parseInt(this.num,10)},set(t){this.num=t}}},watch:{modelValue(t){this.number=t}},created(){this.DELAY_BEFORE_LONG_PRESS_START=300,this.LONG_PRESS_DELAY=1e3,this.LONG_PRESS_INTERVAL_DELAY=100,this.LONG_PRESS_AMOUNT=5,this.FOCUSED_EVENT="focus",this.BLUR_EVENT="blur"},mounted(){this.number=this.modelValue,this.addDataAttribute()},beforeUnmount(){this.clearLongPressTimers(),this.clearResetToMinTimer()},methods:{addDataAttribute(){this.dataAttribute&&this.$refs[this.numberStepperRef].setAttribute(this.dataAttribute,"")},changeNumber(t,e){this.disabled||(t==="up"?this.increment(e):this.decrement(e))},increment(t){const e=typeof t=="number"?t:1;(!this.max||this.max&&this.number+e<=this.max)&&(this.number+=e),this.max&&this.number+e>this.max&&(this.number=this.max),this.$emit("update:modelValue",this.number),this.$emit("input",this.number)},decrement(t){const e=typeof t=="number"?t:1;this.number-e>=this.min?this.number-=e:this.number=this.min,this.$emit("update:modelValue",this.number),this.$emit("input",this.number)},onMouseWheel(t){this.disabled||(t.preventDefault(),t.deltaY<0?this.increment():this.decrement())},onMouseDown(t){if(!this.disabled){const e=this;let s=1;e.changeNumber(t),e.longPressDelayTimeout=setTimeout(()=>{e.longPressInterval=setInterval(()=>{e.changeNumber(t,s)},e.LONG_PRESS_INTERVAL_DELAY),e.longPressTimeout=setTimeout(()=>{s=e.LONG_PRESS_AMOUNT},e.LONG_PRESS_DELAY)},e.DELAY_BEFORE_LONG_PRESS_START)}},clearLongPressTimers(t){t&&t.preventDefault(),clearTimeout(this.longPressDelayTimeout),clearTimeout(this.longPressTimeout),clearInterval(this.longPressInterval),this.longPressDelayTimeout=null,this.longPressTimeout=null,this.longPressInterval=null,this.longPress=!1},onArrowDown(t){if(!this.disabled){const e=this;e.longPress?e.changeNumber(t,e.LONG_PRESS_AMOUNT):e.changeNumber(t),e.longPressTimeout||(e.longPressTimeout=setTimeout(()=>{e.longPress=!0},e.LONG_PRESS_DELAY))}},onInput(t){if(!this.disabled){const e=parseFloat(t.target.value);let s=0;e>this.max?s=this.max:Number.isNaN(e)?s=0:s=e,this.number=s,t.target.value=s,this.$emit("update:modelValue",this.number),this.$emit("input",this.number),this.startResetToMinTimer(t)}},checkLimit(t){let e=0;t.target.value===""||Number.isNaN(this.number)||this.number<=this.min?e=this.min:this.number>this.max?e=this.max:e=this.number,this.number=e,t.target.value=e,this.$emit("update:modelValue",this.number),this.$emit("input",this.number)},startResetToMinTimer(t){this.clearResetToMinTimer(),this.timerToMinimum&&(this.resetToMinTimer=setTimeout(()=>{this.checkLimit(t)},this.timerToMinimum))},clearResetToMinTimer(){this.resetToMinTimer&&(clearTimeout(this.resetToMinTimer),this.resetToMinTimer=null)}}},M=["value","disabled"];function V(t,e,s,w,L,n){const a=N("Button");return S(),c("div",{class:d(["tw-flex tw-items-stretch",s.containerClass])},[r(a,{variant:"flat",icon:"minus","icon-size":n.buttonIconSize,class:"tw-rounded-r-none",classes:n.buttonStyle,rounded:!1,"rounded-left":!0,"full-height":s.fullHeight,disabled:s.disabled,onMousedown:[e[0]||(e[0]=u(i=>n.onMouseDown("down"),["left"])),u(n.clearLongPressTimers,["right"]),u(n.clearLongPressTimers,["middle"])],onMouseup:n.clearLongPressTimers,onMouseleave:n.clearLongPressTimers,onTouchstart:e[1]||(e[1]=i=>n.onMouseDown("down")),onTouchend:e[2]||(e[2]=i=>n.clearLongPressTimers(i)),onTouchcancel:e[3]||(e[3]=i=>n.clearLongPressTimers(i))},null,8,["icon-size","classes","full-height","disabled","onMousedown","onMouseup","onMouseleave"]),g("input",{ref:w.numberStepperRef,class:d([s.inputClasses,"border-radius-none tw-w-full tw-text-center tw-border tw-border-solid tw-border-grayscale-500 tw-border-l-0 tw-border-r-0 tw-rounded-none"]),type:"text",value:n.number,pattern:"[0-9]",disabled:s.disabled||s.disableManualInput,onWheel:e[4]||(e[4]=(...i)=>n.onMouseWheel&&n.onMouseWheel(...i)),onInput:e[5]||(e[5]=u((...i)=>n.onInput&&n.onInput(...i),["stop"])),onKeyup:e[6]||(e[6]=(...i)=>n.clearLongPressTimers&&n.clearLongPressTimers(...i)),onKeydown:[e[7]||(e[7]=m(i=>n.onArrowDown("up"),["up"])),e[8]||(e[8]=m(i=>n.onArrowDown("down"),["down"]))],onFocus:e[9]||(e[9]=i=>t.$emit(t.FOCUSED_EVENT)),onBlur:e[10]||(e[10]=u((...i)=>n.checkLimit&&n.checkLimit(...i),["stop"]))},null,42,M),r(a,{variant:"flat",rounded:!1,"rounded-right":!0,"full-height":s.fullHeight,icon:"plus","icon-size":n.buttonIconSize,class:"tw-rounded-l-none",classes:n.buttonStyle,disabled:s.disabled,onMousedown:[e[11]||(e[11]=u(i=>n.onMouseDown("up"),["left"])),u(n.clearLongPressTimers,["right"]),u(n.clearLongPressTimers,["middle"])],onMouseup:n.clearLongPressTimers,onMouseleave:n.clearLongPressTimers,onTouchstart:e[12]||(e[12]=i=>n.onMouseDown("up")),onTouchend:e[13]||(e[13]=i=>n.clearLongPressTimers(i)),onTouchcancel:e[14]||(e[14]=i=>n.clearLongPressTimers(i))},null,8,["full-height","icon-size","classes","disabled","onMousedown","onMouseup","onMouseleave"])],2)}const h=P(v,[["render",V],["__scopeId","data-v-e5f3dd60"]]);v.__docgenInfo={exportName:"default",displayName:"NumberStepper",description:"",tags:{},props:[{name:"id",type:{name:"string"},defaultValue:{func:!0,value:"() => '1'"}},{name:"modelValue",type:{name:"number"},defaultValue:{func:!1,value:"undefined"}},{name:"min",type:{name:"number"},defaultValue:{func:!1,value:"1"}},{name:"max",type:{name:"number"},defaultValue:{func:!1,value:"undefined"}},{name:"dataAttribute",type:{name:"string"},defaultValue:{func:!1,value:"null"}},{name:"disabled",type:{name:"boolean"},defaultValue:{func:!1,value:"undefined"}},{name:"disableManualInput",type:{name:"boolean"},defaultValue:{func:!1,value:"undefined"}},{name:"size",type:{name:"string"},defaultValue:{func:!1,value:"'medium'"}},{name:"inputClasses",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"containerClass",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"fullHeight",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"timerToMinimum",type:{name:"number"},defaultValue:{func:!1,value:"false"}}],events:[{name:"<undefined>"},{name:"update:modelValue",type:{names:["undefined"]}},{name:"input",type:{names:["undefined"]}}],sourceFiles:["/Users/kristianbonitz/Repos/fe-shared-lib/src/atoms/components/NumberStepper/NumberStepper.vue"]};const A={title:"Components/Number Stepper",component:h},y={components:{NumberStepper:h,Button:p},data(){return{numberValue:20}}},l=()=>({...y,template:`
2
+ <div>
3
+ <div>Full width min 12 max 128</div>
4
+ <NumberStepper v-model="numberValue" id="id1" :min="12" :max="128" :disabled="false" :timer-to-minimum="750" />
5
+ <div class="tw-mt-4 tw-w-64">
6
+ <div>Fixed container width</div>
7
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
8
+ </div>
9
+ <div class="tw-mt-4 tw-w-64">
10
+ <div>Disabled</div>
11
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="true" />
12
+ </div>
13
+ <div class="tw-mt-4 tw-w-64">
14
+ <div>Disable Manual Input but allow step down and up button</div>
15
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disableManualInput="true" />
16
+ </div>
17
+ <div class="tw-mt-4 tw-w-64">
18
+ <div>Normal size</div>
19
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
20
+ </div>
21
+ <div class="tw-mt-4 tw-w-64">
22
+ <div>Bigger size</div>
23
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
24
+ </div>
25
+ <div class="tw-h-8 tw-mt-4 tw-w-64">
26
+ <div> Outer size dependent</div>
27
+ <NumberStepper size="xs" :full-height="true" :input-classes="'tw-min-w-12'" v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
28
+ </div>
29
+ </div>
30
+ `});var o,b,f;l.parameters={...l.parameters,docs:{...(o=l.parameters)==null?void 0:o.docs,source:{originalSource:`() => {
31
+ return {
32
+ ...data,
33
+ template: \`
34
+ <div>
35
+ <div>Full width min 12 max 128</div>
36
+ <NumberStepper v-model="numberValue" id="id1" :min="12" :max="128" :disabled="false" :timer-to-minimum="750" />
37
+ <div class="tw-mt-4 tw-w-64">
38
+ <div>Fixed container width</div>
39
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
40
+ </div>
41
+ <div class="tw-mt-4 tw-w-64">
42
+ <div>Disabled</div>
43
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="true" />
44
+ </div>
45
+ <div class="tw-mt-4 tw-w-64">
46
+ <div>Disable Manual Input but allow step down and up button</div>
47
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disableManualInput="true" />
48
+ </div>
49
+ <div class="tw-mt-4 tw-w-64">
50
+ <div>Normal size</div>
51
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
52
+ </div>
53
+ <div class="tw-mt-4 tw-w-64">
54
+ <div>Bigger size</div>
55
+ <NumberStepper v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
56
+ </div>
57
+ <div class="tw-h-8 tw-mt-4 tw-w-64">
58
+ <div> Outer size dependent</div>
59
+ <NumberStepper size="xs" :full-height="true" :input-classes="'tw-min-w-12'" v-model="numberValue" id="id2" :min="18" :max="25" :disabled="false" />
60
+ </div>
61
+ </div>
62
+ \`
63
+ };
64
+ }`,...(f=(b=l.parameters)==null?void 0:b.docs)==null?void 0:f.source}}};const z=["Primary"];export{l as Primary,z as __namedExportsOrder,A as default};
@@ -0,0 +1 @@
1
+ .top-class{top:3rem}@media(min-width:640px){.status-alignment{flex-direction:row;align-items:center}}@media(max-width:640px){.status-alignment{flex-direction:column}}.stripe-acct{font-size:.7rem;opacity:.5}