nuance-ui 0.2.8 → 0.2.9

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.
Files changed (96) hide show
  1. package/LICENSE.md +9 -9
  2. package/README.md +75 -75
  3. package/dist/module.json +1 -1
  4. package/dist/runtime/components/action-icon/action-icon-group.vue +3 -3
  5. package/dist/runtime/components/action-icon/action-icon.vue +23 -23
  6. package/dist/runtime/components/app-shell/app-shell-aside.vue +30 -30
  7. package/dist/runtime/components/app-shell/app-shell-footer.vue +29 -29
  8. package/dist/runtime/components/app-shell/app-shell-header.vue +30 -30
  9. package/dist/runtime/components/app-shell/app-shell-main.vue +18 -18
  10. package/dist/runtime/components/app-shell/app-shell-navbar.vue +34 -34
  11. package/dist/runtime/components/app-shell/app-shell-section.vue +10 -10
  12. package/dist/runtime/components/app-shell/app-shell.vue +34 -34
  13. package/dist/runtime/components/box.vue +3 -3
  14. package/dist/runtime/components/breadcrumbs.vue +78 -78
  15. package/dist/runtime/components/button/button.vue +40 -40
  16. package/dist/runtime/components/button/unstyled-button.vue +23 -23
  17. package/dist/runtime/components/calendar/calendar.vue +60 -60
  18. package/dist/runtime/components/calendar/ui/core/calendar-header.vue +95 -95
  19. package/dist/runtime/components/calendar/ui/core/calendar-root.vue +3 -3
  20. package/dist/runtime/components/calendar/ui/levels/calendar-decade.vue +40 -40
  21. package/dist/runtime/components/calendar/ui/levels/calendar-month.vue +77 -77
  22. package/dist/runtime/components/calendar/ui/levels/calendar-year.vue +40 -40
  23. package/dist/runtime/components/card/card-section.vue +3 -3
  24. package/dist/runtime/components/card/card.vue +3 -3
  25. package/dist/runtime/components/checkbox/checkbox-card.vue +37 -37
  26. package/dist/runtime/components/checkbox/checkbox-indicator.vue +117 -117
  27. package/dist/runtime/components/checkbox/checkbox.vue +139 -139
  28. package/dist/runtime/components/chip/chip-group.vue +2 -2
  29. package/dist/runtime/components/chip/chip.vue +200 -200
  30. package/dist/runtime/components/combobox/combobox-dropdown.vue +14 -14
  31. package/dist/runtime/components/combobox/combobox-empty.vue +3 -3
  32. package/dist/runtime/components/combobox/combobox-group.vue +21 -21
  33. package/dist/runtime/components/combobox/combobox-option-list.vue +3 -3
  34. package/dist/runtime/components/combobox/combobox-option.vue +22 -22
  35. package/dist/runtime/components/combobox/combobox-options-dropdown.vue +29 -29
  36. package/dist/runtime/components/combobox/combobox-root.vue +3 -3
  37. package/dist/runtime/components/combobox/combobox-target.vue +3 -3
  38. package/dist/runtime/components/container.vue +8 -8
  39. package/dist/runtime/components/date-time-picker.d.vue.ts +3 -3
  40. package/dist/runtime/components/date-time-picker.vue +66 -66
  41. package/dist/runtime/components/date-time-picker.vue.d.ts +3 -3
  42. package/dist/runtime/components/dialog/ui/dialog-close-button.vue +11 -11
  43. package/dist/runtime/components/dialog/ui/dialog-header.vue +5 -5
  44. package/dist/runtime/components/dialog/ui/dialog-title.vue +5 -5
  45. package/dist/runtime/components/drawer/drawer-close-button.vue +3 -3
  46. package/dist/runtime/components/drawer/drawer-header.vue +3 -3
  47. package/dist/runtime/components/drawer/drawer-root.vue +15 -15
  48. package/dist/runtime/components/drawer/drawer-title.vue +3 -3
  49. package/dist/runtime/components/files/file-upload-button.vue +12 -12
  50. package/dist/runtime/components/files/file-upload-icon.vue +1 -1
  51. package/dist/runtime/components/input/date-picker.vue +85 -85
  52. package/dist/runtime/components/input/email-input.vue +19 -19
  53. package/dist/runtime/components/input/number-input.vue +134 -134
  54. package/dist/runtime/components/input/password-input.vue +28 -28
  55. package/dist/runtime/components/input/text-input.vue +35 -35
  56. package/dist/runtime/components/input/ui/input-inline.vue +105 -105
  57. package/dist/runtime/components/input/ui/input-wrapper.vue +54 -54
  58. package/dist/runtime/components/link/link-button.vue +16 -16
  59. package/dist/runtime/components/link/link.vue +10 -10
  60. package/dist/runtime/components/loader/_loaders/bars-loader.vue +5 -5
  61. package/dist/runtime/components/loader/_loaders/dots-loader.vue +5 -5
  62. package/dist/runtime/components/loader/_loaders/oval-loader.vue +1 -1
  63. package/dist/runtime/components/modal/modal-close-button.vue +3 -3
  64. package/dist/runtime/components/modal/modal-header.vue +3 -3
  65. package/dist/runtime/components/modal/modal-root.vue +13 -13
  66. package/dist/runtime/components/modal/modal-title.vue +3 -3
  67. package/dist/runtime/components/nav-link/nav-icon-link.vue +15 -15
  68. package/dist/runtime/components/nav-link/nav-link.vue +132 -132
  69. package/dist/runtime/components/paper.vue +33 -33
  70. package/dist/runtime/components/popover/popover-dropdown.vue +69 -70
  71. package/dist/runtime/components/popover/popover-target.vue +8 -8
  72. package/dist/runtime/components/popover/popover.vue +1 -1
  73. package/dist/runtime/components/progress/progress-label.vue +3 -3
  74. package/dist/runtime/components/progress/progress-root.vue +3 -3
  75. package/dist/runtime/components/progress/progress-section.vue +8 -8
  76. package/dist/runtime/components/progress/progress.vue +9 -9
  77. package/dist/runtime/components/renderless/renderless.vue +3 -3
  78. package/dist/runtime/components/roving-focus/roving-focus-item.vue +14 -14
  79. package/dist/runtime/components/select.vue +63 -63
  80. package/dist/runtime/components/switch/switch-group.vue +16 -16
  81. package/dist/runtime/components/table/table.d.ts +30 -30
  82. package/dist/runtime/components/table/ui/table-sortable-header.vue +11 -11
  83. package/dist/runtime/components/tabs/tabs-list.vue +10 -10
  84. package/dist/runtime/components/tabs/tabs-panel.vue +11 -11
  85. package/dist/runtime/components/tabs/tabs-root.vue +8 -8
  86. package/dist/runtime/components/tabs/tabs-tab.vue +22 -22
  87. package/dist/runtime/components/text.vue +67 -67
  88. package/dist/runtime/components/textarea.vue +36 -36
  89. package/dist/runtime/components/title.vue +14 -14
  90. package/dist/runtime/components/transition.vue +3 -3
  91. package/dist/runtime/components/tree/_ui/tree-item.vue +128 -129
  92. package/dist/runtime/components/tree/_ui/tree-root.vue +21 -21
  93. package/dist/runtime/components/visually-hidden/visually-hidden-input.vue +1 -1
  94. package/dist/runtime/components/visually-hidden/visually-hidden.vue +9 -9
  95. package/dist/runtime/styles/dark-theme.css +1 -1
  96. package/package.json +1 -1
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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.2.8",
7
+ "version": "0.2.9",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -9,7 +9,7 @@ const { mod, orientation = "horizontal", is } = defineProps({
9
9
  </script>
10
10
 
11
11
  <template>
12
- <Box :is :class='css.group' :mod='[mod, { orientation }]' role='group'>
13
- <slot />
14
- </Box>
12
+ <Box :is :class='css.group' :mod='[mod, { orientation }]' role='group'>
13
+ <slot />
14
+ </Box>
15
15
  </template>
@@ -47,27 +47,27 @@ const style = computed(() => useStyleResolver((theme) => {
47
47
  </script>
48
48
 
49
49
  <template>
50
- <Box
51
- is='button'
52
- type='button'
53
- :mod='[{ loading }, mod]'
54
- :style
55
- :class='[css.root, classes?.root]'
56
- :disabled='(!disabled ? loading : disabled) || void 0'
57
- >
58
- <Transition name='slide-down'>
59
- <Loader
60
- v-if='loading'
61
- color='var(--ai-color)'
62
- size='calc(var(--ai-size) * .55)'
63
- :class='css.loader'
64
- />
65
- </Transition>
66
-
67
- <span :class='[css.icon, classes?.icon]'>
68
- <slot>
69
- <Icon v-if='icon' :name='icon' :class='css["icon-element"]' />
70
- </slot>
71
- </span>
72
- </Box>
50
+ <Box
51
+ is='button'
52
+ type='button'
53
+ :mod='[{ loading }, mod]'
54
+ :style
55
+ :class='[css.root, classes?.root]'
56
+ :disabled='(!disabled ? loading : disabled) || void 0'
57
+ >
58
+ <Transition name='slide-down'>
59
+ <Loader
60
+ v-if='loading'
61
+ color='var(--ai-color)'
62
+ size='calc(var(--ai-size) * .55)'
63
+ :class='css.loader'
64
+ />
65
+ </Transition>
66
+
67
+ <span :class='[css.icon, classes?.icon]'>
68
+ <slot>
69
+ <Icon v-if='icon' :name='icon' :class='css["icon-element"]' />
70
+ </slot>
71
+ </span>
72
+ </Box>
73
73
  </template>
@@ -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>
@@ -7,37 +7,37 @@ const { mod } = defineProps({
7
7
  </script>
8
8
 
9
9
  <template>
10
- <Box is='header' :mod :class='$style.root'>
11
- <slot />
12
- </Box>
10
+ <Box is='header' :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: 2;
19
- top: 0;
20
- inset-inline: 0;
21
- transform: var(--app-shell-header-transform);
22
-
23
- display: flex;
24
-
25
- height: var(--app-shell-header-height);
26
- padding-block: var(--app-shell-element-padding);
27
- padding-inline: 1rem;
28
-
29
- background-color: var(--color-header);
30
-
31
- transition-timing-function: var(--app-shell-transition-timing-function);
32
- transition-duration: var(--app-shell-transition-duration);
33
- transition-property: transform, left, right;
34
-
35
- :where([data-with-border]) > & {
36
- border-bottom: 1px solid var(--app-shell-border-color);
37
- }
38
-
39
- :where([data-layout='alt']) > & {
40
- inset-inline-start: var(--app-shell-navbar-offset, 0rem);
41
- }
42
- }
16
+ .root {
17
+ position: fixed;
18
+ z-index: 2;
19
+ top: 0;
20
+ inset-inline: 0;
21
+ transform: var(--app-shell-header-transform);
22
+
23
+ display: flex;
24
+
25
+ height: var(--app-shell-header-height);
26
+ padding-block: var(--app-shell-element-padding);
27
+ padding-inline: 1rem;
28
+
29
+ background-color: var(--color-header);
30
+
31
+ transition-timing-function: var(--app-shell-transition-timing-function);
32
+ transition-duration: var(--app-shell-transition-duration);
33
+ transition-property: transform, left, right;
34
+
35
+ :where([data-with-border]) > & {
36
+ border-bottom: 1px solid var(--app-shell-border-color);
37
+ }
38
+
39
+ :where([data-layout='alt']) > & {
40
+ inset-inline-start: var(--app-shell-navbar-offset, 0rem);
41
+ }
42
+ }
43
43
  </style>
@@ -7,25 +7,25 @@ const { mod } = defineProps({
7
7
  </script>
8
8
 
9
9
  <template>
10
- <Box is='main' :mod :class='$style.root'>
11
- <slot />
12
- </Box>
10
+ <Box is='main' :mod :class='$style.root'>
11
+ <slot />
12
+ </Box>
13
13
  </template>
14
14
 
15
15
  <style module lang="postcss">
16
- .root {
17
- display: flex;
18
- flex-direction: column;
19
-
20
- min-height: 100dvh;
21
- padding-top: calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));
22
- padding-bottom: calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));
23
- padding-inline-start: calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));
24
- padding-inline-end: calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));
25
-
26
- transition-timing-function: var(--app-shell-transition-timing-function);
27
- transition-duration: var(--app-shell-transition-duration);
28
-
29
- transition-property: padding;
30
- }
16
+ .root {
17
+ display: flex;
18
+ flex-direction: column;
19
+
20
+ min-height: 100dvh;
21
+ padding-top: calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));
22
+ padding-bottom: calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));
23
+ padding-inline-start: calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));
24
+ padding-inline-end: calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));
25
+
26
+ transition-timing-function: var(--app-shell-transition-timing-function);
27
+ transition-duration: var(--app-shell-transition-duration);
28
+
29
+ transition-property: padding;
30
+ }
31
31
  </style>
