@onereach/ui-components 2.68.1-beta.2061.0 → 2.68.1-beta.2065.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 (73) hide show
  1. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  2. package/dist/bundled/v2/{OrCardCollection-a9a779ea.js → OrCardCollection-0eaf7489.js} +79 -18
  3. package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-ff57274f.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-4b82eb59.js} +4 -4
  5. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-e34afaee.js} +1 -1
  6. package/dist/bundled/v2/{OrSelect-f37e751b.js → OrSelect-68aacb62.js} +2 -2
  7. package/dist/bundled/v2/components/index.js +6 -6
  8. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  9. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -4
  12. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
  13. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  14. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  15. package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
  17. package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
  18. package/dist/bundled/v2/index.js +7 -7
  19. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3993a015.js → OrCardCollection.vue_vue_type_script_lang-26d9a7c8.js} +41 -19
  20. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-2e7fa659.js} +1 -1
  21. package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-e97211bb.js} +1 -1
  22. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-1d2a20e0.js} +1 -1
  23. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c74a63e1.js → OrSelect.vue_vue_type_script_lang-58b92fb0.js} +1 -1
  24. package/dist/bundled/v3/components/index.js +5 -5
  25. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  26. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
  27. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  28. package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -4
  29. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
  30. package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -2
  31. package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
  32. package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
  33. package/dist/bundled/v3/index.js +202 -202
  34. package/dist/esm/v2/{OrCardCollection-4f001551.js → OrCardCollection-7bf35252.js} +77 -17
  35. package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-74e21c56.js} +1 -1
  36. package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-b8a1627f.js} +4 -4
  37. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-0c0d1773.js} +1 -1
  38. package/dist/esm/v2/{OrSelect-528c7480.js → OrSelect-0e6e7868.js} +2 -2
  39. package/dist/esm/v2/components/index.js +5 -5
  40. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  41. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
  42. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  43. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -4
  44. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
  45. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  46. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  47. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  48. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  49. package/dist/esm/v2/index.js +5 -5
  50. package/dist/esm/v3/{OrCardCollection-5a0febaf.js → OrCardCollection-9682c6ef.js} +50 -29
  51. package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-a3f312a6.js} +1 -1
  52. package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-e2ac1182.js} +1 -1
  53. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-01225d82.js} +1 -1
  54. package/dist/esm/v3/{OrSelect-d9c76482.js → OrSelect-2e00d4c8.js} +2 -2
  55. package/dist/esm/v3/components/index.js +5 -5
  56. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  57. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +0 -2
  58. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  59. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -4
  60. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
  61. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  62. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  63. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  64. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  65. package/dist/esm/v3/index.js +5 -5
  66. package/package.json +1 -1
  67. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +96 -5
  68. package/src/components/or-card-collection-v3/OrCardCollection.vue +21 -33
  69. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +39 -0
  70. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +40 -0
  71. package/src/components/or-card-collection-v3/types.ts +1 -1
  72. package/src/components/or-input-v3/OrInput.vue +1 -1
  73. package/src/components/or-select-v3/OrSelect.vue +1 -1
@@ -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-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-9682c6ef.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-906427ef.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-a3f312a6.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';
@@ -34,7 +34,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-310
34
34
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
35
35
  export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-b28c3d8c.js';
36
36
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-5247ab25.js';
37
- export { I as InputType, s as OrInputV3 } from '../OrInput-41691fb3.js';
37
+ export { I as InputType, s as OrInputV3 } from '../OrInput-e2ac1182.js';
38
38
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from '../OrSearch-7cb2c91c.js';
39
39
  export { s as OrLabel } from '../OrLabel-876f8729.js';
40
40
  export { L as LabelVariant, s as OrLabelV3 } from '../OrLabel-bdaec602.js';
@@ -58,10 +58,10 @@ 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-cdde55ce.js';
61
+ export { s as OrSearchV3 } from '../OrSearch-01225d82.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
- export { s as OrSelectV3 } from '../OrSelect-d9c76482.js';
64
+ export { s as OrSelectV3 } from '../OrSelect-2e00d4c8.js';
65
65
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
66
66
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
67
67
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
@@ -1,4 +1,5 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
+ import OrCardCollection from './OrCardCollection.vue';
2
3
  declare const _default: Meta<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, {
3
4
  [x: string]: ((...args: any[]) => any) | null;
4
5
  } | string[], {} & {}, {
@@ -15,3 +16,5 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
15
16
  } | string[], {} & {}, {
16
17
  [x: number]: string;
17
18
  } | {}, true>)>;
