@open-condo/ui 2.31.2 → 2.32.1
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/dist/components/Switch/index.d.ts +5 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Switch/switch.d.ts +10 -0
- package/dist/components/Switch/switch.d.ts.map +1 -0
- package/dist/components/_utils/analytics.d.ts +3 -0
- package/dist/components/_utils/analytics.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +186 -2
- package/dist/style-vars/variables.css +1 -1
- package/dist/style-vars/variables.less +1 -1
- package/dist/styles.css +288 -0
- package/dist/styles.min.css +1 -1
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -12168,3 +12168,291 @@ span.condo-radio + * {
|
|
|
12168
12168
|
clip-path: inset(36% 36%);
|
|
12169
12169
|
}
|
|
12170
12170
|
|
|
12171
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
12172
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
12173
|
+
/* stylelint-disable */
|
|
12174
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
12175
|
+
.condo-switch {
|
|
12176
|
+
margin: 0;
|
|
12177
|
+
padding: 0;
|
|
12178
|
+
color: #222222;
|
|
12179
|
+
font-size: 14px;
|
|
12180
|
+
font-variant: tabular-nums;
|
|
12181
|
+
line-height: 1.5715;
|
|
12182
|
+
list-style: none;
|
|
12183
|
+
font-feature-settings: 'tnum', "tnum";
|
|
12184
|
+
position: relative;
|
|
12185
|
+
display: inline-block;
|
|
12186
|
+
box-sizing: border-box;
|
|
12187
|
+
min-width: 44px;
|
|
12188
|
+
height: 22px;
|
|
12189
|
+
line-height: 22px;
|
|
12190
|
+
vertical-align: middle;
|
|
12191
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
12192
|
+
border: 0;
|
|
12193
|
+
border-radius: 100px;
|
|
12194
|
+
cursor: pointer;
|
|
12195
|
+
transition: all 0.2s;
|
|
12196
|
+
-webkit-user-select: none;
|
|
12197
|
+
-moz-user-select: none;
|
|
12198
|
+
-ms-user-select: none;
|
|
12199
|
+
user-select: none;
|
|
12200
|
+
}
|
|
12201
|
+
.condo-switch:focus {
|
|
12202
|
+
outline: 0;
|
|
12203
|
+
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
|
|
12204
|
+
}
|
|
12205
|
+
.condo-switch-checked:focus {
|
|
12206
|
+
box-shadow: 0 0 0 2px #e6f7ff;
|
|
12207
|
+
}
|
|
12208
|
+
.condo-switch:focus:hover {
|
|
12209
|
+
box-shadow: none;
|
|
12210
|
+
}
|
|
12211
|
+
.condo-switch-checked {
|
|
12212
|
+
background-color: #1890ff;
|
|
12213
|
+
}
|
|
12214
|
+
.condo-switch-loading,
|
|
12215
|
+
.condo-switch-disabled {
|
|
12216
|
+
cursor: not-allowed;
|
|
12217
|
+
opacity: 0.4;
|
|
12218
|
+
}
|
|
12219
|
+
.condo-switch-loading *,
|
|
12220
|
+
.condo-switch-disabled * {
|
|
12221
|
+
box-shadow: none;
|
|
12222
|
+
cursor: not-allowed;
|
|
12223
|
+
}
|
|
12224
|
+
.condo-switch-inner {
|
|
12225
|
+
display: block;
|
|
12226
|
+
margin: 0 7px 0 25px;
|
|
12227
|
+
color: #fff;
|
|
12228
|
+
font-size: 12px;
|
|
12229
|
+
transition: margin 0.2s;
|
|
12230
|
+
}
|
|
12231
|
+
.condo-switch-checked .condo-switch-inner {
|
|
12232
|
+
margin: 0 25px 0 7px;
|
|
12233
|
+
}
|
|
12234
|
+
.condo-switch-handle {
|
|
12235
|
+
position: absolute;
|
|
12236
|
+
top: 2px;
|
|
12237
|
+
left: 2px;
|
|
12238
|
+
width: 18px;
|
|
12239
|
+
height: 18px;
|
|
12240
|
+
transition: all 0.2s ease-in-out;
|
|
12241
|
+
}
|
|
12242
|
+
.condo-switch-handle::before {
|
|
12243
|
+
position: absolute;
|
|
12244
|
+
top: 0;
|
|
12245
|
+
right: 0;
|
|
12246
|
+
bottom: 0;
|
|
12247
|
+
left: 0;
|
|
12248
|
+
background-color: #fff;
|
|
12249
|
+
border-radius: 9px;
|
|
12250
|
+
box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
|
|
12251
|
+
transition: all 0.2s ease-in-out;
|
|
12252
|
+
content: '';
|
|
12253
|
+
}
|
|
12254
|
+
.condo-switch-checked .condo-switch-handle {
|
|
12255
|
+
left: calc(100% - 18px - 2px);
|
|
12256
|
+
}
|
|
12257
|
+
.condo-switch:not(.condo-switch-disabled):active .condo-switch-handle::before {
|
|
12258
|
+
right: -30%;
|
|
12259
|
+
left: 0;
|
|
12260
|
+
}
|
|
12261
|
+
.condo-switch:not(.condo-switch-disabled):active.condo-switch-checked .condo-switch-handle::before {
|
|
12262
|
+
right: 0;
|
|
12263
|
+
left: -30%;
|
|
12264
|
+
}
|
|
12265
|
+
.condo-switch-loading-icon.anticon {
|
|
12266
|
+
position: relative;
|
|
12267
|
+
top: 2px;
|
|
12268
|
+
color: rgba(0, 0, 0, 0.65);
|
|
12269
|
+
vertical-align: top;
|
|
12270
|
+
}
|
|
12271
|
+
.condo-switch-checked .condo-switch-loading-icon {
|
|
12272
|
+
color: #1890ff;
|
|
12273
|
+
}
|
|
12274
|
+
.condo-switch-small {
|
|
12275
|
+
min-width: 28px;
|
|
12276
|
+
height: 16px;
|
|
12277
|
+
line-height: 16px;
|
|
12278
|
+
}
|
|
12279
|
+
.condo-switch-small .condo-switch-inner {
|
|
12280
|
+
margin: 0 5px 0 18px;
|
|
12281
|
+
font-size: 12px;
|
|
12282
|
+
}
|
|
12283
|
+
.condo-switch-small .condo-switch-handle {
|
|
12284
|
+
width: 12px;
|
|
12285
|
+
height: 12px;
|
|
12286
|
+
}
|
|
12287
|
+
.condo-switch-small .condo-switch-loading-icon {
|
|
12288
|
+
top: 1.5px;
|
|
12289
|
+
font-size: 9px;
|
|
12290
|
+
}
|
|
12291
|
+
.condo-switch-small.condo-switch-checked .condo-switch-inner {
|
|
12292
|
+
margin: 0 18px 0 5px;
|
|
12293
|
+
}
|
|
12294
|
+
.condo-switch-small.condo-switch-checked .condo-switch-handle {
|
|
12295
|
+
left: calc(100% - 12px - 2px);
|
|
12296
|
+
}
|
|
12297
|
+
.condo-switch-rtl {
|
|
12298
|
+
direction: rtl;
|
|
12299
|
+
}
|
|
12300
|
+
.condo-switch-rtl .condo-switch-inner {
|
|
12301
|
+
margin: 0 25px 0 7px;
|
|
12302
|
+
}
|
|
12303
|
+
.condo-switch-rtl .condo-switch-handle {
|
|
12304
|
+
right: 2px;
|
|
12305
|
+
left: auto;
|
|
12306
|
+
}
|
|
12307
|
+
.condo-switch-rtl:not(.condo-switch-rtl-disabled):active .condo-switch-handle::before {
|
|
12308
|
+
right: 0;
|
|
12309
|
+
left: -30%;
|
|
12310
|
+
}
|
|
12311
|
+
.condo-switch-rtl:not(.condo-switch-rtl-disabled):active.condo-switch-checked .condo-switch-handle::before {
|
|
12312
|
+
right: -30%;
|
|
12313
|
+
left: 0;
|
|
12314
|
+
}
|
|
12315
|
+
.condo-switch-rtl.condo-switch-checked .condo-switch-inner {
|
|
12316
|
+
margin: 0 7px 0 25px;
|
|
12317
|
+
}
|
|
12318
|
+
.condo-switch-rtl.condo-switch-checked .condo-switch-handle {
|
|
12319
|
+
right: calc(100% - 18px - 2px);
|
|
12320
|
+
}
|
|
12321
|
+
.condo-switch-rtl.condo-switch-small.condo-switch-checked .condo-switch-handle {
|
|
12322
|
+
right: calc(100% - 12px - 2px);
|
|
12323
|
+
}
|
|
12324
|
+
.condo-switch {
|
|
12325
|
+
min-width: 36px;
|
|
12326
|
+
height: 20px;
|
|
12327
|
+
background: transparent;
|
|
12328
|
+
border: 1px solid #d0d3e5;
|
|
12329
|
+
}
|
|
12330
|
+
.condo-switch .condo-switch-handle {
|
|
12331
|
+
top: 1px;
|
|
12332
|
+
left: 1px;
|
|
12333
|
+
width: 16px;
|
|
12334
|
+
height: 16px;
|
|
12335
|
+
}
|
|
12336
|
+
.condo-switch .condo-switch-handle::before {
|
|
12337
|
+
background: #d0d3e5;
|
|
12338
|
+
box-shadow: none;
|
|
12339
|
+
transition: background 0ms;
|
|
12340
|
+
}
|
|
12341
|
+
.condo-switch.condo-switch-checked {
|
|
12342
|
+
background: linear-gradient(90deg, #e2ffeb 0%, #e7f4ff 100%);
|
|
12343
|
+
}
|
|
12344
|
+
.condo-switch.condo-switch-checked::before {
|
|
12345
|
+
position: absolute;
|
|
12346
|
+
top: -1px;
|
|
12347
|
+
right: -1px;
|
|
12348
|
+
bottom: -1px;
|
|
12349
|
+
left: -1px;
|
|
12350
|
+
display: block;
|
|
12351
|
+
background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%) border-box;
|
|
12352
|
+
border: 1px solid transparent;
|
|
12353
|
+
border-radius: inherit;
|
|
12354
|
+
content: "";
|
|
12355
|
+
-webkit-mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12356
|
+
mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12357
|
+
-webkit-mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12358
|
+
mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12359
|
+
-webkit-mask-composite: xor;
|
|
12360
|
+
mask-composite: exclude;
|
|
12361
|
+
opacity: 0;
|
|
12362
|
+
transition: opacity 0.15s;
|
|
12363
|
+
}
|
|
12364
|
+
.condo-switch.condo-switch-checked .condo-switch-handle {
|
|
12365
|
+
left: calc(100% - 16px - 1px);
|
|
12366
|
+
}
|
|
12367
|
+
.condo-switch.condo-switch-checked .condo-switch-handle::before {
|
|
12368
|
+
background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%);
|
|
12369
|
+
}
|
|
12370
|
+
.condo-switch.condo-switch-checked:hover:not(.condo-switch-disabled) {
|
|
12371
|
+
border: 1px solid transparent;
|
|
12372
|
+
}
|
|
12373
|
+
.condo-switch.condo-switch-checked:hover:not(.condo-switch-disabled)::before {
|
|
12374
|
+
opacity: 1;
|
|
12375
|
+
}
|
|
12376
|
+
.condo-switch:focus {
|
|
12377
|
+
box-shadow: none;
|
|
12378
|
+
}
|
|
12379
|
+
.condo-switch.focus-visible {
|
|
12380
|
+
outline: none;
|
|
12381
|
+
}
|
|
12382
|
+
.condo-switch:focus-visible {
|
|
12383
|
+
outline: none;
|
|
12384
|
+
}
|
|
12385
|
+
.condo-switch.focus-visible::after {
|
|
12386
|
+
position: absolute;
|
|
12387
|
+
top: -5px;
|
|
12388
|
+
right: -5px;
|
|
12389
|
+
bottom: -5px;
|
|
12390
|
+
left: -5px;
|
|
12391
|
+
display: block;
|
|
12392
|
+
background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%) border-box;
|
|
12393
|
+
border: 2px solid transparent;
|
|
12394
|
+
border-radius: inherit;
|
|
12395
|
+
content: "";
|
|
12396
|
+
-webkit-mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12397
|
+
mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12398
|
+
-webkit-mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12399
|
+
mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12400
|
+
-webkit-mask-composite: xor;
|
|
12401
|
+
mask-composite: exclude;
|
|
12402
|
+
}
|
|
12403
|
+
.condo-switch.focus-visible::after {
|
|
12404
|
+
position: absolute;
|
|
12405
|
+
top: -5px;
|
|
12406
|
+
right: -5px;
|
|
12407
|
+
bottom: -5px;
|
|
12408
|
+
left: -5px;
|
|
12409
|
+
display: block;
|
|
12410
|
+
background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%) border-box;
|
|
12411
|
+
border: 2px solid transparent;
|
|
12412
|
+
border-radius: inherit;
|
|
12413
|
+
content: "";
|
|
12414
|
+
-webkit-mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12415
|
+
mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12416
|
+
-webkit-mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12417
|
+
mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12418
|
+
-webkit-mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12419
|
+
mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12420
|
+
-webkit-mask-composite: xor;
|
|
12421
|
+
mask-composite: exclude;
|
|
12422
|
+
}
|
|
12423
|
+
.condo-switch:focus-visible::after {
|
|
12424
|
+
position: absolute;
|
|
12425
|
+
top: -5px;
|
|
12426
|
+
right: -5px;
|
|
12427
|
+
bottom: -5px;
|
|
12428
|
+
left: -5px;
|
|
12429
|
+
display: block;
|
|
12430
|
+
background: linear-gradient(90deg, #26c756 0%, #4ba2e4 100%) border-box;
|
|
12431
|
+
border: 2px solid transparent;
|
|
12432
|
+
border-radius: inherit;
|
|
12433
|
+
content: "";
|
|
12434
|
+
-webkit-mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12435
|
+
mask: linear-gradient(#111 0, #111 0) padding-box, linear-gradient(#fff 0, #fff 0);
|
|
12436
|
+
-webkit-mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12437
|
+
mask: linear-gradient(#111 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
12438
|
+
-webkit-mask-composite: xor;
|
|
12439
|
+
mask-composite: exclude;
|
|
12440
|
+
}
|
|
12441
|
+
.condo-switch:hover:not(.condo-switch-disabled) {
|
|
12442
|
+
border-color: #707695;
|
|
12443
|
+
transition: border-color 0ms;
|
|
12444
|
+
}
|
|
12445
|
+
.condo-switch.condo-switch-small {
|
|
12446
|
+
min-width: 28px;
|
|
12447
|
+
height: 16px;
|
|
12448
|
+
}
|
|
12449
|
+
.condo-switch.condo-switch-small .condo-switch-handle {
|
|
12450
|
+
top: 1px;
|
|
12451
|
+
left: 1px;
|
|
12452
|
+
width: 12px;
|
|
12453
|
+
height: 12px;
|
|
12454
|
+
}
|
|
12455
|
+
.condo-switch.condo-switch-small.condo-switch-checked .condo-switch-handle {
|
|
12456
|
+
left: calc(100% - 12px - 1px);
|
|
12457
|
+
}
|
|
12458
|
+
|