@trilogy-ds/styles 0.0.9-beta-v4 → 0.0.11-esm-cjs

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.
Files changed (97) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +0 -21
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +5 -0
  9. package/framework/src/base/_helpers.scss +21 -6
  10. package/framework/src/base/_loading.scss +2 -2
  11. package/framework/src/base/_reset.scss +6 -1
  12. package/framework/src/components/_accordion.scss +4 -3
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +119 -125
  15. package/framework/src/{elements → components}/_box.scss +9 -11
  16. package/framework/src/components/_breadcrumb.scss +17 -31
  17. package/framework/src/{elements → components}/_button.scss +12 -4
  18. package/framework/src/components/_card.scss +26 -9
  19. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  20. package/framework/src/components/_countdown.scss +1 -1
  21. package/framework/src/components/_divider.scss +16 -0
  22. package/framework/src/components/_flex-box.scss +240 -0
  23. package/framework/src/{elements/_all.scss → components/_index.scss} +27 -12
  24. package/framework/src/{elements → components}/_link.scss +9 -3
  25. package/framework/src/components/_list.scss +66 -0
  26. package/framework/src/components/_modal.scss +32 -11
  27. package/framework/src/components/_otp.scss +2 -2
  28. package/framework/src/components/_pagination.scss +4 -0
  29. package/framework/src/components/_price.scss +28 -2
  30. package/framework/src/{elements → components}/_radio.scss +2 -2
  31. package/framework/src/components/_segmented-control.scss +9 -5
  32. package/framework/src/{elements → components}/_select.scss +47 -21
  33. package/framework/src/components/_stepper.scss +1 -1
  34. package/framework/src/{elements → components}/_sticker.scss +13 -1
  35. package/framework/src/{elements → components}/_switch.scss +7 -7
  36. package/framework/src/{elements → components}/_table.scss +9 -10
  37. package/framework/src/components/_tabs.scss +66 -28
  38. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  39. package/framework/src/components/_textarea.scss +46 -0
  40. package/framework/src/components/_timeline.scss +1 -1
  41. package/framework/src/{elements → components}/_title.scss +10 -0
  42. package/framework/src/components/alert/_index.scss +2 -0
  43. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  44. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  45. package/framework/src/{elements → components/input}/_form.scss +10 -11
  46. package/framework/src/components/input/_index.scss +4 -0
  47. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  48. package/framework/src/components/progress/_index.scss +2 -0
  49. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  50. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  51. package/framework/src/elements/_index.scss +5 -0
  52. package/framework/src/elements/_other.scss +0 -4
  53. package/framework/src/grid/_columns.scss +5 -9
  54. package/framework/src/layout/_hero.scss +4 -0
  55. package/framework/src/layout/_section.scss +5 -0
  56. package/framework/src/theming/common_partials.scss +1 -1
  57. package/framework/src/trilogy-mangled.scss +3 -3
  58. package/framework/src/trilogy.scss +2 -2
  59. package/framework/src/utilities/_background.scss +3 -1
  60. package/framework/src/utilities/_derived-variables.scss +0 -92
  61. package/framework/src/utilities/_initial-variables.scss +3 -111
  62. package/framework/src/utilities/_pre.scss +3 -1
  63. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  64. package/framework/src/utilities/mixins/_delete.scss +86 -0
  65. package/framework/src/utilities/mixins/_index.scss +11 -0
  66. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  67. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  68. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  69. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  70. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  71. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  72. package/framework/src/utilities/mixins/_state.scss +25 -0
  73. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  74. package/framework/src/utilities/mixins/_utils.scss +24 -0
  75. package/framework/src/utilities/variables/_animation.scss +2 -0
  76. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +43 -0
  77. package/framework/src/utilities/variables/_font.scss +97 -0
  78. package/framework/src/utilities/variables/_index.scss +6 -0
  79. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  80. package/framework/src/utilities/variables/_shadow.scss +3 -0
  81. package/framework/src/utilities/variables/_zindex.scss +14 -0
  82. package/package.json +1 -1
  83. package/framework/src/components/_all.scss +0 -24
  84. package/framework/src/elements/_autocomplete.scss +0 -32
  85. package/framework/src/elements/_list.scss +0 -62
  86. package/framework/src/elements/_textarea.scss +0 -133
  87. package/framework/src/utilities/_mixins.scss +0 -641
  88. /package/framework/src/{elements → components}/_badge.scss +0 -0
  89. /package/framework/src/{elements → components}/_chips.scss +0 -0
  90. /package/framework/src/{elements → components}/_container.scss +0 -0
  91. /package/framework/src/{elements → components}/_icon.scss +0 -0
  92. /package/framework/src/{elements → components}/_image.scss +0 -0
  93. /package/framework/src/{elements → components}/_loader.scss +0 -0
  94. /package/framework/src/{elements → components}/_tag.scss +0 -0
  95. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  96. /package/framework/src/{elements → components/input}/_input-gauge.scss +0 -0
  97. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  @import "utilities/all";
