bitboss-ui 2.1.97 → 2.1.99

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 (183) hide show
  1. package/README.md +138 -11
  2. package/dist/composables/useConfirm.d.ts +59 -10
  3. package/dist/index108.js +9 -9
  4. package/dist/index115.js +1 -1
  5. package/dist/index121.js +4 -4
  6. package/dist/index123.js +12 -12
  7. package/dist/index131.js +1 -1
  8. package/dist/index133.js +5 -5
  9. package/dist/index135.js +1 -1
  10. package/dist/index137.js +2 -2
  11. package/dist/index14.js +1 -1
  12. package/dist/index145.js +2 -2
  13. package/dist/index16.js +5 -5
  14. package/dist/index18.js +3 -3
  15. package/dist/index20.js +8 -8
  16. package/dist/index219.js +4 -32
  17. package/dist/index22.js +14 -14
  18. package/dist/index220.js +8 -28
  19. package/dist/index221.js +5 -0
  20. package/dist/index222.js +3 -5
  21. package/dist/index223.js +2 -8
  22. package/dist/index224.js +18 -2
  23. package/dist/index225.js +12 -4
  24. package/dist/index226.js +49 -32
  25. package/dist/index227.js +15 -2
  26. package/dist/index228.js +12 -3
  27. package/dist/index229.js +17 -2
  28. package/dist/index230.js +29 -13
  29. package/dist/index231.js +13 -3
  30. package/dist/index232.js +15 -187
  31. package/dist/index233.js +4 -3
  32. package/dist/index234.js +106 -9
  33. package/dist/index236.js +99 -19
  34. package/dist/{index239.js → index238.js} +6 -6
  35. package/dist/index24.js +11 -11
  36. package/dist/index240.js +106 -0
  37. package/dist/index241.js +13 -2
  38. package/dist/index242.js +2 -51
  39. package/dist/index243.js +11 -17
  40. package/dist/index244.js +81 -101
  41. package/dist/index246.js +10 -100
  42. package/dist/index247.js +5 -0
  43. package/dist/index248.js +4 -3
  44. package/dist/index249.js +3 -86
  45. package/dist/index250.js +4 -0
  46. package/dist/index251.js +5 -29
  47. package/dist/index252.js +5 -16
  48. package/dist/index253.js +5 -15
  49. package/dist/index254.js +5 -3
  50. package/dist/index255.js +5 -12
  51. package/dist/index256.js +5 -13
  52. package/dist/index257.js +2 -4
  53. package/dist/index258.js +18 -21
  54. package/dist/index259.js +8 -32
  55. package/dist/index26.js +3 -3
  56. package/dist/index260.js +21 -2
  57. package/dist/index261.js +32 -6
  58. package/dist/index262.js +32 -8
  59. package/dist/index263.js +28 -23
  60. package/dist/index265.js +21 -11
  61. package/dist/index266.js +8 -8
  62. package/dist/index267.js +23 -53
  63. package/dist/index268.js +6 -9
  64. package/dist/index269.js +5 -3
  65. package/dist/index270.js +6 -67
  66. package/dist/index271.js +8 -5
  67. package/dist/index272.js +268 -2
  68. package/dist/index273.js +52 -7
  69. package/dist/index274.js +52 -7
  70. package/dist/index275.js +31 -17
  71. package/dist/index276.js +60 -12
  72. package/dist/index277.js +3 -104
  73. package/dist/index278.js +33 -11
  74. package/dist/index279.js +188 -5
  75. package/dist/index28.js +1 -1
  76. package/dist/index280.js +3 -5
  77. package/dist/index281.js +53 -5
  78. package/dist/index282.js +2 -5
  79. package/dist/index283.js +2 -6
  80. package/dist/index284.js +7 -268
  81. package/dist/index285.js +7 -52
  82. package/dist/index286.js +4 -52
  83. package/dist/index287.js +195 -26
  84. package/dist/index289.js +67 -7
  85. package/dist/index290.js +13 -5
  86. package/dist/index291.js +5 -5
  87. package/dist/index292.js +3 -5
  88. package/dist/index293.js +3 -3
  89. package/dist/index295.js +8 -20
  90. package/dist/index297.js +1 -1
  91. package/dist/index298.js +2 -4
  92. package/dist/index299.js +3 -7
  93. package/dist/index30.js +2 -2
  94. package/dist/index300.js +17 -2
  95. package/dist/index301.js +28 -5
  96. package/dist/index302.js +1 -1
  97. package/dist/index303.js +1 -1
  98. package/dist/index304.js +1 -1
  99. package/dist/index305.js +7 -3
  100. package/dist/index306.js +2 -17
  101. package/dist/index307.js +4 -3
  102. package/dist/index308.js +3 -27
  103. package/dist/index309.js +280 -5
  104. package/dist/index310.js +2 -2
  105. package/dist/index311.js +125 -2
  106. package/dist/index312.js +2 -280
  107. package/dist/index313.js +15 -2
  108. package/dist/index314.js +2 -16
  109. package/dist/index315.js +16 -2
  110. package/dist/index316.js +2 -16
  111. package/dist/index317.js +16 -2
  112. package/dist/index318.js +2 -27
  113. package/dist/index319.js +19 -2
  114. package/dist/index32.js +2 -2
  115. package/dist/index320.js +2 -2
  116. package/dist/index321.js +5 -2
  117. package/dist/index322.js +27 -2
  118. package/dist/index323.js +2 -2
  119. package/dist/index324.js +1 -1
  120. package/dist/index325.js +2 -4
  121. package/dist/index326.js +2 -719
  122. package/dist/index327.js +2 -366
  123. package/dist/index328.js +2 -57
  124. package/dist/index329.js +2 -125
  125. package/dist/index330.js +3 -2
  126. package/dist/index331.js +5 -15
  127. package/dist/index332.js +719 -2
  128. package/dist/index333.js +366 -19
  129. package/dist/index334.js +57 -2
  130. package/dist/index335.js +35 -58
  131. package/dist/index336.js +6 -58
  132. package/dist/index337.js +123 -222
  133. package/dist/index338.js +397 -5
  134. package/dist/index339.js +191 -91
  135. package/dist/index34.js +8 -8
  136. package/dist/index340.js +258 -8
  137. package/dist/index341.js +58 -6
  138. package/dist/index342.js +57 -7
  139. package/dist/index343.js +5 -34
  140. package/dist/index344.js +7 -6
  141. package/dist/index345.js +17 -127
  142. package/dist/index346.js +7 -396
  143. package/dist/index347.js +12 -131
  144. package/dist/index348.js +5 -193
  145. package/dist/index349.js +7 -258
  146. package/dist/index350.js +92 -6
  147. package/dist/index351.js +132 -17
  148. package/dist/index352.js +2 -9
  149. package/dist/index353.js +2 -15
  150. package/dist/index354.js +22 -5
  151. package/dist/index356.js +8 -2
  152. package/dist/index357.js +6 -2
  153. package/dist/index358.js +8 -22
  154. package/dist/index359.js +230 -0
  155. package/dist/index36.js +4 -4
  156. package/dist/index363.js +1 -1
  157. package/dist/index38.js +20 -20
  158. package/dist/index40.js +6 -6
  159. package/dist/index42.js +2 -2
  160. package/dist/index44.js +8 -8
  161. package/dist/index46.js +6 -6
  162. package/dist/index50.js +2 -2
  163. package/dist/index54.js +1 -1
  164. package/dist/index56.js +1 -1
  165. package/dist/index58.js +2 -2
  166. package/dist/index6.js +33 -32
  167. package/dist/index62.js +5 -5
  168. package/dist/index68.js +1 -1
  169. package/dist/index74.js +1 -1
  170. package/dist/index76.js +5 -5
  171. package/dist/index81.js +6 -6
  172. package/dist/index83.js +1 -1
  173. package/dist/index87.js +3 -3
  174. package/dist/index89.js +1 -1
  175. package/dist/index92.js +3 -3
  176. package/dist/index94.js +2 -2
  177. package/dist/index96.js +5 -5
  178. package/package.json +13 -2
  179. package/dist/index235.js +0 -6
  180. package/dist/index237.js +0 -203
  181. package/dist/index264.js +0 -5
  182. package/dist/index288.js +0 -62
  183. package/dist/index355.js +0 -9
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.
@@ -2,30 +2,75 @@ import { DeepReadonly, Ref } from 'vue';
2
2
  import { Sizes } from '../components/BaseDialog/BaseDialog.vue';
