@sunggang/ui-lib 0.3.11 → 0.3.12

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/index.esm2.js +9 -16
  2. package/package.json +1 -1
package/index.esm2.js CHANGED
@@ -46277,7 +46277,7 @@ var BasePagination = function(param) {
46277
46277
  "筆資料"
46278
46278
  ]
46279
46279
  }),
46280
- /*#__PURE__*/ jsxs("div", {
46280
+ !total ? null : /*#__PURE__*/ jsxs("div", {
46281
46281
  className: "flex gap-8 justify-end",
46282
46282
  children: [
46283
46283
  /*#__PURE__*/ jsxs("div", {
@@ -46437,7 +46437,7 @@ var BaseTable = function(param) {
46437
46437
  className: "w-full",
46438
46438
  children: [
46439
46439
  /*#__PURE__*/ jsxs("div", {
46440
- className: "flex items-center py-4 gap-2 flex-wrap",
46440
+ className: "flex items-center pb-4 gap-2 flex-wrap",
46441
46441
  children: [
46442
46442
  (searchData === null || searchData === void 0 ? void 0 : searchData.length) ? searchData.map(function(item) {
46443
46443
  var _table_getColumn;
@@ -77181,8 +77181,7 @@ var TextField = function(param) {
77181
77181
  var isDisabled = (item === null || item === void 0 ? void 0 : item.disable) || (item === null || item === void 0 ? void 0 : item.disabled);
77182
77182
  return /*#__PURE__*/ jsx("div", {
77183
77183
  className: [
77184
- "w-full h-24",
77185
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77184
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77186
77185
  ].join(" "),
77187
77186
  children: /*#__PURE__*/ jsxs(StyleText, {
77188
77187
  children: [
@@ -77269,8 +77268,7 @@ var SingleSelect = function(param) {
77269
77268
  var _useFormContext = useFormContext(), register = _useFormContext.register, getValues = _useFormContext.getValues, errors = _useFormContext.formState.errors;
77270
77269
  return /*#__PURE__*/ jsx("div", {
77271
77270
  className: [
77272
- "w-full h-24",
77273
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77271
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77274
77272
  ].join(" "),
77275
77273
  children: /*#__PURE__*/ jsxs(StyleField, {
77276
77274
  children: [
@@ -77420,8 +77418,7 @@ var Time = function(param) {
77420
77418
  } : {};
77421
77419
  return /*#__PURE__*/ jsxs("div", {
77422
77420
  className: [
77423
- "w-full h-24",
77424
- (item === null || item === void 0 ? void 0 : item.className) || "w-full"
77421
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77425
77422
  ].join(" "),
77426
77423
  children: [
77427
77424
  /*#__PURE__*/ jsx(FieldLabel, {
@@ -77466,8 +77463,7 @@ var City = function(param) {
77466
77463
  var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
77467
77464
  return /*#__PURE__*/ jsx("div", {
77468
77465
  className: [
77469
- "w-full h-24",
77470
- item === null || item === void 0 ? void 0 : item.className
77466
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24"
77471
77467
  ].join(" "),
77472
77468
  children: /*#__PURE__*/ jsxs(StyleField, {
77473
77469
  children: [
@@ -77527,8 +77523,7 @@ var CheckboxField = function(param) {
77527
77523
  var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
77528
77524
  return /*#__PURE__*/ jsxs("div", {
77529
77525
  className: [
77530
- "w-full min-h-[6rem] h-fit",
77531
- item === null || item === void 0 ? void 0 : item.className
77526
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
77532
77527
  ].join(" "),
77533
77528
  children: [
77534
77529
  /*#__PURE__*/ jsx(FieldLabel, {
@@ -77618,8 +77613,7 @@ var RadioField = function(param) {
77618
77613
  var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
77619
77614
  return /*#__PURE__*/ jsxs("div", {
77620
77615
  className: [
77621
- "w-full min-h-[6rem] h-fit",
77622
- item === null || item === void 0 ? void 0 : item.className
77616
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full min-h-[6rem] h-fit"
77623
77617
  ].join(" "),
77624
77618
  children: [
77625
77619
  (item === null || item === void 0 ? void 0 : item.label) && /*#__PURE__*/ jsx(FieldLabel, {
@@ -77664,8 +77658,7 @@ var Textarea = function(param) {
77664
77658
  var _useFormContext = useFormContext(), register = _useFormContext.register, errors = _useFormContext.formState.errors;
77665
77659
  return /*#__PURE__*/ jsxs("div", {
77666
77660
  className: [
77667
- "w-full h-24",
77668
- item === null || item === void 0 ? void 0 : item.className,
77661
+ (item === null || item === void 0 ? void 0 : item.className) || "w-full h-24",
77669
77662
  "table text-base"
77670
77663
  ].join(" "),
77671
77664
  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.12",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",