4
4
  @import "base/all";
5
- @import "elements/all";
6
- @import "components/all";
5
+ @import "elements";
6
+ @import "components";
7
7
  @import "grid/all";
8
8
  @import "layout/all";
@@ -1,7 +1,7 @@
1
1
  @charset "utf-8";
2
2
 
3
- @import "reset";
4
3
  @import "color";
4
+ @import "reset";
5
5
  @import "generic";
6
6
  @import "fonts";
7
7
  @import "helpers";
@@ -1,28 +1,7 @@
1
1
  @use "sass:map";
2
2
 
3
- @function getColor( $name ) {
4
- @return var(--color-#{nth(map-get($colors,$name),2)});
5
- }
6
-
7
- @function getColorValue( $name ) {
8
- @return #{nth(map-get($colors,$name),1)}
9
- }
10
-
11
- @function getColorBrandName( $name ) {
12
- @return #{nth(map-get($colors,$name),2)}
13
- }
14
-
15
3
  :root {
16
4
  @each $name, $color in $colors {
17
5
  --color-#{nth($color,2)}: #{nth($color,1)};
18
6
  }
19
7
  }
20
-
21
- @function invertColor ($colorName) {
22
- @return var(--color-#{nth(map-get($colors,$colorName),3)})
23
- }
24
-
25
- @function fadeColor ($colorName) {
26
- $name: map-get($fade-colors,$colorName);
27
- @return getColor($name);
28
- }
@@ -6,7 +6,7 @@ body {
6
6
  @extend .main-wrap;
7
7
  @extend .body-wrap;
8
8
  @extend .reset-wrap;
9
- font-family: $family-sans-serif;
9
+ font-family: $family-primary;
10
10
  }
11
11
 
12
12
  header {
@@ -69,3 +69,8 @@ $body-line-height: 1.5 !default;
69
69
  .header {
70
70
  z-index: zindex('large');
71
71
  }
72
+
73
+ *::before,
74
+ *::after {
75
+ box-sizing: inherit;
76
+ }
@@ -12,7 +12,11 @@
12
12
 
13
13
  // Float
14
14
  .is-clearfix {
15
- @include clearfix;
15
+ &::after {
16
+ clear: both;
17
+ content: ' ';
18
+ display: table;
19
+ }
16
20
  }
17
21
 
18
22
  .is-pulled-left {
@@ -43,6 +47,7 @@ $alignments: (
43
47
  'justified': 'justify',
44
48
  'left': 'left',
45
49
  'right': 'right',
50
+ 'stretch': 'stretch'
46
51
  );
47
52
 
48
53
  @each $alignment, $text-align in $alignments {
@@ -613,15 +618,25 @@ $radius-list: ['radius-large', 'radius-medium', 'radius-small', 'radius'];
613
618
  }
614
619
  }
615
620
 
616
- $positions: (
621
+ $justify-values: (
617
622
  'center': 'center',
618
- 'start': 'flex-start',
619
623
  'end': 'flex-end',
624
+ 'space-between': 'space-between',
625
+ 'space-around': 'space-around',
626
+ 'space-evenly': 'space-evenly',
627
+ 'start': 'flex-start'
628
+ );
629
+
630
+ $align-values: (
631
+ 'center': 'center',
632
+ 'end': 'flex-end',
633
+ 'start': 'flex-start',
634
+ 'stretch': 'stretch'
620
635
  );
621
636
 
622
- @each $justification, $justify-content in $positions {
637
+ @each $justification, $justify-content in $justify-values {
623
638
 
624
- .is-justified-self {
639
+ .is-justified-self-#{$justification} {
625
640
  justify-self: #{$justify-content} !important;
626
641
  }
627
642
 
@@ -770,7 +785,7 @@ $positions: (
770
785
  }
771
786
  }
772
787
 
773
- @each $alignment, $align-items in $positions {
788
+ @each $alignment, $align-items in $align-values {
774
789
  .is-aligned-#{$alignment} {
775
790
  align-items: #{$align-items} !important;
776
791
  }
@@ -36,7 +36,7 @@ p.is-loading,
36
36
  visibility: hidden;
37
37
  }
38
38
  &::after {
39
- @include spinner;
39
+ @include spinner();
40
40
  @include center(1em);
41
41
  position: absolute !important;
42
42
  }
@@ -81,7 +81,7 @@ p.is-loading,
81
81
 
82
82
  // we need the headings to have margins AND be inline
83
83
  @include heading-tags {
84
- display: table; // FIXME: well... `@include clearfix;` didn't do the trick
84
+ display: table;
85
85
  }
86
86
 
87
87
  & & {
@@ -41,7 +41,12 @@
41
41
  margin-bottom: 10px;
42
42
  }
43
43
 
44
- a {
44
+ a {
45
+ color: unset;
46
+ text-decoration: none;
47
+ }
48
+
49
+ a.link {
45
50
  color: getColor('font');
46
51
  cursor: pointer;
47
52
  text-decoration: none;
@@ -32,6 +32,7 @@
32
32
  .accordion-body {
33
33
  padding: $spacing-4;
34
34
  padding-top: 0 !important;
35
+ box-sizing: border-box;
35
36
  }
36
37
 
37
38
  &:has(summary:hover):not(.is-disabled) {
@@ -44,8 +45,8 @@
44
45
  }
45
46
 
46
47
  .accordion-header:after {
47
- max-width: 15px;
48
- max-height: 15px;
48
+ max-width: $arrow-size;
49
+ max-height: $arrow-size;
49
50
  position: absolute;
50
51
  margin-top: 0;
51
52
  right: 20px;
@@ -92,7 +93,7 @@
92
93
  position: relative;
93
94
  height: auto;
94
95
  cursor: pointer;
95
- padding: $spacing-4;
96
+ padding: $spacing-4 calc($spacing-4 * 2 + $arrow-size) $spacing-4 $spacing-4;
96
97
 
97
98
  &.is-grouped {
98
99
  > *:first-child {
@@ -0,0 +1,38 @@
1
+ @import "../utilities/spacing";
2
+
3
+ .is-autocomplete-container {
4
+ position: relative;
5
+
6
+ .is-autocomplete {
7
+ .autocomplete-menu {
8
+ display: none;
9
+ }
10
+
11
+ &.is-active {
12
+ .autocomplete-menu {
13
+ display: block;
14
+ border: var(--border);
15
+ padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
16
+ border-radius: 4px;
17
+ max-height: 220px;
18
+ overflow-y: auto;
19
+ background-color: getColor('background');
20
+ z-index: 10000;
21
+ }
22
+
23
+ .autocomplete-item {
24
+ cursor: pointer;
25
+ padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
26
+
27
+ &.is-active, &[data-autocomplete-item-hover] {
28
+ @include hoverRules();
29
+ margin-left: calc(2px - $spacing-3);
30
+ margin-right: calc(2px - $spacing-3);
31
+ border-top: 1px solid getColor('neutral-fade');
32
+ border-bottom: 1px solid getColor('neutral-fade');
33
+ padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }