Major overhaul to the theme and now functioning.

This commit is contained in:
2026-01-05 16:07:30 -05:00
parent 5823ca3c39
commit a475dfeab6
5218 changed files with 1643729 additions and 13229 deletions
@@ -0,0 +1,393 @@
// Styles
// Types
import type { Prop, PropType } from 'vue';
export declare const makeVColProps: <Defaults extends {
class?: unknown;
style?: unknown;
tag?: unknown;
cols?: unknown;
offset?: unknown;
order?: unknown;
alignSelf?: unknown;
lg?: unknown;
md?: unknown;
offsetLg?: unknown;
offsetMd?: unknown;
offsetSm?: unknown;
offsetXl?: unknown;
offsetXxl?: unknown;
orderLg?: unknown;
orderMd?: unknown;
orderSm?: unknown;
orderXl?: unknown;
orderXxl?: unknown;
sm?: unknown;
xl?: unknown;
xxl?: unknown;
} = {}>(defaults?: Defaults | undefined) => {
class: unknown extends Defaults["class"] ? PropType<any> : {
type: PropType<unknown extends Defaults["class"] ? any : any>;
default: unknown extends Defaults["class"] ? any : any;
};
style: unknown extends Defaults["style"] ? {
type: PropType<import("vue").StyleValue>;
default: null;
} : Omit<{
type: PropType<import("vue").StyleValue>;
default: null;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | import("vue").StyleValue>;
default: unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | NonNullable<import("vue").StyleValue>;
};
tag: unknown extends Defaults["tag"] ? {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
} : Omit<{
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : string | Defaults["tag"] | import("../../util/index.js").JSXComponent>;
default: unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : Defaults["tag"] | NonNullable<string | import("../../util/index.js").JSXComponent>;
};
cols: unknown extends Defaults["cols"] ? {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
} : Omit<{
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["cols"] ? string | number | boolean : string | number | boolean | Defaults["cols"]>;
default: unknown extends Defaults["cols"] ? string | number | boolean : Defaults["cols"] | NonNullable<string | number | boolean>;
};
offset: unknown extends Defaults["offset"] ? {
type: (NumberConstructor | StringConstructor)[];
default: null;
} : Omit<{
type: (NumberConstructor | StringConstructor)[];
default: null;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["offset"] ? string | number : string | number | Defaults["offset"]>;
default: unknown extends Defaults["offset"] ? string | number : Defaults["offset"] | NonNullable<string | number>;
};
order: unknown extends Defaults["order"] ? {
type: (NumberConstructor | StringConstructor)[];
default: null;
} : Omit<{
type: (NumberConstructor | StringConstructor)[];
default: null;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["order"] ? string | number : string | number | Defaults["order"]>;
default: unknown extends Defaults["order"] ? string | number : Defaults["order"] | NonNullable<string | number>;
};
alignSelf: unknown extends Defaults["alignSelf"] ? {
type: PropType<"auto" | "baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
} : Omit<{
type: PropType<"auto" | "baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["alignSelf"] ? "auto" | "baseline" | "center" | "end" | "start" | "stretch" : "auto" | "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignSelf"]>;
default: unknown extends Defaults["alignSelf"] ? "auto" | "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignSelf"] | NonNullable<"auto" | "baseline" | "center" | "end" | "start" | "stretch">;
};
lg: unknown extends Defaults["lg"] ? Prop<string | number | boolean, false> : {
type: PropType<unknown extends Defaults["lg"] ? string | number | boolean : string | number | boolean | Defaults["lg"]>;
default: unknown extends Defaults["lg"] ? string | number | boolean : Defaults["lg"] | NonNullable<string | number | boolean>;
};
md: unknown extends Defaults["md"] ? Prop<string | number | boolean, false> : {
type: PropType<unknown extends Defaults["md"] ? string | number | boolean : string | number | boolean | Defaults["md"]>;
default: unknown extends Defaults["md"] ? string | number | boolean : Defaults["md"] | NonNullable<string | number | boolean>;
};
offsetLg: unknown extends Defaults["offsetLg"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["offsetLg"] ? string | number : string | number | Defaults["offsetLg"]>;
default: unknown extends Defaults["offsetLg"] ? string | number : Defaults["offsetLg"] | NonNullable<string | number>;
};
offsetMd: unknown extends Defaults["offsetMd"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["offsetMd"] ? string | number : string | number | Defaults["offsetMd"]>;
default: unknown extends Defaults["offsetMd"] ? string | number : Defaults["offsetMd"] | NonNullable<string | number>;
};
offsetSm: unknown extends Defaults["offsetSm"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["offsetSm"] ? string | number : string | number | Defaults["offsetSm"]>;
default: unknown extends Defaults["offsetSm"] ? string | number : Defaults["offsetSm"] | NonNullable<string | number>;
};
offsetXl: unknown extends Defaults["offsetXl"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["offsetXl"] ? string | number : string | number | Defaults["offsetXl"]>;
default: unknown extends Defaults["offsetXl"] ? string | number : Defaults["offsetXl"] | NonNullable<string | number>;
};
offsetXxl: unknown extends Defaults["offsetXxl"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["offsetXxl"] ? string | number : string | number | Defaults["offsetXxl"]>;
default: unknown extends Defaults["offsetXxl"] ? string | number : Defaults["offsetXxl"] | NonNullable<string | number>;
};
orderLg: unknown extends Defaults["orderLg"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["orderLg"] ? string | number : string | number | Defaults["orderLg"]>;
default: unknown extends Defaults["orderLg"] ? string | number : Defaults["orderLg"] | NonNullable<string | number>;
};
orderMd: unknown extends Defaults["orderMd"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["orderMd"] ? string | number : string | number | Defaults["orderMd"]>;
default: unknown extends Defaults["orderMd"] ? string | number : Defaults["orderMd"] | NonNullable<string | number>;
};
orderSm: unknown extends Defaults["orderSm"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["orderSm"] ? string | number : string | number | Defaults["orderSm"]>;
default: unknown extends Defaults["orderSm"] ? string | number : Defaults["orderSm"] | NonNullable<string | number>;
};
orderXl: unknown extends Defaults["orderXl"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["orderXl"] ? string | number : string | number | Defaults["orderXl"]>;
default: unknown extends Defaults["orderXl"] ? string | number : Defaults["orderXl"] | NonNullable<string | number>;
};
orderXxl: unknown extends Defaults["orderXxl"] ? Prop<string | number, null> : {
type: PropType<unknown extends Defaults["orderXxl"] ? string | number : string | number | Defaults["orderXxl"]>;
default: unknown extends Defaults["orderXxl"] ? string | number : Defaults["orderXxl"] | NonNullable<string | number>;
};
sm: unknown extends Defaults["sm"] ? Prop<string | number | boolean, false> : {
type: PropType<unknown extends Defaults["sm"] ? string | number | boolean : string | number | boolean | Defaults["sm"]>;
default: unknown extends Defaults["sm"] ? string | number | boolean : Defaults["sm"] | NonNullable<string | number | boolean>;
};
xl: unknown extends Defaults["xl"] ? Prop<string | number | boolean, false> : {
type: PropType<unknown extends Defaults["xl"] ? string | number | boolean : string | number | boolean | Defaults["xl"]>;
default: unknown extends Defaults["xl"] ? string | number | boolean : Defaults["xl"] | NonNullable<string | number | boolean>;
};
xxl: unknown extends Defaults["xxl"] ? Prop<string | number | boolean, false> : {
type: PropType<unknown extends Defaults["xxl"] ? string | number | boolean : string | number | boolean | Defaults["xxl"]>;
default: unknown extends Defaults["xxl"] ? string | number | boolean : Defaults["xxl"] | NonNullable<string | number | boolean>;
};
};
export declare const VCol: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
} & {
class?: any;
lg?: string | number | boolean | undefined;
md?: string | number | boolean | undefined;
offsetLg?: string | number | undefined;
offsetMd?: string | number | undefined;
offsetSm?: string | number | undefined;
offsetXl?: string | number | undefined;
offsetXxl?: string | number | undefined;
orderLg?: string | number | undefined;
orderMd?: string | number | undefined;
orderSm?: string | number | undefined;
orderXl?: string | number | undefined;
orderXxl?: string | number | undefined;
sm?: string | number | boolean | undefined;
xl?: string | number | boolean | undefined;
xxl?: string | number | boolean | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
}, true, {}, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, {
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
} & {
class?: any;
lg?: string | number | boolean | undefined;
md?: string | number | boolean | undefined;
offsetLg?: string | number | undefined;
offsetMd?: string | number | undefined;
offsetSm?: string | number | undefined;
offsetXl?: string | number | undefined;
offsetXxl?: string | number | undefined;
orderLg?: string | number | undefined;
orderMd?: string | number | undefined;
orderSm?: string | number | undefined;
orderXl?: string | number | undefined;
orderXxl?: string | number | undefined;
sm?: string | number | boolean | undefined;
xl?: string | number | boolean | undefined;
xxl?: string | number | boolean | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
} & {
class?: any;
lg?: string | number | boolean | undefined;
md?: string | number | boolean | undefined;
offsetLg?: string | number | undefined;
offsetMd?: string | number | undefined;
offsetSm?: string | number | undefined;
offsetXl?: string | number | undefined;
offsetXxl?: string | number | undefined;
orderLg?: string | number | undefined;
orderMd?: string | number | undefined;
orderSm?: string | number | undefined;
orderXl?: string | number | undefined;
orderXxl?: string | number | undefined;
sm?: string | number | boolean | undefined;
xl?: string | number | boolean | undefined;
xxl?: string | number | boolean | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
cols: string | number | boolean;
offset: string | number;
order: string | number;
alignSelf: "auto" | "baseline" | "center" | "end" | "start" | "stretch";
}, {}, string, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
class: PropType<any>;
style: {
type: PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
cols: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
offset: {
type: (NumberConstructor | StringConstructor)[];
default: null;
};
order: {
type: (NumberConstructor | StringConstructor)[];
default: null;
};
alignSelf: {
type: PropType<"auto" | "baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
lg: Prop<string | number | boolean, false>;
md: Prop<string | number | boolean, false>;
offsetLg: Prop<string | number, null>;
offsetMd: Prop<string | number, null>;
offsetSm: Prop<string | number, null>;
offsetXl: Prop<string | number, null>;
offsetXxl: Prop<string | number, null>;
orderLg: Prop<string | number, null>;
orderMd: Prop<string | number, null>;
orderSm: Prop<string | number, null>;
orderXl: Prop<string | number, null>;
orderXxl: Prop<string | number, null>;
sm: Prop<string | number | boolean, false>;
xl: Prop<string | number | boolean, false>;
xxl: Prop<string | number | boolean, false>;
}, import("vue").ExtractPropTypes<{
class: PropType<any>;
style: {
type: PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
cols: {
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
default: boolean;
};
offset: {
type: (NumberConstructor | StringConstructor)[];
default: null;
};
order: {
type: (NumberConstructor | StringConstructor)[];
default: null;
};
alignSelf: {
type: PropType<"auto" | "baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
lg: Prop<string | number | boolean, false>;
md: Prop<string | number | boolean, false>;
offsetLg: Prop<string | number, null>;
offsetMd: Prop<string | number, null>;
offsetSm: Prop<string | number, null>;
offsetXl: Prop<string | number, null>;
offsetXxl: Prop<string | number, null>;
orderLg: Prop<string | number, null>;
orderMd: Prop<string | number, null>;
orderSm: Prop<string | number, null>;
orderXl: Prop<string | number, null>;
orderXxl: Prop<string | number, null>;
sm: Prop<string | number | boolean, false>;
xl: Prop<string | number | boolean, false>;
xxl: Prop<string | number | boolean, false>;
}>>;
export type VCol = InstanceType<typeof VCol>;
@@ -0,0 +1,128 @@
// Styles
import "./VGrid.css";
// Composables
import { makeComponentProps } from "../../composables/component.js";
import { breakpoints } from "../../composables/display.js";
import { makeTagProps } from "../../composables/tag.js"; // Utilities
import { capitalize, computed, h } from 'vue';
import { genericComponent, propsFactory } from "../../util/index.js"; // Types
const breakpointProps = (() => {
return breakpoints.reduce((props, val) => {
props[val] = {
type: [Boolean, String, Number],
default: false
};
return props;
}, {});
})();
const offsetProps = (() => {
return breakpoints.reduce((props, val) => {
const offsetKey = 'offset' + capitalize(val);
props[offsetKey] = {
type: [String, Number],
default: null
};
return props;
}, {});
})();
const orderProps = (() => {
return breakpoints.reduce((props, val) => {
const orderKey = 'order' + capitalize(val);
props[orderKey] = {
type: [String, Number],
default: null
};
return props;
}, {});
})();
const propMap = {
col: Object.keys(breakpointProps),
offset: Object.keys(offsetProps),
order: Object.keys(orderProps)
};
function breakpointClass(type, prop, val) {
let className = type;
if (val == null || val === false) {
return undefined;
}
if (prop) {
const breakpoint = prop.replace(type, '');
className += `-${breakpoint}`;
}
if (type === 'col') {
className = 'v-' + className;
}
// Handling the boolean style prop when accepting [Boolean, String, Number]
// means Vue will not convert <v-col sm></v-col> to sm: true for us.
// Since the default is false, an empty string indicates the prop's presence.
if (type === 'col' && (val === '' || val === true)) {
// .v-col-md
return className.toLowerCase();
}
// .order-md-6
className += `-${val}`;
return className.toLowerCase();
}
const ALIGN_SELF_VALUES = ['auto', 'start', 'end', 'center', 'baseline', 'stretch'];
export const makeVColProps = propsFactory({
cols: {
type: [Boolean, String, Number],
default: false
},
...breakpointProps,
offset: {
type: [String, Number],
default: null
},
...offsetProps,
order: {
type: [String, Number],
default: null
},
...orderProps,
alignSelf: {
type: String,
default: null,
validator: str => ALIGN_SELF_VALUES.includes(str)
},
...makeComponentProps(),
...makeTagProps()
}, 'VCol');
export const VCol = genericComponent()({
name: 'VCol',
props: makeVColProps(),
setup(props, _ref) {
let {
slots
} = _ref;
const classes = computed(() => {
const classList = [];
// Loop through `col`, `offset`, `order` breakpoint props
let type;
for (type in propMap) {
propMap[type].forEach(prop => {
const value = props[prop];
const className = breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
const hasColClasses = classList.some(className => className.startsWith('v-col-'));
classList.push({
// Default to .v-col if no other col-{bp}-* classes generated nor `cols` specified.
'v-col': !hasColClasses || !props.cols,
[`v-col-${props.cols}`]: props.cols,
[`offset-${props.offset}`]: props.offset,
[`order-${props.order}`]: props.order,
[`align-self-${props.alignSelf}`]: props.alignSelf
});
return classList;
});
return () => h(props.tag, {
class: [classes.value, props.class],
style: props.style
}, slots.default?.());
}
});
//# sourceMappingURL=VCol.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,216 @@
// Styles
export declare const makeVContainerProps: <Defaults extends {
class?: unknown;
style?: unknown;
tag?: unknown;
height?: unknown;
maxHeight?: unknown;
maxWidth?: unknown;
minHeight?: unknown;
minWidth?: unknown;
width?: unknown;
fluid?: unknown;
} = {}>(defaults?: Defaults | undefined) => {
class: unknown extends Defaults["class"] ? import("vue").PropType<any> : {
type: import("vue").PropType<unknown extends Defaults["class"] ? any : any>;
default: unknown extends Defaults["class"] ? any : any;
};
style: unknown extends Defaults["style"] ? {
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
} : Omit<{
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
}, "default" | "type"> & {
type: import("vue").PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | import("vue").StyleValue>;
default: unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | NonNullable<import("vue").StyleValue>;
};
tag: unknown extends Defaults["tag"] ? {
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
} : Omit<{
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
}, "default" | "type"> & {
type: import("vue").PropType<unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : string | Defaults["tag"] | import("../../util/index.js").JSXComponent>;
default: unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : Defaults["tag"] | NonNullable<string | import("../../util/index.js").JSXComponent>;
};
height: unknown extends Defaults["height"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["height"] ? string | number : string | number | Defaults["height"]>;
default: unknown extends Defaults["height"] ? string | number : Defaults["height"] | NonNullable<string | number>;
};
maxHeight: unknown extends Defaults["maxHeight"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["maxHeight"] ? string | number : string | number | Defaults["maxHeight"]>;
default: unknown extends Defaults["maxHeight"] ? string | number : Defaults["maxHeight"] | NonNullable<string | number>;
};
maxWidth: unknown extends Defaults["maxWidth"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["maxWidth"] ? string | number : string | number | Defaults["maxWidth"]>;
default: unknown extends Defaults["maxWidth"] ? string | number : Defaults["maxWidth"] | NonNullable<string | number>;
};
minHeight: unknown extends Defaults["minHeight"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["minHeight"] ? string | number : string | number | Defaults["minHeight"]>;
default: unknown extends Defaults["minHeight"] ? string | number : Defaults["minHeight"] | NonNullable<string | number>;
};
minWidth: unknown extends Defaults["minWidth"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["minWidth"] ? string | number : string | number | Defaults["minWidth"]>;
default: unknown extends Defaults["minWidth"] ? string | number : Defaults["minWidth"] | NonNullable<string | number>;
};
width: unknown extends Defaults["width"] ? (NumberConstructor | StringConstructor)[] : {
type: import("vue").PropType<unknown extends Defaults["width"] ? string | number : string | number | Defaults["width"]>;
default: unknown extends Defaults["width"] ? string | number : Defaults["width"] | NonNullable<string | number>;
};
fluid: unknown extends Defaults["fluid"] ? {
type: BooleanConstructor;
default: boolean;
} : Omit<{
type: BooleanConstructor;
default: boolean;
}, "default" | "type"> & {
type: import("vue").PropType<unknown extends Defaults["fluid"] ? boolean : boolean | Defaults["fluid"]>;
default: unknown extends Defaults["fluid"] ? boolean : boolean | Defaults["fluid"];
};
};
export declare const VContainer: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
} & {
class?: any;
height?: string | number | undefined;
maxHeight?: string | number | undefined;
maxWidth?: string | number | undefined;
minHeight?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
}, true, {}, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, {
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
} & {
class?: any;
height?: string | number | undefined;
maxHeight?: string | number | undefined;
maxWidth?: string | number | undefined;
minHeight?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, {}, {}, {}, {}, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
} & {
class?: any;
height?: string | number | undefined;
maxHeight?: string | number | undefined;
maxWidth?: string | number | undefined;
minHeight?: string | number | undefined;
minWidth?: string | number | undefined;
width?: string | number | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
fluid: boolean;
}, {}, string, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
class: import("vue").PropType<any>;
style: {
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
height: (NumberConstructor | StringConstructor)[];
maxHeight: (NumberConstructor | StringConstructor)[];
maxWidth: (NumberConstructor | StringConstructor)[];
minHeight: (NumberConstructor | StringConstructor)[];
minWidth: (NumberConstructor | StringConstructor)[];
width: (NumberConstructor | StringConstructor)[];
fluid: {
type: BooleanConstructor;
default: boolean;
};
}, import("vue").ExtractPropTypes<{
class: import("vue").PropType<any>;
style: {
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
height: (NumberConstructor | StringConstructor)[];
maxHeight: (NumberConstructor | StringConstructor)[];
maxWidth: (NumberConstructor | StringConstructor)[];
minHeight: (NumberConstructor | StringConstructor)[];
minWidth: (NumberConstructor | StringConstructor)[];
width: (NumberConstructor | StringConstructor)[];
fluid: {
type: BooleanConstructor;
default: boolean;
};
}>>;
export type VContainer = InstanceType<typeof VContainer>;
@@ -0,0 +1,42 @@
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createVNode as _createVNode } from "vue";
// Styles
import "./VGrid.css";
// Composables
import { makeComponentProps } from "../../composables/component.js";
import { makeDimensionProps, useDimension } from "../../composables/dimensions.js";
import { useRtl } from "../../composables/locale.js";
import { makeTagProps } from "../../composables/tag.js"; // Utilities
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
export const makeVContainerProps = propsFactory({
fluid: {
type: Boolean,
default: false
},
...makeComponentProps(),
...makeDimensionProps(),
...makeTagProps()
}, 'VContainer');
export const VContainer = genericComponent()({
name: 'VContainer',
props: makeVContainerProps(),
setup(props, _ref) {
let {
slots
} = _ref;
const {
rtlClasses
} = useRtl();
const {
dimensionStyles
} = useDimension(props);
useRender(() => _createVNode(props.tag, {
"class": _normalizeClass(['v-container', {
'v-container--fluid': props.fluid
}, rtlClasses.value, props.class]),
"style": _normalizeStyle([dimensionStyles.value, props.style])
}, slots));
return {};
}
});
//# sourceMappingURL=VContainer.js.map
@@ -0,0 +1 @@
{"version":3,"file":"VContainer.js","names":["makeComponentProps","makeDimensionProps","useDimension","useRtl","makeTagProps","genericComponent","propsFactory","useRender","makeVContainerProps","fluid","type","Boolean","default","VContainer","name","props","setup","_ref","slots","rtlClasses","dimensionStyles","_createVNode","tag","_normalizeClass","value","class","_normalizeStyle","style"],"sources":["../../../src/components/VGrid/VContainer.tsx"],"sourcesContent":["// Styles\nimport './VGrid.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { useRtl } from '@/composables/locale'\nimport { makeTagProps } from '@/composables/tag'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVContainerProps = propsFactory({\n fluid: {\n type: Boolean,\n default: false,\n },\n\n ...makeComponentProps(),\n ...makeDimensionProps(),\n ...makeTagProps(),\n}, 'VContainer')\n\nexport const VContainer = genericComponent()({\n name: 'VContainer',\n\n props: makeVContainerProps(),\n\n setup (props, { slots }) {\n const { rtlClasses } = useRtl()\n const { dimensionStyles } = useDimension(props)\n\n useRender(() => (\n <props.tag\n class={[\n 'v-container',\n { 'v-container--fluid': props.fluid },\n rtlClasses.value,\n props.class,\n ]}\n style={[\n dimensionStyles.value,\n props.style,\n ]}\n v-slots={ slots }\n />\n ))\n\n return {}\n },\n})\n\nexport type VContainer = InstanceType<typeof VContainer>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,MAAM;AAAA,SACNC,YAAY,oCAErB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS;AAElD,OAAO,MAAMC,mBAAmB,GAAGF,YAAY,CAAC;EAC9CG,KAAK,EAAE;IACLC,IAAI,EAAEC,OAAO;IACbC,OAAO,EAAE;EACX,CAAC;EAED,GAAGZ,kBAAkB,CAAC,CAAC;EACvB,GAAGC,kBAAkB,CAAC,CAAC;EACvB,GAAGG,YAAY,CAAC;AAClB,CAAC,EAAE,YAAY,CAAC;AAEhB,OAAO,MAAMS,UAAU,GAAGR,gBAAgB,CAAC,CAAC,CAAC;EAC3CS,IAAI,EAAE,YAAY;EAElBC,KAAK,EAAEP,mBAAmB,CAAC,CAAC;EAE5BQ,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAM;MAAEE;IAAW,CAAC,GAAGhB,MAAM,CAAC,CAAC;IAC/B,MAAM;MAAEiB;IAAgB,CAAC,GAAGlB,YAAY,CAACa,KAAK,CAAC;IAE/CR,SAAS,CAAC,MAAAc,YAAA,CAAAN,KAAA,CAAAO,GAAA;MAAA,SAAAC,eAAA,CAEC,CACL,aAAa,EACb;QAAE,oBAAoB,EAAER,KAAK,CAACN;MAAM,CAAC,EACrCU,UAAU,CAACK,KAAK,EAChBT,KAAK,CAACU,KAAK,CACZ;MAAA,SAAAC,eAAA,CACM,CACLN,eAAe,CAACI,KAAK,EACrBT,KAAK,CAACY,KAAK,CACZ;IAAA,GACST,KAAK,CAElB,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,673 @@
.v-container {
width: 100%;
padding: 16px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 960px) {
.v-container {
max-width: 900px;
}
}
@media (min-width: 1280px) {
.v-container {
max-width: 1200px;
}
}
@media (min-width: 1920px) {
.v-container {
max-width: 1800px;
}
}
@media (min-width: 2560px) {
.v-container {
max-width: 2400px;
}
}
.v-container--fluid {
max-width: 100%;
}
.v-container.fill-height {
align-items: center;
display: flex;
flex-wrap: wrap;
}
.v-row {
display: flex;
flex-wrap: wrap;
flex: 1 1 auto;
margin: -12px;
}
.v-row + .v-row {
margin-top: 12px;
}
.v-row + .v-row--dense {
margin-top: 4px;
}
.v-row--dense {
margin: -4px;
}
.v-row--dense > .v-col,
.v-row--dense > [class*=v-col-] {
padding: 4px;
}
.v-row.v-row--no-gutters {
margin: 0;
}
.v-row.v-row--no-gutters > .v-col,
.v-row.v-row--no-gutters > [class*=v-col-] {
padding: 0;
}
.v-spacer {
flex-grow: 1;
}
.v-col-xxl,
.v-col-xxl-auto, .v-col-xxl-12, .v-col-xxl-11, .v-col-xxl-10, .v-col-xxl-9, .v-col-xxl-8, .v-col-xxl-7, .v-col-xxl-6, .v-col-xxl-5, .v-col-xxl-4, .v-col-xxl-3, .v-col-xxl-2, .v-col-xxl-1, .v-col-xl,
.v-col-xl-auto, .v-col-xl-12, .v-col-xl-11, .v-col-xl-10, .v-col-xl-9, .v-col-xl-8, .v-col-xl-7, .v-col-xl-6, .v-col-xl-5, .v-col-xl-4, .v-col-xl-3, .v-col-xl-2, .v-col-xl-1, .v-col-lg,
.v-col-lg-auto, .v-col-lg-12, .v-col-lg-11, .v-col-lg-10, .v-col-lg-9, .v-col-lg-8, .v-col-lg-7, .v-col-lg-6, .v-col-lg-5, .v-col-lg-4, .v-col-lg-3, .v-col-lg-2, .v-col-lg-1, .v-col-md,
.v-col-md-auto, .v-col-md-12, .v-col-md-11, .v-col-md-10, .v-col-md-9, .v-col-md-8, .v-col-md-7, .v-col-md-6, .v-col-md-5, .v-col-md-4, .v-col-md-3, .v-col-md-2, .v-col-md-1, .v-col-sm,
.v-col-sm-auto, .v-col-sm-12, .v-col-sm-11, .v-col-sm-10, .v-col-sm-9, .v-col-sm-8, .v-col-sm-7, .v-col-sm-6, .v-col-sm-5, .v-col-sm-4, .v-col-sm-3, .v-col-sm-2, .v-col-sm-1, .v-col,
.v-col-auto, .v-col-12, .v-col-11, .v-col-10, .v-col-9, .v-col-8, .v-col-7, .v-col-6, .v-col-5, .v-col-4, .v-col-3, .v-col-2, .v-col-1 {
width: 100%;
padding: 12px;
}
.v-col {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-1 {
margin-inline-start: 8.3333333333%;
}
.offset-2 {
margin-inline-start: 16.6666666667%;
}
.offset-3 {
margin-inline-start: 25%;
}
.offset-4 {
margin-inline-start: 33.3333333333%;
}
.offset-5 {
margin-inline-start: 41.6666666667%;
}
.offset-6 {
margin-inline-start: 50%;
}
.offset-7 {
margin-inline-start: 58.3333333333%;
}
.offset-8 {
margin-inline-start: 66.6666666667%;
}
.offset-9 {
margin-inline-start: 75%;
}
.offset-10 {
margin-inline-start: 83.3333333333%;
}
.offset-11 {
margin-inline-start: 91.6666666667%;
}
@media (min-width: 600px) {
.v-col-sm {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-sm-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-sm-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-sm-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-sm-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-sm-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-sm-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-sm-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-sm-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-sm-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-sm-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-sm-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-sm-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-sm-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-sm-0 {
margin-inline-start: 0;
}
.offset-sm-1 {
margin-inline-start: 8.3333333333%;
}
.offset-sm-2 {
margin-inline-start: 16.6666666667%;
}
.offset-sm-3 {
margin-inline-start: 25%;
}
.offset-sm-4 {
margin-inline-start: 33.3333333333%;
}
.offset-sm-5 {
margin-inline-start: 41.6666666667%;
}
.offset-sm-6 {
margin-inline-start: 50%;
}
.offset-sm-7 {
margin-inline-start: 58.3333333333%;
}
.offset-sm-8 {
margin-inline-start: 66.6666666667%;
}
.offset-sm-9 {
margin-inline-start: 75%;
}
.offset-sm-10 {
margin-inline-start: 83.3333333333%;
}
.offset-sm-11 {
margin-inline-start: 91.6666666667%;
}
}
@media (min-width: 960px) {
.v-col-md {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-md-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-md-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-md-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-md-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-md-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-md-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-md-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-md-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-md-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-md-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-md-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-md-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-md-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-md-0 {
margin-inline-start: 0;
}
.offset-md-1 {
margin-inline-start: 8.3333333333%;
}
.offset-md-2 {
margin-inline-start: 16.6666666667%;
}
.offset-md-3 {
margin-inline-start: 25%;
}
.offset-md-4 {
margin-inline-start: 33.3333333333%;
}
.offset-md-5 {
margin-inline-start: 41.6666666667%;
}
.offset-md-6 {
margin-inline-start: 50%;
}
.offset-md-7 {
margin-inline-start: 58.3333333333%;
}
.offset-md-8 {
margin-inline-start: 66.6666666667%;
}
.offset-md-9 {
margin-inline-start: 75%;
}
.offset-md-10 {
margin-inline-start: 83.3333333333%;
}
.offset-md-11 {
margin-inline-start: 91.6666666667%;
}
}
@media (min-width: 1280px) {
.v-col-lg {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-lg-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-lg-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-lg-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-lg-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-lg-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-lg-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-lg-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-lg-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-lg-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-lg-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-lg-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-lg-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-lg-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-lg-0 {
margin-inline-start: 0;
}
.offset-lg-1 {
margin-inline-start: 8.3333333333%;
}
.offset-lg-2 {
margin-inline-start: 16.6666666667%;
}
.offset-lg-3 {
margin-inline-start: 25%;
}
.offset-lg-4 {
margin-inline-start: 33.3333333333%;
}
.offset-lg-5 {
margin-inline-start: 41.6666666667%;
}
.offset-lg-6 {
margin-inline-start: 50%;
}
.offset-lg-7 {
margin-inline-start: 58.3333333333%;
}
.offset-lg-8 {
margin-inline-start: 66.6666666667%;
}
.offset-lg-9 {
margin-inline-start: 75%;
}
.offset-lg-10 {
margin-inline-start: 83.3333333333%;
}
.offset-lg-11 {
margin-inline-start: 91.6666666667%;
}
}
@media (min-width: 1920px) {
.v-col-xl {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-xl-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-xl-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-xl-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-xl-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-xl-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-xl-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-xl-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-xl-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-xl-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-xl-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-xl-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-xl-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-xl-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-xl-0 {
margin-inline-start: 0;
}
.offset-xl-1 {
margin-inline-start: 8.3333333333%;
}
.offset-xl-2 {
margin-inline-start: 16.6666666667%;
}
.offset-xl-3 {
margin-inline-start: 25%;
}
.offset-xl-4 {
margin-inline-start: 33.3333333333%;
}
.offset-xl-5 {
margin-inline-start: 41.6666666667%;
}
.offset-xl-6 {
margin-inline-start: 50%;
}
.offset-xl-7 {
margin-inline-start: 58.3333333333%;
}
.offset-xl-8 {
margin-inline-start: 66.6666666667%;
}
.offset-xl-9 {
margin-inline-start: 75%;
}
.offset-xl-10 {
margin-inline-start: 83.3333333333%;
}
.offset-xl-11 {
margin-inline-start: 91.6666666667%;
}
}
@media (min-width: 2560px) {
.v-col-xxl {
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
}
.v-col-xxl-auto {
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.v-col-xxl-1 {
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.v-col-xxl-2 {
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.v-col-xxl-3 {
flex: 0 0 25%;
max-width: 25%;
}
.v-col-xxl-4 {
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.v-col-xxl-5 {
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.v-col-xxl-6 {
flex: 0 0 50%;
max-width: 50%;
}
.v-col-xxl-7 {
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.v-col-xxl-8 {
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.v-col-xxl-9 {
flex: 0 0 75%;
max-width: 75%;
}
.v-col-xxl-10 {
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.v-col-xxl-11 {
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.v-col-xxl-12 {
flex: 0 0 100%;
max-width: 100%;
}
.offset-xxl-0 {
margin-inline-start: 0;
}
.offset-xxl-1 {
margin-inline-start: 8.3333333333%;
}
.offset-xxl-2 {
margin-inline-start: 16.6666666667%;
}
.offset-xxl-3 {
margin-inline-start: 25%;
}
.offset-xxl-4 {
margin-inline-start: 33.3333333333%;
}
.offset-xxl-5 {
margin-inline-start: 41.6666666667%;
}
.offset-xxl-6 {
margin-inline-start: 50%;
}
.offset-xxl-7 {
margin-inline-start: 58.3333333333%;
}
.offset-xxl-8 {
margin-inline-start: 66.6666666667%;
}
.offset-xxl-9 {
margin-inline-start: 75%;
}
.offset-xxl-10 {
margin-inline-start: 83.3333333333%;
}
.offset-xxl-11 {
margin-inline-start: 91.6666666667%;
}
}
@@ -0,0 +1,51 @@
@use '../../styles/settings'
@use '../../styles/tools'
@use './mixins' as *
@include tools.layer('components')
.v-container
@include make-container
@include make-container-max-widths
&--fluid
max-width: 100%
&.fill-height
align-items: center
display: flex
flex-wrap: wrap
// Row
//
// Rows contain and clear the floats of your columns.
.v-row
@include make-row
& + .v-row
margin-top: settings.$grid-gutter * .5
&--dense
margin-top: settings.$form-grid-gutter * .5
&--dense
margin: -(settings.$form-grid-gutter) * .5
> .v-col,
> [class*="v-col-"]
padding: settings.$form-grid-gutter * .5
// Remove the negative margin from default .v-row, then the horizontal padding
// from all immediate children columns (to prevent runaway style inheritance).
&.v-row--no-gutters
margin: 0
> .v-col,
> [class*="v-col-"]
padding: 0
.v-spacer
flex-grow: 1
// Columns
//
// Common styles for small and large grid columns
@include make-grid-columns
@@ -0,0 +1,402 @@
// Styles
// Types
import type { Prop, PropType } from 'vue';
export declare const makeVRowProps: <Defaults extends {
class?: unknown;
style?: unknown;
tag?: unknown;
dense?: unknown;
noGutters?: unknown;
align?: unknown;
justify?: unknown;
alignContent?: unknown;
alignContentLg?: unknown;
alignContentMd?: unknown;
alignContentSm?: unknown;
alignContentXl?: unknown;
alignContentXxl?: unknown;
alignLg?: unknown;
alignMd?: unknown;
alignSm?: unknown;
alignXl?: unknown;
alignXxl?: unknown;
justifyLg?: unknown;
justifyMd?: unknown;
justifySm?: unknown;
justifyXl?: unknown;
justifyXxl?: unknown;
} = {}>(defaults?: Defaults | undefined) => {
class: unknown extends Defaults["class"] ? PropType<any> : {
type: PropType<unknown extends Defaults["class"] ? any : any>;
default: unknown extends Defaults["class"] ? any : any;
};
style: unknown extends Defaults["style"] ? {
type: PropType<import("vue").StyleValue>;
default: null;
} : Omit<{
type: PropType<import("vue").StyleValue>;
default: null;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | import("vue").StyleValue>;
default: unknown extends Defaults["style"] ? import("vue").StyleValue : Defaults["style"] | NonNullable<import("vue").StyleValue>;
};
tag: unknown extends Defaults["tag"] ? {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
} : Omit<{
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : string | Defaults["tag"] | import("../../util/index.js").JSXComponent>;
default: unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : Defaults["tag"] | NonNullable<string | import("../../util/index.js").JSXComponent>;
};
dense: unknown extends Defaults["dense"] ? BooleanConstructor : {
type: PropType<unknown extends Defaults["dense"] ? boolean : boolean | Defaults["dense"]>;
default: unknown extends Defaults["dense"] ? boolean : boolean | Defaults["dense"];
};
noGutters: unknown extends Defaults["noGutters"] ? BooleanConstructor : {
type: PropType<unknown extends Defaults["noGutters"] ? boolean : boolean | Defaults["noGutters"]>;
default: unknown extends Defaults["noGutters"] ? boolean : boolean | Defaults["noGutters"];
};
align: unknown extends Defaults["align"] ? {
type: PropType<"baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
} : Omit<{
type: PropType<"baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["align"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["align"]>;
default: unknown extends Defaults["align"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["align"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
justify: unknown extends Defaults["justify"] ? {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
} : Omit<{
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["justify"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["justify"]>;
default: unknown extends Defaults["justify"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["justify"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContent: unknown extends Defaults["alignContent"] ? {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
} : Omit<{
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
}, "default" | "type"> & {
type: PropType<unknown extends Defaults["alignContent"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContent"]>;
default: unknown extends Defaults["alignContent"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContent"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContentLg: unknown extends Defaults["alignContentLg"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignContentLg"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContentLg"]>;
default: unknown extends Defaults["alignContentLg"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContentLg"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContentMd: unknown extends Defaults["alignContentMd"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignContentMd"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContentMd"]>;
default: unknown extends Defaults["alignContentMd"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContentMd"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContentSm: unknown extends Defaults["alignContentSm"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignContentSm"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContentSm"]>;
default: unknown extends Defaults["alignContentSm"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContentSm"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContentXl: unknown extends Defaults["alignContentXl"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignContentXl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContentXl"]>;
default: unknown extends Defaults["alignContentXl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContentXl"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignContentXxl: unknown extends Defaults["alignContentXxl"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignContentXxl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | Defaults["alignContentXxl"]>;
default: unknown extends Defaults["alignContentXxl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" : Defaults["alignContentXxl"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
};
alignLg: unknown extends Defaults["alignLg"] ? Prop<"baseline" | "center" | "end" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignLg"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignLg"]>;
default: unknown extends Defaults["alignLg"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignLg"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
alignMd: unknown extends Defaults["alignMd"] ? Prop<"baseline" | "center" | "end" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignMd"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignMd"]>;
default: unknown extends Defaults["alignMd"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignMd"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
alignSm: unknown extends Defaults["alignSm"] ? Prop<"baseline" | "center" | "end" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignSm"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignSm"]>;
default: unknown extends Defaults["alignSm"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignSm"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
alignXl: unknown extends Defaults["alignXl"] ? Prop<"baseline" | "center" | "end" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignXl"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignXl"]>;
default: unknown extends Defaults["alignXl"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignXl"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
alignXxl: unknown extends Defaults["alignXxl"] ? Prop<"baseline" | "center" | "end" | "start" | "stretch", null> : {
type: PropType<unknown extends Defaults["alignXxl"] ? "baseline" | "center" | "end" | "start" | "stretch" : "baseline" | "center" | "end" | "start" | "stretch" | Defaults["alignXxl"]>;
default: unknown extends Defaults["alignXxl"] ? "baseline" | "center" | "end" | "start" | "stretch" : Defaults["alignXxl"] | NonNullable<"baseline" | "center" | "end" | "start" | "stretch">;
};
justifyLg: unknown extends Defaults["justifyLg"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null> : {
type: PropType<unknown extends Defaults["justifyLg"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | Defaults["justifyLg"]>;
default: unknown extends Defaults["justifyLg"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : Defaults["justifyLg"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start">;
};
justifyMd: unknown extends Defaults["justifyMd"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null> : {
type: PropType<unknown extends Defaults["justifyMd"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | Defaults["justifyMd"]>;
default: unknown extends Defaults["justifyMd"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : Defaults["justifyMd"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start">;
};
justifySm: unknown extends Defaults["justifySm"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null> : {
type: PropType<unknown extends Defaults["justifySm"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | Defaults["justifySm"]>;
default: unknown extends Defaults["justifySm"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : Defaults["justifySm"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start">;
};
justifyXl: unknown extends Defaults["justifyXl"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null> : {
type: PropType<unknown extends Defaults["justifyXl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | Defaults["justifyXl"]>;
default: unknown extends Defaults["justifyXl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : Defaults["justifyXl"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start">;
};
justifyXxl: unknown extends Defaults["justifyXxl"] ? Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null> : {
type: PropType<unknown extends Defaults["justifyXxl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | Defaults["justifyXxl"]>;
default: unknown extends Defaults["justifyXxl"] ? "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" : Defaults["justifyXxl"] | NonNullable<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start">;
};
};
export declare const VRow: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
} & {
class?: any;
alignContentLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentSm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignLg?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignMd?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignSm?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXxl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
justifyLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifySm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
}, true, {}, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, {
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
} & {
class?: any;
alignContentLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentSm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignLg?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignMd?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignSm?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXxl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
justifyLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifySm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
} & {
class?: any;
alignContentLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentSm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignContentXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch" | undefined;
alignLg?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignMd?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignSm?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
alignXxl?: "baseline" | "center" | "end" | "start" | "stretch" | undefined;
justifyLg?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyMd?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifySm?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
justifyXxl?: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | undefined;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
style: import("vue").StyleValue;
tag: string | import("../../util/index.js").JSXComponent;
dense: boolean;
noGutters: boolean;
align: "baseline" | "center" | "end" | "start" | "stretch";
justify: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
alignContent: "center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch";
}, {}, string, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
class: PropType<any>;
style: {
type: PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
dense: BooleanConstructor;
noGutters: BooleanConstructor;
align: {
type: PropType<"baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
justify: {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
alignContent: {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
alignContentLg: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentMd: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentSm: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentXl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentXxl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignLg: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignMd: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignSm: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignXl: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignXxl: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
justifyLg: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyMd: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifySm: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyXl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyXxl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
}, import("vue").ExtractPropTypes<{
class: PropType<any>;
style: {
type: PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: PropType<string | import("../../util/index.js").JSXComponent>;
default: string;
};
dense: BooleanConstructor;
noGutters: BooleanConstructor;
align: {
type: PropType<"baseline" | "center" | "end" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
justify: {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
alignContent: {
type: PropType<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch">;
default: null;
validator: (str: any) => boolean;
};
alignContentLg: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentMd: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentSm: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentXl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignContentXxl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start" | "stretch", null>;
alignLg: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignMd: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignSm: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignXl: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
alignXxl: Prop<"baseline" | "center" | "end" | "start" | "stretch", null>;
justifyLg: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyMd: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifySm: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyXl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
justifyXxl: Prop<"center" | "end" | "space-around" | "space-between" | "space-evenly" | "start", null>;
}>>;
export type VRow = InstanceType<typeof VRow>;
@@ -0,0 +1,122 @@
// Styles
import "./VGrid.css";
// Composables
import { makeComponentProps } from "../../composables/component.js";
import { breakpoints } from "../../composables/display.js";
import { makeTagProps } from "../../composables/tag.js"; // Utilities
import { capitalize, computed, h } from 'vue';
import { genericComponent, propsFactory } from "../../util/index.js"; // Types
const ALIGNMENT = ['start', 'end', 'center'];
const SPACE = ['space-between', 'space-around', 'space-evenly'];
function makeRowProps(prefix, def) {
return breakpoints.reduce((props, val) => {
const prefixKey = prefix + capitalize(val);
props[prefixKey] = def();
return props;
}, {});
}
const ALIGN_VALUES = [...ALIGNMENT, 'baseline', 'stretch'];
const alignValidator = str => ALIGN_VALUES.includes(str);
const alignProps = makeRowProps('align', () => ({
type: String,
default: null,
validator: alignValidator
}));
const JUSTIFY_VALUES = [...ALIGNMENT, ...SPACE];
const justifyValidator = str => JUSTIFY_VALUES.includes(str);
const justifyProps = makeRowProps('justify', () => ({
type: String,
default: null,
validator: justifyValidator
}));
const ALIGN_CONTENT_VALUES = [...ALIGNMENT, ...SPACE, 'stretch'];
const alignContentValidator = str => ALIGN_CONTENT_VALUES.includes(str);
const alignContentProps = makeRowProps('alignContent', () => ({
type: String,
default: null,
validator: alignContentValidator
}));
const propMap = {
align: Object.keys(alignProps),
justify: Object.keys(justifyProps),
alignContent: Object.keys(alignContentProps)
};
const classMap = {
align: 'align',
justify: 'justify',
alignContent: 'align-content'
};
function breakpointClass(type, prop, val) {
let className = classMap[type];
if (val == null) {
return undefined;
}
if (prop) {
// alignSm -> Sm
const breakpoint = prop.replace(type, '');
className += `-${breakpoint}`;
}
// .align-items-sm-center
className += `-${val}`;
return className.toLowerCase();
}
export const makeVRowProps = propsFactory({
dense: Boolean,
noGutters: Boolean,
align: {
type: String,
default: null,
validator: alignValidator
},
...alignProps,
justify: {
type: String,
default: null,
validator: justifyValidator
},
...justifyProps,
alignContent: {
type: String,
default: null,
validator: alignContentValidator
},
...alignContentProps,
...makeComponentProps(),
...makeTagProps()
}, 'VRow');
export const VRow = genericComponent()({
name: 'VRow',
props: makeVRowProps(),
setup(props, _ref) {
let {
slots
} = _ref;
const classes = computed(() => {
const classList = [];
// Loop through `align`, `justify`, `alignContent` breakpoint props
let type;
for (type in propMap) {
propMap[type].forEach(prop => {
const value = props[prop];
const className = breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
classList.push({
'v-row--no-gutters': props.noGutters,
'v-row--dense': props.dense,
[`align-${props.align}`]: props.align,
[`justify-${props.justify}`]: props.justify,
[`align-content-${props.alignContent}`]: props.alignContent
});
return classList;
});
return () => h(props.tag, {
class: ['v-row', classes.value, props.class],
style: props.style
}, slots.default?.());
}
});
//# sourceMappingURL=VRow.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,107 @@
// Styles
export declare const VSpacer: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string;
} & {
class?: any;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
style: import("vue").StyleValue;
tag: string;
}, true, {}, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, {
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string;
} & {
class?: any;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, {}, {}, {}, {
style: import("vue").StyleValue;
tag: string;
}>;
__isFragment?: undefined;
__isTeleport?: undefined;
__isSuspense?: undefined;
} & import("vue").ComponentOptionsBase<{
style: string | false | import("vue").StyleValue[] | import("vue").CSSProperties | null;
tag: string;
} & {
class?: any;
} & {
$children?: {
default?: (() => import("vue").VNodeChild) | undefined;
} | {
$stable?: boolean | undefined;
} | (() => import("vue").VNodeChild) | import("vue").VNodeChild;
"v-slots"?: {
default?: false | (() => import("vue").VNodeChild) | undefined;
} | undefined;
} & {
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
style: import("vue").StyleValue;
tag: string;
}, {}, string, import("vue").SlotsType<Partial<{
default: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>[];
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
class: import("vue").PropType<any>;
style: {
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: StringConstructor;
default: string;
};
}, import("vue").ExtractPropTypes<{
class: import("vue").PropType<any>;
style: {
type: import("vue").PropType<import("vue").StyleValue>;
default: null;
};
tag: {
type: StringConstructor;
default: string;
};
}>>;
export type VSpacer = InstanceType<typeof VSpacer>;
@@ -0,0 +1,7 @@
// Styles
import "./VGrid.css";
// Utilities
import { createSimpleFunctional } from "../../util/index.js";
export const VSpacer = createSimpleFunctional('v-spacer', 'div', 'VSpacer');
//# sourceMappingURL=VSpacer.js.map
@@ -0,0 +1 @@
{"version":3,"file":"VSpacer.js","names":["createSimpleFunctional","VSpacer"],"sources":["../../../src/components/VGrid/VSpacer.ts"],"sourcesContent":["// Styles\nimport './VGrid.sass'\n\n// Utilities\nimport { createSimpleFunctional } from '@/util'\n\nexport const VSpacer = createSimpleFunctional('v-spacer', 'div', 'VSpacer')\n\nexport type VSpacer = InstanceType<typeof VSpacer>\n"],"mappings":"AAAA;AACA;;AAEA;AAAA,SACSA,sBAAsB;AAE/B,OAAO,MAAMC,OAAO,GAAGD,sBAAsB,CAAC,UAAU,EAAE,KAAK,EAAE,SAAS,CAAC","ignoreList":[]}
@@ -0,0 +1,77 @@
@use 'sass:map'
@use 'sass:math'
@use '../../styles/settings'
@use '../../styles/tools'
@mixin make-container($padding-x: settings.$container-padding-x)
width: 100%
padding: $padding-x
margin-right: auto
margin-left: auto
// For each breakpoint, define the maximum width of the container in a media query
@mixin make-container-max-widths($max-widths: settings.$container-max-widths, $breakpoints: settings.$grid-breakpoints)
@each $breakpoint, $container-max-width in $max-widths
@include tools.media-breakpoint-up($breakpoint, $breakpoints)
max-width: $container-max-width
@mixin make-row($gutter: settings.$grid-gutter)
display: flex
flex-wrap: wrap
flex: 1 1 auto
margin: -$gutter * .5
@mixin make-col-ready($gutter: settings.$grid-gutter)
// Prevent columns from becoming too narrow when at smaller grid tiers by
// always setting `width: 100%;`. This works because we use `flex` values
// later on to override this initial width.
width: 100%
padding: $gutter * .5
@mixin make-col($size, $columns: settings.$grid-columns)
flex: 0 0 math.percentage(math.div($size, $columns))
// Add a `max-width` to ensure content within each column does not blow out
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
// do not appear to require this.
max-width: math.percentage(math.div($size, $columns))
@mixin make-col-offset($size, $columns: settings.$grid-columns)
$num: math.div($size, $columns)
@if $num == 0
margin-inline-start: 0
@else
margin-inline-start: math.percentage($num)
@mixin make-grid-columns($columns: settings.$grid-columns, $gutter: settings.$grid-gutter, $breakpoints: settings.$grid-breakpoints)
// Common properties for all breakpoints
%grid-column
width: 100%
padding: $gutter * .5
@each $breakpoint in map.keys($breakpoints)
$infix: tools.breakpoint-infix($breakpoint, $breakpoints)
// Allow columns to stretch full width below their breakpoints
@for $i from 1 through $columns
.v-col#{$infix}-#{$i}
@extend %grid-column
.v-col#{$infix},
.v-col#{$infix}-auto
@extend %grid-column
@include tools.media-breakpoint-up($breakpoint, $breakpoints)
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
.v-col#{$infix}
flex-basis: 0
flex-grow: 1
max-width: 100%
.v-col#{$infix}-auto
flex: 0 0 auto
width: auto
max-width: 100% // Reset earlier grid tiers
@for $i from 1 through $columns
.v-col#{$infix}-#{$i}
@include make-col($i, $columns)
// `$columns - 1` because offsetting by the width of an entire row isn't possible
@for $i from 0 through $columns - 1
@if not ($infix == "" and $i == 0)
// Avoid emitting useless .offset-0
.offset#{$infix}-#{$i}
@include make-col-offset($i, $columns)
@@ -0,0 +1,4 @@
export { VContainer } from './VContainer.js';
export { VCol } from './VCol.js';
export { VRow } from './VRow.js';
export { VSpacer } from './VSpacer.js';
@@ -0,0 +1,5 @@
export { VContainer } from "./VContainer.js";
export { VCol } from "./VCol.js";
export { VRow } from "./VRow.js";
export { VSpacer } from "./VSpacer.js";
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","names":["VContainer","VCol","VRow","VSpacer"],"sources":["../../../src/components/VGrid/index.ts"],"sourcesContent":["export { VContainer } from './VContainer'\nexport { VCol } from './VCol'\nexport { VRow } from './VRow'\nexport { VSpacer } from './VSpacer'\n"],"mappings":"SAASA,UAAU;AAAA,SACVC,IAAI;AAAA,SACJC,IAAI;AAAA,SACJC,OAAO","ignoreList":[]}