Skip to content

Commit 3f93584

Browse files
author
issayah
committed
BCol and BRow additions
1 parent 6b55daa commit 3f93584

File tree

4 files changed

+55
-3
lines changed

4 files changed

+55
-3
lines changed

src/types/BreakpointProps.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
export interface ColBreakpointProps {
2+
sm?: boolean | string | number
3+
md?: boolean | string | number
4+
lg?: boolean | string | number
5+
xl?: boolean | string | number
6+
xxl?: boolean | string | number
7+
}
8+
9+
export interface RowColsBreakpointProps {
10+
colsSm?: string | number
11+
colsMd?: string | number
12+
colsLg?: string | number
13+
colsXl?: string | number
14+
colsXxl?: string | number
15+
}
16+
17+
export interface OffsetBreakpointProps {
18+
offsetSm?: string | number
19+
offsetMd?: string | number
20+
offsetLg?: string | number
21+
offsetXl?: string | number
22+
offsetXxl?: string | number
23+
}
24+
25+
export interface OrderBreakpointProps {
26+
OrderSm?: string | number
27+
OrderMd?: string | number
28+
OrderLg?: string | number
29+
OrderXl?: string | number
30+
OrderXxl?: string | number
31+
}

src/types/components/BCol.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
import type Alignment from 'src/types/Alignment'
2+
import type {ColBreakpointProps, OffsetBreakpointProps, OrderBreakpointProps} from 'src/types'
3+
14
// Props
2-
export interface Props {}
5+
export interface Props extends ColBreakpointProps, OffsetBreakpointProps, OrderBreakpointProps {
6+
col?: boolean
7+
cols?: string | number
8+
offset?: string | number
9+
order?: string | number
10+
alignSelf?: Alignment.Vertical | 'auto'
11+
tag?: string
12+
}
313
// Emits
414

515
// Other

src/types/components/BRow.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
import type Alignment from 'src/types/Alignment'
2+
import type {RowColsBreakpointProps} from 'src/types'
13
// Props
2-
export interface Props {
3-
4+
export interface Props extends RowColsBreakpointProps {
5+
tag?: string
6+
gutterX?: string
7+
gutterY?: string
8+
alignV?: Alignment.Vertical
9+
alignH?: Alignment.Horizontal
10+
alignContent?: Alignment.Content
411
}
512
// Emits
613

src/types/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ export type {default as Animation} from './Animation'
33
export type {default as BootstrapVueOptions} from './BootstrapVueOptions'
44
export type {default as BreadcrumbItem} from './BreadcrumbItem'
55
export type {default as Breakpoint} from './Breakpoint'
6+
export type {ColBreakpointProps} from './BreakpointProps'
7+
export type {RowColsBreakpointProps} from './BreakpointProps'
8+
export type {OffsetBreakpointProps} from './BreakpointProps'
9+
export type {OrderBreakpointProps} from './BreakpointProps'
610
export type {default as ButtonType} from './ButtonType'
711
export type {default as ButtonVariant} from './ButtonVariant'
812
export type {default as ColorVariant} from './ColorVariant'

0 commit comments

Comments
 (0)