@zonos/amino 5.1.29 → 5.1.31

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
- "use strict";var e=require("../../_tslib-ccfac372.js"),r=require("react/jsx-runtime"),n=require("react"),t=require("react-simple-maps"),i=require("d3-geo"),o=require("styled-components"),a=require("topojson-client"),s=require("../skeleton/Skeleton.js"),l=require("../../styles/constants/theme.js"),u=require("../../utils/getCountryCodeByName.js");function d(e){return e&&e.__esModule?e:{default:e}}var c,h,m=d(o),f=m.default.div(c||(c=e.__makeTemplateObject(["\n background: ",";\n border-radius: ",";\n overflow: hidden;\n\n * {\n outline: none;\n }\n"],["\n background: ",";\n border-radius: ",";\n overflow: hidden;\n\n * {\n outline: none;\n }\n"])),l.theme.gray50,l.theme.radius12),g=m.default(s.Skeleton)(h||(h=e.__makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ",";\n width: 100%;\n /* 50% padding is 100% of width, ratio is 33%, so half */\n padding: 16.5%;\n margin: 0;\n"],["\n box-sizing: border-box;\n border-radius: ",";\n width: 100%;\n /* 50% padding is 100% of width, ratio is 33%, so half */\n padding: 16.5%;\n margin: 0;\n"])),l.theme.radius12);exports.ConnectionMap=function(o){var s=o.countries,d=o.from,c=o.height,h=void 0===c?400:c,m=o.to,b=o.worldData,j=e.__read(n.useState([0,0]),2),p=j[0],x=j[1],_=e.__read(n.useState(1),2),v=_[0],k=_[1],y=e.__read(n.useState([0,0,0]),2),M=y[0],q=y[1],C=n.useMemo((function(){return b?a.feature(b,b.objects.countries).features:null}),[b]),w=n.useCallback((function(e){var r=null==C?void 0:C.find((function(r){var n;return u.getCountryCodeByName(null===(n=r.properties)||void 0===n?void 0:n.name,s)===e}));return r?i.geoCentroid(r):[0,0]}),[s,C]),S=!(C&&s.length&&d&&m);return n.useEffect((function(){if(!S){var r=e.__read(w(d),2),n=r[0],t=r[1],o=e.__read(w(m),2),a=o[0],s=o[1],l=i.geoDistance([n,t],[a,s]),u=i.geoDistance([n,0],[a,0]),c=i.geoDistance([0,t],[0,s]),h=function(e,r){return-19.46498024*e+-92.29376925*r+284.7+(e+r>4?80*(e+r-4):0)}(u,c);k(h);var f=e.__read([(n+a)/2,(t+s)/2],2),g=f[0],b=f[1];x([0,b]);var j=-g;Math.abs(n-a)>180&&(j+=180);var p=Math.abs(b)>55?l*-(Math.abs(b)-50):0,_=c>1&&u>c&&Math.max(t,s)>50?u/c*-5:0;q([j,p+_,0])}}),[w,m,d,S]),S?r.jsx(g,{height:h}):r.jsx(f,{children:r.jsxs(t.ComposableMap,{height:h,projection:"geoEqualEarth",projectionConfig:{center:p,rotate:M,scale:v},children:[r.jsx(t.Geographies,{geography:C,children:function(e){return e.geographies.map((function(e){var n=[m,d].includes(u.getCountryCodeByName(e.properties.name,s));return r.jsx(t.Geography,{fill:n?l.theme.blue100:l.theme.gray400,geography:e,stroke:n?l.theme.blue300:l.theme.gray500,strokeWidth:1},e.rsmKey)}))}}),r.jsxs(t.Marker,{coordinates:w(d),children:[r.jsx("circle",{fill:l.theme.blue300,r:10}),r.jsx("circle",{fill:l.theme.blue400,r:7})]}),r.jsxs(t.Marker,{coordinates:w(m),children:[r.jsx("circle",{fill:l.theme.blue300,r:10}),r.jsx("circle",{fill:l.theme.blue400,r:7})]}),r.jsx(t.Line,{from:w(d),stroke:l.theme.blue600,strokeWidth:4,to:w(m)}),r.jsxs(t.Marker,{coordinates:w(d),children:[r.jsx("circle",{fill:"white",r:4}),r.jsx("circle",{fill:l.theme.blue600,r:2})]}),r.jsxs(t.Marker,{coordinates:w(m),children:[r.jsx("circle",{fill:"white",r:4}),r.jsx("circle",{fill:l.theme.blue600,r:2})]})]})})};
1
+ "use strict";var e=require("../../_tslib-ccfac372.js"),r=require("react/jsx-runtime"),n=require("react"),t=require("react-simple-maps"),i=require("d3-geo"),o=require("styled-components"),a=require("topojson-client"),s=require("../skeleton/Skeleton.js"),l=require("../../styles/constants/theme.js"),u=require("../../utils/getCountryCodeByName.js");function d(e){return e&&e.__esModule?e:{default:e}}var c,h,m=d(o),f=m.default.div(c||(c=e.__makeTemplateObject(["\n background: ",";\n border-radius: ",";\n overflow: hidden;\n\n * {\n outline: none;\n }\n"],["\n background: ",";\n border-radius: ",";\n overflow: hidden;\n\n * {\n outline: none;\n }\n"])),l.theme.gray50,l.theme.radius12),g=m.default(s.Skeleton)(h||(h=e.__makeTemplateObject(["\n box-sizing: border-box;\n border-radius: ",";\n width: 100%;\n /* 50% padding is 100% of width, ratio is 33%, so half */\n padding: 16.5%;\n margin: 0;\n"],["\n box-sizing: border-box;\n border-radius: ",";\n width: 100%;\n /* 50% padding is 100% of width, ratio is 33%, so half */\n padding: 16.5%;\n margin: 0;\n"])),l.theme.radius12);exports.ConnectionMap=function(o){var s=o.countries,d=o.from,c=o.height,h=void 0===c?400:c,m=o.to,b=o.worldData,j=e.__read(n.useState([0,0]),2),p=j[0],x=j[1],_=e.__read(n.useState(1),2),v=_[0],k=_[1],y=e.__read(n.useState([0,0,0]),2),M=y[0],q=y[1],C=n.useMemo((function(){return b?a.feature(b,b.objects.countries).features:null}),[b]),w=n.useCallback((function(e){var r=null==C?void 0:C.find((function(r){var n;return u.getCountryCodeByName(null===(n=r.properties)||void 0===n?void 0:n.name,s)===e}));return r?i.geoCentroid(r):[0,0]}),[s,C]),S=!(C&&s.length&&d&&m);return n.useEffect((function(){if(!S){var r=e.__read(w(d),2),n=r[0],t=r[1],o=e.__read(w(m),2),a=o[0],s=o[1],l=i.geoDistance([n,t],[a,s]),u=i.geoDistance([n,0],[a,0]),c=i.geoDistance([0,t],[0,s]),h=function(e,r){return-19.46498024*e+-92.29376925*r+284.7+(e+r>4?80*(e+r-4):0)}(u,c);k(h);var f=e.__read([(n+a)/2,(t+s)/2],2),g=f[0],b=f[1];x([0,b]);var j=-g;Math.abs(n-a)>180&&(j+=180);var p=Math.abs(b)>55?l*-(Math.abs(b)-50):0,_=c>1&&u>c&&Math.max(t,s)>50?u/c*-5:0;q([j,p+_,0])}}),[w,m,d,S]),S?r.jsx(g,{height:h}):r.jsx(f,{children:r.jsxs(t.ComposableMap,{height:h,projection:"geoEqualEarth",projectionConfig:{center:p,rotate:M,scale:v},children:[r.jsx(t.Geographies,{geography:C,children:function(e){return e.geographies.map((function(e){var n=[m,d].includes(u.getCountryCodeByName(e.properties.name,s));return r.jsx(t.Geography,{fill:n?l.theme.blue100:l.theme.gray0,geography:e,stroke:n?l.theme.blue400:l.theme.gray200,strokeWidth:2},e.rsmKey)}))}}),r.jsxs(t.Marker,{coordinates:w(d),children:[r.jsx("circle",{fill:l.theme.blue300,r:10}),r.jsx("circle",{fill:l.theme.blue400,r:7})]}),r.jsxs(t.Marker,{coordinates:w(m),children:[r.jsx("circle",{fill:l.theme.blue300,r:10}),r.jsx("circle",{fill:l.theme.blue400,r:7})]}),r.jsx(t.Line,{from:w(d),stroke:l.theme.blue600,strokeWidth:4,to:w(m)}),r.jsxs(t.Marker,{coordinates:w(d),children:[r.jsx("circle",{fill:"white",r:4}),r.jsx("circle",{fill:l.theme.blue600,r:2})]}),r.jsxs(t.Marker,{coordinates:w(m),children:[r.jsx("circle",{fill:"white",r:4}),r.jsx("circle",{fill:l.theme.blue600,r:2})]})]})})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("styled-components"),r=require("../checkbox/Checkbox.js"),o=require("../skeleton/Skeleton.js"),i=require("../text/Text.js"),a=require("../../styles/constants/theme.js");function l(e){return e&&e.__esModule?e:{default:e}}require("react"),require("clsx"),require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js");var d,c,s,h,u,x,b,m=l(t),g=m.default.table(d||(d=e.__makeTemplateObject(["\n width: 100%;\n"],["\n width: 100%;\n"]))),p=m.default.thead(c||(c=e.__makeTemplateObject(["\n text-transform: uppercase;\n"],["\n text-transform: uppercase;\n"]))),v=m.default.tr(s||(s=e.__makeTemplateObject(["\n border-bottom: ",";\n height: 48px;\n"],["\n border-bottom: ",";\n height: 48px;\n"])),a.theme.border),k=m.default.th(h||(h=e.__makeTemplateObject(["\n padding: ",";\n white-space: nowrap;\n text-align: ",";\n"],["\n padding: ",";\n white-space: nowrap;\n text-align: ",";\n"])),a.theme.space16,(function(e){return e.$textAlign})),j=m.default.tr(u||(u=e.__makeTemplateObject(["\n height: 48px;\n cursor: ",";\n & {\n border-bottom: ",";\n }\n\n &.with-hover:hover {\n background-color: ",";\n }\n\n &:not(:hover) {\n .row-hover-show {\n visibility: collapse;\n }\n }\n"],["\n height: 48px;\n cursor: ",";\n & {\n border-bottom: ",";\n }\n\n &.with-hover:hover {\n background-color: ",";\n }\n\n &:not(:hover) {\n .row-hover-show {\n visibility: collapse;\n }\n }\n"])),(function(e){return e.clickable?"pointer":"auto"}),a.theme.border,a.theme.gray50),f=m.default.td(x||(x=e.__makeTemplateObject(["\n padding: ",";\n text-align: ",";\n\n &:not(:hover) {\n .cell-hover-show {\n visibility: collapse;\n }\n }\n"],["\n padding: ",";\n text-align: ",";\n\n &:not(:hover) {\n .cell-hover-show {\n visibility: collapse;\n }\n }\n"])),(function(e){return e.$noPadding?void 0:a.theme.space16}),(function(e){return e.$textAlign})),w=m.default(r.Checkbox)(b||(b=e.__makeTemplateObject(["\n padding: ",";\n display: inline-flex;\n"],["\n padding: ",";\n display: inline-flex;\n"])),a.theme.space16);exports.SimpleTable=function(t){var r=t.className,a=t.headers,l=t.items,d=t.keyExtractor,c=t.loading,s=void 0!==c&&c,h=t.loadingItems,u=void 0===h?10:h,x=t.noHoverBackground,b=void 0!==x&&x,m=t.onRowClick,C=t.onRowHover,y=t.renderFooter,_=t.selectable,q=void 0===_?{enabled:!1}:_;return n.jsxs(g,{className:r,children:[n.jsxs("colgroup",{children:[!!q.onHeaderCheckboxChange&&n.jsx("col",{width:0}),a.map((function(e){return n.jsx("col",{width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)}))]}),n.jsx(p,{children:n.jsxs(v,{children:[!!q.onHeaderCheckboxChange&&n.jsx("th",{children:q.renderCustomHeaderCheckbox||n.jsx(w,{checked:!s&&q.headerCheckboxValue||!1,disabled:s,onChange:q.onHeaderCheckboxChange})}),a.map((function(e){return n.jsx(k,{$textAlign:e.align||"start",children:n.jsx(i.Text,{color:"gray800",type:"small-header",children:e.name})},e.key)}))]})}),n.jsx("tbody",{children:s?e.__spreadArray([],e.__read(Array(u+1).keys()),!1).map((function(e){return n.jsx(j,{clickable:!1,children:a.map((function(t){return n.jsx(f,{$noPadding:!!t.noPadding,$textAlign:"center",children:n.jsx(o.Skeleton,{height:30},e)},t.key)}))},e)})):l.map((function(e,t){var r,o,i;return n.jsxs(j,{className:b?"":"with-hover",clickable:!!m,onClick:function(){var n,r,o;q.anySelected?(null===(n=q.isRowCheckboxDisabled)||void 0===n?void 0:n.call(q,e,t))||null===(r=q.onRowCheckboxChange)||void 0===r||r.call(q,!(null===(o=q.isRowChecked)||void 0===o?void 0:o.call(q,e,t)),e,t):null==m||m(e)},onMouseEnter:function(){return null==C?void 0:C(e)},children:[q.enabled&&n.jsx("td",{children:(null===(r=q.renderCustomRowCheckbox)||void 0===r?void 0:r.call(q,e,t))||n.jsx(w,{checked:(null===(o=q.isRowChecked)||void 0===o?void 0:o.call(q,e,t))||!1,disabled:(null===(i=q.isRowCheckboxDisabled)||void 0===i?void 0:i.call(q,e,t))||!1,onChange:function(n){var r;return null===(r=q.onRowCheckboxChange)||void 0===r?void 0:r.call(q,n,e,t)}})}),a.map((function(t){return function(e,t){var r=t[e.key];return e.renderCustom?n.jsx(f,{$noPadding:e.noPadding||!1,$textAlign:e.align||"start",children:e.renderCustom(r,t)},e.key):n.jsx(f,{$noPadding:e.noPadding||!1,$textAlign:e.align||"start",children:String(r)},e.key)}(t,e)}))]},d(e))}))}),y]})};
1
+ "use strict";var e=require("../../_tslib-ccfac372.js"),n=require("react/jsx-runtime"),t=require("styled-components"),o=require("../checkbox/Checkbox.js"),r=require("../skeleton/Skeleton.js"),i=require("../text/Text.js"),a=require("../../styles/constants/theme.js");function l(e){return e&&e.__esModule?e:{default:e}}require("react"),require("clsx"),require("framer-motion"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getTestId.js");var d,c,s,h,u,x,b,g=l(t),m=g.default.table(d||(d=e.__makeTemplateObject(["\n width: 100%;\n"],["\n width: 100%;\n"]))),k=g.default.thead(c||(c=e.__makeTemplateObject(["\n text-transform: uppercase;\n"],["\n text-transform: uppercase;\n"]))),p=g.default.tr(s||(s=e.__makeTemplateObject(["\n border-bottom: ",";\n height: 48px;\n"],["\n border-bottom: ",";\n height: 48px;\n"])),a.theme.border),v=g.default.th(h||(h=e.__makeTemplateObject(["\n padding: ",";\n white-space: nowrap;\n text-align: ",";\n"],["\n padding: ",";\n white-space: nowrap;\n text-align: ",";\n"])),a.theme.space16,(function(e){return e.$textAlign})),j=g.default.tr(u||(u=e.__makeTemplateObject(["\n height: 48px;\n cursor: ",";\n & {\n border-bottom: ",";\n }\n\n &.with-hover:hover {\n background-color: ",";\n }\n\n &:not(:hover) {\n .row-hover-show {\n visibility: collapse;\n }\n }\n"],["\n height: 48px;\n cursor: ",";\n & {\n border-bottom: ",";\n }\n\n &.with-hover:hover {\n background-color: ",";\n }\n\n &:not(:hover) {\n .row-hover-show {\n visibility: collapse;\n }\n }\n"])),(function(e){return e.clickable?"pointer":"auto"}),a.theme.border,a.theme.gray50),C=g.default.td(x||(x=e.__makeTemplateObject(["\n padding: ",";\n text-align: ",";\n\n &:not(:hover) {\n .cell-hover-show {\n visibility: collapse;\n }\n }\n"],["\n padding: ",";\n text-align: ",";\n\n &:not(:hover) {\n .cell-hover-show {\n visibility: collapse;\n }\n }\n"])),(function(e){return e.$noPadding?void 0:a.theme.space16}),(function(e){return e.$textAlign})),f=g.default(o.Checkbox)(b||(b=e.__makeTemplateObject(["\n padding: ",";\n display: inline-flex;\n"],["\n padding: ",";\n display: inline-flex;\n"])),a.theme.space16);exports.SimpleTable=function(t){var o=t.className,a=t.headers,l=t.items,d=t.keyExtractor,c=t.loading,s=void 0!==c&&c,h=t.loadingItems,u=void 0===h?10:h,x=t.noHoverBackground,b=void 0!==x&&x,g=t.onRowClick,w=t.onRowHover,y=t.renderFooter,_=t.selectable,q=void 0===_?{enabled:!1}:_;return n.jsxs(m,{className:o,children:[n.jsxs("colgroup",{children:[!!q.onHeaderCheckboxChange&&n.jsx("col",{width:0}),a.map((function(e){return n.jsx("col",{width:void 0!==e.width?"".concat(e.width,"%"):void 0},e.key)}))]}),n.jsx(k,{children:n.jsxs(p,{children:[!!q.onHeaderCheckboxChange&&n.jsx("th",{children:q.renderCustomHeaderCheckbox||n.jsx(f,{checked:!s&&q.headerCheckboxValue||!1,disabled:s,onChange:q.onHeaderCheckboxChange})}),a.map((function(e){return n.jsx(v,{$textAlign:e.align||"start",children:n.jsx(i.Text,{color:"gray800",type:"small-header",children:e.name})},e.key)}))]})}),n.jsx("tbody",{children:s?e.__spreadArray([],e.__read(Array(u+1).keys()),!1).map((function(e){return n.jsxs(j,{clickable:!1,children:[q.enabled&&n.jsx("td",{children:n.jsx(r.Skeleton,{height:30},e)}),a.map((function(t){return n.jsx(C,{$noPadding:!!t.noPadding,$textAlign:"center",children:n.jsx(r.Skeleton,{height:30},e)},t.key)}))]},e)})):l.map((function(e,t){var o,r,i;return n.jsxs(j,{className:b?"":"with-hover",clickable:!!g||!!q.anySelected&&!!q.onRowCheckboxChange,onClick:function(){var n,o,r;q.anySelected?(null===(n=q.isRowCheckboxDisabled)||void 0===n?void 0:n.call(q,e,t))||null===(o=q.onRowCheckboxChange)||void 0===o||o.call(q,!(null===(r=q.isRowChecked)||void 0===r?void 0:r.call(q,e,t)),e,t):null==g||g(e)},onMouseEnter:function(){return null==w?void 0:w(e)},children:[q.enabled&&n.jsx("td",{children:(null===(o=q.renderCustomRowCheckbox)||void 0===o?void 0:o.call(q,e,t))||n.jsx(f,{checked:(null===(r=q.isRowChecked)||void 0===r?void 0:r.call(q,e,t))||!1,disabled:(null===(i=q.isRowCheckboxDisabled)||void 0===i?void 0:i.call(q,e,t))||!1,onChange:function(n){var o;return null===(o=q.onRowCheckboxChange)||void 0===o?void 0:o.call(q,n,e,t)}})}),a.map((function(t){return function(e,t){var o=t[e.key];return e.renderCustom?n.jsx(C,{$noPadding:e.noPadding||!1,$textAlign:e.align||"start",children:e.renderCustom(o,t)},e.key):n.jsx(C,{$noPadding:e.noPadding||!1,$textAlign:e.align||"start",children:String(o)},e.key)}(t,e)}))]},d(e))}))}),y]})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.1.29",
3
+ "version": "5.1.31",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
package/reset.css CHANGED
@@ -9,8 +9,10 @@
9
9
  */
10
10
 
11
11
  html {
12
- line-height: 1.15; /* 1 */
13
- -webkit-text-size-adjust: 100%; /* 2 */
12
+ line-height: 1.15;
13
+ /* 1 */
14
+ -webkit-text-size-adjust: 100%;
15
+ /* 2 */
14
16
  }
15
17
 
16
18
  /* Sections
@@ -21,7 +23,7 @@ html {
21
23
  */
22
24
 
23
25
  body {
24
- margin: 0;
26
+ margin: 0;
25
27
  }
26
28
 
27
29
  /**
@@ -51,9 +53,12 @@ h1 {
51
53
  */
52
54
 
53
55
  hr {
54
- box-sizing: content-box; /* 1 */
55
- height: 0; /* 1 */
56
- overflow: visible; /* 2 */
56
+ box-sizing: content-box;
57
+ /* 1 */
58
+ height: 0;
59
+ /* 1 */
60
+ overflow: visible;
61
+ /* 2 */
57
62
  }
58
63
 
59
64
  /**
@@ -62,8 +67,10 @@ hr {
62
67
  */
63
68
 
64
69
  pre {
65
- font-family: monospace, monospace; /* 1 */
66
- font-size: 1em; /* 2 */
70
+ font-family: monospace, monospace;
71
+ /* 1 */
72
+ font-size: 1em;
73
+ /* 2 */
67
74
  }
68
75
 
69
76
  /* Text-level semantics
@@ -83,10 +90,13 @@ a {
83
90
  */
84
91
 
85
92
  abbr[title] {
86
- border-bottom: none; /* 1 */
87
- text-decoration: underline; /* 2 */
93
+ border-bottom: none;
94
+ /* 1 */
95
+ text-decoration: underline;
96
+ /* 2 */
88
97
  -webkit-text-decoration: underline dotted;
89
- text-decoration: underline dotted; /* 2 */
98
+ text-decoration: underline dotted;
99
+ /* 2 */
90
100
  }
91
101
 
92
102
  /**
@@ -106,8 +116,10 @@ strong {
106
116
  code,
107
117
  kbd,
108
118
  samp {
109
- font-family: monospace, monospace; /* 1 */
110
- font-size: 1em; /* 2 */
119
+ font-family: monospace, monospace;
120
+ /* 1 */
121
+ font-size: 1em;
122
+ /* 2 */
111
123
  }
112
124
 
113
125
  /**
@@ -163,10 +175,14 @@ input,
163
175
  optgroup,
164
176
  select,
165
177
  textarea {
166
- font-family: inherit; /* 1 */
167
- font-size: 100%; /* 1 */
168
- line-height: 1.15; /* 1 */
169
- margin: 0; /* 2 */
178
+ font-family: inherit;
179
+ /* 1 */
180
+ font-size: 100%;
181
+ /* 1 */
182
+ line-height: 1.15;
183
+ /* 1 */
184
+ margin: 0;
185
+ /* 2 */
170
186
  }
171
187
 
172
188
  /**
@@ -175,7 +191,8 @@ textarea {
175
191
  */
176
192
 
177
193
  button,
178
- input { /* 1 */
194
+ input {
195
+ /* 1 */
179
196
  overflow: visible;
180
197
  }
181
198
 
@@ -185,7 +202,8 @@ input { /* 1 */
185
202
  */
186
203
 
187
204
  button,
188
- select { /* 1 */
205
+ select {
206
+ /* 1 */
189
207
  text-transform: none;
190
208
  }
191
209
 
@@ -239,12 +257,18 @@ fieldset {
239
257
  */
240
258
 
241
259
  legend {
242
- box-sizing: border-box; /* 1 */
243
- color: inherit; /* 2 */
244
- display: table; /* 1 */
245
- max-width: 100%; /* 1 */
246
- padding: 0; /* 3 */
247
- white-space: normal; /* 1 */
260
+ box-sizing: border-box;
261
+ /* 1 */
262
+ color: inherit;
263
+ /* 2 */
264
+ display: table;
265
+ /* 1 */
266
+ max-width: 100%;
267
+ /* 1 */
268
+ padding: 0;
269
+ /* 3 */
270
+ white-space: normal;
271
+ /* 1 */
248
272
  }
249
273
 
250
274
  /**
@@ -270,8 +294,10 @@ textarea {
270
294
 
271
295
  [type="checkbox"],
272
296
  [type="radio"] {
273
- box-sizing: border-box; /* 1 */
274
- padding: 0; /* 2 */
297
+ box-sizing: border-box;
298
+ /* 1 */
299
+ padding: 0;
300
+ /* 2 */
275
301
  }
276
302
 
277
303
  /**
@@ -289,8 +315,10 @@ textarea {
289
315
  */
290
316
 
291
317
  [type="search"] {
292
- -webkit-appearance: textfield; /* 1 */
293
- outline-offset: -2px; /* 2 */
318
+ -webkit-appearance: textfield;
319
+ /* 1 */
320
+ outline-offset: -2px;
321
+ /* 2 */
294
322
  }
295
323
 
296
324
  /**
@@ -307,8 +335,10 @@ textarea {
307
335
  */
308
336
 
309
337
  ::-webkit-file-upload-button {
310
- -webkit-appearance: button; /* 1 */
311
- font: inherit; /* 2 */
338
+ -webkit-appearance: button;
339
+ /* 1 */
340
+ font: inherit;
341
+ /* 2 */
312
342
  }
313
343
 
314
344
  /* Interactive
@@ -362,8 +392,10 @@ template {
362
392
  */
363
393
 
364
394
  html {
365
- box-sizing: border-box; /* 1 */
366
- font-family: sans-serif; /* 2 */
395
+ box-sizing: border-box;
396
+ /* 1 */
397
+ font-family: sans-serif;
398
+ /* 2 */
367
399
  }
368
400
 
369
401
  *,
@@ -430,8 +462,10 @@ ul {
430
462
  */
431
463
 
432
464
  html {
433
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
434
- line-height: 1.5; /* 2 */
465
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
466
+ /* 1 */
467
+ line-height: 1.5;
468
+ /* 2 */
435
469
  }
436
470
 
437
471
  /**
@@ -484,11 +518,13 @@ textarea {
484
518
  resize: vertical;
485
519
  }
486
520
 
487
- input:-ms-input-placeholder, textarea:-ms-input-placeholder {
521
+ input:-ms-input-placeholder,
522
+ textarea:-ms-input-placeholder {
488
523
  color: #a0aec0;
489
524
  }
490
525
 
491
- input::-ms-input-placeholder, textarea::-ms-input-placeholder {
526
+ input::-ms-input-placeholder,
527
+ textarea::-ms-input-placeholder {
492
528
  color: #a0aec0;
493
529
  }
494
530
 
@@ -597,3 +633,96 @@ video {
597
633
  }
598
634
 
599
635
  /*# sourceMappingURL=base.css.map */
636
+
637
+
638
+ /* https://andy-bell.co.uk/a-more-modern-css-reset */
639
+
640
+ /* Box sizing rules */
641
+ *,
642
+ *::before,
643
+ *::after {
644
+ box-sizing: border-box;
645
+ }
646
+
647
+ /* Prevent font size inflation */
648
+ html {
649
+ -moz-text-size-adjust: none;
650
+ -webkit-text-size-adjust: none;
651
+ text-size-adjust: none;
652
+ }
653
+
654
+ /* Remove default margin in favour of better control in authored CSS */
655
+ body,
656
+ h1,
657
+ h2,
658
+ h3,
659
+ h4,
660
+ p,
661
+ figure,
662
+ blockquote,
663
+ dl,
664
+ dd {
665
+ margin: 0;
666
+ }
667
+
668
+ /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
669
+ ul[role='list'],
670
+ ol[role='list'] {
671
+ list-style: none;
672
+ }
673
+
674
+ /* Set core body defaults */
675
+ body {
676
+ min-height: 100vh;
677
+ line-height: 1.5;
678
+ }
679
+
680
+ /* Set shorter line heights on headings and interactive elements */
681
+ h1,
682
+ h2,
683
+ h3,
684
+ h4,
685
+ button,
686
+ input,
687
+ label {
688
+ line-height: 1.1;
689
+ }
690
+
691
+ /* Balance text wrapping on headings */
692
+ h1,
693
+ h2,
694
+ h3,
695
+ h4 {
696
+ text-wrap: balance;
697
+ }
698
+
699
+ /* A elements that don't have a class get default styles */
700
+ a:not([class]) {
701
+ text-decoration-skip-ink: auto;
702
+ color: currentColor;
703
+ }
704
+
705
+ /* Make images easier to work with */
706
+ img,
707
+ picture {
708
+ max-width: 100%;
709
+ display: block;
710
+ }
711
+
712
+ /* Inherit fonts for inputs and buttons */
713
+ input,
714
+ button,
715
+ textarea,
716
+ select {
717
+ font: inherit;
718
+ }
719
+
720
+ /* Make sure textareas without a rows attribute are not tiny */
721
+ textarea:not([rows]) {
722
+ min-height: 10em;
723
+ }
724
+
725
+ /* Anything that has been anchored to should have extra scroll margin */
726
+ :target {
727
+ scroll-margin-block: 5ex;
728
+ }
@@ -1,2 +1,2 @@
1
1
  export type GridAlignment = 'start' | 'end';
2
- export type GridSpacing = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 40;
2
+ export type GridSpacing = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56;