@canlooks/can-ui 0.0.152 → 0.0.153

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.
@@ -36,5 +36,5 @@ exports.SortableItem = (({ component: Component = 'div', id, disabled, sortableA
36
36
  transform: utilities_1.CSS.Transform.toString(transform),
37
37
  transition,
38
38
  ...props.style
39
- }, onTouchStart: disabled ? void 0 : onTouchStart, "data-dragging": isDragging, "data-disabled": disabled }), isDragging && (0, jsx_runtime_1.jsx)(react_2.Global, { styles: sortableItem_style_1.globalGrabbingStyle })] }));
39
+ }, onTouchStart: disabled ? void 0 : onTouchStart, "data-dragging": isDragging, "data-draggable": !disabled }), isDragging && (0, jsx_runtime_1.jsx)(react_2.Global, { styles: sortableItem_style_1.globalGrabbingStyle })] }));
40
40
  });
@@ -5,7 +5,7 @@ const react_1 = require("@emotion/react");
5
5
  const utils_1 = require("../../utils");
6
6
  exports.classes = (0, utils_1.defineInnerClasses)('sortable-item');
7
7
  exports.style = (0, react_1.css) `
8
- &:not([data-dsabled=true]) {
8
+ &[data-draggable=true] {
9
9
  cursor: grab;
10
10
 
11
11
  &:active {
@@ -1,2 +1 @@
1
1
  export * from './touchRipple';
2
- export * from './touchRipple';
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./touchRipple"), exports);
5
- tslib_1.__exportStar(require("./touchRipple"), exports);
@@ -33,5 +33,5 @@ export const SortableItem = (({ component: Component = 'div', id, disabled, sort
33
33
  transform: CSS.Transform.toString(transform),
34
34
  transition,
35
35
  ...props.style
36
- }, onTouchStart: disabled ? void 0 : onTouchStart, "data-dragging": isDragging, "data-disabled": disabled }), isDragging && _jsx(Global, { styles: globalGrabbingStyle })] }));
36
+ }, onTouchStart: disabled ? void 0 : onTouchStart, "data-dragging": isDragging, "data-draggable": !disabled }), isDragging && _jsx(Global, { styles: globalGrabbingStyle })] }));
37
37
  });
@@ -2,7 +2,7 @@ import { css } from '@emotion/react';
2
2
  import { defineInnerClasses } from '../../utils';
3
3
  export const classes = defineInnerClasses('sortable-item');
4
4
  export const style = css `
5
- &:not([data-dsabled=true]) {
5
+ &[data-draggable=true] {
6
6
  cursor: grab;
7
7
 
8
8
  &:active {
@@ -1,2 +1 @@
1
1
  export * from './touchRipple';
2
- export * from './touchRipple';
@@ -1,2 +1 @@
1
1
  export * from './touchRipple';
2
- export * from './touchRipple';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canlooks/can-ui",
3
- "version": "0.0.152",
3
+ "version": "0.0.153",
4
4
  "author": "C.CanLiang <canlooks@gmail.com>",
5
5
  "description": "My ui framework",
6
6
  "license": "MIT",