@onereach/ui-components 2.69.2-beta.2133.0 → 2.69.2-beta.2142.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 (147) hide show
  1. package/dist/bundled/v2/{OrAvatar-ae61bfb9.js → OrAvatar-2fa559e1.js} +15 -41
  2. package/dist/bundled/v2/{OrButton-0e91a808.js → OrButton-66d37aff.js} +14 -1
  3. package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-e1ca1422.js} +1 -1
  4. package/dist/bundled/v2/OrPagination-734cb415.js +297 -0
  5. package/dist/bundled/v2/{OrSelect-b20a9be0.js → OrSelect-ff9e4fbd.js} +3 -3
  6. package/dist/bundled/v2/components/index.d.ts +1 -0
  7. package/dist/bundled/v2/components/index.js +5 -4
  8. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  9. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  10. package/dist/bundled/v2/components/or-avatar-v3/index.js +1 -2
  11. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +1 -2
  12. package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +0 -2
  13. package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
  14. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  15. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  16. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  17. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
  18. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
  19. package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
  20. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +3 -0
  21. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
  22. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  23. package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
  24. package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
  25. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  26. package/dist/bundled/v2/index.js +6 -5
  27. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-0426862b.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +13 -35
  28. package/dist/bundled/v3/OrButton-9640286b.js +34 -0
  29. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3718b300.js → OrButton.vue_vue_type_script_lang-06d8ead1.js} +13 -1
  30. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-861158b5.js → OrCardCollection.vue_vue_type_script_lang-3993a015.js} +2 -2
  31. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-f1b81f00.js} +6 -36
  32. package/dist/bundled/v3/{OrIconButton-1581013c.js → OrIconButton-4bd33e3c.js} +1 -1
  33. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6f801ff.js → OrIconButton.vue_vue_type_script_lang-641f6e06.js} +1 -1
  34. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-f29483f4.js → OrInlineInput.vue_vue_type_script_lang-3a8189f4.js} +2 -2
  35. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js → OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js} +2 -2
  36. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
  37. package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
  38. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-80a7b906.js → OrModal.vue_vue_type_script_lang-00a477f0.js} +2 -2
  39. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
  40. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-d852d8af.js +180 -0
  41. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-05b03858.js} +3 -3
  42. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
  43. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-dc6a4011.js → OrTag.vue_vue_type_script_lang-92d9fb12.js} +2 -2
  44. package/dist/bundled/v3/{OrToastContainer-7c3c0b12.js → OrToastContainer-afb51e5d.js} +1 -1
  45. package/dist/bundled/v3/components/index.d.ts +1 -0
  46. package/dist/bundled/v3/components/index.js +17 -14
  47. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  48. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  49. package/dist/bundled/v3/components/or-avatar-v3/index.js +1 -3
  50. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +1 -2
  51. package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +0 -2
  52. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  53. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  54. package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -3
  55. package/dist/bundled/v3/components/or-confirm-v3/index.js +5 -4
  56. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  57. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  58. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  59. package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
  60. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  61. package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
  62. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  63. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
  64. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
  65. package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
  66. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +3 -0
  67. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
  68. package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
  69. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  70. package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
  71. package/dist/bundled/v3/components/or-select-v3/index.js +4 -4
  72. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  73. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  74. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  75. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  76. package/dist/bundled/v3/index.js +254 -177
  77. package/dist/bundled/v3/{types-dcc78caa.js → types-6c5eee23.js} +2 -2
  78. package/dist/esm/v2/{OrAvatar-3d155af3.js → OrAvatar-0afdef36.js} +15 -41
  79. package/dist/esm/v2/{OrButton-357a5756.js → OrButton-3d4fc9da.js} +14 -1
  80. package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-ba3f8c45.js} +1 -1
  81. package/dist/esm/v2/OrPagination-07246e59.js +297 -0
  82. package/dist/esm/v2/{OrSelect-f0ff5a85.js → OrSelect-651bb83e.js} +3 -3
  83. package/dist/esm/v2/components/index.d.ts +1 -0
  84. package/dist/esm/v2/components/index.js +5 -4
  85. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  86. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  87. package/dist/esm/v2/components/or-avatar-v3/index.js +1 -2
  88. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +1 -2
  89. package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +0 -2
  90. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
  91. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  92. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  93. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  94. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
  95. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
  96. package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
  97. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +3 -0
  98. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
  99. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  100. package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
  101. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  102. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  103. package/dist/esm/v2/index.js +5 -4
  104. package/dist/esm/v3/{OrAvatar-53a4429d.js → OrAvatar-ef88d31c.js} +16 -43
  105. package/dist/esm/v3/{OrButton-f4b9ee51.js → OrButton-970ae320.js} +15 -2
  106. package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-7cb2f36b.js} +1 -1
  107. package/dist/esm/v3/OrPagination-e1122a8e.js +258 -0
  108. package/dist/esm/v3/{OrSelect-7e813982.js → OrSelect-28a175dc.js} +3 -3
  109. package/dist/esm/v3/components/index.d.ts +1 -0
  110. package/dist/esm/v3/components/index.js +5 -4
  111. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  112. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +0 -11
  113. package/dist/esm/v3/components/or-avatar-v3/index.js +1 -2
  114. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +1 -2
  115. package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +0 -2
  116. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  117. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  118. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  119. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  120. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +110 -0
  121. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
  122. package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
  123. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +3 -0
  124. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
  125. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  126. package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
  127. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  128. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  129. package/dist/esm/v3/index.js +5 -4
  130. package/package.json +1 -1
  131. package/src/components/index.ts +1 -0
  132. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +7 -9
  133. package/src/components/or-avatar-v3/OrAvatar.vue +2 -22
  134. package/src/components/or-avatar-v3/props.ts +0 -1
  135. package/src/components/or-avatar-v3/styles.ts +11 -49
  136. package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
  137. package/src/components/or-button-v3/OrButton.vue +6 -0
  138. package/src/components/or-button-v3/styles.ts +15 -1
  139. package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
  140. package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
  141. package/src/components/or-pagination-v3/OrPagination.vue +261 -0
  142. package/src/components/or-pagination-v3/index.ts +2 -0
  143. package/src/components/or-pagination-v3/styles.ts +30 -0
  144. package/src/components/or-pagination-v3/types.ts +4 -0
  145. package/src/components/or-select-v3/OrSelect.vue +3 -3
  146. package/src/components/or-select-v3/index.ts +1 -0
  147. package/src/components/or-select-v3/types.ts +1 -1
