snice 1.14.3 → 2.1.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 (185) hide show
  1. package/bin/templates/base/tsconfig.json +5 -4
  2. package/components/accordion/demo.html +403 -0
  3. package/components/accordion/snice-accordion-item.css +85 -0
  4. package/components/accordion/snice-accordion-item.ts +226 -0
  5. package/components/accordion/snice-accordion.css +31 -0
  6. package/components/accordion/snice-accordion.ts +182 -0
  7. package/components/accordion/snice-accordion.types.ts +32 -0
  8. package/components/alert/demo.html +445 -0
  9. package/components/alert/snice-alert.css +195 -0
  10. package/components/alert/snice-alert.ts +141 -0
  11. package/components/alert/snice-alert.types.ts +12 -0
  12. package/components/avatar/demo.html +598 -0
  13. package/components/avatar/snice-avatar.css +131 -0
  14. package/components/avatar/snice-avatar.ts +136 -0
  15. package/components/avatar/snice-avatar.types.ts +13 -0
  16. package/components/badge/demo.html +523 -0
  17. package/components/badge/snice-badge.css +161 -0
  18. package/components/badge/snice-badge.ts +117 -0
  19. package/components/badge/snice-badge.types.ts +16 -0
  20. package/components/breadcrumbs/demo.html +404 -0
  21. package/components/breadcrumbs/snice-breadcrumbs.css +133 -0
  22. package/components/breadcrumbs/snice-breadcrumbs.ts +191 -0
  23. package/components/breadcrumbs/snice-breadcrumbs.types.ts +26 -0
  24. package/components/breadcrumbs/snice-crumb.ts +26 -0
  25. package/components/button/demo.html +42 -0
  26. package/components/button/snice-button.css +230 -0
  27. package/components/button/snice-button.ts +169 -0
  28. package/components/button/snice-button.types.ts +25 -0
  29. package/components/card/demo.html +525 -0
  30. package/components/card/snice-card.css +140 -0
  31. package/components/card/snice-card.ts +102 -0
  32. package/components/card/snice-card.types.ts +10 -0
  33. package/components/checkbox/demo.html +253 -0
  34. package/components/checkbox/snice-checkbox.css +164 -0
  35. package/components/checkbox/snice-checkbox.ts +223 -0
  36. package/components/checkbox/snice-checkbox.types.ts +22 -0
  37. package/components/chip/demo.html +383 -0
  38. package/components/chip/snice-chip.css +195 -0
  39. package/components/chip/snice-chip.ts +139 -0
  40. package/components/chip/snice-chip.types.ts +15 -0
  41. package/components/date-picker/README.md +233 -0
  42. package/components/date-picker/demo.html +191 -0
  43. package/components/date-picker/snice-date-picker.css +330 -0
  44. package/components/date-picker/snice-date-picker.ts +777 -0
  45. package/components/date-picker/snice-date-picker.types.ts +83 -0
  46. package/components/divider/demo.html +233 -0
  47. package/components/divider/snice-divider.css +155 -0
  48. package/components/divider/snice-divider.ts +69 -0
  49. package/components/divider/snice-divider.types.ts +15 -0
  50. package/components/drawer/demo.html +328 -0
  51. package/components/drawer/snice-drawer.css +476 -0
  52. package/components/drawer/snice-drawer.ts +287 -0
  53. package/components/drawer/snice-drawer.types.ts +17 -0
  54. package/components/global.d.ts +14 -0
  55. package/components/input/demo.html +303 -0
  56. package/components/input/snice-input.css +257 -0
  57. package/components/input/snice-input.ts +442 -0
  58. package/components/input/snice-input.types.ts +59 -0
  59. package/components/input/test.html +77 -0
  60. package/components/layout/README.md +260 -0
  61. package/components/layout/demo.html +538 -0
  62. package/components/layout/snice-layout-blog.css +129 -0
  63. package/components/layout/snice-layout-blog.ts +48 -0
  64. package/components/layout/snice-layout-card.css +104 -0
  65. package/components/layout/snice-layout-card.ts +35 -0
  66. package/components/layout/snice-layout-centered.css +51 -0
  67. package/components/layout/snice-layout-centered.ts +22 -0
  68. package/components/layout/snice-layout-dashboard.css +98 -0
  69. package/components/layout/snice-layout-dashboard.ts +45 -0
  70. package/components/layout/snice-layout-fullscreen.css +72 -0
  71. package/components/layout/snice-layout-fullscreen.ts +34 -0
  72. package/components/layout/snice-layout-landing.css +92 -0
  73. package/components/layout/snice-layout-landing.ts +47 -0
  74. package/components/layout/snice-layout-minimal.css +16 -0
  75. package/components/layout/snice-layout-minimal.ts +19 -0
  76. package/components/layout/snice-layout-sidebar.css +117 -0
  77. package/components/layout/snice-layout-sidebar.ts +48 -0
  78. package/components/layout/snice-layout-split.css +103 -0
  79. package/components/layout/snice-layout-split.ts +29 -0
  80. package/components/layout/snice-layout.css +72 -0
  81. package/components/layout/snice-layout.ts +35 -0
  82. package/components/layout/snice-layout.types.ts +5 -0
  83. package/components/login/demo-auth-controller.ts +185 -0
  84. package/components/login/demo.html +470 -0
  85. package/components/login/snice-login.css +204 -0
  86. package/components/login/snice-login.ts +337 -0
  87. package/components/login/snice-login.types.ts +34 -0
  88. package/components/modal/demo.html +291 -0
  89. package/components/modal/snice-modal.css +203 -0
  90. package/components/modal/snice-modal.ts +233 -0
  91. package/components/modal/snice-modal.types.ts +21 -0
  92. package/components/pagination/demo.html +395 -0
  93. package/components/pagination/snice-pagination.ts +333 -0
  94. package/components/pagination/snice-pagination.types.ts +21 -0
  95. package/components/progress/demo.html +510 -0
  96. package/components/progress/snice-progress.css +267 -0
  97. package/components/progress/snice-progress.ts +247 -0
  98. package/components/progress/snice-progress.types.ts +19 -0
  99. package/components/radio/demo.html +287 -0
  100. package/components/radio/snice-radio.css +171 -0
  101. package/components/radio/snice-radio.ts +218 -0
  102. package/components/radio/snice-radio.types.ts +21 -0
  103. package/components/select/demo.html +511 -0
  104. package/components/select/snice-option.ts +52 -0
  105. package/components/select/snice-option.types.ts +14 -0
  106. package/components/select/snice-select.css +392 -0
  107. package/components/select/snice-select.ts +796 -0
  108. package/components/select/snice-select.types.ts +55 -0
  109. package/components/skeleton/demo.html +514 -0
  110. package/components/skeleton/snice-skeleton.css +109 -0
  111. package/components/skeleton/snice-skeleton.ts +126 -0
  112. package/components/skeleton/snice-skeleton.types.ts +11 -0
  113. package/components/switch/demo.html +284 -0
  114. package/components/switch/snice-switch.css +221 -0
  115. package/components/switch/snice-switch.ts +229 -0
  116. package/components/switch/snice-switch.types.ts +23 -0
  117. package/components/symbols.ts +23 -0
  118. package/components/table/demo-table-controller.ts +100 -0
  119. package/components/table/demo.html +480 -0
  120. package/components/table/snice-cell-boolean.ts +112 -0
  121. package/components/table/snice-cell-date.ts +210 -0
  122. package/components/table/snice-cell-duration.ts +91 -0
  123. package/components/table/snice-cell-filesize.ts +90 -0
  124. package/components/table/snice-cell-number.ts +165 -0
  125. package/components/table/snice-cell-progress.ts +83 -0
  126. package/components/table/snice-cell-rating.ts +82 -0
  127. package/components/table/snice-cell-sparkline.ts +253 -0
  128. package/components/table/snice-cell-text.ts +125 -0
  129. package/components/table/snice-cell.css +296 -0
  130. package/components/table/snice-cell.ts +473 -0
  131. package/components/table/snice-column.ts +353 -0
  132. package/components/table/snice-header.css +243 -0
  133. package/components/table/snice-header.ts +261 -0
  134. package/components/table/snice-progress.ts +66 -0
  135. package/components/table/snice-rating.ts +45 -0
  136. package/components/table/snice-row.css +255 -0
  137. package/components/table/snice-row.ts +331 -0
  138. package/components/table/snice-table.css +241 -0
  139. package/components/table/snice-table.ts +737 -0
  140. package/components/table/snice-table.types.ts +158 -0
  141. package/components/tabs/demo.html +487 -0
  142. package/components/tabs/snice-tab-panel.css +264 -0
  143. package/components/tabs/snice-tab-panel.ts +47 -0
  144. package/components/tabs/snice-tab.css +96 -0
  145. package/components/tabs/snice-tab.ts +65 -0
  146. package/components/tabs/snice-tabs.css +189 -0
  147. package/components/tabs/snice-tabs.ts +332 -0
  148. package/components/tabs/snice-tabs.types.ts +28 -0
  149. package/components/theme/theme.css +234 -0
  150. package/components/toast/demo.html +329 -0
  151. package/components/toast/snice-toast-container.ts +256 -0
  152. package/components/toast/snice-toast.css +213 -0
  153. package/components/toast/snice-toast.ts +276 -0
  154. package/components/toast/snice-toast.types.ts +35 -0
  155. package/components/tooltip/demo.html +350 -0
  156. package/components/tooltip/snice-tooltip-portal.css +79 -0
  157. package/components/tooltip/snice-tooltip.css +117 -0
  158. package/components/tooltip/snice-tooltip.ts +612 -0
  159. package/components/tooltip/snice-tooltip.types.ts +32 -0
  160. package/components/transitions.ts +94 -0
  161. package/components/tsconfig.json +18 -0
  162. package/dist/index.cjs +441 -329
  163. package/dist/index.cjs.map +1 -1
  164. package/dist/index.cjs.min.map +1 -1
  165. package/dist/index.esm.js +441 -329
  166. package/dist/index.esm.js.map +1 -1
  167. package/dist/index.esm.min.js +3 -3
  168. package/dist/index.esm.min.js.map +1 -1
  169. package/dist/index.iife.js +441 -329
  170. package/dist/index.iife.js.map +1 -1
  171. package/dist/index.iife.min.js +3 -3
  172. package/dist/index.iife.min.js.map +1 -1
  173. package/dist/symbols.esm.js +1 -1
  174. package/dist/transitions.esm.js +1 -1
  175. package/dist/types/controller.d.ts +1 -1
  176. package/dist/types/element.d.ts +10 -10
  177. package/dist/types/events.d.ts +2 -2
  178. package/dist/types/index.d.ts +1 -1
  179. package/dist/types/observe.d.ts +1 -1
  180. package/dist/types/request-response.d.ts +2 -3
  181. package/dist/types/router.d.ts +1 -1
  182. package/package.json +9 -3
  183. package/dist/index.cjs.min +0 -15
  184. package/dist/symbols.cjs +0 -103
  185. package/dist/transitions.cjs +0 -219
@@ -0,0 +1,476 @@
1
+ :host {
2
+ --drawer-width-small: 15rem; /* 240px */
3
+ --drawer-width-medium: 20rem; /* 320px */
4
+ --drawer-width-large: 30rem; /* 480px */
5
+ --drawer-width-xl: 40rem; /* 640px */
6
+ --drawer-width-xxl: 50rem; /* 800px */
7
+ --drawer-width-xxxl: 60rem; /* 960px */
8
+ --drawer-height-small: 12.5rem; /* 200px */
9
+ --drawer-height-medium: 25rem; /* 400px */
10
+ --drawer-height-large: 37.5rem; /* 600px */
11
+ --drawer-height-xl: 70vh;
12
+ --drawer-height-xxl: 80vh;
13
+ --drawer-height-xxxl: 90vh;
14
+ --drawer-bg: white;
15
+ --drawer-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
16
+ --drawer-backdrop: rgba(0, 0, 0, 0.5);
17
+ --drawer-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
18
+ --drawer-z-index: 1000;
19
+
20
+ display: block;
21
+ }
22
+
23
+ .drawer-backdrop {
24
+ position: fixed;
25
+ inset: 0;
26
+ background: var(--drawer-backdrop);
27
+ opacity: 0;
28
+ transition: opacity 0.3s ease-in-out;
29
+ z-index: var(--drawer-z-index);
30
+ pointer-events: none;
31
+ visibility: hidden;
32
+ }
33
+
34
+ :host([open]) .drawer-backdrop {
35
+ opacity: 1;
36
+ pointer-events: auto;
37
+ visibility: visible;
38
+ }
39
+
40
+ :host([no-backdrop]) .drawer-backdrop {
41
+ display: none;
42
+ }
43
+
44
+ .drawer {
45
+ position: fixed;
46
+ background: var(--drawer-bg);
47
+ box-shadow: var(--drawer-shadow);
48
+ transition: var(--drawer-transition);
49
+ z-index: calc(var(--drawer-z-index) + 1);
50
+ display: flex;
51
+ flex-direction: column;
52
+ outline: none;
53
+ overflow: hidden;
54
+ visibility: hidden;
55
+ }
56
+
57
+ :host([open]) .drawer {
58
+ visibility: visible;
59
+ }
60
+
61
+ /* Default styles when no position attribute (defaults to left) */
62
+ :host(:not([position])) .drawer {
63
+ top: 0;
64
+ left: 0;
65
+ height: 100%;
66
+ width: var(--drawer-width-medium);
67
+ transform: translateX(-100%);
68
+ }
69
+
70
+ :host(:not([position])[open]) .drawer {
71
+ transform: translateX(0);
72
+ }
73
+
74
+ /* Position: Left */
75
+ :host([position="left"]) .drawer {
76
+ top: 0;
77
+ left: 0;
78
+ height: 100%;
79
+ width: var(--drawer-width-medium); /* Default width */
80
+ transform: translateX(-100%);
81
+ }
82
+
83
+ :host([position="left"][size="small"]) .drawer {
84
+ width: var(--drawer-width-small);
85
+ }
86
+
87
+ :host([position="left"][size="medium"]) .drawer {
88
+ width: var(--drawer-width-medium);
89
+ }
90
+
91
+ :host([position="left"][size="large"]) .drawer {
92
+ width: var(--drawer-width-large);
93
+ }
94
+
95
+ :host([position="left"][size="xl"]) .drawer {
96
+ width: var(--drawer-width-xl);
97
+ }
98
+
99
+ :host([position="left"][size="xxl"]) .drawer {
100
+ width: var(--drawer-width-xxl);
101
+ }
102
+
103
+ :host([position="left"][size="xxxl"]) .drawer {
104
+ width: var(--drawer-width-xxxl);
105
+ }
106
+
107
+ :host([position="left"][size="full"]) .drawer {
108
+ width: 100%;
109
+ }
110
+
111
+ :host([position="left"][open]) .drawer {
112
+ transform: translateX(0);
113
+ }
114
+
115
+ /* Position: Right */
116
+ :host([position="right"]) .drawer {
117
+ top: 0;
118
+ right: 0;
119
+ height: 100%;
120
+ width: var(--drawer-width-medium); /* Default width */
121
+ transform: translateX(100%);
122
+ }
123
+
124
+ :host([position="right"][size="small"]) .drawer {
125
+ width: var(--drawer-width-small);
126
+ }
127
+
128
+ :host([position="right"][size="medium"]) .drawer {
129
+ width: var(--drawer-width-medium);
130
+ }
131
+
132
+ :host([position="right"][size="large"]) .drawer {
133
+ width: var(--drawer-width-large);
134
+ }
135
+
136
+ :host([position="right"][size="xl"]) .drawer {
137
+ width: var(--drawer-width-xl);
138
+ }
139
+
140
+ :host([position="right"][size="xxl"]) .drawer {
141
+ width: var(--drawer-width-xxl);
142
+ }
143
+
144
+ :host([position="right"][size="xxxl"]) .drawer {
145
+ width: var(--drawer-width-xxxl);
146
+ }
147
+
148
+ :host([position="right"][size="full"]) .drawer {
149
+ width: 100%;
150
+ }
151
+
152
+ :host([position="right"][open]) .drawer {
153
+ transform: translateX(0);
154
+ }
155
+
156
+ /* Position: Top */
157
+ :host([position="top"]) .drawer {
158
+ top: 0;
159
+ left: 0;
160
+ width: 100%;
161
+ height: var(--drawer-height-medium); /* Default height */
162
+ transform: translateY(-100%);
163
+ }
164
+
165
+ :host([position="top"][size="small"]) .drawer {
166
+ height: var(--drawer-height-small);
167
+ }
168
+
169
+ :host([position="top"][size="medium"]) .drawer {
170
+ height: var(--drawer-height-medium);
171
+ }
172
+
173
+ :host([position="top"][size="large"]) .drawer {
174
+ height: var(--drawer-height-large);
175
+ }
176
+
177
+ :host([position="top"][size="xl"]) .drawer {
178
+ height: var(--drawer-height-xl);
179
+ }
180
+
181
+ :host([position="top"][size="xxl"]) .drawer {
182
+ height: var(--drawer-height-xxl);
183
+ }
184
+
185
+ :host([position="top"][size="xxxl"]) .drawer {
186
+ height: var(--drawer-height-xxxl);
187
+ }
188
+
189
+ :host([position="top"][size="full"]) .drawer {
190
+ height: 100%;
191
+ }
192
+
193
+ :host([position="top"][open]) .drawer {
194
+ transform: translateY(0);
195
+ }
196
+
197
+ /* Position: Bottom */
198
+ :host([position="bottom"]) .drawer {
199
+ bottom: 0;
200
+ left: 0;
201
+ width: 100%;
202
+ height: var(--drawer-height-medium); /* Default height */
203
+ transform: translateY(100%);
204
+ }
205
+
206
+ :host([position="bottom"][size="small"]) .drawer {
207
+ height: var(--drawer-height-small);
208
+ }
209
+
210
+ :host([position="bottom"][size="medium"]) .drawer {
211
+ height: var(--drawer-height-medium);
212
+ }
213
+
214
+ :host([position="bottom"][size="large"]) .drawer {
215
+ height: var(--drawer-height-large);
216
+ }
217
+
218
+ :host([position="bottom"][size="xl"]) .drawer {
219
+ height: var(--drawer-height-xl);
220
+ }
221
+
222
+ :host([position="bottom"][size="xxl"]) .drawer {
223
+ height: var(--drawer-height-xxl);
224
+ }
225
+
226
+ :host([position="bottom"][size="xxxl"]) .drawer {
227
+ height: var(--drawer-height-xxxl);
228
+ }
229
+
230
+ :host([position="bottom"][size="full"]) .drawer {
231
+ height: 100%;
232
+ }
233
+
234
+ :host([position="bottom"][open]) .drawer {
235
+ transform: translateY(0);
236
+ }
237
+
238
+ /* Drawer Header */
239
+ .drawer-header {
240
+ display: flex;
241
+ align-items: center;
242
+ justify-content: space-between;
243
+ padding: 1rem 1.25rem; /* 16px 20px */
244
+ border-bottom: 1px solid #e5e7eb;
245
+ flex-shrink: 0;
246
+ }
247
+
248
+ .drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)) {
249
+ display: none;
250
+ }
251
+
252
+ .drawer-title {
253
+ font-size: 1.125rem; /* 18px */
254
+ font-weight: 600;
255
+ margin: 0;
256
+ color: #111827;
257
+ }
258
+
259
+ .drawer-close {
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ width: 2rem; /* 32px */
264
+ height: 2rem; /* 32px */
265
+ border: none;
266
+ background: transparent;
267
+ border-radius: 6px;
268
+ cursor: pointer;
269
+ color: #6b7280;
270
+ transition: all 0.2s;
271
+ }
272
+
273
+ .drawer-close:hover {
274
+ background: #f3f4f6;
275
+ color: #111827;
276
+ }
277
+
278
+ .drawer-close:focus-visible {
279
+ outline: 2px solid #3b82f6;
280
+ outline-offset: 2px;
281
+ }
282
+
283
+ /* Drawer Body */
284
+ .drawer-body {
285
+ flex: 1;
286
+ padding: 1.25rem; /* 20px */
287
+ overflow-y: auto;
288
+ overflow-x: hidden;
289
+ }
290
+
291
+ /* Drawer Footer */
292
+ .drawer-footer {
293
+ padding: 1rem 1.25rem; /* 16px 20px */
294
+ border-top: 1px solid #e5e7eb;
295
+ flex-shrink: 0;
296
+ }
297
+
298
+ .drawer-footer:empty {
299
+ display: none;
300
+ }
301
+
302
+ /* Animations */
303
+ @media (prefers-reduced-motion: reduce) {
304
+ .drawer,
305
+ .drawer-backdrop {
306
+ transition: none;
307
+ }
308
+ }
309
+
310
+ /* Responsive */
311
+ @media (max-width: 640px) {
312
+ :host([position="left"][size="medium"]) .drawer,
313
+ :host([position="left"][size="large"]) .drawer,
314
+ :host([position="left"][size="xl"]) .drawer,
315
+ :host([position="left"][size="xxl"]) .drawer,
316
+ :host([position="left"][size="xxxl"]) .drawer,
317
+ :host([position="right"][size="medium"]) .drawer,
318
+ :host([position="right"][size="large"]) .drawer,
319
+ :host([position="right"][size="xl"]) .drawer,
320
+ :host([position="right"][size="xxl"]) .drawer,
321
+ :host([position="right"][size="xxxl"]) .drawer {
322
+ width: calc(100% - 2.5rem); /* 40px */
323
+ }
324
+ }
325
+
326
+ /* Focus trap styles */
327
+ .focus-trap-start,
328
+ .focus-trap-end {
329
+ position: absolute;
330
+ width: 1px;
331
+ height: 1px;
332
+ padding: 0;
333
+ margin: -1px;
334
+ overflow: hidden;
335
+ clip: rect(0, 0, 0, 0);
336
+ white-space: nowrap;
337
+ border: 0;
338
+ }
339
+
340
+ /* Push content mode */
341
+ :host([push-content]) {
342
+ --drawer-push-amount: 0px;
343
+ }
344
+
345
+ /* Left position push amounts */
346
+ :host([push-content][position="left"][open][size="small"]) {
347
+ --drawer-push-amount: var(--drawer-width-small);
348
+ }
349
+
350
+ :host([push-content][position="left"][open][size="medium"]) {
351
+ --drawer-push-amount: var(--drawer-width-medium);
352
+ }
353
+
354
+ :host([push-content][position="left"][open][size="large"]) {
355
+ --drawer-push-amount: var(--drawer-width-large);
356
+ }
357
+
358
+ :host([push-content][position="left"][open][size="xl"]) {
359
+ --drawer-push-amount: var(--drawer-width-xl);
360
+ }
361
+
362
+ :host([push-content][position="left"][open][size="xxl"]) {
363
+ --drawer-push-amount: var(--drawer-width-xxl);
364
+ }
365
+
366
+ :host([push-content][position="left"][open][size="xxxl"]) {
367
+ --drawer-push-amount: var(--drawer-width-xxxl);
368
+ }
369
+
370
+ :host([push-content][position="left"][open][size="full"]) {
371
+ --drawer-push-amount: 100vw;
372
+ }
373
+
374
+ /* Also handle when no size is specified (defaults to medium) */
375
+ :host([push-content][position="left"][open]:not([size])) {
376
+ --drawer-push-amount: var(--drawer-width-medium);
377
+ }
378
+
379
+ /* Right position push amounts */
380
+ :host([push-content][position="right"][open][size="small"]) {
381
+ --drawer-push-amount: calc(-1 * var(--drawer-width-small));
382
+ }
383
+
384
+ :host([push-content][position="right"][open][size="medium"]) {
385
+ --drawer-push-amount: calc(-1 * var(--drawer-width-medium));
386
+ }
387
+
388
+ :host([push-content][position="right"][open][size="large"]) {
389
+ --drawer-push-amount: calc(-1 * var(--drawer-width-large));
390
+ }
391
+
392
+ :host([push-content][position="right"][open][size="xl"]) {
393
+ --drawer-push-amount: calc(-1 * var(--drawer-width-xl));
394
+ }
395
+
396
+ :host([push-content][position="right"][open][size="xxl"]) {
397
+ --drawer-push-amount: calc(-1 * var(--drawer-width-xxl));
398
+ }
399
+
400
+ :host([push-content][position="right"][open][size="xxxl"]) {
401
+ --drawer-push-amount: calc(-1 * var(--drawer-width-xxxl));
402
+ }
403
+
404
+ :host([push-content][position="right"][open][size="full"]) {
405
+ --drawer-push-amount: -100vw;
406
+ }
407
+
408
+ :host([push-content][position="right"][open]:not([size])) {
409
+ --drawer-push-amount: calc(-1 * var(--drawer-width-medium));
410
+ }
411
+
412
+ /* Top position push amounts */
413
+ :host([push-content][position="top"][open][size="small"]) {
414
+ --drawer-push-amount: var(--drawer-height-small);
415
+ }
416
+
417
+ :host([push-content][position="top"][open][size="medium"]) {
418
+ --drawer-push-amount: var(--drawer-height-medium);
419
+ }
420
+
421
+ :host([push-content][position="top"][open][size="large"]) {
422
+ --drawer-push-amount: var(--drawer-height-large);
423
+ }
424
+
425
+ :host([push-content][position="top"][open][size="xl"]) {
426
+ --drawer-push-amount: var(--drawer-height-xl);
427
+ }
428
+
429
+ :host([push-content][position="top"][open][size="xxl"]) {
430
+ --drawer-push-amount: var(--drawer-height-xxl);
431
+ }
432
+
433
+ :host([push-content][position="top"][open][size="xxxl"]) {
434
+ --drawer-push-amount: var(--drawer-height-xxxl);
435
+ }
436
+
437
+ :host([push-content][position="top"][open][size="full"]) {
438
+ --drawer-push-amount: 100vh;
439
+ }
440
+
441
+ :host([push-content][position="top"][open]:not([size])) {
442
+ --drawer-push-amount: var(--drawer-height-medium);
443
+ }
444
+
445
+ /* Bottom position push amounts */
446
+ :host([push-content][position="bottom"][open][size="small"]) {
447
+ --drawer-push-amount: calc(-1 * var(--drawer-height-small));
448
+ }
449
+
450
+ :host([push-content][position="bottom"][open][size="medium"]) {
451
+ --drawer-push-amount: calc(-1 * var(--drawer-height-medium));
452
+ }
453
+
454
+ :host([push-content][position="bottom"][open][size="large"]) {
455
+ --drawer-push-amount: calc(-1 * var(--drawer-height-large));
456
+ }
457
+
458
+ :host([push-content][position="bottom"][open][size="xl"]) {
459
+ --drawer-push-amount: calc(-1 * var(--drawer-height-xl));
460
+ }
461
+
462
+ :host([push-content][position="bottom"][open][size="xxl"]) {
463
+ --drawer-push-amount: calc(-1 * var(--drawer-height-xxl));
464
+ }
465
+
466
+ :host([push-content][position="bottom"][open][size="xxxl"]) {
467
+ --drawer-push-amount: calc(-1 * var(--drawer-height-xxxl));
468
+ }
469
+
470
+ :host([push-content][position="bottom"][open][size="full"]) {
471
+ --drawer-push-amount: -100vh;
472
+ }
473
+
474
+ :host([push-content][position="bottom"][open]:not([size])) {
475
+ --drawer-push-amount: calc(-1 * var(--drawer-height-medium));
476
+ }