@x-plat/design-system 0.5.3 → 0.5.5

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.
@@ -1084,6 +1084,7 @@
1084
1084
  /* src/components/Accordion/accordion.scss */
1085
1085
  .lib-xplat-accordion {
1086
1086
  contain: content;
1087
+ width: 100%;
1087
1088
  border: 1px solid var(--semantic-border-default);
1088
1089
  border-radius: var(--spacing-radius-md);
1089
1090
  overflow: hidden;
@@ -1475,6 +1476,7 @@
1475
1476
  .lib-xplat-calendar {
1476
1477
  contain: content;
1477
1478
  width: 100%;
1479
+ height: 100%;
1478
1480
  min-width: 200px;
1479
1481
  user-select: none;
1480
1482
  container-type: inline-size;
@@ -1665,7 +1667,7 @@
1665
1667
  flex-direction: column;
1666
1668
  flex: 1;
1667
1669
  min-width: 0;
1668
- height: fit-content;
1670
+ height: 100%;
1669
1671
  border-radius: var(--spacing-radius-xl);
1670
1672
  border: 1px solid var(--semantic-border-strong);
1671
1673
  background-color: var(--semantic-surface-neutral-default);
@@ -1769,6 +1771,7 @@
1769
1771
  .lib-xplat-chart {
1770
1772
  contain: content;
1771
1773
  width: 100%;
1774
+ height: 100%;
1772
1775
  position: relative;
1773
1776
  }
1774
1777
  .lib-xplat-chart .chart-svg {
@@ -2457,6 +2460,7 @@
2457
2460
  .lib-xplat-dropdown {
2458
2461
  position: relative;
2459
2462
  display: inline-flex;
2463
+ width: 100%;
2460
2464
  }
2461
2465
  .lib-xplat-dropdown .dropdown-trigger {
2462
2466
  cursor: pointer;
@@ -2511,6 +2515,7 @@
2511
2515
  /* src/components/EmptyState/emptystate.scss */
2512
2516
  .lib-xplat-empty-state {
2513
2517
  width: 100%;
2518
+ height: 100%;
2514
2519
  display: flex;
2515
2520
  flex-direction: column;
2516
2521
  align-items: center;
@@ -2545,6 +2550,7 @@
2545
2550
  .lib-xplat-file-upload {
2546
2551
  contain: content;
2547
2552
  width: 100%;
2553
+ height: 100%;
2548
2554
  display: flex;
2549
2555
  flex-direction: column;
2550
2556
  align-items: center;
@@ -2967,6 +2973,7 @@
2967
2973
 
2968
2974
  /* src/components/Select/select.scss */
2969
2975
  .lib-xplat-select {
2976
+ width: 100%;
2970
2977
  position: relative;
2971
2978
  }
2972
2979
  .lib-xplat-select.is-open {
@@ -3338,6 +3345,7 @@
3338
3345
  .lib-xplat-swiper {
3339
3346
  contain: content;
3340
3347
  width: 100%;
3348
+ height: 100%;
3341
3349
  position: relative;
3342
3350
  }
3343
3351
  .lib-xplat-swiper__viewport {
@@ -3599,6 +3607,7 @@
3599
3607
  .lib-xplat-table-wrapper {
3600
3608
  contain: content;
3601
3609
  width: 100%;
3610
+ height: 100%;
3602
3611
  position: relative;
3603
3612
  }
3604
3613
  .lib-xplat-table-wrapper > .lib-xplat-table {
@@ -3672,6 +3681,20 @@
3672
3681
  min-width: 80px;
3673
3682
  padding: var(--spacing-space-2);
3674
3683
  vertical-align: middle;
3684
+ word-break: keep-all;
3685
+ overflow-wrap: anywhere;
3686
+ }
3687
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.nowrap,
3688
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.nowrap,
3689
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.nowrap,
3690
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th.nowrap {
3691
+ white-space: nowrap;
3692
+ overflow-wrap: normal;
3693
+ }
3694
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td,
3695
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th,
3696
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td,
3697
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th {
3675
3698
  transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
3676
3699
  }
3677
3700
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.clickable,
@@ -4043,6 +4066,7 @@
4043
4066
  .lib-xplat-video {
4044
4067
  position: relative;
4045
4068
  width: 100%;
4069
+ height: 100%;
4046
4070
  border-radius: var(--spacing-radius-sm);
4047
4071
  overflow: hidden;
4048
4072
  background-color: var(--semantic-surface-neutral-strong);
@@ -4054,11 +4078,9 @@
4054
4078
  max-height: 100%;
4055
4079
  object-fit: contain;
4056
4080
  vertical-align: middle;
4057
- }
4058
- .lib-xplat-video.custom-overlay > video {
4059
4081
  cursor: pointer;
4060
4082
  }
4061
- .lib-xplat-video.custom-overlay > .play-overlay {
4083
+ .lib-xplat-video > .center-play {
4062
4084
  position: absolute;
4063
4085
  top: 0;
4064
4086
  left: 0;
@@ -4072,9 +4094,10 @@
4072
4094
  cursor: pointer;
4073
4095
  padding: 0;
4074
4096
  color: var(--semantic-icon-inverse);
4075
- transition: opacity 0.2s ease, background-color 0.2s ease;
4097
+ transition: opacity 0.2s ease;
4098
+ pointer-events: none;
4076
4099
  }
4077
- .lib-xplat-video.custom-overlay > .play-overlay::before {
4100
+ .lib-xplat-video > .center-play::before {
4078
4101
  content: "";
4079
4102
  position: absolute;
4080
4103
  inset: 0;
@@ -4082,31 +4105,214 @@
4082
4105
  opacity: 0;
4083
4106
  transition: opacity 0.2s ease;
4084
4107
  }
4085
- .lib-xplat-video.custom-overlay > .play-overlay:hover::before,
4086
- .lib-xplat-video.custom-overlay > .play-overlay:focus-visible::before {
4087
- opacity: 1;
4088
- }
4089
- .lib-xplat-video.custom-overlay > .play-overlay:focus-visible {
4090
- outline: 2px solid var(--semantic-interaction-focus-ring);
4091
- outline-offset: 2px;
4092
- }
4093
- .lib-xplat-video.custom-overlay > .play-overlay > .play-icon {
4108
+ .lib-xplat-video > .center-play > .center-play-icon {
4094
4109
  position: relative;
4095
4110
  z-index: 1;
4096
4111
  display: flex;
4097
- align-items: center;
4098
- justify-content: center;
4099
4112
  font-size: 64px;
4100
4113
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
4101
4114
  }
4102
- .lib-xplat-video.custom-overlay > .play-overlay.is-playing {
4115
+ .lib-xplat-video > .center-play.is-playing {
4103
4116
  opacity: 0;
4104
- pointer-events: none;
4105
4117
  }
4106
- .lib-xplat-video.custom-overlay > .play-overlay.is-loading .play-icon {
4118
+ .lib-xplat-video > .center-play.is-loading .center-play-icon {
4107
4119
  opacity: 0.6;
4108
4120
  }
4109
- .lib-xplat-video.custom-overlay:hover > .play-overlay.is-playing {
4121
+ .lib-xplat-video > .controls {
4122
+ position: absolute;
4123
+ left: 0;
4124
+ right: 0;
4125
+ bottom: 0;
4126
+ padding: var(--spacing-space-2) var(--spacing-space-3);
4127
+ display: flex;
4128
+ flex-direction: column;
4129
+ gap: var(--spacing-space-1);
4130
+ background:
4131
+ linear-gradient(
4132
+ to top,
4133
+ rgba(0, 0, 0, 0.7),
4134
+ rgba(0, 0, 0, 0));
4135
+ color: var(--semantic-icon-inverse);
4136
+ opacity: 0;
4137
+ transition: opacity 0.2s ease;
4138
+ pointer-events: none;
4139
+ }
4140
+ .lib-xplat-video:hover > .controls,
4141
+ .lib-xplat-video:focus-within > .controls {
4110
4142
  opacity: 1;
4111
4143
  pointer-events: auto;
4112
4144
  }
4145
+ .lib-xplat-video .controls-row {
4146
+ display: flex;
4147
+ align-items: center;
4148
+ gap: var(--spacing-space-2);
4149
+ }
4150
+ .lib-xplat-video .control-btn {
4151
+ display: inline-flex;
4152
+ align-items: center;
4153
+ justify-content: center;
4154
+ width: 32px;
4155
+ height: 32px;
4156
+ padding: 0;
4157
+ border: none;
4158
+ background: transparent;
4159
+ color: inherit;
4160
+ cursor: pointer;
4161
+ border-radius: var(--spacing-radius-sm);
4162
+ transition: background-color 0.15s ease;
4163
+ }
4164
+ .lib-xplat-video .control-btn:hover {
4165
+ background-color: rgba(255, 255, 255, 0.15);
4166
+ }
4167
+ .lib-xplat-video .control-btn:focus-visible {
4168
+ outline: 2px solid var(--semantic-interaction-focus-ring);
4169
+ outline-offset: 2px;
4170
+ }
4171
+ .lib-xplat-video .controls-spacer {
4172
+ margin-left: auto;
4173
+ }
4174
+ .lib-xplat-video .control-btn.is-active {
4175
+ background-color: rgba(255, 255, 255, 0.25);
4176
+ }
4177
+ .lib-xplat-video .rate-group {
4178
+ position: relative;
4179
+ }
4180
+ .lib-xplat-video .rate-group .rate-btn {
4181
+ width: auto;
4182
+ padding: 0 var(--spacing-space-2);
4183
+ font-size: 12px;
4184
+ font-weight: 600;
4185
+ font-variant-numeric: tabular-nums;
4186
+ }
4187
+ .lib-xplat-video .rate-group .rate-menu {
4188
+ position: absolute;
4189
+ bottom: calc(100% + var(--spacing-space-1));
4190
+ right: 0;
4191
+ margin: 0;
4192
+ padding: var(--spacing-space-1);
4193
+ list-style: none;
4194
+ background-color: rgba(0, 0, 0, 0.85);
4195
+ border-radius: var(--spacing-radius-sm);
4196
+ min-width: 64px;
4197
+ }
4198
+ .lib-xplat-video .rate-group .rate-menu .rate-item {
4199
+ width: 100%;
4200
+ padding: var(--spacing-space-1) var(--spacing-space-2);
4201
+ border: none;
4202
+ background: transparent;
4203
+ color: inherit;
4204
+ text-align: left;
4205
+ cursor: pointer;
4206
+ border-radius: var(--spacing-radius-xs);
4207
+ font-size: 12px;
4208
+ font-variant-numeric: tabular-nums;
4209
+ }
4210
+ .lib-xplat-video .rate-group .rate-menu .rate-item:hover {
4211
+ background-color: rgba(255, 255, 255, 0.15);
4212
+ }
4213
+ .lib-xplat-video .rate-group .rate-menu .rate-item.is-active {
4214
+ color: var(--semantic-surface-brand-default);
4215
+ font-weight: 600;
4216
+ }
4217
+ .lib-xplat-video .time {
4218
+ font-size: 12px;
4219
+ font-variant-numeric: tabular-nums;
4220
+ white-space: nowrap;
4221
+ }
4222
+ .lib-xplat-video .volume-group {
4223
+ display: flex;
4224
+ align-items: center;
4225
+ }
4226
+ .lib-xplat-video .volume-group .volume-slider {
4227
+ width: 0;
4228
+ opacity: 0;
4229
+ transition: width 0.2s ease, opacity 0.2s ease;
4230
+ }
4231
+ .lib-xplat-video .volume-group:hover .volume-slider,
4232
+ .lib-xplat-video .volume-group:focus-within .volume-slider {
4233
+ width: 80px;
4234
+ opacity: 1;
4235
+ margin-left: var(--spacing-space-1);
4236
+ }
4237
+ .lib-xplat-video .seekbar,
4238
+ .lib-xplat-video .volume-slider {
4239
+ -webkit-appearance: none;
4240
+ appearance: none;
4241
+ background: transparent;
4242
+ cursor: pointer;
4243
+ }
4244
+ .lib-xplat-video .seekbar:focus,
4245
+ .lib-xplat-video .volume-slider:focus {
4246
+ outline: none;
4247
+ }
4248
+ .lib-xplat-video .seekbar::-webkit-slider-thumb,
4249
+ .lib-xplat-video .volume-slider::-webkit-slider-thumb {
4250
+ -webkit-appearance: none;
4251
+ appearance: none;
4252
+ width: 12px;
4253
+ height: 12px;
4254
+ border-radius: 50%;
4255
+ background: #fff;
4256
+ border: none;
4257
+ cursor: pointer;
4258
+ }
4259
+ .lib-xplat-video .seekbar::-moz-range-thumb,
4260
+ .lib-xplat-video .volume-slider::-moz-range-thumb {
4261
+ width: 12px;
4262
+ height: 12px;
4263
+ border-radius: 50%;
4264
+ background: #fff;
4265
+ border: none;
4266
+ cursor: pointer;
4267
+ }
4268
+ .lib-xplat-video .seekbar {
4269
+ width: 100%;
4270
+ height: 4px;
4271
+ }
4272
+ .lib-xplat-video .seekbar::-webkit-slider-runnable-track {
4273
+ height: 4px;
4274
+ border-radius: 2px;
4275
+ background:
4276
+ linear-gradient(
4277
+ to right,
4278
+ var(--semantic-surface-brand-default) 0%,
4279
+ var(--semantic-surface-brand-default) var(--progress, 0%),
4280
+ rgba(255, 255, 255, 0.4) var(--progress, 0%),
4281
+ rgba(255, 255, 255, 0.4) var(--buffered, 0%),
4282
+ rgba(255, 255, 255, 0.2) var(--buffered, 0%),
4283
+ rgba(255, 255, 255, 0.2) 100%);
4284
+ }
4285
+ .lib-xplat-video .seekbar::-moz-range-track {
4286
+ height: 4px;
4287
+ border-radius: 2px;
4288
+ background: rgba(255, 255, 255, 0.2);
4289
+ }
4290
+ .lib-xplat-video .seekbar::-moz-range-progress {
4291
+ height: 4px;
4292
+ border-radius: 2px;
4293
+ background: var(--semantic-surface-brand-default);
4294
+ }
4295
+ .lib-xplat-video .volume-slider {
4296
+ height: 4px;
4297
+ }
4298
+ .lib-xplat-video .volume-slider::-webkit-slider-runnable-track {
4299
+ height: 4px;
4300
+ border-radius: 2px;
4301
+ background:
4302
+ linear-gradient(
4303
+ to right,
4304
+ #fff 0%,
4305
+ #fff var(--volume, 0%),
4306
+ rgba(255, 255, 255, 0.3) var(--volume, 0%),
4307
+ rgba(255, 255, 255, 0.3) 100%);
4308
+ }
4309
+ .lib-xplat-video .volume-slider::-moz-range-track {
4310
+ height: 4px;
4311
+ border-radius: 2px;
4312
+ background: rgba(255, 255, 255, 0.3);
4313
+ }
4314
+ .lib-xplat-video .volume-slider::-moz-range-progress {
4315
+ height: 4px;
4316
+ border-radius: 2px;
4317
+ background: #fff;
4318
+ }