@onereach/ui-components 2.69.4 → 2.69.5-beta.2145.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.
Files changed (42) hide show
  1. package/dist/bundled/v2/{OrCardCollection-f622df47.js → OrCardCollection-c4209a92.js} +13 -9
  2. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-76b002cf.js} +1 -1
  3. package/dist/bundled/v2/components/index.js +2 -2
  4. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  5. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  6. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  7. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  8. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  9. package/dist/bundled/v2/index.js +3 -3
  10. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-15645a65.js → OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js} +10 -2
  11. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +1 -1
  12. package/dist/bundled/v3/components/index.js +2 -2
  13. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  14. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  15. package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
  16. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  17. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  18. package/dist/bundled/v3/index.js +8 -7
  19. package/dist/esm/v2/{OrCardCollection-43aa4a3c.js → OrCardCollection-57d11adf.js} +13 -9
  20. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-2f260b09.js} +1 -1
  21. package/dist/esm/v2/components/index.js +2 -2
  22. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  23. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  24. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  25. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  26. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  27. package/dist/esm/v2/index.js +2 -2
  28. package/dist/esm/v3/{OrCardCollection-6b5e6b76.js → OrCardCollection-2a6514f3.js} +14 -5
  29. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-e5a2e93e.js} +1 -1
  30. package/dist/esm/v3/components/index.js +2 -2
  31. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  32. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  33. package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
  34. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  35. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  36. package/dist/esm/v3/index.js +2 -2
  37. package/package.json +2 -3
  38. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +16 -0
  39. package/src/components/or-card-collection-v3/OrCardCollection.vue +13 -1
  40. package/src/components/or-card-collection-v3/styles.ts +3 -1
  41. package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
  42. package/src/components/or-search-v3/OrSearch.vue +1 -1
@@ -8,7 +8,7 @@ import { _ as __vue_component__$5 } from './OrMenuItem-c7f28480.js';
8
8
  import { _ as __vue_component__$6 } from './OrIcon-5e394c62.js';
9
9
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
10
  import { _ as __vue_component__$3 } from './OrButton-357e1e2c.js';
11
- import { _ as __vue_component__$7 } from './OrSearch-62d91301.js';
11
+ import { _ as __vue_component__$7 } from './OrSearch-2f260b09.js';
12
12
  import './OrInputBox-4d5a318d.js';
13
13
 
