@udixio/ui-react 2.9.7 → 2.9.8
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/CHANGELOG.md +16 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +263 -260
- package/dist/lib/effects/State.d.ts.map +1 -1
- package/dist/lib/styles/card.style.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/lib/effects/State.tsx +6 -2
- package/src/lib/styles/card.style.ts +4 -1
- package/tsconfig.json +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/lib/effects/State.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAGlB,UAAU,EACX,MAAM,UAAU,CAAC;AAGlB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EACX,MAAM,GACN,oBAAoB,GACpB,aAAa,GACb,aAAa,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;IACF,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,kDAKnB,UAAU,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/lib/effects/State.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAGlB,UAAU,EACX,MAAM,UAAU,CAAC;AAGlB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,CAAC,EACX,MAAM,GACN,oBAAoB,GACpB,aAAa,GACb,aAAa,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;IACF,MAAM,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,GAAI,kDAKnB,UAAU,CAAC,cAAc,CAAC,4CAyC5B,CAAC;AAYF,eAAO,MAAM,aAAa;cA9DJ,OAAO;;eATd,MAAM;qBAEb,MAAM,GACN,oBAAoB,GACpB,aAAa,GACb,aAAa;gBACL,MAAM;YACV,KAAK,CAAC,aAAa;;;kCAmE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.style.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/card.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"card.style.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/card.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,UAAU,CAAC;AAiBlB,eAAO,MAAM,SAAS;;;;;;;;;;2CAAuD,CAAC;AAE9E,eAAO,MAAM,YAAY;;;;;;2CAGxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/ui-react",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"react": "^19.1.1",
|
|
39
39
|
"react-dom": "^19.1.1",
|
|
40
|
-
"@udixio/theme": "2.1.
|
|
41
|
-
"@udixio/tailwind": "2.4.
|
|
40
|
+
"@udixio/theme": "2.1.11",
|
|
41
|
+
"@udixio/tailwind": "2.4.9"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
@@ -44,9 +44,13 @@ export const State = ({
|
|
|
44
44
|
if (ref.current && stateClassName !== 'state-layer') {
|
|
45
45
|
const groupName = !stateClassName.includes('[')
|
|
46
46
|
? 'group'
|
|
47
|
-
: stateClassName.split('[')[1].split(']')[0];
|
|
47
|
+
: 'group/' + stateClassName.split('[')[1].split(']')[0];
|
|
48
|
+
|
|
49
|
+
// On échappe le slash pour le sélecteur CSS
|
|
50
|
+
const safeGroupName = groupName.replace(/\//g, '\\/');
|
|
51
|
+
|
|
48
52
|
const furthestGroupState = ref.current.closest(
|
|
49
|
-
`.${
|
|
53
|
+
`.${safeGroupName}:not(.${safeGroupName} .${safeGroupName})`,
|
|
50
54
|
);
|
|
51
55
|
groupStateRef.current = furthestGroupState as HTMLElement | null;
|
|
52
56
|
}
|
|
@@ -11,10 +11,13 @@ const cardConfig: ClassNameComponent<CardInterface> = ({
|
|
|
11
11
|
isInteractive,
|
|
12
12
|
}) => ({
|
|
13
13
|
card: classNames(
|
|
14
|
-
'
|
|
14
|
+
' rounded-xl overflow-hidden ',
|
|
15
15
|
variant === 'outlined' && 'bg-surface border border-outline-variant',
|
|
16
16
|
variant === 'elevated' && 'bg-surface-container-low shadow-1',
|
|
17
17
|
variant === 'filled' && 'bg-surface-container-highest',
|
|
18
|
+
{
|
|
19
|
+
'group/card': isInteractive,
|
|
20
|
+
},
|
|
18
21
|
),
|
|
19
22
|
});
|
|
20
23
|
|