@clayui/css 3.38.0 → 3.41.0

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 (140) hide show
  1. package/index.js +7 -2
  2. package/lib/css/atlas.css +819 -966
  3. package/lib/css/atlas.css.map +1 -1
  4. package/lib/css/base.css +668 -814
  5. package/lib/css/base.css.map +1 -1
  6. package/lib/css/cadmin.css +1013 -881
  7. package/lib/css/cadmin.css.map +1 -1
  8. package/lib/images/icons/geolocation.svg +1 -1
  9. package/lib/images/icons/heading.svg +9 -0
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/lib/images/icons/maps.svg +10 -0
  12. package/lib/images/icons/order-ascending.svg +11 -0
  13. package/lib/images/icons/order-descending.svg +11 -0
  14. package/package.json +5 -3
  15. package/src/images/icons/geolocation.svg +1 -1
  16. package/src/images/icons/heading.svg +9 -0
  17. package/src/images/icons/maps.svg +10 -0
  18. package/src/images/icons/order-ascending.svg +11 -0
  19. package/src/images/icons/order-descending.svg +11 -0
  20. package/src/scss/_mixins.scss +1 -0
  21. package/src/scss/atlas/variables/_alerts.scss +10 -0
  22. package/src/scss/atlas/variables/_breadcrumbs.scss +4 -2
  23. package/src/scss/atlas/variables/_cards.scss +2 -2
  24. package/src/scss/atlas/variables/_custom-forms.scss +190 -14
  25. package/src/scss/atlas/variables/_dropdowns.scss +188 -17
  26. package/src/scss/atlas/variables/_forms.scss +33 -1
  27. package/src/scss/atlas/variables/_globals.scss +14 -1
  28. package/src/scss/atlas/variables/_labels.scss +171 -71
  29. package/src/scss/atlas/variables/_navs.scss +20 -8
  30. package/src/scss/atlas/variables/_pagination.scss +2 -2
  31. package/src/scss/atlas/variables/_sheets.scss +4 -2
  32. package/src/scss/atlas/variables/_stickers.scss +167 -3
  33. package/src/scss/atlas/variables/_tables.scss +58 -28
  34. package/src/scss/cadmin/components/_alerts.scss +1 -17
  35. package/src/scss/cadmin/components/_cards.scss +14 -16
  36. package/src/scss/cadmin/components/_custom-forms.scss +15 -165
  37. package/src/scss/cadmin/components/_dropdowns.scss +66 -205
  38. package/src/scss/cadmin/components/_form-validation.scss +10 -237
  39. package/src/scss/cadmin/components/_forms.scss +1 -1
  40. package/src/scss/cadmin/components/_grid.scss +20 -20
  41. package/src/scss/cadmin/components/_icons.scss +1 -6
  42. package/src/scss/cadmin/components/_images.scss +1 -1
  43. package/src/scss/cadmin/components/_input-groups.scss +17 -14
  44. package/src/scss/cadmin/components/_labels.scss +33 -101
  45. package/src/scss/cadmin/components/_list-group.scss +4 -4
  46. package/src/scss/cadmin/components/_modals.scss +1 -1
  47. package/src/scss/cadmin/components/_multi-step-nav.scss +2 -2
  48. package/src/scss/cadmin/components/_navbar.scss +2 -2
  49. package/src/scss/cadmin/components/_popovers.scss +34 -30
  50. package/src/scss/cadmin/components/_reboot.scss +1 -8
  51. package/src/scss/cadmin/components/_sidebar.scss +1 -1
  52. package/src/scss/cadmin/components/_stickers.scss +39 -94
  53. package/src/scss/cadmin/components/_toggle-switch.scss +20 -358
  54. package/src/scss/cadmin/components/_tooltip.scss +16 -14
  55. package/src/scss/cadmin/components/_type.scss +9 -1
  56. package/src/scss/cadmin/variables/_alerts.scss +38 -14
  57. package/src/scss/cadmin/variables/_breadcrumbs.scss +10 -6
  58. package/src/scss/cadmin/variables/_cards.scss +96 -28
  59. package/src/scss/cadmin/variables/_custom-forms.scss +262 -20
  60. package/src/scss/cadmin/variables/_dropdowns.scss +449 -137
  61. package/src/scss/cadmin/variables/_forms.scss +356 -5
  62. package/src/scss/cadmin/variables/_globals.scss +15 -1
  63. package/src/scss/cadmin/variables/_icons.scss +15 -2
  64. package/src/scss/cadmin/variables/_labels.scss +288 -101
  65. package/src/scss/cadmin/variables/_links.scss +9 -7
  66. package/src/scss/cadmin/variables/_menubar.scss +4 -4
  67. package/src/scss/cadmin/variables/_multi-step-nav.scss +2 -2
  68. package/src/scss/cadmin/variables/_navbar.scss +2 -2
  69. package/src/scss/cadmin/variables/_navs.scss +2 -2
  70. package/src/scss/cadmin/variables/_stickers.scss +258 -45
  71. package/src/scss/cadmin/variables/_tables.scss +1 -1
  72. package/src/scss/cadmin/variables/_timelines.scss +1 -1
  73. package/src/scss/cadmin/variables/_toggle-switch.scss +404 -1
  74. package/src/scss/cadmin/variables/_type.scss +3 -0
  75. package/src/scss/components/_alerts.scss +5 -17
  76. package/src/scss/components/_cards.scss +7 -7
  77. package/src/scss/components/_carousel.scss +2 -2
  78. package/src/scss/components/_custom-forms.scss +20 -164
  79. package/src/scss/components/_dropdowns.scss +52 -209
  80. package/src/scss/components/_form-validation.scss +8 -237
  81. package/src/scss/components/_forms.scss +66 -9
  82. package/src/scss/components/_grid.scss +15 -17
  83. package/src/scss/components/_icons.scss +4 -9
  84. package/src/scss/components/_images.scss +1 -1
  85. package/src/scss/components/_input-groups.scss +17 -14
  86. package/src/scss/components/_jumbotron.scss +1 -1
  87. package/src/scss/components/_labels.scss +29 -99
  88. package/src/scss/components/_list-group.scss +4 -4
  89. package/src/scss/components/_modals.scss +1 -1
  90. package/src/scss/components/_multi-step-nav.scss +2 -2
  91. package/src/scss/components/_navbar.scss +2 -2
  92. package/src/scss/components/_popovers.scss +30 -30
  93. package/src/scss/components/_reboot.scss +3 -39
  94. package/src/scss/components/_side-navigation.scss +2 -2
  95. package/src/scss/components/_sidebar.scss +1 -1
  96. package/src/scss/components/_stickers.scss +36 -94
  97. package/src/scss/components/_toggle-switch.scss +36 -351
  98. package/src/scss/components/_tooltip.scss +14 -14
  99. package/src/scss/components/_type.scss +9 -1
  100. package/src/scss/components/_utilities-functional-important.scss +4 -3
  101. package/src/scss/functions/_global-functions.scss +26 -6
  102. package/src/scss/functions/_lx-icons-generated.scss +125 -117
  103. package/src/scss/functions/_polyfills.scss +17 -0
  104. package/src/scss/functions/_type-conversion-functions.scss +5 -4
  105. package/src/scss/mixins/_alerts.scss +25 -0
  106. package/src/scss/mixins/_aspect-ratio.scss +1 -1
  107. package/src/scss/mixins/_buttons.scss +256 -15
  108. package/src/scss/mixins/_cards.scss +610 -114
  109. package/src/scss/mixins/_custom-forms.scss +668 -0
  110. package/src/scss/mixins/_dropdown-menu.scss +168 -48
  111. package/src/scss/mixins/_forms.scss +427 -12
  112. package/src/scss/mixins/_globals.scss +244 -234
  113. package/src/scss/mixins/_grid.scss +13 -15
  114. package/src/scss/mixins/_labels.scss +331 -97
  115. package/src/scss/mixins/_links.scss +453 -33
  116. package/src/scss/mixins/_navbar.scss +10 -10
  117. package/src/scss/mixins/_rfs.scss +14 -9
  118. package/src/scss/mixins/_stickers.scss +168 -17
  119. package/src/scss/mixins/_toggle-switch.scss +1076 -14
  120. package/src/scss/variables/_alerts.scss +38 -14
  121. package/src/scss/variables/_breadcrumbs.scss +8 -4
  122. package/src/scss/variables/_cards.scss +46 -8
  123. package/src/scss/variables/_custom-forms.scss +253 -18
  124. package/src/scss/variables/_dropdowns.scss +583 -132
  125. package/src/scss/variables/_forms.scss +304 -2
  126. package/src/scss/variables/_globals.scss +54 -1
  127. package/src/scss/variables/_icons.scss +60 -9
  128. package/src/scss/variables/_labels.scss +303 -107
  129. package/src/scss/variables/_links.scss +15 -13
  130. package/src/scss/variables/_menubar.scss +4 -4
  131. package/src/scss/variables/_multi-step-nav.scss +2 -2
  132. package/src/scss/variables/_navbar.scss +2 -2
  133. package/src/scss/variables/_navs.scss +37 -17
  134. package/src/scss/variables/_pagination.scss +15 -13
  135. package/src/scss/variables/_sheets.scss +4 -2
  136. package/src/scss/variables/_stickers.scss +327 -50
  137. package/src/scss/variables/_tables.scss +25 -9
  138. package/src/scss/variables/_timelines.scss +1 -1
  139. package/src/scss/variables/_toggle-switch.scss +404 -5
  140. package/src/scss/variables/_type.scss +3 -0
