@x-plat/design-system 0.5.4 → 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.
@@ -3681,6 +3681,20 @@
3681
3681
  min-width: 80px;
3682
3682
  padding: var(--spacing-space-2);
3683
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 {
3684
3698
  transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
3685
3699
  }
3686
3700
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.clickable,
@@ -4064,11 +4078,9 @@
4064
4078
  max-height: 100%;
4065
4079
  object-fit: contain;
4066
4080
  vertical-align: middle;
4067
- }
4068
- .lib-xplat-video.custom-overlay > video {
4069
4081
  cursor: pointer;
4070
4082
  }
4071
- .lib-xplat-video.custom-overlay > .play-overlay {
4083
+ .lib-xplat-video > .center-play {
4072
4084
  position: absolute;
4073
4085
  top: 0;
4074
4086
  left: 0;
@@ -4082,9 +4094,10 @@
4082
4094
  cursor: pointer;
4083
4095
  padding: 0;
4084
4096
  color: var(--semantic-icon-inverse);
4085
- transition: opacity 0.2s ease, background-color 0.2s ease;
4097
+ transition: opacity 0.2s ease;
4098
+ pointer-events: none;
4086
4099
  }
4087
- .lib-xplat-video.custom-overlay > .play-overlay::before {
4100
+ .lib-xplat-video > .center-play::before {
4088
4101
  content: "";
4089
4102
  position: absolute;
4090
4103
  inset: 0;
@@ -4092,31 +4105,214 @@
4092
4105
  opacity: 0;
4093
4106
  transition: opacity 0.2s ease;
4094
4107
  }
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 {
4108
+ .lib-xplat-video > .center-play > .center-play-icon {
4104
4109
  position: relative;
4105
4110
  z-index: 1;
4106
4111
  display: flex;
4107
- align-items: center;
4108
- justify-content: center;
4109
4112
  font-size: 64px;
4110
4113
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
4111
4114
  }
4112
- .lib-xplat-video.custom-overlay > .play-overlay.is-playing {
4115
+ .lib-xplat-video > .center-play.is-playing {
4113
4116
  opacity: 0;
4114
- pointer-events: none;
4115
4117
  }
4116
- .lib-xplat-video.custom-overlay > .play-overlay.is-loading .play-icon {
4118
+ .lib-xplat-video > .center-play.is-loading .center-play-icon {
4117
4119
  opacity: 0.6;
4118
4120
  }
4119
- .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 {
4120
4142
  opacity: 1;
4121
4143
  pointer-events: auto;
4122
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
+ }