14
14
  const CardCollectionRoot = [
@@ -37,7 +37,7 @@ const CardCollectionContentViews = {
37
37
  'grid': [
38
38
  // Layout
39
39
  'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
40
- 'list': []
40
+ 'list': ['grid-cols-1']
41
41
  };
42
42
 
43
43
  var script$1 = defineComponent({
@@ -151,6 +151,14 @@ var script = defineComponent({
151
151
  search: {
152
152
  type: String,
153
153
  default: ''
154
+ },
155
+ searchPlaceholder: {
156
+ type: String,
157
+ default: undefined
158
+ },
159
+ searchDebounce: {
160
+ type: Number,
161
+ default: undefined
154
162
  }
155
163
  },
156
164
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -269,17 +277,13 @@ var __vue_render__ = function () {
269
277
  }, [_c('OrSearch', {
270
278
  staticClass: "md:w-[350px]",
271
279
  attrs: {
280
+ "model-value": _vm.proxySearch,
281
+ "placeholder": _vm.searchPlaceholder,
282
+ "debounce": _vm.searchDebounce,
272
283
  "size": "s"
273
284
  },
274
285
  on: {
275
286
  "search": _vm.handleSearch
276
- },
277
- model: {
278
- value: _vm.proxySearch,
279
- callback: function ($$v) {
280
- _vm.proxySearch = $$v;
281
- },
282
- expression: "proxySearch"
283
287
  }
284
288
  }), _vm._v(" "), _c('div', {
285
289
  staticClass: "layout-row gap-sm"
@@ -23,7 +23,7 @@ var script = defineComponent({
23
23
  },
24
24
  placeholder: {
25
25
  type: String,
26
- default: undefined
26
+ default: 'Search'
27
27
  },
28
28
  debounce: {
29
29
  type: Number,
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
8
8
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from '../OrButton-357e1e2c.js';
9
9
  export { _ as OrCard } from '../OrCard-b7268256.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-f6b07557.js';
11
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-43aa4a3c.js';
11
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-57d11adf.js';
12
12
  export { _ as OrCardV3 } from '../OrCard-de799db0.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-4e2cf3d8.js';
14
14
  export { _ as OrCheckbox } from '../OrCheckbox-915f1f0a.js';
@@ -63,7 +63,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { _ as OrRadio } from '../OrRadio-e4198532.js';
64
64
  export { _ as OrRadioGroup } from '../OrRadioGroup-d9d32cba.js';
65
65
  export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
66
- export { _ as OrSearchV3 } from '../OrSearch-62d91301.js';
66
+ export { _ as OrSearchV3 } from '../OrSearch-2f260b09.js';
67
67
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-e8dce8f9.js';
68
68
  export { _ as OrSelect } from '../OrSelect-dae2b069.js';
69
69
  export { _ as OrSelectV3 } from '../OrSelect-f0ff5a85.js';
@@ -20,3 +20,8 @@ export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
20
  export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
21
  export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
22
  export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
23
+ export declare const CustomizeSearch: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
24
+ [x: string]: ((...args: any[]) => any) | null;
25
+ } | string[], {} & {}, {
26
+ [x: number]: string;
27
+ } | {}, true>)>;
@@ -47,6 +47,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
47
47
  type: StringConstructor;
48
48
  default: string;
49
49
  };
50
+ searchPlaceholder: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ searchDebounce: {
55
+ type: NumberConstructor;
56
+ default: undefined;
57
+ };
50
58
  }, import("@vue/composition-api").ExtractPropTypes<{
51
59
  items: {
52
60
  type: PropType<CardCollectionItem[]>;
@@ -72,6 +80,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
72
80
  type: StringConstructor;
73
81
  default: string;
74
82
  };
83
+ searchPlaceholder: {
84
+ type: StringConstructor;
85
+ default: undefined;
86
+ };
87
+ searchDebounce: {
88
+ type: NumberConstructor;
89
+ default: undefined;
90
+ };
75
91
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
92
  search: string;
77
93
  sort: string;
@@ -79,6 +95,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
79
95
  view: string;
80
96
  viewModes: ViewMode[];
81
97
  sortOptions: SortOption[];
98
+ searchPlaceholder: string;
99
+ searchDebounce: number;
82
100
  } & {} & {
83
101
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
84
102
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -110,6 +128,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
110
128
  view: string;
111
129
  viewModes: ViewMode[];
112
130
  sortOptions: SortOption[];
131
+ searchPlaceholder: string;
132
+ searchDebounce: number;
113
133
  } & {} & {
114
134
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
115
135
  }, {
@@ -119,5 +139,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
119
139
  view: string;
120
140
  viewModes: ViewMode[];
121
141
  sortOptions: SortOption[];
142
+ searchPlaceholder: string;
143
+ searchDebounce: number;
122
144
  }, true>);
123
145
  export default _default;
@@ -1,4 +1,4 @@
1
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-43aa4a3c.js';
1
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-57d11adf.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -18,7 +18,7 @@ import '../../OrMenu-df27d0ef.js';
18
18
  import '../../OrMenuItem-c7f28480.js';
19
19
  import '../../OrButton-357e1e2c.js';
20
20
  import '../../OrLoader-f857d55b.js';
21
- import '../../OrSearch-62d91301.js';
21
+ import '../../OrSearch-2f260b09.js';
22
22
  import '../../OrInput-2f16a7ac.js';
23
23
  import '../../OrError-d267ee9a.js';
24
24
  import '../../OrHint-42dc9ebb.js';
@@ -22,7 +22,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
22
22
  };
23
23
  placeholder: {
24
24
  type: StringConstructor;
25
- default: undefined;
25
+ default: string;
26
26
  };
27
27
  debounce: {
28
28
  type: NumberConstructor;
@@ -48,7 +48,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
48
48
  };
49
49
  placeholder: {
50
50
  type: StringConstructor;
51
- default: undefined;
51
+ default: string;
52
52
  };
53
53
  debounce: {
54
54
  type: NumberConstructor;
@@ -1,4 +1,4 @@
1
- export { _ as OrSearchV3 } from '../../OrSearch-62d91301.js';
1
+ export { _ as OrSearchV3 } from '../../OrSearch-2f260b09.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-4d5a318d.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
8
8
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, _ as OrButtonV3 } from './OrButton-357e1e2c.js';
9
9
  export { _ as OrCard } from './OrCard-b7268256.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-f6b07557.js';
11
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-43aa4a3c.js';
11
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-57d11adf.js';
12
12
  export { _ as OrCardV3 } from './OrCard-de799db0.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-4e2cf3d8.js';
14
14
  export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
@@ -63,7 +63,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
63
63
  export { _ as OrRadio } from './OrRadio-e4198532.js';
64
64
  export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
65
65
  export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
66
- export { _ as OrSearchV3 } from './OrSearch-62d91301.js';
66
+ export { _ as OrSearchV3 } from './OrSearch-2f260b09.js';
67
67
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
68
68
  export { _ as OrSelect } from './OrSelect-dae2b069.js';
69
69
  export { _ as OrSelectV3 } from './OrSelect-f0ff5a85.js';
@@ -8,7 +8,7 @@ import { s as script$5 } from './OrMenuItem-9da279f6.js';
8
8
  import { s as script$6 } from './OrIcon-b195169c.js';
9
9
  import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
10
10
  import { s as script$3 } from './OrButton-bb6bf8a9.js';
11
- import { s as script$7 } from './OrSearch-aafb93b4.js';
11
+ import { s as script$7 } from './OrSearch-e5a2e93e.js';
12
12
  import './OrInputBox-5247ab25.js';
13
13
 
14
14
  const CardCollectionRoot = [
@@ -37,7 +37,7 @@ const CardCollectionContentViews = {
37
37
  'grid': [
38
38
  // Layout
39
39
  'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
40
- 'list': []
40
+ 'list': ['grid-cols-1']
41
41
  };
42
42
 
43
43
  var script$1 = defineComponent({
@@ -127,6 +127,14 @@ var script = defineComponent({
127
127
  search: {
128
128
  type: String,
129
129
  default: ''
130
+ },
131
+ searchPlaceholder: {
132
+ type: String,
133
+ default: undefined
134
+ },
135
+ searchDebounce: {
136
+ type: Number,
137
+ default: undefined
130
138
  }
131
139
  },
132
140
  emits: ['viewChange', 'sortChange', 'searchChange'],
@@ -247,12 +255,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
247
255
  }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
248
256
  class: normalizeClass(_ctx.toolbarPanelStyles)
249
257
  }, [createVNode(_component_OrSearch, {
250
- modelValue: _ctx.proxySearch,
251
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxySearch = $event),
258
+ "model-value": _ctx.proxySearch,
252
259
  class: "md:w-[350px]",
260
+ placeholder: _ctx.searchPlaceholder,
261
+ debounce: _ctx.searchDebounce,
253
262
  size: "s",
254
263
  onSearch: _ctx.handleSearch
255
- }, null, 8 /* PROPS */, ["modelValue", "onSearch"]), createElementVNode("div", _hoisted_1, [_ctx.viewModes.length > 1 ? (openBlock(true), createElementBlock(Fragment, {
264
+ }, null, 8 /* PROPS */, ["model-value", "placeholder", "debounce", "onSearch"]), createElementVNode("div", _hoisted_1, [_ctx.viewModes.length > 1 ? (openBlock(true), createElementBlock(Fragment, {
256
265
  key: 0
257
266
  }, renderList(_ctx.viewModes, viewOption => {
258
267
  return openBlock(), createBlock(_component_OrIconButton, {
@@ -23,7 +23,7 @@ var script = defineComponent({
23
23
  },
24
24
  placeholder: {
25
25
  type: String,
26
- default: undefined
26
+ default: 'Search'
27
27
  },
28
28
  debounce: {
29
29
  type: Number,
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
6
6
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-bb6bf8a9.js';
7
7
  export { s as OrCard } from '../OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-a5e326ef.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-6b5e6b76.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-2a6514f3.js';
10
10
  export { s as OrCardV3 } from '../OrCard-fd92f7c8.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
@@ -58,7 +58,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
58
58
  export { s as OrRadio } from '../OrRadio-c3ab11f2.js';
59
59
  export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
60
60
  export { s as OrRadioV3 } from '../OrRadio-54b6d0de.js';
61
- export { s as OrSearchV3 } from '../OrSearch-aafb93b4.js';
61
+ export { s as OrSearchV3 } from '../OrSearch-e5a2e93e.js';
62
62
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
63
63
  export { s as OrSelect } from '../OrSelect-0821b907.js';
64
64
  export { s as OrSelectV3 } from '../OrSelect-7e813982.js';
@@ -20,3 +20,8 @@ export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
20
  export declare const ExtraViewMode: StoryFn<typeof OrCardCollection>;
21
21
  export declare const WithLink: StoryFn<typeof OrCardCollection>;
22
22
  export declare const EmptySearchResults: StoryFn<typeof OrCardCollection>;
23
+ export declare const CustomizeSearch: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
24
+ [x: string]: ((...args: any[]) => any) | null;
25
+ } | string[], {} & {}, {
26
+ [x: number]: string;
27
+ } | {}, true>)>;
@@ -47,6 +47,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
47
47
  type: StringConstructor;
48
48
  default: string;
49
49
  };
50
+ searchPlaceholder: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ searchDebounce: {
55
+ type: NumberConstructor;
56
+ default: undefined;
57
+ };
50
58
  }, import("@vue/composition-api").ExtractPropTypes<{
51
59
  items: {
52
60
  type: PropType<CardCollectionItem[]>;
@@ -72,6 +80,14 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
72
80
  type: StringConstructor;
73
81
  default: string;
74
82
  };
83
+ searchPlaceholder: {
84
+ type: StringConstructor;
85
+ default: undefined;
86
+ };
87
+ searchDebounce: {
88
+ type: NumberConstructor;
89
+ default: undefined;
90
+ };
75
91
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
76
92
  search: string;
77
93
  sort: string;
@@ -79,6 +95,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
79
95
  view: string;
80
96
  viewModes: ViewMode[];
81
97
  sortOptions: SortOption[];
98
+ searchPlaceholder: string;
99
+ searchDebounce: number;
82
100
  } & {} & {
83
101
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
84
102
  }, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -110,6 +128,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
110
128
  view: string;
111
129
  viewModes: ViewMode[];
112
130
  sortOptions: SortOption[];
131
+ searchPlaceholder: string;
132
+ searchDebounce: number;
113
133
  } & {} & {
114
134
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
115
135
  }, {
@@ -119,5 +139,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
119
139
  view: string;
120
140
  viewModes: ViewMode[];
121
141
  sortOptions: SortOption[];
142
+ searchPlaceholder: string;
143
+ searchDebounce: number;
122
144
  }, true>);
123
145
  export default _default;
@@ -1,4 +1,4 @@
1
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-6b5e6b76.js';
1
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-2a6514f3.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
@@ -17,7 +17,7 @@ import '../../OrMenu-840038cd.js';
17
17
  import '../../OrMenuItem-9da279f6.js';
18
18
  import '../../OrButton-bb6bf8a9.js';
19
19
  import '../../OrLoader-b3cf4231.js';
20
- import '../../OrSearch-aafb93b4.js';
20
+ import '../../OrSearch-e5a2e93e.js';
21
21
  import '../../OrInput-41691fb3.js';
22
22
  import '../../OrError-ec8c709d.js';
23
23
  import '../../OrHint-74bb732d.js';
@@ -22,7 +22,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
22
22
  };
23
23
  placeholder: {
24
24
  type: StringConstructor;
25
- default: undefined;
25
+ default: string;
26
26
  };
27
27
  debounce: {
28
28
  type: NumberConstructor;
@@ -48,7 +48,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
48
48
  };
49
49
  placeholder: {
50
50
  type: StringConstructor;
51
- default: undefined;
51
+ default: string;
52
52
  };
53
53
  debounce: {
54
54
  type: NumberConstructor;
@@ -1,4 +1,4 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-aafb93b4.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-e5a2e93e.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
6
6
  export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-bb6bf8a9.js';
7
7
  export { s as OrCard } from './OrCard-e3a5aea4.js';
8
8
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-a5e326ef.js';
9
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-6b5e6b76.js';
9
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-2a6514f3.js';
10
10
  export { s as OrCardV3 } from './OrCard-fd92f7c8.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
@@ -58,7 +58,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
58
58
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
59
59
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
60
60
  export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
61
- export { s as OrSearchV3 } from './OrSearch-aafb93b4.js';
61
+ export { s as OrSearchV3 } from './OrSearch-e5a2e93e.js';
62
62
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
63
63
  export { s as OrSelect } from './OrSelect-0821b907.js';
64
64
  export { s as OrSelectV3 } from './OrSelect-7e813982.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.4",
3
+ "version": "2.69.5-beta.2145.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -123,6 +123,5 @@
123
123
  "default": "./dist/bundled/v3/components/*/index.js"
124
124
  },
125
125
  "./package.json": "./package.json"
126
- },
127
- "gitHead": "2240dfe52d067b0bde714f19d0058b971ce0271a"
126
+ }
128
127
  }
@@ -53,6 +53,14 @@ export default {
53
53
  control: { type: 'text' },
54
54
  },
55
55
 
56
+ searchPlaceholder: {
57
+ control: { type: 'text' },
58
+ },
59
+
60
+ searchDebounce: {
61
+ control: { type: 'number' },
62
+ },
63
+
56
64
  // Events
57
65
  viewChange: {
58
66
  table: { disable: true },
@@ -360,3 +368,11 @@ EmptySearchResults.args = {
360
368
  search: 'My favorite ..',
361
369
  items: [],
362
370
  };
371
+
372
+ export const CustomizeSearch = Template.bind({});
373
+
374
+ CustomizeSearch.args = {
375
+ ...Default.args,
376
+ searchPlaceholder: 'What you want to find today?',
377
+ searchDebounce: 0,
378
+ };
@@ -37,8 +37,10 @@
37
37
  :class="toolbarPanelStyles"
38
38
  >
39
39
  <OrSearch
40
- v-model="proxySearch"
40
+ :model-value="proxySearch"
41
41
  class="md:w-[350px]"
42
+ :placeholder="searchPlaceholder"
43
+ :debounce="searchDebounce"
42
44
  size="s"
43
45
  @search="handleSearch"
44
46
  />
@@ -152,6 +154,16 @@ export default defineComponent({
152
154
  type: String,
153
155
  default: '',
154
156
  },
157
+
158
+ searchPlaceholder: {
159
+ type: String,
160
+ default: undefined,
161
+ },
162
+
163
+ searchDebounce: {
164
+ type: Number,
165
+ default: undefined,
166
+ },
155
167
  },
156
168
 
157
169
  emits: [
@@ -45,5 +45,7 @@ export const CardCollectionContentViews: Record<DefaultCardCollectionViews, stri
45
45
  'xl:grid-cols-6',
46
46
  ],
47
47
 
48
- 'list': [],
48
+ 'list': [
49
+ 'grid-cols-1',
50
+ ],
49
51
  };
@@ -5,7 +5,7 @@ import OrSearch from './OrSearch.vue';
5
5
  import { SearchSize } from './props';
6
6
 
7
7
  export default {
8
- title: 'Components/Forms/Search',
8
+ title: 'Components/Search',
9
9
  component: OrSearch,
10
10
 
11
11
  argTypes: {
@@ -48,7 +48,7 @@ export default defineComponent({
48
48
 
49
49
  placeholder: {
50
50
  type: String,
51
- default: undefined,
51
+ default: 'Search',
52
52
  },
53
53
 
54
54
  debounce: {