@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.4-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 (108) 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 +0 -21
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +5 -0
  13. package/framework/src/base/_helpers.scss +21 -6
  14. package/framework/src/base/_loading.scss +2 -2
  15. package/framework/src/base/_reset.scss +6 -1
  16. package/framework/src/components/_accordion.scss +4 -3
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +139 -109
  19. package/framework/src/{elements → components}/_badge.scss +1 -1
  20. package/framework/src/{elements → components}/_box.scss +9 -11
  21. package/framework/src/components/_breadcrumb.scss +17 -31
  22. package/framework/src/{elements → components}/_button.scss +16 -3
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +26 -9
  25. package/framework/src/{elements → components}/_checkbox.scss +30 -1
  26. package/framework/src/{elements → components}/_container.scss +0 -7
  27. package/framework/src/components/_countdown.scss +1 -1
  28. package/framework/src/components/_date-picker.scss +58 -0
  29. package/framework/src/components/_divider.scss +43 -4
  30. package/framework/src/components/_dropdown.scss +195 -0
  31. package/framework/src/components/_flex-box.scss +994 -0
  32. package/framework/src/components/_index.scss +51 -0
  33. package/framework/src/{elements → components}/_link.scss +9 -3
  34. package/framework/src/components/_list.scss +66 -0
  35. package/framework/src/components/_modal.scss +32 -11
  36. package/framework/src/components/_otp.scss +2 -2
  37. package/framework/src/components/_pagination.scss +5 -2
  38. package/framework/src/components/_price.scss +28 -2
  39. package/framework/src/components/_prompt.scss +125 -0
  40. package/framework/src/{elements → components}/_radio.scss +4 -3
  41. package/framework/src/components/_segmented-control.scss +9 -5
  42. package/framework/src/components/_select.scss +131 -0
  43. package/framework/src/components/_stepper.scss +1 -1
  44. package/framework/src/{elements → components}/_sticker.scss +13 -1
  45. package/framework/src/{elements → components}/_switch.scss +13 -8
  46. package/framework/src/{elements → components}/_table.scss +9 -10
  47. package/framework/src/components/_tabs.scss +79 -28
  48. package/framework/src/{elements → components}/_tag.scss +1 -17
  49. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  50. package/framework/src/components/_textarea.scss +46 -0
  51. package/framework/src/components/_timeline.scss +1 -1
  52. package/framework/src/{elements → components}/_title.scss +10 -0
  53. package/framework/src/components/alert/_index.scss +2 -0
  54. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  55. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  56. package/framework/src/{elements → components/input}/_form.scss +18 -12
  57. package/framework/src/components/input/_index.scss +4 -0
  58. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  59. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  60. package/framework/src/components/progress/_index.scss +2 -0
  61. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  62. package/framework/src/{elements → components/progress}/_progress.scss +3 -3
  63. package/framework/src/elements/_index.scss +5 -0
  64. package/framework/src/elements/_other.scss +0 -4
  65. package/framework/src/grid/_columns.scss +33 -11
  66. package/framework/src/layout/_hero.scss +4 -0
  67. package/framework/src/layout/_section.scss +5 -0
  68. package/framework/src/theming/buttons_partial.scss +2 -2
  69. package/framework/src/theming/common_partials.scss +1 -1
  70. package/framework/src/trilogy-mangled.scss +3 -3
  71. package/framework/src/trilogy.scss +2 -2
  72. package/framework/src/utilities/_background.scss +3 -1
  73. package/framework/src/utilities/_derived-variables.scss +0 -92
  74. package/framework/src/utilities/_initial-variables.scss +3 -111
  75. package/framework/src/utilities/_pre.scss +3 -1
  76. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  77. package/framework/src/utilities/mixins/_delete.scss +86 -0
  78. package/framework/src/utilities/mixins/_index.scss +11 -0
  79. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  80. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  81. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  82. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  83. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  84. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  85. package/framework/src/utilities/mixins/_state.scss +25 -0
  86. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  87. package/framework/src/utilities/mixins/_utils.scss +24 -0
  88. package/framework/src/utilities/variables/_animation.scss +2 -0
  89. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
  90. package/framework/src/utilities/variables/_font.scss +97 -0
  91. package/framework/src/utilities/variables/_index.scss +6 -0
  92. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  93. package/framework/src/utilities/variables/_shadow.scss +3 -0
  94. package/framework/src/utilities/variables/_zindex.scss +14 -0
  95. package/package.json +6 -1
  96. package/framework/src/components/_all.scss +0 -24
  97. package/framework/src/elements/_all.scss +0 -32
  98. package/framework/src/elements/_autocomplete.scss +0 -32
  99. package/framework/src/elements/_list.scss +0 -62
  100. package/framework/src/elements/_select.scss +0 -96
  101. package/framework/src/elements/_textarea.scss +0 -133
  102. package/framework/src/utilities/_mixins.scss +0 -635
  103. /package/framework/src/{elements → components}/_chips.scss +0 -0
  104. /package/framework/src/{elements → components}/_icon.scss +0 -0
  105. /package/framework/src/{elements → components}/_image.scss +0 -0
  106. /package/framework/src/{elements → components}/_loader.scss +0 -0
  107. /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
  108. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -0,0 +1,195 @@
