@onereach/ui-components 2.69.7-beta.2168.0 → 2.69.7-beta.2170.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 (213) hide show
  1. package/dist/bundled/v2/{OrButton-4b99c680.js → OrButton-a846fa7e.js} +10 -1
  2. package/dist/bundled/v2/{OrCardCollection-aa6b8553.js → OrCardCollection-15d11d05.js} +2 -2
  3. package/dist/bundled/v2/{OrCheckbox-4f665252.js → OrCheckbox-dbef9f9a.js} +3 -3
  4. package/dist/bundled/v2/{OrConfirm-dc704484.js → OrConfirm-ec3feaf5.js} +2 -2
  5. package/dist/bundled/v2/{OrInlineInput-6af4fe07.js → OrInlineInput-9add2e1e.js} +2 -2
  6. package/dist/bundled/v2/{OrInlineTextarea-ddf84267.js → OrInlineTextarea-9c6f9044.js} +2 -2
  7. package/dist/bundled/v2/{OrInput-e7b864c1.js → OrInput-8b90e08f.js} +13 -20
  8. package/dist/bundled/v2/{OrInputBox-de8ce3ac.js → OrInputBox-79ec54ad.js} +12 -2
  9. package/dist/bundled/v2/OrPagination-379c10b8.js +308 -0
  10. package/dist/bundled/v2/{OrRadio-a60fc5c0.js → OrRadio-cd39b20b.js} +3 -3
  11. package/dist/bundled/v2/{OrSearch-ad84b460.js → OrSearch-76b002cf.js} +2 -2
  12. package/dist/bundled/v2/{OrSelect-b393f564.js → OrSelect-8a4d227e.js} +14 -15
  13. package/dist/bundled/v2/{OrSwitch-fe9b7de7.js → OrSwitch-237a2081.js} +3 -3
  14. package/dist/bundled/v2/{OrTextarea-59fba95c.js → OrTextarea-5593fbe9.js} +11 -14
  15. package/dist/bundled/v2/components/index.d.ts +1 -0
  16. package/dist/bundled/v2/components/index.js +14 -14
  17. package/dist/bundled/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
  18. package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -6
  20. package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -5
  22. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
  23. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
  24. package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
  25. package/dist/bundled/v2/components/or-input-v3/index.js +2 -3
  26. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  27. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  28. package/dist/bundled/v2/components/or-pagination-v3/index.d.ts +2 -0
  29. package/dist/bundled/v2/components/or-pagination-v3/index.js +20 -0
  30. package/dist/bundled/v2/components/or-pagination-v3/styles.d.ts +4 -0
  31. package/dist/bundled/v2/components/or-pagination-v3/types.d.ts +4 -0
  32. package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
  33. package/dist/bundled/v2/components/or-search-v3/index.js +3 -4
  34. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  35. package/dist/bundled/v2/components/or-select-v3/index.d.ts +1 -0
  36. package/dist/bundled/v2/components/or-select-v3/index.js +4 -5
  37. package/dist/bundled/v2/components/or-select-v3/types.d.ts +1 -1
  38. package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
  39. package/dist/bundled/v2/components/or-textarea-v3/index.js +2 -3
  40. package/dist/bundled/v2/index.js +15 -15
  41. package/dist/bundled/v3/{OrButton-a671b8a1.js → OrButton-2b27c1fd.js} +3 -2
  42. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-b0dc31ca.js → OrButton.vue_vue_type_script_lang-8c44986c.js} +9 -1
  43. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ece2eab6.js → OrCardCollection.vue_vue_type_script_lang-bd852915.js} +3 -3
  44. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-fcbdf2c6.js → OrConfirm.vue_vue_type_script_lang-9e4e2884.js} +4 -4
  45. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-84c521f9.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
  46. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-9c58faeb.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
  47. package/dist/bundled/v3/{OrInput-4ccc2c7b.js → OrInput-fa782fc1.js} +14 -17
  48. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-96ce8121.js → OrInput.vue_vue_type_script_lang-f6d793d3.js} +4 -5
  49. package/dist/bundled/v3/{OrInputBox-27aa1cec.js → OrInputBox-eb54d73d.js} +1 -1
  50. package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-328ae841.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-5ee4ee45.js} +2 -3
  51. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-c96d7cd7.js +187 -0
  52. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-71fbb2fc.js → OrSearch.vue_vue_type_script_lang-014ad470.js} +3 -3
  53. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-363605c5.js → OrSelect.vue_vue_type_script_lang-94063fc4.js} +9 -13
  54. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-9f2a0234.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +4 -5
  55. package/dist/bundled/v3/components/index.d.ts +1 -0
  56. package/dist/bundled/v3/components/index.js +14 -14
  57. package/dist/bundled/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  58. package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
  59. package/dist/bundled/v3/components/or-card-collection-v3/index.js +8 -9
  60. package/dist/bundled/v3/components/or-confirm-v3/index.js +7 -8
  61. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  62. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  63. package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
  64. package/dist/bundled/v3/components/or-input-v3/index.js +3 -4
  65. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  66. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  67. package/dist/bundled/v3/components/or-pagination-v3/index.d.ts +2 -0
  68. package/dist/bundled/v3/components/or-pagination-v3/index.js +22 -0
  69. package/dist/bundled/v3/components/or-pagination-v3/styles.d.ts +4 -0
  70. package/dist/bundled/v3/components/or-pagination-v3/types.d.ts +4 -0
  71. package/dist/bundled/v3/components/or-search-v3/index.js +5 -6
  72. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  73. package/dist/bundled/v3/components/or-select-v3/index.d.ts +1 -0
  74. package/dist/bundled/v3/components/or-select-v3/index.js +5 -6
  75. package/dist/bundled/v3/components/or-select-v3/types.d.ts +1 -1
  76. package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
  77. package/dist/bundled/v3/index.js +277 -191
  78. package/dist/esm/v2/{OrButton-357e1e2c.js → OrButton-835d4f11.js} +10 -1
  79. package/dist/esm/v2/{OrCardCollection-fe34fef3.js → OrCardCollection-024cfba9.js} +3 -3
  80. package/dist/esm/v2/{OrCheckbox-ea48d156.js → OrCheckbox-567e387c.js} +3 -3
  81. package/dist/esm/v2/{OrConfirm-3bead0be.js → OrConfirm-5e8dd4b6.js} +2 -2
  82. package/dist/esm/v2/{OrInlineInput-e32f322f.js → OrInlineInput-cfeeea33.js} +2 -2
  83. package/dist/esm/v2/{OrInlineTextarea-7296fbdb.js → OrInlineTextarea-897b5377.js} +2 -2
  84. package/dist/esm/v2/{OrInput-db0e2368.js → OrInput-2f16a7ac.js} +13 -20
  85. package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-28353c10.js → esm/v2/OrInputBox-4d5a318d.js} +55 -4
  86. package/dist/esm/v2/OrPagination-c0dbec6a.js +308 -0
  87. package/dist/esm/v2/{OrRadio-6e10f071.js → OrRadio-848ce55d.js} +3 -3
  88. package/dist/esm/v2/{OrSearch-9d9459f5.js → OrSearch-2f260b09.js} +2 -2
  89. package/dist/esm/v2/{OrSelect-e6aa1b2a.js → OrSelect-641184f0.js} +14 -15
  90. package/dist/esm/v2/{OrSwitch-c628d2c5.js → OrSwitch-13b6a7ee.js} +3 -3
  91. package/dist/esm/v2/{OrTextarea-52354386.js → OrTextarea-6712a150.js} +11 -14
  92. package/dist/esm/v2/components/index.d.ts +1 -0
  93. package/dist/esm/v2/components/index.js +14 -14
  94. package/dist/esm/v2/components/or-button-v3/OrButton.vue.d.ts +11 -0
  95. package/dist/esm/v2/components/or-button-v3/index.js +1 -1
  96. package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -6
  97. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
  98. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -5
  99. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  100. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  101. package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
  102. package/dist/esm/v2/components/or-input-v3/index.js +2 -3
  103. package/dist/esm/v2/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  104. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  105. package/dist/esm/v2/components/or-pagination-v3/index.d.ts +2 -0
  106. package/dist/esm/v2/components/or-pagination-v3/index.js +18 -0
  107. package/dist/esm/v2/components/or-pagination-v3/styles.d.ts +4 -0
  108. package/dist/esm/v2/components/or-pagination-v3/types.d.ts +4 -0
  109. package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
  110. package/dist/esm/v2/components/or-search-v3/index.js +3 -4
  111. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  112. package/dist/esm/v2/components/or-select-v3/index.d.ts +1 -0
  113. package/dist/esm/v2/components/or-select-v3/index.js +4 -5
  114. package/dist/esm/v2/components/or-select-v3/types.d.ts +1 -1
  115. package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
  116. package/dist/esm/v2/components/or-textarea-v3/index.js +2 -3
  117. package/dist/esm/v2/index.js +14 -14
  118. package/dist/esm/v3/{OrButton-bb6bf8a9.js → OrButton-0fa67a0d.js} +11 -2
  119. package/dist/esm/v3/{OrCardCollection-8a84f69c.js → OrCardCollection-286d0f3f.js} +2 -2
  120. package/dist/esm/v3/{OrCheckbox-d1b516c8.js → OrCheckbox-3e139eac.js} +2 -3
  121. package/dist/esm/v3/{OrConfirm-5bd1f4db.js → OrConfirm-56ae1494.js} +2 -2
  122. package/dist/esm/v3/{OrInlineInput-00f0d1b8.js → OrInlineInput-31026cd0.js} +2 -2
  123. package/dist/esm/v3/{OrInlineTextarea-c1babfda.js → OrInlineTextarea-b28c3d8c.js} +2 -2
  124. package/dist/esm/v3/{OrInput-2b447f81.js → OrInput-41691fb3.js} +15 -18
  125. package/dist/esm/v3/OrPagination-a703307d.js +269 -0
  126. package/dist/esm/v3/{OrRadio-ef9d4c6e.js → OrRadio-54b6d0de.js} +2 -3
  127. package/dist/esm/v3/{OrSearch-d72cfc74.js → OrSearch-e5a2e93e.js} +1 -1
  128. package/dist/esm/v3/{OrSelect-e6e006d5.js → OrSelect-08bd0f60.js} +16 -13
  129. package/dist/esm/v3/{OrSwitch-cc797a48.js → OrSwitch-cca30aa0.js} +3 -3
  130. package/dist/esm/v3/{OrTextarea-ed35cd0b.js → OrTextarea-bb9ef3f2.js} +14 -16
  131. package/dist/esm/v3/components/index.d.ts +1 -0
  132. package/dist/esm/v3/components/index.js +13 -12
  133. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +11 -0
  134. package/dist/esm/v3/components/or-button-v3/index.js +1 -1
  135. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
  136. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
  137. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  138. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  139. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  140. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  141. package/dist/esm/v3/components/or-pagination-v3/OrPagination.stories3.d.ts +12 -0
  142. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +112 -0
  143. package/dist/esm/v3/components/or-pagination-v3/index.d.ts +2 -0
  144. package/dist/esm/v3/components/or-pagination-v3/index.js +17 -0
  145. package/dist/esm/v3/components/or-pagination-v3/styles.d.ts +4 -0
  146. package/dist/esm/v3/components/or-pagination-v3/types.d.ts +4 -0
  147. package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
  148. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  149. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +14 -14
  150. package/dist/esm/v3/components/or-select-v3/index.d.ts +1 -0
  151. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  152. package/dist/esm/v3/components/or-select-v3/types.d.ts +1 -1
  153. package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
  154. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  155. package/dist/esm/v3/index.js +13 -12
  156. package/package.json +2 -2
  157. package/src/components/index.ts +1 -0
  158. package/src/components/or-button-v3/OrButton.stories3.ts +4 -0
  159. package/src/components/or-button-v3/OrButton.vue +6 -0
  160. package/src/components/or-button-v3/styles.ts +9 -1
  161. package/src/components/or-checkbox-v3/OrCheckbox.vue +1 -1
  162. package/src/components/or-inline-input-v3/styles.ts +2 -2
  163. package/src/components/or-inline-textarea-v3/styles.ts +2 -2
  164. package/src/components/or-input-v3/OrInput.vue +22 -28
  165. package/src/components/or-input-v3/styles.ts +2 -2
  166. package/src/components/or-pagination-v3/OrPagination.docs.mdx +7 -0
  167. package/src/components/or-pagination-v3/OrPagination.stories3.ts +87 -0
  168. package/src/components/or-pagination-v3/OrPagination.vue +270 -0
  169. package/src/components/or-pagination-v3/index.ts +2 -0
  170. package/src/components/or-pagination-v3/styles.ts +38 -0
  171. package/src/components/or-pagination-v3/types.ts +4 -0
  172. package/src/components/or-radio-v3/OrRadio.vue +1 -1
  173. package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
  174. package/src/components/or-select-v3/OrSelect.vue +20 -14
  175. package/src/components/or-select-v3/index.ts +1 -0
  176. package/src/components/or-select-v3/styles.ts +1 -4
  177. package/src/components/or-select-v3/types.ts +1 -1
  178. package/src/components/or-switch-v3/OrSwitch.vue +1 -1
  179. package/src/components/or-textarea-v3/OrTextarea.vue +1 -5
  180. package/src/components/or-textarea-v3/styles.ts +2 -2
  181. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  182. package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
  183. package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
  184. package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -149
  185. package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
  186. package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  187. package/dist/bundled/v2/props-78496a2d.js +0 -12
  188. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  189. package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
  190. package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
  191. package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -132
  192. package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
  193. package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  194. package/dist/bundled/v3/props-78496a2d.js +0 -12
  195. package/dist/esm/v2/OrInputBox-9d1193b5.js +0 -43
  196. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  197. package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
  198. package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
  199. package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -147
  200. package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
  201. package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
  202. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
  203. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -98
  204. package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
  205. package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -132
  206. package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
  207. package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
  208. package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
  209. package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -202
  210. package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -134
  211. package/src/components/or-combined-input-v3/index.ts +0 -2
  212. package/src/components/or-combined-input-v3/props.ts +0 -1
  213. package/src/components/or-combined-input-v3/styles.ts +0 -25
