@makeswift/runtime 0.6.0 → 0.6.2

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.es.js CHANGED
@@ -772,25 +772,30 @@ function getCheckmarkColor({
772
772
  l
773
773
  }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
774
774
  }
775
- function Container$1({
776
- size
777
- }) {
778
- return /* @__PURE__ */ jsx("div", {
775
+ function Container$1(_y) {
776
+ var _z = _y, {
777
+ size,
778
+ className
779
+ } = _z, restOfProps = __objRest(_z, [
780
+ "size",
781
+ "className"
782
+ ]);
783
+ return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
779
784
  className: cx(useStyle({
780
785
  position: "relative"
781
786
  }), useStyle(responsiveStyle([size], ([size2 = Sizes.MEDIUM]) => ({
782
787
  height: getSizeHeight(size2),
783
788
  width: getSizeHeight(size2)
784
- }))))
785
- });
789
+ }))), className)
790
+ }));
786
791
  }
787
792
  const FAKE_RADIO_BUTTON_CLASS_NAME = "fake-radio-button";
788
- function FakeRadioButton(_y) {
789
- var _z = _y, {
793
+ function FakeRadioButton(_A) {
794
+ var _B = _A, {
790
795
  className,
791
796
  contrast,
792
797
  error
793
- } = _z, restOfProps = __objRest(_z, [
798
+ } = _B, restOfProps = __objRest(_B, [
794
799
  "className",
795
800
  "contrast",
796
801
  "error"
@@ -810,13 +815,13 @@ function FakeRadioButton(_y) {
810
815
  }))), className)
811
816
  }));
812
817
  }