3
3
  export type ConfirmState = {
4
4
  current: StackMessage | null;
5
+ loading: boolean;
6
+ noBusy: boolean;
5
7
  processing: boolean;
6
8
  yesBusy: boolean;
7
- noBusy: boolean;
8
- loading: boolean;
9
9
  };
10
+ /**
11
+ * Configuration options for a single `confirm()` call.
12
+ *
13
+ * Defaults applied by `confirm()`:
14
+ * - `yesText: "OK"`
15
+ * - `noText: "Annulla"`
16
+ * - `dismissAsNo: true`
17
+ *
18
+ * Notes:
19
+ * - `autoClose` is opt-in. When omitted, resolve/reject does not close the dialog automatically.
20
+ * - `timeout` enables automatic close behavior and resolves as `false` when it elapses.
21
+ * - `returning: true` makes the confirm promise resolve with callback return values.
22
+ */
10
23
  export type ConfirmMessage = {
11
- text?: string;
12
- theme?: string;
13
- size?: keyof Sizes;
24
+ /** Shows footer action buttons. Set `false` for content-only confirms. */
14
25
  actions?: boolean;
15
- yes?: boolean;
26
+ /**
27
+ * When `true`, closes the dialog after resolve/reject if no messages are queued.
28
+ * When omitted, close is handled manually through `useConfirm().close()`.
29
+ */
30
+ autoClose?: boolean;
31
+ /**
32
+ * Controls whether implicit dismissals (overlay, X button, timeout, escape) trigger `onNo`.
33
+ * Explicit "No" button clicks always trigger `onNo` when provided.
34
+ *
35
+ * @default true
36
+ */
37
+ dismissAsNo?: boolean;
38
+ /** Enables/disables the "No" action button. */
16
39
  no?: boolean;
17
- yesText?: string;
40
+ /** Label for the "No" action button. */
18
41
  noText?: string;
19
- onYes?: () => unknown | Promise<unknown>;
42
+ /** Callback executed for a negative outcome. Can be async. */
20
43
  onNo?: () => unknown | Promise<unknown>;
44
+ /** Callback executed for a positive outcome. Can be async. */
45
+ onYes?: () => unknown | Promise<unknown>;
46
+ /**
47
+ * When `true`, resolves with `onYes` / `onNo` return value instead of `true` / `false`.
48
+ */
21
49
  returning?: boolean;
22
- autoClose?: boolean;
50
+ /** Dialog size forwarded to `BaseDialog`. */
51
+ size?: keyof Sizes;
52
+ /** Body text content shown in the confirm dialog. */
53
+ text?: string;
54
+ /** Visual theme name forwarded to confirm UI. */
55
+ theme?: string;
56
+ /**
57
+ * Auto-dismiss time in milliseconds.
58
+ * When set, dismissal is treated as `false` and dialog auto-closes.
59
+ */
23
60
  timeout?: number;
61
+ /** Enables/disables the "Yes" action button. */
62
+ yes?: boolean;
63
+ /** Label for the "Yes" action button. */
64
+ yesText?: string;
24
65
  } & ({
66
+ /** Hides the header of the confirm dialog. */
25
67
  hideHeader: true;
68
+ /** Title of the confirm dialog. */
26
69
  title?: string;
27
70
  } | {
71
+ /** Hides the header of the confirm dialog. */
28
72
  hideHeader?: false;
73
+ /** Title of the confirm dialog. */
29
74
  title: string;
30
75
  });
