@x-plat/design-system 0.5.4 → 0.5.6

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.
@@ -3609,6 +3609,7 @@
3609
3609
  width: 100%;
3610
3610
  height: 100%;
3611
3611
  position: relative;
3612
+ overflow: auto;
3612
3613
  }
3613
3614
  .lib-xplat-table-wrapper > .lib-xplat-table {
3614
3615
  width: 100%;
@@ -3681,6 +3682,20 @@
3681
3682
  min-width: 80px;
3682
3683
  padding: var(--spacing-space-2);
3683
3684
  vertical-align: middle;
3685
+ word-break: keep-all;
3686
+ overflow-wrap: anywhere;
3687
+ }
3688
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.nowrap,
3689
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.nowrap,
3690
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.nowrap,
3691
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th.nowrap {
3692
+ white-space: nowrap;
3693
+ overflow-wrap: normal;
3694
+ }
3695
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td,
3696
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th,
3697
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td,
3698
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th {
3684
3699
  transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
3685
3700
  }
3686
3701
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.clickable,
@@ -4064,11 +4079,9 @@
4064
4079
  max-height: 100%;
4065
4080
  object-fit: contain;
4066
4081
  vertical-align: middle;
4067
- }
4068
- .lib-xplat-video.custom-overlay > video {
4069
4082
  cursor: pointer;
4070
4083
  }