@@ -1,7 +1,5 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect } from 'vue';
2
2
  import { h as hslToColorString, g as generateHslFromString } from './color-1f348774.js';
3
- import './OrIcon-d878b768.js';
4
- import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
5
3
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
4
 
7
5
  var AvatarSize;
@@ -10,7 +8,6 @@ var AvatarSize;
10
8
  AvatarSize["L"] = "l";
11
9
  AvatarSize["M"] = "m";
12
10
  AvatarSize["S"] = "s";
13
- AvatarSize["XS"] = "xs";
14
11
  })(AvatarSize || (AvatarSize = {}));
15
12
  var AvatarColor;
16
13
  (function (AvatarColor) {
@@ -35,19 +32,24 @@ const AvatarImage = [
35
32
  const AvatarRootSizes = {
36
33
  'xl': [
37
34
  // Box
38
- 'w-[80px]', 'h-[80px]'],
35
+ 'w-[80px]', 'h-[80px]',
36
+ // Typography
37
+ 'text-[32px]'],
39
38
  'l': [
40
39
  // Box
41
- 'w-[64px]', 'h-[64px]'],
40
+ 'w-[64px]', 'h-[64px]',
41
+ // Typography
42
+ 'text-[24px]'],
42
43
  'm': [
43
44
  // Box
44
- 'w-[40px]', 'h-[40px]'],
45
+ 'w-[40px]', 'h-[40px]',
46
+ // Typography
47
+ 'text-[16px]'],
45
48
  's': [
46
49
  // Box
47
- 'w-[32px]', 'h-[32px]'],
48
- 'xs': [
49
- // Box
50
- 'w-[24px]', 'h-[24px]']
50
+ 'w-[32px]', 'h-[32px]',
51
+ // Typography
52
+ 'text-[16px]']
51
53
  };
