@hh.ru/magritte-ui-loader 1.2.40 → 1.2.42
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/Loader.d.ts +1 -1
- package/Loader.js +1 -1
- package/Loader.js.map +1 -1
- package/index.css +8 -8
- package/index.d.ts +2 -2
- package/package.json +8 -7
package/Loader.d.ts
CHANGED
package/Loader.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { LoaderOutlinedSize16, LoaderOutlinedSize24, LoaderOutlinedSize64, LoaderOutlinedSize96 } from '@hh.ru/magritte-ui-icon/icon';
|
|
5
5
|
|
|
6
|
-
var styles = {"loader":"magritte-loader___GSe1a_1-2-
|
|
6
|
+
var styles = {"loader":"magritte-loader___GSe1a_1-2-42","spin":"magritte-spin___DyLX-_1-2-42","internal_overriden":"magritte-internal_overriden___GcH9X_1-2-42","internalOverriden":"magritte-internal_overriden___GcH9X_1-2-42"};
|
|
7
7
|
|
|
8
8
|
const iconsBySize = new Map([
|
|
9
9
|
[16, LoaderOutlinedSize16],
|
package/Loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sources":["../src/Loader.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classNames from 'classnames';\n\nimport {
|
|
1
|
+
{"version":3,"file":"Loader.js","sources":["../src/Loader.tsx"],"sourcesContent":["import { FC } from 'react';\nimport classNames from 'classnames';\n\nimport { IconWrapperComponent } from '@hh.ru/magritte-ui-icon';\nimport {\n LoaderOutlinedSize16,\n LoaderOutlinedSize24,\n LoaderOutlinedSize64,\n LoaderOutlinedSize96,\n} from '@hh.ru/magritte-ui-icon/icon';\nimport { type LoaderSize, type LoaderProps } from '@hh.ru/magritte-ui-loader/types';\n\nimport styles from './loader.less';\n\nconst iconsBySize = new Map<LoaderSize, IconWrapperComponent>([\n [16, LoaderOutlinedSize16],\n [24, LoaderOutlinedSize24],\n [64, LoaderOutlinedSize64],\n [96, LoaderOutlinedSize96],\n]);\n\nexport const Loader: FC<LoaderProps> = ({ size = 16, 'aria-label': ariaLabel = 'loading', ...props }) => {\n const Element = iconsBySize.get(size);\n\n if (!Element) {\n return null;\n }\n\n const baseProps = {\n 'aria-label': ariaLabel,\n ...props,\n };\n\n return (\n <span\n className={classNames(styles.loader, {\n [styles.internal_overriden]: !props.initial,\n })}\n role=\"status\"\n >\n <Element {...baseProps} />\n </span>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;AAcA,MAAM,WAAW,GAAG,IAAI,GAAG,CAAmC;IAC1D,CAAC,EAAE,EAAE,oBAAoB,CAAC;IAC1B,CAAC,EAAE,EAAE,oBAAoB,CAAC;IAC1B,CAAC,EAAE,EAAE,oBAAoB,CAAC;IAC1B,CAAC,EAAE,EAAE,oBAAoB,CAAC;AAC7B,CAAA,CAAC,CAAC;MAEU,MAAM,GAAoB,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,YAAY,EAAE,SAAS,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,KAAI;IACpG,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,CAAC,OAAO,EAAE;AACV,QAAA,OAAO,IAAI,CAAC;AACf,KAAA;AAED,IAAA,MAAM,SAAS,GAAG;AACd,QAAA,YAAY,EAAE,SAAS;AACvB,QAAA,GAAG,KAAK;KACX,CAAC;IAEF,QACIA,cACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE;YACjC,CAAC,MAAM,CAAC,kBAAkB,GAAG,CAAC,KAAK,CAAC,OAAO;AAC9C,SAAA,CAAC,EACF,IAAI,EAAC,QAAQ,EAEb,QAAA,EAAAA,GAAA,CAAC,OAAO,EAAA,EAAA,GAAK,SAAS,EAAA,CAAI,EACvB,CAAA,EACT;AACN;;;;"}
|
package/index.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-loader-icon-content-v18-2-
|
|
2
|
+
--magritte-color-component-loader-icon-content-v18-2-1:#0070ff;
|
|
3
3
|
}
|
|
4
4
|
.magritte-night-theme{
|
|
5
|
-
--magritte-color-component-loader-icon-content-v18-2-
|
|
5
|
+
--magritte-color-component-loader-icon-content-v18-2-1:#0d63e3;
|
|
6
6
|
}
|
|
7
|
-
@keyframes magritte-spin___DyLX-_1-2-
|
|
7
|
+
@keyframes magritte-spin___DyLX-_1-2-42{
|
|
8
8
|
from{
|
|
9
9
|
transform:rotate(0deg);
|
|
10
10
|
}
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
transform:rotate(360deg);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
.magritte-loader___GSe1a_1-2-
|
|
15
|
+
.magritte-loader___GSe1a_1-2-42{
|
|
16
16
|
display:inline-flex;
|
|
17
17
|
height:max-content;
|
|
18
18
|
width:max-content;
|
|
19
19
|
}
|
|
20
|
-
.magritte-loader___GSe1a_1-2-
|
|
21
|
-
animation-name:magritte-spin___DyLX-_1-2-
|
|
20
|
+
.magritte-loader___GSe1a_1-2-42 svg{
|
|
21
|
+
animation-name:magritte-spin___DyLX-_1-2-42;
|
|
22
22
|
animation-duration:1s;
|
|
23
23
|
animation-iteration-count:infinite;
|
|
24
24
|
animation-timing-function:linear;
|
|
25
25
|
animation-fill-mode:none;
|
|
26
26
|
}
|
|
27
|
-
.magritte-internal_overriden___GcH9X_1-2-
|
|
28
|
-
--magritte-ui-icon-color-override:var(--magritte-color-component-loader-icon-content-v18-2-
|
|
27
|
+
.magritte-internal_overriden___GcH9X_1-2-42{
|
|
28
|
+
--magritte-ui-icon-color-override:var(--magritte-color-component-loader-icon-content-v18-2-1);
|
|
29
29
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type LoaderSize, type LoaderProps } from '
|
|
2
|
-
export * from '
|
|
1
|
+
export { type LoaderSize, type LoaderProps } from '@hh.ru/magritte-ui-loader/types';
|
|
2
|
+
export * from '@hh.ru/magritte-ui-loader/Loader';
|
|
3
3
|
export { ThemeProvider } from '@hh.ru/magritte-ui-icon';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-loader",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.42",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
"eslint-test": "yarn root:eslint-test $(pwd)",
|
|
17
17
|
"ts-config": "yarn root:ts-config $(pwd)",
|
|
18
18
|
"ts-check": "yarn root:ts-check $(pwd)",
|
|
19
|
-
"test": "yarn root:test $(pwd)"
|
|
19
|
+
"test": "yarn root:test $(pwd)",
|
|
20
|
+
"watch": "yarn root:watch $(pwd)"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@hh.ru/magritte-design-tokens": "18.2.
|
|
23
|
-
"@hh.ru/magritte-ui-icon": "7.
|
|
24
|
-
"@hh.ru/magritte-ui-mock-component": "1.0.
|
|
23
|
+
"@hh.ru/magritte-design-tokens": "18.2.1",
|
|
24
|
+
"@hh.ru/magritte-ui-icon": "7.2.0",
|
|
25
|
+
"@hh.ru/magritte-ui-mock-component": "1.0.11"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
27
28
|
"classnames": ">=2.3.2",
|
|
@@ -30,5 +31,5 @@
|
|
|
30
31
|
"publishConfig": {
|
|
31
32
|
"access": "public"
|
|
32
33
|
},
|
|
33
|
-
"gitHead": "
|
|
34
|
-
}
|
|
34
|
+
"gitHead": "a4f84819b10ef3f405e19bcc186739bba93cefca"
|
|
35
|
+
}
|