31
76
  type StackMessage = ConfirmMessage & {
@@ -40,8 +85,12 @@ export declare const confirmState: Ref<DeepReadonly<ConfirmState>>;
40
85
  /**
41
86
  * Handles user interaction with the confirm dialog.
42
87
  * Executes the appropriate callback and resolves/rejects the promise.
88
+ *
89
+ * @param explicit - `true` when the user chose “No” via the No button (or portal `no`).
90
+ * `false` for backdrop / close icon / timeout. `onNo` runs when `explicit` is true, or when
91
+ * `dismissAsNo` is true for an implicit dismiss.
43
92
  */
44
- export declare const processMessage: (value: boolean) => Promise<void>;
93
+ export declare const processMessage: (value: boolean, explicit?: boolean) => Promise<void>;
45
94
  /** Composable for programmatically showing confirm dialogs. */
46
95
  export declare const useConfirm: () => {
47
96
  confirm: <T extends ConfirmMessage>(message: T) => Promise<ReturnedValue<T>>;
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 "./index259.js";
3
+ import { isNil as k } from "./index242.js";
4
+ import { indexBy as U } from "./index260.js";
5
+ import { hash as p } from "./index221.js";
6
+ import { useItemsGetter as W } from "./index230.js";
7
+ import { usePrefill as q } from "./index232.js";
8
+ import { useIndexById as z } from "./index229.js";
9
+ import { useBaseOptions as J } from "./index226.js";
10
+ import { useHashedWatcher as K } from "./index228.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 "./index250.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 "./index278.js";
12
+ import { isNil as Le } from "./index242.js";
13
13
  import { useQuery as Fe } from "./index11.js";
14
- import { hash as Ee } from "./index254.js";
14
+ import { hash as Ee } from "./index221.js";
15
15
  import { isNotNil as Ne } from "./index146.js";
16
- import { useLogger as Pe } from "./index261.js";
16
+ import { useLogger as Pe } from "./index271.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 "./index221.js";
4
+ import { isNil as w } from "./index242.js";
5
+ import { when as $e } from "./index233.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 "./index259.js";
8
+ import { useItemsGetter as Te } from "./index230.js";
9
+ import { usePrefill as Ae } from "./index232.js";
10
+ import { useIndexById as le } from "./index229.js";
11
+ import { useBaseOptions as Ne } from "./index226.js";
12
+ import { useHashedWatcher as Le } from "./index228.js";
13
+ import { useLocale as De } from "./index231.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 "./index281.js";
19
+ import { useLogger as Me } from "./index271.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 "./index289.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 "./index231.js";
4
+ import { useUntil as X } from "./index241.js";
5
5
  import Y from "./index14.js";
6
6
  /* empty css */
7
- import Z from "./index239.js";
7
+ import Z from "./index238.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 "./index248.js";
11
+ import { parseWidthString as te } from "./index265.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 "./index291.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 "./index262.js";
9
+ import g from "./index263.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 "./index261.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 "./index219.js";
2
+ import { isPlainObject as i } from "./index220.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,15 +1,15 @@
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 "./index286.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 "./index231.js";
6
+ import { vMaska as A } from "./index258.js";
7
+ import K from "./index287.js";
8
8
  /* empty css */
9
9
  import O from "./index137.js";
10
10
  /* empty css */
11
11
  import P from "./index139.js";
12
- import T from "./index239.js";
12
+ import T from "./index238.js";
13
13
  /* empty css */
14
14
  const j = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], G = ["aria-label"], J = { class: "bb-common-input-inner-container__suffix" }, ie = /* @__PURE__ */ H({
15
15
  __name: "BaseColorInput",
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 "./index250.js";
3
+ import { booleanishToBoolean as q } from "./index282.js";
4
+ import { isEqual as A } from "./index249.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 "./index244.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 "./index230.js";
7
+ import { useIndexById as C } from "./index229.js";
8
+ import { useBaseOptions as J } from "./index226.js";
9
+ import { useCoherence as Q } from "./index227.js";
10
+ import { hash as X } from "./index221.js";
11
+ import { useHashedWatcher as $ } from "./index228.js";
12
+ import { usePrefill as Y } from "./index232.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
- ]));
1
+ import { getType as t } from "./index308.js";
2
+ function o(r) {
3
+ return t(r) === "Array";
31
4
  }