52
54
  const AvatarRootColors = {
53
55
  [AvatarColor.blue]: [
@@ -69,26 +71,9 @@ const AvatarRootColors = {
69
71
  // Theme
70
72
  'text-white', 'dark:text-overlay-dark']
71
73
  };
72
- const AvatarRootAbbreviationSizes = {
73
- 'xl': ['typography-headline-1'],
74
- 'l': ['typography-headline-1'],
75
- 'm': ['typography-body-1-bold'],
76
- 's': ['typography-body-1-bold'],
77
- 'xs': ['typography-caption-semibold']
78
- };
79
- const AvatarRootIconSizes = {
80
- 'xl': ['text-[40px]'],
81
- 'l': ['text-[32px]'],
82
- 'm': ['text-[20px]'],
83
- 's': ['text-[16px]'],
84
- 'xs': ['text-[16px]']
85
- };
86
74
 
87
75
  var script = defineComponent({
88
76
  name: 'OrAvatar',
89
- components: {
90
- OrIcon: script$1
91
- },
92
77
  inheritAttrs: false,
93
78
  props: {
94
79
  src: {
@@ -99,10 +84,6 @@ var script = defineComponent({
99
84
  type: String,
100
85
  default: AvatarSize.M
101
86
  },
102
- icon: {
103
- type: String,
104
- default: undefined
105
- },
106
87
  color: {
107
88
  type: String,
108
89
  default: AvatarColor.auto,
@@ -118,12 +99,9 @@ var script = defineComponent({
118
99
  setup(props) {
119
100
  // Refs
120
101
  const root = ref();
121
- const isIcon = computed(() => {
122
- return !props.icon;
123
- });
124
102
  // Styles
125
103
  const classAttribute = useClassAttribute();
126
- const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], ...(isIcon.value ? AvatarRootAbbreviationSizes[props.size] : AvatarRootIconSizes[props.size]), classAttribute.value]);
104
+ const rootStyles = computed(() => ['or-avatar', ...AvatarRoot, ...AvatarRootSizes[props.size], ...AvatarRootColors[props.color], classAttribute.value]);
127
105
  const imageStyles = computed(() => [...AvatarImage]);
128
106
  // Effects
129
107
  watchPostEffect(() => {
@@ -0,0 +1,34 @@
1
+ import { s as script } from './OrButton.vue_vue_type_script_lang-06d8ead1.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
+
4
+ const _hoisted_1 = ["type", "activated", "disabled"];
5
+ const _hoisted_2 = {
6
+ key: 0,
7
+ class: /*#__PURE__*/normalizeClass(['absolute'])
8
+ };
9
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
10
+ const _component_OrLoader = resolveComponent("OrLoader");
11
+ return openBlock(), createElementBlock("button", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles,
15
+ type: _ctx.type,
16
+ activated: _ctx.activated ? '' : null,
17
+ disabled: _ctx.disabled,
18
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
19
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
20
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
21
+ }), [createElementVNode("div", {
22
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
23
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
24
+ key: 0,
25
+ variant: 'circular',
26
+ color: 'inherit',
27
+ size: 's'
28
+ })) : (openBlock(), createElementBlock(Fragment, {
29
+ key: 1
30
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
31
+ }
32
+
33
+ script.render = render;
34
+ script.__file = "src/components/or-button-v3/OrButton.vue";
@@ -76,7 +76,15 @@ const ButtonRootColors = {
76
76
  'danger-link': [
77
77
  // Theme
78
78
  'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
79
- 'inherit-link': []
79
+ 'inherit-link': [
80
+ // Typography
81
+ 'typography-caption-regular',
82
+ // Typography (activated)
83
+ 'activated:typography-caption-bold',
84
+ // Theme
85
+ 'theme-foreground-inherit', 'dark:theme-foreground-inherit',
86
+ // Theme (activated)
87
+ 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
80
88
  };
81
89
 
82
90
  var script = defineComponent({
@@ -98,6 +106,10 @@ var script = defineComponent({
98
106
  type: String,
99
107
  default: ButtonColor.Primary
100
108
  },
109
+ activated: {
110
+ type: Boolean,
111
+ default: false
112
+ },
101
113
  disabled: {
102
114
  type: Boolean,
103
115
  default: false
@@ -1,7 +1,7 @@
1
1
  import { openBlock, createElementBlock, mergeProps, renderSlot, resolveComponent, withModifiers, createBlock, normalizeClass, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
2
2
  import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
3
- import './OrIconButton-1581013c.js';
4
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
5
5
  import './OrInput-fa782fc1.js';
6
6
  import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
7
7
  import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
@@ -1,43 +1,13 @@
1
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
1
+ import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-01519e46.js';
4
4
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
5
- import { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
5
+ import './OrButton-9640286b.js';
6
6
  import './OrInput-fa782fc1.js';
7
- import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
7
+ import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-06d8ead1.js';
8
+ import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
8
9
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
9
10
 
10
- const _hoisted_1 = ["type", "disabled"];
11
- const _hoisted_2 = {
12
- key: 0,
13
- class: /*#__PURE__*/normalizeClass(['absolute'])
14
- };
15
- function render(_ctx, _cache, $props, $setup, $data, $options) {
16
- const _component_OrLoader = resolveComponent("OrLoader");
17
- return openBlock(), createElementBlock("button", mergeProps({
18
- ref: "root"
19
- }, _ctx.$attrs, {
20
- class: _ctx.rootStyles,
21
- type: _ctx.type,
22
- disabled: _ctx.disabled,
23
- onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
24
- onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
25
- onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
26
- }), [createElementVNode("div", {
27
- class: normalizeClass(['contents', _ctx.loading && 'invisible'])
28
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
29
- key: 0,
30
- variant: 'circular',
31
- color: 'inherit',
32
- size: 's'
33
- })) : (openBlock(), createElementBlock(Fragment, {
34
- key: 1
35
- }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
36
- }
37
-
38
- script$1.render = render;
39
- script$1.__file = "src/components/or-button-v3/OrButton.vue";
40
-
41
11
  var ConfirmType;
42
12
  (function (ConfirmType) {
43
13
  ConfirmType["D"] = "d";
@@ -89,8 +59,8 @@ const ConfirmFooterButtons = [
89
59
  var script = defineComponent({
90
60
  name: 'OrConfirm',
91
61
  components: {
92
- OrOverlay: script$2,
93
- OrButton: script$1,
62
+ OrOverlay: script$1,
63
+ OrButton: script$2,
94
64
  OrInput: script$3
95
65
  },
96
66
  props: {
@@ -1,4 +1,4 @@
1
- import { s as script } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
1
+ import { s as script } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
2
2
  import { resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode, mergeProps, createVNode } from 'vue';
3
3
 
4
4
  const _hoisted_1 = ["disabled"];
@@ -1,7 +1,7 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createBlock, withCtx, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, defineComponent, ref, computed } from 'vue';
2
2
  import './OrIcon-d878b768.js';
3
- import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
4
3
  import { s as script$2, I as IconSize } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
4
+ import { s as script$1 } from './OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
5
5
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
 
7
7
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
2
2
  import './OrHint-9592499e.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import './OrInlineInputBox-9d68ded1.js';
5
5
  import { s as script$4, I as InlineInputBoxSize } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
6
6
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
7
7
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
8
8
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
9
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
9
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
10
10
 
11
11
  var InlineInputType;
12
12
  (function (InlineInputType) {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue';
2
2
  import './OrHint-9592499e.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import './OrInlineInputBox-9d68ded1.js';
5
5
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
6
6
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
7
7
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
8
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
8
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
9
9
  import { s as script$4 } from './OrInlineInputBox.vue_vue_type_script_lang-73750005.js';
10
10
 
11
11
  const InlineTextareaRoot = [
@@ -3,14 +3,14 @@ import './OrHint-9592499e.js';
3
3
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-cc6c135f.js';
4
4
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-8e657168.js';
5
5
  import './OrIcon-d878b768.js';
6
- import './OrIconButton-1581013c.js';
6
+ import './OrIconButton-4bd33e3c.js';
7
7
  import './OrInputBox-eb54d73d.js';
8
8
  import { s as script$5, a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
9
9
  import './OrLabel-c6873e79.js';
10
10
  import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-96f94c4e.js';
11
11
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
12
  import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
13
- import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
13
+ import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
14
14
 
15
15
  var InputType;
16
16
  (function (InputType) {
@@ -0,0 +1,29 @@
1
+ import { s as script } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot } from 'vue';
3
+
4
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
5
+ const _component_OrPopover = resolveComponent("OrPopover");
6
+ return openBlock(), createElementBlock("div", mergeProps({
7
+ ref: "root"
8
+ }, _ctx.$attrs, {
9
+ class: _ctx.rootStyles
10
+ }), [createVNode(_component_OrPopover, {
11
+ ref: "popover",
12
+ variant: 'auto',
13
+ trigger: _ctx.trigger,
14
+ placement: _ctx.placement,
15
+ "full-width": false,
16
+ "disable-default-styles": false,
17
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
18
+ }, {
19
+ default: withCtx(() => [createElementVNode("div", {
20
+ class: normalizeClass(_ctx.bodyStyles),
21
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
22
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
23
+
24
+ _: 3 /* FORWARDED */
25
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
26
+ }
27
+
28
+ script.render = render;
29
+ script.__file = "src/components/or-menu-v3/OrMenu.vue";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
5
  import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
6
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
6
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
7
7
 
8
8
  var ModalSize;
9
9
  (function (ModalSize) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed } from 'vue';
2
2
  import './OrIcon-d878b768.js';
3
- import './OrIconButton-1581013c.js';
3
+ import './OrIconButton-4bd33e3c.js';
4
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
5
  import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
6
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
6
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
7
7
 
8
8
  var NotificationVariant;
9
9
  (function (NotificationVariant) {
@@ -0,0 +1,180 @@
1
+ import { defineComponent, ref, computed } from 'vue';
2
+ import './OrButton-9640286b.js';
3
+ import './OrIcon-d878b768.js';
4
+ import './OrMenu-f26e8e55.js';
5
+ import './OrMenuItem-4feaba6c.js';
6
+ import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
7
+ import { s as script$1 } from './OrButton.vue_vue_type_script_lang-06d8ead1.js';
8
+ import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
+ import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
10
+ import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
11
+
12
+ const PaginationRoot = [
13
+ // Layout
14
+ 'layout-row',
15
+ // Spacing
16
+ 'gap-xl',
17
+ // Typography
18
+ 'typography-caption-regular',
19
+ // Theme
20
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
21
+ const PaginationOffsetControl = [
22
+ // Layout
23
+ 'layout-row',
24
+ // Spacing
25
+ 'gap-md'];
26
+ const PaginationLimitControl = [
27
+ // Layout
28
+ 'layout-row',
29
+ // Spacing
30
+ 'gap-sm'];
31
+
32
+ var script = defineComponent({
33
+ name: 'OrPagination',
34
+ components: {
35
+ OrButton: script$1,
36
+ OrIcon: script$2,
37
+ OrMenu: script$3,
38
+ OrMenuItem: script$4
39
+ },
40
+ inheritAttrs: false,
41
+ props: {
42
+ modelValue: {
43
+ type: Object,
44
+ default: undefined
45
+ },
46
+ value: {
47
+ type: Object,
48
+ default: undefined
49
+ },
50
+ length: {
51
+ type: Number,
52
+ required: true
53
+ },
54
+ pageSizeOptions: {
55
+ type: Array,
56
+ default: () => [50, 20, 10, 5]
57
+ }
58
+ },
59
+ emits: ['update:modelValue', 'input'],
60
+ expose: ['root'],
61
+ setup(props, context) {
62
+ // Refs
63
+ const root = ref();
64
+ const limitButton = ref();
65
+ const limitButtonRoot = computed(() => {
66
+ var _a;
67
+ return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
68
+ });
69
+ const limitMenu = ref();
70
+ const limitMenuRoot = computed(() => {
71
+ var _a;
72
+ return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
73
+ });
74
+ // Styles
75
+ const classAttribute = useClassAttribute();
76
+ const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
77
+ const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
78
+ const limitControlStyles = computed(() => [...PaginationLimitControl]);
79
+ // State
80
+ const proxyModelValue = computed({
81
+ get: () => {
82
+ var _a;
83
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
84
+ },
85
+
86
+ set: value => {
87
+ context.emit('input', value);
88
+ context.emit('update:modelValue', value);
89
+ }
90
+ });
91
+ const currentLimit = computed({
92
+ get: () => {
93
+ var _a, _b;
94
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
95
+ },
96
+ set: value => {
97
+ proxyModelValue.value = {
98
+ limit: value,
99
+ offset: 0
100
+ };
101
+ }
102
+ });
103
+ const currentOffset = computed({
104
+ get: () => {
105
+ var _a, _b;
106
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
107
+ },
108
+ set: value => {
109
+ proxyModelValue.value = {
110
+ limit: currentLimit.value,
111
+ offset: value
112
+ };
113
+ }
114
+ });
115
+ const currentPage = computed({
116
+ get: () => {
117
+ return Math.floor(currentOffset.value / currentLimit.value) + 1;
118
+ },
119
+ set: value => {
120
+ currentOffset.value = (value - 1) * currentLimit.value;
121
+ }
122
+ });
123
+ const firstPage = computed(() => {
124
+ return 1;
125
+ });
126
+ const lastPage = computed(() => {
127
+ return Math.ceil(props.length / currentLimit.value);
128
+ });
129
+ const buttonGroup = computed(() => {
130
+ return Array.from({
131
+ length: lastPage.value
132
+ }, (_, index) => index + 1).map(page => {
133
+ switch (true) {
134
+ case page > firstPage.value && page < currentPage.value - 1:
135
+ case page > currentPage.value + 1 && page < lastPage.value:
136
+ return '…';
137
+ default:
138
+ return page;
139
+ }
140
+ }).reduce((accumulator, page) => {
141
+ if (accumulator[accumulator.length - 1] === page) {
142
+ return accumulator;
143
+ }
144
+ return [...accumulator, page];
145
+ }, []);
146
+ });
147
+ // Functions
148
+ function toPreviousPage() {
149
+ currentPage.value = currentPage.value - 1;
150
+ }
151
+ function toNextPage() {
152
+ currentPage.value = currentPage.value + 1;
153
+ }
154
+ function toPage(page) {
155
+ currentPage.value = page;
156
+ }
157
+ return {
158
+ root,
159
+ limitButton,
160
+ limitButtonRoot,
161
+ limitMenu,
162
+ limitMenuRoot,
163
+ rootStyles,
164
+ offsetControlStyles,
165
+ limitControlStyles,
166
+ proxyModelValue,
167
+ currentLimit,
168
+ currentOffset,
169
+ currentPage,
170
+ firstPage,
171
+ lastPage,
172
+ buttonGroup,
173
+ toPreviousPage,
174
+ toNextPage,
175
+ toPage
176
+ };
177
+ }
178
+ });
179
+
180
+ export { script as s };
@@ -9,7 +9,7 @@ import './OrInputBox-eb54d73d.js';
9
9
  import './OrLabel-c6873e79.js';
10
10
  import './OrMenuItem-4feaba6c.js';
11
11
  import './OrPopover-c462ce77.js';
12
- import { s as script$3 } from './OrTag.vue_vue_type_script_lang-dc6a4011.js';
12
+ import { s as script$3 } from './OrTag.vue_vue_type_script_lang-92d9fb12.js';
13
13
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-293d2de2.js';
14
14
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
15
15
  import { u as useOverflow } from './useOverflow-6dce216b.js';
@@ -182,11 +182,11 @@ var script = defineComponent({
182
182
  default: []
183
183
  },
184
184
  modelValue: {
185
- type: [String, Array],
185
+ type: [String, Number, Array],
186
186
  default: undefined
187
187
  },
188
188
  value: {
189
- type: [String, Array],
189
+ type: [String, Number, Array],
190
190
  default: undefined
191
191
  },
192
192
  multiple: {
@@ -1,40 +1,14 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-d878b768.js';
4
- import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
4
+ import './OrMenu-f26e8e55.js';
5
5
  import './OrMenuItem-4feaba6c.js';
6
- import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
6
+ import { s as script$1 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
8
+ import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
+ import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
9
10
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
10
11
 
11
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
12
- const _component_OrPopover = resolveComponent("OrPopover");
13
- return openBlock(), createElementBlock("div", mergeProps({
14
- ref: "root"
15
- }, _ctx.$attrs, {
16
- class: _ctx.rootStyles
17
- }), [createVNode(_component_OrPopover, {
18
- ref: "popover",
19
- variant: 'auto',
20
- trigger: _ctx.trigger,
21
- placement: _ctx.placement,
22
- "full-width": false,
23
- "disable-default-styles": false,
24
- "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
25
- }, {
26
- default: withCtx(() => [createElementVNode("div", {
27
- class: normalizeClass(_ctx.bodyStyles),
28
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
29
- }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
30
-
31
- _: 3 /* FORWARDED */
32
- }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
33
- }
34
-
35
- script$1.render = render$1;
36
- script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
37
-
38
12
  const _hoisted_1 = ["selected"];
39
13
  function render(_ctx, _cache, $props, $setup, $data, $options) {
40
14
  return openBlock(), createElementBlock("div", mergeProps({
@@ -49,8 +23,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
49
23
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
50
24
  }
51
25
 
52
- script$2.render = render;
53
- script$2.__file = "src/components/or-tab-v3/OrTab.vue";
26
+ script$1.render = render;
27
+ script$1.__file = "src/components/or-tab-v3/OrTab.vue";
54
28
 
55
29
  var TabsVariant;
56
30
  (function (TabsVariant) {
@@ -79,10 +53,10 @@ const TabsRootVariants = {
79
53
  var script = defineComponent({
80
54
  name: 'OrTabs',
81
55
  components: {
82
- OrIcon: script$3,
83
- OrMenu: script$1,
56
+ OrIcon: script$2,
57
+ OrMenu: script$3,
84
58
  OrMenuItem: script$4,
85
- OrTab: script$2
59
+ OrTab: script$1
86
60
  },
87
61
  inheritAttrs: false,
88
62
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue';
2
- import './OrIconButton-1581013c.js';
2
+ import './OrIconButton-4bd33e3c.js';
3
3
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
4
- import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-f6f801ff.js';
4
+ import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
5
5
 
6
6
  var TagVariant;
7
7
  (function (TagVariant) {
@@ -1,4 +1,4 @@
1
- import { a as script } from './types-dcc78caa.js';
1
+ import { a as script } from './types-6c5eee23.js';
2
2
  import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createVNode, TransitionGroup, createElementBlock, Fragment, renderList, mergeProps, createCommentVNode } from 'vue';
3
3
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
4
4
 
@@ -52,6 +52,7 @@ 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';
55
56
  export * from './or-popover-v3';
56
57
  export * from './or-progress';
57
58
  export * from './or-progress-v3';