@trackunit/css-tailwind 1.3.145 → 1.3.147
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.147",
|
|
4
4
|
"main": "./index.cjs.js",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tailwindcss": "3.4.3",
|
|
12
|
-
"@trackunit/css-component-tokens": "1.3.
|
|
13
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "1.3.
|
|
14
|
-
"@trackunit/ui-design-tokens": "1.3.
|
|
15
|
-
"@trackunit/css-core": "1.3.
|
|
12
|
+
"@trackunit/css-component-tokens": "1.3.141",
|
|
13
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "1.3.141",
|
|
14
|
+
"@trackunit/ui-design-tokens": "1.3.139",
|
|
15
|
+
"@trackunit/css-core": "1.3.140",
|
|
16
16
|
"@tailwindcss/typography": "^0.5.10"
|
|
17
17
|
},
|
|
18
18
|
"type": "commonjs",
|
package/src/lib/objectUtils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type Entries<TObject> = {
|
|
1
|
+
export type Entries<TObject> = Array<{
|
|
2
2
|
[Key in keyof TObject]: [Key, TObject[Key]];
|
|
3
|
-
}[keyof TObject]
|
|
4
|
-
type KeyValueTupleToObject<TEntries extends readonly
|
|
3
|
+
}[keyof TObject]>;
|
|
4
|
+
type KeyValueTupleToObject<TEntries extends ReadonlyArray<readonly [PropertyKey, unknown]>> = {
|
|
5
5
|
[Key in TEntries[number] as Key[0]]: Key[1];
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -11,13 +11,13 @@ export declare const objectEntries: <TObject extends Record<PropertyKey, unknown
|
|
|
11
11
|
/**
|
|
12
12
|
* Converts an array of key-value pairs into an object.
|
|
13
13
|
*/
|
|
14
|
-
export declare const objectFromEntries: <const TEntries extends readonly
|
|
14
|
+
export declare const objectFromEntries: <const TEntries extends ReadonlyArray<readonly [PropertyKey, unknown]>>(entries: TEntries) => KeyValueTupleToObject<TEntries>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns an array of the **correctly typed** keys of a given object.
|
|
17
17
|
*/
|
|
18
|
-
export declare const objectKeys: <TObject extends Record<PropertyKey, unknown>>(object: TObject) =>
|
|
18
|
+
export declare const objectKeys: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => Array<keyof TObject>;
|
|
19
19
|
/**
|
|
20
20
|
* Returns an array of the **correctly typed** values of a given object.
|
|
21
21
|
*/
|
|
22
|
-
export declare const objectValues: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => TObject[keyof TObject]
|
|
22
|
+
export declare const objectValues: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => Array<TObject[keyof TObject]>;
|
|
23
23
|
export {};
|
|
@@ -8250,7 +8250,7 @@ var grids = {
|
|
|
8250
8250
|
|
|
8251
8251
|
// libs/css/tailwind/src/lib/objectUtils.ts
|
|
8252
8252
|
var objectEntries = object =>
|
|
8253
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
8253
|
+
// eslint-disable-next-line local-rules/no-typescript-assertion
|
|
8254
8254
|
Object.entries(object);
|
|
8255
8255
|
var objectFromEntries = entries => {
|
|
8256
8256
|
return Object.fromEntries(entries);
|