nuance-ui 0.1.49 → 0.1.50
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.md +9 -9
- package/README.md +75 -75
- package/dist/module.json +1 -1
- package/dist/runtime/components/action-icon/action-icon-section.vue +3 -3
- package/dist/runtime/components/action-icon/action-icon.vue +22 -22
- package/dist/runtime/components/alert.vue +128 -128
- package/dist/runtime/components/app-shell/app-shell-aside.vue +30 -30
- package/dist/runtime/components/app-shell/app-shell-footer.vue +29 -29
- package/dist/runtime/components/app-shell/app-shell-header.vue +30 -30
- package/dist/runtime/components/app-shell/app-shell-main.vue +3 -0
- package/dist/runtime/components/app-shell/app-shell-navbar.vue +34 -34
- package/dist/runtime/components/app-shell/app-shell-section.vue +10 -10
- package/dist/runtime/components/app-shell/app-shell.vue +34 -34
- package/dist/runtime/components/avatar/avatar-group.vue +3 -3
- package/dist/runtime/components/avatar/avatar.vue +14 -14
- package/dist/runtime/components/background-image.vue +18 -18
- package/dist/runtime/components/badge.vue +160 -159
- package/dist/runtime/components/box.vue +3 -3
- package/dist/runtime/components/breadcrumbs.vue +78 -78
- package/dist/runtime/components/button/button-group.vue +3 -3
- package/dist/runtime/components/button/button.vue +37 -37
- package/dist/runtime/components/button/unstyled-button.vue +23 -23
- package/dist/runtime/components/calendar/calendar.vue +60 -60
- package/dist/runtime/components/calendar/ui/core/calendar-cell.vue +115 -115
- package/dist/runtime/components/calendar/ui/core/calendar-header.vue +95 -95
- package/dist/runtime/components/calendar/ui/core/calendar-root.vue +3 -3
- package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue +36 -36
- package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +77 -77
- package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +40 -40
- package/dist/runtime/components/card/card-section.vue +3 -3
- package/dist/runtime/components/card/card.vue +3 -3
- package/dist/runtime/components/checkbox/checkbox-card.vue +36 -36
- package/dist/runtime/components/checkbox/checkbox-group.vue +16 -16
- package/dist/runtime/components/checkbox/checkbox-indicator.vue +116 -116
- package/dist/runtime/components/checkbox/checkbox.vue +140 -140
- package/dist/runtime/components/chip/chip-group.vue +2 -2
- package/dist/runtime/components/chip/chip.vue +200 -200
- package/dist/runtime/components/combobox/combobox-dropdown.vue +14 -14
- package/dist/runtime/components/combobox/combobox-empty.vue +3 -3
- package/dist/runtime/components/combobox/combobox-group.vue +21 -21
- package/dist/runtime/components/combobox/combobox-option-list.vue +3 -3
- package/dist/runtime/components/combobox/combobox-option.vue +26 -26
- package/dist/runtime/components/combobox/combobox-options-dropdown.vue +28 -28
- package/dist/runtime/components/combobox/combobox-root.vue +3 -3
- package/dist/runtime/components/combobox/combobox-target.vue +3 -3
- package/dist/runtime/components/container.vue +8 -8
- package/dist/runtime/components/date-time-picker.vue +65 -65
- package/dist/runtime/components/dialog/ui/dialog-close-button.vue +9 -9
- package/dist/runtime/components/dialog/ui/dialog-header.vue +3 -3
- package/dist/runtime/components/dialog/ui/dialog-root.vue +18 -18
- package/dist/runtime/components/dialog/ui/dialog-title.vue +3 -3
- package/dist/runtime/components/drawer/drawer-close-button.vue +3 -3
- package/dist/runtime/components/drawer/drawer-header.vue +3 -3
- package/dist/runtime/components/drawer/drawer-root.vue +14 -14
- package/dist/runtime/components/drawer/drawer-title.vue +3 -3
- package/dist/runtime/components/files/file-upload-button.vue +12 -12
- package/dist/runtime/components/files/file-upload-icon.vue +1 -1
- package/dist/runtime/components/input/date-picker.vue +85 -85
- package/dist/runtime/components/input/email-input.vue +21 -21
- package/dist/runtime/components/input/number-input.vue +132 -132
- package/dist/runtime/components/input/password-input.vue +28 -28
- package/dist/runtime/components/input/text-input.vue +33 -33
- package/dist/runtime/components/input/ui/button-input.vue +64 -64
- package/dist/runtime/components/input/ui/input-base.vue +283 -283
- package/dist/runtime/components/input/ui/input-inline.vue +105 -105
- package/dist/runtime/components/input/ui/input-label.vue +4 -4
- package/dist/runtime/components/input/ui/input-wrapper.vue +54 -54
- package/dist/runtime/components/input/ui/spin-input.vue +69 -69
- package/dist/runtime/components/link/link-button.vue +16 -16
- package/dist/runtime/components/link/link.vue +10 -10
- package/dist/runtime/components/loader/_loaders/bars-loader.vue +5 -5
- package/dist/runtime/components/loader/_loaders/dots-loader.vue +5 -5
- package/dist/runtime/components/loader/_loaders/oval-loader.vue +1 -1
- package/dist/runtime/components/loader/loader.vue +1 -1
- package/dist/runtime/components/modal/modal-close-button.vue +3 -3
- package/dist/runtime/components/modal/modal-header.vue +3 -3
- package/dist/runtime/components/modal/modal-root.vue +11 -11
- package/dist/runtime/components/modal/modal-title.vue +3 -3
- package/dist/runtime/components/nav-link/nav-icon-link.vue +15 -15
- package/dist/runtime/components/nav-link/nav-link.vue +130 -130
- package/dist/runtime/components/paper.vue +33 -33
- package/dist/runtime/components/popover/popover-dropdown.vue +70 -69
- package/dist/runtime/components/popover/popover-target.vue +8 -8
- package/dist/runtime/components/popover/popover.vue +1 -1
- package/dist/runtime/components/progress/progress-label.vue +3 -3
- package/dist/runtime/components/progress/progress-root.vue +3 -3
- package/dist/runtime/components/progress/progress-section.vue +8 -8
- package/dist/runtime/components/progress/progress.vue +9 -9
- package/dist/runtime/components/renderless/renderless.vue +3 -3
- package/dist/runtime/components/roving-focus/roving-focus-item.vue +14 -14
- package/dist/runtime/components/roving-focus/roving-focus.vue +3 -3
- package/dist/runtime/components/select/select.vue +59 -59
- package/dist/runtime/components/table/table.d.ts +30 -30
- package/dist/runtime/components/table/ui/table-sort-icon.vue +1 -1
- package/dist/runtime/components/table/ui/table-sortable-header.vue +11 -11
- package/dist/runtime/components/table/ui/table.vue +295 -295
- package/dist/runtime/components/tabs/tabs-list.vue +10 -10
- package/dist/runtime/components/tabs/tabs-panel.vue +11 -11
- package/dist/runtime/components/tabs/tabs-root.vue +8 -8
- package/dist/runtime/components/tabs/tabs-tab.vue +20 -20
- package/dist/runtime/components/text.vue +67 -67
- package/dist/runtime/components/textarea.vue +34 -34
- package/dist/runtime/components/time-picker/time-picker.vue +230 -230
- package/dist/runtime/components/title.vue +14 -14
- package/dist/runtime/components/transition/transition.vue +3 -3
- package/dist/runtime/components/tree/_ui/tree-item.vue +129 -128
- package/dist/runtime/components/tree/_ui/tree-root.vue +21 -21
- package/dist/runtime/components/tree/tree.vue +20 -20
- package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +1 -1
- package/dist/runtime/components/visually-hidden/visually-hidden.vue +9 -9
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +2 -2
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 NuxtLabs
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 NuxtLabs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
# Nuance-UI
|
|
2
|
-
|
|
3
|
-
A modern UI kit module for Nuxt 3 with thoughtfully designed components and subtle interaction details.
|
|
4
|
-
|
|
5
|
-
## 📦 Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# npm
|
|
9
|
-
npm install nuance-ui
|
|
10
|
-
|
|
11
|
-
# yarn
|
|
12
|
-
yarn add nuance-ui
|
|
13
|
-
|
|
14
|
-
# pnpm
|
|
15
|
-
pnpm add nuance-ui
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### Install modules
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npx nuxt module add color-mode icon
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Quick Start
|
|
25
|
-
|
|
26
|
-
Add `nuance-ui` to the `modules` section of your `nuxt.config.ts`:
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
export default defineNuxtConfig({
|
|
30
|
-
modules: ['nuance-ui'],
|
|
31
|
-
})
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
Now you can use components in your application:
|
|
35
|
-
|
|
36
|
-
```vue
|
|
37
|
-
<template>
|
|
38
|
-
<div>
|
|
39
|
-
<NButton variant='primary'>
|
|
40
|
-
Click me
|
|
41
|
-
</NButton>
|
|
42
|
-
|
|
43
|
-
<NCard>
|
|
44
|
-
<p>Card content goes here</p>
|
|
45
|
-
</NCard>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Contributing
|
|
51
|
-
|
|
52
|
-
We welcome contributions! Please:
|
|
53
|
-
|
|
54
|
-
1. Fork the repository
|
|
55
|
-
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
56
|
-
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
57
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
58
|
-
5. Open a Pull Request
|
|
59
|
-
|
|
60
|
-
## Links
|
|
61
|
-
|
|
62
|
-
- Documentation **WIP**
|
|
63
|
-
- [GitHub](https://github.com/Igor-Iugin/nuance-ui)
|
|
64
|
-
- [NPM](https://www.npmjs.com/package/nuance-ui)
|
|
65
|
-
|
|
66
|
-
## Support
|
|
67
|
-
|
|
68
|
-
If you have questions or issues:
|
|
69
|
-
|
|
70
|
-
- [Create an Issue](https://github.com/Igor-Iugin/nuance-ui/issues)
|
|
71
|
-
- [Discussions](https://github.com/Igor-Iugin/nuance-ui/discussions)
|
|
72
|
-
|
|
73
|
-
## License
|
|
74
|
-
|
|
75
|
-
Licensed under the [MIT license](https://github.com/Igor-Iugin/nuance-ui/blob/main/LICENSE.md).
|
|
1
|
+
# Nuance-UI
|
|
2
|
+
|
|
3
|
+
A modern UI kit module for Nuxt 3 with thoughtfully designed components and subtle interaction details.
|
|
4
|
+
|
|
5
|
+
## 📦 Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# npm
|
|
9
|
+
npm install nuance-ui
|
|
10
|
+
|
|
11
|
+
# yarn
|
|
12
|
+
yarn add nuance-ui
|
|
13
|
+
|
|
14
|
+
# pnpm
|
|
15
|
+
pnpm add nuance-ui
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Install modules
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx nuxt module add color-mode icon
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
Add `nuance-ui` to the `modules` section of your `nuxt.config.ts`:
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
export default defineNuxtConfig({
|
|
30
|
+
modules: ['nuance-ui'],
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Now you can use components in your application:
|
|
35
|
+
|
|
36
|
+
```vue
|
|
37
|
+
<template>
|
|
38
|
+
<div>
|
|
39
|
+
<NButton variant='primary'>
|
|
40
|
+
Click me
|
|
41
|
+
</NButton>
|
|
42
|
+
|
|
43
|
+
<NCard>
|
|
44
|
+
<p>Card content goes here</p>
|
|
45
|
+
</NCard>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Contributing
|
|
51
|
+
|
|
52
|
+
We welcome contributions! Please:
|
|
53
|
+
|
|
54
|
+
1. Fork the repository
|
|
55
|
+
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
56
|
+
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
57
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
58
|
+
5. Open a Pull Request
|
|
59
|
+
|
|
60
|
+
## Links
|
|
61
|
+
|
|
62
|
+
- Documentation **WIP**
|
|
63
|
+
- [GitHub](https://github.com/Igor-Iugin/nuance-ui)
|
|
64
|
+
- [NPM](https://www.npmjs.com/package/nuance-ui)
|
|
65
|
+
|
|
66
|
+
## Support
|
|
67
|
+
|
|
68
|
+
If you have questions or issues:
|
|
69
|
+
|
|
70
|
+
- [Create an Issue](https://github.com/Igor-Iugin/nuance-ui/issues)
|
|
71
|
+
- [Discussions](https://github.com/Igor-Iugin/nuance-ui/discussions)
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
Licensed under the [MIT license](https://github.com/Igor-Iugin/nuance-ui/blob/main/LICENSE.md).
|
package/dist/module.json
CHANGED
|
@@ -41,7 +41,7 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
43
|
<template>
|
|
44
|
-
<Box :is :mod='[mod, { variant }]' :style :class='css.section'>
|
|
45
|
-
<slot />
|
|
46
|
-
</Box>
|
|
44
|
+
<Box :is :mod='[mod, { variant }]' :style :class='css.section'>
|
|
45
|
+
<slot />
|
|
46
|
+
</Box>
|
|
47
47
|
</template>
|
|
@@ -47,26 +47,26 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
47
47
|
</script>
|
|
48
48
|
|
|
49
49
|
<template>
|
|
50
|
-
<Box
|
|
51
|
-
is='button'
|
|
52
|
-
:mod='[{ loading }, mod]'
|
|
53
|
-
:style
|
|
54
|
-
:class='[css.root, classes?.root]'
|
|
55
|
-
:disabled='(!disabled ? loading : disabled) || void 0'
|
|
56
|
-
>
|
|
57
|
-
<Transition name='slide-down'>
|
|
58
|
-
<Loader
|
|
59
|
-
v-if='loading'
|
|
60
|
-
color='var(--ai-color)'
|
|
61
|
-
size='calc(var(--ai-size) * .55)'
|
|
62
|
-
:class='css.loader'
|
|
63
|
-
/>
|
|
64
|
-
</Transition>
|
|
65
|
-
|
|
66
|
-
<span :class='[css.icon, classes?.icon]'>
|
|
67
|
-
<slot>
|
|
68
|
-
<Icon v-if='icon' :name='icon' :class='css["icon-element"]' />
|
|
69
|
-
</slot>
|
|
70
|
-
</span>
|
|
71
|
-
</Box>
|
|
50
|
+
<Box
|
|
51
|
+
is='button'
|
|
52
|
+
:mod='[{ loading }, mod]'
|
|
53
|
+
:style
|
|
54
|
+
:class='[css.root, classes?.root]'
|
|
55
|
+
:disabled='(!disabled ? loading : disabled) || void 0'
|
|
56
|
+
>
|
|
57
|
+
<Transition name='slide-down'>
|
|
58
|
+
<Loader
|
|
59
|
+
v-if='loading'
|
|
60
|
+
color='var(--ai-color)'
|
|
61
|
+
size='calc(var(--ai-size) * .55)'
|
|
62
|
+
:class='css.loader'
|
|
63
|
+
/>
|
|
64
|
+
</Transition>
|
|
65
|
+
|
|
66
|
+
<span :class='[css.icon, classes?.icon]'>
|
|
67
|
+
<slot>
|
|
68
|
+
<Icon v-if='icon' :name='icon' :class='css["icon-element"]' />
|
|
69
|
+
</slot>
|
|
70
|
+
</span>
|
|
71
|
+
</Box>
|
|
72
72
|
</template>
|
|
@@ -44,135 +44,135 @@ const style = computed(() => useStyleResolver((theme) => {
|
|
|
44
44
|
</script>
|
|
45
45
|
|
|
46
46
|
<template>
|
|
47
|
-
<Box
|
|
48
|
-
role='alert'
|
|
49
|
-
:style
|
|
50
|
-
:class='[$style.root, classes?.root]'
|
|
51
|
-
:mod='[{ variant }, mod]'
|
|
52
|
-
:aria-describedby='$slots.default ? `${id}-body` : void 0'
|
|
53
|
-
:aria-labelledby='$slots.label ? `${id}-title` : void 0'
|
|
54
|
-
>
|
|
55
|
-
<Icon
|
|
56
|
-
v-if='icon'
|
|
57
|
-
:name='icon'
|
|
58
|
-
:class='[$style.icon, classes?.icon]'
|
|
59
|
-
/>
|
|
60
|
-
|
|
61
|
-
<div :class='[$style.body, classes?.body]'>
|
|
62
|
-
<Box v-if='title || $slots.title' :class='[$style.title, classes?.title]'>
|
|
63
|
-
<span :id='`${id}-title`' :class='[$style.label, classes?.label]'>
|
|
64
|
-
<slot name='title'>
|
|
65
|
-
{{ title }}
|
|
66
|
-
</slot>
|
|
67
|
-
</span>
|
|
68
|
-
</Box>
|
|
69
|
-
|
|
70
|
-
<Box
|
|
71
|
-
v-if='$slots.default'
|
|
72
|
-
:id='`${id}-body`'
|
|
73
|
-
:class='[$style.message, classes?.message]'
|
|
74
|
-
:mod='{ variant }'
|
|
75
|
-
>
|
|
76
|
-
<slot />
|
|
77
|
-
</Box>
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<ActionIcon
|
|
81
|
-
v-if='withCloseButton'
|
|
82
|
-
:class='[$style.closeButton, classes?.closeButton]'
|
|
83
|
-
variant='subtle'
|
|
84
|
-
icon='gravity-ui:xmark'
|
|
85
|
-
size='sm'
|
|
86
|
-
:color
|
|
87
|
-
@click='$emit("close")'
|
|
88
|
-
/>
|
|
89
|
-
</Box>
|
|
47
|
+
<Box
|
|
48
|
+
role='alert'
|
|
49
|
+
:style
|
|
50
|
+
:class='[$style.root, classes?.root]'
|
|
51
|
+
:mod='[{ variant }, mod]'
|
|
52
|
+
:aria-describedby='$slots.default ? `${id}-body` : void 0'
|
|
53
|
+
:aria-labelledby='$slots.label ? `${id}-title` : void 0'
|
|
54
|
+
>
|
|
55
|
+
<Icon
|
|
56
|
+
v-if='icon'
|
|
57
|
+
:name='icon'
|
|
58
|
+
:class='[$style.icon, classes?.icon]'
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<div :class='[$style.body, classes?.body]'>
|
|
62
|
+
<Box v-if='title || $slots.title' :class='[$style.title, classes?.title]'>
|
|
63
|
+
<span :id='`${id}-title`' :class='[$style.label, classes?.label]'>
|
|
64
|
+
<slot name='title'>
|
|
65
|
+
{{ title }}
|
|
66
|
+
</slot>
|
|
67
|
+
</span>
|
|
68
|
+
</Box>
|
|
69
|
+
|
|
70
|
+
<Box
|
|
71
|
+
v-if='$slots.default'
|
|
72
|
+
:id='`${id}-body`'
|
|
73
|
+
:class='[$style.message, classes?.message]'
|
|
74
|
+
:mod='{ variant }'
|
|
75
|
+
>
|
|
76
|
+
<slot />
|
|
77
|
+
</Box>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<ActionIcon
|
|
81
|
+
v-if='withCloseButton'
|
|
82
|
+
:class='[$style.closeButton, classes?.closeButton]'
|
|
83
|
+
variant='subtle'
|
|
84
|
+
icon='gravity-ui:xmark'
|
|
85
|
+
size='sm'
|
|
86
|
+
:color
|
|
87
|
+
@click='$emit("close")'
|
|
88
|
+
/>
|
|
89
|
+
</Box>
|
|
90
90
|
</template>
|
|
91
91
|
|
|
92
92
|
<style module lang="postcss">
|
|
93
|
-
.root {
|
|
94
|
-
--alert-radius: var(--radius-default);
|
|
95
|
-
--alert-bg: var(--color-primary-light);
|
|
96
|
-
--alert-bd: 1px solid transparent;
|
|
97
|
-
--alert-color: var(--color-primary-light-color);
|
|
98
|
-
|
|
99
|
-
position: relative;
|
|
100
|
-
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
display: flex;
|
|
103
|
-
gap: var(--spacing-md);
|
|
104
|
-
|
|
105
|
-
padding: var(--spacing-md) var(--spacing-md);
|
|
106
|
-
border: var(--alert-bd);
|
|
107
|
-
border-radius: var(--alert-radius);
|
|
108
|
-
|
|
109
|
-
color: var(--alert-color);
|
|
110
|
-
|
|
111
|
-
background-color: var(--alert-bg);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.body {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex: 1;
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
gap: var(--spacing-xs);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.title {
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: space-between;
|
|
125
|
-
|
|
126
|
-
font-size: var(--font-size-sm);
|
|
127
|
-
font-weight: 700;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.label {
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
display: block;
|
|
133
|
-
|
|
134
|
-
text-overflow: ellipsis;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.icon {
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
justify-content: flex-start;
|
|
141
|
-
|
|
142
|
-
width: 1.25rem;
|
|
143
|
-
height: 1.25rem;
|
|
144
|
-
margin-top: 1px;
|
|
145
|
-
|
|
146
|
-
line-height: 1;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.message {
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
|
|
152
|
-
font-size: var(--font-size-sm);
|
|
153
|
-
text-overflow: ellipsis;
|
|
154
|
-
|
|
155
|
-
:where([data-mantine-color-scheme='light']) & {
|
|
156
|
-
color: var(--color-black);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
:where([data-mantine-color-scheme='dark']) & {
|
|
160
|
-
color: var(--color-white);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&:where([data-variant='filled']) {
|
|
164
|
-
color: var(--alert-color);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&:where([data-variant='white']) {
|
|
168
|
-
color: var(--color-black);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.closeButton {
|
|
173
|
-
width: 20px;
|
|
174
|
-
height: 20px;
|
|
175
|
-
|
|
176
|
-
color: var(--alert-color);
|
|
177
|
-
}
|
|
93
|
+
.root {
|
|
94
|
+
--alert-radius: var(--radius-default);
|
|
95
|
+
--alert-bg: var(--color-primary-light);
|
|
96
|
+
--alert-bd: 1px solid transparent;
|
|
97
|
+
--alert-color: var(--color-primary-light-color);
|
|
98
|
+
|
|
99
|
+
position: relative;
|
|
100
|
+
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
display: flex;
|
|
103
|
+
gap: var(--spacing-md);
|
|
104
|
+
|
|
105
|
+
padding: var(--spacing-md) var(--spacing-md);
|
|
106
|
+
border: var(--alert-bd);
|
|
107
|
+
border-radius: var(--alert-radius);
|
|
108
|
+
|
|
109
|
+
color: var(--alert-color);
|
|
110
|
+
|
|
111
|
+
background-color: var(--alert-bg);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.body {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex: 1;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: var(--spacing-xs);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.title {
|
|
122
|
+
display: flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: space-between;
|
|
125
|
+
|
|
126
|
+
font-size: var(--font-size-sm);
|
|
127
|
+
font-weight: 700;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.label {
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
display: block;
|
|
133
|
+
|
|
134
|
+
text-overflow: ellipsis;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.icon {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: flex-start;
|
|
141
|
+
|
|
142
|
+
width: 1.25rem;
|
|
143
|
+
height: 1.25rem;
|
|
144
|
+
margin-top: 1px;
|
|
145
|
+
|
|
146
|
+
line-height: 1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.message {
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
|
|
152
|
+
font-size: var(--font-size-sm);
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
|
|
155
|
+
:where([data-mantine-color-scheme='light']) & {
|
|
156
|
+
color: var(--color-black);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where([data-mantine-color-scheme='dark']) & {
|
|
160
|
+
color: var(--color-white);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:where([data-variant='filled']) {
|
|
164
|
+
color: var(--alert-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:where([data-variant='white']) {
|
|
168
|
+
color: var(--color-black);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.closeButton {
|
|
173
|
+
width: 20px;
|
|
174
|
+
height: 20px;
|
|
175
|
+
|
|
176
|
+
color: var(--alert-color);
|
|
177
|
+
}
|
|
178
178
|
</style>
|
|
@@ -7,37 +7,37 @@ const { mod } = defineProps({
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<Box is='aside' :mod :class='$style.root'>
|
|
11
|
-
<slot />
|
|
12
|
-
</Box>
|
|
10
|
+
<Box is='aside' :mod :class='$style.root'>
|
|
11
|
+
<slot />
|
|
12
|
+
</Box>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<style module lang="postcss">
|
|
16
|
-
.root {
|
|
17
|
-
position: fixed;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
top: var(--app-shell-header-offset, 0);
|
|
20
|
-
|
|
21
|
-
inset-inline-end: 0;
|
|
22
|
-
transform: var(--app-shell-aside-transform);
|
|
23
|
-
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
|
|
27
|
-
width: var(--app-shell-aside-width);
|
|
28
|
-
|
|
29
|
-
height: calc(100dvh - var(--app-shell-header-offset, 0rem));
|
|
30
|
-
|
|
31
|
-
padding-block: var(--app-shell-element-padding);
|
|
32
|
-
|
|
33
|
-
background-color: var(--color-aside);
|
|
34
|
-
|
|
35
|
-
transition-timing-function: var(--app-shell-transition-timing-function);
|
|
36
|
-
transition-duration: var(--app-shell-transition-duration);
|
|
37
|
-
transition-property: transform, top, height;
|
|
38
|
-
|
|
39
|
-
:where([data-with-border]) > & {
|
|
40
|
-
border-inline-start: 1px solid var(--app-shell-border-color);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
16
|
+
.root {
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
top: var(--app-shell-header-offset, 0);
|
|
20
|
+
|
|
21
|
+
inset-inline-end: 0;
|
|
22
|
+
transform: var(--app-shell-aside-transform);
|
|
23
|
+
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
width: var(--app-shell-aside-width);
|
|
28
|
+
|
|
29
|
+
height: calc(100dvh - var(--app-shell-header-offset, 0rem));
|
|
30
|
+
|
|
31
|
+
padding-block: var(--app-shell-element-padding);
|
|
32
|
+
|
|
33
|
+
background-color: var(--color-aside);
|
|
34
|
+
|
|
35
|
+
transition-timing-function: var(--app-shell-transition-timing-function);
|
|
36
|
+
transition-duration: var(--app-shell-transition-duration);
|
|
37
|
+
transition-property: transform, top, height;
|
|
38
|
+
|
|
39
|
+
:where([data-with-border]) > & {
|
|
40
|
+
border-inline-start: 1px solid var(--app-shell-border-color);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
43
|
</style>
|
|
@@ -7,36 +7,36 @@ const { mod } = defineProps({
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<Box is='footer' :mod :class='$style.root'>
|
|
11
|
-
<slot />
|
|
12
|
-
</Box>
|
|
10
|
+
<Box is='footer' :mod :class='$style.root'>
|
|
11
|
+
<slot />
|
|
12
|
+
</Box>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<style module lang="postcss">
|
|
16
|
-
.root {
|
|
17
|
-
position: fixed;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
|
|
20
|
-
bottom: 0;
|
|
21
|
-
inset-inline: 0;
|
|
22
|
-
transform: var(--app-shell-footer-transform);
|
|
23
|
-
|
|
24
|
-
height: calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));
|
|
25
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
26
|
-
|
|
27
|
-
background-color: var(--color-body);
|
|
28
|
-
|
|
29
|
-
transition-timing-function: var(--app-shell-transition-timing-function);
|
|
30
|
-
transition-duration: var(--app-shell-transition-duration);
|
|
31
|
-
transition-property: transform, left, right;
|
|
32
|
-
|
|
33
|
-
:where([data-layout='alt']) > & {
|
|
34
|
-
inset-inline-start: var(--app-shell-navbar-offset, 0rem);
|
|
35
|
-
inset-inline-end: var(--app-shell-aside-offset, 0rem);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:where([data-with-border]) > & {
|
|
39
|
-
border-top: 1px solid var(--app-shell-border-color);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
16
|
+
.root {
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
|
|
20
|
+
bottom: 0;
|
|
21
|
+
inset-inline: 0;
|
|
22
|
+
transform: var(--app-shell-footer-transform);
|
|
23
|
+
|
|
24
|
+
height: calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));
|
|
25
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
26
|
+
|
|
27
|
+
background-color: var(--color-body);
|
|
28
|
+
|
|
29
|
+
transition-timing-function: var(--app-shell-transition-timing-function);
|
|
30
|
+
transition-duration: var(--app-shell-transition-duration);
|
|
31
|
+
transition-property: transform, left, right;
|
|
32
|
+
|
|
33
|
+
:where([data-layout='alt']) > & {
|
|
34
|
+
inset-inline-start: var(--app-shell-navbar-offset, 0rem);
|
|
35
|
+
inset-inline-end: var(--app-shell-aside-offset, 0rem);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([data-with-border]) > & {
|
|
39
|
+
border-top: 1px solid var(--app-shell-border-color);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
42
|
</style>
|