@onereach/styles 0.1.3 → 0.1.6

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 (35) hide show
  1. package/dist/index.css +525 -72
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.min.css +1 -1
  4. package/package.json +2 -5
  5. package/src/base/_generic.scss +7 -13
  6. package/src/base/_reset.scss +15 -1
  7. package/src/base/_typography.scss +42 -0
  8. package/src/base/_v-transitions.scss +6 -2
  9. package/src/base/index.scss +1 -0
  10. package/src/components/base/_button.scss +119 -16
  11. package/src/components/base/_checkbox.scss +8 -11
  12. package/src/components/base/_collapse.scss +11 -0
  13. package/src/components/base/_error.scss +13 -0
  14. package/src/components/base/_hint.scss +13 -0
  15. package/src/components/base/_icon.scss +23 -3
  16. package/src/components/base/_label.scss +14 -0
  17. package/src/components/base/_list.scss +44 -0
  18. package/src/components/base/_loader.scss +79 -5
  19. package/src/components/base/_radio-group.scss +5 -4
  20. package/src/components/base/_radio.scss +11 -18
  21. package/src/components/base/_switch.scss +11 -16
  22. package/src/components/base/_textbox.scss +242 -0
  23. package/src/layout/_display.scss +29 -0
  24. package/src/layout/_flexbox.scss +79 -0
  25. package/src/layout/_spacings.scss +29 -0
  26. package/src/layout/index.scss +3 -0
  27. package/src/main.scss +4 -3
  28. package/src/utils/mixins/_absolute-center.scss +6 -0
  29. package/src/utils/mixins/_has-error.scss +5 -0
  30. package/src/utils/mixins/_transition.scss +7 -0
  31. package/src/utils/mixins/index.scss +3 -0
  32. package/src/variables/_css-vars.scss +60 -9
  33. package/src/variables/_initial.scss +40 -0
  34. package/src/variables/index.scss +3 -2
  35. package/src/variables/tokens/design-tokens.scss +8 -12
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/variables/_css-vars.scss","index.css","../src/base/_reset.scss","../src/base/_generic.scss","../src/utils/mixins/_overflow-touch.scss","../src/base/_v-transitions.scss","../src/base/_animation.scss"],"names":[],"mappings":"AAII;;EAGI,oB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CA,aAAA;EACA,gBAAA;EACA,kBAAA;EACA,oBA3CU;EA4CV,gBAAA;EACA,iBAAA;EACA,qBAAA;EACA,oCAhDO;AFmUT;AEjRE;EACE,UAAA;EACA,kBAAA;EACA,mBAAA;EACA,6BAAA;AFmRJ;;AE/QA;;EAEE,wBAAA;AFkRF;;AIlVE;EAEE,6DAAA;AJoVJ;AIjVE;EAEE,UAAA;AJkVJ;;AK5VA;EACE;IACE,oBAAA;EL+VF;EK5VA;IACE,yBAAA;EL8VF;AACF;;AKrWA;EACE;IACE,oBAAA;EL+VF;EK5VA;IACE,yBAAA;EL8VF;AACF;AK3VA;EACE;IACE,UAAA;EL6VF;EK1VA;IACE,UAAA;EL4VF;AACF;AKnWA;EACE;IACE,UAAA;EL6VF;EK1VA;IACE,UAAA;EL4VF;AACF","file":"index.css"}
1
+ {"version":3,"sources":["../src/variables/_css-vars.scss","index.css","../src/base/_reset.scss","../src/base/_generic.scss","../src/utils/mixins/_overflow-touch.scss","../src/base/_typography.scss","../src/variables/_initial.scss","../src/base/_v-transitions.scss","../src/base/_animation.scss","../src/layout/_display.scss","../src/layout/_flexbox.scss","../src/layout/_spacings.scss"],"names":[],"mappings":"AASI;;EAQM,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,kBAAA;EACA,2BAAA;EACA,2BAAA;EACA,6BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,mBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCA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;EACE,gBAAA;AViqBN;;AU9pBI;EACE,iBAAA;AViqBN;;AUtqBI;EACE,kBAAA;AVyqBN;;AUtqBI;EACE,mBAAA;AVyqBN;;AU9qBI;EACE,mBAAA;AVirBN;;AU9qBI;EACE,oBAAA;AVirBN;;AUtrBI;EACE,iBAAA;AVyrBN;;AUtrBI;EACE,kBAAA;AVyrBN;;AU9rBI;EACE,gBAAA;AVisBN;;AU9rBI;EACE,iBAAA;AVisBN;;AUtsBI;EACE,kBAAA;AVysBN;;AUtsBI;EACE,mBAAA;AVysBN;;AU9sBI;EACE,mBAAA;AVitBN;;AU9sBI;EACE,oBAAA;AVitBN;;AUttBI;EACE,iBAAA;AVytBN;;AUttBI;EACE,kBAAA;AVytBN;;AU9tBI;EACE,gBAAA;AViuBN;;AU9tBI;EACE,iBAAA;AViuBN;;AUtuBI;EACE,kBAAA;AVyuBN;;AUtuBI;EACE,mBAAA;AVyuBN;;AU9uBI;EACE,mBAAA;AVivBN;;AU9uBI;EACE,oBAAA;AVivBN;;AUtvBI;EACE,iBAAA;AVyvBN;;AUtvBI;EACE,kBAAA;AVyvBN;;AU9vBI;EACE,gBAAA;AViwBN;;AU9vBI;EACE,iBAAA;AViwBN;;AUtwBI;EACE,kBAAA;AVywBN;;AUtwBI;EACE,mBAAA;AVywBN;;AU9wBI;EACE,mBAAA;AVixBN;;AU9wBI;EACE,oBAAA;AVixBN;;AUtxBI;EACE,iBAAA;AVyxBN;;AUtxBI;EACE,kBAAA;AVyxBN","file":"index.css"}
@@ -1 +1 @@
1
- :root,[data-theme=light]{--c-primary:#178ae7;--c-primary-lighten-20:#73b9f1;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-error:#da1e28;--c-error-lighten-20:#ec7279;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-warning:#f0d10d;--c-warning-lighten-20:#f7e46c;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-success:#4ec00f;--c-success-lighten-20:#82f045;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-grey:#91969d;--c-grey-lighten-20:#c7c9cd;--c-grey-darken-3:#898e96;--c-grey-darken-5:#848991;--c-text:#1e232b;--c-text-lighten-20:#485467;--c-text-darken-3:#181c22;--c-text-darken-5:#14171c;--c-body-bg:#fff;--c-body-bg-lighten-20:white;--c-body-bg-darken-3:#f7f7f7;--c-body-bg-darken-5:#f2f2f2;--c-white:#fff;--c-white-lighten-20:white;--c-white-darken-3:#f7f7f7;--c-white-darken-5:#f2f2f2;--c-black:#000;--c-black-lighten-20:#333333;--c-black-darken-3:black;--c-black-darken-5:black;--c-neutral-0:#fff;--c-neutral-0-lighten-20:white;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-1:#f6f6f6;--c-neutral-1-lighten-20:white;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-2:#dfdfdf;--c-neutral-2-lighten-20:white;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-3:#c6c6c6;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-4:#91969d;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-5:#6c747d;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-6:#1e232b;--c-neutral-6-lighten-20:#485467;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c}[data-theme=dark]{--c-primary:#178ae7;--c-primary-lighten-20:#73b9f1;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-error:#da1e28;--c-error-lighten-20:#ec7279;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-warning:#f0d10d;--c-warning-lighten-20:#f7e46c;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-success:#4ec00f;--c-success-lighten-20:#82f045;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-grey:#91969d;--c-grey-lighten-20:#c7c9cd;--c-grey-darken-3:#898e96;--c-grey-darken-5:#848991;--c-c-text:#1e232b;--c-c-text-lighten-20:#485467;--c-c-text-darken-3:#181c22;--c-c-text-darken-5:#14171c;--c-c-body-bg:#fff;--c-c-body-bg-lighten-20:white;--c-c-body-bg-darken-3:#f7f7f7;--c-c-body-bg-darken-5:#f2f2f2;--c-white:#fff;--c-white-lighten-20:white;--c-white-darken-3:#f7f7f7;--c-white-darken-5:#f2f2f2;--c-black:#000;--c-black-lighten-20:#333333;--c-black-darken-3:black;--c-black-darken-5:black;--c-neutral-0:#fff;--c-neutral-0-lighten-20:white;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-1:#f6f6f6;--c-neutral-1-lighten-20:white;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-2:#dfdfdf;--c-neutral-2-lighten-20:white;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-3:#c6c6c6;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-4:#91969d;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-5:#6c747d;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-6:#1e232b;--c-neutral-6-lighten-20:#485467;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;margin:0;vertical-align:baseline;border:0}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,select:-webkit-autofill,select:-webkit-autofill:focus,select:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{-webkit-transition:color 9999s ease-out,background-color 9999s ease-out;-webkit-transition-delay:9999s}*,::after,::before{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,html{-webkit-tap-highlight-color:transparent}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:none}table{border-spacing:0;border-collapse:collapse}input,textarea{border-radius:0}input::-ms-clear{width:0}html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-size:100%;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{overflow-x:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:.875rem;font-weight:400;line-height:1.3125rem;color:var(--c-text);background-color:var(--c-body-bg)}fieldset{border:none}a{text-decoration:none}code,pre{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-family:monospace}pre{-webkit-overflow-scrolling:touch;padding:1rem;overflow-x:auto;font-size:inherit;color:var(--c-text);text-align:left;word-wrap:normal;white-space:pre-wrap;background-color:var(--c-neutral-2)}pre code{padding:0;font-size:.75rem;color:currentColor;background-color:transparent}input[type=checkbox],input[type=radio]{vertical-align:baseline}.fade-enter-active,.fade-leave-active{transition:opacity .25s cubic-bezier(.12, .39, .5, .93)}.fade-enter,.fade-leave-to{opacity:0}@-webkit-keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes fade{from{opacity:1}to{opacity:0}}@keyframes fade{from{opacity:1}to{opacity:0}}
1
+ :root,[data-theme=light]{--c-primary:#178ae7;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-primary-lighten-20:#73b9f1;--c-error:#da1e28;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-error-lighten-20:#ec7279;--c-warning:#f0d10d;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-warning-lighten-20:#f7e46c;--c-success:#4ec00f;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-success-lighten-20:#82f045;--c-neutral-0:#fff;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-0-lighten-20:white;--c-neutral-1:#f6f6f6;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-1-lighten-20:white;--c-neutral-2:#dfdfdf;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-2-lighten-20:white;--c-neutral-3:#c6c6c6;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-4:#91969d;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-5:#6c747d;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-6:#1e232b;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c;--c-neutral-6-lighten-20:#485467;--c-body-bg:#fff;--c-white:#fff;--c-black:#000}[data-theme=dark]{--c-primary:#178ae7;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-primary-lighten-20:#73b9f1;--c-error:#da1e28;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-error-lighten-20:#ec7279;--c-warning:#f0d10d;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-warning-lighten-20:#f7e46c;--c-success:#4ec00f;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-success-lighten-20:#82f045;--c-neutral-0:#fff;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-0-lighten-20:white;--c-neutral-1:#f6f6f6;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-1-lighten-20:white;--c-neutral-2:#dfdfdf;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-2-lighten-20:white;--c-neutral-3:#c6c6c6;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-4:#91969d;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-5:#6c747d;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-6:#1e232b;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c;--c-neutral-6-lighten-20:#485467;--c-c-body-bg:#fff;--c-c-body-bg-darken-3:#f7f7f7;--c-c-body-bg-darken-5:#f2f2f2;--c-c-body-bg-lighten-20:white;--c-white:#fff;--c-black:#000}:root{--s-0:0;--s-1:0.125rem;--s-2:0.25rem;--s-3:0.5rem;--s-4:1rem;--s-5:1.5rem;--s-6:2rem;--s-7:3rem;--s-8:4rem;--s-9:8rem;--t-func:cubic-bezier(0.12, 0.39, 0.5, 0.93);--t-duration:0.25s;--fs-0:0.75rem;--fs-1:0.875rem;--fs-2:1.125rem;--fs-3:1.375rem;--fw-0:400;--fw-1:600;--fw-2:800;--lh-0:1.125rem;--lh-1:1.3125rem;--lh-2:1.625rem}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;margin:0;vertical-align:baseline;border:0}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,select:-webkit-autofill,select:-webkit-autofill:focus,select:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{-webkit-transition:color 9999s ease-out,background-color 9999s ease-out;-webkit-transition-delay:9999s}*,::after,::before{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,html{-webkit-tap-highlight-color:transparent}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:none}table{border-spacing:0;border-collapse:collapse}input,textarea{padding:0;margin:0;border-radius:0}input[type=search]::-ms-clear,input[type=search]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-size:100%;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{overflow-x:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:none;color:var(--c-neutral-6);background-color:var(--c-body-bg)}fieldset{border:none}a{text-decoration:none}code,pre{font-family:"Operator Mono","Fira Code Retina","Fira Code",FiraCode-Retina,"Andale Mono","Lucida Console",Consolas,Monaco,monospace;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}pre{-webkit-overflow-scrolling:touch;padding:var(--s-4);overflow-x:auto;font-size:inherit;color:var(--c-neutral-6);text-align:left;word-wrap:normal;white-space:pre-wrap;background-color:var(--c-neutral-2)}pre code{padding:0;font-size:.75rem;color:currentColor;background-color:transparent}input[type=checkbox],input[type=radio]{vertical-align:baseline}.body-normal,.body-semibold,body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:var(--fs-1);font-weight:var(--fw-0);line-height:var(--lh-1)}.caption-bold,.caption-normal{font-size:var(--fs-0);font-weight:var(--fw-0);line-height:var(--lh-0)}.caption-bold{font-weight:800}.body-semibold{font-weight:600}.subheading,h4{font-size:var(--fs-2);font-weight:var(--fw-2);line-height:var(--lh-1)}.heading,h1{font-size:var(--fs-3);font-weight:var(--fw-2);line-height:var(--lh-2)}.fade-enter-active,.fade-leave-active{transition:opacity var(--t-duration) var(--t-func)}.fade-enter,.fade-leave-to{opacity:0}.flip-list-move{transition:transform var(--t-duration) var(--t-func)}@-webkit-keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes fade{from{opacity:1}to{opacity:0}}@keyframes fade{from{opacity:1}to{opacity:0}}.d-inline{display:inline}.d-inline-block{display:inline-block}.d-flex{display:flex}.d-inline-flex{display:inline-flex}.d-block{display:block}.d-grid{display:grid}.d-inline-grid{display:inline-grid}.align-baseline{align-items:baseline}.align-start{align-items:start}.align-end{align-items:end}.align-self-start{align-items:self-start}.align-self-end{align-items:self-end}.align-flex-start{align-items:flex-start}.align-flex-end{align-items:flex-end}.align-stretch{align-items:stretch}.align-center{align-items:center}.justify-start{justify-content:start}.justify-end{justify-content:end}.justify-left{justify-content:left}.justify-right{justify-content:right}.justify-flex-start{justify-content:flex-start}.justify-flex-end{justify-content:flex-end}.justify-space-between{justify-content:space-between}.justify-space-around{justify-content:space-around}.justify-sapce-evenly{justify-content:space-evenly}.justify-center{justify-content:center}.m-0{margin:0}.p-0{padding:0}.mt-0{margin-top:0}.pt-0{padding-top:0}.mr-0{margin-right:0}.pr-0{padding-right:0}.mb-0{margin-bottom:0}.pb-0{padding-bottom:0}.ml-0{margin-left:0}.pl-0{padding-left:0}.mt-1{margin-top:.125rem}.pt-1{padding-top:.125rem}.mr-1{margin-right:.125rem}.pr-1{padding-right:.125rem}.mb-1{margin-bottom:.125rem}.pb-1{padding-bottom:.125rem}.ml-1{margin-left:.125rem}.pl-1{padding-left:.125rem}.mt-2{margin-top:.25rem}.pt-2{padding-top:.25rem}.mr-2{margin-right:.25rem}.pr-2{padding-right:.25rem}.mb-2{margin-bottom:.25rem}.pb-2{padding-bottom:.25rem}.ml-2{margin-left:.25rem}.pl-2{padding-left:.25rem}.mt-3{margin-top:.5rem}.pt-3{padding-top:.5rem}.mr-3{margin-right:.5rem}.pr-3{padding-right:.5rem}.mb-3{margin-bottom:.5rem}.pb-3{padding-bottom:.5rem}.ml-3{margin-left:.5rem}.pl-3{padding-left:.5rem}.mt-4{margin-top:1rem}.pt-4{padding-top:1rem}.mr-4{margin-right:1rem}.pr-4{padding-right:1rem}.mb-4{margin-bottom:1rem}.pb-4{padding-bottom:1rem}.ml-4{margin-left:1rem}.pl-4{padding-left:1rem}.mt-5{margin-top:1.5rem}.pt-5{padding-top:1.5rem}.mr-5{margin-right:1.5rem}.pr-5{padding-right:1.5rem}.mb-5{margin-bottom:1.5rem}.pb-5{padding-bottom:1.5rem}.ml-5{margin-left:1.5rem}.pl-5{padding-left:1.5rem}.mt-6{margin-top:2rem}.pt-6{padding-top:2rem}.mr-6{margin-right:2rem}.pr-6{padding-right:2rem}.mb-6{margin-bottom:2rem}.pb-6{padding-bottom:2rem}.ml-6{margin-left:2rem}.pl-6{padding-left:2rem}.mt-7{margin-top:3rem}.pt-7{padding-top:3rem}.mr-7{margin-right:3rem}.pr-7{padding-right:3rem}.mb-7{margin-bottom:3rem}.pb-7{padding-bottom:3rem}.ml-7{margin-left:3rem}.pl-7{padding-left:3rem}.mt-8{margin-top:4rem}.pt-8{padding-top:4rem}.mr-8{margin-right:4rem}.pr-8{padding-right:4rem}.mb-8{margin-bottom:4rem}.pb-8{padding-bottom:4rem}.ml-8{margin-left:4rem}.pl-8{padding-left:4rem}.mt-9{margin-top:8rem}.pt-9{padding-top:8rem}.mr-9{margin-right:8rem}.pr-9{padding-right:8rem}.mb-9{margin-bottom:8rem}.pb-9{padding-bottom:8rem}.ml-9{margin-left:8rem}.pl-9{padding-left:8rem}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/styles",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Styles for or-ui components",
5
5
  "main": "./dist/index.min.css",
6
6
  "unpkg": "./dist/index.css",
@@ -28,9 +28,6 @@
28
28
  "src"
29
29
  ],
30
30
  "license": "UNLICENSED",
31
- "dependencies": {
32
- "bulma": "^0.9.2"
33
- },
34
31
  "devDependencies": {
35
32
  "autoprefixer": "^10.2.5",
36
33
  "clean-css-cli": "^5.2.2",
@@ -41,5 +38,5 @@
41
38
  "sass": "^1.35.1",
42
39
  "stylelint": "^13.13.1"
43
40
  },
44
- "gitHead": "74e91e4d630b99224b429fa4091cfe6b1ebeafd8"
41
+ "gitHead": "373d6749a71a38e38d96e6144b47da0a30e92157"
45
42
  }
@@ -1,12 +1,10 @@
1
- $body-font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !default;
2
- $body-font-size: get-font-size(1) !default;
3
- $body-font-weight: get-font-weight() !default;
4
- $body-line-height: get-line-height(1) !default;
5
- $body-color: var(--c-text) !default;
1
+ @use "../utils" as *;
2
+
3
+ $body-color: var(--c-neutral-6) !default;
6
4
  $body-bg-color: var(--c-body-bg) !default;
7
5
 
8
6
  $pre-bg: var(--c-neutral-2) !default;
9
- $pre-color: var(--c-text) !default;
7
+ $pre-color: var(--c-neutral-6) !default;
10
8
 
11
9
  html {
12
10
  -moz-osx-font-smoothing: grayscale;
@@ -20,10 +18,6 @@ body {
20
18
  overflow-x: hidden;
21
19
  overflow-y: auto;
22
20
  overscroll-behavior: none;
23
- font-family: $body-font-family;
24
- font-size: $body-font-size;
25
- font-weight: $body-font-weight;
26
- line-height: $body-line-height;
27
21
  color: $body-color;
28
22
  background-color: $body-bg-color;
29
23
  }
@@ -38,17 +32,17 @@ a {
38
32
 
39
33
  code,
40
34
  pre {
35
+ font-family: 'Operator Mono', 'Fira Code Retina', 'Fira Code', 'FiraCode-Retina', 'Andale Mono', 'Lucida Console', Consolas, Monaco, monospace;
41
36
  -webkit-font-smoothing: subpixel-antialiased;
42
37
  -moz-osx-font-smoothing: auto;
43
- font-family: monospace;
44
38
  }
45
39
 
46
40
  pre {
47
41
  @include overflow-touch;
48
42
 
49
- padding: get-spacing(4);
43
+ padding: var(--s-4);
50
44
  overflow-x: auto;
51
- font-size: inherit; // $pre-font-size
45
+ font-size: inherit;
52
46
  color: $pre-color;
53
47
  text-align: left;
54
48
  word-wrap: normal;
@@ -141,9 +141,23 @@ table {
141
141
 
142
142
  input,
143
143
  textarea {
144
+ padding: 0;
145
+ margin: 0;
144
146
  border-radius: 0;
145
147
  }
146
148
 
147
- input::-ms-clear { // hides extra button X for clear text in input on IE & EDGE
149
+ /* clears the 'X' from Internet Explorer */
150
+ input[type=search]::-ms-clear,
151
+ input[type=search]::-ms-reveal {
152
+ display: none;
148
153
  width: 0;
154
+ height: 0;
155
+ }
156
+
157
+ /* clears the 'X' from Chrome */
158
+ input[type="search"]::-webkit-search-decoration,
159
+ input[type="search"]::-webkit-search-cancel-button,
160
+ input[type="search"]::-webkit-search-results-button,
161
+ input[type="search"]::-webkit-search-results-decoration {
162
+ display: none;
149
163
  }
@@ -0,0 +1,42 @@
1
+ @use "../utils" as *;
2
+ @use "../variables/initial";
3
+
4
+ body,
5
+ .body-normal {
6
+ font-family: initial.$body-font-family;
7
+ font-size: initial.$body-font-size;
8
+ font-weight: initial.$body-font-weight;
9
+ line-height: initial.$body-line-height;
10
+ }
11
+
12
+ .caption-normal {
13
+ font-size: initial.$caption-font-size;
14
+ font-weight: initial.$caption-font-weight;
15
+ line-height: initial.$caption-line-height;
16
+ }
17
+
18
+ .caption-bold {
19
+ @extend .caption-normal;
20
+
21
+ font-weight: get-font-weight(2);
22
+ }
23
+
24
+ .body-semibold {
25
+ @extend .body-normal;
26
+
27
+ font-weight: get-font-weight(1);
28
+ }
29
+
30
+ h4,
31
+ .subheading {
32
+ font-size: initial.$subheading-font-size;
33
+ font-weight: initial.$subheading-font-weight;
34
+ line-height: initial.$subheading-line-height;
35
+ }
36
+
37
+ h1,
38
+ .heading {
39
+ font-size: initial.$heading-font-size;
40
+ font-weight: initial.$heading-font-weight;
41
+ line-height: initial.$heading-line-height;
42
+ }
@@ -1,9 +1,9 @@
1
- @use "../utils/functions" as *;
1
+ @use "../variables/initial";
2
2
 
3
3
  .fade {
4
4
  &-enter-active,
5
5
  &-leave-active {
6
- transition: opacity get-transition-time() get-transition-func();
6
+ transition: opacity initial.$transition-duration initial.$transition-function;
7
7
  }
8
8
 
9
9
  &-enter,
@@ -11,3 +11,7 @@
11
11
  opacity: 0;
12
12
  }
13
13
  }
14
+
15
+ .flip-list-move {
16
+ transition: transform initial.$transition-duration initial.$transition-function;
17
+ }
@@ -1,4 +1,5 @@
1
1
  @import "reset";
2
2
  @import "generic";
3
+ @import "typography";
3
4
  @import "v-transitions";
4
5
  @import "animation";
@@ -1,13 +1,14 @@
1
- @import "../../utils";
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
2
3
 
3
- $btn-prefix: base !default;
4
+ $btn-prefix: initial.$base-prefix !default;
4
5
 
5
6
  $btn-min-width: px-to-rem(96) !default;
6
- $btn-padding: get-spacing(2) get-spacing(4) !default;
7
+ $btn-padding: var(--s-2) var(--s-4) !default;
7
8
  $btn-cursor: pointer !default;
8
9
 
9
- $btn-font-size: get-font-size(1) !default;
10
- $btn-font-weight: get-font-weight(1) !default;
10
+ $btn-font-size: var(--fs-1) !default;
11
+ $btn-font-weight: var(--fw-1) !default;
11
12
  $btn-line-height: px-to-rem(22) !default;
12
13
 
13
14
  $btn-border-width: px-to-rem(1) !default;
@@ -16,16 +17,13 @@ $btn-border-radius: px-to-rem(4) !default;
16
17
 
17
18
  $btn-letter-spacing: px-to-rem(-0.15) !default;
18
19
 
19
- $btn-transition-func: get-transition-func() !default;
20
- $btn-transition-time: get-transition-time() !default;
21
-
22
20
  $btn-box-shadow: 0 px-to-rem(1) px-to-rem(2) 0 hsla(0, 0%, 0%, 20%) !default;
23
21
  $btn-box-shadow-second: 0 px-to-rem(1) px-to-rem(2) 0 hsla(0, 0%, 0%, 10%) !default;
24
22
 
25
23
  $btn-icon-font-size: calc(#{$btn-font-size} + #{px-to-rem(6)});
26
24
 
27
- $list-of-colors: (primary, error, "grey");
28
- $btn-types: (outline, text, icon);
25
+ $list-of-colors: (primary, error, neutral-3, neutral-4, neutral-5, neutral-6);
26
+ $btn-types: (outline, text, icon, icon-simple);
29
27
 
30
28
  @mixin default-color-mixin() {
31
29
  @each $key in $list-of-colors {
@@ -190,12 +188,113 @@ $btn-types: (outline, text, icon);
190
188
  }
191
189
  }
192
190
 
191
+ @mixin icon-type() {
192
+ &.icon-type {
193
+ $btn-border-radius: initial.$round;
194
+
195
+ min-width: auto;
196
+ max-width: px-to-rem(54);
197
+ padding: px-to-rem(14);
198
+ border-radius: $btn-border-radius;
199
+
200
+ .material-icons {
201
+ font-size: px-to-rem(24);
202
+ }
203
+
204
+ .#{$btn-prefix}-button {
205
+ &--content {
206
+ &-append,
207
+ &-prepend {
208
+ margin: 0;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ @mixin icon-simple-type() {
216
+ &.icon-simple-type {
217
+ $btn-border-radius: 9999px;
218
+
219
+ min-width: auto;
220
+ max-width: px-to-rem(18);
221
+ padding: 0;
222
+ background-color: transparent;
223
+ border-color: transparent;
224
+ border-radius: $btn-border-radius;
225
+ box-shadow: none;
226
+
227
+ @each $key in $list-of-colors {
228
+ &.is-#{$key}-color {
229
+ --btn-#{$key}-color: var(--c-#{$key});
230
+ --btn-#{$key}-darken-3: var(--c-#{$key}-darken-3);
231
+ --btn-#{$key}-darken-5: var(--c-#{$key}-darken-5);
232
+ --btn-#{$key}-lighten-20: var(--c-#{$key}-lighten-20);
233
+
234
+ color: var(--btn-#{$key}-color);
235
+ background-color: transparent;
236
+ border-color: transparent;
237
+
238
+ @include hover {
239
+ color: var(--btn-#{$key}-darken-3);
240
+ background-color: transparent;
241
+ border-color: transparent;
242
+ }
243
+
244
+ @include active {
245
+ color: var(--btn-#{$key}-darken-5);
246
+ background-color: transparent;
247
+ border-color: transparent;
248
+ }
249
+
250
+ @include disabled {
251
+ color: var(--btn-#{$key}-lighten-20);
252
+ background-color: transparent;
253
+ border-color: transparent;
254
+ }
255
+
256
+ @include loading {
257
+ color: var(--btn-#{$key}-lighten-20);
258
+ background-color: transparent;
259
+ border-color: transparent;
260
+ }
261
+ }
262
+ }
263
+
264
+ .material-icons {
265
+ font-size: px-to-rem(16);
266
+ }
267
+
268
+ .#{$btn-prefix}-button {
269
+ &--loader {
270
+ &::after {
271
+ width: 100%;
272
+ height: 100%;
273
+ }
274
+ }
275
+
276
+ &--content {
277
+ &-append,
278
+ &-prepend {
279
+ margin: 0;
280
+ }
281
+ }
282
+ }
283
+ }
284
+ }
285
+
193
286
  @mixin is-fullwidth() {
194
287
  &.is-fullwidth {
195
288
  width: 100%;
196
289
  }
197
290
  }
198
291
 
292
+ @mixin is-block() {
293
+ &.is-block {
294
+ display: flex;
295
+ }
296
+ }
297
+
199
298
  .#{$btn-prefix}-button {
200
299
  -moz-appearance: none;
201
300
  -webkit-appearance: none;
@@ -215,9 +314,8 @@ $btn-types: (outline, text, icon);
215
314
  border: $btn-border-width $btn-border-style;
216
315
  border-radius: $btn-border-radius;
217
316
  box-shadow: $btn-box-shadow;
218
- transition-timing-function: $btn-transition-func;
219
- transition-duration: $btn-transition-time;
220
- transition-property: color, background-color, box-shadow, border-color;
317
+
318
+ @include transition(color, background-color, box-shadow, border-color);
221
319
 
222
320
  .material-icons {
223
321
  font-size: $btn-icon-font-size;
@@ -233,7 +331,8 @@ $btn-types: (outline, text, icon);
233
331
  pointer-events: none;
234
332
  visibility: hidden;
235
333
  opacity: 0;
236
- transition: opacity $btn-transition-time $btn-transition-func;
334
+
335
+ @include transition(opacity);
237
336
 
238
337
  &::after {
239
338
  border-color: inherit;
@@ -245,7 +344,8 @@ $btn-types: (outline, text, icon);
245
344
  display: inline-flex;
246
345
  align-items: center;
247
346
  justify-content: center;
248
- transition: opacity $btn-transition-time $btn-transition-func;
347
+
348
+ @include transition(opacity);
249
349
 
250
350
  &-prepend,
251
351
  &-append {
@@ -267,14 +367,17 @@ $btn-types: (outline, text, icon);
267
367
  line-height: 1;
268
368
 
269
369
  .material-icons {
270
- font-size: $btn-icon-font-size;
370
+ font-size: calc(#{$btn-font-size} - #{px-to-rem(2)} + #{px-to-rem(4)});
271
371
  }
272
372
  }
273
373
 
274
374
  @include default-color-mixin;
275
375
  @include outline-type;
276
376
  @include text-type;
377
+ @include icon-type;
378
+ @include icon-simple-type;
277
379
  @include is-fullwidth;
380
+ @include is-block;
278
381
 
279
382
  @include loading {
280
383
  .#{$btn-prefix}-button {
@@ -1,10 +1,9 @@
1
- @import "../../utils";
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
2
3
 
3
- $checkbox-prefix: quote(base) !default;
4
+ $checkbox-prefix: initial.$base-prefix !default;
4
5
 
5
6
  $checkbox-size: px-to-rem(16) !default;
6
- $checkbox-transition-func: get-transition-func() !default;
7
- $checkbox-transition-time: get-transition-time() !default;
8
7
  $checkbox-border-radius: px-to-rem(2) !default;
9
8
  $checkbox-border-width: px-to-rem(1) !default;
10
9
  $checkbox-border-color: var(--c-neutral-2) !default;
@@ -14,7 +13,7 @@ $checkbox-bg-color: var(--c-white) !default;
14
13
  $checkbox-text-color: inherit !default;
15
14
  $checkbox-font-size: inherit !default;
16
15
  $checkbox-line-height: inherit !default;
17
- $checkbox-content-spacing: get-spacing(3) !default;
16
+ $checkbox-content-spacing: var(--s-3) !default;
18
17
 
19
18
  // checked
20
19
  $checkbox-icon-color-checked: var(--c-white) !default;
@@ -88,17 +87,15 @@ $checkbox-bg-color-checked-disabled: var(--c-primary-lighten-20) !default;
88
87
  background-color: $checkbox-bg-color;
89
88
  border: $checkbox-border-width solid $checkbox-border-color;
90
89
  border-radius: $checkbox-border-radius;
91
- transition-timing-function: $checkbox-transition-func;
92
- transition-duration: $checkbox-transition-time;
93
- transition-property: background-color, border-color;
90
+
91
+ @include transition(background-color, border-color);
94
92
  }
95
93
 
96
94
  &--icon {
97
95
  font-size: $checkbox-size;
98
96
  color: $checkbox-icon-color-checked;
99
- transition-timing-function: $checkbox-transition-func;
100
- transition-duration: $checkbox-transition-time;
101
- transition-property: color;
97
+
98
+ @include transition(color);
102
99
  }
103
100
 
104
101
  @include hover {
@@ -0,0 +1,11 @@
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $collapse-prefix: initial.$base-prefix !default;
5
+
6
+ .#{$collapse-prefix}-collapse {
7
+ padding: 0;
8
+ overflow: hidden;
9
+
10
+ @include transition(height);
11
+ }
@@ -0,0 +1,13 @@
1
+ @use "../../utils/functions/px-to-rem" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $error-prefix: initial.$base-prefix !default;
5
+ $error-font-size: var(--fs-0) !default;
6
+ $error-line-height: px-to-rem(14) !default;
7
+ $error-color: var(--c-error) !default;
8
+
9
+ .#{$error-prefix}-error {
10
+ font-size: $error-font-size;
11
+ line-height: $error-line-height;
12
+ color: $error-color;
13
+ }
@@ -0,0 +1,13 @@
1
+ @use "../../utils/functions/px-to-rem" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $hint-prefix: initial.$base-prefix !default;
5
+ $hint-font-size: var(--fs-0) !default;
6
+ $hint-line-height: px-to-rem(14) !default;
7
+ $hint-color: var(--c-neutral-4) !default;
8
+
9
+ .#{$hint-prefix}-hint {
10
+ font-size: $hint-font-size;
11
+ line-height: $hint-line-height;
12
+ color: $hint-color;
13
+ }
@@ -1,12 +1,32 @@
1
- @use "../../utils/functions" as *;
2
- @use "../../utils/mixins" as *;
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $icon-prefix: initial.$base-prefix !default;
3
5
 
4
- $icon-prefix: base !default;
5
6
  $icon-size: px-to-rem(20) !default;
6
7
  $icon-color: inherit !default;
7
8
 
9
+ $list-of-colors: (neutral-3, neutral-4);
10
+
8
11
  .#{$icon-prefix}-icon {
9
12
  display: inline-flex;
10
13
  font-size: $icon-size;
11
14
  color: $icon-color;
15
+
16
+ @each $key in $list-of-colors {
17
+ &.is-#{$key}-color {
18
+ color: var(--c-#{$key});
19
+
20
+ @include hover {
21
+ color: var(--c-neutral-5);
22
+ }
23
+
24
+ @include active {
25
+ color: var(--c-neutral-6);
26
+ }
27
+ }
28
+ }
29
+
30
+ @include transition(color);
31
+ @include disabled;
12
32
  }
@@ -0,0 +1,14 @@
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $label-prefix: initial.$base-prefix !default;
5
+ $label-font-size: var(--fs-0) !default;
6
+ $label-line-height: px-to-rem(14) !default;
7
+ $label-color: var(--c-neutral-4) !default;
8
+
9
+ .#{$label-prefix}-label {
10
+ width: 100%;
11
+ font-size: $label-font-size;
12
+ line-height: $label-line-height;
13
+ color: $label-color;
14
+ }
@@ -0,0 +1,44 @@
1
+ @use "../../utils" as *;
2
+ @use "../../variables/initial";
3
+
4
+ $list-prefix: initial.$base-prefix !default;
5
+
6
+ .#{$list-prefix}-list {
7
+ cursor: default;
8
+
9
+ &--header {
10
+ margin-bottom: var(--s-2);
11
+ }
12
+
13
+ &--handle {
14
+ margin-right: var(--s-3);
15
+ cursor: move;
16
+ }
17
+
18
+ &--delete-btn {
19
+ margin-left: var(--s-3);
20
+ }
21
+
22
+ &--item {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: flex-start;
26
+ width: 100%;
27
+ margin-bottom: var(--s-4);
28
+
29
+ .material-icons {
30
+ color: var(--c-neutral-4);
31
+ }
32
+ }
33
+
34
+ &--slot {
35
+ width: 100%;
36
+ transition: all initial.$transition-duration initial.$transition-function;
37
+
38
+ > * {
39
+ width: 100%;
40
+ }
41
+ }
42
+
43
+ @include disabled;
44
+ }