@mirohq/design-system-styles 2.1.2-dummy.0 → 3.0.1-aria-label-icon-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 +0 -26
- package/dist/main.js.map +1 -1
- package/dist/module.js +0 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/package.json +2 -3
package/dist/main.js
CHANGED
|
@@ -4,31 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var designSystemStitches = require('@mirohq/design-system-stitches');
|
|
6
6
|
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var _a;
|
|
26
|
-
if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : _a.vendor)) {
|
|
27
|
-
Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
28
|
-
/* webpackChunkName: "what-input" */
|
|
29
|
-
'what-input'
|
|
30
|
-
)); });
|
|
31
|
-
}
|
|
32
7
|
const css = (style) => {
|
|
33
8
|
const styleWithOutline = {
|
|
34
9
|
// use `as any` to workaround TS2742 error
|
|
@@ -39,7 +14,6 @@ const css = (style) => {
|
|
|
39
14
|
};
|
|
40
15
|
return {
|
|
41
16
|
"&:focus-visible": styleWithOutline,
|
|
42
|
-
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
43
17
|
"&[data-focused]": styleWithOutline,
|
|
44
18
|
"&[data-focus-visible]": styleWithOutline
|
|
45
19
|
};
|
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//
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSS } from '@mirohq/design-system-stitches'\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-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":";;;;;;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,iBAAmB,EAAA,gBAAA;AAAA,IACnB,uBAAyB,EAAA,gBAAA;AAAA,GAC3B,CAAA;AACF,CAAA;;;;;;;ACjBO,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
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { keyframes } from '@mirohq/design-system-stitches';
|
|
2
2
|
|
|
3
|
-
var _a;
|
|
4
|
-
if (/apple/i.test((_a = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : _a.vendor)) {
|
|
5
|
-
import(
|
|
6
|
-
/* webpackChunkName: "what-input" */
|
|
7
|
-
'what-input'
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
3
|
const css = (style) => {
|
|
11
4
|
const styleWithOutline = {
|
|
12
5
|
// use `as any` to workaround TS2742 error
|
|
@@ -17,7 +10,6 @@ const css = (style) => {
|
|
|
17
10
|
};
|
|
18
11
|
return {
|
|
19
12
|
"&:focus-visible": styleWithOutline,
|
|
20
|
-
'[data-whatintent="keyboard"] &:focus': styleWithOutline,
|
|
21
13
|
"&[data-focused]": styleWithOutline,
|
|
22
14
|
"&[data-focus-visible]": styleWithOutline
|
|
23
15
|
};
|
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//
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/focus.ts","../src/animations.ts"],"sourcesContent":["import type { CSS } from '@mirohq/design-system-stitches'\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-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":";;AAGa,MAAA,GAAA,GAAM,CAAC,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
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1-aria-label-icon-button.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"react": "^16.14 || ^17 || ^18 || ^19"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"
|
|
29
|
-
"@mirohq/design-system-stitches": "^3.1.2-dummy.0"
|
|
28
|
+
"@mirohq/design-system-stitches": "^3.1.2-aria-label-icon-button.0"
|
|
30
29
|
},
|
|
31
30
|
"scripts": {
|
|
32
31
|
"build": "rollup -c ../../rollup.config.js",
|