@sfgov/design-system 0.0.0-53b7e30

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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/babel.config.js +16 -0
  4. package/dist/css/base.css +2 -0
  5. package/dist/css/base.css.map +1 -0
  6. package/dist/css/components.css +2 -0
  7. package/dist/css/components.css.map +1 -0
  8. package/dist/css/fonts.css +2 -0
  9. package/dist/css/fonts.css.map +1 -0
  10. package/dist/css/icons.css +2 -0
  11. package/dist/css/icons.css.map +1 -0
  12. package/dist/css/overrides.css +2 -0
  13. package/dist/css/overrides.css.map +1 -0
  14. package/dist/css/sfds.css +2 -0
  15. package/dist/css/sfds.css.map +1 -0
  16. package/dist/css/typography.css +2 -0
  17. package/dist/css/typography.css.map +1 -0
  18. package/dist/css/utilities.css +2 -0
  19. package/dist/css/utilities.css.map +1 -0
  20. package/dist/css/utilities.json +7350 -0
  21. package/dist/elements/index.d.mts +30 -0
  22. package/dist/elements/index.d.mts.map +1 -0
  23. package/dist/elements/index.d.ts +30 -0
  24. package/dist/elements/index.d.ts.map +1 -0
  25. package/dist/elements/index.js +1 -0
  26. package/dist/elements/index.mjs +1 -0
  27. package/dist/manifest.json +45 -0
  28. package/dist/react/index.d.mts +5725 -0
  29. package/dist/react/index.d.mts.map +1 -0
  30. package/dist/react/index.d.ts +5725 -0
  31. package/dist/react/index.d.ts.map +1 -0
  32. package/dist/react/index.js +1 -0
  33. package/dist/react/index.mjs +1 -0
  34. package/lib/markdownlint/frontmatter.js +51 -0
  35. package/lib/markdownlint/no-empty.js +19 -0
  36. package/package.json +348 -0
  37. package/postcss.config.js +17 -0
  38. package/rollup.config.mjs +72 -0
  39. package/svgo.config.js +27 -0
  40. package/tailwind.config.js +5 -0
  41. package/tailwind.preset.js +128 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 City & County of San Francisco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # San Francisco Design System
