@ouestfrance/sipa-bms-ui 8.7.0 → 8.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouestfrance/sipa-bms-ui",
3
- "version": "8.7.0",
3
+ "version": "8.8.1",
4
4
  "author": "Ouest-France BMS",
5
5
  "license": "ISC",
6
6
  "scripts": {
@@ -36,9 +36,9 @@
36
36
  "@commitlint/config-conventional": "19.8.1",
37
37
  "@formkit/vue": "1.6.9",
38
38
  "@mdx-js/react": "3.1.1",
39
- "@storybook/addon-docs": "9.1.5",
40
- "@storybook/addon-links": "9.1.5",
41
- "@storybook/vue3-vite": "9.1.5",
39
+ "@storybook/addon-docs": "9.1.7",
40
+ "@storybook/addon-links": "9.1.7",
41
+ "@storybook/vue3-vite": "9.1.7",
42
42
  "@types/lodash": "4.17.20",
43
43
  "@types/uuid": "11.0.0",
44
44
  "@vitejs/plugin-vue": "6.0.1",
@@ -47,7 +47,7 @@
47
47
  "@vueuse/motion": "^3.0.0",
48
48
  "axios": "1.12.2",
49
49
  "blob-util": "^2.0.2",
50
- "chromatic": "13.1.4",
50
+ "chromatic": "13.2.0",
51
51
  "codemirror": "6.0.2",
52
52
  "cors": "^2.8.5",
53
53
  "cross-env": "^10.0.0",
@@ -64,15 +64,15 @@
64
64
  "normalize.css": "8.0.1",
65
65
  "path": "0.12.7",
66
66
  "prettier": "3.6.2",
67
- "sass": "1.92.1",
68
- "semantic-release": "24.2.8",
69
- "start-server-and-test": "2.1.0",
70
- "storybook": "9.1.5",
71
- "storybook-addon-pseudo-states": "9.1.5",
67
+ "sass": "1.93.0",
68
+ "semantic-release": "24.2.9",
69
+ "start-server-and-test": "2.1.2",
70
+ "storybook": "9.1.7",
71
+ "storybook-addon-pseudo-states": "9.1.7",
72
72
  "storybook-vue3-router": "^6.0.2",
73
73
  "typescript": "5.2.2",
74
74
  "uuid": "13.0.0",
75
- "vite": "7.1.5",
75
+ "vite": "7.1.6",
76
76
  "vite-plugin-dts": "^4.1.0",
77
77
  "vite-plugin-mkcert": "1.17.8",
78
78
  "vite-plugin-pages": "0.33.1",
@@ -52,5 +52,11 @@
52
52
 
53
53
  --bms-disabled-color: var(--bms-grey-50);
54
54
  --bms-font-color: var(--bms-grey-100);
55
+
56
+ --bms-z-index-below: -10;
57
+ --bms-z-index-base: 0;
58
+ --bms-z-index-fixed: 10;
59
+ --bms-z-index-tooltip: 20;
60
+ --bms-z-index-modal: 30;
55
61
  }
56
62
  }
@@ -130,7 +130,7 @@ const style = computed(() => {
130
130
  max-height: 30rem;
131
131
  position: absolute;
132
132
  overflow: hidden;
133
- z-index: 20;
133
+ z-index: var(--bms-z-index-tooltip);
134
134
  filter: drop-shadow(0 0 0.8rem var(--bms-shadow-color));
135
135
  color: var(--bms-font-color);
136
136
  transform: var(--bms-tooltip-transform);
@@ -72,7 +72,7 @@ const emits = defineEmits<{
72
72
  select: [value: any];
73
73
  }>();
74
74
 
75
- onClickOutside(inputElement, () => closeDatalist, {
75
+ onClickOutside(inputElement, closeDatalist, {
76
76
  ignore: ['.datalist-option', '.icon-toggle-button'],
77
77
  });
78
78
 
@@ -18,11 +18,11 @@ defineProps<{
18
18
  left: 0;
19
19
  width: 100vw;
20
20
  height: 100vh;
21
- z-index: 10;
21
+ z-index: var(--bms-z-index-modal);
22
22
  background: rgba(82, 100, 118, 0.3);
23
23
  }
24
24
 
25
25
  .priority {
26
- z-index: 20;
26
+ z-index: calc(var(--bms-z-index-modal) + 10);
27
27
  }
28
28
  </style>
@@ -133,7 +133,7 @@ const listener = () => {
133
133
  width: var(--ui-menu-width, auto);
134
134
  width: 400px;
135
135
  position: fixed;
136
- z-index: 10;
136
+ z-index: var(--bms-z-index-fixed);
137
137
  display: block;
138
138
  pointer-events: none;
139
139
  opacity: 0;
@@ -96,7 +96,7 @@ const toggleMenu = (newMenuState: boolean = true) =>
96
96
  margin: 1.5rem;
97
97
  padding: 0;
98
98
  border-radius: 0.5rem;
99
- z-index: 10;
99
+ z-index: var(--bms-z-index-fixed);
100
100
  }
101
101
 
102
102
  &__copyright {
@@ -206,7 +206,7 @@ const getCaptionIdentifier = (caption: string | Caption): string => {
206
206
  margin: 0;
207
207
  background: var(--bms-white);
208
208
  width: 100%;
209
- z-index: 100;
209
+ z-index: var(--bms-z-index-tooltip);
210
210
  max-height: 300px;
211
211
  overflow-y: auto;
212
212
 
@@ -100,7 +100,7 @@ const closeDetails = () => {
100
100
  top: var(--bms-notifications-top);
101
101
  width: 100%;
102
102
  max-width: var(--bms-notifications-width);
103
- z-index: 20;
103
+ z-index: var(--bms-z-index-fixed);
104
104
 
105
105
  &__item {
106
106
  &:not(:first-child) {
@@ -0,0 +1,39 @@
1
+ <script setup lang="ts">
2
+ import BmsButton from '@/components/button/BmsButton.vue';
3
+ import BmsTooltip from '@/components/feedback/BmsTooltip.vue';
4
+ import BmsHeader from '@/components/layout/BmsHeader.vue';
5
+ import BmsModal from '@/components/layout/BmsModal.vue';
6
+ import UiPopoverMenu from '@/components/layout/UiPopoverMenu.vue';
7
+ import BmsTenantSwitcher from '@/components/navigation/BmsTenantSwitcher.vue';
8
+ import { Tenant } from '@/models';
9
+ import { useNotifications } from '@/plugins/notifications';
10
+ import { ref } from 'vue';
11
+
12
+ const isModalOpen = ref(false);
13
+ const { success, error } = useNotifications();
14
+
15
+ const onClick = () => {
16
+ isModalOpen.value = true;
17
+ success('toto');
18
+ };
19
+
20
+ const tenants: Tenant[] = [{ id: '1', information: '1', label: 'Tenant 1' }];
21
+ </script>
22
+
23
+ <template>
24
+ <BmsTooltip
25
+ :tooltip-text="'hello hello hello hello hello hello hello hello hello hello hello hello hello hello'"
26
+ >
27
+ <BmsButton @click="onClick">Hello</BmsButton>
28
+ </BmsTooltip>
29
+ <BmsTenantSwitcher
30
+ :tenants="tenants"
31
+ :current-tenant="null"
32
+ select-tenant-label="Coucou"
33
+ select-tenant-placeholder="toto"
34
+ />
35
+
36
+ <BmsHeader> fixed header</BmsHeader>
37
+
38
+ <BmsModal v-model="isModalOpen"> Ouvrir la modale </BmsModal>
39
+ </template>