@engie-group/fluid-design-system
Advanced tools
Comparing version 5.16.2 to 5.17.0
@@ -1,1 +0,1 @@ | ||
const e=window.NJ&&window.NJ.config||null,t={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag",".nj-accordion":"Accordion"},o=Object.values(t),n=Object.keys(t),r=n.toString(),i=(()=>{if("undefined"!=typeof window){function t(e=null){if(window.NJ)e?window.NJ[e].init():window.NJ.AutoInit();else if(e)window[e].init();else{const e=o.length;let t=0;for(;t<e;t++)window[o[t]]&&window[o[t]].init()}}function i(e){const t=[];for(const o of e){o&&o.key&&t.push(o)}return!!t.length&&t}function s(e,t){const r={};if("childList"===e[t].type&&e[t].addedNodes.length)for(let s=0;s<e[t].addedNodes.length;s++){const l=e[t].addedNodes[s];if(l){const e=[],t=(t,o)=>{l.classList&&l.classList.contains(t.substring(1))?e[o]=l:l.querySelector&&l.querySelector(`${t}`)&&(e[o]=l.querySelector(`${t}`))};n.forEach(t);let s=-1;switch(l.tagName){case"INPUT":s=8;break;case"SELECT":s=14;break;case"CHECKBOX":s=9}if(-1!==s&&(e[s]=l),e.length>0){const t=i(e);(!t||t.length<e.length)&&e.forEach(((e,t)=>{e&&(r[o[t]]=o[t])}))}}}return r}function l(e,t){if("childList"===e[t].type&&e[t].removedNodes.length)for(let o=0;o<e[t].removedNodes.length;o++){const s=e[t].removedNodes[o];if(s){const e=s.querySelectorAll?[...s.querySelectorAll(r)]:[];n.forEach((t=>{s.classList&&s.classList.contains(t.substring(1))&&e.push(s)})),"INPUT"!==s.tagName&&"SELECT"!==s.tagName&&"CHECKBOX"!==s.tagName||e.push(s);const t=s.querySelectorAll?[...s.querySelectorAll('[data-toggle="tooltip"]')]:[];if(s.getAttribute&&"tooltip"===s.getAttribute("data-toggle")&&t.push(s),t.length>0&&e.push(...t),e.length>0){const t=i(e);if(t){const e=e=>{const t=e;window.NJStore[t.key.id].dispose()};t.forEach(e)}}}}}function c(){let o=document.getElementById("root")||document.body;e&&e.rootElementId&&(o=document.getElementById(e.rootElementId)||o);const n=o;if(n){const e={attributes:!1,childList:!0,subtree:!0};new MutationObserver((e=>{for(let o=0,n=e.length;o<n;o++){l(e,o);const n=s(e,o);for(const e in n)t(n[e])}})).observe(n,e)}}const d=()=>{t(),c()};return document.addEventListener("DOMContentLoaded",d),!0}return!1})();export{i as default}; | ||
const t=window.NJ&&window.NJ.config||null,e={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-form-item.nj-form-item--select.nj-form-item--custom-list":"SelectInput",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag",".nj-accordion":"Accordion"},o=Object.values(e),n=Object.keys(e),r=n.toString(),i=(()=>{if("undefined"!=typeof window){function e(t=null){if(window.NJ)t?window.NJ[t].init():window.NJ.AutoInit();else if(t)window[t].init();else{const t=o.length;let e=0;for(;e<t;e++)window[o[e]]&&window[o[e]].init()}}function i(t){const e=[];for(const o of t){o&&o.key&&e.push(o)}return!!e.length&&e}function s(t,e){const r={};if("childList"===t[e].type&&t[e].addedNodes.length)for(let s=0;s<t[e].addedNodes.length;s++){const l=t[e].addedNodes[s];if(l){const t=[],e=(e,o)=>{l.classList&&l.classList.contains(e.substring(1))?t[o]=l:l.querySelector&&l.querySelector(`${e}`)&&(t[o]=l.querySelector(`${e}`))};n.forEach(e);let s=-1;switch(l.tagName){case"INPUT":s=8;break;case"SELECT":s=14;break;case"CHECKBOX":s=9}if(-1!==s&&(t[s]=l),t.length>0){const e=i(t);(!e||e.length<t.length)&&t.forEach(((t,e)=>{t&&(r[o[e]]=o[e])}))}}}return r}function l(t,e){if("childList"===t[e].type&&t[e].removedNodes.length)for(let o=0;o<t[e].removedNodes.length;o++){const s=t[e].removedNodes[o];if(s){const t=s.querySelectorAll?[...s.querySelectorAll(r)]:[];n.forEach((e=>{s.classList&&s.classList.contains(e.substring(1))&&t.push(s)})),"INPUT"!==s.tagName&&"SELECT"!==s.tagName&&"CHECKBOX"!==s.tagName||t.push(s);const e=s.querySelectorAll?[...s.querySelectorAll('[data-toggle="tooltip"]')]:[];if(s.getAttribute&&"tooltip"===s.getAttribute("data-toggle")&&e.push(s),e.length>0&&t.push(...e),t.length>0){const e=i(t);if(e){const t=t=>{const e=t;window.NJStore[e.key.id].dispose()};e.forEach(t)}}}}}function c(){let o=document.getElementById("root")||document.body;t&&t.rootElementId&&(o=document.getElementById(t.rootElementId)||o);const n=o;if(n){const t={attributes:!1,childList:!0,subtree:!0};new MutationObserver((t=>{for(let o=0,n=t.length;o<n;o++){l(t,o);const n=s(t,o);for(const t in n)e(n[t])}})).observe(n,t)}}const d=()=>{e(),c()};return document.addEventListener("DOMContentLoaded",d),!0}return!1})();export{i as default}; |
{ | ||
"name": "@engie-group/fluid-design-system", | ||
"version": "5.16.2", | ||
"version": "5.17.0", | ||
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.", | ||
@@ -72,9 +72,5 @@ "type": "module", | ||
"runkitExample": "const fluidDesignSystem = require(\"@engie-group/fluid-design-system@4.5.0\")", | ||
"engines": { | ||
"node": "^20.0.0", | ||
"pnpm": "^9.0.0" | ||
}, | ||
"dependencies": { | ||
"@floating-ui/dom": "1.6.3", | ||
"@engie-group/fluid-design-tokens": "5.9.0" | ||
"@engie-group/fluid-design-tokens": "5.10.0" | ||
}, | ||
@@ -117,4 +113,4 @@ "devDependencies": { | ||
"vitest": "^2.0.5", | ||
"@engie-group/fluid-design-tokens": "5.9.0", | ||
"fluid-styles": "0.0.0" | ||
"fluid-styles": "0.0.0", | ||
"@engie-group/fluid-design-tokens": "5.10.0" | ||
}, | ||
@@ -136,6 +132,7 @@ "scripts": { | ||
"web-server": "node serve.cjs", | ||
"visual-test": "pnpm playwright test", | ||
"nrt": "pnpm playwright test", | ||
"visual-test:update": "pnpm playwright test -u", | ||
"visual-test:ui": "pnpm playwright test --ui" | ||
"visual-test:ui": "pnpm playwright test --ui", | ||
"ci:nrt": "pnpm run nrt" | ||
} | ||
} |
@@ -87,2 +87,9 @@ # Engie's typescript components of the Fluid design system | ||
or in your CSS entry file : | ||
```css | ||
@import '@engie-group/fluid-design-tokens/css'; | ||
@import '@engie-group/fluid-design-system/css'; | ||
``` | ||
>ℹ️ We recommend including the Fluid Design System CSS before your own stylesheets to avoid any conflicts. | ||
@@ -89,0 +96,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
237
1474128
14122
+ Added@engie-group/fluid-design-tokens@5.10.0(transitive)
- Removed@engie-group/fluid-design-tokens@5.9.0(transitive)