@eqtylab/equality 2.2.4 → 2.3.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/dist/index.cjs +191 -117
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +187 -115
- package/dist/index.js.map +1 -1
- package/dist/segmented-controls.module.module.css.module.css +86 -0
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.segmented-controls {
|
|
3
|
+
border-style: var(--tw-border-style);
|
|
4
|
+
border-width: 1px;
|
|
5
|
+
border-color: var(--color-button-tertiary-border);
|
|
6
|
+
display: flex;
|
|
7
|
+
border-radius: var(--radius-md, 0.375rem);
|
|
8
|
+
width: max-content;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
background-color: var(--color-button-tertiary-fill);
|
|
11
|
+
position: relative;
|
|
12
|
+
}
|
|
13
|
+
.segment {
|
|
14
|
+
border-radius: 0 !important;
|
|
15
|
+
border-style: var(--tw-border-style);
|
|
16
|
+
border-width: 0px;
|
|
17
|
+
position: relative;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: calc(0.25rem * 1.5);
|
|
22
|
+
height: calc(0.25rem * 8);
|
|
23
|
+
padding-inline: calc(0.25rem * 3);
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
line-height: var(--tw-leading, calc(1.25 / 0.875));
|
|
26
|
+
--tw-font-weight: 500;
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
.segment--icon-only {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
width: calc(0.25rem * 8);
|
|
37
|
+
height: calc(0.25rem * 8);
|
|
38
|
+
gap: calc(0.25rem * 0);
|
|
39
|
+
padding-inline: calc(0.25rem * 0);
|
|
40
|
+
}
|
|
41
|
+
.segment--active,
|
|
42
|
+
.segment--active .segment-icon {
|
|
43
|
+
color: var(--color-button-primary-text);
|
|
44
|
+
}
|
|
45
|
+
.segment--inactive,
|
|
46
|
+
.segment--inactive .segment-icon {
|
|
47
|
+
color: var(--color-text-secondary);
|
|
48
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
49
|
+
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
50
|
+
transition-duration: var(--tw-duration, 150ms);
|
|
51
|
+
--tw-duration: 300ms;
|
|
52
|
+
transition-duration: 300ms;
|
|
53
|
+
}
|
|
54
|
+
.segment--inactive:hover,
|
|
55
|
+
.segment--inactive:hover .segment-icon {
|
|
56
|
+
color: var(--color-text-primary);
|
|
57
|
+
}
|
|
58
|
+
.segment-icon,
|
|
59
|
+
.segment-suffix {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
64
|
+
.active-segment-indicator {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: calc(0.25rem * 0);
|
|
67
|
+
bottom: calc(0.25rem * 0);
|
|
68
|
+
left: calc(0.25rem * 0);
|
|
69
|
+
background-color: var(--color-button-primary-fill);
|
|
70
|
+
transition-property: transform,width;
|
|
71
|
+
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
72
|
+
transition-duration: var(--tw-duration, 150ms);
|
|
73
|
+
}
|
|
74
|
+
@property --tw-border-style {
|
|
75
|
+
syntax: "*";
|
|
76
|
+
inherits: false;
|
|
77
|
+
initial-value: solid;
|
|
78
|
+
}
|
|
79
|
+
@property --tw-font-weight {
|
|
80
|
+
syntax: "*";
|
|
81
|
+
inherits: false;
|
|
82
|
+
}
|
|
83
|
+
@property --tw-duration {
|
|
84
|
+
syntax: "*";
|
|
85
|
+
inherits: false;
|
|
86
|
+
}
|
package/package.json
CHANGED