numori-ui 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/LICENSE +651 -0
- package/README.md +466 -0
- package/dist/components/Alert.js +137 -0
- package/dist/components/Alert.js.map +1 -0
- package/dist/components/Avatar.js +133 -0
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Badge.js +93 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/Button.js +428 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/ButtonsGroup.js +153 -0
- package/dist/components/ButtonsGroup.js.map +1 -0
- package/dist/components/Checkbox.js +93 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/Divider.js +79 -0
- package/dist/components/Divider.js.map +1 -0
- package/dist/components/Dropdown.js +166 -0
- package/dist/components/Dropdown.js.map +1 -0
- package/dist/components/DropdownItem.js +106 -0
- package/dist/components/DropdownItem.js.map +1 -0
- package/dist/components/DropdownRow.js +41 -0
- package/dist/components/DropdownRow.js.map +1 -0
- package/dist/components/DropdownSubmenu.js +142 -0
- package/dist/components/DropdownSubmenu.js.map +1 -0
- package/dist/components/FileInput.js +122 -0
- package/dist/components/FileInput.js.map +1 -0
- package/dist/components/FormField.js +112 -0
- package/dist/components/FormField.js.map +1 -0
- package/dist/components/Input.js +603 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/Kbd.js +35 -0
- package/dist/components/Kbd.js.map +1 -0
- package/dist/components/ListMenu.js +143 -0
- package/dist/components/ListMenu.js.map +1 -0
- package/dist/components/ListMenuItem.js +189 -0
- package/dist/components/ListMenuItem.js.map +1 -0
- package/dist/components/Modal.js +206 -0
- package/dist/components/Modal.js.map +1 -0
- package/dist/components/Numpad.js +123 -0
- package/dist/components/Numpad.js.map +1 -0
- package/dist/components/Popup.js +170 -0
- package/dist/components/Popup.js.map +1 -0
- package/dist/components/ProgressBar.js +118 -0
- package/dist/components/ProgressBar.js.map +1 -0
- package/dist/components/Prompt.js +201 -0
- package/dist/components/Prompt.js.map +1 -0
- package/dist/components/Radio.js +81 -0
- package/dist/components/Radio.js.map +1 -0
- package/dist/components/Select.js +441 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/Slider.js +116 -0
- package/dist/components/Slider.js.map +1 -0
- package/dist/components/Stepper.js +65 -0
- package/dist/components/Stepper.js.map +1 -0
- package/dist/components/Toggle.js +133 -0
- package/dist/components/Toggle.js.map +1 -0
- package/dist/components/Tooltip.js +120 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/index.js +81 -0
- package/dist/components/index.js.map +1 -0
- package/dist/composables/onClickOutside.js +51 -0
- package/dist/composables/onClickOutside.js.map +1 -0
- package/dist/composables/useBackButton.js +98 -0
- package/dist/composables/useBackButton.js.map +1 -0
- package/dist/composables/useEventListener.js +63 -0
- package/dist/composables/useEventListener.js.map +1 -0
- package/dist/icons/Icon.js +120 -0
- package/dist/icons/Icon.js.map +1 -0
- package/dist/icons/mdi.js +69 -0
- package/dist/icons/mdi.js.map +1 -0
- package/dist/icons/registry.js +63 -0
- package/dist/icons/registry.js.map +1 -0
- package/dist/icons/resolver.js +49 -0
- package/dist/icons/resolver.js.map +1 -0
- package/dist/index.d.ts +108 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest.js +89 -0
- package/dist/manifest.js.map +1 -0
- package/dist/numori-ui.css +184 -0
- package/dist/nuxt.d.ts +35 -0
- package/dist/nuxt.mjs +243 -0
- package/dist/nuxt.mjs.map +1 -0
- package/dist/vite.d.ts +29 -0
- package/dist/vite.mjs +187 -0
- package/dist/vite.mjs.map +1 -0
- package/package.json +138 -0
- package/src/components/Alert.vue +127 -0
- package/src/components/Avatar.vue +100 -0
- package/src/components/Badge.vue +77 -0
- package/src/components/Button.vue +419 -0
- package/src/components/ButtonsGroup.vue +140 -0
- package/src/components/Checkbox.vue +81 -0
- package/src/components/Divider.vue +64 -0
- package/src/components/Dropdown.vue +150 -0
- package/src/components/DropdownItem.vue +78 -0
- package/src/components/DropdownRow.vue +37 -0
- package/src/components/DropdownSubmenu.vue +127 -0
- package/src/components/FileInput.vue +107 -0
- package/src/components/FormField.vue +86 -0
- package/src/components/Input.vue +619 -0
- package/src/components/Kbd.vue +30 -0
- package/src/components/ListMenu.vue +127 -0
- package/src/components/ListMenuItem.vue +171 -0
- package/src/components/Modal.vue +209 -0
- package/src/components/Numpad.vue +118 -0
- package/src/components/Popup.vue +156 -0
- package/src/components/ProgressBar.vue +107 -0
- package/src/components/Prompt.vue +161 -0
- package/src/components/Radio.vue +50 -0
- package/src/components/Select.vue +470 -0
- package/src/components/Slider.vue +93 -0
- package/src/components/Stepper.vue +53 -0
- package/src/components/Toggle.vue +125 -0
- package/src/components/Tooltip.vue +113 -0
- package/src/components/index.js +109 -0
- package/src/composables/onClickOutside.js +61 -0
- package/src/composables/useBackButton.js +98 -0
- package/src/composables/useEventListener.js +65 -0
- package/src/icons/Icon.vue +139 -0
- package/src/icons/mdi.js +67 -0
- package/src/icons/registry.js +64 -0
- package/src/icons/resolver.js +48 -0
- package/src/index.js +167 -0
- package/src/manifest.js +86 -0
- package/src/nuxt.js +315 -0
- package/src/style.css +20 -0
- package/src/tailwind.css +18 -0
- package/src/theme.css +172 -0
- package/src/vite.js +235 -0
package/README.md
ADDED
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
# Numori UI
|
|
2
|
+
|
|
3
|
+
The Numori design system as a standalone Vue 3 component library. 28 components, Tailwind CSS v4, no
|
|
4
|
+
TypeScript, consumable as a **Nuxt module** or a **Vite plugin**.
|
|
5
|
+
|
|
6
|
+
Extracted from [Numori Notes](https://github.com/Numori-Ecosystem/Numori-Notes), where these
|
|
7
|
+
components grew up.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<UiButton variant="outline" color="red" :loading="deleting" @click="remove">
|
|
11
|
+
<UiIcon name="mdi:trash-can-outline" class="w-4 h-4" />
|
|
12
|
+
Delete
|
|
13
|
+
</UiButton>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Contents
|
|
17
|
+
|
|
18
|
+
- [Install](#install)
|
|
19
|
+
- [Nuxt](#nuxt)
|
|
20
|
+
- [Vite + Vue](#vite--vue)
|
|
21
|
+
- [Any Vue app](#any-vue-app)
|
|
22
|
+
- [Styling](#styling)
|
|
23
|
+
- [Dark mode](#dark-mode)
|
|
24
|
+
- [Theme tokens](#theme-tokens)
|
|
25
|
+
- [Overriding tokens](#overriding-tokens)
|
|
26
|
+
- [Tree-shaking](#tree-shaking)
|
|
27
|
+
- [Icons](#icons)
|
|
28
|
+
- [Components](#components)
|
|
29
|
+
- [Composables](#composables)
|
|
30
|
+
- [Configuration](#configuration)
|
|
31
|
+
- [Design notes](#design-notes)
|
|
32
|
+
- [Development](#development)
|
|
33
|
+
- [Licence and attribution](#licence-and-attribution)
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install numori-ui
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Tailwind CSS v4 is required — the components are utility classes compiled by your app's Tailwind
|
|
42
|
+
build. Everything else is optional.
|
|
43
|
+
|
|
44
|
+
### Nuxt
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install numori-ui
|
|
48
|
+
npm install -D tailwindcss @tailwindcss/vite
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
// nuxt.config.ts
|
|
53
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
54
|
+
|
|
55
|
+
export default defineNuxtConfig({
|
|
56
|
+
modules: ['numori-ui/nuxt'],
|
|
57
|
+
css: ['~/assets/css/main.css'],
|
|
58
|
+
vite: { plugins: [tailwindcss()] },
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```css
|
|
63
|
+
/* assets/css/main.css */
|
|
64
|
+
@import 'tailwindcss';
|
|
65
|
+
@import 'numori-ui/css';
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
That's it — every component is registered, so `<UiButton>` works in any template with no import. Only
|
|
69
|
+
the components you reference are bundled.
|
|
70
|
+
|
|
71
|
+
Prefer not to wire Tailwind up yourself? Let the module do it and skip the stylesheet entirely:
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
export default defineNuxtConfig({
|
|
75
|
+
modules: ['numori-ui/nuxt'],
|
|
76
|
+
numoriUi: { tailwind: true },
|
|
77
|
+
})
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Vite + Vue
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm install numori-ui
|
|
84
|
+
npm install -D tailwindcss @tailwindcss/vite unplugin-vue-components
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
// vite.config.js
|
|
89
|
+
import vue from '@vitejs/plugin-vue'
|
|
90
|
+
import tailwindcss from '@tailwindcss/vite'
|
|
91
|
+
import numoriUI from 'numori-ui/vite'
|
|
92
|
+
|
|
93
|
+
export default {
|
|
94
|
+
plugins: [vue(), tailwindcss(), numoriUI()],
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```css
|
|
99
|
+
/* src/style.css */
|
|
100
|
+
@import 'tailwindcss';
|
|
101
|
+
@import 'numori-ui/css';
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Components are auto-imported where referenced, so no `app.use()` and no import statements.
|
|
105
|
+
`unplugin-vue-components` does the resolving; if you already run it, use the resolver directly
|
|
106
|
+
instead:
|
|
107
|
+
|
|
108
|
+
```js
|
|
109
|
+
import Components from 'unplugin-vue-components/vite'
|
|
110
|
+
import { NumoriUIResolver } from 'numori-ui/vite'
|
|
111
|
+
|
|
112
|
+
export default {
|
|
113
|
+
plugins: [vue(), Components({ resolvers: [NumoriUIResolver()] })],
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Any Vue app
|
|
118
|
+
|
|
119
|
+
No build-tool integration needed. Import what you use:
|
|
120
|
+
|
|
121
|
+
```js
|
|
122
|
+
import { UiButton, UiModal } from 'numori-ui'
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Or register a chosen set globally, so templates need no imports and unused components are still
|
|
126
|
+
dropped:
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
import { createApp } from 'vue'
|
|
130
|
+
import { createNumoriUI, UiButton, UiModal } from 'numori-ui'
|
|
131
|
+
import './style.css'
|
|
132
|
+
|
|
133
|
+
createApp(App).use(createNumoriUI({ UiButton, UiModal })).mount('#app')
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
There is also `app.use(NumoriUI)`, which registers all 29 components in one line — convenient for
|
|
137
|
+
prototyping, but it bundles all of them. See [Tree-shaking](#tree-shaking).
|
|
138
|
+
|
|
139
|
+
## Styling
|
|
140
|
+
|
|
141
|
+
One import covers it:
|
|
142
|
+
|
|
143
|
+
```css
|
|
144
|
+
@import 'tailwindcss';
|
|
145
|
+
@import 'numori-ui/css';
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
`numori-ui/css` provides three things:
|
|
149
|
+
|
|
150
|
+
1. The design tokens, as Tailwind v4 `@theme` variables.
|
|
151
|
+
2. The class-based `dark:` variant.
|
|
152
|
+
3. `@source` declarations pointing at the package's own components.
|
|
153
|
+
|
|
154
|
+
The third matters more than it looks. Tailwind skips `node_modules` when it scans for classes, so
|
|
155
|
+
without those declarations none of the utilities the components rely on would be generated and
|
|
156
|
+
everything would render unstyled. Declaring them in the package's own stylesheet means you never
|
|
157
|
+
have to think about it.
|
|
158
|
+
|
|
159
|
+
No precompiled CSS ships with this library, deliberately. Because the components are plain utility
|
|
160
|
+
classes compiled by your Tailwind build, you get one stylesheet instead of two, no duplicated
|
|
161
|
+
Tailwind output, and tokens you can actually override.
|
|
162
|
+
|
|
163
|
+
### Dark mode
|
|
164
|
+
|
|
165
|
+
Numori UI is built for a toggleable `.dark` class on `<html>`, not the `prefers-color-scheme`
|
|
166
|
+
default, and `numori-ui/css` declares that for you:
|
|
167
|
+
|
|
168
|
+
```css
|
|
169
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Anything that toggles the class works — `@nuxtjs/color-mode` with `classSuffix: ''`, VueUse's
|
|
173
|
+
`useDark`, or your own two lines:
|
|
174
|
+
|
|
175
|
+
```js
|
|
176
|
+
document.documentElement.classList.toggle('dark', isDark)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Theme tokens
|
|
180
|
+
|
|
181
|
+
A warm neutral scale plus four semantic ramps, all available as utilities (`bg-primary-600`) and as
|
|
182
|
+
CSS variables (`var(--color-primary-600)`).
|
|
183
|
+
|
|
184
|
+
| Group | Steps | Notes |
|
|
185
|
+
| --------- | -------------------------------- | ------------------------------------------------------ |
|
|
186
|
+
| `gray` | 50–950, plus **850** and **925** | Warm neutrals. `925` is the primary dark surface. |
|
|
187
|
+
| `primary` | 50–950 | The Numori pink. `400` (`#FF6188`) is the hero accent. |
|
|
188
|
+
| `success` | 50–950 | Built out from the palette's function colour. |
|
|
189
|
+
| `warning` | 50–950 | Built out from the palette's string colour. |
|
|
190
|
+
| `error` | 50–950 | Tailwind's red ramp, kept for familiarity. |
|
|
191
|
+
|
|
192
|
+
Also: `font-sans` (Inter), `spacing-18`/`spacing-88`, larger `rounded-xl`/`rounded-2xl`, and
|
|
193
|
+
`shadow-card`, `shadow-card-hover`, `shadow-modal`.
|
|
194
|
+
|
|
195
|
+
Note that `gray` **replaces** Tailwind's own, so `bg-gray-800` is the Numori neutral.
|
|
196
|
+
|
|
197
|
+
### Overriding tokens
|
|
198
|
+
|
|
199
|
+
Redeclare any variable after the import:
|
|
200
|
+
|
|
201
|
+
```css
|
|
202
|
+
@import 'tailwindcss';
|
|
203
|
+
@import 'numori-ui/css';
|
|
204
|
+
|
|
205
|
+
@theme {
|
|
206
|
+
--color-primary-400: #7c5cff; /* rebrand the accent */
|
|
207
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Every component picks the change up, since they all reference tokens rather than literal colours.
|
|
212
|
+
|
|
213
|
+
## Tree-shaking
|
|
214
|
+
|
|
215
|
+
You ship only what you use. Every consumption path is granular except one, and that one is called
|
|
216
|
+
out below.
|
|
217
|
+
|
|
218
|
+
`dist/` is emitted as one module per component rather than a single bundle, and `package.json`
|
|
219
|
+
declares `"sideEffects"`, so your bundler drops whole files — the thing bundlers are actually good
|
|
220
|
+
at. Referencing three components ships three.
|
|
221
|
+
|
|
222
|
+
Measured with `npm run treeshake`, bundling each case for real with `vue` and `tailwind-merge`
|
|
223
|
+
external, so the numbers are Numori UI's own code:
|
|
224
|
+
|
|
225
|
+
| How you consume it | Bundled |
|
|
226
|
+
| ----------------------------------------- | ------- |
|
|
227
|
+
| `import { UiKbd }` | 0.4 kB |
|
|
228
|
+
| `import UiKbd from 'numori-ui/…/Kbd.vue'` | 0.4 kB |
|
|
229
|
+
| `import { UiButton }` | 16.2 kB |
|
|
230
|
+
| `import { UiButton, UiModal, UiInput }` | 31.8 kB |
|
|
231
|
+
| `createNumoriUI({ UiButton, UiModal })` | 20.6 kB |
|
|
232
|
+
| `app.use(NumoriUI)` | 80.5 kB |
|
|
233
|
+
|
|
234
|
+
**The Nuxt module and Vite plugin are already optimal.** Both point at the raw `.vue` sources and
|
|
235
|
+
only import what a template references, so nothing further is needed — verified by checking that
|
|
236
|
+
`Numpad`, `Popup` and `Prompt` are absent from the Nuxt playground's client bundle.
|
|
237
|
+
|
|
238
|
+
**`app.use(NumoriUI)` is the one path that is not tree-shakeable.** To register all 29 components it
|
|
239
|
+
has to reference all 29, so they all end up in your bundle. The `include` option does not change
|
|
240
|
+
this — it controls registration, not bundling. Use `createNumoriUI` instead when size matters:
|
|
241
|
+
|
|
242
|
+
```js
|
|
243
|
+
// Global tags, only these two bundled.
|
|
244
|
+
app.use(createNumoriUI({ UiButton, UiModal }))
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**Two costs worth knowing about.** `UiButton` is 16 kB because roughly 7 kB of that is the bundled
|
|
248
|
+
icon set — its loading spinner renders through `UiIcon`, and icons are resolved dynamically by name,
|
|
249
|
+
so the lookup needs the whole table. Any component drawing an icon carries it. If that matters,
|
|
250
|
+
supply your own icon component (see [Icons](#icons)) and the bundled set drops out entirely.
|
|
251
|
+
Separately, `tailwind-merge` (~30 kB, excluded from the figures above) is pulled in by `UiButton`,
|
|
252
|
+
which uses it so your classes can override its variants.
|
|
253
|
+
|
|
254
|
+
`npm run treeshake` enforces these as budgets on every run. It exists because both problems it
|
|
255
|
+
caught were invisible: a missing `/*#__PURE__*/` on one `Object.keys()` call kept the entire icon set
|
|
256
|
+
reachable from every import, and shipping `dist/` as a single concatenated module made `UiKbd` cost
|
|
257
|
+
7 kB instead of 0.4 kB. Neither produced an error or a warning.
|
|
258
|
+
|
|
259
|
+
## Icons
|
|
260
|
+
|
|
261
|
+
Icons render as inline SVG from a small bundled subset of
|
|
262
|
+
[Material Design Icons](https://pictogrammers.com/library/mdi/) — no icon runtime, no network
|
|
263
|
+
requests, works under SSR and inside a Capacitor `file://` shell.
|
|
264
|
+
|
|
265
|
+
```vue
|
|
266
|
+
<UiIcon name="mdi:check" class="w-5 h-5" />
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Colour is inherited (`fill="currentColor"`), so `text-*` utilities style icons like text.
|
|
270
|
+
|
|
271
|
+
Only the ~36 icons the library itself needs are bundled. For a handful more, add them:
|
|
272
|
+
|
|
273
|
+
```js
|
|
274
|
+
import { registerIcons } from 'numori-ui'
|
|
275
|
+
|
|
276
|
+
registerIcons({ rocket: 'M12 2c...' }) // <UiIcon name="mdi:rocket" />
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
If your app already has an icon system, hand rendering over to it entirely rather than shipping two.
|
|
280
|
+
The component receives a `name` prop and must forward `class`:
|
|
281
|
+
|
|
282
|
+
```js
|
|
283
|
+
app.use(NumoriUI, { icons: { component: MyIcon } })
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
In Nuxt, name a globally registered component — `'Icon'` delegates every icon to `@nuxt/icon`:
|
|
287
|
+
|
|
288
|
+
```ts
|
|
289
|
+
export default defineNuxtConfig({
|
|
290
|
+
modules: ['@nuxt/icon', 'numori-ui/nuxt'],
|
|
291
|
+
numoriUi: { icons: { component: 'Icon' } },
|
|
292
|
+
})
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
## Components
|
|
296
|
+
|
|
297
|
+
Every component is documented with JSDoc at the top of its source file, including props, events,
|
|
298
|
+
slots and worked examples. Prefixes below assume the default `Ui`.
|
|
299
|
+
|
|
300
|
+
**Actions** — `UiButton` (8 variants × 6 colours × 5 sizes × 5 shapes), `UiButtonsGroup`
|
|
301
|
+
|
|
302
|
+
**Forms** — `UiInput` (text, number with steppers, password with toggle, email, phone, textarea,
|
|
303
|
+
built-in validation), `UiSelect` (searchable, groupable, teleported panel), `UiCheckbox`, `UiRadio`,
|
|
304
|
+
`UiToggle`, `UiSlider`, `UiFileInput`, `UiFormField`, `UiNumpad`, `UiStepper`
|
|
305
|
+
|
|
306
|
+
**Overlays** — `UiModal` (teleported, fullscreen-on-mobile, safe-area aware), `UiPrompt`,
|
|
307
|
+
`UiDropdown`, `UiDropdownItem`, `UiDropdownRow`, `UiDropdownSubmenu`, `UiPopup`, `UiTooltip`
|
|
308
|
+
|
|
309
|
+
**Feedback** — `UiAlert`, `UiBadge`, `UiProgressBar`
|
|
310
|
+
|
|
311
|
+
**Layout & display** — `UiListMenu`, `UiListMenuItem`, `UiDivider`, `UiAvatar`, `UiKbd`, `UiIcon`
|
|
312
|
+
|
|
313
|
+
External classes always win. `UiButton` merges them with
|
|
314
|
+
[tailwind-merge](https://github.com/dcastil/tailwind-merge), so `class="bg-gray-100"` genuinely
|
|
315
|
+
replaces the variant's background instead of fighting it:
|
|
316
|
+
|
|
317
|
+
```vue
|
|
318
|
+
<UiButton class="bg-gray-100 rounded-none">Overridden</UiButton>
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
## Composables
|
|
322
|
+
|
|
323
|
+
```js
|
|
324
|
+
import { useBackButton, onClickOutside, useEventListener } from 'numori-ui'
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
`onClickOutside` and `useEventListener` are dependency-free equivalents of the VueUse helpers,
|
|
328
|
+
covering what the components need. Both are SSR-safe and clean up with the owning scope.
|
|
329
|
+
|
|
330
|
+
`useBackButton` is how overlays close on a platform back gesture. Numori UI maintains the handler
|
|
331
|
+
stack but has no idea what "back" means in your app, so **you** connect it:
|
|
332
|
+
|
|
333
|
+
```js
|
|
334
|
+
import { App } from '@capacitor/app'
|
|
335
|
+
import { useBackButton } from 'numori-ui'
|
|
336
|
+
|
|
337
|
+
const { invoke } = useBackButton()
|
|
338
|
+
|
|
339
|
+
App.addListener('backButton', ({ canGoBack }) => {
|
|
340
|
+
if (invoke()) return // an overlay consumed it
|
|
341
|
+
if (canGoBack) history.back()
|
|
342
|
+
else App.exitApp()
|
|
343
|
+
})
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
Handlers run most-recently-opened first, so a prompt on top of a modal wins. Until you wire
|
|
347
|
+
`invoke()` up, the stack sits idle and overlays behave normally.
|
|
348
|
+
|
|
349
|
+
In Nuxt these are auto-imported.
|
|
350
|
+
|
|
351
|
+
## Configuration
|
|
352
|
+
|
|
353
|
+
### Nuxt module (`numoriUi`)
|
|
354
|
+
|
|
355
|
+
| Option | Type | Default | Description |
|
|
356
|
+
| ----------------- | ---------- | ------- | ------------------------------------------------------------- |
|
|
357
|
+
| `prefix` | `string` | `'Ui'` | Prefix for registered tags. Must be non-empty. |
|
|
358
|
+
| `include` | `string[]` | `null` | Register only these base names. |
|
|
359
|
+
| `exclude` | `string[]` | `[]` | Skip these base names. |
|
|
360
|
+
| `composables` | `boolean` | `true` | Auto-import the library's composables. |
|
|
361
|
+
| `tailwind` | `boolean` | `false` | Register `@tailwindcss/vite` and a themed base stylesheet. |
|
|
362
|
+
| `icons.component` | `string` | `null` | Name of a globally registered component to render icons with. |
|
|
363
|
+
| `icons.extra` | `object` | `null` | Extra icon path data, keyed by name. |
|
|
364
|
+
|
|
365
|
+
### Vite plugin
|
|
366
|
+
|
|
367
|
+
| Option | Type | Default | Description |
|
|
368
|
+
| ------------ | --------- | ------- | -------------------------------------------- |
|
|
369
|
+
| `prefix` | `string` | `'Ui'` | Prefix used in templates. Must be non-empty. |
|
|
370
|
+
| `autoImport` | `boolean` | `true` | Auto-import via `unplugin-vue-components`. |
|
|
371
|
+
| `tailwind` | `boolean` | `false` | Also register `@tailwindcss/vite`. |
|
|
372
|
+
| `dts` | `boolean` | `false` | Emit a component `.d.ts`. |
|
|
373
|
+
|
|
374
|
+
### Vue plugin
|
|
375
|
+
|
|
376
|
+
```js
|
|
377
|
+
app.use(NumoriUI, {
|
|
378
|
+
prefix: 'N', // <NButton>
|
|
379
|
+
exclude: ['Button'], // keep your own <UiButton>
|
|
380
|
+
icons: { component: MyIcon, extra: { rocket: 'M...' } },
|
|
381
|
+
})
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
Registers all 29 components, and bundles all of them — reach for `createNumoriUI` when that matters:
|
|
385
|
+
|
|
386
|
+
```js
|
|
387
|
+
app.use(createNumoriUI({ UiButton, UiModal }, { icons: { component: MyIcon } }))
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Keys become the tag names verbatim, so rename in the object literal (`{ NButton: UiButton }`) rather
|
|
391
|
+
than passing a prefix.
|
|
392
|
+
|
|
393
|
+
Both APIs reject names that would collide with a native element. `UiButton` renders its root as
|
|
394
|
+
`<component :is="tag">`, and Vue capitalises when resolving dynamic components, so registering it as
|
|
395
|
+
`Button` would make it resolve itself and recurse until the stack overflows — reported only as
|
|
396
|
+
"Maximum call stack size exceeded". You get an explanatory error instead.
|
|
397
|
+
|
|
398
|
+
## Design notes
|
|
399
|
+
|
|
400
|
+
Decisions worth knowing about, since a few differ from what you might expect.
|
|
401
|
+
|
|
402
|
+
**Source ships alongside the build.** The Nuxt module and Vite plugin point at the raw `.vue` files so
|
|
403
|
+
your build compiles them, which keeps per-component tree-shaking working. `dist/` is the prebuilt
|
|
404
|
+
equivalent for toolchains that cannot compile SFCs, and is emitted as one module per component rather
|
|
405
|
+
than a single bundle for the same reason. See [Tree-shaking](#tree-shaking).
|
|
406
|
+
|
|
407
|
+
**No TypeScript.** Source is JavaScript with JSDoc throughout, matching Numori Notes. The only `.ts`
|
|
408
|
+
files anywhere are hand-written `.d.ts` declarations in `dist/`, so TypeScript consumers get
|
|
409
|
+
resolution and completion instead of errors. Props are documented in JSDoc rather than typed, which
|
|
410
|
+
means editor hints but no compile-time prop checking.
|
|
411
|
+
|
|
412
|
+
**One stylesheet.** `Modal`'s two non-utility rules (`env(safe-area-inset-*)` and an `!important`
|
|
413
|
+
max-height) live in `theme.css` rather than a `<style scoped>` block. A scoped block would compile
|
|
414
|
+
into the component on the source path but emit a _second_ CSS file on the bundled path, leaving you
|
|
415
|
+
with one CSS import in some setups and two in others.
|
|
416
|
+
|
|
417
|
+
**SSR-safe.** Numori Notes is a client-only SPA and never exercised server rendering, so the
|
|
418
|
+
extraction fixed several components that touched `document` or `window` during setup. All 28 render
|
|
419
|
+
under strict SSR with no DOM globals, verified on every build.
|
|
420
|
+
|
|
421
|
+
## Development
|
|
422
|
+
|
|
423
|
+
```bash
|
|
424
|
+
npm install
|
|
425
|
+
npm run build # bundle + stylesheet + declarations
|
|
426
|
+
npm test # structural checks + SSR render assertions + size budgets
|
|
427
|
+
npm run lint
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
| Script | What it does |
|
|
431
|
+
| ------------------- | --------------------------------------------------------------------------- |
|
|
432
|
+
| `npm run sync` | Re-ports the components from Numori Notes (see below). |
|
|
433
|
+
| `npm run icons` | Regenerates the bundled MDI subset from the icons the components reference. |
|
|
434
|
+
| `npm run verify` | Checks manifest/barrel/disk agreement, no Nuxt auto-imports, no TypeScript. |
|
|
435
|
+
| `npm run smoke` | Renders every component with no DOM globals and asserts on the markup. |
|
|
436
|
+
| `npm run treeshake` | Bundles each consumption path for real and enforces size budgets. |
|
|
437
|
+
| `npm run dev:nuxt` | Nuxt playground (SSR on, so it catches DOM access during setup). |
|
|
438
|
+
| `npm run dev:vite` | Vite playground. |
|
|
439
|
+
|
|
440
|
+
### Syncing from Numori Notes
|
|
441
|
+
|
|
442
|
+
Numori Notes remains where these components are developed. `scripts/sync-from-notes.mjs` re-ports
|
|
443
|
+
them and makes them free-standing: it injects explicit `vue` imports in place of Nuxt's
|
|
444
|
+
auto-imports, rewrites `<Icon>` to `<UiIcon>`, points VueUse-style helpers at the local equivalents,
|
|
445
|
+
imports sibling components explicitly, and fixes Tailwind v3 syntax. Two components need
|
|
446
|
+
hand-written SSR fixes, which are recorded in the script so re-running reapplies them.
|
|
447
|
+
|
|
448
|
+
```bash
|
|
449
|
+
npm run sync # defaults to ../numori-notes
|
|
450
|
+
npm run sync -- /path/to/numori-notes
|
|
451
|
+
npm run icons && npm run build && npm test
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
It reports anything it could not translate mechanically and exits non-zero, so an upstream change
|
|
455
|
+
that outgrows the codemod fails loudly instead of shipping broken.
|
|
456
|
+
|
|
457
|
+
## Licence and attribution
|
|
458
|
+
|
|
459
|
+
Numori UI is licensed under [AGPL-3.0](./LICENSE), matching the rest of the Numori ecosystem. Note
|
|
460
|
+
that this is a strong copyleft licence — if you are publishing this for third-party use, consider
|
|
461
|
+
whether it fits your intent for a component library.
|
|
462
|
+
|
|
463
|
+
Bundled icon path data comes from [Material Design Icons](https://pictogrammers.com/library/mdi/) by
|
|
464
|
+
Austin Andrews and contributors, licensed under
|
|
465
|
+
[Apache-2.0](https://github.com/Templarian/MaterialDesign/blob/master/LICENSE), sourced via
|
|
466
|
+
[`@iconify-json/mdi`](https://github.com/iconify/icon-sets).
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import _sfc_main$1 from "../icons/Icon.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, normalizeClass, openBlock, renderSlot, useSlots } from "vue";
|
|
3
|
+
//#region src/components/Alert.vue
|
|
4
|
+
var _hoisted_1 = { class: "flex-1 min-w-0" };
|
|
5
|
+
var _sfc_main = {
|
|
6
|
+
__name: "Alert",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* Color theme for background and text.
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @default 'red'
|
|
12
|
+
* @values 'red' | 'amber' | 'green' | 'blue' | 'gray'
|
|
13
|
+
*/
|
|
14
|
+
color: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "red"
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* Optional MDI icon name displayed at the start.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @default ''
|
|
22
|
+
*/
|
|
23
|
+
icon: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* Show a colored border around the alert.
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
bordered: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Size preset controlling padding and font size.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @default 'sm'
|
|
40
|
+
* @values 'xs' (compact, text-xs) | 'sm' (standard, text-xs) | 'md' (spacious, text-sm)
|
|
41
|
+
*/
|
|
42
|
+
size: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "sm"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(__props) {
|
|
48
|
+
/**
|
|
49
|
+
* UiAlert — Inline alert/callout box for errors, warnings, success, and info messages.
|
|
50
|
+
*
|
|
51
|
+
* Renders a rounded box with colored background, optional leading icon, and optional
|
|
52
|
+
* border. Supports four color themes and two sizes. Content is passed via the default
|
|
53
|
+
* slot for maximum flexibility (plain text, rich HTML, or structured layouts).
|
|
54
|
+
*
|
|
55
|
+
* @example Simple error message
|
|
56
|
+
* <UiAlert color="red">Something went wrong.</UiAlert>
|
|
57
|
+
*
|
|
58
|
+
* @example Warning with icon and border
|
|
59
|
+
* <UiAlert color="amber" icon="mdi:alert-outline" bordered>
|
|
60
|
+
* <p class="font-semibold">Warning</p>
|
|
61
|
+
* <p>This action cannot be undone.</p>
|
|
62
|
+
* </UiAlert>
|
|
63
|
+
*
|
|
64
|
+
* @example Success feedback
|
|
65
|
+
* <UiAlert color="green" icon="mdi:check-circle">Saved successfully.</UiAlert>
|
|
66
|
+
*
|
|
67
|
+
* @example Compact error (xs size)
|
|
68
|
+
* <UiAlert color="red" size="xs">Invalid email address</UiAlert>
|
|
69
|
+
*
|
|
70
|
+
* @slot default — Alert content (plain text, rich HTML, or structured layouts)
|
|
71
|
+
* @slot icon — Custom icon element (replaces the icon prop)
|
|
72
|
+
*/
|
|
73
|
+
const props = __props;
|
|
74
|
+
const slots = useSlots();
|
|
75
|
+
const hasBody = computed(() => {
|
|
76
|
+
const children = slots.default?.();
|
|
77
|
+
return children && children.length > 1;
|
|
78
|
+
});
|
|
79
|
+
const containerClasses = computed(() => {
|
|
80
|
+
const sizeMap = {
|
|
81
|
+
xs: "px-3 py-2 rounded-lg text-xs",
|
|
82
|
+
sm: "px-3 py-2 rounded-lg text-xs",
|
|
83
|
+
md: "px-3 py-2.5 rounded-lg text-sm"
|
|
84
|
+
};
|
|
85
|
+
const colorMap = {
|
|
86
|
+
red: "bg-red-50 dark:bg-red-900/20 text-red-700 dark:text-red-300",
|
|
87
|
+
amber: "bg-amber-50 dark:bg-amber-900/20 text-amber-700 dark:text-amber-300",
|
|
88
|
+
green: "bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-300",
|
|
89
|
+
blue: "bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",
|
|
90
|
+
gray: "bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300"
|
|
91
|
+
};
|
|
92
|
+
return `${sizeMap[props.size] || sizeMap.sm} ${colorMap[props.color] || colorMap.red}`;
|
|
93
|
+
});
|
|
94
|
+
const borderClass = computed(() => {
|
|
95
|
+
const map = {
|
|
96
|
+
red: "border border-red-300 dark:border-red-800",
|
|
97
|
+
amber: "border border-amber-200 dark:border-amber-800",
|
|
98
|
+
green: "border border-green-300 dark:border-green-800",
|
|
99
|
+
blue: "border border-blue-300 dark:border-blue-800",
|
|
100
|
+
gray: "border border-gray-200 dark:border-gray-700"
|
|
101
|
+
};
|
|
102
|
+
return map[props.color] || map.red;
|
|
103
|
+
});
|
|
104
|
+
const iconClasses = computed(() => {
|
|
105
|
+
const sizeMap = {
|
|
106
|
+
xs: "w-3.5 h-3.5",
|
|
107
|
+
sm: "w-4 h-4",
|
|
108
|
+
md: "w-5 h-5"
|
|
109
|
+
};
|
|
110
|
+
const colorMap = {
|
|
111
|
+
red: "text-red-600 dark:text-red-400",
|
|
112
|
+
amber: "text-amber-600 dark:text-amber-400",
|
|
113
|
+
green: "text-green-600 dark:text-green-400",
|
|
114
|
+
blue: "text-blue-600 dark:text-blue-400",
|
|
115
|
+
gray: "text-gray-500 dark:text-gray-400"
|
|
116
|
+
};
|
|
117
|
+
return `${sizeMap[props.size] || sizeMap.sm} ${colorMap[props.color] || colorMap.red}`;
|
|
118
|
+
});
|
|
119
|
+
return (_ctx, _cache) => {
|
|
120
|
+
return openBlock(), createElementBlock("div", {
|
|
121
|
+
class: normalizeClass([containerClasses.value, __props.bordered ? borderClass.value : ""]),
|
|
122
|
+
role: "alert"
|
|
123
|
+
}, [__props.icon || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
|
|
124
|
+
key: 0,
|
|
125
|
+
class: normalizeClass(hasBody.value ? "flex gap-2" : "flex items-center gap-2")
|
|
126
|
+
}, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.icon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
127
|
+
key: 0,
|
|
128
|
+
name: __props.icon,
|
|
129
|
+
class: normalizeClass([[iconClasses.value, hasBody.value ? "mt-0.5" : ""], "shrink-0"])
|
|
130
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")])], 2)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)], 2);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
//#endregion
|
|
135
|
+
export { _sfc_main as default };
|
|
136
|
+
|
|
137
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","names":["$slots"],"sources":["../../src/components/Alert.vue"],"sourcesContent":["<template>\n <div :class=\"[containerClasses, bordered ? borderClass : '']\" role=\"alert\">\n <div v-if=\"icon || $slots.icon\" :class=\"hasBody ? 'flex gap-2' : 'flex items-center gap-2'\">\n <slot name=\"icon\">\n <UiIcon\n v-if=\"icon\"\n :name=\"icon\"\n :class=\"[iconClasses, hasBody ? 'mt-0.5' : '']\"\n class=\"shrink-0\"\n />\n </slot>\n <div class=\"flex-1 min-w-0\">\n <slot />\n </div>\n </div>\n <template v-else>\n <slot />\n </template>\n </div>\n</template>\n\n<script setup>\n/**\n * UiAlert — Inline alert/callout box for errors, warnings, success, and info messages.\n *\n * Renders a rounded box with colored background, optional leading icon, and optional\n * border. Supports four color themes and two sizes. Content is passed via the default\n * slot for maximum flexibility (plain text, rich HTML, or structured layouts).\n *\n * @example Simple error message\n * <UiAlert color=\"red\">Something went wrong.</UiAlert>\n *\n * @example Warning with icon and border\n * <UiAlert color=\"amber\" icon=\"mdi:alert-outline\" bordered>\n * <p class=\"font-semibold\">Warning</p>\n * <p>This action cannot be undone.</p>\n * </UiAlert>\n *\n * @example Success feedback\n * <UiAlert color=\"green\" icon=\"mdi:check-circle\">Saved successfully.</UiAlert>\n *\n * @example Compact error (xs size)\n * <UiAlert color=\"red\" size=\"xs\">Invalid email address</UiAlert>\n *\n * @slot default — Alert content (plain text, rich HTML, or structured layouts)\n * @slot icon — Custom icon element (replaces the icon prop)\n */\nimport { computed, useSlots } from 'vue'\nimport UiIcon from '../icons/Icon.vue'\nconst props = defineProps({\n /**\n * Color theme for background and text.\n * @type {string}\n * @default 'red'\n * @values 'red' | 'amber' | 'green' | 'blue' | 'gray'\n */\n color: { type: String, default: 'red' },\n\n /**\n * Optional MDI icon name displayed at the start.\n * @type {string}\n * @default ''\n */\n icon: { type: String, default: '' },\n\n /**\n * Show a colored border around the alert.\n * @type {boolean}\n * @default false\n */\n bordered: { type: Boolean, default: false },\n\n /**\n * Size preset controlling padding and font size.\n * @type {string}\n * @default 'sm'\n * @values 'xs' (compact, text-xs) | 'sm' (standard, text-xs) | 'md' (spacious, text-sm)\n */\n size: { type: String, default: 'sm' },\n})\n\nconst slots = useSlots()\n// Detect if slot has multiple elements (structured body) for icon alignment\nconst hasBody = computed(() => {\n const children = slots.default?.()\n return children && children.length > 1\n})\n\nconst containerClasses = computed(() => {\n const sizeMap = {\n xs: 'px-3 py-2 rounded-lg text-xs',\n sm: 'px-3 py-2 rounded-lg text-xs',\n md: 'px-3 py-2.5 rounded-lg text-sm',\n }\n const colorMap = {\n red: 'bg-red-50 dark:bg-red-900/20 text-red-700 dark:text-red-300',\n amber: 'bg-amber-50 dark:bg-amber-900/20 text-amber-700 dark:text-amber-300',\n green: 'bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-300',\n blue: 'bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300',\n gray: 'bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-300',\n }\n return `${sizeMap[props.size] || sizeMap.sm} ${colorMap[props.color] || colorMap.red}`\n})\n\nconst borderClass = computed(() => {\n const map = {\n red: 'border border-red-300 dark:border-red-800',\n amber: 'border border-amber-200 dark:border-amber-800',\n green: 'border border-green-300 dark:border-green-800',\n blue: 'border border-blue-300 dark:border-blue-800',\n gray: 'border border-gray-200 dark:border-gray-700',\n }\n return map[props.color] || map.red\n})\n\nconst iconClasses = computed(() => {\n const sizeMap = { xs: 'w-3.5 h-3.5', sm: 'w-4 h-4', md: 'w-5 h-5' }\n const colorMap = {\n red: 'text-red-600 dark:text-red-400',\n amber: 'text-amber-600 dark:text-amber-400',\n green: 'text-green-600 dark:text-green-400',\n blue: 'text-blue-600 dark:text-blue-400',\n gray: 'text-gray-500 dark:text-gray-400',\n }\n return `${sizeMap[props.size] || sizeMap.sm} ${colorMap[props.color] || colorMap.red}`\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDA,MAAM,QAAQ;EAgCd,MAAM,QAAQ,SAAS;EAEvB,MAAM,UAAU,eAAe;GAC7B,MAAM,WAAW,MAAM,UAAU;GACjC,OAAO,YAAY,SAAS,SAAS;EACvC,CAAC;EAED,MAAM,mBAAmB,eAAe;GACtC,MAAM,UAAU;IACd,IAAI;IACJ,IAAI;IACJ,IAAI;GACN;GACA,MAAM,WAAW;IACf,KAAK;IACL,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;GACR;GACA,OAAO,GAAG,QAAQ,MAAM,SAAS,QAAQ,GAAG,GAAG,SAAS,MAAM,UAAU,SAAS;EACnF,CAAC;EAED,MAAM,cAAc,eAAe;GACjC,MAAM,MAAM;IACV,KAAK;IACL,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;GACR;GACA,OAAO,IAAI,MAAM,UAAU,IAAI;EACjC,CAAC;EAED,MAAM,cAAc,eAAe;GACjC,MAAM,UAAU;IAAE,IAAI;IAAe,IAAI;IAAW,IAAI;GAAU;GAClE,MAAM,WAAW;IACf,KAAK;IACL,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;GACR;GACA,OAAO,GAAG,QAAQ,MAAM,SAAS,QAAQ,GAAG,GAAG,SAAS,MAAM,UAAU,SAAS;EACnF,CAAC;;GA5HC,OAAA,UAAA,GAAA,mBAiBM,OAAA;IAjBA,OAAK,eAAA,CAAG,iBAAA,OAAkB,QAAA,WAAW,YAAA,QAAW,EAAA,CAAA;IAAQ,MAAK;GACtD,GAAA,CAAA,QAAA,QAAQA,KAAAA,OAAO,QAA1B,UAAA,GAAA,mBAYM,OAAA;;IAZ2B,OAAK,eAAE,QAAA,QAAO,eAAA,yBAAA;GAC7C,GAAA,CAAA,WAOO,KAAA,QAAA,QAAA,CAAA,SAAA,CALG,QAAA,QADR,UAAA,GAAA,YAKE,aAAA;;IAHC,MAAM,QAAA;IACN,OAAK,eAAA,CAAA,CAAG,YAAA,OAAa,QAAA,QAAO,WAAA,EAAA,GACvB,UAAU,CAAA;GAGpB,GAAA,MAAA,GAAA,CAAA,QAAA,OAAA,CAAA,KAAA,mBAAA,IAAA,IAAA,CAAA,CAAA,GAAA,mBAEM,OAFN,YAEM,CADJ,WAAQ,KAAA,QAAA,SAAA,CAAA,CAAA,CAAA,GAAA,CAAA,KAIV,WAAQ,KAAA,QAAA,WAAA,CAAA,GAAA,KAAA,GAAA,KAAA,GAAA,CAAA,CAAA,GAAA,CAAA"}
|