snice 2.1.5 → 2.2.1

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 (367) hide show
  1. package/dist/components/accordion/snice-accordion-item.d.ts +25 -0
  2. package/dist/components/accordion/snice-accordion-item.js +255 -0
  3. package/dist/components/accordion/snice-accordion-item.js.map +1 -0
  4. package/dist/components/accordion/snice-accordion.d.ts +28 -0
  5. package/dist/components/accordion/snice-accordion.js +206 -0
  6. package/dist/components/accordion/snice-accordion.js.map +1 -0
  7. package/dist/components/accordion/snice-accordion.types.d.ts +29 -0
  8. package/dist/components/alert/snice-alert.d.ts +26 -0
  9. package/dist/components/alert/snice-alert.js +180 -0
  10. package/dist/components/alert/snice-alert.js.map +1 -0
  11. package/{components/alert/snice-alert.types.ts → dist/components/alert/snice-alert.types.d.ts} +8 -9
  12. package/dist/components/avatar/snice-avatar.d.ts +24 -0
  13. package/dist/components/avatar/snice-avatar.js +180 -0
  14. package/dist/components/avatar/snice-avatar.js.map +1 -0
  15. package/dist/components/avatar/snice-avatar.types.d.ts +12 -0
  16. package/dist/components/badge/snice-badge.d.ts +25 -0
  17. package/dist/components/badge/snice-badge.js +169 -0
  18. package/dist/components/badge/snice-badge.js.map +1 -0
  19. package/{components/badge/snice-badge.types.ts → dist/components/badge/snice-badge.types.d.ts} +11 -12
  20. package/dist/components/breadcrumbs/snice-breadcrumbs.d.ts +27 -0
  21. package/dist/components/breadcrumbs/snice-breadcrumbs.js +214 -0
  22. package/dist/components/breadcrumbs/snice-breadcrumbs.js.map +1 -0
  23. package/dist/components/breadcrumbs/snice-breadcrumbs.types.d.ts +23 -0
  24. package/dist/components/breadcrumbs/snice-crumb.d.ts +9 -0
  25. package/dist/components/breadcrumbs/snice-crumb.js +63 -0
  26. package/dist/components/breadcrumbs/snice-crumb.js.map +1 -0
  27. package/dist/components/button/snice-button.d.ts +32 -0
  28. package/dist/components/button/snice-button.js +232 -0
  29. package/dist/components/button/snice-button.js.map +1 -0
  30. package/dist/components/button/snice-button.types.d.ts +23 -0
  31. package/dist/components/card/snice-card.d.ts +19 -0
  32. package/dist/components/card/snice-card.js +136 -0
  33. package/dist/components/card/snice-card.js.map +1 -0
  34. package/{components/card/snice-card.types.ts → dist/components/card/snice-card.types.d.ts} +6 -7
  35. package/dist/components/checkbox/snice-checkbox.d.ts +34 -0
  36. package/dist/components/checkbox/snice-checkbox.js +286 -0
  37. package/dist/components/checkbox/snice-checkbox.js.map +1 -0
  38. package/dist/components/checkbox/snice-checkbox.types.d.ts +20 -0
  39. package/dist/components/chip/snice-chip.d.ts +28 -0
  40. package/dist/components/chip/snice-chip.js +199 -0
  41. package/dist/components/chip/snice-chip.js.map +1 -0
  42. package/dist/components/chip/snice-chip.types.d.ts +14 -0
  43. package/dist/components/date-picker/snice-date-picker.d.ts +82 -0
  44. package/dist/components/date-picker/snice-date-picker.js +847 -0
  45. package/dist/components/date-picker/snice-date-picker.js.map +1 -0
  46. package/dist/components/date-picker/snice-date-picker.types.d.ts +71 -0
  47. package/dist/components/divider/snice-divider.d.ts +17 -0
  48. package/dist/components/divider/snice-divider.js +122 -0
  49. package/dist/components/divider/snice-divider.js.map +1 -0
  50. package/{components/divider/snice-divider.types.ts → dist/components/divider/snice-divider.types.d.ts} +9 -10
  51. package/dist/components/drawer/snice-drawer.d.ts +37 -0
  52. package/dist/components/drawer/snice-drawer.js +337 -0
  53. package/dist/components/drawer/snice-drawer.js.map +1 -0
  54. package/dist/components/drawer/snice-drawer.types.d.ts +16 -0
  55. package/dist/components/input/snice-input.d.ts +65 -0
  56. package/dist/components/input/snice-input.js +567 -0
  57. package/dist/components/input/snice-input.js.map +1 -0
  58. package/dist/components/input/snice-input.types.d.ts +53 -0
  59. package/dist/components/layout/snice-layout-blog.d.ts +4 -0
  60. package/dist/components/layout/snice-layout-blog.js +67 -0
  61. package/dist/components/layout/snice-layout-blog.js.map +1 -0
  62. package/dist/components/layout/snice-layout-card.d.ts +6 -0
  63. package/dist/components/layout/snice-layout-card.js +64 -0
  64. package/dist/components/layout/snice-layout-card.js.map +1 -0
  65. package/dist/components/layout/snice-layout-centered.d.ts +5 -0
  66. package/dist/components/layout/snice-layout-centered.js +48 -0
  67. package/dist/components/layout/snice-layout-centered.js.map +1 -0
  68. package/dist/components/layout/snice-layout-dashboard.d.ts +4 -0
  69. package/dist/components/layout/snice-layout-dashboard.js +64 -0
  70. package/dist/components/layout/snice-layout-dashboard.js.map +1 -0
  71. package/dist/components/layout/snice-layout-fullscreen.d.ts +5 -0
  72. package/dist/components/layout/snice-layout-fullscreen.js +60 -0
  73. package/dist/components/layout/snice-layout-fullscreen.js.map +1 -0
  74. package/dist/components/layout/snice-layout-landing.d.ts +4 -0
  75. package/dist/components/layout/snice-layout-landing.js +66 -0
  76. package/dist/components/layout/snice-layout-landing.js.map +1 -0
  77. package/dist/components/layout/snice-layout-minimal.d.ts +4 -0
  78. package/dist/components/layout/snice-layout-minimal.js +38 -0
  79. package/dist/components/layout/snice-layout-minimal.js.map +1 -0
  80. package/dist/components/layout/snice-layout-sidebar.d.ts +5 -0
  81. package/dist/components/layout/snice-layout-sidebar.js +74 -0
  82. package/dist/components/layout/snice-layout-sidebar.js.map +1 -0
  83. package/dist/components/layout/snice-layout-split.d.ts +6 -0
  84. package/dist/components/layout/snice-layout-split.js +58 -0
  85. package/dist/components/layout/snice-layout-split.js.map +1 -0
  86. package/dist/components/layout/snice-layout.d.ts +4 -0
  87. package/dist/components/layout/snice-layout.js +54 -0
  88. package/dist/components/layout/snice-layout.js.map +1 -0
  89. package/{components/layout/snice-layout.types.ts → dist/components/layout/snice-layout.types.d.ts} +1 -3
  90. package/dist/components/login/snice-login.d.ts +44 -0
  91. package/dist/components/login/snice-login.js +382 -0
  92. package/dist/components/login/snice-login.js.map +1 -0
  93. package/dist/components/login/snice-login.types.d.ts +26 -0
  94. package/dist/components/modal/snice-modal.d.ts +32 -0
  95. package/dist/components/modal/snice-modal.js +280 -0
  96. package/dist/components/modal/snice-modal.js.map +1 -0
  97. package/dist/components/modal/snice-modal.types.d.ts +18 -0
  98. package/dist/components/pagination/snice-pagination.d.ts +26 -0
  99. package/dist/components/pagination/snice-pagination.js +373 -0
  100. package/dist/components/pagination/snice-pagination.js.map +1 -0
  101. package/dist/components/pagination/snice-pagination.types.d.ts +18 -0
  102. package/dist/components/progress/snice-progress.d.ts +35 -0
  103. package/dist/components/progress/snice-progress.js +305 -0
  104. package/dist/components/progress/snice-progress.js.map +1 -0
  105. package/dist/components/progress/snice-progress.types.d.ts +18 -0
  106. package/dist/components/radio/snice-radio.d.ts +33 -0
  107. package/dist/components/radio/snice-radio.js +279 -0
  108. package/dist/components/radio/snice-radio.js.map +1 -0
  109. package/dist/components/radio/snice-radio.types.d.ts +19 -0
  110. package/dist/components/select/snice-option.d.ts +17 -0
  111. package/dist/components/select/snice-option.js +88 -0
  112. package/dist/components/select/snice-option.js.map +1 -0
  113. package/{components/select/snice-option.types.ts → dist/components/select/snice-option.types.d.ts} +8 -8
  114. package/dist/components/select/snice-select.d.ts +89 -0
  115. package/dist/components/select/snice-select.js +864 -0
  116. package/dist/components/select/snice-select.js.map +1 -0
  117. package/dist/components/select/snice-select.types.d.ts +49 -0
  118. package/dist/components/skeleton/snice-skeleton.d.ts +16 -0
  119. package/dist/components/skeleton/snice-skeleton.js +166 -0
  120. package/dist/components/skeleton/snice-skeleton.js.map +1 -0
  121. package/{components/skeleton/snice-skeleton.types.ts → dist/components/skeleton/snice-skeleton.types.d.ts} +7 -8
  122. package/dist/components/snice-cell-C9N6yGxQ.js +4 -0
  123. package/dist/components/snice-cell-C9N6yGxQ.js.map +1 -0
  124. package/dist/components/switch/snice-switch.d.ts +38 -0
  125. package/dist/components/switch/snice-switch.js +305 -0
  126. package/dist/components/switch/snice-switch.js.map +1 -0
  127. package/dist/components/switch/snice-switch.types.d.ts +21 -0
  128. package/dist/components/symbols.d.ts +1 -0
  129. package/dist/components/symbols.js +22 -0
  130. package/dist/components/symbols.js.map +1 -0
  131. package/dist/components/table/snice-cell-boolean.d.ts +21 -0
  132. package/dist/components/table/snice-cell-boolean.js +164 -0
  133. package/dist/components/table/snice-cell-boolean.js.map +1 -0
  134. package/dist/components/table/snice-cell-date.d.ts +24 -0
  135. package/dist/components/table/snice-cell-date.js +253 -0
  136. package/dist/components/table/snice-cell-date.js.map +1 -0
  137. package/dist/components/table/snice-cell-duration.d.ts +16 -0
  138. package/dist/components/table/snice-cell-duration.js +130 -0
  139. package/dist/components/table/snice-cell-duration.js.map +1 -0
  140. package/dist/components/table/snice-cell-filesize.d.ts +16 -0
  141. package/dist/components/table/snice-cell-filesize.js +126 -0
  142. package/dist/components/table/snice-cell-filesize.js.map +1 -0
  143. package/dist/components/table/snice-cell-number.d.ts +23 -0
  144. package/dist/components/table/snice-cell-number.js +215 -0
  145. package/dist/components/table/snice-cell-number.js.map +1 -0
  146. package/dist/components/table/snice-cell-progress.d.ts +17 -0
  147. package/dist/components/table/snice-cell-progress.js +121 -0
  148. package/dist/components/table/snice-cell-progress.js.map +1 -0
  149. package/dist/components/table/snice-cell-rating.d.ts +17 -0
  150. package/dist/components/table/snice-cell-rating.js +120 -0
  151. package/dist/components/table/snice-cell-rating.js.map +1 -0
  152. package/dist/components/table/snice-cell-sparkline.d.ts +29 -0
  153. package/dist/components/table/snice-cell-sparkline.js +306 -0
  154. package/dist/components/table/snice-cell-sparkline.js.map +1 -0
  155. package/dist/components/table/snice-cell-text.d.ts +19 -0
  156. package/dist/components/table/snice-cell-text.js +161 -0
  157. package/dist/components/table/snice-cell-text.js.map +1 -0
  158. package/dist/components/table/snice-cell.d.ts +32 -0
  159. package/dist/components/table/snice-cell.js +458 -0
  160. package/dist/components/table/snice-cell.js.map +1 -0
  161. package/dist/components/table/snice-column.d.ts +62 -0
  162. package/dist/components/table/snice-column.js +506 -0
  163. package/dist/components/table/snice-column.js.map +1 -0
  164. package/dist/components/table/snice-header.d.ts +33 -0
  165. package/dist/components/table/snice-header.js +289 -0
  166. package/dist/components/table/snice-header.js.map +1 -0
  167. package/dist/components/table/snice-progress.d.ts +10 -0
  168. package/dist/components/table/snice-progress.js +105 -0
  169. package/dist/components/table/snice-progress.js.map +1 -0
  170. package/dist/components/table/snice-rating.d.ts +9 -0
  171. package/dist/components/table/snice-rating.js +81 -0
  172. package/dist/components/table/snice-rating.js.map +1 -0
  173. package/dist/components/table/snice-row.d.ts +43 -0
  174. package/dist/components/table/snice-row.js +353 -0
  175. package/dist/components/table/snice-row.js.map +1 -0
  176. package/dist/components/table/snice-table.d.ts +69 -0
  177. package/dist/components/table/snice-table.js +792 -0
  178. package/dist/components/table/snice-table.js.map +1 -0
  179. package/dist/components/table/snice-table.types.d.ts +137 -0
  180. package/dist/components/tabs/snice-tab-panel.d.ts +12 -0
  181. package/dist/components/tabs/snice-tab-panel.js +87 -0
  182. package/dist/components/tabs/snice-tab-panel.js.map +1 -0
  183. package/dist/components/tabs/snice-tab.d.ts +13 -0
  184. package/dist/components/tabs/snice-tab.js +98 -0
  185. package/dist/components/tabs/snice-tab.js.map +1 -0
  186. package/dist/components/tabs/snice-tabs.d.ts +34 -0
  187. package/dist/components/tabs/snice-tabs.js +375 -0
  188. package/dist/components/tabs/snice-tabs.js.map +1 -0
  189. package/dist/components/tabs/snice-tabs.types.d.ts +23 -0
  190. package/dist/components/toast/snice-toast-container.d.ts +25 -0
  191. package/dist/components/toast/snice-toast-container.js +252 -0
  192. package/dist/components/toast/snice-toast-container.js.map +1 -0
  193. package/dist/components/toast/snice-toast.d.ts +23 -0
  194. package/dist/components/toast/snice-toast.js +321 -0
  195. package/dist/components/toast/snice-toast.js.map +1 -0
  196. package/dist/components/toast/snice-toast.types.d.ts +30 -0
  197. package/dist/components/tooltip/snice-tooltip.d.ts +50 -0
  198. package/dist/components/tooltip/snice-tooltip.js +644 -0
  199. package/dist/components/tooltip/snice-tooltip.js.map +1 -0
  200. package/dist/components/tooltip/snice-tooltip.types.d.ts +18 -0
  201. package/dist/components/transitions.d.ts +11 -0
  202. package/dist/components/transitions.js +72 -0
  203. package/dist/components/transitions.js.map +1 -0
  204. package/dist/index.cjs +1 -1
  205. package/dist/index.esm.js +1 -1
  206. package/dist/index.iife.js +1 -1
  207. package/dist/symbols.esm.js +1 -1
  208. package/dist/transitions.esm.js +1 -1
  209. package/package.json +10 -6
  210. package/components/accordion/demo.html +0 -403
  211. package/components/accordion/snice-accordion-item.css +0 -85
  212. package/components/accordion/snice-accordion-item.ts +0 -226
  213. package/components/accordion/snice-accordion.css +0 -31
  214. package/components/accordion/snice-accordion.ts +0 -182
  215. package/components/accordion/snice-accordion.types.ts +0 -32
  216. package/components/alert/demo.html +0 -445
  217. package/components/alert/snice-alert.css +0 -195
  218. package/components/alert/snice-alert.ts +0 -141
  219. package/components/avatar/demo.html +0 -598
  220. package/components/avatar/snice-avatar.css +0 -131
  221. package/components/avatar/snice-avatar.ts +0 -136
  222. package/components/avatar/snice-avatar.types.ts +0 -13
  223. package/components/badge/demo.html +0 -523
  224. package/components/badge/snice-badge.css +0 -161
  225. package/components/badge/snice-badge.ts +0 -117
  226. package/components/breadcrumbs/demo.html +0 -404
  227. package/components/breadcrumbs/snice-breadcrumbs.css +0 -133
  228. package/components/breadcrumbs/snice-breadcrumbs.ts +0 -191
  229. package/components/breadcrumbs/snice-breadcrumbs.types.ts +0 -26
  230. package/components/breadcrumbs/snice-crumb.ts +0 -26
  231. package/components/button/demo.html +0 -42
  232. package/components/button/snice-button.css +0 -230
  233. package/components/button/snice-button.ts +0 -169
  234. package/components/button/snice-button.types.ts +0 -25
  235. package/components/card/demo.html +0 -525
  236. package/components/card/snice-card.css +0 -140
  237. package/components/card/snice-card.ts +0 -102
  238. package/components/checkbox/demo.html +0 -253
  239. package/components/checkbox/snice-checkbox.css +0 -164
  240. package/components/checkbox/snice-checkbox.ts +0 -223
  241. package/components/checkbox/snice-checkbox.types.ts +0 -22
  242. package/components/chip/demo.html +0 -383
  243. package/components/chip/snice-chip.css +0 -195
  244. package/components/chip/snice-chip.ts +0 -139
  245. package/components/chip/snice-chip.types.ts +0 -15
  246. package/components/date-picker/README.md +0 -233
  247. package/components/date-picker/demo.html +0 -191
  248. package/components/date-picker/snice-date-picker.css +0 -330
  249. package/components/date-picker/snice-date-picker.ts +0 -777
  250. package/components/date-picker/snice-date-picker.types.ts +0 -83
  251. package/components/divider/demo.html +0 -233
  252. package/components/divider/snice-divider.css +0 -155
  253. package/components/divider/snice-divider.ts +0 -69
  254. package/components/drawer/demo.html +0 -328
  255. package/components/drawer/snice-drawer.css +0 -476
  256. package/components/drawer/snice-drawer.ts +0 -287
  257. package/components/drawer/snice-drawer.types.ts +0 -17
  258. package/components/global.d.ts +0 -14
  259. package/components/input/demo.html +0 -303
  260. package/components/input/snice-input.css +0 -257
  261. package/components/input/snice-input.ts +0 -442
  262. package/components/input/snice-input.types.ts +0 -59
  263. package/components/input/test.html +0 -77
  264. package/components/layout/README.md +0 -260
  265. package/components/layout/demo.html +0 -538
  266. package/components/layout/snice-layout-blog.css +0 -129
  267. package/components/layout/snice-layout-blog.ts +0 -48
  268. package/components/layout/snice-layout-card.css +0 -104
  269. package/components/layout/snice-layout-card.ts +0 -35
  270. package/components/layout/snice-layout-centered.css +0 -51
  271. package/components/layout/snice-layout-centered.ts +0 -22
  272. package/components/layout/snice-layout-dashboard.css +0 -98
  273. package/components/layout/snice-layout-dashboard.ts +0 -45
  274. package/components/layout/snice-layout-fullscreen.css +0 -72
  275. package/components/layout/snice-layout-fullscreen.ts +0 -34
  276. package/components/layout/snice-layout-landing.css +0 -92
  277. package/components/layout/snice-layout-landing.ts +0 -47
  278. package/components/layout/snice-layout-minimal.css +0 -16
  279. package/components/layout/snice-layout-minimal.ts +0 -19
  280. package/components/layout/snice-layout-sidebar.css +0 -117
  281. package/components/layout/snice-layout-sidebar.ts +0 -48
  282. package/components/layout/snice-layout-split.css +0 -103
  283. package/components/layout/snice-layout-split.ts +0 -29
  284. package/components/layout/snice-layout.css +0 -72
  285. package/components/layout/snice-layout.ts +0 -35
  286. package/components/login/demo-auth-controller.ts +0 -185
  287. package/components/login/demo.html +0 -470
  288. package/components/login/snice-login.css +0 -204
  289. package/components/login/snice-login.ts +0 -326
  290. package/components/login/snice-login.types.ts +0 -29
  291. package/components/modal/demo.html +0 -291
  292. package/components/modal/snice-modal.css +0 -203
  293. package/components/modal/snice-modal.ts +0 -233
  294. package/components/modal/snice-modal.types.ts +0 -21
  295. package/components/pagination/demo.html +0 -395
  296. package/components/pagination/snice-pagination.ts +0 -333
  297. package/components/pagination/snice-pagination.types.ts +0 -21
  298. package/components/progress/demo.html +0 -510
  299. package/components/progress/snice-progress.css +0 -267
  300. package/components/progress/snice-progress.ts +0 -247
  301. package/components/progress/snice-progress.types.ts +0 -19
  302. package/components/radio/demo.html +0 -287
  303. package/components/radio/snice-radio.css +0 -171
  304. package/components/radio/snice-radio.ts +0 -218
  305. package/components/radio/snice-radio.types.ts +0 -21
  306. package/components/select/demo.html +0 -511
  307. package/components/select/snice-option.ts +0 -52
  308. package/components/select/snice-select.css +0 -392
  309. package/components/select/snice-select.ts +0 -796
  310. package/components/select/snice-select.types.ts +0 -55
  311. package/components/skeleton/demo.html +0 -514
  312. package/components/skeleton/snice-skeleton.css +0 -109
  313. package/components/skeleton/snice-skeleton.ts +0 -126
  314. package/components/switch/demo.html +0 -284
  315. package/components/switch/snice-switch.css +0 -221
  316. package/components/switch/snice-switch.ts +0 -229
  317. package/components/switch/snice-switch.types.ts +0 -23
  318. package/components/symbols.ts +0 -23
  319. package/components/table/demo-table-controller.ts +0 -100
  320. package/components/table/demo.html +0 -480
  321. package/components/table/snice-cell-boolean.ts +0 -112
  322. package/components/table/snice-cell-date.ts +0 -210
  323. package/components/table/snice-cell-duration.ts +0 -91
  324. package/components/table/snice-cell-filesize.ts +0 -90
  325. package/components/table/snice-cell-number.ts +0 -165
  326. package/components/table/snice-cell-progress.ts +0 -83
  327. package/components/table/snice-cell-rating.ts +0 -82
  328. package/components/table/snice-cell-sparkline.ts +0 -253
  329. package/components/table/snice-cell-text.ts +0 -125
  330. package/components/table/snice-cell.css +0 -296
  331. package/components/table/snice-cell.ts +0 -473
  332. package/components/table/snice-column.ts +0 -353
  333. package/components/table/snice-header.css +0 -243
  334. package/components/table/snice-header.ts +0 -261
  335. package/components/table/snice-progress.ts +0 -66
  336. package/components/table/snice-rating.ts +0 -45
  337. package/components/table/snice-row.css +0 -255
  338. package/components/table/snice-row.ts +0 -331
  339. package/components/table/snice-table.css +0 -241
  340. package/components/table/snice-table.ts +0 -737
  341. package/components/table/snice-table.types.ts +0 -158
  342. package/components/tabs/demo.html +0 -487
  343. package/components/tabs/snice-tab-panel.css +0 -264
  344. package/components/tabs/snice-tab-panel.ts +0 -47
  345. package/components/tabs/snice-tab.css +0 -96
  346. package/components/tabs/snice-tab.ts +0 -65
  347. package/components/tabs/snice-tabs.css +0 -189
  348. package/components/tabs/snice-tabs.ts +0 -332
  349. package/components/tabs/snice-tabs.types.ts +0 -28
  350. package/components/theme/theme.css +0 -234
  351. package/components/toast/demo.html +0 -329
  352. package/components/toast/snice-toast-container.ts +0 -256
  353. package/components/toast/snice-toast.css +0 -213
  354. package/components/toast/snice-toast.ts +0 -276
  355. package/components/toast/snice-toast.types.ts +0 -35
  356. package/components/tooltip/demo.html +0 -350
  357. package/components/tooltip/snice-tooltip-portal.css +0 -79
  358. package/components/tooltip/snice-tooltip.css +0 -117
  359. package/components/tooltip/snice-tooltip.ts +0 -612
  360. package/components/tooltip/snice-tooltip.types.ts +0 -32
  361. package/components/transitions.ts +0 -94
  362. package/components/tsconfig.json +0 -18
  363. package/dist/index.cjs.min.map +0 -1
  364. package/dist/index.esm.min.js +0 -14
  365. package/dist/index.esm.min.js.map +0 -1
  366. package/dist/index.iife.min.js +0 -15
  367. package/dist/index.iife.min.js.map +0 -1
@@ -1,476 +0,0 @@
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
- }