@marigold/system 0.5.0 → 0.7.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 +21 -0
- package/dist/index.d.ts +35 -22
- package/dist/index.js +23 -15
- package/dist/index.mjs +23 -15
- package/package.json +4 -3
- package/CHANGELOG.md +0 -76
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
|
@@ -13,8 +13,9 @@ declare type StyleObject = ThemeUIStyleObject;
|
|
|
13
13
|
declare type CSSObject = ThemeUICSSObject;
|
|
14
14
|
declare type CSSProperties = ThemeUICSSProperties;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
interface StyleProps extends Pick<CSSObject, 'display' | 'height' | 'width' | 'minWidth' | 'maxWidth' | 'position' | 'top' | 'bottom' | 'right' | 'left' | 'zIndex' | 'p' | 'px' | 'py' | 'pt' | 'pb' | 'pl' | 'pr' | 'm' | 'mx' | 'my' | 'mt' | 'mb' | 'ml' | 'mr' | 'flexDirection' | 'flexWrap' | 'flexShrink' | 'flexGrow' | 'alignItems' | 'justifyContent' | 'bg' | 'border' | 'borderRadius' | 'boxShadow' | 'opacity' | 'overflow' | 'transition'> {
|
|
17
|
+
}
|
|
18
|
+
interface BoxOwnProps extends StyleProps {
|
|
18
19
|
css?: CSSObject;
|
|
19
20
|
variant?: string | string[];
|
|
20
21
|
/**
|
|
@@ -22,8 +23,9 @@ declare type BoxOwnProps = {
|
|
|
22
23
|
* @internal Used to set default styles for Marigold components
|
|
23
24
|
*/
|
|
24
25
|
__baseCSS?: CSSObject;
|
|
25
|
-
}
|
|
26
|
-
|
|
26
|
+
}
|
|
27
|
+
interface BoxProps extends PolymorphicPropsWithRef<BoxOwnProps, 'div'> {
|
|
28
|
+
}
|
|
27
29
|
declare const Box: PolymorphicComponentWithRef<BoxOwnProps, 'div'>;
|
|
28
30
|
|
|
29
31
|
declare const Global: () => JSX.Element;
|
|
@@ -177,9 +179,9 @@ declare const getNormalizedStyles: (val?: ElementType<any> | undefined) => {
|
|
|
177
179
|
readonly minWidth: 0;
|
|
178
180
|
};
|
|
179
181
|
|
|
180
|
-
|
|
182
|
+
interface SVGProps extends ComponentProps<'svg'> {
|
|
181
183
|
size?: number;
|
|
182
|
-
}
|
|
184
|
+
}
|
|
183
185
|
declare const SVG: React.FC<SVGProps>;
|
|
184
186
|
|
|
185
187
|
/**
|
|
@@ -208,13 +210,21 @@ declare type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
|
|
|
208
210
|
* descriptive name for the scale (e.g. `small`/`medium`/.. or `body`/`heading`/...),
|
|
209
211
|
* and the value is the CSS value.
|
|
210
212
|
*/
|
|
211
|
-
|
|
213
|
+
interface Scale<T> {
|
|
212
214
|
[key: string]: ScaleValue<T>;
|
|
213
|
-
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* A {@link Scale} that also includes a required `none` value, which is
|
|
218
|
+
* usually used to define the blank value (e.g `0`).
|
|
219
|
+
*/
|
|
220
|
+
interface ZeroScale<T> extends Scale<T> {
|
|
221
|
+
none: ScaleValue<T>;
|
|
222
|
+
}
|
|
214
223
|
/**
|
|
215
224
|
* Predefined {@link Scale} scale which uses size values.
|
|
216
225
|
*/
|
|
217
|
-
|
|
226
|
+
interface SizeScale<T> {
|
|
227
|
+
regular?: ScaleValue<T>;
|
|
218
228
|
xxsmall?: ScaleValue<T>;
|
|
219
229
|
xsmall?: ScaleValue<T>;
|
|
220
230
|
small?: ScaleValue<T>;
|
|
@@ -222,14 +232,17 @@ declare type SizeScale<T> = {
|
|
|
222
232
|
large?: ScaleValue<T>;
|
|
223
233
|
xlarge?: ScaleValue<T>;
|
|
224
234
|
xxlarge?: ScaleValue<T>;
|
|
225
|
-
|
|
235
|
+
xxxlarge?: ScaleValue<T>;
|
|
236
|
+
huge?: ScaleValue<T>;
|
|
237
|
+
epic?: ScaleValue<T>;
|
|
238
|
+
}
|
|
226
239
|
/**
|
|
227
240
|
* A {@link SizeScale} that also includes a required `none` value, which is
|
|
228
241
|
* usually used to define the blank value (e.g `0`).
|
|
229
242
|
*/
|
|
230
|
-
|
|
243
|
+
interface ZeroSizeScale<T> extends SizeScale<T> {
|
|
231
244
|
none: ScaleValue<T>;
|
|
232
|
-
}
|
|
245
|
+
}
|
|
233
246
|
/**
|
|
234
247
|
* Base theme with typings for available scales properties.
|
|
235
248
|
*/
|
|
@@ -246,7 +259,7 @@ interface Theme {
|
|
|
246
259
|
* ```ts
|
|
247
260
|
* {
|
|
248
261
|
* breakpoints: [
|
|
249
|
-
* '40em', '
|
|
262
|
+
* '40em', '50em', '64em',
|
|
250
263
|
* ],
|
|
251
264
|
* }
|
|
252
265
|
* ```
|
|
@@ -257,7 +270,7 @@ interface Theme {
|
|
|
257
270
|
* Used to define a scale for whitspace values,
|
|
258
271
|
* like `padding`, `margin`, `gap`, etc.
|
|
259
272
|
*/
|
|
260
|
-
space?:
|
|
273
|
+
space?: ZeroSizeScale<CSS.Property.Margin<number | string>>;
|
|
261
274
|
/**
|
|
262
275
|
* Used to define a `font-size` scale.
|
|
263
276
|
*/
|
|
@@ -277,12 +290,12 @@ interface Theme {
|
|
|
277
290
|
/**
|
|
278
291
|
* Used to define a `letter-spacing` scale.
|
|
279
292
|
*/
|
|
280
|
-
letterSpacings?:
|
|
293
|
+
letterSpacings?: Scale<CSS.Property.LetterSpacing<string | 0 | number>>;
|
|
281
294
|
/**
|
|
282
295
|
* Used to define a scale for size values,
|
|
283
296
|
* like `height`, `width`, `flexBasis`, etc.
|
|
284
297
|
*/
|
|
285
|
-
sizes?:
|
|
298
|
+
sizes?: ZeroSizeScale<CSS.Property.Height<{}> | CSS.Property.Width<{}>>;
|
|
286
299
|
/**
|
|
287
300
|
* Used to define different `border` styles.
|
|
288
301
|
*/
|
|
@@ -314,7 +327,7 @@ interface Theme {
|
|
|
314
327
|
/**
|
|
315
328
|
* Used to define a `transition` styles.
|
|
316
329
|
*/
|
|
317
|
-
transitions?:
|
|
330
|
+
transitions?: Scale<CSS.Property.Transition>;
|
|
318
331
|
}
|
|
319
332
|
|
|
320
333
|
/**
|
|
@@ -332,10 +345,10 @@ declare const useTheme: () => {
|
|
|
332
345
|
theme: Theme;
|
|
333
346
|
css: (style: StyleObject) => _theme_ui_css.CSSObject;
|
|
334
347
|
};
|
|
335
|
-
|
|
348
|
+
interface ThemeProviderProps<T extends Theme> {
|
|
336
349
|
theme: T;
|
|
337
350
|
children: ReactNode;
|
|
338
|
-
}
|
|
351
|
+
}
|
|
339
352
|
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): JSX.Element;
|
|
340
353
|
|
|
341
354
|
/**
|
|
@@ -351,13 +364,13 @@ declare const ensureVariantDefault: (val: string) => string;
|
|
|
351
364
|
* Ensures that the `variant` is an array and supports the `__default` key.
|
|
352
365
|
*/
|
|
353
366
|
declare const ensureArrayVariant: <T extends string>(variant?: T | T[] | undefined) => string[];
|
|
354
|
-
|
|
367
|
+
interface State {
|
|
355
368
|
checked?: boolean;
|
|
356
369
|
focus?: boolean;
|
|
357
370
|
hover?: boolean;
|
|
358
371
|
disabled?: boolean;
|
|
359
372
|
error?: boolean;
|
|
360
|
-
}
|
|
373
|
+
}
|
|
361
374
|
/**
|
|
362
375
|
* Appends given `state` to a `variant`.
|
|
363
376
|
*/
|
|
@@ -368,4 +381,4 @@ declare const appendVariantState: (variant: string, state: keyof State) => strin
|
|
|
368
381
|
*/
|
|
369
382
|
declare const conditional: (variant: string, { disabled, ...states }: State) => string[];
|
|
370
383
|
|
|
371
|
-
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 };
|
|
384
|
+
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
|
@@ -165,13 +165,13 @@ var conditional = (variant, _a) => {
|
|
|
165
165
|
|
|
166
166
|
// src/Box.tsx
|
|
167
167
|
var isNotEmpty = (val) => !(val && Object.keys(val).length === 0 && val.constructor === Object);
|
|
168
|
-
var createThemedStyle = ({ as, __baseCSS, variant, styles, css
|
|
168
|
+
var createThemedStyle = ({ as, __baseCSS, variant, styles, css }) => (theme) => {
|
|
169
169
|
return [
|
|
170
170
|
getNormalizedStyles(as),
|
|
171
171
|
(0, import_css.css)(__baseCSS)(theme),
|
|
172
172
|
...ensureArrayVariant(variant).map((v) => (0, import_css.css)({ variant: v })(theme)),
|
|
173
173
|
(0, import_css.css)(styles)(theme),
|
|
174
|
-
(0, import_css.css)(
|
|
174
|
+
(0, import_css.css)(css)(theme)
|
|
175
175
|
].filter(isNotEmpty);
|
|
176
176
|
};
|
|
177
177
|
var Box = (0, import_react2.forwardRef)((_a, ref) => {
|
|
@@ -180,7 +180,7 @@ var Box = (0, import_react2.forwardRef)((_a, ref) => {
|
|
|
180
180
|
children,
|
|
181
181
|
__baseCSS,
|
|
182
182
|
variant,
|
|
183
|
-
css
|
|
183
|
+
css = {},
|
|
184
184
|
display,
|
|
185
185
|
height,
|
|
186
186
|
width,
|
|
@@ -269,7 +269,7 @@ var Box = (0, import_react2.forwardRef)((_a, ref) => {
|
|
|
269
269
|
as,
|
|
270
270
|
__baseCSS,
|
|
271
271
|
variant,
|
|
272
|
-
css
|
|
272
|
+
css,
|
|
273
273
|
styles: {
|
|
274
274
|
display,
|
|
275
275
|
height,
|
|
@@ -327,8 +327,8 @@ var __defaultTheme = {};
|
|
|
327
327
|
var InternalContext = (0, import_react3.createContext)(__defaultTheme);
|
|
328
328
|
var useTheme = () => {
|
|
329
329
|
const theme = (0, import_react3.useContext)(InternalContext);
|
|
330
|
-
const
|
|
331
|
-
return { theme, css
|
|
330
|
+
const css = (0, import_react3.useCallback)((style) => (0, import_css2.css)(style)(theme), [theme]);
|
|
331
|
+
return { theme, css };
|
|
332
332
|
};
|
|
333
333
|
function ThemeProvider({
|
|
334
334
|
theme,
|
|
@@ -352,10 +352,11 @@ var reduceMotionStyles = {
|
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
354
|
var Global = () => {
|
|
355
|
-
const { css
|
|
356
|
-
const styles =
|
|
355
|
+
const { css } = useTheme();
|
|
356
|
+
const styles = css({
|
|
357
357
|
html: {
|
|
358
358
|
height: "100%",
|
|
359
|
+
textSizeAdjust: "none",
|
|
359
360
|
variant: "root.html"
|
|
360
361
|
},
|
|
361
362
|
body: {
|
|
@@ -372,17 +373,24 @@ var Global = () => {
|
|
|
372
373
|
|
|
373
374
|
// src/SVG.tsx
|
|
374
375
|
var import_react7 = require("@emotion/react");
|
|
375
|
-
var
|
|
376
|
+
var normalizedStyles = getNormalizedStyles("svg");
|
|
376
377
|
var SVG = (_a) => {
|
|
377
|
-
var _b = _a, {
|
|
378
|
-
|
|
378
|
+
var _b = _a, {
|
|
379
|
+
size = 24,
|
|
380
|
+
fill = "currentcolor",
|
|
381
|
+
children
|
|
382
|
+
} = _b, props = __objRest(_b, [
|
|
383
|
+
"size",
|
|
384
|
+
"fill",
|
|
385
|
+
"children"
|
|
386
|
+
]);
|
|
387
|
+
const { css } = useTheme();
|
|
388
|
+
return (0, import_react7.jsx)("svg", __spreadValues({
|
|
379
389
|
width: size,
|
|
380
390
|
height: size,
|
|
381
391
|
viewBox: "0 0 24 24",
|
|
382
|
-
|
|
383
|
-
}, props),
|
|
384
|
-
css
|
|
385
|
-
}), children);
|
|
392
|
+
css: css(__spreadValues({ fill }, normalizedStyles))
|
|
393
|
+
}, props), children);
|
|
386
394
|
};
|
|
387
395
|
|
|
388
396
|
// src/useResponsiveValue.ts
|
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
|
|
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(
|
|
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
|
|
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
|
|
228
|
+
css,
|
|
229
229
|
styles: {
|
|
230
230
|
display,
|
|
231
231
|
height,
|
|
@@ -287,8 +287,8 @@ var __defaultTheme = {};
|
|
|
287
287
|
var InternalContext = createContext(__defaultTheme);
|
|
288
288
|
var useTheme = () => {
|
|
289
289
|
const theme = useContext(InternalContext);
|
|
290
|
-
const
|
|
291
|
-
return { theme, css
|
|
290
|
+
const css = useCallback((style) => transformStyleObject2(style)(theme), [theme]);
|
|
291
|
+
return { theme, css };
|
|
292
292
|
};
|
|
293
293
|
function ThemeProvider({
|
|
294
294
|
theme,
|
|
@@ -312,10 +312,11 @@ var reduceMotionStyles = {
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
var Global = () => {
|
|
315
|
-
const { css
|
|
316
|
-
const styles =
|
|
315
|
+
const { css } = useTheme();
|
|
316
|
+
const styles = css({
|
|
317
317
|
html: {
|
|
318
318
|
height: "100%",
|
|
319
|
+
textSizeAdjust: "none",
|
|
319
320
|
variant: "root.html"
|
|
320
321
|
},
|
|
321
322
|
body: {
|
|
@@ -332,17 +333,24 @@ var Global = () => {
|
|
|
332
333
|
|
|
333
334
|
// src/SVG.tsx
|
|
334
335
|
import { jsx as jsx2 } from "@emotion/react";
|
|
335
|
-
var
|
|
336
|
+
var normalizedStyles = getNormalizedStyles("svg");
|
|
336
337
|
var SVG = (_a) => {
|
|
337
|
-
var _b = _a, {
|
|
338
|
-
|
|
338
|
+
var _b = _a, {
|
|
339
|
+
size = 24,
|
|
340
|
+
fill = "currentcolor",
|
|
341
|
+
children
|
|
342
|
+
} = _b, props = __objRest(_b, [
|
|
343
|
+
"size",
|
|
344
|
+
"fill",
|
|
345
|
+
"children"
|
|
346
|
+
]);
|
|
347
|
+
const { css } = useTheme();
|
|
348
|
+
return jsx2("svg", __spreadValues({
|
|
339
349
|
width: size,
|
|
340
350
|
height: size,
|
|
341
351
|
viewBox: "0 0 24 24",
|
|
342
|
-
|
|
343
|
-
}, props),
|
|
344
|
-
css
|
|
345
|
-
}), children);
|
|
352
|
+
css: css(__spreadValues({ fill }, normalizedStyles))
|
|
353
|
+
}, props), children);
|
|
346
354
|
};
|
|
347
355
|
|
|
348
356
|
// src/useResponsiveValue.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marigold/system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Marigold System Library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@emotion/react": "11.7.1",
|
|
30
30
|
"@marigold/types": "0.4.0",
|
|
31
31
|
"@theme-ui/css": "0.13.1",
|
|
32
|
-
"csstype": "3.0.
|
|
32
|
+
"csstype": "3.0.11"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.x || ^17.0.0",
|
|
@@ -43,5 +43,6 @@
|
|
|
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,76 +0,0 @@
|
|
|
1
|
-
# @marigold/system
|
|
2
|
-
|
|
3
|
-
## 0.5.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- [#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
|
|
8
|
-
|
|
9
|
-
## 0.4.0
|
|
10
|
-
|
|
11
|
-
### Minor Changes
|
|
12
|
-
|
|
13
|
-
- [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - chore: Use `tsup` to build packages
|
|
14
|
-
|
|
15
|
-
* [`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942) Thanks [@sebald](https://github.com/sebald)! - Improved size in node_modules
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- Updated dependencies [[`f9526234`](https://github.com/marigold-ui/marigold/commit/f9526234257a149b12c14191a524691470da3942)]:
|
|
20
|
-
- @marigold/types@0.4.0
|
|
21
|
-
|
|
22
|
-
## 0.3.1
|
|
23
|
-
|
|
24
|
-
### Patch Changes
|
|
25
|
-
|
|
26
|
-
- [#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
|
|
27
|
-
|
|
28
|
-
## 0.3.0
|
|
29
|
-
|
|
30
|
-
### Minor Changes
|
|
31
|
-
|
|
32
|
-
- [#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
|
|
33
|
-
|
|
34
|
-
### Patch Changes
|
|
35
|
-
|
|
36
|
-
- [#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>
|
|
37
|
-
|
|
38
|
-
* [#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
|
|
39
|
-
|
|
40
|
-
- [#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
|
|
41
|
-
|
|
42
|
-
* [#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
|
|
43
|
-
|
|
44
|
-
- [#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
|
|
45
|
-
|
|
46
|
-
* [#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
|
|
47
|
-
|
|
48
|
-
- [#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
|
|
49
|
-
|
|
50
|
-
* [#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
|
|
51
|
-
|
|
52
|
-
- [#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
|
|
53
|
-
|
|
54
|
-
* [#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
|
|
55
|
-
|
|
56
|
-
- [#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
|
|
57
|
-
|
|
58
|
-
* [#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
|
|
59
|
-
|
|
60
|
-
- [#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
|
|
61
|
-
|
|
62
|
-
* [#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
|
|
63
|
-
|
|
64
|
-
- [#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
|
|
65
|
-
|
|
66
|
-
* [#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
|
|
67
|
-
|
|
68
|
-
- [#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
|
|
69
|
-
|
|
70
|
-
* [#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>`
|
|
71
|
-
|
|
72
|
-
- [#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
|
|
73
|
-
|
|
74
|
-
* [#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>
|
|
75
|
-
|
|
76
|
-
- [#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
|