@salutejs/plasma-new-hope 0.329.0-canary.2063.16044167460.0 → 0.329.0-canary.2065.16047344532.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,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.329.0-canary.2063.16044167460.0",
3
+ "version": "0.329.0-canary.2065.16047344532.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -79,7 +79,7 @@
79
79
  "@rollup/plugin-babel": "^6.0.4",
80
80
  "@rollup/plugin-commonjs": "^25.0.4",
81
81
  "@rollup/plugin-node-resolve": "^15.1.0",
82
- "@salutejs/plasma-sb-utils": "0.202.0-canary.2063.16044167460.0",
82
+ "@salutejs/plasma-sb-utils": "0.202.0-canary.2065.16047344532.0",
83
83
  "@salutejs/plasma-themes": "0.34.0",
84
84
  "@storybook/addon-docs": "8.6.12",
85
85
  "@storybook/addon-essentials": "8.6.12",
@@ -117,7 +117,7 @@
117
117
  "@linaria/react": "5.0.3",
118
118
  "@popperjs/core": "2.11.8",
119
119
  "@salutejs/input-core": "2.1.2",
120
- "@salutejs/plasma-core": "1.201.0-canary.2063.16044167460.0",
120
+ "@salutejs/plasma-core": "1.201.0-canary.2065.16047344532.0",
121
121
  "@salutejs/react-maskinput": "3.2.6",
122
122
  "@tanstack/react-table": "8.21.2",
123
123
  "@tanstack/react-virtual": "3.13.2",
@@ -137,5 +137,5 @@
137
137
  "sideEffects": [
138
138
  "*.css"
139
139
  ],
140
- "gitHead": "44a8aa25e3f43eef8bd612bfe80ba1ba0d85dd4b"
140
+ "gitHead": "82c65eb3c246d6ef725317512f9c7b1c250a2624"
141
141
  }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
@@ -0,0 +1,113 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { PopoverPlacement, PopoverPlacementBasic } from '../Popover';
3
+ type HintProps = {
4
+ /**
5
+ * Текст тултипа
6
+ */
7
+ hintText: string;
8
+ /**
9
+ * Способ открытия тултипа - наведение или клик мышью
10
+ */
11
+ hintTrigger?: 'hover' | 'click';
12
+ /**
13
+ * Видимость тултипа
14
+ */
15
+ hintOpened?: boolean;
16
+ /**
17
+ * Вид тултипа
18
+ */
19
+ hintView?: string;
20
+ /**
21
+ * Размер тултипа
22
+ */
23
+ hintSize?: string;
24
+ /**
25
+ * Иконка, рядом с которым произойдет вызов всплывающего окна.
26
+ * Если свойство не задано, применится иконка по умолчанию.
27
+ */
28
+ hintTargetIcon?: ReactNode;
29
+ /**
30
+ * Направление раскрытия тултипа.
31
+ */
32
+ hintPlacement?: PopoverPlacement | Array<PopoverPlacementBasic>;
33
+ /**
34
+ * Видимость стрелки (хвоста).
35
+ */
36
+ hintHasArrow?: boolean;
37
+ /**
38
+ * Отступ окна относительно элемента, у которого оно вызвано.
39
+ * @default
40
+ * [0, 8]
41
+ */
42
+ hintOffset?: [number, number];
43
+ /**
44
+ * Ширина окна (в rem).
45
+ */
46
+ hintWidth?: string;
47
+ /**
48
+ * Слот для контента слева, например `Icon`.
49
+ */
50
+ hintContentLeft?: ReactNode;
51
+ } | {
52
+ hintText?: never;
53
+ hintOpened?: never;
54
+ hintTrigger?: never;
55
+ hintView?: never;
56
+ hintSize?: never;
57
+ hintTargetIcon?: never;
58
+ hintPlacement?: never;
59
+ hintHasArrow?: never;
60
+ hintOffset?: never;
61
+ hintWidth?: never;
62
+ hintContentLeft?: never;
63
+ };
64
+ export type InformationWrapperProps = {
65
+ /**
66
+ * Флаг наличия индикатора обязательности поля
67
+ */
68
+ hasRequiredIndicator?: boolean;
69
+ /**
70
+ * Задает выравнивание индикатора обязательности поля
71
+ * @default right
72
+ */
73
+ requiredIndicatorPlacement?: 'right' | 'left';
74
+ /**
75
+ * Флаг необязательности поля
76
+ */
77
+ optional?: boolean;
78
+ /**
79
+ * Метка-подпись к элементу
80
+ */
81
+ title?: string;
82
+ /**
83
+ * Задает выравнивание метке-подписи к элементу
84
+ * @default top
85
+ */
86
+ titlePlacement?: 'top' | 'left';
87
+ /**
88
+ * Метка-подпись к элементу справа
89
+ */
90
+ titleCaption?: ReactNode;
91
+ /**
92
+ * Вспомогательный текст снизу слева
93
+ */
94
+ leftHelper?: ReactNode;
95
+ /**
96
+ * Вспомогательный текст снизу справа
97
+ */
98
+ rightHelper?: ReactNode;
99
+ /**
100
+ * Размер компонента
101
+ */
102
+ size?: string;
103
+ /**
104
+ * Вид компонента
105
+ */
106
+ view?: string;
107
+ /**
108
+ * Компонент неактивен
109
+ */
110
+ disabled?: boolean;
111
+ } & HintProps;
112
+ export {};
113
+ //# sourceMappingURL=InformationWrapper.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InformationWrapper.types.d.ts","sourceRoot":"","sources":["../../../src/components/InformationWrapper/InformationWrapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE1E,KAAK,SAAS,GACR;IACI;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,GAA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OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,SAAS,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InformationWrapper/index.ts"],"names":[],"mappings":""}