rei-kit 2.15.0 → 2.16.0
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/README.md +4 -4
- package/dist/components/ColorPicker.vue.d.ts +58 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +308 -167
- package/dist/index.js.map +1 -1
- package/dist/styles.css +92 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1464,6 +1464,98 @@ to {
|
|
|
1464
1464
|
color: var(--color-ink-soft);
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
+
.rk-color-row[data-v-5ca23aa9] {
|
|
1468
|
+
display: flex;
|
|
1469
|
+
flex-wrap: wrap;
|
|
1470
|
+
align-items: center;
|
|
1471
|
+
gap: 0.5rem;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/* The well is what is seen; the input inside it is the whole target. A
|
|
1475
|
+
native colour input cannot be styled past its swatch in every browser, so
|
|
1476
|
+
it is stretched over a box that can be. */
|
|
1477
|
+
.rk-color-well[data-v-5ca23aa9] {
|
|
1478
|
+
position: relative;
|
|
1479
|
+
display: block;
|
|
1480
|
+
width: 2.75rem;
|
|
1481
|
+
height: 2.75rem;
|
|
1482
|
+
overflow: hidden;
|
|
1483
|
+
border-radius: var(--radius-card);
|
|
1484
|
+
border: 1px solid var(--color-hair);
|
|
1485
|
+
background: var(--rk-color);
|
|
1486
|
+
}
|
|
1487
|
+
.rk-color-native[data-v-5ca23aa9] {
|
|
1488
|
+
position: absolute;
|
|
1489
|
+
inset: 0;
|
|
1490
|
+
width: 100%;
|
|
1491
|
+
height: 100%;
|
|
1492
|
+
cursor: pointer;
|
|
1493
|
+
opacity: 0;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
/* The ring goes on the well, since the input it belongs to is invisible. */
|
|
1497
|
+
.rk-color-well[data-v-5ca23aa9]:has(.rk-color-native:focus-visible) {
|
|
1498
|
+
outline: 2px solid var(--color-primary);
|
|
1499
|
+
outline-offset: 2px;
|
|
1500
|
+
}
|
|
1501
|
+
.rk-color-native[data-v-5ca23aa9]:disabled {
|
|
1502
|
+
cursor: not-allowed;
|
|
1503
|
+
}
|
|
1504
|
+
.rk-color-hex[data-v-5ca23aa9] {
|
|
1505
|
+
width: 7.5rem;
|
|
1506
|
+
height: 2.75rem;
|
|
1507
|
+
border-radius: var(--radius-card);
|
|
1508
|
+
padding: 0 0.75rem;
|
|
1509
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
1510
|
+
/* 16px like every other text control here: iOS zooms the viewport when it
|
|
1511
|
+
focuses a field under 16px and never zooms back. */
|
|
1512
|
+
font-size: 1rem;
|
|
1513
|
+
color: var(--color-ink);
|
|
1514
|
+
}
|
|
1515
|
+
.rk-color-hex[data-v-5ca23aa9]:focus-visible {
|
|
1516
|
+
outline: 2px solid var(--color-primary);
|
|
1517
|
+
outline-offset: -1px;
|
|
1518
|
+
}
|
|
1519
|
+
.rk-color-hex[data-v-5ca23aa9]:disabled {
|
|
1520
|
+
opacity: 0.5;
|
|
1521
|
+
}
|
|
1522
|
+
.rk-color-swatches[data-v-5ca23aa9] {
|
|
1523
|
+
display: flex;
|
|
1524
|
+
flex-wrap: wrap;
|
|
1525
|
+
gap: 0.375rem;
|
|
1526
|
+
}
|
|
1527
|
+
.rk-color-swatch[data-v-5ca23aa9] {
|
|
1528
|
+
display: block;
|
|
1529
|
+
width: 1.75rem;
|
|
1530
|
+
height: 1.75rem;
|
|
1531
|
+
border-radius: 9999px;
|
|
1532
|
+
border: 1px solid var(--color-hair);
|
|
1533
|
+
background: var(--rk-color);
|
|
1534
|
+
transition: transform var(--duration-fast) var(--ease-standard);
|
|
1535
|
+
}
|
|
1536
|
+
.rk-color-swatch[data-v-5ca23aa9]:hover:not(:disabled) {
|
|
1537
|
+
transform: scale(1.1);
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/* A ring around the chosen one rather than a tick: a tick has to be dark or
|
|
1541
|
+
light to be seen, and the swatch beneath it is whatever the app chose. */
|
|
1542
|
+
.rk-color-swatch.is-chosen[data-v-5ca23aa9] {
|
|
1543
|
+
box-shadow:
|
|
1544
|
+
0 0 0 2px var(--color-surface),
|
|
1545
|
+
0 0 0 4px var(--color-primary);
|
|
1546
|
+
}
|
|
1547
|
+
.rk-color-swatch[data-v-5ca23aa9]:disabled {
|
|
1548
|
+
opacity: 0.5;
|
|
1549
|
+
}
|
|
1550
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1551
|
+
.rk-color-swatch[data-v-5ca23aa9] {
|
|
1552
|
+
transition: none;
|
|
1553
|
+
}
|
|
1554
|
+
.rk-color-swatch[data-v-5ca23aa9]:hover:not(:disabled) {
|
|
1555
|
+
transform: none;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1467
1559
|
.rk-copy[data-v-c481e140] {
|
|
1468
1560
|
display: inline-flex;
|
|
1469
1561
|
height: 2.25rem;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rei-kit",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "One kit, every look.
|
|
3
|
+
"version": "2.16.0",
|
|
4
|
+
"description": "One kit, every look. 91 accessible Vue 3 + Tailwind 4 components, four materials (quiet, glass, brutal, soft) and ten WCAG-checked palettes, each switched with one attribute.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
7
7
|
"vue3",
|