@purpurds/action 5.1.2 → 5.2.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/.rush/temp/ci_build/@purpurds/action/{be55730b06d1844646e974cad2834da8e1b4c1b4.untar.log → 5119afcc6b1be9c028acda22cdb4b3f657b6a629.untar.log} +2 -2
- package/.rush/temp/operation/ci_build/all.log +2 -2
- package/.rush/temp/operation/ci_build/state.json +1 -1
- package/.rush/temp/operation/test_unit/state.json +1 -1
- package/dist/action.cjs.js.map +1 -1
- package/dist/action.d.ts +1 -1
- package/dist/action.d.ts.map +1 -1
- package/dist/action.es.js.map +1 -1
- package/package.json +2 -2
- package/src/action.tsx +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time:
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/action/
|
|
1
|
+
Start time: Fri May 24 2024 07:47:55 GMT+0000 (Coordinated Universal Time)
|
|
2
|
+
Invoking "/usr/bin/tar -x -m -f /opt/actions-runner/_work/teliasaurus/teliasaurus/purpur/common/temp/build-cache/ci_build/@purpurds/action/5119afcc6b1be9c028acda22cdb4b3f657b6a629"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ rendering chunks...
|
|
|
12
12
|
[vite:dts] Start generate declaration files...
|
|
13
13
|
computing gzip size...
|
|
14
14
|
dist/action.cjs.js 0.33 kB │ gzip: 0.26 kB │ map: 1.57 kB
|
|
15
|
-
[vite:dts] Declaration files built in
|
|
15
|
+
[vite:dts] Declaration files built in 1020ms.
|
|
16
16
|
|
|
17
17
|
dist/action.es.js 0.29 kB │ gzip: 0.23 kB │ map: 1.59 kB
|
|
18
|
-
✓ built in 1.
|
|
18
|
+
✓ built in 1.11s
|
package/dist/action.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs.js","sources":["../src/action.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\n\nexport const VARIANT = {\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\",\n EXPRESSIVE: \"expressive\",\n} as const;\n\nexport const variants = Object.values(VARIANT);\nexport type Variant = (typeof VARIANT)[keyof typeof VARIANT];\n\nexport const SIZE = {\n SM: \"sm\",\n MD: \"md\",\n LG: \"lg\",\n} as const;\n\nexport const sizes = Object.values(SIZE);\nexport type Size = (typeof SIZE)[keyof typeof SIZE];\n\ntype DefaultProps<TVariant, T = object> = {\n
|
|
1
|
+
{"version":3,"file":"action.cjs.js","sources":["../src/action.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\n\nexport const VARIANT = {\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\",\n EXPRESSIVE: \"expressive\",\n} as const;\n\nexport const variants = Object.values(VARIANT);\nexport type Variant = (typeof VARIANT)[keyof typeof VARIANT];\n\nexport const SIZE = {\n SM: \"sm\",\n MD: \"md\",\n LG: \"lg\",\n} as const;\n\nexport const sizes = Object.values(SIZE);\nexport type Size = (typeof SIZE)[keyof typeof SIZE];\n\ntype DefaultProps<TVariant, T = object> = {\n [\"data-testid\"]?: string;\n children?: ReactNode;\n className?: string;\n fullWidth?: boolean;\n negative?: boolean;\n size?: Size;\n variant: TVariant | Variant;\n} & T;\n\nexport type UnionParams<TVariant> =\n | DefaultProps<TVariant, { iconOnly: boolean; [\"aria-label\"]: string }>\n | DefaultProps<TVariant, { [\"aria-label\"]?: string }>;\n\ntype UnionKeys<T> = T extends T ? keyof T : never;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype StrictUnionHelper<T, TAll> = T extends any\n ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>>\n : never;\n\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\nexport type ActionProps<TVariant extends string = Variant> = StrictUnion<UnionParams<TVariant>>;\n"],"names":["VARIANT","variants","SIZE","sizes"],"mappings":"gFAEO,MAAMA,EAAU,CACrB,QAAS,UACT,UAAW,YACX,WAAY,YACd,EAEaC,EAAW,OAAO,OAAOD,CAAO,EAGhCE,EAAO,CAClB,GAAI,KACJ,GAAI,KACJ,GAAI,IACN,EAEaC,EAAQ,OAAO,OAAOD,CAAI"}
|
package/dist/action.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export declare const SIZE: {
|
|
|
15
15
|
export declare const sizes: ("sm" | "md" | "lg")[];
|
|
16
16
|
export type Size = (typeof SIZE)[keyof typeof SIZE];
|
|
17
17
|
type DefaultProps<TVariant, T = object> = {
|
|
18
|
+
["data-testid"]?: string;
|
|
18
19
|
children?: ReactNode;
|
|
19
20
|
className?: string;
|
|
20
|
-
["data-testid"]?: string;
|
|
21
21
|
fullWidth?: boolean;
|
|
22
22
|
negative?: boolean;
|
|
23
23
|
size?: Size;
|
package/dist/action.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,OAAO;;;;CAIV,CAAC;AAEX,eAAO,MAAM,QAAQ,4CAAyB,CAAC;AAC/C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAE7D,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AAEX,eAAO,MAAM,KAAK,wBAAsB,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAEpD,KAAK,YAAY,CAAC,QAAQ,EAAE,CAAC,GAAG,MAAM,IAAI;IACxC,
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS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AAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAC7D,KAAK,CAAC;AAEV,KAAK,WAAW,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9C,MAAM,MAAM,WAAW,CAAC,QAAQ,SAAS,MAAM,GAAG,OAAO,IAAI,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
package/dist/action.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.es.js","sources":["../src/action.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\n\nexport const VARIANT = {\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\",\n EXPRESSIVE: \"expressive\",\n} as const;\n\nexport const variants = Object.values(VARIANT);\nexport type Variant = (typeof VARIANT)[keyof typeof VARIANT];\n\nexport const SIZE = {\n SM: \"sm\",\n MD: \"md\",\n LG: \"lg\",\n} as const;\n\nexport const sizes = Object.values(SIZE);\nexport type Size = (typeof SIZE)[keyof typeof SIZE];\n\ntype DefaultProps<TVariant, T = object> = {\n
|
|
1
|
+
{"version":3,"file":"action.es.js","sources":["../src/action.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\n\nexport const VARIANT = {\n PRIMARY: \"primary\",\n SECONDARY: \"secondary\",\n EXPRESSIVE: \"expressive\",\n} as const;\n\nexport const variants = Object.values(VARIANT);\nexport type Variant = (typeof VARIANT)[keyof typeof VARIANT];\n\nexport const SIZE = {\n SM: \"sm\",\n MD: \"md\",\n LG: \"lg\",\n} as const;\n\nexport const sizes = Object.values(SIZE);\nexport type Size = (typeof SIZE)[keyof typeof SIZE];\n\ntype DefaultProps<TVariant, T = object> = {\n [\"data-testid\"]?: string;\n children?: ReactNode;\n className?: string;\n fullWidth?: boolean;\n negative?: boolean;\n size?: Size;\n variant: TVariant | Variant;\n} & T;\n\nexport type UnionParams<TVariant> =\n | DefaultProps<TVariant, { iconOnly: boolean; [\"aria-label\"]: string }>\n | DefaultProps<TVariant, { [\"aria-label\"]?: string }>;\n\ntype UnionKeys<T> = T extends T ? keyof T : never;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype StrictUnionHelper<T, TAll> = T extends any\n ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>>\n : never;\n\ntype StrictUnion<T> = StrictUnionHelper<T, T>;\n\nexport type ActionProps<TVariant extends string = Variant> = StrictUnion<UnionParams<TVariant>>;\n"],"names":["VARIANT","variants","SIZE","sizes"],"mappings":"AAEO,MAAMA,IAAU;AAAA,EACrB,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd,GAEaC,IAAW,OAAO,OAAOD,CAAO,GAGhCE,IAAO;AAAA,EAClB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEaC,IAAQ,OAAO,OAAOD,CAAI;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/action",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/action.cjs.js",
|
|
6
6
|
"types": "./dist/action.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"source": "src/action.tsx",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@purpurds/tokens": "5.
|
|
17
|
+
"@purpurds/tokens": "5.2.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@rushstack/eslint-patch": "~1.10.0",
|
package/src/action.tsx
CHANGED
|
@@ -19,9 +19,9 @@ export const sizes = Object.values(SIZE);
|
|
|
19
19
|
export type Size = (typeof SIZE)[keyof typeof SIZE];
|
|
20
20
|
|
|
21
21
|
type DefaultProps<TVariant, T = object> = {
|
|
22
|
+
["data-testid"]?: string;
|
|
22
23
|
children?: ReactNode;
|
|
23
24
|
className?: string;
|
|
24
|
-
["data-testid"]?: string;
|
|
25
25
|
fullWidth?: boolean;
|
|
26
26
|
negative?: boolean;
|
|
27
27
|
size?: Size;
|