bitboss-ui 2.1.97 → 2.1.98

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 (181) hide show
  1. package/README.md +138 -11
  2. package/dist/index108.js +9 -9
  3. package/dist/index115.js +1 -1
  4. package/dist/index121.js +4 -4
  5. package/dist/index123.js +12 -12
  6. package/dist/index131.js +1 -1
  7. package/dist/index133.js +4 -4
  8. package/dist/index135.js +1 -1
  9. package/dist/index137.js +2 -2
  10. package/dist/index14.js +1 -1
  11. package/dist/index145.js +2 -2
  12. package/dist/index16.js +4 -4
  13. package/dist/index18.js +3 -3
  14. package/dist/index20.js +8 -8
  15. package/dist/index219.js +5 -33
  16. package/dist/index22.js +14 -14
  17. package/dist/index220.js +5 -28
  18. package/dist/index221.js +7 -0
  19. package/dist/index222.js +5 -5
  20. package/dist/index223.js +3 -8
  21. package/dist/index224.js +2 -2
  22. package/dist/index225.js +6 -4
  23. package/dist/index226.js +6 -32
  24. package/dist/index227.js +268 -2
  25. package/dist/index228.js +52 -3
  26. package/dist/index229.js +52 -2
  27. package/dist/index230.js +31 -12
  28. package/dist/index231.js +60 -3
  29. package/dist/index232.js +13 -188
  30. package/dist/index233.js +5 -3
  31. package/dist/index234.js +5 -9
  32. package/dist/index235.js +5 -4
  33. package/dist/index236.js +2 -20
  34. package/dist/index237.js +3 -201
  35. package/dist/index238.js +22 -0
  36. package/dist/index239.js +6 -6
  37. package/dist/index24.js +10 -10
  38. package/dist/index241.js +86 -2
  39. package/dist/index243.js +27 -15
  40. package/dist/index244.js +17 -106
  41. package/dist/{index242.js → index245.js} +4 -4
  42. package/dist/index246.js +15 -100
  43. package/dist/index247.js +14 -0
  44. package/dist/index248.js +16 -3
  45. package/dist/index249.js +2 -86
  46. package/dist/index250.js +4 -0
  47. package/dist/index251.js +3 -29
  48. package/dist/index252.js +5 -16
  49. package/dist/index253.js +8 -15
  50. package/dist/index254.js +33 -3
  51. package/dist/index255.js +28 -12
  52. package/dist/index257.js +2 -4
  53. package/dist/index258.js +184 -19
  54. package/dist/index259.js +3 -33
  55. package/dist/index26.js +3 -3
  56. package/dist/index260.js +13 -2
  57. package/dist/index261.js +4 -8
  58. package/dist/index262.js +22 -8
  59. package/dist/index263.js +13 -23
  60. package/dist/index264.js +9 -3
  61. package/dist/index265.js +6 -12
  62. package/dist/index266.js +3 -9
  63. package/dist/index267.js +33 -52
  64. package/dist/index268.js +4 -10
  65. package/dist/index269.js +201 -3
  66. package/dist/index271.js +9 -5
  67. package/dist/index272.js +23 -2
  68. package/dist/index273.js +32 -6
  69. package/dist/index274.js +10 -6
  70. package/dist/index275.js +9 -17
  71. package/dist/index276.js +2 -11
  72. package/dist/index277.js +100 -98
  73. package/dist/index279.js +100 -5
  74. package/dist/index28.js +1 -1
  75. package/dist/index281.js +18 -5
  76. package/dist/index282.js +12 -5
  77. package/dist/index283.js +4 -6
  78. package/dist/index284.js +99 -263
  79. package/dist/index285.js +3 -52
  80. package/dist/index286.js +60 -45
  81. package/dist/index287.js +6 -32
  82. package/dist/index288.js +15 -59
  83. package/dist/index289.js +2 -7
  84. package/dist/index290.js +7 -5
  85. package/dist/index291.js +7 -5
  86. package/dist/index292.js +9 -5
  87. package/dist/index293.js +53 -6
  88. package/dist/index294.js +20 -15
  89. package/dist/index295.js +5 -21
  90. package/dist/index296.js +9 -0
  91. package/dist/index297.js +1 -1
  92. package/dist/index298.js +17 -4
  93. package/dist/index299.js +28 -7
  94. package/dist/index30.js +2 -2
  95. package/dist/index301.js +3 -5
  96. package/dist/index302.js +280 -3
  97. package/dist/index303.js +2 -3
  98. package/dist/index304.js +16 -3
  99. package/dist/index305.js +2 -3
  100. package/dist/index306.js +16 -17
  101. package/dist/index307.js +2 -3
  102. package/dist/index308.js +26 -27
  103. package/dist/index309.js +2 -5
  104. package/dist/index310.js +1 -1
  105. package/dist/index311.js +1 -1
  106. package/dist/index312.js +2 -280
  107. package/dist/index313.js +2 -2
  108. package/dist/index314.js +2 -16
  109. package/dist/index315.js +3 -2
  110. package/dist/index316.js +121 -12
  111. package/dist/index317.js +2 -2
  112. package/dist/index318.js +13 -25
  113. package/dist/index32.js +2 -2
  114. package/dist/index320.js +19 -2
  115. package/dist/index321.js +2 -2
  116. package/dist/index322.js +1 -1
  117. package/dist/index323.js +5 -2
  118. package/dist/index324.js +3 -2
  119. package/dist/index325.js +2 -4
  120. package/dist/index326.js +3 -719
  121. package/dist/index327.js +3 -366
  122. package/dist/index328.js +5 -57
  123. package/dist/index329.js +719 -125
  124. package/dist/index330.js +366 -2
  125. package/dist/index331.js +56 -14
  126. package/dist/index332.js +2 -2
  127. package/dist/index333.js +4 -19
  128. package/dist/index334.js +4 -2
  129. package/dist/index335.js +6 -58
  130. package/dist/index336.js +7 -58
  131. package/dist/index337.js +5 -228
  132. package/dist/index338.js +34 -5
  133. package/dist/index339.js +6 -93
  134. package/dist/index34.js +8 -8
  135. package/dist/index340.js +128 -7
  136. package/dist/index341.js +397 -5
  137. package/dist/index342.js +57 -7
  138. package/dist/index343.js +58 -35
  139. package/dist/index344.js +7 -6
  140. package/dist/index345.js +17 -127
  141. package/dist/index346.js +7 -396
  142. package/dist/index347.js +12 -131
  143. package/dist/index348.js +8 -193
  144. package/dist/index349.js +6 -258
  145. package/dist/index350.js +8 -7
  146. package/dist/index351.js +91 -17
  147. package/dist/index352.js +22 -9
  148. package/dist/index354.js +228 -5
  149. package/dist/index355.js +133 -6
  150. package/dist/index356.js +193 -2
  151. package/dist/index357.js +258 -2
  152. package/dist/index358.js +1 -21
  153. package/dist/index359.js +4 -0
  154. package/dist/index36.js +4 -4
  155. package/dist/index363.js +1 -1
  156. package/dist/index38.js +19 -19
  157. package/dist/index40.js +6 -6
  158. package/dist/index42.js +2 -2
  159. package/dist/index44.js +8 -8
  160. package/dist/index46.js +6 -6
  161. package/dist/index50.js +2 -2
  162. package/dist/index54.js +1 -1
  163. package/dist/index56.js +1 -1
  164. package/dist/index58.js +2 -2
  165. package/dist/index62.js +5 -5
  166. package/dist/index68.js +1 -1
  167. package/dist/index81.js +5 -5
  168. package/dist/index83.js +1 -1
  169. package/dist/index85.js +2 -2
  170. package/dist/index87.js +3 -3
  171. package/dist/index89.js +1 -1
  172. package/dist/index92.js +3 -3
  173. package/dist/index94.js +2 -2
  174. package/dist/index96.js +4 -4
  175. package/package.json +14 -3
  176. package/dist/index256.js +0 -15
  177. package/dist/index270.js +0 -69
  178. package/dist/index278.js +0 -13
  179. package/dist/index280.js +0 -7
  180. package/dist/index300.js +0 -4
  181. package/dist/index353.js +0 -17
