@studiocubics/types 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,4 +8,10 @@ type PolymorphicComponentType<Props, DefaultElement extends ElementType = "div">
|
|
|
8
8
|
|
|
9
9
|
type SetState<T> = Dispatch<SetStateAction<T>>;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
type XPositions = "left" | "right" | "center";
|
|
12
|
+
type YPositions = "top" | "bottom" | "center";
|
|
13
|
+
type PositionString = `${YPositions} ${XPositions}`;
|
|
14
|
+
type PositionStringExclude<E extends PositionString> = Exclude<PositionString, E>;
|
|
15
|
+
type PositionStringEdge = PositionStringExclude<"center center">;
|
|
16
|
+
|
|
17
|
+
export type { AsProp, PolymorphicComponentProps, PolymorphicComponentType, PositionString, PositionStringEdge, PositionStringExclude, SetState, XPositions, YPositions };
|