bitboss-ui 0.1.76 → 0.1.78

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 (275) hide show
  1. package/dist/components/BaseTag/BaseTag.vue.d.ts +83 -0
  2. package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -1
  3. package/dist/components/BbTag/BbTag.vue.d.ts +64 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +119 -116
  6. package/dist/index.js.map +1 -1
  7. package/dist/index100.js +46 -41
  8. package/dist/index100.js.map +1 -1
  9. package/dist/index102.js +29 -31
  10. package/dist/index102.js.map +1 -1
  11. package/dist/index104.js +82 -22
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index106.js +22 -115
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index108.js +112 -90
  16. package/dist/index108.js.map +1 -1
  17. package/dist/index110.js +93 -39
  18. package/dist/index110.js.map +1 -1
  19. package/dist/index111.js +2 -38
  20. package/dist/index111.js.map +1 -1
  21. package/dist/index112.js +40 -40
  22. package/dist/index112.js.map +1 -1
  23. package/dist/index113.js +33 -42
  24. package/dist/index113.js.map +1 -1
  25. package/dist/index114.js +30 -29
  26. package/dist/index114.js.map +1 -1
  27. package/dist/index115.js +47 -2
  28. package/dist/index115.js.map +1 -1
  29. package/dist/index116.js +43 -21
  30. package/dist/index116.js.map +1 -1
  31. package/dist/index117.js +2 -2
  32. package/dist/index117.js.map +1 -1
  33. package/dist/index118.js +20 -9
  34. package/dist/index118.js.map +1 -1
  35. package/dist/index119.js +2 -18
  36. package/dist/index119.js.map +1 -1
  37. package/dist/index12.js +9 -9
  38. package/dist/index120.js +10 -13
  39. package/dist/index120.js.map +1 -1
  40. package/dist/index121.js +18 -2
  41. package/dist/index121.js.map +1 -1
  42. package/dist/index122.js +10 -221
  43. package/dist/index122.js.map +1 -1
  44. package/dist/index123.js +2 -3
  45. package/dist/index123.js.map +1 -1
  46. package/dist/index124.js +224 -3
  47. package/dist/index124.js.map +1 -1
  48. package/dist/index125.js +2 -2
  49. package/dist/index126.js +2 -2
  50. package/dist/index127.js +2 -2
  51. package/dist/index128.js +2 -2
  52. package/dist/index129.js +2 -2
  53. package/dist/index130.js +2 -2
  54. package/dist/index131.js +2 -2
  55. package/dist/index132.js +2 -2
  56. package/dist/index133.js +2 -2
  57. package/dist/index134.js +2 -2
  58. package/dist/index135.js +2 -2
  59. package/dist/index136.js +2 -2
  60. package/dist/index137.js +2 -2
  61. package/dist/index138.js +2 -2
  62. package/dist/index139.js +2 -2
  63. package/dist/index14.js +11 -11
  64. package/dist/index140.js +2 -2
  65. package/dist/index141.js +2 -2
  66. package/dist/index142.js +2 -2
  67. package/dist/index143.js +2 -2
  68. package/dist/index144.js +2 -2
  69. package/dist/index145.js +2 -2
  70. package/dist/index146.js +2 -2
  71. package/dist/index147.js +2 -2
  72. package/dist/index148.js +2 -2
  73. package/dist/index149.js +3 -2
  74. package/dist/index149.js.map +1 -1
  75. package/dist/index150.js +1 -1
  76. package/dist/index152.js +2 -2
  77. package/dist/index153.js +2 -3
  78. package/dist/index153.js.map +1 -1
  79. package/dist/index154.js +2 -2
  80. package/dist/index155.js +2 -2
  81. package/dist/index156.js +2 -2
  82. package/dist/index157.js +2 -2
  83. package/dist/index158.js +3 -2
  84. package/dist/index158.js.map +1 -1
  85. package/dist/index159.js +2 -2
  86. package/dist/index16.js +5 -5
  87. package/dist/index160.js +2 -2
  88. package/dist/index161.js +3 -2
  89. package/dist/index161.js.map +1 -1
  90. package/dist/index162.js +2 -3
  91. package/dist/index162.js.map +1 -1
  92. package/dist/index163.js +2 -3
  93. package/dist/index163.js.map +1 -1
  94. package/dist/index164.js +2 -2
  95. package/dist/index165.js +2 -2
  96. package/dist/index166.js +2 -2
  97. package/dist/index167.js +2 -2
  98. package/dist/index168.js +2 -2
  99. package/dist/index169.js +2 -2
  100. package/dist/index170.js +2 -2
  101. package/dist/index171.js +2 -2
  102. package/dist/index172.js +2 -2
  103. package/dist/index173.js +2 -2
  104. package/dist/index174.js +3 -2
  105. package/dist/index174.js.map +1 -1
  106. package/dist/index175.js +1 -1
  107. package/dist/index177.js +2 -2
  108. package/dist/index178.js +2 -3
  109. package/dist/index178.js.map +1 -1
  110. package/dist/index179.js +2 -2
  111. package/dist/index18.js +6 -6
  112. package/dist/index180.js +2 -2
  113. package/dist/index181.js +2 -2
  114. package/dist/index182.js +2 -2
  115. package/dist/index183.js +2 -2
  116. package/dist/index184.js +2 -2
  117. package/dist/index185.js +2 -2
  118. package/dist/index186.js +3 -2
  119. package/dist/index186.js.map +1 -1
  120. package/dist/index187.js +3 -350
  121. package/dist/index187.js.map +1 -1
  122. package/dist/index188.js +3 -134
  123. package/dist/index188.js.map +1 -1
  124. package/dist/index189.js +2 -5
  125. package/dist/index189.js.map +1 -1
  126. package/dist/index190.js +2 -19
  127. package/dist/index190.js.map +1 -1
  128. package/dist/index191.js +2 -2
  129. package/dist/index191.js.map +1 -1
  130. package/dist/index192.js +4 -2
  131. package/dist/index192.js.map +1 -1
  132. package/dist/index193.js +3 -186
  133. package/dist/index193.js.map +1 -1
  134. package/dist/index194.js +3 -23
  135. package/dist/index194.js.map +1 -1
  136. package/dist/index195.js +3 -331
  137. package/dist/index195.js.map +1 -1
  138. package/dist/index196.js +35 -2
  139. package/dist/index196.js.map +1 -1
  140. package/dist/index197.js +6 -3
  141. package/dist/index197.js.map +1 -1
  142. package/dist/index198.js +348 -33
  143. package/dist/index198.js.map +1 -1
  144. package/dist/index199.js +134 -6
  145. package/dist/index199.js.map +1 -1
  146. package/dist/index2.js +1 -1
  147. package/dist/index20.js +1 -1
  148. package/dist/index200.js +295 -2
  149. package/dist/index200.js.map +1 -1
  150. package/dist/index201.js +19 -4
  151. package/dist/index201.js.map +1 -1
  152. package/dist/index202.js +2 -2
  153. package/dist/index202.js.map +1 -1
  154. package/dist/index203.js +2 -16
  155. package/dist/index203.js.map +1 -1
  156. package/dist/index204.js +184 -14
  157. package/dist/index204.js.map +1 -1
  158. package/dist/index205.js +23 -20
  159. package/dist/index205.js.map +1 -1
  160. package/dist/index206.js +329 -27
  161. package/dist/index206.js.map +1 -1
  162. package/dist/index207.js +2 -8
  163. package/dist/index207.js.map +1 -1
  164. package/dist/index208.js +2 -3
  165. package/dist/index208.js.map +1 -1
  166. package/dist/index209.js +235 -3
  167. package/dist/index209.js.map +1 -1
  168. package/dist/index210.js +16 -2
  169. package/dist/index210.js.map +1 -1
  170. package/dist/index211.js +16 -235
  171. package/dist/index211.js.map +1 -1
  172. package/dist/index212.js +20 -9
  173. package/dist/index212.js.map +1 -1
  174. package/dist/index213.js +27 -94
  175. package/dist/index213.js.map +1 -1
  176. package/dist/index214.js +8 -28
  177. package/dist/index214.js.map +1 -1
  178. package/dist/index215.js +8 -12
  179. package/dist/index215.js.map +1 -1
  180. package/dist/index216.js +89 -72
  181. package/dist/index216.js.map +1 -1
  182. package/dist/index217.js +27 -5
  183. package/dist/index217.js.map +1 -1
  184. package/dist/index218.js +13 -2
  185. package/dist/index218.js.map +1 -1
  186. package/dist/index219.js +78 -294
  187. package/dist/index219.js.map +1 -1
  188. package/dist/index22.js +2 -2
  189. package/dist/index220.js +4 -2
  190. package/dist/index220.js.map +1 -1
  191. package/dist/index221.js +224 -2
  192. package/dist/index221.js.map +1 -1
  193. package/dist/index222.js +246 -105
  194. package/dist/index222.js.map +1 -1
  195. package/dist/index223.js +10 -105
  196. package/dist/index223.js.map +1 -1
  197. package/dist/index224.js +434 -10
  198. package/dist/index224.js.map +1 -1
  199. package/dist/index225.js +7 -433
  200. package/dist/index225.js.map +1 -1
  201. package/dist/index226.js +87 -7
  202. package/dist/index226.js.map +1 -1
  203. package/dist/index227.js +5 -88
  204. package/dist/index227.js.map +1 -1
  205. package/dist/index228.js +2 -4
  206. package/dist/index228.js.map +1 -1
  207. package/dist/index229.js +2 -200
  208. package/dist/index229.js.map +1 -1
  209. package/dist/index231.js +117 -2
  210. package/dist/index231.js.map +1 -1
  211. package/dist/index232.js +106 -2
  212. package/dist/index232.js.map +1 -1
  213. package/dist/index233.js +200 -2
  214. package/dist/index233.js.map +1 -1
  215. package/dist/index234.js +2 -9
  216. package/dist/index234.js.map +1 -1
  217. package/dist/index235.js +2 -6
  218. package/dist/index235.js.map +1 -1
  219. package/dist/index236.js +2 -224
  220. package/dist/index236.js.map +1 -1
  221. package/dist/index237.js +2 -258
  222. package/dist/index237.js.map +1 -1
  223. package/dist/index238.js +9 -2
  224. package/dist/index238.js.map +1 -1
  225. package/dist/index239.js +6 -69
  226. package/dist/index239.js.map +1 -1
  227. package/dist/index240.js +158 -36
  228. package/dist/index240.js.map +1 -1
  229. package/dist/index241.js +2 -2
  230. package/dist/index241.js.map +1 -1
  231. package/dist/index242.js +2 -2
  232. package/dist/index242.js.map +1 -1
  233. package/dist/index243.js +38 -2
  234. package/dist/index243.js.map +1 -1
  235. package/dist/index244.js +2 -2
  236. package/dist/index244.js.map +1 -1
  237. package/dist/index245.js +5 -0
  238. package/dist/index245.js.map +1 -0
  239. package/dist/index246.js +72 -0
  240. package/dist/index246.js.map +1 -0
  241. package/dist/index247.js +5 -0
  242. package/dist/index247.js.map +1 -0
  243. package/dist/index248.js +6 -0
  244. package/dist/index248.js.map +1 -0
  245. package/dist/index249.js +5 -0
  246. package/dist/index249.js.map +1 -0
  247. package/dist/index250.js +5 -0
  248. package/dist/index250.js.map +1 -0
  249. package/dist/index26.js +4 -4
  250. package/dist/index28.js +69 -70
  251. package/dist/index28.js.map +1 -1
  252. package/dist/index3.js +2 -2
  253. package/dist/index30.js +4 -4
  254. package/dist/index32.js +2 -2
  255. package/dist/index4.js +2 -2
  256. package/dist/index40.js +3 -3
  257. package/dist/index42.js +4 -4
  258. package/dist/index44.js +1 -1
  259. package/dist/index46.js +2 -2
  260. package/dist/index5.js +4 -4
  261. package/dist/index56.js +2 -2
  262. package/dist/index62.js +7 -7
  263. package/dist/index66.js +5 -5
  264. package/dist/index69.js +1 -1
  265. package/dist/index72.js +3 -3
  266. package/dist/index74.js +1 -1
  267. package/dist/index76.js +6 -6
  268. package/dist/index78.js +2 -2
  269. package/dist/index8.js +2 -2
  270. package/dist/index88.js +6 -8
  271. package/dist/index88.js.map +1 -1
  272. package/dist/index96.js +4 -4
  273. package/dist/index98.js +8 -8
  274. package/dist/style.css +1 -1
  275. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index100.js","sources":["../src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer, { BaseInputContainerSlots } from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseTextarea from \"../BaseTextarea/BaseTextarea.vue\";\nimport type { BaseTextareaEvents, BaseTextareaSlots } from \"../BaseTextarea/BaseTextarea.vue\";\nimport type { Simplify } from \"@/types/Simplify\";\n\nexport interface BbTextareaProps {\n autoGrow?: boolean;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: string | null;\n name?: string;\n placeholder?: string;\n readonly?: boolean;\n reverse?: boolean;\n}\n\nexport type BbTextareaEvents = BaseTextareaEvents;\nexport type BbTextareaSlots = Simplify<BaseTextareaSlots & Pick<BaseInputContainerSlots, 'label'>>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTextarea',\n props: {\n autoGrow: { type: Boolean },\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: string | null) =>\n emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-textarea\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTextarea, _mergeProps({\n autoGrow: _ctx.autoGrow,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly\n }, eventListeners), {\n \"append-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append-outer\")\n ]),\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n prepend: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend\")\n ]),\n \"prepend-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend-outer\")\n ]),\n _: 2\n }, 1040, [\"autoGrow\", \"autofocus\", \"disabled\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTextarea","_mergeProps"],"mappings":";;;;;AA6BA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,EAAE,MAAM,QAAQ;AAAA,EAC3B;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,SAAS,SAAS,WAAW,aAAa,WAAW,mBAAmB;AAAA,EAC3G,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAIxC,UAAMC,IAAOD,GAOPE,IAAiB;AAAA,MACrB,QAAQ,CAACC,MAAsBF,EAAK,QA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AA,QACjB,GAAGH,CAAc,GAAG;AAAA,UAClB,gBAAgBQ,EAAS,MAAM;AAAA,YAC7BE,EAAYP,EAAK,QAAQ,cAAc;AAAA,UAAA,CACxC;AAAA,UACD,QAAQK,EAAS,MAAM;AAAA,YACrBE,EAAYP,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,UACD,SAASK,EAAS,MAAM;AAAA,YACtBE,EAAYP,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,UACD,iBAAiBK,EAAS,MAAM;AAAA,YAC9BE,EAAYP,EAAK,QAAQ,eAAe;AAAA,UAAA,CACzC;AAAA,UACD,GAAG;AAAA,QACF,GAAA,MAAM,CAAC,YAAY,aAAa,YAAY,aAAa,MAAM,cAAc,QAAQ,eAAe,UAAU,CAAC;AAAA,MAAA,CACnH;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,SAAS,iBAAiB,cAAc,QAAQ,SAAS,CAAC;AAAA,EAE1H;AAEA,CAAC;"}
