@onereach/ui-components 2.69.7 → 2.69.8-beta.2189.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 (103) hide show
  1. package/dist/bundled/v2/{OrButton-4b99c680.js → OrButton-a846fa7e.js} +10 -1
  2. package/dist/bundled/v2/{OrCardCollection-754aa36f.js → OrCardCollection-0141a358.js} +1 -1
  3. package/dist/bundled/v2/{OrConfirm-cf334659.js → OrConfirm-23c3ce56.js} +1 -1
  4. package/dist/bundled/v2/OrPagination-379c10b8.js +308 -0
  5. package/dist/bundled/v2/{OrSelect-2e48be47.js → OrSelect-20226912.js} +15 -8
  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-button-v3/OrButton.vue.d.ts +11 -0
  9. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  10. package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
  11. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  12. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  13. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  14. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
  15. package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
  16. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +4 -0
  17. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
  18. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  19. package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
  20. package/dist/bundled/v2/components/or-select-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  22. package/dist/bundled/v2/index.js +6 -5
  23. package/dist/bundled/v3/{OrButton-a671b8a1.js → OrButton-2b27c1fd.js} +3 -2
  24. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b0dc31ca.js → OrButton.vue_vue_type_script_lang-8c44986c.js} +9 -1
  25. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-365741ae.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +2 -2
  26. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-68329ca1.js → OrConfirm.vue_vue_type_script_lang-05b21989.js} +2 -2
  27. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-c96d7cd7.js +187 -0
  28. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-a5ecc5ed.js → OrSelect.vue_vue_type_script_lang-edc5eb2d.js} +6 -2
  29. package/dist/bundled/v3/components/index.d.ts +1 -0
  30. package/dist/bundled/v3/components/index.js +6 -5
  31. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  32. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  33. package/dist/bundled/v3/components/or-card-collection-v3/index.js +3 -3
  34. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  35. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  36. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  37. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
  38. package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
  39. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +4 -0
  40. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
  41. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  42. package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
  43. package/dist/bundled/v3/components/or-select-v3/index.js +1 -1
  44. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  45. package/dist/bundled/v3/index.js +253 -162
  46. package/dist/esm/v2/{OrButton-357e1e2c.js → OrButton-835d4f11.js} +10 -1
  47. package/dist/esm/v2/{OrCardCollection-153b0179.js → OrCardCollection-3c38fc85.js} +1 -1
  48. package/dist/esm/v2/{OrConfirm-d67d5c00.js → OrConfirm-e2ab9b4c.js} +1 -1
  49. package/dist/esm/v2/OrPagination-c0dbec6a.js +308 -0
  50. package/dist/esm/v2/{OrSelect-b3794fd3.js → OrSelect-2b198f4f.js} +15 -8
  51. package/dist/esm/v2/components/index.d.ts +1 -0
  52. package/dist/esm/v2/components/index.js +5 -4
  53. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
  54. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  55. package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
  56. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  57. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  58. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  59. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
  60. package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
  61. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +4 -0
  62. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
  63. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  64. package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
  65. package/dist/esm/v2/components/or-select-v3/index.js +1 -1
  66. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  67. package/dist/esm/v2/index.js +5 -4
  68. package/dist/esm/v3/{OrButton-bb6bf8a9.js → OrButton-0fa67a0d.js} +11 -2
  69. package/dist/esm/v3/{OrCardCollection-a09ad585.js → OrCardCollection-dbb3e839.js} +1 -1
  70. package/dist/esm/v3/{OrConfirm-b93b5131.js → OrConfirm-1bcd39b1.js} +1 -1
  71. package/dist/esm/v3/OrPagination-a703307d.js +269 -0
  72. package/dist/esm/v3/{OrSelect-a0718c44.js → OrSelect-f42de9d8.js} +19 -9
  73. package/dist/esm/v3/components/index.d.ts +1 -0
  74. package/dist/esm/v3/components/index.js +5 -4
  75. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  76. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  77. package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
  78. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  79. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  80. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  81. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
  82. package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
  83. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +4 -0
  84. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
  85. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +25 -14
  86. package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
  87. package/dist/esm/v3/components/or-select-v3/index.js +1 -1
  88. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  89. package/dist/esm/v3/index.js +5 -4
  90. package/package.json +2 -3
  91. package/src/components/index.ts +1 -0
  92. package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
  93. package/src/components/or-button-v3/OrButton.vue +6 -0
  94. package/src/components/or-button-v3/styles.ts +9 -1
  95. package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
  96. package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
  97. package/src/components/or-pagination-v3/OrPagination.vue +270 -0
  98. package/src/components/or-pagination-v3/index.ts +2 -0
  99. package/src/components/or-pagination-v3/styles.ts +38 -0
  100. package/src/components/or-pagination-v3/types.ts +4 -0
  101. package/src/components/or-select-v3/OrSelect.vue +26 -14
  102. package/src/components/or-select-v3/index.ts +1 -0
  103. package/src/components/or-select-v3/types.ts +1 -1
