@salutejs/plasma-new-hope 0.186.0-canary.1542.11727809479.0 → 0.186.0-canary.1542.11732695647.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +6 -3
  2. package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js.map +1 -1
  3. package/cjs/components/Combobox/ComboboxNew/Combobox.css +4 -3
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +7 -1
  5. package/cjs/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  6. package/cjs/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_15nwy93.css} +1 -0
  7. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +4 -3
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +4 -3
  9. package/cjs/components/Combobox/ComboboxNew/utils/getForm.css +39 -0
  10. package/cjs/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  11. package/cjs/components/Combobox/ComboboxNew/utils/getForm.js.map +1 -1
  12. package/cjs/index.css +4 -3
  13. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +10 -5
  14. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +15 -10
  15. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  16. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
  17. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
  18. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.js +2 -3
  19. package/emotion/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
  20. package/emotion/es/components/Combobox/ComboboxNew/Combobox.styles.js +14 -9
  21. package/emotion/es/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  22. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
  23. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
  24. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.js +2 -3
  25. package/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
  26. package/es/components/Combobox/ComboboxNew/Combobox.boundler.js.map +1 -1
  27. package/es/components/Combobox/ComboboxNew/Combobox.css +4 -3
  28. package/es/components/Combobox/ComboboxNew/Combobox.styles.js +7 -2
  29. package/es/components/Combobox/ComboboxNew/Combobox.styles.js.map +1 -1
  30. package/es/components/Combobox/ComboboxNew/{Combobox.styles_18a8p75.css → Combobox.styles_15nwy93.css} +1 -0
  31. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +4 -3
  32. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +4 -3
  33. package/es/components/Combobox/ComboboxNew/utils/getForm.css +39 -0
  34. package/es/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  35. package/es/components/Combobox/ComboboxNew/utils/getForm.js.map +1 -1
  36. package/es/index.css +4 -3
  37. package/package.json +2 -2
  38. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +10 -5
  39. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.styles.js +6 -2
  40. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  41. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
  42. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
  43. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.js +2 -3
  44. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.boundler.js +7 -4
  45. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.styles.js +5 -1
  46. package/styled-components/es/components/Combobox/ComboboxNew/utils/getForm.js +3 -2
  47. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -3
  48. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +5 -61
  49. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.js +2 -3
  50. package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts.map +1 -1
  51. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts +1 -0
  52. package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
  53. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +8 -9
  54. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  55. package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts +16 -2
  56. package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts.map +1 -1
  57. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +25 -459
  58. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  59. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +25 -459
  60. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
@@ -5,9 +5,9 @@ import type { Meta, StoryObj } from '@storybook/react';
5
5
  import { WithTheme } from '../../../_helpers';
6
6
  import { IconDone } from '../../../../components/_Icon';
7
7
 
8
- import { ComboboxWithForm } from './Combobox';
8
+ import { Combobox } from './Combobox';
9
9
 
