bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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.
- package/README.md +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
package/dist/vite.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import { DEFAULT_MAX_FILE_SIZE as e, IconScanner as t, extractIconCandidates as n, globToRegExp as r, hasGlobMagic as i, iconLiteralRegExp as a, iconScanCacheFile as o } from "./icon-scan.js";
|
|
2
2
|
import { BB_LAYERS as s, TAILWIND_V3_LAYERS as c, TAILWIND_V4_LAYERS as l, validateCssLayers as u } from "./utils/cssLayers.js";
|
|
3
|
-
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, nearestLocaleKey as
|
|
4
|
-
import { regionHints as
|
|
5
|
-
import { validatePtGlobalMap as
|
|
6
|
-
import {
|
|
3
|
+
import { BUILTIN_LOCALE_KEYS as d, DICTIONARY_HOME as f, LOCALE_TABLE as p, aliasesOf as ee, localeKeyOf as m, nearestLocaleKey as te } from "./i18n/regions.js";
|
|
4
|
+
import { regionHints as ne } from "./i18n/regionHints.js";
|
|
5
|
+
import { validatePtGlobalMap as re } from "./utils/passthrough.js";
|
|
6
|
+
import { closestName as ie, ptOfComponents as ae, validateComponentsMap as oe, validateConfigScopes as se, validateRemovedOptions as ce, withoutPt as le } from "./utils/configDefaults.js";
|
|
7
|
+
import { DEFAULT_VARIANT_REGISTRIES as h, VARIANT_COMPONENTS as ue, VARIANT_PT_COMPONENTS as g, VARIANT_REGISTRY_OPTIONS as _, customVariants as de, emptyStringControls as fe, flattenVariants as pe, isInTypeScriptProgram as me, projectVariantRegistries as he, resolveProjectDtsPath as ge, variantIconsOf as _e, variantOptionLabel as v, writeProjectDts as ve } from "./project-dts.js";
|
|
8
|
+
import { DEFAULTS_ALLOWLIST as y } from "./types/ConfigDefaults.js";
|
|
7
9
|
import { existsSync as b, mkdirSync as x, readFileSync as S, readdirSync as C, writeFileSync as w } from "node:fs";
|
|
8
|
-
import { basename as
|
|
9
|
-
import { fileURLToPath as
|
|
10
|
-
import { createRequire as
|
|
11
|
-
import { convertParsedSVG as
|
|
10
|
+
import { basename as ye, dirname as T, isAbsolute as E, join as D, relative as be, resolve as O } from "node:path";
|
|
11
|
+
import { fileURLToPath as xe } from "node:url";
|
|
12
|
+
import { createRequire as k } from "node:module";
|
|
13
|
+
import { convertParsedSVG as Se, getIconData as A, iconToHTML as j, iconToSVG as M, parseSVGContent as Ce, stringToIcon as we } from "@iconify/utils";
|
|
12
14
|
// src/vite-plugin.ts
|
|
13
|
-
function
|
|
14
|
-
let t =
|
|
15
|
+
function Te(e) {
|
|
16
|
+
let t = M(e, {
|
|
15
17
|
width: "unset",
|
|
16
18
|
height: "unset"
|
|
17
19
|
});
|
|
18
|
-
return
|
|
20
|
+
return j(t.body, t.attributes);
|
|
19
21
|
}
|
|
20
|
-
function
|
|
22
|
+
function Ee(e, t) {
|
|
21
23
|
try {
|
|
22
|
-
let n =
|
|
24
|
+
let n = k(D(e, "package.json"));
|
|
23
25
|
return JSON.parse(S(n.resolve(`${t}/icons.json`), "utf-8"));
|
|
24
26
|
} catch {
|
|
25
27
|
return null;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
|
-
function
|
|
30
|
+
function De(e, t) {
|
|
29
31
|
return e !== "heroicons" || !/-(?:20|16)-/.test(t);
|
|
30
32
|
}
|
|
31
|
-
function
|
|
32
|
-
let t =
|
|
33
|
+
function N(e) {
|
|
34
|
+
let t = O(e);
|
|
33
35
|
for (;;) {
|
|
34
36
|
let e = D(t, "node_modules", "@iconify-json");
|
|
35
37
|
if (b(e)) return e;
|
|
@@ -38,37 +40,37 @@ function ve(e) {
|
|
|
38
40
|
t = n;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
|
-
function
|
|
43
|
+
function Oe(e) {
|
|
42
44
|
try {
|
|
43
|
-
let t =
|
|
45
|
+
let t = N(e);
|
|
44
46
|
if (!t) return [];
|
|
45
47
|
let n = T(T(t));
|
|
46
48
|
return C(t, { encoding: "utf-8" }).flatMap((t) => {
|
|
47
|
-
let r =
|
|
49
|
+
let r = Ee(n, `@iconify-json/${t}`) ?? Ee(e, `@iconify-json/${t}`);
|
|
48
50
|
return r ? [r] : [];
|
|
49
51
|
});
|
|
50
52
|
} catch {
|
|
51
53
|
return [];
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
|
-
function
|
|
56
|
+
function ke(e) {
|
|
55
57
|
try {
|
|
56
|
-
let t =
|
|
58
|
+
let t = k(D(e, "package.json")), n = JSON.parse(S(t.resolve("@iconify/collections/collections.json"), "utf-8"));
|
|
57
59
|
return new Set(Object.keys(n));
|
|
58
60
|
} catch {
|
|
59
61
|
return /* @__PURE__ */ new Set();
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) &&
|
|
64
|
+
var Ae = "(key, loaded, known, all, ip) => {\n const c = key.indexOf(':'); const p = key.slice(0, c); const n = key.slice(c + 1);\n if (p === 'local' || !/^[a-z][a-z0-9-]*$/.test(p) || !/^[a-z0-9][a-z0-9-]*$/.test(n)) return null;\n const installed = loaded.size ? `installed sets: ${[...loaded].join(', ')}` : 'no @iconify-json/* set is installed';\n const fix = `If the name is composed at runtime or comes from a database, add it to the plugin's \\`iconWhitelist\\``;\n if (loaded.has(p)) {\n const set = all(p);\n if (set && set.includes(n)) return `[bitboss-ui] icon \"${key}\" exists in the ${p} icon set but is not bundled: no scanned source file contains the literal \"${key}\" and it is not in \\`iconWhitelist\\`. Write it as a literal, or — if the name is composed at runtime or comes from a database — add it to the plugin's \\`iconWhitelist\\`.`;\n const names = set ?? known(p);\n const sq = n.replace(/-/g, '');\n const sug = names.find((x) => x.replace(/-/g, '') === sq) ?? (n.length >= 3 ? names.find((x) => x.includes(n) || (x.length >= 3 && n.includes(x))) : undefined);\n const hint = sug ? ` — did you mean \"${p}:${sug}\"?` : '';\n if (set) return `[bitboss-ui] icon \"${key}\" does not exist in the ${p} icon set${hint}`;\n return `[bitboss-ui] icon \"${key}\" is not bundled: it is not among the ${p} names found as literals in scanned source, nor in \\`iconWhitelist\\`${hint}. ${fix}; if it is a typo, fix the name.`;\n }\n const pkg = `@iconify-json/${p}`; const cmd = `run: npm install -D ${pkg}`;\n if (ip.has(p)) return `[bitboss-ui] \"${key}\" requires \"${pkg}\" — ${cmd} (${installed})`;\n if (ip.size) return `[bitboss-ui] \"${key}\" — \"${p}\" is neither an installed icon set nor a known Iconify prefix (${installed})`;\n return `[bitboss-ui] \"${key}\" — no installed icon set has the prefix \"${p}\" (${installed}). If \"${p}\" is an Iconify set, ${cmd}`;\n}", P = Function(`return ${Ae};`)();
|
|
65
|
+
function je(e, t) {
|
|
66
|
+
return [...Object.keys(e.icons), ...Object.keys(e.aliases ?? {})].filter((n) => (!t || t(n)) && A(e, n) !== null);
|
|
65
67
|
}
|
|
66
|
-
function
|
|
68
|
+
function Me(e, t, n, a) {
|
|
67
69
|
let o = /* @__PURE__ */ new Set(), s = [], c = new Set(t.keys()), l = /* @__PURE__ */ new Map(), u = (e) => {
|
|
68
70
|
let r = l.get(e);
|
|
69
71
|
if (!r) {
|
|
70
72
|
let i = t.get(e);
|
|
71
|
-
r = i ?
|
|
73
|
+
r = i ? je(i, n.get(e)) : [], l.set(e, r);
|
|
72
74
|
}
|
|
73
75
|
return r;
|
|
74
76
|
};
|
|
@@ -96,14 +98,14 @@ function Ce(e, t, n, a) {
|
|
|
96
98
|
continue;
|
|
97
99
|
}
|
|
98
100
|
let ee = t.get(f), m = n.get(f);
|
|
99
|
-
|
|
101
|
+
A(ee, p) && (!m || m(p)) ? o.add(e) : s.push(P(e, c, u, u, new Set(a)) ?? `[bitboss-ui] iconWhitelist entry "${l}" does not resolve`);
|
|
100
102
|
}
|
|
101
103
|
return {
|
|
102
104
|
icons: [...o],
|
|
103
105
|
errors: s
|
|
104
106
|
};
|
|
105
107
|
}
|
|
106
|
-
function
|
|
108
|
+
function Ne(e, t) {
|
|
107
109
|
let n = D(e, "node_modules", ".cache", "bitboss-ui", "version"), r = null;
|
|
108
110
|
try {
|
|
109
111
|
r = S(n, "utf-8").trim() || null;
|
|
@@ -114,72 +116,52 @@ function we(e, t) {
|
|
|
114
116
|
} catch {}
|
|
115
117
|
return !r || t === "0" ? null : `[bitboss-ui] upgraded ${r} → ${t}. What breaks between them: npx bitboss-ui changelog --since ${r}`;
|
|
116
118
|
}
|
|
117
|
-
function
|
|
118
|
-
let t =
|
|
119
|
+
function Pe(e) {
|
|
120
|
+
let t = be(process.cwd(), e);
|
|
119
121
|
return t && !t.startsWith("..") && !E(t) ? t : e;
|
|
120
122
|
}
|
|
121
123
|
var F = /* @__PURE__ */ new Set();
|
|
122
|
-
function
|
|
124
|
+
function Fe(e) {
|
|
123
125
|
try {
|
|
124
126
|
return JSON.parse(S(D(e, "..", "package.json"), "utf-8")).version ?? "0";
|
|
125
127
|
} catch {
|
|
126
128
|
return "0";
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
|
-
var I = T(
|
|
130
|
-
function L(e, t) {
|
|
131
|
-
let n = Array.from({ length: t.length + 1 }, (e, t) => t);
|
|
132
|
-
for (let r = 1; r <= e.length; r++) {
|
|
133
|
-
let i = n[0];
|
|
134
|
-
n[0] = r;
|
|
135
|
-
for (let a = 1; a <= t.length; a++) {
|
|
136
|
-
let o = n[a];
|
|
137
|
-
n[a] = Math.min(n[a] + 1, n[a - 1] + 1, i + (e[r - 1] === t[a - 1] ? 0 : 1)), i = o;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return n[t.length];
|
|
141
|
-
}
|
|
142
|
-
var R = (e, t) => {
|
|
143
|
-
let n = null, r = Infinity;
|
|
144
|
-
for (let i of t) {
|
|
145
|
-
let t = L(e.toLowerCase(), i.toLowerCase());
|
|
146
|
-
t < r && (r = t, n = i);
|
|
147
|
-
}
|
|
148
|
-
return n && r <= Math.max(2, Math.floor(e.length / 3)) ? n : null;
|
|
149
|
-
}, z = () => {
|
|
131
|
+
var I = T(xe(import.meta.url)), Ie = () => {
|
|
150
132
|
for (let e of [D(I, "ai", "components.json"), D(I, "..", "dist", "ai", "components.json")]) if (b(e)) return e;
|
|
151
133
|
return null;
|
|
152
|
-
},
|
|
134
|
+
}, Le = (e) => {
|
|
153
135
|
try {
|
|
154
136
|
let { components: t } = JSON.parse(S(e, "utf-8"));
|
|
155
137
|
return Array.isArray(t) ? new Map(t.map((e) => [e.name, e])) : null;
|
|
156
138
|
} catch {
|
|
157
139
|
return null;
|
|
158
140
|
}
|
|
159
|
-
},
|
|
160
|
-
function
|
|
161
|
-
let n = t ?
|
|
141
|
+
}, Re = (e) => Object.keys(g).filter((t) => g[t].includes(e));
|
|
142
|
+
function ze(e, t = Ie()) {
|
|
143
|
+
let n = t ? Le(t) : null;
|
|
162
144
|
if (!n) return null;
|
|
163
|
-
for (let t of Object.keys(
|
|
164
|
-
let r =
|
|
165
|
-
if (i.length) for (let e of
|
|
145
|
+
for (let t of Object.keys(g)) {
|
|
146
|
+
let r = _[t], i = de(h[t], e[r]);
|
|
147
|
+
if (i.length) for (let e of g[t]) {
|
|
166
148
|
let t = n.get(e);
|
|
167
149
|
if (!t) continue;
|
|
168
|
-
let a = new Set(
|
|
169
|
-
if (s) return `[bitboss-ui] ${r}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
|
|
150
|
+
let a = new Set(Re(e).flatMap((e) => [...h[e]])), o = new Set(t.props.map((e) => e.name.split(":")).filter((e) => e[0] === "pt" && e[2] && !a.has(e[2])).map((e) => e[2])), s = i.find((e) => o.has(e));
|
|
151
|
+
if (s) return `[bitboss-ui] ${v(r)}: "${s}" is a passthrough state of ${e}, so \`pt:<part>:${s}\` could not tell the state from the variant. Give the variant another name.`;
|
|
170
152
|
}
|
|
171
153
|
}
|
|
172
154
|
return null;
|
|
173
155
|
}
|
|
174
|
-
function
|
|
156
|
+
function Be(e, t = Ie(), n = "pt", r = {}) {
|
|
175
157
|
if (!e || !t) return null;
|
|
176
|
-
let i =
|
|
158
|
+
let i = Le(t);
|
|
177
159
|
if (!i) return null;
|
|
178
160
|
for (let [t, a] of Object.entries(e)) {
|
|
179
161
|
let e = i.get(t);
|
|
180
162
|
if (!e) {
|
|
181
|
-
let e =
|
|
182
|
-
return `[bitboss-ui] ${n}.${t}: no component is called "${t}"${e ? ` — did you mean "${e}"?` : ""}.
|
|
163
|
+
let e = ie(t, [...i.keys()]);
|
|
164
|
+
return `[bitboss-ui] ${n}.${t}: no component is called "${t}"${e ? ` — did you mean "${e}"?` : ""}. The map is keyed by component name (ai/guides/passthrough.md).`;
|
|
183
165
|
}
|
|
184
166
|
let o = e.props.map((e) => e.name).filter((e) => e.startsWith("pt:"));
|
|
185
167
|
if (!o.length) return `[bitboss-ui] ${n}.${t}: ${t} declares no passthrough parts.`;
|
|
@@ -190,28 +172,28 @@ function ke(e, t = z(), n = "pt", r = {}) {
|
|
|
190
172
|
if (i) {
|
|
191
173
|
let [, r, a] = i, s = a.split("&"), c = s.find((e, t) => s.indexOf(e) !== t), l = s.filter((e) => !o.includes(`pt:${r}:${e}`));
|
|
192
174
|
if (s.every(Boolean) && !c && !l.length) continue;
|
|
193
|
-
return `[bitboss-ui] ${n}.${t}["${e}"] matches nothing and would be ignored. ${s.some((e) => !e) ? "A state is empty." : c ? `"${c}" is written twice.` : l.map((e) => {
|
|
175
|
+
return `[bitboss-ui] ${n}.${t}.pt["${e}"] matches nothing and would be ignored. ${s.some((e) => !e) ? "A state is empty." : c ? `"${c}" is written twice.` : l.map((e) => {
|
|
194
176
|
let n = o.filter((t) => t.endsWith(`:${e}`)).map((e) => e.split(":")[1]);
|
|
195
177
|
return n.length ? `"${e}" never reaches "${r}" on ${t}; it reaches ${n.join(", ")}.` : `"${e}" is not a state of ${t}.`;
|
|
196
178
|
}).join(" ")}`;
|
|
197
179
|
}
|
|
198
180
|
let [a, l] = e.split(":");
|
|
199
|
-
if (l && e.split(":").length === 2 &&
|
|
181
|
+
if (l && e.split(":").length === 2 && Re(t).some((e) => de(h[e], r[_[e]]).includes(l) && h[e].some((e) => o.includes(`pt:${a}:${e}`)))) continue;
|
|
200
182
|
let u = l && s.includes(a) ? o.filter((e) => e.endsWith(`:${l}`)).map((e) => e.split(":")[1]) : [];
|
|
201
|
-
return `[bitboss-ui] ${n}.${t}["${e}"] matches nothing and would be ignored. ${u.length ? `"${l}" never reaches "${a}" on ${t}; it reaches ${u.join(", ")}.` : s.includes(a) ? c.length === 0 ? `${t} has no states — use "${a}" alone.` : `"${l}" is not a state of ${t}. States: ${c.join(", ")}.` : `"${a}" is not a part of ${t}. Parts: ${s.join(", ")}.`}`;
|
|
183
|
+
return `[bitboss-ui] ${n}.${t}.pt["${e}"] matches nothing and would be ignored. ${u.length ? `"${l}" never reaches "${a}" on ${t}; it reaches ${u.join(", ")}.` : s.includes(a) ? c.length === 0 ? `${t} has no states — use "${a}" alone.` : `"${l}" is not a state of ${t}. States: ${c.join(", ")}.` : `"${a}" is not a part of ${t}. Parts: ${s.join(", ")}.`}`;
|
|
202
184
|
}
|
|
203
185
|
}
|
|
204
186
|
return null;
|
|
205
187
|
}
|
|
206
|
-
var
|
|
207
|
-
let t =
|
|
188
|
+
var L = D(I, "i18n", "locales"), Ve = (e) => {
|
|
189
|
+
let t = te(e);
|
|
208
190
|
return t ? ` — did you mean '${t}'?` : "";
|
|
209
191
|
};
|
|
210
|
-
function
|
|
192
|
+
function He(e) {
|
|
211
193
|
let t = e.customLocaleKeys ?? [], n = m(e.locale) ?? "en", r = [], i = /* @__PURE__ */ new Set([n, "en"]);
|
|
212
194
|
for (let n of e.enabledLocales ?? []) {
|
|
213
195
|
let e = m(n);
|
|
214
|
-
e ? i.add(e) : t.includes(n) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${n}' is not a built-in locale${
|
|
196
|
+
e ? i.add(e) : t.includes(n) || r.push(`[bitboss-ui] \`enabledLocales\` entry '${n}' is not a built-in locale${Ve(n)} — ignored.`);
|
|
215
197
|
}
|
|
216
198
|
return {
|
|
217
199
|
enabled: [...i].sort(),
|
|
@@ -219,23 +201,23 @@ function Me(e) {
|
|
|
219
201
|
warnings: r
|
|
220
202
|
};
|
|
221
203
|
}
|
|
222
|
-
function
|
|
204
|
+
function Ue(e) {
|
|
223
205
|
let t = /* @__PURE__ */ new Map();
|
|
224
206
|
for (let n of e) {
|
|
225
207
|
let e = p[n].dictionary;
|
|
226
|
-
t.has(e) || t.set(e, JSON.parse(S(D(
|
|
208
|
+
t.has(e) || t.set(e, JSON.parse(S(D(L, `${e}.json`), "utf-8")));
|
|
227
209
|
}
|
|
228
210
|
let n = [...t].map(([e, t]) => `\t${JSON.stringify(e)}: ${JSON.stringify(t)},`), r = [];
|
|
229
211
|
for (let n of e) {
|
|
230
212
|
let { tag: e, dictionary: i } = p[n];
|
|
231
213
|
if (f[i] === e) continue;
|
|
232
|
-
let a =
|
|
214
|
+
let a = ne(t.get(i).datePickerInput, e);
|
|
233
215
|
a && r.push(`\t${JSON.stringify(n)}: ${JSON.stringify({ datePickerInput: a })},`);
|
|
234
216
|
}
|
|
235
217
|
return `export const locales = {\n${n.join("\n")}\n};\nexport const regionFormats = {\n${r.join("\n")}\n};\n`;
|
|
236
218
|
}
|
|
237
|
-
function
|
|
238
|
-
let t =
|
|
219
|
+
function We(e) {
|
|
220
|
+
let t = k(import.meta.url), n = [], r = [];
|
|
239
221
|
for (let i of e) {
|
|
240
222
|
let e = m(i), a = e ? p[e].dayjs : i;
|
|
241
223
|
if (a !== null) try {
|
|
@@ -252,22 +234,22 @@ function Pe(e) {
|
|
|
252
234
|
missing: r
|
|
253
235
|
};
|
|
254
236
|
}
|
|
255
|
-
function
|
|
237
|
+
function Ge(e) {
|
|
256
238
|
let t = [...new Set(e.map(({ pack: e }) => e))];
|
|
257
239
|
return `${t.map((e, t) => `import l${t} from ${JSON.stringify(`dayjs/locale/${e}`)};`).join("\n")}\nexport const dayjsLocales = {\n${e.map(({ key: e, pack: n }) => `\t${JSON.stringify(e)}: l${t.indexOf(n)},`).join("\n")}\n};\n`;
|
|
258
240
|
}
|
|
259
|
-
function
|
|
241
|
+
function Ke(e, t, n = I, r) {
|
|
260
242
|
if (e === !1) return "export default null;\n";
|
|
261
243
|
let i;
|
|
262
244
|
if (e === void 0) {
|
|
263
245
|
let e = D(n, "passthrough-deduper.js");
|
|
264
246
|
i = b(e) ? e : D(n, "utils/passthroughDeduper.ts");
|
|
265
|
-
let a = r ??
|
|
247
|
+
let a = r ?? Xe(t);
|
|
266
248
|
if (Object.keys(a).length) return `import { createPassthroughDeduper } from ${JSON.stringify(i)};\nexport default createPassthroughDeduper(${JSON.stringify(a)});\n`;
|
|
267
|
-
} else i = e.startsWith(".") || E(e) ?
|
|
249
|
+
} else i = e.startsWith(".") || E(e) ? O(t, e) : e;
|
|
268
250
|
return `export { default } from ${JSON.stringify(i)};\n`;
|
|
269
251
|
}
|
|
270
|
-
var
|
|
252
|
+
var R = [
|
|
271
253
|
"inset-shadow",
|
|
272
254
|
"drop-shadow",
|
|
273
255
|
"text-shadow",
|
|
@@ -286,7 +268,7 @@ var V = [
|
|
|
286
268
|
"ease",
|
|
287
269
|
"font",
|
|
288
270
|
"text"
|
|
289
|
-
],
|
|
271
|
+
], z = /* @__PURE__ */ new Set([
|
|
290
272
|
"node_modules",
|
|
291
273
|
"dist",
|
|
292
274
|
"build",
|
|
@@ -299,28 +281,28 @@ var V = [
|
|
|
299
281
|
"public",
|
|
300
282
|
"coverage"
|
|
301
283
|
]);
|
|
302
|
-
function
|
|
284
|
+
function qe(e) {
|
|
303
285
|
let t = {};
|
|
304
286
|
for (let n of e.matchAll(/@theme\b[^{]*\{([^}]*)\}/g)) for (let [, e] of n[1].matchAll(/--([a-z0-9-]+)\s*:/g)) {
|
|
305
287
|
if (e.includes("--")) continue;
|
|
306
|
-
let n =
|
|
288
|
+
let n = R.find((t) => e.startsWith(`${t}-`));
|
|
307
289
|
n && (t[n] ??= /* @__PURE__ */ new Set()).add(e.slice(n.length + 1));
|
|
308
290
|
}
|
|
309
291
|
return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, [...t]]));
|
|
310
292
|
}
|
|
311
|
-
function
|
|
293
|
+
function B(e) {
|
|
312
294
|
let t = {};
|
|
313
295
|
for (let n of e) for (let [e, r] of Object.entries(n)) for (let n of r) (t[e] ??= /* @__PURE__ */ new Set()).add(n);
|
|
314
296
|
return Object.fromEntries(Object.keys(t).sort().map((e) => [e, [...t[e]].sort()]));
|
|
315
297
|
}
|
|
316
|
-
function
|
|
298
|
+
function Je(e, t) {
|
|
317
299
|
if (!t.endsWith(".css")) return !1;
|
|
318
|
-
let n =
|
|
300
|
+
let n = be(e, t);
|
|
319
301
|
if (!n || n.startsWith("..") || E(n)) return !1;
|
|
320
302
|
let r = n.split(/[\\/]/);
|
|
321
|
-
return r.length <= 7 && !r.some((e) =>
|
|
303
|
+
return r.length <= 7 && !r.some((e) => z.has(e));
|
|
322
304
|
}
|
|
323
|
-
function
|
|
305
|
+
function Ye(e) {
|
|
324
306
|
let t = /* @__PURE__ */ new Map(), n = (e, r) => {
|
|
325
307
|
let i = (() => {
|
|
326
308
|
try {
|
|
@@ -331,39 +313,36 @@ function ze(e) {
|
|
|
331
313
|
})();
|
|
332
314
|
for (let a of i) {
|
|
333
315
|
let i = D(e, a.name);
|
|
334
|
-
if (a.isDirectory()) r < 6 && !
|
|
316
|
+
if (a.isDirectory()) r < 6 && !z.has(a.name) && n(i, r + 1);
|
|
335
317
|
else if (a.name.endsWith(".css")) {
|
|
336
|
-
let e =
|
|
318
|
+
let e = V(i);
|
|
337
319
|
Object.keys(e).length && t.set(i, e);
|
|
338
320
|
}
|
|
339
321
|
}
|
|
340
322
|
};
|
|
341
323
|
return e && n(e, 0), t;
|
|
342
324
|
}
|
|
343
|
-
var
|
|
325
|
+
var V = (e) => {
|
|
344
326
|
try {
|
|
345
|
-
return
|
|
327
|
+
return qe(S(e, "utf-8"));
|
|
346
328
|
} catch {
|
|
347
329
|
return {};
|
|
348
330
|
}
|
|
349
331
|
};
|
|
350
|
-
function
|
|
351
|
-
return
|
|
332
|
+
function Xe(e) {
|
|
333
|
+
return B(Ye(e).values());
|
|
352
334
|
}
|
|
353
|
-
function
|
|
335
|
+
function Ze(e) {
|
|
354
336
|
return e === void 0 || e === !1 || typeof e == "string" && e.trim() ? null : "[bitboss-ui] passthroughDeduper must be false or a module path whose default export is (className: string) => string, e.g. passthroughDeduper: './src/utils/cn.ts'. Remove the key to use the bundled tailwind-merge.";
|
|
355
337
|
}
|
|
356
|
-
|
|
357
|
-
return e === void 0 || typeof e == "number" && Number.isInteger(e) && e >= 0 ? null : `[bitboss-ui] autoDisableWritingThreshold must be a non-negative integer (received ${JSON.stringify(e)}); 0 turns the 'auto' rule off. Remove the key for the default, 6.`;
|
|
358
|
-
}
|
|
359
|
-
var Ue = "@inertiajs/vue3", We = [
|
|
338
|
+
var Qe = "@inertiajs/vue3", H = [
|
|
360
339
|
"dependencies",
|
|
361
340
|
"devDependencies",
|
|
362
341
|
"peerDependencies",
|
|
363
342
|
"optionalDependencies"
|
|
364
343
|
];
|
|
365
|
-
function
|
|
366
|
-
let t =
|
|
344
|
+
function U(e) {
|
|
345
|
+
let t = O(e);
|
|
367
346
|
for (;;) {
|
|
368
347
|
let e = D(t, "package.json");
|
|
369
348
|
if (b(e)) try {
|
|
@@ -376,14 +355,14 @@ function Ge(e) {
|
|
|
376
355
|
t = n;
|
|
377
356
|
}
|
|
378
357
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
358
|
+
function W(e, t) {
|
|
359
|
+
return H.some((n) => {
|
|
381
360
|
let r = e[n];
|
|
382
361
|
return typeof r == "object" && !!r && t in r;
|
|
383
362
|
});
|
|
384
363
|
}
|
|
385
|
-
function
|
|
386
|
-
let n = t.split("/"), r =
|
|
364
|
+
function $e(e, t) {
|
|
365
|
+
let n = t.split("/"), r = O(e);
|
|
387
366
|
for (;;) {
|
|
388
367
|
if (b(D(r, "node_modules", ...n))) return !0;
|
|
389
368
|
let e = T(r);
|
|
@@ -391,14 +370,14 @@ function qe(e, t) {
|
|
|
391
370
|
r = e;
|
|
392
371
|
}
|
|
393
372
|
}
|
|
394
|
-
function
|
|
395
|
-
let t =
|
|
396
|
-
return !t || !
|
|
373
|
+
function et(e) {
|
|
374
|
+
let t = U(e);
|
|
375
|
+
return !t || !W(t, Qe) ? !1 : $e(e, Qe);
|
|
397
376
|
}
|
|
398
|
-
function
|
|
377
|
+
function tt(e) {
|
|
399
378
|
return e ? "export { Link as InertiaLink } from '@inertiajs/vue3';\n" : "export const InertiaLink = null;\n";
|
|
400
379
|
}
|
|
401
|
-
var
|
|
380
|
+
var nt = [
|
|
402
381
|
"@floating-ui/vue",
|
|
403
382
|
"@tanstack/vue-virtual",
|
|
404
383
|
"@vueuse/core",
|
|
@@ -414,34 +393,34 @@ var Xe = [
|
|
|
414
393
|
"mime",
|
|
415
394
|
"object-code",
|
|
416
395
|
"tailwind-merge"
|
|
417
|
-
],
|
|
418
|
-
function
|
|
396
|
+
], rt = ["bitboss-ui"], it = Qe, G = "bitboss-ui";
|
|
397
|
+
function at(e) {
|
|
419
398
|
return typeof e == "string" ? e === G : (e.lastIndex = 0, e.test(G));
|
|
420
399
|
}
|
|
421
|
-
function
|
|
422
|
-
return e === !0 ? [] : e == null || e === !1 ? [G] : (Array.isArray(e) ? e : [e]).some(
|
|
400
|
+
function ot(e) {
|
|
401
|
+
return e === !0 ? [] : e == null || e === !1 ? [G] : (Array.isArray(e) ? e : [e]).some(at) ? [] : [G];
|
|
423
402
|
}
|
|
424
|
-
var
|
|
425
|
-
function
|
|
403
|
+
var st = "virtual:bitboss-ui/icons", ct = "\0virtual:bitboss-ui/icons", lt = "virtual:bitboss-ui/config", ut = "\0virtual:bitboss-ui/config", dt = "virtual:bitboss-ui/dayjs-locales", ft = "\0virtual:bitboss-ui/dayjs-locales", pt = "virtual:bitboss-ui/locales", mt = "\0virtual:bitboss-ui/locales", ht = "virtual:bitboss-ui/styles", gt = "\0virtual:bitboss-ui/styles", _t = "virtual:bitboss-ui/vee-validate-missing", vt = "\0virtual:bitboss-ui/vee-validate-missing", yt = "bitboss-ui:vee-validate-missing", bt = "[bitboss-ui] BbForm needs vee-validate, which is not installed: run `npm i vee-validate` (an optional peer, >=4.10.0 <5). An app without forms needs nothing.", xt = ["useForm", "useField"];
|
|
404
|
+
function St() {
|
|
426
405
|
return [
|
|
427
|
-
`const fail = () => { throw new Error(${JSON.stringify(
|
|
428
|
-
...
|
|
406
|
+
`const fail = () => { throw new Error(${JSON.stringify(bt)} + ' (${yt})'); };`,
|
|
407
|
+
...xt.map((e) => `export const ${e} = fail;`),
|
|
429
408
|
""
|
|
430
409
|
].join("\n");
|
|
431
410
|
}
|
|
432
|
-
function
|
|
411
|
+
function Ct(e) {
|
|
433
412
|
return /import\s*\{[^}]*\bBbForm\b[^}]*\}\s*from\s*['"]bitboss-ui(?:\/validated)?['"]/.test(e) || /<(?:BbForm|bb-form)[\s>/]/.test(e) || /resolveComponent\(\s*['"](?:BbForm|bb-form)['"]/.test(e);
|
|
434
413
|
}
|
|
435
|
-
var
|
|
436
|
-
function
|
|
414
|
+
var wt = "virtual:bitboss-ui/link", Tt = "\0virtual:bitboss-ui/link", Et = "virtual:bitboss-ui/passthrough-deduper", Dt = "\0virtual:bitboss-ui/passthrough-deduper";
|
|
415
|
+
function Ot() {
|
|
437
416
|
let e = D(I, "styles.css");
|
|
438
417
|
return b(e) ? S(e, "utf-8") : ["main.css", "variables.css"].map((e) => {
|
|
439
418
|
let t = D(I, "assets/css", e);
|
|
440
419
|
return b(t) ? S(t, "utf-8") : "";
|
|
441
420
|
}).join("\n");
|
|
442
421
|
}
|
|
443
|
-
var
|
|
444
|
-
function
|
|
422
|
+
var kt = "local", At = "./assets/icons";
|
|
423
|
+
function jt(e) {
|
|
445
424
|
let t = {};
|
|
446
425
|
try {
|
|
447
426
|
let n = C(e, {
|
|
@@ -449,15 +428,15 @@ function wt(e) {
|
|
|
449
428
|
encoding: "utf-8"
|
|
450
429
|
}).filter((e) => e.endsWith(".svg"));
|
|
451
430
|
for (let r of n) {
|
|
452
|
-
let n =
|
|
431
|
+
let n = ye(r, ".svg");
|
|
453
432
|
try {
|
|
454
|
-
let i =
|
|
433
|
+
let i = Ce(S(D(e, r), "utf-8")), a = i && Se(i);
|
|
455
434
|
a && (t[n] = a);
|
|
456
435
|
} catch {}
|
|
457
436
|
}
|
|
458
437
|
} catch {}
|
|
459
438
|
return {
|
|
460
|
-
prefix:
|
|
439
|
+
prefix: kt,
|
|
461
440
|
info: {
|
|
462
441
|
name: "Local",
|
|
463
442
|
author: { name: "Icons automatically inferred from the icons installed locally" },
|
|
@@ -466,38 +445,38 @@ function wt(e) {
|
|
|
466
445
|
icons: t
|
|
467
446
|
};
|
|
468
447
|
}
|
|
469
|
-
var
|
|
448
|
+
var K = "./.vscode/bitboss-ui.local-icons.json", q = "iconify.customCollectionJsonPaths", J = "tailwindCSS.classAttributes", Y = "tailwindCSS.experimental.classRegex", Mt = "editor.quickSuggestions", X = "pt(?::[\\w&-]+)*", Nt = [
|
|
470
449
|
"class",
|
|
471
450
|
"className",
|
|
472
451
|
"ngClass",
|
|
473
452
|
"class:list"
|
|
474
|
-
],
|
|
453
|
+
], Pt = "(?:^|[\\s:(])(?:v-bind:)?pt(?::[\\w&-]+)*\\s*=\\s*", Ft = [
|
|
475
454
|
"\\?\\s*'([^\\s':][^']*)'",
|
|
476
455
|
"'([^\\s':][^']*)'(?!\\s*:)",
|
|
477
456
|
"\\?\\s*\"([^\\s\":][^\"]*)\"",
|
|
478
457
|
"\"([^\\s\":][^\"]*)\"(?!\\s*:)",
|
|
479
458
|
"\\?\\s*`([^\\s`:][^`]*)`",
|
|
480
459
|
"`([^\\s`:][^`]*)`(?!\\s*:)"
|
|
481
|
-
],
|
|
482
|
-
`${
|
|
483
|
-
`${
|
|
460
|
+
], Z = [
|
|
461
|
+
`${Pt}"([\\s\\S]*?)"`,
|
|
462
|
+
`${Pt}'([\\s\\S]*?)'`,
|
|
484
463
|
"\\bpt\\s*:\\s*\\{([\\s\\S]*?)\\}"
|
|
485
|
-
].flatMap((e) =>
|
|
486
|
-
[
|
|
487
|
-
[
|
|
488
|
-
[
|
|
489
|
-
[
|
|
464
|
+
].flatMap((e) => Ft.map((t) => [e, t])), It = { strings: "on" }, Lt = () => ({
|
|
465
|
+
[q]: [K],
|
|
466
|
+
[J]: [...Nt, X],
|
|
467
|
+
[Y]: Z,
|
|
468
|
+
[Mt]: It
|
|
490
469
|
});
|
|
491
|
-
function
|
|
492
|
-
let n = D(t,
|
|
470
|
+
function Rt(e, t) {
|
|
471
|
+
let n = D(t, K);
|
|
493
472
|
try {
|
|
494
|
-
return x(T(n), { recursive: !0 }), w(n, JSON.stringify(
|
|
473
|
+
return x(T(n), { recursive: !0 }), w(n, JSON.stringify(jt(e)), "utf-8"), null;
|
|
495
474
|
} catch (e) {
|
|
496
|
-
return `[bitboss-ui] could not write ${
|
|
475
|
+
return `[bitboss-ui] could not write ${K} (${e instanceof Error ? e.message : String(e)}) — the Iconify editor extension will not preview local icons. ${Q}`;
|
|
497
476
|
}
|
|
498
477
|
}
|
|
499
|
-
function
|
|
500
|
-
if (e ===
|
|
478
|
+
function zt(e, t) {
|
|
479
|
+
if (e === At) return null;
|
|
501
480
|
let n = 0;
|
|
502
481
|
try {
|
|
503
482
|
n = C(t, {
|
|
@@ -509,7 +488,7 @@ function Mt(e, t) {
|
|
|
509
488
|
}
|
|
510
489
|
return n > 0 ? null : `[bitboss-ui] iconDir "${e}" resolves to ${t}, which contains no .svg files — no \`local:\` icon will render. A relative iconDir resolves from the Vite root (under Nuxt, \`app/\`).`;
|
|
511
490
|
}
|
|
512
|
-
function
|
|
491
|
+
function Bt(e) {
|
|
513
492
|
let t = "", n = !1, r = !1, i = !1;
|
|
514
493
|
for (let a = 0; a < e.length; a++) {
|
|
515
494
|
let o = e[a], s = e[a + 1];
|
|
@@ -517,8 +496,8 @@ function Nt(e) {
|
|
|
517
496
|
}
|
|
518
497
|
return t;
|
|
519
498
|
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
499
|
+
var Vt = (e) => e === " " || e === " " || e === "\n" || e === "\r";
|
|
500
|
+
function Ht(e, t) {
|
|
522
501
|
let n = !1, r = !1;
|
|
523
502
|
for (let i = t; i < e.length; i++) {
|
|
524
503
|
let t = e[i], a = e[i + 1];
|
|
@@ -526,11 +505,11 @@ function Ft(e, t) {
|
|
|
526
505
|
else if (r) t === "*" && a === "/" && (r = !1, i++);
|
|
527
506
|
else if (t === "/" && a === "/") n = !0, i++;
|
|
528
507
|
else if (t === "/" && a === "*") r = !0, i++;
|
|
529
|
-
else if (!
|
|
508
|
+
else if (!Vt(t)) return i;
|
|
530
509
|
}
|
|
531
510
|
return -1;
|
|
532
511
|
}
|
|
533
|
-
function
|
|
512
|
+
function Ut(e, t) {
|
|
534
513
|
let n = !1, r = !1, i = !1, a = -1, o = 0, s = null;
|
|
535
514
|
for (let c = 0; c < e.length; c++) {
|
|
536
515
|
let l = e[c], u = e[c + 1];
|
|
@@ -545,19 +524,19 @@ function It(e, t) {
|
|
|
545
524
|
} else if (l === "/" && u === "/") n = !0, c++;
|
|
546
525
|
else if (l === "/" && u === "*") r = !0, c++;
|
|
547
526
|
else if (l === "\"") i = !0, a = c;
|
|
548
|
-
else if (!
|
|
527
|
+
else if (!Vt(l)) {
|
|
549
528
|
if (l === ":" && s !== null) {
|
|
550
529
|
let n = s === t;
|
|
551
530
|
if (s = null, !n) continue;
|
|
552
|
-
let r =
|
|
553
|
-
return r === -1 || e[r] !== "[" ? null :
|
|
531
|
+
let r = Ht(e, c + 1);
|
|
532
|
+
return r === -1 || e[r] !== "[" ? null : Wt(e, r);
|
|
554
533
|
}
|
|
555
534
|
s = null, l === "{" || l === "[" ? o++ : (l === "}" || l === "]") && o--;
|
|
556
535
|
}
|
|
557
536
|
}
|
|
558
537
|
return null;
|
|
559
538
|
}
|
|
560
|
-
function
|
|
539
|
+
function Wt(e, t) {
|
|
561
540
|
let n = !1, r = !1, i = !1, a = 0, o = -1;
|
|
562
541
|
for (let s = t; s < e.length; s++) {
|
|
563
542
|
let c = e[s], l = e[s + 1];
|
|
@@ -572,7 +551,7 @@ function Lt(e, t) {
|
|
|
572
551
|
} else if (c === "/" && l === "/") n = !0, s++;
|
|
573
552
|
else if (c === "/" && l === "*") r = !0, s++;
|
|
574
553
|
else if (c === "\"") i = !0, o = s + 1;
|
|
575
|
-
else if (!
|
|
554
|
+
else if (!Vt(c)) {
|
|
576
555
|
if (c === "[" || c === "{") a++, s > t && (o = s + 1);
|
|
577
556
|
else if (c === "]" || c === "}") {
|
|
578
557
|
if (a--, a === 0 && c === "]") return {
|
|
@@ -586,10 +565,10 @@ function Lt(e, t) {
|
|
|
586
565
|
}
|
|
587
566
|
return null;
|
|
588
567
|
}
|
|
589
|
-
var
|
|
590
|
-
function
|
|
568
|
+
var Q = "Set `vscodeSettings: false` in the plugin options to disable this write.", $ = `add "${q}": ["${K}"], "${J}" (include ${JSON.stringify(X)}), and "${Y}" for passthrough IntelliSense`, Gt = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" && (e === "pt(?::[\\w&-]+)*" || e === "pt" || e.startsWith("pt:") || e.startsWith("pt("))), Kt = (e) => Array.isArray(e) ? Z.filter((t) => !e.some((e) => JSON.stringify(e) === JSON.stringify(t))) : [...Z], qt = (e) => JSON.stringify(e, null, " ").replace(/\n/g, "\n ");
|
|
569
|
+
function Jt(e, t, n) {
|
|
591
570
|
if (n.length === 0) return e;
|
|
592
|
-
let r =
|
|
571
|
+
let r = Ut(e, t);
|
|
593
572
|
if (!r) return null;
|
|
594
573
|
if (r.lastSignificantEnd === -1) return e.slice(0, r.close) + n.join(", ") + e.slice(r.close);
|
|
595
574
|
if (e.slice(r.open + 1, r.close).includes("\n")) {
|
|
@@ -598,17 +577,17 @@ function Ht(e, t, n) {
|
|
|
598
577
|
}
|
|
599
578
|
return e.slice(0, r.lastSignificantEnd) + `, ${n.join(", ")}` + e.slice(r.lastSignificantEnd);
|
|
600
579
|
}
|
|
601
|
-
function
|
|
580
|
+
function Yt(e, t, n) {
|
|
602
581
|
if (t.length === 0) return e;
|
|
603
|
-
let r =
|
|
582
|
+
let r = Ht(e, 0);
|
|
604
583
|
if (r === -1 || e[r] !== "{") return null;
|
|
605
584
|
let i = t.map((e, r) => {
|
|
606
585
|
let i = r === t.length - 1, a = n || !i ? "," : "", o = n || !i ? "" : "\n";
|
|
607
|
-
return `\n\t${JSON.stringify(e.key)}: ${
|
|
586
|
+
return `\n\t${JSON.stringify(e.key)}: ${qt(e.value)}${a}${o}`;
|
|
608
587
|
}).join("");
|
|
609
588
|
return e.slice(0, r + 1) + i + e.slice(r + 1);
|
|
610
589
|
}
|
|
611
|
-
function
|
|
590
|
+
function Xt(e, t) {
|
|
612
591
|
let n = D(e, ".vscode"), r = D(n, "settings.json"), i = "";
|
|
613
592
|
try {
|
|
614
593
|
i = S(r, "utf-8");
|
|
@@ -619,58 +598,58 @@ function Wt(e, t) {
|
|
|
619
598
|
try {
|
|
620
599
|
return x(n, { recursive: !0 }), w(r, e, "utf-8"), !0;
|
|
621
600
|
} catch (e) {
|
|
622
|
-
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${
|
|
601
|
+
return t.warn(`[bitboss-ui] could not write .vscode/settings.json (${e instanceof Error ? e.message : String(e)}) — ${$}. ${Q}`), !1;
|
|
623
602
|
}
|
|
624
603
|
};
|
|
625
604
|
if (!i.trim()) {
|
|
626
|
-
if (!s(JSON.stringify(
|
|
627
|
-
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${
|
|
605
|
+
if (!s(JSON.stringify(Lt(), null, " ") + "\n")) return;
|
|
606
|
+
t.info(`[bitboss-ui] .vscode/settings.json: wrote "${K}" on "${q}", Tailwind "${J}" / "${Y}" for passthrough, and "${Mt}". ${Q}`);
|
|
628
607
|
return;
|
|
629
608
|
}
|
|
630
609
|
let c;
|
|
631
610
|
try {
|
|
632
|
-
c = JSON.parse(
|
|
611
|
+
c = JSON.parse(Bt(i));
|
|
633
612
|
} catch {
|
|
634
613
|
t.warn(`[bitboss-ui] Could not parse .vscode/settings.json — ${$}.`);
|
|
635
614
|
return;
|
|
636
615
|
}
|
|
637
616
|
let l = (e) => {
|
|
638
617
|
try {
|
|
639
|
-
return c = JSON.parse(
|
|
618
|
+
return c = JSON.parse(Bt(e)), i = e, !0;
|
|
640
619
|
} catch {
|
|
641
620
|
return t.warn(`[bitboss-ui] Could not parse .vscode/settings.json after splice — ${$}.`), !1;
|
|
642
621
|
}
|
|
643
622
|
}, u = (e, n, r) => {
|
|
644
623
|
if (!Array.isArray(c[e])) return t.warn(`[bitboss-ui] .vscode/settings.json has a non-array "${e}" — ${$}.`), !1;
|
|
645
|
-
let a =
|
|
624
|
+
let a = Jt(i, e, n);
|
|
646
625
|
return a ? l(a) ? (o(r), !0) : !1 : (t.warn(`[bitboss-ui] Could not locate "${e}" in .vscode/settings.json — ${$}.`), !1);
|
|
647
626
|
};
|
|
648
|
-
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") &&
|
|
649
|
-
let e =
|
|
650
|
-
e.length > 0 && u(
|
|
627
|
+
if (!i.includes("./.vscode/bitboss-ui.local-icons.json") && q in c && u(q, [JSON.stringify(K)], `added "${K}" to "${q}"`), J in c && !Gt(c[J]) && u(J, [JSON.stringify(X)], `added ${JSON.stringify(X)} to "${J}"`), Y in c) {
|
|
628
|
+
let e = Kt(c[Y]);
|
|
629
|
+
e.length > 0 && u(Y, e.map((e) => JSON.stringify(e)), `added ${e.length} "${Y}" ${e.length === 1 ? "entry" : "entries"} for passthrough`);
|
|
651
630
|
}
|
|
652
631
|
let d = [];
|
|
653
|
-
if (!(
|
|
632
|
+
if (!(q in c) && !i.includes("./.vscode/bitboss-ui.local-icons.json") && d.push({
|
|
633
|
+
key: q,
|
|
634
|
+
value: [K]
|
|
635
|
+
}), J in c || d.push({
|
|
654
636
|
key: J,
|
|
655
|
-
value: [
|
|
637
|
+
value: [...Nt, X]
|
|
656
638
|
}), Y in c || d.push({
|
|
657
639
|
key: Y,
|
|
658
|
-
value:
|
|
659
|
-
}),
|
|
660
|
-
key:
|
|
661
|
-
value:
|
|
662
|
-
}), Tt in c || d.push({
|
|
663
|
-
key: Tt,
|
|
664
|
-
value: kt
|
|
640
|
+
value: Z
|
|
641
|
+
}), Mt in c || d.push({
|
|
642
|
+
key: Mt,
|
|
643
|
+
value: It
|
|
665
644
|
}), d.length > 0) {
|
|
666
|
-
let e = Object.keys(c).length > 0, n =
|
|
645
|
+
let e = Object.keys(c).length > 0, n = Yt(i, d, e);
|
|
667
646
|
if (!n) t.warn(`[bitboss-ui] .vscode/settings.json is not a JSON object — ${$}.`);
|
|
668
647
|
else if (l(n)) for (let e of d) o(`added "${e.key}"`);
|
|
669
648
|
}
|
|
670
|
-
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${
|
|
649
|
+
a.length !== 0 && s(i) && t.info(`[bitboss-ui] .vscode/settings.json: ${a.join("; ")}. ${Q}`);
|
|
671
650
|
}
|
|
672
|
-
var
|
|
673
|
-
async function
|
|
651
|
+
var Zt = "virtual:bb-icon/", Qt = "\0virtual:bb-icon/";
|
|
652
|
+
async function $t(e, t) {
|
|
674
653
|
try {
|
|
675
654
|
let { ensureMcpConfigs: n, missingMcpPeers: r } = await import(
|
|
676
655
|
/* @vite-ignore */
|
|
@@ -686,96 +665,106 @@ async function qt(e, t) {
|
|
|
686
665
|
t.warn(`[bitboss-ui] MCP: could not register dev server (${n})`);
|
|
687
666
|
}
|
|
688
667
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
691
|
-
let n =
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
if (i) throw Error(i);
|
|
698
|
-
let a = te(n.pt);
|
|
668
|
+
var en = Symbol.for("bitboss-ui:editorRoot");
|
|
669
|
+
function tn(e = {}) {
|
|
670
|
+
let n = ce(e);
|
|
671
|
+
if (n) throw Error(n);
|
|
672
|
+
let r = Ie(), i = r ? [...Le(r)?.keys() ?? []] : void 0, a = oe(e.components, {
|
|
673
|
+
variantComponents: ue,
|
|
674
|
+
knownComponents: i
|
|
675
|
+
});
|
|
699
676
|
if (a) throw Error(a);
|
|
700
|
-
let s =
|
|
677
|
+
let s = se(e.configScopes, {
|
|
678
|
+
variantComponents: ue,
|
|
679
|
+
knownComponents: i
|
|
680
|
+
});
|
|
701
681
|
if (s) throw Error(s);
|
|
702
|
-
let c =
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
let f = Ve(n.passthroughDeduper);
|
|
711
|
-
if (f) throw Error(f);
|
|
712
|
-
let p = He(n.autoDisableWritingThreshold);
|
|
682
|
+
let { components: c } = e, l = {
|
|
683
|
+
iconDir: At,
|
|
684
|
+
...Object.fromEntries(Object.entries(e).filter(([e]) => !Object.values(_).includes(e))),
|
|
685
|
+
...pe(c),
|
|
686
|
+
pt: ae(c)
|
|
687
|
+
}, f = e[en];
|
|
688
|
+
if ("cssLayers" in l && l.cssLayers === void 0) throw Error("[bitboss-ui] cssLayers is present but undefined. If you passed an imported constant such as TAILWIND_V4_LAYERS, the installed bitboss-ui does not export it (older dist?) — upgrade, or pass the array literal. Remove the key entirely for an unlayered sheet.");
|
|
689
|
+
let p = u(l.cssLayers, { resetCss: l.resetCss ?? !1 });
|
|
713
690
|
if (p) throw Error(p);
|
|
714
|
-
let
|
|
715
|
-
|
|
716
|
-
|
|
691
|
+
let te = re(l.pt);
|
|
692
|
+
if (te) throw Error(te);
|
|
693
|
+
let ne = ze(l);
|
|
694
|
+
if (ne) throw Error(ne);
|
|
695
|
+
let ie = Be(l.pt, void 0, "components", l);
|
|
696
|
+
if (ie) throw Error(ie);
|
|
697
|
+
for (let [e, t] of Object.entries(l.configScopes ?? {})) {
|
|
698
|
+
let n = Be(ae(t), void 0, `configScopes.${e}`, l);
|
|
699
|
+
if (n) throw Error(n);
|
|
700
|
+
}
|
|
701
|
+
let g = Ze(l.passthroughDeduper);
|
|
702
|
+
if (g) throw Error(g);
|
|
703
|
+
let v, y, x, C, w = !0, T = [], E = !1, D, xe, k = !1, Se = (e, t, n) => {
|
|
704
|
+
let r = Rt(e, t);
|
|
705
|
+
r && !k && (k = !0, n(r));
|
|
717
706
|
}, j = {
|
|
718
707
|
info: (e) => console.warn(e),
|
|
719
708
|
warn: (e) => console.warn(e)
|
|
720
|
-
}, M = [],
|
|
721
|
-
locale:
|
|
722
|
-
enabledLocales:
|
|
709
|
+
}, M = [], Ce = [], Ee = [], { enabled: N, defaultLocale: P, warnings: Re } = He({
|
|
710
|
+
locale: l.locale,
|
|
711
|
+
enabledLocales: l.enabledLocales,
|
|
723
712
|
customLocaleKeys: M
|
|
724
|
-
}), L =
|
|
725
|
-
R.clear(), z.clear(),
|
|
726
|
-
for (let e of
|
|
727
|
-
|
|
728
|
-
},
|
|
713
|
+
}), L = We([...N, ...M]), R = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Set(), Xe = () => {
|
|
714
|
+
R.clear(), z.clear(), V = ke(v);
|
|
715
|
+
for (let e of Oe(v)) R.set(e.prefix, e), z.set(e.prefix, (t) => De(e.prefix, t));
|
|
716
|
+
H = null, U = null;
|
|
717
|
+
}, Qe = (e, t) => {
|
|
729
718
|
let n = R.get(e);
|
|
730
719
|
if (!n) return !1;
|
|
731
720
|
let r = z.get(e);
|
|
732
|
-
return
|
|
733
|
-
},
|
|
734
|
-
let e =
|
|
735
|
-
version:
|
|
721
|
+
return A(n, t) !== null && (!r || r(t));
|
|
722
|
+
}, H = null, U = null, W = null, G = () => U || (U = (async () => {
|
|
723
|
+
let e = l.iconsScanner ?? {}, n = JSON.stringify({
|
|
724
|
+
version: Fe(I),
|
|
736
725
|
sets: Array.from(R.entries()).map(([e, t]) => [e, t.lastModified ?? 0]).sort(([e], [t]) => e < t ? -1 : +(e > t)),
|
|
737
726
|
include: e.include ?? [],
|
|
738
727
|
exclude: e.exclude ?? [],
|
|
739
728
|
maxFileSize: e.maxFileSize ?? null
|
|
740
|
-
}),
|
|
741
|
-
root:
|
|
742
|
-
outDir:
|
|
729
|
+
}), r = new t({
|
|
730
|
+
root: v,
|
|
731
|
+
outDir: D ?? O(v, "dist"),
|
|
743
732
|
scanner: e,
|
|
744
733
|
prefixes: Array.from(R.keys()),
|
|
745
|
-
resolves:
|
|
746
|
-
cacheFile: o(
|
|
747
|
-
cacheKey:
|
|
748
|
-
}),
|
|
749
|
-
if (
|
|
750
|
-
return
|
|
751
|
-
})(),
|
|
734
|
+
resolves: Qe,
|
|
735
|
+
cacheFile: o(v),
|
|
736
|
+
cacheKey: n
|
|
737
|
+
}), i = await r.scan();
|
|
738
|
+
if (i.cold && j.info(`[bitboss-ui] icon scan: ${i.files} files in ${i.elapsed}ms${i.workers ? ` on ${i.workers} threads` : ""} (${r.icons.size} provider icons referenced)`), H = r, W) for (let e of r.includeDirs) W.add(e);
|
|
739
|
+
return r;
|
|
740
|
+
})(), U);
|
|
752
741
|
return {
|
|
753
742
|
name: "bitboss-ui:icon-registry",
|
|
754
743
|
configEnvironment(e, t) {
|
|
755
744
|
if (e !== "client") return;
|
|
756
|
-
let n = t.optimizeDeps?.include ?? [], r =
|
|
745
|
+
let n = t.optimizeDeps?.include ?? [], r = T.filter((e) => !n.includes(e));
|
|
757
746
|
if (r.length) return { optimizeDeps: { include: r } };
|
|
758
747
|
},
|
|
759
748
|
config(e) {
|
|
760
749
|
let t = e.optimizeDeps?.include ?? [], n = e.optimizeDeps?.exclude ?? [], r = e.root ?? process.cwd();
|
|
761
|
-
|
|
762
|
-
let i =
|
|
763
|
-
|
|
750
|
+
w = $e(r, "vee-validate");
|
|
751
|
+
let i = et(r) ? [...nt, it] : nt, a = L.found.map(({ pack: e }) => `dayjs/locale/${e}`);
|
|
752
|
+
T = [...i, ...a];
|
|
764
753
|
let o = (e.build?.assetsDir ?? "assets").replace(/\/+$/, ""), s = e.build?.rollupOptions?.output, c = (Array.isArray(s) ? s[0] : s)?.chunkFileNames, l = e.ssr;
|
|
765
754
|
l && l.noExternal === !1 && delete l.noExternal;
|
|
766
|
-
let u =
|
|
755
|
+
let u = ot(l?.noExternal);
|
|
767
756
|
return {
|
|
768
|
-
...
|
|
757
|
+
...w ? {} : { resolve: { alias: [{
|
|
769
758
|
find: /^vee-validate$/,
|
|
770
|
-
replacement:
|
|
759
|
+
replacement: _t
|
|
771
760
|
}] } },
|
|
772
761
|
optimizeDeps: {
|
|
773
762
|
include: [...i, ...a].filter((e) => !t.includes(e)),
|
|
774
|
-
exclude:
|
|
763
|
+
exclude: rt.filter((e) => !n.includes(e))
|
|
775
764
|
},
|
|
776
765
|
...u.length ? { ssr: { noExternal: u } } : {},
|
|
777
766
|
build: { rollupOptions: { output: { chunkFileNames(e) {
|
|
778
|
-
if (e.facadeModuleId?.startsWith(
|
|
767
|
+
if (e.facadeModuleId?.startsWith(Qt)) {
|
|
779
768
|
let t = e.facadeModuleId.slice(17);
|
|
780
769
|
return `${o}/icons/${t.replace("/", "_")}-[hash].js`;
|
|
781
770
|
}
|
|
@@ -784,149 +773,111 @@ function Xt(e = {}) {
|
|
|
784
773
|
};
|
|
785
774
|
},
|
|
786
775
|
transform(e, t) {
|
|
787
|
-
return
|
|
776
|
+
return w || t.includes("/node_modules/") || t.startsWith("\0") || !/\.(vue|[cm]?[jt]sx?)(\?|$)/.test(t) || Ct(e) && this.error(`${bt}\n used in ${be(v || process.cwd(), t.split("?")[0])}`), null;
|
|
788
777
|
},
|
|
789
778
|
renderChunk(e) {
|
|
790
|
-
return !
|
|
779
|
+
return !w && e.includes(yt) && this.error(bt), null;
|
|
791
780
|
},
|
|
792
781
|
configResolved(e) {
|
|
793
|
-
|
|
782
|
+
v = e.root, C = f ?? v, E = e.command === "build", D = O(v, e.build?.outDir ?? "dist"), xe = e.build?.rollupOptions?.input, e.logger && (j = e.logger);
|
|
794
783
|
},
|
|
795
784
|
resolveId(e) {
|
|
796
|
-
if (e === tt) return nt;
|
|
797
|
-
if (e === rt) return it;
|
|
798
|
-
if (e === at) return ot;
|
|
799
785
|
if (e === st) return ct;
|
|
800
786
|
if (e === lt) return ut;
|
|
801
|
-
if (e === _t) return vt;
|
|
802
787
|
if (e === dt) return ft;
|
|
803
|
-
if (e ===
|
|
804
|
-
if (e
|
|
788
|
+
if (e === pt) return mt;
|
|
789
|
+
if (e === ht) return gt;
|
|
790
|
+
if (e === wt) return Tt;
|
|
791
|
+
if (e === _t) return vt;
|
|
792
|
+
if (e === Et) return Dt;
|
|
793
|
+
if (e.startsWith(Zt)) return "\0" + e;
|
|
805
794
|
},
|
|
806
795
|
async load(e) {
|
|
807
|
-
if (e ===
|
|
808
|
-
let { iconDir: e, enabledLocales: t, passthroughDeduper: r,
|
|
796
|
+
if (e === ut) {
|
|
797
|
+
let { iconDir: e, enabledLocales: t, passthroughDeduper: n, configScopes: r, components: i, pt: a, ...o } = l, s = {
|
|
809
798
|
inertiaLinkName: "Link",
|
|
810
799
|
nuxtLinkName: "NuxtLink",
|
|
811
800
|
linkActiveClass: "router-link-active",
|
|
812
801
|
linkExactActiveClass: "router-link-exact-active",
|
|
813
802
|
mobileMaxWidth: 768,
|
|
814
803
|
ssrViewportWidth: 1024,
|
|
815
|
-
adaptive: !0,
|
|
816
|
-
autoDisableWritingThreshold: 6,
|
|
817
|
-
defaultInputLabelMode: "outside",
|
|
818
804
|
locale: "en",
|
|
819
805
|
injectStyles: !0,
|
|
820
806
|
resetCss: !1,
|
|
821
807
|
cssLayers: void 0,
|
|
822
808
|
injectDirectives: !0,
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
formControls: {
|
|
827
|
-
textInputNullValue: "null",
|
|
828
|
-
textareaNullValue: "null",
|
|
829
|
-
validationMode: "balanced",
|
|
830
|
-
...a.formControls
|
|
831
|
-
},
|
|
832
|
-
confirm: { ...a.confirm },
|
|
833
|
-
pt: a.pt ?? {},
|
|
809
|
+
...Object.fromEntries(Object.entries(o).filter(([e]) => !Object.values(_).includes(e))),
|
|
810
|
+
pt: l.pt,
|
|
811
|
+
components: le(l.components),
|
|
834
812
|
variantIcons: {
|
|
835
|
-
toast:
|
|
836
|
-
alert:
|
|
837
|
-
},
|
|
838
|
-
variantNames: Object.fromEntries(Object.keys(y).map((e) => [y[e], re(_[e], n[y[e]])])),
|
|
839
|
-
defaultLocale: ve,
|
|
840
|
-
iconDefaultSizes: {
|
|
841
|
-
xs: 12,
|
|
842
|
-
sm: 16,
|
|
843
|
-
md: 24,
|
|
844
|
-
lg: 28,
|
|
845
|
-
xl: 36,
|
|
846
|
-
"2xl": 40,
|
|
847
|
-
...a.iconDefaultSizes
|
|
813
|
+
toast: _e(l.toastVariants),
|
|
814
|
+
alert: _e(l.alertVariants)
|
|
848
815
|
},
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
sm: 384,
|
|
852
|
-
md: 448,
|
|
853
|
-
lg: 512,
|
|
854
|
-
xl: 576,
|
|
855
|
-
"2xl": 672,
|
|
856
|
-
...a.dialogDefaultSizes
|
|
857
|
-
},
|
|
858
|
-
offCanvasDefaultSizes: {
|
|
859
|
-
xs: 320,
|
|
860
|
-
sm: 384,
|
|
861
|
-
md: 448,
|
|
862
|
-
lg: 512,
|
|
863
|
-
xl: 576,
|
|
864
|
-
"2xl": 672,
|
|
865
|
-
...a.offCanvasDefaultSizes
|
|
866
|
-
}
|
|
816
|
+
variantNames: Object.fromEntries(Object.keys(_).map((e) => [_[e], de(h[e], l[_[e]])])),
|
|
817
|
+
defaultLocale: P
|
|
867
818
|
};
|
|
868
|
-
return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(
|
|
819
|
+
return `import { reactive } from 'vue';\nexport const config = reactive(${JSON.stringify(s)});\nexport const configScopes = ${JSON.stringify(r ?? {})};\n`;
|
|
869
820
|
}
|
|
870
|
-
if (e ===
|
|
871
|
-
if (e ===
|
|
872
|
-
if (e ===
|
|
873
|
-
if (e ===
|
|
874
|
-
if (e ===
|
|
875
|
-
if (e ===
|
|
876
|
-
if (
|
|
877
|
-
|
|
878
|
-
let e =
|
|
879
|
-
return
|
|
821
|
+
if (e === mt) return Ue(N);
|
|
822
|
+
if (e === ft) return Ge(L.found);
|
|
823
|
+
if (e === gt) return `export default ${JSON.stringify(Ot())};`;
|
|
824
|
+
if (e === vt) return St();
|
|
825
|
+
if (e === Tt) return tt(et(v));
|
|
826
|
+
if (e === Dt) {
|
|
827
|
+
if (l.passthroughDeduper !== void 0) return Ke(l.passthroughDeduper, v);
|
|
828
|
+
y ??= Ye(v);
|
|
829
|
+
let e = B(y.values());
|
|
830
|
+
return x = JSON.stringify(e), Ke(void 0, v, void 0, e);
|
|
880
831
|
}
|
|
881
|
-
if (e.startsWith(
|
|
832
|
+
if (e.startsWith(Qt)) {
|
|
882
833
|
let t = e.slice(17), n = t.indexOf("/"), r = t.slice(0, n), i = t.slice(n + 1), a = R.get(r);
|
|
883
834
|
a || this.error(`[bitboss-ui] cannot load "${r}:${i}" — @iconify-json/${r} is not installed.\n Run: npm install -D @iconify-json/${r}`);
|
|
884
|
-
let o =
|
|
885
|
-
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(
|
|
835
|
+
let o = A(a, i);
|
|
836
|
+
return o || this.error(`[bitboss-ui] icon "${i}" does not exist in the ${r} icon set`), `export default ${JSON.stringify(Te(o))};`;
|
|
886
837
|
}
|
|
887
|
-
if (e !==
|
|
888
|
-
let t =
|
|
889
|
-
|
|
890
|
-
let
|
|
891
|
-
let t =
|
|
892
|
-
return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(
|
|
893
|
-
}).join("\n"),
|
|
894
|
-
return `const _local = import.meta.glob(${JSON.stringify(
|
|
838
|
+
if (e !== ct) return;
|
|
839
|
+
let t = O(v, l.iconDir), n = "/" + be(v, t).replace(/\\/g, "/") + "/**/*.svg", r = await G(), i = Me(l.iconWhitelist ?? [], R, z, V);
|
|
840
|
+
i.errors.length > 0 && this.error(i.errors.length === 1 ? i.errors[0] : `[bitboss-ui] iconWhitelist has ${i.errors.length} entries that do not resolve:\n - ${i.errors.map((e) => e.replace(/^\[bitboss-ui\] /, "")).join("\n - ")}`);
|
|
841
|
+
let a = /* @__PURE__ */ new Set([...r.icons, ...i.icons]), o = Array.from(a).sort().flatMap((e) => {
|
|
842
|
+
let t = we(e);
|
|
843
|
+
return t ? [`\t${JSON.stringify(e)}: () => import(${JSON.stringify(Zt + t.prefix + "/" + t.name)}).then(m => m.default),`] : [];
|
|
844
|
+
}).join("\n"), s = E ? null : Object.fromEntries(Array.from(R.entries()).map(([e, t]) => [e, je(t, z.get(e))]));
|
|
845
|
+
return `const _local = import.meta.glob(${JSON.stringify(n)}, { query: '?raw', import: 'default' });\nconst _localIcons = Object.fromEntries(Object.entries(_local).map(([k, l]) => { const f = k.split(/[/\\\\]+/).pop(); return [\`local:\${f.replace(/\\.svg$/i, '')}\`, l]; }));\nconst _icons = {\n` + (o ? o + "\n" : "") + `\t..._localIcons,\n};\nconst _ip = new Set(${JSON.stringify(Array.from(V))});\nconst _loaded = new Set(${JSON.stringify(Array.from(R.keys()))});\nconst _all = ${s ? JSON.stringify(s) : "null"};\nconst _diag = ${Ae};\nconst _fail = (msg) => () => { const _e = new Error(); import.meta.hot?.send('bitboss-ui:icon-missing', { msg, stack: _e.stack }); return Promise.reject(new Error(msg)); };\nexport const icons = new Proxy(_icons, {\n\tget(t, k) {\n\t\tif (k in t || typeof k !== 'string' || !k.includes(':')) return t[k];\n\t\tconst _msg = _diag(k, _loaded, (p) => Object.keys(t).filter((x) => x.startsWith(p + ':')).map((x) => x.slice(p.length + 1)), (p) => (_all && _all[p]) || null, _ip);\n\t\treturn _msg ? _fail(_msg) : undefined;\n\t},\n});\n`;
|
|
895
846
|
},
|
|
896
847
|
buildStart() {
|
|
897
|
-
|
|
898
|
-
let e =
|
|
899
|
-
if (t && this.warn(t), !
|
|
900
|
-
let e =
|
|
848
|
+
Xe();
|
|
849
|
+
let e = O(v, l.iconDir), t = zt(l.iconDir, e);
|
|
850
|
+
if (t && this.warn(t), !E) {
|
|
851
|
+
let e = Ne(C, Fe(I));
|
|
901
852
|
e && this.warn(e);
|
|
902
853
|
}
|
|
903
|
-
!
|
|
854
|
+
!E && l.vscodeSettings !== !1 && (Se(e, C, (e) => this.warn(e)), Xt(C, {
|
|
904
855
|
info: (e) => this.info(e),
|
|
905
856
|
warn: (e) => this.warn(e)
|
|
906
857
|
}));
|
|
907
|
-
for (let e of
|
|
908
|
-
for (let e of
|
|
909
|
-
for (let e of
|
|
858
|
+
for (let e of Ce) this.warn(e);
|
|
859
|
+
for (let e of Re) this.warn(e);
|
|
860
|
+
for (let e of Ee) this.warn(e);
|
|
910
861
|
for (let e of L.missing) this.warn(`[bitboss-ui] locale '${e}' has no dayjs counterpart (dayjs/locale/${e}) — its calendars fall back to English. Dayjs locale names: https://github.com/iamkun/dayjs/tree/dev/src/locale`);
|
|
911
|
-
|
|
912
|
-
let
|
|
913
|
-
root:
|
|
914
|
-
input:
|
|
915
|
-
dts:
|
|
862
|
+
l.locale && !m(l.locale) && !M.includes(l.locale) && this.warn(`[bitboss-ui] \`locale: '${l.locale}'\` is not a built-in locale${Ve(l.locale)} — the library ships ${d.length} locales. Strings fall back to the default locale.`);
|
|
863
|
+
let n = ge({
|
|
864
|
+
root: v,
|
|
865
|
+
input: xe,
|
|
866
|
+
dts: l.dts
|
|
916
867
|
});
|
|
917
|
-
if (
|
|
918
|
-
let e =
|
|
868
|
+
if (n) {
|
|
869
|
+
let e = he(l), t = ve(n, {
|
|
919
870
|
...e,
|
|
920
871
|
LocaleRegistry: [...N.flatMap((e) => [e, ...ee(e)]), ...M],
|
|
921
|
-
|
|
922
|
-
EmptyStringControlRegistry:
|
|
923
|
-
}),
|
|
924
|
-
t === "changed" ? this.info(`[bitboss-ui] Wrote ${
|
|
872
|
+
ConfigScopeRegistry: Object.keys(l.configScopes ?? {}),
|
|
873
|
+
EmptyStringControlRegistry: fe(l.components)
|
|
874
|
+
}), r = Pe(n);
|
|
875
|
+
t === "changed" ? this.info(`[bitboss-ui] Wrote ${r} — commit this file so CI and teammates get matching types.`) : typeof t == "object" && !F.has("write") && (F.add("write"), this.warn(`[bitboss-ui] could not write ${r} (${t.error}). The committed copy still types the app; regenerate it where the project is writable.`)), !F.has("program") && b(n) && (F.add("program"), me(v, n) === !1 && this.warn(`[bitboss-ui] ${r} is outside your TypeScript project — custom names will look like typos. Set \`dts\` to a path inside your app sources (for example resources/js/).`));
|
|
925
876
|
}
|
|
926
877
|
},
|
|
927
878
|
configureServer(e) {
|
|
928
|
-
|
|
929
|
-
let t =
|
|
879
|
+
l.mcp && $t(f ?? e.config.root, e.config.logger);
|
|
880
|
+
let t = O(e.config.root, l.iconDir), n = (e) => e.startsWith(t) && e.endsWith(".svg");
|
|
930
881
|
e.ws.on("bitboss-ui:icon-missing", (t) => {
|
|
931
882
|
if (process.env.VITEST || e.config.mode === "test") return;
|
|
932
883
|
let n = t.stack ? t.stack.replace(/^Error/, `Error: ${t.msg}`) : `Error: ${t.msg}`;
|
|
@@ -939,53 +890,53 @@ function Xt(e = {}) {
|
|
|
939
890
|
}
|
|
940
891
|
});
|
|
941
892
|
});
|
|
942
|
-
let
|
|
943
|
-
if (
|
|
944
|
-
let
|
|
893
|
+
let r = async (t, n) => {
|
|
894
|
+
if (l.passthroughDeduper !== void 0 || !y || !Je(v, t)) return;
|
|
895
|
+
let r = n ? {} : qe((() => {
|
|
945
896
|
try {
|
|
946
897
|
return S(t, "utf-8");
|
|
947
898
|
} catch {
|
|
948
899
|
return "";
|
|
949
900
|
}
|
|
950
901
|
})());
|
|
951
|
-
if (Object.keys(
|
|
952
|
-
else if (!
|
|
953
|
-
let
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
-
let
|
|
957
|
-
|
|
902
|
+
if (Object.keys(r).length) y.set(t, r);
|
|
903
|
+
else if (!y.delete(t)) return;
|
|
904
|
+
let i = JSON.stringify(B(y.values()));
|
|
905
|
+
if (i === x) return;
|
|
906
|
+
x = i;
|
|
907
|
+
let a = e.moduleGraph.getModuleById(Dt);
|
|
908
|
+
a && await e.reloadModule(a);
|
|
958
909
|
};
|
|
959
|
-
e.watcher.on("change", (e) => void
|
|
960
|
-
let
|
|
961
|
-
let t = e.moduleGraph.getModuleById(
|
|
910
|
+
e.watcher.on("change", (e) => void r(e, !1)), e.watcher.on("add", (e) => void r(e, !1)), e.watcher.on("unlink", (e) => void r(e, !0));
|
|
911
|
+
let i = async () => {
|
|
912
|
+
let t = e.moduleGraph.getModuleById(ct);
|
|
962
913
|
t && await e.reloadModule(t);
|
|
963
|
-
},
|
|
964
|
-
clearTimeout(
|
|
965
|
-
},
|
|
966
|
-
|
|
967
|
-
if (!
|
|
914
|
+
}, a, o = () => {
|
|
915
|
+
clearTimeout(a), a = setTimeout(() => void H?.persist(), 500);
|
|
916
|
+
}, s = Promise.resolve(), c = (e, t) => {
|
|
917
|
+
s = s.then(async () => {
|
|
918
|
+
if (!H) return;
|
|
968
919
|
let n;
|
|
969
|
-
if (
|
|
970
|
-
let e =
|
|
971
|
-
|
|
972
|
-
let t =
|
|
920
|
+
if (ye(t) === ".gitignore") {
|
|
921
|
+
let e = H.icons;
|
|
922
|
+
H.resetGitignores(), await H.scan();
|
|
923
|
+
let t = H.icons;
|
|
973
924
|
n = e.size !== t.size || [...e].some((e) => !t.has(e));
|
|
974
|
-
} else n = e === "unlink" ?
|
|
975
|
-
|
|
925
|
+
} else n = e === "unlink" ? H.removeFile(t) : await H.updateFile(t);
|
|
926
|
+
o(), n && await i();
|
|
976
927
|
}).catch((e) => {
|
|
977
928
|
j.warn(`[bitboss-ui] icon scan: could not update ${t} (${e instanceof Error ? e.message : String(e)})`);
|
|
978
929
|
});
|
|
979
930
|
};
|
|
980
|
-
if (W = e.watcher,
|
|
981
|
-
for (let
|
|
931
|
+
if (W = e.watcher, H) for (let e of H.includeDirs) W.add(e);
|
|
932
|
+
for (let r of [
|
|
982
933
|
"add",
|
|
983
934
|
"change",
|
|
984
935
|
"unlink"
|
|
985
|
-
]) e.watcher.on(
|
|
986
|
-
i
|
|
936
|
+
]) e.watcher.on(r, (i) => {
|
|
937
|
+
n(i) ? l.vscodeSettings !== !1 && Se(t, f ?? e.config.root, (e) => j.warn(e)) : c(r, i);
|
|
987
938
|
});
|
|
988
939
|
}
|
|
989
940
|
};
|
|
990
941
|
}
|
|
991
|
-
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, e as DEFAULT_MAX_FILE_SIZE,
|
|
942
|
+
export { s as BB_LAYERS, d as BUILTIN_LOCALE_KEYS, y as DEFAULTS_ALLOWLIST, e as DEFAULT_MAX_FILE_SIZE, h as DEFAULT_VARIANT_REGISTRIES, t as IconScanner, K as LOCAL_ICONS_JSON_PATH, rt as REQUIRED_OPTIMIZE_DEPS_EXCLUDE, nt as REQUIRED_OPTIMIZE_DEPS_INCLUDE, G as SSR_NO_EXTERNAL, Nt as TAILWIND_CLASS_ATTRIBUTES_DEFAULTS, X as TAILWIND_PT_CLASS_ATTRIBUTE, Z as TAILWIND_PT_CLASS_REGEX, c as TAILWIND_V3_LAYERS, l as TAILWIND_V4_LAYERS, bt as VEE_MISSING_MESSAGE, tn as bitbossUi, Xe as collectThemeNames, Lt as defaultVscodeSettings, P as diagnoseMissingIcon, Me as expandIconWhitelist, n as extractIconCandidates, Ge as generateDayjsLocalesModule, tt as generateLinkModule, Ue as generateLocalesModule, Ke as generatePassthroughDeduperModule, St as generateVeeMissingModule, et as hasInertia, a as iconLiteralRegExp, o as iconScanCacheFile, Je as isAppThemeCss, zt as localIconDirWarning, B as mergeThemeNames, We as resolveDayjsLocales, He as resolveEnabledLocales, ot as resolveSsrNoExternal, Ye as scanThemeFiles, Bt as stripJsonComments, qe as themeNamesInCss, Xt as updateVscodeSettings, Ne as upgradeHint, Ct as usesBbForm, Ze as validatePassthroughDeduper, Be as validatePtGlobalMapNames, ze as validateVariantNames, Rt as writeLocalIconifyCollection };
|