@@ -1,7 +1,7 @@
1
- import { s as script } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
1
+ import { s as script } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
2
2
  import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
3
 
4
- const _hoisted_1 = ["type", "disabled"];
4
+ const _hoisted_1 = ["type", "activated", "disabled"];
5
5
  const _hoisted_2 = {
6
6
  key: 0,
7
7
  class: /*#__PURE__*/normalizeClass(['absolute'])
@@ -13,6 +13,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
13
13
  }, _ctx.$attrs, {
14
14
  class: _ctx.rootStyles,
15
15
  type: _ctx.type,
16
+ activated: _ctx.activated ? '' : null,
16
17
  disabled: _ctx.disabled,
17
18
  onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
18
19
  onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
@@ -80,7 +80,11 @@ const ButtonRootColors = {
80
80
  'danger-link': [
81
81
  // Theme
82
82
  'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
83
- 'inherit-link': []
83
+ 'inherit-link': [
84
+ // Theme
85
+ 'theme-foreground-inherit', 'dark:theme-foreground-inherit',
86
+ // Theme (activated)
87
+ 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
84
88
  };
85
89
 
86
90
  var script = defineComponent({
@@ -102,6 +106,10 @@ var script = defineComponent({
102
106
  type: String,
103
107
  default: ButtonColor.Primary
104
108
  },
109
+ activated: {
110
+ type: Boolean,
111
+ default: false
112
+ },
105
113
  disabled: {
106
114
  type: Boolean,
107
115
  default: false
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createBlock, ref, watch } from 'vue';
2
2
  import './OrIconButton-cd62526d.js';
3
3
  import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
4
- import './OrButton-a671b8a1.js';
4
+ import './OrButton-2b27c1fd.js';
5
5
  import './OrMenu-f26e8e55.js';
6
6
  import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
7
7
  import './OrMenuItem-4feaba6c.js';
@@ -9,7 +9,7 @@ import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js
9
9
  import './OrIcon-d878b768.js';
10
10
  import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-06f318ca.js';
11
11
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
- import { s as script$4 } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
12
+ import { s as script$4 } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
13
13
  import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
14
14
 
15
15
  const CardCollectionRoot = [
@@ -2,9 +2,9 @@ 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 './OrButton-a671b8a1.js';
5
+ import './OrButton-2b27c1fd.js';
6
6
  import './OrInput-a4f220ed.js';
7
- import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-b0dc31ca.js';
7
+ import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-8c44986c.js';
8
8
  import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
9
9
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-607d79d4.js';
10
10
 
@@ -0,0 +1,187 @@
1
+ import { defineComponent, ref, computed } from 'vue';
2
+ import './OrButton-2b27c1fd.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-8c44986c.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
+ const PaginationItem = [
32
+ // Typography
33
+ 'typography-caption-regular',
34
+ // Typography (activated)
35
+ 'activated:typography-caption-bold'];
36
+
37
+ var script = defineComponent({
38
+ name: 'OrPagination',
39
+ components: {
40
+ OrButton: script$1,
41
+ OrIcon: script$2,
42
+ OrMenu: script$3,
43
+ OrMenuItem: script$4
44
+ },
45
+ inheritAttrs: false,
46
+ props: {
47
+ modelValue: {
48
+ type: Object,
49
+ default: undefined
50
+ },
51
+ value: {
52
+ type: Object,
53
+ default: undefined
54
+ },
55
+ length: {
56
+ type: Number,
57
+ required: true
58
+ },
59
+ pageSizeOptions: {
60
+ type: Array,
61
+ default: () => [50, 20, 10, 5]
62
+ }
63
+ },
64
+ emits: ['update:modelValue', 'input'],
65
+ expose: ['root'],
66
+ setup(props, context) {
67
+ // Refs
68
+ const root = ref();
69
+ const limitButton = ref();
70
+ const limitButtonRoot = computed(() => {
71
+ var _a;
72
+ return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
73
+ });
74
+ const limitMenu = ref();
75
+ const limitMenuRoot = computed(() => {
76
+ var _a;
77
+ return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
78
+ });
79
+ // Styles
80
+ const classAttribute = useClassAttribute();
81
+ const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
82
+ const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
83
+ const limitControlStyles = computed(() => [...PaginationLimitControl]);
84
+ const itemStyles = computed(() => [...PaginationItem]);
85
+ // State
86
+ const proxyModelValue = computed({
87
+ get: () => {
88
+ var _a;
89
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
90
+ },
91
+
92
+ set: value => {
93
+ context.emit('input', value);
94
+ context.emit('update:modelValue', value);
95
+ }
96
+ });
97
+ const currentLimit = computed({
98
+ get: () => {
99
+ var _a, _b;
100
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
101
+ },
102
+ set: value => {
103
+ proxyModelValue.value = {
104
+ limit: value,
105
+ offset: 0
106
+ };
107
+ }
108
+ });
109
+ const currentOffset = computed({
110
+ get: () => {
111
+ var _a, _b;
112
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
113
+ },
114
+ set: value => {
115
+ proxyModelValue.value = {
116
+ limit: currentLimit.value,
117
+ offset: value
118
+ };
119
+ }
120
+ });
121
+ const currentPage = computed({
122
+ get: () => {
123
+ return Math.floor(currentOffset.value / currentLimit.value) + 1;
124
+ },
125
+ set: value => {
126
+ currentOffset.value = (value - 1) * currentLimit.value;
127
+ }
128
+ });
129
+ const firstPage = computed(() => {
130
+ return 1;
131
+ });
132
+ const lastPage = computed(() => {
133
+ return Math.ceil(props.length / currentLimit.value);
134
+ });
135
+ const buttonGroup = computed(() => {
136
+ return Array.from({
137
+ length: lastPage.value
138
+ }, (_, index) => index + 1).map(page => {
139
+ switch (true) {
140
+ case page > firstPage.value && page < currentPage.value - 1:
141
+ case page > currentPage.value + 1 && page < lastPage.value:
142
+ return '…';
143
+ default:
144
+ return page;
145
+ }
146
+ }).reduce((accumulator, page) => {
147
+ if (accumulator[accumulator.length - 1] === page) {
148
+ return accumulator;
149
+ }
150
+ return [...accumulator, page];
151
+ }, []);
152
+ });
153
+ // Functions
154
+ function toPreviousPage() {
155
+ currentPage.value = currentPage.value - 1;
156
+ }
157
+ function toNextPage() {
158
+ currentPage.value = currentPage.value + 1;
159
+ }
160
+ function toPage(page) {
161
+ currentPage.value = page;
162
+ }
163
+ return {
164
+ root,
165
+ limitButton,
166
+ limitButtonRoot,
167
+ limitMenu,
168
+ limitMenuRoot,
169
+ rootStyles,
170
+ offsetControlStyles,
171
+ limitControlStyles,
172
+ itemStyles,
173
+ proxyModelValue,
174
+ currentLimit,
175
+ currentOffset,
176
+ currentPage,
177
+ firstPage,
178
+ lastPage,
179
+ buttonGroup,
180
+ toPreviousPage,
181
+ toNextPage,
182
+ toPage
183
+ };
184
+ }
185
+ });
186
+
187
+ export { script as s };
@@ -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: {
@@ -221,6 +221,10 @@ var script = defineComponent({
221
221
  type: Boolean,
222
222
  default: false
223
223
  },
224
+ disableDefaultStyles: {
225
+ type: Boolean,
226
+ default: false
227
+ },
224
228
  enableSearch: {
225
229
  type: Boolean,
226
230
  default: false
@@ -53,6 +53,7 @@ export * from './or-notification-v3';
53
53
  export * from './or-overflow-menu';
54
54
  export * from './or-overlay';
55
55
  export * from './or-overlay-v3';
56
+ export * from './or-pagination-v3';
56
57
  export * from './or-popover-v3';
57
58
  export * from './or-progress';
58
59
  export * from './or-progress-v3';
@@ -5,10 +5,10 @@ export { s as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonVi
5
5
  export { s as OrButtonV2 } from '../OrButton.vue_vue_type_script_lang-ffc66d00.js';
6
6
  export { s as OrIconButton } from '../OrIconButton.vue_vue_type_script_lang-40547ab0.js';
7
7
  export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTTON_TYPE, I as ICON_BUTTON_TYPE } from '../constants-c5d1139f.js';
8
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
8
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-8c44986c.js';
9
9
  export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
11
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-365741ae.js';
11
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection.vue_vue_type_script_lang-2d78a51a.js';
12
12
  export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-165de137.js';
13
13
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
14
14
  export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
@@ -19,7 +19,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  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.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
22
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-68329ca1.js';
22
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-05b21989.js';
23
23
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
24
24
  export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
25
25
  export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-4828c387.js';
@@ -59,6 +59,7 @@ export { N as NotificationVariant, s as OrNotificationV3 } from '../OrNotificati
59
59
  export { s as OrOverflowMenu } from '../OrOverflowMenu.vue_vue_type_script_lang-0397533d.js';
60
60
  export { s as OrOverlay } from '../OrOverlay.vue_vue_type_script_lang-b9bf5e50.js';
61
61
  export { s as OrOverlayV3 } from '../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
62
+ export { s as OrPaginationV3 } from '../OrPagination.vue_vue_type_script_lang-c96d7cd7.js';
62
63
  export { s as OrProgress, O as OrProgressColors, a as OrProgressTypes } from '../OrProgress.vue_vue_type_script_lang-3f9ec654.js';
63
64
  export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress.vue_vue_type_script_lang-a73c0acf.js';
64
65
  export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
@@ -67,7 +68,7 @@ export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-2e666a56.js'
67
68
  export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-06f318ca.js';
68
69
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
69
70
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
70
- export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-a5ecc5ed.js';
71
+ export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-edc5eb2d.js';
71
72
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
72
73
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
73
74
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
@@ -108,7 +109,7 @@ import '../OrLoader-ee97fef4.js';
108
109
  import '../OrLoader-c4bbef2f.js';
109
110
  import '../OrIconButton-e637158e.js';
110
111
  import '../OrIconButton-cd62526d.js';
111
- import '../OrButton-a671b8a1.js';
112
+ import '../OrButton-2b27c1fd.js';
112
113
  import '../OrMenu-f26e8e55.js';
113
114
  import '../OrMenuItem-4feaba6c.js';
114
115
  import '../OrLabel-c6873e79.js';
@@ -16,6 +16,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
16
16
  type: PropType<ButtonColor>;
17
17
  default: ButtonColor;
18
18
  };
19
+ activated: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
19
23
  disabled: {
20
24
  type: BooleanConstructor;
21
25
  default: boolean;
@@ -41,6 +45,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
41
45
  type: PropType<ButtonColor>;
42
46
  default: ButtonColor;
43
47
  };
48
+ activated: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
44
52
  disabled: {
45
53
  type: BooleanConstructor;
46
54
  default: boolean;
@@ -54,6 +62,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
62
  default: string;
55
63
  };
56
64
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
65
+ activated: boolean;
57
66
  type: ButtonType;
58
67
  variant: ButtonVariant;
59
68
  color: ButtonColor;
@@ -66,6 +75,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
66
75
  root: import("@vue/composition-api").Ref<HTMLButtonElement | undefined>;
67
76
  rootStyles: import("@vue/composition-api").ComputedRef<(string | false | undefined)[]>;
68
77
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
78
+ activated: boolean;
69
79
  type: ButtonType;
70
80
  variant: ButtonVariant;
71
81
  color: ButtonColor;
@@ -75,6 +85,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
75
85
  } & {} & {
76
86
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
77
87
  }, {
88
+ activated: boolean;
78
89
  type: ButtonType;
79
90
  variant: ButtonVariant;
80
91
  color: ButtonColor;
@@ -1,4 +1,4 @@
1
- export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
1
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../../OrButton.vue_vue_type_script_lang-8c44986c.js';
2
2
  import 'vue';
3
3
  import '../../OrLoader-c4bbef2f.js';
4
4
  import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
@@ -1,4 +1,4 @@
1
- export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-365741ae.js';
1
+ export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection.vue_vue_type_script_lang-2d78a51a.js';
2
2
  import 'vue';
3
3
  import '../../OrIconButton-cd62526d.js';
4
4
  import '../../OrIconButton.vue_vue_type_script_lang-aefcf30d.js';
@@ -15,8 +15,8 @@ import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
15
15
  import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
16
16
  import '../../useElevation-c8d5d3ba.js';
17
17
  import '../../useResponsive-9d397e2a.js';
18
- import '../../OrButton-a671b8a1.js';
19
- import '../../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
18
+ import '../../OrButton-2b27c1fd.js';
19
+ import '../../OrButton.vue_vue_type_script_lang-8c44986c.js';
20
20
  import '../../OrLoader-c4bbef2f.js';
21
21
  import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
22
22
  import '../../OrMenu-f26e8e55.js';
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-68329ca1.js';
1
+ export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm.vue_vue_type_script_lang-05b21989.js';
2
2
  import 'vue';
3
3
  import '@vueuse/core';
4
4
  import '../../index-01519e46.js';
@@ -7,8 +7,8 @@ import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
7
7
  import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
8
8
  import '../../useClassAttribute-00888f78.js';
9
9
  import '../../useElevation-c8d5d3ba.js';
10
- import '../../OrButton-a671b8a1.js';
11
- import '../../OrButton.vue_vue_type_script_lang-b0dc31ca.js';
10
+ import '../../OrButton-2b27c1fd.js';
11
+ import '../../OrButton.vue_vue_type_script_lang-8c44986c.js';
12
12
  import '../../OrLoader-c4bbef2f.js';
13
13
  import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
14
14
  import '../../OrInput-a4f220ed.js';
@@ -0,0 +1,12 @@
1
+ import { Meta, StoryFn } from '@storybook/vue3';
2
+ 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
+ [x: string]: ((...args: any[]) => any) | null;
4
+ } | string[], {} & {}, {
5
+ [x: number]: string;
6
+ } | {}, true>)>;
7
+ export default _default;
8
+ export declare const Default: StoryFn<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, {
9
+ [x: string]: ((...args: any[]) => any) | null;
10
+ } | string[], {} & {}, {
11
+ [x: number]: string;
12
+ } | {}, true>)>;
@@ -0,0 +1,112 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { PaginationModel } from './types';
3
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
4
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
6
+ [x: string]: ((...args: any[]) => any) | null;
7
+ } | string[], {} & {}, {
8
+ [x: number]: string;
9
+ } | {}, true> | undefined>;
10
+ limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
11
+ limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
12
+ [x: string]: ((...args: any[]) => any) | null;
13
+ } | string[], {} & {}, {
14
+ [x: number]: string;
15
+ } | {}, true> | undefined>;
16
+ limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
17
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
18
+ offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
+ limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
20
+ itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
21
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
22
+ currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
23
+ currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
24
+ currentPage: import("@vue/composition-api").WritableComputedRef<number>;
25
+ firstPage: import("@vue/composition-api").ComputedRef<number>;
26
+ lastPage: import("@vue/composition-api").ComputedRef<number>;
27
+ buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
28
+ toPreviousPage: () => void;
29
+ toNextPage: () => void;
30
+ toPage: (page: number) => void;
31
+ }> & import("@vue/composition-api").Data, {}, {}, {
32
+ modelValue: {
33
+ type: PropType<PaginationModel>;
34
+ default: undefined;
35
+ };
36
+ value: {
37
+ type: PropType<PaginationModel>;
38
+ default: undefined;
39
+ };
40
+ length: {
41
+ type: NumberConstructor;
42
+ required: true;
43
+ };
44
+ pageSizeOptions: {
45
+ type: PropType<number[]>;
46
+ default: () => number[];
47
+ };
48
+ }, import("@vue/composition-api").ExtractPropTypes<{
49
+ modelValue: {
50
+ type: PropType<PaginationModel>;
51
+ default: undefined;
52
+ };
53
+ value: {
54
+ type: PropType<PaginationModel>;
55
+ default: undefined;
56
+ };
57
+ length: {
58
+ type: NumberConstructor;
59
+ required: true;
60
+ };
61
+ pageSizeOptions: {
62
+ type: PropType<number[]>;
63
+ default: () => number[];
64
+ };
65
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
66
+ length: number;
67
+ modelValue: PaginationModel;
68
+ value: PaginationModel;
69
+ pageSizeOptions: number[];
70
+ } & {} & {
71
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
72
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
73
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
74
+ limitButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
75
+ [x: string]: ((...args: any[]) => any) | null;
76
+ } | string[], {} & {}, {
77
+ [x: number]: string;
78
+ } | {}, true> | undefined>;
79
+ limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
80
+ limitMenu: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
81
+ [x: string]: ((...args: any[]) => any) | null;
82
+ } | string[], {} & {}, {
83
+ [x: number]: string;
84
+ } | {}, true> | undefined>;
85
+ limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
86
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
87
+ offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
88
+ limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
89
+ itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
90
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
91
+ currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
92
+ currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
93
+ currentPage: import("@vue/composition-api").WritableComputedRef<number>;
94
+ firstPage: import("@vue/composition-api").ComputedRef<number>;
95
+ lastPage: import("@vue/composition-api").ComputedRef<number>;
96
+ buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
97
+ toPreviousPage: () => void;
98
+ toNextPage: () => void;
99
+ toPage: (page: number) => void;
100
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
101
+ length: number;
102
+ modelValue: PaginationModel;
103
+ value: PaginationModel;
104
+ pageSizeOptions: number[];
105
+ } & {} & {
106
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
107
+ }, {
108
+ modelValue: PaginationModel;
109
+ value: PaginationModel;
110
+ pageSizeOptions: number[];
111
+ }, true>);
112
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrPaginationV3 } from './OrPagination.vue';
2
+ export * from './types';
@@ -0,0 +1,22 @@
1
+ export { s as OrPaginationV3 } from '../../OrPagination.vue_vue_type_script_lang-c96d7cd7.js';
2
+ import 'vue';
3
+ import '../../OrButton-2b27c1fd.js';
4
+ import '../../OrButton.vue_vue_type_script_lang-8c44986c.js';
5
+ import '../../OrLoader-c4bbef2f.js';
6
+ import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
7
+ import '../../useClassAttribute-00888f78.js';
8
+ import '../../OrIcon-d878b768.js';
9
+ import '../../OrIcon.vue_vue_type_script_lang-a119a715.js';
10
+ import '../../OrMenu-f26e8e55.js';
11
+ import '../../OrMenu.vue_vue_type_script_lang-2446a69a.js';
12
+ import '../../OrPopover-c462ce77.js';
13
+ import '../../OrPopover.vue_vue_type_script_lang-54c7b11c.js';
14
+ import '../../floating-ui.dom.esm-83eba816.js';
15
+ import '@vueuse/core';
16
+ import '../../OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
17
+ import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
18
+ import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
19
+ import '../../useElevation-c8d5d3ba.js';
20
+ import '../../useResponsive-9d397e2a.js';
21
+ import '../../OrMenuItem-4feaba6c.js';
22
+ import '../../OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
@@ -0,0 +1,4 @@
1
+ export declare const PaginationRoot: string[];
2
+ export declare const PaginationOffsetControl: string[];
3
+ export declare const PaginationLimitControl: string[];
4
+ export declare const PaginationItem: string[];
@@ -0,0 +1,4 @@
1
+ export interface PaginationModel {
2
+ limit: number;
3
+ offset: number;
4
+ }