@sunggang/ui-lib 0.3.11 → 0.3.13

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.esm2.js CHANGED
@@ -23196,11 +23196,10 @@ var BaseSwitch = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
23196
23196
  };
23197
23197
  return /*#__PURE__*/ jsxs("div", {
23198
23198
  className: [
23199
- "h-24 w-full",
23200
- item === null || item === void 0 ? void 0 : item.className
23199
+ (item === null || item === void 0 ? void 0 : item.className) || "h-24 w-full"
23201
23200
  ].join(" "),
23202
23201
  children: [
23203
- /*#__PURE__*/ jsx(FieldLabel, {
23202
+ (item === null || item === void 0 ? void 0 : item.closeLabel) ? null : /*#__PURE__*/ jsx(FieldLabel, {
23204
23203
  item: item
23205
23204
  }),
23206
23205
  /*#__PURE__*/ jsx(Controller$2, {
@@ -46277,7 +46276,7 @@ var BasePagination = function(param) {
46277
46276
  "筆資料"
46278
46277
  ]
46279
46278
  }),
46280
- /*#__PURE__*/ jsxs("div", {
46279
+ !total ? null : /*#__PURE__*/ jsxs("div", {
46281
46280
  className: "flex gap-8 justify-end",
46282
46281
  children: [
46283
46282
  /*#__PURE__*/ jsxs("div", {
@@ -46437,7 +46436,7 @@ var BaseTable = function(param) {
46437
46436
  className: "w-full",
46438
46437
  children: [
46439
46438
  /*#__PURE__*/ jsxs("div", {
46440
- className: "flex items-center py-4 gap-2 flex-wrap",
46439
+ className: "flex items-center pb-4 gap-2 flex-wrap",
46441
46440
  children: [
46442
46441
  (searchData === null || searchData === void 0 ? void 0 : searchData.length) ? searchData.map(function(item) {
46443
46442
  var _table_getColumn;
@@ -77181,8 +77180,7 @@ var TextField = function(param) {
77181
77180
  var isDisabled = (item === null || item === void 0 ? void 0 : item.disable) || (item === null || item === void 0 ? void 0 : item.disabled);
77182
77181
  return /*#__PURE__*/ jsx("div", {
77183
77182
  className: [
77184
- "w-full h-24",
77185
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77183
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77186
77184
  ].join(" "),
77187
77185
  children: /*#__PURE__*/ jsxs(StyleText, {
77188
77186
  children: [
@@ -77269,8 +77267,7 @@ var SingleSelect = function(param) {
77269
77267
  var _useFormContext = useFormContext(), register = _useFormContext.register, getValues = _useFormContext.getValues, errors = _useFormContext.formState.errors;
77270
77268
  return /*#__PURE__*/ jsx("div", {
77271
77269
  className: [
77272
- "w-full h-24",
77273
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77270
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77274
77271
  ].join(" "),
77275
77272
  children: /*#__PURE__*/ jsxs(StyleField, {
77276
77273
  children: [
@@ -77420,8 +77417,7 @@ var Time = function(param) {
77420
77417
  } : {};
77421
77418
  return /*#__PURE__*/ jsxs("div", {
77422
77419
  className: [
77423
- "w-full h-24",
77424
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77420
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77425
77421
  ].join(" "),
77426
77422
  children: [
77427
77423
  /*#__PURE__*/ jsx(FieldLabel, {
@@ -77466,8 +77462,7 @@ var City = function(param) {
77466
77462
  var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
77467
77463
  return /*#__PURE__*/ jsx("div", {
77468
77464
  className: [
77469
- "w-full h-24",
77470
- item === null || item === void 0 ? void 0 : item.className
77465
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77471
77466
  ].join(" "),
77472
77467
  children: /*#__PURE__*/ jsxs(StyleField, {
77473
77468
  children: [
@@ -77527,8 +77522,7 @@ var CheckboxField = function(param) {
77527
77522
  var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
77528
77523
  return /*#__PURE__*/ jsxs("div", {
77529
77524
  className: [
77530
- "w-full min-h-[6rem] h-fit",
77531
- item === null || item === void 0 ? void 0 : item.className
77525
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
77532
77526
  ].join(" "),
77533
77527
  children: [
77534
77528
  /*#__PURE__*/ jsx(FieldLabel, {
@@ -77618,8 +77612,7 @@ var RadioField = function(param) {
77618
77612
  var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
77619
77613
  return /*#__PURE__*/ jsxs("div", {
77620
77614
  className: [
77621
- "w-full min-h-[6rem] h-fit",
77622
- item === null || item === void 0 ? void 0 : item.className
77615
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
77623
77616
  ].join(" "),
77624
77617
  children: [
77625
77618
  (item === null || item === void 0 ? void 0 : item.label) && /*#__PURE__*/ jsx(FieldLabel, {
@@ -77664,8 +77657,7 @@ var Textarea = function(param) {
77664
77657
  var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
77665
77658
  return /*#__PURE__*/ jsxs("div", {
77666
77659
  className: [
77667
- "w-full h-24",
77668
- item === null || item === void 0 ? void 0 : item.className,
77660
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24",
77669
77661
  "table text-base"
77670
77662
  ].join(" "),
77671
77663
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -34,6 +34,7 @@ export interface FormItem {
34
34
  disable?: boolean;
35
35
  style?: any;
36
36
  label?: string;
37
+ closeLabel?: boolean;
37
38
  id?: string;
38
39
  placeholder?: string;
39
40
  className?: string;