@australiangreens/ag-internal-components 0.0.74 → 0.0.75

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.
@@ -18,7 +18,7 @@ type Props<EntityType extends AutocompleteGenericEntity> = {
18
18
  /** A nice label for the autocomplete. */
19
19
  label: string;
20
20
  /** The lookup function, for looking up EntityType options from a remote resource. */
21
- lookup: (lookupValue: string) => Promise<EntityType[] | undefined | null | void>;
21
+ lookup?: (lookupValue: string) => Promise<EntityType[] | undefined | null | void>;
22
22
  preLoadedOptions?: EntityType[] | undefined;
23
23
  /**If true, the Popper content will be under the DOM hierarchy of the parent
24
24
  * component. Passed directly to underlying MUI Autocomplete component.*/
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SingleAutocomplete/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAa,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,KAAK,KAAK,CAAC,UAAU,SAAS,yBAAyB,IAAI;IACzD;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,UAAU,GAAG,IAAI,KAAK,OAAO,CAAC;IAC1F,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IAEd,qFAAqF;IACrF,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,EAAE,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IAEjF,gBAAgB,CAAC,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;I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,GAAG,SAAS,CAAC;IAE5C;6EACyE;IACzE,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,cAAc,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IACpF,gBAAgB,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;CACvD,CAAC;AAEF,QAAA,MAAM,kBAAkB,mPA0EvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -20,7 +20,7 @@ var Te = (e, t) => {
20
20
  return n;
21
21
  };
22
22
  var ye = (e, t, n) => (ce(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- var V = (e, t, n) => new Promise((i, a) => {
23
+ var z = (e, t, n) => new Promise((i, a) => {
24
24
  var s = (c) => {
25
25
  try {
26
26
  p(n.next(c));
@@ -74,14 +74,14 @@ function go({ text: e }) {
74
74
  ] })
75
75
  ] });
76
76
  }
77
- const it = 330, rt = 73, z = "Navbar", q = {
78
- root: `${z}-root`,
79
- menuButton: `${z}-menuButton`,
80
- hide: `${z}-hide`,
81
- content: `${z}-content`,
82
- userInfoHolder: `${z}-userInfoHolder`,
83
- settings: `${z}-settings`,
84
- pieChartIcon: `${z}-pieChartIcon`
77
+ const it = 330, rt = 73, G = "Navbar", q = {
78
+ root: `${G}-root`,
79
+ menuButton: `${G}-menuButton`,
80
+ hide: `${G}-hide`,
81
+ content: `${G}-content`,
82
+ userInfoHolder: `${G}-userInfoHolder`,
83
+ settings: `${G}-settings`,
84
+ pieChartIcon: `${G}-pieChartIcon`
85
85
  }, on = H(I, {
86
86
  name: "NavBar"
87
87
  })(({ theme: e }) => ({
@@ -268,7 +268,7 @@ const hn = ({
268
268
  yt,
269
269
  {
270
270
  open: e,
271
- onClose: () => V(void 0, null, function* () {
271
+ onClose: () => z(void 0, null, function* () {
272
272
  d || (s != null && s.onClick ? yield s.onClick() : l());
273
273
  }),
274
274
  fullWidth: !0,
@@ -292,7 +292,7 @@ const hn = ({
292
292
  a && /* @__PURE__ */ o(
293
293
  fe,
294
294
  {
295
- onClick: () => V(void 0, null, function* () {
295
+ onClick: () => z(void 0, null, function* () {
296
296
  var m;
297
297
  x(!0), yield (m = a.onClick) == null ? void 0 : m.call(a), x(!1);
298
298
  }),
@@ -319,7 +319,7 @@ const hn = ({
319
319
  queryKey: ["autocomplete", i, a]
320
320
  });
321
321
  function xo({
322
- lookup: e = () => V(this, null, function* () {
322
+ lookup: e = () => z(this, null, function* () {
323
323
  }),
324
324
  enableHighlighting: t = !0,
325
325
  onChange: n,
@@ -467,7 +467,8 @@ function xo({
467
467
  ] });
468
468
  }
469
469
  const wo = ({
470
- lookup: e,
470
+ lookup: e = () => z(void 0, null, function* () {
471
+ }),
471
472
  onChange: t,
472
473
  label: n,
473
474
  value: i,
@@ -526,16 +527,16 @@ const wo = ({
526
527
  )
527
528
  }
528
529
  ) }) });
529
- }, gn = 24, fn = 64, G = "TopBar", T = {
530
- topStripe: `${G}-topStripe`,
531
- titleBar: `${G}-titleBar`,
532
- titleSlider: `${G}-titleSlider`,
533
- titleText: `${G}-titleText`,
534
- leftPanelButton: `${G}-leftPanelButton`,
535
- rightPanelButton: `${G}-leftPanelButton`
530
+ }, gn = 24, fn = 64, V = "TopBar", T = {
531
+ topStripe: `${V}-topStripe`,
532
+ titleBar: `${V}-titleBar`,
533
+ titleSlider: `${V}-titleSlider`,
534
+ titleText: `${V}-titleText`,
535
+ leftPanelButton: `${V}-leftPanelButton`,
536
+ rightPanelButton: `${V}-leftPanelButton`
536
537
  }, mn = be("div", {
537
538
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
538
- name: G
539
+ name: V
539
540
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
540
541
  var i, a;
541
542
  return {
@@ -1332,9 +1333,9 @@ const Ue = B(
1332
1333
  applicationName: a,
1333
1334
  handleLogout: s
1334
1335
  }) => {
1335
- const [l, p] = U(vt), [c, d] = E(l), { enqueueSuccessNotification: x } = qn(), w = i.length === 0, b = !!l && !i.includes(l) && !i.includes(c), m = !l || w || b, D = () => V(void 0, null, function* () {
1336
+ const [l, p] = U(vt), [c, d] = E(l), { enqueueSuccessNotification: x } = qn(), w = i.length === 0, b = !!l && !i.includes(l) && !i.includes(c), m = !l || w || b, D = () => z(void 0, null, function* () {
1336
1337
  c ? (p(c), x(`Set domain to ${c}`), n()) : p("");
1337
- }), k = () => V(void 0, null, function* () {
1338
+ }), k = () => z(void 0, null, function* () {
1338
1339
  l && !w && !b ? (d(l), n()) : m && s();
1339
1340
  });
1340
1341
  let O;