1
+ {"version":3,"file":"index100.js","sources":["../src/components/BbTag/BbTag.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { Simplify } from \"@/types/Simplify\";\nimport BaseInputContainer, {\n type BaseInputContainerSlots,\n type BaseInputContainerProps,\n} from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseTag, {\n type BaseTagProps,\n type BaseTagEvents,\n type BaseTagSlots,\n} from \"../BaseTag/BaseTag.vue\";\n\nexport type BbTagProps = Pick<\n BaseTagProps,\n | \"autofocus\"\n | \"comma\"\n | \"disabled\"\n | \"divider\"\n | \"id\"\n | \"modelValue\"\n | \"multiple\"\n | \"name\"\n | \"placeholder\"\n | \"readonly\"\n> &\n Pick<\n BaseInputContainerProps,\n | \"direction\"\n | \"errors\"\n | \"hasErrors\"\n | \"hideLabel\"\n | \"label\"\n | \"labelPosition\"\n | \"reverse\"\n >;\n\nexport type BbTagEvents = BaseTagEvents;\n\nexport type BbTagSlots = Simplify<\n BaseTagSlots & Pick<BaseInputContainerSlots, \"label\">\n>;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTag',\n props: {\n autofocus: {},\n comma: { type: Boolean },\n disabled: { type: Boolean },\n divider: {},\n id: {},\n modelValue: {},\n multiple: { type: Boolean, default: true },\n name: {},\n placeholder: {},\n readonly: {},\n direction: {},\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n label: {},\n labelPosition: {},\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"duplicate\", \"focus\", \"inactive\", \"input\", \"keydown\", \"keyup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onDuplicate: (string: string) => emit(\"duplicate\", string),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInactive: () => emit(\"inactive\"),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onKeyup: (event: KeyboardEvent) => emit(\"keyup\", event),\n \"onUpdate:modelValue\": (value: any) => emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-tag\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n \"has-errors\": _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTag, _mergeProps({\n autofocus: _ctx.autofocus,\n divider: _ctx.divider,\n comma: _ctx.comma,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n multiple: _ctx.multiple,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly\n }, eventListeners), {\n \"prepend-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n prepend: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"prepend\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n \"append-outer\": _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append-outer\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n append: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"append\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n _: 2\n }, 1040, [\"autofocus\", \"divider\", \"comma\", \"disabled\", \"hasErrors\", \"id\", \"modelValue\", \"multiple\", \"name\", \"placeholder\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"has-errors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","string","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTag","_mergeProps"],"mappings":";;;;;AA6CA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,CAAC;AAAA,IACZ,OAAO,EAAE,MAAM,QAAQ;AAA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,QAAQ,UAAUQ,EAAgBC,EAAoBH,CAAI,CAAC,CAAC;AAAA,UAAA,CAC9E;AAAA,UACD,GAAG;AAAA,QACF,GAAA,MAAM,CAAC,aAAa,WAAW,SAAS,YAAY,aAAa,MAAM,cAAc,YAAY,QAAQ,eAAe,UAAU,CAAC;AAAA,MAAA,CACvI;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,cAAc,aAAa,MAAM,SAAS,iBAAiB,cAAc,QAAQ,SAAS,CAAC;AAAA,EAE3H;AAEA,CAAC;"}
package/dist/index102.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as t, openBlock as u, createBlock as i, withCtx as l, renderSlot as r, normalizeProps as m, guardReactiveProps as b, createVNode as c, mergeProps as h } from "vue";
2
- import y from "./index18.js";
1
+ import { defineComponent as u, openBlock as i, createBlock as t, withCtx as r, renderSlot as a, normalizeProps as m, guardReactiveProps as b, createVNode as h, mergeProps as c } from "vue";
2
+ import f from "./index18.js";
3
3
  import "./index19.js";
4
- import f from "./index38.js";
5
- import "./index39.js";
6
- const g = /* @__PURE__ */ t({
7
- __name: "BbTextInput",
4
+ import y from "./index36.js";
5
+ import "./index37.js";
6
+ const g = /* @__PURE__ */ u({
7
+ __name: "BbTextarea",
8
8
  props: {
9
- autocomplete: {},
9
+ autoGrow: { type: Boolean },
10
10
  autofocus: { type: Boolean },
11
11
  direction: {},
12
12
  disabled: { type: Boolean },
@@ -20,11 +20,10 @@ const g = /* @__PURE__ */ t({
20
20
  name: {},
21
21
  placeholder: {},
22
22
  readonly: { type: Boolean },
23
- reverse: { type: Boolean },
24
- type: {}
23
+ reverse: { type: Boolean }
25
24
  },
26
25
  emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
27
- setup(V, { emit: n }) {
26
+ setup(w, { emit: n }) {
28
27
  const o = n, s = {
29
28
  onBlur: (e) => o("blur", e),
30
29
  onChange: (e) => o("change", e),
@@ -36,8 +35,8 @@ const g = /* @__PURE__ */ t({
36
35
  onMouseup: (e) => o("mouseup", e),
37
36
  "onUpdate:modelValue": (e) => o("update:modelValue", e)
38
37
  };
39
- return (e, B) => (u(), i(y, {
40
- class: "bb-text-input",
38
+ return (e, B) => (i(), t(f, {
39
+ class: "bb-textarea",
41
40
  direction: e.direction,
42
41
  errors: e.errors,
43
42
  hasErrors: e.hasErrors,
@@ -49,36 +48,35 @@ const g = /* @__PURE__ */ t({
49
48
  name: e.name,
50
49
  reverse: e.reverse
51
50
  }, {
52
- label: l((a) => [
53
- r(e.$slots, "label", m(b(a)))
51
+ label: r((l) => [
52
+ a(e.$slots, "label", m(b(l)))
54
53
  ]),
55
- input: l(({ id: a, name: p, hasErrors: d }) => [
56
- c(f, h({
57
- autocomplete: e.autocomplete,
54
+ input: r(({ id: l, name: d, hasErrors: p }) => [
55
+ h(y, c({
56
+ autoGrow: e.autoGrow,
58
57
  autofocus: e.autofocus,
59
58
  disabled: e.disabled,
60
- hasErrors: d,
61
- id: a,
59
+ hasErrors: p,
60
+ id: l,
62
61
  modelValue: e.modelValue,
63
- name: p,
62
+ name: d,
64
63
  placeholder: e.placeholder,
65
- readonly: e.readonly,
66
- type: e.type
64
+ readonly: e.readonly
67
65
  }, s), {
68
- "append-outer": l(() => [
69
- r(e.$slots, "append-outer")
66
+ "append-outer": r(() => [
67
+ a(e.$slots, "append-outer")
70
68
  ]),
71
- append: l(() => [
72
- r(e.$slots, "append")
69
+ append: r(() => [
70
+ a(e.$slots, "append")
73
71
  ]),
74
- prepend: l(() => [
75
- r(e.$slots, "prepend")
72
+ prepend: r(() => [
73
+ a(e.$slots, "prepend")
76
74
  ]),
77
- "prepend-outer": l(() => [
78
- r(e.$slots, "prepend-outer")
75
+ "prepend-outer": r(() => [
76
+ a(e.$slots, "prepend-outer")
79
77
  ]),
80
78
  _: 2
81
- }, 1040, ["autocomplete", "autofocus", "disabled", "hasErrors", "id", "modelValue", "name", "placeholder", "readonly", "type"])
79
+ }, 1040, ["autoGrow", "autofocus", "disabled", "hasErrors", "id", "modelValue", "name", "placeholder", "readonly"])
82
80
  ]),
83
81
  _: 3
84
82
  }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "label", "labelPosition", "modelValue", "name", "reverse"]));
@@ -1 +1 @@
1
- {"version":3,"file":"index102.js","sources":["../src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { Simplify } from \"@/types/Simplify\";\nimport BaseInputContainer, {\n BaseInputContainerSlots,\n} from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseTextInput from \"../BaseTextInput/BaseTextInput.vue\";\nimport type {\n BaseTextInputEvents,\n BaseTextInputSlots,\n} from \"../BaseTextInput/BaseTextInput.vue\";\n\nexport interface BbTextInputProps {\n autocomplete?: string;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: any;\n name?: string;\n placeholder?: string;\n readonly?: boolean;\n reverse?: boolean;\n type?: HTMLInputElement['type']\n}\n\nexport type BbTextInputEvents = BaseTextInputEvents;\nexport type BbTextInputSlots = Simplify<\n BaseTextInputSlots & Pick<BaseInputContainerSlots, \"label\">\n>;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTextInput',\n props: {\n autocomplete: {},\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean },\n type: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: string | null) =>\n emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-text-input\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTextInput, _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly,\n type: _ctx.type\n }, eventListeners), {\n \"append-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append-outer\")\n ]),\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n prepend: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend\")\n ]),\n \"prepend-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend-outer\")\n ]),\n _: 2\n }, 1040, [\"autocomplete\", \"autofocus\", \"disabled\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"readonly\", \"type\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTextInput","_mergeProps"],"mappings":";;;;;AAqCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA,IACT,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,IAAI,CAAC;AAAA,IACL,OAAO,CAAC;AAAA,IACR,eAAe,CAAC;AAAA,IAChB,YAAY,CAAC;AAAA,IACb,MAAM,CAAC;AAAA,IACP,aAAa,CAAC;AAAA,IACd,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,SAAS,EAAE,MAAM,QAAQ;AAAA,IACzB,MAAM,CAAC;AAAA,EACT;AAAA,EACA,OAAO,CAAC,QAAQ,UAAU,SAAS,SAAS,SAAS,WAAW,aAAa,WAAW,mBAAmB;AAAA,EAC3G,MAAMC,GAAc,EAAE,MAAMC,KAAU;AAIxC,UAAMC,IAAOD,GAOPE,IAAiB;AAAA,MACrB,QAAQ,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A,UAClB,UAAUA,EAAK;AAAA,UACf,MAAMA,EAAK;AAAA,QACb,GAAGH,CAAc,GAAG;AAAA,UAClB,gBAAgBQ,EAAS,MAAM;AAAA,YAC7BE,EAAYP,EAAK,QAAQ,cAAc;AAAA,UAAA,CACxC;AAAA,UACD,QAAQK,EAAS,MAAM;AAAA,YACrBE,EAAYP,EAAK,QAAQ,QAAQ;AAAA,UAAA,CAClC;AAAA,UACD,SAASK,EAAS,MAAM;AAAA,YACtBE,EAAYP,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,UACD,iBAAiBK,EAAS,MAAM;AAAA,YAC9BE,EAAYP,EAAK,QAAQ,eAAe;AAAA,UAAA,CACzC;AAAA,UACD,GAAG;AAAA,QACF,GAAA,MAAM,CAAC,gBAAgB,aAAa,YAAY,aAAa,MAAM,cAAc,QAAQ,eAAe,YAAY,MAAM,CAAC;AAAA,MAAA,CAC/H;AAAA,MACD,GAAG;AAAA,IACF,GAAA,GAAG,CAAC,aAAa,UAAU,aAAa,aAAa,MAAM,SAAS,iBAAiB,cAAc,QAAQ,SAAS,CAAC;AAAA,EAE1H;AAEA,CAAC;"}
1
+ {"version":3,"file":"index102.js","sources":["../src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport BaseInputContainer, { BaseInputContainerSlots } from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseTextarea from \"../BaseTextarea/BaseTextarea.vue\";\nimport type { BaseTextareaEvents, BaseTextareaSlots } from \"../BaseTextarea/BaseTextarea.vue\";\nimport type { Simplify } from \"@/types/Simplify\";\n\nexport interface BbTextareaProps {\n autoGrow?: boolean;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: string | null;\n name?: string;\n placeholder?: string;\n readonly?: boolean;\n reverse?: boolean;\n}\n\nexport type BbTextareaEvents = BaseTextareaEvents;\nexport type BbTextareaSlots = Simplify<BaseTextareaSlots & Pick<BaseInputContainerSlots, 'label'>>\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTextarea',\n props: {\n autoGrow: { type: Boolean },\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean }\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: string | null) =>\n emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-textarea\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTextarea, _mergeProps({\n autoGrow: _ctx.autoGrow,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly\n }, eventListeners), {\n \"append-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append-outer\")\n ]),\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n prepend: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend\")\n ]),\n \"prepend-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend-outer\")\n ]),\n _: 2\n }, 1040, [\"autoGrow\", \"autofocus\", \"disabled\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"readonly\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTextarea","_mergeProps"],"mappings":";;;;;AA6BA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,QAAQ,CAAC;AAAA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Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
- import { state as k, useToast as C } from "./index4.js";
3
- import B from "./index239.js";
4
- const N = /* @__PURE__ */ s({
5
- __name: "BbToast",
1
+ import { defineComponent as t, openBlock as u, createBlock as i, withCtx as l, renderSlot as r, normalizeProps as m, guardReactiveProps as b, createVNode as c, mergeProps as h } from "vue";
2
+ import y from "./index18.js";
3
+ import "./index19.js";
4
+ import f from "./index38.js";
5
+ import "./index39.js";
6
+ const g = /* @__PURE__ */ t({
7
+ __name: "BbTextInput",
6
8
  props: {
7
- placement: { default: "bottom" }
9
+ autocomplete: {},
10
+ autofocus: { type: Boolean },
11
+ direction: {},
12
+ disabled: { type: Boolean },
13
+ errors: {},
14
+ hasErrors: { type: Boolean },
15
+ hideLabel: { type: Boolean },
16
+ id: {},
17
+ label: {},
18
+ labelPosition: {},
19
+ modelValue: {},
20
+ name: {},
21
+ placeholder: {},
22
+ readonly: { type: Boolean },
23
+ reverse: { type: Boolean },
24
+ type: {}
8
25
  },
9
- setup(T) {
10
- const { dismiss: n } = C();
11
- return (a, h) => (e(), o(l, { to: "body" }, [
12
- c("div", {
13
- class: m(["bb-toast", { [`bb-toast--${a.placement}`]: !0 }])
14
- }, [
15
- i(p, { name: "toast" }, {
16
- default: u(() => [
17
- (e(!0), d(f, null, _(r(k).stack, (t) => (e(), o(B, b({
18
- key: t.id
19
- }, t, { "onClick:close": r(n) }), null, 16, ["onClick:close"]))), 128))
26
+ emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
27
+ setup(V, { emit: n }) {
28
+ const o = n, s = {
29
+ onBlur: (e) => o("blur", e),
30
+ onChange: (e) => o("change", e),
31
+ onClick: (e) => o("click", e),
32
+ onFocus: (e) => o("focus", e),
33
+ onInput: (e) => o("input", e),
34
+ onKeydown: (e) => o("keydown", e),
35
+ onMousedown: (e) => o("mousedown", e),
36
+ onMouseup: (e) => o("mouseup", e),
37
+ "onUpdate:modelValue": (e) => o("update:modelValue", e)
38
+ };
39
+ return (e, B) => (u(), i(y, {
40
+ class: "bb-text-input",
41
+ direction: e.direction,
42
+ errors: e.errors,
43
+ hasErrors: e.hasErrors,
44
+ hideLabel: e.hideLabel,
45
+ id: e.id,
46
+ label: e.label,
47
+ labelPosition: e.labelPosition,
48
+ modelValue: e.modelValue,
49
+ name: e.name,
50
+ reverse: e.reverse
51
+ }, {
52
+ label: l((a) => [
53
+ r(e.$slots, "label", m(b(a)))
54
+ ]),
55
+ input: l(({ id: a, name: p, hasErrors: d }) => [
56
+ c(f, h({
57
+ autocomplete: e.autocomplete,
58
+ autofocus: e.autofocus,
59
+ disabled: e.disabled,
60
+ hasErrors: d,
61
+ id: a,
62
+ modelValue: e.modelValue,
63
+ name: p,
64
+ placeholder: e.placeholder,
65
+ readonly: e.readonly,
66
+ type: e.type
67
+ }, s), {
68
+ "append-outer": l(() => [
69
+ r(e.$slots, "append-outer")
20
70
  ]),
21
- _: 1
22
- })
23
- ], 2)
24
- ]));
71
+ append: l(() => [
72
+ r(e.$slots, "append")
73
+ ]),
74
+ prepend: l(() => [
75
+ r(e.$slots, "prepend")
76
+ ]),
77
+ "prepend-outer": l(() => [
78
+ r(e.$slots, "prepend-outer")
79
+ ]),
80
+ _: 2
81
+ }, 1040, ["autocomplete", "autofocus", "disabled", "hasErrors", "id", "modelValue", "name", "placeholder", "readonly", "type"])
82
+ ]),
83
+ _: 3
84
+ }, 8, ["direction", "errors", "hasErrors", "hideLabel", "id", "label", "labelPosition", "modelValue", "name", "reverse"]));
25
85
  }
26
86
  });
27
87
  export {
28
- N as default
88
+ g as default
29
89
  };
30
90
  //# sourceMappingURL=index104.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index104.js","sources":["../src/components/BbToast/BbToast.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, mergeProps as _mergeProps, createBlock as _createBlock, TransitionGroup as _TransitionGroup, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, Teleport as _Teleport } from \"vue\"\n\nimport { state, useToast } from \"../../composables/useToast\";\nimport BbToastMessage from \"./BbToastMessage.vue\";\nexport type BbToastProps = {\n placement?:\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"top\"\n | \"top-start\"\n | \"top-end\";\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbToast',\n props: {\n placement: { default: \"bottom\" }\n },\n setup(__props: any) {\n\nconst { dismiss } = useToast()\n\nconst props = __props;\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"bb-toast\", { [`bb-toast--${_ctx.placement}`]: true }])\n }, [\n _createVNode(_TransitionGroup, { name: \"toast\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(state).stack, (message) => {\n return (_openBlock(), _createBlock(BbToastMessage, _mergeProps({\n key: message.id\n }, message, { \"onClick:close\": _unref(dismiss) }), null, 16, [\"onClick:close\"]))\n }), 128))\n ]),\n _: 1\n })\n ], 2)\n ]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","dismiss","useToast","_ctx","_cache","_openBlock","_createBlock","_Teleport","_createElementVNode","_normalizeClass","_createVNode","_TransitionGroup","_withCtx","_createElementBlock","_Fragment","_renderList","_unref","state","message","BbToastMessage","_mergeProps"],"mappings":";;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,SAAS,SAAS;AAAA,EACjC;AAAA,EACA,MAAMC,GAAc;AAEhB,UAAA,EAAE,SAAAC,MAAYC;AAIb,WAAA,CAACC,GAAUC,OACRC,EAAc,GAAAC,EAAaC,GAAW,EAAE,IAAI,UAAU;AAAA,MAC5DC,EAAoB,OAAO;AAAA,QACzB,OAAOC,EAAgB,CAAC,YAAY,EAAE,CAAC,aAAaN,EAAK,SAAS,EAAE,GAAG,GAAM,CAAA,CAAC;AAAA,MAAA,GAC7E;AAAA,QACDO,EAAaC,GAAkB,EAAE,MAAM,WAAW;AAAA,UAChD,SAASC,EAAS,MAAM;AAAA,aACrBP,EAAW,EAAI,GAAGQ,EAAoBC,GAAW,MAAMC,EAAYC,EAAOC,CAAK,EAAE,OAAO,CAACC,OAChFb,EAAW,GAAGC,EAAaa,GAAgBC,EAAY;AAAA,cAC7D,KAAKF,EAAQ;AAAA,YACZ,GAAAA,GAAS,EAAE,iBAAiBF,EAAOf,CAAO,GAAG,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,EAC/E,GAAG,GAAG;AAAA,UAAA,CACR;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,SACA,CAAC;AAAA,IAAA,CACL;AAAA,EAEH;AAEA,CAAC;"}
1
+ {"version":3,"file":"index104.js","sources":["../src/components/BbTextInput/BbTextInput.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { Simplify } from \"@/types/Simplify\";\nimport BaseInputContainer, {\n BaseInputContainerSlots,\n} from \"../BaseInputContainer/BaseInputContainer.vue\";\nimport BaseTextInput from \"../BaseTextInput/BaseTextInput.vue\";\nimport type {\n BaseTextInputEvents,\n BaseTextInputSlots,\n} from \"../BaseTextInput/BaseTextInput.vue\";\n\nexport interface BbTextInputProps {\n autocomplete?: string;\n autofocus?: boolean;\n direction?: \"horizontal\" | \"vertical\" | \"auto\" | string;\n disabled?: boolean;\n errors?: string | string[];\n hasErrors?: boolean;\n hideLabel?: boolean;\n id?: string;\n label: string;\n labelPosition?: \"left\" | \"center\" | \"right\";\n modelValue?: any;\n name?: string;\n placeholder?: string;\n readonly?: boolean;\n reverse?: boolean;\n type?: HTMLInputElement['type']\n}\n\nexport type BbTextInputEvents = BaseTextInputEvents;\nexport type BbTextInputSlots = Simplify<\n BaseTextInputSlots & Pick<BaseInputContainerSlots, \"label\">\n>;\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTextInput',\n props: {\n autocomplete: {},\n autofocus: { type: Boolean },\n direction: {},\n disabled: { type: Boolean },\n errors: {},\n hasErrors: { type: Boolean },\n hideLabel: { type: Boolean },\n id: {},\n label: {},\n labelPosition: {},\n modelValue: {},\n name: {},\n placeholder: {},\n readonly: { type: Boolean },\n reverse: { type: Boolean },\n type: {}\n },\n emits: [\"blur\", \"change\", \"click\", \"focus\", \"input\", \"keydown\", \"mousedown\", \"mouseup\", \"update:modelValue\"],\n setup(__props: any, { emit: __emit }) {\n\n\n\nconst emit = __emit;\n\n\n\n/**\n * These events are just propagated\n */\nconst eventListeners = {\n onBlur: (event: FocusEvent) => emit(\"blur\", event),\n onChange: (event: Event) => emit(\"change\", event),\n onClick: (event: MouseEvent) => emit(\"click\", event),\n onFocus: (event: FocusEvent) => emit(\"focus\", event),\n onInput: (event: Event) => emit(\"input\", event),\n onKeydown: (event: KeyboardEvent) => emit(\"keydown\", event),\n onMousedown: (event: MouseEvent) => emit(\"mousedown\", event),\n onMouseup: (event: MouseEvent) => emit(\"mouseup\", event),\n \"onUpdate:modelValue\": (value: string | null) =>\n emit(\"update:modelValue\", value),\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(BaseInputContainer, {\n class: \"bb-text-input\",\n direction: _ctx.direction,\n errors: _ctx.errors,\n hasErrors: _ctx.hasErrors,\n hideLabel: _ctx.hideLabel,\n id: _ctx.id,\n label: _ctx.label,\n labelPosition: _ctx.labelPosition,\n modelValue: _ctx.modelValue,\n name: _ctx.name,\n reverse: _ctx.reverse\n }, {\n label: _withCtx((data) => [\n _renderSlot(_ctx.$slots, \"label\", _normalizeProps(_guardReactiveProps(data)))\n ]),\n input: _withCtx(({ id, name, hasErrors }) => [\n _createVNode(BaseTextInput, _mergeProps({\n autocomplete: _ctx.autocomplete,\n autofocus: _ctx.autofocus,\n disabled: _ctx.disabled,\n hasErrors: hasErrors,\n id: id,\n modelValue: _ctx.modelValue,\n name: name,\n placeholder: _ctx.placeholder,\n readonly: _ctx.readonly,\n type: _ctx.type\n }, eventListeners), {\n \"append-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append-outer\")\n ]),\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n prepend: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend\")\n ]),\n \"prepend-outer\": _withCtx(() => [\n _renderSlot(_ctx.$slots, \"prepend-outer\")\n ]),\n _: 2\n }, 1040, [\"autocomplete\", \"autofocus\", \"disabled\", \"hasErrors\", \"id\", \"modelValue\", \"name\", \"placeholder\", \"readonly\", \"type\"])\n ]),\n _: 3\n }, 8, [\"direction\", \"errors\", \"hasErrors\", \"hideLabel\", \"id\", \"label\", \"labelPosition\", \"modelValue\", \"name\", \"reverse\"]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","__emit","emit","eventListeners","event","value","_ctx","_cache","_openBlock","_createBlock","BaseInputContainer","_withCtx","data","_renderSlot","_normalizeProps","_guardReactiveProps","id","name","hasErrors","_createVNode","BaseTextInput","_mergeProps"],"mappings":";;;;;AAqCA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,cAAc,CAAC;AAAA,IACf,WAAW,EAAE,MAAM,QAAQ;AAAA,IAC3B,WAAW,CAAC;AAAA,IACZ,UAAU,EAAE,MAAM,QAAQ;AAAA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A,CAAC;"}
package/dist/index106.js CHANGED
@@ -1,123 +1,30 @@
1
- import { defineComponent as D, ref as o, computed as z, openBlock as f, createElementBlock as F, mergeProps as O, createElementVNode as l, renderSlot as k, normalizeProps as P, guardReactiveProps as S, unref as b, createBlock as y, Teleport as N, normalizeClass as V, normalizeStyle as H, withCtx as I, createCommentVNode as R } from "vue";
2
- import { useFloating as U } from "./index213.js";
3
- import { useId as j } from "./index118.js";
4
- import { wait as C } from "./index117.js";
5
- import q from "./index6.js";
6
- import "./index7.js";
7
- import { autoUpdate as A } from "./index187.js";
8
- import { flip as G, shift as J } from "./index195.js";
9
- const K = /* @__PURE__ */ l("span", { class: "bb-tooltip__arrow" }, null, -1), Q = { class: "bb-tooltip__bubble" }, W = /* @__PURE__ */ l("svg", {
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- }, [
14
- /* @__PURE__ */ l("path", {
15
- d: "M23 23L1 1M23 1L1 23",
16
- stroke: "currentColor",
17
- "stroke-width": "2",
18
- "stroke-linecap": "round"
19
- })
20
- ], -1), ae = /* @__PURE__ */ D({
21
- __name: "BbTooltip",
1
+ import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
+ import { state as k, useToast as C } from "./index4.js";
3
+ import B from "./index246.js";
4
+ const N = /* @__PURE__ */ s({
5
+ __name: "BbToast",
22
6
  props: {
23
- block: { type: Boolean },
24
- disabled: { type: Boolean },
25
- id: {},
26
- padding: { default: 10 },
27
- placement: { default: "top" },
28
- showClose: { type: Boolean, default: !0 },
29
- theme: { default: "default" },
30
- transitionDuration: { default: 150 }
7
+ placement: { default: "bottom" }
31
8
  },
32
- setup(E) {
33
- const t = E, m = `bb_${t.id ?? j().id.value}`, r = o(), u = o(), { floatingStyles: B, placement: v } = U(r, u, {
34
- placement: t.placement,
35
- whileElementsMounted: A,
36
- middleware: [G(), J({ padding: t.padding })]
37
- }), _ = o(!0), n = o(!1), a = o(!1), s = o(!1), c = o(!0), h = () => {
38
- a.value || n.value || t.disabled || (M(), document.addEventListener("mouseover", w, { passive: !0 }), document.addEventListener("keydown", g, { passive: !0 }));
39
- }, $ = h, w = (e) => {
40
- const i = e.target;
41
- if (i && i instanceof HTMLElement) {
42
- let d = !0;
43
- r.value && r.value.contains(i) && (d = !1), u.value && u.value.contains(i) && (d = !1), d && p();
44
- }
45
- }, g = (e) => {
46
- a.value && e.key === "Escape" && p();
47
- }, L = () => {
48
- _.value = !1, p();
49
- }, M = async () => {
50
- _.value && (c.value = !1, s.value = !1, n.value = !0, await C(50), a.value = !0, n.value = !1);
51
- }, p = async () => {
52
- a.value = !1, n.value = !1, s.value = !0, await C(t.transitionDuration), s.value = !1, c.value = !0, document.removeEventListener("mouseover", w), document.removeEventListener("keydown", g);
53
- }, T = z(() => ({
54
- class: {
55
- "bb-tooltip--block": t.block,
56
- [`bb-tooltip--theme-${t.theme}`]: t.theme
57
- }
58
- }));
59
- return (e, i) => (f(), F("span", O({ class: "bb-tooltip" }, T.value), [
60
- l("span", {
61
- class: "bb-tooltip__wrapper",
62
- ref_key: "wrapper",
63
- ref: r
9
+ setup(T) {
10
+ const { dismiss: n } = C();
11
+ return (a, h) => (e(), o(l, { to: "body" }, [
12
+ c("div", {
13
+ class: m(["bb-toast", { [`bb-toast--${a.placement}`]: !0 }])
64
14
  }, [
65
- k(e.$slots, "activator", P(S({
66
- props: {
67
- "aria-describedby": m,
68
- onMouseenter: h,
69
- onFocus: b($),
70
- onBlur: p,
71
- disabled: e.disabled
72
- },
73
- closed: c.value,
74
- closing: s.value,
75
- disabled: e.disabled,
76
- open: a.value,
77
- opening: n.value,
78
- placement: b(v)
79
- })))
80
- ], 512),
81
- (f(), y(N, { to: "body" }, [
82
- l("span", {
83
- class: V(["bb-tooltip__bubble-container", {
84
- [`bb-tooltip__bubble-container--${b(v)}`]: !0,
85
- [`bb-tooltip__bubble-container--${e.theme}`]: e.theme,
86
- "bb-tooltip__bubble-container--hidden": c.value,
87
- "bb-tooltip__bubble-container--closing": s.value,
88
- "bb-tooltip__bubble-container--opening": n.value,
89
- "bb-tooltip__bubble-container--open": a.value
90
- }]),
91
- ref_key: "content",
92
- ref: u,
93
- style: H({
94
- ...b(B),
95
- transitionDuration: `${t.transitionDuration}ms`
96
- }),
97
- id: m
98
- }, [
99
- K,
100
- l("span", Q, [
101
- e.showClose ? (f(), y(q, {
102
- key: 0,
103
- tabindex: "-1",
104
- "aria-hidden": "true",
105
- class: "bb-tooltip__close",
106
- onClick: L
107
- }, {
108
- default: I(() => [
109
- W
110
- ]),
111
- _: 1
112
- })) : R("", !0),
113
- k(e.$slots, "default")
114
- ])
115
- ], 6)
116
- ]))
117
- ], 16));
15
+ i(p, { name: "toast" }, {
16
+ default: u(() => [
17
+ (e(!0), d(f, null, _(r(k).stack, (t) => (e(), o(B, b({
18
+ key: t.id
19
+ }, t, { "onClick:close": r(n) }), null, 16, ["onClick:close"]))), 128))
20
+ ]),
21
+ _: 1
22
+ })
23
+ ], 2)
24
+ ]));
118
25
  }
119
26
  });
120
27
  export {
121
- ae as default
28
+ N as default
122
29
  };
123
30
  //# sourceMappingURL=index106.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index106.js","sources":["../src/components/BbTooltip/BbTooltip.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, createElementVNode as _createElementVNode, openBlock as _openBlock, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, Teleport as _Teleport, mergeProps as _mergeProps, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"bb-tooltip__arrow\" }, null, -1)\nconst _hoisted_2 = { class: \"bb-tooltip__bubble\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"svg\", {\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, [\n /*#__PURE__*/_createElementVNode(\"path\", {\n d: \"M23 23L1 1M23 1L1 23\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\"\n })\n], -1)\n\nimport { computed, ref } from \"vue\";\nimport {\n useFloating,\n autoUpdate,\n flip,\n shift,\n Placement,\n} from \"@floating-ui/vue\";\nimport { useId } from \"@/composables/useId\";\nimport { wait } from \"@/utilities/functions/wait\";\nimport BaseButton from \"../BaseButton/BaseButton.vue\";\n\nexport type BbTooltipProps = {\n block?: boolean;\n disabled?: boolean;\n id?: string;\n padding?: number;\n placement?:\n | \"top\"\n | \"top-start\"\n | \"top-end\"\n | \"right\"\n | \"right-start\"\n | \"right-end\"\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"left\"\n | \"left-start\"\n | \"left-end\";\n showClose?: boolean;\n theme?: string;\n transitionDuration?: number;\n};\n\ntype BbTooltipSlots = {\n activator?: (props: {\n props: {\n \"aria-describedby\": string;\n onMouseenter: typeof onMouseenter;\n onFocus: typeof onFocus;\n onBlur: typeof closeTooltip;\n };\n closed: boolean;\n closing: boolean;\n disabled?: boolean;\n open: boolean;\n opening: boolean;\n placement: Placement;\n }) => any;\n default?: (props: {}) => any;\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbTooltip',\n props: {\n block: { type: Boolean },\n disabled: { type: Boolean },\n id: {},\n padding: { default: 10 },\n placement: { default: \"top\" },\n showClose: { type: Boolean, default: true },\n theme: { default: \"default\" },\n transitionDuration: { default: 150 }\n },\n setup(__props: any) {\n\nconst props = __props;\n\n\n\nconst id = `bb_${props.id ?? useId().id.value}`;\n\nconst wrapper = ref<HTMLElement>();\nconst content = ref<HTMLElement>();\n\nconst { floatingStyles, placement } = useFloating(wrapper, content, {\n placement: props.placement,\n whileElementsMounted: autoUpdate,\n middleware: [flip(), shift({ padding: props.padding })],\n});\n\nconst canOpen = ref(true);\n\nconst opening = ref(false);\nconst open = ref(false);\nconst closing = ref(false);\nconst closed = ref(true);\n\nconst onMouseenter = () => {\n if (open.value || opening.value || props.disabled) return;\n openTooltip();\n document.addEventListener(\"mouseover\", onMouseOver, { passive: true });\n document.addEventListener(\"keydown\", onEsc, { passive: true });\n};\n\nconst onFocus = onMouseenter;\n\nconst onMouseOver = (event: Event) => {\n const target = event.target;\n if (!target) return;\n if (target instanceof HTMLElement) {\n let isOutside = true;\n\n if (wrapper.value) {\n if (wrapper.value.contains(target)) {\n isOutside = false;\n }\n }\n if (content.value) {\n if (content.value.contains(target)) {\n isOutside = false;\n }\n }\n\n if (isOutside) {\n closeTooltip();\n }\n }\n};\n\nconst onEsc = (event: KeyboardEvent) => {\n if (open.value) {\n if (event.key === \"Escape\") {\n closeTooltip();\n }\n }\n};\n\n/* On click of close button tooltip is disallowed from reappearing */\nconst onClickClose = () => {\n canOpen.value = false;\n closeTooltip();\n};\n\nconst openTooltip = async () => {\n if (!canOpen.value) return;\n closed.value = false;\n closing.value = false;\n opening.value = true;\n await wait(50);\n open.value = true;\n opening.value = false;\n};\n\nconst closeTooltip = async () => {\n open.value = false;\n opening.value = false;\n closing.value = true;\n await wait(props.transitionDuration);\n closing.value = false;\n closed.value = true;\n document.removeEventListener(\"mouseover\", onMouseOver);\n document.removeEventListener(\"keydown\", onEsc);\n};\n\nconst attributes = computed(() => {\n const classes = {\n \"bb-tooltip--block\": props.block,\n [`bb-tooltip--theme-${props.theme}`]: props.theme,\n };\n return {\n class: classes,\n };\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"span\", _mergeProps({ class: \"bb-tooltip\" }, attributes.value), [\n _createElementVNode(\"span\", {\n class: \"bb-tooltip__wrapper\",\n ref_key: \"wrapper\",\n ref: wrapper\n }, [\n _renderSlot(_ctx.$slots, \"activator\", _normalizeProps(_guardReactiveProps({\n props: {\n 'aria-describedby': id,\n onMouseenter: onMouseenter,\n onFocus: _unref(onFocus),\n onBlur: closeTooltip,\n disabled: _ctx.disabled,\n },\n closed: closed.value,\n closing: closing.value,\n disabled: _ctx.disabled,\n open: open.value,\n opening: opening.value,\n placement: _unref(placement),\n })))\n ], 512),\n (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"span\", {\n class: _normalizeClass([\"bb-tooltip__bubble-container\", {\n [`bb-tooltip__bubble-container--${_unref(placement)}`]: true,\n [`bb-tooltip__bubble-container--${_ctx.theme}`]: _ctx.theme,\n 'bb-tooltip__bubble-container--hidden': closed.value,\n 'bb-tooltip__bubble-container--closing': closing.value,\n 'bb-tooltip__bubble-container--opening': opening.value,\n 'bb-tooltip__bubble-container--open': open.value,\n }]),\n ref_key: \"content\",\n ref: content,\n style: _normalizeStyle({\n ..._unref(floatingStyles),\n transitionDuration: `${props.transitionDuration}ms`,\n }),\n id: id\n }, [\n _hoisted_1,\n _createElementVNode(\"span\", _hoisted_2, [\n (_ctx.showClose)\n ? (_openBlock(), _createBlock(BaseButton, {\n key: 0,\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n class: \"bb-tooltip__close\",\n onClick: onClickClose\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"default\")\n ])\n ], 6)\n ]))\n ], 16))\n}\n}\n\n})"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_sfc_main","_defineComponent","__props","props","id","useId","wrapper","ref","content","floatingStyles","placement","useFloating","autoUpdate","flip","shift","canOpen","opening","open","closing","closed","onMouseenter","openTooltip","onMouseOver","onEsc","onFocus","event","target","isOutside","closeTooltip","onClickClose","wait","attributes","computed","_ctx","_cache","_openBlock","_createElementBlock","_mergeProps","_createElementVNode","_renderSlot","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_Teleport","_normalizeClass","_normalizeStyle","BaseButton","_withCtx","_createCommentVNode"],"mappings":";;;;;;;;AAGA,MAAMA,sBAA8C,QAAQ,EAAE,OAAO,uBAAuB,MAAM,EAAE,GAC9FC,IAAa,EAAE,OAAO,wBACtBC,sBAA8C,OAAO;AAAA,EACzD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AACT,GAAG;AAAA,oBACgC,QAAQ;AAAA,IACvC,GAAG;AAAA,IACH,QAAQ;AAAA,IACR,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,EAAA,CACnB;AACH,GAAG,EAAE,GAwDuBC,KAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,EAAE,MAAM,QAAQ;AAAA,IACvB,UAAU,EAAE,MAAM,QAAQ;AAAA,IAC1B,IAAI,CAAC;AAAA,IACL,SAAS,EAAE,SAAS,GAAG;AAAA,IACvB,WAAW,EAAE,SAAS,MAAM;AAAA,IAC5B,WAAW,EAAE,MAAM,SAAS,SAAS,GAAK;AAAA,IAC1C,OAAO,EAAE,SAAS,UAAU;AAAA,IAC5B,oBAAoB,EAAE,SAAS,IAAI;AAAA,EACrC;AAAA,EACA,MAAMC,GAAc;AAEtB,UAAMC,IAAQD,GAIRE,IAAK,MAAMD,EAAM,MAAME,IAAQ,GAAG,KAAK,IAEvCC,IAAUC,KACVC,IAAUD,KAEV,EAAE,gBAAAE,GAAgB,WAAAC,EAAA,IAAcC,EAAYL,GAASE,GAAS;AAAA,MAClE,WAAWL,EAAM;AAAA,MACjB,sBAAsBS;AAAA,MACtB,YAAY,CAACC,EAAA,GAAQC,EAAM,EAAE,SAASX,EAAM,QAAQ,CAAC,CAAC;AAAA,IAAA,CACvD,GAEKY,IAAUR,EAAI,EAAI,GAElBS,IAAUT,EAAI,EAAK,GACnBU,IAAOV,EAAI,EAAK,GAChBW,IAAUX,EAAI,E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AAQxC,GAAY;AAAA,YACrCmC,EAAK,aACDE,KAAcQ,EAAaI,GAAY;AAAA,cACtC,KAAK;AAAA,cACL,UAAU;AAAA,cACV,eAAe;AAAA,cACf,OAAO;AAAA,cACP,SAASlB;AAAA,YAAA,GACR;AAAA,cACD,SAASmB,EAAS,MAAM;AAAA,gBACtBjD;AAAA,cAAA,CACD;AAAA,cACD,GAAG;AAAA,YAAA,CACJ,KACDkD,EAAoB,IAAI,EAAI;AAAA,YAChCV,EAAYN,EAAK,QAAQ,SAAS;AAAA,UAAA,CACnC;AAAA,WACA,CAAC;AAAA,MAAA,CACL;AAAA,OACA,EAAE;AAAA,EAEP;AAEA,CAAC;"}
1
+ {"version":3,"file":"index106.js","sources":["../src/components/BbToast/BbToast.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, mergeProps as _mergeProps, createBlock as _createBlock, TransitionGroup as _TransitionGroup, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, Teleport as _Teleport } from \"vue\"\n\nimport { state, useToast } from \"../../composables/useToast\";\nimport BbToastMessage from \"./BbToastMessage.vue\";\nexport type BbToastProps = {\n placement?:\n | \"bottom\"\n | \"bottom-start\"\n | \"bottom-end\"\n | \"top\"\n | \"top-start\"\n | \"top-end\";\n};\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'BbToast',\n props: {\n placement: { default: \"bottom\" }\n },\n setup(__props: any) {\n\nconst { dismiss } = useToast()\n\nconst props = __props;\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\"bb-toast\", { [`bb-toast--${_ctx.placement}`]: true }])\n }, [\n _createVNode(_TransitionGroup, { name: \"toast\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(state).stack, (message) => {\n return (_openBlock(), _createBlock(BbToastMessage, _mergeProps({\n key: message.id\n }, message, { \"onClick:close\": _unref(dismiss) }), null, 16, [\"onClick:close\"]))\n }), 128))\n ]),\n _: 1\n })\n ], 2)\n ]))\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","dismiss","useToast","_ctx","_cache","_openBlock","_createBlock","_Teleport","_createElementVNode","_normalizeClass","_createVNode","_TransitionGroup","_withCtx","_createElementBlock","_Fragment","_renderList","_unref","state","message","BbToastMessage","_mergeProps"],"mappings":";;;AAgBA,MAA4BA,IAAiBC,gBAAAA,EAAA;AAAA,EAC3C,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW,EAAE,SAAS,SAAS;AAAA,EACjC;AAAA,EACA,MAAMC,GAAc;AAEhB,UAAA,EAAE,SAAAC,MAAYC;AAIb,WAAA,CAACC,GAAUC,OACRC,EAAc,GAAAC,EAAaC,GAAW,EAAE,IAAI,UAAU;AAAA,MAC5DC,EAAoB,OAAO;AAAA,QACzB,OAAOC,EAAgB,CAAC,YAAY,EAAE,CAAC,aAAaN,EAAK,SAAS,EAAE,GAAG,GAAM,CAAA,CAAC;AAAA,MAAA,GAC7E;AAAA,QACDO,EAAaC,GAAkB,EAAE,MAAM,WAAW;AAAA,UAChD,SAASC,EAAS,MAAM;AAAA,aACrBP,EAAW,EAAI,GAAGQ,EAAoBC,GAAW,MAAMC,EAAYC,EAAOC,CAAK,EAAE,OAAO,CAACC,OAChFb,EAAW,GAAGC,EAAaa,GAAgBC,EAAY;AAAA,cAC7D,KAAKF,EAAQ;AAAA,YACZ,GAAAA,GAAS,EAAE,iBAAiBF,EAAOf,CAAO,GAAG,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,EAC/E,GAAG,GAAG;AAAA,UAAA,CACR;AAAA,UACD,GAAG;AAAA,QAAA,CACJ;AAAA,SACA,CAAC;AAAA,IAAA,CACL;AAAA,EAEH;AAEA,CAAC;"}