2
+
3
+ This is the design system for [SF.gov](https://sf.gov) and the City & County
4
+ of San Francisco.
5
+
6
+ Design and developer documentation is available at
7
+ [design-system.sf.gov](https://design-system.sf.gov).
@@ -0,0 +1,16 @@
1
+ /** @type {import('@babel/core').} */
2
+ module.exports = {
3
+ exclude: [
4
+ '**/node_modules/**'
5
+ ],
6
+ presets: [
7
+ '@babel/preset-typescript',
8
+ '@babel/preset-react',
9
+ ['@babel/preset-env', {
10
+ useBuiltIns: 'usage',
11
+ corejs: {
12
+ version: '3'
13
+ }
14
+ }]
15
+ ]
16
+ }
@@ -0,0 +1,2 @@
1
+ *,:after,:before{border-color:currentColor}*{box-sizing:border-box}body{margin:0;padding:0}a{color:#495ed4}.focus,:focus{outline:2px dotted #a1a1a1;outline-offset:3px}::-webkit-input-placeholder{color:#5a7a92}::placeholder{color:#5a7a92}
2
+ /*# sourceMappingURL=base.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../node_modules/tailwindcss/base.css","../../css/src/base.css","../../node_modules/tailwindcss/lib/lib/substituteClassApplyAtRules.js"],"names":[],"mappings":"AAAA,iBAAA,yBAAc,CCGZ,EACE,qBACF,CAEA,KACE,QAAS,CACT,SACF,CAEA,ECXF,aDaE,CAEA,cAEE,0BAA8C,CAC9C,kBACF,CAEA,4BCrBF,aDuBE,CAFA,cCrBF,aDuBE","file":"base.css","sourcesContent":["@tailwind base;\n","@import 'tailwindcss/base';\n\n@layer base {\n * {\n box-sizing: border-box;\n }\n\n body {\n margin: 0;\n padding: 0;\n }\n\n a {\n @apply text-action;\n }\n\n :focus,\n .focus {\n outline: 2px dotted theme('colors.grey.focus');\n outline-offset: 3px; /* TODO [>=3]: remove outline-offset (or set to 0) */\n }\n\n ::placeholder {\n @apply text-slate-light;\n }\n}\n","@tailwind components;\n@tailwind utilities;"]}
@@ -0,0 +1,2 @@
1
+ .btn{align-items:center;-webkit-appearance:none;appearance:none;background-color:#495ed4;border:0 solid;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;justify-content:center;line-height:24px;padding:8px 20px;text-align:center;text-decoration:none;white-space:nowrap}.btn.focus,.btn.hover,.btn:focus,.btn:hover,.hocus\:bg-blue-dark:focus,.hocus\:bg-blue-dark:hover{background-color:#0c1464}.btn-inverse{color:#495ed4}.btn-inverse,.btn-inverse:focus,.btn-inverse:hover{background-color:#fff}.btn-inverse:focus,.btn-inverse:hover{color:#0c1464}.btn-inverse.focus,.btn-inverse.hover{background-color:#fff;color:#0c1464}.btn-secondary{border-width:3px;color:#495ed4}.btn-secondary,.btn-secondary:focus,.btn-secondary:hover,.hocus\:bg-white:focus,.hocus\:bg-white:hover{background-color:#fff}.btn-secondary:focus,.btn-secondary:hover,.hocus\:text-blue-dark:focus,.hocus\:text-blue-dark:hover{color:#0c1464}.btn-secondary.focus,.btn-secondary.hover{background-color:#fff;color:#0c1464}.btn-link,.btn-link:focus,.btn-link:hover,.hocus\:border-0:focus,.hocus\:border-0:hover{border-width:0}.btn-link{color:#495ed4}.btn-link,.btn-link:hover{background-color:transparent}.btn-link:hover{color:#0c1464}.btn-link{text-decoration:underline}.btn-link.focus,.btn-link.hover{background-color:transparent;color:#0c1464}.btn-block{display:flex;width:100%}.details-reset summary{list-style:none}.details-reset summary::-webkit-details-marker,.details-reset summary::marker{display:none}.responsive-grid{display:grid;gap:20px;grid-template-columns:repeat(6,minmax(0,1fr))}@media (min-width:420px){.responsive-grid{gap:28px;grid-template-columns:repeat(12,minmax(0,1fr))}}.responsive-container{margin-left:20px;margin-right:20px;max-width:1076px}@media (min-width:420px){.responsive-container{margin-left:28px;margin-right:28px}}@media (min-width:768px){.responsive-container{margin-left:96px;margin-right:96px}}@media (min-width:1090px){.responsive-container{margin-left:auto;margin-right:auto}}kbd{border-radius:2px;border-style:solid;border-width:1px;color:#1d4d70;display:inline-block;font-family:Roboto mono,monospace;font-size:14px;font-weight:400;line-height:18px;margin-bottom:2px;margin-top:2px;padding:2px 8px}
2
+ /*# sourceMappingURL=components.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../css/src/components/button.css","../../node_modules/tailwindcss/lib/lib/substituteClassApplyAtRules.js","../../css/src/components/details.css","../../css/src/components/grid.css","<no source>","../../css/src/components/kbd.css"],"names":[],"mappings":"AACE,KCCF,kBAAmB,CAAnB,uBAAmB,CAAnB,eAAmB,CAAnB,wBAAmB,CAAnB,cAAmB,CAAnB,iBAAmB,CAAnB,UAAmB,CAAnB,cAAmB,CAAnB,mBAAmB,CAAnB,cAAmB,CAAnB,eAAmB,CAAnB,sBAAmB,CAAnB,gBAAmB,CAAnB,gBAAmB,CAAnB,iBAAmB,CAAnB,oBAAmB,CAAnB,kBDkBE,CClBF,kGAAA,wBAAmB,CDoBjB,aCpBF,aD6BE,CC7BF,mDAAA,qBAAmB,CAAnB,sCAAA,aAAmB,CAAnB,sCAAA,qBAAmB,CAAnB,aAAmB,CD+BjB,eC/BF,gBAAmB,CAAnB,aDyCE,CCzCF,uGAAA,qBAAmB,CAAnB,oGAAA,aAAmB,CAAnB,0CAAA,qBAAmB,CAAnB,aAAmB,CAAnB,wFAAA,cAAmB,CD2CjB,UC3CF,aDqDE,CCrDF,0BAAA,4BAAmB,CAAnB,gBAAA,aAAmB,CD2CjB,UC3CF,yBDqDE,CCrDF,gCAAA,4BAAmB,CAAnB,aAAmB,CDuDjB,WCvDF,YAAmB,CAAnB,UDyDE,CE1DA,uBACE,eAMF,CAJE,8EAEE,YACF,CCPJ,iBFEA,YAAmB,CAAnB,QAAmB,CAAnB,6CEEA,CCJA,yBHEA,iBAAA,QAAmB,CAAnB,8CAAmB,EGFnB,ADMA,sBFJA,gBAAmB,CAAnB,iBAAmB,CAAnB,gBESA,CCXA,yBHEA,sBAAA,gBAAmB,CAAnB,iBAAmB,EGFnB,yBHEA,sBAAA,gBAAmB,CAAnB,iBAAmB,EGFnB,0BHEA,sBAAA,gBAAmB,CAAnB,iBAAmB,EGFnB,ACAA,IJEA,iBAAmB,CAAnB,kBAAmB,CAAnB,gBAAmB,CAAnB,aAAmB,CAAnB,oBAAmB,CAAnB,iCAAmB,CAAnB,cAAmB,CAAnB,eAAmB,CAAnB,gBAAmB,CAAnB,iBAAmB,CAAnB,cAAmB,CAAnB,eIEA","file":"components.css","sourcesContent":["@layer components {\n .btn {\n @apply inline-flex;\n @apply appearance-none;\n @apply cursor-pointer;\n @apply text-body font-medium;\n @apply rounded;\n @apply px-20 py-8;\n @apply bg-blue-bright;\n @apply text-white;\n @apply no-underline;\n @apply border-0 border-solid border-current;\n @apply text-center justify-center items-center;\n @apply whitespace-nowrap;\n @apply hocus:bg-blue-dark;\n\n &.hover,\n &.focus {\n @apply bg-blue-dark;\n }\n }\n\n .btn-inverse {\n @apply bg-white;\n @apply text-blue-bright;\n @apply hocus:bg-white hocus:text-blue-dark;\n\n &.hover,\n &.focus {\n @apply bg-white text-blue-dark;\n }\n }\n\n .btn-secondary {\n @apply bg-white;\n @apply text-blue-bright;\n @apply border;\n @apply hocus:bg-white hocus:text-blue-dark;\n\n &.hover,\n &.focus {\n @apply bg-white text-blue-dark;\n }\n }\n\n .btn-link {\n @apply border-0 hocus:border-0;\n @apply bg-none text-blue-bright;\n @apply hover:bg-none hover:text-blue-dark;\n @apply underline;\n\n &.hover,\n &.focus {\n @apply bg-none text-blue-dark;\n }\n }\n\n .btn-block {\n @apply flex w-full;\n }\n}\n","@tailwind base;\n@tailwind components;\n@tailwind utilities;",".details-reset {\n summary {\n list-style: none;\n\n &::marker,\n &::-webkit-details-marker {\n display: none;\n }\n }\n}\n",".responsive-grid {\n @apply grid grid-cols-6;\n @apply gap-20;\n @apply md:grid-cols-12 md:gap-28;\n}\n\n.responsive-container {\n @apply mx-20 max-w-xl;\n @apply md:mx-28;\n @apply lg:mx-96;\n @apply xl:mx-auto;\n}\n",null,"kbd {\n @apply font-mono font-regular text-small text-slate;\n @apply inline-block px-8 py-2 my-2;\n @apply border-1 border-solid rounded-2;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&family=Noto+Sans+TC:wght@300;400;500&family=Roboto+Mono&display=swap");
2
+ /*# sourceMappingURL=fonts.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../css/src/fonts.css"],"names":[],"mappings":"AAAA,mJAAmJ","file":"fonts.css","sourcesContent":["@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&family=Noto+Sans+TC:wght@300;400;500&family=Roboto+Mono&display=swap');\n"]}
@@ -0,0 +1,2 @@
1
+ sfgov-icon{align-items:center;display:inline-flex}sfgov-icon svg{fill:currentcolor}
2
+ /*# sourceMappingURL=icons.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../css/src/icons.css","../../node_modules/tailwindcss/lib/lib/substituteClassApplyAtRules.js"],"names":[],"mappings":"AAAA,WCEA,kBAAmB,CAAnB,mBDIA,CAHE,eACE,iBACF","file":"icons.css","sourcesContent":["sfgov-icon {\n @apply inline-flex items-center;\n\n svg {\n fill: currentcolor;\n }\n}\n","@tailwind base;\n@tailwind components;\n@tailwind utilities;"]}
@@ -0,0 +1,2 @@
1
+ [hidden]{display:none!important}
2
+ /*# sourceMappingURL=overrides.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../css/src/overrides.css"],"names":[],"mappings":"AAAA,SACE,sBACF","file":"overrides.css","sourcesContent":["*[hidden] {\n display: none !important;\n}\n"]}