@makeswift/runtime 0.6.0 → 0.6.1

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/Form.cjs.js CHANGED
@@ -798,25 +798,30 @@ function getCheckmarkColor({
798
798
  l
799
799
  }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
800
800
  }
801
- function Container$1({
802
- size
803
- }) {
804
- return /* @__PURE__ */ jsxRuntime.jsx("div", {
801
+ function Container$1(_y) {
802
+ var _z = _y, {
803
+ size,
804
+ className
805
+ } = _z, restOfProps = __objRest(_z, [
806
+ "size",
807
+ "className"
808
+ ]);
809
+ return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
805
810
  className: css.cx(next.useStyle({
806
811
  position: "relative"
807
812
  }), next.useStyle(next.responsiveStyle([size], ([size2 = next.Sizes.MEDIUM]) => ({
808
813
  height: getSizeHeight(size2),
809
814
  width: getSizeHeight(size2)
810
- }))))
811
- });
815
+ }))), className)
816
+ }));
812
817
  }
813
818
  const FAKE_RADIO_BUTTON_CLASS_NAME = "fake-radio-button";
814
- function FakeRadioButton(_y) {
815
- var _z = _y, {
819
+ function FakeRadioButton(_A) {
820
+ var _B = _A, {
816
821
  className,
817
822
  contrast,
818
823
  error
819
- } = _z, restOfProps = __objRest(_z, [
824
+ } = _B, restOfProps = __objRest(_B, [
820
825
  "className",
821
826
  "contrast",
822
827
  "error"
@@ -836,13 +841,13 @@ function FakeRadioButton(_y) {
836
841
  }))), className)
837
842
  }));
838
843
  }