1
+ @use 'sass:math';
2
+ @import "../utilities/spacing";
3
+
4
+ $dropdown-border-radius: var(--radius-small);
5
+ $dropdown-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
6
+ $dropdown-item-padding-vertical: 12px;
7
+ $dropdown-item-padding-horizontal: 16px;
8
+
9
+ .dropdown {
10
+ position: relative;
11
+ display: block;
12
+
13
+ &.is-active {
14
+ .dropdown-menu {
15
+ display: block;
16
+ }
17
+ }
18
+ }
19
+
20
+ .dropdown-trigger {
21
+ display: inline-block;
22
+ }
23
+
24
+ .dropdown-manual {
25
+ .dropdown-menu {
26
+ top: 100%;
27
+ margin-top: 0px;
28
+ &[data-position="upward"] {
29
+ top: auto;
30
+ bottom: 100%;
31
+ margin-top: 0;
32
+ margin-bottom: 85px;
33
+ }
34
+ }
35
+ }
36
+
37
+ .dropdown-menu {
38
+ position: absolute;
39
+ top: 100%;
40
+ left: 0;
41
+ z-index: 1000;
42
+ display: none;
43
+ margin-top: 15px;
44
+ background-color: getColor('background');
45
+ border-radius: $dropdown-border-radius;
46
+ box-shadow: $dropdown-shadow;
47
+ overflow: hidden;
48
+ max-height: 300px;
49
+ overflow-y: auto;
50
+ padding-top: 12px;
51
+ padding-bottom: 12px;
52
+ padding-left: 16px;
53
+ padding-right: 16px;
54
+ width: max-content;
55
+ min-width: 200px;
56
+ opacity: 0;
57
+ transform: translateY(-10px);
58
+ transition: opacity 0.2s ease, transform 0.2s ease;
59
+
60
+ &[data-position="upward"] {
61
+ top: auto;
62
+ bottom: 100%;
63
+ margin-top: 0;
64
+ margin-bottom: 15px;
65
+ transform: translateY(10px);
66
+ }
67
+
68
+ &::-webkit-scrollbar {
69
+ width: 6px;
70
+ }
71
+
72
+ &::-webkit-scrollbar-track {
73
+ background: transparent;
74
+ }
75
+
76
+ &::-webkit-scrollbar-thumb {
77
+ background: getColor('main-fade');
78
+ border-radius: 3px;
79
+ }
80
+ }
81
+
82
+ .dropdown-content {
83
+ padding: 0;
84
+ }
85
+
86
+ .dropdown-item {
87
+ display: flex;
88
+ align-items: center;
89
+ padding: $dropdown-item-padding-vertical $dropdown-item-padding-horizontal;
90
+ color: getColor('font');
91
+ text-decoration: none;
92
+ cursor: pointer;
93
+ transition: background-color 0.2s ease;
94
+ border: none;
95
+ border-radius: $dropdown-border-radius;
96
+ background: none;
97
+ width: 100%;
98
+ text-align: left;
99
+ font-size: inherit;
100
+ font-family: inherit;
101
+ line-height: 1.4;
102
+
103
+ .icon {
104
+ margin-right: 12px;
105
+ flex-shrink: 0;
106
+
107
+ &.is-smaller {
108
+ width: 16px;
109
+ height: 16px;
110
+ }
111
+ }
112
+
113
+ &:not(:disabled):not([aria-disabled="true"]) {
114
+ #{$hoverSelector},
115
+ &:focus {
116
+ background-color: getColor('main-fade');
117
+ outline: none;
118
+ }
119
+
120
+ &:active {
121
+ background-color: getColor('main-fade');
122
+ }
123
+ }
124
+
125
+ &.is-active {
126
+ background-color: getColor('main-fade');
127
+ font-weight: $weight-semibold;
128
+ }
129
+
130
+ &:disabled,
131
+ &[aria-disabled="true"] {
132
+ color: getColor('disabled');
133
+ cursor: not-allowed;
134
+ background-color: transparent;
135
+
136
+ .icon {
137
+ opacity: 0.5;
138
+ }
139
+ }
140
+ }
141
+
142
+ .dropdown-item:disabled, .dropdown-item[aria-disabled=true] {
143
+ background-color: transparent !important;
144
+ }
145
+
146
+ .dropdown-group {
147
+ &:not(:first-child) {
148
+ border-top: 2px solid getColor('neutral-fade');
149
+ }
150
+
151
+ &:not(:last-child) {
152
+ margin-bottom: 0;
153
+ }
154
+
155
+ .dropdown-item {
156
+ &:first-child {
157
+ border-top: none;
158
+ }
159
+ }
160
+
161
+ &.is-no-separator {
162
+ border-top: none;
163
+ }
164
+ }
165
+
166
+ @include mobile {
167
+ .dropdown-menu {
168
+ left: 0;
169
+ max-height: 250px;
170
+ width: max-content;
171
+ min-width: 200px;
172
+ }
173
+ }
174
+
175
+ .dropdown.is-active .dropdown-menu {
176
+ opacity: 1;
177
+ transform: translateY(0);
178
+
179
+ &[data-position="upward"] {
180
+ opacity: 1;
181
+ transform: translateY(0);
182
+ }
183
+ }
184
+
185
+ .dropdown-menu.is-visible {
186
+ display: block;
187
+ opacity: 1;
188
+ transform: translateY(0);
189
+
190
+ &[data-position="upward"] {
191
+ display: block;
192
+ opacity: 1;
193
+ transform: translateY(0);
194
+ }
195
+ }