diginet-core-ui 1.3.55 → 1.3.56
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.
- package/components/button/icon.js +21 -21
- package/components/form-control/dropdown/index.js +313 -340
- package/components/form-control/number-input/index2.js +3 -1
- package/components/index.js +1 -1
- package/components/modal/body.js +58 -48
- package/components/modal/footer.js +43 -41
- package/components/modal/header.js +22 -18
- package/components/modal/modal.js +70 -48
- package/components/paging/page-selector2.js +373 -0
- package/package.json +1 -1
- package/readme.md +7 -0
- package/utils/useElementSize.js +48 -0
- package/utils/useEventListener.js +45 -0
- package/utils/useInput.js +1 -1
|
@@ -370,14 +370,14 @@ ButtonIcon.propTypes = {
|
|
|
370
370
|
/** Name of [icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic). */
|
|
371
371
|
name: PropTypes.string,
|
|
372
372
|
|
|
373
|
-
/**
|
|
374
|
-
* The size of the component.
|
|
375
|
-
*
|
|
376
|
-
* * tiny (button 24px, icon 16px)
|
|
377
|
-
* * small (button 32px, icon 20px)
|
|
378
|
-
* * medium (button 40px, icon 24px)
|
|
379
|
-
* * large (button 48px, icon 32px)
|
|
380
|
-
* * giant (button 56px, icon 40px)
|
|
373
|
+
/**
|
|
374
|
+
* The size of the component.
|
|
375
|
+
*
|
|
376
|
+
* * tiny (button 24px, icon 16px)
|
|
377
|
+
* * small (button 32px, icon 20px)
|
|
378
|
+
* * medium (button 40px, icon 24px)
|
|
379
|
+
* * large (button 48px, icon 32px)
|
|
380
|
+
* * giant (button 56px, icon 40px)
|
|
381
381
|
* */
|
|
382
382
|
size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'giant']),
|
|
383
383
|
|
|
@@ -393,19 +393,19 @@ ButtonIcon.propTypes = {
|
|
|
393
393
|
/** Width of the component. */
|
|
394
394
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
395
395
|
|
|
396
|
-
/**
|
|
397
|
-
* ref methods (ref.current.instance.*method*)
|
|
398
|
-
*
|
|
399
|
-
* * option(): Gets all UI component properties
|
|
400
|
-
* * Returns value - object
|
|
401
|
-
* * option(optionName): Gets the value of a single property
|
|
402
|
-
* * @param {optionName} - string
|
|
403
|
-
* * Returns value - any
|
|
404
|
-
* * option(optionName, optionValue): Updates the value of a single property
|
|
405
|
-
* * @param {optionName} - string
|
|
406
|
-
* * @param {optionValue} - any
|
|
407
|
-
* * option(options): Updates the values of several properties
|
|
408
|
-
* * @param {options} - object
|
|
396
|
+
/**
|
|
397
|
+
* ref methods (ref.current.instance.*method*)
|
|
398
|
+
*
|
|
399
|
+
* * option(): Gets all UI component properties
|
|
400
|
+
* * Returns value - object
|
|
401
|
+
* * option(optionName): Gets the value of a single property
|
|
402
|
+
* * @param {optionName} - string
|
|
403
|
+
* * Returns value - any
|
|
404
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
405
|
+
* * @param {optionName} - string
|
|
406
|
+
* * @param {optionValue} - any
|
|
407
|
+
* * option(options): Updates the values of several properties
|
|
408
|
+
* * @param {options} - object
|
|
409
409
|
*/
|
|
410
410
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
411
411
|
current: PropTypes.instanceOf(Element)
|