@@ -7,41 +7,41 @@ const { mod } = defineProps({
7
7
  </script>
8
8
 
9
9
  <template>
10
- <Box is='nav' :mod :class='$style.root'>
11
- <slot />
12
- </Box>
10
+ <Box is='nav' :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
-
19
- z-index: 1;
20
- top: var(--app-shell-header-offset, 0rem);
21
- inset-inline-start: 0;
22
- transform: var(--app-shell-navbar-transform);
23
-
24
- display: flex;
25
- flex-direction: column;
26
-
27
- width: var(--app-shell-navbar-width);
28
- height: calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));
29
- padding-block: var(--app-shell-element-padding);
30
-
31
- background-color: var(--color-aside);
32
-
33
- transition-timing-function: var(--app-shell-transition-timing-function);
34
- transition-duration: var(--app-shell-transition-duration);
35
- transition-property: transform, top, height;
36
-
37
- :where([data-layout='alt']) > & {
38
- top: 0;
39
-
40
- height: 100dvh;
41
- }
42
-
43
- :where([data-with-border]) > & {
44
- border-inline-end: 1px solid var(--app-shell-border-color);
45
- }
46
- }
16
+ .root {
17
+ position: fixed;
18
+
19
+ z-index: 1;
20
+ top: var(--app-shell-header-offset, 0rem);
21
+ inset-inline-start: 0;
22
+ transform: var(--app-shell-navbar-transform);
23
+
24
+ display: flex;
25
+ flex-direction: column;
26
+
27
+ width: var(--app-shell-navbar-width);
28
+ height: calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));
29
+ padding-block: var(--app-shell-element-padding);
30
+
31
+ background-color: var(--color-aside);
32
+
33
+ transition-timing-function: var(--app-shell-transition-timing-function);
34
+ transition-duration: var(--app-shell-transition-duration);
35
+ transition-property: transform, top, height;
36
+
37
+ :where([data-layout='alt']) > & {
38
+ top: 0;
39
+
40
+ height: 100dvh;
41
+ }
42
+
43
+ :where([data-with-border]) > & {
44
+ border-inline-end: 1px solid var(--app-shell-border-color);
45
+ }
46
+ }
47
47
  </style>
