@kystverket/styrbord 1.0.10 → 1.0.12

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.
package/dist/main.js CHANGED
@@ -8602,10 +8602,12 @@ const oi = (r) => {
8602
8602
  onChange: n,
8603
8603
  dateFormat: e = "dd.MM.yyyy",
8604
8604
  showCalendarIcon: t = !0,
8605
- ...a
8605
+ minDate: a,
8606
+ maxDate: s,
8607
+ ...i
8606
8608
  }) => /* @__PURE__ */ h.jsxs(y0, { children: [
8607
- /* @__PURE__ */ h.jsx(h1, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ h.jsx(i0, { text: a.label, required: a.required, optional: a.optional }) }),
8608
- a.description && /* @__PURE__ */ h.jsx(y0.Description, { children: a.description }),
8609
+ /* @__PURE__ */ h.jsx(h1, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ h.jsx(i0, { text: i.label, required: i.required, optional: i.optional }) }),
8610
+ i.description && /* @__PURE__ */ h.jsx(y0.Description, { children: i.description }),
8609
8611
  /* @__PURE__ */ h.jsx(
8610
8612
  a8,
8611
8613
  {
@@ -8613,11 +8615,14 @@ const oi = (r) => {
8613
8615
  selected: r,
8614
8616
  dateFormat: e,
8615
8617
  placeholderText: "dd.mm.åååå",
8616
- onChange: (s) => n == null ? void 0 : n(s ?? void 0),
8617
- customInput: x3(oi, { showCalendarIcon: t })
8618
+ onChange: (o) => n == null ? void 0 : n(o ?? void 0),
8619
+ customInput: x3(oi, { showCalendarIcon: t }),
8620
+ minDate: a,
8621
+ maxDate: s,
8622
+ onBlur: i.onBlur
8618
8623
  }
8619
8624
  ),
8620
- a.error && /* @__PURE__ */ h.jsx(M0, { children: a.error })
8625
+ i.error && /* @__PURE__ */ h.jsx(M0, { children: i.error })
8621
8626
  ] }), li = "_input_7ewse_2", ci = "_inputWrapper_7ewse_12", di = "_inputIcon_7ewse_18", M3 = {
8622
8627
  input: li,
8623
8628
  inputWrapper: ci,
@@ -8636,24 +8641,29 @@ const ui = (r) => {
8636
8641
  dateTimeFormat: e = "dd.MM.yyyy, HH:mm",
8637
8642
  timeInputLabel: t = "Time: ",
8638
8643
  showCalendarIcon: a = !0,
8639
- ...s
8644
+ minDate: s,
8645
+ maxDate: i,
8646
+ ...o
8640
8647
  }) => /* @__PURE__ */ h.jsxs(y0, { className: M3.input, children: [
8641
- /* @__PURE__ */ h.jsx(h1, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ h.jsx(i0, { text: s.label, required: s.required, optional: s.optional }) }),
8642
- s.description && /* @__PURE__ */ h.jsx(y0.Description, { children: s.description }),
8648
+ /* @__PURE__ */ h.jsx(h1, { style: { display: "block", width: "fit-content" }, children: /* @__PURE__ */ h.jsx(i0, { text: o.label, required: o.required, optional: o.optional }) }),
8649
+ o.description && /* @__PURE__ */ h.jsx(y0.Description, { children: o.description }),
8643
8650
  /* @__PURE__ */ h.jsx(
8644
8651
  a8,
8645
8652
  {
8646
8653
  locale: "nb",
8647
8654
  selected: r,
8648
8655
  dateFormat: e,
8649
- onChange: (i) => n == null ? void 0 : n(i ?? void 0),
8656
+ onChange: (l) => n == null ? void 0 : n(l ?? void 0),
8650
8657
  customInput: x3(ui, { showCalendarIcon: a }),
8651
8658
  showTimeInput: !0,
8652
8659
  placeholderText: "dd.mm.åååå, tt:mm",
8653
- timeInputLabel: t
8660
+ timeInputLabel: t,
8661
+ minDate: s,
8662
+ maxDate: i,
8663
+ onBlur: o.onBlur
8654
8664
  }
8655
8665
  ),
8656
- s.error && /* @__PURE__ */ h.jsx(M0, { children: s.error })
8666
+ o.error && /* @__PURE__ */ h.jsx(M0, { children: o.error })
8657
8667
  ] }), hi = "_uploadButton_w83xe_2", Ci = "_uploadInformation_w83xe_3", fi = "_fileList_w83xe_22", pi = "_fileItem_w83xe_29", mi = "_removeButton_w83xe_42", G0 = {
8658
8668
  uploadButton: hi,
8659
8669
  uploadInformation: Ci,