@nexdom/uimed-vue 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,6 +82,7 @@ var navigation_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
82
82
  modelValue: unref(drawerOpen),
83
83
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(drawerOpen) ? drawerOpen.value = $event : null),
84
84
  color: "tertiary",
85
+ theme: "navigation",
85
86
  "data-testid": props.dataTestid,
86
87
  "aria-busy": props.loading || void 0,
87
88
  mobile: unref(mobile),
@@ -148,11 +149,12 @@ var navigation_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
148
149
  type: "list-item@6",
149
150
  color: "tertiary"
150
151
  }, {
151
- default: withCtx(() => [createCommentVNode(" Vuetify's `list` role only allows list items, but the items are links "), createVNode(unref(VList), {
152
+ default: withCtx(() => [createCommentVNode(" Vuetify's `list` role only allows list items, but the items are links.\n `indent` aligns the items of a group with its title, which the 24px between the icons and\n the titles (`settings.scss`) move 8px to the left of Vuetify's default indentation. It\n replaces the group's prepend width too, so it's the icon (24px) plus that gap (24px) "), createVNode(unref(VList), {
152
153
  opened: unref(opened),
153
154
  "onUpdate:opened": _cache[1] || (_cache[1] = ($event) => isRef(opened) ? opened.value = $event : null),
154
155
  nav: "",
155
- role: "group"
156
+ role: "group",
157
+ indent: 48
156
158
  }, {
157
159
  default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredItems.value, (item, index) => {
158
160
  return openBlock(), createElementBlock(Fragment, { key: index }, [unref(isParentItem)(item) ? (openBlock(), createBlock(unref(VListGroup), {
package/dist/index.js CHANGED
@@ -6,6 +6,34 @@ import { createVuetify } from "vuetify";
6
6
  import "vue";
7
7
  import { mdi } from "vuetify/iconsets/mdi-svg";
8
8
  //#region src/index.ts
9
+ /** The library's default theme, with its colors and the opacities of secondary text and borders */
10
+ const light = {
11
+ dark: false,
12
+ colors: {
13
+ background: "#EAEDF0",
14
+ surface: "#FCFCFD",
15
+ primary: "#074D31",
16
+ secondary: "#FCFCFD",
17
+ tertiary: "#00995D",
18
+ success: "#A9EFC5",
19
+ warning: "#FFE596",
20
+ error: "#D92D20",
21
+ info: "#9ACBE5",
22
+ "on-primary": "#FCFCFD",
23
+ "on-tertiary": "#000000",
24
+ "primary-text": "#074D31",
25
+ "tertiary-text": "#007547",
26
+ "success-text": "#16783E",
27
+ "info-text": "#277096",
28
+ "warning-text": "#846300",
29
+ "error-text": "#C92A1E",
30
+ link: "#0271AD"
31
+ },
32
+ variables: {
33
+ "border-color": "#D0D5DD",
34
+ "medium-emphasis-opacity": .7
35
+ }
36
+ };
9
37
  /**
10
38
  * Create an UIMed-Vue instance to be installed after [createApp](https://vuejs.org/guide/essentials/application.html#the-application-instance).
11
39
  * @returns an instance to be used with [app.use](https://vuejs.org/guide/essentials/application.html#the-application-instance)
@@ -20,33 +48,16 @@ function createUimed() {
20
48
  locale: localeOptions,
21
49
  theme: {
22
50
  defaultTheme: "light",
23
- themes: { light: {
24
- dark: false,
25
- colors: {
26
- background: "#EAEDF0",
27
- surface: "#FCFCFD",
28
- primary: "#074D31",
29
- secondary: "#FCFCFD",
30
- tertiary: "#00995D",
31
- success: "#A9EFC5",
32
- warning: "#FFE596",
33
- error: "#D92D20",
34
- info: "#9ACBE5",
35
- "on-primary": "#FCFCFD",
36
- "on-tertiary": "#000000",
37
- "primary-text": "#074D31",
38
- "tertiary-text": "#007547",
39
- "success-text": "#16783E",
40
- "info-text": "#277096",
41
- "warning-text": "#846300",
42
- "error-text": "#C92A1E",
43
- link: "#0271AD"
44
- },
45
- variables: {
46
- "border-color": "#D0D5DD",
47
- "medium-emphasis-opacity": .7
51
+ themes: {
52
+ light,
53
+ navigation: {
54
+ ...light,
55
+ variables: {
56
+ ...light.variables,
57
+ "disabled-opacity": .8
58
+ }
48
59
  }
49
- } }
60
+ }
50
61
  }
51
62
  });
52
63
  }
@@ -8,6 +8,13 @@ $layout-elevation: 2;
8
8
  // Unimed Slab's ascent and descent take 1.26em, more than the subtitles' default 1rem line
9
9
  // height, which clipped its descenders and accented capitals
10
10
  $list-item-subtitle-line-height: normal,
11
+ // Vuetify's 0.38 draws the fields' underline and outline with a contrast of 2.3:1 on white and
12
+ // 2.12:1 on the navigation menu, below WCAG AA's 3:1 for interface components
13
+ $field-outline-opacity: 0.6,
14
+ // Vuetify's 32px between a list item's icons and its title truncated common descriptions (e.g.
15
+ // "Recursos humanos") in the expanded navigation menu, whose groups have an icon on each side
16
+ $list-item-icon-margin-start: 24px,
17
+ $list-item-icon-margin-end: 24px,
11
18
  // The utility classes are a render-blocking stylesheet in the apps, so only the ones the
12
19
  // components use are generated. The theme's colors (`primary`, ...) don't come from here, and
13
20
  // the palettes are left out: only the shades (black, white and transparent) remain, since
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",