@onereach/ui-components 2.69.2-beta.2113.0 → 2.69.2-beta.2123.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 (123) hide show
  1. package/dist/bundled/v2/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
  2. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-773ae0db.js +346 -0
  4. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-a11b3621.js} +9 -3
  5. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  8. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  9. package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
  10. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
  11. package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
  12. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  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/index.js +7 -4
  16. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +5 -1
  17. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  18. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +8 -3
  19. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  21. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  22. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  23. package/dist/bundled/v2/index.js +6 -6
  24. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
  25. package/dist/bundled/v3/OrButton-8ab33d9d.js +33 -0
  26. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +228 -0
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-85472b12.js} +6 -36
  28. package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
  29. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
  30. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
  31. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
  32. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
  33. package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
  34. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
  35. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
  36. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-0ae8a6dd.js} +8 -2
  37. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
  38. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
  39. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
  40. package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
  41. package/dist/bundled/v3/components/index.js +17 -15
  42. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  43. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  44. package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
  45. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
  46. package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
  47. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  48. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  49. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  50. package/dist/bundled/v3/components/or-card-collection-v3/index.js +13 -6
  51. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +5 -1
  52. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  53. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +8 -3
  54. package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -3
  55. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  56. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  57. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  58. package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
  59. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  60. package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
  61. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  62. package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
  63. package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
  64. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  65. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  66. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  67. package/dist/bundled/v3/index.js +339 -314
  68. package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
  69. package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
  70. package/dist/esm/v2/OrCardCollection-61c86bfc.js +346 -0
  71. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-62d91301.js} +7 -1
  72. package/dist/esm/v2/components/index.js +3 -3
  73. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  74. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  75. package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
  76. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
  77. package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
  78. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  79. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  80. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  81. package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -4
  82. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +5 -1
  83. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  84. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +8 -3
  85. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  86. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  87. package/dist/esm/v2/index.js +3 -3
  88. package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
  89. package/dist/esm/v3/OrCardCollection-fdc7848b.js +289 -0
  90. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-aafb93b4.js} +7 -1
  91. package/dist/esm/v3/components/index.js +3 -3
  92. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  93. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  94. package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
  95. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
  96. package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
  97. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +5 -0
  98. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +67 -42
  99. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  100. package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -4
  101. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +5 -1
  102. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  103. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +8 -3
  104. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +13 -0
  105. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  106. package/dist/esm/v3/index.js +3 -3
  107. package/package.json +1 -1
  108. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
  109. package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
  110. package/src/components/or-avatar-v3/props.ts +0 -1
  111. package/src/components/or-avatar-v3/styles.ts +11 -49
  112. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +230 -30
  113. package/src/components/or-card-collection-v3/OrCardCollection.vue +120 -77
  114. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
  115. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
  116. package/src/components/or-card-collection-v3/props.ts +14 -1
  117. package/src/components/or-card-collection-v3/styles.ts +3 -3
  118. package/src/components/or-card-collection-v3/types.ts +9 -3
  119. package/src/components/or-search-v3/OrSearch.vue +7 -1
  120. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +0 -228
  121. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +0 -164
  122. package/dist/esm/v2/OrCardCollection-4f001551.js +0 -227
  123. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
@@ -1,11 +1,10 @@
1
- export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection-5a0febaf.js';
1
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-fdc7848b.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,10 +13,14 @@ import '../../useResponsive-a02e95b7.js';
14
13
  import '../../OrBottomSheet-62817aec.js';
15
14
  import '../../OrOverlay-738a44d5.js';
16
15
  import '../../OrTeleport.vue3-8099178c.js';
16
+ import '../../OrMenu-840038cd.js';
17
+ import '../../OrMenuItem-9da279f6.js';
18
+ import '../../OrButton-f4b9ee51.js';
19
+ import '../../OrLoader-b3cf4231.js';
20
+ import '../../OrSearch-aafb93b4.js';
17
21
  import '../../OrInput-41691fb3.js';
