-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new flex container * fix gaps typing, refactor * Fix * deprecate old version, bump version * Fix formatting * Fix closing tags * Fix piechart * CR fixes * CR fixes * fix typing
- Loading branch information
Showing
25 changed files
with
727 additions
and
609 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
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,3 +1,3 @@ | ||
export { Container as GnuiContainer } from "./Container"; | ||
export type { ContainerProps as GnuiContainerProps } from "./Container"; | ||
export { Flex } from "./Container"; | ||
export { Flex, FlexContainer } from "./Container"; |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const AbsoluteLengthUnitSuffix = { | ||
Pixel: "px", | ||
Centimeter: "cm", | ||
Millimeter: "mm", | ||
Quarter: "Q", | ||
Inch: "in", | ||
Pica: "pc", | ||
Point: "pt", | ||
} as const; | ||
type AbsoluteLengthUnitSuffix = | ||
typeof AbsoluteLengthUnitSuffix[keyof typeof AbsoluteLengthUnitSuffix]; | ||
|
||
const RelativeLengthUnitSuffix = { | ||
REM: "rem", | ||
EM: "em", | ||
ViewWidth: "vw", | ||
ViewHeight: "vh", | ||
ViewMin: "vmin", | ||
ViewMax: "vmax", | ||
} as const; | ||
type RelativeLengthUnitSuffix = | ||
typeof RelativeLengthUnitSuffix[keyof typeof RelativeLengthUnitSuffix]; | ||
|
||
const MultiplicationUnitSuffix = { | ||
Percent: "%", | ||
Magnification: "", | ||
} as const; | ||
type MultiplicationUnitSuffix = | ||
typeof MultiplicationUnitSuffix[keyof typeof MultiplicationUnitSuffix]; | ||
|
||
const LengthUnitSuffix = { | ||
...AbsoluteLengthUnitSuffix, | ||
...RelativeLengthUnitSuffix, | ||
}; | ||
export type LengthUnitSuffix = | ||
typeof LengthUnitSuffix[keyof typeof LengthUnitSuffix]; | ||
|
||
const UnitSuffix = { | ||
...LengthUnitSuffix, | ||
...MultiplicationUnitSuffix, | ||
}; | ||
type UnitSuffix = typeof UnitSuffix[keyof typeof UnitSuffix]; | ||
|
||
export type Unit<Suffix extends UnitSuffix> = `${number}${Suffix}`; |
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
Oops, something went wrong.