@canlooks/can-ui 0.0.185 → 0.0.186

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.
@@ -272,10 +272,12 @@ function Popper({ ref, popperRef, anchorElement, container, effectContainer, con
272
272
  // pB === undefined
273
273
  if (pA === 'top' || pA === 'bottom') {
274
274
  left = leftEdge + (anchorRect.width - popperWidth) / 2;
275
+ right = void 0;
275
276
  originX = '50%';
276
277
  }
277
278
  else {
278
279
  top = topEdge + (anchorRect.height - popperHeight) / 2;
280
+ bottom = void 0;
279
281
  originY = '50%';
280
282
  }
281
283
  }
@@ -104,26 +104,26 @@ const popperArrowStyle = (colorValue, arrowSize = 10) => (0, react_1.css) `
104
104
  }
105
105
  }
106
106
 
107
- &[data-place-b=Left] {
107
+ &[data-place-b=left] {
108
108
  [data-show-arrow=true]::before {
109
109
  left: 9px;
110
110
  }
111
111
  }
112
112
 
113
- &[data-place-b=Right] {
113
+ &[data-place-b=right] {
114
114
  [data-show-arrow=true]::before {
115
115
  left: auto;
116
116
  right: 9px;
117
117
  }
118
118
  }
119
119
 
120
- &[data-place-b=Top] {
120
+ &[data-place-b=top] {
121
121
  [data-show-arrow=true]::before {
122
122
  top: 9px;
123
123
  }
124
124
  }
125
125
 
126
- &[data-place-b=Bottom] {
126
+ &[data-place-b=bottom] {
127
127
  [data-show-arrow=true]::before {
128
128
  top: auto;
129
129
  bottom: 9px;
@@ -269,10 +269,12 @@ export function Popper({ ref, popperRef, anchorElement, container, effectContain
269
269
  // pB === undefined
270
270
  if (pA === 'top' || pA === 'bottom') {
271
271
  left = leftEdge + (anchorRect.width - popperWidth) / 2;
272
+ right = void 0;
272
273
  originX = '50%';
273
274
  }
274
275
  else {
275
276
  top = topEdge + (anchorRect.height - popperHeight) / 2;
277
+ bottom = void 0;
276
278
  originY = '50%';
277
279
  }
278
280
  }
@@ -101,26 +101,26 @@ export const popperArrowStyle = (colorValue, arrowSize = 10) => css `
101
101
  }
102
102
  }
103
103
 
104
- &[data-place-b=Left] {
104
+ &[data-place-b=left] {
105
105
  [data-show-arrow=true]::before {
106
106
  left: 9px;
107
107
  }
108
108
  }
109
109
 
110
- &[data-place-b=Right] {
110
+ &[data-place-b=right] {
111
111
  [data-show-arrow=true]::before {
112
112
  left: auto;
113
113
  right: 9px;
114
114
  }
115
115
  }
116
116
 
117
- &[data-place-b=Top] {
117
+ &[data-place-b=top] {
118
118
  [data-show-arrow=true]::before {
119
119
  top: 9px;
120
120
  }
121
121
  }
122
122
 
123
- &[data-place-b=Bottom] {
123
+ &[data-place-b=bottom] {
124
124
  [data-show-arrow=true]::before {
125
125
  top: auto;
126
126
  bottom: 9px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canlooks/can-ui",
3
- "version": "0.0.185",
3
+ "version": "0.0.186",
4
4
  "author": "C.CanLiang <canlooks@gmail.com>",
5
5
  "description": "My ui framework",
6
6
  "license": "MIT",