@sproutsocial/seeds-react-label 1.0.0 → 1.0.1
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 +7 -7
- package/CHANGELOG.md +10 -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 +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ CLI Target: es2022
|
|
|
8
8
|
CLI Cleaning output folder
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/index.js 2.
|
|
12
|
-
CJS dist/index.js.map 1.
|
|
13
|
-
CJS ⚡️ Build success in
|
|
14
|
-
ESM dist/esm/index.js
|
|
11
|
+
CJS dist/index.js 2.77 KB
|
|
12
|
+
CJS dist/index.js.map 1.98 KB
|
|
13
|
+
CJS ⚡️ Build success in 144ms
|
|
14
|
+
ESM dist/esm/index.js 969.00 B
|
|
15
15
|
ESM dist/esm/index.js.map 1.88 KB
|
|
16
|
-
ESM ⚡️ Build success in
|
|
16
|
+
ESM ⚡️ Build success in 151ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in 33982ms
|
|
19
19
|
DTS dist/index.d.ts 499.00 B
|
|
20
20
|
DTS dist/index.d.mts 499.00 B
|
|
21
|
-
Done in
|
|
21
|
+
Done in 42.09s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-label
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
8
|
+
- Updated dependencies [9fd8bac]
|
|
9
|
+
- @sproutsocial/seeds-react-system-props@3.0.2
|
|
10
|
+
- @sproutsocial/seeds-react-theme@2.2.1
|
|
11
|
+
- @sproutsocial/seeds-react-text@1.3.1
|
|
12
|
+
|
|
3
13
|
## 1.0.0
|
|
4
14
|
|
|
5
15
|
### 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.1",
|
|
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": "^2.2.0",
|
|
22
|
+
"@sproutsocial/seeds-react-system-props": "^3.0.1",
|
|
23
|
+
"@sproutsocial/seeds-react-text": "^1.3.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.0.0",
|