@@ -8,17 +8,17 @@ const { is = "section", mod, grow } = defineProps({
8
8
  </script>
9
9
 
10
10
  <template>
11
- <Box :is :class='$style.root' :mod='[mod, { grow }]'>
12
- <slot />
13
- </Box>
11
+ <Box :is :class='$style.root' :mod='[mod, { grow }]'>
12
+ <slot />
13
+ </Box>
14
14
  </template>
15
15
 
16
16
  <style module lang="postcss">
17
- .root {
18
- flex-grow: 0;
19
-
20
- &:where([data-grow]) {
21
- flex-grow: 1;
22
- }
23
- }
17
+ .root {
18
+ flex-grow: 0;
19
+
20
+ &:where([data-grow]) {
21
+ flex-grow: 1;
22
+ }
23
+ }
24
24
  </style>
@@ -35,41 +35,41 @@ const style = computed(() => ({
35
35
  </script>
36
36
 
37
37
  <template>
38
- <Box :is :style :class='$style.root' :mod='[mod, { layout, "with-border": withBorder }]'>
39
- <slot />
40
- </Box>
38
+ <Box :is :style :class='$style.root' :mod='[mod, { layout, "with-border": withBorder }]'>
39
+ <slot />
40
+ </Box>
41
41
  </template>
42
42
 
43
43
  <style module lang="postcss">
44
- .root {
45
- --app-shell-padding: var(--spacing-sm);
46
- --app-shell-element-padding: .25rem;
47
-
48
- --app-shell-transition-duration: 200ms;
49
- --app-shell-transition-timing-function: ease;
50
-
51
- --app-shell-navbar-width: rem(56px);
52
- --app-shell-navbar-offset: var(--app-shell-navbar-width);
53
- --app-shell-navbar-transform: none;
54
-
55
- --app-shell-aside-width: rem(56px);
56
- --app-shell-aside-offset: var(--app-shell-aside-width);
57
- --app-shell-aside-transform: none;
58
-
59
- --app-shell-header-height: rem(56px);
60
- --app-shell-header-offset: var(--app-shell-header-height);
61
- --app-shell-header-transform: none;
62
-
63
- --app-shell-footer-height: rem(100px);
64
- --app-shell-footer-offset: var(--app-shell-footer-height);
65
- --app-shell-footer-transform: none;
66
-
67
- @mixin light {
68
- --app-shell-border-color: var(--color-gray-3);
69
- }
70
-
71
- @mixin dark {
72
- --app-shell-border-color: var(--color-slate-8);
73
- }
74
- }
44
+ .root {
45
+ --app-shell-padding: var(--spacing-sm);
46
+ --app-shell-element-padding: .25rem;
47
+
48
+ --app-shell-transition-duration: 200ms;
49
+ --app-shell-transition-timing-function: ease;
50
+
51
+ --app-shell-navbar-width: rem(56px);
52
+ --app-shell-navbar-offset: var(--app-shell-navbar-width);
53
+ --app-shell-navbar-transform: none;
54
+
55
+ --app-shell-aside-width: rem(56px);
56
+ --app-shell-aside-offset: var(--app-shell-aside-width);
57
+ --app-shell-aside-transform: none;
58
+
59
+ --app-shell-header-height: rem(56px);
60
+ --app-shell-header-offset: var(--app-shell-header-height);
61
+ --app-shell-header-transform: none;
62
+
63
+ --app-shell-footer-height: rem(100px);
64
+ --app-shell-footer-offset: var(--app-shell-footer-height);
65
+ --app-shell-footer-transform: none;
66
+
67
+ @mixin light {
68
+ --app-shell-border-color: var(--color-gray-3);
69
+ }
70
+
71
+ @mixin dark {
72
+ --app-shell-border-color: var(--color-slate-8);
73
+ }
74
+ }
75
75
  </style>