@trackunit/css-tailwind 0.0.182 → 0.0.183
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 +2 -3
- package/src/lib/objectUtils.d.ts +23 -0
- package/tailwind-base.generated.js +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.183",
|
|
4
4
|
"main": "./index.cjs.js",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"@trackunit/css-tailwind-custom-properties-plugin": "*",
|
|
13
13
|
"@trackunit/ui-design-tokens": "*",
|
|
14
14
|
"@trackunit/css-core": "*",
|
|
15
|
-
"@trackunit/css-component-tokens": "*"
|
|
16
|
-
"@trackunit/shared-utils": "*"
|
|
15
|
+
"@trackunit/css-component-tokens": "*"
|
|
17
16
|
},
|
|
18
17
|
"type": "commonjs",
|
|
19
18
|
"types": "./index.cjs.d.ts"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type Entries<TObject> = {
|
|
2
|
+
[Key in keyof TObject]: [Key, TObject[Key]];
|
|
3
|
+
}[keyof TObject][];
|
|
4
|
+
type KeyValueTupleToObject<TEntries extends readonly (readonly [PropertyKey, unknown])[]> = {
|
|
5
|
+
[Key in TEntries[number] as Key[0]]: Key[1];
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Converts an object into an array of properly typed key-value pairs.
|
|
9
|
+
*/
|
|
10
|
+
export declare const objectEntries: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => Entries<TObject>;
|
|
11
|
+
/**
|
|
12
|
+
* Converts an array of key-value pairs into an object.
|
|
13
|
+
*/
|
|
14
|
+
export declare const objectFromEntries: <const TEntries extends readonly (readonly [PropertyKey, unknown])[]>(entries: TEntries) => KeyValueTupleToObject<TEntries>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns an array of the **correctly typed** keys of a given object.
|
|
17
|
+
*/
|
|
18
|
+
export declare const objectKeys: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => (keyof TObject)[];
|
|
19
|
+
/**
|
|
20
|
+
* Returns an array of the **correctly typed** values of a given object.
|
|
21
|
+
*/
|
|
22
|
+
export declare const objectValues: <TObject extends Record<PropertyKey, unknown>>(object: TObject) => TObject[keyof TObject][];
|
|
23
|
+
export {};
|
|
@@ -375,17 +375,6 @@ var ComponentTokensPlugin = (0, import_plugin2.default)(function ({ addComponent
|
|
|
375
375
|
// libs/css/component-tokens/src/index.ts
|
|
376
376
|
var src_default = ComponentTokensPlugin;
|
|
377
377
|
|
|
378
|
-
// libs/shared/utils/src/typeUtils.ts
|
|
379
|
-
var objectEntries = object =>
|
|
380
|
-
// eslint-disable-next-line local-rules/no-typescript-assertion, local-rules/prefer-custom-object-entries
|
|
381
|
-
Object.entries(object);
|
|
382
|
-
var objectFromEntries = entries => {
|
|
383
|
-
return Object.fromEntries(entries);
|
|
384
|
-
};
|
|
385
|
-
var objectKeys = object => {
|
|
386
|
-
return Object.keys(object).map(key => key);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
378
|
// libs/ui/design-tokens/src/tokens/borderRadius.ts
|
|
390
379
|
var themeBorderRadius = {
|
|
391
380
|
none: "0",
|
|
@@ -1097,6 +1086,17 @@ var grids = {
|
|
|
1097
1086
|
},
|
|
1098
1087
|
};
|
|
1099
1088
|
|
|
1089
|
+
// libs/css/tailwind/src/lib/objectUtils.ts
|
|
1090
|
+
var objectEntries = object =>
|
|
1091
|
+
// eslint-disable-next-line local-rules/no-typescript-assertion, local-rules/prefer-custom-object-entries
|
|
1092
|
+
Object.entries(object);
|
|
1093
|
+
var objectFromEntries = entries => {
|
|
1094
|
+
return Object.fromEntries(entries);
|
|
1095
|
+
};
|
|
1096
|
+
var objectKeys = object => {
|
|
1097
|
+
return Object.keys(object).map(key => key);
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
1100
|
// libs/css/tailwind/src/lib/plugin/layouts.ts
|
|
1101
1101
|
var import_plugin4 = __toESM(require_plugin());
|
|
1102
1102
|
var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents, addVariant }) => {
|