19
+ export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
+ export declare const WithLink: StoryFn<typeof OrCardCollection>;
@@ -7,7 +7,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
7
7
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
8
8
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
9
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
10
- contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
11
10
  proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
12
11
  proxySort: import("@vue/composition-api").Ref<{
13
12
  column: string;
@@ -71,7 +70,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
71
70
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
72
71
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
73
72
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
74
- contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
75
73
  proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
76
74
  proxySort: import("@vue/composition-api").Ref<{
77
75
  column: string;
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { CardCollectionItem } from './types';
3
+ import { CardCollectionView } from './props';
4
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
6
+ }> & import("@vue/composition-api").Data, {}, {}, {
7
+ items: {
8
+ type: PropType<CardCollectionItem[]>;
9
+ default: CardCollectionItem[];
10
+ };
11
+ mode: {
12
+ type: PropType<CardCollectionView>;
13
+ required: true;
14
+ };
15
+ }, import("@vue/composition-api").ExtractPropTypes<{
16
+ items: {
17
+ type: PropType<CardCollectionItem[]>;
18
+ default: CardCollectionItem[];
19
+ };
20
+ mode: {
21
+ type: PropType<CardCollectionView>;
22
+ required: true;
23
+ };
24
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
25
+ items: CardCollectionItem[];
26
+ mode: CardCollectionView;
27
+ } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
28
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
29
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
30
+ items: CardCollectionItem[];
31
+ mode: CardCollectionView;
32
+ } & {}, {
33
+ items: CardCollectionItem[];
34
+ }, true>);
35
+ export default _default;
@@ -1,11 +1,10 @@
1
- export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection-5a0febaf.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection-9682c6ef.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
- import '../../OrCard-fd92f7c8.js';
6
- import 'vue';
7
5
  import '../../OrIconButton-1eebcafc.js';
8
6
  import '../../OrIcon-b195169c.js';
7
+ import 'vue';
9
8
  import '../../OrTooltip-50d27b4f.js';
10
9
  import '../../OrPopover-1075dd38.js';
11
10
  import '@floating-ui/dom';
@@ -14,7 +13,7 @@ import '../../useResponsive-a02e95b7.js';
14
13
  import '../../OrBottomSheet-62817aec.js';
15
14
  import '../../OrOverlay-738a44d5.js';
16
15
  import '../../OrTeleport.vue3-8099178c.js';
17
- import '../../OrInput-41691fb3.js';
16
+ import '../../OrInput-e2ac1182.js';
18
17
  import '../../OrError-ec8c709d.js';
19
18
  import '../../OrHint-74bb732d.js';
20
19
  import '../../OrInputBox-5247ab25.js';
@@ -1,5 +1,5 @@
1
1
  export interface CardCollectionItem {
2
- id: string;
2
+ key?: string;
3
3
  }
4
4
  export interface CardCollectionSortHeader {
5
5
  value: string;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-906427ef.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-a3f312a6.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrButton-f4b9ee51.js';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -8,7 +8,7 @@ import 'vue';
8
8
  import '../../OrOverlay-738a44d5.js';
9
9
  import '../../useElevation-31bfe1f6.js';
10
10
  import '../../OrTeleport.vue3-8099178c.js';
11
- import '../../OrInput-41691fb3.js';
11
+ import '../../OrInput-e2ac1182.js';
12
12
  import '../../OrError-ec8c709d.js';
13
13
  import '../../OrHint-74bb732d.js';
14
14
  import '../../OrIconButton-1eebcafc.js';
@@ -1,4 +1,4 @@
1
- export { I as InputType, s as OrInputV3 } from '../../OrInput-41691fb3.js';
1
+ export { I as InputType, s as OrInputV3 } from '../../OrInput-e2ac1182.js';
2
2
  export { a as InputSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -1,9 +1,9 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-cdde55ce.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-01225d82.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import '../../useClassAttribute-47fdb016.js';
6
- import '../../OrInput-41691fb3.js';
6
+ import '../../OrInput-e2ac1182.js';
7
7
  import '../../OrError-ec8c709d.js';
8
8
  import 'vue';
9
9
  import '../../OrHint-74bb732d.js';
@@ -1,4 +1,4 @@
1
- export { s as OrSelectV3 } from '../../OrSelect-d9c76482.js';
1
+ export { s as OrSelectV3 } from '../../OrSelect-2e00d4c8.js';
2
2
  export { a as SelectSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-0d314aa4.js';
@@ -13,7 +13,7 @@ import '../../OrError-ec8c709d.js';
13
13
  import '../../OrExpansionPanel-311e64cf.js';
14
14
  import '../../OrIcon-b195169c.js';
15
15
  import '../../OrHint-74bb732d.js';
16
- import '../../OrInput-41691fb3.js';
16
+ import '../../OrInput-e2ac1182.js';
17
17
  import '../../OrIconButton-1eebcafc.js';
18
18
  import '../../OrTooltip-50d27b4f.js';
19
19
  import '../../OrPopover-1075dd38.js';
@@ -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-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-9682c6ef.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-906427ef.js';
19
+ export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-a3f312a6.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';
@@ -34,7 +34,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-3102
34
34
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
35
35
  export { s as OrInlineTextareaV3 } from './OrInlineTextarea-b28c3d8c.js';
36
36
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-5247ab25.js';
37
- export { I as InputType, s as OrInputV3 } from './OrInput-41691fb3.js';
37
+ export { I as InputType, s as OrInputV3 } from './OrInput-e2ac1182.js';
38
38
  export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from './OrSearch-7cb2c91c.js';
39
39
  export { s as OrLabel } from './OrLabel-876f8729.js';
40
40
  export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-bdaec602.js';
@@ -58,10 +58,10 @@ 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-cdde55ce.js';
61
+ export { s as OrSearchV3 } from './OrSearch-01225d82.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
- export { s as OrSelectV3 } from './OrSelect-d9c76482.js';
64
+ export { s as OrSelectV3 } from './OrSelect-2e00d4c8.js';
65
65
  export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
66
66
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
67
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.68.1-beta.2061.0",
3
+ "version": "2.68.1-beta.2065.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -3,6 +3,7 @@ import { Meta, StoryFn } from '@storybook/vue3';
3
3
  import { OrIconV3 as OrIcon } from '../or-icon-v3';
4
4
  import OrCardCollectionDocs from './OrCardCollection.docs.mdx';
5
5
  import OrCardCollection from './OrCardCollection.vue';
6
+ import { OrCardV3 as OrCard } from '../or-card-v3';
6
7
  import { CardCollectionView } from './props';
7
8
  import { CardCollectionItem, CardCollectionSortHeader } from './types';
8
9
 
@@ -76,6 +77,7 @@ export default {
76
77
  const Template: StoryFn<typeof OrCardCollection> = (args) => ({
77
78
  components: {
78
79
  OrCardCollection,
80
+ OrCard,
79
81
  OrIcon,
80
82
  },
81
83
 
@@ -95,8 +97,9 @@ const Template: StoryFn<typeof OrCardCollection> = (args) => ({
95
97
  @sortChange="onSortChange"
96
98
  @searchChange="onSearchChange"
97
99
  >
98
- <template #gridItem="item">${args.gridItem}</template>
99
- <template #listItem="item">${args.listItem}</template>
100
+ <template #item="{item, mode}">
101
+ <OrCard>${args.item} ({{mode}}}</OrCard>
102
+ </template>
100
103
  <template #addon>${args.addon}</template>
101
104
  </OrCardCollection>
102
105
  `,
@@ -106,8 +109,7 @@ export const Default = Template.bind({});
106
109
 
107
110
  Default.args = {
108
111
  // Slots
109
- gridItem: '{{ item.label }} (grid)',
110
- listItem: '{{ item.label }} (list)',
112
+ item: '{{ item.label }}',
111
113
  addon: '<OrIcon icon="info" />',
112
114
 
113
115
  // Props
@@ -139,7 +141,7 @@ Default.args = {
139
141
  'Yankee',
140
142
  'Zulu',
141
143
  ], (item) => ({
142
- id: item.toLowerCase(),
144
+ key: item.toLowerCase(),
143
145
  label: item,
144
146
  })),
145
147
  };
@@ -160,3 +162,92 @@ WithSorting.args = {
160
162
  label: item,
161
163
  })),
162
164
  };
165
+
166
+
167
+ export const OverrideViewContainer: StoryFn<typeof OrCardCollection> = (args) => ({
168
+ components: {
169
+ OrCardCollection,
170
+ OrCard,
171
+ OrIcon,
172
+ },
173
+
174
+ setup() {
175
+ return {
176
+ args,
177
+ onViewChange: action('viewChange'),
178
+ onSortChange: action('sortChange'),
179
+ onSearchChange: action('searchChange'),
180
+ };
181
+ },
182
+
183
+ template: `
184
+ <OrCardCollection
185
+ v-bind="args"
186
+ @viewChange="onViewChange"
187
+ @sortChange="onSortChange"
188
+ @searchChange="onSearchChange"
189
+ >
190
+ <template #grid="{items}">
191
+ <div class="typography-headline-3">Custom grid</div>
192
+ <div class="grid grid-cols-3">
193
+ <OrCard
194
+ v-for="item in items"
195
+ :key="item.id"
196
+ >
197
+ {{ item.label }}
198
+ </OrCard>
199
+ </div>
200
+ </template>
201
+ <template #list="{items}">
202
+ <div class="typography-headline-3">Custom list</div>
203
+ <ul>
204
+ <li
205
+ v-for="item in items"
206
+ :key="item.id"
207
+ >
208
+ - {{ item.label }}
209
+ </li>
210
+ </ul>
211
+ </template>
212
+ </OrCardCollection>
213
+ `,
214
+ });
215
+
216
+ OverrideViewContainer.args = {
217
+ ...Default.args,
218
+ };
219
+
220
+
221
+ export const WithLink: StoryFn<typeof OrCardCollection> = (args) => ({
222
+ components: {
223
+ OrCardCollection,
224
+ OrCard,
225
+ OrIcon,
226
+ },
227
+
228
+ setup() {
229
+ return {
230
+ args,
231
+ onViewChange: action('viewChange'),
232
+ onSortChange: action('sortChange'),
233
+ onSearchChange: action('searchChange'),
234
+ };
235
+ },
236
+
237
+ template: `
238
+ <OrCardCollection
239
+ v-bind="args"
240
+ @viewChange="onViewChange"
241
+ @sortChange="onSortChange"
242
+ @searchChange="onSearchChange"
243
+ >
244
+ <template #item="{item}">
245
+ <a href="#" @click.prevent><OrCard>${args.item}</OrCard></a>
246
+ </template>
247
+ </OrCardCollection>
248
+ `,
249
+ });
250
+
251
+ WithLink.args = {
252
+ ...Default.args,
253
+ };
@@ -40,50 +40,45 @@
40
40
  </div>
41
41
  </div>
42
42
 
43
- <div :class="contentStyles">
44
- <template v-if="proxyView === 'grid'">
45
- <OrCard
46
- v-for="item in items"
47
- :key="item.id"
48
- >
43
+ <slot
44
+ :name="proxyView"
45
+ v-bind="{items}"
46
+ >
47
+ <OrCardCollectionView
48
+ :items="items"
49
+ :mode="proxyView"
50
+ >
51
+ <template v-slot:item="props">
49
52
  <slot
50
- name="gridItem"
51
- v-bind="item"
53
+ name="item"
54
+ v-bind="props"
52
55
  />
53
- </OrCard>
54
- </template>
55
-
56
- <template v-if="proxyView === 'list'">
57
- <OrCard
58
- v-for="item in items"
59
- :key="item.id"
60
- >
61
- <slot
62
- name="listItem"
63
- v-bind="item"
64
- />
65
- </OrCard>
66
- </template>
67
- </div>
56
+ </template>
57
+ </OrCardCollectionView>
58
+ </slot>
68
59
  </div>
69
60
  </template>
70
61
 
71
62
  <script lang="ts">
72
63
  import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
73
64
  import { useClassAttribute } from '../../hooks';
74
- import { OrCardV3 as OrCard } from '../or-card-v3';
75
65
  import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
76
66
  import { OrInputV3 as OrInput } from '../or-input-v3';
77
67
  import { OrSortHeaderV3 as OrSortHeader, SortHeaderModel } from '../or-sort-header-v3';
78
68
  import { CardCollectionView } from './props';
79
- import { CardCollectionContent, CardCollectionContentViews, CardCollectionRoot, CardCollectionToolbar, CardCollectionToolbarPanel } from './styles';
69
+ import {
70
+ CardCollectionRoot,
71
+ CardCollectionToolbar,
72
+ CardCollectionToolbarPanel,
73
+ } from './styles';
80
74
  import { CardCollectionItem, CardCollectionSortHeader } from './types';
75
+ import OrCardCollectionView from './OrCardCollectionView.vue3.vue';
81
76
 
82
77
  export default defineComponent({
83
78
  name: 'OrCardCollection',
84
79
 
85
80
  components: {
86
- OrCard,
81
+ OrCardCollectionView,
87
82
  OrIconButton,
88
83
  OrInput,
89
84
  OrSortHeader,
@@ -96,7 +91,6 @@ export default defineComponent({
96
91
  type: Array as PropType<CardCollectionItem[]>,
97
92
  default: [] as CardCollectionItem[],
98
93
  },
99
-
100
94
  view: {
101
95
  type: String as PropType<CardCollectionView>,
102
96
  default: CardCollectionView.Grid,
@@ -149,11 +143,6 @@ export default defineComponent({
149
143
  ...CardCollectionToolbarPanel,
150
144
  ]);
151
145
 
152
- const contentStyles = computed(() => [
153
- ...CardCollectionContent,
154
- ...CardCollectionContentViews[proxyView.value],
155
- ]);
156
-
157
146
  // State
158
147
  const proxyView = ref(props.view);
159
148
  const proxySort = ref(props.sort);
@@ -198,7 +187,6 @@ export default defineComponent({
198
187
  rootStyles,
199
188
  toolbarStyles,
200
189
  toolbarPanelStyles,
201
- contentStyles,
202
190
  proxyView,
203
191
  proxySort,
204
192
  proxySearch,
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <div :class="contentStyles">
3
+ <slot
4
+ v-for="(item) in items"
5
+ name="item"
6
+ v-bind="{
7
+ item,
8
+ mode,
9
+ }"
10
+ />
11
+ </div>
12
+ </template>
13
+ <script lang="ts">
14
+ import { defineComponent, computed, PropType } from 'vue-demi';
15
+ import { CardCollectionContent, CardCollectionContentViews } from './styles';
16
+ import { CardCollectionItem } from './types';
17
+ import { CardCollectionView } from './props';
18
+
19
+ export default defineComponent({
20
+ name: 'OrCardCollectionView',
21
+ props: {
22
+ items: {
23
+ type: Array as PropType<CardCollectionItem[]>,
24
+ default: [] as CardCollectionItem[],
25
+ },
26
+ mode: {
27
+ type: String as PropType<CardCollectionView>,
28
+ required: true,
29
+ },
30
+ },
31
+ setup(props) {
32
+ const contentStyles = computed(() => [
33
+ ...CardCollectionContent,
34
+ ...CardCollectionContentViews[props.mode],
35
+ ]);
36
+ return { contentStyles };
37
+ },
38
+ });
39
+ </script>
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <div :class="contentStyles">
3
+ <slot
4
+ v-for="(item, index) in items"
5
+ :key="item.key || index"
6
+ name="item"
7
+ v-bind="{
8
+ item,
9
+ mode,
10
+ }"
11
+ />
12
+ </div>
13
+ </template>
14
+ <script lang="ts">
15
+ import { defineComponent, computed, PropType } from 'vue-demi';
16
+ import { CardCollectionContent, CardCollectionContentViews } from './styles';
17
+ import { CardCollectionItem } from './types';
18
+ import { CardCollectionView } from './props';
19
+
20
+ export default defineComponent({
21
+ name: 'OrCardCollectionView',
22
+ props: {
23
+ items: {
24
+ type: Array as PropType<CardCollectionItem[]>,
25
+ default: [] as CardCollectionItem[],
26
+ },
27
+ mode: {
28
+ type: String as PropType<CardCollectionView>,
29
+ required: true,
30
+ },
31
+ },
32
+ setup(props) {
33
+ const contentStyles = computed(() => [
34
+ ...CardCollectionContent,
35
+ ...CardCollectionContentViews[props.mode],
36
+ ]);
37
+ return { contentStyles };
38
+ },
39
+ });
40
+ </script>
@@ -1,5 +1,5 @@
1
1
  export interface CardCollectionItem {
2
- id: string;
2
+ key?: string;
3
3
  }
4
4
 
5
5
  export interface CardCollectionSortHeader {
@@ -41,7 +41,7 @@
41
41
  @blur="$emit('blur', $event)"
42
42
  >
43
43
 
44
- <div :class="['layout-row']">
44
+ <div :class="['layout-row', 'm-[-4px] md:m-[-2px]']">
45
45
  <template v-if="type === 'password'">
46
46
  <OrIconButton
47
47
  :icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
@@ -74,7 +74,7 @@
74
74
  +{{ outerItems.length }}
75
75
  </template>
76
76
 
77
- <div :class="['layout-row']">
77
+ <div :class="['layout-row', 'm-[-4px] md:m-[-2px]']">
78
78
  <OrIcon
79
79
  :icon="popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'"
80
80
  :variant="'outlined'"