@trendyol/baklava 3.3.0-beta.23 → 3.3.0-beta.25

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 (165) hide show
  1. package/dist/baklava-react.d.ts +12 -0
  2. package/dist/baklava-react.d.ts.map +1 -1
  3. package/dist/baklava-react.js +1 -1
  4. package/dist/baklava-react.js.map +3 -3
  5. package/dist/baklava-vue.d.ts +1 -0
  6. package/dist/baklava.d.ts +1 -0
  7. package/dist/baklava.d.ts.map +1 -1
  8. package/dist/baklava.js +1 -1
  9. package/dist/{chunk-OAF3R4PW.js → chunk-2IJL7HNY.js} +2 -2
  10. package/dist/chunk-2IJL7HNY.js.map +7 -0
  11. package/dist/chunk-4BLKAURK.js +16 -0
  12. package/dist/chunk-4BLKAURK.js.map +7 -0
  13. package/dist/chunk-7VMGFJ5X.js +2 -0
  14. package/dist/chunk-7VMGFJ5X.js.map +7 -0
  15. package/dist/chunk-APLBTZ36.js +24 -0
  16. package/dist/chunk-APLBTZ36.js.map +7 -0
  17. package/dist/chunk-DE3A37FL.js +20 -0
  18. package/dist/chunk-DE3A37FL.js.map +7 -0
  19. package/dist/chunk-DIGACNOH.js +21 -0
  20. package/dist/chunk-DIGACNOH.js.map +7 -0
  21. package/dist/chunk-ERL6CBPO.js +31 -0
  22. package/dist/chunk-ERL6CBPO.js.map +7 -0
  23. package/dist/chunk-GFBXJPT6.js +50 -0
  24. package/dist/chunk-GFBXJPT6.js.map +7 -0
  25. package/dist/{chunk-5VEXMTA4.js → chunk-H4WETBHJ.js} +2 -2
  26. package/dist/chunk-H4WETBHJ.js.map +7 -0
  27. package/dist/chunk-HYBPEELZ.js +5 -0
  28. package/dist/chunk-HYBPEELZ.js.map +7 -0
  29. package/dist/chunk-HZV6GUII.js +26 -0
  30. package/dist/chunk-HZV6GUII.js.map +7 -0
  31. package/dist/chunk-IDRA37BX.js +59 -0
  32. package/dist/chunk-IDRA37BX.js.map +7 -0
  33. package/dist/chunk-LEAVDIGF.js +2 -0
  34. package/dist/chunk-LEAVDIGF.js.map +7 -0
  35. package/dist/chunk-MWFGDECP.js +35 -0
  36. package/dist/chunk-MWFGDECP.js.map +7 -0
  37. package/dist/chunk-MWG4TBH7.js +27 -0
  38. package/dist/chunk-MWG4TBH7.js.map +7 -0
  39. package/dist/chunk-NXVLNG4L.js +65 -0
  40. package/dist/chunk-NXVLNG4L.js.map +7 -0
  41. package/dist/chunk-OTAAXK2L.js +84 -0
  42. package/dist/chunk-OTAAXK2L.js.map +7 -0
  43. package/dist/chunk-OXHRXOBD.js +32 -0
  44. package/dist/chunk-OXHRXOBD.js.map +7 -0
  45. package/dist/{chunk-CAIHRZ24.js → chunk-Q5D7W6YP.js} +2 -2
  46. package/dist/{chunk-GMVJABPT.js → chunk-QDYWH7BU.js} +2 -2
  47. package/dist/chunk-QDYWH7BU.js.map +7 -0
  48. package/dist/chunk-RER7OLAQ.js +22 -0
  49. package/dist/chunk-RER7OLAQ.js.map +7 -0
  50. package/dist/chunk-SBCJY5IU.js +34 -0
  51. package/dist/{chunk-75V3FKJS.js.map → chunk-SBCJY5IU.js.map} +2 -2
  52. package/dist/chunk-STZJ3LBU.js +37 -0
  53. package/dist/{chunk-KBNVATXF.js.map → chunk-STZJ3LBU.js.map} +2 -2
  54. package/dist/{chunk-4BZSILLM.js → chunk-T5MEA7JO.js} +2 -2
  55. package/dist/chunk-T5MEA7JO.js.map +7 -0
  56. package/dist/chunk-TUUQIEDI.js +25 -0
  57. package/dist/chunk-TUUQIEDI.js.map +7 -0
  58. package/dist/{chunk-BNUJWONI.js → chunk-UOGCEUXK.js} +2 -2
  59. package/dist/chunk-UOGCEUXK.js.map +7 -0
  60. package/dist/chunk-WPESQSKX.js +31 -0
  61. package/dist/chunk-WPESQSKX.js.map +7 -0
  62. package/dist/chunk-X5XH4HTW.js +17 -0
  63. package/dist/chunk-X5XH4HTW.js.map +7 -0
  64. package/dist/{chunk-IGNJQVQF.js → chunk-ZE7GYACV.js} +2 -2
  65. package/dist/chunk-ZE7GYACV.js.map +7 -0
  66. package/dist/{chunk-N4GAO7FQ.js → chunk-ZJBBQHF3.js} +2 -2
  67. package/dist/chunk-ZLJF4SVG.js +4 -0
  68. package/dist/chunk-ZLJF4SVG.js.map +7 -0
  69. package/dist/components/accordion-group/accordion/bl-accordion.js +1 -1
  70. package/dist/components/accordion-group/bl-accordion-group.js +1 -1
  71. package/dist/components/alert/bl-alert.js +1 -1
  72. package/dist/components/badge/bl-badge.js +1 -1
  73. package/dist/components/button/bl-button.js +1 -1
  74. package/dist/components/calendar/bl-calendar.d.ts.map +1 -1
  75. package/dist/components/calendar/bl-calendar.js +1 -1
  76. package/dist/components/checkbox-group/bl-checkbox-group.js +1 -1
  77. package/dist/components/checkbox-group/checkbox/bl-checkbox.js +1 -1
  78. package/dist/components/datepicker/bl-datepicker.js +1 -1
  79. package/dist/components/dialog/bl-dialog.js +1 -1
  80. package/dist/components/drawer/bl-drawer.js +1 -1
  81. package/dist/components/dropdown/bl-dropdown.js +1 -1
  82. package/dist/components/dropdown/group/bl-dropdown-group.js +1 -1
  83. package/dist/components/dropdown/item/bl-dropdown-item.js +1 -1
  84. package/dist/components/input/bl-input.js +1 -1
  85. package/dist/components/notification/bl-notification.js +1 -1
  86. package/dist/components/notification/bl-notification.stories.d.ts.map +1 -1
  87. package/dist/components/notification/bl-notification.stories.js +30 -196
  88. package/dist/components/notification/bl-notification.stories.js.map +3 -3
  89. package/dist/components/notification/card/bl-notification-card.js +1 -1
  90. package/dist/components/pagination/bl-pagination.js +1 -1
  91. package/dist/components/popover/bl-popover.js +1 -1
  92. package/dist/components/progress-indicator/bl-progress-indicator.js +1 -1
  93. package/dist/components/radio-group/bl-radio-group.js +1 -1
  94. package/dist/components/radio-group/radio/bl-radio.js +1 -1
  95. package/dist/components/select/bl-select.js +1 -1
  96. package/dist/components/select/option/bl-select-option.js +1 -1
  97. package/dist/components/spinner/bl-spinner.js +1 -1
  98. package/dist/components/split-button/bl-split-button.js +1 -1
  99. package/dist/components/switch/bl-switch.js +1 -1
  100. package/dist/components/tab-group/bl-tab-group.js +1 -1
  101. package/dist/components/tab-group/tab/bl-tab.js +1 -1
  102. package/dist/components/table/table-cell/bl-table-cell.js +1 -1
  103. package/dist/components/table/table-header/bl-table-header.js +1 -1
  104. package/dist/components/table/table-header-cell/bl-table-header-cell.js +1 -1
  105. package/dist/components/table/table-row/bl-table-row.js +1 -1
  106. package/dist/components/tag/bl-tag.d.ts +52 -0
  107. package/dist/components/tag/bl-tag.d.ts.map +1 -0
  108. package/dist/components/tag/bl-tag.js +2 -0
  109. package/dist/components/tag/bl-tag.js.map +7 -0
  110. package/dist/components/tag/bl-tag.test.d.ts +2 -0
  111. package/dist/components/tag/bl-tag.test.d.ts.map +1 -0
  112. package/dist/components/textarea/bl-textarea.js +1 -1
  113. package/dist/components/tooltip/bl-tooltip.js +1 -1
  114. package/dist/custom-elements.json +112 -0
  115. package/package.json +1 -1
  116. package/dist/chunk-4BZSILLM.js.map +0 -7
  117. package/dist/chunk-4QFXDW3W.js +0 -31
  118. package/dist/chunk-4QFXDW3W.js.map +0 -7
  119. package/dist/chunk-5VEXMTA4.js.map +0 -7
  120. package/dist/chunk-73RGV4UX.js +0 -16
  121. package/dist/chunk-73RGV4UX.js.map +0 -7
  122. package/dist/chunk-757CMI4A.js +0 -78
  123. package/dist/chunk-757CMI4A.js.map +0 -7
  124. package/dist/chunk-75V3FKJS.js +0 -34
  125. package/dist/chunk-BNUJWONI.js.map +0 -7
  126. package/dist/chunk-CJDCQC7C.js +0 -50
  127. package/dist/chunk-CJDCQC7C.js.map +0 -7
  128. package/dist/chunk-FCEMOH4J.js +0 -27
  129. package/dist/chunk-FCEMOH4J.js.map +0 -7
  130. package/dist/chunk-FTQX7CEW.js +0 -35
  131. package/dist/chunk-FTQX7CEW.js.map +0 -7
  132. package/dist/chunk-FVBGMXMC.js +0 -17
  133. package/dist/chunk-FVBGMXMC.js.map +0 -7
  134. package/dist/chunk-GMVJABPT.js.map +0 -7
  135. package/dist/chunk-GXDVWGFU.js +0 -32
  136. package/dist/chunk-GXDVWGFU.js.map +0 -7
  137. package/dist/chunk-IGNJQVQF.js.map +0 -7
  138. package/dist/chunk-ILK55FB6.js +0 -65
  139. package/dist/chunk-ILK55FB6.js.map +0 -7
  140. package/dist/chunk-J45OQI7D.js +0 -20
  141. package/dist/chunk-J45OQI7D.js.map +0 -7
  142. package/dist/chunk-JAZGOWKA.js +0 -2
  143. package/dist/chunk-JAZGOWKA.js.map +0 -7
  144. package/dist/chunk-KBNVATXF.js +0 -37
  145. package/dist/chunk-NGJM4NWA.js +0 -4
  146. package/dist/chunk-NGJM4NWA.js.map +0 -7
  147. package/dist/chunk-OAF3R4PW.js.map +0 -7
  148. package/dist/chunk-QMVEWMEI.js +0 -20
  149. package/dist/chunk-QMVEWMEI.js.map +0 -7
  150. package/dist/chunk-S6HEBXIR.js +0 -84
  151. package/dist/chunk-S6HEBXIR.js.map +0 -7
  152. package/dist/chunk-T5EQ4OXS.js +0 -2
  153. package/dist/chunk-T5EQ4OXS.js.map +0 -7
  154. package/dist/chunk-UZJOCLOO.js +0 -21
  155. package/dist/chunk-UZJOCLOO.js.map +0 -7
  156. package/dist/chunk-VU6LRFZR.js +0 -26
  157. package/dist/chunk-VU6LRFZR.js.map +0 -7
  158. package/dist/chunk-WXWKIQAK.js +0 -22
  159. package/dist/chunk-WXWKIQAK.js.map +0 -7
  160. package/dist/chunk-X73CSBRO.js +0 -24
  161. package/dist/chunk-X73CSBRO.js.map +0 -7
  162. package/dist/chunk-YZRAUVUQ.js +0 -31
  163. package/dist/chunk-YZRAUVUQ.js.map +0 -7
  164. /package/dist/{chunk-CAIHRZ24.js.map → chunk-Q5D7W6YP.js.map} +0 -0
  165. /package/dist/{chunk-N4GAO7FQ.js.map → chunk-ZJBBQHF3.js.map} +0 -0
