analytica-frontend-lib 1.0.5 → 1.0.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.
package/dist/index.css CHANGED
@@ -61,6 +61,7 @@
61
61
  --color-text-950: #171717;
62
62
  --color-background: #ffffff;
63
63
  --color-background-50: #f6f6f6;
64
+ --color-background-200: #dcdbdb;
64
65
  --color-success-300: #66b584;
65
66
  --color-success-400: #489766;
66
67
  --color-success-500: #348352;
@@ -279,6 +280,9 @@
279
280
  }
280
281
  }
281
282
  @layer utilities {
283
+ .mx-2 {
284
+ margin-inline: calc(var(--spacing) * 2);
285
+ }
282
286
  .my-4 {
283
287
  margin-block: calc(var(--spacing) * 4);
284
288
  }
@@ -300,6 +304,18 @@
300
304
  .table {
301
305
  display: table;
302
306
  }
307
+ .h-5 {
308
+ height: calc(var(--spacing) * 5);
309
+ }
310
+ .h-8 {
311
+ height: calc(var(--spacing) * 8);
312
+ }
313
+ .w-5 {
314
+ width: calc(var(--spacing) * 5);
315
+ }
316
+ .w-8 {
317
+ width: calc(var(--spacing) * 8);
318
+ }
303
319
  .transform {
304
320
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
305
321
  }
@@ -341,6 +357,9 @@
341
357
  border-style: var(--tw-border-style);
342
358
  border-width: 2px;
343
359
  }
360
+ .border-background-200 {
361
+ border-color: var(--color-background-200);
362
+ }
344
363
  .border-error-300 {
345
364
  border-color: var(--color-error-300);
346
365
  }
@@ -596,47 +615,71 @@
596
615
  }
597
616
  }
598
617
  }
