@oscarpalmer/atoms 0.77.3 → 0.78.0

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 (167) hide show
  1. package/README.md +2 -2
  2. package/package.json +39 -78
  3. package/dist/css/a11y.css +0 -13
  4. package/dist/css/flex.css +0 -150
  5. package/dist/css/reset.css +0 -316
  6. package/src/css/a11y.scss +0 -16
  7. package/src/css/flex.scss +0 -104
  8. package/src/css/reset.scss +0 -323
  9. /package/dist/{js/array → array}/chunk.cjs +0 -0
  10. /package/dist/{js/array → array}/chunk.js +0 -0
  11. /package/dist/{js/array → array}/compact.cjs +0 -0
  12. /package/dist/{js/array → array}/compact.js +0 -0
  13. /package/dist/{js/array → array}/count.cjs +0 -0
  14. /package/dist/{js/array → array}/count.js +0 -0
  15. /package/dist/{js/array → array}/exists.cjs +0 -0
  16. /package/dist/{js/array → array}/exists.js +0 -0
  17. /package/dist/{js/array → array}/filter.cjs +0 -0
  18. /package/dist/{js/array → array}/filter.js +0 -0
  19. /package/dist/{js/array → array}/find.cjs +0 -0
  20. /package/dist/{js/array → array}/find.js +0 -0
  21. /package/dist/{js/array → array}/group-by.cjs +0 -0
  22. /package/dist/{js/array → array}/group-by.js +0 -0
  23. /package/dist/{js/array → array}/index-of.cjs +0 -0
  24. /package/dist/{js/array → array}/index-of.js +0 -0
  25. /package/dist/{js/array → array}/index.cjs +0 -0
  26. /package/dist/{js/array → array}/index.js +0 -0
  27. /package/dist/{js/array → array}/insert.cjs +0 -0
  28. /package/dist/{js/array → array}/insert.js +0 -0
  29. /package/dist/{js/array → array}/models.cjs +0 -0
  30. /package/dist/{js/array → array}/models.js +0 -0
  31. /package/dist/{js/array → array}/shuffle.cjs +0 -0
  32. /package/dist/{js/array → array}/shuffle.js +0 -0
  33. /package/dist/{js/array → array}/sort.cjs +0 -0
  34. /package/dist/{js/array → array}/sort.js +0 -0
  35. /package/dist/{js/array → array}/splice.cjs +0 -0
  36. /package/dist/{js/array → array}/splice.js +0 -0
  37. /package/dist/{js/array → array}/to-map.cjs +0 -0
  38. /package/dist/{js/array → array}/to-map.js +0 -0
  39. /package/dist/{js/array → array}/to-record.cjs +0 -0
  40. /package/dist/{js/array → array}/to-record.js +0 -0
  41. /package/dist/{js/array → array}/unique.cjs +0 -0
  42. /package/dist/{js/array → array}/unique.js +0 -0
  43. /package/dist/{js/colour → colour}/base.cjs +0 -0
  44. /package/dist/{js/colour → colour}/base.js +0 -0
  45. /package/dist/{js/colour → colour}/functions.cjs +0 -0
  46. /package/dist/{js/colour → colour}/functions.js +0 -0
  47. /package/dist/{js/colour → colour}/hex.cjs +0 -0
  48. /package/dist/{js/colour → colour}/hex.js +0 -0
  49. /package/dist/{js/colour → colour}/hsl.cjs +0 -0
  50. /package/dist/{js/colour → colour}/hsl.js +0 -0
  51. /package/dist/{js/colour → colour}/index.cjs +0 -0
  52. /package/dist/{js/colour → colour}/index.js +0 -0
  53. /package/dist/{js/colour → colour}/is.cjs +0 -0
  54. /package/dist/{js/colour → colour}/is.js +0 -0
  55. /package/dist/{js/colour → colour}/rgb.cjs +0 -0
  56. /package/dist/{js/colour → colour}/rgb.js +0 -0
  57. /package/dist/{js/emitter.cjs → emitter.cjs} +0 -0
  58. /package/dist/{js/emitter.js → emitter.js} +0 -0
  59. /package/dist/{js/function.cjs → function.cjs} +0 -0
  60. /package/dist/{js/function.js → function.js} +0 -0
  61. /package/dist/{js/index.cjs → index.cjs} +0 -0
  62. /package/dist/{js/index.js → index.js} +0 -0
  63. /package/dist/{js/internal → internal}/array/callbacks.cjs +0 -0
  64. /package/dist/{js/internal → internal}/array/callbacks.js +0 -0
  65. /package/dist/{js/internal → internal}/array/find.cjs +0 -0
  66. /package/dist/{js/internal → internal}/array/find.js +0 -0
  67. /package/dist/{js/internal → internal}/value/handle.cjs +0 -0
  68. /package/dist/{js/internal → internal}/value/handle.js +0 -0
  69. /package/dist/{js/is.cjs → is.cjs} +0 -0
  70. /package/dist/{js/is.js → is.js} +0 -0
  71. /package/dist/{js/logger.cjs → logger.cjs} +0 -0
  72. /package/dist/{js/logger.js → logger.js} +0 -0
  73. /package/dist/{js/math.cjs → math.cjs} +0 -0
  74. /package/dist/{js/math.js → math.js} +0 -0
  75. /package/dist/{js/models.cjs → models.cjs} +0 -0
  76. /package/dist/{js/models.js → models.js} +0 -0
  77. /package/dist/{js/number.cjs → number.cjs} +0 -0
  78. /package/dist/{js/number.js → number.js} +0 -0
  79. /package/dist/{js/query.cjs → query.cjs} +0 -0
  80. /package/dist/{js/query.js → query.js} +0 -0
  81. /package/dist/{js/queue.cjs → queue.cjs} +0 -0
  82. /package/dist/{js/queue.js → queue.js} +0 -0
  83. /package/dist/{js/random.cjs → random.cjs} +0 -0
  84. /package/dist/{js/random.js → random.js} +0 -0
  85. /package/dist/{js/sized.cjs → sized.cjs} +0 -0
  86. /package/dist/{js/sized.js → sized.js} +0 -0
  87. /package/dist/{js/string → string}/case.cjs +0 -0
  88. /package/dist/{js/string → string}/case.js +0 -0
  89. /package/dist/{js/string → string}/index.cjs +0 -0
  90. /package/dist/{js/string → string}/index.js +0 -0
  91. /package/dist/{js/string → string}/template.cjs +0 -0
  92. /package/dist/{js/string → string}/template.js +0 -0
  93. /package/dist/{js/touch.cjs → touch.cjs} +0 -0
  94. /package/dist/{js/touch.js → touch.js} +0 -0
  95. /package/dist/{js/value → value}/clone.cjs +0 -0
  96. /package/dist/{js/value → value}/clone.js +0 -0
  97. /package/dist/{js/value → value}/compare.cjs +0 -0
  98. /package/dist/{js/value → value}/compare.js +0 -0
  99. /package/dist/{js/value → value}/diff.cjs +0 -0
  100. /package/dist/{js/value → value}/diff.js +0 -0
  101. /package/dist/{js/value → value}/equal.cjs +0 -0
  102. /package/dist/{js/value → value}/equal.js +0 -0
  103. /package/dist/{js/value → value}/get.cjs +0 -0
  104. /package/dist/{js/value → value}/get.js +0 -0
  105. /package/dist/{js/value → value}/index.cjs +0 -0
  106. /package/dist/{js/value → value}/index.js +0 -0
  107. /package/dist/{js/value → value}/merge.cjs +0 -0
  108. /package/dist/{js/value → value}/merge.js +0 -0
  109. /package/dist/{js/value → value}/set.cjs +0 -0
  110. /package/dist/{js/value → value}/set.js +0 -0
  111. /package/dist/{js/value → value}/smush.cjs +0 -0
  112. /package/dist/{js/value → value}/smush.js +0 -0
  113. /package/dist/{js/value → value}/unsmush.cjs +0 -0
  114. /package/dist/{js/value → value}/unsmush.js +0 -0
  115. /package/src/{js/array → array}/chunk.ts +0 -0
  116. /package/src/{js/array → array}/compact.ts +0 -0
  117. /package/src/{js/array → array}/count.ts +0 -0
  118. /package/src/{js/array → array}/exists.ts +0 -0
  119. /package/src/{js/array → array}/filter.ts +0 -0
  120. /package/src/{js/array → array}/find.ts +0 -0
  121. /package/src/{js/array → array}/group-by.ts +0 -0
  122. /package/src/{js/array → array}/index-of.ts +0 -0
  123. /package/src/{js/array → array}/index.ts +0 -0
  124. /package/src/{js/array → array}/insert.ts +0 -0
  125. /package/src/{js/array → array}/models.ts +0 -0
  126. /package/src/{js/array → array}/shuffle.ts +0 -0
  127. /package/src/{js/array → array}/sort.ts +0 -0
  128. /package/src/{js/array → array}/splice.ts +0 -0
  129. /package/src/{js/array → array}/to-map.ts +0 -0
  130. /package/src/{js/array → array}/to-record.ts +0 -0
  131. /package/src/{js/array → array}/unique.ts +0 -0
  132. /package/src/{js/colour → colour}/base.ts +0 -0
  133. /package/src/{js/colour → colour}/functions.ts +0 -0
  134. /package/src/{js/colour → colour}/hex.ts +0 -0
  135. /package/src/{js/colour → colour}/hsl.ts +0 -0
  136. /package/src/{js/colour → colour}/index.ts +0 -0
  137. /package/src/{js/colour → colour}/is.ts +0 -0
  138. /package/src/{js/colour → colour}/rgb.ts +0 -0
  139. /package/src/{js/emitter.ts → emitter.ts} +0 -0
  140. /package/src/{js/function.ts → function.ts} +0 -0
  141. /package/src/{js/index.ts → index.ts} +0 -0
  142. /package/src/{js/internal → internal}/array/callbacks.ts +0 -0
  143. /package/src/{js/internal → internal}/array/find.ts +0 -0
  144. /package/src/{js/internal → internal}/value/handle.ts +0 -0
  145. /package/src/{js/is.ts → is.ts} +0 -0
  146. /package/src/{js/logger.ts → logger.ts} +0 -0
  147. /package/src/{js/math.ts → math.ts} +0 -0
  148. /package/src/{js/models.ts → models.ts} +0 -0
  149. /package/src/{js/number.ts → number.ts} +0 -0
  150. /package/src/{js/query.ts → query.ts} +0 -0
  151. /package/src/{js/queue.ts → queue.ts} +0 -0
  152. /package/src/{js/random.ts → random.ts} +0 -0
  153. /package/src/{js/sized.ts → sized.ts} +0 -0
  154. /package/src/{js/string → string}/case.ts +0 -0
  155. /package/src/{js/string → string}/index.ts +0 -0
  156. /package/src/{js/string → string}/template.ts +0 -0
  157. /package/src/{js/touch.ts → touch.ts} +0 -0
  158. /package/src/{js/value → value}/clone.ts +0 -0
  159. /package/src/{js/value → value}/compare.ts +0 -0
  160. /package/src/{js/value → value}/diff.ts +0 -0
  161. /package/src/{js/value → value}/equal.ts +0 -0
  162. /package/src/{js/value → value}/get.ts +0 -0
  163. /package/src/{js/value → value}/index.ts +0 -0
  164. /package/src/{js/value → value}/merge.ts +0 -0
  165. /package/src/{js/value → value}/set.ts +0 -0
  166. /package/src/{js/value → value}/smush.ts +0 -0
  167. /package/src/{js/value → value}/unsmush.ts +0 -0