10
- type StorySelectProps = ComponentProps<typeof ComboboxWithForm> & {
10
+ type StorySelectProps = ComponentProps<typeof Combobox> & {
11
11
  enableContentLeft?: boolean;
12
12
  };
13
13
 
@@ -19,7 +19,7 @@ const variant = ['normal', 'tight'];
19
19
  const meta: Meta<StorySelectProps> = {
20
20
  title: 'plasma_b2c/Combobox',
21
21
  decorators: [WithTheme],
22
- component: ComboboxWithForm,
22
+ component: Combobox,
23
23
  argTypes: {
24
24
  size: {
25
25
  options: size,
@@ -356,7 +356,7 @@ const SingleStory = (args: StorySelectProps) => {
356
356
 
357
357
  return (
358
358
  <div style={{ width: '400px' }}>
359
- <ComboboxWithForm
359
+ <Combobox
360
360
  {...args}
361
361
  items={items}
362
362
  value={value}
@@ -367,24 +367,6 @@ const SingleStory = (args: StorySelectProps) => {
367
367
  );
368
368
  };
369
369
 
370
- const SingleFormStory = (args: StorySelectProps) => {
371
- const handleChange = (event) => {
372
- console.log(event);
373
- };
374
-
375
- return (
376
- <div style={{ width: '400px' }}>
377
- <ComboboxWithForm
378
- {...args}
379
- items={items}
380
- formType
381
- onChange={handleChange}
382
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
383
- />
384
- </div>
385
- );
386
- };
387
-
388
370
  export const Single: StoryObj<StorySelectProps> = {
389
371
  render: (args) => <SingleStory {...args} />,
390
372
  args: {
@@ -397,24 +379,12 @@ export const Single: StoryObj<StorySelectProps> = {
397
379
  },
398
380
  };
399
381
 
400
- export const SingleForm: StoryObj<StorySelectProps> = {
401
- render: (args) => <SingleFormStory {...args} />,
402
- args: {
403
- closeAfterSelect: true,
404
- },
405
- parameters: {
406
- controls: {
407
- exclude: ['isTargetAmount'],
408
- },
409
- },
410
- };
411
-
412
382
  const MultipleStory = (args: StorySelectProps) => {
413
383
  const [value, setValue] = useState([]);
414
384
 
415
385
  return (
416
386
  <div style={{ width: '400px' }}>
417
- <ComboboxWithForm
387
+ <Combobox
418
388
  {...args}
419
389
  multiple
420
390
  formType={false}
@@ -427,35 +397,9 @@ const MultipleStory = (args: StorySelectProps) => {
427
397
  );
428
398
  };
429
399
 
430
- const MultipleStoryForm = (args: StorySelectProps) => {
431
- const handleChange = (event) => {
432
- console.log(event);
433
- };
434
-
435
- return (
436
- <div style={{ width: '400px' }}>
437
- <ComboboxWithForm
438
- {...args}
439
- multiple
440
- formType
441
- onChange={handleChange}
442
- items={items}
443
- contentLeft={args.enableContentLeft ? <IconDone size="s" /> : undefined}
444
- />
445
- </div>
446
- );
447
- };
448
-
449
400
  export const Multiple: StoryObj<StorySelectProps> = {
450
401
  render: (args) => <MultipleStory {...args} />,
451
402
  args: {
452
403
  closeAfterSelect: false,
453
404
  },
454
405
  };
455
-
456
- export const MultipleForm: StoryObj<StorySelectProps> = {
457
- render: (args) => <MultipleStoryForm {...args} />,
458
- args: {
459
- closeAfterSelect: false,
460
- },
461
- };
@@ -3,9 +3,8 @@ import { comboboxNewConfig, boundCombobox, getFormComponentGenerator } from '../
3
3
  import { config } from './Combobox.config';
4
4
  var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
5
5
  var ComboboxComponent = /*#__PURE__*/component(mergedConfig);
6
- var Combobox = ComboboxComponent;
7
- var ComboboxWithForm = /*#__PURE__*/boundCombobox({
6
+ var Combobox = /*#__PURE__*/boundCombobox({
8
7
  base: ComboboxComponent,
9
8
  baseForm: /*#__PURE__*/getFormComponentGenerator(ComboboxComponent)
10
9
  });
11
- export { Combobox, ComboboxWithForm };
10
+ export { Combobox };
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.boundler.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAanG,CAAC"}
1
+ {"version":3,"file":"Combobox.boundler.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAc9F,CAAC"}
@@ -12,4 +12,5 @@ export declare const IconArrowWrapper: import("@linaria/react").StyledComponent<
12
12
  export declare const StyledArrow: import("@linaria/react").StyledMeta & import("react").FC<import("../../_Icon/IconRoot").IconProps>;
13
13
  export declare const base: import("@linaria/core").LinariaClassName;
14
14
  export declare const StyledEmptyState: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../engines/types").PropsType<import("../../../engines/types").Variants> & import("../../EmptyState/EmptyState.types").Props & import("react").RefAttributes<HTMLDivElement>>;
15
+ export declare const SelectHidden: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement> & Record<never, unknown>>;
15
16
  //# sourceMappingURL=Combobox.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.styles.ts"],"names":[],"mappings":";AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,eAAO,MAAM,EAAE;mBACI,aAAa,CAAC,cAAc,CAAC;iBAC/B,aAAa,CAAC,YAAY,CAAC;gBAC5B,aAAa,CAAC,WAAW,CAAC;;EAoBzC,CAAC;AAEF,eAAO,MAAM,gBAAgB;cAA0B,OAAO;EAc7D,CAAC;AAEF,eAAO,MAAM,WAAW,oGAAuC,CAAC;AAEhE,eAAO,MAAM,IAAI,0CAAQ,CAAC;AAE1B,eAAO,MAAM,gBAAgB,oQAS5B,CAAC"}
1
+ {"version":3,"file":"Combobox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.styles.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,eAAO,MAAM,EAAE;mBACI,aAAa,CAAC,cAAc,CAAC;iBAC/B,aAAa,CAAC,YAAY,CAAC;gBAC5B,aAAa,CAAC,WAAW,CAAC;;EAoBzC,CAAC;AAEF,eAAO,MAAM,gBAAgB;cAA0B,OAAO;EAc7D,CAAC;AAEF,eAAO,MAAM,WAAW,oGAAuC,CAAC;AAEhE,eAAO,MAAM,IAAI,0CAAQ,CAAC;AAE1B,eAAO,MAAM,gBAAgB,oQAS5B,CAAC;AAEF,eAAO,MAAM,YAAY,iLAExB,CAAC"}
@@ -154,6 +154,7 @@ export declare type ComboboxProps<T extends ItemOption = ItemOption> = {
154
154
  * @default outer
155
155
  */
156
156
  labelPlacement?: 'outer' | 'inner';
157
+ formType?: false;
157
158
  } & ViewStateProps & IsMultiselect<T> & RequiredProps & Omit<ButtonHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
158
159
  export declare type FloatingPopoverProps = {
159
160
  target: React.ReactNode | ((ref: React.MutableRefObject<HTMLElement | null>) => React.ReactNode);
@@ -182,23 +183,21 @@ declare type ComboboxFormBaseProps = {
182
183
  defaultValue?: string;
183
184
  name?: string;
184
185
  multiple?: false;
186
+ ref?: React.Ref<HTMLSelectElement>;
187
+ formType: true;
185
188
  } | {
186
189
  onChange?: (event: React.ChangeEvent<HTMLSelectElement> | null) => void;
187
190
  defaultValue?: string[];
188
191
  name?: string;
189
192
  multiple?: true;
193
+ ref?: React.Ref<HTMLSelectElement>;
194
+ formType: true;
190
195
  };
191
- export declare type ComboboxFormProps = Omit<ComboboxProps, 'onChange' | 'defaultValue' | 'multiple'> & ComboboxFormBaseProps;
196
+ export declare type ComboboxFormProps = Omit<ComboboxProps, 'onChange' | 'defaultValue' | 'multiple' | 'formType'> & ComboboxFormBaseProps;
192
197
  export declare type ComboboxBoundlerProps = {
193
198
  base: React.FC<ComboboxProps>;
194
- baseForm: React.FC<ComboboxFormPropsAll>;
195
- };
196
- export declare type ComboboxFormPropsAll = ComboboxFormProps & {
197
- formType: true;
198
- };
199
- export declare type ComboboxPropsAll = ComboboxProps & {
200
- formType: false;
199
+ baseForm: React.FC<ComboboxFormProps>;
201
200
  };
202
- export declare type ComboboxBoundlerPropsComponent = ComboboxFormPropsAll | ComboboxPropsAll;
201
+ export declare type ComboboxBoundlerPropsComponent = ComboboxFormProps | ComboboxProps;
203
202
  export {};
204
203
  //# sourceMappingURL=Combobox.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAC9C;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC/B;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC1C,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,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CAAC,WAAW,CAAC,iBAAiB,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACxE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,QAAQ,EAAE,IAAI,CAAC;CAClB,CAAC;AAER,oBAAY,iBAAiB,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CAAC,GACtG,qBAAqB,CAAC;AAE1B,oBAAY,qBAAqB,GAAG;IAChC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;CACzC,CAAC;AAEF,oBAAY,8BAA8B,GAAG,iBAAiB,GAAG,aAAa,CAAC"}
@@ -1,4 +1,18 @@
1
1
  import React, { ComponentType } from 'react';
2
- import { ComboboxProps, ComboboxFormProps } from '../Combobox.types';
3
- export declare const getFormComponentGenerator: (Component: ComponentType<ComboboxProps>) => React.ForwardRefExoticComponent<ComboboxFormProps & React.RefAttributes<HTMLSelectElement>>;
2
+ import { ComboboxProps } from '../Combobox.types';
3
+ export declare const getFormComponentGenerator: (Component: ComponentType<ComboboxProps>) => React.ForwardRefExoticComponent<(Omit<Omit<ComboboxProps<import("..").ItemOption>, "onChange" | "defaultValue" | "multiple" | "formType"> & {
4
+ onChange?: ((event: React.ChangeEvent<HTMLSelectElement> | null) => void) | undefined;
5
+ defaultValue?: string | undefined;
6
+ name?: string | undefined;
7
+ multiple?: false | undefined;
8
+ ref?: React.Ref<HTMLSelectElement> | undefined;
9
+ formType: true;
10
+ }, "ref"> | Omit<Omit<ComboboxProps<import("..").ItemOption>, "onChange" | "defaultValue" | "multiple" | "formType"> & {
11
+ onChange?: ((event: React.ChangeEvent<HTMLSelectElement> | null) => void) | undefined;
12
+ defaultValue?: string[] | undefined;
13
+ name?: string | undefined;
14
+ multiple?: true | undefined;
15
+ ref?: React.Ref<HTMLSelectElement> | undefined;
16
+ formType: true;
17
+ }, "ref">) & React.RefAttributes<HTMLSelectElement>>;
4
18
  //# sourceMappingURL=getForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAA2C,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AA6DrE,eAAO,MAAM,yBAAyB,cAAe,cAAc,aAAa,CAAC,gGAQhF,CAAC"}
1
+ {"version":3,"file":"getForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Combobox/ComboboxNew/utils/getForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAA2C,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,aAAa,EAAqB,MAAM,mBAAmB,CAAC;AA8DrE,eAAO,MAAM,yBAAyB,cAAe,cAAc,aAAa,CAAC;;;;;;;;;;;;;;oDAQhF,CAAC"}