@onereach/ui-components 2.69.6 → 2.69.7-beta.2155.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-ec551691.js} +14 -1
  2. package/dist/bundled/v2/{OrCardCollection-c4209a92.js → OrCardCollection-1b20a00f.js} +1 -1
  3. package/dist/bundled/v2/{OrConfirm-cab6535b.js → OrConfirm-0a34d7e9.js} +1 -1
  4. package/dist/bundled/v2/OrPagination-ccaef550.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-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 +110 -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 +3 -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 +14 -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-e38644d0.js} +3 -2
  24. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b0dc31ca.js → OrButton.vue_vue_type_script_lang-08f0dea0.js} +13 -1
  25. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-9a2ae9a3.js → OrCardCollection.vue_vue_type_script_lang-ff722f3f.js} +2 -2
  26. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-f57ffa1a.js → OrConfirm.vue_vue_type_script_lang-ed99973c.js} +2 -2
  27. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-5246de48.js +180 -0
  28. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-15285ce4.js → OrSelect.vue_vue_type_script_lang-05b03858.js} +2 -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 +110 -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 +3 -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 +14 -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 +237 -156
  46. package/dist/esm/v2/{OrButton-357e1e2c.js → OrButton-c02a6c26.js} +14 -1
  47. package/dist/esm/v2/{OrCardCollection-57d11adf.js → OrCardCollection-46a25600.js} +1 -1
  48. package/dist/esm/v2/{OrConfirm-ec7aef0e.js → OrConfirm-31dfa3e0.js} +1 -1
  49. package/dist/esm/v2/OrPagination-179098fb.js +297 -0
  50. package/dist/esm/v2/{OrSelect-f0ff5a85.js → OrSelect-651bb83e.js} +3 -3
  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 +110 -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 +3 -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 +14 -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-2ca1996a.js} +15 -2
  69. package/dist/esm/v3/{OrCardCollection-2a6514f3.js → OrCardCollection-167ed657.js} +1 -1
  70. package/dist/esm/v3/{OrConfirm-5d56cbd3.js → OrConfirm-492012c6.js} +1 -1
  71. package/dist/esm/v3/OrPagination-a84ad212.js +258 -0
  72. package/dist/esm/v3/{OrSelect-7e813982.js → OrSelect-28a175dc.js} +3 -3
  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 +110 -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 +3 -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 +14 -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 +15 -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 +261 -0
  98. package/src/components/or-pagination-v3/index.ts +2 -0
  99. package/src/components/or-pagination-v3/styles.ts +30 -0
  100. package/src/components/or-pagination-v3/types.ts +4 -0
  101. package/src/components/or-select-v3/OrSelect.vue +3 -3
  102. package/src/components/or-select-v3/index.ts +1 -0
  103. package/src/components/or-select-v3/types.ts +1 -1
