@salutejs/plasma-homeds 0.371.1-dev.0 → 0.372.0-dev.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.
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "config", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return config;
9
+ }
10
+ });
11
+ const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
12
+ const config = {
13
+ defaults: {
14
+ gap: 'dense',
15
+ orientation: 'horizontal',
16
+ shape: 'default',
17
+ stretching: 'auto'
18
+ },
19
+ variations: {
20
+ orientation: {
21
+ horizontal: (0, _styledcomponents.css)`
22
+ ${_styledcomponents.groupTokens.orientation}: row;
23
+ `,
24
+ vertical: (0, _styledcomponents.css)`
25
+ ${_styledcomponents.groupTokens.orientation}: column;
26
+ `
27
+ },
28
+ gap: {
29
+ none: (0, _styledcomponents.css)`
30
+ ${_styledcomponents.groupTokens.gap}: 0;
31
+ `,
32
+ dense: (0, _styledcomponents.css)`
33
+ ${_styledcomponents.groupTokens.gap}: 0.125rem;
34
+ `,
35
+ wide: (0, _styledcomponents.css)`
36
+ ${_styledcomponents.groupTokens.gap}: 0.5rem;
37
+ `
38
+ },
39
+ shape: {
40
+ default: (0, _styledcomponents.css)``,
41
+ segmented: (0, _styledcomponents.css)`
42
+ ${_styledcomponents.groupTokens.segmentedRadius}: 0.25rem;
43
+ `
44
+ },
45
+ stretching: {
46
+ auto: (0, _styledcomponents.css)``,
47
+ filled: (0, _styledcomponents.css)``
48
+ }
49
+ }
50
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Group", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Group;
9
+ }
10
+ });
11
+ const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
12
+ const _Groupconfig = require("./Group.config");
13
+ const mergedConfig = (0, _styledcomponents.mergeConfig)(_styledcomponents.groupConfig, _Groupconfig.config);
14
+ const Group = (0, _styledcomponents.component)(mergedConfig);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get Group () {
13
+ return _Group.Group;
14
+ },
15
+ get groupTokens () {
16
+ return _styledcomponents.groupTokens;
17
+ }
18
+ });
19
+ const _Group = require("./Group");
20
+ const _styledcomponents = require("@salutejs/plasma-new-hope/styled-components");
@@ -7,6 +7,7 @@ _export_star(require("./components/AvatarGroup"), exports);
7
7
  _export_star(require("./components/Badge"), exports);
8
8
  _export_star(require("./components/Button"), exports);
9
9
  _export_star(require("./components/ButtonGroup"), exports);
10
+ _export_star(require("./components/Group"), exports);
10
11
  _export_star(require("./components/Breadcrumbs"), exports);
11
12
  _export_star(require("./components/Divider"), exports);
12
13
  _export_star(require("./components/Drawer"), exports);
@@ -0,0 +1,40 @@
1
+ import { css, groupTokens as tokens } from '@salutejs/plasma-new-hope/styled-components';
2
+ export const config = {
3
+ defaults: {
4
+ gap: 'dense',
5
+ orientation: 'horizontal',
6
+ shape: 'default',
7
+ stretching: 'auto'
8
+ },
9
+ variations: {
10
+ orientation: {
11
+ horizontal: css`
12
+ ${tokens.orientation}: row;
13
+ `,
14
+ vertical: css`
15
+ ${tokens.orientation}: column;
16
+ `
17
+ },
18
+ gap: {
19
+ none: css`
20
+ ${tokens.gap}: 0;
21
+ `,
22
+ dense: css`
23
+ ${tokens.gap}: 0.125rem;
24
+ `,
25
+ wide: css`
26
+ ${tokens.gap}: 0.5rem;
27
+ `
28
+ },
29
+ shape: {
30
+ default: css``,
31
+ segmented: css`
32
+ ${tokens.segmentedRadius}: 0.25rem;
33
+ `
34
+ },
35
+ stretching: {
36
+ auto: css``,
37
+ filled: css``
38
+ }
39
+ }
40
+ };
@@ -0,0 +1,6 @@
1
+ import { groupConfig, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { config } from './Group.config';
3
+ const mergedConfig = mergeConfig(groupConfig, config);
4
+ /**
5
+ * Группа элементов с общими отступами, направлением и скруглением внутренних углов.
6
+ */ export const Group = component(mergedConfig);
@@ -0,0 +1,2 @@
1
+ export { Group } from './Group';
2
+ export { groupTokens } from '@salutejs/plasma-new-hope/styled-components';
@@ -3,6 +3,7 @@ export * from './components/AvatarGroup';
3
3
  export * from './components/Badge';
4
4
  export * from './components/Button';
5
5
  export * from './components/ButtonGroup';
6
+ export * from './components/Group';
6
7
  export * from './components/Breadcrumbs';
7
8
  export * from './components/Divider';
8
9
  export * from './components/Drawer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-homeds",
3
- "version": "0.371.1-dev.0",
3
+ "version": "0.372.0-dev.0",
4
4
  "description": "Salute Design System / React UI kit for PLASMA-HOMEDS web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "publishConfig": {
@@ -35,7 +35,7 @@
35
35
  "styled-components": "^5.3.11"
36
36
  },
