@mirohq/design-system-styles 1.2.31-new-focus-keyboard.0 → 1.2.31-new-focus-keyboard.1
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 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -31,11 +31,11 @@ if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == n
|
|
|
31
31
|
}
|
|
32
32
|
const css = (style) => {
|
|
33
33
|
const styleWithOutline = {
|
|
34
|
+
// use `as any` to workaround TS2742 error
|
|
35
|
+
...style,
|
|
34
36
|
"@media (forced-colors: active)": {
|
|
35
37
|
outline: "Highlight solid"
|
|
36
|
-
}
|
|
37
|
-
// use `as any` to workaround TS2742 error
|
|
38
|
-
...style
|
|
38
|
+
}
|
|
39
39
|
};
|
|
40
40
|
return {
|
|
41
41
|
"&:focus-visible": styleWithOutline,
|
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 for Windows High Contrast Mode\n const styleWithOutline = {\n '@media (forced-colors: active)': {\n outline: 'Highlight solid',\n },\n
|
|
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 for Windows High Contrast Mode\n const styleWithOutline = {\n // use `as any` to workaround TS2742 error\n ...(style as any),\n\n '@media (forced-colors: active)': {\n outline: 'Highlight solid',\n },\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","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;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,mFAAA;AAAA;AAAA,IAA4C,YAAA;AAAA,EAAY,MAAA,CAAA;AAC1D,CAAA;AAGa,MAAA,GAAA,GAAM,CAAC,KAAe,KAAA;AAEjC,EAAA,MAAM,gBAAmB,GAAA;AAAA;AAAA,IAEvB,GAAI,KAAA;AAAA,IAEJ,gCAAkC,EAAA;AAAA,MAChC,OAAS,EAAA,iBAAA;AAAA,KACX;AAAA,GACF,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;;;;;;;ACxBO,MAAM,eAAeA,8BAAU,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,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
|
@@ -9,11 +9,11 @@ if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == n
|
|
|
9
9
|
}
|
|
10
10
|
const css = (style) => {
|
|
11
11
|
const styleWithOutline = {
|
|
12
|
+
// use `as any` to workaround TS2742 error
|
|
13
|
+
...style,
|
|
12
14
|
"@media (forced-colors: active)": {
|
|
13
15
|
outline: "Highlight solid"
|
|
14
|
-
}
|
|
15
|
-
// use `as any` to workaround TS2742 error
|
|
16
|
-
...style
|
|
16
|
+
}
|
|
17
17
|
};
|
|
18
18
|
return {
|
|
19
19
|
"&:focus-visible": styleWithOutline,
|
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 for Windows High Contrast Mode\n const styleWithOutline = {\n '@media (forced-colors: active)': {\n outline: 'Highlight solid',\n },\n
|
|
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 for Windows High Contrast Mode\n const styleWithOutline = {\n // use `as any` to workaround TS2742 error\n ...(style as any),\n\n '@media (forced-colors: active)': {\n outline: 'Highlight solid',\n },\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","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;AAEjC,EAAA,MAAM,gBAAmB,GAAA;AAAA;AAAA,IAEvB,GAAI,KAAA;AAAA,IAEJ,gCAAkC,EAAA;AAAA,MAChC,OAAS,EAAA,iBAAA;AAAA,KACX;AAAA,GACF,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;;;;;;;ACxBO,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-styles",
|
|
3
|
-
"version": "1.2.31-new-focus-keyboard.
|
|
3
|
+
"version": "1.2.31-new-focus-keyboard.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"what-input": "^5.2.11",
|
|
29
|
-
"@mirohq/design-system-stitches": "^2.6.31-new-focus-keyboard.
|
|
29
|
+
"@mirohq/design-system-stitches": "^2.6.31-new-focus-keyboard.1"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "rollup -c ../../rollup.config.js",
|