4071
- .lib-xplat-video.custom-overlay > .play-overlay {
4084
+ .lib-xplat-video > .center-play {
4072
4085
  position: absolute;
4073
4086
  top: 0;
4074
4087
  left: 0;
@@ -4082,9 +4095,10 @@
4082
4095
  cursor: pointer;
4083
4096
  padding: 0;
4084
4097
  color: var(--semantic-icon-inverse);
4085
- transition: opacity 0.2s ease, background-color 0.2s ease;
4098
+ transition: opacity 0.2s ease;
4099
+ pointer-events: none;
4086
4100
  }
4087
- .lib-xplat-video.custom-overlay > .play-overlay::before {
4101
+ .lib-xplat-video > .center-play::before {
4088
4102
  content: "";
4089
4103
  position: absolute;
4090
4104
  inset: 0;
@@ -4092,31 +4106,214 @@
4092
4106
  opacity: 0;
4093
4107
  transition: opacity 0.2s ease;
4094
4108
  }
4095
- .lib-xplat-video.custom-overlay > .play-overlay:hover::before,
4096
- .lib-xplat-video.custom-overlay > .play-overlay:focus-visible::before {
4097
- opacity: 1;
4098
- }
4099
- .lib-xplat-video.custom-overlay > .play-overlay:focus-visible {
4100
- outline: 2px solid var(--semantic-interaction-focus-ring);
4101
- outline-offset: 2px;
4102
- }
4103
- .lib-xplat-video.custom-overlay > .play-overlay > .play-icon {
4109
+ .lib-xplat-video > .center-play > .center-play-icon {
4104
4110
  position: relative;
4105
4111
  z-index: 1;
4106
4112
  display: flex;
4107
- align-items: center;
4108
- justify-content: center;
4109
4113
  font-size: 64px;
4110
4114
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
4111
4115
  }
4112
- .lib-xplat-video.custom-overlay > .play-overlay.is-playing {
4116
+ .lib-xplat-video > .center-play.is-playing {
4113
4117
  opacity: 0;
4114
- pointer-events: none;
4115
4118
  }
4116
- .lib-xplat-video.custom-overlay > .play-overlay.is-loading .play-icon {
4119
+ .lib-xplat-video > .center-play.is-loading .center-play-icon {
4117
4120
  opacity: 0.6;
4118
4121
  }
4119
- .lib-xplat-video.custom-overlay:hover > .play-overlay.is-playing {
4122
+ .lib-xplat-video > .controls {
4123
+ position: absolute;
4124
+ left: 0;
4125
+ right: 0;
4126
+ bottom: 0;
4127
+ padding: var(--spacing-space-2) var(--spacing-space-3);
4128
+ display: flex;
4129
+ flex-direction: column;
4130
+ gap: var(--spacing-space-1);
4131
+ background:
4132
+ linear-gradient(
4133
+ to top,
4134
+ rgba(0, 0, 0, 0.7),
4135
+ rgba(0, 0, 0, 0));
4136
+ color: var(--semantic-icon-inverse);
4137
+ opacity: 0;
4138
+ transition: opacity 0.2s ease;
4139
+ pointer-events: none;
4140
+ }
4141
+ .lib-xplat-video:hover > .controls,
4142
+ .lib-xplat-video:focus-within > .controls {
4120
4143
  opacity: 1;
4121
4144
  pointer-events: auto;
4122
4145
  }
4146
+ .lib-xplat-video .controls-row {
4147
+ display: flex;
4148
+ align-items: center;
4149
+ gap: var(--spacing-space-2);
4150
+ }
4151
+ .lib-xplat-video .control-btn {
4152
+ display: inline-flex;
4153
+ align-items: center;
4154
+ justify-content: center;
4155
+ width: 32px;
4156
+ height: 32px;
4157
+ padding: 0;
4158
+ border: none;
4159
+ background: transparent;
4160
+ color: inherit;
4161
+ cursor: pointer;
4162
+ border-radius: var(--spacing-radius-sm);
4163
+ transition: background-color 0.15s ease;
4164
+ }
4165
+ .lib-xplat-video .control-btn:hover {
4166
+ background-color: rgba(255, 255, 255, 0.15);
4167
+ }
4168
+ .lib-xplat-video .control-btn:focus-visible {
4169
+ outline: 2px solid var(--semantic-interaction-focus-ring);
4170
+ outline-offset: 2px;
4171
+ }
4172
+ .lib-xplat-video .controls-spacer {
4173
+ margin-left: auto;
4174
+ }
4175
+ .lib-xplat-video .control-btn.is-active {
4176
+ background-color: rgba(255, 255, 255, 0.25);
4177
+ }
4178
+ .lib-xplat-video .rate-group {
4179
+ position: relative;
4180
+ }
4181
+ .lib-xplat-video .rate-group .rate-btn {
4182
+ width: auto;
4183
+ padding: 0 var(--spacing-space-2);
4184
+ font-size: 12px;
4185
+ font-weight: 600;
4186
+ font-variant-numeric: tabular-nums;
4187
+ }
4188
+ .lib-xplat-video .rate-group .rate-menu {
4189
+ position: absolute;
4190
+ bottom: calc(100% + var(--spacing-space-1));
4191
+ right: 0;
4192
+ margin: 0;
4193
+ padding: var(--spacing-space-1);
4194
+ list-style: none;
4195
+ background-color: rgba(0, 0, 0, 0.85);
4196
+ border-radius: var(--spacing-radius-sm);
4197
+ min-width: 64px;
4198
+ }
4199
+ .lib-xplat-video .rate-group .rate-menu .rate-item {
4200
+ width: 100%;
4201
+ padding: var(--spacing-space-1) var(--spacing-space-2);
4202
+ border: none;
4203
+ background: transparent;
4204
+ color: inherit;
4205
+ text-align: left;
4206
+ cursor: pointer;
4207
+ border-radius: var(--spacing-radius-xs);
4208
+ font-size: 12px;
4209
+ font-variant-numeric: tabular-nums;
4210
+ }
4211
+ .lib-xplat-video .rate-group .rate-menu .rate-item:hover {
4212
+ background-color: rgba(255, 255, 255, 0.15);
4213
+ }
4214
+ .lib-xplat-video .rate-group .rate-menu .rate-item.is-active {
4215
+ color: var(--semantic-surface-brand-default);
4216
+ font-weight: 600;
4217
+ }
4218
+ .lib-xplat-video .time {
4219
+ font-size: 12px;
4220
+ font-variant-numeric: tabular-nums;
4221
+ white-space: nowrap;
4222
+ }
4223
+ .lib-xplat-video .volume-group {
4224
+ display: flex;
4225
+ align-items: center;
4226
+ }
4227
+ .lib-xplat-video .volume-group .volume-slider {
4228
+ width: 0;
4229
+ opacity: 0;
4230
+ transition: width 0.2s ease, opacity 0.2s ease;
4231
+ }
4232
+ .lib-xplat-video .volume-group:hover .volume-slider,
4233
+ .lib-xplat-video .volume-group:focus-within .volume-slider {
4234
+ width: 80px;
4235
+ opacity: 1;
4236
+ margin-left: var(--spacing-space-1);
4237
+ }
4238
+ .lib-xplat-video .seekbar,
4239
+ .lib-xplat-video .volume-slider {
4240
+ -webkit-appearance: none;
4241
+ appearance: none;
4242
+ background: transparent;
4243
+ cursor: pointer;
4244
+ }
4245
+ .lib-xplat-video .seekbar:focus,
4246
+ .lib-xplat-video .volume-slider:focus {
4247
+ outline: none;
4248
+ }
4249
+ .lib-xplat-video .seekbar::-webkit-slider-thumb,
4250
+ .lib-xplat-video .volume-slider::-webkit-slider-thumb {
4251
+ -webkit-appearance: none;
4252
+ appearance: none;
4253
+ width: 12px;
4254
+ height: 12px;
4255
+ border-radius: 50%;
4256
+ background: #fff;
4257
+ border: none;
4258
+ cursor: pointer;
4259
+ }
4260
+ .lib-xplat-video .seekbar::-moz-range-thumb,
4261
+ .lib-xplat-video .volume-slider::-moz-range-thumb {
4262
+ width: 12px;
4263
+ height: 12px;
4264
+ border-radius: 50%;
4265
+ background: #fff;
4266
+ border: none;
4267
+ cursor: pointer;
4268
+ }
4269
+ .lib-xplat-video .seekbar {
4270
+ width: 100%;
4271
+ height: 4px;
4272
+ }
4273
+ .lib-xplat-video .seekbar::-webkit-slider-runnable-track {
4274
+ height: 4px;
4275
+ border-radius: 2px;
4276
+ background:
4277
+ linear-gradient(
4278
+ to right,
4279
+ var(--semantic-surface-brand-default) 0%,
4280
+ var(--semantic-surface-brand-default) var(--progress, 0%),
4281
+ rgba(255, 255, 255, 0.4) var(--progress, 0%),
4282
+ rgba(255, 255, 255, 0.4) var(--buffered, 0%),
4283
+ rgba(255, 255, 255, 0.2) var(--buffered, 0%),
4284
+ rgba(255, 255, 255, 0.2) 100%);
4285
+ }
4286
+ .lib-xplat-video .seekbar::-moz-range-track {
4287
+ height: 4px;
4288
+ border-radius: 2px;
4289
+ background: rgba(255, 255, 255, 0.2);
4290
+ }
4291
+ .lib-xplat-video .seekbar::-moz-range-progress {
4292
+ height: 4px;
4293
+ border-radius: 2px;
4294
+ background: var(--semantic-surface-brand-default);
4295
+ }
4296
+ .lib-xplat-video .volume-slider {
4297
+ height: 4px;
4298
+ }
4299
+ .lib-xplat-video .volume-slider::-webkit-slider-runnable-track {
4300
+ height: 4px;
4301
+ border-radius: 2px;
4302
+ background:
4303
+ linear-gradient(
4304
+ to right,
4305
+ #fff 0%,
4306
+ #fff var(--volume, 0%),
4307
+ rgba(255, 255, 255, 0.3) var(--volume, 0%),
4308
+ rgba(255, 255, 255, 0.3) 100%);
4309
+ }
4310
+ .lib-xplat-video .volume-slider::-moz-range-track {
4311
+ height: 4px;
4312
+ border-radius: 2px;
4313
+ background: rgba(255, 255, 255, 0.3);
4314
+ }
4315
+ .lib-xplat-video .volume-slider::-moz-range-progress {
4316
+ height: 4px;
4317
+ border-radius: 2px;
4318
+ background: #fff;
4319
+ }