@salutejs/plasma-b2c 1.413.0-canary.1470.11192852883.0 → 1.413.0-canary.1470.11193231082.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1234,7 +1234,7 @@ export const Combobox: CommonProps;
1234
1234
  // Warning: (ae-forgotten-export) The symbol "CommonProps2" needs to be exported by the entry point index.d.ts
1235
1235
  //
1236
1236
  // @public (undocumented)
1237
- export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactNode;
1237
+ export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement | null;
1238
1238
 
1239
1239
  // @public (undocumented)
1240
1240
  export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {
@@ -14,4 +14,4 @@ declare type CommonProps = <T extends ItemOption>(props: PropsOld | (Omit<Combob
14
14
  export declare const Combobox: CommonProps;
15
15
  declare type PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> & Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;
16
16
  declare type CommonProps2<T extends ItemOption> = PropsOld | PropsNew<T>;
17
- export declare const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React.RefAttributes<HTMLInputElement>) => React.ReactNode;
17
+ export declare const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps, ForwardedRef, ReactElement } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactNode,\n): (props: P & React.RefAttributes<T>) => React.ReactNode {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype CommonProps = <T extends ItemOption>(\n props:\n | PropsOld\n | (Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> }),\n) => ReactElement;\n\nconst ComboboxComponent = forwardRef<any, any>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport const Combobox = ComboboxComponent as CommonProps;\n\n// Alternative approach\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps2<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent2 = <T extends ItemOption>(\n props: CommonProps2<T>,\n ref: React.ForwardedRef<HTMLInputElement>,\n) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox2 = fixedForwardRef(ComboboxComponent2);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox","ComboboxComponent2","Combobox2"],"mappings":";;;;;;;;;AAUA,SAASA,eAAeA,CACpBC,MAAwD,EACF;EACtD,oBAAOC,gBAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAaA,IAAME,iBAAiB,gBAAGD,gBAAU,CAAW,UAACE,KAAK,EAAEC,GAAG,EAAK;EAC3D,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAC,CAAA;AAEK,IAAMQ,QAAQ,GAAGT,kBAAgC;;AAExD;;AAOA,IAAMU,kBAAkB,GAAG,SAArBA,kBAAkBA,CACpBT,KAAsB,EACtBC,GAAyC,EACxC;EACD,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYU,SAAS,gBAAGd,eAAe,CAACa,kBAAkB;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps, ForwardedRef, ReactElement } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype CommonProps = <T extends ItemOption>(\n props:\n | PropsOld\n | (Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> }),\n) => ReactElement;\n\nconst ComboboxComponent = forwardRef<any, any>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport const Combobox = ComboboxComponent as CommonProps;\n\n// Alternative approach\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps2<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent2 = <T extends ItemOption>(\n props: CommonProps2<T>,\n ref: React.ForwardedRef<HTMLInputElement>,\n) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox2 = fixedForwardRef(ComboboxComponent2);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox","ComboboxComponent2","Combobox2"],"mappings":";;;;;;;;;AAUA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,gBAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAaA,IAAME,iBAAiB,gBAAGD,gBAAU,CAAW,UAACE,KAAK,EAAEC,GAAG,EAAK;EAC3D,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAC,CAAA;AAEK,IAAMQ,QAAQ,GAAGT,kBAAgC;;AAExD;;AAOA,IAAMU,kBAAkB,GAAG,SAArBA,kBAAkBA,CACpBT,KAAsB,EACtBC,GAAyC,EACxC;EACD,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,mBAAW,EAAAC,iCAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,mBAAW,EAAAD,iCAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYU,SAAS,gBAAGd,eAAe,CAACa,kBAAkB;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps, ForwardedRef, ReactElement } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactNode,\n): (props: P & React.RefAttributes<T>) => React.ReactNode {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype CommonProps = <T extends ItemOption>(\n props:\n | PropsOld\n | (Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> }),\n) => ReactElement;\n\nconst ComboboxComponent = forwardRef<any, any>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport const Combobox = ComboboxComponent as CommonProps;\n\n// Alternative approach\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps2<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent2 = <T extends ItemOption>(\n props: CommonProps2<T>,\n ref: React.ForwardedRef<HTMLInputElement>,\n) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox2 = fixedForwardRef(ComboboxComponent2);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox","ComboboxComponent2","Combobox2"],"mappings":";;;;;;AAUA,SAASA,eAAeA,CACpBC,MAAwD,EACF;EACtD,oBAAOC,UAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAaA,IAAME,iBAAiB,gBAAGD,UAAU,CAAW,UAACE,KAAK,EAAEC,GAAG,EAAK;EAC3D,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAC,CAAA;AAEK,IAAMQ,QAAQ,GAAGT,kBAAgC;;AAExD;;AAOA,IAAMU,kBAAkB,GAAG,SAArBA,kBAAkBA,CACpBT,KAAsB,EACtBC,GAAyC,EACxC;EACD,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYU,SAAS,gBAAGd,eAAe,CAACa,kBAAkB;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src-css/components/Combobox/index.tsx"],"sourcesContent":["import React, { forwardRef, ComponentProps, ForwardedRef, ReactElement } from 'react';\nimport type { ItemOption, ComboboxProps } from '@salutejs/plasma-new-hope';\n\nimport { Combobox as ComboboxOld } from './Legacy';\nimport { Combobox as ComboboxNew } from './Combobox';\n\nexport { ComboboxDivider, ComboboxFooter, ComboboxGroup, ComboboxHeader, ComboboxItem } from './Legacy';\n\nexport type { ComboboxOldProps as ComboboxProps } from '@salutejs/plasma-new-hope';\n\nfunction fixedForwardRef<T, P = {}>(\n render: (props: P, ref: React.Ref<T>) => React.ReactElement | null,\n): (props: P & React.RefAttributes<T>) => React.ReactElement | null {\n return forwardRef(render as any) as any;\n}\n\ntype PropsFromConfig = 'view' | 'size' | 'labelPlacement' | 'disabled' | 'readOnly';\n\ntype PropsOld = ComponentProps<typeof ComboboxOld> & { items?: never };\n\ntype CommonProps = <T extends ItemOption>(\n props:\n | PropsOld\n | (Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig> & { ref?: ForwardedRef<HTMLInputElement> }),\n) => ReactElement;\n\nconst ComboboxComponent = forwardRef<any, any>((props, ref) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...props} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n});\n\nexport const Combobox = ComboboxComponent as CommonProps;\n\n// Alternative approach\n\ntype PropsNew<T extends ItemOption> = Omit<ComboboxProps<T>, PropsFromConfig> &\n Pick<ComponentProps<typeof ComboboxNew>, PropsFromConfig>;\n\ntype CommonProps2<T extends ItemOption> = PropsOld | PropsNew<T>;\n\nconst ComboboxComponent2 = <T extends ItemOption>(\n props: CommonProps2<T>,\n ref: React.ForwardedRef<HTMLInputElement>,\n) => {\n if (props.items) {\n return <ComboboxNew ref={ref} {...(props as any)} />;\n }\n\n return <ComboboxOld ref={ref} {...props} />;\n};\n\nexport const Combobox2 = fixedForwardRef(ComboboxComponent2);\n"],"names":["fixedForwardRef","render","forwardRef","ComboboxComponent","props","ref","items","React","createElement","ComboboxNew","_extends","ComboboxOld","Combobox","ComboboxComponent2","Combobox2"],"mappings":";;;;;;AAUA,SAASA,eAAeA,CACpBC,MAAkE,EACF;EAChE,oBAAOC,UAAU,CAACD,MAAa,CAAC,CAAA;AACpC,CAAA;AAaA,IAAME,iBAAiB,gBAAGD,UAAU,CAAW,UAACE,KAAK,EAAEC,GAAG,EAAK;EAC3D,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAC,CAAA;AAEK,IAAMQ,QAAQ,GAAGT,kBAAgC;;AAExD;;AAOA,IAAMU,kBAAkB,GAAG,SAArBA,kBAAkBA,CACpBT,KAAsB,EACtBC,GAAyC,EACxC;EACD,IAAID,KAAK,CAACE,KAAK,EAAE;AACb,IAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACC,UAAW,EAAAC,QAAA,CAAA;AAACL,MAAAA,GAAG,EAAEA,GAAAA;KAAUD,EAAAA,KAAK,CAAW,CAAC,CAAA;AACxD,GAAA;AAEA,EAAA,oBAAOG,KAAA,CAAAC,aAAA,CAACG,UAAW,EAAAD,QAAA,CAAA;AAACL,IAAAA,GAAG,EAAEA,GAAAA;GAASD,EAAAA,KAAK,CAAG,CAAC,CAAA;AAC/C,CAAC,CAAA;IAEYU,SAAS,gBAAGd,eAAe,CAACa,kBAAkB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-b2c",
3
- "version": "1.413.0-canary.1470.11192852883.0",
3
+ "version": "1.413.0-canary.1470.11193231082.0",
4
4
  "description": "Salute Design System / React UI kit for business-related web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@salutejs/plasma-core": "1.180.0",
