@codemonster-ru/vueforge 0.56.0 → 0.57.0

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 CHANGED
@@ -41,6 +41,7 @@ import {
41
41
  Breadcrumbs,
42
42
  Select,
43
43
  Autocomplete,
44
+ Combobox,
44
45
  MultiSelect,
45
46
  TagInput,
46
47
  DatePicker,
@@ -103,6 +104,7 @@ app.use(VueForge, {
103
104
  <Breadcrumbs :items="breadcrumbItems" />
104
105
  <Select v-model="role" :options="roles" placeholder="Choose role" />
105
106
  <Autocomplete v-model="country" :options="countries" placeholder="Find country" />
107
+ <Combobox v-model="countryId" :options="countries" placeholder="Pick country" clearable />
106
108
  <MultiSelect v-model="countries" :options="countryOptions" placeholder="Select countries" clearable />
107
109
  <TagInput v-model="skills" :options="skillOptions" placeholder="Add skills" clearable />
108
110
  <DatePicker v-model="birthday" placeholder="Pick birthday" />
@@ -230,6 +232,7 @@ app.use(VueForge, {
230
232
  - Popover
231
233
  - Select
232
234
  - Autocomplete
235
+ - Combobox
233
236
  - MultiSelect
234
237
  - TagInput
235
238
  - DatePicker
@@ -439,6 +442,62 @@ Example:
439
442
  <Autocomplete v-model="country" :options="countries" placeholder="Find country" />
440
443
  ```
441
444
 
445
+ ## Combobox
446
+
447
+ Props:
448
+
449
+ - `modelValue?: string | number` (v-model selected value)
450
+ - `inputValue?: string` (v-model:inputValue typed query)
451
+ - `options?: Array<{ label: string; value: string | number; disabled?: boolean }>`
452
+ - `optionLabel?: string` (default `label`)
453
+ - `optionValue?: string` (default `value`)
454
+ - `placeholder?: string`
455
+ - `disabled?: boolean`
456
+ - `readonly?: boolean`
457
+ - `loading?: boolean`
458
+ - `loadingText?: string` (default `Loading...`)
459
+ - `emptyText?: string` (default `No results`)
460
+ - `filter?: boolean` (default `true`)
461
+ - `strict?: boolean` (default `true`)
462
+ - `allowCreate?: boolean` (default `false`)
463
+ - `clearable?: boolean` (default `false`)
464
+ - `size?: 'small' | 'normal' | 'large'` (default `normal`)
465
+ - `variant?: 'filled' | 'outlined'` (default `filled`)
466
+
467
+ Events:
468
+
469
+ - `update:modelValue`
470
+ - `update:inputValue`
471
+ - `change`
472
+ - `search`
473
+ - `create`
474
+ - `focus`
475
+ - `blur`
476
+
477
+ Example:
478
+
479
+ ```vue
480
+ <Combobox v-model="countryId" v-model:inputValue="countryQuery" :options="countries" placeholder="Pick country" />
481
+ ```
482
+
483
+ ### Combobox tokens
484
+
485
+ Component tokens (override via `theme.overrides.components.combobox`):
486
+
487
+ - `minWidth`, `fontSize`, `controlGap`, `chevronSize`
488
+ - `padding`, `borderRadius`, `borderColor`
489
+ - `backgroundColor`, `textColor`, `placeholderColor`
490
+ - `focusBorderColor`, `focusRingShadow`, `hoverBorderColor`
491
+ - `disabledOpacity`
492
+ - `panelBackgroundColor`, `panelBorderColor`, `panelPadding`, `panelMaxHeight`, `panelRadiusOffset`, `panelShadow`
493
+ - `optionPadding`, `optionBorderRadius`
494
+ - `optionHoverBackgroundColor`, `optionActiveBackgroundColor`, `optionActiveTextColor`, `optionHighlightedBackgroundColor`
495
+ - `emptyPadding`, `emptyColor`
496
+ - `loadingPadding`, `loadingColor`
497
+ - `clearSize`, `clearRadius`, `clearHoverBackgroundColor`
498
+ - `small.fontSize`, `small.padding`
499
+ - `large.fontSize`, `large.padding`
500
+
442
501
  ## MultiSelect
443
502
 
444
503
  Props:
@@ -2334,7 +2393,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
2334
2393
  Typed tokens:
2335
2394
 
2336
2395
  - `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
2337
- - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
2396
+ - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/inlineEdit/searchInput/mentionInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/combobox/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
2338
2397
 
2339
2398
  Default core values (from `DefaultTheme`):
2340
2399