@kanso-labs/kanso-ui-core 0.0.0 → 0.1.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 +10 -1
- package/dist/defaults-DMH0HWCw.d.ts +414 -0
- package/dist/glyphs.d.ts +47 -0
- package/dist/glyphs.js +49 -0
- package/dist/glyphs.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +407 -0
- package/dist/index.js.map +1 -0
- package/dist/stylesheet.d.ts +3 -0
- package/dist/themes.d.ts +21 -0
- package/dist/themes.js +943 -0
- package/dist/themes.js.map +1 -0
- package/dist/tokens.css +406 -0
- package/dist/tokens.json +1503 -0
- package/package.json +23 -6
package/README.md
CHANGED
|
@@ -12,7 +12,15 @@ on iOS and Android.
|
|
|
12
12
|
The package is data and types only. Both libraries build from it and bundle what
|
|
13
13
|
they read, so an app installs one of them rather than this.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
## What it publishes
|
|
16
|
+
|
|
17
|
+
| Import | What it is |
|
|
18
|
+
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
19
|
+
| `@kanso-labs/kanso-ui-core` | `light` and `dark`, every `--kui-*` property at its value in each scheme; `breakpoints`, the window size classes; the `KuiTheme` type |
|
|
20
|
+
| `@kanso-labs/kanso-ui-core/glyphs` | The path data of the glyphs both libraries draw inside their controls, one `<name>Path` constant each, and the 24-unit `gridSize` |
|
|
21
|
+
| `@kanso-labs/kanso-ui-core/themes` | `demoThemes`, the seven demo schemes both libraries' Storybooks render, each a `KuiTheme` with a label and a description |
|
|
22
|
+
| `@kanso-labs/kanso-ui-core/tokens.css` | The `--kui-*` custom properties at their defaults, the dark colours under `prefers-color-scheme: dark`, as both libraries publish them |
|
|
23
|
+
| `@kanso-labs/kanso-ui-core/tokens.json` | The design tokens themselves, in the W3C Design Tokens format |
|
|
16
24
|
|
|
17
25
|
## Development
|
|
18
26
|
|
|
@@ -28,6 +36,7 @@ mise exec node@"$(awk '/^nodejs/{print $2}' .tool-versions)" -- npm install
|
|
|
28
36
|
| Lint | `npm run lint` |
|
|
29
37
|
| Build | `npm run build` |
|
|
30
38
|
| Verify | `npm run package:check` |
|
|
39
|
+
| Tokens | `npm run tokens:build` |
|
|
31
40
|
|
|
32
41
|
## License
|
|
33
42
|
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A theme: any of the `--kui-*` custom properties `tokens.css` lists, each set
|
|
3
|
+
* to a value in CSS syntax. Hand one to `ThemeScope`'s `theme` prop, and every
|
|
4
|
+
* component inside reads it.
|
|
5
|
+
*
|
|
6
|
+
* The values hold for both schemes. A theme with a value of its own for light
|
|
7
|
+
* and for dark is two of these, with the scope handed the one for the scheme
|
|
8
|
+
* in use.
|
|
9
|
+
*/
|
|
10
|
+
type KuiTheme = {
|
|
11
|
+
/** Defaults to `#fef7ff` in the light scheme and `#141218` in the dark. */
|
|
12
|
+
readonly '--kui-color-background'?: string;
|
|
13
|
+
/** Defaults to `#b3261e` in the light scheme and `#f2b8b5` in the dark. */
|
|
14
|
+
readonly '--kui-color-error'?: string;
|
|
15
|
+
/** Defaults to `#f9dedc` in the light scheme and `#8c1d18` in the dark. */
|
|
16
|
+
readonly '--kui-color-error-container'?: string;
|
|
17
|
+
/** Defaults to `#f5eff7` in the light scheme and `#322f35` in the dark. */
|
|
18
|
+
readonly '--kui-color-inverse-on-surface'?: string;
|
|
19
|
+
/** Defaults to `#d0bcff` in the light scheme and `#6750a4` in the dark. */
|
|
20
|
+
readonly '--kui-color-inverse-primary'?: string;
|
|
21
|
+
/** Defaults to `#322f35` in the light scheme and `#e6e0e9` in the dark. */
|
|
22
|
+
readonly '--kui-color-inverse-surface'?: string;
|
|
23
|
+
/** Defaults to `#a04022` in the light scheme and `#ffb59f` in the dark. */
|
|
24
|
+
readonly '--kui-color-negative'?: string;
|
|
25
|
+
/** Defaults to `#ffdbd1` in the light scheme and `#81290c` in the dark. */
|
|
26
|
+
readonly '--kui-color-negative-container'?: string;
|
|
27
|
+
/** Defaults to `#1d1b20` in the light scheme and `#e6e0e9` in the dark. */
|
|
28
|
+
readonly '--kui-color-on-background'?: string;
|
|
29
|
+
/** Defaults to `#ffffff` in the light scheme and `#601410` in the dark. */
|
|
30
|
+
readonly '--kui-color-on-error'?: string;
|
|
31
|
+
/** Defaults to `#410e0b` in the light scheme and `#f9dedc` in the dark. */
|
|
32
|
+
readonly '--kui-color-on-error-container'?: string;
|
|
33
|
+
/** Defaults to `#ffffff` in the light scheme and `#5f1600` in the dark. */
|
|
34
|
+
readonly '--kui-color-on-negative'?: string;
|
|
35
|
+
/** Defaults to `#3a0a00` in the light scheme and `#ffdbd1` in the dark. */
|
|
36
|
+
readonly '--kui-color-on-negative-container'?: string;
|
|
37
|
+
/** Defaults to `#ffffff` in the light scheme and `#003827` in the dark. */
|
|
38
|
+
readonly '--kui-color-on-positive'?: string;
|
|
39
|
+
/** Defaults to `#002115` in the light scheme and `#90f6ca` in the dark. */
|
|
40
|
+
readonly '--kui-color-on-positive-container'?: string;
|
|
41
|
+
/** Defaults to `#ffffff` in the light scheme and `#381e72` in the dark. */
|
|
42
|
+
readonly '--kui-color-on-primary'?: string;
|
|
43
|
+
/** Defaults to `#21005d` in the light scheme and `#eaddff` in the dark. */
|
|
44
|
+
readonly '--kui-color-on-primary-container'?: string;
|
|
45
|
+
/** Defaults to `#21005d`. */
|
|
46
|
+
readonly '--kui-color-on-primary-fixed'?: string;
|
|
47
|
+
/** Defaults to `#4f378b`. */
|
|
48
|
+
readonly '--kui-color-on-primary-fixed-variant'?: string;
|
|
49
|
+
/** Defaults to `#ffffff` in the light scheme and `#332d41` in the dark. */
|
|
50
|
+
readonly '--kui-color-on-secondary'?: string;
|
|
51
|
+
/** Defaults to `#1d192b` in the light scheme and `#e8def8` in the dark. */
|
|
52
|
+
readonly '--kui-color-on-secondary-container'?: string;
|
|
53
|
+
/** Defaults to `#1d192b`. */
|
|
54
|
+
readonly '--kui-color-on-secondary-fixed'?: string;
|
|
55
|
+
/** Defaults to `#4a4458`. */
|
|
56
|
+
readonly '--kui-color-on-secondary-fixed-variant'?: string;
|
|
57
|
+
/** Defaults to `#1d1b20` in the light scheme and `#e6e0e9` in the dark. */
|
|
58
|
+
readonly '--kui-color-on-surface'?: string;
|
|
59
|
+
/** Defaults to `#49454f` in the light scheme and `#cac4d0` in the dark. */
|
|
60
|
+
readonly '--kui-color-on-surface-variant'?: string;
|
|
61
|
+
/** Defaults to `#ffffff` in the light scheme and `#492532` in the dark. */
|
|
62
|
+
readonly '--kui-color-on-tertiary'?: string;
|
|
63
|
+
/** Defaults to `#31111d` in the light scheme and `#ffd8e4` in the dark. */
|
|
64
|
+
readonly '--kui-color-on-tertiary-container'?: string;
|
|
65
|
+
/** Defaults to `#31111d`. */
|
|
66
|
+
readonly '--kui-color-on-tertiary-fixed'?: string;
|
|
67
|
+
/** Defaults to `#633b48`. */
|
|
68
|
+
readonly '--kui-color-on-tertiary-fixed-variant'?: string;
|
|
69
|
+
/** Defaults to `#79747e` in the light scheme and `#938f99` in the dark. */
|
|
70
|
+
readonly '--kui-color-outline'?: string;
|
|
71
|
+
/** Defaults to `#cac4d0` in the light scheme and `#49454f` in the dark. */
|
|
72
|
+
readonly '--kui-color-outline-variant'?: string;
|
|
73
|
+
/** Defaults to `#006c4d` in the light scheme and `#74d9af` in the dark. */
|
|
74
|
+
readonly '--kui-color-positive'?: string;
|
|
75
|
+
/** Defaults to `#90f6ca` in the light scheme and `#00513a` in the dark. */
|
|
76
|
+
readonly '--kui-color-positive-container'?: string;
|
|
77
|
+
/** Defaults to `#6750a4` in the light scheme and `#d0bcff` in the dark. */
|
|
78
|
+
readonly '--kui-color-primary'?: string;
|
|
79
|
+
/** Defaults to `#eaddff` in the light scheme and `#4f378b` in the dark. */
|
|
80
|
+
readonly '--kui-color-primary-container'?: string;
|
|
81
|
+
/** Defaults to `#eaddff`. */
|
|
82
|
+
readonly '--kui-color-primary-fixed'?: string;
|
|
83
|
+
/** Defaults to `#d0bcff`. */
|
|
84
|
+
readonly '--kui-color-primary-fixed-dim'?: string;
|
|
85
|
+
/** Defaults to `#000000`. */
|
|
86
|
+
readonly '--kui-color-scrim'?: string;
|
|
87
|
+
/** Defaults to `#625b71` in the light scheme and `#ccc2dc` in the dark. */
|
|
88
|
+
readonly '--kui-color-secondary'?: string;
|
|
89
|
+
/** Defaults to `#e8def8` in the light scheme and `#4a4458` in the dark. */
|
|
90
|
+
readonly '--kui-color-secondary-container'?: string;
|
|
91
|
+
/** Defaults to `#e8def8`. */
|
|
92
|
+
readonly '--kui-color-secondary-fixed'?: string;
|
|
93
|
+
/** Defaults to `#ccc2dc`. */
|
|
94
|
+
readonly '--kui-color-secondary-fixed-dim'?: string;
|
|
95
|
+
/** Defaults to `#000000`. */
|
|
96
|
+
readonly '--kui-color-shadow'?: string;
|
|
97
|
+
/** Defaults to `#fef7ff` in the light scheme and `#141218` in the dark. */
|
|
98
|
+
readonly '--kui-color-surface'?: string;
|
|
99
|
+
/** Defaults to `#fef7ff` in the light scheme and `#3b383e` in the dark. */
|
|
100
|
+
readonly '--kui-color-surface-bright'?: string;
|
|
101
|
+
/** Defaults to `#f3edf7` in the light scheme and `#211f26` in the dark. */
|
|
102
|
+
readonly '--kui-color-surface-container'?: string;
|
|
103
|
+
/** Defaults to `#ece6f0` in the light scheme and `#2b2930` in the dark. */
|
|
104
|
+
readonly '--kui-color-surface-container-high'?: string;
|
|
105
|
+
/** Defaults to `#e6e0e9` in the light scheme and `#36343b` in the dark. */
|
|
106
|
+
readonly '--kui-color-surface-container-highest'?: string;
|
|
107
|
+
/** Defaults to `#f7f2fa` in the light scheme and `#1d1b20` in the dark. */
|
|
108
|
+
readonly '--kui-color-surface-container-low'?: string;
|
|
109
|
+
/** Defaults to `#ffffff` in the light scheme and `#0f0d13` in the dark. */
|
|
110
|
+
readonly '--kui-color-surface-container-lowest'?: string;
|
|
111
|
+
/** Defaults to `#ded8e1` in the light scheme and `#141218` in the dark. */
|
|
112
|
+
readonly '--kui-color-surface-dim'?: string;
|
|
113
|
+
/** Defaults to `#6750a4` in the light scheme and `#d0bcff` in the dark. */
|
|
114
|
+
readonly '--kui-color-surface-tint'?: string;
|
|
115
|
+
/** Defaults to `#e7e0ec` in the light scheme and `#49454f` in the dark. */
|
|
116
|
+
readonly '--kui-color-surface-variant'?: string;
|
|
117
|
+
/** Defaults to `#7d5260` in the light scheme and `#efb8c8` in the dark. */
|
|
118
|
+
readonly '--kui-color-tertiary'?: string;
|
|
119
|
+
/** Defaults to `#ffd8e4` in the light scheme and `#633b48` in the dark. */
|
|
120
|
+
readonly '--kui-color-tertiary-container'?: string;
|
|
121
|
+
/** Defaults to `#ffd8e4`. */
|
|
122
|
+
readonly '--kui-color-tertiary-fixed'?: string;
|
|
123
|
+
/** Defaults to `#efb8c8`. */
|
|
124
|
+
readonly '--kui-color-tertiary-fixed-dim'?: string;
|
|
125
|
+
/** Defaults to `450ms`. */
|
|
126
|
+
readonly '--kui-motion-duration-long1'?: string;
|
|
127
|
+
/** Defaults to `500ms`. */
|
|
128
|
+
readonly '--kui-motion-duration-long2'?: string;
|
|
129
|
+
/** Defaults to `600ms`. */
|
|
130
|
+
readonly '--kui-motion-duration-long3'?: string;
|
|
131
|
+
/** Defaults to `250ms`. */
|
|
132
|
+
readonly '--kui-motion-duration-medium1'?: string;
|
|
133
|
+
/** Defaults to `300ms`. */
|
|
134
|
+
readonly '--kui-motion-duration-medium2'?: string;
|
|
135
|
+
/** Defaults to `350ms`. */
|
|
136
|
+
readonly '--kui-motion-duration-medium3'?: string;
|
|
137
|
+
/** Defaults to `100ms`. */
|
|
138
|
+
readonly '--kui-motion-duration-short1'?: string;
|
|
139
|
+
/** Defaults to `150ms`. */
|
|
140
|
+
readonly '--kui-motion-duration-short2'?: string;
|
|
141
|
+
/** Defaults to `200ms`. */
|
|
142
|
+
readonly '--kui-motion-duration-short3'?: string;
|
|
143
|
+
/** Defaults to `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
144
|
+
readonly '--kui-motion-easing-emphasized'?: string;
|
|
145
|
+
/** Defaults to `cubic-bezier(0.3, 0, 0.8, 0.15)`. */
|
|
146
|
+
readonly '--kui-motion-easing-emphasized-accelerate'?: string;
|
|
147
|
+
/** Defaults to `cubic-bezier(0.05, 0.7, 0.1, 1)`. */
|
|
148
|
+
readonly '--kui-motion-easing-emphasized-decelerate'?: string;
|
|
149
|
+
/** Defaults to `cubic-bezier(0.34, 1.56, 0.64, 1)`. */
|
|
150
|
+
readonly '--kui-motion-easing-spring-fast'?: string;
|
|
151
|
+
/** Defaults to `cubic-bezier(0.16, 1, 0.3, 1)`. */
|
|
152
|
+
readonly '--kui-motion-easing-spring-slow'?: string;
|
|
153
|
+
/** Defaults to `cubic-bezier(0.2, 0, 0, 1)`. */
|
|
154
|
+
readonly '--kui-motion-easing-standard'?: string;
|
|
155
|
+
/** Defaults to `9999px`. */
|
|
156
|
+
readonly '--kui-radius-circle'?: string;
|
|
157
|
+
/** Defaults to `16px`. */
|
|
158
|
+
readonly '--kui-radius-lg'?: string;
|
|
159
|
+
/** Defaults to `12px`. */
|
|
160
|
+
readonly '--kui-radius-md'?: string;
|
|
161
|
+
/** Defaults to `0px`. */
|
|
162
|
+
readonly '--kui-radius-none'?: string;
|
|
163
|
+
/** Defaults to `9999px`. */
|
|
164
|
+
readonly '--kui-radius-pill'?: string;
|
|
165
|
+
/** Defaults to `8px`. */
|
|
166
|
+
readonly '--kui-radius-sm'?: string;
|
|
167
|
+
/** Defaults to `28px`. */
|
|
168
|
+
readonly '--kui-radius-xl'?: string;
|
|
169
|
+
/** Defaults to `4px`. */
|
|
170
|
+
readonly '--kui-radius-xs'?: string;
|
|
171
|
+
/** Defaults to `0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)`. */
|
|
172
|
+
readonly '--kui-shadow-elevation1'?: string;
|
|
173
|
+
/** Defaults to `0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)`. */
|
|
174
|
+
readonly '--kui-shadow-elevation2'?: string;
|
|
175
|
+
/** Defaults to `0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)`. */
|
|
176
|
+
readonly '--kui-shadow-elevation3'?: string;
|
|
177
|
+
/** Defaults to `0px 2px 3px 0px rgba(0, 0, 0, 0.3), 0px 6px 10px 4px rgba(0, 0, 0, 0.15)`. */
|
|
178
|
+
readonly '--kui-shadow-elevation4'?: string;
|
|
179
|
+
/** Defaults to `0px 4px 4px 0px rgba(0, 0, 0, 0.3), 0px 8px 12px 6px rgba(0, 0, 0, 0.15)`. */
|
|
180
|
+
readonly '--kui-shadow-elevation5'?: string;
|
|
181
|
+
/** Defaults to `56px`. */
|
|
182
|
+
readonly '--kui-sizing-control-lg'?: string;
|
|
183
|
+
/** Defaults to `48px`. */
|
|
184
|
+
readonly '--kui-sizing-control-md'?: string;
|
|
185
|
+
/** Defaults to `40px`. */
|
|
186
|
+
readonly '--kui-sizing-control-sm'?: string;
|
|
187
|
+
/** Defaults to `96px`. */
|
|
188
|
+
readonly '--kui-sizing-control-xl'?: string;
|
|
189
|
+
/** Defaults to `32px`. */
|
|
190
|
+
readonly '--kui-sizing-control-xs'?: string;
|
|
191
|
+
/** Defaults to `136px`. */
|
|
192
|
+
readonly '--kui-sizing-control-xxl'?: string;
|
|
193
|
+
/** Defaults to `88px`. */
|
|
194
|
+
readonly '--kui-sizing-row-lg'?: string;
|
|
195
|
+
/** Defaults to `72px`. */
|
|
196
|
+
readonly '--kui-sizing-row-md'?: string;
|
|
197
|
+
/** Defaults to `56px`. */
|
|
198
|
+
readonly '--kui-sizing-row-sm'?: string;
|
|
199
|
+
/** Defaults to `48px`. */
|
|
200
|
+
readonly '--kui-sizing-row-xs'?: string;
|
|
201
|
+
/** Defaults to `16px`. */
|
|
202
|
+
readonly '--kui-spacing-lg'?: string;
|
|
203
|
+
/** Defaults to `12px`. */
|
|
204
|
+
readonly '--kui-spacing-md'?: string;
|
|
205
|
+
/** Defaults to `8px`. */
|
|
206
|
+
readonly '--kui-spacing-sm'?: string;
|
|
207
|
+
/** Defaults to `24px`. */
|
|
208
|
+
readonly '--kui-spacing-xl'?: string;
|
|
209
|
+
/** Defaults to `4px`. */
|
|
210
|
+
readonly '--kui-spacing-xs'?: string;
|
|
211
|
+
/** Defaults to `32px`. */
|
|
212
|
+
readonly '--kui-spacing-xxl'?: string;
|
|
213
|
+
/** Defaults to `2px`. */
|
|
214
|
+
readonly '--kui-spacing-xxs'?: string;
|
|
215
|
+
/** Defaults to `40px`. */
|
|
216
|
+
readonly '--kui-spacing-xxxl'?: string;
|
|
217
|
+
/** Defaults to `0.12`. */
|
|
218
|
+
readonly '--kui-state-layer-opacity-disabled-container'?: string;
|
|
219
|
+
/** Defaults to `0.38`. */
|
|
220
|
+
readonly '--kui-state-layer-opacity-disabled-content'?: string;
|
|
221
|
+
/** Defaults to `0.16`. */
|
|
222
|
+
readonly '--kui-state-layer-opacity-dragged'?: string;
|
|
223
|
+
/** Defaults to `0.1`. */
|
|
224
|
+
readonly '--kui-state-layer-opacity-focus'?: string;
|
|
225
|
+
/** Defaults to `0.08`. */
|
|
226
|
+
readonly '--kui-state-layer-opacity-hover'?: string;
|
|
227
|
+
/** Defaults to `0.1`. */
|
|
228
|
+
readonly '--kui-state-layer-opacity-pressed'?: string;
|
|
229
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
230
|
+
readonly '--kui-typography-body-large-font'?: string;
|
|
231
|
+
/** Defaults to `24px`. */
|
|
232
|
+
readonly '--kui-typography-body-large-line-height'?: string;
|
|
233
|
+
/** Defaults to `16px`. */
|
|
234
|
+
readonly '--kui-typography-body-large-size'?: string;
|
|
235
|
+
/** Defaults to `0.5px`. */
|
|
236
|
+
readonly '--kui-typography-body-large-tracking'?: string;
|
|
237
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
238
|
+
readonly '--kui-typography-body-large-weight'?: string;
|
|
239
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
240
|
+
readonly '--kui-typography-body-medium-font'?: string;
|
|
241
|
+
/** Defaults to `20px`. */
|
|
242
|
+
readonly '--kui-typography-body-medium-line-height'?: string;
|
|
243
|
+
/** Defaults to `14px`. */
|
|
244
|
+
readonly '--kui-typography-body-medium-size'?: string;
|
|
245
|
+
/** Defaults to `0.25px`. */
|
|
246
|
+
readonly '--kui-typography-body-medium-tracking'?: string;
|
|
247
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
248
|
+
readonly '--kui-typography-body-medium-weight'?: string;
|
|
249
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
250
|
+
readonly '--kui-typography-body-small-font'?: string;
|
|
251
|
+
/** Defaults to `16px`. */
|
|
252
|
+
readonly '--kui-typography-body-small-line-height'?: string;
|
|
253
|
+
/** Defaults to `12px`. */
|
|
254
|
+
readonly '--kui-typography-body-small-size'?: string;
|
|
255
|
+
/** Defaults to `0.4px`. */
|
|
256
|
+
readonly '--kui-typography-body-small-tracking'?: string;
|
|
257
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
258
|
+
readonly '--kui-typography-body-small-weight'?: string;
|
|
259
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
260
|
+
readonly '--kui-typography-display-large-font'?: string;
|
|
261
|
+
/** Defaults to `64px`. */
|
|
262
|
+
readonly '--kui-typography-display-large-line-height'?: string;
|
|
263
|
+
/** Defaults to `57px`. */
|
|
264
|
+
readonly '--kui-typography-display-large-size'?: string;
|
|
265
|
+
/** Defaults to `-0.25px`. */
|
|
266
|
+
readonly '--kui-typography-display-large-tracking'?: string;
|
|
267
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
268
|
+
readonly '--kui-typography-display-large-weight'?: string;
|
|
269
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
270
|
+
readonly '--kui-typography-display-medium-font'?: string;
|
|
271
|
+
/** Defaults to `52px`. */
|
|
272
|
+
readonly '--kui-typography-display-medium-line-height'?: string;
|
|
273
|
+
/** Defaults to `45px`. */
|
|
274
|
+
readonly '--kui-typography-display-medium-size'?: string;
|
|
275
|
+
/** Defaults to `0px`. */
|
|
276
|
+
readonly '--kui-typography-display-medium-tracking'?: string;
|
|
277
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
278
|
+
readonly '--kui-typography-display-medium-weight'?: string;
|
|
279
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
280
|
+
readonly '--kui-typography-display-small-font'?: string;
|
|
281
|
+
/** Defaults to `44px`. */
|
|
282
|
+
readonly '--kui-typography-display-small-line-height'?: string;
|
|
283
|
+
/** Defaults to `36px`. */
|
|
284
|
+
readonly '--kui-typography-display-small-size'?: string;
|
|
285
|
+
/** Defaults to `0px`. */
|
|
286
|
+
readonly '--kui-typography-display-small-tracking'?: string;
|
|
287
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
288
|
+
readonly '--kui-typography-display-small-weight'?: string;
|
|
289
|
+
/** Defaults to `'Roboto Serif', 'Iowan Old Style', Georgia, serif`. */
|
|
290
|
+
readonly '--kui-typography-font-family-brand'?: string;
|
|
291
|
+
/** Defaults to `'Roboto Mono', ui-monospace, 'SF Mono', Menlo, monospace`. */
|
|
292
|
+
readonly '--kui-typography-font-family-mono'?: string;
|
|
293
|
+
/** Defaults to `'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`. */
|
|
294
|
+
readonly '--kui-typography-font-family-plain'?: string;
|
|
295
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
296
|
+
readonly '--kui-typography-headline-large-font'?: string;
|
|
297
|
+
/** Defaults to `40px`. */
|
|
298
|
+
readonly '--kui-typography-headline-large-line-height'?: string;
|
|
299
|
+
/** Defaults to `32px`. */
|
|
300
|
+
readonly '--kui-typography-headline-large-size'?: string;
|
|
301
|
+
/** Defaults to `0px`. */
|
|
302
|
+
readonly '--kui-typography-headline-large-tracking'?: string;
|
|
303
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
304
|
+
readonly '--kui-typography-headline-large-weight'?: string;
|
|
305
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
306
|
+
readonly '--kui-typography-headline-medium-font'?: string;
|
|
307
|
+
/** Defaults to `36px`. */
|
|
308
|
+
readonly '--kui-typography-headline-medium-line-height'?: string;
|
|
309
|
+
/** Defaults to `28px`. */
|
|
310
|
+
readonly '--kui-typography-headline-medium-size'?: string;
|
|
311
|
+
/** Defaults to `0px`. */
|
|
312
|
+
readonly '--kui-typography-headline-medium-tracking'?: string;
|
|
313
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
314
|
+
readonly '--kui-typography-headline-medium-weight'?: string;
|
|
315
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
316
|
+
readonly '--kui-typography-headline-small-font'?: string;
|
|
317
|
+
/** Defaults to `32px`. */
|
|
318
|
+
readonly '--kui-typography-headline-small-line-height'?: string;
|
|
319
|
+
/** Defaults to `24px`. */
|
|
320
|
+
readonly '--kui-typography-headline-small-size'?: string;
|
|
321
|
+
/** Defaults to `0px`. */
|
|
322
|
+
readonly '--kui-typography-headline-small-tracking'?: string;
|
|
323
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
324
|
+
readonly '--kui-typography-headline-small-weight'?: string;
|
|
325
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
326
|
+
readonly '--kui-typography-label-large-font'?: string;
|
|
327
|
+
/** Defaults to `20px`. */
|
|
328
|
+
readonly '--kui-typography-label-large-line-height'?: string;
|
|
329
|
+
/** Defaults to `14px`. */
|
|
330
|
+
readonly '--kui-typography-label-large-size'?: string;
|
|
331
|
+
/** Defaults to `0.1px`. */
|
|
332
|
+
readonly '--kui-typography-label-large-tracking'?: string;
|
|
333
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
334
|
+
readonly '--kui-typography-label-large-weight'?: string;
|
|
335
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
336
|
+
readonly '--kui-typography-label-medium-font'?: string;
|
|
337
|
+
/** Defaults to `16px`. */
|
|
338
|
+
readonly '--kui-typography-label-medium-line-height'?: string;
|
|
339
|
+
/** Defaults to `12px`. */
|
|
340
|
+
readonly '--kui-typography-label-medium-size'?: string;
|
|
341
|
+
/** Defaults to `0.5px`. */
|
|
342
|
+
readonly '--kui-typography-label-medium-tracking'?: string;
|
|
343
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
344
|
+
readonly '--kui-typography-label-medium-weight'?: string;
|
|
345
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
346
|
+
readonly '--kui-typography-label-small-font'?: string;
|
|
347
|
+
/** Defaults to `16px`. */
|
|
348
|
+
readonly '--kui-typography-label-small-line-height'?: string;
|
|
349
|
+
/** Defaults to `11px`. */
|
|
350
|
+
readonly '--kui-typography-label-small-size'?: string;
|
|
351
|
+
/** Defaults to `0.5px`. */
|
|
352
|
+
readonly '--kui-typography-label-small-tracking'?: string;
|
|
353
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
354
|
+
readonly '--kui-typography-label-small-weight'?: string;
|
|
355
|
+
/** Defaults to `var(--kui-typography-font-family-brand, 'Roboto Serif', 'Iowan Old Style', Georgia, serif)`. */
|
|
356
|
+
readonly '--kui-typography-title-large-font'?: string;
|
|
357
|
+
/** Defaults to `28px`. */
|
|
358
|
+
readonly '--kui-typography-title-large-line-height'?: string;
|
|
359
|
+
/** Defaults to `22px`. */
|
|
360
|
+
readonly '--kui-typography-title-large-size'?: string;
|
|
361
|
+
/** Defaults to `0px`. */
|
|
362
|
+
readonly '--kui-typography-title-large-tracking'?: string;
|
|
363
|
+
/** Defaults to `var(--kui-typography-weight-regular, 400)`. */
|
|
364
|
+
readonly '--kui-typography-title-large-weight'?: string;
|
|
365
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
366
|
+
readonly '--kui-typography-title-medium-font'?: string;
|
|
367
|
+
/** Defaults to `24px`. */
|
|
368
|
+
readonly '--kui-typography-title-medium-line-height'?: string;
|
|
369
|
+
/** Defaults to `16px`. */
|
|
370
|
+
readonly '--kui-typography-title-medium-size'?: string;
|
|
371
|
+
/** Defaults to `0.15px`. */
|
|
372
|
+
readonly '--kui-typography-title-medium-tracking'?: string;
|
|
373
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
374
|
+
readonly '--kui-typography-title-medium-weight'?: string;
|
|
375
|
+
/** Defaults to `var(--kui-typography-font-family-plain, 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif)`. */
|
|
376
|
+
readonly '--kui-typography-title-small-font'?: string;
|
|
377
|
+
/** Defaults to `20px`. */
|
|
378
|
+
readonly '--kui-typography-title-small-line-height'?: string;
|
|
379
|
+
/** Defaults to `14px`. */
|
|
380
|
+
readonly '--kui-typography-title-small-size'?: string;
|
|
381
|
+
/** Defaults to `0.1px`. */
|
|
382
|
+
readonly '--kui-typography-title-small-tracking'?: string;
|
|
383
|
+
/** Defaults to `var(--kui-typography-weight-medium, 500)`. */
|
|
384
|
+
readonly '--kui-typography-title-small-weight'?: string;
|
|
385
|
+
/** Defaults to `700`. */
|
|
386
|
+
readonly '--kui-typography-weight-bold'?: string;
|
|
387
|
+
/** Defaults to `500`. */
|
|
388
|
+
readonly '--kui-typography-weight-medium'?: string;
|
|
389
|
+
/** Defaults to `400`. */
|
|
390
|
+
readonly '--kui-typography-weight-regular'?: string;
|
|
391
|
+
};
|
|
392
|
+
/** Every property at its value in the light scheme, as `tokens.css` declares it. */
|
|
393
|
+
declare const light: Required<KuiTheme>;
|
|
394
|
+
/**
|
|
395
|
+
* Every property at its value in the dark scheme: the colours `tokens.css`
|
|
396
|
+
* declares under `prefers-color-scheme: dark`, over every other property at
|
|
397
|
+
* the one value it has in both.
|
|
398
|
+
*/
|
|
399
|
+
declare const dark: Required<KuiTheme>;
|
|
400
|
+
/**
|
|
401
|
+
* The lower bound of each window size class, in px on the web and dp on
|
|
402
|
+
* native, smallest first. A media query cannot read a custom property, so
|
|
403
|
+
* neither library offers these as one to override, and `tokens.css` leaves
|
|
404
|
+
* them out.
|
|
405
|
+
*/
|
|
406
|
+
declare const breakpoints: {
|
|
407
|
+
readonly compact: 0;
|
|
408
|
+
readonly medium: 600;
|
|
409
|
+
readonly expanded: 840;
|
|
410
|
+
readonly large: 1200;
|
|
411
|
+
readonly extraLarge: 1600;
|
|
412
|
+
};
|
|
413
|
+
export { light as i, breakpoints as n, dark as r, KuiTheme as t };
|
|
414
|
+
//# sourceMappingURL=defaults-DMH0HWCw.d.ts.map
|
package/dist/glyphs.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** The side of the square grid every path below is drawn on. */
|
|
2
|
+
declare const gridSize = 24;
|
|
3
|
+
/** An arrow pointing back, at the page a view returns to. */
|
|
4
|
+
declare const arrowBackPath = "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z";
|
|
5
|
+
/** An arrow pointing down, for a column sorted in descending order. */
|
|
6
|
+
declare const arrowDownwardPath = "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z";
|
|
7
|
+
/** A small solid triangle pointing down, at the list a menu button opens. */
|
|
8
|
+
declare const arrowDropDownPath = "M7 10l5 5 5-5z";
|
|
9
|
+
/** An arrow pointing up, for a column sorted in ascending order. */
|
|
10
|
+
declare const arrowUpwardPath = "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z";
|
|
11
|
+
/** A calendar, which a date is picked from. */
|
|
12
|
+
declare const calendarPath = "M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z";
|
|
13
|
+
/**
|
|
14
|
+
* A check in a filled circle. It shares its outline with `errorPath`, so the
|
|
15
|
+
* two differ by the mark inside rather than by their colour alone.
|
|
16
|
+
*/
|
|
17
|
+
declare const checkCirclePath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z";
|
|
18
|
+
/** A check mark, as a selected checkbox shows. */
|
|
19
|
+
declare const checkPath = "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z";
|
|
20
|
+
/** A chevron pointing down, at the menu a button opens. */
|
|
21
|
+
declare const chevronDownPath = "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z";
|
|
22
|
+
/**
|
|
23
|
+
* A chevron pointing onward, at what an item opens, such as a submenu. It is
|
|
24
|
+
* drawn pointing right, the onward direction in a left-to-right layout.
|
|
25
|
+
*/
|
|
26
|
+
declare const chevronEndPath = "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z";
|
|
27
|
+
/** A clock face, which a time is picked from. */
|
|
28
|
+
declare const clockPath = "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z";
|
|
29
|
+
/** A cross, which closes or clears. */
|
|
30
|
+
declare const closePath = "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
31
|
+
/** An exclamation mark in a filled circle; see `checkCirclePath`. */
|
|
32
|
+
declare const errorPath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z";
|
|
33
|
+
/** A keyboard, which switches a picker to typed entry. */
|
|
34
|
+
declare const keyboardPath = "M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z";
|
|
35
|
+
/**
|
|
36
|
+
* A horizontal rule, which stands both for a partly selected checkbox and for
|
|
37
|
+
* a stepper's decrement.
|
|
38
|
+
*/
|
|
39
|
+
declare const minusPath = "M19 13H5v-2h14v2z";
|
|
40
|
+
/** Material Design's anonymous person, a head over shoulders. */
|
|
41
|
+
declare const personPath = "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z";
|
|
42
|
+
/** A plus, as a stepper's increment shows. */
|
|
43
|
+
declare const plusPath = "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";
|
|
44
|
+
/** A magnifier, as a search field shows. */
|
|
45
|
+
declare const searchPath = "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z";
|
|
46
|
+
export { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, calendarPath, checkCirclePath, checkPath, chevronDownPath, chevronEndPath, clockPath, closePath, errorPath, gridSize, keyboardPath, minusPath, personPath, plusPath, searchPath };
|
|
47
|
+
//# sourceMappingURL=glyphs.d.ts.map
|
package/dist/glyphs.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/glyphs.ts
|
|
2
|
+
/** The side of the square grid every path below is drawn on. */
|
|
3
|
+
const gridSize = 24;
|
|
4
|
+
/** An arrow pointing back, at the page a view returns to. */
|
|
5
|
+
const arrowBackPath = "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z";
|
|
6
|
+
/** An arrow pointing down, for a column sorted in descending order. */
|
|
7
|
+
const arrowDownwardPath = "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z";
|
|
8
|
+
/** A small solid triangle pointing down, at the list a menu button opens. */
|
|
9
|
+
const arrowDropDownPath = "M7 10l5 5 5-5z";
|
|
10
|
+
/** An arrow pointing up, for a column sorted in ascending order. */
|
|
11
|
+
const arrowUpwardPath = "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z";
|
|
12
|
+
/** A calendar, which a date is picked from. */
|
|
13
|
+
const calendarPath = "M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z";
|
|
14
|
+
/**
|
|
15
|
+
* A check in a filled circle. It shares its outline with `errorPath`, so the
|
|
16
|
+
* two differ by the mark inside rather than by their colour alone.
|
|
17
|
+
*/
|
|
18
|
+
const checkCirclePath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z";
|
|
19
|
+
/** A check mark, as a selected checkbox shows. */
|
|
20
|
+
const checkPath = "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z";
|
|
21
|
+
/** A chevron pointing down, at the menu a button opens. */
|
|
22
|
+
const chevronDownPath = "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z";
|
|
23
|
+
/**
|
|
24
|
+
* A chevron pointing onward, at what an item opens, such as a submenu. It is
|
|
25
|
+
* drawn pointing right, the onward direction in a left-to-right layout.
|
|
26
|
+
*/
|
|
27
|
+
const chevronEndPath = "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z";
|
|
28
|
+
/** A clock face, which a time is picked from. */
|
|
29
|
+
const clockPath = "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z";
|
|
30
|
+
/** A cross, which closes or clears. */
|
|
31
|
+
const closePath = "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
32
|
+
/** An exclamation mark in a filled circle; see `checkCirclePath`. */
|
|
33
|
+
const errorPath = "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z";
|
|
34
|
+
/** A keyboard, which switches a picker to typed entry. */
|
|
35
|
+
const keyboardPath = "M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z";
|
|
36
|
+
/**
|
|
37
|
+
* A horizontal rule, which stands both for a partly selected checkbox and for
|
|
38
|
+
* a stepper's decrement.
|
|
39
|
+
*/
|
|
40
|
+
const minusPath = "M19 13H5v-2h14v2z";
|
|
41
|
+
/** Material Design's anonymous person, a head over shoulders. */
|
|
42
|
+
const personPath = "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z";
|
|
43
|
+
/** A plus, as a stepper's increment shows. */
|
|
44
|
+
const plusPath = "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";
|
|
45
|
+
/** A magnifier, as a search field shows. */
|
|
46
|
+
const searchPath = "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z";
|
|
47
|
+
export { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, calendarPath, checkCirclePath, checkPath, chevronDownPath, chevronEndPath, clockPath, closePath, errorPath, gridSize, keyboardPath, minusPath, personPath, plusPath, searchPath };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=glyphs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glyphs.js","names":[],"sources":["../src/glyphs.ts"],"sourcesContent":["// The glyphs both libraries draw inside their own controls, as path data: the\n// check and the dash a checkbox shows, the plus and minus a stepper shows, the\n// magnifier and the cross a search field shows, and the rest below. Each is a\n// Material Symbols path on its 24-unit grid, and neither library writes one of\n// its own.\n//\n// Only the data is published. Each library draws the paths its own way, an\n// inline SVG on the web and react-native-svg on native, and decides there\n// whether a glyph mirrors in a right-to-left layout, since that is how a glyph\n// is drawn rather than what it is. A glyph a call site wants for itself is an\n// icon, which both libraries take as a node; nothing here is offered for that.\n\n/** The side of the square grid every path below is drawn on. */\nconst gridSize = 24\n\n/** An arrow pointing back, at the page a view returns to. */\nconst arrowBackPath =\n 'M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'\n\n/** An arrow pointing down, for a column sorted in descending order. */\nconst arrowDownwardPath =\n 'M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z'\n\n/** A small solid triangle pointing down, at the list a menu button opens. */\nconst arrowDropDownPath = 'M7 10l5 5 5-5z'\n\n/** An arrow pointing up, for a column sorted in ascending order. */\nconst arrowUpwardPath =\n 'M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'\n\n/** A calendar, which a date is picked from. */\nconst calendarPath =\n 'M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'\n\n/**\n * A check in a filled circle. It shares its outline with `errorPath`, so the\n * two differ by the mark inside rather than by their colour alone.\n */\nconst checkCirclePath =\n 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'\n\n/** A check mark, as a selected checkbox shows. */\nconst checkPath = 'M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'\n\n/** A chevron pointing down, at the menu a button opens. */\nconst chevronDownPath = 'M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z'\n\n/**\n * A chevron pointing onward, at what an item opens, such as a submenu. It is\n * drawn pointing right, the onward direction in a left-to-right layout.\n */\nconst chevronEndPath = 'M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'\n\n/** A clock face, which a time is picked from. */\nconst clockPath =\n 'M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'\n\n/** A cross, which closes or clears. */\nconst closePath =\n 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'\n\n/** An exclamation mark in a filled circle; see `checkCirclePath`. */\nconst errorPath =\n 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'\n\n/** A keyboard, which switches a picker to typed entry. */\nconst keyboardPath =\n 'M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z'\n\n/**\n * A horizontal rule, which stands both for a partly selected checkbox and for\n * a stepper's decrement.\n */\nconst minusPath = 'M19 13H5v-2h14v2z'\n\n/** Material Design's anonymous person, a head over shoulders. */\nconst personPath =\n 'M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'\n\n/** A plus, as a stepper's increment shows. */\nconst plusPath = 'M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'\n\n/** A magnifier, as a search field shows. */\nconst searchPath =\n 'M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'\n\nexport {\n arrowBackPath,\n arrowDownwardPath,\n arrowDropDownPath,\n arrowUpwardPath,\n calendarPath,\n checkCirclePath,\n checkPath,\n chevronDownPath,\n chevronEndPath,\n clockPath,\n closePath,\n errorPath,\n gridSize,\n keyboardPath,\n minusPath,\n personPath,\n plusPath,\n searchPath,\n}\n"],"mappings":";;AAaA,MAAM,WAAW;;AAGjB,MAAM,gBACJ;;AAGF,MAAM,oBACJ;;AAGF,MAAM,oBAAoB;;AAG1B,MAAM,kBACJ;;AAGF,MAAM,eACJ;;;;;AAMF,MAAM,kBACJ;;AAGF,MAAM,YAAY;;AAGlB,MAAM,kBAAkB;;;;;AAMxB,MAAM,iBAAiB;;AAGvB,MAAM,YACJ;;AAGF,MAAM,YACJ;;AAGF,MAAM,YACJ;;AAGF,MAAM,eACJ;;;;;AAMF,MAAM,YAAY;;AAGlB,MAAM,aACJ;;AAGF,MAAM,WAAW;;AAGjB,MAAM,aACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as light, n as breakpoints, r as dark, t as KuiTheme } from "./defaults-DMH0HWCw.js";
|
|
2
|
+
export { type KuiTheme, breakpoints, dark, light };
|