@marigold/system 0.5.1 → 0.8.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Marigold UI
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/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { PolymorphicPropsWithRef, PolymorphicComponentWithRef, ComponentProps } from '@marigold/types';
2
2
  import * as _theme_ui_css from '@theme-ui/css';
3
3
  import { ResponsiveStyleValue as ResponsiveStyleValue$1, ThemeUIStyleObject, ThemeUICSSObject, ThemeUICSSProperties, NestedScaleDict } from '@theme-ui/css';
4
- import React, { ElementType, ReactNode } from 'react';
4
+ import * as react from 'react';
5
+ import { ElementType, ReactNode } from 'react';
5
6
  import * as CSS from 'csstype';
6
7
 
7
8
  /**
@@ -180,9 +181,9 @@ declare const getNormalizedStyles: (val?: ElementType<any> | undefined) => {
180
181
  };
181
182
 
182
183
  interface SVGProps extends ComponentProps<'svg'> {
183
- size?: number;
184
+ size?: number | string | number[] | string[];
184
185
  }
185
- declare const SVG: React.FC<SVGProps>;
186
+ declare const SVG: ({ size, fill, children, ...props }: SVGProps) => react.ReactSVGElement;
186
187
 
187
188
  /**
188
189
  * Value used to define a scale.
@@ -210,13 +211,21 @@ declare type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
210
211
  * descriptive name for the scale (e.g. `small`/`medium`/.. or `body`/`heading`/...),
211
212
  * and the value is the CSS value.
212
213
  */
213
- declare type Scale<T> = {
214
+ interface Scale<T> {
214
215
  [key: string]: ScaleValue<T>;
215
- };
216
+ }
217
+ /**
218
+ * A {@link Scale} that also includes a required `none` value, which is
219
+ * usually used to define the blank value (e.g `0`).
220
+ */
221
+ interface ZeroScale<T> extends Scale<T> {
222
+ none: ScaleValue<T>;
223
+ }
216
224
  /**
217
225
  * Predefined {@link Scale} scale which uses size values.
218
226
  */