@@ -1,323 +0,0 @@
1
- /*! https://github.com/oscarpalmer/atoms */
2
- /**
3
- * Reset
4
- * ========================
5
- *
6
- * A reset I use for a lot of personal stuff, and elsewhere, of course.
7
- * It's a mix of a few different resets mixed together with some of my own ideas.
8
- *
9
- * When rules are explained, such comments will be suffixed with one ore more square brackets
10
- * with a two-letter code, all of which are listed below. My own code is "OP", which are my initials.
11
- *
12
- * - Andy Bell's "A (more) Modern CSS Reset" [AB]
13
- * https://andy-bell.co.uk/a-more-modern-css-reset/
14
- *
15
- * - CSS Remedy [CR]
16
- * https://github.com/jensimmons/cssremedy
17
- *
18
- * - RESS [RS]
19
- * https://github.com/filipelinhares/ress
20
- *
21
- * - Sanitize.css [SE]
22
- * https://github.com/csstools/sanitize.css
23
- */
24
-
25
- /**
26
- * Catch-alls
27
- */
28
-
29
- * {
30
- padding: 0;
31
- margin: 0;
32
- background-repeat: no-repeat;
33
- }
34
-
35
- *,
36
- *::after,
37
- *::before {
38
- box-sizing: border-box;
39
- }
40
-
41
- ::before,
42
- ::after {
43
- text-decoration: inherit;
44
- vertical-align: inherit;
45
- }
46
-
47
- /**
48
- * Document
49
- */
50
-
51
- :where(:root) {
52
- font-family: system-ui, sans-serif;
53
- font-size: 100%;
54
- line-height: 1.5;
55
- -moz-text-size-adjust: none; // Prevent text size inflation (e.g., after orientation change) [AB][RE][SE]
56
- -webkit-text-size-adjust: none; // ditto
57
- text-size-adjust: none; // ditto
58
- -moz-tab-size: 4;
59
- tab-size: 4;
60
- -webkit-tap-highlight-color: transparent; // Remove the gray highlight on active links in IE 10 [SE]
61
- }
62
-
63
- :where(body) {
64
- min-height: 100vh;
65
- font-size: 1rem;
66
- }
67
-
68
- /**
69
- * General
70
- */
71
-
72
- :where(a) {
73
- background-color: transparent; // Remove the gray background on active links in IE10 [RS]
74
- text-decoration-skip-ink: auto;
75
- text-underline-offset: 0.125em;
76
- }
77
-
78
- :where(abbr[title]) {
79
- border-bottom: none; // Remove the bottom border in Chrome 57 [RS]
80
- text-decoration: underline; // Add the correct text decoration in Safari [RS][SE]
81
- text-decoration: underline dotted; // ditto
82
- }
83
-
84
- :where(b, strong) {
85
- font-weight: bolder; // Add the correct font weight in Chrome, Edge, and Safari [RS][SE]
86
- }
87
-
88
- :where(button, h1, h2, h3, h4, h5, h6, input, label, legend) {
89
- line-height: 1.125; // Set shorter line heights on headings and interactive elements [AB]
90
- }
91
-
92
- :where(button, [type='button' i], [type='reset' i], [type='submit' i]) {
93
- -webkit-appearance: button; // Correct the inability to style clickable types in iOS [RS][SE]
94
- cursor: pointer;
95
- }
96
-
97
- :where(button, select) {
98
- text-transform: none; // Undo transformation in Firefox 40+ and IE11 [RS]
99
- }
100
-
101
- :where(button) {
102
- overflow: visible; // Address 'overflow' set to 'hidden' in IE8–11 [RS]
103
- }
104
-
105
- :where(code, kbd, pre, samp) {
106
- font-family: monospace, monospace; // Specify the font family of code elements [RS][SE]
107
- font-size: 1em; // Correct the odd 'em' font sizing in all browsers [RS][SE]
108
- }
109
-
110
- :where(details > summary:first-of-type) {
111
- display: list-item; // Add the correct display in Safari [SE]
112
- }
113
-
114
- :where(dl, ol, ul) :where(dl, ol, ul) {
115
- margin: 0; // Remove the margin on nested lists in Chrome, Edge, and Safari [SE]
116
- }
117
-
118
- :where(h1, h2, h3, h4, h5, h6) {
119
- text-wrap: balance;
120
- }
121
-
122
- :where(hr) {
123
- height: 0; // Add the correct box sizing in Firefox [CR][RS][SE]
124
- overflow: visible; // Show the overflow in Edge and IE [CR][RS]
125
- border-style: solid;
126
- border-width: 1px 0 0;
127
- color: inherit; // Correct the inheritance of border colour in Firefox [CR][RS][SE]
128
- }
129
-
130
- :where(nav) :where(ol, ul),
131
- :where(ul[class]) {
132
- list-style-type: none;
133
- padding: 0;
134
- }
135
-
136
- :where(nav li)::before {
137
- content: '\200B'; // Prevent VoiceOver from ignoring list semantics in Safari [SE]
138
- float: left;
139
- }
140
-
141
- :where(pre) {
142
- overflow: auto; // Prevent overflow of the container in all browsers [SE]
143
- white-space: pre-wrap; // Overflow by default is bad… [CR]
144
- }
145
-
146
- :where(small) {
147
- font-size: 0.875rem;
148
- }
149
-
150
- :where(sub, sup) {
151
- vertical-align: baseline;
152
- font-size: 0.75rem;
153
- line-height: 0;
154
- position: relative;
155
- }
156
-
157
- :where(sub) {
158
- bottom: -0.25em;
159
- }
160
-
161
- :where(sup) {
162
- top: -0.5em;
163
- }
164
-
165
- :where(table) {
166
- border-collapse: collapse;
167
- border-color: currentColor; // Correct table border colour in Chrome, Edge, and Safari [SE]
168
- text-indent: 0; // Remove text indentation from table contents in Chrome, Edge, and Safari [RS][SE]
169
- }
170
-
171
- /**
172
- * Form-related
173
- */
174
-
175
- :where(button, input, optgroup, select, textarea) {
176
- font: inherit; // Correct the font inheritance in Firefox, Edge, and Safari [RS][SE]
177
- }
178
-
179
- :where(button, input, select, textarea) {
180
- padding: 0.25em 0.5em; // Change the inconsistent appearance in all browsers [SE]
181
- background-color: transparent; // ditto
182
- border: 1px solid WindowFrame; // ditto
183
- color: inherit; // ditto
184
- letter-spacing: inherit; // ditto
185
- }
186
-
187
- :where(fieldset) {
188
- border: 1px solid darkgrey; // Change the inconsistent appearance in all browsers [SE]
189
- }
190
-
191
- :where(optgroup) {
192
- font-weight: bold; // Restore the font weight unset by previous rules [RS]
193
- }
194
-
195
- :where(progress) {
196
- vertical-align: baseline; // Add the correct vertical alignment in Chrome, Edge, and Firefox [RS][SE]
197
- }
198
-
199
- :where(select) {
200
- -webkit-appearance: none; // Change the inconsistent appearance in all browsers [SE]
201
- appearance: none; // ditto
202
- padding-right: 1em; // ditto
203
- background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E")
204
- no-repeat right center / 1em; // ditto
205
- border-radius: 0; // ditto
206
- }
207
-
208
- :where(select[multiple]) {
209
- background-image: none; // Don't show the arrow for multiple choice selects [SE]
210
- }
211
-
212
- select::-ms-expand {
213
- display: none; // Hide in IE11+ [RS]
214
- }
215
-
216
- select::-ms-value {
217
- color: currentColor; // Set text colour in IE11+ [RS]
218
- }
219
-
220
- :where(textarea) {
221
- overflow: auto; // Allow overflow in IE11+ [RS]
222
- resize: vertical; // Change the resize direction in all browsers [RS][SE]
223
- }
224
-
225
- :where([type='color' i], [type='range' i]) {
226
- border-width: 0; // Remove the border and padding in all browsers [SE]
227
- padding: 0; // ditto
228
- }
229
-
230
- :where([type='search' i]) {
231
- -webkit-appearance: textfield; // Correct the odd appearance in Chrome, Edge, and Safari [RS][SE]
232
- outline-offset: -2px; // Correct the outline style in Safari [RS][SE]
233
- }
234
-
235
- ::-webkit-file-upload-button {
236
- -webkit-appearance: button; // Correct the inability to style upload buttons in iOS and Safari [RS][SE]
237
- color: inherit;
238
- font: inherit;
239
- line-height: 1.25;
240
- }
241
-
242
- ::-webkit-inner-spin-button,
243
- ::-webkit-outer-spin-button {
244
- height: auto; // Correct the cursor style of increment and decrement buttons in Safari [RS][SE]
245
- }
246
-
247
- ::-webkit-input-placeholder {
248
- color: inherit; // Correct the text style of placeholders in Chrome, Edge, and Safari. [SE]
249
- opacity: 0.54; // ditto
250
- }
251
-
252
- ::-webkit-search-decoration {
253
- -webkit-appearance: none; // Remove the inner padding in Chrome, Edge, and Safari on macOS [SE]
254
- }
255
-
256
- /**
257
- * Media-related
258
- */
259
-
260
- :where(audio, canvas, embed, iframe, img, object, picture, svg, video) {
261
- max-width: 100%;
262
- vertical-align: middle;
263
- }
264
-
265
- :where(audio, canvas, embed, iframe, img, object, svg, video) {
266
- display: block;
267
- }
268
-
269
- :where(audio) {
270
- width: 100%; // Better default width [CR]
271
- }
272
-
273
- :where(audio:not([controls])) {
274
- display: none;
275
- }
276
-
277
- :where(canvas, img, svg, video) {
278
- height: auto; // Maintain aspect ratios [CR]
279
- }
280
-
281
- :where(iframe) {
282
- border-style: none;
283
- }
284
-
285
- :where(img) {
286
- border-style: none; // Remove the border on images inside links in IE 10 and earlier [CR]
287
- }
288
-
289
- :where(picture) {
290
- display: contents; // Remove the unnecessary wrapping 'picture', while maintaining contents [CR]
291
- }
292
-
293
- :where(source) {
294
- display: none; // Source elements have nothing to display, so we hide them entirely [CR]
295
- }
296
-
297
- :where(svg) {
298
- overflow: hidden; // Hide the overflow in IE 10 and earlier [CR]
299
- }
300
-
301
- :where(svg:not([fill])) {
302
- fill: currentColor;
303
- }
304
-
305
- /**
306
- * Attributes
307
- */
308
-
309
- :where([disabled], [aria-disabled='true' i]) {
310
- cursor: default;
311
- }
312
-
313
- [hidden] {
314
- display: none !important;
315
- }
316
-
317
- :where([aria-busy='true' i]) {
318
- cursor: progress;
319
- }
320
-
321
- :where([aria-controls]) {
322
- cursor: pointer;
323
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes