@loja-integrada/admin-components 0.9.6 → 0.9.7

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.
@@ -573,7 +573,8 @@ var listOfStylesHover = {
573
573
  info: "hover:bg-secondary-bold",
574
574
  warning: "hover:bg-warning-dark",
575
575
  danger: "hover:bg-danger-dark",
576
- outline: "hover:bg-primary-light"
576
+ outline: "hover:bg-primary-light",
577
+ onlyText: "hover:bg-base-2"
577
578
  };
578
579
  var listOfStylesActive = {
579
580
  primary: "active:bg-primary-bold",
@@ -581,13 +582,15 @@ var listOfStylesActive = {
581
582
  tertiary: "active:bg-tertiary-bold",
582
583
  warning: "active:bg-warning-bold",
583
584
  danger: "hover:bg-danger-bold",
584
- outline: "active:shadow-inner active:bg-base-1"
585
+ outline: "active:shadow-inner active:bg-base-1",
586
+ onlyText: "active:bg-base-1"
585
587
  };
586
588
  var listOfStylesFocus = {
587
589
  primary: "focus:ring-1 focus:ring-primary-dark focus:ring-opacity-50",
588
590
  secondary: "focus:ring focus:ring-focus",
589
591
  danger: "focus:ring-1 focus:ring-danger-dark",
590
- outline: "focus:ring-2 focus:ring-focus focus:ring-offset-1"
592
+ outline: "focus:ring-2 focus:ring-focus focus:ring-offset-1",
593
+ onlyText: "focus:bg-base-1"
591
594
  };
592
595
  var listOfStyles = {
593
596
  primary: "bg-primary text-base-1 " + listOfStylesHover['primary'] + " " + listOfStylesActive['primary'] + " " + listOfStylesFocus['primary'],
@@ -596,7 +599,8 @@ var listOfStyles = {
596
599
  info: "bg-secondary-dark text-base-1 " + listOfStylesHover['info'],
597
600
  warning: "bg-warning text-on-base " + listOfStylesHover['warning'] + " " + listOfStylesActive['warning'],
598
601
  danger: "bg-danger text-base-1 " + listOfStylesHover['danger'] + " " + listOfStylesActive['danger'] + " " + listOfStylesFocus['danger'],
599
- outline: "bg-transparent text-inverted-2 border border-inverted-2 " + listOfStylesHover['outline'] + " " + listOfStylesActive['outline'] + " " + listOfStylesFocus['outline']
602
+ outline: "bg-transparent text-inverted-2 border border-inverted-2 " + listOfStylesHover['outline'] + " " + listOfStylesActive['outline'] + " " + listOfStylesFocus['outline'],
603
+ onlyText: "bg-transparent border-transparent text-inverted-2 px-0 " + listOfStylesHover['onlyText'] + " " + listOfStylesActive['onlyText'] + " " + listOfStylesFocus['onlyText']
600
604
  };
601
605
  var defaultDisabledStyle = "bg-base-3 cursor-default text-on-base-2 shadow-none ring-0 border-0 hover:bg-base-3 hover:text-on-base-2 ";
602
606
  var listOfStylesDisabled = {
@@ -606,7 +610,8 @@ var listOfStylesDisabled = {
606
610
  info: defaultDisabledStyle,
607
611
  warning: defaultDisabledStyle,
608
612
  danger: defaultDisabledStyle,
609
- outline: defaultDisabledStyle
613
+ outline: defaultDisabledStyle,
614
+ onlyText: "bg-transparent text-on-base-3 shadow-none ring-0 border-0"
610
615
  };
611
616
  var listOfSizes = {
612
617
  small: "text-f7 h-8",
@@ -1624,9 +1629,16 @@ var CheckboxComponent = function CheckboxComponent(_ref, ref) {
1624
1629
  var checkboxIconClasses = "transition duration-200 ease-in-out " + (isChecked || isIndeterminate ? 'scale-100' : 'scale-0');
1625
1630
  var checkboxIconContainerClasses = "border border-card-stroke transition duration-200 ease-in-out\n " + (disabled ? 'bg-base-4' : isChecked || isIndeterminate ? 'bg-primary border-primary' : 'bg-base-1') + "\n " + (isCenterBoxAlign ? 'items-center' : '') + "\n rounded w-4 h-4 flex justify-center m-px\n ";
1626
1631
  var checkboxLabelClasses = "ml-1 input-label text-f6 tracking-4 leading-6 " + (disabled ? 'text-inverted-2' : '');
1632
+ var alignOptions = {
1633
+ start: 'items-start',
1634
+ end: 'items-end',
1635
+ center: 'items-center',
1636
+ baseline: 'items-baseline',
1637
+ stretch: 'items-stretch'
1638
+ };
1627
1639
  return React.createElement("label", {
1628
1640
  htmlFor: inputId,
1629
- className: "inline-flex items-" + boxAlign + " cursor-pointer"
1641
+ className: "inline-flex " + alignOptions[boxAlign] + " cursor-pointer"
1630
1642
  }, React.createElement("span", {
1631
1643
  className: "rounded z-50 flex items-center justify-center focus-within:ring-2 ring-focus"
1632
1644
  }, React.createElement("input", Object.assign({