@bahmni/design-system 0.0.1-dev.133 → 0.0.1-dev.136

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.
@@ -2,6 +2,7 @@ import { ComboBoxProps as CarbonComboBoxProps } from '@carbon/react';
2
2
  export type ComboBoxProps<T> = CarbonComboBoxProps<T> & {
3
3
  testId?: string;
4
4
  'data-testid'?: string;
5
+ clearSelectedOnChange?: boolean;
5
6
  };
6
- export declare const ComboBox: <T>({ testId, "data-testid": dataTestId, ...carbonProps }: ComboBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ComboBox: <T>({ testId, "data-testid": dataTestId, selectedItem: externalSelectedItem, clearSelectedOnChange, ...carbonProps }: ComboBoxProps<T>) => import("react/jsx-runtime").JSX.Element;
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/comboBox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,IAAI,mBAAmB,EACrC,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAG,uDAI1B,aAAa,CAAC,CAAC,CAAC,4CAIlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/comboBox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,IAAI,mBAAmB,EACrC,MAAM,eAAe,CAAC;AAGvB,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAG,kHAM1B,aAAa,CAAC,CAAC,CAAC,4CAsBlB,CAAC"}
package/dist/index.js CHANGED
@@ -66920,8 +66920,26 @@ const Ol2 = () => {
66920
66920
  }) => /* @__PURE__ */ l1(M41, { ...e, "data-testid": r ?? n }), jl2 = ({
66921
66921
  testId: r,
66922
66922
  "data-testid": n,
66923
- ...e
66924
- }) => /* @__PURE__ */ l1(Nc, { ...e, "data-testid": r ?? n }), Ul2 = ({
66923
+ selectedItem: e,
66924
+ clearSelectedOnChange: c = !1,
66925
+ ...a
66926
+ }) => {
66927
+ const [l, f] = g1(
66928
+ e || null
66929
+ );
66930
+ return p1(() => {
66931
+ f(e || null), c && e && queueMicrotask(() => {
66932
+ f(null);
66933
+ });
66934
+ }, [e, c]), /* @__PURE__ */ l1(
66935
+ Nc,
66936
+ {
66937
+ ...a,
66938
+ selectedItem: l,
66939
+ "data-testid": r ?? n
66940
+ }
66941
+ );
66942
+ }, Ul2 = ({
66925
66943
  testId: r,
66926
66944
  "data-testid": n,
66927
66945
  ...e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/design-system",
3
- "version": "0.0.1-dev.133",
3
+ "version": "0.0.1-dev.136",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",