@sheinx/base 3.7.7-beta.1 → 3.7.7-beta.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.
@@ -1 +1 @@
1
- {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8GxC,QAAA,MAAM,IAAI,UAAW,SAAS,4CAuF7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8GxC,QAAA,MAAM,IAAI,UAAW,SAAS,4CA2F7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -151,6 +151,7 @@ var Time = function Time(props) {
151
151
  })]
152
152
  });
153
153
  };
154
+ var shouldRenderTimes = times && times.length > 0;
154
155
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
155
156
  onMouseEnter: props.onMouseEnter,
156
157
  onMouseLeave: props.onMouseLeave,
@@ -159,7 +160,7 @@ var Time = function Time(props) {
159
160
  children: [props.showTitle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_pickerTitle.default, {
160
161
  position: props.position,
161
162
  jssStyle: props.jssStyle
162
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
163
+ }), shouldRenderTimes && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
163
164
  className: styles === null || styles === void 0 ? void 0 : styles.pickerBody,
164
165
  children: times.map(function (item) {
165
166
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(TimeScroll, {
@@ -1 +1 @@
1
- {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8GxC,QAAA,MAAM,IAAI,UAAW,SAAS,4CAuF7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA8GxC,QAAA,MAAM,IAAI,UAAW,SAAS,4CA2F7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -142,6 +142,7 @@ var Time = function Time(props) {
142
142
  })]
143
143
  });
144
144
  };
145
+ var shouldRenderTimes = times && times.length > 0;
145
146
  return /*#__PURE__*/_jsxs("div", {
146
147
  onMouseEnter: props.onMouseEnter,
147
148
  onMouseLeave: props.onMouseLeave,
@@ -150,7 +151,7 @@ var Time = function Time(props) {
150
151
  children: [props.showTitle && /*#__PURE__*/_jsx(PickerTitle, {
151
152
  position: props.position,
152
153
  jssStyle: props.jssStyle
153
- }), /*#__PURE__*/_jsx("div", {
154
+ }), shouldRenderTimes && /*#__PURE__*/_jsx("div", {
154
155
  className: styles === null || styles === void 0 ? void 0 : styles.pickerBody,
155
156
  children: times.map(function (item) {
156
157
  return /*#__PURE__*/_jsx(TimeScroll, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.7.7-beta.1",
3
+ "version": "3.7.7-beta.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.7.7-beta.1",
13
+ "@sheinx/hooks": "3.7.7-beta.2",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"