init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
import './pricing-table.sass';
import { VNode, SetupContext } from 'vue';
export interface BPricingPlanProps {
isActive?: boolean;
amount: number;
interval: number;
}
export default function BPricingPlan(props: BPricingPlanProps, { attrs, slots }: SetupContext): VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;

View File

@@ -0,0 +1,35 @@
import "../../../src/components/pricingTable/pricing-table.sass";
import BPricingPlanPrice from './BPricingPlanPrice';
import { h } from 'vue';
export default function BPricingPlan(props, {
attrs,
slots
}) {
const nodes = [];
if (slots.header) {
nodes.push(h('div', {
class: 'plan-header'
}, slots.header()));
}
nodes.push(h('div', {
class: 'plan-pricing-container'
}, slots.price ? slots.price(props) : h(BPricingPlanPrice, props)));
nodes.push(h('div', {
class: 'plan-items'
}, slots.items && slots.items()));
if (slots.footer) {
nodes.push(h('div', {
class: 'plan-footer'
}, slots.footer()));
}
return h('section', { ...attrs,
class: ['pricing-plan', {
'is-active': !!props.isActive
}]
}, nodes);
}
//# sourceMappingURL=BPricingPlan.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/pricingTable/BPricingPlan.ts"],"names":[],"mappings":"AAAA,OAAO,yDAAP;AACA,OAAO,iBAAP,MAA8B,qBAA9B;AACA,SAAgB,CAAhB,QAAuC,KAAvC;AAQA,eAAc,SAAU,YAAV,CAAuB,KAAvB,EAAiD;AAAE,EAAA,KAAF;AAAS,EAAA;AAAT,CAAjD,EAA+E;AAC3F,QAAM,KAAK,GAAY,EAAvB;;AACA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,IAAA,KAAK,CAAC,IAAN,CAAW,CAAC,CAAC,KAAD,EAAQ;AAAE,MAAA,KAAK,EAAE;AAAT,KAAR,EAAkC,KAAK,CAAC,MAAN,EAAlC,CAAZ;AACD;;AACD,EAAA,KAAK,CAAC,IAAN,CACE,CAAC,CAAC,KAAD,EAAQ;AAAE,IAAA,KAAK,EAAE;AAAT,GAAR,EAA6C,KAAK,CAAC,KAAN,GAAc,KAAK,CAAC,KAAN,CAAY,KAAZ,CAAd,GAAmC,CAAC,CAAC,iBAAD,EAAoB,KAApB,CAAjF,CADH;AAGA,EAAA,KAAK,CAAC,IAAN,CAAW,CAAC,CAAC,KAAD,EAAQ;AAAE,IAAA,KAAK,EAAE;AAAT,GAAR,EAAiC,KAAK,CAAC,KAAN,IAAe,KAAK,CAAC,KAAN,EAAhD,CAAZ;;AACA,MAAI,KAAK,CAAC,MAAV,EAAkB;AAChB,IAAA,KAAK,CAAC,IAAN,CAAW,CAAC,CAAC,KAAD,EAAQ;AAAE,MAAA,KAAK,EAAE;AAAT,KAAR,EAAkC,KAAK,CAAC,MAAN,EAAlC,CAAZ;AACD;;AACD,SAAO,CAAC,CAAC,SAAD,EAAY,EAAE,GAAG,KAAL;AAAY,IAAA,KAAK,EAAE,CAAC,cAAD,EAAiB;AAAE,mBAAa,CAAC,CAAC,KAAK,CAAC;AAAvB,KAAjB;AAAnB,GAAZ,EAAsF,KAAtF,CAAR;AACD","sourcesContent":["import './pricing-table.sass';\nimport BPricingPlanPrice from './BPricingPlanPrice';\nimport { VNode, h, SetupContext } from 'vue';\n\nexport interface BPricingPlanProps {\n isActive?: boolean;\n amount: number;\n interval: number;\n}\n\nexport default function BPricingPlan(props: BPricingPlanProps, { attrs, slots }: SetupContext) {\n const nodes: VNode[] = [];\n if (slots.header) {\n nodes.push(h('div', { class: 'plan-header' }, slots.header()));\n }\n nodes.push(\n h('div', { class: 'plan-pricing-container' }, slots.price ? slots.price(props) : h(BPricingPlanPrice, props))\n );\n nodes.push(h('div', { class: 'plan-items' }, slots.items && slots.items()));\n if (slots.footer) {\n nodes.push(h('div', { class: 'plan-footer' }, slots.footer()));\n }\n return h('section', { ...attrs, class: ['pricing-plan', { 'is-active': !!props.isActive }] }, nodes);\n}\n"],"sourceRoot":"","file":"BPricingPlan.js"}

View File

@@ -0,0 +1,4 @@
declare const _default: import("vue").FunctionalComponent<{
tag?: string | undefined;
}, {}>;
export default _default;

View File