599
- .focus\:border-2 {
600
- &:focus {
618
+ .hover\:shadow-hard-shadow-1 {
619
+ &:hover {
620
+ @media (hover: hover) {
621
+ --tw-shadow: -2px 2px 8px var(--tw-shadow-color, rgba(38, 38, 38, 0.2));
622
+ box-shadow:
623
+ var(--tw-inset-shadow),
624
+ var(--tw-inset-ring-shadow),
625
+ var(--tw-ring-offset-shadow),
626
+ var(--tw-ring-shadow),
627
+ var(--tw-shadow);
628
+ }
629
+ }
630
+ }
631
+ .focus-visible\:border-2 {
632
+ &:focus-visible {
601
633
  border-style: var(--tw-border-style);
602
634
  border-width: 2px;
603
635
  }
604
636
  }
605
- .focus\:border-indicator-info {
606
- &:focus {
637
+ .focus-visible\:border-indicator-info {
638
+ &:focus-visible {
607
639
  border-color: var(--color-indicator-info);
608
640
  }
609
641
  }
610
- .focus\:bg-error-500 {
611
- &:focus {
642
+ .focus-visible\:bg-error-500 {
643
+ &:focus-visible {
612
644
  background-color: var(--color-error-500);
613
645
  }
614
646
  }
615
- .focus\:bg-primary-950 {
616
- &:focus {
647
+ .focus-visible\:bg-primary-950 {
648
+ &:focus-visible {
617
649
  background-color: var(--color-primary-950);
618
650
  }
619
651
  }
620
- .focus\:bg-success-500 {
621
- &:focus {
652
+ .focus-visible\:bg-success-500 {
653
+ &:focus-visible {
622
654
  background-color: var(--color-success-500);
623
655
  }
624
656
  }
625
- .focus\:text-error-600 {
626
- &:focus {
657
+ .focus-visible\:text-error-600 {
658
+ &:focus-visible {
627
659
  color: var(--color-error-600);
628
660
  }
629
661
  }
630
- .focus\:text-primary-600 {
631
- &:focus {
662
+ .focus-visible\:text-primary-600 {
663
+ &:focus-visible {
632
664
  color: var(--color-primary-600);
633
665
  }
634
666
  }
635
- .focus\:text-success-600 {
636
- &:focus {
667
+ .focus-visible\:text-success-600 {
668
+ &:focus-visible {
637
669
  color: var(--color-success-600);
638
670
  }
639
671
  }
672
+ .focus-visible\:shadow-hard-shadow-1 {
673
+ &:focus-visible {
674
+ --tw-shadow: -2px 2px 8px var(--tw-shadow-color, rgba(38, 38, 38, 0.2));
675
+ box-shadow:
676
+ var(--tw-inset-shadow),
677
+ var(--tw-inset-ring-shadow),
678
+ var(--tw-ring-offset-shadow),
679
+ var(--tw-ring-shadow),
680
+ var(--tw-shadow);
681
+ }
682
+ }
640
683
  .active\:border-error-700 {
641
684
  &:active {
642
685
  border-color: var(--color-error-700);
@@ -722,6 +765,11 @@
722
765
  opacity: 40%;
723
766
  }
724
767
  }
768
+ .disabled\:opacity-50 {
769
+ &:disabled {
770
+ opacity: 50%;
771
+ }
772
+ }
725
773
  }
726
774
  @layer base {
727
775
  [data-theme=dark] {
@@ -1051,6 +1099,20 @@
1051
1099
  @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
1052
1100
  @property --tw-font-weight { syntax: "*"; inherits: false; }
1053
1101
  @property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
1102
+ @property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
1103
+ @property --tw-shadow-color { syntax: "*"; inherits: false; }
1104
+ @property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
1105
+ @property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
1106
+ @property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
1107
+ @property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
1108
+ @property --tw-ring-color { syntax: "*"; inherits: false; }
1109
+ @property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
1110
+ @property --tw-inset-ring-color { syntax: "*"; inherits: false; }
1111
+ @property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
1112
+ @property --tw-ring-inset { syntax: "*"; inherits: false; }
1113
+ @property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
1114
+ @property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
1115
+ @property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
1054
1116
  @layer properties {
1055
1117
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
1056
1118
  *,
@@ -1065,6 +1127,20 @@
1065
1127
  --tw-border-style: solid;
1066
1128
  --tw-font-weight: initial;
1067
1129
  --tw-outline-style: solid;
1130
+ --tw-shadow: 0 0 #0000;
1131
+ --tw-shadow-color: initial;
1132
+ --tw-shadow-alpha: 100%;
1133
+ --tw-inset-shadow: 0 0 #0000;
1134
+ --tw-inset-shadow-color: initial;
1135
+ --tw-inset-shadow-alpha: 100%;
1136
+ --tw-ring-color: initial;
1137
+ --tw-ring-shadow: 0 0 #0000;
1138
+ --tw-inset-ring-color: initial;
1139
+ --tw-inset-ring-shadow: 0 0 #0000;
1140
+ --tw-ring-inset: initial;
1141
+ --tw-ring-offset-width: 0px;
1142
+ --tw-ring-offset-color: #fff;
1143
+ --tw-ring-offset-shadow: 0 0 #0000;
1068
1144
  }
1069
1145
  }
1070
1146
  }
package/dist/index.js CHANGED
@@ -29,19 +29,19 @@ module.exports = __toCommonJS(index_exports);
29
29
  var import_jsx_runtime = require("react/jsx-runtime");
30
30
  var VARIANT_ACTION_CLASSES = {
31
31
  solid: {
32
- primary: "bg-primary-950 text-text border-2 border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus:bg-primary-950 focus:border-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
33
- positive: "bg-success-500 text-text border-2 border-success-500 hover:bg-success-600 hover:border-success-600 focus:bg-success-500 focus:border-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed",
34
- negative: "bg-error-500 text-text border-2 border-error-500 hover:bg-error-600 hover:border-error-600 focus:bg-error-500 focus:border-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed"
32
+ primary: "bg-primary-950 text-text border-2 border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus-visible:bg-primary-950 focus-visible:border-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
33
+ positive: "bg-success-500 text-text border-2 border-success-500 hover:bg-success-600 hover:border-success-600 focus-visible:bg-success-500 focus-visible:border-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed",
34
+ negative: "bg-error-500 text-text border-2 border-error-500 hover:bg-error-600 hover:border-error-600 focus-visible:bg-error-500 focus-visible:border-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed"
35
35
  },
36
36
  outline: {
37
- primary: "bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus:text-primary-600 focus:border-2 focus:border-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
38
- positive: "bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus:text-success-600 focus:border-2 focus:border-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
39
- negative: "bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus:text-error-600 focus:border-2 focus:border-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
37
+ primary: "bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus-visible:text-primary-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
38
+ positive: "bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus-visible:text-success-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
39
+ negative: "bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus-visible:text-error-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
40
40
  },
41
41
  link: {
42
- primary: "bg-transparent text-primary-950 hover:text-primary-400 focus:text-primary-600 focus:border-2 focus:border-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
43
- positive: "bg-transparent text-success-500 hover:text-success-400 focus:text-success-600 focus:border-2 focus:border-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
44
- negative: "bg-transparent text-error-500 hover:text-error-400 focus:text-error-600 focus:border-2 focus:border-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
42
+ primary: "bg-transparent text-primary-950 hover:text-primary-400 focus-visible:text-primary-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
43
+ positive: "bg-transparent text-success-500 hover:text-success-400 focus-visible:text-success-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
44
+ negative: "bg-transparent text-error-500 hover:text-error-400 focus-visible:text-error-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
45
45
  }
46
46
  };
47
47
  var SIZE_CLASSES = {
package/dist/index.mjs CHANGED
@@ -2,19 +2,19 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  var VARIANT_ACTION_CLASSES = {
4
4
  solid: {
5
- primary: "bg-primary-950 text-text border-2 border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus:bg-primary-950 focus:border-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
6
- positive: "bg-success-500 text-text border-2 border-success-500 hover:bg-success-600 hover:border-success-600 focus:bg-success-500 focus:border-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed",
7
- negative: "bg-error-500 text-text border-2 border-error-500 hover:bg-error-600 hover:border-error-600 focus:bg-error-500 focus:border-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed"
5
+ primary: "bg-primary-950 text-text border-2 border-primary-950 hover:bg-primary-800 hover:border-primary-800 focus-visible:bg-primary-950 focus-visible:border-indicator-info active:bg-primary-700 active:border-primary-700 disabled:bg-primary-500 disabled:border-primary-500 disabled:opacity-40 disabled:cursor-not-allowed",
6
+ positive: "bg-success-500 text-text border-2 border-success-500 hover:bg-success-600 hover:border-success-600 focus-visible:bg-success-500 focus-visible:border-indicator-info active:bg-success-700 active:border-success-700 disabled:bg-success-500 disabled:border-success-500 disabled:opacity-40 disabled:cursor-not-allowed",
7
+ negative: "bg-error-500 text-text border-2 border-error-500 hover:bg-error-600 hover:border-error-600 focus-visible:bg-error-500 focus-visible:border-indicator-info active:bg-error-700 active:border-error-700 disabled:bg-error-500 disabled:border-error-500 disabled:opacity-40 disabled:cursor-not-allowed"
8
8
  },
9
9
  outline: {
10
- primary: "bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus:text-primary-600 focus:border-2 focus:border-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
11
- positive: "bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus:text-success-600 focus:border-2 focus:border-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
12
- negative: "bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus:text-error-600 focus:border-2 focus:border-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
10
+ primary: "bg-transparent text-primary-950 border border-primary-950 hover:bg-background-50 hover:text-primary-400 hover:border-primary-400 focus-visible:text-primary-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-primary-700 active:border-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
11
+ positive: "bg-transparent text-success-500 border border-success-300 hover:bg-background-50 hover:text-success-400 hover:border-success-400 focus-visible:text-success-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-success-700 active:border-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
12
+ negative: "bg-transparent text-error-500 border border-error-300 hover:bg-background-50 hover:text-error-400 hover:border-error-400 focus-visible:text-error-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-error-700 active:border-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
13
13
  },
14
14
  link: {
15
- primary: "bg-transparent text-primary-950 hover:text-primary-400 focus:text-primary-600 focus:border-2 focus:border-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
16
- positive: "bg-transparent text-success-500 hover:text-success-400 focus:text-success-600 focus:border-2 focus:border-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
17
- negative: "bg-transparent text-error-500 hover:text-error-400 focus:text-error-600 focus:border-2 focus:border-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
15
+ primary: "bg-transparent text-primary-950 hover:text-primary-400 focus-visible:text-primary-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-primary-700 disabled:opacity-40 disabled:cursor-not-allowed",
16
+ positive: "bg-transparent text-success-500 hover:text-success-400 focus-visible:text-success-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-success-700 disabled:opacity-40 disabled:cursor-not-allowed",
17
+ negative: "bg-transparent text-error-500 hover:text-error-400 focus-visible:text-error-600 focus-visible:border-2 focus-visible:border-indicator-info active:text-error-700 disabled:opacity-40 disabled:cursor-not-allowed"
18
18
  }
19
19
  };
20
20
  var SIZE_CLASSES = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica-frontend-lib",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Repositório público dos componentes utilizados nas plataformas da Analytica Ensino",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "./dist/index.js",