diginet-core-ui 1.3.70-beta.1 → 1.3.70-beta.3

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.
@@ -324,10 +324,10 @@ Checkbox.propTypes = {
324
324
  /** The name of the Checkbox corresponds to the label displayed on the interface. */
325
325
  name: PropTypes.string,
326
326
 
327
- /**
328
- * Callback fired when the state is changed.
329
- *
330
- * You can pull out the new checked state by accessing `event.value` or `event.target.checked` (boolean).
327
+ /**
328
+ * Callback fired when the state is changed.
329
+ *
330
+ * You can pull out the new checked state by accessing `event.value` or `event.target.checked` (boolean).
331
331
  */
332
332
  onChange: PropTypes.func,
333
333
 
@@ -62,7 +62,7 @@ const Label = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
62
62
  type: type,
63
63
  className: classNames('DGN-UI-Label', className, readOnly && 'read-only', disabled && 'disabled'),
64
64
  ...props
65
- }, children), !required && jsx(Typography, {
65
+ }, children), required && jsx(Typography, {
66
66
  type: type,
67
67
  color: 'danger'
68
68
  }, "*")), [children, className, color, disabled, hoverTooltip, id, lineClamp, readOnly, required, type, props]);
@@ -207,11 +207,11 @@ Radio.propTypes = {
207
207
  /** Props for input. */
208
208
  inputProps: PropTypes.object,
209
209
 
210
- /** Callback fired when the state is changed.
211
- *
212
- * @param {object} event The event source of the callback.
213
- * You can pull out the new value by accessing `event.target.value` (string).
214
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
210
+ /** Callback fired when the state is changed.
211
+ *
212
+ * @param {object} event The event source of the callback.
213
+ * You can pull out the new value by accessing `event.target.value` (string).
214
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
215
215
  * */
216
216
  onChange: PropTypes.func,
217
217
 
@@ -239,10 +239,10 @@ Toggle.propTypes = {
239
239
  /** Shows tooltip containing Label on hover */
240
240
  hoverTooltip: PropTypes.bool,
241
241
 
242
- /** * Callback fired when the state is changed.
243
- *
244
- * @param {object} event The event source of the callback.
245
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
242
+ /** * Callback fired when the state is changed.
243
+ *
244
+ * @param {object} event The event source of the callback.
245
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
246
246
  */
247
247
  onChange: PropTypes.func,
248
248
 
@@ -581,9 +581,9 @@ Popover.propTypes = {
581
581
  /** An HTML element, or a function that returns one. It's used to set the position of the popover. */
582
582
  anchor: PropTypes.oneOfType([PropTypes.instanceOf(Element), PropTypes.func, PropTypes.object, PropTypes.node, ref]),
583
583
 
584
- /**
585
- * This is the point on the anchor where the popover's anchor will attach to.
586
- * Options: vertical: [top, center, bottom]; horizontal: [left, center, right].
584
+ /**
585
+ * This is the point on the anchor where the popover's anchor will attach to.
586
+ * Options: vertical: [top, center, bottom]; horizontal: [left, center, right].
587
587
  */
588
588
  anchorOrigin: PropTypes.shape({
589
589
  horizontal: PropTypes.oneOf(['center', 'left', 'right']),
@@ -594,7 +594,7 @@ Popover.propTypes = {
594
594
  arrow: PropTypes.bool,
595
595
 
596
596
  /** Background color of the component. */
597
- bgColor: PropTypes.oneOfType(PropTypes.oneOf(['light', 'dark']), PropTypes.string),
597
+ bgColor: PropTypes.oneOfType([PropTypes.oneOf(['light', 'dark']), PropTypes.string]),
598
598
 
599
599
  /** The content of the component. */
600
600
  children: PropTypes.node,
@@ -605,14 +605,14 @@ Popover.propTypes = {
605
605
  /** If `true`, click outside will close component. */
606
606
  clickOutsideToClose: PropTypes.bool,
607
607
 
608
- /**
609
- * Direction when Popover shown.
610
- * Note: This prop will overwrite anchorOrigin & transformOrigin.
611
- *
612
- * * top: anchorOrigin: { vertical: 'top', horizontal: 'center' }, transformOrigin: { vertical: 'bottom', horizontal: 'center' }
613
- * * left: anchorOrigin: { vertical: 'center', horizontal: 'left' }, transformOrigin: { vertical: 'center', horizontal: 'right' }
614
- * * right: anchorOrigin: { vertical: 'center', horizontal: 'right' }, transformOrigin: { vertical: 'center', horizontal: 'left' }
615
- * * bottom: anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }
608
+ /**
609
+ * Direction when Popover shown.
610
+ * Note: This prop will overwrite anchorOrigin & transformOrigin.
611
+ *
612
+ * * top: anchorOrigin: { vertical: 'top', horizontal: 'center' }, transformOrigin: { vertical: 'bottom', horizontal: 'center' }
613
+ * * left: anchorOrigin: { vertical: 'center', horizontal: 'left' }, transformOrigin: { vertical: 'center', horizontal: 'right' }
614
+ * * right: anchorOrigin: { vertical: 'center', horizontal: 'right' }, transformOrigin: { vertical: 'center', horizontal: 'left' }
615
+ * * bottom: anchorOrigin: { vertical: 'bottom', horizontal: 'center' }, transformOrigin: { vertical: 'top', horizontal: 'center' }
616
616
  */
617
617
  direction: PropTypes.oneOf(['top', 'left', 'right', 'bottom']),
618
618
 
@@ -631,9 +631,9 @@ Popover.propTypes = {
631
631
  /** Style inline of component. */
632
632
  style: PropTypes.object,
633
633
 
634
- /**
635
- * This is the point on the popover which will attach to the anchor's origin.
636
- * Options: vertical: [top, center, bottom]; horizontal: [left, center, right].
634
+ /**
635
+ * This is the point on the popover which will attach to the anchor's origin.
636
+ * Options: vertical: [top, center, bottom]; horizontal: [left, center, right].
637
637
  */
638
638
  transformOrigin: PropTypes.shape({
639
639
  horizontal: PropTypes.oneOf(['center', 'left', 'right']),
@@ -646,13 +646,13 @@ Popover.propTypes = {
646
646
  /** Config z-index of the component. */
647
647
  zIndex: PropTypes.number,
648
648
 
649
- /**
650
- * ref methods (ref.current.instance.*method*)
651
- *
652
- * * show: Show popover
653
- * * close: Close popover
654
- * * setPosition(element): Set position of popover
655
- * * @param {element} - element
649
+ /**
650
+ * ref methods (ref.current.instance.*method*)
651
+ *
652
+ * * show: Show popover
653
+ * * close: Close popover
654
+ * * setPosition(element): Set position of popover
655
+ * * @param {element} - element
656
656
  */
657
657
  reference: ref
658
658
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.70-beta.1",
3
+ "version": "1.3.70-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",