@onereach/ui-components 2.68.0-beta.2034.0 → 2.68.0-beta.2049.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 (97) hide show
  1. package/dist/bundled/v2/{OrCode-edc7a1f5.js → OrCode-b9332066.js} +2 -115
  2. package/dist/bundled/v2/{OrConfirm-56d01cff.js → OrConfirm-19758dae.js} +1 -1
  3. package/dist/bundled/v2/OrModal-71d33219.js +202 -0
  4. package/dist/bundled/v2/OrRichTextEditor-99131fc7.js +36843 -0
  5. package/dist/bundled/v2/components/index.d.ts +1 -0
  6. package/dist/bundled/v2/components/index.js +7 -3
  7. package/dist/bundled/v2/components/or-code/index.js +4 -2
  8. package/dist/bundled/v2/components/or-confirm/index.js +3 -2
  9. package/dist/bundled/v2/components/or-modal/index.js +2 -1
  10. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  11. package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  12. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
  13. package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +25 -0
  14. package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  15. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  16. package/dist/bundled/v2/index.js +8 -4
  17. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-a1ed2ebb.js → v2/useFocusTrap-d744652a.js} +4 -126
  18. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ef5e7f04.js → OrCode.vue_vue_type_script_lang-5fe573eb.js} +3 -116
  19. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f16fc67.js → OrConfirm.vue_vue_type_script_lang-4451e782.js} +2 -2
  20. package/dist/bundled/v3/OrMenu-08aa60de.js +29 -0
  21. package/dist/bundled/v3/{OrModal-868160ef.js → OrModal-bbabef06.js} +1 -1
  22. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a599dfe7.js +128 -0
  23. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-18daa6a2.js +36723 -0
  24. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ca57f9d9.js → OrTabs.vue_vue_type_script_lang-2fdbd2f2.js} +10 -36
  25. package/dist/bundled/v3/components/index.d.ts +1 -0
  26. package/dist/bundled/v3/components/index.js +10 -5
  27. package/dist/bundled/v3/components/or-code/index.js +5 -3
  28. package/dist/bundled/v3/components/or-confirm/index.js +4 -3
  29. package/dist/bundled/v3/components/or-modal/index.js +2 -1
  30. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  31. package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  32. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
  33. package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +26 -0
  34. package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  35. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  36. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  37. package/dist/bundled/v3/index.js +278 -182
  38. package/dist/bundled/{v2/OrModal-a5411b0d.js → v3/useFocusTrap-d21726e3.js} +3 -200
  39. package/dist/esm/v2/OrRichTextEditor-dd129ce6.js +533 -0
  40. package/dist/esm/v2/components/index.d.ts +1 -0
  41. package/dist/esm/v2/components/index.js +21 -0
  42. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  43. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  44. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
  45. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +41 -0
  46. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  47. package/dist/esm/v2/index.js +21 -0
  48. package/dist/esm/v3/OrRichTextEditor-3f24fee0.js +503 -0
  49. package/dist/esm/v3/components/index.d.ts +1 -0
  50. package/dist/esm/v3/components/index.js +21 -0
  51. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.d.ts +12 -0
  52. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +149 -0
  53. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
  54. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +40 -0
  55. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  56. package/dist/esm/v3/index.js +21 -0
  57. package/package.json +21 -1
  58. package/src/components/index.ts +1 -0
  59. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +16 -0
  60. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +62 -0
  61. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +555 -0
  62. package/src/components/or-rich-text-editor-v3/index.ts +1 -0
  63. package/src/components/or-rich-text-editor-v3/styles.ts +65 -0
  64. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -24
  65. package/dist/bundled/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
  66. package/dist/bundled/v2/components/or-empty-state-v3/index.d.ts +0 -3
  67. package/dist/bundled/v2/components/or-empty-state-v3/index.js +0 -162
  68. package/dist/bundled/v2/components/or-empty-state-v3/props.d.ts +0 -4
  69. package/dist/bundled/v2/components/or-empty-state-v3/styles.d.ts +0 -10
  70. package/dist/bundled/v2/components/or-empty-state-v3/types.d.ts +0 -2
  71. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -24
  72. package/dist/bundled/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
  73. package/dist/bundled/v3/components/or-empty-state-v3/index.d.ts +0 -3
  74. package/dist/bundled/v3/components/or-empty-state-v3/index.js +0 -134
  75. package/dist/bundled/v3/components/or-empty-state-v3/props.d.ts +0 -4
  76. package/dist/bundled/v3/components/or-empty-state-v3/styles.d.ts +0 -10
  77. package/dist/bundled/v3/components/or-empty-state-v3/types.d.ts +0 -2
  78. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -24
  79. package/dist/esm/v2/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
  80. package/dist/esm/v2/components/or-empty-state-v3/index.d.ts +0 -3
  81. package/dist/esm/v2/components/or-empty-state-v3/index.js +0 -159
  82. package/dist/esm/v2/components/or-empty-state-v3/props.d.ts +0 -4
  83. package/dist/esm/v2/components/or-empty-state-v3/styles.d.ts +0 -10
  84. package/dist/esm/v2/components/or-empty-state-v3/types.d.ts +0 -2
  85. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.stories3.d.ts +0 -24
  86. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +0 -101
  87. package/dist/esm/v3/components/or-empty-state-v3/index.d.ts +0 -3
  88. package/dist/esm/v3/components/or-empty-state-v3/index.js +0 -135
  89. package/dist/esm/v3/components/or-empty-state-v3/props.d.ts +0 -4
  90. package/dist/esm/v3/components/or-empty-state-v3/styles.d.ts +0 -10
  91. package/dist/esm/v3/components/or-empty-state-v3/types.d.ts +0 -2
  92. package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +0 -87
  93. package/src/components/or-empty-state-v3/OrEmptyState.vue +0 -121
  94. package/src/components/or-empty-state-v3/index.ts +0 -3
  95. package/src/components/or-empty-state-v3/props.ts +0 -4
  96. package/src/components/or-empty-state-v3/styles.ts +0 -76
  97. package/src/components/or-empty-state-v3/types.ts +0 -3
