@salutejs/sdds-api-tests 0.29.0-canary.3247.37634612117.0 → 0.30.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-api-tests",
3
- "version": "0.29.0-canary.3247.37634612117.0",
3
+ "version": "0.30.0-dev.0",
4
4
  "description": "API tests for components",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -13,19 +13,19 @@
13
13
  "test": "rm -rf tests && node script.mjs && NODE_OPTIONS=--max-old-space-size=8192 tsc --noEmit -p ./tsconfig.typecheck.json"
14
14
  },
15
15
  "devDependencies": {
16
- "@salutejs/plasma-b2c": "1.640.0-canary.3247.37634612117.0",
17
- "@salutejs/plasma-giga": "0.367.0-canary.3247.37634612117.0",
18
- "@salutejs/plasma-icons": "1.253.0-canary.3247.37634612117.0",
19
- "@salutejs/plasma-web": "1.642.0-canary.3247.37634612117.0",
20
- "@salutejs/sdds-bizcom": "0.372.0-canary.3247.37634612117.0",
21
- "@salutejs/sdds-cs": "0.376.0-canary.3247.37634612117.0",
22
- "@salutejs/sdds-dfa": "0.370.0-canary.3247.37634612117.0",
23
- "@salutejs/sdds-finai": "0.363.0-canary.3247.37634612117.0",
24
- "@salutejs/sdds-insol": "0.367.0-canary.3247.37634612117.0",
25
- "@salutejs/sdds-netology": "0.371.0-canary.3247.37634612117.0",
26
- "@salutejs/sdds-platform-ai": "0.371.0-canary.3247.37634612117.0",
27
- "@salutejs/sdds-scan": "0.370.0-canary.3247.37634612117.0",
28
- "@salutejs/sdds-serv": "0.371.0-canary.3247.37634612117.0",
16
+ "@salutejs/plasma-b2c": "1.641.0-dev.0",
17
+ "@salutejs/plasma-giga": "0.368.0-dev.0",
18
+ "@salutejs/plasma-icons": "1.254.0-dev.0",
19
+ "@salutejs/plasma-web": "1.643.0-dev.0",
20
+ "@salutejs/sdds-bizcom": "0.373.0-dev.0",
21
+ "@salutejs/sdds-cs": "0.377.0-dev.0",
22
+ "@salutejs/sdds-dfa": "0.371.0-dev.0",
23
+ "@salutejs/sdds-finai": "0.364.0-dev.0",
24
+ "@salutejs/sdds-insol": "0.368.0-dev.0",
25
+ "@salutejs/sdds-netology": "0.372.0-dev.0",
26
+ "@salutejs/sdds-platform-ai": "0.372.0-dev.0",
27
+ "@salutejs/sdds-scan": "0.371.0-dev.0",
28
+ "@salutejs/sdds-serv": "0.372.0-dev.0",
29
29
  "@types/node": "^25.9.1",
30
30
  "@types/react": "18.0.28",
31
31
  "@types/react-dom": "18.0.11",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "4bd1a5608ea24f2e9ab6e50200596e7fc95d4658"
38
+ "gitHead": "192f858f2e44fc11fc92b19949cbe9b40eb12210"
39
39
  }
