@trendyol/baklava 3.4.2 → 3.5.0-beta.10

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 (205) hide show
  1. package/dist/baklava-react.js +1 -1
  2. package/dist/baklava-svelte.d.ts +4 -0
  3. package/dist/baklava.d.ts +2 -0
  4. package/dist/baklava.d.ts.map +1 -1
  5. package/dist/baklava.js +1 -1
  6. package/dist/chunk-276RDWEQ.js +95 -0
  7. package/dist/{chunk-HBPBDC7T.js.map → chunk-276RDWEQ.js.map} +4 -4
  8. package/dist/{chunk-LZ6VDMPM.js → chunk-2JDJGZRM.js} +2 -2
  9. package/dist/chunk-2PI5BUSE.js +2 -0
  10. package/dist/chunk-2PI5BUSE.js.map +7 -0
  11. package/dist/chunk-2XEDFGYF.js +59 -0
  12. package/dist/chunk-2XEDFGYF.js.map +7 -0
  13. package/dist/chunk-3D7WG3ON.js +5 -0
  14. package/dist/chunk-3D7WG3ON.js.map +7 -0
  15. package/dist/{chunk-NW7MDZJB.js → chunk-4BLKAURK.js} +2 -2
  16. package/dist/{chunk-3MLXIDOD.js → chunk-5TPDRTCU.js} +2 -2
  17. package/dist/chunk-6JU6I4L7.js +2 -0
  18. package/dist/chunk-6JU6I4L7.js.map +7 -0
  19. package/dist/{chunk-D7VPTSSK.js → chunk-7WQEZTFP.js} +2 -2
  20. package/dist/chunk-7WQEZTFP.js.map +7 -0
  21. package/dist/chunk-AIHL337R.js +50 -0
  22. package/dist/chunk-AIHL337R.js.map +7 -0
  23. package/dist/{chunk-3OQA4BKQ.js → chunk-BH64QNLE.js} +2 -2
  24. package/dist/{chunk-JTNWYMYZ.js → chunk-CNWKBBJJ.js} +2 -2
  25. package/dist/{chunk-KYLWO3YR.js → chunk-DAMBW5GX.js} +3 -3
  26. package/dist/{chunk-KYLWO3YR.js.map → chunk-DAMBW5GX.js.map} +3 -3
  27. package/dist/chunk-EFOTKJY4.js +80 -0
  28. package/dist/chunk-EFOTKJY4.js.map +7 -0
  29. package/dist/chunk-EH2C72PD.js +2 -0
  30. package/dist/chunk-EH2C72PD.js.map +7 -0
  31. package/dist/{chunk-LCAPXVGE.js → chunk-ERL6CBPO.js} +2 -2
  32. package/dist/{chunk-Z2AZS34W.js → chunk-G4DOH6BQ.js} +2 -2
  33. package/dist/{chunk-7HEDOM2M.js → chunk-GISZRI4I.js} +2 -2
  34. package/dist/{chunk-FS3MTRC3.js → chunk-IKYI4JCF.js} +2 -2
  35. package/dist/chunk-IZ2LK5GK.js +2 -0
  36. package/dist/{chunk-M4E4CVZ4.js → chunk-J24DBEJQ.js} +2 -2
  37. package/dist/{chunk-DPKNQOJX.js → chunk-J5YZ4HBV.js} +2 -2
  38. package/dist/{chunk-BDTCJ2JC.js → chunk-JXB2O63E.js} +2 -2
  39. package/dist/chunk-KC4ECXJJ.js +2 -0
  40. package/dist/chunk-KC4ECXJJ.js.map +7 -0
  41. package/dist/{chunk-5QGKDF4O.js → chunk-L5U5XRNP.js} +2 -2
  42. package/dist/chunk-LYHOM7F5.js +37 -0
  43. package/dist/chunk-LYHOM7F5.js.map +7 -0
  44. package/dist/{chunk-6XM52E7W.js → chunk-MWFGDECP.js} +2 -2
  45. package/dist/{chunk-FCOVZEHC.js → chunk-P5TOP3NH.js} +2 -2
  46. package/dist/chunk-PQEZBW3G.js +54 -0
  47. package/dist/chunk-PQEZBW3G.js.map +7 -0
  48. package/dist/{chunk-UK2ZEQBN.js → chunk-QDYWH7BU.js} +2 -2
  49. package/dist/{chunk-WZBUJ4ER.js → chunk-QF4LGACD.js} +2 -2
  50. package/dist/{chunk-UV7BOOVA.js → chunk-QKII4FCI.js} +2 -2
  51. package/dist/{chunk-5NSAJ3SX.js → chunk-S4BD3HT2.js} +2 -2
  52. package/dist/{chunk-23AVKNCC.js → chunk-SBCJY5IU.js} +2 -2
  53. package/dist/{chunk-LIUATY6B.js → chunk-SIP5IK3N.js} +2 -2
  54. package/dist/{chunk-UF5VCR36.js → chunk-STZJ3LBU.js} +2 -2
  55. package/dist/{chunk-UGRBWOQE.js → chunk-T5MEA7JO.js} +2 -2
  56. package/dist/{chunk-BCRV6HG6.js → chunk-TBB5HNL6.js} +2 -2
  57. package/dist/{chunk-7N7YHRPA.js → chunk-UQMXWLP6.js} +2 -2
  58. package/dist/{chunk-YH3MSMXL.js → chunk-WPESQSKX.js} +2 -2
  59. package/dist/{chunk-FANRUDPK.js → chunk-WUXXMMTM.js} +2 -2
  60. package/dist/chunk-X2MSD7NS.js +14 -0
  61. package/dist/chunk-X2MSD7NS.js.map +7 -0
  62. package/dist/{chunk-IR2QY2VG.js → chunk-YIKU2R7W.js} +2 -2
  63. package/dist/{chunk-OYHUG47P.js → chunk-ZE7GYACV.js} +2 -2
  64. package/dist/chunk-ZLE5MDX7.js +2 -0
  65. package/dist/chunk-ZLE5MDX7.js.map +7 -0
  66. package/dist/{chunk-HD7EU6S5.js → chunk-ZLJF4SVG.js} +2 -2
  67. package/dist/{chunk-NM74WWXQ.js → chunk-ZQ4MQ3U6.js} +2 -2
  68. package/dist/chunk-ZQ4MQ3U6.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.constant.js +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.d.ts +4 -0
  79. package/dist/components/datepicker/bl-datepicker.d.ts.map +1 -1
  80. package/dist/components/datepicker/bl-datepicker.js +1 -1
  81. package/dist/components/dialog/bl-dialog.js +1 -1
  82. package/dist/components/dialog/bl-dialog.stories.js +1 -1
  83. package/dist/components/drawer/bl-drawer.js +1 -1
  84. package/dist/components/dropdown/bl-dropdown.js +1 -1
  85. package/dist/components/dropdown/group/bl-dropdown-group.js +1 -1
  86. package/dist/components/dropdown/item/bl-dropdown-item.js +1 -1
  87. package/dist/components/icon/bl-icon.js +1 -1
  88. package/dist/components/icon/icon-list.js +1 -1
  89. package/dist/components/input/bl-input.d.ts +4 -0
  90. package/dist/components/input/bl-input.d.ts.map +1 -1
  91. package/dist/components/input/bl-input.js +1 -1
  92. package/dist/components/link/bl-link.js +1 -1
  93. package/dist/components/link/bl-link.stories.js +1 -1
  94. package/dist/components/notification/bl-notification.js +1 -1
  95. package/dist/components/notification/bl-notification.stories.d.ts.map +1 -1
  96. package/dist/components/notification/bl-notification.stories.js +20 -8
  97. package/dist/components/notification/bl-notification.stories.js.map +2 -2
  98. package/dist/components/notification/card/bl-notification-card.js +1 -1
  99. package/dist/components/pagination/bl-pagination.js +1 -1
  100. package/dist/components/popover/bl-popover.d.ts.map +1 -1
  101. package/dist/components/popover/bl-popover.js +1 -1
  102. package/dist/components/progress-indicator/bl-progress-indicator.js +1 -1
  103. package/dist/components/radio-group/bl-radio-group.js +1 -1
  104. package/dist/components/radio-group/radio/bl-radio.js +1 -1
  105. package/dist/components/select/bl-select.d.ts.map +1 -1
  106. package/dist/components/select/bl-select.js +1 -1
  107. package/dist/components/select/option/bl-select-option.js +1 -1
  108. package/dist/components/spinner/bl-spinner.js +1 -1
  109. package/dist/components/split-button/bl-split-button.js +1 -1
  110. package/dist/components/stepper/bl-stepper-item.d.ts.map +1 -1
  111. package/dist/components/stepper/bl-stepper-item.js +1 -1
  112. package/dist/components/stepper/bl-stepper.js +1 -1
  113. package/dist/components/stepper/bl-stepper.stories.js +1 -1
  114. package/dist/components/switch/bl-switch.js +1 -1
  115. package/dist/components/tab-group/bl-tab-group.js +1 -1
  116. package/dist/components/tab-group/tab/bl-tab.js +1 -1
  117. package/dist/components/tab-group/tab-panel/bl-tab-panel.js +1 -1
  118. package/dist/components/table/bl-table.js +1 -1
  119. package/dist/components/table/table-body/bl-table-body.d.ts +4 -1
  120. package/dist/components/table/table-body/bl-table-body.d.ts.map +1 -1
  121. package/dist/components/table/table-body/bl-table-body.js +1 -1
  122. package/dist/components/table/table-cell/bl-table-cell.js +1 -1
  123. package/dist/components/table/table-header/bl-table-header.js +1 -1
  124. package/dist/components/table/table-header-cell/bl-table-header-cell.js +1 -1
  125. package/dist/components/table/table-row/bl-table-row.js +1 -1
  126. package/dist/components/tag/bl-tag.js +1 -1
  127. package/dist/components/textarea/bl-textarea.js +1 -1
  128. package/dist/components/tooltip/bl-tooltip.js +1 -1
  129. package/dist/components/tooltip/bl-tooltip.test.d.ts +6 -1
  130. package/dist/components/tooltip/bl-tooltip.test.d.ts.map +1 -1
  131. package/dist/custom-elements.json +63 -1
  132. package/dist/generated/locale-codes.js +1 -1
  133. package/dist/generated/locales/ar.d.ts +3 -0
  134. package/dist/generated/locales/ar.d.ts.map +1 -1
  135. package/dist/generated/locales/ar.js +1 -1
  136. package/dist/generated/locales/ar.js.map +4 -4
  137. package/dist/generated/locales/ro.d.ts +3 -0
  138. package/dist/generated/locales/ro.d.ts.map +1 -1
  139. package/dist/generated/locales/ro.js +1 -1
  140. package/dist/generated/locales/ro.js.map +4 -4
  141. package/dist/generated/locales/tr.d.ts +3 -0
  142. package/dist/generated/locales/tr.d.ts.map +1 -1
  143. package/dist/generated/locales/tr.js +1 -1
  144. package/dist/generated/locales/tr.js.map +4 -4
  145. package/dist/localization.d.ts +5 -0
  146. package/dist/localization.d.ts.map +1 -1
  147. package/dist/localization.js +1 -1
  148. package/dist/localization.js.map +4 -4
  149. package/dist/themes/dark.css +2 -0
  150. package/dist/themes/dark.css.map +7 -0
  151. package/dist/themes/default.css +1 -1
  152. package/dist/themes/default.css.map +2 -2
  153. package/dist/utilities/format-to-date-array.d.ts.map +1 -1
  154. package/package.json +10 -7
  155. package/dist/chunk-3IZAFXL6.js +0 -59
  156. package/dist/chunk-3IZAFXL6.js.map +0 -7
  157. package/dist/chunk-BWWXE4SL.js +0 -2
  158. package/dist/chunk-C2UDBDKV.js +0 -53
  159. package/dist/chunk-C2UDBDKV.js.map +0 -7
  160. package/dist/chunk-D7VPTSSK.js.map +0 -7
  161. package/dist/chunk-EZSEQHRH.js +0 -2
  162. package/dist/chunk-EZSEQHRH.js.map +0 -7
  163. package/dist/chunk-HBPBDC7T.js +0 -95
  164. package/dist/chunk-HCSEQTUP.js +0 -37
  165. package/dist/chunk-HCSEQTUP.js.map +0 -7
  166. package/dist/chunk-IEFQ6PGY.js +0 -80
  167. package/dist/chunk-IEFQ6PGY.js.map +0 -7
  168. package/dist/chunk-JN5BKKQZ.js +0 -14
  169. package/dist/chunk-JN5BKKQZ.js.map +0 -7
  170. package/dist/chunk-NM74WWXQ.js.map +0 -7
  171. package/dist/chunk-P4S537UY.js +0 -50
  172. package/dist/chunk-P4S537UY.js.map +0 -7
  173. package/dist/chunk-RCHKJINV.js +0 -5
  174. package/dist/chunk-RCHKJINV.js.map +0 -7
  175. /package/dist/{chunk-LZ6VDMPM.js.map → chunk-2JDJGZRM.js.map} +0 -0
  176. /package/dist/{chunk-NW7MDZJB.js.map → chunk-4BLKAURK.js.map} +0 -0
  177. /package/dist/{chunk-3MLXIDOD.js.map → chunk-5TPDRTCU.js.map} +0 -0
  178. /package/dist/{chunk-3OQA4BKQ.js.map → chunk-BH64QNLE.js.map} +0 -0
  179. /package/dist/{chunk-JTNWYMYZ.js.map → chunk-CNWKBBJJ.js.map} +0 -0
  180. /package/dist/{chunk-LCAPXVGE.js.map → chunk-ERL6CBPO.js.map} +0 -0
  181. /package/dist/{chunk-Z2AZS34W.js.map → chunk-G4DOH6BQ.js.map} +0 -0
  182. /package/dist/{chunk-7HEDOM2M.js.map → chunk-GISZRI4I.js.map} +0 -0
  183. /package/dist/{chunk-FS3MTRC3.js.map → chunk-IKYI4JCF.js.map} +0 -0
  184. /package/dist/{chunk-BWWXE4SL.js.map → chunk-IZ2LK5GK.js.map} +0 -0
  185. /package/dist/{chunk-M4E4CVZ4.js.map → chunk-J24DBEJQ.js.map} +0 -0
  186. /package/dist/{chunk-DPKNQOJX.js.map → chunk-J5YZ4HBV.js.map} +0 -0
  187. /package/dist/{chunk-BDTCJ2JC.js.map → chunk-JXB2O63E.js.map} +0 -0
  188. /package/dist/{chunk-5QGKDF4O.js.map → chunk-L5U5XRNP.js.map} +0 -0
  189. /package/dist/{chunk-6XM52E7W.js.map → chunk-MWFGDECP.js.map} +0 -0
  190. /package/dist/{chunk-FCOVZEHC.js.map → chunk-P5TOP3NH.js.map} +0 -0
  191. /package/dist/{chunk-UK2ZEQBN.js.map → chunk-QDYWH7BU.js.map} +0 -0
  192. /package/dist/{chunk-WZBUJ4ER.js.map → chunk-QF4LGACD.js.map} +0 -0
  193. /package/dist/{chunk-UV7BOOVA.js.map → chunk-QKII4FCI.js.map} +0 -0
  194. /package/dist/{chunk-5NSAJ3SX.js.map → chunk-S4BD3HT2.js.map} +0 -0
  195. /package/dist/{chunk-23AVKNCC.js.map → chunk-SBCJY5IU.js.map} +0 -0
  196. /package/dist/{chunk-LIUATY6B.js.map → chunk-SIP5IK3N.js.map} +0 -0
  197. /package/dist/{chunk-UF5VCR36.js.map → chunk-STZJ3LBU.js.map} +0 -0
  198. /package/dist/{chunk-UGRBWOQE.js.map → chunk-T5MEA7JO.js.map} +0 -0
  199. /package/dist/{chunk-BCRV6HG6.js.map → chunk-TBB5HNL6.js.map} +0 -0
  200. /package/dist/{chunk-7N7YHRPA.js.map → chunk-UQMXWLP6.js.map} +0 -0
  201. /package/dist/{chunk-YH3MSMXL.js.map → chunk-WPESQSKX.js.map} +0 -0
  202. /package/dist/{chunk-FANRUDPK.js.map → chunk-WUXXMMTM.js.map} +0 -0
  203. /package/dist/{chunk-IR2QY2VG.js.map → chunk-YIKU2R7W.js.map} +0 -0
  204. /package/dist/{chunk-OYHUG47P.js.map → chunk-ZE7GYACV.js.map} +0 -0
  205. /package/dist/{chunk-HD7EU6S5.js.map → chunk-ZLJF4SVG.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/themes/dark.css"],
4
+ "sourcesContent": ["/**\n * Baklava Design System - Dark Theme\n * This theme provides dark mode support for all Baklava components\n *\n * Usage:\n * Add data-theme=\"dark\" attribute to :root or any parent element:\n * <html data-theme=\"dark\">\n *\n * Or use the .dark-theme class:\n * <div class=\"dark-theme\">\n * <!-- dark mode components -->\n * </div>\n */\n\n:root[data-theme=\"dark\"],\n.dark-theme {\n /* Neutral Colors - Dark Mode */\n --bl-color-neutral-none: #f0f5ff;\n --bl-color-neutral-darkest: #f1f2f7;\n --bl-color-neutral-darker: #afbbca;\n --bl-color-neutral-dark: #95a1b5;\n --bl-color-neutral-light: #6e7787;\n --bl-color-neutral-lighter: #273142;\n --bl-color-neutral-lightest: #0f131a;\n --bl-color-neutral-full: #030713;\n\n /* Primary Color - Slightly adjusted for dark mode */\n --bl-color-primary: #fb882b;\n --bl-color-primary-highlight: #d46b00;\n --bl-color-primary-contrast: #1f1d18;\n\n /* Success Color - Adjusted for dark mode */\n --bl-color-success: #3ac96b;\n --bl-color-success-highlight: #00a84e;\n --bl-color-success-contrast: #1a1e1a;\n\n /* Danger Color - Adjusted for dark mode */\n --bl-color-danger: #fb8179;\n --bl-color-danger-highlight: #d8625b;\n --bl-color-danger-contrast: #211b1a;\n\n /* Warning Color - Adjusted for dark mode */\n --bl-color-warning: #e09b1a;\n --bl-color-warning-highlight: #ba7f00;\n --bl-color-warning-contrast: #1f1c18;\n\n /* Info Color - Adjusted for dark mode */\n --bl-color-info: #76aef5;\n --bl-color-info-highlight: #588ed4;\n --bl-color-info-contrast: #1a1d22;\n\n /* Size and Spacing */\n --bl-size-4xs: 0.125rem; /* 2px */\n --bl-size-3xs: 0.25rem; /* 4px */\n --bl-size-2xs: 0.5rem; /* 8px */\n --bl-size-xs: 0.75rem; /* 12px */\n --bl-size-s: 0.875rem; /* 14px */\n --bl-size-m: 1rem; /* 16px */\n --bl-size-l: 1.25rem; /* 20px */\n --bl-size-xl: 1.5rem; /* 24px */\n --bl-size-2xl: 2rem; /* 32px */\n --bl-size-3xl: 2.5rem; /* 40px */\n --bl-size-4xl: 3rem; /* 48px */\n --bl-size-5xl: 4rem; /* 64px */\n --bl-size-6xl: 5rem; /* 80px */\n\n /* Z-indexes */\n --bl-index-deep: -1;\n --bl-index-base: 1;\n --bl-index-popover: 100;\n --bl-index-tooltip: 200;\n --bl-index-sticky: 300;\n --bl-index-overlay: 400;\n --bl-index-dialog: 500;\n --bl-index-notification: 600;\n\n /* Typography */\n --bl-font-family: \"Rubik Variable\", sans-serif;\n\n /* Font weights */\n --bl-font-weight-light: 300;\n --bl-font-weight-regular: 400;\n --bl-font-weight-medium: 500;\n --bl-font-weight-semibold: 600;\n --bl-font-weight-bold: 700;\n\n /* Font sizes */\n --bl-font-size-2xs: 0.5rem; /* 8px */\n --bl-font-size-xs: 0.625rem; /* 10px */\n --bl-font-size-s: 0.75rem; /* 12px */\n --bl-font-size-m: 0.875rem; /* 14px */\n --bl-font-size-l: 1rem; /* 16px */\n --bl-font-size-xl: 1.25rem; /* 20px */\n --bl-font-size-2xl: 1.5rem; /* 24px */\n --bl-font-size-3xl: 1.75rem; /* 28px */\n --bl-font-size-4xl: 2rem; /* 32px */\n --bl-font-size-5xl: 3rem; /* 48px */\n --bl-font-size-6xl: 4rem; /* 64px */\n\n /* Border radius */\n --bl-border-radius-xs: 0.125rem; /* 2px */\n --bl-border-radius-s: 0.25rem; /* 4px */\n --bl-border-radius-m: 0.375rem; /* 6px */\n --bl-border-radius-l: 0.5rem; /* 8px */\n --bl-border-radius-pill: 62.438rem; /* 999px */\n --bl-border-radius-circle: 50%;\n\n /* Font Style: Display */\n --bl-font-display-font-size: var(--bl-font-size-5xl);\n --bl-font-display-line-height: calc(var(--bl-font-display-font-size) + var(--bl-size-2xs));\n --bl-font-display-size: var(--bl-font-display-font-size) / var(--bl-font-display-line-height);\n --bl-font-display: var(--bl-font-display-size) var(--bl-font-family);\n --bl-font-display-light: var(--bl-font-weight-light) var(--bl-font-display);\n --bl-font-display-regular: var(--bl-font-weight-regular) var(--bl-font-display);\n --bl-font-display-medium: var(--bl-font-weight-medium) var(--bl-font-display);\n --bl-font-display-semibold: var(--bl-font-weight-semibold) var(--bl-font-display);\n --bl-font-display-bold: var(--bl-font-weight-bold) var(--bl-font-display);\n\n /* Font Style: Heading 1 */\n --bl-font-heading-1-font-size: var(--bl-font-size-4xl);\n --bl-font-heading-1-line-height: calc(var(--bl-font-heading-1-font-size) + var(--bl-size-3xs));\n --bl-font-heading-1-size: var(--bl-font-heading-1-font-size) /\n var(--bl-font-heading-1-line-height);\n --bl-font-heading-1: var(--bl-font-heading-1-size) var(--bl-font-family);\n --bl-font-heading-1-regular: var(--bl-font-weight-regular) var(--bl-font-heading-1);\n --bl-font-heading-1-medium: var(--bl-font-weight-medium) var(--bl-font-heading-1);\n --bl-font-heading-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-1);\n --bl-font-heading-1-bold: var(--bl-font-weight-bold) var(--bl-font-heading-1);\n\n /* Font Style: Heading 2 */\n --bl-font-heading-2-font-size: var(--bl-font-size-3xl);\n --bl-font-heading-2-line-height: calc(var(--bl-font-heading-2-font-size) + var(--bl-size-3xs));\n --bl-font-heading-2-size: var(--bl-font-heading-2-font-size) /\n var(--bl-font-heading-2-line-height);\n --bl-font-heading-2: var(--bl-font-heading-2-size) var(--bl-font-family);\n --bl-font-heading-2-regular: var(--bl-font-weight-regular) var(--bl-font-heading-2);\n --bl-font-heading-2-medium: var(--bl-font-weight-medium) var(--bl-font-heading-2);\n --bl-font-heading-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-2);\n --bl-font-heading-2-bold: var(--bl-font-weight-bold) var(--bl-font-heading-2);\n\n /* Font Style: Heading 3 */\n --bl-font-heading-3-font-size: var(--bl-font-size-2xl);\n --bl-font-heading-3-line-height: calc(var(--bl-font-heading-3-font-size) + var(--bl-size-3xs));\n --bl-font-heading-3-size: var(--bl-font-heading-3-font-size) /\n var(--bl-font-heading-3-line-height);\n --bl-font-heading-3: var(--bl-font-heading-3-size) var(--bl-font-family);\n --bl-font-heading-3-regular: var(--bl-font-weight-regular) var(--bl-font-heading-3);\n --bl-font-heading-3-medium: var(--bl-font-weight-medium) var(--bl-font-heading-3);\n --bl-font-heading-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-3);\n --bl-font-heading-3-bold: var(--bl-font-weight-bold) var(--bl-font-heading-3);\n\n /* Font Style: Title 1 */\n --bl-font-title-1-font-size: var(--bl-font-size-xl);\n --bl-font-title-1-line-height: calc(var(--bl-font-title-1-font-size) + var(--bl-size-3xs));\n --bl-font-title-1-size: var(--bl-font-title-1-font-size) / var(--bl-font-title-1-line-height);\n --bl-font-title-1: var(--bl-font-title-1-size) var(--bl-font-family);\n --bl-font-title-1-regular: var(--bl-font-weight-regular) var(--bl-font-title-1);\n --bl-font-title-1-medium: var(--bl-font-weight-medium) var(--bl-font-title-1);\n --bl-font-title-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-1);\n --bl-font-title-1-bold: var(--bl-font-weight-bold) var(--bl-font-title-1);\n\n /* Font Style: Title 2 */\n --bl-font-title-2-font-size: var(--bl-font-size-l);\n --bl-font-title-2-line-height: calc(var(--bl-font-title-2-font-size) + var(--bl-size-3xs));\n --bl-font-title-2-size: var(--bl-font-title-2-font-size) / var(--bl-font-title-2-line-height);\n --bl-font-title-2: var(--bl-font-title-2-size) var(--bl-font-family);\n --bl-font-title-2-regular: var(--bl-font-weight-regular) var(--bl-font-title-2);\n --bl-font-title-2-medium: var(--bl-font-weight-medium) var(--bl-font-title-2);\n --bl-font-title-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-2);\n --bl-font-title-2-bold: var(--bl-font-weight-bold) var(--bl-font-title-2);\n\n /* Font Style: Title 3 */\n --bl-font-title-3-font-size: var(--bl-font-size-m);\n --bl-font-title-3-line-height: calc(var(--bl-font-title-3-font-size) + var(--bl-size-4xs));\n --bl-font-title-3-size: var(--bl-font-title-3-font-size) / var(--bl-font-title-3-line-height);\n --bl-font-title-3: var(--bl-font-title-3-size) var(--bl-font-family);\n --bl-font-title-3-regular: var(--bl-font-weight-regular) var(--bl-font-title-3);\n --bl-font-title-3-medium: var(--bl-font-weight-medium) var(--bl-font-title-3);\n --bl-font-title-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-3);\n --bl-font-title-3-bold: var(--bl-font-weight-bold) var(--bl-font-title-3);\n\n /* Font Style: Title 4 */\n --bl-font-title-4-font-size: var(--bl-font-size-s);\n --bl-font-title-4-line-height: calc(var(--bl-font-title-4-font-size) + var(--bl-size-4xs));\n --bl-font-title-4-size: var(--bl-font-title-4-font-size) / var(--bl-font-title-4-line-height);\n --bl-font-title-4: var(--bl-font-title-4-size) var(--bl-font-family);\n --bl-font-title-4-regular: var(--bl-font-weight-regular) var(--bl-font-title-4);\n --bl-font-title-4-medium: var(--bl-font-weight-medium) var(--bl-font-title-4);\n --bl-font-title-4-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-4);\n --bl-font-title-4-bold: var(--bl-font-weight-bold) var(--bl-font-title-4);\n\n /* Font Style: Body Text 1 */\n --bl-font-body-text-1-font-size: var(--bl-font-size-l);\n --bl-font-body-text-1-line-height: calc(\n var(--bl-font-body-text-1-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-1-size: var(--bl-font-body-text-1-font-size) /\n var(--bl-font-body-text-1-line-height);\n --bl-font-body-text-1: var(--bl-font-body-text-1-size) var(--bl-font-family);\n --bl-font-body-text-1-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-1);\n --bl-font-body-text-1-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-1);\n\n /* Font Style: Body Text 2 */\n --bl-font-body-text-2-font-size: var(--bl-font-size-m);\n --bl-font-body-text-2-line-height: calc(\n var(--bl-font-body-text-2-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-2-size: var(--bl-font-body-text-2-font-size) /\n var(--bl-font-body-text-2-line-height);\n --bl-font-body-text-2: var(--bl-font-body-text-2-size) var(--bl-font-family);\n --bl-font-body-text-2-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-2);\n --bl-font-body-text-2-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-2);\n\n /* Font Style: Body Text 3 */\n --bl-font-body-text-3-font-size: var(--bl-font-size-s);\n --bl-font-body-text-3-line-height: calc(\n var(--bl-font-body-text-3-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-3-size: var(--bl-font-body-text-3-font-size) /\n var(--bl-font-body-text-3-line-height);\n --bl-font-body-text-3: var(--bl-font-body-text-3-size) var(--bl-font-family);\n --bl-font-body-text-3-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-3);\n --bl-font-body-text-3-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-3);\n\n /* Font Style: Caption */\n --bl-font-caption-font-size: var(--bl-font-size-xs);\n --bl-font-caption-line-height: calc(var(--bl-font-caption-font-size) + var(--bl-size-4xs));\n --bl-font-caption-size: var(--bl-font-caption-font-size) / var(--bl-font-caption-line-height);\n --bl-font-caption: var(--bl-font-weight-medium) var(--bl-font-caption-size) var(--bl-font-family);\n}\n\n:root[dir=\"rtl\"] {\n /* Direction */\n direction: rtl;\n\n --bl-text-x-direction: -1;\n\n /* Typography */\n --bl-font-family: \"Cairo\";\n}\n"],
5
+ "mappings": "AAcA,mCAGE,iCACA,oCACA,mCACA,iCACA,kCACA,oCACA,qCACA,iCAGA,4BACA,sCACA,qCAGA,4BACA,sCACA,qCAGA,2BACA,qCACA,oCAGA,4BACA,sCACA,qCAGA,yBACA,mCACA,kCAGA,uBACA,sBACA,qBACA,qBACA,qBACA,kBACA,qBACA,qBACA,oBACA,sBACA,oBACA,oBACA,oBAGA,oBACA,mBACA,wBACA,wBACA,uBACA,wBACA,uBACA,6BAGA,+CAGA,4BACA,8BACA,6BACA,+BACA,2BAGA,0BACA,2BACA,yBACA,0BACA,uBACA,2BACA,2BACA,4BACA,yBACA,yBACA,yBAGA,+BACA,6BACA,8BACA,4BACA,mCACA,+BAGA,qDACA,2FACA,8FACA,qEACA,4EACA,gFACA,8EACA,kFACA,0EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,oDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,oDACA,2FACA,8FACA,kGAGF,eAEE,cAEA,0BAGA",
6
+ "names": []
7
+ }
@@ -1,2 +1,2 @@
1
- @font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-cyrillic-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-cyrillic-wght-normal.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-hebrew-wght-normal.woff2) format("woff2-variations");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bl-text-x-direction: 1;--bl-color-primary: #f27a1a;--bl-color-primary-highlight: #ef6114;--bl-color-primary-contrast: #fef2e8;--bl-color-success: #0bc15c;--bl-color-success-highlight: #09a44e;--bl-color-success-contrast: #e7f9ef;--bl-color-danger: #ff5043;--bl-color-danger-highlight: #ff3028;--bl-color-danger-contrast: #ffeeec;--bl-color-warning: #ffb600;--bl-color-warning-highlight: #ff9800;--bl-color-warning-contrast: #fff8e6;--bl-color-info: #5794ff;--bl-color-info-highlight: #457eff;--bl-color-info-contrast: #eef4ff;--bl-color-neutral-none: #000;--bl-color-neutral-darkest: #0f131a;--bl-color-neutral-darker: #273142;--bl-color-neutral-dark: #6e7787;--bl-color-neutral-light: #95a1b5;--bl-color-neutral-lighter: #afbbca;--bl-color-neutral-lightest: #f1f2f7;--bl-color-neutral-full: #fff;--bl-size-4xs: .125rem;--bl-size-3xs: .25rem;--bl-size-2xs: .5rem;--bl-size-xs: .75rem;--bl-size-s: .875rem;--bl-size-m: 1rem;--bl-size-l: 1.25rem;--bl-size-xl: 1.5rem;--bl-size-2xl: 2rem;--bl-size-3xl: 2.5rem;--bl-size-4xl: 3rem;--bl-size-5xl: 4rem;--bl-size-6xl: 5rem;--bl-index-deep: -1;--bl-index-base: 1;--bl-index-popover: 100;--bl-index-tooltip: 200;--bl-index-sticky: 300;--bl-index-overlay: 400;--bl-index-dialog: 500;--bl-index-notification: 600;--bl-font-family: "Rubik Variable", sans-serif;--bl-font-weight-light: 300;--bl-font-weight-regular: 400;--bl-font-weight-medium: 500;--bl-font-weight-semibold: 600;--bl-font-weight-bold: 700;--bl-font-size-2xs: .5rem;--bl-font-size-xs: .625rem;--bl-font-size-s: .75rem;--bl-font-size-m: .875rem;--bl-font-size-l: 1rem;--bl-font-size-xl: 1.25rem;--bl-font-size-2xl: 1.5rem;--bl-font-size-3xl: 1.75rem;--bl-font-size-4xl: 2rem;--bl-font-size-5xl: 3rem;--bl-font-size-6xl: 4rem;--bl-border-radius-xs: .125rem;--bl-border-radius-s: .25rem;--bl-border-radius-m: .375rem;--bl-border-radius-l: .5rem;--bl-border-radius-pill: 62.438rem;--bl-border-radius-circle: 50%;--bl-font-display-font-size: var(--bl-font-size-5xl);--bl-font-display-line-height: calc(var(--bl-font-display-font-size) + var(--bl-size-2xs));--bl-font-display-size: var(--bl-font-display-font-size) / var(--bl-font-display-line-height);--bl-font-display: var(--bl-font-display-size) var(--bl-font-family);--bl-font-display-light: var(--bl-font-weight-light) var(--bl-font-display);--bl-font-display-regular: var(--bl-font-weight-regular) var(--bl-font-display);--bl-font-display-medium: var(--bl-font-weight-medium) var(--bl-font-display);--bl-font-display-semibold: var(--bl-font-weight-semibold) var(--bl-font-display);--bl-font-display-bold: var(--bl-font-weight-bold) var(--bl-font-display);--bl-font-heading-1-font-size: var(--bl-font-size-4xl);--bl-font-heading-1-line-height: calc(var(--bl-font-heading-1-font-size) + var(--bl-size-3xs));--bl-font-heading-1-size: var(--bl-font-heading-1-font-size) / var(--bl-font-heading-1-line-height);--bl-font-heading-1: var(--bl-font-heading-1-size) var(--bl-font-family);--bl-font-heading-1-regular: var(--bl-font-weight-regular) var(--bl-font-heading-1);--bl-font-heading-1-medium: var(--bl-font-weight-medium) var(--bl-font-heading-1);--bl-font-heading-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-1);--bl-font-heading-1-bold: var(--bl-font-weight-bold) var(--bl-font-heading-1);--bl-font-heading-2-font-size: var(--bl-font-size-3xl);--bl-font-heading-2-line-height: calc(var(--bl-font-heading-2-font-size) + var(--bl-size-3xs));--bl-font-heading-2-size: var(--bl-font-heading-2-font-size) / var(--bl-font-heading-2-line-height);--bl-font-heading-2: var(--bl-font-heading-2-size) var(--bl-font-family);--bl-font-heading-2-regular: var(--bl-font-weight-regular) var(--bl-font-heading-2);--bl-font-heading-2-medium: var(--bl-font-weight-medium) var(--bl-font-heading-2);--bl-font-heading-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-2);--bl-font-heading-2-bold: var(--bl-font-weight-bold) var(--bl-font-heading-2);--bl-font-heading-3-font-size: var(--bl-font-size-2xl);--bl-font-heading-3-line-height: calc(var(--bl-font-heading-3-font-size) + var(--bl-size-3xs));--bl-font-heading-3-size: var(--bl-font-heading-3-font-size) / var(--bl-font-heading-3-line-height);--bl-font-heading-3: var(--bl-font-heading-3-size) var(--bl-font-family);--bl-font-heading-3-regular: var(--bl-font-weight-regular) var(--bl-font-heading-3);--bl-font-heading-3-medium: var(--bl-font-weight-medium) var(--bl-font-heading-3);--bl-font-heading-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-3);--bl-font-heading-3-bold: var(--bl-font-weight-bold) var(--bl-font-heading-3);--bl-font-title-1-font-size: var(--bl-font-size-xl);--bl-font-title-1-line-height: calc(var(--bl-font-title-1-font-size) + var(--bl-size-3xs));--bl-font-title-1-size: var(--bl-font-title-1-font-size) / var(--bl-font-title-1-line-height);--bl-font-title-1: var(--bl-font-title-1-size) var(--bl-font-family);--bl-font-title-1-regular: var(--bl-font-weight-regular) var(--bl-font-title-1);--bl-font-title-1-medium: var(--bl-font-weight-medium) var(--bl-font-title-1);--bl-font-title-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-1);--bl-font-title-1-bold: var(--bl-font-weight-bold) var(--bl-font-title-1);--bl-font-title-2-font-size: var(--bl-font-size-l);--bl-font-title-2-line-height: calc(var(--bl-font-title-2-font-size) + var(--bl-size-3xs));--bl-font-title-2-size: var(--bl-font-title-2-font-size) / var(--bl-font-title-2-line-height);--bl-font-title-2: var(--bl-font-title-2-size) var(--bl-font-family);--bl-font-title-2-regular: var(--bl-font-weight-regular) var(--bl-font-title-2);--bl-font-title-2-medium: var(--bl-font-weight-medium) var(--bl-font-title-2);--bl-font-title-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-2);--bl-font-title-2-bold: var(--bl-font-weight-bold) var(--bl-font-title-2);--bl-font-title-3-font-size: var(--bl-font-size-m);--bl-font-title-3-line-height: calc(var(--bl-font-title-3-font-size) + var(--bl-size-4xs));--bl-font-title-3-size: var(--bl-font-title-3-font-size) / var(--bl-font-title-3-line-height);--bl-font-title-3: var(--bl-font-title-3-size) var(--bl-font-family);--bl-font-title-3-regular: var(--bl-font-weight-regular) var(--bl-font-title-3);--bl-font-title-3-medium: var(--bl-font-weight-medium) var(--bl-font-title-3);--bl-font-title-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-3);--bl-font-title-3-bold: var(--bl-font-weight-bold) var(--bl-font-title-3);--bl-font-title-4-font-size: var(--bl-font-size-s);--bl-font-title-4-line-height: calc(var(--bl-font-title-4-font-size) + var(--bl-size-4xs));--bl-font-title-4-size: var(--bl-font-title-4-font-size) / var(--bl-font-title-4-line-height);--bl-font-title-4: var(--bl-font-title-4-size) var(--bl-font-family);--bl-font-title-4-regular: var(--bl-font-weight-regular) var(--bl-font-title-4);--bl-font-title-4-medium: var(--bl-font-weight-medium) var(--bl-font-title-4);--bl-font-title-4-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-4);--bl-font-title-4-bold: var(--bl-font-weight-bold) var(--bl-font-title-4);--bl-font-body-text-1-font-size: var(--bl-font-size-l);--bl-font-body-text-1-line-height: calc( var(--bl-font-body-text-1-font-size) + var(--bl-size-4xs) );--bl-font-body-text-1-size: var(--bl-font-body-text-1-font-size) / var(--bl-font-body-text-1-line-height);--bl-font-body-text-1: var(--bl-font-body-text-1-size) var(--bl-font-family);--bl-font-body-text-1-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-1);--bl-font-body-text-1-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-1);--bl-font-body-text-2-font-size: var(--bl-font-size-m);--bl-font-body-text-2-line-height: calc( var(--bl-font-body-text-2-font-size) + var(--bl-size-4xs) );--bl-font-body-text-2-size: var(--bl-font-body-text-2-font-size) / var(--bl-font-body-text-2-line-height);--bl-font-body-text-2: var(--bl-font-body-text-2-size) var(--bl-font-family);--bl-font-body-text-2-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-2);--bl-font-body-text-2-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-2);--bl-font-body-text-3-font-size: var(--bl-font-size-s);--bl-font-body-text-3-line-height: calc( var(--bl-font-body-text-3-font-size) + var(--bl-size-4xs) );--bl-font-body-text-3-size: var(--bl-font-body-text-3-font-size) / var(--bl-font-body-text-3-line-height);--bl-font-body-text-3: var(--bl-font-body-text-3-size) var(--bl-font-family);--bl-font-body-text-3-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-3);--bl-font-body-text-3-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-3);--bl-font-caption-font-size: var(--bl-font-size-xs);--bl-font-caption-line-height: calc(var(--bl-font-caption-font-size) + var(--bl-size-4xs));--bl-font-caption-size: var(--bl-font-caption-font-size) / var(--bl-font-caption-line-height);--bl-font-caption: var(--bl-font-weight-medium) var(--bl-font-caption-size) var(--bl-font-family)}:root[dir=rtl]{direction:rtl;--bl-text-x-direction: -1;--bl-font-family: "Cairo"}
1
+ @font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-cyrillic-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-cyrillic-wght-normal.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-hebrew-wght-normal.woff2) format("woff2-variations");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rubik Variable;font-style:normal;font-display:var(--fontsource-display, swap);font-weight:300 900;src:url(../assets/rubik-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root,:root[data-theme=light]{--bl-text-x-direction: 1;--bl-color-primary: #f27a1a;--bl-color-primary-highlight: #ef6114;--bl-color-primary-contrast: #fef2e8;--bl-color-success: #0bc15c;--bl-color-success-highlight: #09a44e;--bl-color-success-contrast: #e7f9ef;--bl-color-danger: #ff5043;--bl-color-danger-highlight: #ff3028;--bl-color-danger-contrast: #ffeeec;--bl-color-warning: #ffb600;--bl-color-warning-highlight: #ff9800;--bl-color-warning-contrast: #fff8e6;--bl-color-info: #5794ff;--bl-color-info-highlight: #457eff;--bl-color-info-contrast: #eef4ff;--bl-color-neutral-none: #000;--bl-color-neutral-darkest: #0f131a;--bl-color-neutral-darker: #273142;--bl-color-neutral-dark: #6e7787;--bl-color-neutral-light: #95a1b5;--bl-color-neutral-lighter: #afbbca;--bl-color-neutral-lightest: #f1f2f7;--bl-color-neutral-full: #fff;--bl-size-4xs: .125rem;--bl-size-3xs: .25rem;--bl-size-2xs: .5rem;--bl-size-xs: .75rem;--bl-size-s: .875rem;--bl-size-m: 1rem;--bl-size-l: 1.25rem;--bl-size-xl: 1.5rem;--bl-size-2xl: 2rem;--bl-size-3xl: 2.5rem;--bl-size-4xl: 3rem;--bl-size-5xl: 4rem;--bl-size-6xl: 5rem;--bl-index-deep: -1;--bl-index-base: 1;--bl-index-popover: 100;--bl-index-tooltip: 200;--bl-index-sticky: 300;--bl-index-overlay: 400;--bl-index-dialog: 500;--bl-index-notification: 600;--bl-font-family: "Rubik Variable", sans-serif;--bl-font-weight-light: 300;--bl-font-weight-regular: 400;--bl-font-weight-medium: 500;--bl-font-weight-semibold: 600;--bl-font-weight-bold: 700;--bl-font-size-2xs: .5rem;--bl-font-size-xs: .625rem;--bl-font-size-s: .75rem;--bl-font-size-m: .875rem;--bl-font-size-l: 1rem;--bl-font-size-xl: 1.25rem;--bl-font-size-2xl: 1.5rem;--bl-font-size-3xl: 1.75rem;--bl-font-size-4xl: 2rem;--bl-font-size-5xl: 3rem;--bl-font-size-6xl: 4rem;--bl-border-radius-xs: .125rem;--bl-border-radius-s: .25rem;--bl-border-radius-m: .375rem;--bl-border-radius-l: .5rem;--bl-border-radius-pill: 62.438rem;--bl-border-radius-circle: 50%;--bl-font-display-font-size: var(--bl-font-size-5xl);--bl-font-display-line-height: calc(var(--bl-font-display-font-size) + var(--bl-size-2xs));--bl-font-display-size: var(--bl-font-display-font-size) / var(--bl-font-display-line-height);--bl-font-display: var(--bl-font-display-size) var(--bl-font-family);--bl-font-display-light: var(--bl-font-weight-light) var(--bl-font-display);--bl-font-display-regular: var(--bl-font-weight-regular) var(--bl-font-display);--bl-font-display-medium: var(--bl-font-weight-medium) var(--bl-font-display);--bl-font-display-semibold: var(--bl-font-weight-semibold) var(--bl-font-display);--bl-font-display-bold: var(--bl-font-weight-bold) var(--bl-font-display);--bl-font-heading-1-font-size: var(--bl-font-size-4xl);--bl-font-heading-1-line-height: calc(var(--bl-font-heading-1-font-size) + var(--bl-size-3xs));--bl-font-heading-1-size: var(--bl-font-heading-1-font-size) / var(--bl-font-heading-1-line-height);--bl-font-heading-1: var(--bl-font-heading-1-size) var(--bl-font-family);--bl-font-heading-1-regular: var(--bl-font-weight-regular) var(--bl-font-heading-1);--bl-font-heading-1-medium: var(--bl-font-weight-medium) var(--bl-font-heading-1);--bl-font-heading-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-1);--bl-font-heading-1-bold: var(--bl-font-weight-bold) var(--bl-font-heading-1);--bl-font-heading-2-font-size: var(--bl-font-size-3xl);--bl-font-heading-2-line-height: calc(var(--bl-font-heading-2-font-size) + var(--bl-size-3xs));--bl-font-heading-2-size: var(--bl-font-heading-2-font-size) / var(--bl-font-heading-2-line-height);--bl-font-heading-2: var(--bl-font-heading-2-size) var(--bl-font-family);--bl-font-heading-2-regular: var(--bl-font-weight-regular) var(--bl-font-heading-2);--bl-font-heading-2-medium: var(--bl-font-weight-medium) var(--bl-font-heading-2);--bl-font-heading-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-2);--bl-font-heading-2-bold: var(--bl-font-weight-bold) var(--bl-font-heading-2);--bl-font-heading-3-font-size: var(--bl-font-size-2xl);--bl-font-heading-3-line-height: calc(var(--bl-font-heading-3-font-size) + var(--bl-size-3xs));--bl-font-heading-3-size: var(--bl-font-heading-3-font-size) / var(--bl-font-heading-3-line-height);--bl-font-heading-3: var(--bl-font-heading-3-size) var(--bl-font-family);--bl-font-heading-3-regular: var(--bl-font-weight-regular) var(--bl-font-heading-3);--bl-font-heading-3-medium: var(--bl-font-weight-medium) var(--bl-font-heading-3);--bl-font-heading-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-3);--bl-font-heading-3-bold: var(--bl-font-weight-bold) var(--bl-font-heading-3);--bl-font-title-1-font-size: var(--bl-font-size-xl);--bl-font-title-1-line-height: calc(var(--bl-font-title-1-font-size) + var(--bl-size-3xs));--bl-font-title-1-size: var(--bl-font-title-1-font-size) / var(--bl-font-title-1-line-height);--bl-font-title-1: var(--bl-font-title-1-size) var(--bl-font-family);--bl-font-title-1-regular: var(--bl-font-weight-regular) var(--bl-font-title-1);--bl-font-title-1-medium: var(--bl-font-weight-medium) var(--bl-font-title-1);--bl-font-title-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-1);--bl-font-title-1-bold: var(--bl-font-weight-bold) var(--bl-font-title-1);--bl-font-title-2-font-size: var(--bl-font-size-l);--bl-font-title-2-line-height: calc(var(--bl-font-title-2-font-size) + var(--bl-size-3xs));--bl-font-title-2-size: var(--bl-font-title-2-font-size) / var(--bl-font-title-2-line-height);--bl-font-title-2: var(--bl-font-title-2-size) var(--bl-font-family);--bl-font-title-2-regular: var(--bl-font-weight-regular) var(--bl-font-title-2);--bl-font-title-2-medium: var(--bl-font-weight-medium) var(--bl-font-title-2);--bl-font-title-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-2);--bl-font-title-2-bold: var(--bl-font-weight-bold) var(--bl-font-title-2);--bl-font-title-3-font-size: var(--bl-font-size-m);--bl-font-title-3-line-height: calc(var(--bl-font-title-3-font-size) + var(--bl-size-4xs));--bl-font-title-3-size: var(--bl-font-title-3-font-size) / var(--bl-font-title-3-line-height);--bl-font-title-3: var(--bl-font-title-3-size) var(--bl-font-family);--bl-font-title-3-regular: var(--bl-font-weight-regular) var(--bl-font-title-3);--bl-font-title-3-medium: var(--bl-font-weight-medium) var(--bl-font-title-3);--bl-font-title-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-3);--bl-font-title-3-bold: var(--bl-font-weight-bold) var(--bl-font-title-3);--bl-font-title-4-font-size: var(--bl-font-size-s);--bl-font-title-4-line-height: calc(var(--bl-font-title-4-font-size) + var(--bl-size-4xs));--bl-font-title-4-size: var(--bl-font-title-4-font-size) / var(--bl-font-title-4-line-height);--bl-font-title-4: var(--bl-font-title-4-size) var(--bl-font-family);--bl-font-title-4-regular: var(--bl-font-weight-regular) var(--bl-font-title-4);--bl-font-title-4-medium: var(--bl-font-weight-medium) var(--bl-font-title-4);--bl-font-title-4-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-4);--bl-font-title-4-bold: var(--bl-font-weight-bold) var(--bl-font-title-4);--bl-font-body-text-1-font-size: var(--bl-font-size-l);--bl-font-body-text-1-line-height: calc( var(--bl-font-body-text-1-font-size) + var(--bl-size-4xs) );--bl-font-body-text-1-size: var(--bl-font-body-text-1-font-size) / var(--bl-font-body-text-1-line-height);--bl-font-body-text-1: var(--bl-font-body-text-1-size) var(--bl-font-family);--bl-font-body-text-1-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-1);--bl-font-body-text-1-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-1);--bl-font-body-text-2-font-size: var(--bl-font-size-m);--bl-font-body-text-2-line-height: calc( var(--bl-font-body-text-2-font-size) + var(--bl-size-4xs) );--bl-font-body-text-2-size: var(--bl-font-body-text-2-font-size) / var(--bl-font-body-text-2-line-height);--bl-font-body-text-2: var(--bl-font-body-text-2-size) var(--bl-font-family);--bl-font-body-text-2-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-2);--bl-font-body-text-2-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-2);--bl-font-body-text-3-font-size: var(--bl-font-size-s);--bl-font-body-text-3-line-height: calc( var(--bl-font-body-text-3-font-size) + var(--bl-size-4xs) );--bl-font-body-text-3-size: var(--bl-font-body-text-3-font-size) / var(--bl-font-body-text-3-line-height);--bl-font-body-text-3: var(--bl-font-body-text-3-size) var(--bl-font-family);--bl-font-body-text-3-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-3);--bl-font-body-text-3-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-3);--bl-font-caption-font-size: var(--bl-font-size-xs);--bl-font-caption-line-height: calc(var(--bl-font-caption-font-size) + var(--bl-size-4xs));--bl-font-caption-size: var(--bl-font-caption-font-size) / var(--bl-font-caption-line-height);--bl-font-caption: var(--bl-font-weight-medium) var(--bl-font-caption-size) var(--bl-font-family)}:root[dir=rtl]{direction:rtl;--bl-text-x-direction: -1;--bl-font-family: "Cairo"}
2
2
  /*# sourceMappingURL=default.css.map */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../node_modules/@fontsource-variable/rubik/index.css", "../../src/themes/default.css"],
4
- "sourcesContent": ["/* rubik-cyrillic-ext-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-cyrillic-ext-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* rubik-cyrillic-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-cyrillic-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* rubik-hebrew-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-hebrew-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;\n}\n\n/* rubik-latin-ext-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-latin-ext-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* rubik-latin-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-latin-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}", "@import url(\"@fontsource-variable/rubik\");\n\n:root {\n /* Direction */\n --bl-text-x-direction: 1;\n\n /* Primary Color */\n --bl-color-primary: #f27a1a;\n --bl-color-primary-highlight: #ef6114;\n --bl-color-primary-contrast: #fef2e8;\n\n /* Success Color */\n --bl-color-success: #0bc15c;\n --bl-color-success-highlight: #09a44e;\n --bl-color-success-contrast: #e7f9ef;\n\n /* Danger Color */\n --bl-color-danger: #ff5043;\n --bl-color-danger-highlight: #ff3028;\n --bl-color-danger-contrast: #ffeeec;\n\n /* Warning Color */\n --bl-color-warning: #ffb600;\n --bl-color-warning-highlight: #ff9800;\n --bl-color-warning-contrast: #fff8e6;\n\n /* Info Color */\n --bl-color-info: #5794ff;\n --bl-color-info-highlight: #457eff;\n --bl-color-info-contrast: #eef4ff;\n\n /* Neutral Color */\n --bl-color-neutral-none: #000;\n --bl-color-neutral-darkest: #0f131a;\n --bl-color-neutral-darker: #273142;\n --bl-color-neutral-dark: #6e7787;\n --bl-color-neutral-light: #95a1b5;\n --bl-color-neutral-lighter: #afbbca;\n --bl-color-neutral-lightest: #f1f2f7;\n --bl-color-neutral-full: #fff;\n\n /* Size and Spacing */\n --bl-size-4xs: 0.125rem; /* 2px */\n --bl-size-3xs: 0.25rem; /* 4px */\n --bl-size-2xs: 0.5rem; /* 8px */\n --bl-size-xs: 0.75rem; /* 12px */\n --bl-size-s: 0.875rem; /* 14px */\n --bl-size-m: 1rem; /* 16px */\n --bl-size-l: 1.25rem; /* 20px */\n --bl-size-xl: 1.5rem; /* 24px */\n --bl-size-2xl: 2rem; /* 32px */\n --bl-size-3xl: 2.5rem; /* 40px */\n --bl-size-4xl: 3rem; /* 48px */\n --bl-size-5xl: 4rem; /* 64px */\n --bl-size-6xl: 5rem; /* 80px */\n\n /* Z-indexes */\n --bl-index-deep: -1;\n --bl-index-base: 1;\n --bl-index-popover: 100;\n --bl-index-tooltip: 200;\n --bl-index-sticky: 300;\n --bl-index-overlay: 400;\n --bl-index-dialog: 500;\n --bl-index-notification: 600;\n\n /* Typography */\n --bl-font-family: \"Rubik Variable\", sans-serif;\n\n /* Font weights */\n --bl-font-weight-light: 300;\n --bl-font-weight-regular: 400;\n --bl-font-weight-medium: 500;\n --bl-font-weight-semibold: 600;\n --bl-font-weight-bold: 700;\n\n /* Font sizes */\n --bl-font-size-2xs: 0.5rem; /* 8px */\n --bl-font-size-xs: 0.625rem; /* 10px */\n --bl-font-size-s: 0.75rem; /* 12px */\n --bl-font-size-m: 0.875rem; /* 14px */\n --bl-font-size-l: 1rem; /* 16px */\n --bl-font-size-xl: 1.25rem; /* 20px */\n --bl-font-size-2xl: 1.5rem; /* 24px */\n --bl-font-size-3xl: 1.75rem; /* 28px */\n --bl-font-size-4xl: 2rem; /* 32px */\n --bl-font-size-5xl: 3rem; /* 48px */\n --bl-font-size-6xl: 4rem; /* 64px */\n\n /* Border radius */\n --bl-border-radius-xs: 0.125rem; /* 2px */\n --bl-border-radius-s: 0.25rem; /* 4px */\n --bl-border-radius-m: 0.375rem; /* 6px */\n --bl-border-radius-l: 0.5rem; /* 8px */\n --bl-border-radius-pill: 62.438rem; /* 999px */\n --bl-border-radius-circle: 50%;\n\n /* Font Style: Display */\n --bl-font-display-font-size: var(--bl-font-size-5xl);\n --bl-font-display-line-height: calc(var(--bl-font-display-font-size) + var(--bl-size-2xs));\n --bl-font-display-size: var(--bl-font-display-font-size) / var(--bl-font-display-line-height);\n --bl-font-display: var(--bl-font-display-size) var(--bl-font-family);\n --bl-font-display-light: var(--bl-font-weight-light) var(--bl-font-display);\n --bl-font-display-regular: var(--bl-font-weight-regular) var(--bl-font-display);\n --bl-font-display-medium: var(--bl-font-weight-medium) var(--bl-font-display);\n --bl-font-display-semibold: var(--bl-font-weight-semibold) var(--bl-font-display);\n --bl-font-display-bold: var(--bl-font-weight-bold) var(--bl-font-display);\n\n /* Font Style: Heading 1 */\n --bl-font-heading-1-font-size: var(--bl-font-size-4xl);\n --bl-font-heading-1-line-height: calc(var(--bl-font-heading-1-font-size) + var(--bl-size-3xs));\n --bl-font-heading-1-size: var(--bl-font-heading-1-font-size) /\n var(--bl-font-heading-1-line-height);\n --bl-font-heading-1: var(--bl-font-heading-1-size) var(--bl-font-family);\n --bl-font-heading-1-regular: var(--bl-font-weight-regular) var(--bl-font-heading-1);\n --bl-font-heading-1-medium: var(--bl-font-weight-medium) var(--bl-font-heading-1);\n --bl-font-heading-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-1);\n --bl-font-heading-1-bold: var(--bl-font-weight-bold) var(--bl-font-heading-1);\n\n /* Font Style: Heading 2 */\n --bl-font-heading-2-font-size: var(--bl-font-size-3xl);\n --bl-font-heading-2-line-height: calc(var(--bl-font-heading-2-font-size) + var(--bl-size-3xs));\n --bl-font-heading-2-size: var(--bl-font-heading-2-font-size) /\n var(--bl-font-heading-2-line-height);\n --bl-font-heading-2: var(--bl-font-heading-2-size) var(--bl-font-family);\n --bl-font-heading-2-regular: var(--bl-font-weight-regular) var(--bl-font-heading-2);\n --bl-font-heading-2-medium: var(--bl-font-weight-medium) var(--bl-font-heading-2);\n --bl-font-heading-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-2);\n --bl-font-heading-2-bold: var(--bl-font-weight-bold) var(--bl-font-heading-2);\n\n /* Font Style: Heading 3 */\n --bl-font-heading-3-font-size: var(--bl-font-size-2xl);\n --bl-font-heading-3-line-height: calc(var(--bl-font-heading-3-font-size) + var(--bl-size-3xs));\n --bl-font-heading-3-size: var(--bl-font-heading-3-font-size) /\n var(--bl-font-heading-3-line-height);\n --bl-font-heading-3: var(--bl-font-heading-3-size) var(--bl-font-family);\n --bl-font-heading-3-regular: var(--bl-font-weight-regular) var(--bl-font-heading-3);\n --bl-font-heading-3-medium: var(--bl-font-weight-medium) var(--bl-font-heading-3);\n --bl-font-heading-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-3);\n --bl-font-heading-3-bold: var(--bl-font-weight-bold) var(--bl-font-heading-3);\n\n /* Font Style: Title 1 */\n --bl-font-title-1-font-size: var(--bl-font-size-xl);\n --bl-font-title-1-line-height: calc(var(--bl-font-title-1-font-size) + var(--bl-size-3xs));\n --bl-font-title-1-size: var(--bl-font-title-1-font-size) / var(--bl-font-title-1-line-height);\n --bl-font-title-1: var(--bl-font-title-1-size) var(--bl-font-family);\n --bl-font-title-1-regular: var(--bl-font-weight-regular) var(--bl-font-title-1);\n --bl-font-title-1-medium: var(--bl-font-weight-medium) var(--bl-font-title-1);\n --bl-font-title-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-1);\n --bl-font-title-1-bold: var(--bl-font-weight-bold) var(--bl-font-title-1);\n\n /* Font Style: Title 2 */\n --bl-font-title-2-font-size: var(--bl-font-size-l);\n --bl-font-title-2-line-height: calc(var(--bl-font-title-2-font-size) + var(--bl-size-3xs));\n --bl-font-title-2-size: var(--bl-font-title-2-font-size) / var(--bl-font-title-2-line-height);\n --bl-font-title-2: var(--bl-font-title-2-size) var(--bl-font-family);\n --bl-font-title-2-regular: var(--bl-font-weight-regular) var(--bl-font-title-2);\n --bl-font-title-2-medium: var(--bl-font-weight-medium) var(--bl-font-title-2);\n --bl-font-title-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-2);\n --bl-font-title-2-bold: var(--bl-font-weight-bold) var(--bl-font-title-2);\n\n /* Font Style: Title 3 */\n --bl-font-title-3-font-size: var(--bl-font-size-m);\n --bl-font-title-3-line-height: calc(var(--bl-font-title-3-font-size) + var(--bl-size-4xs));\n --bl-font-title-3-size: var(--bl-font-title-3-font-size) / var(--bl-font-title-3-line-height);\n --bl-font-title-3: var(--bl-font-title-3-size) var(--bl-font-family);\n --bl-font-title-3-regular: var(--bl-font-weight-regular) var(--bl-font-title-3);\n --bl-font-title-3-medium: var(--bl-font-weight-medium) var(--bl-font-title-3);\n --bl-font-title-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-3);\n --bl-font-title-3-bold: var(--bl-font-weight-bold) var(--bl-font-title-3);\n\n /* Font Style: Title 4 */\n --bl-font-title-4-font-size: var(--bl-font-size-s);\n --bl-font-title-4-line-height: calc(var(--bl-font-title-4-font-size) + var(--bl-size-4xs));\n --bl-font-title-4-size: var(--bl-font-title-4-font-size) / var(--bl-font-title-4-line-height);\n --bl-font-title-4: var(--bl-font-title-4-size) var(--bl-font-family);\n --bl-font-title-4-regular: var(--bl-font-weight-regular) var(--bl-font-title-4);\n --bl-font-title-4-medium: var(--bl-font-weight-medium) var(--bl-font-title-4);\n --bl-font-title-4-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-4);\n --bl-font-title-4-bold: var(--bl-font-weight-bold) var(--bl-font-title-4);\n\n /* Font Style: Body Text 1 */\n --bl-font-body-text-1-font-size: var(--bl-font-size-l);\n --bl-font-body-text-1-line-height: calc(\n var(--bl-font-body-text-1-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-1-size: var(--bl-font-body-text-1-font-size) /\n var(--bl-font-body-text-1-line-height);\n --bl-font-body-text-1: var(--bl-font-body-text-1-size) var(--bl-font-family);\n --bl-font-body-text-1-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-1);\n --bl-font-body-text-1-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-1);\n\n /* Font Style: Body Text 2 */\n --bl-font-body-text-2-font-size: var(--bl-font-size-m);\n --bl-font-body-text-2-line-height: calc(\n var(--bl-font-body-text-2-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-2-size: var(--bl-font-body-text-2-font-size) /\n var(--bl-font-body-text-2-line-height);\n --bl-font-body-text-2: var(--bl-font-body-text-2-size) var(--bl-font-family);\n --bl-font-body-text-2-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-2);\n --bl-font-body-text-2-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-2);\n\n /* Font Style: Body Text 3 */\n --bl-font-body-text-3-font-size: var(--bl-font-size-s);\n --bl-font-body-text-3-line-height: calc(\n var(--bl-font-body-text-3-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-3-size: var(--bl-font-body-text-3-font-size) /\n var(--bl-font-body-text-3-line-height);\n --bl-font-body-text-3: var(--bl-font-body-text-3-size) var(--bl-font-family);\n --bl-font-body-text-3-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-3);\n --bl-font-body-text-3-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-3);\n\n /* Font Style: Caption */\n --bl-font-caption-font-size: var(--bl-font-size-xs);\n --bl-font-caption-line-height: calc(var(--bl-font-caption-font-size) + var(--bl-size-4xs));\n --bl-font-caption-size: var(--bl-font-caption-font-size) / var(--bl-font-caption-line-height);\n --bl-font-caption: var(--bl-font-weight-medium) var(--bl-font-caption-size) var(--bl-font-family);\n}\n\n:root[dir=\"rtl\"] {\n /* Direction */\n direction: rtl;\n\n --bl-text-x-direction: -1;\n\n /* Typography */\n --bl-font-family: \"Cairo\";\n}\n"],
5
- "mappings": "AACA,WACE,2BACA,kBACA,6CACA,oBACA,mFACA,iFAIF,WACE,2BACA,kBACA,6CACA,oBACA,+EACA,gEAIF,WACE,2BACA,kBACA,6CACA,oBACA,6EACA,gEAIF,WACE,2BACA,kBACA,6CACA,oBACA,gFACA,sJAIF,WACE,2BACA,kBACA,6CACA,oBACA,4EACA,2MC7CF,MAEE,yBAGA,4BACA,sCACA,qCAGA,4BACA,sCACA,qCAGA,2BACA,qCACA,oCAGA,4BACA,sCACA,qCAGA,yBACA,mCACA,kCAGA,8BACA,oCACA,mCACA,iCACA,kCACA,oCACA,qCACA,8BAGA,uBACA,sBACA,qBACA,qBACA,qBACA,kBACA,qBACA,qBACA,oBACA,sBACA,oBACA,oBACA,oBAGA,oBACA,mBACA,wBACA,wBACA,uBACA,wBACA,uBACA,6BAGA,+CAGA,4BACA,8BACA,6BACA,+BACA,2BAGA,0BACA,2BACA,yBACA,0BACA,uBACA,2BACA,2BACA,4BACA,yBACA,yBACA,yBAGA,+BACA,6BACA,8BACA,4BACA,mCACA,+BAGA,qDACA,2FACA,8FACA,qEACA,4EACA,gFACA,8EACA,kFACA,0EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,oDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,oDACA,2FACA,8FACA,kGAGF,eAEE,cAEA,0BAGA",
4
+ "sourcesContent": ["/* rubik-cyrillic-ext-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-cyrillic-ext-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* rubik-cyrillic-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-cyrillic-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* rubik-hebrew-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-hebrew-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;\n}\n\n/* rubik-latin-ext-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-latin-ext-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* rubik-latin-wght-normal */\n@font-face {\n font-family: 'Rubik Variable';\n font-style: normal;\n font-display: var(--fontsource-display, swap);\n font-weight: 300 900;\n src: url(./files/rubik-latin-wght-normal.woff2) format('woff2-variations');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}", "@import url(\"@fontsource-variable/rubik\");\n\n:root,\n:root[data-theme=\"light\"] {\n /* Direction */\n --bl-text-x-direction: 1;\n\n /* Primary Color */\n --bl-color-primary: #f27a1a;\n --bl-color-primary-highlight: #ef6114;\n --bl-color-primary-contrast: #fef2e8;\n\n /* Success Color */\n --bl-color-success: #0bc15c;\n --bl-color-success-highlight: #09a44e;\n --bl-color-success-contrast: #e7f9ef;\n\n /* Danger Color */\n --bl-color-danger: #ff5043;\n --bl-color-danger-highlight: #ff3028;\n --bl-color-danger-contrast: #ffeeec;\n\n /* Warning Color */\n --bl-color-warning: #ffb600;\n --bl-color-warning-highlight: #ff9800;\n --bl-color-warning-contrast: #fff8e6;\n\n /* Info Color */\n --bl-color-info: #5794ff;\n --bl-color-info-highlight: #457eff;\n --bl-color-info-contrast: #eef4ff;\n\n /* Neutral Color */\n --bl-color-neutral-none: #000;\n --bl-color-neutral-darkest: #0f131a;\n --bl-color-neutral-darker: #273142;\n --bl-color-neutral-dark: #6e7787;\n --bl-color-neutral-light: #95a1b5;\n --bl-color-neutral-lighter: #afbbca;\n --bl-color-neutral-lightest: #f1f2f7;\n --bl-color-neutral-full: #fff;\n\n /* Size and Spacing */\n --bl-size-4xs: 0.125rem; /* 2px */\n --bl-size-3xs: 0.25rem; /* 4px */\n --bl-size-2xs: 0.5rem; /* 8px */\n --bl-size-xs: 0.75rem; /* 12px */\n --bl-size-s: 0.875rem; /* 14px */\n --bl-size-m: 1rem; /* 16px */\n --bl-size-l: 1.25rem; /* 20px */\n --bl-size-xl: 1.5rem; /* 24px */\n --bl-size-2xl: 2rem; /* 32px */\n --bl-size-3xl: 2.5rem; /* 40px */\n --bl-size-4xl: 3rem; /* 48px */\n --bl-size-5xl: 4rem; /* 64px */\n --bl-size-6xl: 5rem; /* 80px */\n\n /* Z-indexes */\n --bl-index-deep: -1;\n --bl-index-base: 1;\n --bl-index-popover: 100;\n --bl-index-tooltip: 200;\n --bl-index-sticky: 300;\n --bl-index-overlay: 400;\n --bl-index-dialog: 500;\n --bl-index-notification: 600;\n\n /* Typography */\n --bl-font-family: \"Rubik Variable\", sans-serif;\n\n /* Font weights */\n --bl-font-weight-light: 300;\n --bl-font-weight-regular: 400;\n --bl-font-weight-medium: 500;\n --bl-font-weight-semibold: 600;\n --bl-font-weight-bold: 700;\n\n /* Font sizes */\n --bl-font-size-2xs: 0.5rem; /* 8px */\n --bl-font-size-xs: 0.625rem; /* 10px */\n --bl-font-size-s: 0.75rem; /* 12px */\n --bl-font-size-m: 0.875rem; /* 14px */\n --bl-font-size-l: 1rem; /* 16px */\n --bl-font-size-xl: 1.25rem; /* 20px */\n --bl-font-size-2xl: 1.5rem; /* 24px */\n --bl-font-size-3xl: 1.75rem; /* 28px */\n --bl-font-size-4xl: 2rem; /* 32px */\n --bl-font-size-5xl: 3rem; /* 48px */\n --bl-font-size-6xl: 4rem; /* 64px */\n\n /* Border radius */\n --bl-border-radius-xs: 0.125rem; /* 2px */\n --bl-border-radius-s: 0.25rem; /* 4px */\n --bl-border-radius-m: 0.375rem; /* 6px */\n --bl-border-radius-l: 0.5rem; /* 8px */\n --bl-border-radius-pill: 62.438rem; /* 999px */\n --bl-border-radius-circle: 50%;\n\n /* Font Style: Display */\n --bl-font-display-font-size: var(--bl-font-size-5xl);\n --bl-font-display-line-height: calc(var(--bl-font-display-font-size) + var(--bl-size-2xs));\n --bl-font-display-size: var(--bl-font-display-font-size) / var(--bl-font-display-line-height);\n --bl-font-display: var(--bl-font-display-size) var(--bl-font-family);\n --bl-font-display-light: var(--bl-font-weight-light) var(--bl-font-display);\n --bl-font-display-regular: var(--bl-font-weight-regular) var(--bl-font-display);\n --bl-font-display-medium: var(--bl-font-weight-medium) var(--bl-font-display);\n --bl-font-display-semibold: var(--bl-font-weight-semibold) var(--bl-font-display);\n --bl-font-display-bold: var(--bl-font-weight-bold) var(--bl-font-display);\n\n /* Font Style: Heading 1 */\n --bl-font-heading-1-font-size: var(--bl-font-size-4xl);\n --bl-font-heading-1-line-height: calc(var(--bl-font-heading-1-font-size) + var(--bl-size-3xs));\n --bl-font-heading-1-size: var(--bl-font-heading-1-font-size) /\n var(--bl-font-heading-1-line-height);\n --bl-font-heading-1: var(--bl-font-heading-1-size) var(--bl-font-family);\n --bl-font-heading-1-regular: var(--bl-font-weight-regular) var(--bl-font-heading-1);\n --bl-font-heading-1-medium: var(--bl-font-weight-medium) var(--bl-font-heading-1);\n --bl-font-heading-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-1);\n --bl-font-heading-1-bold: var(--bl-font-weight-bold) var(--bl-font-heading-1);\n\n /* Font Style: Heading 2 */\n --bl-font-heading-2-font-size: var(--bl-font-size-3xl);\n --bl-font-heading-2-line-height: calc(var(--bl-font-heading-2-font-size) + var(--bl-size-3xs));\n --bl-font-heading-2-size: var(--bl-font-heading-2-font-size) /\n var(--bl-font-heading-2-line-height);\n --bl-font-heading-2: var(--bl-font-heading-2-size) var(--bl-font-family);\n --bl-font-heading-2-regular: var(--bl-font-weight-regular) var(--bl-font-heading-2);\n --bl-font-heading-2-medium: var(--bl-font-weight-medium) var(--bl-font-heading-2);\n --bl-font-heading-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-2);\n --bl-font-heading-2-bold: var(--bl-font-weight-bold) var(--bl-font-heading-2);\n\n /* Font Style: Heading 3 */\n --bl-font-heading-3-font-size: var(--bl-font-size-2xl);\n --bl-font-heading-3-line-height: calc(var(--bl-font-heading-3-font-size) + var(--bl-size-3xs));\n --bl-font-heading-3-size: var(--bl-font-heading-3-font-size) /\n var(--bl-font-heading-3-line-height);\n --bl-font-heading-3: var(--bl-font-heading-3-size) var(--bl-font-family);\n --bl-font-heading-3-regular: var(--bl-font-weight-regular) var(--bl-font-heading-3);\n --bl-font-heading-3-medium: var(--bl-font-weight-medium) var(--bl-font-heading-3);\n --bl-font-heading-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-heading-3);\n --bl-font-heading-3-bold: var(--bl-font-weight-bold) var(--bl-font-heading-3);\n\n /* Font Style: Title 1 */\n --bl-font-title-1-font-size: var(--bl-font-size-xl);\n --bl-font-title-1-line-height: calc(var(--bl-font-title-1-font-size) + var(--bl-size-3xs));\n --bl-font-title-1-size: var(--bl-font-title-1-font-size) / var(--bl-font-title-1-line-height);\n --bl-font-title-1: var(--bl-font-title-1-size) var(--bl-font-family);\n --bl-font-title-1-regular: var(--bl-font-weight-regular) var(--bl-font-title-1);\n --bl-font-title-1-medium: var(--bl-font-weight-medium) var(--bl-font-title-1);\n --bl-font-title-1-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-1);\n --bl-font-title-1-bold: var(--bl-font-weight-bold) var(--bl-font-title-1);\n\n /* Font Style: Title 2 */\n --bl-font-title-2-font-size: var(--bl-font-size-l);\n --bl-font-title-2-line-height: calc(var(--bl-font-title-2-font-size) + var(--bl-size-3xs));\n --bl-font-title-2-size: var(--bl-font-title-2-font-size) / var(--bl-font-title-2-line-height);\n --bl-font-title-2: var(--bl-font-title-2-size) var(--bl-font-family);\n --bl-font-title-2-regular: var(--bl-font-weight-regular) var(--bl-font-title-2);\n --bl-font-title-2-medium: var(--bl-font-weight-medium) var(--bl-font-title-2);\n --bl-font-title-2-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-2);\n --bl-font-title-2-bold: var(--bl-font-weight-bold) var(--bl-font-title-2);\n\n /* Font Style: Title 3 */\n --bl-font-title-3-font-size: var(--bl-font-size-m);\n --bl-font-title-3-line-height: calc(var(--bl-font-title-3-font-size) + var(--bl-size-4xs));\n --bl-font-title-3-size: var(--bl-font-title-3-font-size) / var(--bl-font-title-3-line-height);\n --bl-font-title-3: var(--bl-font-title-3-size) var(--bl-font-family);\n --bl-font-title-3-regular: var(--bl-font-weight-regular) var(--bl-font-title-3);\n --bl-font-title-3-medium: var(--bl-font-weight-medium) var(--bl-font-title-3);\n --bl-font-title-3-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-3);\n --bl-font-title-3-bold: var(--bl-font-weight-bold) var(--bl-font-title-3);\n\n /* Font Style: Title 4 */\n --bl-font-title-4-font-size: var(--bl-font-size-s);\n --bl-font-title-4-line-height: calc(var(--bl-font-title-4-font-size) + var(--bl-size-4xs));\n --bl-font-title-4-size: var(--bl-font-title-4-font-size) / var(--bl-font-title-4-line-height);\n --bl-font-title-4: var(--bl-font-title-4-size) var(--bl-font-family);\n --bl-font-title-4-regular: var(--bl-font-weight-regular) var(--bl-font-title-4);\n --bl-font-title-4-medium: var(--bl-font-weight-medium) var(--bl-font-title-4);\n --bl-font-title-4-semibold: var(--bl-font-weight-semibold) var(--bl-font-title-4);\n --bl-font-title-4-bold: var(--bl-font-weight-bold) var(--bl-font-title-4);\n\n /* Font Style: Body Text 1 */\n --bl-font-body-text-1-font-size: var(--bl-font-size-l);\n --bl-font-body-text-1-line-height: calc(\n var(--bl-font-body-text-1-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-1-size: var(--bl-font-body-text-1-font-size) /\n var(--bl-font-body-text-1-line-height);\n --bl-font-body-text-1: var(--bl-font-body-text-1-size) var(--bl-font-family);\n --bl-font-body-text-1-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-1);\n --bl-font-body-text-1-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-1);\n\n /* Font Style: Body Text 2 */\n --bl-font-body-text-2-font-size: var(--bl-font-size-m);\n --bl-font-body-text-2-line-height: calc(\n var(--bl-font-body-text-2-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-2-size: var(--bl-font-body-text-2-font-size) /\n var(--bl-font-body-text-2-line-height);\n --bl-font-body-text-2: var(--bl-font-body-text-2-size) var(--bl-font-family);\n --bl-font-body-text-2-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-2);\n --bl-font-body-text-2-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-2);\n\n /* Font Style: Body Text 3 */\n --bl-font-body-text-3-font-size: var(--bl-font-size-s);\n --bl-font-body-text-3-line-height: calc(\n var(--bl-font-body-text-3-font-size) + var(--bl-size-4xs)\n );\n --bl-font-body-text-3-size: var(--bl-font-body-text-3-font-size) /\n var(--bl-font-body-text-3-line-height);\n --bl-font-body-text-3: var(--bl-font-body-text-3-size) var(--bl-font-family);\n --bl-font-body-text-3-regular: var(--bl-font-weight-regular) var(--bl-font-body-text-3);\n --bl-font-body-text-3-medium: var(--bl-font-weight-medium) var(--bl-font-body-text-3);\n\n /* Font Style: Caption */\n --bl-font-caption-font-size: var(--bl-font-size-xs);\n --bl-font-caption-line-height: calc(var(--bl-font-caption-font-size) + var(--bl-size-4xs));\n --bl-font-caption-size: var(--bl-font-caption-font-size) / var(--bl-font-caption-line-height);\n --bl-font-caption: var(--bl-font-weight-medium) var(--bl-font-caption-size) var(--bl-font-family);\n}\n\n:root[dir=\"rtl\"] {\n /* Direction */\n direction: rtl;\n\n --bl-text-x-direction: -1;\n\n /* Typography */\n --bl-font-family: \"Cairo\";\n}\n"],
5
+ "mappings": "AACA,WACE,2BACA,kBACA,6CACA,oBACA,mFACA,iFAIF,WACE,2BACA,kBACA,6CACA,oBACA,+EACA,gEAIF,WACE,2BACA,kBACA,6CACA,oBACA,6EACA,gEAIF,WACE,2BACA,kBACA,6CACA,oBACA,gFACA,sJAIF,WACE,2BACA,kBACA,6CACA,oBACA,4EACA,2MC7CF,8BAGE,yBAGA,4BACA,sCACA,qCAGA,4BACA,sCACA,qCAGA,2BACA,qCACA,oCAGA,4BACA,sCACA,qCAGA,yBACA,mCACA,kCAGA,8BACA,oCACA,mCACA,iCACA,kCACA,oCACA,qCACA,8BAGA,uBACA,sBACA,qBACA,qBACA,qBACA,kBACA,qBACA,qBACA,oBACA,sBACA,oBACA,oBACA,oBAGA,oBACA,mBACA,wBACA,wBACA,uBACA,wBACA,uBACA,6BAGA,+CAGA,4BACA,8BACA,6BACA,+BACA,2BAGA,0BACA,2BACA,yBACA,0BACA,uBACA,2BACA,2BACA,4BACA,yBACA,yBACA,yBAGA,+BACA,6BACA,8BACA,4BACA,mCACA,+BAGA,qDACA,2FACA,8FACA,qEACA,4EACA,gFACA,8EACA,kFACA,0EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,uDACA,+FACA,oGAEA,yEACA,oFACA,kFACA,sFACA,8EAGA,oDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,mDACA,2FACA,8FACA,qEACA,gFACA,8EACA,kFACA,0EAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,uDACA,qGAGA,0GAEA,6EACA,wFACA,sFAGA,oDACA,2FACA,8FACA,kGAGF,eAEE,cAEA,0BAGA",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"format-to-date-array.d.ts","sourceRoot":"","sources":["../../src/utilities/format-to-date-array.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG,SAAS,GAAG,IAAI,EAAE,CAWnF"}
1
+ {"version":3,"file":"format-to-date-array.d.ts","sourceRoot":"","sources":["../../src/utilities/format-to-date-array.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,GAAG,SAAS,GAAG,IAAI,EAAE,CAYnF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trendyol/baklava",
3
3
  "type": "module",
4
- "version": "3.4.2",
4
+ "version": "3.5.0-beta.10",
5
5
  "description": "Trendyol Baklava Design System",
6
6
  "main": "dist/baklava.js",
7
7
  "module": "dist/baklava.js",
@@ -13,7 +13,10 @@
13
13
  "dist/"
14
14
  ],
15
15
  "homepage": "https://baklava.design",
16
- "repository": "github:Trendyol/baklava",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Trendyol/baklava.git"
19
+ },
17
20
  "bugs": {
18
21
  "url": "https://github.com/Trendyol/baklava/issues"
19
22
  },
@@ -55,7 +58,8 @@
55
58
  "test:debug": "web-test-runner --coverage --watch --debug",
56
59
  "test:headless": "web-test-runner --coverage --watch --debug --headless",
57
60
  "localize:extract": "lit-localize extract",
58
- "localize:build": "lit-localize build"
61
+ "localize:build": "lit-localize build",
62
+ "release": "semantic-release"
59
63
  },
60
64
  "keywords": [
61
65
  "web-components",
@@ -63,7 +67,7 @@
63
67
  "lit"
64
68
  ],
65
69
  "dependencies": {
66
- "@floating-ui/dom": "^1.2.3",
70
+ "@floating-ui/dom": "^1.7.6",
67
71
  "@fontsource-variable/rubik": "^5.0.2",
68
72
  "@lit-labs/react": "^2.0.3",
69
73
  "@lit/localize": "^0.12.1",
@@ -72,9 +76,6 @@
72
76
  "element-internals-polyfill": "^1.2.3",
73
77
  "lit": "^2.8.0"
74
78
  },
75
- "engines": {
76
- "node": ">=18"
77
- },
78
79
  "devDependencies": {
79
80
  "@commitlint/cli": "^16.2.4",
80
81
  "@commitlint/config-conventional": "^16.2.4",
@@ -91,6 +92,7 @@
91
92
  "@storybook/addon-mdx-gfm": "^7.4.3",
92
93
  "@storybook/addon-viewport": "^7.4.3",
93
94
  "@storybook/jest": "^0.2.2",
95
+ "@storybook/manager-api": "7.4.3",
94
96
  "@storybook/testing-library": "^0.2.2",
95
97
  "@storybook/web-components": "7.4.3",
96
98
  "@storybook/web-components-vite": "^7.4.3",
@@ -132,6 +134,7 @@
132
134
  "react": "^18.2.0",
133
135
  "react-dom": "^18.2.0",
134
136
  "rollup-plugin-lit-css": "^4.0.0",
137
+ "semantic-release": "^25.0.5",
135
138
  "sinon": "^16.0.0",
136
139
  "storybook": "7.4.3",
137
140
  "stylelint": "^15.10.2",
@@ -1,59 +0,0 @@
1
- import{a as x}from"./chunk-23PSWIUF.js";import{a as b}from"./chunk-NM74WWXQ.js";import{c as y}from"./chunk-EG7U7PM3.js";import{a as f}from"./chunk-XDUIVR6I.js";import{a as p}from"./chunk-6LT7O7T2.js";import{a as l}from"./chunk-DINNT5P2.js";import{a as n}from"./chunk-GRL4DWKG.js";import{a as g,c as m}from"./chunk-HBPBDC7T.js";import{a as u,b as i,c,e as v}from"./chunk-5MOOXA2X.js";import{a as h,b as r,f as d}from"./chunk-4OT5AMS5.js";import{d as t}from"./chunk-BWWXE4SL.js";var M=h`:host{display:inline-block;width:200px;position:relative}.wrapper{--border-color:var(--bl-color-neutral-lighter);--icon-color:var(--bl-color-neutral-light);--text-color:var(--bl-color-neutral-darker);--height:var(--bl-size-2xl);--input-font:var(--bl-font-body-text-2);--line-height:var(--bl-font-body-text-2-line-height);--icon-size:var(--line-height);--icon-gap:var(--bl-size-4xs);--padding-vertical:calc((var(--height) - var(--line-height)) / 2);--padding-horizontal:var(--bl-size-xs);--autofill-bg-color:var(--bl-color-primary-contrast);--label-padding:var(--bl-size-2xs);--background-color:var(--bl-color-neutral-full);display:grid;position:relative;gap:var(--bl-size-3xs)}.wrapper:focus-within{--border-color:var(--bl-color-primary);--icon-color:var(--bl-color-primary)}.wrapper.dirty.invalid{--border-color:var(--bl-color-danger);--icon-color:var(--bl-color-danger)}:host([size=large]) .wrapper{--height:var(--bl-size-3xl);--padding-vertical:var(--bl-size-xs);--padding-horizontal:var(--bl-size-m)}:host([size=small]) .wrapper{--height:var(--bl-size-xl);--input-font:var(--bl-font-body-text-3);--padding-vertical:var(--bl-size-3xs)}.input-wrapper{--border-size:1px;outline:0;display:flex;box-sizing:border-box;gap:var(--padding-vertical);height:var(--height);border:solid var(--border-size) var(--border-color);padding-block:0;padding-inline:calc(var(--bl-input-padding-start,var(--padding-horizontal)) - var(--label-padding) - var(--border-size)) calc(var(--bl-input-padding-end,var(--padding-horizontal)) - var(--label-padding) - var(--border-size));background-color:var(--background-color);border-radius:var(--bl-size-3xs);margin:0;width:0;min-width:100%}:host([disabled]) .wrapper{cursor:not-allowed;--background-color:var(--bl-color-neutral-lightest);--text-color:var(--bl-color-neutral-light)}.wrapper:has(input:autofill){--background-color:var(--autofill-bg-color)}.wrapper:has(input:-webkit-autofill){--background-color:var(--autofill-bg-color)}.input-wrapper legend,label{padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}label{position:absolute;max-width:max-content;transition:.1s ease-in;font:var(--input-font);top:var(--padding-vertical);inset-inline-start:var(--bl-input-padding-start,var(--padding-horizontal));inset-inline-end:var(--bl-input-padding-end,var(--padding-horizontal));pointer-events:none;color:var(--bl-color-neutral-light)}.has-icon label{inset-inline-end:calc(var(--bl-input-padding-end,var(--padding-horizontal)) + var(--icon-size) + var(--padding-vertical))}.input-wrapper legend{height:0;visibility:hidden;display:none}.input-wrapper legend span{padding:0 var(--label-padding);display:inline-block;opacity:0;visibility:visible}input{width:100%;align-self:stretch;outline:0;border:0;padding-block:0;padding-inline:var(--label-padding) 0;font:var(--input-font);color:var(--text-color);-webkit-text-fill-color:var(--text-color);background-color:transparent;cursor:var(--bl-input-cursor,unset)}input::-webkit-credentials-auto-fill-button{color:red}:where(.wrapper:focus-within,.wrapper.has-value) input{padding-inline-start:var(--label-padding)}input:disabled{cursor:not-allowed}input::-webkit-calendar-picker-indicator{display:none}input::-webkit-search-cancel-button{display:none}input::-moz-calendar-picker-indicator{display:none}input:autofill{background-color:var(--autofill-bg-color);box-shadow:0 0 0 40rem var(--autofill-bg-color) inset}input:-webkit-autofill{background-color:var(--autofill-bg-color);box-shadow:0 0 0 40rem var(--autofill-bg-color) inset}.icon{display:flex;align-items:center;gap:var(--icon-gap);flex-basis:var(--icon-size);align-self:center;height:var(--icon-size);margin-inline-end:var(--label-padding)}.icon:has(.clear-icon){gap:var(--bl-size-3xs)}::slotted(bl-icon),bl-icon:not(.reveal-icon,.clear-icon){font-size:var(--icon-size);color:var(--icon-color);height:var(--icon-size)}.reveal-button bl-icon{display:none}bl-icon[name=eye_on]{display:inline-block}.password-visible bl-icon[name=eye_on]{display:none}.password-visible bl-icon[name=eye_off]{display:inline-block}.wrapper:not(.has-icon) .icon{display:none}.hint{display:none;font:var(--bl-font-body-text-3)}.hint p{padding:0;margin:0}::placeholder{color:var(--bl-color-neutral-light);-webkit-text-fill-color:var(--bl-color-neutral-light)}:host([label]) ::placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:color .4s ease-out}:host :focus-within ::placeholder,:host([label-fixed]) ::placeholder{color:var(--bl-color-neutral-light);-webkit-text-fill-color:var(--bl-color-neutral-light)}:host([label-fixed]) label{position:static;transition:none;transform:none;pointer-events:initial;font:var(--bl-font-caption);color:var(--bl-color-neutral-dark);padding:0}:host([label-fixed]) legend{display:none}:host(:not([label-fixed])) .has-value label,:host(:not([label-fixed])) :focus-within label{top:0;inset-inline-start:calc(var(--bl-input-padding-start,var(--padding-horizontal)) - var(--label-padding));inset-inline-end:calc(var(--bl-input-padding-end,var(--padding-horizontal)) - var(--label-padding));transform:translateY(-50%);font:var(--bl-font-caption);color:var(--bl-color-neutral-dark);padding:0 var(--label-padding);pointer-events:initial;z-index:var(--bl-index-base)}:host([label]:not([label-fixed])) :where(:focus-within,.has-value) legend{max-width:100%;font:var(--bl-font-caption);display:block}.error-icon,.invalid-text{display:none}.dirty.invalid label,.error-icon,.invalid-text{color:var(--bl-color-danger)}.help-text{color:var(--bl-color-neutral-dark)}.dirty.invalid .hint,:host([help-text]) .hint{display:block}.dirty.invalid .invalid-text{display:block}.dirty.invalid .help-text{display:none}.dirty.invalid .error-icon{display:inline-block}.split-divider{display:block;height:1rem;width:1px;background-color:var(--bl-color-neutral-lighter)}slot[name=icon] bl-icon{margin-inline-start:var(--bl-size-3xs);font-size:var(--bl-font-size-m)}`,w=M;var H={date:"calendar","datetime-local":"calendar",month:"calendar",week:"calendar",time:"clock",search:"search"},e=class extends f(d){constructor(){super(...arguments);this.type="text";this.value="";this.required=!1;this.loading=!1;this.autocomplete="on";this.autofocus=!1;this.size="medium";this.disabled=!1;this.readonly=!1;this.labelFixed=!1;this.onKeydown=a=>{a.code==="Enter"&&this.form&&setTimeout(()=>{a.defaultPrevented||b(this.form)})};this.dirty=!1;this.passwordVisible=!1;this.inputId=Math.random().toString(36).substring(2)}static get styles(){return[w]}set customInvalidText(a){this._customInvalidText=a,this.setValue(this.value)}get customInvalidText(){return this._customInvalidText}connectedCallback(){var a;super.connectedCallback(),this.addEventListener("keydown",this.onKeydown),(a=this.form)==null||a.addEventListener("submit",()=>{this.reportValidity()})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.onKeydown)}textVisibilityToggle(){this.passwordVisible=!this.passwordVisible}async handleSearchClear(){this.value="",this.setValue(this.value),this.onInput(this.value),await this.clearCustomError(),this.validationTarget.focus()}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.validationTarget.showPicker()}validityCallback(){var a;return this.onInvalid(this.internals.validity),this.customInvalidText||((a=this.validationTarget)==null?void 0:a.validationMessage)}setCustomValidity(a){this.validationTarget.setCustomValidity(a)}async forceCustomError(){await this.updateComplete,this.setCustomValidity(this.customInvalidText||m("An error occurred",{desc:"bl-input: default custom error message"})),this.setValue(this.value),this.reportValidity()}async clearCustomError(){await this.updateComplete,this.setCustomValidity(""),this.setValue(this.value),this.reportValidity()}reportValidity(){return this.dirty=!0,this.requestUpdate(),this.checkValidity()}inputHandler(a){let o=a.target.value;this.value=o,this.setValue(this.value),this.onInput(o)}changeHandler(a){let o=a.target.value;this.dirty=!0,this.value=o,this.setValue(this.value),this.onChange(o)}firstUpdated(){this.setValue(this.value),this.icon||(this.icon=H[this.type])}async updated(a){a.size>0&&(this.setValue(this.value),await this.validationComplete,this.requestUpdate()),a.has("error")&&this.error&&!this.dirty&&this.reportValidity()}get _hasIconSlot(){return this.querySelector(':scope > [slot="icon"]')!==null}render(){let a=this.checkValidity()?"":r`<p id="errorMessage" aria-live="polite" class="invalid-text">
2
- ${this.validationMessage}
3
- </p>`,o=this.helpText?r`<p id="helpText" class="help-text">${this.helpText}</p>`:"",k=r`
4
- <slot name="icon">
5
- ${this.loading&&this.type==="search"&&this.value!==""&&this.value!==null?r`<bl-spinner></bl-spinner>`:this.icon?r`<bl-icon name="${this.icon}"></bl-icon>`:r`<bl-icon class="error-icon" name="alert"></bl-icon>`}
6
- </slot>
7
- `,z=this.label?r`<label for=${this.inputId}>${this.label}</label>`:"",s=this.type==="password",T=s?r`<bl-button
8
- size="small"
9
- kind="neutral"
10
- variant="tertiary"
11
- class="${p({"reveal-button":!0,"password-visible":this.passwordVisible})}"
12
- aria-label="Toggle password reveal"
13
- @bl-click="${this.textVisibilityToggle}"
14
- >
15
- <bl-icon class="reveal-icon" slot="icon" name="eye_on"></bl-icon>
16
- <bl-icon class="reveal-icon" slot="icon" name="eye_off"></bl-icon>
17
- </bl-button>`:"",$=this.type==="search"&&this.value!==""&&this.value!==null?r`
18
- <bl-button
19
- size="small"
20
- kind="neutral"
21
- variant="tertiary"
22
- aria-label="Clear search"
23
- icon="close"
24
- @bl-click=${this.handleSearchClear}
25
- >
26
- </bl-button>
27
- <div class="split-divider"></div>
28
- `:"",V=this.icon||this._hasIconSlot,C={wrapper:!0,dirty:this.dirty,invalid:!this.checkValidity(),"has-icon":s||V||this.dirty&&!this.checkValidity(),"has-value":this.value!==null&&this.value!==""},E=this.passwordVisible?"text":"password",S=s?E:this.type;return r`<div class=${p(C)}>
29
- ${z}
30
- <fieldset class="input-wrapper">
31
- <legend><span>${this.label}</span></legend>
32
- <input
33
- id=${this.inputId}
34
- type=${S}
35
- .value=${y(this.value)}
36
- inputmode="${l(this.inputmode)}"
37
- ?autofocus=${this.autofocus}
38
- .autocomplete="${this.autocomplete}"
39
- placeholder="${l(this.placeholder)}"
40
- minlength="${l(this.minlength)}"
41
- maxlength="${l(this.maxlength)}"
42
- min="${l(this.min)}"
43
- max="${l(this.max)}"
44
- pattern="${l(this.pattern)}"
45
- step="${l(this.step)}"
46
- ?required=${this.required}
47
- ?disabled=${this.disabled}
48
- ?readonly=${this.readonly}
49
- @change=${this.changeHandler}
50
- @input=${this.inputHandler}
51
- aria-invalid=${this.checkValidity()?"false":"true"}
52
- aria-describedby=${l(this.helpText?"helpText":void 0)}
53
- aria-errormessage=${l(this.checkValidity()?void 0:"errorMessage")}
54
- />
55
- <div class="icon">${T} ${$} ${k}</div>
56
- </fieldset>
57
- <div class="hint">${a} ${o}</div>
58
- </div>`}};e.shadowRootOptions={...d.shadowRootOptions,delegatesFocus:!0},e.formControlValidators=x,t([v("input")],e.prototype,"validationTarget",2),t([i({reflect:!0})],e.prototype,"name",2),t([i({reflect:!0})],e.prototype,"type",2),t([i({reflect:!0})],e.prototype,"label",2),t([i({reflect:!0})],e.prototype,"placeholder",2),t([i({reflect:!0})],e.prototype,"value",2),t([i({type:Boolean,reflect:!0})],e.prototype,"required",2),t([i({type:Number,reflect:!0})],e.prototype,"minlength",2),t([i({type:Number,reflect:!0})],e.prototype,"maxlength",2),t([i({reflect:!0})],e.prototype,"min",2),t([i({type:Boolean,reflect:!0})],e.prototype,"loading",2),t([i({reflect:!0})],e.prototype,"max",2),t([i({type:String,reflect:!0})],e.prototype,"pattern",2),t([i({type:Number,reflect:!0})],e.prototype,"step",2),t([i({type:String,reflect:!0})],e.prototype,"autocomplete",2),t([i({type:String,reflect:!0})],e.prototype,"inputmode",2),t([i({type:Boolean,reflect:!0})],e.prototype,"autofocus",2),t([i({type:String,reflect:!0})],e.prototype,"icon",2),t([i({type:String,reflect:!0})],e.prototype,"size",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i({type:Boolean,reflect:!0})],e.prototype,"readonly",2),t([i({type:Boolean,attribute:"label-fixed",reflect:!0})],e.prototype,"labelFixed",2),t([i({type:String,attribute:"invalid-text",reflect:!0})],e.prototype,"customInvalidText",1),t([i({reflect:!0,type:String})],e.prototype,"error",2),t([i({type:String,attribute:"help-text",reflect:!0})],e.prototype,"helpText",2),t([n("bl-change")],e.prototype,"onChange",2),t([n("bl-input")],e.prototype,"onInput",2),t([n("bl-invalid")],e.prototype,"onInvalid",2),t([c()],e.prototype,"dirty",2),t([c()],e.prototype,"passwordVisible",2),e=t([u("bl-input"),g()],e);export{e as a};
59
- //# sourceMappingURL=chunk-3IZAFXL6.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/components/input/bl-input.css", "../src/components/input/bl-input.ts"],
4
- "sourcesContent": ["import {css} from 'lit';\nexport const styles = css`:host{display:inline-block;width:200px;position:relative}.wrapper{--border-color:var(--bl-color-neutral-lighter);--icon-color:var(--bl-color-neutral-light);--text-color:var(--bl-color-neutral-darker);--height:var(--bl-size-2xl);--input-font:var(--bl-font-body-text-2);--line-height:var(--bl-font-body-text-2-line-height);--icon-size:var(--line-height);--icon-gap:var(--bl-size-4xs);--padding-vertical:calc((var(--height) - var(--line-height)) / 2);--padding-horizontal:var(--bl-size-xs);--autofill-bg-color:var(--bl-color-primary-contrast);--label-padding:var(--bl-size-2xs);--background-color:var(--bl-color-neutral-full);display:grid;position:relative;gap:var(--bl-size-3xs)}.wrapper:focus-within{--border-color:var(--bl-color-primary);--icon-color:var(--bl-color-primary)}.wrapper.dirty.invalid{--border-color:var(--bl-color-danger);--icon-color:var(--bl-color-danger)}:host([size=large]) .wrapper{--height:var(--bl-size-3xl);--padding-vertical:var(--bl-size-xs);--padding-horizontal:var(--bl-size-m)}:host([size=small]) .wrapper{--height:var(--bl-size-xl);--input-font:var(--bl-font-body-text-3);--padding-vertical:var(--bl-size-3xs)}.input-wrapper{--border-size:1px;outline:0;display:flex;box-sizing:border-box;gap:var(--padding-vertical);height:var(--height);border:solid var(--border-size) var(--border-color);padding-block:0;padding-inline:calc(var(--bl-input-padding-start,var(--padding-horizontal)) - var(--label-padding) - var(--border-size)) calc(var(--bl-input-padding-end,var(--padding-horizontal)) - var(--label-padding) - var(--border-size));background-color:var(--background-color);border-radius:var(--bl-size-3xs);margin:0;width:0;min-width:100%}:host([disabled]) .wrapper{cursor:not-allowed;--background-color:var(--bl-color-neutral-lightest);--text-color:var(--bl-color-neutral-light)}.wrapper:has(input:autofill){--background-color:var(--autofill-bg-color)}.wrapper:has(input:-webkit-autofill){--background-color:var(--autofill-bg-color)}.input-wrapper legend,label{padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}label{position:absolute;max-width:max-content;transition:.1s ease-in;font:var(--input-font);top:var(--padding-vertical);inset-inline-start:var(--bl-input-padding-start,var(--padding-horizontal));inset-inline-end:var(--bl-input-padding-end,var(--padding-horizontal));pointer-events:none;color:var(--bl-color-neutral-light)}.has-icon label{inset-inline-end:calc(var(--bl-input-padding-end,var(--padding-horizontal)) + var(--icon-size) + var(--padding-vertical))}.input-wrapper legend{height:0;visibility:hidden;display:none}.input-wrapper legend span{padding:0 var(--label-padding);display:inline-block;opacity:0;visibility:visible}input{width:100%;align-self:stretch;outline:0;border:0;padding-block:0;padding-inline:var(--label-padding) 0;font:var(--input-font);color:var(--text-color);-webkit-text-fill-color:var(--text-color);background-color:transparent;cursor:var(--bl-input-cursor,unset)}input::-webkit-credentials-auto-fill-button{color:red}:where(.wrapper:focus-within,.wrapper.has-value) input{padding-inline-start:var(--label-padding)}input:disabled{cursor:not-allowed}input::-webkit-calendar-picker-indicator{display:none}input::-webkit-search-cancel-button{display:none}input::-moz-calendar-picker-indicator{display:none}input:autofill{background-color:var(--autofill-bg-color);box-shadow:0 0 0 40rem var(--autofill-bg-color) inset}input:-webkit-autofill{background-color:var(--autofill-bg-color);box-shadow:0 0 0 40rem var(--autofill-bg-color) inset}.icon{display:flex;align-items:center;gap:var(--icon-gap);flex-basis:var(--icon-size);align-self:center;height:var(--icon-size);margin-inline-end:var(--label-padding)}.icon:has(.clear-icon){gap:var(--bl-size-3xs)}::slotted(bl-icon),bl-icon:not(.reveal-icon,.clear-icon){font-size:var(--icon-size);color:var(--icon-color);height:var(--icon-size)}.reveal-button bl-icon{display:none}bl-icon[name=eye_on]{display:inline-block}.password-visible bl-icon[name=eye_on]{display:none}.password-visible bl-icon[name=eye_off]{display:inline-block}.wrapper:not(.has-icon) .icon{display:none}.hint{display:none;font:var(--bl-font-body-text-3)}.hint p{padding:0;margin:0}::placeholder{color:var(--bl-color-neutral-light);-webkit-text-fill-color:var(--bl-color-neutral-light)}:host([label]) ::placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:color .4s ease-out}:host :focus-within ::placeholder,:host([label-fixed]) ::placeholder{color:var(--bl-color-neutral-light);-webkit-text-fill-color:var(--bl-color-neutral-light)}:host([label-fixed]) label{position:static;transition:none;transform:none;pointer-events:initial;font:var(--bl-font-caption);color:var(--bl-color-neutral-dark);padding:0}:host([label-fixed]) legend{display:none}:host(:not([label-fixed])) .has-value label,:host(:not([label-fixed])) :focus-within label{top:0;inset-inline-start:calc(var(--bl-input-padding-start,var(--padding-horizontal)) - var(--label-padding));inset-inline-end:calc(var(--bl-input-padding-end,var(--padding-horizontal)) - var(--label-padding));transform:translateY(-50%);font:var(--bl-font-caption);color:var(--bl-color-neutral-dark);padding:0 var(--label-padding);pointer-events:initial;z-index:var(--bl-index-base)}:host([label]:not([label-fixed])) :where(:focus-within,.has-value) legend{max-width:100%;font:var(--bl-font-caption);display:block}.error-icon,.invalid-text{display:none}.dirty.invalid label,.error-icon,.invalid-text{color:var(--bl-color-danger)}.help-text{color:var(--bl-color-neutral-dark)}.dirty.invalid .hint,:host([help-text]) .hint{display:block}.dirty.invalid .invalid-text{display:block}.dirty.invalid .help-text{display:none}.dirty.invalid .error-icon{display:inline-block}.split-divider{display:block;height:1rem;width:1px;background-color:var(--bl-color-neutral-lighter)}slot[name=icon] bl-icon{margin-inline-start:var(--bl-size-3xs);font-size:var(--bl-font-size-m)}`;\nexport default styles;\n", "import { CSSResultGroup, html, LitElement, PropertyValues, TemplateResult } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { live } from \"lit/directives/live.js\";\nimport { localized, msg } from \"@lit/localize\";\nimport { FormControlMixin } from \"@open-wc/form-control\";\nimport { submit } from \"@open-wc/form-helpers\";\nimport \"element-internals-polyfill\";\nimport { event, EventDispatcher } from \"../../utilities/event\";\nimport { innerInputValidators } from \"../../utilities/form-control\";\nimport \"../button/bl-button\";\nimport \"../icon/bl-icon\";\nimport { BaklavaIcon } from \"../icon/icon-list\";\nimport style from \"./bl-input.css\";\n\nexport type InputType =\n | \"text\"\n | \"email\"\n | \"date\"\n | \"time\"\n | \"datetime-local\"\n | \"month\"\n | \"week\"\n | \"password\"\n | \"number\"\n | \"tel\"\n | \"url\"\n | \"search\";\n\nconst inputTypeIcons: Partial<Record<InputType, BaklavaIcon>> = {\n \"date\": \"calendar\",\n \"datetime-local\": \"calendar\",\n \"month\": \"calendar\",\n \"week\": \"calendar\",\n \"time\": \"clock\",\n \"search\": \"search\",\n};\n\nexport type InputSize = \"small\" | \"medium\" | \"large\";\n/**\n * @tag bl-input\n * @summary Baklava Input component\n *\n * @cssproperty [--bl-input-padding-start] Sets the padding start\n * @cssproperty [--bl-input-padding-end] Sets the padding end\n */\n@customElement(\"bl-input\")\n@localized()\nexport default class BlInput extends FormControlMixin(LitElement) {\n static get styles(): CSSResultGroup {\n return [style];\n }\n static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };\n\n static formControlValidators = innerInputValidators;\n\n @query(\"input\")\n validationTarget: HTMLInputElement;\n\n /**\n * Sets name of the input\n */\n @property({ reflect: true })\n name?: string;\n\n /**\n * Type of the input. It's used to set `type` attribute of native input inside.\n */\n @property({ reflect: true })\n type: InputType = \"text\";\n\n /**\n * Sets label of the input\n */\n @property({ reflect: true })\n label?: string;\n\n /**\n * Sets placeholder of the input\n */\n @property({ reflect: true })\n placeholder?: string;\n\n /**\n * Sets initial value of the input\n */\n @property({ reflect: true })\n value = \"\";\n\n /**\n * Makes input a mandatory field\n */\n @property({ type: Boolean, reflect: true })\n required = false;\n\n /**\n * Sets minimum length of the input\n */\n @property({ type: Number, reflect: true })\n minlength?: number;\n\n /**\n * Sets maximum length of the input\n */\n @property({ type: Number, reflect: true })\n maxlength?: number;\n\n /**\n * Sets the minimum acceptable value for the input\n */\n @property({ reflect: true })\n min?: number | string;\n\n /**\n * Sets the loading value for the input\n */\n @property({ type: Boolean, reflect: true })\n loading = false;\n\n /**\n * Sets the maximum acceptable value for the input\n */\n @property({ reflect: true })\n max?: number | string;\n\n /**\n * Sets a regex pattern form the input validation\n */\n @property({ type: String, reflect: true })\n pattern?: string;\n\n /**\n * Sets the increase and decrease step to a `number` input\n */\n @property({ type: Number, reflect: true })\n step?: number;\n\n /**\n * Hints browser to autocomplete this field.\n */\n @property({ type: String, reflect: true })\n autocomplete: HTMLInputElement[\"autocomplete\"] = \"on\";\n\n /**\n * Sets the input mode of the field for asking browser to show the desired keyboard.\n */\n @property({ type: String, reflect: true })\n inputmode: HTMLInputElement[\"inputMode\"];\n\n /**\n * Sets input to get keyboard focus automatically\n */\n @property({ type: Boolean, reflect: true })\n autofocus = false;\n\n /**\n * Sets the custom icon name. `bl-icon` component is used to show an icon\n */\n @property({ type: String, reflect: true })\n icon?: BaklavaIcon;\n\n /**\n * Sets input size.\n */\n @property({ type: String, reflect: true })\n size?: InputSize = \"medium\";\n\n /**\n * Disables the input\n */\n @property({ type: Boolean, reflect: true })\n disabled = false;\n\n /**\n * Makes the input readonly.\n */\n @property({ type: Boolean, reflect: true })\n readonly = false;\n\n /**\n * Makes label as fixed positioned\n */\n @property({ type: Boolean, attribute: \"label-fixed\", reflect: true })\n labelFixed = false;\n\n /**\n * Overrides error message. This message will override default error messages\n * @deprecated use setCustomValidity instead\n */\n @property({ type: String, attribute: \"invalid-text\", reflect: true })\n set customInvalidText(value: string) {\n this._customInvalidText = value;\n this.setValue(this.value);\n }\n\n /**\n * @deprecated\n */\n get customInvalidText(): string {\n return this._customInvalidText;\n }\n\n @property({ reflect: true, type: String })\n error: string;\n\n private _customInvalidText: string;\n\n /**\n * Adds help text\n */\n @property({ type: String, attribute: \"help-text\", reflect: true })\n helpText?: string;\n\n /**\n * Fires when an alteration to the element's value is committed by the user. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.\n */\n @event(\"bl-change\") private onChange: EventDispatcher<string>;\n\n /**\n * Fires when the value of an input element has been changed.\n */\n @event(\"bl-input\") private onInput: EventDispatcher<string>;\n\n /**\n * Fires when the value of an input element has been changed.\n */\n @event(\"bl-invalid\") private onInvalid: EventDispatcher<ValidityState>;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.addEventListener(\"keydown\", this.onKeydown);\n\n this.form?.addEventListener(\"submit\", () => {\n this.reportValidity();\n });\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener(\"keydown\", this.onKeydown);\n }\n\n private onKeydown = (event: KeyboardEvent): void => {\n if (event.code === \"Enter\" && this.form) {\n setTimeout(() => {\n if (!event.defaultPrevented) {\n submit(this.form);\n }\n });\n }\n };\n\n @state() private dirty = false;\n\n @state() private passwordVisible = false;\n\n private textVisibilityToggle() {\n this.passwordVisible = !this.passwordVisible;\n }\n\n private async handleSearchClear() {\n this.value = \"\";\n this.setValue(this.value);\n this.onInput(this.value);\n\n await this.clearCustomError();\n this.validationTarget.focus();\n }\n\n showPicker() {\n if (\"showPicker\" in HTMLInputElement.prototype) {\n this.validationTarget.showPicker();\n }\n }\n\n validityCallback(): string | void {\n this.onInvalid(this.internals.validity);\n return this.customInvalidText || this.validationTarget?.validationMessage;\n }\n\n /**\n * Sets a custom validity on the form element.\n * @param message\n */\n setCustomValidity(message: string) {\n this.validationTarget.setCustomValidity(message);\n }\n\n /**\n * Force to set input as in invalid state.\n * @deprecated use error attribute instead\n */\n async forceCustomError() {\n await this.updateComplete;\n this.setCustomValidity(\n this.customInvalidText ||\n msg(\"An error occurred\", { desc: \"bl-input: default custom error message\" })\n );\n this.setValue(this.value);\n this.reportValidity();\n }\n\n /**\n * Clear forced invalid state\n * @deprecated use error attribute instead\n */\n async clearCustomError() {\n await this.updateComplete;\n this.setCustomValidity(\"\");\n this.setValue(this.value);\n this.reportValidity();\n }\n\n reportValidity() {\n this.dirty = true;\n this.requestUpdate();\n return this.checkValidity();\n }\n\n private inputHandler(event: Event) {\n const value = (event.target as HTMLInputElement).value;\n\n this.value = value;\n this.setValue(this.value);\n this.onInput(value);\n }\n\n private changeHandler(event: Event) {\n const value = (event.target as HTMLInputElement).value;\n\n this.dirty = true;\n this.value = value;\n this.setValue(this.value);\n this.onChange(value);\n }\n\n firstUpdated() {\n this.setValue(this.value);\n if (!this.icon) this.icon = inputTypeIcons[this.type];\n }\n\n protected async updated(changedProperties: PropertyValues) {\n if (changedProperties.size > 0) {\n this.setValue(this.value);\n\n await this.validationComplete;\n\n this.requestUpdate();\n }\n\n if (changedProperties.has(\"error\") && this.error && !this.dirty) {\n this.reportValidity();\n }\n }\n\n private inputId = Math.random().toString(36).substring(2);\n\n private get _hasIconSlot() {\n return this.querySelector(':scope > [slot=\"icon\"]') !== null;\n }\n\n render(): TemplateResult {\n const invalidMessage = !this.checkValidity()\n ? html`<p id=\"errorMessage\" aria-live=\"polite\" class=\"invalid-text\">\n ${this.validationMessage}\n </p>`\n : \"\";\n const helpMessage = this.helpText\n ? html`<p id=\"helpText\" class=\"help-text\">${this.helpText}</p>`\n : \"\";\n\n const icon = html`\n <slot name=\"icon\">\n ${this.loading && this.type === \"search\" && this.value !== \"\" && this.value !== null\n ? html`<bl-spinner></bl-spinner>`\n : this.icon\n ? html`<bl-icon name=\"${this.icon}\"></bl-icon>`\n : html`<bl-icon class=\"error-icon\" name=\"alert\"></bl-icon>`}\n </slot>\n `;\n\n const label = this.label ? html`<label for=${this.inputId}>${this.label}</label>` : \"\";\n const passwordInput = this.type === \"password\";\n\n const revealButton = passwordInput\n ? html`<bl-button\n size=\"small\"\n kind=\"neutral\"\n variant=\"tertiary\"\n class=\"${classMap({\n \"reveal-button\": true,\n \"password-visible\": this.passwordVisible,\n })}\"\n aria-label=\"Toggle password reveal\"\n @bl-click=\"${this.textVisibilityToggle}\"\n >\n <bl-icon class=\"reveal-icon\" slot=\"icon\" name=\"eye_on\"></bl-icon>\n <bl-icon class=\"reveal-icon\" slot=\"icon\" name=\"eye_off\"></bl-icon>\n </bl-button>`\n : \"\";\n\n const clearSearchButton =\n this.type === \"search\" && this.value !== \"\" && this.value !== null\n ? html`\n <bl-button\n size=\"small\"\n kind=\"neutral\"\n variant=\"tertiary\"\n aria-label=\"Clear search\"\n icon=\"close\"\n @bl-click=${this.handleSearchClear}\n >\n </bl-button>\n <div class=\"split-divider\"></div>\n `\n : \"\";\n\n const hasCustomIcon = this.icon || this._hasIconSlot;\n const classes = {\n \"wrapper\": true,\n \"dirty\": this.dirty,\n \"invalid\": !this.checkValidity(),\n \"has-icon\": passwordInput || hasCustomIcon || (this.dirty && !this.checkValidity()),\n \"has-value\": this.value !== null && this.value !== \"\",\n };\n\n const passwordType = this.passwordVisible ? \"text\" : \"password\";\n const inputType = passwordInput ? passwordType : this.type;\n\n return html`<div class=${classMap(classes)}>\n ${label}\n <fieldset class=\"input-wrapper\">\n <legend><span>${this.label}</span></legend>\n <input\n id=${this.inputId}\n type=${inputType}\n .value=${live(this.value)}\n inputmode=\"${ifDefined(this.inputmode)}\"\n ?autofocus=${this.autofocus}\n .autocomplete=\"${this.autocomplete}\"\n placeholder=\"${ifDefined(this.placeholder)}\"\n minlength=\"${ifDefined(this.minlength)}\"\n maxlength=\"${ifDefined(this.maxlength)}\"\n min=\"${ifDefined(this.min)}\"\n max=\"${ifDefined(this.max)}\"\n pattern=\"${ifDefined(this.pattern)}\"\n step=\"${ifDefined(this.step)}\"\n ?required=${this.required}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n @change=${this.changeHandler}\n @input=${this.inputHandler}\n aria-invalid=${this.checkValidity() ? \"false\" : \"true\"}\n aria-describedby=${ifDefined(this.helpText ? \"helpText\" : undefined)}\n aria-errormessage=${ifDefined(this.checkValidity() ? undefined : \"errorMessage\")}\n />\n <div class=\"icon\">${revealButton} ${clearSearchButton} ${icon}</div>\n </fieldset>\n <div class=\"hint\">${invalidMessage} ${helpMessage}</div>\n </div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bl-input\": BlInput;\n }\n}\n"],
5
- "mappings": "6dACO,IAA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GAAM,KAAM,MAAO,CAAC,GA1JtB5B,EA2JnB,qBAQA0B,EAAA,CADCE,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,QAAS,EAAK,CAAC,GAlK9C5B,EAmKnB,wBAK4B0B,EAAA,CAA3BvB,EAAM,WAAW,GAxKCH,EAwKS,wBAKD0B,EAAA,CAA1BvB,EAAM,UAAU,GA7KEH,EA6KQ,uBAKE0B,EAAA,CAA5BvB,EAAM,YAAY,GAlLAH,EAkLU,yBA0BZ0B,EAAA,CAAhBG,EAAM,GA5MY7B,EA4MF,qBAEA0B,EAAA,CAAhBG,EAAM,GA9MY7B,EA8MF,+BA9MEA,EAArB0B,EAAA,CAFCE,EAAc,UAAU,EACxBE,EAAU,GACU9B",
6
- "names": ["styles", "i", "bl_input_default", "inputTypeIcons", "BlInput", "FormControlMixin", "s", "event", "submit", "bl_input_default", "value", "_a", "message", "msg", "changedProperties", "invalidMessage", "x", "helpMessage", "icon", "label", "passwordInput", "revealButton", "o", "clearSearchButton", "hasCustomIcon", "classes", "passwordType", "inputType", "l", "innerInputValidators", "__decorateClass", "i", "e", "t", "localized"]
7
- }
@@ -1,2 +0,0 @@
1
- var k=Object.create,i=Object.freeze,f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty;var p=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,d)=>(typeof require<"u"?require:b)[d]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+a+'" is not supported')});var q=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var o=(a,b,d,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let c of l(b))!n.call(a,c)&&c!==d&&f(a,c,{get:()=>b[c],enumerable:!(e=j(b,c))||e.enumerable});return a};var r=(a,b,d)=>(d=a!=null?k(m(a)):{},o(b||!a||!a.__esModule?f(d,"default",{value:a,enumerable:!0}):d,a));var s=(a,b,d,e)=>{for(var c=e>1?void 0:e?j(b,d):b,g=a.length-1,h;g>=0;g--)(h=a[g])&&(c=(e?h(b,d,c):h(c))||c);return e&&c&&f(b,d,c),c};var t=(a,b)=>i(f(a,"raw",{value:i(b||a.slice())}));export{p as a,q as b,r as c,s as d,t as e};
2
- //# sourceMappingURL=chunk-BWWXE4SL.js.map
@@ -1,53 +0,0 @@
1
- import{a as f}from"./chunk-IEFQ6PGY.js";import{a as g}from"./chunk-GRL4DWKG.js";import{a as b,b as s,c,e as _}from"./chunk-5MOOXA2X.js";import{a as v,b as p}from"./chunk-4OT5AMS5.js";import{d as n}from"./chunk-BWWXE4SL.js";var D=v`:host{width:314px;display:block}.datepicker-content{--bl-input-cursor:pointer;--icon-size:var(--line-height);--icon-color:var(--bl-color-neutral-light);width:100%;position:relative;display:grid}.datepicker-input{width:var(--bl-datepicker-input-width,auto);white-space:nowrap;text-overflow:ellipsis}.icon-container{display:flex;gap:var(--bl-size-3xs);align-items:center}.calendar-icon{display:flex;align-items:center;gap:var(--icon-gap);flex-basis:var(--icon-size);align-self:center;margin-right:var(--label-padding);font-size:var(--icon-size);color:var(--icon-color);height:var(--icon-size)}.action-divider{display:block;height:var(--bl-size-m);width:1px;background-color:var(--bl-color-neutral-lighter);margin-right:var(--bl-size-3xs)}bl-popover{--bl-popover-padding:0;--bl-popover-background-color:transparent}`,E=D;var i=class extends f{constructor(){super(...arguments);this.size="medium";this.labelFixed=!1;this.valueFormatter=null;this._inputValue="";this._floatingDateCount=0;this._fittingDateCount=0}static get styles(){return[E]}defaultInputValueFormatter(){var t,e,l,o,a,r,d,h;if(this.type==="single")this._inputValue=this.formatDate((t=this._calendarEl)==null?void 0:t._dates[0]),this.closePopoverWithTimeout();else if(this.type==="multiple"){this.setFloatingDates();let u=(e=this._calendarEl)==null?void 0:e._dates.slice(0,this._fittingDateCount).map(m=>this.formatDate(m));this._inputValue=u.join(",")+(this._floatingDateCount>0?" ,...":"")}else this.type==="range"&&((l=this._calendarEl)!=null&&l._dates[0]&&(this._inputValue=this.formatDate((o=this._calendarEl)==null?void 0:o._dates[0])),(a=this._calendarEl)!=null&&a._dates[1]&&(this._inputValue=`${this._inputValue}-${this.formatDate((r=this._calendarEl)==null?void 0:r._dates[1])}`),(d=this._calendarEl)!=null&&d._dates[0]&&((h=this._calendarEl)!=null&&h._dates[1])&&this.closePopoverWithTimeout())}closePopoverWithTimeout(){setTimeout(()=>{this.closePopover(),this._inputEl.blur()},200)}setFloatingDates(){var o,a,r;let t=(o=this.shadowRoot)==null?void 0:o.getElementById("datepicker-input"),e=(a=this.shadowRoot)==null?void 0:a.getElementById("icon-container"),l=t.offsetWidth-e.offsetWidth;this._fittingDateCount=Math.floor(l/90),this._floatingDateCount=((r=this._calendarEl)==null?void 0:r._dates.length)-this._fittingDateCount}setDatePickerInput(){var t,e;(t=this._calendarEl)!=null&&t._dates.length?this.valueFormatter?this._inputValue=this.valueFormatter((e=this._calendarEl)==null?void 0:e._dates):this.defaultInputValueFormatter():this._inputValue=""}formatDate(t){return this.monthYearOnly?`${String((t==null?void 0:t.getMonth())+1).padStart(2,"0")}/${t==null?void 0:t.getFullYear()}`:`${String(t==null?void 0:t.getDate()).padStart(2,"0")}/${String((t==null?void 0:t.getMonth())+1).padStart(2,"0")}/${t==null?void 0:t.getFullYear()}`}clearDatepicker(){this._calendarEl.handleClearSelectedDates(),this._inputValue="",this._floatingDateCount=0}openPopover(){this._popoverEl.target=this._inputEl,this._popoverEl.show()}closePopover(){this._popoverEl.hide()}_togglePopover(){this._popoverEl.visible?this.closePopover():this.openPopover()}formatAdditionalDates(t){let e=t.split(",");return e==null?void 0:e.reduce((l,o,a)=>(a>0&&a%3===0&&l.push(p`<br />`),l.push(p`<span>${o.trim()}${a<e.length-1?", ":""}</span>`),l),[])}async firstUpdated(){var t,e,l;this._onCalendarMouseDown=o=>{var a;o.preventDefault(),(a=this._inputEl)==null||a.focus()},this._onInputMouseDown=o=>{var a;o.preventDefault(),(a=this._inputEl)==null||a.focus()},(t=this._calendarEl)==null||t.addEventListener("mousedown",this._onCalendarMouseDown),(e=this._inputEl)==null||e.addEventListener("mousedown",this._onInputMouseDown),(l=this._calendarEl)!=null&&l._dates&&this.setDatePickerInput()}onCalendarChange(){var t;this.setDatePickerInput(),this._onBlDatepickerChange((t=this._calendarEl)==null?void 0:t._dates)}disconnectedCallback(){var t,e;super.disconnectedCallback(),(t=this._calendarEl)==null||t.removeEventListener("mousedown",this._onCalendarMouseDown),(e=this._inputEl)==null||e.removeEventListener("mousedown",this._onInputMouseDown)}render(){var r,d,h,u;let t=p`
2
- <bl-popover target="datepicker-content" placement="bottom-start">
3
- <bl-calendar
4
- type=${this.type}
5
- .minDate=${this.minDate}
6
- .maxDate=${this.maxDate}
7
- .startOfWeek=${this.startOfWeek}
8
- .disabledDates=${this.disabledDates}
9
- .value=${this.value}
10
- .locale=${this.locale}
11
- .dayRenderer=${this.dayRenderer}
12
- ?month-year-only=${this.monthYearOnly}
13
- @bl-calendar-change="${this.onCalendarChange}"
14
- ></bl-calendar>
15
- </bl-popover>
16
- `,e=(h=(d=(r=this._calendarEl)==null?void 0:r._dates)==null?void 0:d.slice(this._fittingDateCount).map(m=>this.formatDate(m)).join(","))!=null?h:"",l=this.formatAdditionalDates(e),o=this._floatingDateCount>0?p` <bl-tooltip>
17
- <span slot="tooltip-trigger">+${this._floatingDateCount}</span>
18
- <div>${l}</div>
19
- </bl-tooltip>`:"",a=((u=this._calendarEl)==null?void 0:u._dates.length)>0?p` <bl-button
20
- size="small"
21
- variant="tertiary"
22
- kind="neutral"
23
- icon="close"
24
- @click=${this.clearDatepicker}
25
- ?disabled=${this.disabled}
26
- ></bl-button>
27
- <div class="action-divider"></div>`:"";return p`
28
- <div class="datepicker-content" id="datepicker-content" tabindex="-1">
29
- <bl-input
30
- .value="${this._inputValue}"
31
- .label="${this.label}"
32
- placeholder="${this.placeholder}"
33
- class="datepicker-input"
34
- role="button"
35
- id="datepicker-input"
36
- aria-haspopup="listbox"
37
- aria-labelledby="label"
38
- @click=${this._togglePopover}
39
- help-text=${this.helpText}
40
- ?disabled=${this.disabled}
41
- .size=${this.size}
42
- .labelFixed=${this.labelFixed}
43
- readonly
44
- >
45
- <div slot="icon" class="icon-container" id="icon-container">
46
- ${o} ${a}
47
- <bl-icon name="calendar" size="small" class="calendar-icon"></bl-icon>
48
- </div>
49
- </bl-input>
50
- ${t}
51
- </div>
52
- `}};n([s({type:String,attribute:"placeholder",reflect:!0})],i.prototype,"placeholder",2),n([s({type:String,reflect:!0})],i.prototype,"size",2),n([s({type:Boolean,attribute:"label-fixed",reflect:!0})],i.prototype,"labelFixed",2),n([s({type:String,attribute:"label",reflect:!0})],i.prototype,"label",2),n([s({type:Function,attribute:"value-formatter"})],i.prototype,"valueFormatter",2),n([s({type:Boolean})],i.prototype,"disabled",2),n([s({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),n([s({attribute:!1})],i.prototype,"dayRenderer",2),n([c()],i.prototype,"_inputValue",2),n([c()],i.prototype,"_floatingDateCount",2),n([c()],i.prototype,"_fittingDateCount",2),n([_("bl-calendar")],i.prototype,"_calendarEl",2),n([_("bl-popover")],i.prototype,"_popoverEl",2),n([_("bl-input")],i.prototype,"_inputEl",2),n([g("bl-datepicker-change")],i.prototype,"_onBlDatepickerChange",2),i=n([b("bl-datepicker")],i);export{i as a};
53
- //# sourceMappingURL=chunk-C2UDBDKV.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/components/datepicker/bl-datepicker.css", "../src/components/datepicker/bl-datepicker.ts"],
4
- "sourcesContent": ["import {css} from 'lit';\nexport const styles = css`:host{width:314px;display:block}.datepicker-content{--bl-input-cursor:pointer;--icon-size:var(--line-height);--icon-color:var(--bl-color-neutral-light);width:100%;position:relative;display:grid}.datepicker-input{width:var(--bl-datepicker-input-width,auto);white-space:nowrap;text-overflow:ellipsis}.icon-container{display:flex;gap:var(--bl-size-3xs);align-items:center}.calendar-icon{display:flex;align-items:center;gap:var(--icon-gap);flex-basis:var(--icon-size);align-self:center;margin-right:var(--label-padding);font-size:var(--icon-size);color:var(--icon-color);height:var(--icon-size)}.action-divider{display:block;height:var(--bl-size-m);width:1px;background-color:var(--bl-color-neutral-lighter);margin-right:var(--bl-size-3xs)}bl-popover{--bl-popover-padding:0;--bl-popover-background-color:transparent}`;\nexport default styles;\n", "import { CSSResultGroup, html, TemplateResult } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { BlCalendar, BlPopover } from \"../../baklava\";\nimport DatepickerCalendarMixin from \"../../mixins/datepicker-calendar-mixin/datepicker-calendar-mixin\";\nimport { event, EventDispatcher } from \"../../utilities/event\";\nimport \"../calendar/bl-calendar\";\nimport { CALENDAR_TYPES } from \"../calendar/bl-calendar.constant\";\nimport \"../input/bl-input\";\nimport BlInput, { InputSize } from \"../input/bl-input\";\nimport \"../tooltip/bl-tooltip\";\nimport style from \"./bl-datepicker.css\";\n\n/**\n * @tag bl-datepicker\n * @summary Baklava DatePicker component\n *\n * @cssproperty [--bl-datepicker-input-width] - Sets the width of datepicker input\n **/\n@customElement(\"bl-datepicker\")\nexport default class BlDatepicker extends DatepickerCalendarMixin {\n /**\n * Defines the datepicker input placeholder\n */\n @property({ type: String, attribute: \"placeholder\", reflect: true })\n placeholder: string;\n /**\n * Sets input size.\n */\n @property({ type: String, reflect: true })\n size?: InputSize = \"medium\";\n\n /**\n * Makes datepicker input label as fixed positioned\n */\n @property({ type: Boolean, attribute: \"label-fixed\", reflect: true })\n labelFixed = false;\n /**\n * Defines the datepicker input label\n */\n @property({ type: String, attribute: \"label\", reflect: true })\n label: string;\n /**\n * Defines the custom formatter function\n */\n @property({ type: Function, attribute: \"value-formatter\" })\n valueFormatter: ((dates: Date[]) => string) | null = null;\n /**\n * Sets datepicker to disabled\n */\n @property({ type: Boolean })\n disabled: boolean;\n /**\n * Defines help text to datepicker input for users\n */\n @property({ type: String, attribute: \"help-text\", reflect: true })\n helpText: string;\n\n /**\n * Custom function to render day cells in the calendar.\n * It receives the date as an argument and should return a TemplateResult.\n */\n @property({ attribute: false })\n dayRenderer?: (date: Date) => TemplateResult;\n\n @state()\n _inputValue = \"\";\n\n @state()\n _floatingDateCount: number = 0;\n\n @state()\n _fittingDateCount: number = 0;\n\n @query(\"bl-calendar\")\n _calendarEl: BlCalendar;\n\n @query(\"bl-popover\")\n _popoverEl: BlPopover;\n\n @query(\"bl-input\")\n _inputEl!: BlInput;\n\n private _onCalendarMouseDown!: (event: MouseEvent) => void;\n private _onInputMouseDown!: (event: MouseEvent) => void;\n\n /**\n * Fires when date selection is changed\n */\n @event(\"bl-datepicker-change\") private _onBlDatepickerChange: EventDispatcher<Date[]>;\n\n static get styles(): CSSResultGroup {\n return [style];\n }\n\n defaultInputValueFormatter() {\n if (this.type === CALENDAR_TYPES.SINGLE) {\n this._inputValue = this.formatDate(this._calendarEl?._dates[0]);\n this.closePopoverWithTimeout();\n } else if (this.type === CALENDAR_TYPES.MULTIPLE) {\n this.setFloatingDates();\n const values = this._calendarEl?._dates\n .slice(0, this._fittingDateCount)\n .map(date => this.formatDate(date));\n\n this._inputValue = values.join(\",\") + (this._floatingDateCount > 0 ? \" ,...\" : \"\");\n } else if (this.type === CALENDAR_TYPES.RANGE) {\n if (this._calendarEl?._dates[0])\n this._inputValue = this.formatDate(this._calendarEl?._dates[0]);\n if (this._calendarEl?._dates[1])\n this._inputValue = `${this._inputValue}-${this.formatDate(this._calendarEl?._dates[1])}`;\n if (this._calendarEl?._dates[0] && this._calendarEl?._dates[1])\n this.closePopoverWithTimeout();\n }\n }\n\n closePopoverWithTimeout() {\n setTimeout(() => {\n this.closePopover();\n this._inputEl.blur();\n }, 200);\n }\n\n setFloatingDates() {\n const datepickerInput = this.shadowRoot?.getElementById(\"datepicker-input\");\n const iconsContainer = this.shadowRoot?.getElementById(\"icon-container\");\n const datesTextTotalWidth = datepickerInput!.offsetWidth! - iconsContainer!.offsetWidth!;\n\n this._fittingDateCount = Math.floor(datesTextTotalWidth / 90);\n\n this._floatingDateCount = this._calendarEl?._dates.length - this._fittingDateCount;\n }\n\n setDatePickerInput() {\n if (!this._calendarEl?._dates.length) {\n this._inputValue = \"\";\n } else {\n if (this.valueFormatter) {\n this._inputValue = this.valueFormatter(this._calendarEl?._dates);\n } else {\n this.defaultInputValueFormatter();\n }\n }\n }\n\n formatDate(date: Date): string {\n if (this.monthYearOnly) {\n return `${String(date?.getMonth() + 1).padStart(2, \"0\")}/${date?.getFullYear()}`;\n }\n return `${String(date?.getDate()).padStart(2, \"0\")}/${String(date?.getMonth() + 1).padStart(\n 2,\n \"0\"\n )}/${date?.getFullYear()}`;\n }\n\n clearDatepicker() {\n this._calendarEl.handleClearSelectedDates();\n this._inputValue = \"\";\n this._floatingDateCount = 0;\n }\n\n openPopover() {\n this._popoverEl.target = this._inputEl;\n this._popoverEl.show();\n }\n\n closePopover() {\n this._popoverEl.hide();\n }\n\n _togglePopover() {\n this._popoverEl.visible ? this.closePopover() : this.openPopover();\n }\n\n formatAdditionalDates(str: string): TemplateResult[] {\n const parts = str.split(\",\");\n\n return parts?.reduce<TemplateResult[]>((acc, part, index) => {\n if (index > 0 && index % 3 === 0) {\n acc.push(html`<br />`);\n }\n acc.push(html`<span>${part.trim()}${index < parts.length - 1 ? \", \" : \"\"}</span>`);\n return acc;\n }, []);\n }\n\n async firstUpdated() {\n this._onCalendarMouseDown = event => {\n event.preventDefault();\n this._inputEl?.focus();\n };\n\n this._onInputMouseDown = event => {\n event.preventDefault();\n this._inputEl?.focus();\n };\n\n this._calendarEl?.addEventListener(\"mousedown\", this._onCalendarMouseDown);\n this._inputEl?.addEventListener(\"mousedown\", this._onInputMouseDown);\n\n if (this._calendarEl?._dates) {\n this.setDatePickerInput();\n }\n }\n\n onCalendarChange() {\n this.setDatePickerInput();\n this._onBlDatepickerChange(this._calendarEl?._dates);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this._calendarEl?.removeEventListener(\"mousedown\", this._onCalendarMouseDown);\n this._inputEl?.removeEventListener(\"mousedown\", this._onInputMouseDown);\n }\n\n render() {\n const renderCalendar = html`\n <bl-popover target=\"datepicker-content\" placement=\"bottom-start\">\n <bl-calendar\n type=${this.type}\n .minDate=${this.minDate}\n .maxDate=${this.maxDate}\n .startOfWeek=${this.startOfWeek}\n .disabledDates=${this.disabledDates}\n .value=${this.value}\n .locale=${this.locale}\n .dayRenderer=${this.dayRenderer}\n ?month-year-only=${this.monthYearOnly}\n @bl-calendar-change=\"${this.onCalendarChange}\"\n ></bl-calendar>\n </bl-popover>\n `;\n const additionalDates =\n this._calendarEl?._dates\n ?.slice(this._fittingDateCount)\n .map(date => {\n return this.formatDate(date);\n })\n .join(\",\") ?? \"\";\n\n const formattedAdditionalDates = this.formatAdditionalDates(additionalDates);\n\n const additionalDatesView =\n this._floatingDateCount > 0\n ? html` <bl-tooltip>\n <span slot=\"tooltip-trigger\">+${this._floatingDateCount}</span>\n <div>${formattedAdditionalDates}</div>\n </bl-tooltip>`\n : \"\";\n\n const clearDatepickerButton =\n this._calendarEl?._dates.length > 0\n ? html` <bl-button\n size=\"small\"\n variant=\"tertiary\"\n kind=\"neutral\"\n icon=\"close\"\n @click=${this.clearDatepicker}\n ?disabled=${this.disabled}\n ></bl-button>\n <div class=\"action-divider\"></div>`\n : \"\";\n\n return html`\n <div class=\"datepicker-content\" id=\"datepicker-content\" tabindex=\"-1\">\n <bl-input\n .value=\"${this._inputValue}\"\n .label=\"${this.label}\"\n placeholder=\"${this.placeholder}\"\n class=\"datepicker-input\"\n role=\"button\"\n id=\"datepicker-input\"\n aria-haspopup=\"listbox\"\n aria-labelledby=\"label\"\n @click=${this._togglePopover}\n help-text=${this.helpText}\n ?disabled=${this.disabled}\n .size=${this.size}\n .labelFixed=${this.labelFixed}\n readonly\n >\n <div slot=\"icon\" class=\"icon-container\" id=\"icon-container\">\n ${additionalDatesView} ${clearDatepickerButton}\n <bl-icon name=\"calendar\" size=\"small\"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AQ,CAAC,GA9BR7B,EA+BnB,wBAKA4B,EAAA,CADCC,EAAS,CAAE,KAAM,OAAQ,UAAW,YAAa,QAAS,EAAK,CAAC,GAnC9C7B,EAoCnB,wBAOA4B,EAAA,CADCC,EAAS,CAAE,UAAW,EAAM,CAAC,GA1CX7B,EA2CnB,2BAGA4B,EAAA,CADCE,EAAM,GA7CY9B,EA8CnB,2BAGA4B,EAAA,CADCE,EAAM,GAhDY9B,EAiDnB,kCAGA4B,EAAA,CADCE,EAAM,GAnDY9B,EAoDnB,iCAGA4B,EAAA,CADCG,EAAM,aAAa,GAtDD/B,EAuDnB,2BAGA4B,EAAA,CADCG,EAAM,YAAY,GAzDA/B,EA0DnB,0BAGA4B,EAAA,CADCG,EAAM,UAAU,GA5DE/B,EA6DnB,wBAQuC4B,EAAA,CAAtCN,EAAM,sBAAsB,GArEVtB,EAqEoB,qCArEpBA,EAArB4B,EAAA,CADCC,EAAc,eAAe,GACT7B",
6
- "names": ["styles", "i", "bl_datepicker_default", "BlDatepicker", "DatepickerCalendarMixin", "bl_datepicker_default", "_a", "_b", "_c", "_d", "_e", "_f", "_g", "_h", "values", "date", "datepickerInput", "iconsContainer", "datesTextTotalWidth", "str", "parts", "acc", "part", "index", "x", "event", "renderCalendar", "additionalDates", "formattedAdditionalDates", "additionalDatesView", "clearDatepickerButton", "__decorateClass", "e", "t", "i"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/utilities/style-to-px.converter.ts", "../src/components/drawer/bl-drawer.css", "../src/components/drawer/bl-drawer.ts"],
4
- "sourcesContent": ["export const styleToPixelConverter = (styleValue: string): number | null => {\n const match = styleValue.match(/^(\\d+(\\.\\d+)?)(.*)$/);\n\n if (!match) return null;\n\n const value = parseFloat(match[1]);\n const unit = match[3];\n\n let styleInPixel: number | null;\n\n switch (unit) {\n case \"px\":\n styleInPixel = value;\n break;\n case \"vw\":\n styleInPixel = (value * window.innerWidth) / 100;\n break;\n case \"%\":\n styleInPixel = (value * window.innerWidth) / 100;\n break;\n default:\n styleInPixel = null;\n break;\n }\n return styleInPixel;\n};\n", "import {css} from 'lit';\nexport const styles = css`.drawer{box-sizing:border-box;position:fixed;display:flex;top:0;bottom:0;inset-inline-end:0;width:var(--bl-drawer-current-width,424px);padding:var(--bl-size-xl);padding-top:max(env(safe-area-inset-top),var(--bl-size-xl));padding-inline-end:max(env(safe-area-inset-right),var(--bl-size-xl));padding-bottom:max(env(safe-area-inset-bottom),var(--bl-size-xl));background:var(--bl-color-neutral-full);box-shadow:var(--bl-size-xs) 0 var(--bl-size-2xl) rgba(0 0 0 / 50%);transition:right var(--bl-drawer-animation-duration, .25s);z-index:var(--bl-index-sticky)}iframe{height:100%;width:100%;border:none}.container{display:flex;flex-direction:column;gap:var(--bl-size-xl);flex:1;width:100%}header{display:flex;justify-content:space-between;align-items:baseline;gap:var(--bl-size-2xs);background-color:#fff}header .header-buttons{display:flex;gap:var(--bl-size-xl);margin-inline-start:auto}header h2{font:var(--bl-font-title-1-medium);color:var(--bl-color-neutral-darker);overflow:hidden;margin:0;padding:0}.content{flex:1;overflow-y:scroll}.iframe-content{flex:1}`;\nexport default styles;\n", "import { CSSResultGroup, html, LitElement, PropertyValues, TemplateResult } from \"lit\";\nimport { customElement, property, query, state } from \"lit/decorators.js\";\nimport { event, EventDispatcher } from \"../../utilities/event\";\nimport { styleToPixelConverter } from \"../../utilities/style-to-px.converter\";\nimport \"../button/bl-button\";\nimport style from \"./bl-drawer.css\";\n\n/**\n * @tag bl-drawer\n * @summary Baklava Drawer component\n *\n * @cssproperty [--bl-drawer-animation-duration=250ms] Drawer slide in animation duration\n */\n\n@customElement(\"bl-drawer\")\nexport default class BlDrawer extends LitElement {\n static get styles(): CSSResultGroup {\n return [style];\n }\n\n /**\n * Sets drawer open-close status\n */\n @property({ type: Boolean, reflect: true })\n open = false;\n\n /**\n * Sets the drawer title\n */\n @property({ type: String })\n caption?: string;\n\n /**\n * Sets the drawer embed url for iframe\n */\n @property({ type: String, attribute: \"embed-url\" })\n embedUrl?: string;\n\n /**\n * Sets the drawer external link\n */\n @property({ type: String, attribute: \"external-link\" })\n externalLink?: string;\n\n /**\n * Sets the drawer width\n */\n @property({ type: String, attribute: \"width\" })\n width: string = \"424px\";\n\n /**\n * Fires when the drawer is opened\n */\n @event(\"bl-drawer-open\") private onOpen: EventDispatcher<string>;\n\n /**\n * Fires when the drawer is closed\n */\n @event(\"bl-drawer-close\") private onClose: EventDispatcher<string>;\n\n @query(\"#drawer-iframe\")\n _drawerIframe: HTMLIFrameElement;\n\n connectedCallback() {\n super.connectedCallback();\n window?.addEventListener(\"bl-drawer-open\", event => {\n if (event.target !== this) this.closeDrawer();\n });\n this.resizeDrawerWidth();\n\n window?.addEventListener(\"resize\", () => this.resizeDrawerWidth());\n window?.addEventListener(\"load\", () => this.resizeDrawerWidth());\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n window?.removeEventListener(\"resize\", () => this.resizeDrawerWidth());\n window?.addEventListener(\"load\", () => this.resizeDrawerWidth());\n }\n\n updated(changedProperties: PropertyValues<this>) {\n if (changedProperties.has(\"open\")) {\n this.toggleDialogHandler();\n }\n\n if (changedProperties.has(\"width\")) {\n this.resizeDrawerWidth();\n }\n }\n\n private domExistenceSchedule: number;\n\n private resizeDrawerWidth() {\n const drawerWidth = styleToPixelConverter(this.width);\n\n const newWidth = !drawerWidth || drawerWidth < 100 ? \"424px\" : this.width;\n\n if (drawerWidth) {\n if (window?.innerWidth < drawerWidth) {\n this.style.setProperty(\"--bl-drawer-current-width\", \"calc(100vw - 24px)\");\n } else {\n this.style.setProperty(\"--bl-drawer-current-width\", newWidth);\n }\n }\n }\n\n private toggleDialogHandler() {\n if (this.open) {\n if (this.domExistenceSchedule) {\n clearTimeout(this.domExistenceSchedule);\n }\n this.domExistence = true;\n window.setTimeout(() => {\n if (this.embedUrl && this._drawerIframe) {\n this._drawerIframe.src = this.embedUrl;\n }\n });\n // FIXME: Allow events without payload\n this.onOpen(\"\");\n } else {\n // Give some time for exit animation\n this.domExistenceSchedule = window.setTimeout(() => {\n this.domExistence = false;\n }, 1000);\n\n // FIXME: Allow events without payload\n this.onClose(\"\");\n }\n }\n\n @state() private domExistence = false;\n\n private closeDrawer() {\n this.open = false;\n }\n\n private renderContent() {\n const content = this.embedUrl\n ? html`<iframe id=\"drawer-iframe\" src=${this.embedUrl}></iframe>`\n : html`<slot></slot>`;\n\n return html`<section class=${this.embedUrl ? \"iframe-content\" : \"content\"}>\n ${content}\n </section>`;\n }\n\n private renderContainer() {\n const title = this.caption ? html`<h2 id=\"drawer-caption\">${this.caption}</h2>` : \"\";\n const external_button = this.externalLink\n ? html`<bl-button\n icon=\"external_link\"\n variant=\"tertiary\"\n kind=\"neutral\"\n size=\"small\"\n href=\"${this.externalLink}\"\n target=\"_blank\"\n ></bl-button>`\n : \"\";\n\n return html`<div class=\"container\">\n <header>\n ${title}\n <div class=\"header-buttons\">\n ${external_button}\n <bl-button\n @click=\"${this.closeDrawer}\"\n icon=\"close\"\n label=\"close\"\n size=\"small\"\n variant=\"tertiary\"\n kind=\"neutral\"\n ></bl-button>\n </div>\n </header>\n ${this.renderContent()}\n </div>`;\n }\n\n render(): TemplateResult {\n if (this.domExistence) {\n return html`<div class=\"drawer\">${this.renderContainer()}</div>`;\n } else {\n return html``;\n }\n }\n}\ndeclare global {\n interface HTMLElementTagNameMap {\n \"bl-drawer\": BlDrawer;\n }\n}\n"],
5
- "mappings": "mMAAO,IAAMA,EAAyBC,GAAsC,CAC1E,IAAMC,EAAQD,EAAW,MAAM,qBAAqB,EAEpD,GAAI,CAACC,EAAO,OAAO,KAEnB,IAAMC,EAAQ,WAAWD,EAAM,CAAC,CAAC,EAC3BE,EAAOF,EAAM,CAAC,EAEhBG,EAEJ,OAAQD,EAAM,CACZ,IAAK,KACHC,EAAeF,EACf,MACF,IAAK,KACHE,EAAgBF,EAAQ,OAAO,WAAc,IAC7C,MACF,IAAK,IACHE,EAAgBF,EAAQ,O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BAnHEA,EAArBY,EAAA,CADCC,EAAc,WAAW,GACLb",
6
- "names": ["styleToPixelConverter", "styleValue", "match", "value", "unit", "styleInPixel", "styles", "i", "bl_drawer_default", "BlDrawer", "s", "bl_drawer_default", "event", "changedProperties", "drawerWidth", "styleToPixelConverter", "newWidth", "content", "x", "title", "external_button", "__decorateClass", "e", "i", "t"]
7
- }
@@ -1,2 +0,0 @@
1
- var D=Math.min,O=Math.max,tt=Math.round,et=Math.floor,Y=t=>({x:t,y:t}),Mt={left:"right",right:"left",bottom:"top",top:"bottom"},Bt={start:"end",end:"start"};function st(t,e,n){return O(t,D(e,n))}function $(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function _(t){return t.split("-")[1]}function dt(t){return t==="x"?"y":"x"}function rt(t){return t==="y"?"height":"width"}function q(t){return["top","bottom"].includes(F(t))?"y":"x"}function ct(t){return dt(q(t))}function ht(t,e,n){n===void 0&&(n=!1);let o=_(t),i=ct(t),s=rt(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=Z(r)),[r,Z(r)]}function pt(t){let e=Z(t);return[it(t),e,it(e)]}function it(t){return t.replace(/start|end/g,e=>Bt[e])}function Ft(t,e,n){let o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:r;default:return[]}}function xt(t,e,n,o){let i=_(t),s=Ft(F(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(it)))),s}function Z(t){return t.replace(/left|right|bottom|top/g,e=>Mt[e])}function Nt(t){return{top:0,right:0,bottom:0,left:0,...t}}function lt(t){return typeof t!="number"?Nt(t):{top:t,right:t,bottom:t,left:t}}function j(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function wt(t,e,n){let{reference:o,floating:i}=t,s=q(e),r=ct(e),l=rt(r),c=F(e),f=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2,a;switch(c){case"top":a={x:d,y:o.y-i.height};break;case"bottom":a={x:d,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:u};break;case"left":a={x:o.x-i.width,y:u};break;default:a={x:o.x,y:o.y}}switch(_(e)){case"start":a[r]-=h*(n&&f?-1:1);break;case"end":a[r]+=h*(n&&f?-1:1);break}return a}var yt=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),c=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=wt(f,o,c),h=o,a={},m=0;for(let g=0;g<l.length;g++){let{name:x,fn:p}=l[g],{x:w,y,data:A,reset:v}=await p({x:d,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:a,rects:f,platform:r,elements:{reference:t,floating:e}});if(d=w!=null?w:d,u=y!=null?y:u,a={...a,[x]:{...a[x],...A}},v&&m<=50){m++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:u}=wt(f,h,c)),g=-1;continue}}return{x:d,y:u,placement:h,strategy:i,middlewareData:a}};async function ft(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:a=0}=$(e,t),m=lt(a),x=l[h?u==="floating"?"reference":"floating":u],p=j(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:c})),w=u==="floating"?{...r.floating,x:o,y:i}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},v=j(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:y,strategy:c}):w);return{top:(p.top-v.top+m.top)/A.y,bottom:(v.bottom-p.bottom+m.bottom)/A.y,left:(p.left-v.left+m.left)/A.x,right:(v.right-p.right+m.right)/A.x}}var Wt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:l,middlewareData:c}=e,{element:f,padding:d=0}=$(t,e)||{};if(f==null)return{};let u=lt(d),h={x:n,y:o},a=ct(i),m=rt(a),g=await r.getDimensions(f),x=a==="y",p=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",A=s.reference[m]+s.reference[a]-h[a]-s.floating[m],v=h[a]-s.reference[a],b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),R=b?b[y]:0;(!R||!await(r.isElement==null?void 0:r.isElement(b)))&&(R=l.floating[y]||s.floating[m]);let M=A/2-v/2,W=R/2-g[m]/2-1,C=D(u[p],W),z=D(u[w],W),T=C,I=R-g[m]-z,E=R/2-g[m]/2+M,S=st(T,E,I),L=!c.arrow&&_(i)!=null&&E!=S&&s.reference[m]/2-(E<T?C:z)-g[m]/2<0,B=L?E<T?E-T:E-I:0;return{[a]:h[a]+B,data:{[a]:S,centerOffset:E-S-B,...L&&{alignmentOffset:B}},reset:L}}});var Ht=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:l,platform:c,elements:f}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=$(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let p=F(i),w=F(l)===l,y=await(c.isRTL==null?void 0:c.isRTL(f.floating)),A=h||(w||!g?[Z(l)]:pt(l));!h&&m!=="none"&&A.push(...xt(l,g,m,y));let v=[l,...A],b=await ft(e,x),R=[],M=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&R.push(b[p]),u){let T=ht(i,r,y);R.push(b[T[0]],b[T[1]])}if(M=[...M,{placement:i,overflows:R}],!R.every(T=>T<=0)){var W,C;let T=(((W=s.flip)==null?void 0:W.index)||0)+1,I=v[T];if(I)return{data:{index:T,overflows:M},reset:{placement:I}};let E=(C=M.filter(S=>S.overflows[0]<=0).sort((S,L)=>S.overflows[1]-L.overflows[1])[0])==null?void 0:C.placement;if(!E)switch(a){case"bestFit":{var z;let S=(z=M.map(L=>[L.placement,L.overflows.filter(B=>B>0).reduce((B,mt)=>B+mt,0)]).sort((L,B)=>L[1]-B[1])[0])==null?void 0:z[0];S&&(E=S);break}case"initialPlacement":E=l;break}if(i!==E)return{reset:{placement:E}}}return{}}}};function vt(t){let e=D(...t.map(s=>s.left)),n=D(...t.map(s=>s.top)),o=O(...t.map(s=>s.right)),i=O(...t.map(s=>s.bottom));return{x:e,y:n,width:o-e,height:i-n}}function Vt(t){let e=t.slice().sort((i,s)=>i.y-s.y),n=[],o=null;for(let i=0;i<e.length;i++){let s=e[i];!o||s.y-o.y>o.height/2?n.push([s]):n[n.length-1].push(s),o=s}return n.map(i=>j(vt(i)))}var zt=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:s,strategy:r}=e,{padding:l=2,x:c,y:f}=$(t,e),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),u=Vt(d),h=j(vt(d)),a=lt(l);function m(){if(u.length===2&&u[0].left>u[1].right&&c!=null&&f!=null)return u.find(x=>c>x.left-a.left&&c<x.right+a.right&&f>x.top-a.top&&f<x.bottom+a.bottom)||h;if(u.length>=2){if(q(n)==="y"){let C=u[0],z=u[u.length-1],T=F(n)==="top",I=C.top,E=z.bottom,S=T?C.left:z.left,L=T?C.right:z.right,B=L-S,mt=E-I;return{top:I,bottom:E,left:S,right:L,width:B,height:mt,x:S,y:I}}let x=F(n)==="left",p=O(...u.map(C=>C.right)),w=D(...u.map(C=>C.left)),y=u.filter(C=>x?C.left===w:C.right===p),A=y[0].top,v=y[y.length-1].bottom,b=w,R=p,M=R-b,W=v-A;return{top:A,bottom:v,left:b,right:R,width:M,height:W,x:b,y:A}}return h}let g=await s.getElementRects({reference:{getBoundingClientRect:m},floating:o.floating,strategy:r});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function It(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=F(n),l=_(n),c=q(n)==="y",f=["left","top"].includes(r)?-1:1,d=s&&c?-1:1,u=$(e,t),{mainAxis:h,crossAxis:a,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof m=="number"&&(a=l==="end"?m*-1:m),c?{x:a*d,y:h*f}:{x:h*f,y:a*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:n,y:o}=e,i=await It(e,t);return{x:n+i.x,y:o+i.y,data:i}}}},jt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:x=>{let{x:p,y:w}=x;return{x:p,y:w}}},...c}=$(t,e),f={x:n,y:o},d=await ft(e,c),u=q(F(i)),h=dt(u),a=f[h],m=f[u];if(s){let x=h==="y"?"top":"left",p=h==="y"?"bottom":"right",w=a+d[x],y=a-d[p];a=st(w,a,y)}if(r){let x=u==="y"?"top":"left",p=u==="y"?"bottom":"right",w=m+d[x],y=m-d[p];m=st(w,m,y)}let g=l.fn({...e,[h]:a,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o}}}}};var Xt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:n,rects:o,platform:i,elements:s}=e,{apply:r=()=>{},...l}=$(t,e),c=await ft(e,l),f=F(n),d=_(n),u=q(n)==="y",{width:h,height:a}=o.floating,m,g;f==="top"||f==="bottom"?(m=f,g=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,m=d==="end"?"top":"bottom");let x=a-c[m],p=h-c[g],w=!e.middlewareData.shift,y=x,A=p;if(u){let b=h-c.left-c.right;A=d||w?D(p,b):b}else{let b=a-c.top-c.bottom;y=d||w?D(x,b):b}if(w&&!d){let b=O(c.left,0),R=O(c.right,0),M=O(c.top,0),W=O(c.bottom,0);u?A=h-2*(b!==0||R!==0?b+R:O(c.left,c.right)):y=a-2*(M!==0||W!==0?M+W:O(c.top,c.bottom))}await r({...e,availableWidth:A,availableHeight:y});let v=await i.getDimensions(s.floating);return h!==v.width||a!==v.height?{reset:{rects:!0}}:{}}}};function X(t){return At(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(At(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function At(t){return t instanceof Node||t instanceof P(t).Node}function V(t){return t instanceof Element||t instanceof P(t).Element}function N(t){return t instanceof HTMLElement||t instanceof P(t).HTMLElement}function bt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}function J(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=k(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ot(t){return["table","td","th"].includes(X(t))}function at(t){let e=ut(),n=k(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Rt(t){let e=K(t);for(;N(e)&&!nt(e);){if(at(e))return e;e=K(e)}return null}function ut(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nt(t){return["html","body","#document"].includes(X(t))}function k(t){return P(t).getComputedStyle(t)}function ot(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if(X(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bt(t)&&t.host||H(t);return bt(e)?e.host:e}function Ct(t){let e=K(t);return nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&J(e)?e:Ct(e)}function G(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Ct(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=P(i);return s?e.concat(r,r.visualViewport||[],J(i)?i:[],r.frameElement&&n?G(r.frameElement):[]):e.concat(i,G(i,[],n))}function St(t){let e=k(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=N(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,l=tt(n)!==s||tt(o)!==r;return l&&(n=s,o=r),{width:n,height:o,$:l}}function gt(t){return V(t)?t:t.contextElement}function Q(t){let e=gt(t);if(!N(e))return Y(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=St(e),r=(s?tt(n.width):n.width)/o,l=(s?tt(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}var $t=Y(0);function Pt(t){let e=P(t);return!ut()||!e.visualViewport?$t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _t(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function U(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),s=gt(t),r=Y(1);e&&(o?V(o)&&(r=Q(o)):r=Q(t));let l=_t(s,n,o)?Pt(s):Y(0),c=(i.left+l.x)/r.x,f=(i.top+l.y)/r.y,d=i.width/r.x,u=i.height/r.y;if(s){let h=P(s),a=o&&V(o)?P(o):o,m=h.frameElement;for(;m&&o&&a!==h;){let g=Q(m),x=m.getBoundingClientRect(),p=k(m),w=x.left+(m.clientLeft+parseFloat(p.paddingLeft))*g.x,y=x.top+(m.clientTop+parseFloat(p.paddingTop))*g.y;c*=g.x,f*=g.y,d*=g.x,u*=g.y,c+=w,f+=y,m=P(m).frameElement}}return j({width:d,height:u,x:c,y:f})}function qt(t){let{rect:e,offsetParent:n,strategy:o}=t,i=N(n),s=H(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},l=Y(1),c=Y(0);if((i||!i&&o!=="fixed")&&((X(n)!=="body"||J(s))&&(r=ot(n)),N(n))){let f=U(n);l=Q(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-r.scrollLeft*l.x+c.x,y:e.y*l.y-r.scrollTop*l.y+c.y}}function Kt(t){return Array.from(t.getClientRects())}function Lt(t){return U(H(t)).left+ot(t).scrollLeft}function Ut(t){let e=H(t),n=ot(t),o=t.ownerDocument.body,i=O(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=O(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+Lt(t),l=-n.scrollTop;return k(o).direction==="rtl"&&(r+=O(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:l}}function Gt(t,e){let n=P(t),o=H(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;let f=ut();(!f||f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}function Jt(t,e){let n=U(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=N(t)?Q(t):Y(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,f=o*s.y;return{width:r,height:l,x:c,y:f}}function Et(t,e,n){let o;if(e==="viewport")o=Gt(t,n);else if(e==="document")o=Ut(H(t));else if(V(e))o=Jt(e,n);else{let i=Pt(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return j(o)}function Dt(t,e){let n=K(t);return n===e||!V(n)||nt(n)?!1:k(n).position==="fixed"||Dt(n,e)}function Qt(t,e){let n=e.get(t);if(n)return n;let o=G(t,[],!1).filter(l=>V(l)&&X(l)!=="body"),i=null,s=k(t).position==="fixed",r=s?K(t):t;for(;V(r)&&!nt(r);){let l=k(r),c=at(r);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||J(r)&&!c&&Dt(t,r))?o=o.filter(d=>d!==r):i=l,r=K(r)}return e.set(t,o),o}function Zt(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?Qt(e,this._c):[].concat(n),o],l=r[0],c=r.reduce((f,d)=>{let u=Et(e,d,i);return f.top=O(u.top,f.top),f.right=D(u.right,f.right),f.bottom=D(u.bottom,f.bottom),f.left=O(u.left,f.left),f},Et(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function te(t){return St(t)}function ee(t,e,n){let o=N(e),i=H(e),s=n==="fixed",r=U(t,!0,s,e),l={scrollLeft:0,scrollTop:0},c=Y(0);if(o||!o&&!s)if((X(e)!=="body"||J(i))&&(l=ot(e)),o){let f=U(e,!0,s,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else i&&(c.x=Lt(i));return{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function Tt(t,e){return!N(t)||k(t).position==="fixed"?null:e?e(t):t.offsetParent}function kt(t,e){let n=P(t);if(!N(t))return n;let o=Tt(t,e);for(;o&&Ot(o)&&k(o).position==="static";)o=Tt(o,e);return o&&(X(o)==="html"||X(o)==="body"&&k(o).position==="static"&&!at(o))?n:o||Rt(t)||n}var ne=async function(t){let{reference:e,floating:n,strategy:o}=t,i=this.getOffsetParent||kt,s=this.getDimensions;return{reference:ee(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function oe(t){return k(t).direction==="rtl"}var ie={convertOffsetParentRelativeRectToViewportRelativeRect:qt,getDocumentElement:H,getClippingRect:Zt,getOffsetParent:kt,getElementRects:ne,getClientRects:Kt,getDimensions:te,getScale:Q,isElement:V,isRTL:oe};function se(t,e){let n=null,o,i=H(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function r(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();let{left:f,top:d,width:u,height:h}=t.getBoundingClientRect();if(l||e(),!u||!h)return;let a=et(d),m=et(i.clientWidth-(f+u)),g=et(i.clientHeight-(d+h)),x=et(f),w={rootMargin:-a+"px "+-m+"px "+-g+"px "+-x+"px",threshold:O(0,D(1,c))||1},y=!0;function A(v){let b=v[0].intersectionRatio;if(b!==c){if(!y)return r();b?r(!1,b):o=setTimeout(()=>{r(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(A,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,w)}n.observe(t)}return r(!0),s}function ye(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,f=gt(t),d=i||s?[...f?G(f):[],...G(e)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),s&&p.addEventListener("resize",n)});let u=f&&l?se(f,n):null,h=-1,a=null;r&&(a=new ResizeObserver(p=>{let[w]=p;w&&w.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{a&&a.observe(e)})),n()}),f&&!c&&a.observe(f),a.observe(e));let m,g=c?U(t):null;c&&x();function x(){let p=U(t);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&n(),g=p,m=requestAnimationFrame(x)}return n(),()=>{d.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),u&&u(),a&&a.disconnect(),a=null,c&&cancelAnimationFrame(m)}}var ve=(t,e,n)=>{let o=new Map,i={platform:ie,...n},s={...i.platform,_c:o};return yt(t,e,{...i,platform:s})};export{Wt as a,Ht as b,zt as c,Yt as d,jt as e,Xt as f,ye as g,ve as h};
2
- //# sourceMappingURL=chunk-EZSEQHRH.js.map