813
- const HiddenRadioButton = forwardRef(function HiddenRadioButton2(_A, ref) {
814
- var _B = _A, {
818
+ const HiddenRadioButton = forwardRef(function HiddenRadioButton2(_C, ref) {
819
+ var _D = _C, {
815
820
  className,
816
821
  brandColor,
817
822
  contrast,
818
823
  error
819
- } = _B, restOfProps = __objRest(_B, [
824
+ } = _D, restOfProps = __objRest(_D, [
820
825
  "className",
821
826
  "brandColor",
822
827
  "contrast",
@@ -889,13 +894,13 @@ const HiddenRadioButton = forwardRef(function HiddenRadioButton2(_A, ref) {
889
894
  ref
890
895
  }));
891
896
  });
892
- var RadioButton = forwardRef(function RadioButton2(_C, ref) {
893
- var _D = _C, {
897
+ var RadioButton = forwardRef(function RadioButton2(_E, ref) {
898
+ var _F = _E, {
894
899
  error,
895
900
  className,
896
901
  style,
897
902
  form
898
- } = _D, restOfProps = __objRest(_D, [
903
+ } = _F, restOfProps = __objRest(_F, [
899
904
  "error",
900
905
  "className",
901
906
  "style",
@@ -921,10 +926,10 @@ var RadioButton = forwardRef(function RadioButton2(_C, ref) {
921
926
  })]
922
927
  });
923
928
  });
924
- function StyledLabel(_E) {
925
- var _F = _E, {
929
+ function StyledLabel(_G) {
930
+ var _H = _G, {
926
931
  className
927
- } = _F, restOfProps = __objRest(_F, [
932
+ } = _H, restOfProps = __objRest(_H, [
928
933
  "className"
929
934
  ]);
930
935
  return /* @__PURE__ */ jsx(Label$1, __spreadProps(__spreadValues({}, restOfProps), {
@@ -938,10 +943,10 @@ function StyledLabel(_E) {
938
943
  }), className)
939
944
  }));
940
945
  }
941
- function RadioButtonContainer(_G) {
942
- var _H = _G, {
946
+ function RadioButtonContainer(_I) {
947
+ var _J = _I, {
943
948
  className
944
- } = _H, restOfProps = __objRest(_H, [
949
+ } = _J, restOfProps = __objRest(_J, [
945
950
  "className"
946
951
  ]);
947
952
  return /* @__PURE__ */ jsx("span", __spreadProps(__spreadValues({}, restOfProps), {
@@ -950,15 +955,15 @@ function RadioButtonContainer(_G) {
950
955
  }), className)
951
956
  }));
952
957
  }
953
- var TableColumnRadioButtonGroup = forwardRef(function TableColumnRadioButtonGroup2(_I, ref) {
954
- var _J = _I, {
958
+ var TableColumnRadioButtonGroup = forwardRef(function TableColumnRadioButtonGroup2(_K, ref) {
959
+ var _L = _K, {
955
960
  tableColumn,
956
961
  label = "",
957
962
  value = "",
958
963
  required = false,
959
964
  hideLabel = false,
960
965
  onChange
961
- } = _J, restOfProps = __objRest(_J, [
966
+ } = _L, restOfProps = __objRest(_L, [
962
967
  "tableColumn",
963
968
  "label",
964
969
  "value",
@@ -995,15 +1000,15 @@ var TableColumnRadioButtonGroup = forwardRef(function TableColumnRadioButtonGrou
995
1000
  }, option.id))]
996
1001
  });
997
1002
  });
998
- function Container(_K) {
999
- var _L = _K, {
1003
+ function Container(_M) {
1004
+ var _N = _M, {
1000
1005
  shape,
1001
1006
  size,
1002
1007
  contrast,
1003
1008
  brandColor,
1004
1009
  error,
1005
1010
  className
1006
- } = _L, restOfProps = __objRest(_L, [
1011
+ } = _N, restOfProps = __objRest(_N, [
1007
1012
  "shape",
1008
1013
  "size",
1009
1014
  "contrast",
@@ -1042,10 +1047,10 @@ function Container(_K) {
1042
1047
  })))), className)
1043
1048
  }));
1044
1049
  }
1045
- const Select = forwardRef(function Select2(_M, ref) {
1046
- var _N = _M, {
1050
+ const Select = forwardRef(function Select2(_O, ref) {
1051
+ var _P = _O, {
1047
1052
  className
1048
- } = _N, restOfProps = __objRest(_N, [
1053
+ } = _P, restOfProps = __objRest(_P, [
1049
1054
  "className"
1050
1055
  ]);
1051
1056
  return /* @__PURE__ */ jsx("select", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1061,8 +1066,8 @@ const Select = forwardRef(function Select2(_M, ref) {
1061
1066
  }), className)
1062
1067
  }));
1063
1068
  });
1064
- var TableColumnSingleSelect = forwardRef(function TableColumnSingleSelect2(_O, ref) {
1065
- var _P = _O, {
1069
+ var TableColumnSingleSelect = forwardRef(function TableColumnSingleSelect2(_Q, ref) {
1070
+ var _R = _Q, {
1066
1071
  id,
1067
1072
  tableColumn,
1068
1073
  value = "",
@@ -1070,7 +1075,7 @@ var TableColumnSingleSelect = forwardRef(function TableColumnSingleSelect2(_O, r
1070
1075
  error = false,
1071
1076
  hideLabel = false,
1072
1077
  form
1073
- } = _P, restOfProps = __objRest(_P, [
1078
+ } = _R, restOfProps = __objRest(_R, [
1074
1079
  "id",
1075
1080
  "tableColumn",
1076
1081
  "value",
@@ -1113,10 +1118,10 @@ var TableColumnSingleSelect = forwardRef(function TableColumnSingleSelect2(_O, r
1113
1118
  })]
1114
1119
  });
1115
1120
  });
1116
- var SingleSelectTableField = forwardRef(function SingleSelectTableField2(_Q, ref) {
1117
- var _R = _Q, {
1121
+ var SingleSelectTableField = forwardRef(function SingleSelectTableField2(_S, ref) {
1122
+ var _T = _S, {
1118
1123
  type
1119
- } = _R, restOfProps = __objRest(_R, [
1124
+ } = _T, restOfProps = __objRest(_T, [
1120
1125
  "type"
1121
1126
  ]);
1122
1127
  return type === "select" ? /* @__PURE__ */ jsx(TableColumnSingleSelect, __spreadProps(__spreadValues({}, restOfProps), {
@@ -1125,15 +1130,15 @@ var SingleSelectTableField = forwardRef(function SingleSelectTableField2(_Q, ref
1125
1130
  ref
1126
1131
  }));
1127
1132
  });
1128
- var PhoneNumberTableField = forwardRef(function PhoneNumberTableField2(_S, ref) {
1129
- var _T = _S, {
1133
+ var PhoneNumberTableField = forwardRef(function PhoneNumberTableField2(_U, ref) {
1134
+ var _V = _U, {
1130
1135
  id,
1131
1136
  label = "",
1132
1137
  name,
1133
1138
  error,
1134
1139
  hideLabel = false,
1135
1140
  tableColumn
1136
- } = _T, restOfProps = __objRest(_T, [
1141
+ } = _V, restOfProps = __objRest(_V, [
1137
1142
  "id",
1138
1143
  "label",
1139
1144
  "name",
@@ -1155,15 +1160,15 @@ var PhoneNumberTableField = forwardRef(function PhoneNumberTableField2(_S, ref)
1155
1160
  }))]
1156
1161
  });
1157
1162
  });
1158
- var EmailTableField = forwardRef(function EmailTableField2(_U, ref) {
1159
- var _V = _U, {
1163
+ var EmailTableField = forwardRef(function EmailTableField2(_W, ref) {
1164
+ var _X = _W, {
1160
1165
  id,
1161
1166
  label = "",
1162
1167
  name,
1163
1168
  error,
1164
1169
  hideLabel = false,
1165
1170
  tableColumn
1166
- } = _V, restOfProps = __objRest(_V, [
1171
+ } = _X, restOfProps = __objRest(_X, [
1167
1172
  "id",
1168
1173
  "label",
1169
1174
  "name",
@@ -1185,15 +1190,15 @@ var EmailTableField = forwardRef(function EmailTableField2(_U, ref) {
1185
1190
  }))]
1186
1191
  });
1187
1192
  });
1188
- var URLTableField = forwardRef(function URLTableField2(_W, ref) {
1189
- var _X = _W, {
1193
+ var URLTableField = forwardRef(function URLTableField2(_Y, ref) {
1194
+ var _Z = _Y, {
1190
1195
  id,
1191
1196
  label = "",
1192
1197
  name,
1193
1198
  error,
1194
1199
  hideLabel = false,
1195
1200
  tableColumn
1196
- } = _X, restOfProps = __objRest(_X, [
1201
+ } = _Z, restOfProps = __objRest(_Z, [
1197
1202
  "id",
1198
1203
  "label",
1199
1204
  "name",
@@ -1215,15 +1220,15 @@ var URLTableField = forwardRef(function URLTableField2(_W, ref) {
1215
1220
  }))]
1216
1221
  });
1217
1222
  });
1218
- var NumberTableField = forwardRef(function NumberTableField2(_Y, ref) {
1219
- var _Z = _Y, {
1223
+ var NumberTableField = forwardRef(function NumberTableField2(__, ref) {
1224
+ var _$ = __, {
1220
1225
  id,
1221
1226
  label = "",
1222
1227
  name,
1223
1228
  error,
1224
1229
  hideLabel = false,
1225
1230
  tableColumn
1226
- } = _Z, restOfProps = __objRest(_Z, [
1231
+ } = _$, restOfProps = __objRest(_$, [
1227
1232
  "id",
1228
1233
  "label",
1229
1234
  "name",
@@ -1487,11 +1492,11 @@ function getSizeFontSize(size) {
1487
1492
  throw new Error(`Invalid form size "${size}"`);
1488
1493
  }
1489
1494
  }
1490
- const GridForm = forwardRef(function GridFrom(__, ref) {
1491
- var _$ = __, {
1495
+ const GridForm = forwardRef(function GridFrom(_aa, ref) {
1496
+ var _ba = _aa, {
1492
1497
  className,
1493
1498
  size
1494
- } = _$, restOfProps = __objRest(_$, [
1499
+ } = _ba, restOfProps = __objRest(_ba, [
1495
1500
  "className",
1496
1501
  "size"
1497
1502
  ]);
@@ -1506,14 +1511,14 @@ const GridForm = forwardRef(function GridFrom(__, ref) {
1506
1511
  }))), className)
1507
1512
  }));
1508
1513
  });
1509
- const GridItem = forwardRef(function GridItem2(_aa, ref) {
1510
- var _ba = _aa, {
1514
+ const GridItem = forwardRef(function GridItem2(_ca, ref) {
1515
+ var _da = _ca, {
1511
1516
  className,
1512
1517
  grid,
1513
1518
  index,
1514
1519
  rowGap,
1515
1520
  columnGap
1516
- } = _ba, restOfProps = __objRest(_ba, [
1521
+ } = _da, restOfProps = __objRest(_da, [
1517
1522
  "className",
1518
1523
  "grid",
1519
1524
  "index",
@@ -1543,12 +1548,12 @@ function getAlignmentMargin(alignment) {
1543
1548
  return "0 auto";
1544
1549
  }
1545
1550
  }
1546
- function StyledButton(_ca) {
1547
- var _da = _ca, {
1551
+ function StyledButton(_ea) {
1552
+ var _fa = _ea, {
1548
1553
  className,
1549
1554
  size,
1550
1555
  alignment
1551
- } = _da, restOfProps = __objRest(_da, [
1556
+ } = _fa, restOfProps = __objRest(_fa, [
1552
1557
  "className",
1553
1558
  "size",
1554
1559
  "alignment"
@@ -1568,10 +1573,10 @@ function StyledButton(_ca) {
1568
1573
  }))), className)
1569
1574
  }));
1570
1575
  }
1571
- function ErrorContainer(_ea) {
1572
- var _fa = _ea, {
1576
+ function ErrorContainer(_ga) {
1577
+ var _ha = _ga, {
1573
1578
  className
1574
- } = _fa, restOfProps = __objRest(_fa, [
1579
+ } = _ha, restOfProps = __objRest(_ha, [
1575
1580
  "className"
1576
1581
  ]);
1577
1582
  return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1583,10 +1588,10 @@ function ErrorContainer(_ea) {
1583
1588
  }), className)
1584
1589
  }));
1585
1590
  }
1586
- function IconContainer(_ga) {
1587
- var _ha = _ga, {
1591
+ function IconContainer(_ia) {
1592
+ var _ja = _ia, {
1588
1593
  className
1589
- } = _ha, restOfProps = __objRest(_ha, [
1594
+ } = _ja, restOfProps = __objRest(_ja, [
1590
1595
  "className"
1591
1596
  ]);
1592
1597
  return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({}, restOfProps), {
@@ -1595,10 +1600,10 @@ function IconContainer(_ga) {
1595
1600
  }), className)
1596
1601
  }));
1597
1602
  }
1598
- function ErrorMessage(_ia) {
1599
- var _ja = _ia, {
1603
+ function ErrorMessage(_ka) {
1604
+ var _la = _ka, {
1600
1605
  className
1601
- } = _ja, restOfProps = __objRest(_ja, [
1606
+ } = _la, restOfProps = __objRest(_la, [
1602
1607
  "className"
1603
1608
  ]);
1604
1609
  return /* @__PURE__ */ jsx("p", __spreadProps(__spreadValues({}, restOfProps), {