@mirohq/design-system-types 1.0.0-pdl-removing-ffs.1 β 1.0.1-aria-label-icon-button.0
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/CHANGELOG.md +8 -2
- package/package.json +1 -1
- package/src/global.d.ts +21 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# @mirohq-internal/design-system-types
|
|
2
2
|
|
|
3
|
-
## 1.0.
|
|
3
|
+
## 1.0.1-aria-label-icon-button.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1184](https://github.com/miroapp-dev/design-system/pull/1184) [`31947ce2b`](https://github.com/miroapp-dev/design-system/commit/31947ce2b4879a129a31ca4814c28a343e384fff) Thanks [@ivanbanov](https://github.com/ivanbanov)! - Fix ButtonProps types and make usage as link to work properly.
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
6
12
|
|
|
7
|
-
- [#989](https://github.com/miroapp-dev/design-system/pull/989) [`
|
|
13
|
+
- [#989](https://github.com/miroapp-dev/design-system/pull/989) [`836217218`](https://github.com/miroapp-dev/design-system/commit/836217218998b655b74fc056ffe65bbe5bf099e5) Thanks [@skarensmoll](https://github.com/skarensmoll)! - π Design System β v1.0.0
|
|
8
14
|
|
|
9
15
|
Weβre excited to announce the first major release of our Design System! After years of iteration and collaboration, our system has matured into a stable foundation that bridges design and code β enabling teams to deliver consistent, scalable, and accessible experiences across Miro.
|
|
10
16
|
|
package/package.json
CHANGED
package/src/global.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes a type more readable in editor tooltips by flattening intersections.
|
|
3
|
+
* @example
|
|
4
|
+
* type Result = Pretty<{a: number} & {b: string}>
|
|
5
|
+
* // { a: number; b: string }
|
|
6
|
+
*/
|
|
7
|
+
export type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
8
|
+
|
|
1
9
|
/**
|
|
2
10
|
* Convert a type into a union of the value itself with null and undefined.
|
|
3
11
|
*
|
|
@@ -75,6 +83,19 @@ export type MergeUnion<T, U> = {
|
|
|
75
83
|
[K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
|
|
76
84
|
} & OmitFromUnion<U, keyof T>
|
|
77
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Adds properties from an object type to all members of a union type.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* Add properties to all union members
|
|
91
|
+
*
|
|
92
|
+
* type Union = { foo: number } | { bar: string }
|
|
93
|
+
* type Foo = { id: number }
|
|
94
|
+
* type Result = AddToUnion<Union, Foo>
|
|
95
|
+
* { foo: number, id: number } | { bar: string, id: number }
|
|
96
|
+
*/
|
|
97
|
+
export type AddToUnion<T, U> = T extends any ? T & U : never
|
|
98
|
+
|
|
78
99
|
/**
|
|
79
100
|
* Convert a type into a union of the value itself and an array of the value.
|
|
80
101
|
*
|