@mirohq/design-system-styles 1.1.20-combobox.0 → 1.2.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 +5 -17
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -17
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -17
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -31,34 +31,22 @@ if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == n
|
|
|
31
31
|
}
|
|
32
32
|
const css = (style) => {
|
|
33
33
|
const styleWithOutline = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
"@media (forced-colors: active)": {
|
|
35
|
+
outline: "Highlight solid"
|
|
36
|
+
},
|
|
37
37
|
// use `as any` to workaround TS2742 error
|
|
38
38
|
...style
|
|
39
39
|
};
|
|
40
40
|
return {
|
|
41
41
|
"&:focus-visible": styleWithOutline,
|
|
42
42
|
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
43
|
-
"&[data-focused]": styleWithOutline
|
|
44
|
-
"&[data-focus-visible]": styleWithOutline
|
|
43
|
+
"&[data-focused]": styleWithOutline
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
|
-
const defaults = css({
|
|
48
|
-
boxShadow: "$focus-small-outline",
|
|
49
|
-
outline: "$blue-500"
|
|
50
|
-
});
|
|
51
|
-
const inner = css({
|
|
52
|
-
borderRadius: "$100",
|
|
53
|
-
boxShadow: "inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)",
|
|
54
|
-
outline: "none"
|
|
55
|
-
});
|
|
56
46
|
|
|
57
47
|
var focus = /*#__PURE__*/Object.freeze({
|
|
58
48
|
__proto__: null,
|
|
59
|
-
css: css
|
|
60
|
-
defaults: defaults,
|
|
61
|
-
inner: inner
|
|
49
|
+
css: css
|
|
62
50
|
});
|
|
63
51
|
|
|
64
52
|
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 { 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
|
|
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 // 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","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: 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,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,34 +9,22 @@ if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == n
|
|
|
9
9
|
}
|
|
10
10
|
const css = (style) => {
|
|
11
11
|
const styleWithOutline = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"@media (forced-colors: active)": {
|
|
13
|
+
outline: "Highlight solid"
|
|
14
|
+
},
|
|
15
15
|
// use `as any` to workaround TS2742 error
|
|
16
16
|
...style
|
|
17
17
|
};
|
|
18
18
|
return {
|
|
19
19
|
"&:focus-visible": styleWithOutline,
|
|
20
20
|
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
21
|
-
"&[data-focused]": styleWithOutline
|
|
22
|
-
"&[data-focus-visible]": styleWithOutline
|
|
21
|
+
"&[data-focused]": styleWithOutline
|
|
23
22
|
};
|
|
24
23
|
};
|
|
25
|
-
const defaults = css({
|
|
26
|
-
boxShadow: "$focus-small-outline",
|
|
27
|
-
outline: "$blue-500"
|
|
28
|
-
});
|
|
29
|
-
const inner = css({
|
|
30
|
-
borderRadius: "$100",
|
|
31
|
-
boxShadow: "inset 0 0 0 3px rgba(217, 224, 255, 1), inset 0 0 0 5px rgba(104, 129, 255, 1)",
|
|
32
|
-
outline: "none"
|
|
33
|
-
});
|
|
34
24
|
|
|
35
25
|
var focus = /*#__PURE__*/Object.freeze({
|
|
36
26
|
__proto__: null,
|
|
37
|
-
css: css
|
|
38
|
-
defaults: defaults,
|
|
39
|
-
inner: inner
|
|
27
|
+
css: css
|
|
40
28
|
});
|
|
41
29
|
|
|
42
30
|
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 { 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
|
|
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 // 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","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%': { op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Q,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,29 +4,12 @@ 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;
|
|
8
|
-
};
|
|
9
|
-
declare const defaults: {
|
|
10
|
-
'&:focus-visible': any;
|
|
11
|
-
'[data-whatintent="keyboard"] &:focus': any;
|
|
12
|
-
'&[data-focused]': any;
|
|
13
|
-
'&[data-focus-visible]': any;
|
|
14
|
-
};
|
|
15
|
-
declare const inner: {
|
|
16
|
-
'&:focus-visible': any;
|
|
17
|
-
'[data-whatintent="keyboard"] &:focus': any;
|
|
18
|
-
'&[data-focused]': any;
|
|
19
|
-
'&[data-focus-visible]': any;
|
|
20
7
|
};
|
|
21
8
|
|
|
22
9
|
declare const focus_css: typeof css;
|
|
23
|
-
declare const focus_defaults: typeof defaults;
|
|
24
|
-
declare const focus_inner: typeof inner;
|
|
25
10
|
declare namespace focus {
|
|
26
11
|
export {
|
|
27
12
|
focus_css as css,
|
|
28
|
-
focus_defaults as defaults,
|
|
29
|
-
focus_inner as inner,
|
|
30
13
|
};
|
|
31
14
|
}
|
|
32
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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.1",
|
|
30
|
+
"@mirohq/design-tokens": "^4.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "rollup -c ../../rollup.config.js",
|