bitboss-ui 3.0.0-beta.21 → 3.0.0-beta.23
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 +55 -3
- package/bin/bitboss-ui-mcp.mjs +419 -9
- package/bin/bitboss-ui.mjs +293 -22
- package/dist/ai/BbAccordion.md +21 -23
- package/dist/ai/BbAlert.md +6 -12
- package/dist/ai/BbAvatar.md +60 -24
- package/dist/ai/BbBadge.md +12 -20
- package/dist/ai/BbBaseButton.md +14 -16
- package/dist/ai/BbBaseCheckboxIcon.md +6 -10
- package/dist/ai/BbBaseColorInput.md +1 -0
- package/dist/ai/BbBaseDatePickerInput.md +1 -0
- package/dist/ai/BbBaseNumberInput.md +1 -0
- package/dist/ai/BbBaseRadioIcon.md +6 -10
- package/dist/ai/BbBaseSelect.md +1 -0
- package/dist/ai/BbBaseSwitchIcon.md +5 -9
- package/dist/ai/BbBaseTag.md +1 -0
- package/dist/ai/BbBaseTextInput.md +2 -1
- package/dist/ai/BbBaseTextarea.md +1 -0
- package/dist/ai/BbBaseTimePickerInput.md +1 -0
- package/dist/ai/BbBreadcrumbs.md +23 -34
- package/dist/ai/BbButton.md +35 -47
- package/dist/ai/BbCheckbox.md +21 -37
- package/dist/ai/BbCheckboxGroup.md +13 -13
- package/dist/ai/BbCollapsible.md +14 -26
- package/dist/ai/BbColorInput.md +27 -23
- package/dist/ai/BbColorPalette.md +23 -35
- package/dist/ai/BbConfirm.md +17 -32
- package/dist/ai/BbDatePickerInput.md +29 -21
- package/dist/ai/BbDialog.md +159 -62
- package/dist/ai/BbDropdown.md +21 -25
- package/dist/ai/BbDropdownButton.md +13 -30
- package/dist/ai/BbDropzone.md +9 -11
- package/dist/ai/BbIcon.md +44 -33
- package/dist/ai/BbIndicator.md +2 -2
- package/dist/ai/BbNumberInput.md +32 -20
- package/dist/ai/BbOffCanvas.md +42 -42
- package/dist/ai/BbPagination.md +21 -23
- package/dist/ai/BbPopover.md +15 -17
- package/dist/ai/BbProgress.md +40 -51
- package/dist/ai/BbRadio.md +9 -9
- package/dist/ai/BbRadioGroup.md +7 -11
- package/dist/ai/BbRating.md +8 -12
- package/dist/ai/BbSelect.md +46 -36
- package/dist/ai/BbSelectPopover.md +19 -31
- package/dist/ai/BbSlider.md +15 -19
- package/dist/ai/BbSmoothHeight.md +16 -31
- package/dist/ai/BbSpinner.md +118 -74
- package/dist/ai/BbSwitch.md +25 -18
- package/dist/ai/BbSwitchGroup.md +9 -14
- package/dist/ai/BbTable.md +102 -55
- package/dist/ai/BbTabs.md +59 -82
- package/dist/ai/BbTag.md +26 -23
- package/dist/ai/BbTextInput.md +63 -27
- package/dist/ai/BbTextarea.md +42 -34
- package/dist/ai/BbTimePickerInput.md +14 -0
- package/dist/ai/BbToast.md +14 -34
- package/dist/ai/BbTooltip.md +22 -20
- package/dist/ai/BbTree.md +46 -72
- package/dist/ai/CommonInputWrapper.md +1 -0
- package/dist/ai/changelog.json +170 -62
- package/dist/ai/components.json +1678 -11
- package/dist/ai/composables/useConfirm.md +5 -2
- package/dist/ai/composables/useToast.md +4 -2
- package/dist/ai/guides/agent-contract.md +7 -4
- package/dist/ai/guides/ai-router.md +37 -22
- package/dist/ai/guides/component-picker.md +23 -18
- package/dist/ai/guides/design-language.md +151 -21
- package/dist/ai/guides/design-tokens.md +29 -4
- package/dist/ai/guides/icons-policy.md +46 -21
- package/dist/ai/guides/installation-and-plugin-setup.md +286 -17
- package/dist/ai/guides/migration/components/bb-rating.md +26 -1
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/v2-to-v3.md +50 -23
- package/dist/ai/index.md +1 -1
- package/dist/ai/recipes/inertia/approvals-inbox.md +3 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +6 -6
- package/dist/ai/recipes/inertia/record-form.md +5 -5
- package/dist/ai/recipes/inertia/records-workspace.md +4 -4
- package/dist/ai/recipes/inertia/upload-center.md +6 -6
- package/dist/ai/recipes/inertia/wizard-form.md +5 -5
- package/dist/ai/recipes/nuxt/approvals-inbox.md +3 -3
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +4 -4
- package/dist/ai/recipes/nuxt/upload-center.md +6 -6
- package/dist/ai/recipes/nuxt/wizard-form.md +5 -5
- package/dist/ai/recipes/vue/approvals-inbox.md +3 -3
- package/dist/ai/recipes/vue/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +10 -10
- package/dist/ai/recipes/vue/records-workspace.md +4 -4
- package/dist/ai/recipes/vue/upload-center.md +6 -6
- package/dist/ai/recipes/vue/wizard-form.md +5 -5
- package/dist/ai/source/BbBadge.md +1 -1
- package/dist/ai/source/BbBaseCheckbox.md +1 -1
- package/dist/ai/source/BbBaseColorInput.md +7 -0
- package/dist/ai/source/BbBaseDatePicker.md +5 -5
- package/dist/ai/source/BbBaseDatePickerInput.md +9 -2
- package/dist/ai/source/BbBaseNumberInput.md +7 -0
- package/dist/ai/source/BbBaseRadio.md +1 -1
- package/dist/ai/source/BbBaseRating.md +5 -5
- package/dist/ai/source/BbBaseSelect.md +8 -1
- package/dist/ai/source/BbBaseSlider.md +5 -5
- package/dist/ai/source/BbBaseSwitch.md +1 -1
- package/dist/ai/source/BbBaseTag.md +7 -0
- package/dist/ai/source/BbBaseTextInput.md +7 -0
- package/dist/ai/source/BbBaseTextarea.md +7 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +8 -1
- package/dist/ai/source/BbBreadcrumbs.md +20 -1
- package/dist/ai/source/BbButton.md +2 -2
- package/dist/ai/source/BbColorInput.md +14 -0
- package/dist/ai/source/BbDatePickerInput.md +14 -0
- package/dist/ai/source/BbDialog.md +39 -8
- package/dist/ai/source/BbDropdown.md +1 -1
- package/dist/ai/source/BbDropzone.md +5 -5
- package/dist/ai/source/BbIcon.md +23 -10
- package/dist/ai/source/BbNumberInput.md +14 -0
- package/dist/ai/source/BbOffCanvas.md +50 -28
- package/dist/ai/source/BbPagination.md +2 -2
- package/dist/ai/source/BbPopover.md +12 -1
- package/dist/ai/source/BbSelect.md +14 -0
- package/dist/ai/source/BbSelectPopover.md +45 -7
- package/dist/ai/source/BbSpinner.md +2 -2
- package/dist/ai/source/BbTable.md +11 -11
- package/dist/ai/source/BbTag.md +14 -0
- package/dist/ai/source/BbTextInput.md +14 -0
- package/dist/ai/source/BbTextarea.md +14 -0
- package/dist/ai/source/BbTimePickerInput.md +14 -0
- package/dist/ai/source/BbTooltip.md +57 -10
- package/dist/ai/source/ChipsBox.md +1 -1
- package/dist/ai/source/CommaBox.md +1 -1
- package/dist/ai/source/CommonInputWrapper.md +128 -33
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/OptionsContainer.md +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseColorInput/types.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbBaseDatePickerInput/types.d.ts +5 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +1 -1
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseNumberInput/types.d.ts +5 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseSelect/types.d.ts +5 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseTag/types.d.ts +5 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseTextInput/types.d.ts +5 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/BbBaseTextarea/types.d.ts +5 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbBaseTimePickerInput/types.d.ts +5 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbColorInput/types.d.ts +12 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/BbDatePickerInput/types.d.ts +12 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +102 -97
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +33 -35
- package/dist/components/BbIcon/iconCache.d.ts +30 -0
- package/dist/components/BbIcon/iconCache.js +21 -3
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbNumberInput/types.d.ts +12 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +57 -56
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/BbSelect/types.d.ts +12 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbSpinner/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbTable/BbTableDataRow.js +2 -2
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbTag/types.d.ts +12 -0
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbTextInput/types.d.ts +12 -0
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/BbTextarea/types.d.ts +12 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/BbTimePickerInput/types.d.ts +12 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +81 -78
- package/dist/components/BbTooltip/types.d.ts +8 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +1 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/CommonInputWrapper/types.d.ts +10 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/composables/useConfirm.d.ts +22 -0
- package/dist/composables/useConfirm.js +43 -40
- package/dist/composables/useSafeAreaInternal.js +1 -1
- package/dist/composables/useToast.d.ts +16 -0
- package/dist/composables/useToast.js +20 -16
- package/dist/composables/useViewportWidth.d.ts +20 -6
- package/dist/composables/useViewportWidth.js +8 -7
- package/dist/icon-scan.d.ts +276 -0
- package/dist/icon-scan.js +485 -0
- package/dist/icons-whitelist.d.ts +5 -4
- package/dist/index.d.ts +2 -0
- package/dist/input-variants.d.ts +18 -0
- package/dist/llms-full.txt +2173 -1537
- package/dist/llms-medium.txt +504 -82
- package/dist/llms.txt +1 -1
- package/dist/nuxt-module.d.ts +1 -0
- package/dist/nuxt.js +10 -7
- package/dist/plugin.js +1 -0
- package/dist/runtime/nuxt-plugin.js +2 -1
- package/dist/styles.css +1 -1
- package/dist/types/Config.d.ts +18 -0
- package/dist/types/InputVariant.d.ts +22 -0
- package/dist/utils/cssLayers.d.ts +91 -0
- package/dist/utils/cssLayers.js +43 -0
- package/dist/utils/injectLibraryStyles.d.ts +3 -1
- package/dist/utils/injectLibraryStyles.js +24 -23
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/validated/index.d.ts +1 -0
- package/dist/vite-plugin.d.ts +89 -12
- package/dist/vite.js +331 -281
- package/llms.txt +1 -1
- package/package.json +7 -5
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-plugin.d.ts +35 -0
- package/scripts/lib/eslint-plugin.mjs +299 -3
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +42 -0
- package/scripts/lib/mcp-config.mjs +38 -34
- package/scripts/lib/public-type-exports.mjs +246 -0
- package/scripts/lib/validate-bb-markup.mjs +205 -12
|
@@ -32,6 +32,7 @@ var E = { class: "bb-base-tag__input-container" }, D = [
|
|
|
32
32
|
caseSensitive: { type: Boolean },
|
|
33
33
|
clearable: { type: Boolean },
|
|
34
34
|
compact: { type: Boolean },
|
|
35
|
+
variant: {},
|
|
35
36
|
disabled: { type: Boolean },
|
|
36
37
|
divider: { default: "Enter" },
|
|
37
38
|
hasErrors: { type: Boolean },
|
|
@@ -180,6 +181,7 @@ var E = { class: "bb-base-tag__input-container" }, D = [
|
|
|
180
181
|
loading: e.loading,
|
|
181
182
|
"prepend:icon": k["prepend:icon"],
|
|
182
183
|
readonly: e.readonly,
|
|
184
|
+
variant: e.variant,
|
|
183
185
|
onClick: Q,
|
|
184
186
|
"onClick:clear": fe,
|
|
185
187
|
onFocusin: J
|
|
@@ -258,7 +260,8 @@ var E = { class: "bb-base-tag__input-container" }, D = [
|
|
|
258
260
|
"has-warning",
|
|
259
261
|
"loading",
|
|
260
262
|
"prepend:icon",
|
|
261
|
-
"readonly"
|
|
263
|
+
"readonly",
|
|
264
|
+
"variant"
|
|
262
265
|
]));
|
|
263
266
|
}
|
|
264
267
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
3
|
import { IconType } from '../../types/Icon';
|
|
3
4
|
export type BaseTagProps = {
|
|
@@ -41,6 +42,10 @@ export type BaseTagProps = {
|
|
|
41
42
|
* Apply the compact density variant.
|
|
42
43
|
*/
|
|
43
44
|
compact?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Visual variant of the field box, forwarded to `CommonInputWrapper`.
|
|
47
|
+
*/
|
|
48
|
+
variant?: InputVariantType;
|
|
44
49
|
/**
|
|
45
50
|
* Disable all interactions with the tag input.
|
|
46
51
|
*/
|
package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -32,6 +32,7 @@ var v = [
|
|
|
32
32
|
autofocus: {},
|
|
33
33
|
clearable: { type: Boolean },
|
|
34
34
|
compact: { type: Boolean },
|
|
35
|
+
variant: {},
|
|
35
36
|
disabled: { type: Boolean },
|
|
36
37
|
emitMasked: { type: Boolean },
|
|
37
38
|
hasErrors: { type: Boolean },
|
|
@@ -142,6 +143,7 @@ var v = [
|
|
|
142
143
|
"prepend:icon": x["prepend:icon"],
|
|
143
144
|
readonly: x.readonly,
|
|
144
145
|
"reserve-append-space": x.clearable,
|
|
146
|
+
variant: x.variant,
|
|
145
147
|
"onClick:clear": r[0] ||= (t) => e.$emit("update:modelValue", null)
|
|
146
148
|
}, o({
|
|
147
149
|
"prepend-outer": g(() => [p(e.$slots, "prepend-outer")]),
|
|
@@ -192,7 +194,8 @@ var v = [
|
|
|
192
194
|
"loading",
|
|
193
195
|
"prepend:icon",
|
|
194
196
|
"readonly",
|
|
195
|
-
"reserve-append-space"
|
|
197
|
+
"reserve-append-space",
|
|
198
|
+
"variant"
|
|
196
199
|
]));
|
|
197
200
|
}
|
|
198
201
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
3
|
import { IconType } from '../../types/Icon';
|
|
3
4
|
import { MaskInputOptions } from 'maska';
|
|
@@ -29,6 +30,10 @@ export type BaseTextInputProps = {
|
|
|
29
30
|
* Apply the compact density variant.
|
|
30
31
|
*/
|
|
31
32
|
compact?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Visual variant of the field box, forwarded to `CommonInputWrapper`.
|
|
35
|
+
*/
|
|
36
|
+
variant?: InputVariantType;
|
|
32
37
|
/**
|
|
33
38
|
* Disable all interactions with the input.
|
|
34
39
|
*/
|
package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -29,6 +29,7 @@ var b = [
|
|
|
29
29
|
autofocus: {},
|
|
30
30
|
clearable: { type: Boolean },
|
|
31
31
|
compact: { type: Boolean },
|
|
32
|
+
variant: {},
|
|
32
33
|
disabled: { type: Boolean },
|
|
33
34
|
hasErrors: { type: Boolean },
|
|
34
35
|
hasWarning: { type: Boolean },
|
|
@@ -124,6 +125,7 @@ var b = [
|
|
|
124
125
|
"prepend:icon": S["prepend:icon"],
|
|
125
126
|
readonly: S.readonly,
|
|
126
127
|
"reserve-append-space": r.clearable,
|
|
128
|
+
variant: S.variant,
|
|
127
129
|
"onClick:clear": c[0] ||= (e) => r.$emit("update:modelValue", null)
|
|
128
130
|
}, o({
|
|
129
131
|
"prepend-outer": v(() => [h(r.$slots, "prepend-outer")]),
|
|
@@ -179,7 +181,8 @@ var b = [
|
|
|
179
181
|
"loading",
|
|
180
182
|
"prepend:icon",
|
|
181
183
|
"readonly",
|
|
182
|
-
"reserve-append-space"
|
|
184
|
+
"reserve-append-space",
|
|
185
|
+
"variant"
|
|
183
186
|
]));
|
|
184
187
|
}
|
|
185
188
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
3
|
import { IconType } from '../../types/Icon';
|
|
3
4
|
/**
|
|
@@ -34,6 +35,10 @@ export type BaseTextareaProps = {
|
|
|
34
35
|
* Apply the compact density variant.
|
|
35
36
|
*/
|
|
36
37
|
compact?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Visual variant of the field box, forwarded to `CommonInputWrapper`.
|
|
40
|
+
*/
|
|
41
|
+
variant?: InputVariantType;
|
|
37
42
|
/**
|
|
38
43
|
* Disable all interactions with the textarea.
|
|
39
44
|
*/
|
|
@@ -58,6 +58,7 @@ var _e = ["data-value"], ve = [
|
|
|
58
58
|
autofocus: {},
|
|
59
59
|
clearable: { type: Boolean },
|
|
60
60
|
compact: { type: Boolean },
|
|
61
|
+
variant: {},
|
|
61
62
|
disabled: { type: Boolean },
|
|
62
63
|
disableWriting: {
|
|
63
64
|
type: [Boolean, String],
|
|
@@ -362,6 +363,7 @@ var _e = ["data-value"], ve = [
|
|
|
362
363
|
loading: C.loading,
|
|
363
364
|
"prepend:icon": C["prepend:icon"],
|
|
364
365
|
readonly: C.readonly,
|
|
366
|
+
variant: C.variant,
|
|
365
367
|
"onClick:clear": rt,
|
|
366
368
|
onFocusin: it
|
|
367
369
|
}, le({
|
|
@@ -433,7 +435,7 @@ var _e = ["data-value"], ve = [
|
|
|
433
435
|
}, v(Me(P.value[n], P.value[n + 1])), 11, ye)) : u("", !0)], 64))), 128))], 6),
|
|
434
436
|
f("span", {
|
|
435
437
|
id: A,
|
|
436
|
-
class: "bb-base-time-picker-input__accessible-description sr-only"
|
|
438
|
+
class: "bb-base-time-picker-input__accessible-description bb-sr-only"
|
|
437
439
|
}, v(Xe.value), 1),
|
|
438
440
|
p(y(at), null, {
|
|
439
441
|
default: x(() => [f("div", {
|
|
@@ -511,7 +513,8 @@ var _e = ["data-value"], ve = [
|
|
|
511
513
|
"has-warning",
|
|
512
514
|
"loading",
|
|
513
515
|
"prepend:icon",
|
|
514
|
-
"readonly"
|
|
516
|
+
"readonly",
|
|
517
|
+
"variant"
|
|
515
518
|
]));
|
|
516
519
|
}
|
|
517
520
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
3
|
import { IconType } from '../../types/Icon';
|
|
3
4
|
import { BbOffCanvasProps } from '../BbOffCanvas/types';
|
|
@@ -43,6 +44,10 @@ export type BaseTimePickerInputProps = {
|
|
|
43
44
|
clearable?: boolean;
|
|
44
45
|
/** Applies the compact density styles to the control. */
|
|
45
46
|
compact?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Visual variant of the field box, forwarded to `CommonInputWrapper`.
|
|
49
|
+
*/
|
|
50
|
+
variant?: InputVariantType;
|
|
46
51
|
/** Disables the input, clock trigger, and popover. */
|
|
47
52
|
disabled?: boolean;
|
|
48
53
|
/**
|
|
@@ -6,13 +6,13 @@ import { slotKey as i } from "../../utilities/functions/slotKey.js";
|
|
|
6
6
|
import a from "../../assets/svgs/chevron_right.svg_raw.js";
|
|
7
7
|
import o from "../BbDropdown/BbDropdown.vue.js";
|
|
8
8
|
import { estimateBreadcrumbItemWidth as s, estimateEllipsisWidth as c } from "./estimateBreadcrumbItemWidth.js";
|
|
9
|
-
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as te, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeProps as y, normalizeStyle as ne, onBeforeUnmount as b, openBlock as x, ref as S, renderList as C, renderSlot as w, unref as T, useSlots as re, watch as
|
|
10
|
-
import { useResizeObserver as
|
|
9
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as te, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, normalizeProps as y, normalizeStyle as ne, onBeforeUnmount as b, openBlock as x, ref as S, renderList as C, renderSlot as w, unref as T, useSlots as re, watch as E, withCtx as D } from "vue";
|
|
10
|
+
import { useResizeObserver as O } from "@vueuse/core";
|
|
11
11
|
//#region src/components/BbBreadcrumbs/BbBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
12
|
+
var ie = ["aria-label"], ae = { class: "bb-breadcrumbs__container" }, oe = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--prepend"
|
|
15
|
-
},
|
|
15
|
+
}, se = { class: "bb-breadcrumbs__list" }, ce = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "bb-breadcrumbs__item"
|
|
18
18
|
}, le = { class: "bb-breadcrumbs__breadcrumb-container" }, ue = ["aria-label", "disabled"], de = {
|
|
@@ -26,10 +26,10 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
26
26
|
key: 0,
|
|
27
27
|
"aria-hidden": "true",
|
|
28
28
|
class: "bb-breadcrumbs__divider"
|
|
29
|
-
},
|
|
29
|
+
}, he = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "bb-breadcrumbs__edge bb-breadcrumbs__edge--append"
|
|
32
|
-
},
|
|
32
|
+
}, k = 20, ge = 1, A = 8.5, _e = .5, ve = 8, ye = 200, j = /*@__PURE__*/ g({
|
|
33
33
|
__name: "BbBreadcrumbs",
|
|
34
34
|
props: {
|
|
35
35
|
disabled: { type: Boolean },
|
|
@@ -41,122 +41,122 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
41
41
|
ellipsisWidth: {}
|
|
42
42
|
},
|
|
43
43
|
setup(g) {
|
|
44
|
-
let
|
|
44
|
+
let j = g, { t: M } = n();
|
|
45
45
|
e();
|
|
46
|
-
let
|
|
46
|
+
let N = re(), P = /* @__PURE__ */ new Set([
|
|
47
47
|
"prepend",
|
|
48
48
|
"append",
|
|
49
49
|
"ellipsis",
|
|
50
50
|
"divider",
|
|
51
51
|
"activator"
|
|
52
|
-
]),
|
|
52
|
+
]), F = (e) => i(e.key), be = (e) => {
|
|
53
53
|
let { "prepend:icon": t, "append:icon": n, ...r } = e;
|
|
54
54
|
return r;
|
|
55
|
-
},
|
|
56
|
-
let n = `${
|
|
57
|
-
return
|
|
55
|
+
}, I = (e, t) => {
|
|
56
|
+
let n = `${F(e)}:${t}`;
|
|
57
|
+
return N[n] ? {
|
|
58
58
|
name: n,
|
|
59
59
|
exists: !0
|
|
60
|
-
} :
|
|
60
|
+
} : N[`item:${t}`] ? {
|
|
61
61
|
name: `item:${t}`,
|
|
62
62
|
exists: !0
|
|
63
63
|
} : {
|
|
64
64
|
name: n,
|
|
65
65
|
exists: !1
|
|
66
66
|
};
|
|
67
|
-
}, xe = u(() => Object.keys(
|
|
67
|
+
}, xe = u(() => Object.keys(N).filter((e) => !P.has(e))), L = S(null), R = S(0), z = u(() => j.gapWidth), B = u(() => Math.max(0, j.offsetWidth)), Se = u(() => j.estimationBias), V = u(() => j.ellipsisWidth ?? c(A)), Ce = u(() => M("breadcrumbs.label").value), we = u(() => M("breadcrumbs.openHiddenLabelCount", R.value).value), H = (e) => s(e.text ?? String(e.key), {
|
|
68
68
|
estimationBias: Se.value,
|
|
69
|
-
fontWidth:
|
|
69
|
+
fontWidth: A
|
|
70
70
|
}), Te = u(() => {
|
|
71
|
-
let e =
|
|
71
|
+
let e = j.items.length;
|
|
72
72
|
if (e === 0) return 0;
|
|
73
|
-
let t =
|
|
74
|
-
return
|
|
73
|
+
let t = j.dividerWidth, n = z.value;
|
|
74
|
+
return j.items.map(H).reduce((e, t) => e + t, 0) + (e > 1 ? (e - 1) * (t + 2 * n) : 0) + B.value + k + 12;
|
|
75
75
|
}), Ee = u(() => ({
|
|
76
76
|
"--flex-basis": `${Math.ceil(Te.value)}px`,
|
|
77
|
-
"--flex-grow":
|
|
78
|
-
"--gap": `${
|
|
77
|
+
"--flex-grow": R.value > 0 ? "1" : "0",
|
|
78
|
+
"--gap": `${z.value}px`
|
|
79
79
|
})), De = (e) => {
|
|
80
|
-
let t =
|
|
80
|
+
let t = j.items.length;
|
|
81
81
|
if (t === 0) {
|
|
82
|
-
|
|
82
|
+
R.value = 0;
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
let n = Math.max(0, e - ge -
|
|
85
|
+
let n = Math.max(0, e - ge - B.value - k), r = j.dividerWidth, i = V.value, a = z.value, o = j.items.map(H), s = Array.from({ length: t + 1 }, () => 0);
|
|
86
86
|
for (let e = t - 1; e >= 0; e--) s[e] = s[e + 1] + o[e];
|
|
87
|
-
let c = (e) => n - e <=
|
|
87
|
+
let c = (e) => n - e <= k / 2, l = s[0] + (t > 1 ? (t - 1) * (r + 2 * a) : 0);
|
|
88
88
|
if (l <= n) {
|
|
89
89
|
if (t > 1 && c(l)) {
|
|
90
|
-
|
|
90
|
+
R.value = 1;
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
R.value = 0;
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
for (let e = t - 1; e >= 0; e--) {
|
|
97
97
|
let o = s[t - e], l = i + e * (r + 2 * a) + o;
|
|
98
98
|
if (l <= n) {
|
|
99
99
|
if (e > 0 && c(l)) {
|
|
100
|
-
|
|
100
|
+
R.value = t - (e - 1);
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
R.value = t - e;
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
if (
|
|
114
|
-
let e =
|
|
115
|
-
if (
|
|
116
|
-
|
|
107
|
+
R.value = t;
|
|
108
|
+
}, U = u(() => L.value), Oe = u(() => j.items.map((e) => `${String(e.key)}::${e.text ?? ""}`).join("|")), W = null, G = null, K = null, q = null, J = 0, Y = null, X = (e, t) => Math.abs(e - t) <= _e, Z = () => {
|
|
109
|
+
Y != null && clearTimeout(Y), Y = setTimeout(() => {
|
|
110
|
+
Y = null, J = 0;
|
|
111
|
+
}, ye);
|
|
112
|
+
}, Q = () => {
|
|
113
|
+
if (G = null, W == null) return;
|
|
114
|
+
let e = W;
|
|
115
|
+
if (W = null, K != null && X(e, K)) {
|
|
116
|
+
Z();
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
120
|
-
|
|
119
|
+
if (J = q != null && K != null && X(e, q) && !X(e, K) ? J + 1 : 0, J >= ve) {
|
|
120
|
+
q = K, K = e, Z();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
q = K, K = e, De(e), Z();
|
|
124
124
|
}, $ = (e) => {
|
|
125
|
-
|
|
125
|
+
W = e, G ??= requestAnimationFrame(Q);
|
|
126
126
|
};
|
|
127
|
-
|
|
127
|
+
O(U, ([e]) => {
|
|
128
128
|
$(e.contentRect.width);
|
|
129
|
-
}),
|
|
130
|
-
|
|
129
|
+
}), E([
|
|
130
|
+
U,
|
|
131
131
|
Oe,
|
|
132
|
-
() =>
|
|
133
|
-
() =>
|
|
134
|
-
() =>
|
|
135
|
-
() =>
|
|
136
|
-
() =>
|
|
132
|
+
() => j.dividerWidth,
|
|
133
|
+
() => j.gapWidth,
|
|
134
|
+
() => j.offsetWidth,
|
|
135
|
+
() => j.estimationBias,
|
|
136
|
+
() => j.ellipsisWidth
|
|
137
137
|
], ([e]) => {
|
|
138
138
|
e && $(e.clientWidth);
|
|
139
139
|
}, { immediate: !0 }), b(() => {
|
|
140
|
-
|
|
140
|
+
G != null && cancelAnimationFrame(G), Y != null && clearTimeout(Y);
|
|
141
141
|
});
|
|
142
|
-
let
|
|
142
|
+
let ke = u(() => j.items.slice(0, R.value).map((e) => ({
|
|
143
143
|
...e,
|
|
144
144
|
text: e.text ?? e.key
|
|
145
145
|
})));
|
|
146
146
|
return (e, n) => (x(), p("nav", {
|
|
147
147
|
ref_key: "navRef",
|
|
148
|
-
ref:
|
|
148
|
+
ref: L,
|
|
149
149
|
"aria-label": Ce.value,
|
|
150
150
|
class: "bb-breadcrumbs",
|
|
151
151
|
style: ne(Ee.value)
|
|
152
|
-
}, [m("div",
|
|
153
|
-
e.$slots.prepend ? (x(), p("div",
|
|
154
|
-
m("ol",
|
|
155
|
-
items:
|
|
152
|
+
}, [m("div", ae, [
|
|
153
|
+
e.$slots.prepend ? (x(), p("div", oe, [w(e.$slots, "prepend", { disabled: e.disabled })])) : f("", !0),
|
|
154
|
+
m("ol", se, [R.value > 0 ? (x(), p("li", ce, [h(o, {
|
|
155
|
+
items: ke.value,
|
|
156
156
|
padding: 0,
|
|
157
157
|
placement: "bottom-start"
|
|
158
158
|
}, ee({
|
|
159
|
-
activator:
|
|
159
|
+
activator: D(({ props: t }) => [m("span", le, [m("button", v(t, {
|
|
160
160
|
"aria-label": we.value,
|
|
161
161
|
class: "bb-breadcrumbs__ellipsis",
|
|
162
162
|
disabled: e.disabled,
|
|
@@ -164,24 +164,24 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
164
164
|
}), [w(e.$slots, "ellipsis", y(_({
|
|
165
165
|
props: t,
|
|
166
166
|
disabled: e.disabled,
|
|
167
|
-
overflowCount:
|
|
168
|
-
ellipsisWidth:
|
|
167
|
+
overflowCount: R.value,
|
|
168
|
+
ellipsisWidth: V.value
|
|
169
169
|
})), () => [n[0] ||= te(" … ")])], 16, ue)])]),
|
|
170
170
|
_: 2
|
|
171
171
|
}, [C(xe.value, (t) => ({
|
|
172
172
|
name: t,
|
|
173
|
-
fn:
|
|
174
|
-
}))]), 1032, ["items"]),
|
|
173
|
+
fn: D((n) => [w(e.$slots, t, y(_(n)))])
|
|
174
|
+
}))]), 1032, ["items"]), R.value < e.items.length ? (x(), p("span", de, [w(e.$slots, "divider", {}, () => [h(r, {
|
|
175
175
|
icon: T(a),
|
|
176
176
|
size: "14"
|
|
177
|
-
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0), (x(!0), p(l, null, C(e.items, (n, i) => (x(), p(l, { key: n.key }, [i >=
|
|
178
|
-
w(e.$slots,
|
|
177
|
+
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0), (x(!0), p(l, null, C(e.items, (n, i) => (x(), p(l, { key: n.key }, [i >= R.value ? (x(), p("li", fe, [m("span", pe, [
|
|
178
|
+
w(e.$slots, I(n, "prepend").name, {
|
|
179
179
|
disabled: !!(n.disabled || e.disabled),
|
|
180
180
|
index: i,
|
|
181
181
|
item: n,
|
|
182
182
|
text: n.text
|
|
183
183
|
}),
|
|
184
|
-
!
|
|
184
|
+
!I(n, "prepend").exists && n["prepend:icon"] ? (x(), d(r, {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--prepend",
|
|
187
187
|
icon: n["prepend:icon"],
|
|
@@ -192,7 +192,7 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
192
192
|
class: "bb-breadcrumbs__breadcrumb",
|
|
193
193
|
disabled: n.disabled || e.disabled
|
|
194
194
|
}), {
|
|
195
|
-
default:
|
|
195
|
+
default: D(() => [w(e.$slots, F(n), {
|
|
196
196
|
disabled: !!(n.disabled || e.disabled),
|
|
197
197
|
index: i,
|
|
198
198
|
item: n,
|
|
@@ -200,13 +200,13 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
200
200
|
})]),
|
|
201
201
|
_: 2
|
|
202
202
|
}, 1040, ["aria-current", "disabled"]),
|
|
203
|
-
w(e.$slots,
|
|
203
|
+
w(e.$slots, I(n, "append").name, {
|
|
204
204
|
disabled: !!(n.disabled || e.disabled),
|
|
205
205
|
index: i,
|
|
206
206
|
item: n,
|
|
207
207
|
text: n.text
|
|
208
208
|
}),
|
|
209
|
-
!
|
|
209
|
+
!I(n, "append").exists && n["append:icon"] ? (x(), d(r, {
|
|
210
210
|
key: 1,
|
|
211
211
|
class: "bb-breadcrumbs__item-icon bb-breadcrumbs__item-icon--append",
|
|
212
212
|
icon: n["append:icon"],
|
|
@@ -216,9 +216,9 @@ var oe = ["aria-label"], se = { class: "bb-breadcrumbs__container" }, ce = {
|
|
|
216
216
|
icon: T(a),
|
|
217
217
|
size: "14"
|
|
218
218
|
}, null, 8, ["icon"])])])) : f("", !0)])) : f("", !0)], 64))), 128))]),
|
|
219
|
-
e.$slots.append ? (x(), p("div",
|
|
220
|
-
])], 12,
|
|
219
|
+
e.$slots.append ? (x(), p("div", he, [w(e.$slots, "append", { disabled: e.disabled })])) : f("", !0)
|
|
220
|
+
])], 12, ie));
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
//#endregion
|
|
224
|
-
export {
|
|
224
|
+
export { j as default };
|
|
@@ -14,7 +14,7 @@ import { Transition as f, computed as p, createBlock as m, createCommentVNode as
|
|
|
14
14
|
//#region src/components/BbButton/BbButton.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var M = {
|
|
16
16
|
key: 3,
|
|
17
|
-
class: "bb-button__loading-label sr-only"
|
|
17
|
+
class: "bb-button__loading-label bb-sr-only"
|
|
18
18
|
}, N = /*@__PURE__*/ y({
|
|
19
19
|
inheritAttrs: !1,
|
|
20
20
|
__name: "BbButton",
|
|
@@ -180,7 +180,7 @@ var M = {
|
|
|
180
180
|
class: "bb-button__prepend-icon",
|
|
181
181
|
icon: P["prepend:icon"]
|
|
182
182
|
}, null, 8, ["icon"])) : h("", !0),
|
|
183
|
-
_("span", { class: S(["bb-button__content", { "sr-only": !!e.icon }]) }, [T(e.$slots, "default", {}, () => [v(E(e.text), 1)])], 2),
|
|
183
|
+
_("span", { class: S(["bb-button__content", { "bb-sr-only": !!e.icon }]) }, [T(e.$slots, "default", {}, () => [v(E(e.text), 1)])], 2),
|
|
184
184
|
G.value ? (C(), g("span", M, E(D(z)("common.loadingText")), 1)) : h("", !0),
|
|
185
185
|
!e.icon && P["append:icon"] ? (C(), m(s, {
|
|
186
186
|
key: 4,
|
|
@@ -19,6 +19,7 @@ var _ = /*@__PURE__*/ l({
|
|
|
19
19
|
autofocus: {},
|
|
20
20
|
clearable: { type: Boolean },
|
|
21
21
|
compact: { type: Boolean },
|
|
22
|
+
variant: {},
|
|
22
23
|
description: {},
|
|
23
24
|
direction: {},
|
|
24
25
|
disabled: { type: Boolean },
|
|
@@ -124,7 +125,8 @@ var _ = /*@__PURE__*/ l({
|
|
|
124
125
|
"prepend:icon": v["prepend:icon"],
|
|
125
126
|
readonly: e.readonly,
|
|
126
127
|
required: e.required,
|
|
127
|
-
swatches: e.swatches
|
|
128
|
+
swatches: e.swatches,
|
|
129
|
+
variant: e.variant
|
|
128
130
|
}, T), {
|
|
129
131
|
"append-outer": g(() => [h(e.$slots, "append-outer")]),
|
|
130
132
|
append: g(() => [h(e.$slots, "append")]),
|
|
@@ -154,7 +156,8 @@ var _ = /*@__PURE__*/ l({
|
|
|
154
156
|
"prepend:icon",
|
|
155
157
|
"readonly",
|
|
156
158
|
"required",
|
|
157
|
-
"swatches"
|
|
159
|
+
"swatches",
|
|
160
|
+
"variant"
|
|
158
161
|
])]),
|
|
159
162
|
_: 3
|
|
160
163
|
}, 8, [
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
2
3
|
import { InputDirection } from '../../types/InputDirection';
|
|
3
4
|
import { IconType } from '../../types/Icon';
|
|
@@ -36,6 +37,17 @@ export type BbColorInputProps = {
|
|
|
36
37
|
* Displays the component in a compact version.
|
|
37
38
|
*/
|
|
38
39
|
compact?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Visual variant of the field box — the same names and tokens as the
|
|
42
|
+
* `BbButton` variants. Colours only: height, padding and border width are
|
|
43
|
+
* identical across variants, so a form never reflows when one changes.
|
|
44
|
+
* `'ghost'` has no border in any state (errors and warnings show through
|
|
45
|
+
* the icon and the messages); every variant keeps the focus ring.
|
|
46
|
+
* Register extra names with the plugin's `inputVariants` option.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue `'outline'`
|
|
49
|
+
*/
|
|
50
|
+
variant?: InputVariantType;
|
|
39
51
|
/**
|
|
40
52
|
* Descriptive text displayed below the label and above the input. Unlike the hint it is always
|
|
41
53
|
* visible, and it is linked to the input via `aria-describedby` (after any
|
package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -21,6 +21,7 @@ var y = /*@__PURE__*/ l({
|
|
|
21
21
|
autofocus: {},
|
|
22
22
|
clearable: { type: Boolean },
|
|
23
23
|
compact: { type: Boolean },
|
|
24
|
+
variant: {},
|
|
24
25
|
direction: {},
|
|
25
26
|
disabled: { type: Boolean },
|
|
26
27
|
errors: {},
|
|
@@ -140,7 +141,8 @@ var y = /*@__PURE__*/ l({
|
|
|
140
141
|
time: e.time,
|
|
141
142
|
"transition-duration": e.transitionDuration,
|
|
142
143
|
type: e.type,
|
|
143
|
-
utc: e.utc
|
|
144
|
+
utc: e.utc,
|
|
145
|
+
variant: e.variant
|
|
144
146
|
}, O), {
|
|
145
147
|
"prepend-outer": v(() => [_(e.$slots, "prepend-outer")]),
|
|
146
148
|
prepend: v(() => [_(e.$slots, "prepend")]),
|
|
@@ -151,7 +153,7 @@ var y = /*@__PURE__*/ l({
|
|
|
151
153
|
day: v((t) => [_(e.$slots, "day", f(u(t)))]),
|
|
152
154
|
"append:day": v((t) => [_(e.$slots, "append:day", f(u(t)))]),
|
|
153
155
|
_: 2
|
|
154
|
-
}, 1040, /* @__PURE__ */ "id.adaptive.ampm.append:icon.aria-describedby.autocomplete.autofocus.clearable.compact.disable-calendar.disable-writing.disabled.first-day-of-week.floating.has-errors.has-warning.loading.max.min.model-value.name.off-canvas-props.placeholder.prepend:icon.range.readonly.required.seconds.selectable.step.time.transition-duration.type.utc".split("."))]),
|
|
156
|
+
}, 1040, /* @__PURE__ */ "id.adaptive.ampm.append:icon.aria-describedby.autocomplete.autofocus.clearable.compact.disable-calendar.disable-writing.disabled.first-day-of-week.floating.has-errors.has-warning.loading.max.min.model-value.name.off-canvas-props.placeholder.prepend:icon.range.readonly.required.seconds.selectable.step.time.transition-duration.type.utc.variant".split("."))]),
|
|
155
157
|
_: 3
|
|
156
158
|
}, 8, [
|
|
157
159
|
"id",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputVariantType } from '../../types/InputVariant';
|
|
1
2
|
import { DatePickerType } from '../../types/DatePickerType';
|
|
2
3
|
import { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
3
4
|
import { InputDirection } from '../../types/InputDirection';
|
|
@@ -52,6 +53,17 @@ export type BbDatePickerInputProps = {
|
|
|
52
53
|
* Sets the component in a compact state.
|
|
53
54
|
*/
|
|
54
55
|
compact?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Visual variant of the field box — the same names and tokens as the
|
|
58
|
+
* `BbButton` variants. Colours only: height, padding and border width are
|
|
59
|
+
* identical across variants, so a form never reflows when one changes.
|
|
60
|
+
* `'ghost'` has no border in any state (errors and warnings show through
|
|
61
|
+
* the icon and the messages); every variant keeps the focus ring.
|
|
62
|
+
* Register extra names with the plugin's `inputVariants` option.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue `'outline'`
|
|
65
|
+
*/
|
|
66
|
+
variant?: InputVariantType;
|
|
55
67
|
/**
|
|
56
68
|
* Direction of the layout of the component. Can either be a predefined value or a pattern separated by a space like `xx xxxxx`.
|
|
57
69
|
*/
|