@@ -81,7 +81,15 @@ const ButtonRootColors = {
81
81
  'danger-link': [
82
82
  // Theme
83
83
  'theme-preset-4-error', 'dark:theme-preset-4-error-dark'],
84
- 'inherit-link': []
84
+ 'inherit-link': [
85
+ // Typography
86
+ 'typography-caption-regular',
87
+ // Typography (activated)
88
+ 'activated:typography-caption-bold',
89
+ // Theme
90
+ 'theme-foreground-inherit', 'dark:theme-foreground-inherit',
91
+ // Theme (activated)
92
+ 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
85
93
  };
86
94
 
87
95
  var script = defineComponent({
@@ -103,6 +111,10 @@ var script = defineComponent({
103
111
  type: String,
104
112
  default: ButtonColor.Primary
105
113
  },
114
+ activated: {
115
+ type: Boolean,
116
+ default: false
117
+ },
106
118
  disabled: {
107
119
  type: Boolean,
108
120
  default: false
@@ -144,6 +156,7 @@ var __vue_render__ = function () {
144
156
  class: _vm.rootStyles,
145
157
  attrs: {
146
158
  "type": _vm.type,
159
+ "activated": _vm.activated ? '' : null,
147
160
  "disabled": _vm.disabled
148
161
  },
149
162
  on: {
@@ -2,7 +2,7 @@ import './index-fa6eb4ca.js';
2
2
  import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
3
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
4
4
  import { O as OrIconButton } from './OrIconButton-a215104c.js';
5
- import { O as OrButton } from './OrButton-4b99c680.js';
5
+ import { O as OrButton } from './OrButton-ec551691.js';
6
6
  import { O as OrMenu } from './OrMenu-fa47c888.js';
7
7
  import { O as OrMenuItem } from './OrMenuItem-26420908.js';
8
8
  import { O as OrIcon } from './OrIcon-8625385f.js';
@@ -2,7 +2,7 @@ import './index-fa6eb4ca.js';
2
2
  import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-17f264f9.js';
4
4
  import { O as OrOverlay } from './OrOverlay-3c89d622.js';
5
- import { O as OrButton, a as ButtonColor } from './OrButton-4b99c680.js';
5
+ import { O as OrButton, a as ButtonColor } from './OrButton-ec551691.js';
6
6
  import { O as OrInput } from './OrInput-8b90e08f.js';
7
7
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
8
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -0,0 +1,297 @@
1
+ import './index-fa6eb4ca.js';
2
+ import { O as OrButton } from './OrButton-ec551691.js';
3
+ import { O as OrIcon } from './OrIcon-8625385f.js';
4
+ import { O as OrMenu } from './OrMenu-fa47c888.js';
5
+ import { O as OrMenuItem } from './OrMenuItem-26420908.js';
6
+ import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
7
+ import { defineComponent, ref, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
+
10
+ const PaginationRoot = [
11
+ // Layout
12
+ 'layout-row',
13
+ // Spacing
14
+ 'gap-xl',
15
+ // Typography
16
+ 'typography-caption-regular',
17
+ // Theme
18
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
19
+ const PaginationOffsetControl = [
20
+ // Layout
21
+ 'layout-row',
22
+ // Spacing
23
+ 'gap-md'];
24
+ const PaginationLimitControl = [
25
+ // Layout
26
+ 'layout-row',
27
+ // Spacing
28
+ 'gap-sm'];
29
+
30
+ var script = defineComponent({
31
+ name: 'OrPagination',
32
+ components: {
33
+ OrButton,
34
+ OrIcon,
35
+ OrMenu,
36
+ OrMenuItem
37
+ },
38
+ inheritAttrs: false,
39
+ props: {
40
+ modelValue: {
41
+ type: Object,
42
+ default: undefined
43
+ },
44
+ value: {
45
+ type: Object,
46
+ default: undefined
47
+ },
48
+ length: {
49
+ type: Number,
50
+ required: true
51
+ },
52
+ pageSizeOptions: {
53
+ type: Array,
54
+ default: () => [50, 20, 10, 5]
55
+ }
56
+ },
57
+ emits: ['update:modelValue', 'input'],
58
+ expose: ['root'],
59
+ setup(props, context) {
60
+ // Refs
61
+ const root = ref();
62
+ const limitButton = ref();
63
+ const limitButtonRoot = computed(() => {
64
+ var _a;
65
+ return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
66
+ });
67
+ const limitMenu = ref();
68
+ const limitMenuRoot = computed(() => {
69
+ var _a;
70
+ return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
71
+ });
72
+ // Styles
73
+ const classAttribute = useClassAttribute();
74
+ const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
75
+ const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
76
+ const limitControlStyles = computed(() => [...PaginationLimitControl]);
77
+ // State
78
+ const proxyModelValue = computed({
79
+ get: () => {
80
+ var _a;
81
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
82
+ },
83
+
84
+ set: value => {
85
+ context.emit('input', value);
86
+ context.emit('update:modelValue', value);
87
+ }
88
+ });
89
+ const currentLimit = computed({
90
+ get: () => {
91
+ var _a, _b;
92
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
93
+ },
94
+ set: value => {
95
+ proxyModelValue.value = {
96
+ limit: value,
97
+ offset: 0
98
+ };
99
+ }
100
+ });
101
+ const currentOffset = computed({
102
+ get: () => {
103
+ var _a, _b;
104
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
105
+ },
106
+ set: value => {
107
+ proxyModelValue.value = {
108
+ limit: currentLimit.value,
109
+ offset: value
110
+ };
111
+ }
112
+ });
113
+ const currentPage = computed({
114
+ get: () => {
115
+ return Math.floor(currentOffset.value / currentLimit.value) + 1;
116
+ },
117
+ set: value => {
118
+ currentOffset.value = (value - 1) * currentLimit.value;
119
+ }
120
+ });
121
+ const firstPage = computed(() => {
122
+ return 1;
123
+ });
124
+ const lastPage = computed(() => {
125
+ return Math.ceil(props.length / currentLimit.value);
126
+ });
127
+ const buttonGroup = computed(() => {
128
+ return Array.from({
129
+ length: lastPage.value
130
+ }, (_, index) => index + 1).map(page => {
131
+ switch (true) {
132
+ case page > firstPage.value && page < currentPage.value - 1:
133
+ case page > currentPage.value + 1 && page < lastPage.value:
134
+ return '…';
135
+ default:
136
+ return page;
137
+ }
138
+ }).reduce((accumulator, page) => {
139
+ if (accumulator[accumulator.length - 1] === page) {
140
+ return accumulator;
141
+ }
142
+ return [...accumulator, page];
143
+ }, []);
144
+ });
145
+ // Functions
146
+ function toPreviousPage() {
147
+ currentPage.value = currentPage.value - 1;
148
+ }
149
+ function toNextPage() {
150
+ currentPage.value = currentPage.value + 1;
151
+ }
152
+ function toPage(page) {
153
+ currentPage.value = page;
154
+ }
155
+ return {
156
+ root,
157
+ limitButton,
158
+ limitButtonRoot,
159
+ limitMenu,
160
+ limitMenuRoot,
161
+ rootStyles,
162
+ offsetControlStyles,
163
+ limitControlStyles,
164
+ proxyModelValue,
165
+ currentLimit,
166
+ currentOffset,
167
+ currentPage,
168
+ firstPage,
169
+ lastPage,
170
+ buttonGroup,
171
+ toPreviousPage,
172
+ toNextPage,
173
+ toPage
174
+ };
175
+ }
176
+ });
177
+
178
+ /* script */
179
+ const __vue_script__ = script;
180
+
181
+ /* template */
182
+ var __vue_render__ = function () {
183
+ var _vm = this;
184
+ var _h = _vm.$createElement;
185
+ var _c = _vm._self._c || _h;
186
+ return _c('div', _vm._b({
187
+ ref: "root",
188
+ class: _vm.rootStyles
189
+ }, 'div', _vm.$attrs, false), [_c('div', {
190
+ class: _vm.offsetControlStyles
191
+ }, [_c('OrButton', {
192
+ attrs: {
193
+ "variant": 'link',
194
+ "color": 'inherit',
195
+ "disabled": _vm.currentPage === _vm.firstPage
196
+ },
197
+ on: {
198
+ "click": function ($event) {
199
+ $event.stopPropagation();
200
+ return _vm.toPreviousPage();
201
+ }
202
+ }
203
+ }, [_c('OrIcon', {
204
+ attrs: {
205
+ "icon": 'keyboard_arrow_left'
206
+ }
207
+ })], 1), _vm._v(" "), _vm._l(_vm.buttonGroup, function (page, index) {
208
+ return _c('OrButton', {
209
+ key: index,
210
+ attrs: {
211
+ "variant": 'link',
212
+ "color": 'inherit',
213
+ "activated": _vm.currentPage === page
214
+ },
215
+ on: {
216
+ "click": function ($event) {
217
+ $event.stopPropagation();
218
+ typeof page === 'number' && _vm.toPage(page);
219
+ }
220
+ }
221
+ }, [_vm._v("\n " + _vm._s(page) + "\n ")]);
222
+ }), _vm._v(" "), _c('OrButton', {
223
+ attrs: {
224
+ "variant": 'link',
225
+ "color": 'inherit',
226
+ "disabled": _vm.currentPage === _vm.lastPage
227
+ },
228
+ on: {
229
+ "click": function ($event) {
230
+ $event.stopPropagation();
231
+ return _vm.toNextPage();
232
+ }
233
+ }
234
+ }, [_c('OrIcon', {
235
+ attrs: {
236
+ "icon": 'keyboard_arrow_right'
237
+ }
238
+ })], 1)], 2), _vm._v(" "), _c('div', {
239
+ class: _vm.limitControlStyles
240
+ }, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
241
+ ref: "limitButton",
242
+ attrs: {
243
+ "variant": 'link',
244
+ "color": 'inherit',
245
+ "activated": true
246
+ },
247
+ on: {
248
+ "click": function ($event) {
249
+ $event.stopPropagation();
250
+ return _vm.limitMenu.open();
251
+ }
252
+ }
253
+ }, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
254
+ attrs: {
255
+ "icon": 'arrow_drop_down'
256
+ }
257
+ })], 1), _vm._v(" "), _c('OrMenu', {
258
+ ref: "limitMenu",
259
+ attrs: {
260
+ "trigger": _vm.limitButtonRoot,
261
+ "placement": 'top'
262
+ }
263
+ }, _vm._l(_vm.pageSizeOptions, function (pageSize) {
264
+ return _c('OrMenuItem', {
265
+ key: pageSize,
266
+ on: {
267
+ "click": function ($event) {
268
+ $event.stopPropagation();
269
+ _vm.currentLimit = pageSize;
270
+ }
271
+ }
272
+ }, [_vm._v("\n " + _vm._s(pageSize) + "\n ")]);
273
+ }), 1)], 1)]);
274
+ };
275
+ var __vue_staticRenderFns__ = [];
276
+
277
+ /* style */
278
+ const __vue_inject_styles__ = undefined;
279
+ /* scoped */
280
+ const __vue_scope_id__ = undefined;
281
+ /* module identifier */
282
+ const __vue_module_identifier__ = undefined;
283
+ /* functional template */
284
+ const __vue_is_functional_template__ = false;
285
+ /* style inject */
286
+
287
+ /* style inject SSR */
288
+
289
+ /* style inject shadow dom */
290
+
291
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
292
+ render: __vue_render__,
293
+ staticRenderFns: __vue_staticRenderFns__
294
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
295
+ var __vue_component__$1 = __vue_component__;
296
+
297
+ export { __vue_component__$1 as _ };
@@ -82,11 +82,11 @@ var script = defineComponent({
82
82
  default: []
83
83
  },
84
84
  modelValue: {
85
- type: [String, Array],
85
+ type: [String, Number, Array],
86
86
  default: undefined
87
87
  },
88
88
  value: {
89
- type: [String, Array],
89
+ type: [String, Number, Array],
90
90
  default: undefined
91
91
  },
92
92
  multiple: {
@@ -347,7 +347,7 @@ var __vue_render__ = function () {
347
347
  return _vm.$emit('blur', $event);
348
348
  }
349
349
  }
350
- }, [_vm.proxyModelValue && _vm.proxyModelValue.length > 0 ? [_vm.multiple ? [_vm._t("valueTemplate", function () {
350
+ }, [_vm.proxyModelValue !== undefined ? [_vm.multiple ? [_vm._t("valueTemplate", function () {
351
351
  return _vm._l(_vm.selection, function (option) {
352
352
  return _c('OrTag', {
353
353
  key: option.value,
@@ -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 { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonVi
5
5
  export { O as OrButtonV2 } from '../OrButton-705cd0bd.js';
6
6
  export { O as OrIconButton } from '../OrIconButton-65962c1c.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, O as OrButtonV3 } from '../OrButton-4b99c680.js';
8
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../OrButton-ec551691.js';
9
9
  export { O as OrCard } from '../OrCard-a6b30f8f.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-89428bbf.js';
11
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-c4209a92.js';
11
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-1b20a00f.js';
12
12
  export { _ as OrCardV3 } from '../OrCard-29116e1f.js';
13
13
  export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
14
14
  export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-fc6876ec.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.js';
20
20
  export { _ 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-a1a37e83.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-cab6535b.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-0a34d7e9.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
24
24
  export { O as OrError } from '../OrError-31503e4c.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-d0c5bcf4.js';
@@ -59,6 +59,7 @@ export { N as NotificationVariant, _ as OrNotificationV3 } from '../OrNotificati
59
59
  export { _ as OrOverflowMenu } from '../OrOverflowMenu-711e460e.js';
60
60
  export { O as OrOverlay } from '../OrOverlay-47967a8b.js';
61
61
  export { O as OrOverlayV3 } from '../OrOverlay-3c89d622.js';
62
+ export { _ as OrPaginationV3 } from '../OrPagination-ccaef550.js';
62
63
  export { O as OrProgress, a as OrProgressColors, b as OrProgressTypes } from '../OrProgress-de947341.js';
63
64
  export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrProgress-cc397a38.js';
64
65
  export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
@@ -67,7 +68,7 @@ export { _ as OrRadioV3 } from '../OrRadio-cd39b20b.js';
67
68
  export { O as OrSearchV3 } from '../OrSearch-76b002cf.js';
68
69
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-21cc914e.js';
69
70
  export { _ as OrSelect } from '../OrSelect-a23d4210.js';
70
- export { _ as OrSelectV3 } from '../OrSelect-b20a9be0.js';
71
+ export { _ as OrSelectV3 } from '../OrSelect-ff9e4fbd.js';
71
72
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-e2b2c9ec.js';
72
73
  export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-c95ef614.js';
73
74
  export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-242d22f3.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, O as OrButtonV3 } from '../../OrButton-4b99c680.js';
1
+ export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../../OrButton-ec551691.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -1,4 +1,4 @@
1
- export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-c4209a92.js';
1
+ export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-1b20a00f.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -16,7 +16,7 @@ import '../../OrTeleport.vue2-e9ba3054.js';
16
16
  import 'portal-vue';
17
17
  import '../../useElevation-aac032f4.js';
18
18
  import '../../useResponsive-e13dfbb0.js';
19
- import '../../OrButton-4b99c680.js';
19
+ import '../../OrButton-ec551691.js';
20
20
  import '../../OrLoader-6a1f937b.js';
21
21
  import '../../OrMenu-fa47c888.js';
22
22
  import '../../OrMenuItem-26420908.js';
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-cab6535b.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-0a34d7e9.js';
2
2
  import '../../index-fa6eb4ca.js';
3
3
  import 'vue';
4
4
  import '@vue/composition-api/dist/vue-composition-api.mjs';
@@ -10,7 +10,7 @@ import 'portal-vue';
10
10
  import '../../normalize-component-6e8e3d80.js';
11
11
  import '../../useClassAttribute-9bf33346.js';
12
12
  import '../../useElevation-aac032f4.js';
13
- import '../../OrButton-4b99c680.js';
13
+ import '../../OrButton-ec551691.js';
14
14
  import '../../OrLoader-6a1f937b.js';
15
15
  import '../../OrInput-8b90e08f.js';
16
16
  import '../../OrError-aad17598.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,110 @@
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
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
21
+ currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
22
+ currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
23
+ currentPage: import("@vue/composition-api").WritableComputedRef<number>;
24
+ firstPage: import("@vue/composition-api").ComputedRef<number>;
25
+ lastPage: import("@vue/composition-api").ComputedRef<number>;
26
+ buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
27
+ toPreviousPage: () => void;
28
+ toNextPage: () => void;
29
+ toPage: (page: number) => void;
30
+ }> & import("@vue/composition-api").Data, {}, {}, {
31
+ modelValue: {
32
+ type: PropType<PaginationModel>;
33
+ default: undefined;
34
+ };
35
+ value: {
36
+ type: PropType<PaginationModel>;
37
+ default: undefined;
38
+ };
39
+ length: {
40
+ type: NumberConstructor;
41
+ required: true;
42
+ };
43
+ pageSizeOptions: {
44
+ type: PropType<number[]>;
45
+ default: () => number[];
46
+ };
47
+ }, import("@vue/composition-api").ExtractPropTypes<{
48
+ modelValue: {
49
+ type: PropType<PaginationModel>;
50
+ default: undefined;
51
+ };
52
+ value: {
53
+ type: PropType<PaginationModel>;
54
+ default: undefined;
55
+ };
56
+ length: {
57
+ type: NumberConstructor;
58
+ required: true;
59
+ };
60
+ pageSizeOptions: {
61
+ type: PropType<number[]>;
62
+ default: () => number[];
63
+ };
64
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
65
+ length: number;
66
+ modelValue: PaginationModel;
67
+ value: PaginationModel;
68
+ pageSizeOptions: number[];
69
+ } & {} & {
70
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
71
+ }, import("@vue/composition-api").ShallowUnwrapRef<{
72
+ root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
73
+ 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, {
74
+ [x: string]: ((...args: any[]) => any) | null;
75
+ } | string[], {} & {}, {
76
+ [x: number]: string;
77
+ } | {}, true> | undefined>;
78
+ limitButtonRoot: import("@vue/composition-api").ComputedRef<undefined>;
79
+ 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, {
80
+ [x: string]: ((...args: any[]) => any) | null;
81
+ } | string[], {} & {}, {
82
+ [x: number]: string;
83
+ } | {}, true> | undefined>;
84
+ limitMenuRoot: import("@vue/composition-api").ComputedRef<undefined>;
85
+ rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
86
+ offsetControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
87
+ limitControlStyles: import("@vue/composition-api").ComputedRef<string[]>;
88
+ proxyModelValue: import("@vue/composition-api").WritableComputedRef<PaginationModel>;
89
+ currentLimit: import("@vue/composition-api").WritableComputedRef<number>;
90
+ currentOffset: import("@vue/composition-api").WritableComputedRef<number>;
91
+ currentPage: import("@vue/composition-api").WritableComputedRef<number>;
92
+ firstPage: import("@vue/composition-api").ComputedRef<number>;
93
+ lastPage: import("@vue/composition-api").ComputedRef<number>;
94
+ buttonGroup: import("@vue/composition-api").ComputedRef<(string | number)[]>;
95
+ toPreviousPage: () => void;
96
+ toNextPage: () => void;
97
+ toPage: (page: number) => void;
98
+ }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
99
+ length: number;
100
+ modelValue: PaginationModel;
101
+ value: PaginationModel;
102
+ pageSizeOptions: number[];
103
+ } & {} & {
104
+ [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
105
+ }, {
106
+ modelValue: PaginationModel;
107
+ value: PaginationModel;
108
+ pageSizeOptions: number[];
109
+ }, true>);
110
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as OrPaginationV3 } from './OrPagination.vue';
2
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ export { _ as OrPaginationV3 } from '../../OrPagination-ccaef550.js';
2
+ import '../../index-fa6eb4ca.js';
3
+ import 'vue';
4
+ import '@vue/composition-api/dist/vue-composition-api.mjs';
5
+ import '../../OrButton-ec551691.js';
6
+ import '../../OrLoader-6a1f937b.js';
7
+ import '../../useClassAttribute-9bf33346.js';
8
+ import '../../normalize-component-6e8e3d80.js';
9
+ import '../../OrIcon-8625385f.js';
10
+ import '../../OrMenu-fa47c888.js';
11
+ import '../../OrPopover-5dc240f1.js';
12
+ import '../../floating-ui.dom.esm-83eba816.js';
13
+ import '@vueuse/core';
14
+ import '../../OrBottomSheet-1cd1ab4c.js';
15
+ import '../../OrOverlay-3c89d622.js';
16
+ import '../../OrTeleport.vue2-e9ba3054.js';
17
+ import 'portal-vue';
18
+ import '../../useElevation-aac032f4.js';
19
+ import '../../useResponsive-e13dfbb0.js';
20
+ import '../../OrMenuItem-26420908.js';
@@ -0,0 +1,3 @@
1
+ export declare const PaginationRoot: string[];
2
+ export declare const PaginationOffsetControl: string[];
3
+ export declare const PaginationLimitControl: string[];