32
- const a = /* @__PURE__ */ n(l, [["render", i]]);
33
5
  export {
34
- a as default
6
+ o as isArray
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 "./index251.js";
9
+ import ee from "./index254.js";
10
+ import ae from "./index255.js";
11
+ import te from "./index269.js";
12
+ import { hash as B } from "./index221.js";
13
+ import { last as le } from "./index223.js";
14
+ import { validateDateFormat as L } from "./index270.js";
15
+ import { useLogger as oe } from "./index271.js";
16
+ import re from "./index272.js";
17
+ import se from "./index273.js";
18
+ import de from "./index274.js";
19
+ import S from "./index275.js";
20
+ import ie from "./index276.js";
21
+ import { useLocale as ne } from "./index231.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,10 @@
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 { getType as o } from "./index308.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
+ }
28
8
  export {
29
- b as default
9
+ c as isPlainObject
30
10
  };
@@ -0,0 +1,5 @@
1
+ import { hash as o } from "./index301.js";
2
+ const t = (r, h = "bb") => `${h}${o(r)}`;
3
+ export {
4
+ t as hash
5
+ };
package/dist/index222.js CHANGED
@@ -1,7 +1,5 @@
1
- import { getType as t } from "./index325.js";
2
- function o(r) {
3
- return t(r) === "Array";
4
- }
1
+ import { isNil as r } from "./index242.js";
2
+ const e = (t) => r(t) ? !0 : Array.isArray(t) || typeof t == "string" ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : typeof t == "number" ? Number.isNaN(t) : typeof t == "boolean" || typeof t == "function" ? !1 : typeof t == "object" ? "length" in t && typeof t.length == "number" ? t.length === 0 : Object.keys(t).length === 0 : !1;
5
3
  export {
6
- o as isArray
4
+ e as isEmpty
7
5
  };
package/dist/index223.js CHANGED
@@ -1,10 +1,4 @@
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
+ const e = (t) => t[t.length - 1];
8
2
  export {
9
- c as isPlainObject
3
+ e as last
10
4
  };