@sproutsocial/seeds-react-label 1.0.0 → 1.0.2
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/.turbo/turbo-build.log +19 -19
- package/CHANGELOG.md +18 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
yarn run v1.22.22
|
|
2
2
|
$ tsup --dts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Done in
|
|
3
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
4
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
5
|
+
[34mCLI[39m tsup v8.5.0
|
|
6
|
+
[34mCLI[39m Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-label/tsup.config.ts
|
|
7
|
+
[34mCLI[39m Target: es2022
|
|
8
|
+
[34mCLI[39m Cleaning output folder
|
|
9
|
+
[34mCJS[39m Build start
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m2.77 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1.98 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 149ms
|
|
14
|
+
[32mESM[39m [1mdist/esm/index.js [22m[32m969.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/esm/index.js.map [22m[32m1.88 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 161ms
|
|
17
|
+
[34mDTS[39m Build start
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 37765ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m499.00 B[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m499.00 B[39m
|
|
21
|
+
Done in 46.81s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-label
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [22e1111]
|
|
8
|
+
- @sproutsocial/seeds-react-text@1.3.2
|
|
9
|
+
- @sproutsocial/seeds-react-theme@3.0.1
|
|
10
|
+
|
|
11
|
+
## 1.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
16
|
+
- Updated dependencies [9fd8bac]
|
|
17
|
+
- @sproutsocial/seeds-react-system-props@3.0.2
|
|
18
|
+
- @sproutsocial/seeds-react-theme@2.2.1
|
|
19
|
+
- @sproutsocial/seeds-react-text@1.3.1
|
|
20
|
+
|
|
3
21
|
## 1.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -31,9 +31,9 @@ var Label_default = Label;
|
|
|
31
31
|
import "react";
|
|
32
32
|
|
|
33
33
|
// src/index.ts
|
|
34
|
-
var
|
|
34
|
+
var index_default = Label_default;
|
|
35
35
|
export {
|
|
36
36
|
Label_default as Label,
|
|
37
|
-
|
|
37
|
+
index_default as default
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Label.tsx","../../src/LabelTypes.ts","../../src/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport styled from \"styled-components\";\nimport Text from \"@sproutsocial/seeds-react-text\";\nimport type { TypeLabelProps } from \"./LabelTypes\";\n\nconst LabelBase = ({ as = \"label\", ...rest }: TypeLabelProps) => (\n <Text {...rest} as={as} />\n);\n\n// TODO: Screen readers should read \"required\" instead of \"*\"\nconst StyledLabel = styled(LabelBase)`\n display: flex;\n align-items: center;\n`;\n\nconst Label = ({ htmlFor, required, children, ...props }: TypeLabelProps) => {\n return (\n <StyledLabel\n fontSize={200}\n fontWeight=\"semibold\"\n color=\"text.headline\"\n data-qa-label={htmlFor}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <Text ml={100} aria-hidden>\n *\n </Text>\n )}\n </StyledLabel>\n );\n};\n\nexport default Label;\n","import * as React from \"react\";\nimport type { TypeTextProps } from \"@sproutsocial/seeds-react-text\";\n\nexport interface TypeLabelProps extends TypeTextProps {\n /** ID of the associated form element */\n htmlFor: string;\n children: React.ReactNode;\n required?: boolean;\n}\n","import Label from \"./Label\";\n\nexport default Label;\nexport { Label };\nexport * from \"./LabelTypes\";\n"],"mappings":";AAAA,OAAuB;AACvB,OAAO,YAAY;AACnB,OAAO,UAAU;AAIf,cAWE,YAXF;AADF,IAAM,YAAY,CAAC,EAAE,KAAK,SAAS,GAAG,KAAK,MACzC,oBAAC,QAAM,GAAG,MAAM,IAAQ;AAI1B,IAAM,cAAc,OAAO,SAAS;AAAA;AAAA;AAAA;AAKpC,IAAM,QAAQ,CAAC,EAAE,SAAS,UAAU,UAAU,GAAG,MAAM,MAAsB;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,OAAM;AAAA,MACN,iBAAe;AAAA,MACf;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,QACA,YACC,oBAAC,QAAK,IAAI,KAAK,eAAW,MAAC,eAE3B;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,gBAAQ;;;ACnCf,OAAuB;;;ACEvB,IAAO,
|
|
1
|
+
{"version":3,"sources":["../../src/Label.tsx","../../src/LabelTypes.ts","../../src/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport styled from \"styled-components\";\nimport Text from \"@sproutsocial/seeds-react-text\";\nimport type { TypeLabelProps } from \"./LabelTypes\";\n\nconst LabelBase = ({ as = \"label\", ...rest }: TypeLabelProps) => (\n <Text {...rest} as={as} />\n);\n\n// TODO: Screen readers should read \"required\" instead of \"*\"\nconst StyledLabel = styled(LabelBase)`\n display: flex;\n align-items: center;\n`;\n\nconst Label = ({ htmlFor, required, children, ...props }: TypeLabelProps) => {\n return (\n <StyledLabel\n fontSize={200}\n fontWeight=\"semibold\"\n color=\"text.headline\"\n data-qa-label={htmlFor}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <Text ml={100} aria-hidden>\n *\n </Text>\n )}\n </StyledLabel>\n );\n};\n\nexport default Label;\n","import * as React from \"react\";\nimport type { TypeTextProps } from \"@sproutsocial/seeds-react-text\";\n\nexport interface TypeLabelProps extends TypeTextProps {\n /** ID of the associated form element */\n htmlFor: string;\n children: React.ReactNode;\n required?: boolean;\n}\n","import Label from \"./Label\";\n\nexport default Label;\nexport { Label };\nexport * from \"./LabelTypes\";\n"],"mappings":";AAAA,OAAuB;AACvB,OAAO,YAAY;AACnB,OAAO,UAAU;AAIf,cAWE,YAXF;AADF,IAAM,YAAY,CAAC,EAAE,KAAK,SAAS,GAAG,KAAK,MACzC,oBAAC,QAAM,GAAG,MAAM,IAAQ;AAI1B,IAAM,cAAc,OAAO,SAAS;AAAA;AAAA;AAAA;AAKpC,IAAM,QAAQ,CAAC,EAAE,SAAS,UAAU,UAAU,GAAG,MAAM,MAAsB;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,OAAM;AAAA,MACN,iBAAe;AAAA,MACf;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,QACA,YACC,oBAAC,QAAK,IAAI,KAAK,eAAW,MAAC,eAE3B;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,gBAAQ;;;ACnCf,OAAuB;;;ACEvB,IAAO,gBAAQ;","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -28,12 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
Label: () => Label_default,
|
|
34
|
-
default: () =>
|
|
34
|
+
default: () => index_default
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// src/Label.tsx
|
|
39
39
|
var React = require("react");
|
|
@@ -68,7 +68,7 @@ var Label_default = Label;
|
|
|
68
68
|
var React2 = require("react");
|
|
69
69
|
|
|
70
70
|
// src/index.ts
|
|
71
|
-
var
|
|
71
|
+
var index_default = Label_default;
|
|
72
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
73
|
0 && (module.exports = {
|
|
74
74
|
Label
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/Label.tsx","../src/LabelTypes.ts"],"sourcesContent":["import Label from \"./Label\";\n\nexport default Label;\nexport { Label };\nexport * from \"./LabelTypes\";\n","import * as React from \"react\";\nimport styled from \"styled-components\";\nimport Text from \"@sproutsocial/seeds-react-text\";\nimport type { TypeLabelProps } from \"./LabelTypes\";\n\nconst LabelBase = ({ as = \"label\", ...rest }: TypeLabelProps) => (\n <Text {...rest} as={as} />\n);\n\n// TODO: Screen readers should read \"required\" instead of \"*\"\nconst StyledLabel = styled(LabelBase)`\n display: flex;\n align-items: center;\n`;\n\nconst Label = ({ htmlFor, required, children, ...props }: TypeLabelProps) => {\n return (\n <StyledLabel\n fontSize={200}\n fontWeight=\"semibold\"\n color=\"text.headline\"\n data-qa-label={htmlFor}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <Text ml={100} aria-hidden>\n *\n </Text>\n )}\n </StyledLabel>\n );\n};\n\nexport default Label;\n","import * as React from \"react\";\nimport type { TypeTextProps } from \"@sproutsocial/seeds-react-text\";\n\nexport interface TypeLabelProps extends TypeTextProps {\n /** ID of the associated form element */\n htmlFor: string;\n children: React.ReactNode;\n required?: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,+BAAmB;AACnB,8BAAiB;AAIf;AADF,IAAM,YAAY,CAAC,EAAE,KAAK,SAAS,GAAG,KAAK,MACzC,4CAAC,wBAAAA,SAAA,EAAM,GAAG,MAAM,IAAQ;AAI1B,IAAM,kBAAc,yBAAAC,SAAO,SAAS;AAAA;AAAA;AAAA;AAKpC,IAAM,QAAQ,CAAC,EAAE,SAAS,UAAU,UAAU,GAAG,MAAM,MAAsB;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,OAAM;AAAA,MACN,iBAAe;AAAA,MACf;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,QACA,YACC,4CAAC,wBAAAD,SAAA,EAAK,IAAI,KAAK,eAAW,MAAC,eAE3B;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,gBAAQ;;;ACnCf,IAAAE,SAAuB;;;AFEvB,IAAO,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/Label.tsx","../src/LabelTypes.ts"],"sourcesContent":["import Label from \"./Label\";\n\nexport default Label;\nexport { Label };\nexport * from \"./LabelTypes\";\n","import * as React from \"react\";\nimport styled from \"styled-components\";\nimport Text from \"@sproutsocial/seeds-react-text\";\nimport type { TypeLabelProps } from \"./LabelTypes\";\n\nconst LabelBase = ({ as = \"label\", ...rest }: TypeLabelProps) => (\n <Text {...rest} as={as} />\n);\n\n// TODO: Screen readers should read \"required\" instead of \"*\"\nconst StyledLabel = styled(LabelBase)`\n display: flex;\n align-items: center;\n`;\n\nconst Label = ({ htmlFor, required, children, ...props }: TypeLabelProps) => {\n return (\n <StyledLabel\n fontSize={200}\n fontWeight=\"semibold\"\n color=\"text.headline\"\n data-qa-label={htmlFor}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <Text ml={100} aria-hidden>\n *\n </Text>\n )}\n </StyledLabel>\n );\n};\n\nexport default Label;\n","import * as React from \"react\";\nimport type { TypeTextProps } from \"@sproutsocial/seeds-react-text\";\n\nexport interface TypeLabelProps extends TypeTextProps {\n /** ID of the associated form element */\n htmlFor: string;\n children: React.ReactNode;\n required?: boolean;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,+BAAmB;AACnB,8BAAiB;AAIf;AADF,IAAM,YAAY,CAAC,EAAE,KAAK,SAAS,GAAG,KAAK,MACzC,4CAAC,wBAAAA,SAAA,EAAM,GAAG,MAAM,IAAQ;AAI1B,IAAM,kBAAc,yBAAAC,SAAO,SAAS;AAAA;AAAA;AAAA;AAKpC,IAAM,QAAQ,CAAC,EAAE,SAAS,UAAU,UAAU,GAAG,MAAM,MAAsB;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU;AAAA,MACV,YAAW;AAAA,MACX,OAAM;AAAA,MACN,iBAAe;AAAA,MACf;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,QACA,YACC,4CAAC,wBAAAD,SAAA,EAAK,IAAI,KAAK,eAAW,MAAC,eAE3B;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,IAAO,gBAAQ;;;ACnCf,IAAAE,SAAuB;;;AFEvB,IAAO,gBAAQ;","names":["Text","styled","React"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-label",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Seeds React Label",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"test:watch": "jest --watch --coverage=false"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sproutsocial/seeds-react-theme": "
|
|
22
|
-
"@sproutsocial/seeds-react-system-props": "
|
|
23
|
-
"@sproutsocial/seeds-react-text": "
|
|
21
|
+
"@sproutsocial/seeds-react-theme": "^3.0.1",
|
|
22
|
+
"@sproutsocial/seeds-react-system-props": "^3.0.1",
|
|
23
|
+
"@sproutsocial/seeds-react-text": "^1.3.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.0.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@sproutsocial/eslint-config-seeds": "*",
|
|
29
29
|
"react": "^18.0.0",
|
|
30
30
|
"styled-components": "^5.2.3",
|
|
31
|
-
"tsup": "^8.
|
|
31
|
+
"tsup": "^8.3.4",
|
|
32
32
|
"typescript": "^5.6.2",
|
|
33
33
|
"@sproutsocial/seeds-tsconfig": "*",
|
|
34
34
|
"@sproutsocial/seeds-testing": "*",
|