@empathyco/x-components 6.0.0-alpha.42 → 6.0.0-alpha.43
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/CHANGELOG.md +9 -0
- package/design-system/deprecated-full-theme.css +283 -284
- package/docs/API-reference/api/x-components.empathize.md +1 -1
- package/js/x-modules/empathize/components/empathize.vue.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue2.js +2 -3
- package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +2 -2
- package/report/x-components.api.md +1 -1
- package/types/x-modules/empathize/components/empathize.vue.d.ts +1 -1
- package/types/x-modules/empathize/components/empathize.vue.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.0.0-alpha.43](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.42...@empathyco/x-components@6.0.0-alpha.43) (2025-02-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* **empathize:** use computed for hasContent to improve reactivity (#1712) ([76de6ac](https://github.com/empathyco/x/commit/76de6ac65c345a4add6c9e0eb80c3853c518ed31))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [6.0.0-alpha.42](https://github.com/empathyco/x/compare/@empathyco/x-components@6.0.0-alpha.41...@empathyco/x-components@6.0.0-alpha.42) (2025-02-26)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -493,7 +493,6 @@
|
|
|
493
493
|
[dir="rtl"] .x-padding--left-20 {
|
|
494
494
|
padding-right: var(--x-size-base-20) !important;
|
|
495
495
|
}
|
|
496
|
-
|
|
497
496
|
.x-margin--auto {
|
|
498
497
|
margin: auto !important;
|
|
499
498
|
}
|
|
@@ -4165,12 +4164,6 @@
|
|
|
4165
4164
|
--x-number-font-weight-suggestion-default-matching
|
|
4166
4165
|
);
|
|
4167
4166
|
}
|
|
4168
|
-
:root {
|
|
4169
|
-
--x-color-background-sliding-panel: var(--x-color-base-neutral-100);
|
|
4170
|
-
--x-size-width-sliding-panel-gradient: var(--x-size-base-09);
|
|
4171
|
-
--x-size-padding-sliding-panel-button: var(--x-size-base-03);
|
|
4172
|
-
--x-size-horizontal-margin-sliding-panel-button-overflow: var(--x-size-base-02);
|
|
4173
|
-
}
|
|
4174
4167
|
:root {
|
|
4175
4168
|
--x-string-align-items-suggestion-default: center;
|
|
4176
4169
|
--x-color-text-suggestion-default: var(--x-color-text-default);
|
|
@@ -4393,6 +4386,12 @@
|
|
|
4393
4386
|
--x-color-text-suggestion-default-matching-curated
|
|
4394
4387
|
);
|
|
4395
4388
|
}
|
|
4389
|
+
:root {
|
|
4390
|
+
--x-color-background-sliding-panel: var(--x-color-base-neutral-100);
|
|
4391
|
+
--x-size-width-sliding-panel-gradient: var(--x-size-base-09);
|
|
4392
|
+
--x-size-padding-sliding-panel-button: var(--x-size-base-03);
|
|
4393
|
+
--x-size-horizontal-margin-sliding-panel-button-overflow: var(--x-size-base-02);
|
|
4394
|
+
}
|
|
4396
4395
|
.x-sliding-panel {
|
|
4397
4396
|
z-index: 0;
|
|
4398
4397
|
background-color: var(--x-color-background-sliding-panel);
|
|
@@ -4925,10 +4924,6 @@
|
|
|
4925
4924
|
--x-number-zoom-scale-picture: 1.1;
|
|
4926
4925
|
--x-number-zoom-duration-picture: 0.3s;
|
|
4927
4926
|
}
|
|
4928
|
-
:root {
|
|
4929
|
-
--x-number-zoom-scale-picture: 1.1;
|
|
4930
|
-
--x-number-zoom-duration-picture: 0.3s;
|
|
4931
|
-
}
|
|
4932
4927
|
|
|
4933
4928
|
.x-picture--zoom .x-picture-image {
|
|
4934
4929
|
transition: transform var(--x-number-zoom-duration-picture) ease-out;
|
|
@@ -4937,7 +4932,8 @@
|
|
|
4937
4932
|
transform: scale(var(--x-number-zoom-scale-picture));
|
|
4938
4933
|
}
|
|
4939
4934
|
:root {
|
|
4940
|
-
--x-number-
|
|
4935
|
+
--x-number-zoom-scale-picture: 1.1;
|
|
4936
|
+
--x-number-zoom-duration-picture: 0.3s;
|
|
4941
4937
|
}
|
|
4942
4938
|
:root {
|
|
4943
4939
|
--x-number-aspect-ratio-picture: 1;
|
|
@@ -4947,6 +4943,9 @@
|
|
|
4947
4943
|
aspect-ratio: var(--x-number-aspect-ratio-picture);
|
|
4948
4944
|
width: 100%;
|
|
4949
4945
|
}
|
|
4946
|
+
:root {
|
|
4947
|
+
--x-number-aspect-ratio-picture: 1;
|
|
4948
|
+
}
|
|
4950
4949
|
:root {
|
|
4951
4950
|
--x-size-border-radius-picture-default: 0;
|
|
4952
4951
|
--x-size-border-radius-top-picture-default: var(--x-size-border-radius-picture-default);
|
|
@@ -5025,6 +5024,10 @@
|
|
|
5025
5024
|
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
5026
5025
|
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
5027
5026
|
}
|
|
5027
|
+
:root {
|
|
5028
|
+
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
5029
|
+
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
5030
|
+
}
|
|
5028
5031
|
|
|
5029
5032
|
.x-picture--cover.x-picture {
|
|
5030
5033
|
position: relative;
|
|
@@ -5042,8 +5045,11 @@
|
|
|
5042
5045
|
height: 100%;
|
|
5043
5046
|
}
|
|
5044
5047
|
:root {
|
|
5045
|
-
--x-
|
|
5046
|
-
--x-
|
|
5048
|
+
--x-size-border-radius-picture-card: var(--x-size-border-radius-base-s);
|
|
5049
|
+
--x-size-border-radius-top-picture-card: var(--x-size-border-radius-picture-card);
|
|
5050
|
+
--x-size-border-radius-right-picture-card: var(--x-size-border-radius-picture-card);
|
|
5051
|
+
--x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
|
|
5052
|
+
--x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
|
|
5047
5053
|
}
|
|
5048
5054
|
:root {
|
|
5049
5055
|
--x-color-background-picture-colored: var(--x-color-base-neutral-95);
|
|
@@ -5077,13 +5083,6 @@
|
|
|
5077
5083
|
--x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
|
|
5078
5084
|
--x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
|
|
5079
5085
|
}
|
|
5080
|
-
:root {
|
|
5081
|
-
--x-size-border-radius-picture-card: var(--x-size-border-radius-base-s);
|
|
5082
|
-
--x-size-border-radius-top-picture-card: var(--x-size-border-radius-picture-card);
|
|
5083
|
-
--x-size-border-radius-right-picture-card: var(--x-size-border-radius-picture-card);
|
|
5084
|
-
--x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
|
|
5085
|
-
--x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
|
|
5086
|
-
}
|
|
5087
5086
|
|
|
5088
5087
|
.x-picture--card.x-picture {
|
|
5089
5088
|
--x-size-border-radius-picture-default: var(--x-size-border-radius-picture-card);
|
|
@@ -5172,86 +5171,6 @@
|
|
|
5172
5171
|
--x-number-font-weight-option-list-button-default: var(--x-number-font-weight-base-regular);
|
|
5173
5172
|
--x-number-font-weight-option-list-button-default-selected: var(--x-number-font-weight-base-bold);
|
|
5174
5173
|
}
|
|
5175
|
-
:root {
|
|
5176
|
-
--x-color-background-option-list-button-default: transparent;
|
|
5177
|
-
--x-color-border-option-list-button-default: transparent;
|
|
5178
|
-
--x-color-text-option-list-button-default: var(--x-color-base-neutral-35);
|
|
5179
|
-
--x-color-background-option-list-button-default-hover: var(
|
|
5180
|
-
--x-color-background-option-list-button-default
|
|
5181
|
-
);
|
|
5182
|
-
--x-color-border-option-list-button-default-hover: var(
|
|
5183
|
-
--x-color-border-option-list-button-default
|
|
5184
|
-
);
|
|
5185
|
-
--x-color-text-option-list-button-default-hover: var(--x-color-text-option-list-button-default);
|
|
5186
|
-
--x-color-background-option-list-button-default-selected: var(
|
|
5187
|
-
--x-color-background-option-list-button-default
|
|
5188
|
-
);
|
|
5189
|
-
--x-color-border-option-list-button-default-selected: var(
|
|
5190
|
-
--x-color-border-option-list-button-default
|
|
5191
|
-
);
|
|
5192
|
-
--x-color-text-option-list-button-default-selected: var(--x-color-text-default);
|
|
5193
|
-
--x-color-background-option-list-button-default-selected-hover: var(
|
|
5194
|
-
--x-color-background-option-list-button-default-selected
|
|
5195
|
-
);
|
|
5196
|
-
--x-color-border-option-list-button-default-selected-hover: var(
|
|
5197
|
-
--x-color-border-option-list-button-default-selected
|
|
5198
|
-
);
|
|
5199
|
-
--x-color-text-option-list-button-default-selected-hover: var(
|
|
5200
|
-
--x-color-text-option-list-button-default-selected
|
|
5201
|
-
);
|
|
5202
|
-
--x-color-border-option-list-item-default: var(--x-color-base-neutral-70);
|
|
5203
|
-
--x-color-border-top-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5204
|
-
--x-color-border-right-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5205
|
-
--x-color-border-bottom-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5206
|
-
--x-color-border-left-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5207
|
-
--x-color-border-option-list-item-default-selected: var(--x-color-base-neutral-70);
|
|
5208
|
-
--x-color-border-top-option-list-item-default-selected: var(
|
|
5209
|
-
--x-color-border-option-list-item-default-selected
|
|
5210
|
-
);
|
|
5211
|
-
--x-color-border-right-option-list-item-default-selected: var(
|
|
5212
|
-
--x-color-border-option-list-item-default-selected
|
|
5213
|
-
);
|
|
5214
|
-
--x-color-border-bottom-option-list-item-default-selected: var(
|
|
5215
|
-
--x-color-border-option-list-item-default-selected
|
|
5216
|
-
);
|
|
5217
|
-
--x-color-border-left-option-list-item-default-selected: var(
|
|
5218
|
-
--x-color-border-option-list-item-default-selected
|
|
5219
|
-
);
|
|
5220
|
-
--x-size-border-width-option-list-item-default: var(--x-size-border-width-base);
|
|
5221
|
-
--x-size-border-width-top-option-list-item-default: 0;
|
|
5222
|
-
--x-size-border-width-right-option-list-item-default: var(
|
|
5223
|
-
--x-size-border-width-option-list-item-default
|
|
5224
|
-
);
|
|
5225
|
-
--x-size-border-width-bottom-option-list-item-default: 0;
|
|
5226
|
-
--x-size-border-width-left-option-list-item-default: 0;
|
|
5227
|
-
--x-size-border-width-top-option-list-item-default-selected: var(
|
|
5228
|
-
--x-size-border-width-top-option-list-item-default
|
|
5229
|
-
);
|
|
5230
|
-
--x-size-border-width-right-option-list-item-default-selected: var(
|
|
5231
|
-
--x-size-border-width-right-option-list-item-default
|
|
5232
|
-
);
|
|
5233
|
-
--x-size-border-width-bottom-option-list-item-default-selected: var(
|
|
5234
|
-
--x-size-border-width-bottom-option-list-item-default
|
|
5235
|
-
);
|
|
5236
|
-
--x-size-border-width-left-option-list-item-default-selected: var(
|
|
5237
|
-
--x-size-border-width-left-option-list-item-default
|
|
5238
|
-
);
|
|
5239
|
-
--x-size-padding-option-list-button-default: var(--x-size-base-02);
|
|
5240
|
-
--x-size-padding-top-option-list-button-default: var(--x-size-padding-option-list-button-default);
|
|
5241
|
-
--x-size-padding-right-option-list-button-default: var(
|
|
5242
|
-
--x-size-padding-option-list-button-default
|
|
5243
|
-
);
|
|
5244
|
-
--x-size-padding-bottom-option-list-button-default: var(
|
|
5245
|
-
--x-size-padding-option-list-button-default
|
|
5246
|
-
);
|
|
5247
|
-
--x-size-padding-left-option-list-button-default: var(
|
|
5248
|
-
--x-size-padding-option-list-button-default
|
|
5249
|
-
);
|
|
5250
|
-
--x-font-decoration-option-list-button-default-hover: underline;
|
|
5251
|
-
--x-size-font-option-list-button-default: var(--x-size-font-text);
|
|
5252
|
-
--x-number-font-weight-option-list-button-default: var(--x-number-font-weight-base-regular);
|
|
5253
|
-
--x-number-font-weight-option-list-button-default-selected: var(--x-number-font-weight-base-bold);
|
|
5254
|
-
}
|
|
5255
5174
|
|
|
5256
5175
|
.x-option-list {
|
|
5257
5176
|
display: inline-flex;
|
|
@@ -5364,6 +5283,90 @@
|
|
|
5364
5283
|
-webkit-text-decoration: var(--x-font-decoration-option-list-button-default-hover);
|
|
5365
5284
|
text-decoration: var(--x-font-decoration-option-list-button-default-hover);
|
|
5366
5285
|
}
|
|
5286
|
+
:root {
|
|
5287
|
+
--x-color-background-option-list-button-default: transparent;
|
|
5288
|
+
--x-color-border-option-list-button-default: transparent;
|
|
5289
|
+
--x-color-text-option-list-button-default: var(--x-color-base-neutral-35);
|
|
5290
|
+
--x-color-background-option-list-button-default-hover: var(
|
|
5291
|
+
--x-color-background-option-list-button-default
|
|
5292
|
+
);
|
|
5293
|
+
--x-color-border-option-list-button-default-hover: var(
|
|
5294
|
+
--x-color-border-option-list-button-default
|
|
5295
|
+
);
|
|
5296
|
+
--x-color-text-option-list-button-default-hover: var(--x-color-text-option-list-button-default);
|
|
5297
|
+
--x-color-background-option-list-button-default-selected: var(
|
|
5298
|
+
--x-color-background-option-list-button-default
|
|
5299
|
+
);
|
|
5300
|
+
--x-color-border-option-list-button-default-selected: var(
|
|
5301
|
+
--x-color-border-option-list-button-default
|
|
5302
|
+
);
|
|
5303
|
+
--x-color-text-option-list-button-default-selected: var(--x-color-text-default);
|
|
5304
|
+
--x-color-background-option-list-button-default-selected-hover: var(
|
|
5305
|
+
--x-color-background-option-list-button-default-selected
|
|
5306
|
+
);
|
|
5307
|
+
--x-color-border-option-list-button-default-selected-hover: var(
|
|
5308
|
+
--x-color-border-option-list-button-default-selected
|
|
5309
|
+
);
|
|
5310
|
+
--x-color-text-option-list-button-default-selected-hover: var(
|
|
5311
|
+
--x-color-text-option-list-button-default-selected
|
|
5312
|
+
);
|
|
5313
|
+
--x-color-border-option-list-item-default: var(--x-color-base-neutral-70);
|
|
5314
|
+
--x-color-border-top-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5315
|
+
--x-color-border-right-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5316
|
+
--x-color-border-bottom-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5317
|
+
--x-color-border-left-option-list-item-default: var(--x-color-border-option-list-item-default);
|
|
5318
|
+
--x-color-border-option-list-item-default-selected: var(--x-color-base-neutral-70);
|
|
5319
|
+
--x-color-border-top-option-list-item-default-selected: var(
|
|
5320
|
+
--x-color-border-option-list-item-default-selected
|
|
5321
|
+
);
|
|
5322
|
+
--x-color-border-right-option-list-item-default-selected: var(
|
|
5323
|
+
--x-color-border-option-list-item-default-selected
|
|
5324
|
+
);
|
|
5325
|
+
--x-color-border-bottom-option-list-item-default-selected: var(
|
|
5326
|
+
--x-color-border-option-list-item-default-selected
|
|
5327
|
+
);
|
|
5328
|
+
--x-color-border-left-option-list-item-default-selected: var(
|
|
5329
|
+
--x-color-border-option-list-item-default-selected
|
|
5330
|
+
);
|
|
5331
|
+
--x-size-border-width-option-list-item-default: var(--x-size-border-width-base);
|
|
5332
|
+
--x-size-border-width-top-option-list-item-default: 0;
|
|
5333
|
+
--x-size-border-width-right-option-list-item-default: var(
|
|
5334
|
+
--x-size-border-width-option-list-item-default
|
|
5335
|
+
);
|
|
5336
|
+
--x-size-border-width-bottom-option-list-item-default: 0;
|
|
5337
|
+
--x-size-border-width-left-option-list-item-default: 0;
|
|
5338
|
+
--x-size-border-width-top-option-list-item-default-selected: var(
|
|
5339
|
+
--x-size-border-width-top-option-list-item-default
|
|
5340
|
+
);
|
|
5341
|
+
--x-size-border-width-right-option-list-item-default-selected: var(
|
|
5342
|
+
--x-size-border-width-right-option-list-item-default
|
|
5343
|
+
);
|
|
5344
|
+
--x-size-border-width-bottom-option-list-item-default-selected: var(
|
|
5345
|
+
--x-size-border-width-bottom-option-list-item-default
|
|
5346
|
+
);
|
|
5347
|
+
--x-size-border-width-left-option-list-item-default-selected: var(
|
|
5348
|
+
--x-size-border-width-left-option-list-item-default
|
|
5349
|
+
);
|
|
5350
|
+
--x-size-padding-option-list-button-default: var(--x-size-base-02);
|
|
5351
|
+
--x-size-padding-top-option-list-button-default: var(--x-size-padding-option-list-button-default);
|
|
5352
|
+
--x-size-padding-right-option-list-button-default: var(
|
|
5353
|
+
--x-size-padding-option-list-button-default
|
|
5354
|
+
);
|
|
5355
|
+
--x-size-padding-bottom-option-list-button-default: var(
|
|
5356
|
+
--x-size-padding-option-list-button-default
|
|
5357
|
+
);
|
|
5358
|
+
--x-size-padding-left-option-list-button-default: var(
|
|
5359
|
+
--x-size-padding-option-list-button-default
|
|
5360
|
+
);
|
|
5361
|
+
--x-font-decoration-option-list-button-default-hover: underline;
|
|
5362
|
+
--x-size-font-option-list-button-default: var(--x-size-font-text);
|
|
5363
|
+
--x-number-font-weight-option-list-button-default: var(--x-number-font-weight-base-regular);
|
|
5364
|
+
--x-number-font-weight-option-list-button-default-selected: var(--x-number-font-weight-base-bold);
|
|
5365
|
+
}
|
|
5366
|
+
:root {
|
|
5367
|
+
--x-modal-overlay-color: rgb(0, 0, 0);
|
|
5368
|
+
--x-modal-overlay-opacity: 0.7;
|
|
5369
|
+
}
|
|
5367
5370
|
:root {
|
|
5368
5371
|
--x-color-text-option-list-button-bottom-hover: var(--x-color-base-neutral-10);
|
|
5369
5372
|
--x-color-text-option-list-button-bottom-selected-hover: var(
|
|
@@ -5409,6 +5412,15 @@
|
|
|
5409
5412
|
--x-number-font-weight-base-regular
|
|
5410
5413
|
);
|
|
5411
5414
|
}
|
|
5415
|
+
:root {
|
|
5416
|
+
--x-modal-overlay-color: rgb(0, 0, 0);
|
|
5417
|
+
--x-modal-overlay-opacity: 0.7;
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
.x-modal__overlay {
|
|
5421
|
+
background-color: var(--x-modal-overlay-color) !important;
|
|
5422
|
+
opacity: var(--x-modal-overlay-opacity) !important;
|
|
5423
|
+
}
|
|
5412
5424
|
:root {
|
|
5413
5425
|
--x-color-text-option-list-button-bottom-hover: var(--x-color-base-neutral-10);
|
|
5414
5426
|
--x-color-text-option-list-button-bottom-selected-hover: var(
|
|
@@ -5540,19 +5552,6 @@
|
|
|
5540
5552
|
--x-size-border-width-bottom-option-list-item-default: inherit;
|
|
5541
5553
|
--x-size-border-width-left-option-list-item-default: inherit;
|
|
5542
5554
|
}
|
|
5543
|
-
:root {
|
|
5544
|
-
--x-modal-overlay-color: rgb(0, 0, 0);
|
|
5545
|
-
--x-modal-overlay-opacity: 0.7;
|
|
5546
|
-
}
|
|
5547
|
-
:root {
|
|
5548
|
-
--x-modal-overlay-color: rgb(0, 0, 0);
|
|
5549
|
-
--x-modal-overlay-opacity: 0.7;
|
|
5550
|
-
}
|
|
5551
|
-
|
|
5552
|
-
.x-modal__overlay {
|
|
5553
|
-
background-color: var(--x-modal-overlay-color) !important;
|
|
5554
|
-
opacity: var(--x-modal-overlay-opacity) !important;
|
|
5555
|
-
}
|
|
5556
5555
|
:root {
|
|
5557
5556
|
--x-string-justify-message-default: center;
|
|
5558
5557
|
--x-size-gap-message-default: var(--x-size-base-03);
|
|
@@ -5574,46 +5573,9 @@
|
|
|
5574
5573
|
--x-size-font-message-default: var(--x-size-font-title3);
|
|
5575
5574
|
--x-number-font-weight-message-default: var(--x-number-font-weight-title3);
|
|
5576
5575
|
}
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
--x-size-padding-list-02: var(--x-size-base-02);
|
|
5581
|
-
--x-size-padding-list-03: var(--x-size-base-03);
|
|
5582
|
-
--x-size-padding-list-04: var(--x-size-base-04);
|
|
5583
|
-
--x-size-padding-list-05: var(--x-size-base-05);
|
|
5584
|
-
--x-size-padding-list-06: var(--x-size-base-06);
|
|
5585
|
-
--x-size-padding-list-07: var(--x-size-base-07);
|
|
5586
|
-
--x-size-padding-list-08: var(--x-size-base-08);
|
|
5587
|
-
--x-size-padding-list-09: var(--x-size-base-09);
|
|
5588
|
-
--x-size-padding-list-10: var(--x-size-base-10);
|
|
5589
|
-
--x-size-padding-list-11: var(--x-size-base-11);
|
|
5590
|
-
--x-size-padding-list-12: var(--x-size-base-12);
|
|
5591
|
-
--x-size-padding-list-13: var(--x-size-base-13);
|
|
5592
|
-
}
|
|
5593
|
-
:root {
|
|
5594
|
-
--x-string-justify-message-default: center;
|
|
5595
|
-
--x-size-gap-message-default: var(--x-size-base-03);
|
|
5596
|
-
--x-size-padding-message-default: var(--x-size-base-06);
|
|
5597
|
-
--x-color-background-message-default: var(--x-color-base-neutral-95);
|
|
5598
|
-
--x-color-border-message-default: var(--x-color-background-message-default);
|
|
5599
|
-
--x-color-text-message-default: var(--x-color-text-default);
|
|
5600
|
-
--x-size-border-radius-message-default: var(--x-size-border-radius-base-m);
|
|
5601
|
-
--x-size-border-radius-top-left-message-default: var(--x-size-border-radius-message-default);
|
|
5602
|
-
--x-size-border-radius-top-right-message-default: var(--x-size-border-radius-message-default);
|
|
5603
|
-
--x-size-border-radius-bottom-right-message-default: var(--x-size-border-radius-message-default);
|
|
5604
|
-
--x-size-border-radius-bottom-left-message-default: var(--x-size-border-radius-message-default);
|
|
5605
|
-
--x-size-border-width-message-default: var(--x-size-border-width-base);
|
|
5606
|
-
--x-size-border-width-top-message-default: var(--x-size-border-width-message-default);
|
|
5607
|
-
--x-size-border-width-right-message-default: var(--x-size-border-width-message-default);
|
|
5608
|
-
--x-size-border-width-bottom-message-default: var(--x-size-border-width-message-default);
|
|
5609
|
-
--x-size-border-width-left-message-default: var(--x-size-border-width-message-default);
|
|
5610
|
-
--x-font-family-message-default: var(--x-font-family-title3);
|
|
5611
|
-
--x-size-font-message-default: var(--x-size-font-title3);
|
|
5612
|
-
--x-number-font-weight-message-default: var(--x-number-font-weight-title3);
|
|
5613
|
-
}
|
|
5614
|
-
|
|
5615
|
-
[dir="ltr"] .x-message {
|
|
5616
|
-
border-left-width: var(--x-size-border-width-left-message-default);
|
|
5576
|
+
|
|
5577
|
+
[dir="ltr"] .x-message {
|
|
5578
|
+
border-left-width: var(--x-size-border-width-left-message-default);
|
|
5617
5579
|
}
|
|
5618
5580
|
|
|
5619
5581
|
[dir="rtl"] .x-message {
|
|
@@ -5661,6 +5623,27 @@
|
|
|
5661
5623
|
.x-message > p {
|
|
5662
5624
|
margin: 0;
|
|
5663
5625
|
}
|
|
5626
|
+
:root {
|
|
5627
|
+
--x-string-justify-message-default: center;
|
|
5628
|
+
--x-size-gap-message-default: var(--x-size-base-03);
|
|
5629
|
+
--x-size-padding-message-default: var(--x-size-base-06);
|
|
5630
|
+
--x-color-background-message-default: var(--x-color-base-neutral-95);
|
|
5631
|
+
--x-color-border-message-default: var(--x-color-background-message-default);
|
|
5632
|
+
--x-color-text-message-default: var(--x-color-text-default);
|
|
5633
|
+
--x-size-border-radius-message-default: var(--x-size-border-radius-base-m);
|
|
5634
|
+
--x-size-border-radius-top-left-message-default: var(--x-size-border-radius-message-default);
|
|
5635
|
+
--x-size-border-radius-top-right-message-default: var(--x-size-border-radius-message-default);
|
|
5636
|
+
--x-size-border-radius-bottom-right-message-default: var(--x-size-border-radius-message-default);
|
|
5637
|
+
--x-size-border-radius-bottom-left-message-default: var(--x-size-border-radius-message-default);
|
|
5638
|
+
--x-size-border-width-message-default: var(--x-size-border-width-base);
|
|
5639
|
+
--x-size-border-width-top-message-default: var(--x-size-border-width-message-default);
|
|
5640
|
+
--x-size-border-width-right-message-default: var(--x-size-border-width-message-default);
|
|
5641
|
+
--x-size-border-width-bottom-message-default: var(--x-size-border-width-message-default);
|
|
5642
|
+
--x-size-border-width-left-message-default: var(--x-size-border-width-message-default);
|
|
5643
|
+
--x-font-family-message-default: var(--x-font-family-title3);
|
|
5644
|
+
--x-size-font-message-default: var(--x-size-font-title3);
|
|
5645
|
+
--x-number-font-weight-message-default: var(--x-number-font-weight-title3);
|
|
5646
|
+
}
|
|
5664
5647
|
/* @deprecated */
|
|
5665
5648
|
:root {
|
|
5666
5649
|
--x-size-padding-list-01: var(--x-size-base-01);
|
|
@@ -6001,6 +5984,22 @@
|
|
|
6001
5984
|
margin-right: var(--x-size-gap-list-13);
|
|
6002
5985
|
}
|
|
6003
5986
|
}
|
|
5987
|
+
/* @deprecated */
|
|
5988
|
+
:root {
|
|
5989
|
+
--x-size-padding-list-01: var(--x-size-base-01);
|
|
5990
|
+
--x-size-padding-list-02: var(--x-size-base-02);
|
|
5991
|
+
--x-size-padding-list-03: var(--x-size-base-03);
|
|
5992
|
+
--x-size-padding-list-04: var(--x-size-base-04);
|
|
5993
|
+
--x-size-padding-list-05: var(--x-size-base-05);
|
|
5994
|
+
--x-size-padding-list-06: var(--x-size-base-06);
|
|
5995
|
+
--x-size-padding-list-07: var(--x-size-base-07);
|
|
5996
|
+
--x-size-padding-list-08: var(--x-size-base-08);
|
|
5997
|
+
--x-size-padding-list-09: var(--x-size-base-09);
|
|
5998
|
+
--x-size-padding-list-10: var(--x-size-base-10);
|
|
5999
|
+
--x-size-padding-list-11: var(--x-size-base-11);
|
|
6000
|
+
--x-size-padding-list-12: var(--x-size-base-12);
|
|
6001
|
+
--x-size-padding-list-13: var(--x-size-base-13);
|
|
6002
|
+
}
|
|
6004
6003
|
:root {
|
|
6005
6004
|
--x-size-gap-list-01: var(--x-size-base-01);
|
|
6006
6005
|
--x-size-gap-list-02: var(--x-size-base-02);
|
|
@@ -6553,6 +6552,14 @@
|
|
|
6553
6552
|
--x-size-align-list: stretch;
|
|
6554
6553
|
--x-size-align-list-stretch: stretch;
|
|
6555
6554
|
}
|
|
6555
|
+
:root {
|
|
6556
|
+
--x-string-flow-list: column nowrap;
|
|
6557
|
+
--x-size-padding-list: 0;
|
|
6558
|
+
--x-size-gap-list: 0;
|
|
6559
|
+
--x-size-justify-list: stretch;
|
|
6560
|
+
--x-size-align-list: stretch;
|
|
6561
|
+
--x-size-align-list-stretch: stretch;
|
|
6562
|
+
}
|
|
6556
6563
|
|
|
6557
6564
|
.x-list {
|
|
6558
6565
|
display: flex;
|
|
@@ -6693,14 +6700,6 @@
|
|
|
6693
6700
|
.x-list > .x-list__item--12 {
|
|
6694
6701
|
flex: 12 1 auto;
|
|
6695
6702
|
}
|
|
6696
|
-
:root {
|
|
6697
|
-
--x-string-flow-list: column nowrap;
|
|
6698
|
-
--x-size-padding-list: 0;
|
|
6699
|
-
--x-size-gap-list: 0;
|
|
6700
|
-
--x-size-justify-list: stretch;
|
|
6701
|
-
--x-size-align-list: stretch;
|
|
6702
|
-
--x-size-align-list-stretch: stretch;
|
|
6703
|
-
}
|
|
6704
6703
|
:root {
|
|
6705
6704
|
--x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
|
|
6706
6705
|
--x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
@@ -7021,15 +7020,6 @@
|
|
|
7021
7020
|
);
|
|
7022
7021
|
--x-size-border-radius-bottom-left-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7023
7022
|
}
|
|
7024
|
-
:root {
|
|
7025
|
-
--x-size-border-radius-input-group-card: var(--x-size-border-radius-base-s);
|
|
7026
|
-
--x-size-border-radius-top-left-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7027
|
-
--x-size-border-radius-top-right-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7028
|
-
--x-size-border-radius-bottom-right-input-group-card: var(
|
|
7029
|
-
--x-size-border-radius-input-group-card
|
|
7030
|
-
);
|
|
7031
|
-
--x-size-border-radius-bottom-left-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7032
|
-
}
|
|
7033
7023
|
|
|
7034
7024
|
.x-input-group--card.x-input-group,
|
|
7035
7025
|
.x-input-group--card .x-input-group {
|
|
@@ -7057,6 +7047,15 @@
|
|
|
7057
7047
|
--x-size-border-radius-top-left-input-group-default: 0;
|
|
7058
7048
|
--x-size-border-radius-bottom-left-input-group-default: 0;
|
|
7059
7049
|
}
|
|
7050
|
+
:root {
|
|
7051
|
+
--x-size-border-radius-input-group-card: var(--x-size-border-radius-base-s);
|
|
7052
|
+
--x-size-border-radius-top-left-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7053
|
+
--x-size-border-radius-top-right-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7054
|
+
--x-size-border-radius-bottom-right-input-group-card: var(
|
|
7055
|
+
--x-size-border-radius-input-group-card
|
|
7056
|
+
);
|
|
7057
|
+
--x-size-border-radius-bottom-left-input-group-card: var(--x-size-border-radius-input-group-card);
|
|
7058
|
+
}
|
|
7060
7059
|
:root {
|
|
7061
7060
|
--x-size-border-radius-input-pill: var(--x-size-border-radius-base-pill);
|
|
7062
7061
|
--x-size-border-radius-top-left-input-pill: var(--x-size-border-radius-input-pill);
|
|
@@ -7090,6 +7089,28 @@
|
|
|
7090
7089
|
--x-size-border-width-bottom-input-line: var(--x-size-border-width-base);
|
|
7091
7090
|
--x-size-border-width-left-input-line: 0;
|
|
7092
7091
|
}
|
|
7092
|
+
:root {
|
|
7093
|
+
--x-size-padding-top-input-line: var(--x-size-base-03);
|
|
7094
|
+
--x-size-padding-right-input-line: 0;
|
|
7095
|
+
--x-size-padding-bottom-input-line: var(--x-size-base-03);
|
|
7096
|
+
--x-size-padding-left-input-line: 0;
|
|
7097
|
+
--x-size-border-width-top-input-line: 0;
|
|
7098
|
+
--x-size-border-width-right-input-line: 0;
|
|
7099
|
+
--x-size-border-width-bottom-input-line: var(--x-size-border-width-base);
|
|
7100
|
+
--x-size-border-width-left-input-line: 0;
|
|
7101
|
+
}
|
|
7102
|
+
|
|
7103
|
+
.x-input--line .x-input,
|
|
7104
|
+
.x-input--line.x-input {
|
|
7105
|
+
--x-size-padding-top-input-default: var(--x-size-padding-top-input-line);
|
|
7106
|
+
--x-size-padding-right-input-default: var(--x-size-padding-right-input-line);
|
|
7107
|
+
--x-size-padding-bottom-input-default: var(--x-size-padding-bottom-input-line);
|
|
7108
|
+
--x-size-padding-left-input-default: var(--x-size-padding-left-input-line);
|
|
7109
|
+
--x-size-border-width-top-input-default: var(--x-size-border-width-top-input-line);
|
|
7110
|
+
--x-size-border-width-right-input-default: var(--x-size-border-width-right-input-line);
|
|
7111
|
+
--x-size-border-width-bottom-input-default: var(--x-size-border-width-bottom-input-line);
|
|
7112
|
+
--x-size-border-width-left-input-default: var(--x-size-border-width-left-input-line);
|
|
7113
|
+
}
|
|
7093
7114
|
:root {
|
|
7094
7115
|
--x-color-background-input-default: var(--x-color-base-neutral-100);
|
|
7095
7116
|
--x-color-border-input-default: var(--x-color-base-neutral-70);
|
|
@@ -7118,28 +7139,6 @@
|
|
|
7118
7139
|
--x-size-line-height-input-placeholder-default: var(--x-size-line-height-input-default);
|
|
7119
7140
|
--x-number-font-weight-input-placeholder-default: var(--x-number-font-weight-input-default);
|
|
7120
7141
|
}
|
|
7121
|
-
:root {
|
|
7122
|
-
--x-size-padding-top-input-line: var(--x-size-base-03);
|
|
7123
|
-
--x-size-padding-right-input-line: 0;
|
|
7124
|
-
--x-size-padding-bottom-input-line: var(--x-size-base-03);
|
|
7125
|
-
--x-size-padding-left-input-line: 0;
|
|
7126
|
-
--x-size-border-width-top-input-line: 0;
|
|
7127
|
-
--x-size-border-width-right-input-line: 0;
|
|
7128
|
-
--x-size-border-width-bottom-input-line: var(--x-size-border-width-base);
|
|
7129
|
-
--x-size-border-width-left-input-line: 0;
|
|
7130
|
-
}
|
|
7131
|
-
|
|
7132
|
-
.x-input--line .x-input,
|
|
7133
|
-
.x-input--line.x-input {
|
|
7134
|
-
--x-size-padding-top-input-default: var(--x-size-padding-top-input-line);
|
|
7135
|
-
--x-size-padding-right-input-default: var(--x-size-padding-right-input-line);
|
|
7136
|
-
--x-size-padding-bottom-input-default: var(--x-size-padding-bottom-input-line);
|
|
7137
|
-
--x-size-padding-left-input-default: var(--x-size-padding-left-input-line);
|
|
7138
|
-
--x-size-border-width-top-input-default: var(--x-size-border-width-top-input-line);
|
|
7139
|
-
--x-size-border-width-right-input-default: var(--x-size-border-width-right-input-line);
|
|
7140
|
-
--x-size-border-width-bottom-input-default: var(--x-size-border-width-bottom-input-line);
|
|
7141
|
-
--x-size-border-width-left-input-default: var(--x-size-border-width-left-input-line);
|
|
7142
|
-
}
|
|
7143
7142
|
:root {
|
|
7144
7143
|
--x-color-background-input-default: var(--x-color-base-neutral-100);
|
|
7145
7144
|
--x-color-border-input-default: var(--x-color-base-neutral-70);
|
|
@@ -7255,13 +7254,6 @@
|
|
|
7255
7254
|
--x-size-border-radius-bottom-right-input-card: var(--x-size-border-radius-input-card);
|
|
7256
7255
|
--x-size-border-radius-bottom-left-input-card: var(--x-size-border-radius-input-card);
|
|
7257
7256
|
}
|
|
7258
|
-
:root {
|
|
7259
|
-
--x-size-border-radius-input-card: var(--x-size-border-radius-base-s);
|
|
7260
|
-
--x-size-border-radius-top-left-input-card: var(--x-size-border-radius-input-card);
|
|
7261
|
-
--x-size-border-radius-top-right-input-card: var(--x-size-border-radius-input-card);
|
|
7262
|
-
--x-size-border-radius-bottom-right-input-card: var(--x-size-border-radius-input-card);
|
|
7263
|
-
--x-size-border-radius-bottom-left-input-card: var(--x-size-border-radius-input-card);
|
|
7264
|
-
}
|
|
7265
7257
|
|
|
7266
7258
|
.x-input--card.x-input,
|
|
7267
7259
|
.x-input--card .x-input {
|
|
@@ -7288,6 +7280,13 @@
|
|
|
7288
7280
|
--x-size-width-icon-default: var(--x-size-width-icon-xl);
|
|
7289
7281
|
--x-size-height-icon-default: var(--x-size-height-icon-xl);
|
|
7290
7282
|
}
|
|
7283
|
+
:root {
|
|
7284
|
+
--x-size-border-radius-input-card: var(--x-size-border-radius-base-s);
|
|
7285
|
+
--x-size-border-radius-top-left-input-card: var(--x-size-border-radius-input-card);
|
|
7286
|
+
--x-size-border-radius-top-right-input-card: var(--x-size-border-radius-input-card);
|
|
7287
|
+
--x-size-border-radius-bottom-right-input-card: var(--x-size-border-radius-input-card);
|
|
7288
|
+
--x-size-border-radius-bottom-left-input-card: var(--x-size-border-radius-input-card);
|
|
7289
|
+
}
|
|
7291
7290
|
:root {
|
|
7292
7291
|
--x-size-width-icon-s: var(--x-size-base-03);
|
|
7293
7292
|
--x-size-height-icon-s: var(--x-size-base-03);
|
|
@@ -7305,15 +7304,15 @@
|
|
|
7305
7304
|
--x-size-width-icon-m: var(--x-size-base-05);
|
|
7306
7305
|
--x-size-height-icon-m: var(--x-size-base-05);
|
|
7307
7306
|
}
|
|
7308
|
-
:root {
|
|
7309
|
-
--x-size-width-icon-m: var(--x-size-base-05);
|
|
7310
|
-
--x-size-height-icon-m: var(--x-size-base-05);
|
|
7311
|
-
}
|
|
7312
7307
|
|
|
7313
7308
|
.x-icon--m {
|
|
7314
7309
|
--x-size-width-icon-default: var(--x-size-width-icon-m);
|
|
7315
7310
|
--x-size-height-icon-default: var(--x-size-height-icon-m);
|
|
7316
7311
|
}
|
|
7312
|
+
:root {
|
|
7313
|
+
--x-size-width-icon-m: var(--x-size-base-05);
|
|
7314
|
+
--x-size-height-icon-m: var(--x-size-base-05);
|
|
7315
|
+
}
|
|
7317
7316
|
:root {
|
|
7318
7317
|
--x-size-width-icon-l: var(--x-size-base-06);
|
|
7319
7318
|
--x-size-height-icon-l: var(--x-size-base-06);
|
|
@@ -7397,19 +7396,6 @@
|
|
|
7397
7396
|
.x-grid-list--cols-auto .x-grid-list__item {
|
|
7398
7397
|
min-width: var(--x-size-min-width-grid-item);
|
|
7399
7398
|
}
|
|
7400
|
-
.x-filter--justified.x-filter > *:last-child:not(.x-filter__label),
|
|
7401
|
-
.x-filter--justified.x-facet-filter > *:last-child:not(.x-filter__label),
|
|
7402
|
-
.x-filter--justified .x-filter > *:last-child:not(.x-filter__label),
|
|
7403
|
-
.x-filter--justified .x-facet-filter > *:last-child:not(.x-filter__label) {
|
|
7404
|
-
margin-left: auto;
|
|
7405
|
-
}
|
|
7406
|
-
:root {
|
|
7407
|
-
--x-size-margin-filter-children: 0;
|
|
7408
|
-
--x-size-padding-top-filter-children: 0;
|
|
7409
|
-
--x-size-padding-right-filter-children: 0;
|
|
7410
|
-
--x-size-padding-bottom-filter-children: 0;
|
|
7411
|
-
--x-size-padding-left-filter-children: var(--x-size-base-05);
|
|
7412
|
-
}
|
|
7413
7399
|
:root {
|
|
7414
7400
|
--x-size-margin-filter-children: 0;
|
|
7415
7401
|
--x-size-padding-top-filter-children: 0;
|
|
@@ -7417,30 +7403,11 @@
|
|
|
7417
7403
|
--x-size-padding-bottom-filter-children: 0;
|
|
7418
7404
|
--x-size-padding-left-filter-children: var(--x-size-base-05);
|
|
7419
7405
|
}
|
|
7420
|
-
|
|
7421
|
-
.x-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
padding-left: var(--x-size-padding-left-filter-children);
|
|
7426
|
-
}
|
|
7427
|
-
[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7428
|
-
padding-right: var(--x-size-padding-left-filter-children);
|
|
7429
|
-
}
|
|
7430
|
-
[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7431
|
-
padding-right: var(--x-size-padding-right-filter-children);
|
|
7432
|
-
}
|
|
7433
|
-
[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7434
|
-
padding-left: var(--x-size-padding-right-filter-children);
|
|
7435
|
-
}
|
|
7436
|
-
.x-hierarchical-filter-container .x-hierarchical-filter__children, .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7437
|
-
margin: var(--x-size-margin-filter-children);
|
|
7438
|
-
padding-top: var(--x-size-padding-top-filter-children);
|
|
7439
|
-
padding-bottom: var(--x-size-padding-bottom-filter-children);
|
|
7440
|
-
}
|
|
7441
|
-
.x-hierarchical-filter-container .x-hierarchical-filter-container,
|
|
7442
|
-
.x-hierarchical-filter-container .x-filter, .x-hierarchical-filter-container .x-facet-filter {
|
|
7443
|
-
width: 100%;
|
|
7406
|
+
.x-filter--justified.x-filter > *:last-child:not(.x-filter__label),
|
|
7407
|
+
.x-filter--justified.x-facet-filter > *:last-child:not(.x-filter__label),
|
|
7408
|
+
.x-filter--justified .x-filter > *:last-child:not(.x-filter__label),
|
|
7409
|
+
.x-filter--justified .x-facet-filter > *:last-child:not(.x-filter__label) {
|
|
7410
|
+
margin-left: auto;
|
|
7444
7411
|
}
|
|
7445
7412
|
:root {
|
|
7446
7413
|
--x-color-background-filter-default: transparent;
|
|
@@ -7474,6 +7441,38 @@
|
|
|
7474
7441
|
);
|
|
7475
7442
|
--x-size-line-height-filter-default: var(--x-size-line-height-text);
|
|
7476
7443
|
}
|
|
7444
|
+
:root {
|
|
7445
|
+
--x-size-margin-filter-children: 0;
|
|
7446
|
+
--x-size-padding-top-filter-children: 0;
|
|
7447
|
+
--x-size-padding-right-filter-children: 0;
|
|
7448
|
+
--x-size-padding-bottom-filter-children: 0;
|
|
7449
|
+
--x-size-padding-left-filter-children: var(--x-size-base-05);
|
|
7450
|
+
}
|
|
7451
|
+
|
|
7452
|
+
.x-hierarchical-filter-container {
|
|
7453
|
+
list-style: none;
|
|
7454
|
+
}
|
|
7455
|
+
[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7456
|
+
padding-left: var(--x-size-padding-left-filter-children);
|
|
7457
|
+
}
|
|
7458
|
+
[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7459
|
+
padding-right: var(--x-size-padding-left-filter-children);
|
|
7460
|
+
}
|
|
7461
|
+
[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="ltr"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7462
|
+
padding-right: var(--x-size-padding-right-filter-children);
|
|
7463
|
+
}
|
|
7464
|
+
[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children,[dir="rtl"] .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7465
|
+
padding-left: var(--x-size-padding-right-filter-children);
|
|
7466
|
+
}
|
|
7467
|
+
.x-hierarchical-filter-container .x-hierarchical-filter__children, .x-hierarchical-filter-container .x-hierarchical-filter__children.x-list {
|
|
7468
|
+
margin: var(--x-size-margin-filter-children);
|
|
7469
|
+
padding-top: var(--x-size-padding-top-filter-children);
|
|
7470
|
+
padding-bottom: var(--x-size-padding-bottom-filter-children);
|
|
7471
|
+
}
|
|
7472
|
+
.x-hierarchical-filter-container .x-hierarchical-filter-container,
|
|
7473
|
+
.x-hierarchical-filter-container .x-filter, .x-hierarchical-filter-container .x-facet-filter {
|
|
7474
|
+
width: 100%;
|
|
7475
|
+
}
|
|
7477
7476
|
:root {
|
|
7478
7477
|
--x-color-background-filter-default: transparent;
|
|
7479
7478
|
--x-color-border-filter-default: var(--x-color-background-filter-default);
|
|
@@ -8417,6 +8416,27 @@
|
|
|
8417
8416
|
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8418
8417
|
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8419
8418
|
}
|
|
8419
|
+
:root {
|
|
8420
|
+
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8421
|
+
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8422
|
+
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8423
|
+
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8424
|
+
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8425
|
+
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8426
|
+
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8427
|
+
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8428
|
+
}
|
|
8429
|
+
|
|
8430
|
+
.x-button--tertiary.x-button,
|
|
8431
|
+
.x-button--tertiary .x-button {
|
|
8432
|
+
--x-color-background-button-default: var(--x-color-background-button-tertiary);
|
|
8433
|
+
--x-color-border-button-default: var(--x-color-border-button-tertiary);
|
|
8434
|
+
--x-color-text-button-default: var(--x-color-text-button-tertiary);
|
|
8435
|
+
--x-size-border-width-top-button-default: var(--x-size-border-width-top-button-tertiary);
|
|
8436
|
+
--x-size-border-width-right-button-default: var(--x-size-border-width-right-button-tertiary);
|
|
8437
|
+
--x-size-border-width-bottom-button-default: var(--x-size-border-width-bottom-button-tertiary);
|
|
8438
|
+
--x-size-border-width-left-button-default: var(--x-size-border-width-left-button-tertiary);
|
|
8439
|
+
}
|
|
8420
8440
|
:root {
|
|
8421
8441
|
--x-color-background-button-secondary: transparent;
|
|
8422
8442
|
--x-color-border-button-secondary: var(--x-color-border-button-default);
|
|
@@ -8448,27 +8468,6 @@
|
|
|
8448
8468
|
--x-size-border-width-bottom-button-default: var(--x-size-border-width-bottom-button-secondary);
|
|
8449
8469
|
--x-size-border-width-left-button-default: var(--x-size-border-width-left-button-secondary);
|
|
8450
8470
|
}
|
|
8451
|
-
:root {
|
|
8452
|
-
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8453
|
-
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8454
|
-
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8455
|
-
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8456
|
-
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8457
|
-
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8458
|
-
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8459
|
-
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8460
|
-
}
|
|
8461
|
-
|
|
8462
|
-
.x-button--tertiary.x-button,
|
|
8463
|
-
.x-button--tertiary .x-button {
|
|
8464
|
-
--x-color-background-button-default: var(--x-color-background-button-tertiary);
|
|
8465
|
-
--x-color-border-button-default: var(--x-color-border-button-tertiary);
|
|
8466
|
-
--x-color-text-button-default: var(--x-color-text-button-tertiary);
|
|
8467
|
-
--x-size-border-width-top-button-default: var(--x-size-border-width-top-button-tertiary);
|
|
8468
|
-
--x-size-border-width-right-button-default: var(--x-size-border-width-right-button-tertiary);
|
|
8469
|
-
--x-size-border-width-bottom-button-default: var(--x-size-border-width-bottom-button-tertiary);
|
|
8470
|
-
--x-size-border-width-left-button-default: var(--x-size-border-width-left-button-tertiary);
|
|
8471
|
-
}
|
|
8472
8471
|
:root {
|
|
8473
8472
|
--x-size-border-radius-button-round: var(--x-size-border-radius-base-pill);
|
|
8474
8473
|
--x-size-border-radius-top-left-button-round: var(--x-size-border-radius-button-round);
|
|
@@ -8566,6 +8565,11 @@
|
|
|
8566
8565
|
--x-color-border-button-ghost: transparent;
|
|
8567
8566
|
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8568
8567
|
}
|
|
8568
|
+
:root {
|
|
8569
|
+
--x-color-background-button-ghost: transparent;
|
|
8570
|
+
--x-color-border-button-ghost: transparent;
|
|
8571
|
+
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8572
|
+
}
|
|
8569
8573
|
|
|
8570
8574
|
.x-button--ghost.x-button,
|
|
8571
8575
|
.x-button--ghost .x-button {
|
|
@@ -8583,11 +8587,6 @@
|
|
|
8583
8587
|
.x-button--ghost.x-button--ghost-end .x-button {
|
|
8584
8588
|
--x-size-padding-right-button-default: 0;
|
|
8585
8589
|
}
|
|
8586
|
-
:root {
|
|
8587
|
-
--x-color-background-button-ghost: transparent;
|
|
8588
|
-
--x-color-border-button-ghost: transparent;
|
|
8589
|
-
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8590
|
-
}
|
|
8591
8590
|
:root {
|
|
8592
8591
|
--x-color-background-button-default: var(--x-color-base-lead);
|
|
8593
8592
|
--x-color-border-button-default: var(--x-color-background-button-default);
|
|
@@ -8611,6 +8610,13 @@
|
|
|
8611
8610
|
--x-number-font-weight-button-default: var(--x-number-font-weight-base-bold);
|
|
8612
8611
|
--x-size-line-height-button-default: var(--x-size-line-height-text);
|
|
8613
8612
|
}
|
|
8613
|
+
:root {
|
|
8614
|
+
--x-size-border-radius-button-card: var(--x-size-border-radius-base-s);
|
|
8615
|
+
--x-size-border-radius-top-left-button-card: var(--x-size-border-radius-button-card);
|
|
8616
|
+
--x-size-border-radius-top-right-button-card: var(--x-size-border-radius-button-card);
|
|
8617
|
+
--x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
|
|
8618
|
+
--x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
|
|
8619
|
+
}
|
|
8614
8620
|
:root {
|
|
8615
8621
|
--x-color-background-button-default: var(--x-color-base-lead);
|
|
8616
8622
|
--x-color-border-button-default: var(--x-color-background-button-default);
|
|
@@ -8728,6 +8734,16 @@
|
|
|
8728
8734
|
--x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
|
|
8729
8735
|
--x-size-font-badge-default: var(--x-size-font-base-xs);
|
|
8730
8736
|
}
|
|
8737
|
+
:root {
|
|
8738
|
+
--x-color-background-badge-default: var(--x-color-base-neutral-10);
|
|
8739
|
+
--x-color-text-badge-default: var(--x-color-base-neutral-100);
|
|
8740
|
+
--x-color-border-badge-default: var(--x-color-base-neutral-10);
|
|
8741
|
+
--x-size-border-radius-badge-default: var(--x-size-border-radius-base-pill);
|
|
8742
|
+
--x-size-border-width-badge-default: 0;
|
|
8743
|
+
--x-size-width-badge-default: 1.5em;
|
|
8744
|
+
--x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
|
|
8745
|
+
--x-size-font-badge-default: var(--x-size-font-base-xs);
|
|
8746
|
+
}
|
|
8731
8747
|
|
|
8732
8748
|
[dir="ltr"] .x-badge {
|
|
8733
8749
|
right: calc(var(--x-size-width-badge-default) / 4);
|
|
@@ -8767,16 +8783,6 @@
|
|
|
8767
8783
|
.x-badge-container {
|
|
8768
8784
|
position: relative;
|
|
8769
8785
|
}
|
|
8770
|
-
:root {
|
|
8771
|
-
--x-color-background-badge-default: var(--x-color-base-neutral-10);
|
|
8772
|
-
--x-color-text-badge-default: var(--x-color-base-neutral-100);
|
|
8773
|
-
--x-color-border-badge-default: var(--x-color-base-neutral-10);
|
|
8774
|
-
--x-size-border-radius-badge-default: var(--x-size-border-radius-base-pill);
|
|
8775
|
-
--x-size-border-width-badge-default: 0;
|
|
8776
|
-
--x-size-width-badge-default: 1.5em;
|
|
8777
|
-
--x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
|
|
8778
|
-
--x-size-font-badge-default: var(--x-size-font-base-xs);
|
|
8779
|
-
}
|
|
8780
8786
|
:root {
|
|
8781
8787
|
--x-size-base-01: 2px;
|
|
8782
8788
|
--x-size-base-02: 4px;
|
|
@@ -8819,10 +8825,3 @@
|
|
|
8819
8825
|
--x-size-border-radius-base-pill: 99999px;
|
|
8820
8826
|
--x-size-border-width-base: 1px;
|
|
8821
8827
|
}
|
|
8822
|
-
:root {
|
|
8823
|
-
--x-size-border-radius-button-card: var(--x-size-border-radius-base-s);
|
|
8824
|
-
--x-size-border-radius-top-left-button-card: var(--x-size-border-radius-button-card);
|
|
8825
|
-
--x-size-border-radius-top-right-button-card: var(--x-size-border-radius-button-card);
|
|
8826
|
-
--x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
|
|
8827
|
-
--x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
|
|
8828
|
-
}
|
|
@@ -25,7 +25,7 @@ _default: import("vue").DefineComponent<{
|
|
|
25
25
|
}, {
|
|
26
26
|
close: () => void;
|
|
27
27
|
empathizeRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
28
|
-
hasContent: import("vue").
|
|
28
|
+
hasContent: import("vue").ComputedRef<boolean>;
|
|
29
29
|
isOpen: import("vue").Ref<boolean>;
|
|
30
30
|
open: () => void;
|
|
31
31
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathize.vue.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpen && hasContent\"\n ref=\"empathizeRef\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType, ref } from 'vue';\n import { NoAnimation } from '../../../components';\n import { use$x, useDebounce } from '../../../composables';\n import { AnimationProp } from '../../../types';\n import { XEvent } from '../../../wiring';\n import { empathizeXModule } from '../x-module';\n import { getActiveElement } from '../../../utils/html';\n\n /**\n * Component containing the empathize. It has a required slot to define its content and two props\n * to define when to open and close it: `eventsToOpenEmpathize` and `eventsToCloseEmpathize`.\n *\n * @public\n */\n export default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox']\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox'\n ]\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation\n }\n },\n setup(props) {\n const $x = use$x();\n\n const empathizeRef = ref<HTMLDivElement>();\n\n const isOpen = ref(false);\n const hasContent =
|
|
1
|
+
{"version":3,"file":"empathize.vue.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpen && hasContent\"\n ref=\"empathizeRef\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType, ref, computed } from 'vue';\n import { NoAnimation } from '../../../components';\n import { use$x, useDebounce } from '../../../composables';\n import { AnimationProp } from '../../../types';\n import { XEvent } from '../../../wiring';\n import { empathizeXModule } from '../x-module';\n import { getActiveElement } from '../../../utils/html';\n\n /**\n * Component containing the empathize. It has a required slot to define its content and two props\n * to define when to open and close it: `eventsToOpenEmpathize` and `eventsToCloseEmpathize`.\n *\n * @public\n */\n export default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox']\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox'\n ]\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation\n }\n },\n setup(props) {\n const $x = use$x();\n\n const empathizeRef = ref<HTMLDivElement>();\n\n const isOpen = ref(false);\n const hasContent = computed(() => !!empathizeRef.value?.children?.length);\n\n /**\n * Changes the state of {@link Empathize.isOpen} assigning to it the value of `newOpen`\n * parameter. Also emits the {@link XEvent} `EmpathizeOpened` or `EmpathizeClosed` if\n * the state really changes.\n *\n * @param newOpen - The new open state to assign to {@link Empathize.isOpen}.\n */\n const changeOpen = useDebounce((newOpen: boolean) => {\n if (isOpen.value !== newOpen) {\n isOpen.value = newOpen;\n const empathizeEvent = isOpen.value ? 'EmpathizeOpened' : 'EmpathizeClosed';\n $x.emit(empathizeEvent, undefined, { target: empathizeRef.value });\n }\n }, 0);\n\n /**\n * Open empathize. This method will be executed on any event in\n * {@link Empathize.eventsToOpenEmpathize} and on DOM event `focusin` on Empathize root\n * element.\n */\n function open() {\n if (hasContent.value) {\n changeOpen(true);\n }\n }\n\n /**\n * Close empathize. This method will be executed on any event in\n * {@link Empathize.eventsToCloseEmpathize} and on DOM event `focusout` on Empathize root\n * element.\n */\n function close() {\n const activeElement = getActiveElement();\n if (!empathizeRef.value?.contains(activeElement)) {\n changeOpen(false);\n }\n }\n\n props.eventsToOpenEmpathize.forEach(event => $x.on(event, false).subscribe(open));\n props.eventsToCloseEmpathize.forEach(event => $x.on(event, false).subscribe(close));\n\n return {\n close,\n empathizeRef,\n hasContent,\n isOpen,\n open\n };\n }\n });\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`EmpathizeOpened`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `true`. The event\n payload is undefined and can have a metadata with the module and the element that emitted it.\n- [`EmpathizeClosed`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `false`. The event\n payload is undefined and can have a metadata with the module and the element that emitted it.\n\n## Examples\n\nThis component will listen to the configured events in `eventsToOpenEmpathize` and\n`eventsToCloseEmpathize` props and open/close itself accordingly. By default, those props values\nare:\n\n- Open: `UserFocusedSearchBox`, `'`UserIsTypingAQuery`, `'`UserClickedSearchBox` and\n- Close: `UserClosedEmpathize`, `UserSelectedASuggestion`, `UserPressedEnter`,\n 'UserBlurredSearchBox`\n\n### Basic examples\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation.\n\n```vue\n<Empathize>\n <template #default>\n <BaseKeyboardNavigation>\n <QuerySuggestions/>\n <PopularSearches/>\n <HistoryQueries/>\n </BaseKeyboardNavigation>\n </template>\n</Empathize>\n```\n\nDefining custom values for the events to open and close the Empathize. For example opening it when\nthe search box loses the focus and closing it when the search box receives the focus:\n\n```vue\n<Empathize\n :eventsToOpenEmpathize=\"['UserBlurredSearchBox']\"\n :eventsToCloseEmpathize=\"['UserFocusedSearchBox']\"\n>\n <template #default>\n Please, type a query in the Search Box.\n </template>\n</Empathize>\n```\n\nAn animation can be used for the opening and closing using the `animation` prop. The animation, must\nbe a Component with a `Transition` with a slot inside:\n\n```vue\n<Empathize :animation=\"collapseFromTop\">\n <template #default>\n <PopularSearches/>\n </template>\n</Empathize>\n```\n</docs>\n"],"names":["_createBlock","_resolveDynamicComponent","_withCtx","_withDirectives","_createElementVNode","_withModifiers","isOpen","hasContent"],"mappings":";;;;SAAA,WAaU,CAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA;sBAXNA,WAWM,CAAAC,uBAAA,CAAA,IAAA,CAAA,SAAA,CAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EATAC,OAAc,CAAA,MAAA;AAAA,MACRC,cAAA,CAAAC,kBAAA;AAAA,QAAA,KAAA;AAAA,QALhB;AAAA,UAMO,GAAA,EAAA,cAAA;AAAA,UACA,aAAQ,MAAE,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAAC,aAAA,CAAA,MAAA;AAAA,WAAA,EAAA,CAAA,SAAA,CAAA,CAAA,CAAA;AAAA,UACX,WAAM,MAAa,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,GAAA,IAAA,KAAA,IAAA,CAAA,IAAA,IAAA,IAAA,CAAA,IAAA,CAAA,GAAA,IAAA,CAAA,CAAA;AAAA,UACnB,UAAA,EAAS,OAAC,CAAW,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,GAAA,IAAA,KAAA,IAAA,CAAA,KAAA,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,IAAA,CAAA,CAAA;AAAA,UAAA,KAAA,EAAA,aAAA;UAGrB,WAAQ,EAAA,WAAA;AAAA,SAAA;;qBATAC,IAAUC,CAAAA,MAAAA,EAAAA,SAAAA,CAAAA;AAAAA,SAAAA;;;;;AAHxB,OAAA,CAAA;AAAA,KAAA,CAAA;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref } from 'vue';
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue';
|
|
2
2
|
import '../../../components/animations/animate-width.vue2.js';
|
|
3
3
|
import '../../../components/animations/animate-width.vue3.js';
|
|
4
4
|
import '../../../components/animations/collapse-height.vue2.js';
|
|
@@ -143,7 +143,7 @@ var _sfc_main = defineComponent({
|
|
|
143
143
|
const $x = use$x();
|
|
144
144
|
const empathizeRef = ref();
|
|
145
145
|
const isOpen = ref(false);
|
|
146
|
-
const hasContent =
|
|
146
|
+
const hasContent = computed(() => !!empathizeRef.value?.children?.length);
|
|
147
147
|
/**
|
|
148
148
|
* Changes the state of {@link Empathize.isOpen} assigning to it the value of `newOpen`
|
|
149
149
|
* parameter. Also emits the {@link XEvent} `EmpathizeOpened` or `EmpathizeClosed` if
|
|
@@ -164,7 +164,6 @@ var _sfc_main = defineComponent({
|
|
|
164
164
|
* element.
|
|
165
165
|
*/
|
|
166
166
|
function open() {
|
|
167
|
-
hasContent.value = !!empathizeRef.value?.children.length;
|
|
168
167
|
if (hasContent.value) {
|
|
169
168
|
changeOpen(true);
|
|
170
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathize.vue2.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpen && hasContent\"\n ref=\"empathizeRef\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType, ref } from 'vue';\n import { NoAnimation } from '../../../components';\n import { use$x, useDebounce } from '../../../composables';\n import { AnimationProp } from '../../../types';\n import { XEvent } from '../../../wiring';\n import { empathizeXModule } from '../x-module';\n import { getActiveElement } from '../../../utils/html';\n\n /**\n * Component containing the empathize. It has a required slot to define its content and two props\n * to define when to open and close it: `eventsToOpenEmpathize` and `eventsToCloseEmpathize`.\n *\n * @public\n */\n export default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox']\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox'\n ]\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation\n }\n },\n setup(props) {\n const $x = use$x();\n\n const empathizeRef = ref<HTMLDivElement>();\n\n const isOpen = ref(false);\n const hasContent =
|
|
1
|
+
{"version":3,"file":"empathize.vue2.js","sources":["../../../../../src/x-modules/empathize/components/empathize.vue"],"sourcesContent":["<template>\n <component :is=\"animation\">\n <div\n v-show=\"isOpen && hasContent\"\n ref=\"empathizeRef\"\n @mousedown.prevent\n @focusin=\"open\"\n @focusout=\"close\"\n class=\"x-empathize\"\n data-test=\"empathize\"\n >\n <!-- @slot (Required) Modal container content -->\n <slot />\n </div>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, PropType, ref, computed } from 'vue';\n import { NoAnimation } from '../../../components';\n import { use$x, useDebounce } from '../../../composables';\n import { AnimationProp } from '../../../types';\n import { XEvent } from '../../../wiring';\n import { empathizeXModule } from '../x-module';\n import { getActiveElement } from '../../../utils/html';\n\n /**\n * Component containing the empathize. It has a required slot to define its content and two props\n * to define when to open and close it: `eventsToOpenEmpathize` and `eventsToCloseEmpathize`.\n *\n * @public\n */\n export default defineComponent({\n name: 'Empathize',\n xModule: empathizeXModule.name,\n props: {\n /** Array of {@link XEvent} to open the empathize. */\n eventsToOpenEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => ['UserFocusedSearchBox', 'UserIsTypingAQuery', 'UserClickedSearchBox']\n },\n /** Array of {@link XEvent} to close the empathize. */\n eventsToCloseEmpathize: {\n type: Array as PropType<XEvent[]>,\n default: () => [\n 'UserClosedEmpathize',\n 'UserSelectedASuggestion',\n 'UserPressedEnterKey',\n 'UserBlurredSearchBox'\n ]\n },\n /** Animation component that will be used to animate the empathize. */\n animation: {\n type: AnimationProp,\n default: () => NoAnimation\n }\n },\n setup(props) {\n const $x = use$x();\n\n const empathizeRef = ref<HTMLDivElement>();\n\n const isOpen = ref(false);\n const hasContent = computed(() => !!empathizeRef.value?.children?.length);\n\n /**\n * Changes the state of {@link Empathize.isOpen} assigning to it the value of `newOpen`\n * parameter. Also emits the {@link XEvent} `EmpathizeOpened` or `EmpathizeClosed` if\n * the state really changes.\n *\n * @param newOpen - The new open state to assign to {@link Empathize.isOpen}.\n */\n const changeOpen = useDebounce((newOpen: boolean) => {\n if (isOpen.value !== newOpen) {\n isOpen.value = newOpen;\n const empathizeEvent = isOpen.value ? 'EmpathizeOpened' : 'EmpathizeClosed';\n $x.emit(empathizeEvent, undefined, { target: empathizeRef.value });\n }\n }, 0);\n\n /**\n * Open empathize. This method will be executed on any event in\n * {@link Empathize.eventsToOpenEmpathize} and on DOM event `focusin` on Empathize root\n * element.\n */\n function open() {\n if (hasContent.value) {\n changeOpen(true);\n }\n }\n\n /**\n * Close empathize. This method will be executed on any event in\n * {@link Empathize.eventsToCloseEmpathize} and on DOM event `focusout` on Empathize root\n * element.\n */\n function close() {\n const activeElement = getActiveElement();\n if (!empathizeRef.value?.contains(activeElement)) {\n changeOpen(false);\n }\n }\n\n props.eventsToOpenEmpathize.forEach(event => $x.on(event, false).subscribe(open));\n props.eventsToCloseEmpathize.forEach(event => $x.on(event, false).subscribe(close));\n\n return {\n close,\n empathizeRef,\n hasContent,\n isOpen,\n open\n };\n }\n });\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nA list of events that the component will emit:\n\n- [`EmpathizeOpened`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `true`. The event\n payload is undefined and can have a metadata with the module and the element that emitted it.\n- [`EmpathizeClosed`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after receiving an event to change the state `isOpen` to `false`. The event\n payload is undefined and can have a metadata with the module and the element that emitted it.\n\n## Examples\n\nThis component will listen to the configured events in `eventsToOpenEmpathize` and\n`eventsToCloseEmpathize` props and open/close itself accordingly. By default, those props values\nare:\n\n- Open: `UserFocusedSearchBox`, `'`UserIsTypingAQuery`, `'`UserClickedSearchBox` and\n- Close: `UserClosedEmpathize`, `UserSelectedASuggestion`, `UserPressedEnter`,\n 'UserBlurredSearchBox`\n\n### Basic examples\n\nThe component rendering the query suggestions, popular searches and history queries with keyboard\nnavigation.\n\n```vue\n<Empathize>\n <template #default>\n <BaseKeyboardNavigation>\n <QuerySuggestions/>\n <PopularSearches/>\n <HistoryQueries/>\n </BaseKeyboardNavigation>\n </template>\n</Empathize>\n```\n\nDefining custom values for the events to open and close the Empathize. For example opening it when\nthe search box loses the focus and closing it when the search box receives the focus:\n\n```vue\n<Empathize\n :eventsToOpenEmpathize=\"['UserBlurredSearchBox']\"\n :eventsToCloseEmpathize=\"['UserFocusedSearchBox']\"\n>\n <template #default>\n Please, type a query in the Search Box.\n </template>\n</Empathize>\n```\n\nAn animation can be used for the opening and closing using the `animation` prop. The animation, must\nbe a Component with a `Transition` with a slot inside:\n\n```vue\n<Empathize :animation=\"collapseFromTop\">\n <template #default>\n <PopularSearches/>\n </template>\n</Empathize>\n```\n</docs>\n"],"names":["NoAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BE;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,gBAAgB,CAAC,IAAI;AAC9B,IAAA,KAAK,EAAE;;AAEL,QAAA,qBAAqB,EAAE;AACrB,YAAA,IAAI,EAAE,KAA2B;YACjC,OAAO,EAAE,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,sBAAsB,CAAA;AACrF,SAAA;;AAED,QAAA,sBAAsB,EAAE;AACtB,YAAA,IAAI,EAAE,KAA2B;YACjC,OAAO,EAAE,MAAM;gBACb,qBAAqB;gBACrB,yBAAyB;gBACzB,qBAAqB;gBACrB,sBAAqB;AACvB,aAAA;AACD,SAAA;;AAED,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,MAAMA,WAAU;AAC3B,SAAA;AACD,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAC,GAAI,KAAK,EAAE,CAAA;AAElB,QAAA,MAAM,eAAe,GAAG,EAAkB,CAAA;AAE1C,QAAA,MAAM,MAAK,GAAI,GAAG,CAAC,KAAK,CAAC,CAAA;AACzB,QAAA,MAAM,UAAW,GAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;AAEzE;;;;;;AAME;AACF,QAAA,MAAM,aAAa,WAAW,CAAC,CAAC,OAAgB,KAAK;AACnD,YAAA,IAAI,MAAM,CAAC,KAAM,KAAI,OAAO,EAAE;AAC5B,gBAAA,MAAM,CAAC,KAAI,GAAI,OAAO,CAAA;AACtB,gBAAA,MAAM,cAAe,GAAE,MAAM,CAAC,QAAQ,iBAAkB,GAAE,iBAAiB,CAAA;AAC3E,gBAAA,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,YAAY,CAAC,KAAM,EAAC,CAAC,CAAA;AACpE,aAAA;SACD,EAAE,CAAC,CAAC,CAAA;AAEL;;;;AAIE;AACF,QAAA,SAAS,IAAI,GAAA;YACX,IAAI,UAAU,CAAC,KAAK,EAAE;gBACpB,UAAU,CAAC,IAAI,CAAC,CAAA;AAClB,aAAA;SACF;AAEA;;;;AAIE;AACF,QAAA,SAAS,KAAK,GAAA;AACZ,YAAA,MAAM,aAAY,GAAI,gBAAgB,EAAE,CAAA;YACxC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE;gBAChD,UAAU,CAAC,KAAK,CAAC,CAAA;AACnB,aAAA;SACF;QAEA,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,KAAI,IAAK,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;QACjF,KAAK,CAAC,sBAAsB,CAAC,OAAO,CAAC,KAAI,IAAK,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;QAEnF,OAAO;YACL,KAAK;YACL,YAAY;YACZ,UAAU;YACV,MAAM;YACN,IAAG;SACJ,CAAA;KACH;AACD,CAAA,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.43",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"access": "public",
|
|
139
139
|
"directory": "dist"
|
|
140
140
|
},
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "d38c720c7c322fe0721f9b1eb3ba557eb411b752"
|
|
142
142
|
}
|
|
@@ -16835,8 +16835,8 @@
|
|
|
16835
16835
|
},
|
|
16836
16836
|
{
|
|
16837
16837
|
"kind": "Reference",
|
|
16838
|
-
"text": "
|
|
16839
|
-
"canonicalReference": "@vue/reactivity!
|
|
16838
|
+
"text": "ComputedRef",
|
|
16839
|
+
"canonicalReference": "@vue/reactivity!ComputedRef:interface"
|
|
16840
16840
|
},
|
|
16841
16841
|
{
|
|
16842
16842
|
"kind": "Content",
|
|
@@ -2223,7 +2223,7 @@ default: () => DefineComponent< {}, {}, any, ComputedOptions, MethodOptions,
|
|
|
2223
2223
|
}, {
|
|
2224
2224
|
close: () => void;
|
|
2225
2225
|
empathizeRef: Ref<HTMLDivElement | undefined>;
|
|
2226
|
-
hasContent:
|
|
2226
|
+
hasContent: ComputedRef<boolean>;
|
|
2227
2227
|
isOpen: Ref<boolean>;
|
|
2228
2228
|
open: () => void;
|
|
2229
2229
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
}, {
|
|
25
25
|
close: () => void;
|
|
26
26
|
empathizeRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
27
|
-
hasContent: import("vue").
|
|
27
|
+
hasContent: import("vue").ComputedRef<boolean>;
|
|
28
28
|
isOpen: import("vue").Ref<boolean>;
|
|
29
29
|
open: () => void;
|
|
30
30
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empathize.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/empathize/components/empathize.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,QAAQ,
|
|
1
|
+
{"version":3,"file":"empathize.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/empathize/components/empathize.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,QAAQ,EAAiB,MAAM,KAAK,CAAC;AAQ/D;;;;;GAKG;;IAKC,qDAAqD;;;;;IAKrD,sDAAsD;;;;;IAUtD,sEAAsE;;;;;;;;;;;;IAftE,qDAAqD;;;;;IAKrD,sDAAsD;;;;;IAUtD,sEAAsE;;;;;;;;;;AAnB1E,wBAkFG"}
|