@@ -8,7 +8,7 @@
8
8
  /// @example
9
9
  /// font-size: {Number | String | Null},
10
10
  /// inline-item-font-size: {Number | String | Null},
11
- /// outside-offset: {Number | String}, // Default: -(map-get($map, size) / 2)
11
+ /// outside-offset: {Number | String}, // Default: -(map-get($map, size) * 0.5)
12
12
  /// size: {Number | String | Null},
13
13
  /// @todo
14
14
  /// - Add @example
@@ -19,7 +19,7 @@
19
19
  $inline-item-font-size: map-get($map, inline-item-font-size);
20
20
  $outside-offset: setter(
21
21
  map-get($map, outside-offset),
22
- -(map-get($map, size) / 2)
22
+ math-sign(map-get($map, size) * 0.5)
23
23
  );
24
24
  $size: map-get($map, size);
25
25
 
@@ -57,9 +57,55 @@
57
57
  /// A mixin to create sticker variants. You can base your variant off `.sticker` or create your own base class (e.g., `<span class="sticker my-custom-sticker-variant"></span>` or `<span class="my-custom-sticker"></span>`).
58
58
  /// @param {Map} $map - A map of `key: value` pairs. The keys and value types are listed below:
59
59
  /// @example
60
- /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
61
- /// See Mixin `clay-css` for available keys to pass into the base selector
62
- /// sticker-overlay: {Map | Null}, // See Mixin `clay-css` for available keys
60
+ ///
61
+ /// (
62
+ /// enabled: {Bool}, // Set to false to prevent mixin styles from being output. Default: true
63
+ /// inline-item: (
64
+ /// // .your-variant-name > .inline-item
65
+ /// lexicon-icon: (
66
+ /// // .your-variant-name > .inline-item .lexicon-icon
67
+ /// ),
68
+ /// ),
69
+ /// lexicon-icon: (
70
+ /// // .your-variant-name .lexicon-icon
71
+ /// ),
72
+ /// sticker-img: (
73
+ /// // .your-variant-name .sticker-img
74
+ /// ),
75
+ /// sticker-overlay: (
76
+ /// // .your-variant-name .sticker-overlay
77
+ /// ),
78
+ /// rounded: (
79
+ /// // .your-variant-name.rounded
80
+ /// sticker-overlay: (
81
+ /// // .your-variant-name.rounded .sticker-overlay
82
+ /// ),
83
+ /// ),
84
+ /// rounded-circle: (
85
+ /// // .your-variant-name.rounded-circle
86
+ /// sticker-overlay: (
87
+ /// // .your-variant-name.rounded-circle .sticker-overlay
88
+ /// ),
89
+ /// ),
90
+ /// rounded-0: (
91
+ /// // .your-variant-name.rounded-0
92
+ /// sticker-overlay: (
93
+ /// // .your-variant-name.rounded-0 .sticker-overlay
94
+ /// ),
95
+ /// ),
96
+ /// sticker-outside: (
97
+ /// // .your-variant-name.sticker-outside
98
+ /// sticker-bottom-left: (
99
+ /// // .your-variant-name.sticker-outside.sticker-bottom-left
100
+ /// ),
101
+ /// sticker-bottom-right: (
102
+ /// // .your-variant-name.sticker-outside.sticker-bottom-right
103
+ /// ),
104
+ /// sticker-top-right: (
105
+ /// // .your-variant-name.sticker-outside.sticker-top-right
106
+ /// ),
107
+ /// ),
108
+ /// )
63
109
  /// -=-=-=-=-=- Deprecated -=-=-=-=-=-
