@majoo-ui/react 1.52.4 → 1.52.6

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.
@@ -31,6 +31,32 @@ interface EditableTableProps<Data extends object> {
31
31
  * Additional customize one of the rows based on the specified condition
32
32
  */
33
33
  customRows?: (row: Row<object>) => CustomRows[];
34
+ /**
35
+ * Show checkbox table selection.
36
+ */
37
+ showCheckbox?: boolean;
38
+ /**
39
+ * Change event handler table selection.
40
+ */
41
+ onSelectedChange?: (data: any) => void;
42
+ /**
43
+ * Checkbox callback props.
44
+ */
45
+ getCheckboxProps?: (data: any) => void;
46
+ /**
47
+ * Row's unique key (for selectedIds & onSelectedChange purpose).
48
+ */
49
+ keyId?: string;
50
+ /**
51
+ * Selected data id (based on the keyId prop).
52
+ * Example:<br/>
53
+ * {
54
+ * '8192389219289': true,
55
+ * '2130912039281': true,
56
+ * '2130912039382': true
57
+ * }
58
+ */
59
+ selectedIds?: Record<string, boolean>;
34
60
  }
35
61
  interface RemoveProps {
36
62
  position?: 'leftBottom' | 'rightBottom' | 'leftTop' | 'rightTop';
@@ -25,6 +25,14 @@ interface CounterProps {
25
25
  * disabled state of a counter.
26
26
  */
27
27
  disabled?: boolean;
28
+ /**
29
+ * disabled state increment button.
30
+ */
31
+ disabledIncrement?: boolean;
32
+ /**
33
+ * disabled state decrement button.
34
+ */
35
+ disabledDecrement?: boolean;
28
36
  /**
29
37
  * Additional css style.
30
38
  */
@@ -1,2 +1,2 @@
1
1
  import { PixelCrop } from 'react-image-crop';
2
- export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale?: number, rotate?: number): Promise<void>;
2
+ export declare function canvasPreview(image: HTMLImageElement, canvas: HTMLCanvasElement, crop: PixelCrop, scale: number | undefined, rotate: number | undefined, ratio: any): Promise<void>;
package/index.esm.css CHANGED
@@ -248,11 +248,9 @@
248
248
  }
249
249
 
250
250
  .rdw-option-wrapper {
251
- /* border: 1px solid #f1f1f1; */
252
251
  padding: 5px;
253
252
  min-width: 25px;
254
- height: 20px;
255
- border-radius: 2px;
253
+ border-radius: 4px;
256
254
  margin: 0 4px;
257
255
  display: flex;
258
256
  justify-content: center;
@@ -262,13 +260,14 @@
262
260
  text-transform: capitalize;
263
261
  }
264
262
  .rdw-option-wrapper:hover {
265
- box-shadow: 1px 1px 0px #bfbdbd;
263
+ background-color: #f4f5f5;
266
264
  }
267
265
  .rdw-option-wrapper:active {
268
266
  box-shadow: 1px 1px 0px #bfbdbd inset;
269
267
  }
270
268
  .rdw-option-active {
271
269
  box-shadow: 1px 1px 0px #bfbdbd inset;
270
+ background-color: #f4f5f5;
272
271
  }
273
272
  .rdw-option-disabled {
274
273
  opacity: 0.3;
@@ -279,7 +278,6 @@
279
278
  height: 30px;
280
279
  background: white;
281
280
  cursor: pointer;
282
- border: 1px solid #f1f1f1;
283
281
  border-radius: 2px;
284
282
  margin: 0 3px;
285
283
  text-transform: capitalize;
@@ -289,11 +287,11 @@
289
287
  outline: none;
290
288
  }
291
289
  .rdw-dropdown-wrapper:hover {
292
- box-shadow: 1px 1px 0px #bfbdbd;
293
- background-color: #ffffff;
290
+ background-color: #f4f5f5;
294
291
  }
295
292
  .rdw-dropdown-wrapper:active {
296
293
  box-shadow: 1px 1px 0px #bfbdbd inset;
294
+ background-color: #f4f5f5;
297
295
  }
298
296
  .rdw-dropdown-carettoopen {
299
297
  height: 0px;
@@ -1202,7 +1200,6 @@
1202
1200
  }
1203
1201
  .public-DraftStyleDefault-ltr {
1204
1202
  direction: ltr;
1205
- /* text-align: left; */
1206
1203
  }
1207
1204
  .public-DraftStyleDefault-rtl {
1208
1205
  direction: rtl;