@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,84 +1,85 @@
1
1
  .range-container {
2
- @mixin appearence {
3
- appearance: none;
4
- height: 5px;
5
- }
2
+ @mixin appearence {
3
+ appearance: none;
4
+ height: 5px;
5
+ }
6
6
 
7
- @mixin slider-thumb {
8
- appearance: none;
9
- width: 20px;
10
- height: 20px;
11
- background-color: white;
12
- pointer-events: auto;
13
- border-radius: 50%;
14
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
15
- outline: none;
16
- border: none;
17
- }
18
- .range {
19
- width: 100%;
20
- position: relative;
21
- margin-top: 18px;
22
- margin-bottom: 20px;
7
+ @mixin slider-thumb {
8
+ appearance: none;
9
+ width: 20px;
10
+ height: 20px;
11
+ background-color: white;
12
+ pointer-events: auto;
13
+ border-radius: 50%;
14
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
15
+ outline: none;
16
+ border: none;
17
+ }
18
+
19
+ .range {
20
+ width: 100%;
21
+ position: relative;
22
+ margin-top: 18px;
23
+ margin-bottom: 20px;
23
24
 
24
- .range-track {
25
- width: 100%;
26
- height: 8px;
27
- border-radius: 8px;
28
- position: absolute;
29
- margin: auto;
30
- top: 0;
31
- bottom: 0;
32
- color: getColor('alternate');
33
- @include mobile {
34
- height: 4px;
35
- border-radius: 4px;
36
- }
37
- }
25
+ .range-track {
26
+ width: 100%;
27
+ height: 8px;
28
+ border-radius: var(--radius);
29
+ position: absolute;
30
+ margin: auto;
31
+ top: 0;
32
+ bottom: 0;
33
+ @include mobile {
34
+ height: 4px;
35
+ border-radius: var(--radius-small);
36
+ }
37
+ }
38
38
 
39
- .range-cursor {
40
- appearance: none;
41
- -webkit-appearance: none;
42
- -moz-appearance: none;
43
- width: 100%;
44
- outline: none;
45
- position: absolute;
46
- margin: auto;
47
- top: 0;
48
- bottom: 0;
49
- background-color: transparent;
50
- pointer-events: none;
39
+ .range-cursor {
40
+ appearance: none;
41
+ -webkit-appearance: none;
42
+ -moz-appearance: none;
43
+ width: 100%;
44
+ outline: none;
45
+ position: absolute;
46
+ margin: auto;
47
+ top: 0;
48
+ bottom: 0;
49
+ background-color: transparent;
50
+ pointer-events: none;
51
51
 
52
- &::-webkit-slider-runnable-track {
53
- @include appearence;
54
- }
52
+ &::-webkit-slider-runnable-track {
53
+ @include appearence;
54
+ }
55
55
 
56
- &::-moz-range-track {
57
- @include appearence;
58
- }
56
+ &::-moz-range-track {
57
+ @include appearence;
58
+ }
59
59
 
60
- &::-ms-track {
61
- @include appearence;
62
- }
60
+ &::-ms-track {
61
+ @include appearence;
62
+ }
63
63
 
64
- &::-webkit-slider-thumb {
65
- @include slider-thumb;
66
- margin-top: -8px;
67
- }
64
+ &::-webkit-slider-thumb {
65
+ @include slider-thumb;
66
+ margin-top: -8px;
67
+ }
68
68
 
69
- &::-moz-range-thumb {
70
- @include slider-thumb;
71
- }
69
+ &::-moz-range-thumb {
70
+ @include slider-thumb;
71
+ }
72
72
 
73
- &::-ms-thumb {
74
- @include slider-thumb;
75
- }
76
- }
77
- }
78
- .range-values {
79
- display: flex;
80
- justify-content: space-between;
81
- padding-top: 14px;
82
- font-weight: bold;
73
+ &::-ms-thumb {
74
+ @include slider-thumb;
75
+ }
83
76
  }
77
+ }
78
+
79
+ .range-values {
80
+ display: flex;
81
+ justify-content: space-between;
82
+ padding-top: 14px;
83
+ font-weight: bold;
84
+ }
84
85
  }
@@ -1,60 +1,62 @@
1
1
  .segmented-control {
2
- border-radius: 6px;
3
- padding: $spacing-1;
4
- border: 1px solid getColor('grey-light');
5
- background-color: getColor('grey-lighter');
6
- display: inline-block;
7
- margin: 16px 0;
2
+ border-radius: 6px;
3
+ padding: $spacing-1;
4
+ background-color: getColor('background');
5
+ display: flex;
6
+ margin-left: auto;
7
+ margin-right: auto;
8
+ width: fit-content;
9
+ border: 1px solid getColor('neutral');
10
+
11
+
12
+ &.justified-start {
13
+ margin-left: 0;
14
+ margin-right: auto;
15
+ }
16
+
17
+ &.justified-end {
18
+ margin-right: 0;
19
+ margin-left: auto;
20
+ }
21
+
22
+ @include mobile {
23
+ display: flex;
24
+ margin: 24px auto;
25
+ width: 100%;
26
+ }
27
+
28
+ .segmented-control-item {
29
+ padding: $spacing-3 $spacing-4;
30
+ border-radius: var(--radius-small);
31
+ font-size: 16px;
32
+ text-align: center;
33
+ border: 2px solid transparent;
34
+ color: getColor('font');
35
+ background-color: getColor('background');
36
+
37
+ &:not(:last-child) {
38
+ margin-right: 4px;
39
+ }
8
40
 
9
41
  @include mobile {
10
- display: flex;
11
- margin: 24px auto;
12
- width: 100%;
42
+ flex: 1 1 0;
43
+ width: 0;
44
+ text-overflow: ellipsis;
45
+ overflow: hidden;
46
+ }
47
+
48
+ &:hover:not([disabled], [aria-disabled=true], .is-active) {
49
+ cursor: pointer;
50
+ @include hoverRules()
51
+ }
52
+
53
+ &.is-active {
54
+ background-color: getColor('main');
55
+ color: invertColor('main');
13
56
  }
14
57
 
15
- .segmented-control-item {
16
- padding: 0 $spacing-5;
17
- border-radius: 4px;
18
- font-size: 16px;
19
- text-align: center;
20
- border: 2px solid transparent;
21
- height: 42px;
22
- color: getColor('font');
23
- background-color: getColor('grey-lighter');
24
- font-family: $body-family;
25
-
26
- &:not(:last-child) {
27
- margin-right: 4px;
28
- }
29
-
30
- @include mobile {
31
- padding: 0 $spacing-4;
32
- flex: 1 1 0;
33
- width: 0;
34
- text-overflow: ellipsis;
35
- overflow: hidden;
36
- }
37
-
38
- &:hover {
39
- cursor: pointer;
40
- background-color: transparent;
41
- color: getColor('alternate');
42
- border-color: currentColor;
43
- }
44
-
45
- &.is-active {
46
- background-color: getColor('alternate');
47
- color: invertColor('alternate');
48
- font-weight: 600;
49
- }
50
-
51
- &[disabled] {
52
- background-color: getColor('grey-disabled');
53
- border-color: getColor('grey-disabled');
54
- color: getColor('grey-darker');
55
- &:hover {
56
- cursor: not-allowed;
57
- }
58
- }
58
+ &:disabled{
59
+ border-color: transparent !important;
59
60
  }
61
+ }
60
62
  }
@@ -0,0 +1,131 @@
1
+ $status-select: (
2
+ 'success', 'error'
3
+ );
4
+
5
+ .select {
6
+ position: relative;
7
+ input { cursor: pointer }
8
+
9
+ select {
10
+ width: 100%;
11
+ @include input;
12
+ padding-right: 40px;
13
+ text-overflow: ellipsis;
14
+
15
+ &:focus {
16
+ padding-left: 15px !important;
17
+ }
18
+
19
+ // to prevent user agent style
20
+ &:disabled {
21
+ opacity: 1 !important;
22
+ }
23
+
24
+ @each $name in $status-select {
25
+ $color: getColor($name);
26
+ $color-invert: invertColor($name);
27
+ $brandName: getColorBrandName($name);
28
+
29
+ &.is-#{$brandName} {
30
+ border: 1px solid $color;
31
+ }
32
+ }
33
+ }
34
+
35
+ .has-icons-left {
36
+ select {
37
+ padding-left: 45px;
38
+
39
+ &:focus {
40
+ padding-left: 44px !important;
41
+ }
42
+ }
43
+ }
44
+
45
+ &-options {
46
+ box-shadow: 0 0 8px #0000001a;
47
+ border-radius: 4px;
48
+ overflow: hidden;
49
+ position: absolute;
50
+ z-index: 1001;
51
+ left: 0;
52
+ right: 0;
53
+ margin-top: 8px;
54
+ }
55
+
56
+
57
+ .field {
58
+ margin-bottom: 0 !important;
59
+ .control {
60
+ position: relative;
61
+ &:after {
62
+ @include arrow();
63
+ right: 12px;
64
+ top: 50%;
65
+ transform: translate(-50%, -50%);
66
+ transition: transform 0.3s;
67
+ min-width: 20px;
68
+ min-height: 20px;
69
+ mask-size: 20px;
70
+ pointer-events: none;
71
+ }
72
+ }
73
+
74
+ &.focus .control {
75
+ &:after {
76
+ transform: rotate(180deg) translate(50%, 50%);
77
+ }
78
+ }
79
+ }
80
+
81
+
82
+ &-trilogy_modal_open {
83
+ position: fixed;
84
+ top: 0;
85
+ left: 0;
86
+ right: 0;
87
+ bottom: 0;
88
+ z-index: 1000;
89
+ }
90
+
91
+ .select-options {
92
+ background-color: getColor('background');
93
+
94
+ li.option {
95
+ padding: $spacing-3 $spacing-4;
96
+ cursor: pointer;
97
+ display: flex;
98
+ gap: $spacing-2;
99
+ @include hover;
100
+
101
+ &.is-disabled {
102
+ color: getColor('disabled');
103
+ background-color: getColor('disabled-fade');
104
+ cursor: not-allowed;
105
+ }
106
+
107
+ &[data-selected="true"] {
108
+ font-weight: $weight-black;
109
+
110
+ &:after {
111
+ content: "" !important;
112
+ mask-image: url('./assets/icons/all/check.svg') !important;
113
+ background-color: getColor('main') !important;
114
+ mask-size: 18px !important;
115
+ right: 18px !important;
116
+ height: 18px !important;
117
+ width: 18px !important;
118
+ position: absolute;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ &-options-top {
125
+ top: auto;
126
+ bottom: 100%;
127
+ overflow-y: scroll;
128
+ }
129
+ }
130
+
131
+