wacomm 1.66.2 → 1.67.5

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.
@@ -10,6 +10,7 @@ interface AutocompleteProps {
10
10
  inputValue: string;
11
11
  onSelect: (option: AutocompleteOption) => void;
12
12
  onChange: (text: string) => void;
13
+ disabled?: boolean;
13
14
  }
14
- declare function Autocomplete({ className, ref, inputValue, options, onSelect, onChange, placeholder }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function Autocomplete({ className, ref, inputValue, options, onSelect, onChange, placeholder, disabled }: AutocompleteProps): import("react/jsx-runtime").JSX.Element;
15
16
  export default Autocomplete;
@@ -9,6 +9,7 @@ export interface TextUpdaterProps {
9
9
  placeholder?: string;
10
10
  classNameEditing?: string;
11
11
  classNameNonEditing?: string;
12
+ disabled?: boolean;
12
13
  }
13
- declare function TextUpdater({ text: textInit, onSave, isLoading, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function TextUpdater({ text: textInit, onSave, isLoading, isEditing, minRows, maxRows, setIsEditing, placeholder, classNameEditing, classNameNonEditing, disabled }: TextUpdaterProps): import("react/jsx-runtime").JSX.Element;
14
15
  export default TextUpdater;
@@ -5,6 +5,7 @@ interface TextareaAutosizeProps {
5
5
  maxRows?: number;
6
6
  text?: string;
7
7
  onChange: (v: string) => void;
8
+ disabled?: boolean;
8
9
  }
9
- declare const TextareaAutosize: ({ className, placeholder, minRows, maxRows, text, onChange }: TextareaAutosizeProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const TextareaAutosize: ({ className, placeholder, minRows, maxRows, text, onChange, disabled }: TextareaAutosizeProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export default TextareaAutosize;
@@ -2,6 +2,7 @@ import { SetDateTime } from './util';
2
2
  interface DatePickerProps {
3
3
  value: string;
4
4
  setValue: SetDateTime;
5
+ disabled?: boolean;
5
6
  }
6
- declare function DatePicker({ value, setValue }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function DatePicker({ value, setValue, disabled }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
7
8
  export default DatePicker;
@@ -2,6 +2,7 @@ import { DateTime, SetDateTime } from './util';
2
2
  interface DateTimePickerProps {
3
3
  value: DateTime;
4
4
  setValue: SetDateTime;
5
+ disabled?: boolean;
5
6
  }
6
- declare function DateTimePicker({ value, setValue }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function DateTimePicker({ value, setValue, disabled }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
7
8
  export default DateTimePicker;
@@ -2,6 +2,7 @@ import { DateTime, SetDateTime } from './util';
2
2
  interface MonthPickerProps {
3
3
  value: DateTime;
4
4
  setValue: SetDateTime;
5
+ disabled?: boolean;
5
6
  }
6
- declare function MonthPicker({ value, setValue }: MonthPickerProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function MonthPicker({ value, setValue, disabled }: MonthPickerProps): import("react/jsx-runtime").JSX.Element;
7
8
  export default MonthPicker;
@@ -2,6 +2,7 @@ import { SetDateTime, DateTime } from './util';
2
2
  interface TimePickerProps {
3
3
  value: DateTime;
4
4
  setValue: SetDateTime;
5
+ disabled?: boolean;
5
6
  }
6
- declare function TimePicker({ value, setValue }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
7
+ declare function TimePicker({ value, setValue, disabled }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
7
8
  export default TimePicker;
@@ -9039,22 +9039,24 @@ function tj({
9039
9039
  options: n,
9040
9040
  onSelect: r,
9041
9041
  onChange: s,
9042
- placeholder: i = ""
9042
+ placeholder: i = "",
9043
+ disabled: a = !1
9043
9044
  }) {
9044
- const [a, l] = Ue(!1), c = (p, f) => {
9045
- f && r(f);
9046
- }, u = (p, f) => {
9047
- s(f);
9045
+ const [l, c] = Ue(!1), u = (f, d) => {
9046
+ d && r(d);
9047
+ }, p = (f, d) => {
9048
+ s(d);
9048
9049
  };
9049
9050
  return /* @__PURE__ */ b.jsx(
9050
9051
  z1,
9051
9052
  {
9053
+ disabled: a,
9052
9054
  className: e,
9053
9055
  ref: t,
9054
9056
  options: n,
9055
- getOptionLabel: (p) => p.value,
9056
- isOptionEqualToValue: (p, f) => p.id === f.id,
9057
- filterOptions: (p) => p,
9057
+ getOptionLabel: (f) => f.value,
9058
+ isOptionEqualToValue: (f, d) => f.id === d.id,
9059
+ filterOptions: (f) => f,
9058
9060
  popupIcon: null,
9059
9061
  inputValue: o,
9060
9062
  clearOnBlur: !1,
@@ -9071,14 +9073,15 @@ function tj({
9071
9073
  top: "50%",
9072
9074
  transform: "translateY(-50%)",
9073
9075
  paddingLeft: "8px",
9074
- display: a || o ? "none" : "block",
9076
+ display: l || o ? "none" : "block",
9075
9077
  border: "none"
9076
9078
  }
9077
9079
  },
9078
- renderInput: (p) => /* @__PURE__ */ b.jsx(
9080
+ renderInput: (f) => /* @__PURE__ */ b.jsx(
9079
9081
  B1,
9080
9082
  {
9081
- ...p,
9083
+ ...f,
9084
+ disabled: a,
9082
9085
  slotProps: {
9083
9086
  inputLabel: {
9084
9087
  sx: {
@@ -9086,13 +9089,13 @@ function tj({
9086
9089
  }
9087
9090
  }
9088
9091
  },
9089
- label: `${a || o ? "" : i}`
9092
+ label: `${l || o ? "" : i}`
9090
9093
  }
9091
9094
  ),
9092
- onInputChange: u,
9093
- onChange: c,
9094
- onFocus: () => l(!0),
9095
- onBlur: () => l(!1)
9095
+ onInputChange: p,
9096
+ onChange: u,
9097
+ onFocus: () => c(!0),
9098
+ onBlur: () => c(!1)
9096
9099
  }
9097
9100
  );
9098
9101
  }
@@ -9364,14 +9367,16 @@ const jT = ({
9364
9367
  minRows: o = 1,
9365
9368
  maxRows: n = 5,
9366
9369
  text: r,
9367
- onChange: s
9370
+ onChange: s,
9371
+ disabled: i = !1
9368
9372
  }) => {
9369
- const i = (a) => {
9370
- s(a.target.value);
9373
+ const a = (l) => {
9374
+ s(l.target.value);
9371
9375
  };
9372
9376
  return /* @__PURE__ */ b.jsx(
9373
9377
  NT,
9374
9378
  {
9379
+ disabled: i,
9375
9380
  className: Pe(
9376
9381
  "w-full resize-none focus:shadow-none focus:outline-none focus:border-transparent",
9377
9382
  e
@@ -9380,7 +9385,7 @@ const jT = ({
9380
9385
  minRows: o,
9381
9386
  maxRows: n,
9382
9387
  value: r,
9383
- onChange: i
9388
+ onChange: a
9384
9389
  }
9385
9390
  );
9386
9391
  };
@@ -9394,11 +9399,12 @@ function sj({
9394
9399
  setIsEditing: i,
9395
9400
  placeholder: a = "A brief introduction...",
9396
9401
  classNameEditing: l = "",
9397
- classNameNonEditing: c = ""
9402
+ classNameNonEditing: c = "",
9403
+ disabled: u = !1
9398
9404
  }) {
9399
- const u = () => i(!1), [p, f] = Ue(e);
9405
+ const p = () => i(!1), [f, d] = Ue(e);
9400
9406
  return Rb(() => {
9401
- n && u();
9407
+ n && p();
9402
9408
  }), n ? /* @__PURE__ */ b.jsxs(Ts, { className: "TextUpdaterEditing w-full gap-2", children: [
9403
9409
  /* @__PURE__ */ b.jsx(
9404
9410
  jT,
@@ -9407,8 +9413,9 @@ function sj({
9407
9413
  minRows: r,
9408
9414
  maxRows: s,
9409
9415
  placeholder: a,
9410
- text: p,
9411
- onChange: f
9416
+ text: f,
9417
+ onChange: d,
9418
+ disabled: u
9412
9419
  }
9413
9420
  ),
9414
9421
  /* @__PURE__ */ b.jsx(
@@ -9417,10 +9424,10 @@ function sj({
9417
9424
  saveLabel: "Save",
9418
9425
  cancelLabel: "Cancel",
9419
9426
  onSave: () => {
9420
- t(p), u();
9427
+ t(f), p();
9421
9428
  },
9422
- onCancel: u,
9423
- isSaveDisabled: p.length === 0 || o,
9429
+ onCancel: p,
9430
+ isSaveDisabled: f.length === 0 || o,
9424
9431
  isCancelDisabled: o
9425
9432
  }
9426
9433
  )
@@ -9429,7 +9436,7 @@ function sj({
9429
9436
  {
9430
9437
  className: Pe("TextUpdaterNonEditing w-full gap-2 items-start", c),
9431
9438
  children: [
9432
- /* @__PURE__ */ b.jsx(oh, { className: Pe("grow", c), text: p, placeholder: a }),
9439
+ /* @__PURE__ */ b.jsx(oh, { className: Pe("grow", c), text: f, placeholder: a }),
9433
9440
  /* @__PURE__ */ b.jsx(th, { className: "cursor-pointer", onClick: () => i(!0), isHighlighted: !0 })
9434
9441
  ]
9435
9442
  }
@@ -31846,12 +31853,13 @@ const nA = ["desktopModeMediaQuery"], rA = /* @__PURE__ */ P.forwardRef(function
31846
31853
  ref: o
31847
31854
  }, s));
31848
31855
  });
31849
- function tL({ value: e, setValue: t }) {
31856
+ function tL({ value: e, setValue: t, disabled: o = !1 }) {
31850
31857
  return /* @__PURE__ */ b.jsx(Vi, { dateAdapter: al, children: /* @__PURE__ */ b.jsx(
31851
31858
  rA,
31852
31859
  {
31853
31860
  value: e,
31854
31861
  onChange: t,
31862
+ disabled: o,
31855
31863
  slotProps: {
31856
31864
  textField: {
31857
31865
  sx: {
@@ -34544,11 +34552,12 @@ const kM = ["desktopModeMediaQuery"], Bg = /* @__PURE__ */ P.forwardRef(function
34544
34552
  ref: o
34545
34553
  }, s));
34546
34554
  });
34547
- function iL({ value: e, setValue: t }) {
34555
+ function iL({ value: e, setValue: t, disabled: o = !1 }) {
34548
34556
  return /* @__PURE__ */ b.jsx(Vi, { dateAdapter: al, children: /* @__PURE__ */ b.jsx(
34549
34557
  Bg,
34550
34558
  {
34551
34559
  value: Bt(e),
34560
+ disabled: o,
34552
34561
  onChange: t,
34553
34562
  slotProps: {
34554
34563
  textField: {
@@ -34573,12 +34582,13 @@ function iL({ value: e, setValue: t }) {
34573
34582
  }
34574
34583
  ) });
34575
34584
  }
34576
- function aL({ value: e, setValue: t }) {
34585
+ function aL({ value: e, setValue: t, disabled: o = !1 }) {
34577
34586
  return /* @__PURE__ */ b.jsx(Vi, { dateAdapter: al, children: /* @__PURE__ */ b.jsx(
34578
34587
  Bg,
34579
34588
  {
34580
34589
  value: e,
34581
34590
  onChange: t,
34591
+ disabled: o,
34582
34592
  views: ["year", "month"],
34583
34593
  format: "MM/YYYY",
34584
34594
  openTo: "month",
@@ -38256,12 +38266,13 @@ Nk.propTypes = {
38256
38266
  * This source code is licensed under the MIT license found in the
38257
38267
  * LICENSE file in the root directory of this source tree.
38258
38268
  */
38259
- function hL({ value: e, setValue: t }) {
38269
+ function hL({ value: e, setValue: t, disabled: o = !1 }) {
38260
38270
  return /* @__PURE__ */ b.jsx(Vi, { dateAdapter: al, children: /* @__PURE__ */ b.jsx(
38261
38271
  Dk,
38262
38272
  {
38263
38273
  value: e,
38264
38274
  minDate: Bt(),
38275
+ disabled: o,
38265
38276
  onChange: t,
38266
38277
  slotProps: {
38267
38278
  textField: {
@@ -38999,11 +39010,11 @@ function sO(e) {
38999
39010
  }, [r]), null;
39000
39011
  }
39001
39012
  const xL = vr(sO);
39002
- const iO = import("./maplibre-gl-BZWMGnhz.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39013
+ const iO = import("./maplibre-gl-DveZ3my2.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39003
39014
  return Wg(t, o, iO);
39004
39015
  }), lO = qg;
39005
39016
  const cO = rO;
39006
- const uO = import("./mapbox-gl-DgiVK2oI.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39017
+ const uO = import("./mapbox-gl-BS6I54Ye.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39007
39018
  return Wg(t, o, uO);
39008
39019
  }), pO = qg;
39009
39020
  function dO({ locations: e }) {