@adyen/bento-vue2 1.2.0 → 1.3.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 (227) hide show
  1. package/README.md +60 -29
  2. package/dist/@types/components.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
  5. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
  6. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
  7. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
  8. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
  9. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -1
  14. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
  15. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
  16. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
  17. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
  19. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
  21. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
  23. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
  25. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
  26. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
  27. package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
  28. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
  29. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
  30. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
  32. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
  34. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
  35. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +2 -1
  36. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
  37. package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
  38. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
  39. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
  40. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +43 -0
  41. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
  43. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
  46. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  47. package/dist/@types/packages/vue2/src/types/utils-events.d.ts +0 -1
  48. package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
  49. package/dist/accordion.js +1 -1
  50. package/dist/alert.js +3 -3
  51. package/dist/assets/arrow-left.css +1 -0
  52. package/dist/assets/base-button.css +1 -1
  53. package/dist/assets/button.css +1 -1
  54. package/dist/assets/calendar.css +1 -1
  55. package/dist/assets/checkbox.css +1 -1
  56. package/dist/assets/controls-group.css +1 -1
  57. package/dist/assets/copy.css +1 -1
  58. package/dist/assets/dropdown-default-textbox.css +1 -1
  59. package/dist/assets/dropdown.css +1 -1
  60. package/dist/assets/error-message.css +1 -1
  61. package/dist/assets/footer-actions.css +1 -0
  62. package/dist/assets/grid-layout.css +1 -1
  63. package/dist/assets/index.css +1 -1
  64. package/dist/assets/index10.css +1 -1
  65. package/dist/assets/index11.css +1 -1
  66. package/dist/assets/index12.css +1 -1
  67. package/dist/assets/index13.css +1 -1
  68. package/dist/assets/index14.css +1 -1
  69. package/dist/assets/index15.css +1 -1
  70. package/dist/assets/index16.css +1 -1
  71. package/dist/assets/index17.css +1 -1
  72. package/dist/assets/index18.css +1 -1
  73. package/dist/assets/index19.css +1 -1
  74. package/dist/assets/index2.css +1 -1
  75. package/dist/assets/index20.css +1 -1
  76. package/dist/assets/index21.css +1 -1
  77. package/dist/assets/index22.css +1 -1
  78. package/dist/assets/index23.css +1 -1
  79. package/dist/assets/index24.css +1 -1
  80. package/dist/assets/index25.css +1 -1
  81. package/dist/assets/index26.css +1 -1
  82. package/dist/assets/index27.css +1 -1
  83. package/dist/assets/index28.css +1 -1
  84. package/dist/assets/index29.css +1 -1
  85. package/dist/assets/index3.css +1 -1
  86. package/dist/assets/index30.css +1 -1
  87. package/dist/assets/index31.css +1 -1
  88. package/dist/assets/index32.css +1 -1
  89. package/dist/assets/index33.css +1 -1
  90. package/dist/assets/index34.css +1 -1
  91. package/dist/assets/index35.css +1 -1
  92. package/dist/assets/index36.css +1 -1
  93. package/dist/assets/index37.css +1 -1
  94. package/dist/assets/index38.css +1 -1
  95. package/dist/assets/index39.css +1 -1
  96. package/dist/assets/index4.css +1 -1
  97. package/dist/assets/index40.css +1 -0
  98. package/dist/assets/index41.css +1 -0
  99. package/dist/assets/index5.css +1 -1
  100. package/dist/assets/index6.css +1 -1
  101. package/dist/assets/index7.css +1 -1
  102. package/dist/assets/index8.css +1 -1
  103. package/dist/assets/index9.css +1 -1
  104. package/dist/assets/listbox-option-tag.css +1 -1
  105. package/dist/assets/listbox.css +1 -1
  106. package/dist/assets/loading-button.css +1 -1
  107. package/dist/assets/tooltip.css +1 -1
  108. package/dist/avatar-image.js +1 -1
  109. package/dist/badge.js +1 -1
  110. package/dist/button.js +3 -3
  111. package/dist/card.js +3 -3
  112. package/dist/checkbox.js +93 -84
  113. package/dist/checkbox.js.map +1 -1
  114. package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
  115. package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
  116. package/dist/chunks/{base-button.d4487ac9.js → base-button.98379576.js} +2 -2
  117. package/dist/chunks/{base-button.d4487ac9.js.map → base-button.98379576.js.map} +1 -1
  118. package/dist/chunks/{button-actions.cf73ed47.js → button-actions.bd397c79.js} +2 -2
  119. package/dist/chunks/{button-actions.cf73ed47.js.map → button-actions.bd397c79.js.map} +1 -1
  120. package/dist/chunks/{button.c27a7ce2.js → button.d0c9527d.js} +2 -2
  121. package/dist/chunks/{button.c27a7ce2.js.map → button.d0c9527d.js.map} +1 -1
  122. package/dist/chunks/{calendar.8f50a65a.js → calendar.0ae43a96.js} +6 -6
  123. package/dist/chunks/calendar.0ae43a96.js.map +1 -0
  124. package/dist/chunks/{checkbox.c06daf12.js → checkbox.f8457c93.js} +3 -3
  125. package/dist/chunks/{checkbox.c06daf12.js.map → checkbox.f8457c93.js.map} +1 -1
  126. package/dist/chunks/controls-group.b827382b.js +87 -0
  127. package/dist/chunks/controls-group.b827382b.js.map +1 -0
  128. package/dist/chunks/{copy.b62beae5.js → copy.5a4cbd4d.js} +3 -3
  129. package/dist/chunks/{copy.b62beae5.js.map → copy.5a4cbd4d.js.map} +1 -1
  130. package/dist/chunks/{dropdown-default-textbox.a5eca928.js → dropdown-default-textbox.819e43f7.js} +32 -30
  131. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +1 -0
  132. package/dist/chunks/{dropdown.368486b1.js → dropdown.c05678d0.js} +142 -139
  133. package/dist/chunks/dropdown.c05678d0.js.map +1 -0
  134. package/dist/chunks/{error-message.a581a172.js → error-message.0433b539.js} +2 -2
  135. package/dist/chunks/{error-message.a581a172.js.map → error-message.0433b539.js.map} +1 -1
  136. package/dist/chunks/footer-actions.67642347.js +98 -0
  137. package/dist/chunks/footer-actions.67642347.js.map +1 -0
  138. package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
  139. package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
  140. package/dist/chunks/{index.3b6fc08a.js → index.0cf00b47.js} +6 -6
  141. package/dist/chunks/{index.3b6fc08a.js.map → index.0cf00b47.js.map} +1 -1
  142. package/dist/chunks/{index.f0d99471.js → index.10aaf539.js} +198 -192
  143. package/dist/chunks/{index.f0d99471.js.map → index.10aaf539.js.map} +1 -1
  144. package/dist/chunks/{index.ad39b625.js → index.133e4da0.js} +2 -2
  145. package/dist/chunks/{index.ad39b625.js.map → index.133e4da0.js.map} +1 -1
  146. package/dist/chunks/{index.175f9e2d.js → index.56858f4e.js} +15 -14
  147. package/dist/chunks/index.56858f4e.js.map +1 -0
  148. package/dist/chunks/{index.d07f9800.js → index.73d50fa6.js} +2 -2
  149. package/dist/chunks/{index.d07f9800.js.map → index.73d50fa6.js.map} +1 -1
  150. package/dist/chunks/{index.3dfea3bd.js → index.f0f8ed98.js} +3 -3
  151. package/dist/chunks/{index.3dfea3bd.js.map → index.f0f8ed98.js.map} +1 -1
  152. package/dist/chunks/{listbox-option-tag.c7e9a228.js → listbox-option-tag.8d6cccac.js} +3 -3
  153. package/dist/chunks/{listbox-option-tag.c7e9a228.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
  154. package/dist/chunks/{listbox.f51e92cd.js → listbox.116ed0c1.js} +177 -177
  155. package/dist/chunks/listbox.116ed0c1.js.map +1 -0
  156. package/dist/chunks/{loading-button.6d34f66f.js → loading-button.1c201f87.js} +10 -10
  157. package/dist/chunks/loading-button.1c201f87.js.map +1 -0
  158. package/dist/chunks/{tooltip.9af34fba.js → tooltip.2aff4fa6.js} +2 -2
  159. package/dist/chunks/tooltip.2aff4fa6.js.map +1 -0
  160. package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
  161. package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
  162. package/dist/code-snippet.js +6 -6
  163. package/dist/code-snippet.js.map +1 -1
  164. package/dist/country.js +149 -174
  165. package/dist/country.js.map +1 -1
  166. package/dist/currency.js +1 -1
  167. package/dist/data-grid.js +482 -499
  168. package/dist/data-grid.js.map +1 -1
  169. package/dist/date-picker.js +80 -74
  170. package/dist/date-picker.js.map +1 -1
  171. package/dist/date-range-picker.js +2 -2
  172. package/dist/date.js +1 -1
  173. package/dist/divider.js +1 -1
  174. package/dist/dropdown.js +72 -67
  175. package/dist/dropdown.js.map +1 -1
  176. package/dist/filter-bar.js +268 -265
  177. package/dist/filter-bar.js.map +1 -1
  178. package/dist/focus-trap.js +1 -1
  179. package/dist/form-layout.js +174 -0
  180. package/dist/form-layout.js.map +1 -0
  181. package/dist/header.js +3 -3
  182. package/dist/index.js +164 -155
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +2 -2
  185. package/dist/input-field.js +69 -67
  186. package/dist/input-field.js.map +1 -1
  187. package/dist/internal.js +6 -6
  188. package/dist/link.js +2 -2
  189. package/dist/loading-indicator.js +1 -1
  190. package/dist/menu.js +4 -4
  191. package/dist/modal.js +203 -324
  192. package/dist/modal.js.map +1 -1
  193. package/dist/pagination.js +4 -4
  194. package/dist/payment-method.js +2 -2
  195. package/dist/popover.js +4 -4
  196. package/dist/popper-container.js +2 -2
  197. package/dist/radio-group.js +97 -99
  198. package/dist/radio-group.js.map +1 -1
  199. package/dist/search-bar.js +2 -2
  200. package/dist/segmented-control.js +4 -4
  201. package/dist/sidepanel.js +218 -0
  202. package/dist/sidepanel.js.map +1 -0
  203. package/dist/status.js +2 -2
  204. package/dist/structured-list.js +1 -1
  205. package/dist/summary-grid.js +3 -3
  206. package/dist/tabs.js +3 -3
  207. package/dist/tabs.js.map +1 -1
  208. package/dist/tag.js +3 -3
  209. package/dist/textarea.js +84 -82
  210. package/dist/textarea.js.map +1 -1
  211. package/dist/timeline.js +23 -23
  212. package/dist/timeline.js.map +1 -1
  213. package/dist/toast.js +2 -2
  214. package/dist/toggle.js +2 -2
  215. package/dist/typography.js +1 -1
  216. package/dist/web-types.json +455 -73
  217. package/package.json +10 -8
  218. package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
  219. package/dist/chunks/calendar.8f50a65a.js.map +0 -1
  220. package/dist/chunks/controls-group.9d58a091.js +0 -64
  221. package/dist/chunks/controls-group.9d58a091.js.map +0 -1
  222. package/dist/chunks/dropdown-default-textbox.a5eca928.js.map +0 -1
  223. package/dist/chunks/dropdown.368486b1.js.map +0 -1
  224. package/dist/chunks/index.175f9e2d.js.map +0 -1
  225. package/dist/chunks/listbox.f51e92cd.js.map +0 -1
  226. package/dist/chunks/loading-button.6d34f66f.js.map +0 -1
  227. package/dist/chunks/tooltip.9af34fba.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ import { BentoTypographyElement } from "../../../typography";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ subsection: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ el: {
8
+ type: import("vue").PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
9
+ required: true;
10
+ validator: (value: BentoTypographyElement) => boolean;
11
+ };
12
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
13
+ subsection: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ el: {
18
+ type: import("vue").PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | BentoTypographyElement>;
19
+ required: true;
20
+ validator: (value: BentoTypographyElement) => boolean;
21
+ };
22
+ }>>, {
23
+ subsection: boolean;
24
+ }>, {
25
+ default: (_: {}) => any;
26
+ description: (_: {}) => any;
27
+ }>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1 @@
1
+ export { default as BentoFormLayoutTitle } from './form-layout-title.vue';
@@ -0,0 +1,3 @@
1
+ export { BentoFormLayoutFieldTip } from './form-layout-field-tip';
2
+ export { BentoFormLayoutGroup } from './form-layout-group';
3
+ export { BentoFormLayoutTitle } from './form-layout-title';
@@ -0,0 +1 @@
1
+ export declare const FORM_LAYOUT_LOADING_INJECTION_KEY: unique symbol;
@@ -0,0 +1,33 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ form: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ loading: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
11
+ form: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ loading: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ }>>, {
20
+ form: boolean;
21
+ loading: boolean;
22
+ }>, {
23
+ 'error-message': (_: {}) => any;
24
+ default: (_: {}) => any;
25
+ 'actions-left': (_: {}) => any;
26
+ 'actions-right': (_: {}) => any;
27
+ }>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BentoFormLayout } from './form-layout.vue';
2
+ export { BentoFormLayoutFieldTip, BentoFormLayoutTitle, BentoFormLayoutGroup } from './components';
@@ -98,6 +98,7 @@ declare const _default: import("vue").DefineComponent<{
98
98
  staticValueId: string;
99
99
  descriptionId: string;
100
100
  errorId: string;
101
+ isReadOnly: import("vue").ComputedRef<boolean>;
101
102
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
102
103
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
103
104
  shouldShowDropdown: import("vue").ComputedRef<boolean>;
@@ -185,9 +186,9 @@ declare const _default: import("vue").DefineComponent<{
185
186
  required: boolean;
186
187
  ariaLabel: string;
187
188
  placeholder: string;
189
+ optional: boolean;
188
190
  errorMessage: string;
189
191
  readonly: boolean;
190
- optional: boolean;
191
192
  dropdown: BentoInputDropdownProps;
192
193
  ariaHidden: boolean;
193
194
  dropdownPosition: "start" | "end" | BentoInputFieldElementPosition;
@@ -1,10 +1,9 @@
1
- import { BentoTypographyElement } from "../../typography";
2
- declare const _default: import("vue").DefineComponent<{
3
- label: {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ description: {
4
3
  type: StringConstructor;
5
- required: true;
4
+ default: any;
6
5
  };
7
- showLabel: {
6
+ disabled: {
8
7
  type: BooleanConstructor;
9
8
  default: boolean;
10
9
  };
@@ -12,31 +11,28 @@ declare const _default: import("vue").DefineComponent<{
12
11
  type: StringConstructor;
13
12
  default: any;
14
13
  };
15
- disabled: {
14
+ hideLabel: {
16
15
  type: BooleanConstructor;
17
- default: boolean;
16
+ default: any;
18
17
  };
19
- }, {
20
- BentoTypographyElement: typeof BentoTypographyElement;
21
- ariaAttributes: import("vue").ComputedRef<{
22
- 'aria-describedby': string;
23
- }>;
24
- conditionalClasses: import("vue").ComputedRef<{
25
- 'b-controls-group--disabled': boolean;
26
- }>;
27
- legendConditionalClasses: import("vue").ComputedRef<{
28
- 'b-controls-group__label--hidden': boolean;
29
- }>;
30
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
31
18
  label: {
32
19
  type: StringConstructor;
33
20
  required: true;
34
21
  };
35
- showLabel: {
22
+ optional: {
36
23
  type: BooleanConstructor;
37
24
  default: boolean;
38
25
  };
39
- form: {
26
+ required: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ tooltipText: {
31
+ type: StringConstructor;
32
+ default: any;
33
+ };
34
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
35
+ description: {
40
36
  type: StringConstructor;
41
37
  default: any;
42
38
  };
@@ -44,9 +40,44 @@ declare const _default: import("vue").DefineComponent<{
44
40
  type: BooleanConstructor;
45
41
  default: boolean;
46
42
  };
43
+ form: {
44
+ type: StringConstructor;
45
+ default: any;
46
+ };
47
+ hideLabel: {
48
+ type: BooleanConstructor;
49
+ default: any;
50
+ };
51
+ label: {
52
+ type: StringConstructor;
53
+ required: true;
54
+ };
55
+ optional: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ required: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ tooltipText: {
64
+ type: StringConstructor;
65
+ default: any;
66
+ };
47
67
  }>>, {
68
+ description: string;
48
69
  form: string;
49
70
  disabled: boolean;
50
- showLabel: boolean;
71
+ required: boolean;
72
+ tooltipText: string;
73
+ optional: boolean;
74
+ hideLabel: boolean;
75
+ }>, {
76
+ default: (_: {}) => any;
51
77
  }>;
52
78
  export default _default;
79
+ type __VLS_WithTemplateSlots<T, S> = T & {
80
+ new (): {
81
+ $slots: S;
82
+ };
83
+ };
@@ -114,10 +114,10 @@ declare const _default: import("vue").DefineComponent<{
114
114
  };
115
115
  }>>, {
116
116
  size: BentoModalSize;
117
- modalRole: string;
118
- customPadding: string;
119
- withColumnLayout: boolean;
120
117
  columnsSize: BentoModalColumnLayoutVariant;
118
+ customPadding: string;
121
119
  initiallyOpen: boolean;
120
+ modalRole: string;
121
+ withColumnLayout: boolean;
122
122
  }>;
123
123
  export default _default;
@@ -4,43 +4,43 @@ import { BentoButtonVariant } from "../../../../../../core/src/components/button
4
4
  import { BentoTypographyElement, BentoTypographyVariant } from "../../../typography";
5
5
  import { GridLayoutContainerType } from "../../../internal";
6
6
  declare const _default: import("vue").DefineComponent<{
7
- modalRole: {
8
- type: StringConstructor;
9
- default: BentoModalRole;
7
+ columnsSize: {
8
+ type: PropType<BentoModalColumnLayoutVariant>;
9
+ default: BentoModalColumnLayoutVariant;
10
10
  };
11
- isDismissible: {
12
- type: BooleanConstructor;
13
- required: true;
11
+ customPadding: {
12
+ type: StringConstructor;
13
+ default: any;
14
14
  };
15
15
  hideCloseButton: {
16
16
  type: BooleanConstructor;
17
17
  required: true;
18
18
  };
19
- customPadding: {
20
- type: StringConstructor;
21
- default: any;
22
- };
23
- withColumnLayout: {
19
+ initiallyOpen: {
24
20
  type: BooleanConstructor;
25
21
  default: boolean;
26
22
  };
27
- columnsSize: {
28
- type: PropType<BentoModalColumnLayoutVariant>;
29
- default: BentoModalColumnLayoutVariant;
23
+ isDismissible: {
24
+ type: BooleanConstructor;
25
+ required: true;
30
26
  };
31
27
  isOpen: {
32
28
  type: BooleanConstructor;
33
29
  required: true;
34
30
  };
35
- size: {
36
- type: PropType<BentoModalSize>;
37
- default: BentoModalSize;
31
+ modalRole: {
32
+ type: StringConstructor;
33
+ default: BentoModalRole;
38
34
  };
39
- initiallyOpen: {
35
+ overflowVisible: {
40
36
  type: BooleanConstructor;
41
37
  default: boolean;
42
38
  };
43
- overflowVisible: {
39
+ size: {
40
+ type: PropType<BentoModalSize>;
41
+ default: BentoModalSize;
42
+ };
43
+ withColumnLayout: {
44
44
  type: BooleanConstructor;
45
45
  default: boolean;
46
46
  };
@@ -52,11 +52,18 @@ declare const _default: import("vue").DefineComponent<{
52
52
  onCloseButtonClick: () => void;
53
53
  hasSlot: (name: string) => boolean;
54
54
  emitCloseEvent: () => void;
55
+ t: import("vue-i18n-bridge").ComposerTranslation<import("../../../../utils/ts/i18n").i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
56
+ [x: string]: import("vue-i18n-bridge").LocaleMessageValue<import("vue-i18n-bridge").VueMessageType>;
57
+ }>, never, import("@intlify/core-base")._ResourcePath<{
58
+ [key: string]: string;
59
+ }>, import("@intlify/core-base")._ResourcePath<{
60
+ [key: string]: string;
61
+ }>> | ((key: "ariaLabelFallback", values?: import("vue-i18n").default.Values) => string);
55
62
  modalConditionalClasses: import("vue").ComputedRef<{
56
63
  [x: string]: boolean | BentoModalSize;
57
- "b-modal-base__container--visible": boolean;
58
- "b-modal-base__container--overflow-visible": boolean;
59
- "b-modal-base__container--column-layout": boolean;
64
+ 'b-modal-base__container--visible': boolean;
65
+ 'b-modal-base__container--overflow-visible': boolean;
66
+ 'b-modal-base__container--column-layout': boolean;
60
67
  }>;
61
68
  modalContentConditionalClasses: import("vue").ComputedRef<{
62
69
  'b-modal-base__content--column-layout': boolean;
@@ -96,53 +103,53 @@ declare const _default: import("vue").DefineComponent<{
96
103
  BentoTypographyVariant: typeof BentoTypographyVariant;
97
104
  GridLayoutContainerType: typeof GridLayoutContainerType;
98
105
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoModalEvent[], string, Readonly<import("vue").ExtractPropTypes<{
99
- modalRole: {
100
- type: StringConstructor;
101
- default: BentoModalRole;
106
+ columnsSize: {
107
+ type: PropType<BentoModalColumnLayoutVariant>;
108
+ default: BentoModalColumnLayoutVariant;
102
109
  };
103
- isDismissible: {
104
- type: BooleanConstructor;
105
- required: true;
110
+ customPadding: {
111
+ type: StringConstructor;
112
+ default: any;
106
113
  };
107
114
  hideCloseButton: {
108
115
  type: BooleanConstructor;
109
116
  required: true;
110
117
  };
111
- customPadding: {
112
- type: StringConstructor;
113
- default: any;
114
- };
115
- withColumnLayout: {
118
+ initiallyOpen: {
116
119
  type: BooleanConstructor;
117
120
  default: boolean;
118
121
  };
119
- columnsSize: {
120
- type: PropType<BentoModalColumnLayoutVariant>;
121
- default: BentoModalColumnLayoutVariant;
122
+ isDismissible: {
123
+ type: BooleanConstructor;
124
+ required: true;
122
125
  };
123
126
  isOpen: {
124
127
  type: BooleanConstructor;
125
128
  required: true;
126
129
  };
127
- size: {
128
- type: PropType<BentoModalSize>;
129
- default: BentoModalSize;
130
+ modalRole: {
131
+ type: StringConstructor;
132
+ default: BentoModalRole;
130
133
  };
131
- initiallyOpen: {
134
+ overflowVisible: {
132
135
  type: BooleanConstructor;
133
136
  default: boolean;
134
137
  };
135
- overflowVisible: {
138
+ size: {
139
+ type: PropType<BentoModalSize>;
140
+ default: BentoModalSize;
141
+ };
142
+ withColumnLayout: {
136
143
  type: BooleanConstructor;
137
144
  default: boolean;
138
145
  };
139
146
  }>>, {
140
147
  size: BentoModalSize;
141
- modalRole: string;
142
- customPadding: string;
143
- withColumnLayout: boolean;
144
148
  columnsSize: BentoModalColumnLayoutVariant;
149
+ customPadding: string;
145
150
  initiallyOpen: boolean;
151
+ modalRole: string;
146
152
  overflowVisible: boolean;
153
+ withColumnLayout: boolean;
147
154
  }>;
148
155
  export default _default;
@@ -104,12 +104,12 @@ declare const _default: import("vue").DefineComponent<{
104
104
  };
105
105
  }>>, {
106
106
  actions: BentoButtonActionsList;
107
- hideCloseButton: boolean;
108
- customPadding: string;
109
- withColumnLayout: boolean;
110
107
  columnsSize: BentoModalColumnLayoutVariant;
108
+ customPadding: string;
109
+ hideCloseButton: boolean;
111
110
  initiallyOpen: boolean;
112
111
  overflowVisible: boolean;
112
+ withColumnLayout: boolean;
113
113
  actionsLabel: string;
114
114
  destructiveActions: boolean;
115
115
  }>;
@@ -73,19 +73,11 @@ declare const _default: import("vue").DefineComponent<{
73
73
  isDismissible: boolean;
74
74
  overflowVisible: boolean;
75
75
  withColumnLayout: boolean;
76
- dialogType?: undefined;
77
- content?: undefined;
78
76
  } | {
79
77
  dialogType: "info" | "confirmation" | "destructive" | "acknowledgement" | BentoModalDialogType;
80
78
  content: string;
81
79
  isDismissible: boolean;
82
80
  overflowVisible: boolean;
83
- hideCloseButton?: undefined;
84
- size?: undefined;
85
- customPadding?: undefined;
86
- actionsLabel?: undefined;
87
- destructiveActions?: undefined;
88
- withColumnLayout?: undefined;
89
81
  }>;
90
82
  hasSlot: (name: string) => boolean;
91
83
  }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, BentoModalEvent[], string, Readonly<import("vue").ExtractPropTypes<{
@@ -155,12 +147,12 @@ declare const _default: import("vue").DefineComponent<{
155
147
  size: "small" | "medium" | "large" | BentoModalSize;
156
148
  isOpen: boolean;
157
149
  actions: BentoButtonActionsList;
158
- isDismissible: boolean;
159
- hideCloseButton: boolean;
160
- customPadding: string;
161
- withColumnLayout: boolean;
162
150
  columnsSize: "smaller" | "equal" | "bigger" | BentoModalColumnLayoutVariant;
151
+ customPadding: string;
152
+ hideCloseButton: boolean;
153
+ isDismissible: boolean;
163
154
  overflowVisible: boolean;
155
+ withColumnLayout: boolean;
164
156
  actionsLabel: string;
165
157
  destructiveActions: boolean;
166
158
  dialogType: "info" | "confirmation" | "destructive" | "acknowledgement" | BentoModalDialogType;
@@ -1,6 +1,10 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoRadioGroupEvent, BentoRadioGroupItems, BentoRadioGroupVariant } from './radio-group.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ description: {
5
+ type: StringConstructor;
6
+ default: any;
7
+ };
4
8
  disabled: {
5
9
  type: BooleanConstructor;
6
10
  default: boolean;
@@ -17,6 +21,10 @@ declare const _default: import("vue").DefineComponent<{
17
21
  type: BooleanConstructor;
18
22
  default: boolean;
19
23
  };
24
+ hideLabel: {
25
+ type: BooleanConstructor;
26
+ default: any;
27
+ };
20
28
  items: {
21
29
  type: PropType<BentoRadioGroupItems>;
22
30
  required: true;
@@ -25,12 +33,24 @@ declare const _default: import("vue").DefineComponent<{
25
33
  type: StringConstructor;
26
34
  required: true;
27
35
  };
36
+ modelValue: {
37
+ type: (StringConstructor | NumberConstructor)[];
38
+ default: any;
39
+ };
40
+ optional: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
28
44
  readonly: {
29
45
  type: BooleanConstructor;
30
46
  default: boolean;
31
47
  };
32
- modelValue: {
33
- type: (StringConstructor | NumberConstructor)[];
48
+ required: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ tooltipText: {
53
+ type: StringConstructor;
34
54
  default: any;
35
55
  };
36
56
  variant: {
@@ -41,6 +61,7 @@ declare const _default: import("vue").DefineComponent<{
41
61
  }, {
42
62
  inputValue: import("vue").Ref<string | number>;
43
63
  errorId: string;
64
+ isReadOnly: import("vue").ComputedRef<boolean>;
44
65
  shouldShowError: import("vue").ComputedRef<boolean>;
45
66
  shouldShowErrorMessage: import("vue").ComputedRef<boolean>;
46
67
  conditionalClasses: import("vue").ComputedRef<{
@@ -48,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
48
69
  }>;
49
70
  onInput: (value: any) => void;
50
71
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, BentoRadioGroupEvent[], string, Readonly<import("vue").ExtractPropTypes<{
72
+ description: {
73
+ type: StringConstructor;
74
+ default: any;
75
+ };
51
76
  disabled: {
52
77
  type: BooleanConstructor;
53
78
  default: boolean;
@@ -64,6 +89,10 @@ declare const _default: import("vue").DefineComponent<{
64
89
  type: BooleanConstructor;
65
90
  default: boolean;
66
91
  };
92
+ hideLabel: {
93
+ type: BooleanConstructor;
94
+ default: any;
95
+ };
67
96
  items: {
68
97
  type: PropType<BentoRadioGroupItems>;
69
98
  required: true;
@@ -72,12 +101,24 @@ declare const _default: import("vue").DefineComponent<{
72
101
  type: StringConstructor;
73
102
  required: true;
74
103
  };
104
+ modelValue: {
105
+ type: (StringConstructor | NumberConstructor)[];
106
+ default: any;
107
+ };
108
+ optional: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
75
112
  readonly: {
76
113
  type: BooleanConstructor;
77
114
  default: boolean;
78
115
  };
79
- modelValue: {
80
- type: (StringConstructor | NumberConstructor)[];
116
+ required: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ tooltipText: {
121
+ type: StringConstructor;
81
122
  default: any;
82
123
  };
83
124
  variant: {
@@ -86,8 +127,13 @@ declare const _default: import("vue").DefineComponent<{
86
127
  validator: (value: BentoRadioGroupVariant) => boolean;
87
128
  };
88
129
  }>>, {
130
+ description: string;
89
131
  disabled: boolean;
90
132
  variant: "vertical" | "horizontal" | BentoRadioGroupVariant;
133
+ required: boolean;
134
+ tooltipText: string;
135
+ optional: boolean;
136
+ hideLabel: boolean;
91
137
  errorMessage: string;
92
138
  readonly: boolean;
93
139
  modelValue: string | number;
@@ -166,9 +166,9 @@ declare const _default: import("vue").DefineComponent<{
166
166
  required: boolean;
167
167
  ariaLabel: string;
168
168
  placeholder: string;
169
+ optional: boolean;
169
170
  errorMessage: string;
170
171
  readonly: boolean;
171
- optional: boolean;
172
172
  dropdown: import("../input-field/input-field.types").BentoInputDropdownProps;
173
173
  ariaHidden: boolean;
174
174
  dropdownPosition: "start" | "end" | import("../input-field/input-field.types").BentoInputFieldElementPosition;
@@ -269,6 +269,7 @@ declare const _default: import("vue").DefineComponent<{
269
269
  staticValueId: string;
270
270
  descriptionId: string;
271
271
  errorId: string;
272
+ isReadOnly: import("vue").ComputedRef<boolean>;
272
273
  shouldDisplayStaticValueAtStart: import("vue").ComputedRef<boolean>;
273
274
  shouldDisplayStaticValueAtEnd: import("vue").ComputedRef<boolean>;
274
275
  shouldShowDropdown: import("vue").ComputedRef<boolean>;
@@ -0,0 +1,68 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoButtonActionsList } from "../../button";
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ actions: {
5
+ type: PropType<BentoButtonActionsList>;
6
+ default: any;
7
+ };
8
+ actionsLabel: {
9
+ type: StringConstructor;
10
+ default: any;
11
+ };
12
+ destructiveActions: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ pageId: {
17
+ type: StringConstructor;
18
+ default: any;
19
+ };
20
+ previousPage: {
21
+ type: StringConstructor;
22
+ default: any;
23
+ };
24
+ title: {
25
+ type: StringConstructor;
26
+ default: any;
27
+ };
28
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
29
+ actions: {
30
+ type: PropType<BentoButtonActionsList>;
31
+ default: any;
32
+ };
33
+ actionsLabel: {
34
+ type: StringConstructor;
35
+ default: any;
36
+ };
37
+ destructiveActions: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ pageId: {
42
+ type: StringConstructor;
43
+ default: any;
44
+ };
45
+ previousPage: {
46
+ type: StringConstructor;
47
+ default: any;
48
+ };
49
+ title: {
50
+ type: StringConstructor;
51
+ default: any;
52
+ };
53
+ }>>, {
54
+ title: string;
55
+ actions: BentoButtonActionsList;
56
+ actionsLabel: string;
57
+ destructiveActions: boolean;
58
+ pageId: string;
59
+ previousPage: string;
60
+ }>, {
61
+ default: (_: {}) => any;
62
+ }>;
63
+ export default _default;
64
+ type __VLS_WithTemplateSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -0,0 +1,3 @@
1
+ export { default as BentoSidepanelPage } from './components/sidepanel-page.vue';
2
+ export { default as BentoSidepanel } from './sidepanel.vue';
3
+ export * from './sidepanel.types';
@@ -0,0 +1,2 @@
1
+ export declare const SIDEPANEL_REGISTER_PAGE_INJECTION_KEY: unique symbol;
2
+ export declare const SIDEPANEL_CONFIG_INJECTION_KEY: unique symbol;
@@ -0,0 +1,21 @@
1
+ import { Ref } from 'vue';
2
+ export interface BentoSidepanelPageObject {
3
+ title: string;
4
+ pageId: string;
5
+ }
6
+ export declare enum BentoSidepanelEvent {
7
+ UPDATE_ACTIVE_PAGE = "update:active-page",
8
+ UPDATE_IS_OPEN = "update:is-open"
9
+ }
10
+ export declare enum BentoSidepanelAnimation {
11
+ TRANSITION_LEVEL_DEEPER = "b-sidepanel-page__animation--level-deeper",
12
+ TRANSITION_LEVEL_UPPER = "b-sidepanel-page__animation--level-upper"
13
+ }
14
+ export interface BentoSidepanelConfigData {
15
+ activePage: Ref<string>;
16
+ animation: Ref<string>;
17
+ goToPreviousPage: (page: string) => void;
18
+ hasPreviousPages: Ref<boolean>;
19
+ isOpen: Ref<boolean>;
20
+ }
21
+ export type BentoSidepanelRegisterPage = (props: BentoSidepanelPageObject) => void;