18
22
  import '../../OrError-ec8c709d.js';
19
23
  import '../../OrHint-74bb732d.js';
20
24
  import '../../OrInputBox-5247ab25.js';
21
25
  import '../../OrLabel-bdaec602.js';
22
26
  import '../../style-inject.es-4c6f2515.js';
23
- import '../../OrSortHeader-fe1a9cf8.js';
@@ -1,4 +1,8 @@
1
- export declare enum CardCollectionView {
1
+ import { ViewMode } from './types';
2
+ export declare enum DefaultCardCollectionViews {
2
3
  Grid = "grid",
3
4
  List = "list"
4
5
  }
6
+ export declare const gridView: ViewMode;
7
+ export declare const listView: ViewMode;
8
+ export declare const defaultViewModes: ViewMode[];
@@ -1,6 +1,6 @@
1
- import { CardCollectionView } from './props';
1
+ import { DefaultCardCollectionViews } from './props';
2
2
  export declare const CardCollectionRoot: string[];
3
3
  export declare const CardCollectionToolbar: string[];
4
4
  export declare const CardCollectionToolbarPanel: string[];
5
5
  export declare const CardCollectionContent: string[];
6
- export declare const CardCollectionContentViews: Record<CardCollectionView, string[]>;
6
+ export declare const CardCollectionContentViews: Record<DefaultCardCollectionViews, string[]>;
@@ -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
  }
@@ -11,6 +11,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
11
11
  focus: () => void;
12
12
  clear: () => void;
13
13
  }> & import("@vue/composition-api").Data, {}, {}, {
14
+ modelValue: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ required: false;
18
+ };
14
19
  size: {
15
20
  type: PropType<SearchSize>;
16
21
  default: SearchSize;
@@ -32,6 +37,11 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
32
37
  default: boolean;
33
38
  };
34
39
  }, import("@vue/composition-api").ExtractPropTypes<{
40
+ modelValue: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ required: false;
44
+ };
35
45
  size: {
36
46
  type: PropType<SearchSize>;
37
47
  default: SearchSize;
@@ -53,6 +63,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
53
63
  default: boolean;
54
64
  };
55
65
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
66
+ modelValue: string;
56
67
  size: SearchSize;
57
68
  placeholder: string;
58
69
  debounce: number;
@@ -71,6 +82,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
71
82
  focus: () => void;
72
83
  clear: () => void;
73
84
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
85
+ modelValue: string;
74
86
  size: SearchSize;
75
87
  placeholder: string;
76
88
  debounce: number;
@@ -79,6 +91,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
79
91
  } & {} & {
80
92
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
81
93
  }, {
94
+ modelValue: string;
82
95
  size: SearchSize;
83
96
  placeholder: string;
84
97
  debounce: number;
@@ -1,4 +1,4 @@
1
- export { s as OrSearchV3 } from '../../OrSearch-cdde55ce.js';
1
+ export { s as OrSearchV3 } from '../../OrSearch-aafb93b4.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-5247ab25.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
@@ -1,12 +1,12 @@
1
1
  export { O as OR_AVATAR_SIZE, s as OrAvatar } from './OrAvatar-2808a314.js';
2
- export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-53a4429d.js';
2
+ export { a as AvatarColor, A as AvatarSize, s as OrAvatarV3 } from './OrAvatar-ef88d31c.js';
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
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 { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-fdc7848b.js';
10
10
  export { s as OrCardV3 } from './OrCard-fd92f7c8.js';
11
11
  export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
12
12
  export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
@@ -58,7 +58,7 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
58
58
  export { s as OrRadio } from './OrRadio-c3ab11f2.js';
59
59
  export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
60
60
  export { s as OrRadioV3 } from './OrRadio-54b6d0de.js';
61
- export { s as OrSearchV3 } from './OrSearch-cdde55ce.js';
61
+ export { s as OrSearchV3 } from './OrSearch-aafb93b4.js';
62
62
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-171cad78.js';
63
63
  export { s as OrSelect } from './OrSelect-0821b907.js';
64
64
  export { s as OrSelectV3 } from './OrSelect-7e813982.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "2.69.2-beta.2113.0",
3
+ "version": "2.69.2-beta.2123.0",
4
4
  "description": "Vue components library for v2/3",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/auto/index.js",
@@ -2,6 +2,7 @@ import { Meta, StoryFn } from '@storybook/vue3';
2
2
  import OrAvatarDocs from './OrAvatar.docs.mdx';
3
3
  import OrAvatar from './OrAvatar.vue';
4
4
  import { AvatarColor, AvatarSize } from './props';
5
+ import { OrIconV3 as OrIcon } from '../or-icon-v3';
5
6
  import { getAbbreviation } from '../../utils/functions/text';
6
7
  import { computed } from 'vue-demi';
7
8
 
@@ -38,10 +39,6 @@ export default {
38
39
  colorSalt: {
39
40
  control: { type: 'text' },
40
41
  },
41
-
42
- icon: {
43
- control: { type: 'text' },
44
- },
45
42
  },
46
43
 
47
44
  parameters: {
@@ -61,6 +58,7 @@ export default {
61
58
  const DefaultTemplate: StoryFn<typeof OrAvatar> = (args) => ({
62
59
  components: {
63
60
  OrAvatar,
61
+ OrIcon,
64
62
  },
65
63
 
66
64
  setup() {
@@ -116,22 +114,22 @@ WithTextInSlot.args = {
116
114
  colorSalt: 'A username',
117
115
  };
118
116
 
119
- export const WithIcon = DefaultTemplate.bind({});
120
- WithIcon.args = {
121
- icon: 'store',
117
+ export const WithIconInSlot = DefaultTemplate.bind({});
118
+ WithIconInSlot.args = {
119
+ default: '<or-icon icon="face" size="inherit" />',
122
120
  colorSalt: 'Any string here',
123
121
  };
124
122
 
125
123
  export const WithColor = DefaultTemplate.bind({});
126
124
  WithColor.args = {
127
125
  color: AvatarColor.blue,
128
- icon: 'person',
126
+ default: '<or-icon icon="person" size="inherit" />',
129
127
  };
130
128
 
131
129
  export const XL = DefaultTemplate.bind({});
132
130
  XL.args = {
133
131
  size: AvatarSize.XL,
134
- icon: 'person',
132
+ default: '<or-icon icon="person" size="inherit" />',
135
133
  colorSalt: 'Big Avatar',
136
134
  };
137
135
 
@@ -6,16 +6,10 @@
6
6
  >
7
7
  <slot>
8
8
  <img
9
- v-if="src"
10
9
  :class="imageStyles"
11
10
  :src="src"
12
11
  :alt="''"
13
12
  >
14
- <or-icon
15
- v-else-if="icon"
16
- :icon="icon"
17
- size="inherit"
18
- />
19
13
  </slot>
20
14
  </div>
21
15
  </template>
@@ -25,14 +19,10 @@ import { computed, defineComponent, PropType, ref, watchPostEffect } from 'vue-d
25
19
  import { useClassAttribute } from '../../hooks';
26
20
  import { generateHslFromString, hslToColorString } from '../../utils/functions/color';
27
21
  import { AvatarColor, AvatarSize } from './props';
28
- import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes, AvatarRootAbbreviationSizes, AvatarRootIconSizes } from './styles';
29
- import { OrIconV3 as OrIcon } from '../or-icon-v3';
22
+ import { AvatarImage, AvatarRoot, AvatarRootColors, AvatarRootSizes } from './styles';
30
23
 
31
24
  export default defineComponent({
32
25
  name: 'OrAvatar',
33
- components: {
34
- OrIcon,
35
- },
36
26
 
37
27
  inheritAttrs: false,
38
28
 
@@ -46,10 +36,7 @@ export default defineComponent({
46
36
  type: String as PropType<AvatarSize>,
47
37
  default: AvatarSize.M,
48
38
  },
49
- icon: {
50
- type: String,
51
- default: undefined,
52
- },
39
+
53
40
  color: {
54
41
  type: String as PropType<AvatarColor>,
55
42
  default: AvatarColor.auto,
@@ -71,9 +58,6 @@ export default defineComponent({
71
58
  // Refs
72
59
  const root = ref<HTMLElement>();
73
60
 
74
- const isIcon = computed(() => {
75
- return !props.icon;
76
- });
77
61
  // Styles
78
62
  const classAttribute = useClassAttribute();
79
63
 
@@ -82,10 +66,6 @@ export default defineComponent({
82
66
  ...AvatarRoot,
83
67
  ...AvatarRootSizes[props.size],
84
68
  ...AvatarRootColors[props.color],
85
- ...(isIcon.value
86
- ? AvatarRootAbbreviationSizes[props.size]
87
- : AvatarRootIconSizes[props.size]
88
- ),
89
69
  classAttribute.value,
90
70
  ]);
91
71
 
@@ -3,7 +3,6 @@ export enum AvatarSize {
3
3
  L = 'l',
4
4
  M = 'm',
5
5
  S = 's',
6
- XS = 'xs',
7
6
  }
8
7
 
9
8
  export enum AvatarColor {
@@ -27,30 +27,36 @@ export const AvatarRootSizes: Record<AvatarSize, string[]> = {
27
27
  // Box
28
28
  'w-[80px]',
29
29
  'h-[80px]',
30
+
31
+ // Typography
32
+ 'text-[32px]',
30
33
  ],
31
34
 
32
35
  'l': [
33
36
  // Box
34
37
  'w-[64px]',
35
38
  'h-[64px]',
39
+
40
+ // Typography
41
+ 'text-[24px]',
36
42
  ],
37
43
 
38
44
  'm': [
39
45
  // Box
40
46
  'w-[40px]',
41
47
  'h-[40px]',
48
+
49
+ // Typography
50
+ 'text-[16px]',
42
51
  ],
43
52
 
44
53
  's': [
45
54
  // Box
46
55
  'w-[32px]',
47
56
  'h-[32px]',
48
- ],
49
57
 
50
- 'xs': [
51
- // Box
52
- 'w-[24px]',
53
- 'h-[24px]',
58
+ // Typography
59
+ 'text-[16px]',
54
60
  ],
55
61
  };
56
62
 
@@ -91,47 +97,3 @@ export const AvatarRootColors: Record<AvatarColor, string[]> = {
91
97
  'dark:text-overlay-dark',
92
98
  ],
93
99
  };
94
-
95
- export const AvatarRootAbbreviationSizes: Record<AvatarSize, string[]> = {
96
- 'xl': [
97
- 'typography-headline-1',
98
- ],
99
-
100
- 'l': [
101
- 'typography-headline-1',
102
- ],
103
-
104
- 'm': [
105
- 'typography-body-1-bold',
106
- ],
107
-
108
- 's': [
109
- 'typography-body-1-bold',
110
- ],
111
-
112
- 'xs': [
113
- 'typography-caption-semibold',
114
- ],
115
- };
116
-
117
- export const AvatarRootIconSizes: Record<AvatarSize, string[]> = {
118
- 'xl': [
119
- 'text-[40px]',
120
- ],
121
-
122
- 'l': [
123
- 'text-[32px]',
124
- ],
125
-
126
- 'm': [
127
- 'text-[20px]',
128
- ],
129
-
130
- 's': [
131
- 'text-[16px]',
132
- ],
133
-
134
- 'xs': [
135
- 'text-[16px]',
136
- ],
137
- };