package/README.md CHANGED
@@ -1,18 +1,145 @@
1
- # Vue 3 + TypeScript + Vite
1
+ # BitBoss UI (`bitboss-ui`)
2
2
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3
+ Vue 3 component library used across BitBoss products. It ships typed building blocks (inputs, selects, tabs, navigation, overlays, and more), built with the Composition API, TypeScript, and Tailwind-oriented styling.
4
4
 
5
- ## Recommended IDE Setup
5
+ ---
6
6
 
7
- - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
7
+ ## What’s in the package
8
8
 
9
- ## Type Support For `.vue` Imports in TS
9
+ Published artifacts are **`dist/`** (ESM JavaScript, `.d.ts`, and **`index.css`**) plus this **README**. The sections below match how the library is organised in code and in the [documentation](https://ui-components-docs.vercel.app/).
10
10
 
11
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
11
+ ### Styles
12
12
 
13
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
13
+ - **Global stylesheet** import `bitboss-ui/styles.css` once. It bundles design tokens, base rules, and styles for all exported components (built from the library’s PostCSS/Tailwind pipeline).
14
14
 
15
- 1. Disable the built-in TypeScript Extension
16
- 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17
- 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
15
+ ### TypeScript: icons
16
+
17
+ - **`IconType`**, **`IconRegistry`** types used by icon-aware components; extend `IconRegistry` in your app to register project-specific icons.
18
+
19
+ ### Composables
20
+
21
+ | Composable | Role |
22
+ | ----------------------------- | --------------------------------------------------------- |
23
+ | `useBbConfig` | Global options for the kit (locale, defaults, etc.). |
24
+ | `useBroadcastChannelInstance` | Shared `BroadcastChannel` helper for cross-tab messaging. |
25
+ | `useConfirm` | Programmatic confirm / modal flows. |
26
+ | `useCountdown` | Countdown timer state. |
27
+ | `useMobile` | Mobile / viewport-oriented behaviour. |
28
+ | `useQueue` | Simple async task queue. |
29
+ | `useToast` | Toast notifications API. |
30
+
31
+ ### Base\* components (primitives)
32
+
33
+ Headless or low-level pieces used inside **Bb\*** wrappers or your own compositions:
34
+
35
+ - **Actions:** `BaseButton`
36
+ - **Text & numbers:** `BaseTextInput`, `BaseTextarea`, `BaseNumberInput`, `BaseTag`
37
+ - **Choice:** `BaseCheckbox`, `BaseCheckboxGroup`, `BaseRadio`, `BaseRadioGroup`, `BaseSwitch`, `BaseSwitchGroup`, `BaseSlider`, `BaseRating`
38
+ - **Rich inputs:** `BaseSelect`, `BaseColorInput`, `BaseDatePicker`, `BaseDatePickerInput`
39
+ - **Layout / chrome:** `BaseInputContainer`, `BaseDialog`
40
+
41
+ ### Bb\* components (composed)
42
+
43
+ Product-ready components with labels, hints, errors, and consistent styling:
44
+
45
+ - **Forms & actions:** `BbTextInput`, `BbTextarea`, `BbNumberInput`, `BbSelect`, `BbCheckbox`, `BbCheckboxGroup`, `BbRadio`, `BbRadioGroup`, `BbSwitch`, `BbSwitchGroup`, `BbSlider`, `BbRating`, `BbColorInput`, `BbDatePickerInput`, `BbButton`, `BbChip`, `BbTag`, `BbDropdown`, `BbDropdownButton`
46
+ - **Feedback:** `BbAlert`, `BbProgress`, `BbSpinner`, `BbToast`, `BbTooltip`
47
+ - **Layout & navigation:** `BbAccordion`, `BbCollapsible`, `BbTab`, `BbBreadcrumbs`, `BbPagination`, `BbRows`, `BbRatio`, `BbSmoothHeight`
48
+ - **Overlays & panels:** `BbDialog`, `BbConfirm`, `BbConfirmPortal`, `BbOffCanvas`, `BbPopover`
49
+ - **Data:** `BbTable`, `BbTree`
50
+ - **Media & files:** `BbAvatar`, `BbDropzone`, `BbIcon`
51
+ - **Utilities:** `BbIntersection`
52
+
53
+ ### Shared input shells
54
+
55
+ - **`CommonInputInnerContainer`**, **`CommonInputOuterContainer`** — layout primitives for building inputs that align with BitBoss spacing, icons, and clear buttons.
56
+
57
+ ### Exported component types
58
+
59
+ For most **Base\*** and **Bb\*** components, the package exports matching **props**, **events**, and (where relevant) **slots** types (for example `BbSelectProps`, `BaseSelectEvents`). Use them for typed wrappers and design-system layers; the docs list the full set per component.
60
+
61
+ ---
62
+
63
+ ## Documentation
64
+
65
+ **Primary docs (components, props, guides):**
66
+
67
+ - [BitBoss UI documentation](https://ui-components-docs.vercel.app/) — site with guides and API reference.
68
+
69
+ ---
70
+
71
+ ## BitBoss
72
+
73
+ This package is developed and maintained by [BitBoss](https://www.bitboss.it/), a software house based in Turin, Italy.
74
+
75
+ - [BitBoss — homepage](https://www.bitboss.it/)
76
+ - [BitBoss Developers](https://developers.bitboss.it/) — community and developer-facing resources
77
+
78
+ ---
79
+
80
+ ## Requirements
81
+
82
+ - **Vue** `^3.5.12` (peer dependency).
83
+ - **`@inertiajs/vue3`** — optional peer. Install it only if you use Inertia-specific helpers or components that expect an Inertia app; Nuxt and plain Vue apps can omit it.
84
+
85
+ ---
86
+
87
+ ## Installation
88
+
89
+ ```bash
90
+ npm install bitboss-ui
91
+ ```
92
+
93
+ ```bash
94
+ pnpm add bitboss-ui
95
+ ```
96
+
97
+ ```bash
98
+ yarn add bitboss-ui
99
+ ```
100
+
101
+ ---
102
+
103
+ ## Quick start
104
+
105
+ ### JavaScript / TypeScript
106
+
107
+ The package exposes ESM entry points (see `package.json` → `exports`).
108
+
109
+ ```ts
110
+ import { BbButton, BbTextInput, useToast } from 'bitboss-ui';
111
+ ```
112
+
113
+ ### Styles
114
+
115
+ Bundled CSS is published under the `styles` export:
116
+
117
+ ```ts
118
+ import 'bitboss-ui/styles.css';
119
+ ```
120
+
121
+ Use this once in your app entry (or in Nuxt/Vite global CSS) so components match the intended look and layout.
122
+
123
+ ## Local development (this repository)
124
+
125
+ Clone the repo, install dependencies, then:
126
+
127
+ | Command | Purpose |
128
+ | ------------------ | ---------------------------------- |
129
+ | `npm run dev` | Vite playground app |
130
+ | `npm run build` | Library build (`dist/`) |
131
+ | `npm run docs:dev` | Documentation site (VitePress) |
132
+ | `npm run lint` | ESLint + Stylelint (as configured) |
133
+
134
+ ---
135
+
136
+ ## Support
137
+
138
+ - **Usage and APIs:** see the [documentation](https://ui-components-docs.vercel.app/).
139
+ - **Company / licensing / commercial:** [BitBoss](https://www.bitboss.it/).
140
+
141
+ ---
142
+
143
+ ## Trademark
144
+
145
+ “BitBoss” and related branding are property of their respective owners. This README refers to the open npm package **`bitboss-ui`** and its documentation; it does not grant additional trademark rights.
package/dist/index108.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
- import { useItemValue as G } from "./index266.js";
3
- import { isNil as k } from "./index260.js";
4
- import { indexBy as U } from "./index295.js";
5
- import { hash as p } from "./index254.js";
6
- import { useItemsGetter as W } from "./index251.js";
7
- import { usePrefill as q } from "./index252.js";
8
- import { useIndexById as z } from "./index243.js";
9
- import { useBaseOptions as J } from "./index242.js";
10
- import { useHashedWatcher as K } from "./index255.js";
2
+ import { useItemValue as G } from "./index292.js";
3
+ import { isNil as k } from "./index257.js";
4
+ import { indexBy as U } from "./index294.js";
5
+ import { hash as p } from "./index223.js";
6
+ import { useItemsGetter as W } from "./index243.js";
7
+ import { usePrefill as q } from "./index248.js";
8
+ import { useIndexById as z } from "./index244.js";
9
+ import { useBaseOptions as J } from "./index245.js";
10
+ import { useHashedWatcher as K } from "./index247.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index115.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as _, mergeProps as a, createStaticVNode as x } from "vue";
2
- import { isCssColor as m } from "./index224.js";
2
+ import { isCssColor as m } from "./index249.js";
3
3
  const d = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -8,12 +8,12 @@ import Ce from "./index14.js";
8
8
  import Be from "./index113.js";
9
9
  /* empty css */
10
10
  import { useFrameworkDetection as Te } from "./index143.js";
11
- import { merge as qe } from "./index259.js";
12
- import { isNil as Le } from "./index260.js";
11
+ import { merge as qe } from "./index273.js";
12
+ import { isNil as Le } from "./index257.js";
13
13
  import { useQuery as Fe } from "./index11.js";
14
- import { hash as Ee } from "./index254.js";
14
+ import { hash as Ee } from "./index223.js";
15
15
  import { isNotNil as Ne } from "./index146.js";
16
- import { useLogger as Pe } from "./index261.js";
16
+ import { useLogger as Pe } from "./index226.js";
17
17
  const Ve = ["id"], Re = { class: "bb-tab__label-boundary" }, Ke = { class: "bb-tab__label" }, De = { class: "bb-tab__panes-container" }, We = ["id", "aria-labelledby", "tabindex"], rt = /* @__PURE__ */ fe({
18
18
  __name: "BbTab",
19
19
  props: {
package/dist/index123.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { defineComponent as he, mergeModels as X, ref as ke, computed as u, toRef as O, useModel as Y, watch as M, reactive as ge, createBlock as Z, openBlock as s, resolveDynamicComponent as xe, normalizeClass as i, withCtx as we, createElementBlock as o, createCommentVNode as p, createElementVNode as n, toDisplayString as m, renderSlot as c, unref as v, Fragment as k, renderList as x, normalizeStyle as H, createVNode as ee, createTextVNode as Ce, mergeProps as Ie } from "vue";
2
2
  import { clamp as Ve } from "./index217.js";
3
- import { hash as T } from "./index254.js";
4
- import { isNil as w } from "./index260.js";
5
- import { when as $e } from "./index225.js";
3
+ import { hash as T } from "./index223.js";
4
+ import { isNil as w } from "./index257.js";
5
+ import { when as $e } from "./index283.js";
6
6
  import { useId as Be } from "./index8.js";
7
- import { useItemValue as He } from "./index266.js";
8
- import { useItemsGetter as Te } from "./index251.js";
9
- import { usePrefill as Ae } from "./index252.js";
10
- import { useIndexById as le } from "./index243.js";
11
- import { useBaseOptions as Ne } from "./index242.js";
12
- import { useHashedWatcher as Le } from "./index255.js";
13
- import { useLocale as De } from "./index230.js";
7
+ import { useItemValue as He } from "./index292.js";
8
+ import { useItemsGetter as Te } from "./index243.js";
9
+ import { usePrefill as Ae } from "./index248.js";
10
+ import { useIndexById as le } from "./index244.js";
11
+ import { useBaseOptions as Ne } from "./index245.js";
12
+ import { useHashedWatcher as Le } from "./index247.js";
13
+ import { useLocale as De } from "./index232.js";
14
14
  import ae from "./index18.js";
15
15
  /* empty css */
16
16
  import Ee from "./index32.js";
17
17
  /* empty css */
18
- import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index267.js";
19
- import { useLogger as Me } from "./index261.js";
18
+ import { columnKeyToSlotName as Pe, mergeHeaderClasses as Se, applyFixedTableColumns as Re, mergeCellClasses as Oe } from "./index293.js";
19
+ import { useLogger as Me } from "./index226.js";
20
20
  const Fe = {
21
21
  key: 0,
22
22
  class: "sr-only"
package/dist/index131.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as a, createElementBlock as o, openBlock as e, normalizeClass as c, createVNode as l, TransitionGroup as m, withCtx as i, Fragment as p, renderList as u, unref as r, createBlock as f, mergeProps as _ } from "vue";
2
2
  import { useToast as d, state as k } from "./index12.js";
3
- import b from "./index270.js";
3
+ import b from "./index286.js";
4
4
  const $ = /* @__PURE__ */ a({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index133.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as R, mergeModels as U, ref as L, computed as v, useTemplateRef as W, useModel as x, watch as m, onBeforeUnmount as F, createElementBlock as I, openBlock as g, Fragment as _, renderSlot as k, createCommentVNode as C, createVNode as j, normalizeProps as q, mergeProps as B, withCtx as T, createElementVNode as f, normalizeStyle as G, createBlock as H, unref as J } from "vue";
2
2
  import { useId as K } from "./index8.js";
3
- import { useLocale as Q } from "./index230.js";
4
- import { useUntil as X } from "./index256.js";
3
+ import { useLocale as Q } from "./index232.js";
4
+ import { useUntil as X } from "./index260.js";
5
5
  import Y from "./index14.js";
6
6
  /* empty css */
7
7
  import Z from "./index239.js";
8
8
  /* empty css */
9
9
  import { useElementSize as ee } from "./index142.js";
10
- import { extractDomContainer as V } from "./index257.js";
11
- import { parseWidthString as te } from "./index258.js";
10
+ import { extractDomContainer as V } from "./index261.js";
11
+ import { parseWidthString as te } from "./index262.js";
12
12
  const ce = /* @__PURE__ */ R({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbTooltip",
package/dist/index135.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index271.js";
2
+ import { flattenTree as T } from "./index295.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index137.js CHANGED
@@ -5,8 +5,8 @@ import u from "./index87.js";
5
5
  /* empty css */
6
6
  import I from "./index115.js";
7
7
  /* empty css */
8
- import N from "./index219.js";
9
- import g from "./index220.js";
8
+ import N from "./index254.js";
9
+ import g from "./index255.js";
10
10
  /* empty css */
11
11
  const h = { class: "bb-common-input-inner-container__prefix" }, B = { class: "bb-common-input-inner-container__suffix" }, R = /* @__PURE__ */ k({
12
12
  __name: "CommonInputInnerContainer",
package/dist/index14.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, getCurrentInstance as P, computed as r, createBlock as c, openBlock as i, mergeProps as f, withCtx as v, renderSlot as d, createTextVNode as p, toDisplayString as h, resolveDynamicComponent as b } from "vue";
2
- import R from "./index226.js";
2
+ import R from "./index267.js";
3
3
  import { useFrameworkDetection as _ } from "./index143.js";
4
4
  import { _config as g } from "./index4.js";
5
5
  const D = /* @__PURE__ */ w({
package/dist/index145.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index222.js";
2
- import { isPlainObject as i } from "./index223.js";
1
+ import { isArray as p } from "./index252.js";
2
+ import { isPlainObject as i } from "./index253.js";
3
3
  function f(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index16.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as H, ref as s, computed as M, createBlock as D, openBlock as E, normalizeClass as I, withCtx as l, createVNode as d, unref as u, withDirectives as L, createElementVNode as p, mergeProps as _, renderSlot as r, withModifiers as q, normalizeStyle as N } from "vue";
2
- import { isHex as z } from "./index235.js";
2
+ import { isHex as z } from "./index268.js";
3
3
  import { isNotNil as F } from "./index146.js";
4
4
  import { useId as S } from "./index8.js";
5
- import { useLocale as U } from "./index230.js";
6
- import { vMaska as A } from "./index236.js";
7
- import K from "./index237.js";
5
+ import { useLocale as U } from "./index232.js";
6
+ import { vMaska as A } from "./index238.js";
7
+ import K from "./index269.js";
8
8
  /* empty css */
9
9
  import O from "./index137.js";
10
10
  /* empty css */
package/dist/index18.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as _, ref as i, computed as t, watch as F, createElementBlock as p, openBlock as h, normalizeProps as d, guardReactiveProps as f, createCommentVNode as L, createElementVNode as s, mergeProps as k, renderSlot as M } from "vue";
2
- import { isCssColor as y } from "./index224.js";
3
- import { booleanishToBoolean as q } from "./index227.js";
4
- import { isEqual as A } from "./index228.js";
2
+ import { isCssColor as y } from "./index249.js";
3
+ import { booleanishToBoolean as q } from "./index250.js";
4
+ import { isEqual as A } from "./index251.js";
5
5
  const N = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index20.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as z, ref as B, toRef as p, computed as G, createBlock as R, openBlock as W, unref as T, withCtx as n, renderSlot as s, normalizeProps as f, guardReactiveProps as h, createVNode as K, mergeProps as w } from "vue";
2
2
  import N from "./index18.js";
3
3
  /* empty css */
4
- import U from "./index249.js";
4
+ import U from "./index241.js";
5
5
  /* empty css */
6
- import { useItemsGetter as q } from "./index251.js";
7
- import { useIndexById as C } from "./index243.js";
8
- import { useBaseOptions as J } from "./index242.js";
9
- import { useCoherence as Q } from "./index253.js";
10
- import { hash as X } from "./index254.js";
11
- import { useHashedWatcher as $ } from "./index255.js";
12
- import { usePrefill as Y } from "./index252.js";
6
+ import { useItemsGetter as q } from "./index243.js";
7
+ import { useIndexById as C } from "./index244.js";
8
+ import { useBaseOptions as J } from "./index245.js";
9
+ import { useCoherence as Q } from "./index246.js";
10
+ import { hash as X } from "./index223.js";
11
+ import { useHashedWatcher as $ } from "./index247.js";
12
+ import { usePrefill as Y } from "./index248.js";
13
13
  const ce = /* @__PURE__ */ z({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index219.js CHANGED
@@ -1,35 +1,7 @@
1
- import { createElementBlock as e, openBlock as t, createElementVNode as o } from "vue";
2
- /* empty css */
3
- import n from "./index215.js";
4
- const l = {}, s = {
5
- class: "bb-error-icon",
6
- fill: "none",
7
- viewBox: "0 0 20 20",
8
- xmlns: "http://www.w3.org/2000/svg"
9
- };
10
- function i(c, r) {
11
- return t(), e("svg", s, r[0] || (r[0] = [
12
- o("path", {
13
- d: "M9.99422 18.3333C14.5966 18.3333 18.3276 14.6024 18.3276 9.99999C18.3276 5.39762 14.5966 1.66666 9.99422 1.66666C5.39185 1.66666 1.66089 5.39762 1.66089 9.99999C1.66089 14.6024 5.39185 18.3333 9.99422 18.3333Z",
14
- fill: "currentColor"
15
- }, null, -1),
16
- o("path", {
17
- d: "M9.99414 6.66666V9.99999",
18
- stroke: "white",
19
- "stroke-linecap": "round",
20
- "stroke-linejoin": "round",
21
- "stroke-width": "2"
22
- }, null, -1),
23
- o("path", {
24
- d: "M9.99414 13.3333H10.0025",
25
- stroke: "white",
26
- "stroke-linecap": "round",
27
- "stroke-linejoin": "round",
28
- "stroke-width": "2"
29
- }, null, -1)
30
- ]));
31
- }
32
- const a = /* @__PURE__ */ n(l, [["render", i]]);
1
+ import { getDefaultExportFromCjs as r } from "./index335.js";
2
+ import { __require as o } from "./index302.js";
3
+ var t = o();
4
+ const s = /* @__PURE__ */ r(t);
33
5
  export {
34
- a as default
6
+ s as default
35
7
  };
package/dist/index22.js CHANGED
@@ -5,20 +5,20 @@ import { _config as Q } from "./index4.js";
5
5
  import { useId as X } from "./index8.js";
6
6
  import b from "./index14.js";
7
7
  /* empty css */
8
- import d from "./index279.js";
9
- import ee from "./index280.js";
10
- import ae from "./index281.js";
11
- import te from "./index282.js";
12
- import { hash as B } from "./index254.js";
13
- import { last as le } from "./index241.js";
14
- import { validateDateFormat as L } from "./index283.js";
15
- import { useLogger as oe } from "./index261.js";
16
- import re from "./index284.js";
17
- import se from "./index285.js";
18
- import de from "./index286.js";
19
- import S from "./index287.js";
20
- import ie from "./index288.js";
21
- import { useLocale as ne } from "./index230.js";
8
+ import d from "./index219.js";
9
+ import ee from "./index220.js";
10
+ import ae from "./index221.js";
11
+ import te from "./index222.js";
12
+ import { hash as B } from "./index223.js";
13
+ import { last as le } from "./index224.js";
14
+ import { validateDateFormat as L } from "./index225.js";
15
+ import { useLogger as oe } from "./index226.js";
16
+ import re from "./index227.js";
17
+ import se from "./index228.js";
18
+ import de from "./index229.js";
19
+ import S from "./index230.js";
20
+ import ie from "./index231.js";
21
+ import { useLocale as ne } from "./index232.js";
22
22
  const ue = { class: "bb-base-date-picker" }, me = { class: "bb-base-date-picker__body" }, ce = { class: "bb-base-date-picker__controls" }, pe = { class: "sr-only" }, fe = { class: "sr-only" }, be = { class: "sr-only" }, ve = {
23
23
  style: { transform: "rotate(180deg)" },
24
24
  viewBox: "0 0 24 24",
package/dist/index220.js CHANGED
@@ -1,30 +1,7 @@
1
- import { defineComponent as l, createElementBlock as n, openBlock as r, unref as a, createElementVNode as t } from "vue";
2
- import { useLocale as s } from "./index230.js";
3
- const c = ["aria-label"], b = /* @__PURE__ */ l({
4
- __name: "ClearableButton",
5
- setup(u) {
6
- const { t: o } = s();
7
- return (i, e) => (r(), n("button", {
8
- "aria-label": a(o)("common.clearLabel").value,
9
- class: "bb-clearable-button",
10
- type: "button"
11
- }, e[0] || (e[0] = [
12
- t("svg", {
13
- viewBox: "0 0 24 24",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, [
16
- t("path", {
17
- d: "M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",
18
- fill: "none",
19
- stroke: "currentColor",
20
- "stroke-linecap": "round",
21
- "stroke-linejoin": "round",
22
- "stroke-width": "2"
23
- })
24
- ], -1)
25
- ]), 8, c));
26
- }
27
- });
1
+ import { getDefaultExportFromCjs as r } from "./index335.js";
2
+ import { __require as e } from "./index304.js";
3
+ var t = e();
4
+ const m = /* @__PURE__ */ r(t);
28
5
  export {
29
- b as default
6
+ m as default
30
7
  };
@@ -0,0 +1,7 @@
1
+ import { getDefaultExportFromCjs as r } from "./index335.js";
2
+ import { __require as e } from "./index306.js";
3
+ var o = e();
4
+ const m = /* @__PURE__ */ r(o);
5
+ export {
6
+ m as default
7
+ };
package/dist/index222.js CHANGED
@@ -1,7 +1,7 @@
1
- import { getType as t } from "./index325.js";
2
- function o(r) {
3
- return t(r) === "Array";
4
- }
1
+ import { getDefaultExportFromCjs as e } from "./index335.js";
2
+ import { __require as r } from "./index308.js";
3
+ var o = r();
4
+ const f = /* @__PURE__ */ e(o);
5
5
  export {
6
- o as isArray
6
+ f as default
7
7
  };
package/dist/index223.js CHANGED
@@ -1,10 +1,5 @@
1
- import { getType as o } from "./index325.js";
2
- function c(e) {
3
- if (o(e) !== "Object")
4
- return !1;
5
- const t = Object.getPrototypeOf(e);
6
- return !!t && t.constructor === Object && t === Object.prototype;
7
- }
1
+ import { hash as o } from "./index299.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
8
3
  export {
9
- c as isPlainObject
4
+ t as hash
10
5
  };
package/dist/index224.js CHANGED
@@ -1,4 +1,4 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ const e = (t) => t[t.length - 1];
2
2
  export {
3
- s as isCssColor
3
+ e as last
4
4
  };
package/dist/index225.js CHANGED
@@ -1,6 +1,8 @@
1
- import { curry as e } from "./index298.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ function e(t, r) {
2
+ if (!/\d{4}-\d{2}-\d{2}/.test(t))
3
+ throw new Error(`${r} must be in the format YYYY-MM-DD`);
4
+ return t;
5
+ }
3
6
  export {
4
- t as baseWhen,
5
- s as when
7
+ e as validateDateFormat
6
8
  };
package/dist/index226.js CHANGED
@@ -1,36 +1,10 @@
1
- import { defineComponent as a, resolveComponent as o, createBlock as u, openBlock as l, resolveDynamicComponent as m, unref as c, withCtx as p, renderSlot as f } from "vue";
2
- import { _config as e } from "./index4.js";
3
- import { useLogger as i } from "./index261.js";
4
- import { useFrameworkDetection as k } from "./index143.js";
5
- const y = /* @__PURE__ */ a({
6
- __name: "RouterComponent",
7
- setup(g) {
8
- const { isInertia: r, isNuxt: s } = k();
9
- let t;
10
- if (r) {
11
- if (t = o(e.inertiaLinkName), typeof t == "string") {
12
- const { warn: n } = i();
13
- n(
14
- `Inertia link component "${e.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
15
- );
16
- }
17
- } else if (s) {
18
- if (t = o(e.nuxtLinkName), typeof t == "string") {
19
- const { warn: n } = i();
20
- n(
21
- `Nuxt link component "${e.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${e.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${e.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
22
- );
23
- }
24
- } else
25
- t = "router-link";
26
- return (n, d) => (l(), u(m(c(t)), null, {
27
- default: p(() => [
28
- f(n.$slots, "default")
29
- ]),
30
- _: 3
31
- }));
1
+ const o = "bitboss-ui | ", e = () => ({
2
+ warn: (r) => console.warn(`${o}${r}`),
3
+ error: (r) => console.error(`${o}${r}`),
4
+ throw: (r) => {
5
+ throw new Error(`${o}${r}`);
32
6
  }
33
7
  });
34
8
  export {
35
- y as default
9
+ e as useLogger
36
10
  };