@sunggang/ui-lib 0.2.94 → 0.2.96

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/index.esm.css CHANGED
@@ -1163,9 +1163,6 @@ video {
1163
1163
  .rounded-\[10px\] {
1164
1164
  border-radius: 10px;
1165
1165
  }
1166
- .rounded-\[50\%\] {
1167
- border-radius: 50%;
1168
- }
1169
1166
  .rounded-full {
1170
1167
  border-radius: 9999px;
1171
1168
  }
@@ -1318,10 +1315,6 @@ video {
1318
1315
  --tw-bg-opacity: 1;
1319
1316
  background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
1320
1317
  }
1321
- .bg-\[\#FFDF8C\] {
1322
- --tw-bg-opacity: 1;
1323
- background-color: rgb(255 223 140 / var(--tw-bg-opacity, 1));
1324
- }
1325
1318
  .bg-\[\#f5f5f5\] {
1326
1319
  --tw-bg-opacity: 1;
1327
1320
  background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
@@ -1504,9 +1497,6 @@ video {
1504
1497
  .p-6 {
1505
1498
  padding: 1.5rem;
1506
1499
  }
1507
- .p-\[2px\] {
1508
- padding: 2px;
1509
- }
1510
1500
  .p-\[30px\] {
1511
1501
  padding: 30px;
1512
1502
  }
@@ -1574,10 +1564,6 @@ video {
1574
1564
  padding-top: 2.25rem;
1575
1565
  padding-bottom: 2.25rem;
1576
1566
  }
1577
- .py-\[8px\] {
1578
- padding-top: 8px;
1579
- padding-bottom: 8px;
1580
- }
1581
1567
  .pb-0\.5 {
1582
1568
  padding-bottom: 0.125rem;
1583
1569
  }
package/index.esm2.js CHANGED
@@ -76,11 +76,11 @@ var propTypes$1 = {
76
76
  exports: {}
77
77
  };
78
78
 
79
- var reactIs$3 = {
79
+ var reactIs$2 = {
80
80
  exports: {}
81
81
  };
82
82
 
83
- var reactIs_production_min$2 = {};
83
+ var reactIs_production_min$1 = {};
84
84
 
85
85
  /** @license React v16.13.1
86
86
  * react-is.production.min.js
@@ -90,96 +90,96 @@ var reactIs_production_min$2 = {};
90
90
  * This source code is licensed under the MIT license found in the
91
91
  * LICENSE file in the root directory of this source tree.
92
92
  */
93
- var b$2 = "function" === typeof Symbol && Symbol.for, c$2 = b$2 ? Symbol.for("react.element") : 60103, d$2 = b$2 ? Symbol.for("react.portal") : 60106, e$2 = b$2 ? Symbol.for("react.fragment") : 60107, f$3 = b$2 ? Symbol.for("react.strict_mode") : 60108, g$3 = b$2 ? Symbol.for("react.profiler") : 60114, h$2 = b$2 ? Symbol.for("react.provider") : 60109, k$3 = b$2 ? Symbol.for("react.context") : 60110, l$2 = b$2 ? Symbol.for("react.async_mode") : 60111, m$3 = b$2 ? Symbol.for("react.concurrent_mode") : 60111, n$2 = b$2 ? Symbol.for("react.forward_ref") : 60112, p$2 = b$2 ? Symbol.for("react.suspense") : 60113, q$3 = b$2 ? Symbol.for("react.suspense_list") : 60120, r$2 = b$2 ? Symbol.for("react.memo") : 60115, t$1 = b$2 ? Symbol.for("react.lazy") : 60116, v$3 = b$2 ? Symbol.for("react.block") : 60121, w$4 = b$2 ? Symbol.for("react.fundamental") : 60117, x$3 = b$2 ? Symbol.for("react.responder") : 60118, y$3 = b$2 ? Symbol.for("react.scope") : 60119;
94
- function z$3(a) {
93
+ var b$1 = "function" === typeof Symbol && Symbol.for, c$1 = b$1 ? Symbol.for("react.element") : 60103, d$1 = b$1 ? Symbol.for("react.portal") : 60106, e$1 = b$1 ? Symbol.for("react.fragment") : 60107, f$2 = b$1 ? Symbol.for("react.strict_mode") : 60108, g$2 = b$1 ? Symbol.for("react.profiler") : 60114, h$1 = b$1 ? Symbol.for("react.provider") : 60109, k$2 = b$1 ? Symbol.for("react.context") : 60110, l$1 = b$1 ? Symbol.for("react.async_mode") : 60111, m$2 = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n$1 = b$1 ? Symbol.for("react.forward_ref") : 60112, p$1 = b$1 ? Symbol.for("react.suspense") : 60113, q$2 = b$1 ? Symbol.for("react.suspense_list") : 60120, r$1 = b$1 ? Symbol.for("react.memo") : 60115, t = b$1 ? Symbol.for("react.lazy") : 60116, v$2 = b$1 ? Symbol.for("react.block") : 60121, w$3 = b$1 ? Symbol.for("react.fundamental") : 60117, x$2 = b$1 ? Symbol.for("react.responder") : 60118, y$2 = b$1 ? Symbol.for("react.scope") : 60119;
94
+ function z$2(a) {
95
95
  if ("object" === typeof a && null !== a) {
96
96
  var u = a.$$typeof;
97
97
  switch(u){
98
- case c$2:
98
+ case c$1:
99
99
  switch(a = a.type, a){
100
- case l$2:
101
- case m$3:
102
- case e$2:
103
- case g$3:
104
- case f$3:
105
- case p$2:
100
+ case l$1:
101
+ case m$2:
102
+ case e$1:
103
+ case g$2:
104
+ case f$2:
105
+ case p$1:
106
106
  return a;
107
107
  default:
108
108
  switch(a = a && a.$$typeof, a){
109
- case k$3:
110
- case n$2:
111
- case t$1:
112
- case r$2:
113
- case h$2:
109
+ case k$2:
110
+ case n$1:
111
+ case t:
112
+ case r$1:
113
+ case h$1:
114
114
  return a;
115
115
  default:
116
116
  return u;
117
117
  }
118
118
  }
119
- case d$2:
119
+ case d$1:
120
120
  return u;
121
121
  }
122
122
  }
123
123
  }
124
- function A$3(a) {
125
- return z$3(a) === m$3;
124
+ function A$2(a) {
125
+ return z$2(a) === m$2;
126
126
  }
127
- reactIs_production_min$2.AsyncMode = l$2;
128
- reactIs_production_min$2.ConcurrentMode = m$3;
129
- reactIs_production_min$2.ContextConsumer = k$3;
130
- reactIs_production_min$2.ContextProvider = h$2;
131
- reactIs_production_min$2.Element = c$2;
132
- reactIs_production_min$2.ForwardRef = n$2;
133
- reactIs_production_min$2.Fragment = e$2;
134
- reactIs_production_min$2.Lazy = t$1;
135
- reactIs_production_min$2.Memo = r$2;
136
- reactIs_production_min$2.Portal = d$2;
137
- reactIs_production_min$2.Profiler = g$3;
138
- reactIs_production_min$2.StrictMode = f$3;
139
- reactIs_production_min$2.Suspense = p$2;
140
- reactIs_production_min$2.isAsyncMode = function(a) {
141
- return A$3(a) || z$3(a) === l$2;
127
+ reactIs_production_min$1.AsyncMode = l$1;
128
+ reactIs_production_min$1.ConcurrentMode = m$2;
129
+ reactIs_production_min$1.ContextConsumer = k$2;
130
+ reactIs_production_min$1.ContextProvider = h$1;
131
+ reactIs_production_min$1.Element = c$1;
132
+ reactIs_production_min$1.ForwardRef = n$1;
133
+ reactIs_production_min$1.Fragment = e$1;
134
+ reactIs_production_min$1.Lazy = t;
135
+ reactIs_production_min$1.Memo = r$1;
136
+ reactIs_production_min$1.Portal = d$1;
137
+ reactIs_production_min$1.Profiler = g$2;
138
+ reactIs_production_min$1.StrictMode = f$2;
139
+ reactIs_production_min$1.Suspense = p$1;
140
+ reactIs_production_min$1.isAsyncMode = function(a) {
141
+ return A$2(a) || z$2(a) === l$1;
142
142
  };
143
- reactIs_production_min$2.isConcurrentMode = A$3;
144
- reactIs_production_min$2.isContextConsumer = function(a) {
145
- return z$3(a) === k$3;
143
+ reactIs_production_min$1.isConcurrentMode = A$2;
144
+ reactIs_production_min$1.isContextConsumer = function(a) {
145
+ return z$2(a) === k$2;
146
146
  };
147
- reactIs_production_min$2.isContextProvider = function(a) {
148
- return z$3(a) === h$2;
147
+ reactIs_production_min$1.isContextProvider = function(a) {
148
+ return z$2(a) === h$1;
149
149
  };
150
- reactIs_production_min$2.isElement = function(a) {
151
- return "object" === typeof a && null !== a && a.$$typeof === c$2;
150
+ reactIs_production_min$1.isElement = function(a) {
151
+ return "object" === typeof a && null !== a && a.$$typeof === c$1;
152
152
  };
153
- reactIs_production_min$2.isForwardRef = function(a) {
154
- return z$3(a) === n$2;
153
+ reactIs_production_min$1.isForwardRef = function(a) {
154
+ return z$2(a) === n$1;
155
155
  };
156
- reactIs_production_min$2.isFragment = function(a) {
157
- return z$3(a) === e$2;
156
+ reactIs_production_min$1.isFragment = function(a) {
157
+ return z$2(a) === e$1;
158
158
  };
159
- reactIs_production_min$2.isLazy = function(a) {
160
- return z$3(a) === t$1;
159
+ reactIs_production_min$1.isLazy = function(a) {
160
+ return z$2(a) === t;
161
161
  };
162
- reactIs_production_min$2.isMemo = function(a) {
163
- return z$3(a) === r$2;
162
+ reactIs_production_min$1.isMemo = function(a) {
163
+ return z$2(a) === r$1;
164
164
  };
165
- reactIs_production_min$2.isPortal = function(a) {
166
- return z$3(a) === d$2;
165
+ reactIs_production_min$1.isPortal = function(a) {
166
+ return z$2(a) === d$1;
167
167
  };
168
- reactIs_production_min$2.isProfiler = function(a) {
169
- return z$3(a) === g$3;
168
+ reactIs_production_min$1.isProfiler = function(a) {
169
+ return z$2(a) === g$2;
170
170
  };
171
- reactIs_production_min$2.isStrictMode = function(a) {
172
- return z$3(a) === f$3;
171
+ reactIs_production_min$1.isStrictMode = function(a) {
172
+ return z$2(a) === f$2;
173
173
  };
174
- reactIs_production_min$2.isSuspense = function(a) {
175
- return z$3(a) === p$2;
174
+ reactIs_production_min$1.isSuspense = function(a) {
175
+ return z$2(a) === p$1;
176
176
  };
177
- reactIs_production_min$2.isValidElementType = function(a) {
178
- return "string" === typeof a || "function" === typeof a || a === e$2 || a === m$3 || a === g$3 || a === f$3 || a === p$2 || a === q$3 || "object" === typeof a && null !== a && (a.$$typeof === t$1 || a.$$typeof === r$2 || a.$$typeof === h$2 || a.$$typeof === k$3 || a.$$typeof === n$2 || a.$$typeof === w$4 || a.$$typeof === x$3 || a.$$typeof === y$3 || a.$$typeof === v$3);
177
+ reactIs_production_min$1.isValidElementType = function(a) {
178
+ return "string" === typeof a || "function" === typeof a || a === e$1 || a === m$2 || a === g$2 || a === f$2 || a === p$1 || a === q$2 || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r$1 || a.$$typeof === h$1 || a.$$typeof === k$2 || a.$$typeof === n$1 || a.$$typeof === w$3 || a.$$typeof === x$2 || a.$$typeof === y$2 || a.$$typeof === v$2);
179
179
  };
180
- reactIs_production_min$2.typeOf = z$3;
180
+ reactIs_production_min$1.typeOf = z$2;
181
181
 
182
- var reactIs_development$2 = {};
182
+ var reactIs_development$1 = {};
183
183
 
184
184
  /** @license React v16.13.1
185
185
  * react-is.development.js
@@ -309,41 +309,41 @@ if (process.env.NODE_ENV !== "production") {
309
309
  function isSuspense(object) {
310
310
  return typeOf(object) === REACT_SUSPENSE_TYPE;
311
311
  }
312
- reactIs_development$2.AsyncMode = AsyncMode;
313
- reactIs_development$2.ConcurrentMode = ConcurrentMode;
314
- reactIs_development$2.ContextConsumer = ContextConsumer;
315
- reactIs_development$2.ContextProvider = ContextProvider;
316
- reactIs_development$2.Element = Element;
317
- reactIs_development$2.ForwardRef = ForwardRef;
318
- reactIs_development$2.Fragment = Fragment;
319
- reactIs_development$2.Lazy = Lazy;
320
- reactIs_development$2.Memo = Memo;
321
- reactIs_development$2.Portal = Portal;
322
- reactIs_development$2.Profiler = Profiler;
323
- reactIs_development$2.StrictMode = StrictMode;
324
- reactIs_development$2.Suspense = Suspense;
325
- reactIs_development$2.isAsyncMode = isAsyncMode;
326
- reactIs_development$2.isConcurrentMode = isConcurrentMode;
327
- reactIs_development$2.isContextConsumer = isContextConsumer;
328
- reactIs_development$2.isContextProvider = isContextProvider;
329
- reactIs_development$2.isElement = isElement;
330
- reactIs_development$2.isForwardRef = isForwardRef;
331
- reactIs_development$2.isFragment = isFragment;
332
- reactIs_development$2.isLazy = isLazy;
333
- reactIs_development$2.isMemo = isMemo;
334
- reactIs_development$2.isPortal = isPortal;
335
- reactIs_development$2.isProfiler = isProfiler;
336
- reactIs_development$2.isStrictMode = isStrictMode;
337
- reactIs_development$2.isSuspense = isSuspense;
338
- reactIs_development$2.isValidElementType = isValidElementType;
339
- reactIs_development$2.typeOf = typeOf;
312
+ reactIs_development$1.AsyncMode = AsyncMode;
313
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
314
+ reactIs_development$1.ContextConsumer = ContextConsumer;
315
+ reactIs_development$1.ContextProvider = ContextProvider;
316
+ reactIs_development$1.Element = Element;
317
+ reactIs_development$1.ForwardRef = ForwardRef;
318
+ reactIs_development$1.Fragment = Fragment;
319
+ reactIs_development$1.Lazy = Lazy;
320
+ reactIs_development$1.Memo = Memo;
321
+ reactIs_development$1.Portal = Portal;
322
+ reactIs_development$1.Profiler = Profiler;
323
+ reactIs_development$1.StrictMode = StrictMode;
324
+ reactIs_development$1.Suspense = Suspense;
325
+ reactIs_development$1.isAsyncMode = isAsyncMode;
326
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
327
+ reactIs_development$1.isContextConsumer = isContextConsumer;
328
+ reactIs_development$1.isContextProvider = isContextProvider;
329
+ reactIs_development$1.isElement = isElement;
330
+ reactIs_development$1.isForwardRef = isForwardRef;
331
+ reactIs_development$1.isFragment = isFragment;
332
+ reactIs_development$1.isLazy = isLazy;
333
+ reactIs_development$1.isMemo = isMemo;
334
+ reactIs_development$1.isPortal = isPortal;
335
+ reactIs_development$1.isProfiler = isProfiler;
336
+ reactIs_development$1.isStrictMode = isStrictMode;
337
+ reactIs_development$1.isSuspense = isSuspense;
338
+ reactIs_development$1.isValidElementType = isValidElementType;
339
+ reactIs_development$1.typeOf = typeOf;
340
340
  })();
341
341
  }
342
342
 
343
343
  if (process.env.NODE_ENV === "production") {
344
- reactIs$3.exports = reactIs_production_min$2;
344
+ reactIs$2.exports = reactIs_production_min$1;
345
345
  } else {
346
- reactIs$3.exports = reactIs_development$2;
346
+ reactIs$2.exports = reactIs_development$1;
347
347
  }
348
348
 
349
349
  /*
@@ -538,7 +538,7 @@ function _type_of$a(obj) {
538
538
  "@swc/helpers - typeof";
539
539
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
540
540
  }
541
- var ReactIs$1 = reactIs$3.exports;
541
+ var ReactIs$1 = reactIs$2.exports;
542
542
  var assign$2 = objectAssign;
543
543
  var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
544
544
  var has = has$2;
@@ -1118,7 +1118,7 @@ var factoryWithThrowingShims = function() {
1118
1118
  */
1119
1119
 
1120
1120
  if (process.env.NODE_ENV !== "production") {
1121
- var ReactIs = reactIs$3.exports;
1121
+ var ReactIs = reactIs$2.exports;
1122
1122
  // By explicitly using `prop-types` you are opting into new development behavior.
1123
1123
  // http://fb.me/prop-types-in-prod
1124
1124
  var throwOnDirectAccess = true;
@@ -8765,276 +8765,6 @@ function _objectWithoutPropertiesLoose(r, e) {
8765
8765
  return t;
8766
8766
  }
8767
8767
 
8768
- var reactIs$2 = {
8769
- exports: {}
8770
- };
8771
-
8772
- var reactIs_production_min$1 = {};
8773
-
8774
- /** @license React v16.13.1
8775
- * react-is.production.min.js
8776
- *
8777
- * Copyright (c) Facebook, Inc. and its affiliates.
8778
- *
8779
- * This source code is licensed under the MIT license found in the
8780
- * LICENSE file in the root directory of this source tree.
8781
- */
8782
- var b$1 = "function" === typeof Symbol && Symbol.for, c$1 = b$1 ? Symbol.for("react.element") : 60103, d$1 = b$1 ? Symbol.for("react.portal") : 60106, e$1 = b$1 ? Symbol.for("react.fragment") : 60107, f$2 = b$1 ? Symbol.for("react.strict_mode") : 60108, g$2 = b$1 ? Symbol.for("react.profiler") : 60114, h$1 = b$1 ? Symbol.for("react.provider") : 60109, k$2 = b$1 ? Symbol.for("react.context") : 60110, l$1 = b$1 ? Symbol.for("react.async_mode") : 60111, m$2 = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n$1 = b$1 ? Symbol.for("react.forward_ref") : 60112, p$1 = b$1 ? Symbol.for("react.suspense") : 60113, q$2 = b$1 ? Symbol.for("react.suspense_list") : 60120, r$1 = b$1 ? Symbol.for("react.memo") : 60115, t = b$1 ? Symbol.for("react.lazy") : 60116, v$2 = b$1 ? Symbol.for("react.block") : 60121, w$3 = b$1 ? Symbol.for("react.fundamental") : 60117, x$2 = b$1 ? Symbol.for("react.responder") : 60118, y$2 = b$1 ? Symbol.for("react.scope") : 60119;
8783
- function z$2(a) {
8784
- if ("object" === typeof a && null !== a) {
8785
- var u = a.$$typeof;
8786
- switch(u){
8787
- case c$1:
8788
- switch(a = a.type, a){
8789
- case l$1:
8790
- case m$2:
8791
- case e$1:
8792
- case g$2:
8793
- case f$2:
8794
- case p$1:
8795
- return a;
8796
- default:
8797
- switch(a = a && a.$$typeof, a){
8798
- case k$2:
8799
- case n$1:
8800
- case t:
8801
- case r$1:
8802
- case h$1:
8803
- return a;
8804
- default:
8805
- return u;
8806
- }
8807
- }
8808
- case d$1:
8809
- return u;
8810
- }
8811
- }
8812
- }
8813
- function A$2(a) {
8814
- return z$2(a) === m$2;
8815
- }
8816
- reactIs_production_min$1.AsyncMode = l$1;
8817
- reactIs_production_min$1.ConcurrentMode = m$2;
8818
- reactIs_production_min$1.ContextConsumer = k$2;
8819
- reactIs_production_min$1.ContextProvider = h$1;
8820
- reactIs_production_min$1.Element = c$1;
8821
- reactIs_production_min$1.ForwardRef = n$1;
8822
- reactIs_production_min$1.Fragment = e$1;
8823
- reactIs_production_min$1.Lazy = t;
8824
- reactIs_production_min$1.Memo = r$1;
8825
- reactIs_production_min$1.Portal = d$1;
8826
- reactIs_production_min$1.Profiler = g$2;
8827
- reactIs_production_min$1.StrictMode = f$2;
8828
- reactIs_production_min$1.Suspense = p$1;
8829
- reactIs_production_min$1.isAsyncMode = function(a) {
8830
- return A$2(a) || z$2(a) === l$1;
8831
- };
8832
- reactIs_production_min$1.isConcurrentMode = A$2;
8833
- reactIs_production_min$1.isContextConsumer = function(a) {
8834
- return z$2(a) === k$2;
8835
- };
8836
- reactIs_production_min$1.isContextProvider = function(a) {
8837
- return z$2(a) === h$1;
8838
- };
8839
- reactIs_production_min$1.isElement = function(a) {
8840
- return "object" === typeof a && null !== a && a.$$typeof === c$1;
8841
- };
8842
- reactIs_production_min$1.isForwardRef = function(a) {
8843
- return z$2(a) === n$1;
8844
- };
8845
- reactIs_production_min$1.isFragment = function(a) {
8846
- return z$2(a) === e$1;
8847
- };
8848
- reactIs_production_min$1.isLazy = function(a) {
8849
- return z$2(a) === t;
8850
- };
8851
- reactIs_production_min$1.isMemo = function(a) {
8852
- return z$2(a) === r$1;
8853
- };
8854
- reactIs_production_min$1.isPortal = function(a) {
8855
- return z$2(a) === d$1;
8856
- };
8857
- reactIs_production_min$1.isProfiler = function(a) {
8858
- return z$2(a) === g$2;
8859
- };
8860
- reactIs_production_min$1.isStrictMode = function(a) {
8861
- return z$2(a) === f$2;
8862
- };
8863
- reactIs_production_min$1.isSuspense = function(a) {
8864
- return z$2(a) === p$1;
8865
- };
8866
- reactIs_production_min$1.isValidElementType = function(a) {
8867
- return "string" === typeof a || "function" === typeof a || a === e$1 || a === m$2 || a === g$2 || a === f$2 || a === p$1 || a === q$2 || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r$1 || a.$$typeof === h$1 || a.$$typeof === k$2 || a.$$typeof === n$1 || a.$$typeof === w$3 || a.$$typeof === x$2 || a.$$typeof === y$2 || a.$$typeof === v$2);
8868
- };
8869
- reactIs_production_min$1.typeOf = z$2;
8870
-
8871
- var reactIs_development$1 = {};
8872
-
8873
- /** @license React v16.13.1
8874
- * react-is.development.js
8875
- *
8876
- * Copyright (c) Facebook, Inc. and its affiliates.
8877
- *
8878
- * This source code is licensed under the MIT license found in the
8879
- * LICENSE file in the root directory of this source tree.
8880
- */
8881
- if (process.env.NODE_ENV !== "production") {
8882
- (function() {
8883
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
8884
- // nor polyfill, then a plain number is used for performance.
8885
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
8886
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 0xeac7;
8887
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 0xeaca;
8888
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 0xeacb;
8889
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 0xeacc;
8890
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 0xead2;
8891
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 0xeacd;
8892
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
8893
- // (unstable) APIs that have been removed. Can we remove the symbols?
8894
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 0xeacf;
8895
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 0xeacf;
8896
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 0xead0;
8897
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 0xead1;
8898
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 0xead8;
8899
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 0xead3;
8900
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 0xead4;
8901
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 0xead9;
8902
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 0xead5;
8903
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 0xead6;
8904
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 0xead7;
8905
- function isValidElementType(type) {
8906
- return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
8907
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
8908
- }
8909
- function typeOf(object) {
8910
- if (typeof object === "object" && object !== null) {
8911
- var $$typeof = object.$$typeof;
8912
- switch($$typeof){
8913
- case REACT_ELEMENT_TYPE:
8914
- var type = object.type;
8915
- switch(type){
8916
- case REACT_ASYNC_MODE_TYPE:
8917
- case REACT_CONCURRENT_MODE_TYPE:
8918
- case REACT_FRAGMENT_TYPE:
8919
- case REACT_PROFILER_TYPE:
8920
- case REACT_STRICT_MODE_TYPE:
8921
- case REACT_SUSPENSE_TYPE:
8922
- return type;
8923
- default:
8924
- var $$typeofType = type && type.$$typeof;
8925
- switch($$typeofType){
8926
- case REACT_CONTEXT_TYPE:
8927
- case REACT_FORWARD_REF_TYPE:
8928
- case REACT_LAZY_TYPE:
8929
- case REACT_MEMO_TYPE:
8930
- case REACT_PROVIDER_TYPE:
8931
- return $$typeofType;
8932
- default:
8933
- return $$typeof;
8934
- }
8935
- }
8936
- case REACT_PORTAL_TYPE:
8937
- return $$typeof;
8938
- }
8939
- }
8940
- return undefined;
8941
- } // AsyncMode is deprecated along with isAsyncMode
8942
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
8943
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
8944
- var ContextConsumer = REACT_CONTEXT_TYPE;
8945
- var ContextProvider = REACT_PROVIDER_TYPE;
8946
- var Element = REACT_ELEMENT_TYPE;
8947
- var ForwardRef = REACT_FORWARD_REF_TYPE;
8948
- var Fragment = REACT_FRAGMENT_TYPE;
8949
- var Lazy = REACT_LAZY_TYPE;
8950
- var Memo = REACT_MEMO_TYPE;
8951
- var Portal = REACT_PORTAL_TYPE;
8952
- var Profiler = REACT_PROFILER_TYPE;
8953
- var StrictMode = REACT_STRICT_MODE_TYPE;
8954
- var Suspense = REACT_SUSPENSE_TYPE;
8955
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
8956
- function isAsyncMode(object) {
8957
- {
8958
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
8959
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
8960
- console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, " + "and will be removed in React 17+. Update your code to use " + "ReactIs.isConcurrentMode() instead. It has the exact same API.");
8961
- }
8962
- }
8963
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
8964
- }
8965
- function isConcurrentMode(object) {
8966
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
8967
- }
8968
- function isContextConsumer(object) {
8969
- return typeOf(object) === REACT_CONTEXT_TYPE;
8970
- }
8971
- function isContextProvider(object) {
8972
- return typeOf(object) === REACT_PROVIDER_TYPE;
8973
- }
8974
- function isElement(object) {
8975
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
8976
- }
8977
- function isForwardRef(object) {
8978
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
8979
- }
8980
- function isFragment(object) {
8981
- return typeOf(object) === REACT_FRAGMENT_TYPE;
8982
- }
8983
- function isLazy(object) {
8984
- return typeOf(object) === REACT_LAZY_TYPE;
8985
- }
8986
- function isMemo(object) {
8987
- return typeOf(object) === REACT_MEMO_TYPE;
8988
- }
8989
- function isPortal(object) {
8990
- return typeOf(object) === REACT_PORTAL_TYPE;
8991
- }
8992
- function isProfiler(object) {
8993
- return typeOf(object) === REACT_PROFILER_TYPE;
8994
- }
8995
- function isStrictMode(object) {
8996
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
8997
- }
8998
- function isSuspense(object) {
8999
- return typeOf(object) === REACT_SUSPENSE_TYPE;
9000
- }
9001
- reactIs_development$1.AsyncMode = AsyncMode;
9002
- reactIs_development$1.ConcurrentMode = ConcurrentMode;
9003
- reactIs_development$1.ContextConsumer = ContextConsumer;
9004
- reactIs_development$1.ContextProvider = ContextProvider;
9005
- reactIs_development$1.Element = Element;
9006
- reactIs_development$1.ForwardRef = ForwardRef;
9007
- reactIs_development$1.Fragment = Fragment;
9008
- reactIs_development$1.Lazy = Lazy;
9009
- reactIs_development$1.Memo = Memo;
9010
- reactIs_development$1.Portal = Portal;
9011
- reactIs_development$1.Profiler = Profiler;
9012
- reactIs_development$1.StrictMode = StrictMode;
9013
- reactIs_development$1.Suspense = Suspense;
9014
- reactIs_development$1.isAsyncMode = isAsyncMode;
9015
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
9016
- reactIs_development$1.isContextConsumer = isContextConsumer;
9017
- reactIs_development$1.isContextProvider = isContextProvider;
9018
- reactIs_development$1.isElement = isElement;
9019
- reactIs_development$1.isForwardRef = isForwardRef;
9020
- reactIs_development$1.isFragment = isFragment;
9021
- reactIs_development$1.isLazy = isLazy;
9022
- reactIs_development$1.isMemo = isMemo;
9023
- reactIs_development$1.isPortal = isPortal;
9024
- reactIs_development$1.isProfiler = isProfiler;
9025
- reactIs_development$1.isStrictMode = isStrictMode;
9026
- reactIs_development$1.isSuspense = isSuspense;
9027
- reactIs_development$1.isValidElementType = isValidElementType;
9028
- reactIs_development$1.typeOf = typeOf;
9029
- })();
9030
- }
9031
-
9032
- if (process.env.NODE_ENV === "production") {
9033
- reactIs$2.exports = reactIs_production_min$1;
9034
- } else {
9035
- reactIs$2.exports = reactIs_development$1;
9036
- }
9037
-
9038
8768
  var reactIs$1 = reactIs$2.exports;
9039
8769
  /**
9040
8770
  * Copyright 2015, Yahoo! Inc.
@@ -22482,13 +22212,13 @@ function _object_spread_props$9(target, source) {
22482
22212
  return target;
22483
22213
  }
22484
22214
  var FormProvider = function(param) {
22485
- var children = param.children, onSubmit = param.onSubmit, _param_defaultValues = param.defaultValues, defaultValues = _param_defaultValues === void 0 ? {} : _param_defaultValues;
22215
+ var children = param.children, onSubmit = param.onSubmit, onError = param.onError, _param_defaultValues = param.defaultValues, defaultValues = _param_defaultValues === void 0 ? {} : _param_defaultValues;
22486
22216
  var methods = useForm({
22487
22217
  defaultValues: defaultValues
22488
22218
  });
22489
22219
  return /*#__PURE__*/ jsx$1(FormProvider$1, _object_spread_props$9(_object_spread$d({}, methods), {
22490
22220
  children: /*#__PURE__*/ jsx$1("form", {
22491
- onSubmit: methods.handleSubmit(onSubmit),
22221
+ onSubmit: methods.handleSubmit(onSubmit, onError),
22492
22222
  children: children
22493
22223
  })
22494
22224
  }));
@@ -48515,70 +48245,80 @@ var CityDistrict = function(param) {
48515
48245
  /*#__PURE__*/ jsxs("div", {
48516
48246
  className: "flex gap-2",
48517
48247
  children: [
48518
- /*#__PURE__*/ jsx$1("div", {
48519
- className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
48520
- children: /*#__PURE__*/ jsx$1(Icon, {
48521
- className: "h-6 w-6",
48522
- icon: "ri:arrow-down-s-line",
48523
- color: "6f6f6f"
48524
- })
48525
- }),
48526
- /*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
48527
- className: [
48528
- (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
48529
- "customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
48530
- (item === null || item === void 0 ? void 0 : item.icon) ? "pl-14" : "pl-4"
48531
- ].join(" "),
48532
- style: item === null || item === void 0 ? void 0 : item.style
48533
- }, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48534
- onChange: function(e) {
48535
- return handleCity(e, (item === null || item === void 0 ? void 0 : item.cityName) || "");
48536
- },
48248
+ /*#__PURE__*/ jsxs("div", {
48249
+ className: "relative w-full",
48537
48250
  children: [
48538
- /*#__PURE__*/ jsx$1("option", {
48539
- value: "",
48540
- children: "縣市"
48251
+ /*#__PURE__*/ jsx$1("div", {
48252
+ className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
48253
+ children: /*#__PURE__*/ jsx$1(Icon, {
48254
+ className: "h-6 w-6",
48255
+ icon: "ri:arrow-down-s-line",
48256
+ color: "6f6f6f"
48257
+ })
48541
48258
  }),
48542
- city.map(function(v) {
48543
- return /*#__PURE__*/ jsx$1("option", {
48544
- value: v.name,
48545
- children: v.name
48546
- }, v.name);
48547
- })
48259
+ /*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
48260
+ className: [
48261
+ (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
48262
+ "customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
48263
+ (item === null || item === void 0 ? void 0 : item.icon) ? "pl-14" : "pl-4"
48264
+ ].join(" "),
48265
+ style: item === null || item === void 0 ? void 0 : item.style
48266
+ }, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48267
+ onChange: function(e) {
48268
+ return handleCity(e, (item === null || item === void 0 ? void 0 : item.cityName) || "");
48269
+ },
48270
+ children: [
48271
+ /*#__PURE__*/ jsx$1("option", {
48272
+ value: "",
48273
+ children: "縣市"
48274
+ }),
48275
+ city.map(function(v) {
48276
+ return /*#__PURE__*/ jsx$1("option", {
48277
+ value: v.name,
48278
+ children: v.name
48279
+ }, v.name);
48280
+ })
48281
+ ]
48282
+ }))
48548
48283
  ]
48549
- })),
48550
- /*#__PURE__*/ jsx$1("div", {
48551
- className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
48552
- children: /*#__PURE__*/ jsx$1(Icon, {
48553
- className: "h-6 w-6",
48554
- icon: "ri:arrow-down-s-line",
48555
- color: "6f6f6f"
48556
- })
48557
48284
  }),
48558
- /*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
48559
- className: [
48560
- (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
48561
- "customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
48562
- (item === null || item === void 0 ? void 0 : item.subIcon) ? "pl-14" : "pl-4"
48563
- ].join(" "),
48564
- style: item === null || item === void 0 ? void 0 : item.style
48565
- }, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48566
- onChange: function(e) {
48567
- return handleCity(e, (item === null || item === void 0 ? void 0 : item.districtName) || "");
48568
- },
48285
+ /*#__PURE__*/ jsxs("div", {
48286
+ className: "relative w-full",
48569
48287
  children: [
48570
- !currentCity && /*#__PURE__*/ jsx$1("option", {
48571
- value: "",
48572
- children: "地區"
48288
+ /*#__PURE__*/ jsx$1("div", {
48289
+ className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
48290
+ children: /*#__PURE__*/ jsx$1(Icon, {
48291
+ className: "h-6 w-6",
48292
+ icon: "ri:arrow-down-s-line",
48293
+ color: "6f6f6f"
48294
+ })
48573
48295
  }),
48574
- district.map(function(v) {
48575
- return /*#__PURE__*/ jsx$1("option", {
48576
- value: v.name,
48577
- children: v.name
48578
- }, v.name);
48579
- })
48296
+ /*#__PURE__*/ jsxs("select", _object_spread_props$4(_object_spread$7({
48297
+ className: [
48298
+ (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white pointer-events-auto",
48299
+ "customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-lg text-[#6f6f6f] border border-solid border-gray-300",
48300
+ (item === null || item === void 0 ? void 0 : item.subIcon) ? "pl-14" : "pl-4"
48301
+ ].join(" "),
48302
+ style: item === null || item === void 0 ? void 0 : item.style
48303
+ }, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$7({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48304
+ onChange: function(e) {
48305
+ return handleCity(e, (item === null || item === void 0 ? void 0 : item.districtName) || "");
48306
+ },
48307
+ children: [
48308
+ !currentCity && /*#__PURE__*/ jsx$1("option", {
48309
+ value: "",
48310
+ children: "地區"
48311
+ }),
48312
+ district.map(function(v) {
48313
+ return /*#__PURE__*/ jsx$1("option", {
48314
+ value: v.name,
48315
+ children: v.name
48316
+ }, v.name);
48317
+ })
48318
+ ]
48319
+ }))
48580
48320
  ]
48581
- }))
48321
+ })
48582
48322
  ]
48583
48323
  }),
48584
48324
  /*#__PURE__*/ jsx$1("div", {
@@ -48722,7 +48462,7 @@ var TextField = function(param) {
48722
48462
  alt: ""
48723
48463
  })
48724
48464
  }),
48725
- item.type === "input" && !(item === null || item === void 0 ? void 0 : item.isHandle) && /*#__PURE__*/ jsxs(Fragment$1, {
48465
+ item.type === "input" && /*#__PURE__*/ jsxs(Fragment$1, {
48726
48466
  children: [
48727
48467
  /*#__PURE__*/ jsx$1("div", {
48728
48468
  className: [
@@ -48738,7 +48478,7 @@ var TextField = function(param) {
48738
48478
  placeholder: item === null || item === void 0 ? void 0 : item.placeholder
48739
48479
  }, register(item === null || item === void 0 ? void 0 : item.name, _object_spread$6({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48740
48480
  style: item === null || item === void 0 ? void 0 : item.style,
48741
- defaultValue: item === null || item === void 0 ? void 0 : item.defaultValue
48481
+ disabled: item === null || item === void 0 ? void 0 : item.disable
48742
48482
  }))
48743
48483
  }),
48744
48484
  validateMsg(errors, item) && /*#__PURE__*/ jsxs("div", {
@@ -48747,24 +48487,6 @@ var TextField = function(param) {
48747
48487
  "*",
48748
48488
  validateMsg(errors, item)
48749
48489
  ]
48750
- }),
48751
- item.name === "upline_referral_code" && item.underText && /*#__PURE__*/ jsxs("div", {
48752
- className: "flex pt-1 text-xs gap-2",
48753
- children: [
48754
- /*#__PURE__*/ jsx$1("div", {
48755
- className: "bg-[#FFDF8C] p-[2px] ml-4 rounded-[50%]",
48756
- children: /*#__PURE__*/ jsx$1(Icon, {
48757
- icon: "pepicons-pop:exclamation",
48758
- color: "04B1AD",
48759
- width: "12",
48760
- height: "12"
48761
- })
48762
- }),
48763
- /*#__PURE__*/ jsx$1("div", {
48764
- className: "text-white",
48765
- children: item.underText
48766
- })
48767
- ]
48768
48490
  })
48769
48491
  ]
48770
48492
  }),
@@ -48785,7 +48507,7 @@ var TextField = function(param) {
48785
48507
  }, register(item === null || item === void 0 ? void 0 : item.name, _object_spread$6({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48786
48508
  style: item === null || item === void 0 ? void 0 : item.style,
48787
48509
  onChange: handleReplace,
48788
- defaultValue: item === null || item === void 0 ? void 0 : item.defaultValue
48510
+ disabled: item === null || item === void 0 ? void 0 : item.disable
48789
48511
  }))
48790
48512
  }),
48791
48513
  validateMsg(errors, item) && /*#__PURE__*/ jsxs("div", {
@@ -48833,25 +48555,25 @@ var SingleSelect = function(param) {
48833
48555
  (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white text-[#6f6f6f] pointer-events-auto",
48834
48556
  "customSelect w-full h-11 py-2 pr-4 rounded-lg border border-solid border-gray-300 pl-4"
48835
48557
  ].join(" "),
48836
- style: _object_spread$6({}, item.style)
48558
+ style: item.style
48837
48559
  }, register(item.name, _object_spread$6({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48838
48560
  defaultValue: getValues(item.name),
48839
48561
  disabled: item === null || item === void 0 ? void 0 : item.disable,
48840
48562
  id: item === null || item === void 0 ? void 0 : item.id,
48841
- children: (item === null || item === void 0 ? void 0 : (_item_option = item.option) === null || _item_option === void 0 ? void 0 : _item_option.length) && (item === null || item === void 0 ? void 0 : item.option.map(function(group) {
48842
- return (group === null || group === void 0 ? void 0 : group.label) ? /*#__PURE__*/ jsx$1("optgroup", {
48843
- label: group === null || group === void 0 ? void 0 : group.label,
48844
- children: group.options.map(function(v) {
48563
+ children: item === null || item === void 0 ? void 0 : (_item_option = item.option) === null || _item_option === void 0 ? void 0 : _item_option.map(function(group) {
48564
+ return "label" in group ? /*#__PURE__*/ jsx$1("optgroup", {
48565
+ label: group.label,
48566
+ children: group.options.map(function(o) {
48845
48567
  return /*#__PURE__*/ jsx$1("option", {
48846
- value: v.value,
48847
- children: v.name
48848
- }, v.name);
48568
+ value: o.value,
48569
+ children: o.name
48570
+ }, o.value);
48849
48571
  })
48850
- }, group === null || group === void 0 ? void 0 : group.label) : /*#__PURE__*/ jsx$1("option", {
48572
+ }, group.label) : /*#__PURE__*/ jsx$1("option", {
48851
48573
  value: group.value,
48852
48574
  children: group.name
48853
- }, group.name);
48854
- }))
48575
+ }, group.value);
48576
+ })
48855
48577
  })),
48856
48578
  validateMsg(errors, item) && /*#__PURE__*/ jsxs("div", {
48857
48579
  className: "text-left pt-1 text-xs text-[#EF5533]",
@@ -48945,12 +48667,13 @@ var Time = function(param) {
48945
48667
  /*#__PURE__*/ jsx$1("input", _object_spread$6(_object_spread_props$3(_object_spread$6({
48946
48668
  className: [
48947
48669
  (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white text-[#0f172a] pointer-events-auto",
48948
- "customTime border border-solid border-gray-300 px-3 py-[8px] rounded-lg w-full text-[16px]"
48670
+ "customTime border border-solid border-gray-300 px-3 py-2 rounded-lg w-full text-[16px]"
48949
48671
  ].join(" "),
48950
48672
  type: (item === null || item === void 0 ? void 0 : item.type) || "time",
48951
48673
  placeholder: "ex: 16:00"
48952
48674
  }, register(item === null || item === void 0 ? void 0 : item.name, _object_spread$6({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
48953
- defaultValue: item === null || item === void 0 ? void 0 : item.defaultValue,
48675
+ style: item === null || item === void 0 ? void 0 : item.style,
48676
+ disabled: item === null || item === void 0 ? void 0 : item.disable,
48954
48677
  id: item === null || item === void 0 ? void 0 : item.id,
48955
48678
  max: "2037-12-31T23:59"
48956
48679
  }), step, onInput)),
@@ -48996,7 +48719,7 @@ var City = function(param) {
48996
48719
  alt: ""
48997
48720
  })
48998
48721
  }),
48999
- (item === null || item === void 0 ? void 0 : item.rightIcon) || /*#__PURE__*/ jsx$1("div", {
48722
+ /*#__PURE__*/ jsx$1("div", {
49000
48723
  className: "absolute w-12 h-11 top-0 right-0 z-5 flex items-center justify-center rounded-r-lg pointer-events-none",
49001
48724
  children: /*#__PURE__*/ jsx$1(Icon, {
49002
48725
  className: "h-6 w-6",
@@ -49009,9 +48732,8 @@ var City = function(param) {
49009
48732
  (item === null || item === void 0 ? void 0 : item.disable) ? "text-[#B0B0B0] bg-[#E6E6E6] pointer-events-none" : "bg-white text-[#6f6f6f] pointer-events-auto",
49010
48733
  "customSelect w-full h-11 py-2 pr-4 rounded-lg border border-solid border-gray-300 pl-4 mr-6"
49011
48734
  ].join(" "),
49012
- style: _object_spread$6({}, item.style)
48735
+ style: item === null || item === void 0 ? void 0 : item.style
49013
48736
  }, register(item.name, _object_spread$6({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
49014
- defaultValue: item === null || item === void 0 ? void 0 : item.defaultValue,
49015
48737
  children: (CityDataMap === null || CityDataMap === void 0 ? void 0 : CityDataMap.length) && CityDataMap.map(function(v) {
49016
48738
  return /*#__PURE__*/ jsx$1("option", {
49017
48739
  value: v.value,
@@ -49172,7 +48894,7 @@ var Fields = function(param) {
49172
48894
  return /*#__PURE__*/ jsx$1(StyleField, {
49173
48895
  children: /*#__PURE__*/ jsx$1("div", {
49174
48896
  className: [
49175
- "flex gap-2 items-center flex-wrap lg:flex-nowrap",
48897
+ item[0].type === "ckEditor" ? "" : "flex gap-2 items-center flex-wrap lg:flex-nowrap",
49176
48898
  "justify-start"
49177
48899
  ].join(" "),
49178
48900
  children: /*#__PURE__*/ jsx$1(Row, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.2.94",
3
+ "version": "0.2.96",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@material-ui/core": "^4.12.4",
@@ -1,16 +1,4 @@
1
1
  import * as React from 'react';
2
- interface SwitchProps {
3
- item?: {
4
- id?: string | undefined;
5
- label?: string;
6
- name: string;
7
- type?: string;
8
- disable?: boolean;
9
- color?: 'blue' | 'red' | 'green' | 'yellow';
10
- size?: 'small' | 'medium' | 'large';
11
- className?: string;
12
- labelClass?: string;
13
- };
14
- }
15
- export declare const BaseSwitch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
2
+ import { FormType } from '../../lib/Form/types';
3
+ export declare const BaseSwitch: React.ForwardRefExoticComponent<FormType & React.RefAttributes<HTMLButtonElement>>;
16
4
  export default BaseSwitch;
@@ -1,9 +1,7 @@
1
- export declare const City: ({ item }: {
2
- item: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- export declare const Textarea: ({ item }: {
5
- item: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ import { FormType } from './types';
3
+ export declare const City: React.FC<FormType>;
4
+ export declare const Textarea: React.FC<FormType>;
7
5
  export declare const FieldLabel: ({ item }: {
8
6
  item: any;
9
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -20,12 +18,8 @@ export declare const Form: {
20
18
  Row: ({ rowItems }: {
21
19
  rowItems: any;
22
20
  }) => any;
23
- TextField: ({ item }: {
24
- item: any;
25
- }) => import("react/jsx-runtime").JSX.Element;
26
- SingleSelect: ({ item }: {
27
- item: any;
28
- }) => import("react/jsx-runtime").JSX.Element;
21
+ TextField: import("react").FC<FormType>;
22
+ SingleSelect: import("react").FC<FormType>;
29
23
  MultipleSelect: ({ item }: {
30
24
  item: any;
31
25
  }) => import("react/jsx-runtime").JSX.Element;
@@ -36,15 +30,9 @@ export declare const Form: {
36
30
  direction?: string | undefined;
37
31
  item: any;
38
32
  }) => import("react/jsx-runtime").JSX.Element;
39
- Time: ({ item }: {
40
- item: any;
41
- }) => import("react/jsx-runtime").JSX.Element;
42
- Textarea: ({ item }: {
43
- item: any;
44
- }) => import("react/jsx-runtime").JSX.Element;
45
- City: ({ item }: {
46
- item: any;
47
- }) => import("react/jsx-runtime").JSX.Element;
33
+ Time: import("react").FC<FormType>;
34
+ Textarea: import("react").FC<FormType>;
35
+ City: import("react").FC<FormType>;
48
36
  CityDistrict: ({ item }: {
49
37
  item: any;
50
38
  }) => import("react/jsx-runtime").JSX.Element;
@@ -10,6 +10,9 @@ type Options = (Option | OptionGroup)[];
10
10
  export interface FormItem {
11
11
  type: string;
12
12
  name: string;
13
+ disable?: boolean;
14
+ icon?: string;
15
+ style?: any;
13
16
  cityName?: string;
14
17
  districtName?: string;
15
18
  label?: string;
@@ -27,6 +30,8 @@ export interface FormItem {
27
30
  validate?: any;
28
31
  };
29
32
  option?: Options;
33
+ step?: string;
34
+ onlyHour?: boolean;
30
35
  }
31
36
  export interface FormType {
32
37
  item: FormItem;
@@ -3,9 +3,10 @@ import { useForm, useFormContext, Controller } from 'react-hook-form';
3
3
  export type FormProviderProps = {
4
4
  children: React.ReactNode;
5
5
  onSubmit: (data: any) => void;
6
+ onError?: (data: any) => void;
6
7
  defaultValues?: any;
7
8
  useFormContext?: any;
8
9
  };
9
- export declare const FormProvider: ({ children, onSubmit, defaultValues, }: FormProviderProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const FormProvider: ({ children, onSubmit, onError, defaultValues, }: FormProviderProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export { useFormContext, useForm, Controller };
11
12
  export default FormProvider;