-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from heyjul3s/chore/pkg-update
Chore/pkg update
- Loading branch information
Showing
15 changed files
with
1,613 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14.15.0 | ||
14.15.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
language: node_js | ||
node_js: | ||
- 14.5.0 | ||
- 14.15.1 | ||
|
||
before_script: | ||
- yarn build | ||
|
||
script: | ||
- yarn bundlesize | ||
- yarn lint | ||
- yarn test -u | ||
- yarn test | ||
|
||
after_success: yarn coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react'; | ||
import { createBaseComponents } from '@artifak/component-generator'; | ||
import React, { HTMLAttributes } from 'react'; | ||
import { createBaseComponents, Settings } from '@artifak/component-generator'; | ||
import { BlockBaseProps } from './typings'; | ||
import { BlockBase } from './BlockBase'; | ||
|
||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
export function createBlockComponents<S>( | ||
styles: S | ||
export function createBlockComponents<S, A = HTMLDivElement>( | ||
settings: { [key in keyof S]: Settings<HTMLAttributes<A>> } | ||
): { [key in keyof any]: React.FC<BlockBaseProps> } { | ||
return createBaseComponents<S, BlockBaseProps>(BlockBase, styles); | ||
return createBaseComponents<S, BlockBaseProps, A>(BlockBase, settings); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import { createBaseComponents } from '@artifak/component-generator'; | ||
import { HTMLAttributes } from 'react'; | ||
import { createBaseComponents, Settings } from '@artifak/component-generator'; | ||
import { TypographyBaseProps } from './typings'; | ||
import { TypographyBase } from './TypographyBase'; | ||
|
||
export function createTypographyComponents<S>( | ||
styles: S | ||
export function createTypographyComponents< | ||
S, | ||
A = HTMLHeadingElement & HTMLParagraphElement | ||
>( | ||
settings: { [key in keyof S]: Settings<HTMLAttributes<A>> } | ||
): { [key in keyof S]: React.FC<TypographyBaseProps> } { | ||
return createBaseComponents<S, TypographyBaseProps>(TypographyBase, styles); | ||
return createBaseComponents<S, TypographyBaseProps, A>( | ||
TypographyBase, | ||
settings | ||
); | ||
} |
Oops, something went wrong.