@bigtablet/design-system 3.19.3 → 3.19.4

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2905,6 +2905,7 @@ var FieldContext = createContext(void 0);
2905
2905
  function useFieldControl() {
2906
2906
  return useContext(FieldContext);
2907
2907
  }
2908
+ var FieldControlBoundary = ({ children }) => /* @__PURE__ */ jsx(FieldContext.Provider, { value: void 0, children });
2908
2909
  var Field = ({
2909
2910
  name,
2910
2911
  label,
@@ -4834,7 +4835,7 @@ var DatePicker = ({
4834
4835
  return /* @__PURE__ */ jsxs("div", { className: rootClassName, style: containerStyle, children: [
4835
4836
  label && /* @__PURE__ */ jsx("span", { className: "date_picker_label", id: groupId, children: label }),
4836
4837
  constraintDesc && /* @__PURE__ */ jsx("span", { id: constraintId, className: "date_picker_sr_only", children: constraintDesc }),
4837
- /* @__PURE__ */ jsxs(
4838
+ /* @__PURE__ */ jsx(
4838
4839
  "div",
4839
4840
  {
4840
4841
  className: "date_picker_fields",
@@ -4842,7 +4843,7 @@ var DatePicker = ({
4842
4843
  "aria-labelledby": field?.labelId ?? (label ? groupId : void 0),
4843
4844
  "aria-describedby": [field?.describedBy, constraintDesc ? constraintId : void 0].filter(Boolean).join(" ") || void 0,
4844
4845
  "aria-invalid": field?.invalid || void 0,
4845
- children: [
4846
+ children: /* @__PURE__ */ jsxs(FieldControlBoundary, { children: [
4846
4847
  /* @__PURE__ */ jsx(
4847
4848
  Dropdown,
4848
4849
  {
@@ -4882,7 +4883,7 @@ var DatePicker = ({
4882
4883
  disabled: disabled || !month
4883
4884
  }
4884
4885
  )
4885
- ]
4886
+ ] })
4886
4887
  }
4887
4888
  )
4888
4889
  ] });
@@ -4919,7 +4920,7 @@ var DateRangePicker = ({
4919
4920
  date_range_picker_full_width: fullWidth,
4920
4921
  date_range_picker_disabled: disabled
4921
4922
  }),
4922
- children: /* @__PURE__ */ jsxs(
4923
+ children: /* @__PURE__ */ jsx(
4923
4924
  "div",
4924
4925
  {
4925
4926
  className: "date_range_picker_fields",
@@ -4927,7 +4928,7 @@ var DateRangePicker = ({
4927
4928
  "aria-labelledby": field?.labelId,
4928
4929
  "aria-describedby": field?.describedBy,
4929
4930
  "aria-invalid": field?.invalid || void 0,
4930
- children: [
4931
+ children: /* @__PURE__ */ jsxs(FieldControlBoundary, { children: [
4931
4932
  /* @__PURE__ */ jsx(
4932
4933
  DatePicker,
4933
4934
  {
@@ -4956,7 +4957,7 @@ var DateRangePicker = ({
4956
4957
  fullWidth: true
4957
4958
  }
4958
4959
  )
4959
- ]
4960
+ ] })
4960
4961
  }
4961
4962
  )
4962
4963
  }
@@ -6028,7 +6029,7 @@ var TimePicker = ({
6028
6029
  children: [
6029
6030
  label && /* @__PURE__ */ jsx("span", { className: "time_picker_label", id: groupId, children: label }),
6030
6031
  constraint && /* @__PURE__ */ jsx("span", { id: constraintId, className: "time_picker_sr_only", children: constraint }),
6031
- /* @__PURE__ */ jsxs(
6032
+ /* @__PURE__ */ jsx(
6032
6033
  "div",
6033
6034
  {
6034
6035
  className: "time_picker_fields",
@@ -6036,7 +6037,7 @@ var TimePicker = ({
6036
6037
  "aria-labelledby": field?.labelId ?? (label ? groupId : void 0),
6037
6038
  "aria-describedby": [field?.describedBy, constraint ? constraintId : void 0].filter(Boolean).join(" ") || void 0,
6038
6039
  "aria-invalid": field?.invalid || void 0,
6039
- children: [
6040
+ children: /* @__PURE__ */ jsxs(FieldControlBoundary, { children: [
6040
6041
  /* @__PURE__ */ jsx(
6041
6042
  Dropdown,
6042
6043
  {
@@ -6063,7 +6064,7 @@ var TimePicker = ({
6063
6064
  disabled: disabled || hour === null
6064
6065
  }
6065
6066
  )
6066
- ]
6067
+ ] })
6067
6068
  }
6068
6069
  )
6069
6070
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "3.19.3",
3
+ "version": "3.19.4",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",