@onereach/ui-components 2.69.1-beta.2095.0 → 2.69.1-beta.2097.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 (142) hide show
  1. package/dist/bundled/v2/{OrButton-66d37aff.js → OrButton-0e91a808.js} +1 -14
  2. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-8606c407.js +336 -0
  4. package/dist/bundled/v2/{OrConfirm-e1ca1422.js → OrConfirm-18c534df.js} +1 -1
  5. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-19f43fe5.js} +2 -2
  6. package/dist/bundled/v2/{OrSelect-1c9421ad.js → OrSelect-759b4410.js} +3 -3
  7. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  8. package/dist/bundled/v2/components/index.d.ts +0 -1
  9. package/dist/bundled/v2/components/index.js +7 -8
  10. package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  11. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  12. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  14. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  15. package/dist/bundled/v2/components/or-card-collection-v3/constatnts.d.ts +4 -0
  16. package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -4
  17. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  18. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  20. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  22. package/dist/bundled/v2/components/or-select-v3/index.d.ts +0 -1
  23. package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
  24. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  25. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  26. package/dist/bundled/v2/index.js +8 -9
  27. package/dist/bundled/v3/{OrButton-9640286b.js → OrButton-8ab33d9d.js} +2 -3
  28. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-06d8ead1.js → OrButton.vue_vue_type_script_lang-3718b300.js} +1 -13
  29. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-80c10c12.js +229 -0
  30. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f1b81f00.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +2 -2
  31. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-cb2d6612.js} +1 -1
  32. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d0626539.js → OrSelect.vue_vue_type_script_lang-dfadd12f.js} +2 -2
  33. package/dist/bundled/v3/components/index.d.ts +0 -1
  34. package/dist/bundled/v3/components/index.js +10 -11
  35. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  36. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  37. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  38. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  39. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  40. package/dist/bundled/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  41. package/dist/bundled/v3/components/or-card-collection-v3/index.js +11 -4
  42. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  43. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  44. package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
  45. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  46. package/dist/bundled/v3/components/or-select-v3/index.d.ts +0 -1
  47. package/dist/bundled/v3/components/or-select-v3/index.js +1 -1
  48. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  49. package/dist/bundled/v3/index.js +295 -354
  50. package/dist/esm/v2/{OrButton-3d4fc9da.js → OrButton-357a5756.js} +1 -14
  51. package/dist/esm/v2/OrCardCollection-e7a4ead6.js +336 -0
  52. package/dist/esm/v2/{OrConfirm-ba3f8c45.js → OrConfirm-b0b2e43c.js} +1 -1
  53. package/dist/esm/v2/{OrSelect-ca2510cd.js → OrSelect-ac382aa6.js} +3 -3
  54. package/dist/esm/v2/components/index.d.ts +0 -1
  55. package/dist/esm/v2/components/index.js +4 -5
  56. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +0 -11
  57. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  58. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  59. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  60. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  61. package/dist/esm/v2/components/or-card-collection-v3/constatnts.d.ts +4 -0
  62. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  63. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  64. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  65. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  66. package/dist/esm/v2/components/or-select-v3/index.d.ts +0 -1
  67. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  68. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  69. package/dist/esm/v2/index.js +4 -5
  70. package/dist/esm/v3/{OrButton-970ae320.js → OrButton-f4b9ee51.js} +2 -15
  71. package/dist/esm/v3/OrCardCollection-3bd67c5c.js +282 -0
  72. package/dist/esm/v3/{OrConfirm-7cb2f36b.js → OrConfirm-906427ef.js} +1 -1
  73. package/dist/esm/v3/{OrSelect-bff22c7f.js → OrSelect-fee9c099.js} +3 -3
  74. package/dist/esm/v3/components/index.d.ts +0 -1
  75. package/dist/esm/v3/components/index.js +4 -5
  76. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +0 -11
  77. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  78. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +4 -0
  79. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +63 -37
  80. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  81. package/dist/esm/v3/components/or-card-collection-v3/constatnts.d.ts +4 -0
  82. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  83. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  84. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  85. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  86. package/dist/esm/v3/components/or-select-v3/index.d.ts +0 -1
  87. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  88. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  89. package/dist/esm/v3/index.js +4 -5
  90. package/package.json +1 -1
  91. package/src/components/index.ts +0 -1
  92. package/src/components/or-button-v3/OrButton.stories3.ts +0 -4
  93. package/src/components/or-button-v3/OrButton.vue +0 -6
  94. package/src/components/or-button-v3/styles.ts +1 -15
  95. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +193 -28
  96. package/src/components/or-card-collection-v3/OrCardCollection.vue +110 -76
  97. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  98. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  99. package/src/components/or-card-collection-v3/constatnts.ts +12 -0
  100. package/src/components/or-card-collection-v3/styles.ts +1 -1
  101. package/src/components/or-card-collection-v3/types.ts +9 -3
  102. package/src/components/or-select-v3/OrSelect.vue +3 -3
  103. package/src/components/or-select-v3/index.ts +0 -1
  104. package/src/components/or-select-v3/types.ts +1 -1
  105. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  106. package/dist/bundled/v2/OrPagination-354e9abd.js +0 -296
  107. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  108. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  109. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +0 -2
  110. package/dist/bundled/v2/components/or-pagination-v3/index.js +0 -20
  111. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +0 -3
  112. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +0 -4
  113. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-3993a015.js +0 -164
  114. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-ff22b11c.js +0 -180
  115. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  116. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  117. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +0 -2
  118. package/dist/bundled/v3/components/or-pagination-v3/index.js +0 -22
  119. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +0 -3
  120. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +0 -4
  121. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  122. package/dist/esm/v2/OrPagination-a56eb93b.js +0 -296
  123. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  124. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  125. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +0 -2
  126. package/dist/esm/v2/components/or-pagination-v3/index.js +0 -18
  127. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +0 -3
  128. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +0 -4
  129. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
  130. package/dist/esm/v3/OrPagination-d351a13b.js +0 -257
  131. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +0 -12
  132. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -110
  133. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +0 -2
  134. package/dist/esm/v3/components/or-pagination-v3/index.js +0 -17
  135. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +0 -3
  136. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +0 -4
  137. package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
  138. package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -87
  139. package/src/components/or-pagination-v3/OrPagination.vue +0 -260
  140. package/src/components/or-pagination-v3/index.ts +0 -2
  141. package/src/components/or-pagination-v3/styles.ts +0 -30
  142. package/src/components/or-pagination-v3/types.ts +0 -4
