@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-fix-timepicker

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 (113) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +0 -21
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +5 -0
  15. package/framework/src/base/_helpers.scss +21 -6
  16. package/framework/src/base/_loading.scss +2 -2
  17. package/framework/src/base/_reset.scss +6 -1
  18. package/framework/src/components/_accordion.scss +5 -12
  19. package/framework/src/components/_autocomplete.scss +43 -0
  20. package/framework/src/components/_autolayout.scss +145 -109
  21. package/framework/src/{elements → components}/_badge.scss +1 -1
  22. package/framework/src/{elements → components}/_box.scss +10 -12
  23. package/framework/src/components/_breadcrumb.scss +17 -31
  24. package/framework/src/{elements → components}/_button.scss +23 -3
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +26 -9
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/{elements → components}/_container.scss +0 -7
  29. package/framework/src/components/_countdown.scss +1 -1
  30. package/framework/src/components/_date-picker.scss +58 -0
  31. package/framework/src/components/_divider.scss +44 -4
  32. package/framework/src/components/_dropdown.scss +195 -0
  33. package/framework/src/components/_flex-box.scss +1005 -0
  34. package/framework/src/{elements → components}/_icon.scss +9 -8
  35. package/framework/src/components/_index.scss +53 -0
  36. package/framework/src/{elements → components}/_link.scss +13 -3
  37. package/framework/src/components/_list.scss +66 -0
  38. package/framework/src/components/_modal.scss +32 -11
  39. package/framework/src/components/_otp.scss +2 -2
  40. package/framework/src/components/_pagination.scss +5 -2
  41. package/framework/src/components/_price.scss +28 -2
  42. package/framework/src/components/_prompt.scss +156 -0
  43. package/framework/src/{elements → components}/_radio.scss +12 -8
  44. package/framework/src/components/_segmented-control.scss +9 -5
  45. package/framework/src/components/_select.scss +131 -0
  46. package/framework/src/components/_stepper.scss +47 -10
  47. package/framework/src/{elements → components}/_sticker.scss +24 -4
  48. package/framework/src/{elements → components}/_switch.scss +13 -8
  49. package/framework/src/{elements → components}/_table.scss +9 -10
  50. package/framework/src/components/_tabs.scss +79 -28
  51. package/framework/src/{elements → components}/_tag.scss +1 -17
  52. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  53. package/framework/src/components/_textarea.scss +46 -0
  54. package/framework/src/components/_timeline.scss +1 -1
  55. package/framework/src/components/_timepicker-circular.scss +88 -0
  56. package/framework/src/components/_timepicker.scss +79 -0
  57. package/framework/src/{elements → components}/_title.scss +10 -0
  58. package/framework/src/{elements → components/alert}/_alert.scss +2 -2
  59. package/framework/src/components/alert/_index.scss +2 -0
  60. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  61. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  62. package/framework/src/{elements → components/input}/_form.scss +18 -12
  63. package/framework/src/components/input/_index.scss +4 -0
  64. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  65. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  66. package/framework/src/components/progress/_index.scss +2 -0
  67. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  68. package/framework/src/{elements → components/progress}/_progress.scss +2 -4
  69. package/framework/src/elements/_index.scss +5 -0
  70. package/framework/src/elements/_other.scss +0 -4
  71. package/framework/src/grid/_columns.scss +33 -11
  72. package/framework/src/layout/_hero.scss +4 -0
  73. package/framework/src/layout/_section.scss +5 -0
  74. package/framework/src/theming/buttons_partial.scss +2 -2
  75. package/framework/src/theming/common_partials.scss +1 -1
  76. package/framework/src/trilogy-mangled.scss +3 -3
  77. package/framework/src/trilogy.scss +3 -2
  78. package/framework/src/utilities/_background.scss +3 -1
  79. package/framework/src/utilities/_derived-variables.scss +0 -92
  80. package/framework/src/utilities/_initial-variables.scss +3 -111
  81. package/framework/src/utilities/_pre.scss +3 -1
  82. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  83. package/framework/src/utilities/mixins/_delete.scss +86 -0
  84. package/framework/src/utilities/mixins/_index.scss +11 -0
  85. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  86. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  87. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  88. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  89. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  90. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  91. package/framework/src/utilities/mixins/_state.scss +25 -0
  92. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  93. package/framework/src/utilities/mixins/_utils.scss +24 -0
  94. package/framework/src/utilities/variables/_animation.scss +2 -0
  95. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +46 -0
  96. package/framework/src/utilities/variables/_font.scss +97 -0
  97. package/framework/src/utilities/variables/_index.scss +6 -0
  98. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  99. package/framework/src/utilities/variables/_shadow.scss +3 -0
  100. package/framework/src/utilities/variables/_zindex.scss +14 -0
  101. package/package.json +6 -1
  102. package/framework/src/components/_all.scss +0 -24
  103. package/framework/src/elements/_all.scss +0 -32
  104. package/framework/src/elements/_autocomplete.scss +0 -32
  105. package/framework/src/elements/_checkbox.scss +0 -42
  106. package/framework/src/elements/_list.scss +0 -62
  107. package/framework/src/elements/_select.scss +0 -96
  108. package/framework/src/elements/_textarea.scss +0 -133
  109. package/framework/src/utilities/_mixins.scss +0 -635
  110. /package/framework/src/{elements → components}/_chips.scss +0 -0
  111. /package/framework/src/{elements → components}/_image.scss +0 -0
  112. /package/framework/src/{elements → components}/_loader.scss +0 -0
  113. /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,6 @@
1
1
  @charset "utf-8";
2
2
 
3
3
  @import "reset";
4
- @import "color";
5
4
  @import "generic";
6
5
  @import "fonts";
7
6
  @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;
@@ -18,7 +18,7 @@
18
18
  flex-direction: column;
19
19
  background-color: getColor('background');
20
20
  font-size: $size-normal;
21
- border: var(--border);
21
+ border: 1px solid #{getColor('stroke-fade')};
22
22
  border-radius: var(--radius);
23
23
  margin: 8px 0;
24
24
  min-height: 56px;
@@ -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 {
@@ -131,13 +132,5 @@
131
132
  }
132
133
  }
133
134
  }
134
-
135
- .accordion-body {
136
- .accordion-content,
137
- p:last-child {
138
- margin-bottom: 0 !important;
139
- padding: 0 !important;
140
- }
141
- }
142
135
  }
143
136
  }
@@ -0,0 +1,43 @@
1
+ @import "../utilities/spacing";
2
+
3
+ .is-autocomplete-container {
4
+ position: relative;
5
+
6
+ .field{
7
+ margin: 0!important;
8
+ }
9
+
10
+ .is-autocomplete {
11
+ .autocomplete-menu {
12
+ display: none;
13
+ }
14
+
15
+ &.is-active {
16
+ .autocomplete-menu {
17
+ display: block;
18
+ border: var(--border);
19
+ padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
20
+ border-radius: 4px;
21
+ max-height: 220px;
22
+ overflow-y: auto;
23
+ background-color: getColor('background');
24
+ z-index: 10000;
25
+ margin-top: $spacing-2;
26
+ }
27
+
28
+ .autocomplete-item {
29
+ cursor: pointer;
30
+ padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
31
+
32
+ &.is-active, &[data-autocomplete-item-hover] {
33
+ @include hoverRules();
34
+ margin-left: calc(2px - $spacing-3);
35
+ margin-right: calc(2px - $spacing-3);
36
+ border-top: 1px solid getColor('neutral-fade');
37
+ border-bottom: 1px solid getColor('neutral-fade');
38
+ padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }