@trilogy-ds/styles 0.0.9-beta-v4 → 0.0.9-calendar
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/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +0 -21
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +5 -0
- package/framework/src/base/_helpers.scss +21 -6
- package/framework/src/base/_loading.scss +2 -2
- package/framework/src/base/_reset.scss +6 -1
- package/framework/src/components/_accordion.scss +4 -3
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +119 -125
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +12 -4
- package/framework/src/components/_calendar.scss +128 -0
- package/framework/src/components/_card.scss +26 -9
- package/framework/src/{elements → components}/_checkbox.scss +30 -1
- package/framework/src/components/_countdown.scss +1 -1
- package/framework/src/components/_divider.scss +16 -0
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/{elements → components}/_link.scss +9 -3
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_modal.scss +32 -11
- package/framework/src/components/_otp.scss +2 -2
- package/framework/src/components/_pagination.scss +4 -0
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +2 -2
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/{elements → components}/_select.scss +47 -21
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +7 -7
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +72 -28
- package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +1 -1
- package/framework/src/{elements → components}/_title.scss +10 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
- package/framework/src/{elements → components/input}/_entry.scss +48 -10
- package/framework/src/{elements → components/input}/_form.scss +18 -12
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
- package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
- package/framework/src/{elements → components/progress}/_progress.scss +3 -3
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -4
- package/framework/src/grid/_columns.scss +5 -9
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_background.scss +3 -1
- package/framework/src/utilities/_derived-variables.scss +0 -92
- package/framework/src/utilities/_initial-variables.scss +3 -111
- package/framework/src/utilities/_pre.scss +3 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/{_colors.scss → variables/_color.scss} +44 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +1 -1
- package/framework/src/components/_all.scss +0 -24
- package/framework/src/elements/_all.scss +0 -32
- package/framework/src/elements/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -641
- /package/framework/src/{elements → components}/_badge.scss +0 -0
- /package/framework/src/{elements → components}/_chips.scss +0 -0
- /package/framework/src/{elements → components}/_container.scss +0 -0
- /package/framework/src/{elements → components}/_icon.scss +0 -0
- /package/framework/src/{elements → components}/_image.scss +0 -0
- /package/framework/src/{elements → components}/_loader.scss +0 -0
- /package/framework/src/{elements → components}/_tag.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
package/framework/src/_all.scss
CHANGED
|
@@ -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
|
-
}
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
// Float
|
|
14
14
|
.is-clearfix {
|
|
15
|
-
|
|
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
|
-
$
|
|
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 $
|
|
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 $
|
|
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;
|
|
84
|
+
display: table;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
& & {
|
|
@@ -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:
|
|
48
|
-
max-height:
|
|
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
|
+
}
|