@@ -1,7 +1,12 @@
1
1
  export interface CardCollectionItem {
2
- id: string;
2
+ key?: string;
3
+ [key: string | number]: any;
3
4
  }
4
- export interface CardCollectionSortHeader {
5
- value: string;
5
+ export interface ViewMode {
6
+ view: string;
7
+ icon: string;
8
+ }
9
+ export interface SortOption {
6
10
  label: string;
11
+ value: string;
7
12
  }
@@ -1,6 +1,6 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-7cb2f36b.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-906427ef.js';
2
2
  import 'vue-demi';
3
- import '../../OrButton-970ae320.js';
3
+ import '../../OrButton-f4b9ee51.js';
4
4
  import '../../useClassAttribute-47fdb016.js';
5
5
  import '@vueuse/core';
6
6
  import '../../OrLoader-b3cf4231.js';
@@ -23,13 +23,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
23
23
  dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
24
24
  noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
25
25
  controlId: import("@vue/composition-api").Ref<string>;
26
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
26
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | string[]>;
27
27
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
28
28
  readonly: import("@vue/composition-api").ComputedRef<boolean>;
29
29
  selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
30
30
  searchText: import("@vue/composition-api").Ref<string>;
31
31
  internalSearchOptions: import("@vue/composition-api").Ref<{
32
- value: string | number;
32
+ value: string;
33
33
  label: string;
34
34
  }[]>;
35
35
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
@@ -49,11 +49,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
49
49
  default: SelectOption[];
50
50
  };
51
51
  modelValue: {
52
- type: PropType<string | number | (string | number)[]>;
52
+ type: PropType<string | string[]>;
53
53
  default: undefined;
54
54
  };
55
55
  value: {
56
- type: PropType<string | number | (string | number)[]>;
56
+ type: PropType<string | string[]>;
57
57
  default: undefined;
58
58
  };
59
59
  multiple: {
@@ -114,11 +114,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
114
114
  default: SelectOption[];
115
115
  };
116
116
  modelValue: {
117
- type: PropType<string | number | (string | number)[]>;
117
+ type: PropType<string | string[]>;
118
118
  default: undefined;
119
119
  };
120
120
  value: {
121
- type: PropType<string | number | (string | number)[]>;
121
+ type: PropType<string | string[]>;
122
122
  default: undefined;
123
123
  };
124
124
  multiple: {
@@ -173,8 +173,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
173
173
  label: string;
174
174
  options: SelectOption[];
175
175
  searchOptions: SelectOption[];
176
- modelValue: string | number | (string | number)[];
177
- value: string | number | (string | number)[];
176
+ modelValue: string | string[];
177
+ value: string | string[];
178
178
  multiple: boolean;
179
179
  size: SelectSize;
180
180
  placeholder: string;
@@ -210,13 +210,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
210
210
  dropdownStyles: import("@vue/composition-api").ComputedRef<string[]>;
211
211
  noSearchResultsStyles: import("@vue/composition-api").ComputedRef<string[]>;
212
212
  controlId: import("@vue/composition-api").Ref<string>;
213
- proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | number | (string | number)[]>;
213
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<string | string[]>;
214
214
  invalid: import("@vue/composition-api").ComputedRef<boolean>;
215
215
  readonly: import("@vue/composition-api").ComputedRef<boolean>;
216
216
  selection: import("@vue/composition-api").ComputedRef<SelectOption | (SelectOption | undefined)[] | undefined>;
217
217
  searchText: import("@vue/composition-api").Ref<string>;
218
218
  internalSearchOptions: import("@vue/composition-api").Ref<{
219
- value: string | number;
219
+ value: string;
220
220
  label: string;
221
221
  }[]>;
222
222
  resolvedSearchOptions: import("@vue/composition-api").ComputedRef<SelectOption[]>;
@@ -230,8 +230,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
230
230
  label: string;
231
231
  options: SelectOption[];
232
232
  searchOptions: SelectOption[];
233
- modelValue: string | number | (string | number)[];
234
- value: string | number | (string | number)[];
233
+ modelValue: string | string[];
234
+ value: string | string[];
235
235
  multiple: boolean;
236
236
  size: SelectSize;
237
237
  placeholder: string;
@@ -249,8 +249,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
249
249
  label: string;
250
250
  options: SelectOption[];
251
251
  searchOptions: SelectOption[];
252
- modelValue: string | number | (string | number)[];
253
- value: string | number | (string | number)[];
252
+ modelValue: string | string[];
253
+ value: string | string[];
254
254
  multiple: boolean;
255
255
  size: SelectSize;
256
256
  placeholder: string;
@@ -1,3 +1,2 @@
1
1
  export { default as OrSelectV3 } from './OrSelect.vue';
2
2
  export * from './props';
3
- export * from './types';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-bff22c7f.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-fee9c099.js';
2
2
  export { a as SelectSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
@@ -1,5 +1,5 @@
1
1
  export interface SelectOption {
2
- value: string | number;
2
+ value: string;
3
3
  label: string;
4
4
  }
5
5
  export interface SelectSearchFunction {
@@ -3,10 +3,10 @@ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-e
3
3
  export { s as OrBottomSheetV3 } from './OrBottomSheet-62817aec.js';
4
4
  export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-fca9019a.js';
5
5
  export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE, s as OrButtonV2, a as OrIconButton } from './OrIconButton-8be9c89f.js';
6
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-970ae320.js';
6
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-f4b9ee51.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 { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-5a0febaf.js';
9
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from './OrCardCollection-3bd67c5c.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';
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-ee19a5e6.js';
16
16
  export { s as OrCollapse } from './OrCollapse-445141ab.js';
17
17
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
18
18
  export { s as OrConfirm } from './OrConfirm-f39bd784.js';
19
- export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-7cb2f36b.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-906427ef.js';
20
20
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
21
21
  export { s as OrError } from './OrError-f90296db.js';
22
22
  export { s as OrErrorTagV3 } from './OrErrorTag-98252eef.js';
@@ -53,7 +53,6 @@ export { N as NotificationVariant, s as OrNotificationV3 } from './OrNotificatio
53
53
  export { s as OrOverflowMenu } from './OrOverflowMenu-e82cbcbe.js';
54
54
  export { s as OrOverlay } from './OrOverlay-451dce49.js';
55
55
  export { s as OrOverlayV3 } from './OrOverlay-738a44d5.js';
56
- export { s as OrPaginationV3 } from './OrPagination-d351a13b.js';
57
56
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from './OrProgress-d0d52c86.js';
58
57
  export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrProgress-407002e0.js';
59
58
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
@@ -62,7 +61,7 @@ export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
62
61
  export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
63
62
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
64
63
  export { s as OrSelect } from './OrSelect-0821b907.js';
65
- export { s as OrSelectV3 } from './OrSelect-bff22c7f.js';
64
+ export { s as OrSelectV3 } from './OrSelect-fee9c099.js';
66
65
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
67
66
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
68
67
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.1-beta.2095.0",
3
+ "version": "2.69.1-beta.2097.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -52,7 +52,6 @@ export * from './or-notification-v3';
52
52
  export * from './or-overflow-menu';
53
53
  export * from './or-overlay';
54
54
  export * from './or-overlay-v3';
55
- export * from './or-pagination-v3';
56
55
  export * from './or-popover-v3';
57
56
  export * from './or-progress';
58
57
  export * from './or-progress-v3';
@@ -36,10 +36,6 @@ export default {
36
36
  options: Object.values(ButtonColor),
37
37
  },
38
38
 
39
- activated: {
40
- table: { disable: true },
41
- },
42
-
43
39
  disabled: {
44
40
  control: { type: 'boolean' },
45
41
  },
@@ -4,7 +4,6 @@
4
4
  v-bind="$attrs"
5
5
  :class="rootStyles"
6
6
  :type="type"
7
- :activated="activated ? '' : null"
8
7
  :disabled="disabled"
9
8
  @click="$emit('click', $event)"
10
9
  @focus="$emit('focus', $event)"
@@ -64,11 +63,6 @@ export default defineComponent({
64
63
  default: ButtonColor.Primary,
65
64
  },
66
65
 
67
- activated: {
68
- type: Boolean,
69
- default: false,
70
- },
71
-
72
66
  disabled: {
73
67
  type: Boolean,
74
68
  default: false,
@@ -110,19 +110,5 @@ export const ButtonRootColors: Record<`${ButtonColor}-${ButtonVariant}`, string[
110
110
  'dark:theme-preset-4-error-dark',
111
111
  ],
112
112
 
113
- 'inherit-link': [
114
- // Typography
115
- 'typography-caption-regular',
116
-
117
- // Typography (activated)
118
- 'activated:typography-caption-bold',
119
-
120
- // Theme
121
- 'theme-foreground-inherit',
122
- 'dark:theme-foreground-inherit',
123
-
124
- // Theme (activated)
125
- 'activated:theme-foreground-default',
126
- 'dark:activated:theme-foreground-default-dark',
127
- ],
113
+ 'inherit-link': [],
128
114
  };
@@ -1,10 +1,13 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
  import { Meta, StoryFn } from '@storybook/vue3';
3
+ import { ref } from 'vue-demi';
3
4
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
4
5
  import OrCardCollectionDocs from './OrCardCollection.docs.mdx';
5
6
  import OrCardCollection from './OrCardCollection.vue';
7
+ import { defaultViewModes } from './constatnts';
8
+ import { OrCardV3 as OrCard } from '../or-card-v3';
6
9
  import { CardCollectionView } from './props';
7
- import { CardCollectionItem, CardCollectionSortHeader } from './types';
10
+ import { CardCollectionItem } from './types';
8
11
 
9
12
  export default {
10
13
  title: 'Components/Card Collection',
@@ -12,7 +15,7 @@ export default {
12
15
 
13
16
  argTypes: {
14
17
  // Slots
15
- gridItem: {
18
+ item: {
16
19
  type: {
17
20
  name: 'string',
18
21
  required: true,
@@ -21,10 +24,9 @@ export default {
21
24
  control: { type: 'text' },
22
25
  },
23
26
 
24
- listItem: {
27
+ header: {
25
28
  type: {
26
29
  name: 'string',
27
- required: true,
28
30
  },
29
31
 
30
32
  control: { type: 'text' },
@@ -44,7 +46,7 @@ export default {
44
46
  control: { type: 'object' },
45
47
  },
46
48
 
47
- sortHeaders: {
49
+ sortOptions: {
48
50
  control: { type: 'object' },
49
51
  },
50
52
 
@@ -70,35 +72,51 @@ export default {
70
72
  docs: {
71
73
  page: OrCardCollectionDocs,
72
74
  },
75
+ layout: 'fullscreen',
73
76
  },
74
77
  } as Meta<typeof OrCardCollection>;
75
78
 
76
79
  const Template: StoryFn<typeof OrCardCollection> = (args) => ({
77
80
  components: {
78
81
  OrCardCollection,
82
+ OrCard,
79
83
  OrIcon,
80
84
  },
81
85
 
82
86
  setup() {
87
+ const sort = ref(args.sort);
88
+ const onSortChange = (newSort: string) => {
89
+ sort.value = newSort;
90
+ action('searchChange')(newSort);
91
+ };
92
+
83
93
  return {
84
94
  args,
95
+ sort,
96
+ onSortChange,
85
97
  onViewChange: action('viewChange'),
86
- onSortChange: action('sortChange'),
87
98
  onSearchChange: action('searchChange'),
88
99
  };
89
100
  },
90
101
 
91
102
  template: `
92
- <OrCardCollection
93
- v-bind="args"
94
- @viewChange="onViewChange"
95
- @sortChange="onSortChange"
96
- @searchChange="onSearchChange"
97
- >
98
- <template #gridItem="item">${args.gridItem}</template>
99
- <template #listItem="item">${args.listItem}</template>
100
- <template #addon>${args.addon}</template>
101
- </OrCardCollection>
103
+ <div class="p-md bg-surface-1 dark:bg-surface-1-dark">
104
+ <OrCardCollection
105
+ v-bind="args"
106
+ :sort="sort"
107
+ @viewChange="onViewChange"
108
+ @sortChange="onSortChange"
109
+ @searchChange="onSearchChange"
110
+ >
111
+ <template #header>
112
+ ${args.header}
113
+ </template>
114
+ <template #item="{item, mode}">
115
+ <OrCard>${args.item} ({{mode}})</OrCard>
116
+ </template>
117
+ <template #addon>${args.addon}</template>
118
+ </OrCardCollection>
119
+ </div>
102
120
  `,
103
121
  });
104
122
 
@@ -106,8 +124,7 @@ export const Default = Template.bind({});
106
124
 
107
125
  Default.args = {
108
126
  // Slots
109
- gridItem: '{{ item.label }} (grid)',
110
- listItem: '{{ item.label }} (list)',
127
+ item: '{{ item.label }}',
111
128
  addon: '<OrIcon icon="info" />',
112
129
 
113
130
  // Props
@@ -139,7 +156,7 @@ Default.args = {
139
156
  'Yankee',
140
157
  'Zulu',
141
158
  ], (item) => ({
142
- id: item.toLowerCase(),
159
+ key: item.toLowerCase(),
143
160
  label: item,
144
161
  })),
145
162
  };
@@ -150,13 +167,161 @@ WithSorting.args = {
150
167
  ...Default.args,
151
168
 
152
169
  // Props
153
- sortHeaders: Array.from<string, CardCollectionSortHeader>([
154
- 'Foo',
155
- 'Bar',
156
- 'Baz',
157
- 'Qux',
158
- ], (item) => ({
159
- value: item.toLowerCase(),
160
- label: item,
161
- })),
170
+ sort: 'bar',
171
+ sortOptions: [
172
+ {
173
+ label: 'Foo',
174
+ value: 'foo',
175
+ },
176
+ {
177
+ label: 'Bar',
178
+ value: 'bar',
179
+ },
180
+ {
181
+ label: 'Baz',
182
+ value: 'baz',
183
+ },
184
+ {
185
+ label: 'Qux',
186
+ value: 'qux',
187
+ },
188
+ ],
189
+ };
190
+
191
+
192
+ export const OverrideViewContainer: StoryFn<typeof OrCardCollection> = (args) => ({
193
+ components: {
194
+ OrCardCollection,
195
+ OrCard,
196
+ },
197
+
198
+ setup() {
199
+ return {
200
+ args,
201
+ onViewChange: action('viewChange'),
202
+ onSortChange: action('sortChange'),
203
+ onSearchChange: action('searchChange'),
204
+ };
205
+ },
206
+
207
+ template: `
208
+ <div class="p-md bg-surface-1 dark:bg-surface-1-dark">
209
+ <OrCardCollection
210
+ v-bind="args"
211
+ @viewChange="onViewChange"
212
+ @sortChange="onSortChange"
213
+ @searchChange="onSearchChange"
214
+ >
215
+ <template #header="{mode}">
216
+ <div class="typography-headline-3">Custom {{ mode }}</div>
217
+ </template>
218
+ <template #grid="{items}">
219
+ <div class="grid grid-cols-3">
220
+ <OrCard
221
+ v-for="item in items"
222
+ :key="item.key"
223
+ >
224
+ {{ item.label }}
225
+ </OrCard>
226
+ </div>
227
+ </template>
228
+ <template #list="{items}">
229
+ <ul>
230
+ <li
231
+ v-for="item in items"
232
+ :key="item.key"
233
+ >
234
+ - {{ item.label }}
235
+ </li>
236
+ </ul>
237
+ </template>
238
+ </OrCardCollection>
239
+ </div>
240
+ `,
241
+ });
242
+
243
+ OverrideViewContainer.args = {
244
+ ...Default.args,
245
+ };
246
+
247
+ export const ExtraViewMode: StoryFn<typeof OrCardCollection> = (args) => ({
248
+ components: {
249
+ OrCardCollection,
250
+ OrCard,
251
+ },
252
+
253
+ setup() {
254
+ return {
255
+ args,
256
+ defaultViewModes,
257
+ onViewChange: action('viewChange'),
258
+ onSearchChange: action('searchChange'),
259
+ };
260
+ },
261
+
262
+ template: `
263
+ <div class="p-md bg-surface-1 dark:bg-surface-1-dark">
264
+ <OrCardCollection
265
+ v-bind="args"
266
+ :view-modes="[...defaultViewModes, {view: 'mymode', icon: 'timeline'}]"
267
+ @viewChange="onViewChange"
268
+ @searchChange="onSearchChange"
269
+ >
270
+ <template #item="{item, mode}">
271
+ <OrCard>${args.item} ({{mode}})</OrCard>
272
+ </template>
273
+ <template #mymode="{items}">
274
+ <div class="typography-headline-3">My view mode</div>
275
+ <div class="grid grid-cols-3">
276
+ <OrCard
277
+ v-for="item in items"
278
+ :key="item.key"
279
+ >
280
+ {{ item.label }} (timeline)
281
+ </OrCard>
282
+ </div>
283
+ </template>
284
+ </OrCardCollection>
285
+ </div>
286
+ `,
287
+ });
288
+
289
+ ExtraViewMode.args = {
290
+ ...Default.args,
291
+ };
292
+
293
+ export const WithLink: StoryFn<typeof OrCardCollection> = (args) => ({
294
+ components: {
295
+ OrCardCollection,
296
+ OrCard,
297
+ OrIcon,
298
+ },
299
+
300
+ setup() {
301
+ return {
302
+ args,
303
+ onViewChange: action('viewChange'),
304
+ onSortChange: action('sortChange'),
305
+ onSearchChange: action('searchChange'),
306
+ };
307
+ },
308
+
309
+ template: `
310
+ <div class="p-md bg-surface-1 dark:bg-surface-1-dark">
311
+ <OrCardCollection
312
+ v-bind="args"
313
+ @viewChange="onViewChange"
314
+ @sortChange="onSortChange"
315
+ @searchChange="onSearchChange"
316
+ >
317
+ <template #item="{item}">
318
+ <a href="#" @click.prevent><OrCard>${args.item}</OrCard></a>
319
+ </template>
320
+ </OrCardCollection>
321
+ </div>
322
+ `,
323
+ });
324
+
325
+ WithLink.args = {
326
+ ...Default.args,
162
327
  };