@guildofgleks/ui 21.3.0 → 21.3.2
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/AGENTS.md +1149 -0
- package/LICENSE +201 -21
- package/README.md +397 -320
- package/TOKENS.md +63 -0
- package/fesm2022/guildofgleks-ui.mjs +863 -120
- package/fesm2022/guildofgleks-ui.mjs.map +1 -1
- package/package.json +12 -5
- package/src/styles/index.css +17 -17
- package/src/styles/theme.css +1681 -1643
- package/styles/fonts.css +16 -0
- package/styles/index.css +17 -0
- package/styles/presets/one-dark.css +48 -0
- package/styles/presets/one-light.css +47 -0
- package/styles/presets/slate.css +55 -0
- package/styles/theme.css +1681 -0
- package/styles/typography.css +15 -0
- package/styles/utilities.css +170 -0
- package/types/guildofgleks-ui.d.ts +642 -54
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.fw-black {
|
|
2
|
+
font-weight: 900;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.font-heading {
|
|
6
|
+
font-family: var(--gog-font-heading), serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.font-body {
|
|
10
|
+
font-family: var(--gog-font-body), sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.font-mono {
|
|
14
|
+
font-family: var(--gog-font-mono), monospace;
|
|
15
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
.gog-inline-center {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.gog-flex-center {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Scopes reflow to this subtree. Never put it on an element that has to paint something
|
|
15
|
+
* outside its own box — `contain: layout` creates a stacking context, so a popup inside
|
|
16
|
+
* it can no longer stack above the rest of the page no matter its z-index. That rules it
|
|
17
|
+
* out for gog-select and gog-multiselect.
|
|
18
|
+
*/
|
|
19
|
+
.gog-contained-layout {
|
|
20
|
+
contain: layout style;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.gog-cursor-pointer {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.gog-cursor-wait {
|
|
28
|
+
cursor: wait;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.gog-cursor-not-allowed {
|
|
32
|
+
cursor: not-allowed;
|
|
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
|
+
}
|