@adyen/bento-vue2 1.25.0 → 1.27.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.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +582 -237
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +61 -146
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +3 -3
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.773343f6.js → base-button.852204dc.js} +2 -2
- package/dist/chunks/{base-button.773343f6.js.map → base-button.852204dc.js.map} +1 -1
- package/dist/chunks/{base-modal.2d596e6f.js → base-modal.4fb7528b.js} +6 -6
- package/dist/chunks/{base-modal.2d596e6f.js.map → base-modal.4fb7528b.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.d08d2c51.js → button-actions-with-menu.bf968959.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.d08d2c51.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
- package/dist/chunks/{button-actions.a03a672f.js → button-actions.87e589e3.js} +31 -29
- package/dist/chunks/button-actions.87e589e3.js.map +1 -0
- package/dist/chunks/button.cb90b55c.js +101 -0
- package/dist/chunks/button.cb90b55c.js.map +1 -0
- package/dist/chunks/{calendar.7d3e2db0.js → calendar.f02e0a5a.js} +5 -5
- package/dist/chunks/{calendar.7d3e2db0.js.map → calendar.f02e0a5a.js.map} +1 -1
- package/dist/chunks/{checkbox.28578383.js → checkbox.9f9c978a.js} +3 -3
- package/dist/chunks/{checkbox.28578383.js.map → checkbox.9f9c978a.js.map} +1 -1
- package/dist/chunks/{controls-group.faa482b2.js → controls-group.121a307d.js} +3 -3
- package/dist/chunks/{controls-group.faa482b2.js.map → controls-group.121a307d.js.map} +1 -1
- package/dist/chunks/{copy.3c50b447.js → copy.6808b2dc.js} +4 -4
- package/dist/chunks/{copy.3c50b447.js.map → copy.6808b2dc.js.map} +1 -1
- package/dist/chunks/{dialog-page.286ead53.js → dialog-page.7fd7d006.js} +3 -3
- package/dist/chunks/{dialog-page.286ead53.js.map → dialog-page.7fd7d006.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.a1c0c0fb.js → dropdown-default-textbox.d0f17d96.js} +3 -3
- package/dist/chunks/{dropdown-default-textbox.a1c0c0fb.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
- package/dist/chunks/{dropdown.7d4a8dfc.js → dropdown.a8037bca.js} +192 -201
- package/dist/chunks/dropdown.a8037bca.js.map +1 -0
- package/dist/chunks/{error-message.db315e68.js → error-message.bdcc1020.js} +2 -2
- package/dist/chunks/{error-message.db315e68.js.map → error-message.bdcc1020.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.3135f86c.js → fixed-scroller.82ef6187.js} +2 -2
- package/dist/chunks/{fixed-scroller.3135f86c.js.map → fixed-scroller.82ef6187.js.map} +1 -1
- package/dist/chunks/{footer-actions.32891b25.js → footer-actions.58d14a16.js} +4 -4
- package/dist/chunks/{footer-actions.32891b25.js.map → footer-actions.58d14a16.js.map} +1 -1
- package/dist/chunks/{index.ec632d95.js → index.0a30d358.js} +6 -6
- package/dist/chunks/{index.ec632d95.js.map → index.0a30d358.js.map} +1 -1
- package/dist/chunks/{index.596c4d0a.js → index.1deef79e.js} +2 -2
- package/dist/chunks/{index.596c4d0a.js.map → index.1deef79e.js.map} +1 -1
- package/dist/chunks/index.3c69be27.js +85 -0
- package/dist/chunks/index.3c69be27.js.map +1 -0
- package/dist/chunks/index.561786f6.js +126 -0
- package/dist/chunks/index.561786f6.js.map +1 -0
- package/dist/chunks/{index.9e40ffeb.js → index.614a5138.js} +2 -2
- package/dist/chunks/{index.9e40ffeb.js.map → index.614a5138.js.map} +1 -1
- package/dist/chunks/{index.4b6211c7.js → index.854d6498.js} +27 -27
- package/dist/chunks/{index.4b6211c7.js.map → index.854d6498.js.map} +1 -1
- package/dist/chunks/{index.30948302.js → index.a48e7f99.js} +5 -5
- package/dist/chunks/{index.30948302.js.map → index.a48e7f99.js.map} +1 -1
- package/dist/chunks/{index.444d221f.js → index.bd1d28d0.js} +3 -3
- package/dist/chunks/{index.444d221f.js.map → index.bd1d28d0.js.map} +1 -1
- package/dist/chunks/{index.94acf214.js → index.c8621e8e.js} +3 -3
- package/dist/chunks/{index.94acf214.js.map → index.c8621e8e.js.map} +1 -1
- package/dist/chunks/{index.9536a077.js → index.ccc7e8d7.js} +3 -3
- package/dist/chunks/{index.9536a077.js.map → index.ccc7e8d7.js.map} +1 -1
- package/dist/chunks/{index.d97166c6.js → index.e29a6907.js} +3 -3
- package/dist/chunks/index.e29a6907.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.95a65534.js → listbox-option-tag.8708be60.js} +3 -3
- package/dist/chunks/{listbox-option-tag.95a65534.js.map → listbox-option-tag.8708be60.js.map} +1 -1
- package/dist/chunks/{loading-button.e8060c04.js → loading-button.692dbdc8.js} +2 -2
- package/dist/chunks/{loading-button.e8060c04.js.map → loading-button.692dbdc8.js.map} +1 -1
- package/dist/chunks/{payment-method.564ed43a.js → payment-method.c55dd352.js} +2 -2
- package/dist/chunks/{payment-method.564ed43a.js.map → payment-method.c55dd352.js.map} +1 -1
- package/dist/chunks/{tooltip.e5deb137.js → tooltip.efddb5f3.js} +4 -4
- package/dist/chunks/{tooltip.e5deb137.js.map → tooltip.efddb5f3.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.8414d283.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.8414d283.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.3772a679.js → use-cached-selected-values.98a9ed01.js} +225 -206
- package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
- package/dist/code-snippet.js +131 -129
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +109 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +903 -866
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +19 -19
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +76 -74
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +15 -14
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +4 -4
- package/dist/index.js +81 -78
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +40 -41
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +72 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +123 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +174 -77
- package/package.json +9 -6
- package/dist/chunks/button-actions.a03a672f.js.map +0 -1
- package/dist/chunks/button.e5f5638f.js +0 -100
- package/dist/chunks/button.e5f5638f.js.map +0 -1
- package/dist/chunks/checkmark.a6ed8f47.js +0 -26
- package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
- package/dist/chunks/dropdown.7d4a8dfc.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.81e509f3.js +0 -147
- package/dist/chunks/index.81e509f3.js.map +0 -1
- package/dist/chunks/index.d97166c6.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.3772a679.js.map +0 -1
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as a, useSlots as
|
|
2
|
-
import { BentoAlert as
|
|
1
|
+
import { defineComponent as a, useSlots as u, computed as r, provide as m, toRef as d } from "vue";
|
|
2
|
+
import { BentoAlert as f } from "./alert.js";
|
|
3
3
|
import { F as y } from "./chunks/form-layout.types.a7a1438d.js";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as i } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
5
5
|
import { n as _ } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import { B as
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { B as p, c as v } from "./chunks/index.e29a6907.js";
|
|
7
|
+
import "./assets/index19.css";
|
|
8
8
|
const g = {}, h = /* @__PURE__ */ a({
|
|
9
9
|
...g,
|
|
10
10
|
__name: "form-layout",
|
|
@@ -20,8 +20,8 @@ const g = {}, h = /* @__PURE__ */ a({
|
|
|
20
20
|
loading: { type: Boolean, default: !1 }
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
const t = e, o =
|
|
24
|
-
return
|
|
23
|
+
const t = e, o = u(), s = i(o), n = r(() => t.form ? "form" : "div"), l = r(() => s("actions-left") || s("actions-right"));
|
|
24
|
+
return m(y, d(t, "loading")), { __sfc: !0, slots: o, hasSlot: s, props: t, formLayoutElement: n, hasActions: l, BentoAlert: f };
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
var b = function() {
|
|
@@ -54,21 +54,22 @@ const H = B.exports, C = ["warning", "critical", "highlight", "success"], F = {}
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
setup(e) {
|
|
57
|
-
|
|
57
|
+
const t = u(), o = i(t);
|
|
58
|
+
return { __sfc: !0, slots: t, hasSlot: o, BentoAlert: f };
|
|
58
59
|
}
|
|
59
60
|
});
|
|
60
61
|
var $ = function() {
|
|
61
62
|
var t = this, o = t._self._c, s = t._self._setupProxy;
|
|
62
|
-
return o("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), o(s.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
63
|
+
return o("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), s.hasSlot("message") ? o(s.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
63
64
|
return [t._t("message")];
|
|
64
|
-
}, proxy: !0 }], null, !0) })], 2);
|
|
65
|
+
}, proxy: !0 }], null, !0) }) : t._e()], 2);
|
|
65
66
|
}, x = [], S = /* @__PURE__ */ _(
|
|
66
67
|
T,
|
|
67
68
|
$,
|
|
68
69
|
x,
|
|
69
70
|
!1,
|
|
70
71
|
null,
|
|
71
|
-
"
|
|
72
|
+
"21e4c0c4",
|
|
72
73
|
null,
|
|
73
74
|
null
|
|
74
75
|
);
|
|
@@ -159,16 +160,16 @@ const K = E.exports, G = {}, I = /* @__PURE__ */ a({
|
|
|
159
160
|
* @values h1, h2, h3, h4, h5, h6, div, p, span
|
|
160
161
|
*/
|
|
161
162
|
el: {
|
|
162
|
-
type:
|
|
163
|
+
type: p.props.el.type,
|
|
163
164
|
required: !0,
|
|
164
165
|
validator: (e) => Object.values(v).includes(e)
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
168
|
setup(e) {
|
|
168
|
-
const t = e, o =
|
|
169
|
+
const t = e, o = u(), s = r(() => !t.subsection), n = i(o), l = r(() => ({
|
|
169
170
|
"b-form-layout-title--subsection": t.subsection
|
|
170
171
|
}));
|
|
171
|
-
return { __sfc: !0, slots: o, props: t, isSection: s, hasSlot: n, conditionalClasses: l, BentoTypography:
|
|
172
|
+
return { __sfc: !0, slots: o, props: t, isSection: s, hasSlot: n, conditionalClasses: l, BentoTypography: p };
|
|
172
173
|
}
|
|
173
174
|
});
|
|
174
175
|
var N = function() {
|
package/dist/form-layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;;;;;;;;;;qBCmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert v-if=\"hasSlot('message')\" variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType, useSlots } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","<template>\n <div class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n // Default proportion\n const DEFAULT_PROPORTION = 100;\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n // Sets DEFAULT_PROPORTION by default if `layout` is not in the list\n const computedLayout = computed(() =>\n BentoLayoutGroupProportions.includes(props.layout) ? props.layout : DEFAULT_PROPORTION\n );\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsupported\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n // Assings the correct layout class\n [`b-form-layout-group--${computedLayout.value}`]: true,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","__default__$1","DEFAULT_PROPORTION","computedLayout","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCqDHC,IAAA,CAAA;;;;;;;;;;;;;;;AA3BA,UAAAZ,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;;;;;;;;;;;;;;;;;;;qBClBGa,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCuDIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAnEAC,IAAA,KAkCAC,IAAAX;AAAA,MAAuB,MAAAQ,EAAA,SAAAP,EAAA,MAAA,IAAAA,EAAA,SAAAS;AAAA,IACiD,GAGxEE,IAAAZ,EAAA,OAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA;AAAA,MAE0C,CAAA,wBAAAU,EAAA,OAAA,GAAA;AAAA,IAE/B,EAAA;;;;;;;;;;;;;;;;;qBCmBtDE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlB,IAAAC,EAAA,GAyBAkB,IAAAd,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiB,IAAAZ,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
|
package/dist/header.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as E, ref as h, computed as T } from "vue";
|
|
2
2
|
import { u as U } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
3
|
-
import { B as C, c as D, a as L } from "./chunks/index.
|
|
3
|
+
import { B as C, c as D, a as L } from "./chunks/index.e29a6907.js";
|
|
4
4
|
import { u as N } from "./chunks/i18n.eb5b985b.js";
|
|
5
|
-
import { B as X } from "./chunks/button-actions-with-menu.
|
|
5
|
+
import { B as X } from "./chunks/button-actions-with-menu.bf968959.js";
|
|
6
6
|
import { c as I, a as F } from "./chunks/index.86453263.js";
|
|
7
7
|
import { r as m, t as l, e as O, g as P, d as Y, f as B } from "./chunks/index.f55fdc32.js";
|
|
8
8
|
import { e as G } from "./chunks/index.fdf12170.js";
|
|
9
9
|
import { e as H } from "./chunks/index.d80206ed.js";
|
|
10
|
-
import { a as g } from "./chunks/index.
|
|
10
|
+
import { a as g } from "./chunks/index.0a30d358.js";
|
|
11
11
|
import { g as W } from "./chunks/unique-id.a2a2b458.js";
|
|
12
12
|
import { I as $ } from "./chunks/info.8b6328aa.js";
|
|
13
13
|
import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
14
|
-
import "./assets/
|
|
14
|
+
import "./assets/index26.css";
|
|
15
15
|
function z(o, e) {
|
|
16
16
|
m(2, arguments);
|
|
17
17
|
var n = l(o), t = l(e), c = n.getFullYear() - t.getFullYear(), a = n.getMonth() - t.getMonth();
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./chunks/index.4c062058.js";
|
|
2
|
-
import { t as f, c } from "./chunks/use-bento-toast-controller.
|
|
3
|
-
import { u as P } from "./chunks/use-bento-toast-controller.
|
|
2
|
+
import { t as f, c } from "./chunks/use-bento-toast-controller.5dac1f3c.js";
|
|
3
|
+
import { u as P } from "./chunks/use-bento-toast-controller.5dac1f3c.js";
|
|
4
4
|
import { BentoAccordion as k, BentoAccordionItem as w } from "./accordion.js";
|
|
5
5
|
import { BentoActionBar as M } from "./action-bar.js";
|
|
6
6
|
import { BentoAlert as O, BentoAlertEvent as R, BentoAlertTypeOption as z, BentoAlertVariant as j } from "./alert.js";
|
|
7
|
-
import { a as K, b as U, B as Z } from "./chunks/button.
|
|
7
|
+
import { a as K, b as U, B as Z } from "./chunks/button.cb90b55c.js";
|
|
8
8
|
import { BentoColumnOverflow as Y, BentoDataGrid as H, BentoDatagridAriaSortValue as _, BentoDatagridEvent as q, BentoDatagridSortDirection as J, BentoDatagridStyleState as Q } from "./data-grid.js";
|
|
9
9
|
import { BentoCard as $, BentoCardBackground as ee, BentoCardTitleSize as te } from "./card.js";
|
|
10
10
|
import { BentoDatePicker as ne, BentoDatePickerEvent as re } from "./date-picker.js";
|
|
11
|
-
import { B as Be, a as ie } from "./chunks/index.
|
|
12
|
-
import { B as se, a as pe, u as ue } from "./chunks/dropdown.
|
|
13
|
-
import { B as de, a as fe } from "./chunks/checkbox.
|
|
11
|
+
import { B as Be, a as ie } from "./chunks/index.854d6498.js";
|
|
12
|
+
import { B as se, a as pe, u as ue } from "./chunks/dropdown.a8037bca.js";
|
|
13
|
+
import { B as de, a as fe } from "./chunks/checkbox.9f9c978a.js";
|
|
14
14
|
import { BentoClickOutside as xe } from "./click-outside.js";
|
|
15
|
-
import { BentoCodeSnippet as
|
|
15
|
+
import { BentoCodeSnippet as Se, BentoCodeSnippetEvent as ge, BentoCodeSnippetSupportedLanguage as Te, BentoCodeSnippetVariant as Ce } from "./code-snippet.js";
|
|
16
16
|
import { BentoCountry as De } from "./country.js";
|
|
17
17
|
import { c as he, B as Ee, a as Ie, u as Fe, b as Le } from "./chunks/country.types.002caff2.js";
|
|
18
18
|
import { BentoCurrency as Ve, BentoCurrencyISOCode as ke } from "./currency.js";
|
|
19
|
-
import { B as Ge, a as Me } from "./chunks/index.
|
|
19
|
+
import { B as Ge, a as Me } from "./chunks/index.614a5138.js";
|
|
20
20
|
import { B as Oe } from "./chunks/index.939dd5cf.js";
|
|
21
21
|
import { BentoEmptyState as ze, BentoEmptyStateImage as je, BentoEmptyStateImageVariant as Ne, BentoEmptyStateVariant as Ke } from "./empty-state.js";
|
|
22
22
|
import { BentoFilterBar as Ze, BentoFilterBarEvent as We, BentoFilterEvent as Ye, BentoFilterItemType as He } from "./filter-bar.js";
|
|
@@ -25,16 +25,16 @@ import { BentoImage as et, BentoImageAspectRatio as tt, BentoImageObjectFit as o
|
|
|
25
25
|
import { BentoInfoIcon as rt } from "./info-icon.js";
|
|
26
26
|
import { BentoInputField as Bt, BentoInputFieldElementPosition as it, BentoInputFieldEvent as mt, BentoInputFieldStateClass as st, BentoInputFieldType as pt, BentoInputFieldVariant as ut } from "./input-field.js";
|
|
27
27
|
import { BentoLoadingIndicator as dt, BentoLoadingIndicatorEvent as ft } from "./loading-indicator.js";
|
|
28
|
-
import { B as xt, a as yt } from "./chunks/index.
|
|
29
|
-
import { B as
|
|
30
|
-
import { d as vt, f as Dt, g as bt, B as ht, e as Et, c as It, a as Ft, b as Lt } from "./chunks/base-modal.
|
|
28
|
+
import { B as xt, a as yt } from "./chunks/index.bd1d28d0.js";
|
|
29
|
+
import { B as gt, a as Tt } from "./chunks/index.a48e7f99.js";
|
|
30
|
+
import { d as vt, f as Dt, g as bt, B as ht, e as Et, c as It, a as Ft, b as Lt } from "./chunks/base-modal.4fb7528b.js";
|
|
31
31
|
import { BentoModal as Vt } from "./modal.js";
|
|
32
32
|
import { BentoModalFullscreen as wt, BentoModalFullscreenPage as Gt } from "./modal-fullscreen.js";
|
|
33
33
|
import { BentoHeader as At } from "./header.js";
|
|
34
34
|
import { BentoPagination as Rt } from "./pagination.js";
|
|
35
|
-
import { B as jt } from "./chunks/payment-method.
|
|
35
|
+
import { B as jt } from "./chunks/payment-method.c55dd352.js";
|
|
36
36
|
import { BentoPaymentMethodType as Kt } from "./payment-method.js";
|
|
37
|
-
import { a as Zt, B as Wt } from "./chunks/index.
|
|
37
|
+
import { a as Zt, B as Wt } from "./chunks/index.0a30d358.js";
|
|
38
38
|
import { BentoRadioButton as Ht, BentoRadioGroup as _t, BentoRadioGroupVariant as qt } from "./radio-group.js";
|
|
39
39
|
import { BentoSearchBar as Qt, BentoSearchBarEvent as Xt, BentoSearchBarInternalEvent as $t } from "./search-bar.js";
|
|
40
40
|
import { BentoSecondaryNav as to } from "./secondary-nav.js";
|
|
@@ -42,8 +42,8 @@ import { BentoSelectionCard as no, BentoSelectionCardGroup as ro, BentoSelection
|
|
|
42
42
|
import { BentoSegmentedControl as io, BentoSegmentedControlEvent as mo } from "./segmented-control.js";
|
|
43
43
|
import { BentoSidepanel as po, BentoSidepanelEvent as uo, BentoSidepanelPage as lo } from "./sidepanel.js";
|
|
44
44
|
import { BentoStatus as co, BentoStatusVariant as xo } from "./status.js";
|
|
45
|
-
import { BentoStep as
|
|
46
|
-
import { B as Do, a as bo } from "./chunks/index.
|
|
45
|
+
import { BentoStep as So, BentoStepper as go, BentoStepperTypeOption as To, BentoStepperVariantOption as Co } from "./stepper.js";
|
|
46
|
+
import { B as Do, a as bo } from "./chunks/index.3c69be27.js";
|
|
47
47
|
import { BentoSummaryGrid as Eo, BentoSummaryGridItemAmount as Io, BentoSummaryGridItemCustom as Fo, BentoSummaryGridItemNumeric as Lo, BentoSummaryGridItemPercentage as Po, BentoSummaryGridItemSize as Vo, BentoSummaryGridItemText as ko, BentoSummaryGridItemTrendDirection as wo } from "./summary-grid.js";
|
|
48
48
|
import { BentoTab as Mo, BentoTabs as Ao } from "./tabs.js";
|
|
49
49
|
import { BentoTag as Ro, BentoTagVariant as zo } from "./tag.js";
|
|
@@ -52,24 +52,25 @@ import { BentoTimeline as Uo, BentoTimelineGapUnit as Zo, BentoTimelineItem as W
|
|
|
52
52
|
import { BentoToast as Jo } from "./toast.js";
|
|
53
53
|
import { BentoToggle as Xo, BentoToggleLabelPosition as $o, BentoTogglePropClass as en } from "./toggle.js";
|
|
54
54
|
import { BentoTutorial as on } from "./tutorial.js";
|
|
55
|
-
import { B as rn, c as an, b as Bn, a as mn } from "./chunks/index.
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import { B as
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
55
|
+
import { B as rn, c as an, b as Bn, a as mn } from "./chunks/index.e29a6907.js";
|
|
56
|
+
import { BentoDashboardSection as pn, BentoDashboardTemplate as un } from "./dashboard-template.js";
|
|
57
|
+
import { BentoDataGridTemplate as dn } from "./data-grid-template.js";
|
|
58
|
+
import { B as cn, c as xn, a as yn, b as Sn } from "./chunks/button-actions.87e589e3.js";
|
|
59
|
+
import { B as Tn, a as Cn } from "./chunks/loading-button.692dbdc8.js";
|
|
60
|
+
import { BentoToggleButton as Dn } from "./button.js";
|
|
61
|
+
import { b as hn, b as En } from "./chunks/calendar.f02e0a5a.js";
|
|
62
|
+
import { c as Fn, b as Ln, c as Pn, b as Vn } from "./chunks/use-cached-selected-values.98a9ed01.js";
|
|
63
|
+
import { BentoDropdownAvatar as wn, BentoDropdownCountry as Gn, BentoDropdownCurrency as Mn, BentoDropdownPaymentMethod as An, BentoDropdownTag as On } from "./dropdown.js";
|
|
64
|
+
import { C as zn } from "./chunks/checkbox-input.1c3cc8ed.js";
|
|
65
|
+
import { BentoCheckboxGroup as Nn, BentoCheckboxGroupVariant as Kn } from "./checkbox.js";
|
|
66
|
+
import { R as Zn } from "./chunks/radio-input.c6550a9c.js";
|
|
66
67
|
import { shallowRef as x, ref as p } from "vue";
|
|
67
68
|
import * as n from "zod";
|
|
68
|
-
import { u as
|
|
69
|
-
import { D as
|
|
70
|
-
import { a as
|
|
71
|
-
import { B as
|
|
72
|
-
import { b as
|
|
69
|
+
import { u as Yn } from "./chunks/use-click-outside.941d1600.js";
|
|
70
|
+
import { D as _n } from "./chunks/date-input.9186a0bf.js";
|
|
71
|
+
import { a as Jn, B as Qn } from "./chunks/keyboard-navigation.bbc3d15c.js";
|
|
72
|
+
import { B as $n } from "./chunks/dropdown-default-textbox.d0f17d96.js";
|
|
73
|
+
import { b as tr, B as or, a as nr } from "./chunks/tooltip.efddb5f3.js";
|
|
73
74
|
function h(e) {
|
|
74
75
|
return e;
|
|
75
76
|
}
|
|
@@ -105,15 +106,15 @@ function E({ validationSchema: e }) {
|
|
|
105
106
|
}
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
|
-
const
|
|
109
|
+
const S = (e) => {
|
|
109
110
|
e.prototype[f] = c();
|
|
110
111
|
};
|
|
111
|
-
var
|
|
112
|
+
var g = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e))(g || {});
|
|
112
113
|
const u = (e) => {
|
|
113
114
|
document.body.classList.add(e);
|
|
114
|
-
},
|
|
115
|
+
}, T = {
|
|
115
116
|
install: async (e, t) => {
|
|
116
|
-
t != null && t.withToast &&
|
|
117
|
+
t != null && t.withToast && S(e), (t == null ? void 0 : t.theme) === "b-legacy-theme" ? (u(
|
|
117
118
|
"b-legacy-theme"
|
|
118
119
|
/* LEGACY */
|
|
119
120
|
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (t == null ? void 0 : t.theme) === "b-styleguide-theme" ? (u(
|
|
@@ -121,7 +122,7 @@ const u = (e) => {
|
|
|
121
122
|
/* STYLEGUIDE */
|
|
122
123
|
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css?used")) : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css?used"), t != null && t.withUtilityClasses && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css?used");
|
|
123
124
|
}
|
|
124
|
-
}, I =
|
|
125
|
+
}, I = T;
|
|
125
126
|
export {
|
|
126
127
|
k as BentoAccordion,
|
|
127
128
|
w as BentoAccordionItem,
|
|
@@ -131,10 +132,10 @@ export {
|
|
|
131
132
|
z as BentoAlertTypeOption,
|
|
132
133
|
j as BentoAlertVariant,
|
|
133
134
|
K as BentoButton,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
cn as BentoButtonActions,
|
|
136
|
+
xn as BentoButtonActionsLayout,
|
|
137
|
+
yn as BentoButtonActionsLayoutBasic,
|
|
138
|
+
Sn as BentoButtonActionsLayoutExtended,
|
|
138
139
|
U as BentoButtonPropClass,
|
|
139
140
|
Z as BentoButtonVariant,
|
|
140
141
|
$ as BentoCard,
|
|
@@ -142,23 +143,25 @@ export {
|
|
|
142
143
|
te as BentoCardTitleSize,
|
|
143
144
|
de as BentoCheckbox,
|
|
144
145
|
fe as BentoCheckboxEvent,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
Nn as BentoCheckboxGroup,
|
|
147
|
+
Kn as BentoCheckboxGroupVariant,
|
|
148
|
+
zn as BentoCheckboxState,
|
|
148
149
|
xe as BentoClickOutside,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
$n as BentoClickOutsideDirective,
|
|
151
|
+
Se as BentoCodeSnippet,
|
|
152
|
+
ge as BentoCodeSnippetEvent,
|
|
153
|
+
Te as BentoCodeSnippetSupportedLanguage,
|
|
154
|
+
Ce as BentoCodeSnippetVariant,
|
|
154
155
|
Y as BentoColumnOverflow,
|
|
155
156
|
De as BentoCountry,
|
|
156
157
|
he as BentoCountryCode,
|
|
157
158
|
Ee as BentoCountryVariant,
|
|
158
159
|
Ve as BentoCurrency,
|
|
159
160
|
ke as BentoCurrencyISOCode,
|
|
161
|
+
pn as BentoDashboardSection,
|
|
162
|
+
un as BentoDashboardTemplate,
|
|
160
163
|
H as BentoDataGrid,
|
|
161
|
-
|
|
164
|
+
dn as BentoDataGridTemplate,
|
|
162
165
|
_ as BentoDatagridAriaSortValue,
|
|
163
166
|
q as BentoDatagridEvent,
|
|
164
167
|
J as BentoDatagridSortDirection,
|
|
@@ -167,20 +170,20 @@ export {
|
|
|
167
170
|
Me as BentoDateFormat,
|
|
168
171
|
ne as BentoDatePicker,
|
|
169
172
|
re as BentoDatePickerEvent,
|
|
170
|
-
|
|
173
|
+
hn as BentoDatePickerFirstDayOfWeek,
|
|
171
174
|
Be as BentoDateRangePicker,
|
|
172
175
|
ie as BentoDateRangePickerEvent,
|
|
173
|
-
|
|
176
|
+
En as BentoDateRangePickerFirstDayOfWeek,
|
|
174
177
|
Oe as BentoDivider,
|
|
175
178
|
se as BentoDropdown,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
wn as BentoDropdownAvatar,
|
|
180
|
+
Gn as BentoDropdownCountry,
|
|
181
|
+
Mn as BentoDropdownCurrency,
|
|
182
|
+
Fn as BentoDropdownEvent,
|
|
183
|
+
Ln as BentoDropdownLazyLoadType,
|
|
184
|
+
An as BentoDropdownPaymentMethod,
|
|
182
185
|
pe as BentoDropdownSize,
|
|
183
|
-
|
|
186
|
+
On as BentoDropdownTag,
|
|
184
187
|
ze as BentoEmptyState,
|
|
185
188
|
je as BentoEmptyStateImage,
|
|
186
189
|
Ne as BentoEmptyStateImageVariant,
|
|
@@ -204,18 +207,18 @@ export {
|
|
|
204
207
|
st as BentoInputFieldStateClass,
|
|
205
208
|
pt as BentoInputFieldType,
|
|
206
209
|
ut as BentoInputFieldVariant,
|
|
207
|
-
|
|
208
|
-
|
|
210
|
+
Jn as BentoKeyboardNavigationDirective,
|
|
211
|
+
Qn as BentoKeyboardNavigationKeyDownEvent,
|
|
209
212
|
xt as BentoLink,
|
|
210
213
|
yt as BentoLinkVariant,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
Pn as BentoListboxEvent,
|
|
215
|
+
Vn as BentoListboxLazyLoadType,
|
|
216
|
+
Tn as BentoLoadingButton,
|
|
217
|
+
Cn as BentoLoadingButtonState,
|
|
215
218
|
dt as BentoLoadingIndicator,
|
|
216
219
|
ft as BentoLoadingIndicatorEvent,
|
|
217
|
-
|
|
218
|
-
|
|
220
|
+
gt as BentoMenu,
|
|
221
|
+
Tt as BentoMenuEvent,
|
|
219
222
|
Vt as BentoModal,
|
|
220
223
|
vt as BentoModalColumnLayoutVariant,
|
|
221
224
|
Dt as BentoModalDialogType,
|
|
@@ -233,7 +236,7 @@ export {
|
|
|
233
236
|
Zt as BentoPopover,
|
|
234
237
|
Wt as BentoPopoverPositions,
|
|
235
238
|
Ht as BentoRadioButton,
|
|
236
|
-
|
|
239
|
+
Zn as BentoRadioButtonStateClass,
|
|
237
240
|
_t as BentoRadioGroup,
|
|
238
241
|
qt as BentoRadioGroupVariant,
|
|
239
242
|
Qt as BentoSearchBar,
|
|
@@ -250,10 +253,10 @@ export {
|
|
|
250
253
|
lo as BentoSidepanelPage,
|
|
251
254
|
co as BentoStatus,
|
|
252
255
|
xo as BentoStatusVariant,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
So as BentoStep,
|
|
257
|
+
go as BentoStepper,
|
|
258
|
+
To as BentoStepperTypeOption,
|
|
259
|
+
Co as BentoStepperVariantOption,
|
|
257
260
|
Do as BentoStructuredList,
|
|
258
261
|
bo as BentoStructuredListItem,
|
|
259
262
|
Eo as BentoSummaryGrid,
|
|
@@ -269,7 +272,7 @@ export {
|
|
|
269
272
|
Ro as BentoTag,
|
|
270
273
|
zo as BentoTagVariant,
|
|
271
274
|
No as BentoTextarea,
|
|
272
|
-
|
|
275
|
+
g as BentoTheme,
|
|
273
276
|
Uo as BentoTimeline,
|
|
274
277
|
Zo as BentoTimelineGapUnit,
|
|
275
278
|
Wo as BentoTimelineItem,
|
|
@@ -278,22 +281,22 @@ export {
|
|
|
278
281
|
_o as BentoTimelineStatus,
|
|
279
282
|
Jo as BentoToast,
|
|
280
283
|
Xo as BentoToggle,
|
|
281
|
-
|
|
284
|
+
Dn as BentoToggleButton,
|
|
282
285
|
$o as BentoToggleLabelPosition,
|
|
283
286
|
en as BentoTogglePropClass,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
+
tr as BentoTooltipDirective,
|
|
288
|
+
or as BentoTooltipPosition,
|
|
289
|
+
nr as BentoTooltipState,
|
|
287
290
|
on as BentoTutorial,
|
|
288
291
|
rn as BentoTypography,
|
|
289
292
|
an as BentoTypographyElement,
|
|
290
293
|
Bn as BentoTypographyModifier,
|
|
291
294
|
mn as BentoTypographyVariant,
|
|
292
|
-
|
|
295
|
+
_n as DateFormat,
|
|
293
296
|
I as default,
|
|
294
297
|
h as toTypedSchema,
|
|
295
298
|
P as useBentoToastController,
|
|
296
|
-
|
|
299
|
+
Yn as useClickOutside,
|
|
297
300
|
Ie as useCountryCapital,
|
|
298
301
|
Fe as useCountryName,
|
|
299
302
|
Le as useCountryPhoneCode,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-toast-controller/install.ts","../src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","setTheme","theme","plugin","options","BentoVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAIb,EAAAA,EAAoB,UAAUC,CAAsB,IAAIC,EAAiB;AAIlF;ACZY,IAAAC,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAWZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAON,GAAKO,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTR,EAAaC,CAAG,IAGhBO,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ,GAEAC,IAAeF;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/composables/use-form-validate/use-form.ts","../src/composables/use-bento-toast-controller/install.ts","../src/install.ts"],"sourcesContent":["import { Ref, ref, shallowRef } from 'vue';\nimport * as z from 'zod';\nimport type { ZodSchema } from 'zod';\nimport { ErrorBag, UseForm } from './use-form.types';\n\n/**\n * Composable that tansforms a Zod schema into a Typed Schema that can be used alongside with {@see useForm}.\n *\n * This is meant to simulate the behavior of {@link @vee-validate/zod} {@see https://vee-validate.logaretm.com/v4/integrations/zod-schema-validation}.\n * Function that transform Zod’s schemas into something that can be understood by vee-validate\n *\n * @param {T extends ZodSchema} formSchema Zod schema to be transformed into a `vee-validate` schema\n * @returns {UseForm<T>} schema Schema transformed\n */\nexport function toTypedSchema<T extends ZodSchema>(formSchema: T) {\n return formSchema;\n}\n\n/**\n * Finds and returns the initial values of each of the values defined in the schema so that they\n * can be transformed into a reactive element.\n * @param {ZodSchema} schema Zod validation schema containing the definitions of each value to be used in the form\n * @returns Object with the items defined in the schema and their (default) values\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n * getInitialFormValues(validationSchema)\n *\n * Will return:\n *\n * {\n * name: 'Joe'\n * }\n *\n */\nfunction getInitialFormValues<T extends ZodSchema>(schema: T): z.infer<typeof schema> {\n if (!!z && schema instanceof z.ZodObject) {\n return Object.fromEntries(\n Object.entries(schema.shape).map(([key, value]) => {\n if (!!z && value instanceof z.ZodDefault) {\n // eslint-disable-next-line no-underscore-dangle\n return [key, value._def.defaultValue()];\n }\n\n if (!!z && value instanceof z.ZodObject) {\n return [key, getInitialFormValues(value)];\n }\n\n return [key, undefined];\n })\n ) as z.infer<typeof schema>;\n }\n\n return undefined;\n}\n\n/**\n * Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax\n * @param issue List of nested path elements\n * @returns Path with dots\n */\nfunction normalizeFormPath(issue: z.ZodIssue) {\n return issue.path.join('.');\n}\n\n/**\n * Composable that facilitates validating form data for Vue2 & Vue3 implementations with FormLayout\n * to ease the migration to Vue3.\n *\n * For Vue3 implementations use Vee-Validate.\n *\n * This provides a simplified version of Vee-Validate v4 implemented with Zod to validate a form schema.\n * It returns reactive values that can be used directly in form input elements with 'v-model' alongside\n * with functions to \"reset\" the data (sets values to default value) and a function to execute the\n * successful form validation process (through a callback).\n *\n * @param {UseForm<T>} props Form configuration object\n * @param {T extends ZodSchema} props.validationSchema Zod typed validation schema\n * @returns {Object} response - Composable with reactive form values and errors, and functions to handle the reactive data\n * @returns {Ref<ErrorBag<T>>} response.errorBag Object with all the form values and an array of each one of the errors (if any) per value\n * @returns {Ref<T>} response.errors Object with all the form values and the first error found for that field (if any)\n * @returns {Ref<T>} response.values Object with all the form values and their current value\n * @returns {() => void} response.handleReset Resets the form values to default (initial values) when it gets called\n * @returns {(callback: (values: T) => void) => () => void} response.submitForm Validates the data set in {response.values} and sets errors (if found) inside {response.errors} and {response.errorBag}.\n * When the validation is successful it calls the callback so the submit process can continue\n *\n * @example\n * const validationSchema = toTypedSchema(\n * z.object({\n * name: z\n * .string()\n * .min(3, { message: 'Name is required' })\n * .startsWith('Jane')\n * .max(4, { message: 'Name cannot be longer than 4 characters' })\n * .default('Joe'),\n * })\n * );\n *\n * const { values, errors, errorBag, submitForm, handleReset } = useForm({\n * validationSchema\n * });\n * const handleSubmit = submitForm(() => {\n * // Send data to API here\n * })\n *\n */\nexport function useForm<T extends ZodSchema>({ validationSchema }: UseForm<T>) {\n // Errors per field\n const errors = shallowRef<z.infer<typeof validationSchema>>({});\n // All errors per field\n const errorBag: Ref<ErrorBag<z.infer<typeof validationSchema>>> = ref({});\n const values = ref(getInitialFormValues(validationSchema));\n\n const cleanErrors = () => {\n errors.value = {};\n errorBag.value = {};\n };\n\n const resetForm = () => {\n cleanErrors();\n values.value = getInitialFormValues<T>(validationSchema);\n };\n\n const submitForm = submitted => () => {\n cleanErrors();\n\n // Run validations on the form data through the schema\n const validSchema = validationSchema.safeParse(values.value);\n\n // Update errors\n if (!validSchema.success) {\n (validSchema as z.SafeParseError<T>).error.issues.forEach(error => {\n const path = normalizeFormPath(error);\n\n // Add the first ocurrance of a fild error to the \"errors\" object\n if (!errors.value[path]) {\n errors.value[path] = error.message;\n }\n\n // Add each error to the \"errorBag\" per field array\n if (!errorBag.value[path]) {\n errorBag.value[path] = [error.message];\n } else {\n errorBag.value[path].push(error.message);\n }\n });\n } else {\n submitted(values.value);\n }\n };\n\n return {\n // Values\n errorBag,\n errors,\n values,\n\n // Methods\n handleReset: () => resetForm(),\n submitForm,\n };\n}\n","import { type App, isVue2, type Vue2 } from 'vue-demi';\nimport { createToastStack, toastStackInjectionKey } from './toast-stack';\n\n/**\n * This function is used to create and register global reactive state necessary fro the Toasts to operate.\n * @param {Vue} Vue A context application to register global state with.\n */\nexport default Vue => {\n if (isVue2) {\n // Add toast stack as a global property as there is no \"app.provide\" functionality in Vue2\n // eslint-disable-next-line no-param-reassign -- this is an official way of setting up instance properties on Vue\n (Vue as typeof Vue2).prototype[toastStackInjectionKey] = createToastStack();\n } else {\n (Vue as App).provide(toastStackInjectionKey, createToastStack());\n }\n};\n","import type { PluginObject } from 'vue';\nimport installToast from './composables/use-bento-toast-controller/install';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n installToast(Vue);\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["toTypedSchema","formSchema","getInitialFormValues","schema","z","key","value","normalizeFormPath","issue","useForm","validationSchema","errors","shallowRef","errorBag","ref","values","cleanErrors","resetForm","validSchema","submitted","error","path","installToast","Vue","toastStackInjectionKey","createToastStack","BentoTheme","setTheme","theme","plugin","options","BentoVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcO,SAASA,EAAmCC,GAAe;AACvD,SAAAA;AACX;AA4BA,SAASC,EAA0CC,GAAmC;AAClF,MAAMC,KAAKD,aAAkBC,EAAE;AAC3B,WAAO,OAAO;AAAA,MACV,OAAO,QAAQD,EAAO,KAAK,EAAE,IAAI,CAAC,CAACE,GAAKC,CAAK,MACnCF,KAAKE,aAAiBF,EAAE,aAEnB,CAACC,GAAKC,EAAM,KAAK,aAAc,CAAA,IAGpCF,KAAKE,aAAiBF,EAAE,YACnB,CAACC,GAAKH,EAAqBI,CAAK,CAAC,IAGrC,CAACD,GAAK,MAAS,CACzB;AAAA,IAAA;AAKb;AAOA,SAASE,EAAkBC,GAAmB;AACnC,SAAAA,EAAM,KAAK,KAAK,GAAG;AAC9B;AA2CgB,SAAAC,EAA6B,EAAE,kBAAAC,KAAgC;AAErE,QAAAC,IAASC,EAA6C,CAAA,CAAE,GAExDC,IAA4DC,EAAI,CAAA,CAAE,GAClEC,IAASD,EAAIZ,EAAqBQ,CAAgB,CAAC,GAEnDM,IAAc,MAAM;AACtB,IAAAL,EAAO,QAAQ,IACfE,EAAS,QAAQ;EAAC,GAGhBI,IAAY,MAAM;AACR,IAAAD,KACLD,EAAA,QAAQb,EAAwBQ,CAAgB;AAAA,EAAA;AA+BpD,SAAA;AAAA;AAAA,IAEH,UAAAG;AAAA,IACA,QAAAF;AAAA,IACA,QAAAI;AAAA;AAAA,IAGA,aAAa,MAAME,EAAU;AAAA,IAC7B,YApCe,OAAa,MAAM;AACtB,MAAAD;AAGZ,YAAME,IAAcR,EAAiB,UAAUK,EAAO,KAAK;AAGvD,MAACG,EAAY,UAiBbC,EAAUJ,EAAO,KAAK,IAhBrBG,EAAoC,MAAM,OAAO,QAAQ,CAASE,MAAA;AACzD,cAAAC,IAAOd,EAAkBa,CAAK;AAGpC,QAAKT,EAAO,MAAMU,CAAI,MACXV,EAAA,MAAMU,CAAI,IAAID,EAAM,UAI1BP,EAAS,MAAMQ,CAAI,IAGpBR,EAAS,MAAMQ,CAAI,EAAE,KAAKD,EAAM,OAAO,IAFvCP,EAAS,MAAMQ,CAAI,IAAI,CAACD,EAAM,OAAO;AAAA,MAGzC,CACH;AAAA,IAGL;AAAA,EAWA;AAER;ACnKA,MAAeE,IAAA,CAAOC,MAAA;AAIb,EAAAA,EAAoB,UAAUC,CAAsB,IAAIC,EAAiB;AAIlF;ACZY,IAAAC,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAWZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAON,GAAKO,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,aACTR,EAAaC,CAAG,IAGhBO,KAAA,gBAAAA,EAAS,WAAU,oBACnBH;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEG,KAAA,gBAAAA,EAAS,WAAU,wBAC1BH;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEG,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ,GAEAC,IAAeF;"}
|
package/dist/info-icon.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as n } from "vue";
|
|
2
|
-
import { c as i } from "./chunks/index.
|
|
2
|
+
import { c as i } from "./chunks/index.c8621e8e.js";
|
|
3
3
|
import { I as r } from "./chunks/info.8b6328aa.js";
|
|
4
|
-
import { b as s } from "./chunks/tooltip.
|
|
4
|
+
import { b as s } from "./chunks/tooltip.efddb5f3.js";
|
|
5
5
|
import { n as a } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import "./assets/
|
|
6
|
+
import "./assets/index28.css";
|
|
7
7
|
const p = n({
|
|
8
8
|
name: "bento-info-icon",
|
|
9
9
|
components: { InfoIcon: r },
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as W, useAttrs as Y, useSlots as j, ref as O, provide as q, toRef as K, computed as i, toRefs as X } from "vue";
|
|
2
|
-
import { I as z, B as G } from "./chunks/dropdown.
|
|
3
|
-
import { p as I, d as R, B as J } from "./chunks/index.
|
|
2
|
+
import { I as z, B as G } from "./chunks/dropdown.a8037bca.js";
|
|
3
|
+
import { p as I, d as R, B as J } from "./chunks/index.e29a6907.js";
|
|
4
4
|
import { g as u } from "./chunks/unique-id.a2a2b458.js";
|
|
5
5
|
import { g as Q } from "./chunks/get-slot-text.99c3d860.js";
|
|
6
6
|
import { u as Z } from "./chunks/aria-label.ac9651a5.js";
|
|
7
7
|
import { u as ee } from "./chunks/i18n.eb5b985b.js";
|
|
8
8
|
import { u as te } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
9
9
|
import { u as ae } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
10
|
-
import { E as oe, F as re } from "./chunks/error-message.
|
|
10
|
+
import { E as oe, F as re } from "./chunks/error-message.bdcc1020.js";
|
|
11
11
|
import { n as ie } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index44.css";
|
|
13
13
|
var d = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(d || {}), n = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(n || {}), p = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a))(p || {}), v = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(v || {}), ne = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(ne || {});
|
|
14
14
|
const de = {
|
|
15
15
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { B as o, L as r } from "./chunks/listbox-option-tag.
|
|
2
|
-
import { C as s, a as p, b as l } from "./chunks/calendar.
|
|
3
|
-
import { C as n, a as C } from "./chunks/copy.
|
|
4
|
-
import { C as m } from "./chunks/controls-group.
|
|
5
|
-
import { B as f, b as G, a as d, D as I } from "./chunks/dialog-page.
|
|
6
|
-
import { E as _, F as u } from "./chunks/error-message.
|
|
7
|
-
import { F as A } from "./chunks/fixed-scroller.
|
|
1
|
+
import { B as o, L as r } from "./chunks/listbox-option-tag.8708be60.js";
|
|
2
|
+
import { C as s, a as p, b as l } from "./chunks/calendar.f02e0a5a.js";
|
|
3
|
+
import { C as n, a as C } from "./chunks/copy.6808b2dc.js";
|
|
4
|
+
import { C as m } from "./chunks/controls-group.121a307d.js";
|
|
5
|
+
import { B as f, b as G, a as d, D as I } from "./chunks/dialog-page.7fd7d006.js";
|
|
6
|
+
import { E as _, F as u } from "./chunks/error-message.bdcc1020.js";
|
|
7
|
+
import { F as A } from "./chunks/fixed-scroller.82ef6187.js";
|
|
8
8
|
import { G as T, a as g } from "./chunks/grid-layout.e0025286.js";
|
|
9
|
-
import { B as D, a as F, u as b } from "./chunks/use-cached-selected-values.
|
|
9
|
+
import { B as D, a as F, u as b } from "./chunks/use-cached-selected-values.98a9ed01.js";
|
|
10
10
|
import { B as P } from "./chunks/teleport.84b0f20b.js";
|
|
11
11
|
export {
|
|
12
12
|
o as BentoAvatar,
|
package/dist/link.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as s, onUnmounted as l, computed as i } from "vue";
|
|
2
2
|
import { n as r } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index30.css";
|
|
4
4
|
var a = /* @__PURE__ */ ((n) => (n.START = "loading-start", n.END = "loading-end", n))(a || {});
|
|
5
5
|
const d = t({
|
|
6
6
|
name: "bento-loading-indicator",
|