@@ -0,0 +1,3 @@
import { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';
export default getSimpleFunctionalComponent('plan-item');
//# sourceMappingURL=BPricingPlanItem.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/pricingTable/BPricingPlanItem.ts"],"names":[],"mappings":"AAAA,SAAS,4BAAT,QAA6C,0CAA7C;AAEA,eAAe,4BAA4B,CAAC,WAAD,CAA3C","sourcesContent":["import { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';\n\nexport default getSimpleFunctionalComponent('plan-item');\n"],"sourceRoot":"","file":"BPricingPlanItem.js"}

View File

@@ -0,0 +1,6 @@
import { SetupContext } from 'vue';
import { BPricingPlanProps } from './BPricingPlan';
export declare type BPricingPlanPriceProps = Omit<BPricingPlanProps, 'isActive'>;
export default function BPricingPlanPrice(props: BPricingPlanPriceProps, { attrs, slots }: SetupContext): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;

View File

@@ -0,0 +1,14 @@
import { h } from 'vue';
export default function BPricingPlanPrice(props, {
attrs,
slots
}) {
return h('div', { ...attrs,
class: 'plan-price'
}, [h('span', {
class: 'plan-price-amount'
}, [h('span', {
class: 'plan-price-currency'
}, slots.currency ? slots.currency() : '$'), `${props.amount}`]), `/${props.interval}`]);
}
//# sourceMappingURL=BPricingPlanPrice.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/pricingTable/BPricingPlanPrice.ts"],"names":[],"mappings":"AAAA,SAAuB,CAAvB,QAAgC,KAAhC;AAKA,eAAc,SAAU,iBAAV,CAA4B,KAA5B,EAA2D;AAAE,EAAA,KAAF;AAAS,EAAA;AAAT,CAA3D,EAAyF;AACrG,SAAO,CAAC,CAAC,KAAD,EAAQ,EAAE,GAAG,KAAL;AAAY,IAAA,KAAK,EAAE;AAAnB,GAAR,EAA2C,CACjD,CAAC,CAAC,MAAD,EAAS;AAAE,IAAA,KAAK,EAAE;AAAT,GAAT,EAAyC,CACxC,CAAC,CAAC,MAAD,EAAS;AAAE,IAAA,KAAK,EAAE;AAAT,GAAT,EAA2C,KAAK,CAAC,QAAN,GAAiB,KAAK,CAAC,QAAN,EAAjB,GAAoC,GAA/E,CADuC,EAExC,GAAG,KAAK,CAAC,MAAM,EAFyB,CAAzC,CADgD,EAKjD,IAAI,KAAK,CAAC,QAAQ,EAL+B,CAA3C,CAAR;AAOD","sourcesContent":["import { SetupContext, h } from 'vue';\nimport { BPricingPlanProps } from './BPricingPlan';\n\nexport type BPricingPlanPriceProps = Omit<BPricingPlanProps, 'isActive'>;\n\nexport default function BPricingPlanPrice(props: BPricingPlanPriceProps, { attrs, slots }: SetupContext) {\n return h('div', { ...attrs, class: 'plan-price' }, [\n h('span', { class: 'plan-price-amount' }, [\n h('span', { class: 'plan-price-currency' }, slots.currency ? slots.currency() : '$'),\n `${props.amount}`\n ]),\n `/${props.interval}`\n ]);\n}\n"],"sourceRoot":"","file":"BPricingPlanPrice.js"}

View File

@@ -0,0 +1,4 @@
declare const _default: import("vue").FunctionalComponent<{
tag?: string | undefined;
}, {}>;
export default _default;

View File

@@ -0,0 +1,3 @@
import { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';
export default getSimpleFunctionalComponent('pricing-table', 'article');
//# sourceMappingURL=BPricingTable.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/pricingTable/BPricingTable.ts"],"names":[],"mappings":"AAAA,SAAS,4BAAT,QAA6C,0CAA7C;AAEA,eAAe,4BAA4B,CAAC,eAAD,EAAkB,SAAlB,CAA3C","sourcesContent":["import { getSimpleFunctionalComponent } from '../../utils/getSimpleFunctionalComponent';\n\nexport default getSimpleFunctionalComponent('pricing-table', 'article');\n"],"sourceRoot":"","file":"BPricingTable.js"}

View File

@@ -0,0 +1,5 @@
import BPricingPlan from './BPricingPlan';
import BPricingPlanItem from './BPricingPlanItem';
import BPricingPlanPrice from './BPricingPlanPrice';
import BPricingTable from './BPricingTable';
export { BPricingPlanPrice, BPricingTable, BPricingPlanItem, BPricingPlan };

6
node_modules/buetify/lib/components/pricingTable/index.js generated vendored Executable file
View File

@@ -0,0 +1,6 @@
import BPricingPlan from './BPricingPlan';
import BPricingPlanItem from './BPricingPlanItem';
import BPricingPlanPrice from './BPricingPlanPrice';
import BPricingTable from './BPricingTable';
export { BPricingPlanPrice, BPricingTable, BPricingPlanItem, BPricingPlan };
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/components/pricingTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAP,MAAyB,gBAAzB;AACA,OAAO,gBAAP,MAA6B,oBAA7B;AACA,OAAO,iBAAP,MAA8B,qBAA9B;AACA,OAAO,aAAP,MAA0B,iBAA1B;AAEA,SAAS,iBAAT,EAA4B,aAA5B,EAA2C,gBAA3C,EAA6D,YAA7D","sourcesContent":["import BPricingPlan from './BPricingPlan';\nimport BPricingPlanItem from './BPricingPlanItem';\nimport BPricingPlanPrice from './BPricingPlanPrice';\nimport BPricingTable from './BPricingTable';\n\nexport { BPricingPlanPrice, BPricingTable, BPricingPlanItem, BPricingPlan };\n"],"sourceRoot":"","file":"index.js"}