@guildofgleks/ui 21.2.3 → 21.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/README.md +320 -192
- package/fesm2022/guildofgleks-ui.mjs +6715 -1016
- package/fesm2022/guildofgleks-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/presets/one-dark.css +48 -0
- package/src/styles/presets/one-light.css +47 -0
- package/src/styles/presets/slate.css +55 -0
- package/src/styles/theme.css +1643 -937
- package/src/styles/utilities.css +137 -0
- package/types/guildofgleks-ui.d.ts +2584 -326
package/src/styles/utilities.css
CHANGED
|
@@ -31,3 +31,140 @@
|
|
|
31
31
|
.gog-cursor-not-allowed {
|
|
32
32
|
cursor: not-allowed;
|
|
33
33
|
}
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* Present to assistive tech, invisible on screen. The clip-path/1px recipe rather than
|
|
37
|
+
* `display: none` or `visibility: hidden`, both of which remove the text from the
|
|
38
|
+
* accessibility tree along with the pixels.
|
|
39
|
+
*/
|
|
40
|
+
.gog-visually-hidden {
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 1px;
|
|
43
|
+
height: 1px;
|
|
44
|
+
margin: -1px;
|
|
45
|
+
padding: 0;
|
|
46
|
+
border: 0;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
clip-path: inset(50%);
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* `gogBadge`'s classes, global for the same reason as `gog-collapsible`'s below: the
|
|
54
|
+
* directive appends its badge into a *consumer's* element, which is light DOM belonging to
|
|
55
|
+
* that consumer's view, so a scoped stylesheet could never reach it.
|
|
56
|
+
*/
|
|
57
|
+
.gog-badge-host {
|
|
58
|
+
/* The badge is positioned against this element, so it has to be a containing block.
|
|
59
|
+
Harmless on an already-relative host; a host that is itself absolutely positioned
|
|
60
|
+
should set its own position after this class, which ordinary specificity allows. */
|
|
61
|
+
position: relative;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.gog-badge {
|
|
65
|
+
position: absolute;
|
|
66
|
+
z-index: var(--gog-badge-z);
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
min-width: var(--gog-badge-size);
|
|
72
|
+
height: var(--gog-badge-size);
|
|
73
|
+
padding-inline: var(--gog-badge-padding-inline);
|
|
74
|
+
border: var(--gog-badge-border-width) var(--gog-badge-border-style) var(--gog-badge-border-color);
|
|
75
|
+
border-radius: var(--gog-badge-radius);
|
|
76
|
+
background-color: var(--gog-badge-bg, var(--gog-badge-variant-bg, var(--gog-badge-danger-bg)));
|
|
77
|
+
color: var(--gog-badge-color, var(--gog-badge-variant-color, var(--gog-badge-danger-color)));
|
|
78
|
+
font-family: var(--gog-badge-font-family);
|
|
79
|
+
font-size: var(--gog-badge-font-size);
|
|
80
|
+
font-weight: var(--gog-badge-font-weight);
|
|
81
|
+
line-height: var(--gog-badge-line-height);
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* A dot carries no text, so it collapses to a circle and drops its padding. */
|
|
87
|
+
.gog-badge--dot {
|
|
88
|
+
min-width: var(--gog-badge-dot-size);
|
|
89
|
+
width: var(--gog-badge-dot-size);
|
|
90
|
+
height: var(--gog-badge-dot-size);
|
|
91
|
+
padding-inline: 0;
|
|
92
|
+
border-radius: 50%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Logical insets rather than a translate, so the corners follow the writing direction. */
|
|
96
|
+
.gog-badge--top-end {
|
|
97
|
+
top: calc(-1 * var(--gog-badge-offset));
|
|
98
|
+
inset-inline-end: calc(-1 * var(--gog-badge-offset));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.gog-badge--top-start {
|
|
102
|
+
top: calc(-1 * var(--gog-badge-offset));
|
|
103
|
+
inset-inline-start: calc(-1 * var(--gog-badge-offset));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.gog-badge--bottom-end {
|
|
107
|
+
bottom: calc(-1 * var(--gog-badge-offset));
|
|
108
|
+
inset-inline-end: calc(-1 * var(--gog-badge-offset));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gog-badge--bottom-start {
|
|
112
|
+
bottom: calc(-1 * var(--gog-badge-offset));
|
|
113
|
+
inset-inline-start: calc(-1 * var(--gog-badge-offset));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.gog-badge--success {
|
|
117
|
+
--gog-badge-variant-bg: var(--gog-badge-success-bg);
|
|
118
|
+
--gog-badge-variant-color: var(--gog-badge-success-color);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.gog-badge--danger {
|
|
122
|
+
--gog-badge-variant-bg: var(--gog-badge-danger-bg);
|
|
123
|
+
--gog-badge-variant-color: var(--gog-badge-danger-color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.gog-badge--warning {
|
|
127
|
+
--gog-badge-variant-bg: var(--gog-badge-warning-bg);
|
|
128
|
+
--gog-badge-variant-color: var(--gog-badge-warning-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.gog-badge--info {
|
|
132
|
+
--gog-badge-variant-bg: var(--gog-badge-info-bg);
|
|
133
|
+
--gog-badge-variant-color: var(--gog-badge-info-color);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/*
|
|
137
|
+
* `gog-collapsible`'s trigger/content classes, global rather than component-scoped: both
|
|
138
|
+
* are applied via `gogCollapsibleTrigger`/`gogCollapsibleContent` directives to elements a
|
|
139
|
+
* *consumer* projects into `<gog-collapsible>` — light DOM that belongs to the consumer's
|
|
140
|
+
* own view, not `gog-collapsible`'s, so a scoped stylesheet on the component itself would
|
|
141
|
+
* never reach it.
|
|
142
|
+
*/
|
|
143
|
+
.gog-collapsible__trigger {
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.gog-collapsible__trigger[aria-disabled='true'] {
|
|
148
|
+
cursor: not-allowed;
|
|
149
|
+
opacity: var(--gog-collapsible-disabled-opacity);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.gog-collapsible__content {
|
|
153
|
+
max-height: 0;
|
|
154
|
+
opacity: 0;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
transition:
|
|
157
|
+
max-height var(--gog-collapsible-transition-duration) var(--gog-easing),
|
|
158
|
+
opacity var(--gog-collapsible-transition-duration) var(--gog-easing);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.gog-collapsible__content--open {
|
|
162
|
+
max-height: var(--gog-collapsible-max-height);
|
|
163
|
+
opacity: 1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@media (prefers-reduced-motion: reduce) {
|
|
167
|
+
.gog-collapsible__content {
|
|
168
|
+
transition: none;
|
|
169
|
+
}
|
|
170
|
+
}
|