@@ -81,7 +81,11 @@ 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
+ // Theme
86
+ 'theme-foreground-inherit', 'dark:theme-foreground-inherit',
87
+ // Theme (activated)
88
+ 'activated:theme-foreground-default', 'dark:activated:theme-foreground-default-dark']
85
89
  };
86
90
 
87
91
  var script = defineComponent({
@@ -103,6 +107,10 @@ var script = defineComponent({
103
107
  type: String,
104
108
  default: ButtonColor.Primary
105
109
  },
110
+ activated: {
111
+ type: Boolean,
112
+ default: false
113
+ },
106
114
  disabled: {
107
115
  type: Boolean,
108
116
  default: false
@@ -144,6 +152,7 @@ var __vue_render__ = function () {
144
152
  class: _vm.rootStyles,
145
153
  attrs: {
146
154
  "type": _vm.type,
155
+ "activated": _vm.activated ? '' : null,
147
156
  "disabled": _vm.disabled
148
157
  },
149
158
  on: {
@@ -7,9 +7,9 @@ import './OrPopover-9bafbdb4.js';
7
7
  import { _ as __vue_component__$5 } from './OrMenuItem-c7f28480.js';
8
8
  import { _ as __vue_component__$6 } from './OrIcon-5e394c62.js';
9
9
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
- import { _ as __vue_component__$3 } from './OrButton-357e1e2c.js';
11
- import { _ as __vue_component__$7 } from './OrSearch-9d9459f5.js';
12
- import './OrInputBox.vue_rollup-plugin-vue_script-328ae841.js';
10
+ import { _ as __vue_component__$3 } from './OrButton-835d4f11.js';
11
+ import { _ as __vue_component__$7 } from './OrSearch-2f260b09.js';
12
+ import './OrInputBox-4d5a318d.js';
13
13
 
14
14
  const CardCollectionRoot = [
15
15
  // Layout
@@ -186,14 +186,14 @@ var __vue_staticRenderFns__ = [];
186
186
  /* style */
187
187
  const __vue_inject_styles__ = function (inject) {
188
188
  if (!inject) return;
189
- inject("data-v-83421e44_0", {
190
- source: "input[data-v-83421e44]{appearance:none;line-height:0}",
189
+ inject("data-v-2076b35e_0", {
190
+ source: "input[data-v-2076b35e]{appearance:none;line-height:0}",
191
191
  map: undefined,
192
192
  media: undefined
193
193
  });
194
194
  };
195
195
  /* scoped */
196
- const __vue_scope_id__ = "data-v-83421e44";
196
+ const __vue_scope_id__ = "data-v-2076b35e";
197
197
  /* module identifier */
198
198
  const __vue_module_identifier__ = undefined;
199
199
  /* functional template */
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
- import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-357e1e2c.js';
2
+ import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-835d4f11.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
4
- import { _ as __vue_component__$3 } from './OrInput-db0e2368.js';
4
+ import { _ as __vue_component__$3 } from './OrInput-2f16a7ac.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -20,8 +20,8 @@ const InlineInputRoot = [
20
20
  // Spacing
21
21
  'gap-xs'];
22
22
  const InlineInputControl = [
23
- // Box
24
- 'w-full',
23
+ // Layout
24
+ 'grow',
25
25
  // Typography
26
26
  'typography-inherit',
27
27
  // Theme
@@ -14,8 +14,8 @@ const InlineTextareaRoot = [
14
14
  // Spacing
15
15
  'gap-xs'];
16
16
  const InlineTextareaControl = [
17
- // Box
18
- 'w-full',
17
+ // Layout
18
+ 'grow',
19
19
  // Typography
20
20
  'typography-inherit',
21
21
  // Theme
@@ -5,8 +5,7 @@ import { _ as __vue_component__$1 } from './OrError-d267ee9a.js';
5
5
  import { _ as __vue_component__$2 } from './OrHint-42dc9ebb.js';
6
6
  import { _ as __vue_component__$4 } from './OrIconButton-e17e4944.js';
7
7
  import { _ as __vue_component__$3 } from './OrIcon-5e394c62.js';
8
- import { _ as __vue_component__$5 } from './OrInputBox-9d1193b5.js';
9
- import { a as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-328ae841.js';
8
+ import { _ as __vue_component__$5, a as InputBoxSize } from './OrInputBox-4d5a318d.js';
10
9
  import { _ as __vue_component__$6 } from './OrLabel-2a9f1477.js';
11
10
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
12
11
  import { c as createInjector } from './browser-82dea9ed.js';
@@ -25,8 +24,8 @@ const InputRoot = [
25
24
  // Spacing
26
25
  'gap-xs'];
27
26
  const InputControl = [
28
- // Box
29
- 'w-full',
27
+ // Layout
28
+ 'grow',
30
29
  // Typography
31
30
  'typography-inherit',
32
31
  // Theme
@@ -152,10 +151,10 @@ var __vue_render__ = function () {
152
151
  var _vm = this;
153
152
  var _h = _vm.$createElement;
154
153
  var _c = _vm._self._c || _h;
155
- return _c('div', _vm._b({
154
+ return _c('div', {
156
155
  ref: "root",
157
156
  class: _vm.rootStyles
158
- }, 'div', _vm.$attrs, false), [_vm.label ? [_c('OrLabel', {
157
+ }, [_vm.label ? [_c('OrLabel', {
159
158
  attrs: {
160
159
  "control-id": _vm.controlId,
161
160
  "variant": 'input',
@@ -177,7 +176,7 @@ var __vue_render__ = function () {
177
176
  "readonly": _vm.readonly,
178
177
  "disabled": _vm.disabled
179
178
  }
180
- }, [(_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'checkbox' ? _c('input', {
179
+ }, [(_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'checkbox' ? _c('input', _vm._b({
181
180
  directives: [{
182
181
  name: "model",
183
182
  rawName: "v-model",
@@ -191,8 +190,6 @@ var __vue_render__ = function () {
191
190
  "placeholder": _vm.placeholder,
192
191
  "required": _vm.required,
193
192
  "disabled": _vm.disabled,
194
- "readonly": _vm.readonly,
195
- "maxlength": _vm.maxLength,
196
193
  "type": "checkbox"
197
194
  },
198
195
  domProps: {
@@ -228,7 +225,7 @@ var __vue_render__ = function () {
228
225
  }
229
226
  }
230
227
  }
231
- }) : (_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'radio' ? _c('input', {
228
+ }, 'input', _vm.$attrs, false)) : (_vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type) === 'radio' ? _c('input', _vm._b({
232
229
  directives: [{
233
230
  name: "model",
234
231
  rawName: "v-model",
@@ -242,8 +239,6 @@ var __vue_render__ = function () {
242
239
  "placeholder": _vm.placeholder,
243
240
  "required": _vm.required,
244
241
  "disabled": _vm.disabled,
245
- "readonly": _vm.readonly,
246
- "maxlength": _vm.maxLength,
247
242
  "type": "radio"
248
243
  },
249
244
  domProps: {
@@ -266,7 +261,7 @@ var __vue_render__ = function () {
266
261
  _vm.proxyModelValue = null;
267
262
  }
268
263
  }
269
- }) : _c('input', {
264
+ }, 'input', _vm.$attrs, false)) : _c('input', _vm._b({
270
265
  directives: [{
271
266
  name: "model",
272
267
  rawName: "v-model",
@@ -280,8 +275,6 @@ var __vue_render__ = function () {
280
275
  "placeholder": _vm.placeholder,
281
276
  "required": _vm.required,
282
277
  "disabled": _vm.disabled,
283
- "readonly": _vm.readonly,
284
- "maxlength": _vm.maxLength,
285
278
  "type": _vm.type === 'password' && _vm.disclosed ? 'text' : _vm.type
286
279
  },
287
280
  domProps: {
@@ -307,7 +300,7 @@ var __vue_render__ = function () {
307
300
  _vm.proxyModelValue = $event.target.value;
308
301
  }
309
302
  }
310
- }), _vm._v(" "), _vm.type !== 'text' ? [_c('div', {
303
+ }, 'input', _vm.$attrs, false)), _vm._v(" "), _c('div', {
311
304
  class: ['layout-row']
312
305
  }, [_vm.type === 'password' ? [_c('OrIconButton', {
313
306
  attrs: {
@@ -341,7 +334,7 @@ var __vue_render__ = function () {
341
334
  "icon": 'search',
342
335
  "variant": 'outlined'
343
336
  }
344
- })]] : _vm._e()], 2)] : _vm._e()], 2), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
337
+ })]] : _vm._e()], 2)]), _vm._v(" "), !_vm.invalid ? [_vm.hint || _vm.maxLength ? [_c('OrHint', {
345
338
  attrs: {
346
339
  "disabled": _vm.disabled
347
340
  },
@@ -370,14 +363,14 @@ var __vue_staticRenderFns__ = [];
370
363
  /* style */
371
364
  const __vue_inject_styles__ = function (inject) {
372
365
  if (!inject) return;
373
- inject("data-v-2cb9359c_0", {
374
- source: "input[data-v-2cb9359c]{min-width:0;background:0 0;outline:0}input[type=number][data-v-2cb9359c]::-webkit-inner-spin-button{display:none}input[type=search][data-v-2cb9359c]::-webkit-search-cancel-button{display:none}",
366
+ inject("data-v-677a1aa4_0", {
367
+ source: "input[data-v-677a1aa4]{min-width:0;background:0 0;outline:0}input[type=number][data-v-677a1aa4]::-webkit-inner-spin-button{display:none}input[type=search][data-v-677a1aa4]::-webkit-search-cancel-button{display:none}",
375
368
  map: undefined,
376
369
  media: undefined
377
370
  });
378
371
  };
379
372
  /* scoped */
380
- const __vue_scope_id__ = "data-v-2cb9359c";
373
+ const __vue_scope_id__ = "data-v-677a1aa4";
381
374
  /* module identifier */
382
375
  const __vue_module_identifier__ = undefined;
383
376
  /* functional template */
@@ -1,6 +1,18 @@
1
- import { defineComponent, ref, computed } from 'vue';
2
- import { I as InputBoxVariant, a as InputBoxSize } from './props-78496a2d.js';
3
- import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
5
+
6
+ var InputBoxVariant;
7
+ (function (InputBoxVariant) {
8
+ InputBoxVariant["Styled"] = "styled";
9
+ InputBoxVariant["Unstyled"] = "unstyled";
10
+ })(InputBoxVariant || (InputBoxVariant = {}));
11
+ var InputBoxSize;
12
+ (function (InputBoxSize) {
13
+ InputBoxSize["M"] = "m";
14
+ InputBoxSize["S"] = "s";
15
+ })(InputBoxSize || (InputBoxSize = {}));
4
16
 
5
17
  const InputBoxRoot = [
6
18
  // Layout
@@ -85,4 +97,43 @@ var script = defineComponent({
85
97
  }
86
98
  });
87
99
 
88
- export { script as s };
100
+ /* script */
101
+ const __vue_script__ = script;
102
+
103
+ /* template */
104
+ var __vue_render__ = function () {
105
+ var _vm = this;
106
+ var _h = _vm.$createElement;
107
+ var _c = _vm._self._c || _h;
108
+ return _c('div', _vm._b({
109
+ ref: "root",
110
+ class: _vm.rootStyles,
111
+ attrs: {
112
+ "invalid": _vm.invalid ? '' : null,
113
+ "readonly": _vm.readonly ? '' : null,
114
+ "disabled": _vm.disabled ? '' : null
115
+ }
116
+ }, 'div', _vm.$attrs, false), [_vm._t("default")], 2);
117
+ };
118
+ var __vue_staticRenderFns__ = [];
119
+
120
+ /* style */
121
+ const __vue_inject_styles__ = undefined;
122
+ /* scoped */
123
+ const __vue_scope_id__ = undefined;
124
+ /* module identifier */
125
+ const __vue_module_identifier__ = undefined;
126
+ /* functional template */
127
+ const __vue_is_functional_template__ = false;
128
+ /* style inject */
129
+
130
+ /* style inject SSR */
131
+
132
+ /* style inject shadow dom */
133
+
134
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
135
+ render: __vue_render__,
136
+ staticRenderFns: __vue_staticRenderFns__
137
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
138
+
139
+ export { InputBoxVariant as I, __vue_component__ as _, InputBoxSize as a };
@@ -0,0 +1,308 @@
1
+ import { defineComponent, ref, computed } from 'vue-demi';
2
+ import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
+ import '@vueuse/core';
4
+ import { _ as __vue_component__$1 } from './OrButton-835d4f11.js';
5
+ import { _ as __vue_component__$2 } from './OrIcon-5e394c62.js';
6
+ import { _ as __vue_component__$4 } from './OrMenuItem-c7f28480.js';
7
+ import { _ as __vue_component__$3 } from './OrMenu-df27d0ef.js';
8
+ import './OrPopover-9bafbdb4.js';
9
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
+
11
+ const PaginationRoot = [
12
+ // Layout
13
+ 'layout-row',
14
+ // Spacing
15
+ 'gap-xl',
16
+ // Typography
17
+ 'typography-caption-regular',
18
+ // Theme
19
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
20
+ const PaginationOffsetControl = [
21
+ // Layout
22
+ 'layout-row',
23
+ // Spacing
24
+ 'gap-md'];
25
+ const PaginationLimitControl = [
26
+ // Layout
27
+ 'layout-row',
28
+ // Spacing
29
+ 'gap-sm'];
30
+ const PaginationItem = [
31
+ // Typography
32
+ 'typography-caption-regular',
33
+ // Typography (activated)
34
+ 'activated:typography-caption-bold'];
35
+
36
+ var script = defineComponent({
37
+ name: 'OrPagination',
38
+ components: {
39
+ OrButton: __vue_component__$1,
40
+ OrIcon: __vue_component__$2,
41
+ OrMenu: __vue_component__$3,
42
+ OrMenuItem: __vue_component__$4
43
+ },
44
+ inheritAttrs: false,
45
+ props: {
46
+ modelValue: {
47
+ type: Object,
48
+ default: undefined
49
+ },
50
+ value: {
51
+ type: Object,
52
+ default: undefined
53
+ },
54
+ length: {
55
+ type: Number,
56
+ required: true
57
+ },
58
+ pageSizeOptions: {
59
+ type: Array,
60
+ default: () => [50, 20, 10, 5]
61
+ }
62
+ },
63
+ emits: ['update:modelValue', 'input'],
64
+ expose: ['root'],
65
+ setup(props, context) {
66
+ // Refs
67
+ const root = ref();
68
+ const limitButton = ref();
69
+ const limitButtonRoot = computed(() => {
70
+ var _a;
71
+ return (_a = limitButton.value) === null || _a === void 0 ? void 0 : _a.root;
72
+ });
73
+ const limitMenu = ref();
74
+ const limitMenuRoot = computed(() => {
75
+ var _a;
76
+ return (_a = limitMenu.value) === null || _a === void 0 ? void 0 : _a.root;
77
+ });
78
+ // Styles
79
+ const classAttribute = useClassAttribute();
80
+ const rootStyles = computed(() => ['or-pagination', ...PaginationRoot, classAttribute.value]);
81
+ const offsetControlStyles = computed(() => [...PaginationOffsetControl]);
82
+ const limitControlStyles = computed(() => [...PaginationLimitControl]);
83
+ const itemStyles = computed(() => [...PaginationItem]);
84
+ // State
85
+ const proxyModelValue = computed({
86
+ get: () => {
87
+ var _a;
88
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : props.value; // TODO: Remove Vue 2 fallback
89
+ },
90
+
91
+ set: value => {
92
+ context.emit('input', value);
93
+ context.emit('update:modelValue', value);
94
+ }
95
+ });
96
+ const currentLimit = computed({
97
+ get: () => {
98
+ var _a, _b;
99
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.limit) !== null && _b !== void 0 ? _b : props.pageSizeOptions[0];
100
+ },
101
+ set: value => {
102
+ proxyModelValue.value = {
103
+ limit: value,
104
+ offset: 0
105
+ };
106
+ }
107
+ });
108
+ const currentOffset = computed({
109
+ get: () => {
110
+ var _a, _b;
111
+ return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.offset) !== null && _b !== void 0 ? _b : 0;
112
+ },
113
+ set: value => {
114
+ proxyModelValue.value = {
115
+ limit: currentLimit.value,
116
+ offset: value
117
+ };
118
+ }
119
+ });
120
+ const currentPage = computed({
121
+ get: () => {
122
+ return Math.floor(currentOffset.value / currentLimit.value) + 1;
123
+ },
124
+ set: value => {
125
+ currentOffset.value = (value - 1) * currentLimit.value;
126
+ }
127
+ });
128
+ const firstPage = computed(() => {
129
+ return 1;
130
+ });
131
+ const lastPage = computed(() => {
132
+ return Math.ceil(props.length / currentLimit.value);
133
+ });
134
+ const buttonGroup = computed(() => {
135
+ return Array.from({
136
+ length: lastPage.value
137
+ }, (_, index) => index + 1).map(page => {
138
+ switch (true) {
139
+ case page > firstPage.value && page < currentPage.value - 1:
140
+ case page > currentPage.value + 1 && page < lastPage.value:
141
+ return '…';
142
+ default:
143
+ return page;
144
+ }
145
+ }).reduce((accumulator, page) => {
146
+ if (accumulator[accumulator.length - 1] === page) {
147
+ return accumulator;
148
+ }
149
+ return [...accumulator, page];
150
+ }, []);
151
+ });
152
+ // Functions
153
+ function toPreviousPage() {
154
+ currentPage.value = currentPage.value - 1;
155
+ }
156
+ function toNextPage() {
157
+ currentPage.value = currentPage.value + 1;
158
+ }
159
+ function toPage(page) {
160
+ currentPage.value = page;
161
+ }
162
+ return {
163
+ root,
164
+ limitButton,
165
+ limitButtonRoot,
166
+ limitMenu,
167
+ limitMenuRoot,
168
+ rootStyles,
169
+ offsetControlStyles,
170
+ limitControlStyles,
171
+ itemStyles,
172
+ proxyModelValue,
173
+ currentLimit,
174
+ currentOffset,
175
+ currentPage,
176
+ firstPage,
177
+ lastPage,
178
+ buttonGroup,
179
+ toPreviousPage,
180
+ toNextPage,
181
+ toPage
182
+ };
183
+ }
184
+ });
185
+
186
+ /* script */
187
+ const __vue_script__ = script;
188
+
189
+ /* template */
190
+ var __vue_render__ = function () {
191
+ var _vm = this;
192
+ var _h = _vm.$createElement;
193
+ var _c = _vm._self._c || _h;
194
+ return _c('div', _vm._b({
195
+ ref: "root",
196
+ class: _vm.rootStyles
197
+ }, 'div', _vm.$attrs, false), [_c('div', {
198
+ class: _vm.offsetControlStyles
199
+ }, [_c('OrButton', {
200
+ class: _vm.itemStyles,
201
+ attrs: {
202
+ "variant": 'link',
203
+ "color": 'inherit',
204
+ "disabled": _vm.currentPage === _vm.firstPage
205
+ },
206
+ on: {
207
+ "click": function ($event) {
208
+ $event.stopPropagation();
209
+ return _vm.toPreviousPage();
210
+ }
211
+ }
212
+ }, [_c('OrIcon', {
213
+ attrs: {
214
+ "icon": 'keyboard_arrow_left'
215
+ }
216
+ })], 1), _vm._v(" "), _vm._l(_vm.buttonGroup, function (page, index) {
217
+ return _c('OrButton', {
218
+ key: index,
219
+ class: _vm.itemStyles,
220
+ attrs: {
221
+ "variant": 'link',
222
+ "color": 'inherit',
223
+ "activated": _vm.currentPage === page
224
+ },
225
+ on: {
226
+ "click": function ($event) {
227
+ $event.stopPropagation();
228
+ typeof page === 'number' && _vm.toPage(page);
229
+ }
230
+ }
231
+ }, [_vm._v("\n " + _vm._s(page) + "\n ")]);
232
+ }), _vm._v(" "), _c('OrButton', {
233
+ class: _vm.itemStyles,
234
+ attrs: {
235
+ "variant": 'link',
236
+ "color": 'inherit',
237
+ "disabled": _vm.currentPage === _vm.lastPage
238
+ },
239
+ on: {
240
+ "click": function ($event) {
241
+ $event.stopPropagation();
242
+ return _vm.toNextPage();
243
+ }
244
+ }
245
+ }, [_c('OrIcon', {
246
+ attrs: {
247
+ "icon": 'keyboard_arrow_right'
248
+ }
249
+ })], 1)], 2), _vm._v(" "), _c('div', {
250
+ class: _vm.limitControlStyles
251
+ }, [_vm._v("\n Per page:\n\n "), _c('OrButton', {
252
+ ref: "limitButton",
253
+ class: _vm.itemStyles,
254
+ attrs: {
255
+ "variant": 'link',
256
+ "color": 'inherit',
257
+ "activated": true
258
+ },
259
+ on: {
260
+ "click": function ($event) {
261
+ $event.stopPropagation();
262
+ return _vm.limitMenu.open();
263
+ }
264
+ }
265
+ }, [_vm._v("\n " + _vm._s(_vm.currentLimit) + " "), _c('OrIcon', {
266
+ attrs: {
267
+ "icon": 'arrow_drop_down'
268
+ }
269
+ })], 1), _vm._v(" "), _c('OrMenu', {
270
+ ref: "limitMenu",
271
+ attrs: {
272
+ "trigger": _vm.limitButtonRoot,
273
+ "placement": 'top'
274
+ }
275
+ }, _vm._l(_vm.pageSizeOptions, function (pageSize) {
276
+ return _c('OrMenuItem', {
277
+ key: pageSize,
278
+ on: {
279
+ "click": function ($event) {
280
+ $event.stopPropagation();
281
+ _vm.currentLimit = pageSize;
282
+ }
283
+ }
284
+ }, [_vm._v("\n " + _vm._s(pageSize) + "\n ")]);
285
+ }), 1)], 1)]);
286
+ };
287
+ var __vue_staticRenderFns__ = [];
288
+
289
+ /* style */
290
+ const __vue_inject_styles__ = undefined;
291
+ /* scoped */
292
+ const __vue_scope_id__ = undefined;
293
+ /* module identifier */
294
+ const __vue_module_identifier__ = undefined;
295
+ /* functional template */
296
+ const __vue_is_functional_template__ = false;
297
+ /* style inject */
298
+
299
+ /* style inject SSR */
300
+
301
+ /* style inject shadow dom */
302
+
303
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
304
+ render: __vue_render__,
305
+ staticRenderFns: __vue_staticRenderFns__
306
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
307
+
308
+ export { __vue_component__ as _ };
@@ -168,14 +168,14 @@ var __vue_staticRenderFns__ = [];
168
168
  /* style */
169
169
  const __vue_inject_styles__ = function (inject) {
170
170
  if (!inject) return;
171
- inject("data-v-f9edd250_0", {
172
- source: "input[data-v-f9edd250]{appearance:none;line-height:0}",
171
+ inject("data-v-3a964458_0", {
172
+ source: "input[data-v-3a964458]{appearance:none;line-height:0}",
173
173
  map: undefined,
174
174
  media: undefined
175
175
  });
176
176
  };
177
177
  /* scoped */
178
- const __vue_scope_id__ = "data-v-f9edd250";
178
+ const __vue_scope_id__ = "data-v-3a964458";
179
179
  /* module identifier */
180
180
  const __vue_module_identifier__ = undefined;
181
181
  /* functional template */
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { _ as __vue_component__$1 } from './OrInput-db0e2368.js';
5
- import { a as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-328ae841.js';
4
+ import { _ as __vue_component__$1 } from './OrInput-2f16a7ac.js';
5
+ import { a as InputBoxSize } from './OrInputBox-4d5a318d.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
7
 
8
8
  var script = defineComponent({