@@ -1,9 +1,9 @@
1
- import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT5P2.js";import{b as t}from"../../chunk-4OT5AMS5.js";import{e as n}from"../../chunk-IZ2LK5GK.js";var A={title:"Components/Notification",component:"bl-notification",parameters:{chromatic:{viewports:[1e3]}},decorators:[s],argTypes:{duration:{control:"number",description:"Duration in seconds",defaultValue:7},caption:{control:"text",description:"Caption of the notification"},description:{control:"text",description:"Description of the notification. Required."},icon:{control:"text",defaultValue:"true",description:"Icon of the notification. If provided with a string, it will be used as an icon name. If provided with a boolean, it will use the default icon or no icon."},variant:{options:["info","warning","success","error"],default:"info",control:{type:"select"},description:"Variant of the notification"},permanent:{control:"boolean",defaultValue:!1,description:"If true, the notification will not have duration and will be removed when the user clicks on the close button."},primaryAction:{control:"object",description:"Primary action of the notification. onClick and label properties are required."},secondaryAction:{control:"object",description:"Secondary action of the notification. onClick and label properties are required."}},args:{noAnimation:!1,duration:20,caption:"Notification Caption",description:"Notification Description",icon:"true",variant:"info",permanent:!1,primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}}},g=A,a=i=>{let o=document.querySelector("bl-notification");return o==null?void 0:o.addNotification(i)},b=i=>JSON.stringify(i,null,6),e=i=>t`
1
+ import{a as p}from"../../chunk-HSVSMABT.js";import{a as s}from"../../chunk-DINNT5P2.js";import{b as t}from"../../chunk-4OT5AMS5.js";import{e}from"../../chunk-IZ2LK5GK.js";var A={title:"Components/Notification",component:"bl-notification",parameters:{chromatic:{viewports:[1e3]}},decorators:[p],argTypes:{duration:{control:"number",description:"Duration in seconds",defaultValue:7},caption:{control:"text",description:"Caption of the notification"},description:{control:"text",description:"Description of the notification. Required."},icon:{control:"text",defaultValue:"true",description:"Icon of the notification. If provided with a string, it will be used as an icon name. If provided with a boolean, it will use the default icon or no icon."},variant:{options:["info","warning","success","error"],default:"info",control:{type:"select"},description:"Variant of the notification"},permanent:{control:"boolean",defaultValue:!1,description:"If true, the notification will not have duration and will be removed when the user clicks on the close button."},primaryAction:{control:"object",description:"Primary action of the notification. onClick and label properties are required."},secondaryAction:{control:"object",description:"Secondary action of the notification. onClick and label properties are required."}},args:{noAnimation:!1,duration:20,caption:"Notification Caption",description:"Notification Description",icon:"true",variant:"info",permanent:!1,primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}}},k=A,c=i=>{let o=document.querySelector("bl-notification");return o==null?void 0:o.addNotification(i)},b=i=>JSON.stringify(i,null,6),r=i=>t`
2
2
  <bl-notification
3
3
  ?no-animation=${i.noAnimation}
4
- duration=${r(i.duration)}
4
+ duration=${s(i.duration)}
5
5
  ></bl-notification>
6
- `,f,c=(i,o="Add Notification")=>{let l=o.toLowerCase().replace(/\s/g,"-");return t(f||(f=n([`
6
+ `,d,n=(i,o="Add Notification")=>{let a=o.toLowerCase().replace(/\s/g,"-");return t(d||(d=e([`
7
7
  <bl-button id=`,">",`</bl-button>
8
8
 
9
9
  <script>
@@ -16,7 +16,7 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
16
16
  });
17
17
  })();
18
18
  <\/script>
19
- `])),l,o,l,b(i))},S={render(i){return t`${e(i)} ${c(i)} `},args:{duration:60,primaryAction:void 0,secondaryAction:void 0},play:({args:i})=>{a(i),a({...i,variant:"success"}),a({...i,variant:"warning"}),a({...i,variant:"error"})}},d,k={render(i){return t(d||(d=n([`
19
+ `])),a,o,a,b(i))},E={render(i){return t`${r(i)} ${n(i)} `},args:{duration:60,primaryAction:void 0,secondaryAction:void 0},play:({args:i})=>{c(i),c({...i,variant:"success"}),c({...i,variant:"warning"}),c({...i,variant:"error"})}},f,g={render(i){return t(f||(f=e([`
20
20
  `,`
21
21
  <bl-button>Remove Notification</bl-button>
22
22
 
@@ -36,7 +36,7 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
36
36
  });
37
37
  })();
38
38
  <\/script>
39
- `])),e(i))}},p,E={render(i){return t(p||(p=n([`
39
+ `])),r(i))}},m,w={render(i){return t(m||(m=e([`
40
40
  `,`
41
41
  <bl-button>Remove Notifications</bl-button>
42
42
 
@@ -70,7 +70,7 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
70
70
  });
71
71
  })();
72
72
  <\/script>
73
- `])),e(i))}},m,h={render(i){return t(m||(m=n([`
73
+ `])),r(i))}},u,$={render(i){return t(u||(u=e([`
74
74
  `,`
75
75
  <script>
76
76
  (function () {
@@ -89,7 +89,7 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
89
89
  });
90
90
  })();
91
91
  <\/script>
92
- `])),e(i))}},u,w={render(i){return t(u||(u=n([`
92
+ `])),r(i))}},y,h={render(i){return t(y||(y=e([`
93
93
  `,`
94
94
  <script>
95
95
  (function () {
@@ -114,7 +114,7 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
114
114
  });
115
115
  })();
116
116
  <\/script>
117
- `])),e(i))}},y,$={render(i){return t(y||(y=n([`
117
+ `])),r(i))}},N,x={render(i){return t(N||(N=e([`
118
118
  `,`
119
119
  <script>
120
120
  (function () {
@@ -139,193 +139,27 @@ import{a as s}from"../../chunk-HSVSMABT.js";import{a as r}from"../../chunk-DINNT
139
139
  });
140
140
  })();
141
141
  <\/script>
142
- `])),e(i))},play:()=>{a({caption:"Notification Caption",description:"Notification Description",permanent:!0,primaryAction:{label:"Primary Action",onClick:i=>{i.remove()}},secondaryAction:{label:"Secondary Action",onClick:i=>{i.remove()}}})}},L={render(i){return t` ${e(i)} ${c(i)} `},args:{permanent:!0},play:({args:i})=>{a(i)}},P={render(i){return t`
143
- ${e(i)}
144
- ${c({caption:"Notification Caption",description:"Notification Variant: info",permanent:!0,variant:"info",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Info")}
145
- ${c({caption:"Notification Caption",description:"Notification Variant: success",permanent:!0,variant:"success",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Success")}
146
- ${c({caption:"Notification Caption",description:"Notification Variant: warning",permanent:!0,variant:"warning",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Warning")}
147
- ${c({caption:"Notification Caption",description:"Notification Variant: error",permanent:!0,variant:"error",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Error")}
148
- `},play:()=>{let i=["info","success","warning","error"];for(let o of i)a({caption:"Notification Caption",description:`Notification Variant: ${o}`,permanent:!0,variant:o,primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}})}},N,R={render(i){return t(N||(N=n([`
149
- <div style="display: flex; flex-direction: column; gap: 32px;">
150
- <!-- Interactive Controls -->
151
- <div style="display: flex; gap: 16px; align-items: center;">
152
- <bl-button id="add-notifications" variant="primary">Add Sample Notifications</bl-button>
153
- <bl-button id="clear-notifications" variant="danger">Clear All</bl-button>
154
- </div>
155
-
156
- <!-- Demo Container -->
157
- <div style="display: flex; gap: 32px;">
158
- <!-- LTR Example -->
159
- <div style="flex: 1; min-width: 400px;">
160
- <bl-notification
161
- id="ltr-notification"
162
- ?no-animation=`,`
163
- duration=`,`
164
- ></bl-notification>
165
- </div>
166
-
167
- <!-- RTL Example -->
168
- <div style="flex: 1; min-width: 400px;" dir="rtl">
169
- <bl-notification
170
- id="rtl-notification"
171
- ?no-animation=`,`
172
- duration=`,`
173
- ></bl-notification>
174
- </div>
175
- </div>
176
-
177
- <script>
178
- (function() {
179
- // Store active notifications for proper cleanup
180
- let activeNotifications = {
181
- ltr: [],
182
- rtl: []
183
- };
184
-
185
- const ltrNotification = document.getElementById('ltr-notification');
186
- const rtlNotification = document.getElementById('rtl-notification');
187
- const addButton = document.getElementById('add-notifications');
188
- const clearButton = document.getElementById('clear-notifications');
189
-
190
- // Sample notifications data with different variants and configurations
191
- const notificationExamples = [
192
- {
193
- variant: 'info',
194
- caption: { en: 'Welcome Message', ar: '\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628' },
195
- description: {
196
- en: 'Welcome to our application! We hope you enjoy your experience.',
197
- ar: '\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.'
198
- },
199
- icon: 'info',
200
- primaryAction: {
201
- label: { en: 'Get Started', ar: '\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646' },
202
- onClick: () => {}
203
- }
204
- },
205
- {
206
- variant: 'success',
207
- caption: { en: 'Task Completed', ar: '\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629' },
208
- description: {
209
- en: 'Your task has been successfully completed.',
210
- ar: '\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.'
211
- },
212
- icon: 'check_fill'
213
- },
214
- {
215
- variant: 'warning',
216
- caption: { en: 'Storage Alert', ar: '\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646' },
217
- description: {
218
- en: 'You are running low on storage space.',
219
- ar: '\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.'
220
- },
221
- icon: 'warning',
222
- primaryAction: {
223
- label: { en: 'Upgrade', ar: '\u062A\u0631\u0642\u064A\u0629' },
224
- onClick: () => {}
225
- },
226
- secondaryAction: {
227
- label: { en: 'Learn More', ar: '\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F' },
228
- onClick: () => {}
229
- }
230
- },
231
- {
232
- variant: 'error',
233
- caption: { en: 'Connection Error', ar: '\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644' },
234
- description: {
235
- en: 'Unable to connect to the server. Please try again.',
236
- ar: '\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.'
237
- },
238
- icon: 'close_fill',
239
- primaryAction: {
240
- label: { en: 'Retry', ar: '\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629' },
241
- onClick: () => {}
242
- }
243
- }
244
- ];
245
-
246
- // Function to clear all notifications
247
- const clearAllNotifications = async () => {
248
- // Clear LTR notifications
249
- if (activeNotifications.ltr.length > 0) {
250
- for (const notification of activeNotifications.ltr) {
251
- await notification.remove();
252
- }
253
- activeNotifications.ltr = [];
254
- }
255
-
256
- // Clear RTL notifications
257
- if (activeNotifications.rtl.length > 0) {
258
- for (const notification of activeNotifications.rtl) {
259
- await notification.remove();
260
- }
261
- activeNotifications.rtl = [];
262
- }
263
- };
264
-
265
- // Function to create notifications
266
- const createNotifications = (isRTL) => {
267
- const targetElement = isRTL ? rtlNotification : ltrNotification;
268
- const lang = isRTL ? 'ar' : 'en';
269
- const notificationList = isRTL ? activeNotifications.rtl : activeNotifications.ltr;
270
-
271
- notificationExamples.forEach((example, index) => {
272
- setTimeout(() => {
273
- const notification = targetElement.addNotification({
274
- variant: example.variant,
275
- caption: example.caption[lang],
276
- description: example.description[lang],
277
- icon: example.icon,
278
- permanent: true,
279
- ...(example.primaryAction && {
280
- primaryAction: {
281
- label: example.primaryAction.label[lang],
282
- onClick: () => {
283
- example.primaryAction.onClick();
284
- notification.remove();
285
- const index = notificationList.indexOf(notification);
286
- if (index > -1) {
287
- notificationList.splice(index, 1);
288
- }
289
- }
290
- }
291
- }),
292
- ...(example.secondaryAction && {
293
- secondaryAction: {
294
- label: example.secondaryAction.label[lang],
295
- onClick: () => {
296
- example.secondaryAction.onClick();
297
- notification.remove();
298
- const index = notificationList.indexOf(notification);
299
- if (index > -1) {
300
- notificationList.splice(index, 1);
301
- }
302
- }
303
- }
304
- })
305
- });
306
-
307
- // Store the notification reference
308
- notificationList.push(notification);
309
- }, index * 300); // Stagger the notifications
310
- });
311
- };
312
-
313
- // Add button click handler
314
- addButton.addEventListener('bl-click', () => {
315
- clearAllNotifications().then(() => {
316
- createNotifications(false); // LTR
317
- createNotifications(true); // RTL
318
- });
319
- });
320
-
321
- // Clear button click handler
322
- clearButton.addEventListener('bl-click', clearAllNotifications);
323
-
324
- // Initial notifications
325
- createNotifications(false);
326
- createNotifications(true);
327
- })();
328
- <\/script>
142
+ `])),r(i))},play:()=>{c({caption:"Notification Caption",description:"Notification Description",permanent:!0,primaryAction:{label:"Primary Action",onClick:i=>{i.remove()}},secondaryAction:{label:"Secondary Action",onClick:i=>{i.remove()}}})}},P={render(i){return t` ${r(i)} ${n(i)} `},args:{permanent:!0},play:({args:i})=>{c(i)}},q={render(i){return t`
143
+ ${r(i)}
144
+ ${n({caption:"Notification Caption",description:"Notification Variant: info",permanent:!0,variant:"info",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Info")}
145
+ ${n({caption:"Notification Caption",description:"Notification Variant: success",permanent:!0,variant:"success",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Success")}
146
+ ${n({caption:"Notification Caption",description:"Notification Variant: warning",permanent:!0,variant:"warning",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Warning")}
147
+ ${n({caption:"Notification Caption",description:"Notification Variant: error",permanent:!0,variant:"error",primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}},"Error")}
148
+ `},play:()=>{let i=["info","success","warning","error"];for(let o of i)c({caption:"Notification Caption",description:`Notification Variant: ${o}`,permanent:!0,variant:o,primaryAction:{label:"Primary Action",onClick(){}},secondaryAction:{label:"Secondary Action",onClick(){}}})}},D={render(i){return t`
149
+ <div class="rtl-container" dir="rtl" lang="ar">
150
+ ${r(i)}
151
+ ${n({caption:"\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628",description:"\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.",duration:7,variant:"info",icon:!0,primaryAction:{label:"\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646",onClick(){}}},"Info")}
152
+ ${n({caption:"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629",description:"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.",duration:10,variant:"success",icon:!0},"Success")}
153
+ ${n({caption:"\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646",description:"\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.",duration:15,variant:"warning",icon:!0,primaryAction:{label:"\u062A\u0631\u0642\u064A\u0629",onClick(){}},secondaryAction:{label:"\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F",onClick(){}}},"Warning")}
154
+ ${n({caption:"\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644",description:"\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",duration:20,variant:"error",icon:!0,primaryAction:{label:"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",onClick(){}}},"Error")}
329
155
  </div>
330
- `])),i.noAnimation,r(i.duration),i.noAnimation,r(i.duration))},args:{noAnimation:!0,duration:0}};export{$ as ActionsRemoveExample,S as AddExample,L as PermanentExample,h as PrimaryActionExample,R as RTLExample,E as RemoveAwaitExample,k as RemoveExample,w as SecondaryActionExample,P as VariantsExample,g as default};
156
+
157
+ <style>
158
+ .rtl-container {
159
+ width: 100%;
160
+ min-height: 100%;
161
+ padding: 1rem;
162
+ }
163
+ </style>
164
+ `},play:()=>{[{caption:"\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628",description:"\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.",duration:7,variant:"info",icon:!0,primaryAction:{label:"\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646",onClick(){}}},{caption:"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629",description:"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.",duration:10,variant:"success",icon:!0},{caption:"\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646",description:"\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.",duration:15,variant:"warning",icon:!0,primaryAction:{label:"\u062A\u0631\u0642\u064A\u0629",onClick(){}},secondaryAction:{label:"\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F",onClick(){}}},{caption:"\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644",description:"\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",duration:20,variant:"error",icon:!0,primaryAction:{label:"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",onClick(){}}}].forEach((o,a)=>{setTimeout(()=>{let l=document.querySelector(".rtl-container bl-notification");l==null||l.addNotification(o)},a*300)})},args:{noAnimation:!0,duration:7}};export{x as ActionsRemoveExample,E as AddExample,P as PermanentExample,$ as PrimaryActionExample,D as RTLExample,w as RemoveAwaitExample,g as RemoveExample,h as SecondaryActionExample,q as VariantsExample,k as default};
331
165
  //# sourceMappingURL=bl-notification.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/notification/bl-notification.stories.ts"],
4
- "sourcesContent": ["import { Meta, StoryObj } from \"@storybook/web-components\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { fullscreenLayout } from \"../../utilities/chromatic-decorators\";\nimport type { Notification, NotificationProps } from \"./bl-notification\";\n\nconst meta: Meta = {\n title: \"Components/Notification\",\n component: \"bl-notification\",\n parameters: {\n chromatic: {\n viewports: [1000],\n },\n },\n decorators: [fullscreenLayout],\n argTypes: {\n // Notification Card Props\n duration: {\n control: \"number\",\n description: \"Duration in seconds\",\n defaultValue: 7,\n },\n caption: {\n control: \"text\",\n description: \"Caption of the notification\",\n },\n description: {\n control: \"text\",\n description: \"Description of the notification. Required.\",\n },\n icon: {\n control: \"text\",\n defaultValue: \"true\",\n description:\n \"Icon of the notification. If provided with a string, it will be used as an icon name. If provided with a boolean, it will use the default icon or no icon.\",\n },\n variant: {\n options: [\"info\", \"warning\", \"success\", \"error\"],\n default: \"info\",\n control: { type: \"select\" },\n description: \"Variant of the notification\",\n },\n permanent: {\n control: \"boolean\",\n defaultValue: false,\n description:\n \"If true, the notification will not have duration and will be removed when the user clicks on the close button.\",\n },\n primaryAction: {\n control: \"object\",\n description: \"Primary action of the notification. onClick and label properties are required.\",\n },\n secondaryAction: {\n control: \"object\",\n description:\n \"Secondary action of the notification. onClick and label properties are required.\",\n },\n },\n args: {\n noAnimation: false,\n duration: 20,\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n icon: \"true\",\n variant: \"info\",\n permanent: false,\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n};\n\nexport default meta;\n\nconst addNotification = (options: NotificationProps) => {\n const el = document.querySelector(\"bl-notification\");\n\n return el?.addNotification(options);\n};\n\nconst stringifyArgs = (args: NotificationArgs | NotificationProps) => {\n return JSON.stringify(args, null, 6);\n};\n\nexport type NotificationArgs = {\n noAnimation: boolean;\n duration: number;\n} & NotificationProps;\n\nexport type Story = StoryObj<NotificationArgs>;\n\nconst BasicTemplate = (args: NotificationArgs) => html`\n <bl-notification\n ?no-animation=${args.noAnimation}\n duration=${ifDefined(args.duration)}\n ></bl-notification>\n`;\n\nconst NotificationCreator = (args: NotificationProps, buttonLabel = \"Add Notification\") => {\n const slug = buttonLabel.toLowerCase().replace(/\\s/g, \"-\");\n\n return html`\n <bl-button id=${slug}>${buttonLabel}</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const addButton = document.querySelector(\"bl-button#${slug}\");\n\n addButton.addEventListener(\"bl-click\", () => {\n notificationElement.addNotification(${stringifyArgs(args)});\n });\n })();\n </script>\n `;\n};\n\nexport const AddExample: Story = {\n render(args: NotificationArgs) {\n return html`${BasicTemplate(args)} ${NotificationCreator(args)} `;\n },\n args: {\n duration: 60,\n primaryAction: undefined,\n secondaryAction: undefined,\n },\n play: ({ args }) => {\n addNotification(args);\n addNotification({ ...args, variant: \"success\" });\n addNotification({ ...args, variant: \"warning\" });\n addNotification({ ...args, variant: \"error\" });\n },\n};\n\nexport const RemoveExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <bl-button>Remove Notification</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const removeButton = document.querySelector(\"bl-button\");\n\n const notification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n });\n\n removeButton.addEventListener(\"bl-click\", () => {\n notification.remove(); // notificationElement.removeNotification(notification.id);\n });\n })();\n </script>\n `;\n },\n};\n\nexport const RemoveAwaitExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <bl-button>Remove Notifications</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const removeButton = document.querySelector(\"bl-button\");\n\n const firstNotification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n });\n\n const secondNotification = notificationElement.addNotification({\n caption: \"Notification Caption Second\",\n description: \"Notification Description Second\",\n permanent: true,\n });\n\n const thirdNotification = notificationElement.addNotification({\n caption: \"Notification Caption Third\",\n description: \"Notification Description Third\",\n permanent: true,\n });\n\n removeButton.addEventListener(\"bl-click\", async () => {\n await secondNotification.remove();\n await thirdNotification.remove();\n await firstNotification.remove();\n });\n })();\n </script>\n `;\n },\n};\n\nexport const PrimaryActionExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: () => {\n window.alert(\"Primary Action Clicked\");\n },\n },\n });\n })();\n </script>\n `;\n },\n};\n\nexport const SecondaryActionExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: () => {\n window.alert(\"Primary Action Clicked\");\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: () => {\n window.alert(\"Secondary Action Clicked\");\n },\n },\n });\n })();\n </script>\n `;\n },\n};\n\nexport const ActionsRemoveExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n const notification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: notification => {\n notification.remove();\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: notification => {\n notification.remove();\n },\n },\n });\n })();\n </script>\n `;\n },\n play: () => {\n addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: (notification: Notification) => {\n notification.remove();\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: (notification: Notification) => {\n notification.remove();\n },\n },\n });\n },\n};\n\nexport const PermanentExample: Story = {\n render(args: NotificationArgs) {\n return html` ${BasicTemplate(args)} ${NotificationCreator(args)} `;\n },\n args: {\n permanent: true,\n },\n play: ({ args }) => {\n addNotification(args);\n },\n};\n\nexport const VariantsExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: info\",\n permanent: true,\n variant: \"info\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Info\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: success\",\n permanent: true,\n variant: \"success\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Success\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: warning\",\n permanent: true,\n variant: \"warning\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Warning\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: error\",\n permanent: true,\n variant: \"error\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Error\"\n )}\n `;\n },\n play: () => {\n const variants = [\"info\", \"success\", \"warning\", \"error\"] as const;\n\n for (const variant of variants) {\n addNotification({\n caption: \"Notification Caption\",\n description: `Notification Variant: ${variant}`,\n permanent: true,\n variant,\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n });\n }\n },\n};\n\nexport const RTLExample: Story = {\n render(args: NotificationArgs) {\n return html`\n <div style=\"display: flex; flex-direction: column; gap: 32px;\">\n <!-- Interactive Controls -->\n <div style=\"display: flex; gap: 16px; align-items: center;\">\n <bl-button id=\"add-notifications\" variant=\"primary\">Add Sample Notifications</bl-button>\n <bl-button id=\"clear-notifications\" variant=\"danger\">Clear All</bl-button>\n </div>\n\n <!-- Demo Container -->\n <div style=\"display: flex; gap: 32px;\">\n <!-- LTR Example -->\n <div style=\"flex: 1; min-width: 400px;\">\n <bl-notification\n id=\"ltr-notification\"\n ?no-animation=${args.noAnimation}\n duration=${ifDefined(args.duration)}\n ></bl-notification>\n </div>\n\n <!-- RTL Example -->\n <div style=\"flex: 1; min-width: 400px;\" dir=\"rtl\">\n <bl-notification\n id=\"rtl-notification\"\n ?no-animation=${args.noAnimation}\n duration=${ifDefined(args.duration)}\n ></bl-notification>\n </div>\n </div>\n\n <script>\n (function() {\n // Store active notifications for proper cleanup\n let activeNotifications = {\n ltr: [],\n rtl: []\n };\n\n const ltrNotification = document.getElementById('ltr-notification');\n const rtlNotification = document.getElementById('rtl-notification');\n const addButton = document.getElementById('add-notifications');\n const clearButton = document.getElementById('clear-notifications');\n\n // Sample notifications data with different variants and configurations\n const notificationExamples = [\n {\n variant: 'info',\n caption: { en: 'Welcome Message', ar: '\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628' },\n description: {\n en: 'Welcome to our application! We hope you enjoy your experience.',\n ar: '\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.'\n },\n icon: 'info',\n primaryAction: {\n label: { en: 'Get Started', ar: '\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646' },\n onClick: () => {}\n }\n },\n {\n variant: 'success',\n caption: { en: 'Task Completed', ar: '\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629' },\n description: {\n en: 'Your task has been successfully completed.',\n ar: '\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.'\n },\n icon: 'check_fill'\n },\n {\n variant: 'warning',\n caption: { en: 'Storage Alert', ar: '\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646' },\n description: {\n en: 'You are running low on storage space.',\n ar: '\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.'\n },\n icon: 'warning',\n primaryAction: {\n label: { en: 'Upgrade', ar: '\u062A\u0631\u0642\u064A\u0629' },\n onClick: () => {}\n },\n secondaryAction: {\n label: { en: 'Learn More', ar: '\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F' },\n onClick: () => {}\n }\n },\n {\n variant: 'error',\n caption: { en: 'Connection Error', ar: '\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644' },\n description: {\n en: 'Unable to connect to the server. Please try again.',\n ar: '\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.'\n },\n icon: 'close_fill',\n primaryAction: {\n label: { en: 'Retry', ar: '\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629' },\n onClick: () => {}\n }\n }\n ];\n\n // Function to clear all notifications\n const clearAllNotifications = async () => {\n // Clear LTR notifications\n if (activeNotifications.ltr.length > 0) {\n for (const notification of activeNotifications.ltr) {\n await notification.remove();\n }\n activeNotifications.ltr = [];\n }\n\n // Clear RTL notifications\n if (activeNotifications.rtl.length > 0) {\n for (const notification of activeNotifications.rtl) {\n await notification.remove();\n }\n activeNotifications.rtl = [];\n }\n };\n\n // Function to create notifications\n const createNotifications = (isRTL) => {\n const targetElement = isRTL ? rtlNotification : ltrNotification;\n const lang = isRTL ? 'ar' : 'en';\n const notificationList = isRTL ? activeNotifications.rtl : activeNotifications.ltr;\n\n notificationExamples.forEach((example, index) => {\n setTimeout(() => {\n const notification = targetElement.addNotification({\n variant: example.variant,\n caption: example.caption[lang],\n description: example.description[lang],\n icon: example.icon,\n permanent: true,\n ...(example.primaryAction && {\n primaryAction: {\n label: example.primaryAction.label[lang],\n onClick: () => {\n example.primaryAction.onClick();\n notification.remove();\n const index = notificationList.indexOf(notification);\n if (index > -1) {\n notificationList.splice(index, 1);\n }\n }\n }\n }),\n ...(example.secondaryAction && {\n secondaryAction: {\n label: example.secondaryAction.label[lang],\n onClick: () => {\n example.secondaryAction.onClick();\n notification.remove();\n const index = notificationList.indexOf(notification);\n if (index > -1) {\n notificationList.splice(index, 1);\n }\n }\n }\n })\n });\n\n // Store the notification reference\n notificationList.push(notification);\n }, index * 300); // Stagger the notifications\n });\n };\n\n // Add button click handler\n addButton.addEventListener('bl-click', () => {\n clearAllNotifications().then(() => {\n createNotifications(false); // LTR\n createNotifications(true); // RTL\n });\n });\n\n // Clear button click handler\n clearButton.addEventListener('bl-click', clearAllNotifications);\n\n // Initial notifications\n createNotifications(false);\n createNotifications(true);\n })();\n </script>\n </div>\n `;\n },\n args: {\n noAnimation: true,\n duration: 0,\n },\n};\n"],
5
- "mappings": "gLAMA,IAAMA,EAAa,CACjB,MAAO,0BACP,UAAW,kBACX,WAAY,CACV,UAAW,CACT,UAAW,CAAC,GAAI,CAClB,CACF,EACA,WAAY,CAACC,CAAgB,EAC7B,SAAU,CAER,SAAU,CACR,QAAS,SACT,YAAa,sBACb,aAAc,CAChB,EACA,QAAS,CACP,QAAS,OACT,YAAa,6BACf,EACA,YAAa,CACX,QAAS,OACT,YAAa,4CACf,EACA,KAAM,CACJ,QAAS,OACT,aAAc,OACd,YACE,4JACJ,EACA,QAAS,CACP,QAAS,CAAC,OAAQ,UAAW,UAAW,OAAO,EAC/C,QAAS,OACT,QAAS,CAAE,KAAM,QAAS,EAC1B,YAAa,6BACf,EACA,UAAW,CACT,QAAS,UACT,aAAc,GACd,YACE,gHACJ,EACA,cAAe,CACb,QAAS,SACT,YAAa,gFACf,EACA,gBAAiB,CACf,QAAS,SACT,YAC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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAVnBR,EAAK,YACVG,EAAUH,EAAK,QAAQ,EAQlBA,EAAK,YACVG,EAAUH,EAAK,QAAQ,EA+JhD,EACA,KAAM,CACJ,YAAa,GACb,SAAU,CACZ,CACF",
6
- "names": ["meta", "fullscreenLayout", "bl_notification_stories_default", "addNotification", "options", "el", "stringifyArgs", "args", "BasicTemplate", "x", "l", "_a", "NotificationCreator", "buttonLabel", "slug", "__template", "AddExample", "_b", "RemoveExample", "_c", "RemoveAwaitExample", "_d", "PrimaryActionExample", "_e", "SecondaryActionExample", "_f", "ActionsRemoveExample", "notification", "PermanentExample", "VariantsExample", "variants", "variant", "_g", "RTLExample"]
4
+ "sourcesContent": ["import { Meta, StoryObj } from \"@storybook/web-components\";\nimport { html } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { fullscreenLayout } from \"../../utilities/chromatic-decorators\";\nimport type { Notification, NotificationProps } from \"./bl-notification\";\n\nconst meta: Meta = {\n title: \"Components/Notification\",\n component: \"bl-notification\",\n parameters: {\n chromatic: {\n viewports: [1000],\n },\n },\n decorators: [fullscreenLayout],\n argTypes: {\n // Notification Card Props\n duration: {\n control: \"number\",\n description: \"Duration in seconds\",\n defaultValue: 7,\n },\n caption: {\n control: \"text\",\n description: \"Caption of the notification\",\n },\n description: {\n control: \"text\",\n description: \"Description of the notification. Required.\",\n },\n icon: {\n control: \"text\",\n defaultValue: \"true\",\n description:\n \"Icon of the notification. If provided with a string, it will be used as an icon name. If provided with a boolean, it will use the default icon or no icon.\",\n },\n variant: {\n options: [\"info\", \"warning\", \"success\", \"error\"],\n default: \"info\",\n control: { type: \"select\" },\n description: \"Variant of the notification\",\n },\n permanent: {\n control: \"boolean\",\n defaultValue: false,\n description:\n \"If true, the notification will not have duration and will be removed when the user clicks on the close button.\",\n },\n primaryAction: {\n control: \"object\",\n description: \"Primary action of the notification. onClick and label properties are required.\",\n },\n secondaryAction: {\n control: \"object\",\n description:\n \"Secondary action of the notification. onClick and label properties are required.\",\n },\n },\n args: {\n noAnimation: false,\n duration: 20,\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n icon: \"true\",\n variant: \"info\",\n permanent: false,\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n};\n\nexport default meta;\n\nconst addNotification = (options: NotificationProps) => {\n const el = document.querySelector(\"bl-notification\");\n\n return el?.addNotification(options);\n};\n\nconst stringifyArgs = (args: NotificationArgs | NotificationProps) => {\n return JSON.stringify(args, null, 6);\n};\n\nexport type NotificationArgs = {\n noAnimation: boolean;\n duration: number;\n} & NotificationProps;\n\nexport type Story = StoryObj<NotificationArgs>;\n\nconst BasicTemplate = (args: NotificationArgs) => html`\n <bl-notification\n ?no-animation=${args.noAnimation}\n duration=${ifDefined(args.duration)}\n ></bl-notification>\n`;\n\nconst NotificationCreator = (args: NotificationProps, buttonLabel = \"Add Notification\") => {\n const slug = buttonLabel.toLowerCase().replace(/\\s/g, \"-\");\n\n return html`\n <bl-button id=${slug}>${buttonLabel}</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const addButton = document.querySelector(\"bl-button#${slug}\");\n\n addButton.addEventListener(\"bl-click\", () => {\n notificationElement.addNotification(${stringifyArgs(args)});\n });\n })();\n </script>\n `;\n};\n\nexport const AddExample: Story = {\n render(args: NotificationArgs) {\n return html`${BasicTemplate(args)} ${NotificationCreator(args)} `;\n },\n args: {\n duration: 60,\n primaryAction: undefined,\n secondaryAction: undefined,\n },\n play: ({ args }) => {\n addNotification(args);\n addNotification({ ...args, variant: \"success\" });\n addNotification({ ...args, variant: \"warning\" });\n addNotification({ ...args, variant: \"error\" });\n },\n};\n\nexport const RemoveExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <bl-button>Remove Notification</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const removeButton = document.querySelector(\"bl-button\");\n\n const notification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n });\n\n removeButton.addEventListener(\"bl-click\", () => {\n notification.remove(); // notificationElement.removeNotification(notification.id);\n });\n })();\n </script>\n `;\n },\n};\n\nexport const RemoveAwaitExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <bl-button>Remove Notifications</bl-button>\n\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n const removeButton = document.querySelector(\"bl-button\");\n\n const firstNotification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n });\n\n const secondNotification = notificationElement.addNotification({\n caption: \"Notification Caption Second\",\n description: \"Notification Description Second\",\n permanent: true,\n });\n\n const thirdNotification = notificationElement.addNotification({\n caption: \"Notification Caption Third\",\n description: \"Notification Description Third\",\n permanent: true,\n });\n\n removeButton.addEventListener(\"bl-click\", async () => {\n await secondNotification.remove();\n await thirdNotification.remove();\n await firstNotification.remove();\n });\n })();\n </script>\n `;\n },\n};\n\nexport const PrimaryActionExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: () => {\n window.alert(\"Primary Action Clicked\");\n },\n },\n });\n })();\n </script>\n `;\n },\n};\n\nexport const SecondaryActionExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: () => {\n window.alert(\"Primary Action Clicked\");\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: () => {\n window.alert(\"Secondary Action Clicked\");\n },\n },\n });\n })();\n </script>\n `;\n },\n};\n\nexport const ActionsRemoveExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n <script>\n (function () {\n const notificationElement = document.querySelector(\"bl-notification\");\n\n const notification = notificationElement.addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: notification => {\n notification.remove();\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: notification => {\n notification.remove();\n },\n },\n });\n })();\n </script>\n `;\n },\n play: () => {\n addNotification({\n caption: \"Notification Caption\",\n description: \"Notification Description\",\n permanent: true,\n primaryAction: {\n label: \"Primary Action\",\n onClick: (notification: Notification) => {\n notification.remove();\n },\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick: (notification: Notification) => {\n notification.remove();\n },\n },\n });\n },\n};\n\nexport const PermanentExample: Story = {\n render(args: NotificationArgs) {\n return html` ${BasicTemplate(args)} ${NotificationCreator(args)} `;\n },\n args: {\n permanent: true,\n },\n play: ({ args }) => {\n addNotification(args);\n },\n};\n\nexport const VariantsExample: Story = {\n render(args: NotificationArgs) {\n return html`\n ${BasicTemplate(args)}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: info\",\n permanent: true,\n variant: \"info\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Info\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: success\",\n permanent: true,\n variant: \"success\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Success\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: warning\",\n permanent: true,\n variant: \"warning\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Warning\"\n )}\n ${NotificationCreator(\n {\n caption: \"Notification Caption\",\n description: \"Notification Variant: error\",\n permanent: true,\n variant: \"error\",\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n },\n \"Error\"\n )}\n `;\n },\n play: () => {\n const variants = [\"info\", \"success\", \"warning\", \"error\"] as const;\n\n for (const variant of variants) {\n addNotification({\n caption: \"Notification Caption\",\n description: `Notification Variant: ${variant}`,\n permanent: true,\n variant,\n primaryAction: {\n label: \"Primary Action\",\n onClick() {},\n },\n secondaryAction: {\n label: \"Secondary Action\",\n onClick() {},\n },\n });\n }\n },\n};\n\nexport const RTLExample: Story = {\n render(args: NotificationArgs) {\n return html`\n <div class=\"rtl-container\" dir=\"rtl\" lang=\"ar\">\n ${BasicTemplate(args)}\n ${NotificationCreator(\n {\n caption: \"\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628\",\n description: \"\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.\",\n duration: 7,\n variant: \"info\" as const,\n icon: true,\n primaryAction: {\n label: \"\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646\",\n onClick() {},\n },\n },\n \"Info\"\n )}\n ${NotificationCreator(\n {\n caption: \"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629\",\n description: \"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.\",\n duration: 10,\n variant: \"success\" as const,\n icon: true,\n },\n \"Success\"\n )}\n ${NotificationCreator(\n {\n caption: \"\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646\",\n description: \"\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.\",\n duration: 15,\n variant: \"warning\" as const,\n icon: true,\n primaryAction: {\n label: \"\u062A\u0631\u0642\u064A\u0629\",\n onClick() {},\n },\n secondaryAction: {\n label: \"\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F\",\n onClick() {},\n },\n },\n \"Warning\"\n )}\n ${NotificationCreator(\n {\n caption: \"\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644\",\n description: \"\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.\",\n duration: 20,\n variant: \"error\" as const,\n icon: true,\n primaryAction: {\n label: \"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629\",\n onClick() {},\n },\n },\n \"Error\"\n )}\n </div>\n\n <style>\n .rtl-container {\n width: 100%;\n min-height: 100%;\n padding: 1rem;\n }\n </style>\n `;\n },\n play: () => {\n const rtlNotifications: NotificationProps[] = [\n {\n caption: \"\u0631\u0633\u0627\u0644\u0629 \u062A\u0631\u062D\u064A\u0628\",\n description: \"\u0645\u0631\u062D\u0628\u0627\u064B \u0628\u0643 \u0641\u064A \u062A\u0637\u0628\u064A\u0642\u0646\u0627! \u0646\u062A\u0645\u0646\u0649 \u0644\u0643 \u062A\u062C\u0631\u0628\u0629 \u0645\u0645\u062A\u0639\u0629.\",\n duration: 7,\n variant: \"info\",\n icon: true,\n primaryAction: {\n label: \"\u0627\u0628\u062F\u0623 \u0627\u0644\u0622\u0646\",\n onClick() {},\n },\n },\n {\n caption: \"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0627\u0644\u0645\u0647\u0645\u0629\",\n description: \"\u062A\u0645 \u0625\u0643\u0645\u0627\u0644 \u0645\u0647\u0645\u062A\u0643 \u0628\u0646\u062C\u0627\u062D.\",\n duration: 10,\n variant: \"success\",\n icon: true,\n },\n {\n caption: \"\u062A\u0646\u0628\u064A\u0647 \u0627\u0644\u062A\u062E\u0632\u064A\u0646\",\n description: \"\u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u062A\u062E\u0632\u064A\u0646 \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0643 \u0645\u0646\u062E\u0641\u0636\u0629.\",\n duration: 15,\n variant: \"warning\",\n icon: true,\n primaryAction: {\n label: \"\u062A\u0631\u0642\u064A\u0629\",\n onClick() {},\n },\n secondaryAction: {\n label: \"\u0627\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064A\u062F\",\n onClick() {},\n },\n },\n {\n caption: \"\u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u0627\u062A\u0635\u0627\u0644\",\n description: \"\u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u064A\u0631\u062C\u0649 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.\",\n duration: 20,\n variant: \"error\",\n icon: true,\n primaryAction: {\n label: \"\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629\",\n onClick() {},\n },\n },\n ];\n\n // Add RTL notifications\n rtlNotifications.forEach((notification, index) => {\n setTimeout(() => {\n const rtlContainer = document.querySelector<HTMLElement & { addNotification: typeof addNotification }>(\".rtl-container bl-notification\");\n\n rtlContainer?.addNotification(notification);\n }, index * 300);\n });\n },\n args: {\n noAnimation: true,\n duration: 7,\n },\n};\n"],
5
+ "mappings": "2KAMA,IAAMA,EAAa,CACjB,MAAO,0BACP,UAAW,kBACX,WAAY,CACV,UAAW,CACT,UAAW,CAAC,GAAI,CAClB,CACF,EACA,WAAY,CAACC,CAAgB,EAC7B,SAAU,CAER,SAAU,CACR,QAAS,SACT,YAAa,sBACb,aAAc,CAChB,EACA,QAAS,CACP,QAAS,OACT,YAAa,6BACf,EACA,YAAa,CACX,QAAS,OACT,YAAa,4CACf,EACA,KAAM,CACJ,QAAS,OACT,aAAc,OACd,YACE,4JACJ,EACA,QAAS,CACP,QAAS,CAAC,OAAQ,UAAW,UAAW,OAAO,EAC/C,QAAS,OACT,QAAS,CAAE,KAAM,QAAS,EAC1B,YAAa,6BACf,EACA,UAAW,CACT,QAAS,UACT,aAAc,GACd,YACE,gHACJ,EACA,cAAe,CACb,QAAS,SACT,YAAa,gFACf,EACA,gBAAiB,CACf,QAAS,SACT,YACE,kFACJ,CACF,EACA,KAAM,CACJ,YAAa,GACb,SAAU,GACV,QAAS,uBACT,YAAa,2BACb,KAAM,OACN,QAAS,OACT,UAAW,GACX,cAAe,CACb,MAAO,iBACP,SAAU,CAAC,CACb,EACA,gBAAiB,CACf,MAAO,mBACP,SAAU,CAAC,CACb,CACF,CACF,EAEOC,EAAQF,EAETG,EAAmBC,GAA+B,CACtD,IAAMC,EAAK,SAAS,cAAc,iBAAiB,EAEnD,OAAOA,GAAA,YAAAA,EAAI,gBAAgBD,EAC7B,EAEME,EAAiBC,GACd,KAAK,UAAUA,EAAM,KAAM,CAAC,EAU/B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ClBK,EACA,CACE,QAAS,gEACT,YAAa,wNACb,SAAU,EACV,QAAS,OACT,KAAM,GACN,cAAe,CACb,MAAO,oDACP,SAAU,CAAC,CACb,CACF,EACA,MACF;AAAA,UACEA,EACA,CACE,QAAS,mFACT,YAAa,6GACb,SAAU,GACV,QAAS,UACT,KAAM,EACR,EACA,SACF;AAAA,UACEA,EACA,CACE,QAAS,4EACT,YAAa,oKACb,SAAU,GACV,QAAS,UACT,KAAM,GACN,cAAe,CACb,MAAO,iCACP,SAAU,CAAC,CACb,EACA,gBAAiB,CACf,MAAO,gEACP,SAAU,CAAC,CACb,CACF,EACA,SACF;AAAA,UACEA,EACA,CACE,QAAS,6EACT,YAAa,yOACb,SAAU,GACV,QAAS,QACT,KAAM,GACN,cAAe,CACb,MAAO,kFACP,SAAU,CAAC,CACb,CACF,EACA,OACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAWN,EACA,KAAM,IAAM,CACoC,CAC5C,CACE,QAAS,gEACT,YAAa,wNACb,SAAU,EACV,QAAS,OACT,KAAM,GACN,cAAe,CACb,MAAO,oDACP,SAAU,CAAC,CACb,CACF,EACA,CACE,QAAS,mFACT,YAAa,6GACb,SAAU,GACV,QAAS,UACT,KAAM,EACR,EACA,CACE,QAAS,4EACT,YAAa,oKACb,SAAU,GACV,QAAS,UACT,KAAM,GACN,cAAe,CACb,MAAO,iCACP,SAAU,CAAC,CACb,EACA,gBAAiB,CACf,MAAO,gEACP,SAAU,CAAC,CACb,CACF,EACA,CACE,QAAS,6EACT,YAAa,yOACb,SAAU,GACV,QAAS,QACT,KAAM,GACN,cAAe,CACb,MAAO,kFACP,SAAU,CAAC,CACb,CACF,CACF,EAGiB,QAAQ,CAACe,EAAcM,IAAU,CAChD,WAAW,IAAM,CACf,IAAMC,EAAe,SAAS,cAAyE,gCAAgC,EAEvIA,GAAA,MAAAA,EAAc,gBAAgBP,EAChC,EAAGM,EAAQ,GAAG,CAChB,CAAC,CACH,EACA,KAAM,CACJ,YAAa,GACb,SAAU,CACZ,CACF",
6
+ "names": ["meta", "fullscreenLayout", "bl_notification_stories_default", "addNotification", "options", "el", "stringifyArgs", "args", "BasicTemplate", "x", "l", "_a", "NotificationCreator", "buttonLabel", "slug", "__template", "AddExample", "_b", "RemoveExample", "_c", "RemoveAwaitExample", "_d", "PrimaryActionExample", "_e", "SecondaryActionExample", "_f", "ActionsRemoveExample", "notification", "PermanentExample", "VariantsExample", "variants", "variant", "RTLExample", "index", "rtlContainer"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../../chunk-UZJOCLOO.js";import"../../../chunk-ECPWEUBG.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as CloseSource,b as default};
1
+ import{a,b}from"../../../chunk-DIGACNOH.js";import"../../../chunk-ECPWEUBG.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as CloseSource,b as default};
2
2
  //# sourceMappingURL=bl-notification-card.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-5VEXMTA4.js";import"../../chunk-OAF3R4PW.js";import"../../chunk-WXWKIQAK.js";import"../../chunk-FTQX7CEW.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-757CMI4A.js";import"../../chunk-23PSWIUF.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-EG7U7PM3.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-AYJMIZZ3.js";import"../../chunk-VU6LRFZR.js";import"../../chunk-IGNJQVQF.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-HBPBDC7T.js";import"../../chunk-ECPWEUBG.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../chunk-H4WETBHJ.js";import"../../chunk-2IJL7HNY.js";import"../../chunk-RER7OLAQ.js";import"../../chunk-MWFGDECP.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-IDRA37BX.js";import"../../chunk-23PSWIUF.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-EG7U7PM3.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-AYJMIZZ3.js";import"../../chunk-HZV6GUII.js";import"../../chunk-ZE7GYACV.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-HBPBDC7T.js";import"../../chunk-ECPWEUBG.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-pagination.js.map
@@ -1,2 +1,2 @@
1
- import{b as a}from"../../chunk-BNUJWONI.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{b as a}from"../../chunk-UOGCEUXK.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-popover.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-GMVJABPT.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../chunk-QDYWH7BU.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-progress-indicator.js.map
@@ -1,2 +1,2 @@
1
- import{d as a,e as b,f as c}from"../../chunk-FVBGMXMC.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{b as blChangeEventName,a as blRadioGroupTag,c as default};
1
+ import{d as a,e as b,f as c}from"../../chunk-X5XH4HTW.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{b as blChangeEventName,a as blRadioGroupTag,c as default};
2
2
  //# sourceMappingURL=bl-radio-group.js.map
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../../../chunk-FVBGMXMC.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{b as blCheckedEventName,a as blRadioTag,c as default};
1
+ import{a,b,c}from"../../../chunk-X5XH4HTW.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{b as blCheckedEventName,a as blRadioTag,c as default};
2
2
  //# sourceMappingURL=bl-radio.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-OAF3R4PW.js";import"../../chunk-WXWKIQAK.js";import"../../chunk-FTQX7CEW.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-EG7U7PM3.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-AYJMIZZ3.js";import"../../chunk-VU6LRFZR.js";import"../../chunk-IGNJQVQF.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-HBPBDC7T.js";import"../../chunk-ECPWEUBG.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../chunk-2IJL7HNY.js";import"../../chunk-RER7OLAQ.js";import"../../chunk-MWFGDECP.js";import"../../chunk-EZSEQHRH.js";import"../../chunk-EG7U7PM3.js";import"../../chunk-XDUIVR6I.js";import"../../chunk-HZ6A5QFC.js";import"../../chunk-AYJMIZZ3.js";import"../../chunk-HZV6GUII.js";import"../../chunk-ZE7GYACV.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-HBPBDC7T.js";import"../../chunk-ECPWEUBG.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-select.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-WXWKIQAK.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../../chunk-RER7OLAQ.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-select-option.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-IGNJQVQF.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSpinnerTag,b as default};
1
+ import{a,b}from"../../chunk-ZE7GYACV.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSpinnerTag,b as default};
2
2
  //# sourceMappingURL=bl-spinner.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-ILK55FB6.js";import"../../chunk-73RGV4UX.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-VU6LRFZR.js";import"../../chunk-IGNJQVQF.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSplitButtonTag,b as default};
1
+ import{a,b}from"../../chunk-NXVLNG4L.js";import"../../chunk-HYBPEELZ.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-HZV6GUII.js";import"../../chunk-ZE7GYACV.js";import"../../chunk-6LT7O7T2.js";import"../../chunk-DINNT5P2.js";import"../../chunk-BH64QNLE.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-3USCFSFQ.js";import"../../chunk-7GK5LKBV.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSplitButtonTag,b as default};
2
2
  //# sourceMappingURL=bl-split-button.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-J45OQI7D.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-DINNT5P2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSwitchTag,b as default};
1
+ import{a,b}from"../../chunk-4BLKAURK.js";import"../../chunk-IPYZIIRV.js";import"../../chunk-DINNT5P2.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as blSwitchTag,b as default};
2
2
  //# sourceMappingURL=bl-switch.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-5TPDRTCU.js";import"../../chunk-YZRAUVUQ.js";import"../../chunk-QF4LGACD.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../chunk-5TPDRTCU.js";import"../../chunk-WPESQSKX.js";import"../../chunk-QF4LGACD.js";import"../../chunk-GRL4DWKG.js";import"../../chunk-5MOOXA2X.js";import"../../chunk-4OT5AMS5.js";import"../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-tab-group.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-YZRAUVUQ.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as default};
1
+ import{a}from"../../../chunk-WPESQSKX.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as default};
2
2
  //# sourceMappingURL=bl-tab.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../../chunk-N4GAO7FQ.js";import"../../../chunk-JAZGOWKA.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-T5EQ4OXS.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-FTQX7CEW.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableCellTag,b as default};
1
+ import{a,b}from"../../../chunk-ZJBBQHF3.js";import"../../../chunk-LEAVDIGF.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-7VMGFJ5X.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-MWFGDECP.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableCellTag,b as default};
2
2
  //# sourceMappingURL=bl-table-cell.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../../chunk-T5EQ4OXS.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableHeaderTag,b as default};
1
+ import{a,b}from"../../../chunk-7VMGFJ5X.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableHeaderTag,b as default};
2
2
  //# sourceMappingURL=bl-table-header.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../../chunk-CAIHRZ24.js";import"../../../chunk-JAZGOWKA.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-T5EQ4OXS.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-FTQX7CEW.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableHeaderCellTag,b as default};
1
+ import{a,b}from"../../../chunk-Q5D7W6YP.js";import"../../../chunk-LEAVDIGF.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-7VMGFJ5X.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-MWFGDECP.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableHeaderCellTag,b as default};
2
2
  //# sourceMappingURL=bl-table-header-cell.js.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../../chunk-JAZGOWKA.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-T5EQ4OXS.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-FTQX7CEW.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableRowTag,b as default};
1
+ import{a,b}from"../../../chunk-LEAVDIGF.js";import"../../../chunk-VJRVHJVZ.js";import"../../../chunk-7VMGFJ5X.js";import"../../../chunk-STMCW2R6.js";import"../../../chunk-MWFGDECP.js";import"../../../chunk-EG7U7PM3.js";import"../../../chunk-XDUIVR6I.js";import"../../../chunk-HZ6A5QFC.js";import"../../../chunk-AYJMIZZ3.js";import"../../../chunk-6LT7O7T2.js";import"../../../chunk-DINNT5P2.js";import"../../../chunk-BH64QNLE.js";import"../../../chunk-GRL4DWKG.js";import"../../../chunk-3USCFSFQ.js";import"../../../chunk-7GK5LKBV.js";import"../../../chunk-5MOOXA2X.js";import"../../../chunk-4OT5AMS5.js";import"../../../chunk-IZ2LK5GK.js";export{a as blTableRowTag,b as default};
2
2
  //# sourceMappingURL=bl-table-row.js.map
@@ -0,0 +1,52 @@
1
+ import { CSSResultGroup, LitElement, TemplateResult } from "lit";
2
+ import "../button/bl-button";
3
+ import "../icon/bl-icon";
4
+ import { BaklavaIcon } from "../icon/icon-list";
5
+ export type TagSize = "small" | "medium" | "large";
6
+ type TagVariant = "selectable" | "removable";
7
+ /**
8
+ * @tag bl-tag
9
+ * @summary Baklava Tag component
10
+ */
11
+ export default class BlTag extends LitElement {
12
+ static get styles(): CSSResultGroup;
13
+ /**
14
+ * Sets the tag size
15
+ */
16
+ size: TagSize;
17
+ /**
18
+ * Sets the tag variant
19
+ */
20
+ variant: TagVariant;
21
+ /**
22
+ * Sets the name of the icon
23
+ */
24
+ icon?: BaklavaIcon;
25
+ /**
26
+ * Sets the selected state of the tag
27
+ */
28
+ selected: boolean;
29
+ /**
30
+ * Disables the tag
31
+ */
32
+ disabled: boolean;
33
+ /**
34
+ * Sets the value of the tag
35
+ */
36
+ value: string | null;
37
+ /**
38
+ * Dispatches when the tag is clicked
39
+ */
40
+ private _onBlTagClick;
41
+ private _handleClick;
42
+ private _removeButtonTemplate;
43
+ private _iconTemplate;
44
+ render(): TemplateResult;
45
+ }
46
+ declare global {
47
+ interface HTMLElementTagNameMap {
48
+ "bl-tag": BlTag;
49
+ }
50
+ }
51
+ export {};
52
+ //# sourceMappingURL=bl-tag.d.ts.map