@@ -1,121 +0,0 @@
1
- <template>
2
- <div
3
- class="static"
4
- :class="rootClasses">
5
- <img v-if="imageSrc"
6
- :src="imageSrc"
7
- :class="imageClasses"
8
- alt="">
9
- <div :class="headingClasses">
10
- {{ heading }}
11
- </div>
12
- <div v-if="$slots.default" :class="slotClasses">
13
- <!-- @slot Additional content can be inserted via default slot. The slot uses the same font as a `text` prop. -->
14
- <slot/>
15
- </div>
16
- <div :class="textClasses">
17
- {{ text }}
18
- </div>
19
- </div>
20
- </template>
21
-
22
- <script lang="ts">
23
- import { defineComponent, PropType } from 'vue-demi';
24
- import { EmptyStateSize } from '.';
25
- import {
26
- EmptyStateContent,
27
- EmptyStateContentSizes,
28
- EmptyStateHeading,
29
- EmptyStateHeadingSizes,
30
- EmptyStateImage,
31
- EmptyStateImageSizes,
32
- EmptyStateRoot,
33
- EmptyStateText,
34
- EmptyStateTextSizes
35
- } from './styles';
36
-
37
- /**
38
- * The component to display when there is no content on a page,
39
- * no records found or selected, or while the data is being loaded.
40
- * Provides a hint to the user on what to do.
41
- * Consists of text message, optional icon and optional loader.
42
- */
43
- export default defineComponent({
44
- name: 'OrEmptyState',
45
- props: {
46
- /**
47
- * Size of the component, affects font and icon size.
48
- * Use Large if the component takes all screen space,
49
- * and Medium if it is a part of the complex layout.
50
- */
51
- size: {
52
- type: String as PropType<EmptyStateSize>,
53
- default: EmptyStateSize.M,
54
- },
55
- /**
56
- * The heading of the empty state block.
57
- */
58
- heading: {
59
- type: String,
60
- default: '',
61
- },
62
- /**
63
- * Additional text such as a hint for a user with proposed next steps.
64
- */
65
- text: {
66
- type: String,
67
- default: '',
68
- },
69
- /**
70
- * Path to the image to display above the heading.
71
- * Image height is fixed depending on `size` prop, width is undefined to preserve aspect ratio.
72
- */
73
- imageSrc: {
74
- type: String,
75
- default: undefined,
76
- },
77
- },
78
- computed: {
79
- rootClasses(): string[] {
80
- return [
81
- 'or-empty-state',
82
- ...EmptyStateRoot,
83
- ];
84
- },
85
- imageClasses(): string[] {
86
- return [
87
- 'or-empty-state_image',
88
- ...EmptyStateImage,
89
- ...EmptyStateImageSizes[this.size],
90
-
91
- ];
92
- },
93
- headingClasses(): string[] {
94
- return [
95
- 'or-empty-state_heading',
96
- ...EmptyStateHeading,
97
- ...EmptyStateHeadingSizes[this.size],
98
-
99
- ];
100
- },
101
- textClasses(): string[] {
102
- return [
103
- 'or-empty-state_text',
104
- ...EmptyStateText,
105
- ...EmptyStateTextSizes[this.size],
106
-
107
- ];
108
- },
109
- slotClasses(): string[] {
110
- return [
111
- 'or-empty-state_content',
112
- ...EmptyStateContent,
113
- ...EmptyStateContentSizes[this.size],
114
- ];
115
- },
116
- },
117
- });
118
- </script>
119
-
120
- <style scoped>
121
- </style>
@@ -1,3 +0,0 @@
1
- export { default as OrEmptyStateV3 } from './OrEmptyState.vue';
2
- export * from './types';
3
- export * from './props';
@@ -1,4 +0,0 @@
1
- export enum EmptyStateSize {
2
- L = 'l',
3
- M = 'm',
4
- }
@@ -1,76 +0,0 @@
1
- import { EmptyStateSize } from './props';
2
-
3
- export const EmptyStateRoot: string[] = [
4
- // Layout
5
- 'grow',
6
- 'flex',
7
- 'flex-col',
8
- 'justify-center',
9
- 'items-center',
10
-
11
- // Box
12
- 'w-full',
13
-
14
- // Sizing
15
- 'gap-sm',
16
- ];
17
-
18
- export const EmptyStateImage = [
19
- // Sizing
20
- 'mb-sm',
21
- ];
22
-
23
- export const EmptyStateImageSizes: Record<EmptyStateSize, string[]> = {
24
- [EmptyStateSize.L]: [
25
- // Box
26
- 'h-3xl',
27
- ],
28
- [EmptyStateSize.M]: [
29
- // Box
30
- 'h-2xl',
31
- ],
32
- }
33
-
34
- export const EmptyStateHeading: string[] = [
35
- // Theme
36
- 'text-on-background',
37
- 'dark:text-on-background-dark'
38
- ];
39
-
40
- export const EmptyStateHeadingSizes: Record<EmptyStateSize, string[]> = {
41
- [EmptyStateSize.L]: [
42
- // Typography
43
- 'text-headline-2',
44
- 'font-headline-2',
45
- ],
46
- [EmptyStateSize.M]: [
47
- // Typography
48
- 'text-headline-4',
49
- 'font-headline-4',
50
- ],
51
- }
52
-
53
- export const EmptyStateText: string[] = [
54
- 'text-center',
55
-
56
- // Theme
57
- 'text-outline',
58
- 'dark:text-outline-dark',
59
- ];
60
-
61
- export const EmptyStateContent = EmptyStateText;
62
-
63
- export const EmptyStateTextSizes: Record<EmptyStateSize, string[]> = {
64
- [EmptyStateSize.L]: [
65
- // Typography
66
- 'text-body-2-regular',
67
- 'font-body-2-regular',
68
- ],
69
- [EmptyStateSize.M]: [
70
- // Typography
71
- 'text-caption-regular',
72
- 'font-caption-regular',
73
- ],
74
- };
75
-
76
- export const EmptyStateContentSizes = EmptyStateTextSizes;
@@ -1,3 +0,0 @@
1
- import { LoaderVariant } from '../or-loader-v3';
2
-
3
- export type EmptyStateLoader = boolean | LoaderVariant | undefined;