Skip to content

Commit 2e5834e

Browse files
authored
Merge pull request #408 from kwiksilver3441/setup
Component type files fixed up
2 parents 3fdd4ab + bff6c21 commit 2e5834e

File tree

19 files changed

+223
-30
lines changed

19 files changed

+223
-30
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/Container.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type VerticalAlign from './VerticalAlign'
1+
import type {VerticalAlign} from 'src/types'
22

33
export type ContainerVerticalAlign = Exclude<VerticalAlign, 'baseline' | 'text-top' | 'text-bottom'>
44
export type ContainerHorizontalAlign = 'left' | 'center' | 'right'
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
import type {ColorVariant} from 'src/types'
2+
import type {BLinkProps} from 'src/types/components'
13
// Props
2-
export type LinkProps = Omit<Props, 'event'>
4+
export interface Props extends Omit<BLinkProps, 'event' | 'routerTag'> {
5+
pill?: boolean
6+
tag?: string
7+
variant?: ColorVariant
8+
textIndicator?: boolean
9+
dotIndicator?: boolean
10+
}
311
// Emits
412

513
// Other

src/types/components/BBreadcrumb/BBreadcrumb.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import type {BreadcrumbItem} from 'src/types'
12
// Props
23
export interface Props {
3-
items: Array<BreadcrumbItem> // TODO whatever this is
4+
items: Array<BreadcrumbItem>
45
}
56
// Emits
67

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
import type {BLinkProps} from 'src/types/components'
12
// Props
2-
3+
export interface Props extends Omit<BLinkProps, 'event' | 'routerTag'> {
4+
active?: boolean
5+
ariaCurrent?: string
6+
disabled?: boolean
7+
text?: string
8+
}
39
// Emits
410

511
// Other
Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1+
import type {ButtonVariant, InputSize, LinkTarget} from 'src/types'
2+
import type {BLinkProps} from 'src/types/components'
13
// Props
2-
4+
export interface Props extends BLinkProps {
5+
active?: boolean
6+
disabled?: boolean
7+
href?: string
8+
pill?: boolean
9+
pressed?: boolean
10+
rel?: string
11+
size?: InputSize
12+
squared?: boolean
13+
tag?: string
14+
target?: LinkTarget
15+
type?: string
16+
variant?: ButtonVariant
17+
}
318
// Emits
4-
19+
export interface Emits {
20+
(e: 'clicked', value: PointerEvent): void
21+
(e: 'update:pressed', value: boolean): void
22+
}
523
// Other

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/BDropdown/BDropdown.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type * as Popper from '@popperjs/core'
1+
import type Popper from '@popperjs/core'
22
import type {ButtonType, ButtonVariant, Size} from 'src/types'
33
// Props
44
export interface Props {
Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
1+
import type {InputType} from 'src/types'
2+
import type {FormCommonInputProps} from 'src/types/composables'
3+
14
// Props
2-
export interface Props {
3-
5+
export interface Props extends FormCommonInputProps {
6+
// debounce?: string | number
7+
max?: string | number
8+
min?: string | number
9+
// noWheel?: boolean
10+
step?: string | number
11+
type?: InputType
412
}
513
// Emits
6-
14+
export interface Emits {
15+
(e: 'update:modelValue', value: unknown): void
16+
(e: 'change', value: unknown): void
17+
(e: 'blur', value: unknown): void
18+
(e: 'input', value: unknown): void
19+
}
720
// Other
21+
type AllowedTypes =
22+
| 'text'
23+
| 'number'
24+
| 'email'
25+
| 'password'
26+
| 'search'
27+
| 'url'
28+
| 'tel'
29+
| 'date'
30+
| 'time'
31+
| 'range'
32+
| 'color'
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
// Props
1+
import type {FormCommonInputProps} from 'src/types/composables'
22

3+
// Props
4+
export interface Props extends FormCommonInputProps {
5+
noResize?: boolean
6+
rows?: string | number
7+
wrap?: string
8+
}
39
// Emits
4-
10+
export interface Emits {
11+
(e: 'update:modelValue', value: unknown): void
12+
(e: 'change', value: unknown): void
13+
(e: 'blur', value: unknown): void
14+
(e: 'input', value: unknown): void
15+
}
516
// Other

0 commit comments

Comments
 (0)