@@ -69,6 +69,7 @@ describe('Basics', () => {
69
69
  expectTypeOf<ComboboxProps>().toHaveProperty('readOnly').toEqualTypeOf<boolean | undefined>();
70
70
  expectTypeOf<ComboboxProps>().toHaveProperty('disabled').toEqualTypeOf<boolean | undefined>();
71
71
  expectTypeOf<ComboboxProps>().toHaveProperty('alwaysOpened').toEqualTypeOf<boolean | undefined>();
72
+ expectTypeOf<ComboboxProps>().toHaveProperty('hasDivider').toEqualTypeOf<boolean | undefined>();
72
73
 
73
74
  expectTypeOf<ComboboxProps>().toHaveProperty('placeholder').toEqualTypeOf<string | undefined>();
74
75
  expectTypeOf<ComboboxProps>().toHaveProperty('helperText').toEqualTypeOf<string | undefined>();
@@ -88,6 +88,7 @@ describe('Basics', () => {
88
88
  expectTypeOf<SelectProps>().toHaveProperty('chipType').toEqualTypeOf<'default' | 'text' | undefined>();
89
89
  expectTypeOf<SelectProps>().toHaveProperty('chipClickArea').toEqualTypeOf<'full' | 'close-icon' | undefined>();
90
90
  expectTypeOf<SelectProps>().toHaveProperty('label').toEqualTypeOf<string | undefined>();
91
+ expectTypeOf<SelectProps>().toHaveProperty('titleCaption').toEqualTypeOf<ReactNode | undefined>();
91
92
  expectTypeOf<SelectProps>().toHaveProperty('keepPlaceholder').toEqualTypeOf<boolean | undefined>();
92
93
 
93
94
  expectTypeOf<SelectProps>().toHaveProperty('required').toEqualTypeOf<boolean | undefined>();
@@ -152,6 +153,8 @@ describe('Basics', () => {
152
153
  type HintSize = NonNullable<SelectProps['hintSize']>;
153
154
  expectTypeOf<HintSize>().toExtend<string>();
154
155
  expectTypeOf<string>().not.toExtend<HintSize>();
156
+
157
+ expectTypeOf<'clear'>().toExtend<NonNullable<SelectProps['appearance']>>();
155
158
  });
156
159
 
157
160
  it('HTMLButtonElement', () => {
@@ -185,6 +188,8 @@ describe('Unions', () => {
185
188
  it('Target', () => {
186
189
  expectTypeOf<SelectProps>({ items: [], target: 'textfield-like', contentLeft: null, helperText: 'helper' });
187
190
  expectTypeOf<SelectProps>({ items: [], target: 'button-like', label: 'Label', placeholder: 'Choose value' });
191
+ expectTypeOf<SelectProps>({ items: [], appearance: 'clear', hasDivider: true });
192
+ expectTypeOf<SelectProps>({ items: [], appearance: 'default' });
188
193
 
189
194
  // @ts-expect-error
190
195
  expectTypeOf<SelectProps>({ items: [], target: 'button-like', contentLeft: null });
@@ -193,9 +198,13 @@ describe('Unions', () => {
193
198
  // @ts-expect-error
194
199
  expectTypeOf<SelectProps>({ items: [], target: 'button-like', helperText: 'helper' });
195
200
  // @ts-expect-error
201
+ expectTypeOf<SelectProps>({ items: [], target: 'button-like', titleCaption: 'Caption' });
202
+ // @ts-expect-error
196
203
  expectTypeOf<SelectProps>({ items: [], target: 'button-like', required: true });
197
204
  // @ts-expect-error
198
205
  expectTypeOf<SelectProps>({ items: [], target: 'button-like', hintText: 'hint' });
206
+ // @ts-expect-error
207
+ expectTypeOf<SelectProps>({ items: [], target: 'button-like', hasDivider: true });
199
208
  });
200
209
 
201
210
  it('IsMultiselect', () => {
@@ -344,6 +353,7 @@ describe('Examples', () => {
344
353
  value={singleValue}
345
354
  onChange={setSingleValue}
346
355
  label="Single"
356
+ titleCaption="Подпись к полю"
347
357
  placeholder="Placeholder"
348
358
  helperText="Helper text"
349
359
  />
@@ -18,6 +18,7 @@ describe('Basics', () => {
18
18
  expectTypeOf<Props>().toHaveProperty('size').toEqualTypeOf<string | undefined>();
19
19
  expectTypeOf<Props>().toHaveProperty('view').toEqualTypeOf<string | undefined>();
20
20
  expectTypeOf<Props>().toHaveProperty('label').toEqualTypeOf<string | undefined>();
21
+ expectTypeOf<Props>().toHaveProperty('titleCaption').toEqualTypeOf<ReactNode | undefined>();
21
22
  expectTypeOf<Props>().toHaveProperty('placeholder').toEqualTypeOf<string | undefined>();
22
23
  expectTypeOf<Props>().toHaveProperty('contentLeft').toEqualTypeOf<ReactNode>();
23
24
  expectTypeOf<Props>().toHaveProperty('contentRight').toEqualTypeOf<ReactNode>();
@@ -37,7 +38,7 @@ describe('Basics', () => {
37
38
  describe('Examples', () => {
38
39
  it('Basic', () => {
39
40
  () => {
40
- void (<TimePicker value="00:00" size="m" />);
41
+ void (<TimePicker value="00:00" size="m" label="Лейбл" titleCaption="Подпись к полю" />);
41
42
  void (<TimePicker value="00:00:00" columnsQuantity={3} />);
42
43
  };
43
44
  });