@mirohq/design-system-styles 1.0.11-colors.0 → 1.1.0-button.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/dist/main.js +12 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +12 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -42,12 +42,23 @@ const inner = css({
|
|
|
42
42
|
boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,
|
|
43
43
|
outline: "none"
|
|
44
44
|
});
|
|
45
|
+
const smallStyle = {
|
|
46
|
+
boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 2px var(--colors-blue-500), inset 0 0 0 3px var(--colors-white)`,
|
|
47
|
+
outline: "none"
|
|
48
|
+
};
|
|
49
|
+
const smallOutlineStyle = {
|
|
50
|
+
boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 1px var(--colors-blue-500), inset 0 0 0 2px var(--colors-white)`,
|
|
51
|
+
outline: "none",
|
|
52
|
+
borderColor: "$blue-500 !important"
|
|
53
|
+
};
|
|
45
54
|
|
|
46
55
|
var focus = /*#__PURE__*/Object.freeze({
|
|
47
56
|
__proto__: null,
|
|
48
57
|
css: css,
|
|
49
58
|
defaults: defaults,
|
|
50
|
-
inner: inner
|
|
59
|
+
inner: inner,
|
|
60
|
+
smallStyle: smallStyle,
|
|
61
|
+
smallOutlineStyle: smallOutlineStyle
|
|
51
62
|
});
|
|
52
63
|
|
|
53
64
|
const fadeInScaled = designSystemStitches.keyframes({
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\n\n// use what-input to \"fake\" focus-visible\n// TODO: Remove it whenever Safari 15.4 becomes the default for most of its users\nif (/apple/i.test(globalThis?.navigator?.vendor)) {\n import(/* webpackChunkName: \"what-input\" */ 'what-input')\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const css = (style: CSSProperties) => ({\n '&:focus-visible': style,\n '[data-whatintent=\"keyboard\"] &:focus': style,\n})\n\nexport const defaults = css({\n boxShadow: `0 0 0 1px rgba(104, 129, 255, 1), 0 0 0 5px rgba(217, 224, 255, 1)`,\n outline: 'none',\n})\n\nexport const inner = css({\n borderRadius: '$100',\n boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,\n outline: 'none',\n})\n","import { keyframes } from '@mirohq/design-system-stitches'\n\nexport const fadeInScaled = keyframes({\n '0%': { opacity: 0, transform: 'scale(0.8)' },\n '100%': { opacity: 1, transform: 'scale(1)' },\n})\n\nexport const fadeOutScaled = keyframes({\n '0%': { opacity: 1, transform: 'scale(1)' },\n '100%': { opacity: 0, transform: 'scale(0.8)' },\n})\n\nexport const fadeIn = keyframes({\n '0%': { opacity: 0 },\n '50%': { opacity: 0.7 },\n '100%': { opacity: 1 },\n})\n\nexport const fadeOut = keyframes({\n '0%': { opacity: 1 },\n '100%': { opacity: 0 },\n})\n"],"names":["keyframes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,EAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\n// use what-input to \"fake\" focus-visible\n// TODO: Remove it whenever Safari 15.4 becomes the default for most of its users\nif (/apple/i.test(globalThis?.navigator?.vendor)) {\n import(/* webpackChunkName: \"what-input\" */ 'what-input')\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const css = (style: CSSProperties) => ({\n '&:focus-visible': style,\n '[data-whatintent=\"keyboard\"] &:focus': style,\n})\n\nexport const defaults = css({\n boxShadow: `0 0 0 1px rgba(104, 129, 255, 1), 0 0 0 5px rgba(217, 224, 255, 1)`,\n outline: 'none',\n})\n\nexport const inner = css({\n borderRadius: '$100',\n boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,\n outline: 'none',\n})\n\nexport const smallStyle: CSS = {\n boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 2px var(--colors-blue-500), inset 0 0 0 3px var(--colors-white)`,\n outline: 'none',\n}\n\nexport const smallOutlineStyle: CSS = {\n boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 1px var(--colors-blue-500), inset 0 0 0 2px var(--colors-white)`,\n outline: 'none',\n borderColor: '$blue-500 !important',\n}\n","import { keyframes } from '@mirohq/design-system-stitches'\n\nexport const fadeInScaled = keyframes({\n '0%': { opacity: 0, transform: 'scale(0.8)' },\n '100%': { opacity: 1, transform: 'scale(1)' },\n})\n\nexport const fadeOutScaled = keyframes({\n '0%': { opacity: 1, transform: 'scale(1)' },\n '100%': { opacity: 0, transform: 'scale(0.8)' },\n})\n\nexport const fadeIn = keyframes({\n '0%': { opacity: 0 },\n '50%': { opacity: 0.7 },\n '100%': { opacity: 1 },\n})\n\nexport const fadeOut = keyframes({\n '0%': { opacity: 1 },\n '100%': { opacity: 0 },\n})\n"],"names":["keyframes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA,EAAA,CAAA;AAKA,IAAI,SAAS,IAAK,CAAA,CAAA,EAAA,GAAA,UAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAY,SAAZ,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAuB,MAAM,CAAG,EAAA;AAChD,EAAA,mFAAA;AAAA;AAAA,IAA4C,YAAA;AAAA,EAAA,MAAA,CAAA;AAC9C,CAAA;AAGa,MAAA,GAAA,GAAM,CAAC,KAA0B,MAAA;AAAA,EAC5C,iBAAmB,EAA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C,CAAA,CAAA;AAEM,MAAM,UAAUA,8BAAU,CAAA;AAAA,EAC/B,IAAA,EAAM,EAAE,OAAA,EAAS,CAAE,EAAA;AAAA,EACnB,MAAA,EAAQ,EAAE,OAAA,EAAS,CAAE,EAAA;AACvB,CAAC,CAAA;;;;;;;;;;;;;"}
|
package/dist/module.js
CHANGED
|
@@ -20,12 +20,23 @@ const inner = css({
|
|
|
20
20
|
boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,
|
|
21
21
|
outline: "none"
|
|
22
22
|
});
|
|
23
|
+
const smallStyle = {
|
|
24
|
+
boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 2px var(--colors-blue-500), inset 0 0 0 3px var(--colors-white)`,
|
|
25
|
+
outline: "none"
|
|
26
|
+
};
|
|
27
|
+
const smallOutlineStyle = {
|
|
28
|
+
boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 1px var(--colors-blue-500), inset 0 0 0 2px var(--colors-white)`,
|
|
29
|
+
outline: "none",
|
|
30
|
+
borderColor: "$blue-500 !important"
|
|
31
|
+
};
|
|
23
32
|
|
|
24
33
|
var focus = /*#__PURE__*/Object.freeze({
|
|
25
34
|
__proto__: null,
|
|
26
35
|
css: css,
|
|
27
36
|
defaults: defaults,
|
|
28
|
-
inner: inner
|
|
37
|
+
inner: inner,
|
|
38
|
+
smallStyle: smallStyle,
|
|
39
|
+
smallOutlineStyle: smallOutlineStyle
|
|
29
40
|
});
|
|
30
41
|
|
|
31
42
|
const fadeInScaled = keyframes({
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\n\n// use what-input to \"fake\" focus-visible\n// TODO: Remove it whenever Safari 15.4 becomes the default for most of its users\nif (/apple/i.test(globalThis?.navigator?.vendor)) {\n import(/* webpackChunkName: \"what-input\" */ 'what-input')\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const css = (style: CSSProperties) => ({\n '&:focus-visible': style,\n '[data-whatintent=\"keyboard\"] &:focus': style,\n})\n\nexport const defaults = css({\n boxShadow: `0 0 0 1px rgba(104, 129, 255, 1), 0 0 0 5px rgba(217, 224, 255, 1)`,\n outline: 'none',\n})\n\nexport const inner = css({\n borderRadius: '$100',\n boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,\n outline: 'none',\n})\n","import { keyframes } from '@mirohq/design-system-stitches'\n\nexport const fadeInScaled = keyframes({\n '0%': { opacity: 0, transform: 'scale(0.8)' },\n '100%': { opacity: 1, transform: 'scale(1)' },\n})\n\nexport const fadeOutScaled = keyframes({\n '0%': { opacity: 1, transform: 'scale(1)' },\n '100%': { opacity: 0, transform: 'scale(0.8)' },\n})\n\nexport const fadeIn = keyframes({\n '0%': { opacity: 0 },\n '50%': { opacity: 0.7 },\n '100%': { opacity: 1 },\n})\n\nexport const fadeOut = keyframes({\n '0%': { opacity: 1 },\n '100%': { opacity: 0 },\n})\n"],"names":[],"mappings":";;AAAA,IAAA,EAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\n// use what-input to \"fake\" focus-visible\n// TODO: Remove it whenever Safari 15.4 becomes the default for most of its users\nif (/apple/i.test(globalThis?.navigator?.vendor)) {\n import(/* webpackChunkName: \"what-input\" */ 'what-input')\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const css = (style: CSSProperties) => ({\n '&:focus-visible': style,\n '[data-whatintent=\"keyboard\"] &:focus': style,\n})\n\nexport const defaults = css({\n boxShadow: `0 0 0 1px rgba(104, 129, 255, 1), 0 0 0 5px rgba(217, 224, 255, 1)`,\n outline: 'none',\n})\n\nexport const inner = css({\n borderRadius: '$100',\n boxShadow: `inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)`,\n outline: 'none',\n})\n\nexport const smallStyle: CSS = {\n boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 2px var(--colors-blue-500), inset 0 0 0 3px var(--colors-white)`,\n outline: 'none',\n}\n\nexport const smallOutlineStyle: CSS = {\n boxShadow: `0 0 0 2px var(--colors-blue-200), inset 0 0 0 1px var(--colors-blue-500), inset 0 0 0 2px var(--colors-white)`,\n outline: 'none',\n borderColor: '$blue-500 !important',\n}\n","import { keyframes } from '@mirohq/design-system-stitches'\n\nexport const fadeInScaled = keyframes({\n '0%': { opacity: 0, transform: 'scale(0.8)' },\n '100%': { opacity: 1, transform: 'scale(1)' },\n})\n\nexport const fadeOutScaled = keyframes({\n '0%': { opacity: 1, transform: 'scale(1)' },\n '100%': { opacity: 0, transform: 'scale(0.8)' },\n})\n\nexport const fadeIn = keyframes({\n '0%': { opacity: 0 },\n '50%': { opacity: 0.7 },\n '100%': { opacity: 1 },\n})\n\nexport const fadeOut = keyframes({\n '0%': { opacity: 1 },\n '100%': { opacity: 0 },\n})\n"],"names":[],"mappings":";;AAAA,IAAA,EAAA,CAAA;AAKA,IAAI,SAAS,IAAK,CAAA,CAAA,EAAA,GAAA,UAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,UAAA,CAAY,SAAZ,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAuB,MAAM,CAAG,EAAA;AAChD,EAAA;AAAA;AAAA,IAA4C,YAAA;AAAA,GAAA,CAAA;AAC9C,CAAA;AAGa,MAAA,GAAA,GAAM,CAAC,KAA0B,MAAA;AAAA,EAC5C,iBAAmB,EAAA,KAAA;AAAA,EACnB,sCAAwC,EAAA,KAAA;AAC1C,CAAA,CAAA,CAAA;AAEO,MAAM,WAAW,GAAI,CAAA;AAAA,EAC1B,SAAW,EAAA,CAAA,kEA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EAAS,CAAE,EAAA;AACvB,CAAC,CAAA;;;;;;;;;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { CSS } from '@mirohq/design-system-stitches';
|
|
2
3
|
|
|
3
4
|
declare const css: (style: CSSProperties) => {
|
|
4
5
|
'&:focus-visible': CSSProperties;
|
|
@@ -12,15 +13,21 @@ declare const inner: {
|
|
|
12
13
|
'&:focus-visible': CSSProperties;
|
|
13
14
|
'[data-whatintent="keyboard"] &:focus': CSSProperties;
|
|
14
15
|
};
|
|
16
|
+
declare const smallStyle: CSS;
|
|
17
|
+
declare const smallOutlineStyle: CSS;
|
|
15
18
|
|
|
16
19
|
declare const focus_css: typeof css;
|
|
17
20
|
declare const focus_defaults: typeof defaults;
|
|
18
21
|
declare const focus_inner: typeof inner;
|
|
22
|
+
declare const focus_smallStyle: typeof smallStyle;
|
|
23
|
+
declare const focus_smallOutlineStyle: typeof smallOutlineStyle;
|
|
19
24
|
declare namespace focus {
|
|
20
25
|
export {
|
|
21
26
|
focus_css as css,
|
|
22
27
|
focus_defaults as defaults,
|
|
23
28
|
focus_inner as inner,
|
|
29
|
+
focus_smallStyle as smallStyle,
|
|
30
|
+
focus_smallOutlineStyle as smallOutlineStyle,
|
|
24
31
|
};
|
|
25
32
|
}
|
|
26
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-styles",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-button.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"what-input": "^5.2.11",
|
|
26
|
-
"@mirohq/design-system-stitches": "^2.0.11
|
|
27
|
-
"@mirohq/design-tokens": "^
|
|
26
|
+
"@mirohq/design-system-stitches": "^2.0.11",
|
|
27
|
+
"@mirohq/design-tokens": "^2.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "rollup -c ../../rollup.config.js",
|