@onereach/ui-components 2.69.5-beta.2146.0 → 2.69.6-beta.2148.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 (77) hide show
  1. package/dist/bundled/v2/{OrCardCollection-f622df47.js → OrCardCollection-c4209a92.js} +13 -9
  2. package/dist/bundled/v2/OrEmptyState-9fb413f9.js +160 -0
  3. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-76b002cf.js} +1 -1
  4. package/dist/bundled/v2/components/index.d.ts +1 -0
  5. package/dist/bundled/v2/components/index.js +3 -2
  6. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  7. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  8. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  9. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  10. package/dist/bundled/v2/components/or-empty-state-v3/index.js +3 -159
  11. package/dist/bundled/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  12. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  13. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  14. package/dist/bundled/v2/index.js +4 -3
  15. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-15645a65.js → OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js} +10 -2
  16. package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-da7d6c42.js +111 -0
  17. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +1 -1
  18. package/dist/bundled/v3/components/index.d.ts +1 -0
  19. package/dist/bundled/v3/components/index.js +3 -2
  20. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  21. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  22. package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
  23. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  24. package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -134
  25. package/dist/bundled/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  26. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  27. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  28. package/dist/bundled/v3/index.js +219 -193
  29. package/dist/esm/v2/{OrCardCollection-43aa4a3c.js → OrCardCollection-57d11adf.js} +13 -9
  30. package/dist/esm/v2/OrEmptyState-2481f13f.js +158 -0
  31. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-2f260b09.js} +1 -1
  32. package/dist/esm/v2/components/index.d.ts +1 -0
  33. package/dist/esm/v2/components/index.js +3 -2
  34. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  35. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  36. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  37. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  38. package/dist/esm/v2/components/or-empty-state-v3/index.js +3 -158
  39. package/dist/esm/v2/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  40. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  41. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  42. package/dist/esm/v2/index.js +3 -2
  43. package/dist/esm/v3/{OrCardCollection-6b5e6b76.js → OrCardCollection-2a6514f3.js} +15 -6
  44. package/dist/esm/v3/OrEmptyState-bb8e3145.js +135 -0
  45. package/dist/esm/v3/OrInput-41691fb3.js +1 -1
  46. package/dist/esm/v3/{OrInputBox-5247ab25.js → OrInputBox-6d1b6059.js} +1 -1
  47. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-e5a2e93e.js} +2 -2
  48. package/dist/esm/v3/OrSelect-7e813982.js +1 -1
  49. package/dist/esm/v3/OrTextarea-bb9ef3f2.js +1 -1
  50. package/dist/esm/v3/components/index.d.ts +1 -0
  51. package/dist/esm/v3/components/index.js +4 -3
  52. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  53. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -0
  54. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  55. package/dist/esm/v3/components/or-confirm-v3/index.js +1 -1
  56. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +1 -1
  57. package/dist/esm/v3/components/or-empty-state-v3/index.js +3 -135
  58. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +1 -2
  59. package/dist/esm/v3/components/or-input-box-v3/index.js +2 -2
  60. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  61. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +2 -2
  62. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  63. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  64. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  65. package/dist/esm/v3/index.js +4 -3
  66. package/package.json +1 -1
  67. package/src/components/index.ts +1 -0
  68. package/src/components/or-card/OrCard.stories.ts +1 -1
  69. package/src/components/or-card-collection/OrCardCollection.stories.ts +1 -1
  70. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +16 -0
  71. package/src/components/or-card-collection-v3/OrCardCollection.vue +13 -1
  72. package/src/components/or-card-collection-v3/styles.ts +3 -1
  73. package/src/components/or-empty-state-v3/OrEmptyState.vue +16 -10
  74. package/src/components/or-input-box-v3/OrInputBox.vue +1 -2
  75. package/src/components/or-search-v3/OrSearch.stories3.ts +1 -1
  76. package/src/components/or-search-v3/OrSearch.vue +1 -1
  77. package/src/components/or-teleport-v3/OrTeleport.stories3.ts +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"
@@ -0,0 +1,158 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
3
+
4
+ var EmptyStateSize;
5
+ (function (EmptyStateSize) {
6
+ EmptyStateSize["L"] = "l";
7
+ EmptyStateSize["M"] = "m";
8
+ })(EmptyStateSize || (EmptyStateSize = {}));
9
+
10
+ const EmptyStateRoot = [
11
+ // Layout
12
+ 'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
13
+ // Box
14
+ 'w-full',
15
+ // Sizing
16
+ 'gap-sm'];
17
+ const EmptyStateImage = [
18
+ // Sizing
19
+ 'mb-sm'];
20
+ const EmptyStateImageSizes = {
21
+ [EmptyStateSize.L]: [
22
+ // Box
23
+ 'h-3xl'],
24
+ [EmptyStateSize.M]: [
25
+ // Box
26
+ 'h-2xl']
27
+ };
28
+ const EmptyStateHeading = [
29
+ // Theme
30
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
+ const EmptyStateHeadingSizes = {
32
+ [EmptyStateSize.L]: [
33
+ // Typography
34
+ 'typography-headline-2'],
35
+ [EmptyStateSize.M]: [
36
+ // Typography
37
+ 'typography-headline-4']
38
+ };
39
+ const EmptyStateText = ['text-center',
40
+ // Theme
41
+ 'text-outline', 'dark:text-outline-dark'];
42
+ const EmptyStateContent = EmptyStateText;
43
+ const EmptyStateTextSizes = {
44
+ [EmptyStateSize.L]: [
45
+ // Typography
46
+ 'typography-body-2-regular'],
47
+ [EmptyStateSize.M]: [
48
+ // Typography
49
+ 'typography-caption-regular']
50
+ };
51
+ const EmptyStateContentSizes = EmptyStateTextSizes;
52
+
53
+ /**
54
+ * The component to display when there is no content on a page,
55
+ * no records found or selected, or while the data is being loaded.
56
+ * Provides a hint to the user on what to do.
57
+ * Consists of text message, optional icon and optional loader.
58
+ */
59
+ var script = defineComponent({
60
+ name: 'OrEmptyState',
61
+ props: {
62
+ /**
63
+ * Size of the component, affects font and icon size.
64
+ * Use Large if the component takes all screen space,
65
+ * and Medium if it is a part of the complex layout.
66
+ */
67
+ size: {
68
+ type: String,
69
+ default: EmptyStateSize.M
70
+ },
71
+ /**
72
+ * The heading of the empty state block.
73
+ */
74
+ heading: {
75
+ type: String,
76
+ default: ''
77
+ },
78
+ /**
79
+ * Additional text such as a hint for a user with proposed next steps.
80
+ */
81
+ text: {
82
+ type: String,
83
+ default: ''
84
+ },
85
+ /**
86
+ * Path to the image to display above the heading.
87
+ * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
88
+ */
89
+ imageSrc: {
90
+ type: String,
91
+ default: undefined
92
+ }
93
+ },
94
+ setup(props) {
95
+ const root = ref();
96
+ const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
+ const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
+ const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
+ const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
+ const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
+ return {
102
+ root,
103
+ rootClasses,
104
+ imageClasses,
105
+ headingClasses,
106
+ textClasses,
107
+ slotClasses
108
+ };
109
+ }
110
+ });
111
+
112
+ /* script */
113
+ const __vue_script__ = script;
114
+
115
+ /* template */
116
+ var __vue_render__ = function () {
117
+ var _vm = this;
118
+ var _h = _vm.$createElement;
119
+ var _c = _vm._self._c || _h;
120
+ return _c('div', {
121
+ ref: "root",
122
+ class: _vm.rootClasses
123
+ }, [_vm.imageSrc ? _c('img', {
124
+ class: _vm.imageClasses,
125
+ attrs: {
126
+ "src": _vm.imageSrc,
127
+ "alt": ""
128
+ }
129
+ }) : _vm._e(), _vm._v(" "), _c('div', {
130
+ class: _vm.headingClasses
131
+ }, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
132
+ class: _vm.slotClasses
133
+ }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
134
+ class: _vm.textClasses
135
+ }, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
136
+ };
137
+ var __vue_staticRenderFns__ = [];
138
+
139
+ /* style */
140
+ const __vue_inject_styles__ = undefined;
141
+ /* scoped */
142
+ const __vue_scope_id__ = undefined;
143
+ /* module identifier */
144
+ const __vue_module_identifier__ = undefined;
145
+ /* functional template */
146
+ const __vue_is_functional_template__ = false;
147
+ /* style inject */
148
+
149
+ /* style inject SSR */
150
+
151
+ /* style inject shadow dom */
152
+
153
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
154
+ render: __vue_render__,
155
+ staticRenderFns: __vue_staticRenderFns__
156
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
157
+
158
+ export { EmptyStateSize as E, __vue_component__ as _ };
@@ -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,
@@ -21,6 +21,7 @@ export * from './or-date-time-picker';
21
21
  export * from './or-error';
22
22
  export * from './or-error-tag-v3';
23
23
  export * from './or-error-v3';
24
+ export * from './or-empty-state-v3';
24
25
  export * from './or-expansion-panel-v3';
25
26
  export * from './or-fab-v3';
26
27
  export * from './or-floating';
@@ -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';
@@ -24,6 +24,7 @@ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemType
24
24
  export { _ as OrError } from '../OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-782dd714.js';
26
26
  export { _ as OrErrorV3 } from '../OrError-d267ee9a.js';
27
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../OrEmptyState-2481f13f.js';
27
28
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from '../OrExpansionPanel-968ddc61.js';
28
29
  export { F as FabColor, _ as OrFabV3 } from '../OrFab-26106618.js';
29
30
  export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from '../OrFloating-89d6582a.js';
@@ -63,7 +64,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
64
  export { _ as OrRadio } from '../OrRadio-e4198532.js';
64
65
  export { _ as OrRadioGroup } from '../OrRadioGroup-d9d32cba.js';
65
66
  export { _ as OrRadioV3 } from '../OrRadio-848ce55d.js';
66
- export { _ as OrSearchV3 } from '../OrSearch-62d91301.js';
67
+ export { _ as OrSearchV3 } from '../OrSearch-2f260b09.js';
67
68
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-e8dce8f9.js';
68
69
  export { _ as OrSelect } from '../OrSelect-dae2b069.js';
69
70
  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';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { EmptyStateSize } from '.';
2
+ import { EmptyStateSize } from './props';
3
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
5
  rootClasses: import("@vue/composition-api").ComputedRef<string[]>;
@@ -1,158 +1,3 @@
1
- import { defineComponent, ref, computed } from 'vue-demi';
2
- import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
3
-
4
- var EmptyStateSize;
5
- (function (EmptyStateSize) {
6
- EmptyStateSize["L"] = "l";
7
- EmptyStateSize["M"] = "m";
8
- })(EmptyStateSize || (EmptyStateSize = {}));
9
-
10
- const EmptyStateRoot = [
11
- // Layout
12
- 'grow', 'flex', 'flex-col', 'justify-center', 'items-center',
13
- // Box
14
- 'w-full',
15
- // Sizing
16
- 'gap-sm'];
17
- const EmptyStateImage = [
18
- // Sizing
19
- 'mb-sm'];
20
- const EmptyStateImageSizes = {
21
- [EmptyStateSize.L]: [
22
- // Box
23
- 'h-3xl'],
24
- [EmptyStateSize.M]: [
25
- // Box
26
- 'h-2xl']
27
- };
28
- const EmptyStateHeading = [
29
- // Theme
30
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
31
- const EmptyStateHeadingSizes = {
32
- [EmptyStateSize.L]: [
33
- // Typography
34
- 'typography-headline-2'],
35
- [EmptyStateSize.M]: [
36
- // Typography
37
- 'typography-headline-4']
38
- };
39
- const EmptyStateText = ['text-center',
40
- // Theme
41
- 'text-outline', 'dark:text-outline-dark'];
42
- const EmptyStateContent = EmptyStateText;
43
- const EmptyStateTextSizes = {
44
- [EmptyStateSize.L]: [
45
- // Typography
46
- 'typography-body-2-regular'],
47
- [EmptyStateSize.M]: [
48
- // Typography
49
- 'typography-caption-regular']
50
- };
51
- const EmptyStateContentSizes = EmptyStateTextSizes;
52
-
53
- /**
54
- * The component to display when there is no content on a page,
55
- * no records found or selected, or while the data is being loaded.
56
- * Provides a hint to the user on what to do.
57
- * Consists of text message, optional icon and optional loader.
58
- */
59
- var script = defineComponent({
60
- name: 'OrEmptyState',
61
- props: {
62
- /**
63
- * Size of the component, affects font and icon size.
64
- * Use Large if the component takes all screen space,
65
- * and Medium if it is a part of the complex layout.
66
- */
67
- size: {
68
- type: String,
69
- default: EmptyStateSize.M
70
- },
71
- /**
72
- * The heading of the empty state block.
73
- */
74
- heading: {
75
- type: String,
76
- default: ''
77
- },
78
- /**
79
- * Additional text such as a hint for a user with proposed next steps.
80
- */
81
- text: {
82
- type: String,
83
- default: ''
84
- },
85
- /**
86
- * Path to the image to display above the heading.
87
- * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
88
- */
89
- imageSrc: {
90
- type: String,
91
- default: undefined
92
- }
93
- },
94
- setup(props) {
95
- const root = ref();
96
- const rootClasses = computed(() => ['or-empty-state', ...EmptyStateRoot]);
97
- const imageClasses = computed(() => ['or-empty-state_image', ...EmptyStateImage, ...EmptyStateImageSizes[props.size]]);
98
- const headingClasses = computed(() => ['or-empty-state_heading', ...EmptyStateHeading, ...EmptyStateHeadingSizes[props.size]]);
99
- const textClasses = computed(() => ['or-empty-state_text', ...EmptyStateText, ...EmptyStateTextSizes[props.size]]);
100
- const slotClasses = computed(() => ['or-empty-state_content', ...EmptyStateContent, ...EmptyStateContentSizes[props.size]]);
101
- return {
102
- root,
103
- rootClasses,
104
- imageClasses,
105
- headingClasses,
106
- textClasses,
107
- slotClasses
108
- };
109
- }
110
- });
111
-
112
- /* script */
113
- const __vue_script__ = script;
114
-
115
- /* template */
116
- var __vue_render__ = function () {
117
- var _vm = this;
118
- var _h = _vm.$createElement;
119
- var _c = _vm._self._c || _h;
120
- return _c('div', {
121
- ref: "root",
122
- class: _vm.rootClasses
123
- }, [_vm.imageSrc ? _c('img', {
124
- class: _vm.imageClasses,
125
- attrs: {
126
- "src": _vm.imageSrc,
127
- "alt": ""
128
- }
129
- }) : _vm._e(), _vm._v(" "), _c('div', {
130
- class: _vm.headingClasses
131
- }, [_vm._v("\n " + _vm._s(_vm.heading) + "\n ")]), _vm._v(" "), _vm.$slots.default ? _c('div', {
132
- class: _vm.slotClasses
133
- }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', {
134
- class: _vm.textClasses
135
- }, [_vm._v("\n " + _vm._s(_vm.text) + "\n ")])]);
136
- };
137
- var __vue_staticRenderFns__ = [];
138
-
139
- /* style */
140
- const __vue_inject_styles__ = undefined;
141
- /* scoped */
142
- const __vue_scope_id__ = undefined;
143
- /* module identifier */
144
- const __vue_module_identifier__ = undefined;
145
- /* functional template */
146
- const __vue_is_functional_template__ = false;
147
- /* style inject */
148
-
149
- /* style inject SSR */
150
-
151
- /* style inject shadow dom */
152
-
153
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
154
- render: __vue_render__,
155
- staticRenderFns: __vue_staticRenderFns__
156
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
157
-
158
- export { EmptyStateSize, __vue_component__ as OrEmptyStateV3 };
1
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from '../../OrEmptyState-2481f13f.js';
2
+ import 'vue-demi';
3
+ import '../../normalize-component-6e8e3d80.js';
@@ -1,6 +1,5 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { InputBoxVariant } from '.';
3
- import { InputBoxSize } from './props';
2
+ import { InputBoxSize, InputBoxVariant } from './props';
4
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
5
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
@@ -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';
@@ -24,6 +24,7 @@ export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemType
24
24
  export { _ as OrError } from './OrError-081130bb.js';
25
25
  export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
26
26
  export { _ as OrErrorV3 } from './OrError-d267ee9a.js';
27
+ export { E as EmptyStateSize, _ as OrEmptyStateV3 } from './OrEmptyState-2481f13f.js';
27
28
  export { a as ExpansionPanelColor, E as ExpansionPanelVariant, _ as OrExpansionPanelV3 } from './OrExpansionPanel-968ddc61.js';
28
29
  export { F as FabColor, _ as OrFabV3 } from './OrFab-26106618.js';
29
30
  export { _ as OrFloating, a as OrFloatingHideStrategy, O as OrFloatingPlacements } from './OrFloating-89d6582a.js';
@@ -63,7 +64,7 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
63
64
  export { _ as OrRadio } from './OrRadio-e4198532.js';
64
65
  export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
65
66
  export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
66
- export { _ as OrSearchV3 } from './OrSearch-62d91301.js';
67
+ export { _ as OrSearchV3 } from './OrSearch-2f260b09.js';
67
68
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
68
69
  export { _ as OrSelect } from './OrSelect-dae2b069.js';
69
70
  export { _ as OrSelectV3 } from './OrSelect-f0ff5a85.js';
@@ -8,8 +8,8 @@ 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';
12
- import './OrInputBox-5247ab25.js';
11
+ import { s as script$7 } from './OrSearch-e5a2e93e.js';
12
+ import './OrInputBox-6d1b6059.js';
13
13
 
14
14
  const CardCollectionRoot = [
15
15
  // Layout
@@ -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, {