839
- const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_A, ref) {
840
- var _B = _A, {
844
+ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_C, ref) {
845
+ var _D = _C, {
841
846
  className,
842
847
  brandColor,
843
848
  contrast,
844
849
  error
845
- } = _B, restOfProps = __objRest(_B, [
850
+ } = _D, restOfProps = __objRest(_D, [
846
851
  "className",
847
852
  "brandColor",
848
853
  "contrast",
@@ -915,13 +920,13 @@ const HiddenRadioButton = React.forwardRef(function HiddenRadioButton2(_A, ref)
915
920
  ref
916
921
  }));
917
922
  });
918
- var RadioButton = React.forwardRef(function RadioButton2(_C, ref) {
919
- var _D = _C, {
923
+ var RadioButton = React.forwardRef(function RadioButton2(_E, ref) {
924
+ var _F = _E, {
920
925
  error,
921
926
  className,
922
927
  style,
923
928
  form
924
- } = _D, restOfProps = __objRest(_D, [
929
+ } = _F, restOfProps = __objRest(_F, [
925
930
  "error",
926
931
  "className",
927
932
  "style",
@@ -947,10 +952,10 @@ var RadioButton = React.forwardRef(function RadioButton2(_C, ref) {
947
952
  })]
948
953
  });
949
954
  });
950
- function StyledLabel(_E) {
951
- var _F = _E, {
955
+ function StyledLabel(_G) {
956
+ var _H = _G, {
952
957
  className
953
- } = _F, restOfProps = __objRest(_F, [
958
+ } = _H, restOfProps = __objRest(_H, [
954
959
  "className"
955
960
  ]);
956
961
  return /* @__PURE__ */ jsxRuntime.jsx(Label$1, __spreadProps(__spreadValues({}, restOfProps), {
@@ -964,10 +969,10 @@ function StyledLabel(_E) {
964
969
  }), className)
965
970
  }));
966
971
  }
967
- function RadioButtonContainer(_G) {
968
- var _H = _G, {
972
+ function RadioButtonContainer(_I) {
973
+ var _J = _I, {
969
974
  className
970
- } = _H, restOfProps = __objRest(_H, [
975
+ } = _J, restOfProps = __objRest(_J, [
971
976
  "className"
972
977
  ]);
973
978
  return /* @__PURE__ */ jsxRuntime.jsx("span", __spreadProps(__spreadValues({}, restOfProps), {
@@ -976,15 +981,15 @@ function RadioButtonContainer(_G) {
976
981
  }), className)
977
982
  }));
978
983
  }
979
- var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButtonGroup2(_I, ref) {
980
- var _J = _I, {
984
+ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButtonGroup2(_K, ref) {
985
+ var _L = _K, {
981
986
  tableColumn,
982
987
  label = "",
983
988
  value = "",
984
989
  required = false,
985
990
  hideLabel = false,
986
991
  onChange
987
- } = _J, restOfProps = __objRest(_J, [
992
+ } = _L, restOfProps = __objRest(_L, [
988
993
  "tableColumn",
989
994
  "label",
990
995
  "value",
@@ -1021,15 +1026,15 @@ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButt
1021
1026
  }, option.id))]
1022
1027
  });
1023
1028
  });
1024
- function Container(_K) {
1025
- var _L = _K, {
1029
+ function Container(_M) {
1030
+ var _N = _M, {
1026
1031
  shape,
1027
1032
  size,
1028
1033
  contrast,
1029
1034
  brandColor,
1030
1035
  error,
1031
1036
  className
1032
- } = _L, restOfProps = __objRest(_L, [
1037
+ } = _N, restOfProps = __objRest(_N, [
1033
1038
  "shape",
1034
1039
  "size",
1035
1040
  "contrast",
@@ -1068,10 +1073,10 @@ function Container(_K) {
1068
1073
  })))), className)
1069
1074
  }));
1070
1075
  }
1071
- const Select = React.forwardRef(function Select2(_M, ref) {
1072
- var _N = _M, {
1076
+ const Select = React.forwardRef(function Select2(_O, ref) {
1077
+ var _P = _O, {
1073
1078
  className
1074
- } = _N, restOfProps = __objRest(_N, [
1079
+ } = _P, restOfProps = __objRest(_P, [
1075
1080
  "className"
1076
1081
  ]);
1077
1082
  return /* @__PURE__ */ jsxRuntime.jsx("select", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1087,8 +1092,8 @@ const Select = React.forwardRef(function Select2(_M, ref) {
1087
1092
  }), className)
1088
1093
  }));
1089
1094
  });
1090
- var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2(_O, ref) {
1091
- var _P = _O, {
1095
+ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2(_Q, ref) {
1096
+ var _R = _Q, {
1092
1097
  id,
1093
1098
  tableColumn,
1094
1099
  value = "",
@@ -1096,7 +1101,7 @@ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2
1096
1101
  error = false,
1097
1102
  hideLabel = false,
1098
1103
  form
1099
- } = _P, restOfProps = __objRest(_P, [
1104
+ } = _R, restOfProps = __objRest(_R, [
1100
1105
  "id",
1101
1106
  "tableColumn",
1102
1107
  "value",
@@ -1139,10 +1144,10 @@ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2
1139
1144
  })]
1140
1145
  });
1141
1146
  });
1142
- var SingleSelectTableField = React.forwardRef(function SingleSelectTableField2(_Q, ref) {
1143
- var _R = _Q, {
1147
+ var SingleSelectTableField = React.forwardRef(function SingleSelectTableField2(_S, ref) {
1148
+ var _T = _S, {
1144
1149
  type
1145
- } = _R, restOfProps = __objRest(_R, [
1150
+ } = _T, restOfProps = __objRest(_T, [
1146
1151
  "type"
1147
1152
  ]);
1148
1153
  return type === "select" ? /* @__PURE__ */ jsxRuntime.jsx(TableColumnSingleSelect, __spreadProps(__spreadValues({}, restOfProps), {
@@ -1151,15 +1156,15 @@ var SingleSelectTableField = React.forwardRef(function SingleSelectTableField2(_
1151
1156
  ref
1152
1157
  }));
1153
1158
  });
1154
- var PhoneNumberTableField = React.forwardRef(function PhoneNumberTableField2(_S, ref) {
1155
- var _T = _S, {
1159
+ var PhoneNumberTableField = React.forwardRef(function PhoneNumberTableField2(_U, ref) {
1160
+ var _V = _U, {
1156
1161
  id,
1157
1162
  label = "",
1158
1163
  name,
1159
1164
  error,
1160
1165
  hideLabel = false,
1161
1166
  tableColumn
1162
- } = _T, restOfProps = __objRest(_T, [
1167
+ } = _V, restOfProps = __objRest(_V, [
1163
1168
  "id",
1164
1169
  "label",
1165
1170
  "name",
@@ -1181,15 +1186,15 @@ var PhoneNumberTableField = React.forwardRef(function PhoneNumberTableField2(_S,
1181
1186
  }))]
1182
1187
  });
1183
1188
  });
1184
- var EmailTableField = React.forwardRef(function EmailTableField2(_U, ref) {
1185
- var _V = _U, {
1189
+ var EmailTableField = React.forwardRef(function EmailTableField2(_W, ref) {
1190
+ var _X = _W, {
1186
1191
  id,
1187
1192
  label = "",
1188
1193
  name,
1189
1194
  error,
1190
1195
  hideLabel = false,
1191
1196
  tableColumn
1192
- } = _V, restOfProps = __objRest(_V, [
1197
+ } = _X, restOfProps = __objRest(_X, [
1193
1198
  "id",
1194
1199
  "label",
1195
1200
  "name",
@@ -1211,15 +1216,15 @@ var EmailTableField = React.forwardRef(function EmailTableField2(_U, ref) {
1211
1216
  }))]
1212
1217
  });
1213
1218
  });
1214
- var URLTableField = React.forwardRef(function URLTableField2(_W, ref) {
1215
- var _X = _W, {
1219
+ var URLTableField = React.forwardRef(function URLTableField2(_Y, ref) {
1220
+ var _Z = _Y, {
1216
1221
  id,
1217
1222
  label = "",
1218
1223
  name,
1219
1224
  error,
1220
1225
  hideLabel = false,
1221
1226
  tableColumn
1222
- } = _X, restOfProps = __objRest(_X, [
1227
+ } = _Z, restOfProps = __objRest(_Z, [
1223
1228
  "id",
1224
1229
  "label",
1225
1230
  "name",
@@ -1241,15 +1246,15 @@ var URLTableField = React.forwardRef(function URLTableField2(_W, ref) {
1241
1246
  }))]
1242
1247
  });
1243
1248
  });
1244
- var NumberTableField = React.forwardRef(function NumberTableField2(_Y, ref) {
1245
- var _Z = _Y, {
1249
+ var NumberTableField = React.forwardRef(function NumberTableField2(__, ref) {
1250
+ var _$ = __, {
1246
1251
  id,
1247
1252
  label = "",
1248
1253
  name,
1249
1254
  error,
1250
1255
  hideLabel = false,
1251
1256
  tableColumn
1252
- } = _Z, restOfProps = __objRest(_Z, [
1257
+ } = _$, restOfProps = __objRest(_$, [
1253
1258
  "id",
1254
1259
  "label",
1255
1260
  "name",
@@ -1513,11 +1518,11 @@ function getSizeFontSize(size) {
1513
1518
  throw new Error(`Invalid form size "${size}"`);
1514
1519
  }
1515
1520
  }
1516
- const GridForm = React.forwardRef(function GridFrom(__, ref) {
1517
- var _$ = __, {
1521
+ const GridForm = React.forwardRef(function GridFrom(_aa, ref) {
1522
+ var _ba = _aa, {
1518
1523
  className,
1519
1524
  size
1520
- } = _$, restOfProps = __objRest(_$, [
1525
+ } = _ba, restOfProps = __objRest(_ba, [
1521
1526
  "className",
1522
1527
  "size"
1523
1528
  ]);
@@ -1532,14 +1537,14 @@ const GridForm = React.forwardRef(function GridFrom(__, ref) {
1532
1537
  }))), className)
1533
1538
  }));
1534
1539
  });
1535
- const GridItem = React.forwardRef(function GridItem2(_aa, ref) {
1536
- var _ba = _aa, {
1540
+ const GridItem = React.forwardRef(function GridItem2(_ca, ref) {
1541
+ var _da = _ca, {
1537
1542
  className,
1538
1543
  grid,
1539
1544
  index: index2,
1540
1545
  rowGap,
1541
1546
  columnGap
1542
- } = _ba, restOfProps = __objRest(_ba, [
1547
+ } = _da, restOfProps = __objRest(_da, [
1543
1548
  "className",
1544
1549
  "grid",
1545
1550
  "index",
@@ -1569,12 +1574,12 @@ function getAlignmentMargin(alignment) {
1569
1574
  return "0 auto";
1570
1575
  }
1571
1576
  }
1572
- function StyledButton(_ca) {
1573
- var _da = _ca, {
1577
+ function StyledButton(_ea) {
1578
+ var _fa = _ea, {
1574
1579
  className,
1575
1580
  size,
1576
1581
  alignment
1577
- } = _da, restOfProps = __objRest(_da, [
1582
+ } = _fa, restOfProps = __objRest(_fa, [
1578
1583
  "className",
1579
1584
  "size",
1580
1585
  "alignment"
@@ -1594,10 +1599,10 @@ function StyledButton(_ca) {
1594
1599
  }))), className)
1595
1600
  }));
1596
1601
  }
1597
- function ErrorContainer(_ea) {
1598
- var _fa = _ea, {
1602
+ function ErrorContainer(_ga) {
1603
+ var _ha = _ga, {
1599
1604
  className
1600
- } = _fa, restOfProps = __objRest(_fa, [
1605
+ } = _ha, restOfProps = __objRest(_ha, [
1601
1606
  "className"
1602
1607
  ]);
1603
1608
  return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1609,10 +1614,10 @@ function ErrorContainer(_ea) {
1609
1614
  }), className)
1610
1615
  }));
1611
1616
  }
1612
- function IconContainer(_ga) {
1613
- var _ha = _ga, {
1617
+ function IconContainer(_ia) {
1618
+ var _ja = _ia, {
1614
1619
  className
1615
- } = _ha, restOfProps = __objRest(_ha, [
1620
+ } = _ja, restOfProps = __objRest(_ja, [
1616
1621
  "className"
1617
1622
  ]);
1618
1623
  return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1621,10 +1626,10 @@ function IconContainer(_ga) {
1621
1626
  }), className)
1622
1627
  }));
1623
1628
  }
1624
- function ErrorMessage(_ia) {
1625
- var _ja = _ia, {
1629
+ function ErrorMessage(_ka) {
1630
+ var _la = _ka, {
1626
1631
  className
1627
- } = _ja, restOfProps = __objRest(_ja, [
1632
+ } = _la, restOfProps = __objRest(_la, [
1628
1633
  "className"
1629
1634
  ]);
1630
1635
  return /* @__PURE__ */ jsxRuntime.jsx("p", __spreadProps(__spreadValues({}, restOfProps), {