46
46
  "@salutejs/plasma-hope": "1.313.0",
47
- "@salutejs/plasma-new-hope": "0.162.0-canary.1470.11192852883.0",
47
+ "@salutejs/plasma-new-hope": "0.162.0-canary.1470.11193231082.0",
48
48
  "@salutejs/plasma-themes": "0.18.0",
49
49
  "@salutejs/plasma-tokens-b2c": "0.52.0",
50
50
  "@salutejs/plasma-tokens-web": "1.57.0",
@@ -109,5 +109,5 @@
109
109
  "react"
110
110
  ],
111
111
  "sideEffects": false,
112
- "gitHead": "31708cca2dab9da6e091c77255d9b52e5761cd92"
112
+ "gitHead": "7ca121c5e4b4ee4e1d702332e0189c1b7aed23bf"
113
113
  }
@@ -1234,7 +1234,7 @@ export const Combobox: CommonProps;
1234
1234
  // Warning: (ae-forgotten-export) The symbol "CommonProps2" needs to be exported by the entry point index.d.ts
1235
1235
  //
1236
1236
  // @public (undocumented)
1237
- export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactNode;
1237
+ export const Combobox2: <T extends ItemOption>(props: CommonProps2<T> & React_2.RefAttributes<HTMLInputElement>) => React_2.ReactElement | null;
1238
1238
 
1239
1239
  // @public (undocumented)
1240
1240
  export const ComboboxDivider: FunctionComponent<PropsType<Variants> & HTMLAttributes<HTMLDivElement> & {