64
110
  /// bg: {Color | String | Null}, // deprecated after 3.9.0
65
111
  /// @todo
@@ -74,49 +120,154 @@
74
120
  (
75
121
  background-color:
76
122
  setter(map-get($map, bg), map-get($map, background-color)),
123
+ height: setter(map-get($map, size), map-get($map, height)),
124
+ line-height: setter(map-get($map, size), map-get($map, line-height)),
125
+ width: setter(map-get($map, size), map-get($map, width)),
77
126
  )
78
127
  );
79
128
 
80
129
  $inline-item: setter(map-get($map, inline-item), ());
81
-
82
- $sticker-overlay: setter(map-get($map, sticker-overlay), ());
83
- $sticker-overlay: map-merge(
130
+ $inline-item: map-merge(
131
+ $inline-item,
84
132
  (
85
- border-radius:
133
+ font-size:
86
134
  setter(
87
- map-get($sticker-overlay, border-radius),
88
- map-get($base, border-radius)
135
+ map-get($map, inline-item-font-size),
136
+ map-get($inline-item, font-size)
89
137
  ),
90
- ),
91
- $sticker-overlay
138
+ )
139
+ );
140
+
141
+ $outside-offset: setter(
142
+ map-get($map, outside-offset),
143
+ if(
144
+ map-get($map, size),
145
+ calc(#{math-sign(map-get($map, size))} / 2),
146
+ null
147
+ )
92
148
  );
93
149
 
94
150
  $sticker-outside: setter(map-get($map, sticker-outside), ());
95
151
 
96
152
  $sticker-outside-bottom-left: setter(
97
- map-get($map, sticker-outside-bottom-left),
153
+ map-get($sticker-outside, sticker-bottom-left),
98
154
  ()
99
155
  );
156
+ $sticker-outside-bottom-left: map-merge(
157
+ $sticker-outside-bottom-left,
158
+ setter(map-get($map, sticker-outside-bottom-left), ())
159
+ );
100
160
 
101
161
  $sticker-outside-bottom-right: setter(
102
- map-get($map, sticker-outside-bottom-right),
162
+ map-get($sticker-outside, sticker-bottom-right),
103
163
  ()
104
164
  );
165
+ $sticker-outside-bottom-right: map-merge(
166
+ $sticker-outside-bottom-right,
167
+ setter(map-get($map, sticker-outside-bottom-right), ())
168
+ );
105
169
 
106
170
  $sticker-outside-top-right: setter(
107
- map-get($map, sticker-outside-top-right),
171
+ map-get($sticker-outside, sticker-top-right),
108
172
  ()
109
173
  );
174
+ $sticker-outside-top-right: map-merge(
175
+ $sticker-outside-top-right,
176
+ setter(map-get($map, sticker-outside-top-right), ())
177
+ );
178
+
179
+ @if ($outside-offset) {
180
+ $sticker-outside: map-merge(
181
+ $sticker-outside,
182
+ (
183
+ left: $outside-offset,
184
+ top: $outside-offset,
185
+ )
186
+ );
187
+
188
+ $sticker-outside-bottom-left: map-merge(
189
+ $sticker-outside-bottom-left,
190
+ (
191
+ bottom: $outside-offset,
192
+ top: auto,
193
+ )
194
+ );
195
+
196
+ $sticker-outside-bottom-right: map-merge(
197
+ $sticker-outside-bottom-right,
198
+ (
199
+ bottom: $outside-offset,
200
+ left: auto,
201
+ right: $outside-offset,
202
+ top: auto,
203
+ )
204
+ );
205
+
206
+ $sticker-outside-top-right: map-merge(
207
+ $sticker-outside-top-right,
208
+ (
209
+ left: auto,
210
+ right: $outside-offset,
211
+ )
212
+ );
213
+ }
110
214
 
111
215
  @if ($enabled) {
112
216
  @include clay-css($base);
113
217
 
114
218
  > .inline-item {
115
219
  @include clay-css($inline-item);
220
+
221
+ .lexicon-icon {
222
+ @include clay-css(
223
+ setter(map-deep-get($map, inline-item, lexicon-icon), ())
224
+ );
225
+ }
226
+ }
227
+
228
+ .lexicon-icon {
229
+ @include clay-css(setter(map-get($map, lexicon-icon), ()));
230
+ }
231
+
232
+ .sticker-img {
233
+ @include clay-css(setter(map-get($map, sticker-img), ()));
116
234
  }
117
235
 
118
236
  .sticker-overlay {
119
- @include clay-css($sticker-overlay);
237
+ @include clay-css(setter(map-get($map, sticker-overlay), ()));
238
+ }
239
+
240
+ &.rounded {
241
+ @include clay-css(setter(map-get($map, rounded), ()));
242
+
243
+ .sticker-overlay {
244
+ @include clay-css(
245
+ setter(map-deep-get($map, rounded, sticker-overlay), ())
246
+ );
247
+ }
248
+ }
249
+
250
+ &.rounded-circle {
251
+ @include clay-css(setter(map-get($map, rounded-circle), ()));
252
+
253
+ .sticker-overlay {
254
+ @include clay-css(
255
+ setter(
256
+ map-deep-get($map, rounded-circle, sticker-overlay),
257
+ ()
258
+ )
259
+ );
260
+ }
261
+ }
262
+
263
+ &.rounded-0 {
264
+ @include clay-css(setter(map-get($map, rounded-0), ()));
265
+
266
+ .sticker-overlay {
267
+ @include clay-css(
268
+ setter(map-deep-get($map, rounded-0, sticker-overlay), ())
269
+ );
270
+ }
120
271
  }
121
272
 
122
273
  &.sticker-outside {