37
37
  "dependencies": {
38
- "@salutejs/plasma-new-hope": "0.388.1-dev.0",
38
+ "@salutejs/plasma-new-hope": "0.389.0-dev.0",
39
39
  "@salutejs/plasma-themes": "0.70.0-dev.0"
40
40
  },
41
41
  "devDependencies": {
@@ -55,10 +55,10 @@
55
55
  "@rollup/plugin-commonjs": "^25.0.4",
56
56
  "@rollup/plugin-node-resolve": "^15.1.0",
57
57
  "@salutejs/plasma-colors": "0.28.0-dev.0",
58
- "@salutejs/plasma-core": "1.249.0-dev.0",
59
- "@salutejs/plasma-cy-utils": "0.179.0-dev.0",
58
+ "@salutejs/plasma-core": "1.250.0-dev.0",
59
+ "@salutejs/plasma-cy-utils": "0.180.0-dev.0",
60
60
  "@salutejs/plasma-icons": "1.257.1-dev.0",
61
- "@salutejs/plasma-sb-utils": "0.251.1-dev.0",
61
+ "@salutejs/plasma-sb-utils": "0.252.0-dev.0",
62
62
  "@types/node": "16.7.13",
63
63
  "@types/react": "18.0.28",
64
64
  "@types/react-dom": "18.0.11",
@@ -99,5 +99,11 @@
99
99
  "sideEffects": [
100
100
  "*.css"
101
101
  ],
102
- "gitHead": "ed4c47d66e4b9e902ba7b56c72b5df1da7230489"
102
+ "overrides": {
103
+ "@linaria/babel-preset": {
104
+ "happy-dom": "21.0.4"
105
+ },
106
+ "dompurify": "3.4.17"
107
+ },
108
+ "gitHead": "3c21629c0b49cb41f7254eb061bb18e82a13e858"
103
109
  }
@@ -0,0 +1,27 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ gap: string;
4
+ orientation: string;
5
+ shape: string;
6
+ stretching: string;
7
+ };
8
+ variations: {
9
+ orientation: {
10
+ horizontal: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
11
+ vertical: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
12
+ };
13
+ gap: {
14
+ none: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
15
+ dense: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
16
+ wide: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
17
+ };
18
+ shape: {
19
+ default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
20
+ segmented: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
21
+ };
22
+ stretching: {
23
+ auto: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
24
+ filled: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
25
+ };
26
+ };
27
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Группа элементов с общими отступами, направлением и скруглением внутренних углов.
3
+ */
4
+ export declare const Group: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
5
+ orientation: {
6
+ horizontal: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
7
+ vertical: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
8
+ };
9
+ gap: {
10
+ none: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
11
+ dense: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
12
+ wide: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
13
+ };
14
+ shape: {
15
+ default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
16
+ segmented: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
17
+ };
18
+ stretching: {
19
+ auto: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
20
+ filled: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
21
+ };
22
+ }> & import("@salutejs/plasma-new-hope/styled-components").GroupProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ export { Group } from './Group';
2
+ export { groupTokens } from '@salutejs/plasma-new-hope/styled-components';
3
+ export type { GroupProps } from '@salutejs/plasma-new-hope/styled-components';
package/types/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './components/AvatarGroup';
3
3
  export * from './components/Badge';
4
4
  export * from './components/Button';
5
5
  export * from './components/ButtonGroup';
6
+ export * from './components/Group';
6
7
  export * from './components/Breadcrumbs';
7
8
  export * from './components/Divider';
8
9
  export * from './components/Drawer';