bitboss-ui 3.0.0-beta.63 → 3.0.0-beta.65
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 +25 -20
- package/bin/bitboss-ui.mjs +73 -7
- package/dist/ai/BbAlert.md +10 -1
- package/dist/ai/BbBadge.md +35 -3
- package/dist/ai/BbBadgeButton.md +4 -2
- package/dist/ai/BbBaseButton.md +9 -3
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +113 -8
- package/dist/ai/BbCheckbox.md +1 -1
- package/dist/ai/BbCheckboxGroup.md +94 -6
- package/dist/ai/BbColorInput.md +4 -1
- package/dist/ai/BbColorPalette.md +2 -1
- package/dist/ai/BbConfirm.md +7 -3
- package/dist/ai/BbDatePicker.md +2 -1
- package/dist/ai/BbDatePickerInput.md +4 -1
- package/dist/ai/BbDialog.md +12 -11
- package/dist/ai/BbDropdown.md +189 -38
- package/dist/ai/BbDropdownButton.md +27 -7
- package/dist/ai/BbForm.md +55 -22
- package/dist/ai/BbHost.md +2 -2
- package/dist/ai/BbHoverCard.md +7 -3
- package/dist/ai/BbIcon.md +12 -6
- package/dist/ai/BbIndicator.md +11 -1
- package/dist/ai/BbNumberInput.md +4 -1
- package/dist/ai/BbOffCanvas.md +37 -3
- package/dist/ai/BbPopover.md +2 -1
- package/dist/ai/BbRadio.md +1 -1
- package/dist/ai/BbRadioGroup.md +102 -10
- package/dist/ai/BbSelect.md +52 -17
- package/dist/ai/BbSelectPopover.md +93 -26
- package/dist/ai/BbSwitch.md +1 -1
- package/dist/ai/BbSwitchGroup.md +30 -3
- package/dist/ai/BbTable.md +17 -10
- package/dist/ai/BbTabs.md +8 -3
- package/dist/ai/BbTabsList.md +4 -1
- package/dist/ai/BbTag.md +5 -2
- package/dist/ai/BbTextInput.md +4 -1
- package/dist/ai/BbTextarea.md +4 -1
- package/dist/ai/BbTimePicker.md +2 -1
- package/dist/ai/BbTimePickerInput.md +4 -1
- package/dist/ai/BbToast.md +9 -3
- package/dist/ai/BbTooltip.md +71 -9
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/CommonField.md +1 -1
- package/dist/ai/OptionsContainer.md +42 -0
- package/dist/ai/changelog.json +494 -6
- package/dist/ai/components.json +50 -48
- package/dist/ai/composables/useBbConfig.md +8 -1
- package/dist/ai/composables/useConfirm.md +39 -1
- package/dist/ai/design-tokens.json +6 -6
- package/dist/ai/guides/agent-contract.md +2 -2
- package/dist/ai/guides/ai-router.md +24 -23
- package/dist/ai/guides/app-layout.md +5 -0
- package/dist/ai/guides/component-picker.md +9 -2
- package/dist/ai/guides/design-language.md +24 -24
- package/dist/ai/guides/design-tokens.md +15 -8
- package/dist/ai/guides/icons-policy.md +9 -2
- package/dist/ai/guides/inertia-helpers.md +1183 -301
- package/dist/ai/guides/installation-and-plugin-setup.md +12 -2
- package/dist/ai/guides/migration/adoption-checklist.md +235 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +16 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +9 -9
- package/dist/ai/guides/migration/components/bb-dropdown.md +7 -2
- package/dist/ai/guides/migration/components/bb-popover.md +4 -2
- package/dist/ai/guides/migration/components/bb-select.md +19 -0
- package/dist/ai/guides/migration/components/bb-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-toast.md +4 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +15 -12
- package/dist/ai/guides/migration/components/use-confirm.md +25 -2
- package/dist/ai/guides/migration/v2-to-v3.md +211 -9
- package/dist/ai/guides/migration/v3-beta-css-classes.md +7 -3
- package/dist/ai/guides/options-items-playbook.md +2 -1
- package/dist/ai/guides/passthrough.md +149 -85
- package/dist/ai/guides/preset-components.md +140 -15
- package/dist/ai/helpers/definePreset.json +7 -0
- package/dist/ai/helpers/definePreset.ts +123 -11
- package/dist/ai/helpers/inertia/manifest.json +151 -62
- package/dist/ai/helpers/inertia/messages.ts +33 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +120 -20
- package/dist/ai/helpers/inertia/useHasChanged.ts +34 -16
- package/dist/ai/helpers/inertia/useLazyProp.ts +102 -36
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +3 -1
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +154 -34
- package/dist/ai/helpers/inertia/usePromiseForm.ts +121 -14
- package/dist/ai/helpers/inertia/useQuery.ts +133 -11
- package/dist/ai/helpers/inertia/useQueryObject.ts +74 -67
- package/dist/ai/helpers/inertia/useResourceContext.ts +60 -14
- package/dist/ai/helpers/inertia/useRouteQuery.ts +38 -27
- package/dist/ai/helpers/inertia/useScreenSizes.ts +9 -7
- package/dist/ai/helpers/inertia/useTableContext.ts +5 -2
- package/dist/ai/helpers/inertia/utils.ts +14 -0
- package/dist/ai/index.md +1 -0
- package/dist/ai/manifest/common.json +0 -1
- package/dist/ai/manifest/components/BbAlert.json +7 -2
- package/dist/ai/manifest/components/BbBadge.json +13 -4
- package/dist/ai/manifest/components/BbBadge.tree.json +2 -0
- package/dist/ai/manifest/components/BbBadgeButton.json +4 -2
- package/dist/ai/manifest/components/BbBaseButton.json +4 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +14 -3
- package/dist/ai/manifest/components/BbButton.tree.json +5 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +13 -8
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +18 -15
- package/dist/ai/manifest/components/BbColorPalette.json +1 -1
- package/dist/ai/manifest/components/BbConfirm.json +4 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +1 -1
- package/dist/ai/manifest/components/BbDatePickerInput.json +17 -14
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.json +24 -19
- package/dist/ai/manifest/components/BbDropdown.tree.json +9 -2
- package/dist/ai/manifest/components/BbDropdownButton.json +33 -20
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbIndicator.json +8 -2
- package/dist/ai/manifest/components/BbNumberInput.json +5 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -2
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +17 -12
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -1
- package/dist/ai/manifest/components/BbSelect.json +21 -18
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
- package/dist/ai/manifest/components/BbSelectPopover.json +10 -10
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +3 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +3 -1
- package/dist/ai/manifest/components/BbTable.tree.json +14 -1
- package/dist/ai/manifest/components/BbTabs.json +9 -6
- package/dist/ai/manifest/components/BbTabs.tree.json +1 -1
- package/dist/ai/manifest/components/BbTabsList.json +6 -3
- package/dist/ai/manifest/components/BbTag.json +19 -16
- package/dist/ai/manifest/components/BbTag.tree.json +1 -1
- package/dist/ai/manifest/components/BbTextInput.json +6 -3
- package/dist/ai/manifest/components/BbTextarea.json +6 -3
- package/dist/ai/manifest/components/BbTimePicker.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +10 -7
- package/dist/ai/manifest/components/BbToast.json +7 -2
- package/dist/ai/manifest/components/BbToast.tree.json +4 -2
- package/dist/ai/manifest/components/BbTooltip.json +6 -5
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/CommonField.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +3 -1
- package/dist/ai/manifest/components/OptionsContainer.tree.json +38 -0
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +5 -3
- package/dist/ai/manifest/types.advanced.json +5 -2
- package/dist/ai/manifest/types.api.json +9 -7
- package/dist/ai/recipes/inertia/approvals-inbox.md +1 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/layout-scaffold.md +19 -6
- package/dist/ai/recipes/inertia/ownership-atlas.md +1 -1
- package/dist/ai/recipes/inertia/records-workspace.md +50 -14
- package/dist/ai/recipes/inertia/upload-center.md +1 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +19 -6
- package/dist/ai/recipes/nuxt/records-workspace.md +42 -12
- package/dist/ai/recipes/vue/layout-scaffold.md +19 -6
- package/dist/ai/recipes/vue/records-workspace.md +42 -12
- package/dist/ai/source/BbAlert.md +94 -76
- package/dist/ai/source/BbBadge.md +174 -72
- package/dist/ai/source/BbBadgeButton.md +130 -65
- package/dist/ai/source/BbBaseButton.md +46 -124
- package/dist/ai/source/BbBaseCheckboxIcon.md +38 -0
- package/dist/ai/source/BbBaseRadioIcon.md +18 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +51 -0
- package/dist/ai/source/BbButton.md +153 -36
- package/dist/ai/source/BbCheckboxGroup.md +142 -18
- package/dist/ai/source/BbColorInput.md +240 -204
- package/dist/ai/source/BbColorPalette.md +7 -4
- package/dist/ai/source/BbConfirm.md +34 -11
- package/dist/ai/source/BbConfirmPortal.md +24 -9
- package/dist/ai/source/BbDatePicker.md +11 -7
- package/dist/ai/source/BbDatePickerInput.md +306 -269
- package/dist/ai/source/BbDialog.md +49 -14
- package/dist/ai/source/BbDropdown.md +314 -197
- package/dist/ai/source/BbDropdownButton.md +197 -31
- package/dist/ai/source/BbDropdownGroup.md +274 -176
- package/dist/ai/source/BbForm.md +50 -6
- package/dist/ai/source/BbHoverCard.md +12 -5
- package/dist/ai/source/BbIcon.md +4 -3
- package/dist/ai/source/BbIndicator.md +73 -52
- package/dist/ai/source/BbNumberInput.md +293 -257
- package/dist/ai/source/BbOffCanvas.md +55 -29
- package/dist/ai/source/BbPopover.md +14 -10
- package/dist/ai/source/BbRadioGroup.md +413 -297
- package/dist/ai/source/BbSelect.md +549 -435
- package/dist/ai/source/BbSelectPopover.md +153 -34
- package/dist/ai/source/BbSwitchGroup.md +70 -10
- package/dist/ai/source/BbTable.md +369 -37
- package/dist/ai/source/BbTabs.md +115 -39
- package/dist/ai/source/BbTabsList.md +106 -38
- package/dist/ai/source/BbTabsPanels.md +96 -36
- package/dist/ai/source/BbTabsRoot.md +96 -36
- package/dist/ai/source/BbTag.md +267 -233
- package/dist/ai/source/BbTextInput.md +261 -225
- package/dist/ai/source/BbTextarea.md +251 -215
- package/dist/ai/source/BbTimePicker.md +11 -7
- package/dist/ai/source/BbTimePickerInput.md +257 -220
- package/dist/ai/source/BbToast.md +73 -32
- package/dist/ai/source/BbToastPortal.md +65 -30
- package/dist/ai/source/BbTooltip.md +148 -113
- package/dist/ai/source/CommonPopover.md +6 -1
- package/dist/ai/source/FlatListBox.md +19 -9
- package/dist/ai/source/GroupedListBox.md +19 -9
- package/dist/ai/source/OptionsContainer.md +25 -9
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +61 -36
- package/dist/components/BbAlert/types.d.ts +9 -5
- package/dist/components/BbAlert/types.js +8 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +3 -3
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +26 -17
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +103 -50
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +20 -15
- package/dist/components/BbBadge/badgeButtonContext.d.ts +12 -1
- package/dist/components/BbBadge/types.d.ts +45 -15
- package/dist/components/BbBadge/types.js +12 -3
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +89 -126
- package/dist/components/BbBaseButton/types.d.ts +23 -4
- package/dist/components/BbBaseButton/types.js +7 -1
- package/dist/components/BbBaseButton/useLinkState.d.ts +41 -0
- package/dist/components/BbBaseButton/useLinkState.js +70 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -74
- package/dist/components/BbButton/types.d.ts +50 -13
- package/dist/components/BbButton/types.js +10 -3
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +148 -95
- package/dist/components/BbCheckboxGroup/types.d.ts +34 -11
- package/dist/components/BbCheckboxGroup/types.js +9 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +134 -93
- package/dist/components/BbColorInput/types.d.ts +11 -4
- package/dist/components/BbColorInput/types.js +9 -3
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +82 -59
- package/dist/components/BbConfirm/types.d.ts +9 -4
- package/dist/components/BbConfirm/types.js +8 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +68 -67
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +259 -215
- package/dist/components/BbDatePickerInput/types.d.ts +12 -5
- package/dist/components/BbDatePickerInput/types.js +9 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +223 -219
- package/dist/components/BbDialog/useDialogStack.d.ts +1 -1
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +104 -89
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +323 -285
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +411 -319
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +100 -98
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +4 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +49 -28
- package/dist/components/BbDropdown/normalizeGroups.d.ts +6 -0
- package/dist/components/BbDropdown/normalizeGroups.js +21 -15
- package/dist/components/BbDropdown/types.d.ts +59 -12
- package/dist/components/BbDropdown/types.js +16 -3
- package/dist/components/BbDropdown/useDropdownContext.d.ts +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +179 -68
- package/dist/components/BbDropdownButton/types.d.ts +44 -16
- package/dist/components/BbDropdownButton/types.js +28 -3
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +111 -89
- package/dist/components/BbForm/formSchema.d.ts +13 -0
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +100 -100
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +40 -25
- package/dist/components/BbIndicator/types.d.ts +9 -5
- package/dist/components/BbIndicator/types.js +8 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +243 -202
- package/dist/components/BbNumberInput/types.d.ts +12 -5
- package/dist/components/BbNumberInput/types.js +9 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +401 -399
- package/dist/components/BbOffCanvas/types.d.ts +6 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +81 -80
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +158 -105
- package/dist/components/BbRadioGroup/types.d.ts +21 -7
- package/dist/components/BbRadioGroup/types.js +9 -4
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +181 -137
- package/dist/components/BbSelect/types.d.ts +36 -22
- package/dist/components/BbSelect/types.js +22 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +4 -4
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +600 -577
- package/dist/components/BbSelectPopover/knownItems.d.ts +5 -0
- package/dist/components/BbSelectPopover/types.d.ts +46 -12
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbSwitchGroup/types.d.ts +14 -4
- package/dist/components/BbSwitchGroup/types.js +8 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1102 -995
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +25 -0
- package/dist/components/BbTable/measuredFloors.d.ts +46 -0
- package/dist/components/BbTable/measuredFloors.js +322 -0
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +27 -0
- package/dist/components/BbTable/textRuler.d.ts +71 -0
- package/dist/components/BbTable/textRuler.js +121 -0
- package/dist/components/BbTable/utils.d.ts +113 -6
- package/dist/components/BbTable/utils.js +118 -65
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +53 -35
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +62 -45
- package/dist/components/BbTabs/types.d.ts +26 -11
- package/dist/components/BbTabs/types.js +23 -8
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +205 -164
- package/dist/components/BbTag/types.d.ts +11 -4
- package/dist/components/BbTag/types.js +9 -3
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +98 -57
- package/dist/components/BbTextInput/types.d.ts +12 -5
- package/dist/components/BbTextInput/types.js +9 -3
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +137 -96
- package/dist/components/BbTextarea/types.d.ts +12 -5
- package/dist/components/BbTextarea/types.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +105 -104
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +241 -197
- package/dist/components/BbTimePickerInput/types.d.ts +12 -5
- package/dist/components/BbTimePickerInput/types.js +9 -3
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +74 -32
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +47 -47
- package/dist/components/BbToast/types.d.ts +10 -5
- package/dist/components/BbToast/types.js +18 -3
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +85 -71
- package/dist/components/BbTooltip/types.d.ts +13 -8
- package/dist/components/BbTooltip/types.js +8 -3
- package/dist/components/CommonField/CommonField.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +1 -1
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +69 -69
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +53 -50
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +146 -143
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/OptionsContainer/types.d.ts +14 -3
- package/dist/composables/useBbConfig.d.ts +1 -0
- package/dist/composables/useBbConfig.js +11 -7
- package/dist/composables/useBbFormContext.d.ts +4 -3
- package/dist/composables/useBbTabsContext.js +99 -85
- package/dist/composables/useChoiceIndicator.d.ts +58 -0
- package/dist/composables/useChoiceIndicator.js +197 -0
- package/dist/composables/useConfirm.d.ts +4 -4
- package/dist/composables/usePassthrough.d.ts +54 -1
- package/dist/composables/usePassthrough.js +100 -71
- package/dist/directives/bbTooltip.d.ts +12 -6
- package/dist/directives/createPopoverDirective.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/llms-full.txt +3467 -801
- package/dist/llms-medium.txt +71 -53
- package/dist/llms.txt +2 -1
- package/dist/passthrough-deduper.js +6 -3
- package/dist/project-dts.d.ts +24 -0
- package/dist/project-dts.js +43 -17
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +14 -0
- package/dist/types/AlertVariant.js +9 -0
- package/dist/types/BadgeVariant.d.ts +14 -0
- package/dist/types/BadgeVariant.js +9 -0
- package/dist/types/ButtonVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.js +11 -0
- package/dist/types/CheckboxVariant.d.ts +38 -0
- package/dist/types/CheckboxVariant.js +4 -0
- package/dist/types/CommonProps.d.ts +4 -3
- package/dist/types/Config.d.ts +7 -0
- package/dist/types/ConfirmVariant.d.ts +12 -0
- package/dist/types/ConfirmVariant.js +4 -0
- package/dist/types/DropdownItemVariant.d.ts +12 -0
- package/dist/types/DropdownItemVariant.js +4 -0
- package/dist/types/IndicatorVariant.d.ts +15 -0
- package/dist/types/IndicatorVariant.js +10 -0
- package/dist/types/InputVariant.d.ts +13 -0
- package/dist/types/InputVariant.js +8 -0
- package/dist/types/RadioVariant.d.ts +38 -0
- package/dist/types/RadioVariant.js +4 -0
- package/dist/types/TabsVariant.d.ts +13 -0
- package/dist/types/TabsVariant.js +8 -0
- package/dist/types/ToastVariant.d.ts +15 -0
- package/dist/types/ToastVariant.js +10 -0
- package/dist/types/TooltipVariant.d.ts +12 -0
- package/dist/types/TooltipVariant.js +4 -0
- package/dist/types/passthrough.d.ts +83 -15
- package/dist/types/passthrough.js +2 -2
- package/dist/types/ptComponentMap.d.ts +35 -23
- package/dist/utilities/functions/extractDomContainer.d.ts +20 -1
- package/dist/utilities/functions/extractDomContainer.js +8 -3
- package/dist/utils/focusVisibility.d.ts +6 -0
- package/dist/utils/focusVisibility.js +4 -1
- package/dist/utils/passthroughDeduper.d.ts +14 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +64 -7
- package/dist/vite.js +385 -259
- package/llms.txt +2 -1
- package/package.json +5 -4
- package/scripts/lib/adoption-checklist.json +312 -0
- package/scripts/lib/eslint-plugin.d.ts +13 -0
- package/scripts/lib/eslint-plugin.mjs +75 -11
- package/scripts/lib/helpers-add.mjs +26 -2
- package/scripts/lib/idiom-scan.mjs +65 -0
- package/scripts/lib/mcp-config.mjs +203 -9
- package/scripts/lib/migrate-fix.mjs +42 -1
- package/scripts/lib/project-variant-dts.mjs +18 -0
- package/scripts/lib/validate-bb-markup.mjs +99 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { isNotEmpty as e } from "../../utilities/functions/isNotEmpty.js";
|
|
2
|
-
import { TEXT_CONTROL_NATIVE_ATTRS as t, formControlPtActive as n, usePassthrough as r } from "../../composables/usePassthrough.js";
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { removedPropsFor as
|
|
5
|
-
import { warnRemovedAttrs as
|
|
2
|
+
import { TEXT_CONTROL_NATIVE_ATTRS as t, formControlPtActive as n, usePassthrough as r, variantPt as i } from "../../composables/usePassthrough.js";
|
|
3
|
+
import { useConfig as a } from "../../composables/useConfig.js";
|
|
4
|
+
import { removedPropsFor as o } from "../../deprecation/removedProps.js";
|
|
5
|
+
import { warnRemovedAttrs as ee } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
6
6
|
import s from "../BbSmoothHeight/BbSmoothHeight.vue.js";
|
|
7
7
|
import { vAutofocus as c } from "../../utilities/misc/autofocus.js";
|
|
8
|
-
import
|
|
8
|
+
import l from "../CommonField/CommonField.vue.js";
|
|
9
9
|
import { useFormBinding as te } from "../../composables/useFormBinding.js";
|
|
10
|
-
import
|
|
11
|
-
import { useCharacterCounter as
|
|
12
|
-
import { BB_TEXTAREA_PT as
|
|
13
|
-
import { computed as
|
|
14
|
-
import { useResizeObserver as
|
|
10
|
+
import ne from "../CommonFieldInput/CommonFieldInput.vue.js";
|
|
11
|
+
import { useCharacterCounter as re } from "../../composables/useCharacterCounter.js";
|
|
12
|
+
import { BB_TEXTAREA_PT as u } from "./types.js";
|
|
13
|
+
import { computed as d, createBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, onMounted as S, openBlock as C, ref as w, renderSlot as T, unref as E, useAttrs as D, watch as O, withCtx as k, withDirectives as ie } from "vue";
|
|
14
|
+
import { useResizeObserver as ae } from "@vueuse/core";
|
|
15
15
|
//#region src/components/BbTextarea/BbTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
-
var
|
|
16
|
+
var oe = [
|
|
17
17
|
"id",
|
|
18
18
|
"aria-describedby",
|
|
19
19
|
"aria-disabled",
|
|
@@ -31,6 +31,7 @@ var ae = [
|
|
|
31
31
|
"rows",
|
|
32
32
|
"value"
|
|
33
33
|
], A = /*@__PURE__*/ g({
|
|
34
|
+
mixins: [i(u)],
|
|
34
35
|
inheritAttrs: !1,
|
|
35
36
|
__name: "BbTextarea",
|
|
36
37
|
props: {
|
|
@@ -151,6 +152,42 @@ var ae = [
|
|
|
151
152
|
"pt:counter:hasValue": {},
|
|
152
153
|
"pt:counter:nearLimit": {},
|
|
153
154
|
"pt:counter:atLimit": {},
|
|
155
|
+
"pt:root:outline": {},
|
|
156
|
+
"pt:root:secondary": {},
|
|
157
|
+
"pt:root:ghost": {},
|
|
158
|
+
"pt:label:outline": {},
|
|
159
|
+
"pt:label:secondary": {},
|
|
160
|
+
"pt:label:ghost": {},
|
|
161
|
+
"pt:description:outline": {},
|
|
162
|
+
"pt:description:secondary": {},
|
|
163
|
+
"pt:description:ghost": {},
|
|
164
|
+
"pt:message:outline": {},
|
|
165
|
+
"pt:message:secondary": {},
|
|
166
|
+
"pt:message:ghost": {},
|
|
167
|
+
"pt:hint:outline": {},
|
|
168
|
+
"pt:hint:secondary": {},
|
|
169
|
+
"pt:hint:ghost": {},
|
|
170
|
+
"pt:box:outline": {},
|
|
171
|
+
"pt:box:secondary": {},
|
|
172
|
+
"pt:box:ghost": {},
|
|
173
|
+
"pt:input:outline": {},
|
|
174
|
+
"pt:input:secondary": {},
|
|
175
|
+
"pt:input:ghost": {},
|
|
176
|
+
"pt:icon:outline": {},
|
|
177
|
+
"pt:icon:secondary": {},
|
|
178
|
+
"pt:icon:ghost": {},
|
|
179
|
+
"pt:spinner:outline": {},
|
|
180
|
+
"pt:spinner:secondary": {},
|
|
181
|
+
"pt:spinner:ghost": {},
|
|
182
|
+
"pt:prefix:outline": {},
|
|
183
|
+
"pt:prefix:secondary": {},
|
|
184
|
+
"pt:prefix:ghost": {},
|
|
185
|
+
"pt:suffix:outline": {},
|
|
186
|
+
"pt:suffix:secondary": {},
|
|
187
|
+
"pt:suffix:ghost": {},
|
|
188
|
+
"pt:clear:outline": {},
|
|
189
|
+
"pt:clear:secondary": {},
|
|
190
|
+
"pt:clear:ghost": {},
|
|
154
191
|
pt: {},
|
|
155
192
|
"append:icon": {},
|
|
156
193
|
autocomplete: {},
|
|
@@ -206,178 +243,182 @@ var ae = [
|
|
|
206
243
|
"compositionend",
|
|
207
244
|
"update:modelValue"
|
|
208
245
|
],
|
|
209
|
-
setup(
|
|
210
|
-
let
|
|
246
|
+
setup(i, { emit: g }) {
|
|
247
|
+
let A = i, { props: j, emit: M, showAsterisk: N, errors: P, required: F, ariaRequired: I, readonly: L } = te(A, g, {
|
|
211
248
|
componentName: "BbTextarea",
|
|
212
|
-
identifierFallback: () =>
|
|
249
|
+
identifierFallback: () => A.label,
|
|
213
250
|
leaveOn: "blur"
|
|
214
251
|
});
|
|
215
|
-
process.env.NODE_ENV !== "production" &&
|
|
216
|
-
let
|
|
217
|
-
enabled: () => !!
|
|
218
|
-
value: () =>
|
|
219
|
-
maxlength: () =>
|
|
220
|
-
}),
|
|
252
|
+
process.env.NODE_ENV !== "production" && ee("BbTextarea", o("BbTextarea"));
|
|
253
|
+
let R = a(), z = () => (A.nullValue ?? R.formControls?.textareaNullValue) === "string" ? "" : null, B = w(!1), V = d(() => j.persistentHint || B.value), H = d(() => e(j.modelValue)), U = d(() => !!j.clearable && H.value), W = d(() => j.labelMode ?? R.defaultInputLabelMode), G = D(), K = re({
|
|
254
|
+
enabled: () => !!j.counter,
|
|
255
|
+
value: () => j.modelValue,
|
|
256
|
+
maxlength: () => G.maxlength ?? G.maxLength
|
|
257
|
+
}), q = r({
|
|
221
258
|
component: "BbTextarea",
|
|
222
|
-
attrs:
|
|
259
|
+
attrs: D(),
|
|
223
260
|
controlAttrs: t,
|
|
224
|
-
props:
|
|
225
|
-
parts:
|
|
226
|
-
states:
|
|
261
|
+
props: j,
|
|
262
|
+
parts: u.parts,
|
|
263
|
+
states: u.states,
|
|
227
264
|
active: {
|
|
228
|
-
...n(
|
|
229
|
-
nearLimit: () =>
|
|
230
|
-
atLimit: () =>
|
|
265
|
+
...n(j, () => H.value),
|
|
266
|
+
nearLimit: () => K.value?.state === "near",
|
|
267
|
+
atLimit: () => K.value?.state === "limit"
|
|
268
|
+
},
|
|
269
|
+
variant: {
|
|
270
|
+
...u.variant,
|
|
271
|
+
current: () => j.variant ?? "outline"
|
|
231
272
|
}
|
|
232
|
-
}),
|
|
233
|
-
if (!
|
|
234
|
-
let e = String(
|
|
235
|
-
return Math.max(Number(
|
|
273
|
+
}), J = w(null), Y = d(() => j.modelValue ?? ""), se = d(() => {
|
|
274
|
+
if (!j.autoGrow) return j.rows;
|
|
275
|
+
let e = String(Y.value).split("\n").length;
|
|
276
|
+
return Math.max(Number(j.rows ?? 1), e);
|
|
236
277
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}),
|
|
240
|
-
|
|
241
|
-
}),
|
|
278
|
+
S(() => {
|
|
279
|
+
j.autoGrow && $();
|
|
280
|
+
}), O(() => j.modelValue, () => {
|
|
281
|
+
j.autoGrow && y($);
|
|
282
|
+
}), O(() => j.autoGrow, (e) => {
|
|
242
283
|
if (e) {
|
|
243
284
|
y($);
|
|
244
285
|
return;
|
|
245
286
|
}
|
|
246
287
|
ue();
|
|
247
|
-
}),
|
|
248
|
-
if (
|
|
249
|
-
if (Q &&
|
|
250
|
-
let e =
|
|
288
|
+
}), ae(J, () => {
|
|
289
|
+
if (j.autoGrow) {
|
|
290
|
+
if (Q && J.value) {
|
|
291
|
+
let e = J.value.getBoundingClientRect();
|
|
251
292
|
if (Math.abs(e.width - Q.width) < .5 && Math.abs(e.height - Q.height) < .5) return;
|
|
252
293
|
}
|
|
253
294
|
$();
|
|
254
295
|
}
|
|
255
296
|
});
|
|
256
|
-
function
|
|
297
|
+
function X(e) {
|
|
257
298
|
if (e.target instanceof HTMLTextAreaElement) {
|
|
258
|
-
let t = e.target.value, n = t === "" ?
|
|
259
|
-
|
|
299
|
+
let t = e.target.value, n = t === "" ? z() : t;
|
|
300
|
+
M("input", e), M("update:modelValue", n), j.autoGrow && $();
|
|
260
301
|
}
|
|
261
302
|
}
|
|
262
303
|
function ce(e) {
|
|
263
|
-
e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && e.stopPropagation(), e.target instanceof HTMLTextAreaElement &&
|
|
304
|
+
e.key === "Enter" && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && e.stopPropagation(), e.target instanceof HTMLTextAreaElement && M("keydown", e);
|
|
264
305
|
}
|
|
265
306
|
let Z = {
|
|
266
307
|
onBlur: (e) => {
|
|
267
|
-
|
|
308
|
+
B.value = !1, M("blur", e);
|
|
268
309
|
},
|
|
269
|
-
onChange: (e) =>
|
|
270
|
-
onClick: (e) =>
|
|
310
|
+
onChange: (e) => M("change", e),
|
|
311
|
+
onClick: (e) => M("click", e),
|
|
271
312
|
onFocus: (e) => {
|
|
272
|
-
|
|
313
|
+
B.value = !0, M("focus", e);
|
|
273
314
|
},
|
|
274
|
-
onKeyup: (e) =>
|
|
275
|
-
onMousedown: (e) =>
|
|
276
|
-
onMouseup: (e) =>
|
|
277
|
-
onPaste: (e) =>
|
|
278
|
-
onCompositionstart: (e) =>
|
|
279
|
-
onCompositionend: (e) =>
|
|
280
|
-
}, le =
|
|
315
|
+
onKeyup: (e) => M("keyup", e),
|
|
316
|
+
onMousedown: (e) => M("mousedown", e),
|
|
317
|
+
onMouseup: (e) => M("mouseup", e),
|
|
318
|
+
onPaste: (e) => M("paste", e),
|
|
319
|
+
onCompositionstart: (e) => M("compositionstart", e),
|
|
320
|
+
onCompositionend: (e) => M("compositionend", e)
|
|
321
|
+
}, le = d(() => q.input ? v(Z, q.input) : Z), Q = null;
|
|
281
322
|
function $() {
|
|
282
|
-
if (!
|
|
283
|
-
|
|
284
|
-
let e =
|
|
323
|
+
if (!J.value) return;
|
|
324
|
+
J.value.style.height = j.rows ? "auto" : "0px", J.value.style.height = `${J.value.scrollHeight}px`;
|
|
325
|
+
let e = J.value.getBoundingClientRect();
|
|
285
326
|
Q = {
|
|
286
327
|
width: e.width,
|
|
287
328
|
height: e.height
|
|
288
329
|
};
|
|
289
330
|
}
|
|
290
331
|
function ue() {
|
|
291
|
-
|
|
332
|
+
J.value && (J.value.style.removeProperty("height"), Q = null);
|
|
292
333
|
}
|
|
293
|
-
return (e, t) => (
|
|
334
|
+
return (e, t) => (C(), f(l, v({
|
|
294
335
|
id: e.id,
|
|
295
336
|
class: "bb-textarea",
|
|
296
|
-
clearable:
|
|
337
|
+
clearable: U.value,
|
|
297
338
|
compact: e.compact,
|
|
298
|
-
counter:
|
|
339
|
+
counter: E(K),
|
|
299
340
|
description: e.description,
|
|
300
341
|
disabled: e.disabled,
|
|
301
|
-
errors:
|
|
342
|
+
errors: E(P),
|
|
302
343
|
"has-errors": e.hasErrors,
|
|
303
|
-
"has-value":
|
|
344
|
+
"has-value": H.value,
|
|
304
345
|
"has-warnings": e.hasWarnings,
|
|
305
346
|
"hide-label": e.hideLabel,
|
|
306
347
|
hint: e.hint,
|
|
307
348
|
"input-align": e.inputAlign,
|
|
308
349
|
label: e.label,
|
|
309
350
|
"label-align": e.labelAlign,
|
|
310
|
-
"label-mode":
|
|
351
|
+
"label-mode": W.value,
|
|
311
352
|
"label-position": e.labelPosition,
|
|
312
353
|
layout: e.layout,
|
|
313
354
|
loading: e.loading,
|
|
314
355
|
name: e.name,
|
|
315
|
-
passthrough:
|
|
316
|
-
readonly:
|
|
356
|
+
passthrough: E(q),
|
|
357
|
+
readonly: E(L),
|
|
317
358
|
reverse: e.reverse,
|
|
318
|
-
"show-asterisk":
|
|
319
|
-
"show-hint":
|
|
359
|
+
"show-asterisk": E(N),
|
|
360
|
+
"show-hint": V.value,
|
|
320
361
|
warnings: e.warnings
|
|
321
|
-
},
|
|
322
|
-
label:
|
|
323
|
-
input:
|
|
324
|
-
"append:icon":
|
|
362
|
+
}, E(q).forwardAttrs), m({
|
|
363
|
+
label: k((t) => [T(e.$slots, "label", x(_(t)))]),
|
|
364
|
+
input: k(({ id: n, hasErrors: r, hasWarnings: i, ariaDescribedby: a, ariaLabelledby: o }) => [h(ne, {
|
|
365
|
+
"append:icon": A["append:icon"],
|
|
325
366
|
class: b(["bb-textarea__field", { "bb-textarea__field--auto-grow": e.autoGrow }]),
|
|
326
367
|
clearable: e.clearable,
|
|
327
368
|
compact: e.compact,
|
|
328
369
|
disabled: e.disabled,
|
|
329
370
|
"has-errors": r,
|
|
330
|
-
"has-value":
|
|
371
|
+
"has-value": H.value,
|
|
331
372
|
"has-warnings": i,
|
|
332
373
|
loading: e.loading,
|
|
333
|
-
passthrough:
|
|
334
|
-
"prepend:icon":
|
|
335
|
-
readonly:
|
|
374
|
+
passthrough: E(q),
|
|
375
|
+
"prepend:icon": A["prepend:icon"],
|
|
376
|
+
readonly: E(L),
|
|
336
377
|
"reserve-append-space": e.clearable,
|
|
337
378
|
variant: e.variant,
|
|
338
|
-
"onClick:clear": t[0] ||= (e) =>
|
|
379
|
+
"onClick:clear": t[0] ||= (e) => E(M)("update:modelValue", z())
|
|
339
380
|
}, m({
|
|
340
|
-
"prepend:outer":
|
|
341
|
-
prepend:
|
|
342
|
-
append:
|
|
343
|
-
"append:outer":
|
|
344
|
-
default:
|
|
381
|
+
"prepend:outer": k(() => [T(e.$slots, "prepend:outer")]),
|
|
382
|
+
prepend: k(() => [T(e.$slots, "prepend")]),
|
|
383
|
+
append: k(() => [T(e.$slots, "append")]),
|
|
384
|
+
"append:outer": k(() => [T(e.$slots, "append:outer")]),
|
|
385
|
+
default: k(() => [h(s, {
|
|
345
386
|
disabled: !e.autoGrow,
|
|
346
387
|
tag: "span"
|
|
347
388
|
}, {
|
|
348
|
-
default:
|
|
389
|
+
default: k(() => [ie(p("textarea", v({
|
|
349
390
|
id: n,
|
|
350
391
|
ref_key: "textarea",
|
|
351
|
-
ref:
|
|
392
|
+
ref: J,
|
|
352
393
|
"aria-describedby": a,
|
|
353
394
|
"aria-disabled": e.disabled || void 0,
|
|
354
395
|
"aria-invalid": r || void 0,
|
|
355
396
|
"aria-labelledby": o,
|
|
356
|
-
"aria-readonly":
|
|
397
|
+
"aria-readonly": E(L) || void 0,
|
|
357
398
|
autocomplete: e.autocomplete,
|
|
358
399
|
autofocus: e.autofocus,
|
|
359
400
|
class: "bb-textarea__input scrollbar-border",
|
|
360
401
|
disabled: e.disabled,
|
|
361
402
|
name: e.name,
|
|
362
403
|
placeholder: e.placeholder,
|
|
363
|
-
readonly:
|
|
364
|
-
required:
|
|
365
|
-
"aria-required":
|
|
366
|
-
rows:
|
|
367
|
-
value:
|
|
368
|
-
onInput:
|
|
404
|
+
readonly: E(L),
|
|
405
|
+
required: E(F),
|
|
406
|
+
"aria-required": E(I),
|
|
407
|
+
rows: se.value,
|
|
408
|
+
value: Y.value,
|
|
409
|
+
onInput: X,
|
|
369
410
|
onKeydown: ce
|
|
370
|
-
}, v(
|
|
411
|
+
}, v(E(q).controlAttrs, le.value)), null, 16, oe), [[E(c)]])]),
|
|
371
412
|
_: 2
|
|
372
413
|
}, 1032, ["disabled"])]),
|
|
373
414
|
_: 2
|
|
374
415
|
}, [e.$slots.prefix ? {
|
|
375
416
|
name: "prefix",
|
|
376
|
-
fn:
|
|
417
|
+
fn: k(() => [T(e.$slots, "prefix")]),
|
|
377
418
|
key: "0"
|
|
378
419
|
} : void 0, e.$slots.suffix ? {
|
|
379
420
|
name: "suffix",
|
|
380
|
-
fn:
|
|
421
|
+
fn: k(() => [T(e.$slots, "suffix")]),
|
|
381
422
|
key: "1"
|
|
382
423
|
} : void 0]), 1032, [
|
|
383
424
|
"append:icon",
|
|
@@ -398,7 +439,7 @@ var ae = [
|
|
|
398
439
|
_: 2
|
|
399
440
|
}, [e.$slots.description ? {
|
|
400
441
|
name: "description",
|
|
401
|
-
fn:
|
|
442
|
+
fn: k((t) => [T(e.$slots, "description", x(_(t)))]),
|
|
402
443
|
key: "0"
|
|
403
444
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.counter.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
404
445
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Responsive } from '../../types/ResponsiveSize';
|
|
2
|
-
import { InputVariantType } from '../../types/InputVariant';
|
|
2
|
+
import { InputVariantBuiltIn, InputVariantRegistry, InputVariantType } from '../../types/InputVariant';
|
|
3
3
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
4
4
|
import { FieldCrossAlign, FieldLayout } from '../../types/FieldLayout';
|
|
5
5
|
import { IconType } from '../../types/Icon';
|
|
6
|
-
import { CounterPtPart, CounterPtState, FormControlPtState, PtMap, PtValue, TextControlPtPart } from '../../types/passthrough';
|
|
6
|
+
import { CounterPtPart, CounterPtState, FormControlPtState, PtMap, PtValue, TextControlPtPart, PtVariantAttrs } from '../../types/passthrough';
|
|
7
7
|
import { FormFieldProps } from '../../composables/useFormBinding';
|
|
8
8
|
import { NullValueOf, NullValuePolicy, RegisteredNullValue } from '../../types/Config';
|
|
9
9
|
import { CommonFieldAsteriskSlotProps } from '../CommonField/types';
|
|
@@ -23,17 +23,24 @@ export type BbTextareaPtState = FormControlPtState | CounterPtState;
|
|
|
23
23
|
export declare const BB_TEXTAREA_PT: {
|
|
24
24
|
readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "input", "icon", "spinner", "prefix", "suffix", "clear", "counter"];
|
|
25
25
|
readonly states: readonly ["hasValue", "nearLimit", "atLimit", ...("hasValue" | "readonly" | "disabled" | "warnings" | "errors" | "loading")[]];
|
|
26
|
+
readonly variant: {
|
|
27
|
+
readonly names: readonly ["outline", "secondary", "ghost"];
|
|
28
|
+
readonly option: "inputVariants";
|
|
29
|
+
readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "input", "icon", "spinner", "prefix", "suffix", "clear"];
|
|
30
|
+
};
|
|
26
31
|
};
|
|
27
32
|
/** The app-wide policy: `'string'` once the project file registers it. */
|
|
28
33
|
type AppPolicy = RegisteredNullValue<'BbTextarea'>;
|
|
29
34
|
export type BbTextareaProps<E extends NullValuePolicy = AppPolicy> = {
|
|
30
|
-
[K in `pt:${BbTextareaPtPart}` | `pt:${BbTextareaPtPart}:${BbTextareaPtState}`]?: PtValue;
|
|
31
|
-
} & {
|
|
35
|
+
[K in `pt:${BbTextareaPtPart}` | `pt:${BbTextareaPtPart}:${BbTextareaPtState}` | `pt:${TextControlPtPart}:${InputVariantBuiltIn}`]?: PtValue;
|
|
36
|
+
} & /* @vue-ignore */ PtVariantAttrs<TextControlPtPart, keyof InputVariantRegistry> & {
|
|
32
37
|
/**
|
|
33
38
|
* Passthrough, object form: `{ box: '…', 'box:errors': '…' }` — the same
|
|
34
39
|
* keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row.
|
|
35
40
|
*/
|
|
36
|
-
pt?: PtMap<BbTextareaPtPart, BbTextareaPtState
|
|
41
|
+
pt?: PtMap<BbTextareaPtPart, BbTextareaPtState> & {
|
|
42
|
+
[K in `${TextControlPtPart}:${InputVariantBuiltIn | keyof InputVariantRegistry}`]?: PtValue;
|
|
43
|
+
};
|
|
37
44
|
/**
|
|
38
45
|
* Name of the icon to be added at the end of the input.
|
|
39
46
|
*/
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { COUNTER_PT_STATES as e, FORM_CONTROL_PT_STATES as t, TEXT_CONTROL_PT_PARTS as n } from "../../types/passthrough.js";
|
|
2
|
+
import { INPUT_VARIANTS as r } from "../../types/InputVariant.js";
|
|
2
3
|
//#region src/components/BbTextarea/types.ts
|
|
3
|
-
var
|
|
4
|
+
var i = {
|
|
4
5
|
parts: [...n, "counter"],
|
|
5
6
|
states: [
|
|
6
7
|
t[0],
|
|
7
8
|
...e,
|
|
8
9
|
...t.slice(1)
|
|
9
|
-
]
|
|
10
|
+
],
|
|
11
|
+
variant: {
|
|
12
|
+
names: r,
|
|
13
|
+
option: "inputVariants",
|
|
14
|
+
parts: n
|
|
15
|
+
}
|
|
10
16
|
};
|
|
11
17
|
//#endregion
|
|
12
|
-
export {
|
|
18
|
+
export { i as BB_TEXTAREA_PT };
|