@artsy/palette 30.0.0 → 30.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/elements/Input/Input.story.tsx"],"names":["title","Default","focus","hover","active","error","disabled","name","required","description","width","StyledInput","Input","Styled","Required","CustomHeight"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AADM,C;;;AAIR,IAAMC,OAAO,GAAG,SAAVA,OAAU,GAAM;AAC3B,sBACE,6BAAC,uBAAD;AACE,IAAA,MAAM,EAAE,CACN,EADM,EAEN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAFM,EAGN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAHM,EAIN;AAAEC,MAAAA,MAAM,EAAE;AAAV,KAJM,EAKN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KALM,EAMN;AAAEC,MAAAA,QAAQ,EAAE;AAAZ,KANM,EAON;
|
|
1
|
+
{"version":3,"sources":["../../../src/elements/Input/Input.story.tsx"],"names":["title","Default","focus","hover","active","error","disabled","value","name","required","description","width","StyledInput","Input","Styled","Required","CustomHeight"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AADM,C;;;AAIR,IAAMC,OAAO,GAAG,SAAVA,OAAU,GAAM;AAC3B,sBACE,6BAAC,uBAAD;AACE,IAAA,MAAM,EAAE,CACN,EADM,EAEN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAFM,EAGN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KAHM,EAIN;AAAEC,MAAAA,MAAM,EAAE;AAAV,KAJM,EAKN;AAAEC,MAAAA,KAAK,EAAE;AAAT,KALM,EAMN;AAAEC,MAAAA,QAAQ,EAAE;AAAZ,KANM,EAON;AAAEA,MAAAA,QAAQ,EA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\"react\"\nimport { States } from \"storybook-states\"\nimport styled from \"styled-components\"\nimport { Button } from \"../Button\"\nimport { Input, InputProps } from \"./Input\"\n\nexport default {\n title: \"Components/Input\",\n}\n\nexport const Default = () => {\n return (\n <States<InputProps>\n states={[\n {},\n { focus: true },\n { hover: true },\n { active: true },\n { error: \"Something went wrong.\" },\n { disabled: true },\n { disabled: true, value: \"Example value\" },\n { title: \"Your offer\", name: \"offer\" },\n { title: \"Your offer\", required: true },\n { title: \"Your offer\", description: \"This is my description\" },\n { width: \"50%\" },\n ]}\n >\n <Input placeholder=\"Start typing…\" />\n </States>\n )\n}\n\nconst StyledInput = styled(Input)`\n border: 1px solid red;\n\n > input {\n border: 2px solid green;\n }\n`\n\nexport const Styled = () => {\n return <StyledInput placeholder=\"style should target container div\" />\n}\n\nexport const Required = () => {\n return (\n <form>\n <Input\n title=\"Example\"\n required\n placeholder=\"Submission should be blocked unless this has a value\"\n />\n\n <Input\n mt={1}\n title=\"Email\"\n required\n placeholder=\"Requires a valid email\"\n type=\"email\"\n />\n\n <Button mt={1}>Submit</Button>\n </form>\n )\n}\n\nexport const CustomHeight = () => {\n return <Input height={40} placeholder=\"Input is 40px in height\" />\n}\n"],"file":"Input.story.js"}
|
|
@@ -14,7 +14,7 @@ var INPUT_STATES = {
|
|
|
14
14
|
focus: (0, _styledComponents.css)(["color:", ";border-color:", ";::placeholder{color:", ";}"], (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black60"), (0, _themeGet.themeGet)("colors.black100")),
|
|
15
15
|
hover: (0, _styledComponents.css)(["color:", ";border-color:", ";::placeholder{color:", ";}"], (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black60"), (0, _themeGet.themeGet)("colors.black100")),
|
|
16
16
|
active: (0, _styledComponents.css)(["color:", ";border-color:", ";::placeholder{color:", ";}"], (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.blue100"), (0, _themeGet.themeGet)("colors.black100")),
|
|
17
|
-
disabled: (0, _styledComponents.css)(["color:", ";border-color:", ";background-color:transparent;::placeholder{color:", ";}"], (0, _themeGet.themeGet)("colors.black30"), (0, _themeGet.themeGet)("colors.black30"), (0, _themeGet.themeGet)("colors.black30")),
|
|
17
|
+
disabled: (0, _styledComponents.css)(["color:", ";border-color:", ";background-color:transparent;-webkit-text-fill-color:", ";opacity:1;::placeholder{color:", ";}"], (0, _themeGet.themeGet)("colors.black30"), (0, _themeGet.themeGet)("colors.black30"), (0, _themeGet.themeGet)("colors.black30"), (0, _themeGet.themeGet)("colors.black30")),
|
|
18
18
|
error: (0, _styledComponents.css)(["border-color:", ";"], (0, _themeGet.themeGet)("colors.red100"))
|
|
19
19
|
};
|
|
20
20
|
exports.INPUT_STATES = INPUT_STATES;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/elements/Input/tokens.ts"],"names":["INPUT_STATES","default","css","focus","hover","active","disabled","error"],"mappings":";;;;;;;AAAA;;AACA;;AAGO,IAAMA,YAAgC,GAAG;AAC9CC,EAAAA,OAAO,MAAEC,qBAAF,8EACQ,wBAAS,0BAAT,CADR,EAEI,wBAAS,iBAAT,CAFJ,EAGW,wBAAS,gBAAT,CAHX,EAMM,wBAAS,gBAAT,CANN,CADuC;AAU9CC,EAAAA,KAAK,MAAED,qBAAF,+DACM,wBAAS,iBAAT,CADN,EAEa,wBAAS,gBAAT,CAFb,EAKQ,wBAAS,iBAAT,CALR,CAVyC;AAkB9CE,EAAAA,KAAK,MAAEF,qBAAF,+DACM,wBAAS,iBAAT,CADN,EAEa,wBAAS,gBAAT,CAFb,EAKQ,wBAAS,iBAAT,CALR,CAlByC;AA0B9CG,EAAAA,MAAM,MAAEH,qBAAF,+DACK,wBAAS,iBAAT,CADL,EAEY,wBAAS,gBAAT,CAFZ,EAKO,wBAAS,iBAAT,CALP,CA1BwC;AAkC9CI,EAAAA,QAAQ,MAAEJ,qBAAF,
|
|
1
|
+
{"version":3,"sources":["../../../src/elements/Input/tokens.ts"],"names":["INPUT_STATES","default","css","focus","hover","active","disabled","error"],"mappings":";;;;;;;AAAA;;AACA;;AAGO,IAAMA,YAAgC,GAAG;AAC9CC,EAAAA,OAAO,MAAEC,qBAAF,8EACQ,wBAAS,0BAAT,CADR,EAEI,wBAAS,iBAAT,CAFJ,EAGW,wBAAS,gBAAT,CAHX,EAMM,wBAAS,gBAAT,CANN,CADuC;AAU9CC,EAAAA,KAAK,MAAED,qBAAF,+DACM,wBAAS,iBAAT,CADN,EAEa,wBAAS,gBAAT,CAFb,EAKQ,wBAAS,iBAAT,CALR,CAVyC;AAkB9CE,EAAAA,KAAK,MAAEF,qBAAF,+DACM,wBAAS,iBAAT,CADN,EAEa,wBAAS,gBAAT,CAFb,EAKQ,wBAAS,iBAAT,CALR,CAlByC;AA0B9CG,EAAAA,MAAM,MAAEH,qBAAF,+DACK,wBAAS,iBAAT,CADL,EAEY,wBAAS,gBAAT,CAFZ,EAKO,wBAAS,iBAAT,CALP,CA1BwC;AAkC9CI,EAAAA,QAAQ,MAAEJ,qBAAF,mIACG,wBAAS,gBAAT,CADH,EAEU,wBAAS,gBAAT,CAFV,EAKqB,wBAAS,gBAAT,CALrB,EAUK,wBAAS,gBAAT,CAVL,CAlCsC;AA+C9CK,EAAAA,KAAK,MAAEL,qBAAF,0BACa,wBAAS,eAAT,CADb;AA/CyC,CAAzC","sourcesContent":["import { themeGet } from \"@styled-system/theme-get\"\nimport { css } from \"styled-components\"\nimport { State } from \"./types\"\n\nexport const INPUT_STATES: Record<State, any> = {\n default: css`\n font-size: ${themeGet(\"textVariants.sm.fontSize\")};\n color: ${themeGet(\"colors.black100\")};\n border-color: ${themeGet(\"colors.black30\")};\n\n ::placeholder {\n color: ${themeGet(\"colors.black60\")};\n }\n `,\n focus: css`\n color: ${themeGet(\"colors.black100\")};\n border-color: ${themeGet(\"colors.black60\")};\n\n ::placeholder {\n color: ${themeGet(\"colors.black100\")};\n }\n `,\n hover: css`\n color: ${themeGet(\"colors.black100\")};\n border-color: ${themeGet(\"colors.black60\")};\n\n ::placeholder {\n color: ${themeGet(\"colors.black100\")};\n }\n `,\n active: css`\n color: ${themeGet(\"colors.black100\")};\n border-color: ${themeGet(\"colors.blue100\")};\n\n ::placeholder {\n color: ${themeGet(\"colors.black100\")};\n }\n `,\n disabled: css`\n color: ${themeGet(\"colors.black30\")};\n border-color: ${themeGet(\"colors.black30\")};\n background-color: transparent;\n /* For Safari: */\n -webkit-text-fill-color: ${themeGet(\"colors.black30\")};\n /* For iOS */\n opacity: 1;\n\n ::placeholder {\n color: ${themeGet(\"colors.black30\")};\n }\n `,\n error: css`\n border-color: ${themeGet(\"colors.red100\")};\n `,\n}\n"],"file":"tokens.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artsy/palette",
|
|
3
|
-
"version": "30.0.
|
|
3
|
+
"version": "30.0.1",
|
|
4
4
|
"description": "Design system library for react components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"<rootDir>/www/"
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "673ea61afffce41cd842b672f913eec47a9a9865"
|
|
178
178
|
}
|