bitboss-ui 3.0.0-beta.75 → 3.0.0-beta.76

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 (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -416,7 +416,7 @@ For components accepting `items`:
416
416
 
417
417
  ## Icons Rule
418
418
 
419
- External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `iconDir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `iconWhitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
419
+ External-provider-first: prefer iconify provider icons — default set `lucide:*` — sourced from `@iconify-json/*` packages the consumer installs separately (`npm i -D @iconify-json/lucide`). Use `local:*` SVGs only for brand-specific art placed in the configured `icons.dir`. Only reference icons from installed providers or existing local files — **never invent icon names**. Provider icons ship only when written as a `prefix:name` literal somewhere in the project (any file type, PHP included) or listed in the plugin's `icons.whitelist`; the same rule applies in dev, and a name that does not resolve renders a placeholder and logs an error instead of throwing. Full workflow: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
420
420
 
421
421
  ## Variants Rule
422
422
 
@@ -649,7 +649,7 @@ Source of truth for integrating `bitboss-ui`. Two pieces are always required:
649
649
  3. [Register the runtime plugin](#2-vite--vue): `app.use(bitbossUiPlugin)` (automatic in Nuxt; in [Inertia](#4-inertia) it goes in `createInertiaApp`).
650
650
  4. [Styles](#5-styling): the plugin injects `styles.css` for you, so do not import it by hand. On Tailwind v4 also set `cssLayers`.
651
651
  5. [Locale](#locale-localekey-default-en): set `locale` (default `'en'`) and list any others in `enabledLocales`.
652
- 6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `iconDir` at your own SVG folder if you use `local:` icons.
652
+ 6. [Icons](#6-icons): install an `@iconify-json/*` set, and point `icons.dir` at your own SVG folder if you use `local:` icons.
653
653
  7. [SSR and Inertia notes](#4-inertia): the build plugin handles `noExternal` and the Inertia `Link`; in Nuxt do not call `app.use`.
654
654
  8. [App-wide defaults and area looks](#the-components-map): one `components` map (and `configScopes` / `<BbConfigScope>` for an area) instead of repeating props.
655
655
  9. [Set up coding agents](#8-ai-knowledge-base) so they find the docs and the MCP server: `setup` does it, every install keeps it current.
@@ -791,7 +791,7 @@ export default defineConfig({
791
791
  plugins: [
792
792
  vue(),
793
793
  bitbossUi({
794
- iconDir: './src/assets/icons',
794
+ icons: { dir: './src/assets/icons' },
795
795
  // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
796
796
  cssLayers: TAILWIND_V4_LAYERS,
797
797
  }),
@@ -824,7 +824,7 @@ The plugin registers no components globally: import each one where you use it
824
824
  (`import { BbButton, BbSelect } from 'bitboss-ui'`). Guide examples leave those
825
825
  imports out. In Nuxt, `autoImport: true` registers them instead (§3).
826
826
 
827
- If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `iconDir`.
827
+ If the icon folder does not exist yet, create it (`mkdir -p src/assets/icons`) and keep the path aligned with `icons.dir`.
828
828
 
829
829
  ## 3) Nuxt
830
830
 
@@ -837,7 +837,7 @@ import { TAILWIND_V4_LAYERS } from 'bitboss-ui/nuxt';
837
837
  export default defineNuxtConfig({
838
838
  modules: ['bitboss-ui/nuxt'],
839
839
  bitboss: {
840
- iconDir: './assets/icons', // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
840
+ icons: { dir: './assets/icons' }, // module default = app/assets/icons (relative to the Vite root, app/ under Nuxt 4)
841
841
  // Tailwind v4: keep this line (§5 Cascade layers). v3 or plain CSS: drop it.
842
842
  cssLayers: TAILWIND_V4_LAYERS,
843
843
  },
@@ -868,7 +868,7 @@ Registers the library's components and composables with Nuxt's auto-import syste
868
868
  export default defineNuxtConfig({
869
869
  modules: ['bitboss-ui/nuxt'],
870
870
  bitboss: {
871
- iconDir: './assets/icons',
871
+ icons: { dir: './assets/icons' },
872
872
  autoImport: true,
873
873
  },
874
874
  });
@@ -1002,7 +1002,7 @@ you the order:
1002
1002
 
1003
1003
  ```ts
1004
1004
  // vite.config.ts / the `bitboss` key in nuxt.config.ts
1005
- bitbossUi({ iconDir: '…', injectStyles: false, resetCss: false });
1005
+ bitbossUi({ icons: { dir: '…' }, injectStyles: false, resetCss: false });
1006
1006
  ```
1007
1007
 
1008
1008
  ```ts
@@ -1052,7 +1052,7 @@ by its first mention — so the order you configure is the order you get.
1052
1052
  import { bitbossUi, TAILWIND_V4_LAYERS } from 'bitboss-ui/vite';
1053
1053
 
1054
1054
  bitbossUi({
1055
- iconDir: './assets/icons',
1055
+ icons: { dir: './assets/icons' },
1056
1056
  cssLayers: TAILWIND_V4_LAYERS,
1057
1057
  });
1058
1058
  ```
@@ -1154,7 +1154,7 @@ it is the only way to get v4's behaviour on v3. Three edits, made together:
1154
1154
  import { bitbossUi, TAILWIND_V3_LAYERS } from 'bitboss-ui/vite';
1155
1155
 
1156
1156
  bitbossUi({
1157
- iconDir: './assets/icons',
1157
+ icons: { dir: './assets/icons' },
1158
1158
  // ['tailwind-base', 'bitboss-ui-reset', 'bitboss-ui', 'tailwind-utilities']
1159
1159
  cssLayers: TAILWIND_V3_LAYERS,
1160
1160
  // 3. v3 class names for the pt deduper: a module whose default export is
@@ -1179,7 +1179,7 @@ fixed by its first mention, so they agree rather than fight.
1179
1179
 
1180
1180
  ```ts
1181
1181
  bitbossUi({
1182
- iconDir: './assets/icons',
1182
+ icons: { dir: './assets/icons' },
1183
1183
  cssLayers: ['bitboss-ui'], // ['bitboss-ui-reset', 'bitboss-ui'] with resetCss: true
1184
1184
  });
1185
1185
  ```
@@ -1261,14 +1261,14 @@ Reach for the documented variable before reaching for a utility.
1261
1261
 
1262
1262
  ## 6) Icons
1263
1263
 
1264
- - `iconDir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
1264
+ - `icons.dir` (default `'./assets/icons'`) is scanned recursively for `.svg` files; each file becomes `local:<basename>`. **`local:` ships everything.**
1265
1265
  - Provider icons (`lucide:pencil`, `mdi:home`, …) require the matching `@iconify-json/<prefix>` package installed in the consumer app. **Providers ship only what is scanned or whitelisted**: the plugin reads the whole project as bytes — every file under the Vite root, PHP and Blade and JSON and SQL included — for `<prefix>:<name>` literals of the installed sets, and emits one lazy chunk per name that resolves. Skipped: gitignored paths (every `.gitignore` level), `node_modules`, `vendor`, `storage`, the build `outDir`, hidden paths, binaries, and `iconsScanner.exclude` globs; `iconsScanner.include` adds locations. The scan is cached by content hash under `node_modules/.cache/bitboss-ui/`, runs on 2–4 worker threads once a project passes ~1500 files (a cold scan is disk-bound, and the threads let a slow disk serve reads in parallel — roughly 0.2 s for 10k files on a laptop), prints one line (file count, elapsed, threads) after a cold scan, and stays silent when warm.
1266
1266
  - **This holds in dev exactly as in prod.** Dev registers the same scanned-plus-whitelisted set, re-scans a file on every save, and hot-updates the registry — a new literal renders without a restart, and a name that is neither scanned nor whitelisted fails on first render in dev instead of after deploy.
1267
- - **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `iconWhitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
1268
- - **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `iconWhitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `iconDir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
1267
+ - **Names the scanner cannot see** — composed at runtime, stored in a database, chosen in an admin UI — go in `icons.whitelist` (exact names or globs). An entry that resolves in no installed set fails the build with the actionable message.
1268
+ - **A name that does not resolve renders the built-in placeholder** (a question mark in a circle, sized and coloured like the icon it replaces, with `data-bb-icon-missing="<name>"`) and logs one `console.error` per name per page load, in both environments; dev also raises the Vite error overlay. The message is the fix: a mistyped name inside an installed set gets a "did you mean …?" hint, a real icon nobody wrote as a literal is told to use `icons.whitelist`, and an uninstalled prefix gets the list of installed sets plus the `npm install -D @iconify-json/<prefix>` command (the optional `@iconify/collections` peer only sharpens that wording, see [Install](#1-install)). A missing `local:` icon names the `.svg` that is not in `icons.dir`. `BbIcon` never throws for a missing name, so the surrounding tree stays mounted.
1269
1269
  - In dev (unless `vscodeSettings: false`) the plugin also writes `.vscode/bitboss-ui.local-icons.json` and wires `.vscode/settings.json` so the Iconify editor extension previews local icons and Tailwind IntelliSense completes inside `pt:*` / `:pt`. The collection lives in the project tree, not under `node_modules`, so a host editor sees what a container (Sail, a named `node_modules` volume) wrote.
1270
1270
 
1271
- Policy for choosing icons: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
1271
+ Choosing icons, and swapping the library's own: [Icons Policy](https://llms-bitboss-ui.bitboss.it/dist/ai/guides/icons-policy.md).
1272
1272
 
1273
1273
  ## The components map
1274
1274
 
@@ -1548,9 +1548,9 @@ fails the build naming its home:
1548
1548
 
1549
1549
  Options are the same for `bitboss-ui/vite` and the `bitboss` key in Nuxt.
1550
1550
 
1551
- ### `iconDir?: string` (default: `'./assets/icons'`)
1551
+ ### `icons.dir?: string` (default: `'./assets/icons'`)
1552
1552
 
1553
- Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `iconDir` that resolves to a missing or SVG-less folder logs a build warning.
1553
+ Path to local SVG icons, absolute, or relative to the Vite root: the project root in a Vite app, `app/` under Nuxt 4 (so the default `./assets/icons` there is `app/assets/icons`; do not write `./app/assets/icons`). Scanned recursively; file basename (without extension) becomes the icon name, addressable as `local:<name>`. Every file in it ships. Only needed when you use `local:` icons: a missing folder at the default path is silent, while a custom `icons.dir` that resolves to a missing or SVG-less folder logs a build warning.
1554
1554
 
1555
1555
  ### `iconsScanner?: { include?: string[]; exclude?: string[]; maxFileSize?: number }`
1556
1556
 
@@ -1562,7 +1562,7 @@ Tunes the provider-icon source scan (see [Icons](#6-icons)). All three are optio
1562
1562
 
1563
1563
  ```ts
1564
1564
  bitbossUi({
1565
- iconDir: './resources/icons',
1565
+ icons: { dir: './resources/icons' },
1566
1566
  iconsScanner: {
1567
1567
  include: ['vendor/acme/ui-kit/src'],
1568
1568
  exclude: ['database/dumps/**'],
@@ -1570,15 +1570,16 @@ bitbossUi({
1570
1570
  });
1571
1571
  ```
1572
1572
 
1573
- ### `iconWhitelist?: string[]`
1573
+ ### `icons.whitelist?: string[]`
1574
1574
 
1575
- Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). This is the home of every name the scanner cannot see as a literal: composed at runtime, read from a database, picked by an admin. An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
1575
+ Provider icons that **always** ship, scanned or not — exact names (`'tabler:crown'`) and globs (`'tabler:calendar-*'`, expanded against the installed set). An entry that resolves in no installed set — a typo, an uninstalled prefix, a glob matching nothing — **fails the build** with the same actionable message the dev overlay shows for a missing icon. `local:` names never belong here (they all ship already).
1576
1576
 
1577
1577
  ```ts
1578
1578
  bitbossUi({
1579
- iconDir: './resources/icons',
1580
- // `icon` is stored per category in the database; the admin picks from these.
1581
- iconWhitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
1579
+ icons: {
1580
+ dir: './resources/icons',
1581
+ whitelist: ['tabler:category', 'tabler:tag', 'tabler:calendar-*'],
1582
+ },
1582
1583
  });
1583
1584
  ```
1584
1585
 
@@ -1880,7 +1881,7 @@ anything. Apps that switch locales at runtime list what they offer:
1880
1881
 
1881
1882
  ```ts
1882
1883
  bitbossUi({
1883
- iconDir: './src/assets/icons',
1884
+ icons: { dir: './src/assets/icons' },
1884
1885
  locale: 'it',
1885
1886
  enabledLocales: ['it', 'en', 'de', 'fr'], // ~4 dictionaries + 4 dayjs packs
1886
1887
  });
@@ -2332,7 +2333,7 @@ leave it alone with no configuration, as long as they can see it is yours:
2332
2333
 
2333
2334
  - [ ] package installed (plus `@iconify-json/*` packages for every provider prefix used);
2334
2335
  - [ ] build plugin configured: `bitboss-ui/vite` plugin or `bitboss-ui/nuxt` module (`bitboss` config key);
2335
- - [ ] using `local:` icons? `iconDir` points at an existing SVG folder;
2336
+ - [ ] using `local:` icons? `icons.dir` points at an existing SVG folder;
2336
2337
  - [ ] runtime plugin installed: `app.use(bitbossUiPlugin)` (automatic in Nuxt);
2337
2338
  - [ ] style strategy chosen: auto injection (default) or `injectStyles: false` + `import 'bitboss-ui/styles.css'` — auto injection is always library-first, so a Tailwind **v3** app that needs Preflight to load before the library must take the second option (§5);
2338
2339
  - [ ] if a reset is required: `resetCss: true` or `import 'bitboss-ui/reset.css'`;
package/dist/llms.txt CHANGED
@@ -5,7 +5,7 @@
5
5
  ## AI Knowledge Base
6
6
 
7
7
  - [Core knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-medium.txt): **Fetch this if you can only fetch one file** — hard rules, setup, component picker, design language, and the full component catalogue in ~240 KB.
8
- - [Complete knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-full.txt): Everything concatenated (~6.2 MB). Bulk ingestion only — too large to prompt with.
8
+ - [Complete knowledge base](https://llms-bitboss-ui.bitboss.it/dist/llms-full.txt): Everything concatenated (~6.3 MB). Bulk ingestion only — too large to prompt with.
9
9
  - [AI Router](ai/guides/ai-router.md): **Start here** — tiny hop map for any coding agent (which file to open next).
10
10
  - [Component index](ai/index.md): Full component catalogue with agent rules, grouped by category. Each entry links a typed contract (props/events/slots/v-model).
11
11
  - [Component API files](ai/manifest/index.json): Machine-readable API, one JSON file per component (`manifest/components/<Name>.json`: every prop, event, slot, v-model and pt part, one per line, plus the public types it uses; a row marked `common: true` is whole in `manifest/common.json`) — open the index, then the one component. The same data in one ~1.2 MB file for tools is [components.json](ai/components.json); its `types` array lists the public TYPE exports with a `usage` tier (`api` = the ones you reach for) and, on the `api` ones, a `usedBy` array naming the component and prop or event each is the type OF — `BbTableColumn` is `usedBy` `BbTable.columns`, a value you pass, not a tag you write. This file is props and events, not paint.
package/dist/nuxt.js CHANGED
@@ -12,7 +12,7 @@ var _ = (e, t) => {
12
12
  name: "bitboss-ui",
13
13
  configKey: "bitboss"
14
14
  },
15
- defaults: { iconDir: "./assets/icons" },
15
+ defaults: { icons: { dir: "./assets/icons" } },
16
16
  setup(n, r) {
17
17
  let i = l(n) ?? u(n, c, "the `bitboss` key in nuxt.config");
18
18
  if (i) throw Error(i);