@mirohq/design-system-styles 1.1.20-colors.2 → 1.1.20-combobox.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 +3 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -2
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -40,12 +40,13 @@ const css = (style) => {
|
|
|
40
40
|
return {
|
|
41
41
|
"&:focus-visible": styleWithOutline,
|
|
42
42
|
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
43
|
-
"&[data-focused]": styleWithOutline
|
|
43
|
+
"&[data-focused]": styleWithOutline,
|
|
44
|
+
"&[data-focus-visible]": styleWithOutline
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
47
|
const defaults = css({
|
|
47
48
|
boxShadow: "$focus-small-outline",
|
|
48
|
-
outline: "$blue-
|
|
49
|
+
outline: "$blue-500"
|
|
49
50
|
});
|
|
50
51
|
const inner = css({
|
|
51
52
|
borderRadius: "$100",
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import 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: CSS) => {\n // Manage focus outline\n // https://craftcms.com/blog/custom-focus-indicators-with-css-variables\n const styleWithOutline = {\n /* Change outline color to transparent so it's invisible but still appears in Windows High Contrast Mode */\n outlineColor: 'transparent',\n outlineStyle: 'solid',\n // use `as any` to workaround TS2742 error\n ...(style as any),\n }\n\n return {\n '&:focus-visible': styleWithOutline,\n '[data-whatintent=\"keyboard\"] &:focus': styleWithOutline,\n '&[data-focused]': styleWithOutline,\n }\n}\n\n/*\n @deprecated use shadow token with css() instead\n */\nexport const defaults = css({\n boxShadow: '$focus-small-outline',\n outline: '$blue-
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import 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: CSS) => {\n // Manage focus outline\n // https://craftcms.com/blog/custom-focus-indicators-with-css-variables\n const styleWithOutline = {\n /* Change outline color to transparent so it's invisible but still appears in Windows High Contrast Mode */\n outlineColor: 'transparent',\n outlineStyle: 'solid',\n // use `as any` to workaround TS2742 error\n ...(style as any),\n }\n\n return {\n '&:focus-visible': styleWithOutline,\n '[data-whatintent=\"keyboard\"] &:focus': styleWithOutline,\n '&[data-focused]': styleWithOutline,\n '&[data-focus-visible]': styleWithOutline,\n }\n}\n\n/*\n @deprecated use shadow token with css() instead\n */\nexport const defaults = css({\n boxShadow: '$focus-small-outline',\n outline: '$blue-500',\n})\n\n/*\n @deprecated use shadow token with css() instead\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%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WAAW,UAAW,EAAA;AAC9C,CAAC,CAAA,CAAA;AAEM,MAAM,gBAAgBA,8BAAU,CAAA;AAAA,EACrC,IAAM,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,UAAW,EAAA;AAAA,EAC1C,MAAQ,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,YAAa,EAAA;AAChD,CAAC,CAAA,CAAA;AAEM,MAAM,SAASA,8BAAU,CAAA;AAAA,EAC9B,IAAA,EAAM,EAAE,OAAA,EAAS,CAAE,EAAA;AAAA,EACnB,KAAA,EAAO,EAAE,OAAA,EAAS,GAAI,EAAA;AAAA,EACtB,MAAA,EAAQ,EAAE,OAAA,EAAS,CAAE,EAAA;AACvB,CAAC,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
|
@@ -18,12 +18,13 @@ const css = (style) => {
|
|
|
18
18
|
return {
|
|
19
19
|
"&:focus-visible": styleWithOutline,
|
|
20
20
|
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
21
|
-
"&[data-focused]": styleWithOutline
|
|
21
|
+
"&[data-focused]": styleWithOutline,
|
|
22
|
+
"&[data-focus-visible]": styleWithOutline
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
const defaults = css({
|
|
25
26
|
boxShadow: "$focus-small-outline",
|
|
26
|
-
outline: "$blue-
|
|
27
|
+
outline: "$blue-500"
|
|
27
28
|
});
|
|
28
29
|
const inner = css({
|
|
29
30
|
borderRadius: "$100",
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import 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: CSS) => {\n // Manage focus outline\n // https://craftcms.com/blog/custom-focus-indicators-with-css-variables\n const styleWithOutline = {\n /* Change outline color to transparent so it's invisible but still appears in Windows High Contrast Mode */\n outlineColor: 'transparent',\n outlineStyle: 'solid',\n // use `as any` to workaround TS2742 error\n ...(style as any),\n }\n\n return {\n '&:focus-visible': styleWithOutline,\n '[data-whatintent=\"keyboard\"] &:focus': styleWithOutline,\n '&[data-focused]': styleWithOutline,\n }\n}\n\n/*\n @deprecated use shadow token with css() instead\n */\nexport const defaults = css({\n boxShadow: '$focus-small-outline',\n outline: '$blue-
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import 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: CSS) => {\n // Manage focus outline\n // https://craftcms.com/blog/custom-focus-indicators-with-css-variables\n const styleWithOutline = {\n /* Change outline color to transparent so it's invisible but still appears in Windows High Contrast Mode */\n outlineColor: 'transparent',\n outlineStyle: 'solid',\n // use `as any` to workaround TS2742 error\n ...(style as any),\n }\n\n return {\n '&:focus-visible': styleWithOutline,\n '[data-whatintent=\"keyboard\"] &:focus': styleWithOutline,\n '&[data-focused]': styleWithOutline,\n '&[data-focus-visible]': styleWithOutline,\n }\n}\n\n/*\n @deprecated use shadow token with css() instead\n */\nexport const defaults = css({\n boxShadow: '$focus-small-outline',\n outline: '$blue-500',\n})\n\n/*\n @deprecated use shadow token with css() instead\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;AAIA,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,GAAY,CAAA;AAC1D,CAAA;AAGa,MAAA,GAAA,GAAM,CAAC,KAAe,KAAA;AAGjC,EAAA,MAAM,gBAAmB,GAAA;AAAA;AAAA,IAEvB,YAAc,EAAA,aAAA;AAAA,IACd,YAAc,EAAA,OAAA;AAAA;AAAA,IAEd,GAAI,KAAA;AAAA,GACN,CAAA;AAEA,EAAO,OAAA;AAAA,IACL,iBAAmB,EAAA,gBAAA;AAAA,IACnB,sCAAwC,EAAA,gBAAA;AAAA,IACxC,iBAAmB,EAAA,gBAAA;AAAA,IACnB,uBAAyB,EAAA,gBAAA;AAAA,GAC3B,CAAA;AACF,CAAA,CAAA;AAKO,MAAM,WAAW,GAAI,CAAA;AAAA,EAC1B,SAAW,EAAA,sBAAA;AAAA,EACX,OAAS,EAAA,WAAA;AACX,CAAC,CAAA,CAAA;AAKM,MAAM,QAAQ,GAAI,CAAA;AAAA,EACvB,YAAc,EAAA,MAAA;AAAA,EACd,SAAW,EAAA,gFAAA;AAAA,EACX,OAAS,EAAA,MAAA;AACX,CAAC,CAAA;;;;;;;;;ACzCM,MAAM,eAAe,SAAU,CAAA;AAAA,EACpC,IAAM,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,YAAa,EAAA;AAAA,EAC5C,MAAQ,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,UAAW,EAAA;AAC9C,CAAC,CAAA,CAAA;AAEM,MAAM,gBAAgB,SAAU,CAAA;AAAA,EACrC,IAAM,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,UAAW,EAAA;AAAA,EAC1C,MAAQ,EAAA,EAAE,OAAS,EAAA,CAAA,EAAG,WAAW,YAAa,EAAA;AAChD,CAAC,CAAA,CAAA;AAEM,MAAM,SAAS,SAAU,CAAA;AAAA,EAC9B,IAAA,EAAM,EAAE,OAAA,EAAS,CAAE,EAAA;AAAA,EACnB,KAAA,EAAO,EAAE,OAAA,EAAS,GAAI,EAAA;AAAA,EACtB,MAAA,EAAQ,EAAE,OAAA,EAAS,CAAE,EAAA;AACvB,CAAC,CAAA,CAAA;AAEM,MAAM,UAAU,SAAU,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/types.d.ts
CHANGED
|
@@ -4,16 +4,19 @@ declare const css: (style: CSS) => {
|
|
|
4
4
|
'&:focus-visible': any;
|
|
5
5
|
'[data-whatintent="keyboard"] &:focus': any;
|
|
6
6
|
'&[data-focused]': any;
|
|
7
|
+
'&[data-focus-visible]': any;
|
|
7
8
|
};
|
|
8
9
|
declare const defaults: {
|
|
9
10
|
'&:focus-visible': any;
|
|
10
11
|
'[data-whatintent="keyboard"] &:focus': any;
|
|
11
12
|
'&[data-focused]': any;
|
|
13
|
+
'&[data-focus-visible]': any;
|
|
12
14
|
};
|
|
13
15
|
declare const inner: {
|
|
14
16
|
'&:focus-visible': any;
|
|
15
17
|
'[data-whatintent="keyboard"] &:focus': any;
|
|
16
18
|
'&[data-focused]': any;
|
|
19
|
+
'&[data-focus-visible]': any;
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
declare const focus_css: typeof css;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-styles",
|
|
3
|
-
"version": "1.1.20-
|
|
3
|
+
"version": "1.1.20-combobox.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"what-input": "^5.2.11",
|
|
29
|
-
"@mirohq/design-system-stitches": "^2.6.
|
|
30
|
-
"@mirohq/design-tokens": "^
|
|
29
|
+
"@mirohq/design-system-stitches": "^2.6.0",
|
|
30
|
+
"@mirohq/design-tokens": "^3.6.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rollup -c ../../rollup.config.js",
|