219
- declare type SizeScale<T> = {
227
+ interface SizeScale<T> {
228
+ regular?: ScaleValue<T>;
220
229
  xxsmall?: ScaleValue<T>;
221
230
  xsmall?: ScaleValue<T>;
222
231
  small?: ScaleValue<T>;
@@ -224,14 +233,17 @@ declare type SizeScale<T> = {
224
233
  large?: ScaleValue<T>;
225
234
  xlarge?: ScaleValue<T>;
226
235
  xxlarge?: ScaleValue<T>;
227
- };
236
+ xxxlarge?: ScaleValue<T>;
237
+ huge?: ScaleValue<T>;
238
+ epic?: ScaleValue<T>;
239
+ }
228
240
  /**
229
241
  * A {@link SizeScale} that also includes a required `none` value, which is
230
242
  * usually used to define the blank value (e.g `0`).
231
243
  */
232
- declare type ZeroScale<T> = {
244
+ interface ZeroSizeScale<T> extends SizeScale<T> {
233
245
  none: ScaleValue<T>;
234
- } & Scale<T>;
246
+ }
235
247
  /**
236
248
  * Base theme with typings for available scales properties.
237
249
  */
@@ -248,7 +260,7 @@ interface Theme {
248
260
  * ```ts
249
261
  * {
250
262
  * breakpoints: [
251
- * '40em', '@media (min-width: 56em) and (orientation: landscape)', '64em',
263
+ * '40em', '50em', '64em',
252
264
  * ],
253
265
  * }
254
266
  * ```
@@ -259,7 +271,7 @@ interface Theme {
259
271
  * Used to define a scale for whitspace values,
260
272
  * like `padding`, `margin`, `gap`, etc.
261
273
  */
262
- space?: ZeroScale<CSS.Property.Margin<number | string>>;
274
+ space?: ZeroSizeScale<CSS.Property.Margin<number | string>>;
263
275
  /**
264
276
  * Used to define a `font-size` scale.
265
277
  */
@@ -279,12 +291,12 @@ interface Theme {
279
291
  /**
280
292
  * Used to define a `letter-spacing` scale.
281
293
  */
282
- letterSpacings?: ZeroScale<CSS.Property.LetterSpacing<string | 0 | number>>;
294
+ letterSpacings?: Scale<CSS.Property.LetterSpacing<string | 0 | number>>;
283
295
  /**
284
296
  * Used to define a scale for size values,
285
297
  * like `height`, `width`, `flexBasis`, etc.
286
298
  */
287
- sizes?: ZeroScale<CSS.Property.Height<{}> | CSS.Property.Width<{}>>;
299
+ sizes?: ZeroSizeScale<CSS.Property.Height<{}> | CSS.Property.Width<{}>>;
288
300
  /**
289
301
  * Used to define different `border` styles.
290
302
  */
@@ -316,7 +328,7 @@ interface Theme {
316
328
  /**
317
329
  * Used to define a `transition` styles.
318
330
  */
319
- transitions?: ZeroScale<CSS.Property.Transition>;
331
+ transitions?: Scale<CSS.Property.Transition>;
320
332
  }
321
333
 
322
334
  /**
@@ -333,6 +345,7 @@ declare const __defaultTheme: Theme;
333
345
  declare const useTheme: () => {
334
346
  theme: Theme;
335
347
  css: (style: StyleObject) => _theme_ui_css.CSSObject;
348
+ get: (path: string) => any;
336
349
  };
337
350
  interface ThemeProviderProps<T extends Theme> {
338
351
  theme: T;
@@ -370,4 +383,4 @@ declare const appendVariantState: (variant: string, state: keyof State) => strin
370
383
  */
371
384
  declare const conditional: (variant: string, { disabled, ...states }: State) => string[];
372
385
 
373
- export { Box, BoxOwnProps, BoxProps, CSSObject, CSSProperties, Global, NormalizedElement, ResponsiveStyleValue, SVG, SVGProps, Scale, ScaleValue, SizeScale, State, StyleObject, StyleProps, Theme, ThemeProvider, ThemeProviderProps, ZeroScale, __defaultTheme, appendVariantState, conditional, ensureArray, ensureArrayVariant, ensureVariantDefault, getNormalizedStyles, normalize, useResponsiveValue, useTheme };
386
+ export { Box, BoxOwnProps, BoxProps, CSSObject, CSSProperties, Global, NormalizedElement, ResponsiveStyleValue, SVG, SVGProps, Scale, ScaleValue, SizeScale, State, StyleObject, StyleProps, Theme, ThemeProvider, ThemeProviderProps, ZeroScale, ZeroSizeScale, __defaultTheme, appendVariantState, conditional, ensureArray, ensureArrayVariant, ensureVariantDefault, getNormalizedStyles, normalize, useResponsiveValue, useTheme };
package/dist/index.js CHANGED
@@ -21,7 +21,6 @@ var __spreadValues = (a2, b) => {
21
21
  return a2;
22
22
  };
23
23
  var __spreadProps = (a2, b) => __defProps(a2, __getOwnPropDescs(b));
24
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
24
  var __objRest = (source, exclude) => {
26
25
  var target = {};
27
26
  for (var prop in source)
@@ -38,22 +37,16 @@ var __export = (target, all) => {
38
37
  for (var name in all)
39
38
  __defProp(target, name, { get: all[name], enumerable: true });
40
39
  };
41
- var __reExport = (target, module2, copyDefault, desc) => {
42
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
43
- for (let key of __getOwnPropNames(module2))
44
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
45
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
40
+ var __copyProps = (to, from, except, desc) => {
41
+ if (from && typeof from === "object" || typeof from === "function") {
42
+ for (let key of __getOwnPropNames(from))
43
+ if (!__hasOwnProp.call(to, key) && key !== except)
44
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
45
  }
47
- return target;
48
- };
49
- var __toESM = (module2, isNodeMode) => {
50
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
46
+ return to;
51
47
  };
52
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
53
- return (module2, temp) => {
54
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
55
- };
56
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
48
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
49
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
57
50
 
58
51
  // src/index.ts
59
52
  var src_exports = {};
@@ -73,6 +66,7 @@ __export(src_exports, {
73
66
  useResponsiveValue: () => useResponsiveValue,
74
67
  useTheme: () => useTheme
75
68
  });
69
+ module.exports = __toCommonJS(src_exports);
76
70
 
77
71
  // src/Box.tsx
78
72
  var import_react = require("@emotion/react");
@@ -165,13 +159,13 @@ var conditional = (variant, _a) => {
165
159
 
166
160
  // src/Box.tsx
167
161
  var isNotEmpty = (val) => !(val && Object.keys(val).length === 0 && val.constructor === Object);
168
- var createThemedStyle = ({ as, __baseCSS, variant, styles, css: css2 }) => (theme) => {
162
+ var createThemedStyle = ({ as, __baseCSS, variant, styles, css }) => (theme) => {
169
163
  return [
170
164
  getNormalizedStyles(as),
171
165
  (0, import_css.css)(__baseCSS)(theme),
172
166
  ...ensureArrayVariant(variant).map((v) => (0, import_css.css)({ variant: v })(theme)),
173
167
  (0, import_css.css)(styles)(theme),
174
- (0, import_css.css)(css2)(theme)
168
+ (0, import_css.css)(css)(theme)
175
169
  ].filter(isNotEmpty);
176
170
  };
177
171
  var Box = (0, import_react2.forwardRef)((_a, ref) => {
@@ -180,7 +174,7 @@ var Box = (0, import_react2.forwardRef)((_a, ref) => {
180
174
  children,
181
175
  __baseCSS,
182
176
  variant,
183
- css: css2 = {},
177
+ css = {},
184
178
  display,
185
179
  height,
186
180
  width,
@@ -269,7 +263,7 @@ var Box = (0, import_react2.forwardRef)((_a, ref) => {
269
263
  as,
270
264
  __baseCSS,
271
265
  variant,
272
- css: css2,
266
+ css,
273
267
  styles: {
274
268
  display,
275
269
  height,
@@ -327,8 +321,9 @@ var __defaultTheme = {};
327
321
  var InternalContext = (0, import_react3.createContext)(__defaultTheme);
328
322
  var useTheme = () => {
329
323
  const theme = (0, import_react3.useContext)(InternalContext);
330
- const css2 = (0, import_react3.useCallback)((style) => (0, import_css2.css)(style)(theme), [theme]);
331
- return { theme, css: css2 };
324
+ const css = (0, import_react3.useCallback)((style) => (0, import_css2.css)(style)(theme), [theme]);
325
+ const get = (0, import_react3.useCallback)((path) => (0, import_css2.get)(theme, path), [theme]);
326
+ return { theme, css, get };
332
327
  };
333
328
  function ThemeProvider({
334
329
  theme,
@@ -352,10 +347,11 @@ var reduceMotionStyles = {
352
347
  }
353
348
  };
354
349
  var Global = () => {
355
- const { css: css2 } = useTheme();
356
- const styles = css2({
350
+ const { css } = useTheme();
351
+ const styles = css({
357
352
  html: {
358
353
  height: "100%",
354
+ textSizeAdjust: "none",
359
355
  variant: "root.html"
360
356
  },
361
357
  body: {
@@ -372,17 +368,28 @@ var Global = () => {
372
368
 
373
369
  // src/SVG.tsx
374
370
  var import_react7 = require("@emotion/react");
375
- var css = getNormalizedStyles("svg");
371
+ var normalizedStyles = getNormalizedStyles("svg");
372
+ var toDimension = (value) => Array.isArray(value) ? value.map(ensureNumberOrToken) : ensureNumberOrToken(value);
373
+ var ensureNumberOrToken = (value) => typeof value === "string" && /[0-9]+/.test(value) ? Number(value) : value;
376
374
  var SVG = (_a) => {
377
- var _b = _a, { size = 24, children } = _b, props = __objRest(_b, ["size", "children"]);
378
- return (0, import_react7.jsx)("svg", __spreadProps(__spreadValues({
379
- width: size,
380
- height: size,
375
+ var _b = _a, {
376
+ size = 24,
377
+ fill = "currentcolor",
378
+ children
379
+ } = _b, props = __objRest(_b, [
380
+ "size",
381
+ "fill",
382
+ "children"
383
+ ]);
384
+ const { css } = useTheme();
385
+ return (0, import_react7.jsx)("svg", __spreadValues({
381
386
  viewBox: "0 0 24 24",
382
- fill: "currentcolor"
383
- }, props), {
384
- css
385
- }), children);
387
+ css: css(__spreadProps(__spreadValues({}, normalizedStyles), {
388
+ fill,
389
+ width: toDimension(props.width || size),
390
+ height: toDimension(props.height || size)
391
+ }))
392
+ }, props), children);
386
393
  };
387
394
 
388
395
  // src/useResponsiveValue.ts
@@ -409,7 +416,6 @@ var useResponsiveValue = (values, defaultIndex = 0) => {
409
416
  }, [breakpoints, index]);
410
417
  return values[index >= values.length ? values.length - 1 : index];
411
418
  };
412
- module.exports = __toCommonJS(src_exports);
413
419
  // Annotate the CommonJS export names for ESM import in node:
414
420
  0 && (module.exports = {
415
421
  Box,
package/dist/index.mjs CHANGED
@@ -121,13 +121,13 @@ var conditional = (variant, _a) => {
121
121
 
122
122
  // src/Box.tsx
123
123
  var isNotEmpty = (val) => !(val && Object.keys(val).length === 0 && val.constructor === Object);
124
- var createThemedStyle = ({ as, __baseCSS, variant, styles, css: css2 }) => (theme) => {
124
+ var createThemedStyle = ({ as, __baseCSS, variant, styles, css }) => (theme) => {
125
125
  return [
126
126
  getNormalizedStyles(as),
127
127
  transformStyleObject(__baseCSS)(theme),
128
128
  ...ensureArrayVariant(variant).map((v) => transformStyleObject({ variant: v })(theme)),
129
129
  transformStyleObject(styles)(theme),
130
- transformStyleObject(css2)(theme)
130
+ transformStyleObject(css)(theme)
131
131
  ].filter(isNotEmpty);
132
132
  };
133
133
  var Box = forwardRef((_a, ref) => {
@@ -136,7 +136,7 @@ var Box = forwardRef((_a, ref) => {
136
136
  children,
137
137
  __baseCSS,
138
138
  variant,
139
- css: css2 = {},
139
+ css = {},
140
140
  display,
141
141
  height,
142
142
  width,
@@ -225,7 +225,7 @@ var Box = forwardRef((_a, ref) => {
225
225
  as,
226
226
  __baseCSS,
227
227
  variant,
228
- css: css2,
228
+ css,
229
229
  styles: {
230
230
  display,
231
231
  height,
@@ -281,14 +281,18 @@ import React, {
281
281
  useCallback,
282
282
  useContext
283
283
  } from "react";
284
- import { css as transformStyleObject2 } from "@theme-ui/css";
284
+ import {
285
+ css as transformStyleObject2,
286
+ get as getfromTheme
287
+ } from "@theme-ui/css";
285
288
  import { ThemeProvider as EmotionProvider } from "@emotion/react";
286
289
  var __defaultTheme = {};
287
290
  var InternalContext = createContext(__defaultTheme);
288
291
  var useTheme = () => {
289
292
  const theme = useContext(InternalContext);
290
- const css2 = useCallback((style) => transformStyleObject2(style)(theme), [theme]);
291
- return { theme, css: css2 };
293
+ const css = useCallback((style) => transformStyleObject2(style)(theme), [theme]);
294
+ const get = useCallback((path) => getfromTheme(theme, path), [theme]);
295
+ return { theme, css, get };
292
296
  };
293
297
  function ThemeProvider({
294
298
  theme,
@@ -312,10 +316,11 @@ var reduceMotionStyles = {
312
316
  }
313
317
  };
314
318
  var Global = () => {
315
- const { css: css2 } = useTheme();
316
- const styles = css2({
319
+ const { css } = useTheme();
320
+ const styles = css({
317
321
  html: {
318
322
  height: "100%",
323
+ textSizeAdjust: "none",
319
324
  variant: "root.html"
320
325
  },
321
326
  body: {
@@ -332,17 +337,28 @@ var Global = () => {
332
337
 
333
338
  // src/SVG.tsx
334
339
  import { jsx as jsx2 } from "@emotion/react";
335
- var css = getNormalizedStyles("svg");
340
+ var normalizedStyles = getNormalizedStyles("svg");
341
+ var toDimension = (value) => Array.isArray(value) ? value.map(ensureNumberOrToken) : ensureNumberOrToken(value);
342
+ var ensureNumberOrToken = (value) => typeof value === "string" && /[0-9]+/.test(value) ? Number(value) : value;
336
343
  var SVG = (_a) => {
337
- var _b = _a, { size = 24, children } = _b, props = __objRest(_b, ["size", "children"]);
338
- return jsx2("svg", __spreadProps(__spreadValues({
339
- width: size,
340
- height: size,
344
+ var _b = _a, {
345
+ size = 24,
346
+ fill = "currentcolor",
347
+ children
348
+ } = _b, props = __objRest(_b, [
349
+ "size",
350
+ "fill",
351
+ "children"
352
+ ]);
353
+ const { css } = useTheme();
354
+ return jsx2("svg", __spreadValues({
341
355
  viewBox: "0 0 24 24",
342
- fill: "currentcolor"
343
- }, props), {
344
- css
345
- }), children);
356
+ css: css(__spreadProps(__spreadValues({}, normalizedStyles), {
357
+ fill,
358
+ width: toDimension(props.width || size),
359
+ height: toDimension(props.height || size)
360
+ }))
361
+ }, props), children);
346
362
  };
347
363
 
348
364
  // src/useResponsiveValue.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/system",
3
- "version": "0.5.1",
3
+ "version": "0.8.0",
4
4
  "description": "Marigold System Library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -26,10 +26,10 @@
26
26
  "directory": "packages/system"
27
27
  },
28
28
  "dependencies": {
29
- "@emotion/react": "11.7.1",
29
+ "@emotion/react": "11.8.2",
30
30
  "@marigold/types": "0.4.0",
31
- "@theme-ui/css": "0.13.1",
32
- "csstype": "3.0.10"
31
+ "@theme-ui/css": "0.14.2",
32
+ "csstype": "3.0.11"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^16.x || ^17.0.0",
@@ -37,11 +37,12 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@marigold/tsconfig": "0.3.0",
40
- "tsup": "5.11.13"
40
+ "tsup": "5.12.4"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsup src/index.ts",
44
44
  "watch": "tsup src/index.ts --watch",
45
45
  "clean": "rm -rf node_modules && rm -rf dist"
46
- }
46
+ },
47
+ "readme": "# `@marigold/system`\n\n> Marigold system\n"
47
48
  }
package/CHANGELOG.md DELETED
@@ -1,82 +0,0 @@
1
- # @marigold/system
2
-
3
- ## 0.5.1
4
-
5
- ### Patch Changes
6
-
7
- - [#1795](https://github.com/marigold-ui/marigold/pull/1795) [`a178eafe`](https://github.com/marigold-ui/marigold/commit/a178eafe8c8380ee23b4587d953ee52b231414ff) Thanks [@ti10le](https://github.com/ti10le)! - refa: use interface instead of type
8
-
9
- ## 0.5.0
10
-
11
- ### Minor Changes
12
-
13
- - [#1723](https://github.com/marigold-ui/marigold/pull/1723) [`5936de75`](https://github.com/marigold-ui/marigold/commit/5936de75e5a0134584438117c53c5edfe15c6c5d) Thanks [@sebald](https://github.com/sebald)! - feat(system): add hook that allows to use values based on screen size
14
-
15
- ## 0.4.0
16
-
17
- ### Minor Changes
18
-
19
- - [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - chore: Use `tsup` to build packages
20
-
21
- * [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - Improved size in node_modules
22
-
23
- ### Patch Changes
24
-
25
- - Updated dependencies [[`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942)]:
26
- - @marigold/types@0.4.0
27
-
28
- ## 0.3.1
29
-
30
- ### Patch Changes
31
-
32
- - [#1676](https://github.com/marigold-ui/marigold/pull/1676) [`379041bc`](https://github.com/marigold-ui/marigold/commit/379041bc7d4502bca98029a95afe43ce693222cd) Thanks [@ti10le](https://github.com/ti10le)! - remove the last mdx stories
33
-
34
- ## 0.3.0
35
-
36
- ### Minor Changes
37
-
38
- - [#1163](https://github.com/marigold-ui/marigold/pull/1163) [`51af6693`](https://github.com/marigold-ui/marigold/commit/51af669330fd52e4e31fe5ad71d2b202ab8d2231) Thanks [@sebald](https://github.com/sebald)! - feat(system): Expose helper to transpile style object
39
-
40
- ### Patch Changes
41
-
42
- - [#1549](https://github.com/marigold-ui/marigold/pull/1549) [`c030aa85`](https://github.com/marigold-ui/marigold/commit/c030aa85156356c294bafe9831024f6b6f2ce4db) Thanks [@sebald](https://github.com/sebald)! - refa: use emotion's theme function in <Element>
43
-
44
- * [#1515](https://github.com/marigold-ui/marigold/pull/1515) [`8eda245f`](https://github.com/marigold-ui/marigold/commit/8eda245f01a918fcdaa9f0ac211889ed869aa375) Thanks [@sebald](https://github.com/sebald)! - feat: add normalization for body and html & fix emotion leak
45
-
46
- - [#1491](https://github.com/marigold-ui/marigold/pull/1491) [`5a04de11`](https://github.com/marigold-ui/marigold/commit/5a04de110637d004f5824679697ee4d6a90eaf34) Thanks [@ti10le](https://github.com/ti10le)! - remove useStyles from Element
47
-
48
- * [#1440](https://github.com/marigold-ui/marigold/pull/1440) [`c1da52c0`](https://github.com/marigold-ui/marigold/commit/c1da52c0f035b141608fd606e6ba3bc2b5482dc1) Thanks [@ti10le](https://github.com/ti10le)! - feature: use Element in Box + necessary fix changes
49
-
50
- - [#1591](https://github.com/marigold-ui/marigold/pull/1591) [`1448ddca`](https://github.com/marigold-ui/marigold/commit/1448ddcaa0f647f48b018fa74a8686af30eccc53) Thanks [@sebald](https://github.com/sebald)! - feat(jest): Improve snapshot readability
51
-
52
- * [#1514](https://github.com/marigold-ui/marigold/pull/1514) [`5107b943`](https://github.com/marigold-ui/marigold/commit/5107b943cb3085eb3137d84e79966acad6173a26) Thanks [@sebald](https://github.com/sebald)! - feat(system): Use emotion's context
53
-
54
- - [#1647](https://github.com/marigold-ui/marigold/pull/1647) [`cd3a0d3e`](https://github.com/marigold-ui/marigold/commit/cd3a0d3edb3f2ddc1f561e8007e1c20000f7855a) Thanks [@ti10le](https://github.com/ti10le)! - feat: conditional function to allow state props in variants
55
-
56
- * [#1230](https://github.com/marigold-ui/marigold/pull/1230) [`ebd6e26f`](https://github.com/marigold-ui/marigold/commit/ebd6e26f71f675b98b663bc45c6a2d5badddcd47) Thanks [@viktoria-schwarz](https://github.com/viktoria-schwarz)! - feat: add GlobalStyles via theme
57
-
58
- - [#1563](https://github.com/marigold-ui/marigold/pull/1563) [`6e485f5a`](https://github.com/marigold-ui/marigold/commit/6e485f5a8800094fe54c075a2b21f8abe726b3cd) Thanks [@sebald](https://github.com/sebald)! - feat: Introduce a `Theme` with all available scales
59
-
60
- * [#1620](https://github.com/marigold-ui/marigold/pull/1620) [`80a2abe5`](https://github.com/marigold-ui/marigold/commit/80a2abe5804ba2c5a48cc6b05211245c37baf266) Thanks [@ti10le](https://github.com/ti10le)! - feat(comp): extend Box to handle \_\_default variants
61
-
62
- - [#1579](https://github.com/marigold-ui/marigold/pull/1579) [`e13e3cc1`](https://github.com/marigold-ui/marigold/commit/e13e3cc1fc66b261209973b1fc90eb48117076e9) Thanks [@ti10le](https://github.com/ti10le)! - feat: remove Heading from marigold
63
-
64
- * [#1622](https://github.com/marigold-ui/marigold/pull/1622) [`1829cf17`](https://github.com/marigold-ui/marigold/commit/1829cf17e16c574e5577b3e1709c34dc7ed4faaf) Thanks [@ti10le](https://github.com/ti10le)! - feat(comp): change Card default variant
65
-
66
- - [#1501](https://github.com/marigold-ui/marigold/pull/1501) [`1c1f8648`](https://github.com/marigold-ui/marigold/commit/1c1f864820a060214406ef711f4ed873746c16c4) Thanks [@ti10le](https://github.com/ti10le)! - feat(storybook): remove use styles stories
67
-
68
- * [#1190](https://github.com/marigold-ui/marigold/pull/1190) [`a00b7eb9`](https://github.com/marigold-ui/marigold/commit/a00b7eb971131634414d3912d059fb505bb7a370) Thanks [@sebald](https://github.com/sebald)! - fix(system): List reset should not remove the enumeration
69
-
70
- - [#1499](https://github.com/marigold-ui/marigold/pull/1499) [`ec5baf85`](https://github.com/marigold-ui/marigold/commit/ec5baf85a9a0f82a4fca5bbd1e1680316c186593) Thanks [@sebald](https://github.com/sebald)! - feat: Update and simplify normalization
71
-
72
- * [#1652](https://github.com/marigold-ui/marigold/pull/1652) [`0bb8f19e`](https://github.com/marigold-ui/marigold/commit/0bb8f19ebdec0e2f9dc3f6164f4373cac5c10880) Thanks [@sebald](https://github.com/sebald)! - refa(system): Groupt variant related fns in own file
73
-
74
- - [#1436](https://github.com/marigold-ui/marigold/pull/1436) [`c4ae5c5c`](https://github.com/marigold-ui/marigold/commit/c4ae5c5ca442f93034ff8f4c70adc295547951d4) Thanks [@ti10le](https://github.com/ti10le)! - create Element component + normalize file
75
-
76
- * [#1508](https://github.com/marigold-ui/marigold/pull/1508) [`a1ef2108`](https://github.com/marigold-ui/marigold/commit/a1ef2108dd6c8e6838b517dd58c82d38e71dae2b) Thanks [@sebald](https://github.com/sebald)! - feat: Add default styling to `<Element>`
77
-
78
- - [#1621](https://github.com/marigold-ui/marigold/pull/1621) [`2f7b936f`](https://github.com/marigold-ui/marigold/commit/2f7b936f5b07eade00a51cb138c3c492f1e08c9d) Thanks [@ti10le](https://github.com/ti10le)! - feat(comp): change Badge default variant
79
-
80
- * [#1550](https://github.com/marigold-ui/marigold/pull/1550) [`846eb640`](https://github.com/marigold-ui/marigold/commit/846eb640ad035c7f3410b4a8a451f8de56e62339) Thanks [@sebald](https://github.com/sebald)! - feat: Merge <Box> and <Element>
81
-
82
- - [#1614](https://github.com/marigold-ui/marigold/pull/1614) [`5d63cd9c`](https://github.com/marigold-ui/marigold/commit/5d63cd9c14578787083c82c85d93bbd2ff0efac6) Thanks [@ti10le](https://github.com/ti10le)! - remove all purple color things