@agregio-solutions/design-system 1.48.2 → 1.50.0
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/dist/design-system.cjs
CHANGED
|
@@ -229,9 +229,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[qu]+=1);const b8=l.createCont
|
|
|
229
229
|
outline-color: var(--hover-border-color);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
// Manage
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
// Manage pressed state
|
|
233
|
+
&[data-pressed],
|
|
234
|
+
&[data-force-pressed] {
|
|
235
|
+
transform: scale(0.96);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Manage keyboard focus state
|
|
235
239
|
&:not([data-disabled])[data-focus-visible],
|
|
236
240
|
&:not([data-disabled])[data-force-focus-visible] {
|
|
237
241
|
color: var(--hover-color);
|
|
@@ -248,6 +252,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[qu]+=1);const b8=l.createCont
|
|
|
248
252
|
&:not([data-disabled])[data-force-focused] {
|
|
249
253
|
outline: var(--border-color) solid 1px;
|
|
250
254
|
}
|
|
255
|
+
&:not([data-disabled])[data-focused][data-hovered],
|
|
256
|
+
&:not([data-disabled])[data-force-focused][data-hovered] {
|
|
257
|
+
outline: var(--hover-border-color) solid 1px;
|
|
258
|
+
}
|
|
251
259
|
|
|
252
260
|
// Manage the size variations
|
|
253
261
|
&[data-size="small"] {
|
|
@@ -1884,7 +1892,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[qu]+=1);const b8=l.createCont
|
|
|
1884
1892
|
${Nu};
|
|
1885
1893
|
z-index: var(--z-index-dropdown);
|
|
1886
1894
|
outline: none;
|
|
1887
|
-
`;function fE({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:u,placement:a="bottom"}){return m.jsxs(sE,{isOpen:n,onOpenChange:r,defaultOpen:u,children:[m.jsx(ke,{...t}),m.jsx(dE,{offset:8,placement:a,children:m.jsx(cE,{children:e})})]})}function pE({text:e,iconRight:t,iconLeft:n,href:r,routerOptions:u,onClick:a,isDisabled:i,...
|
|
1895
|
+
`;function fE({children:e,buttonProps:t,isOpen:n,onOpenChange:r,defaultOpen:u,placement:a="bottom"}){return m.jsxs(sE,{isOpen:n,onOpenChange:r,defaultOpen:u,children:[m.jsx(ke,{...t}),m.jsx(dE,{offset:8,placement:a,children:m.jsx(cE,{children:e})})]})}function pE({text:e,iconRight:t,iconLeft:n,href:r,routerOptions:u,onClick:a,isDisabled:i,style:o,className:s,...d}){return m.jsx(yy,{...d,textValue:e,style:{outline:"none",textDecoration:"none"},href:r,routerOptions:u,onAction:a,isDisabled:i,children:c=>m.jsx(Ys,{text:e,"data-hovered":c.isHovered,"data-pressed":c.isPressed,"data-focused":c.isFocused,"data-focus-visible":c.isFocusVisible,iconLeft:n,iconRight:t,disabled:i,style:o,className:s})})}const mE=R.div`
|
|
1888
1896
|
display: flex;
|
|
1889
1897
|
flex: 1;
|
|
1890
1898
|
padding: var(--spacing-xs) var(--spacing-xs) var(--spacing-sm)
|
package/dist/design-system.js
CHANGED
|
@@ -21980,9 +21980,13 @@ const F7 = I.span`
|
|
|
21980
21980
|
outline-color: var(--hover-border-color);
|
|
21981
21981
|
}
|
|
21982
21982
|
|
|
21983
|
-
// Manage
|
|
21984
|
-
|
|
21985
|
-
|
|
21983
|
+
// Manage pressed state
|
|
21984
|
+
&[data-pressed],
|
|
21985
|
+
&[data-force-pressed] {
|
|
21986
|
+
transform: scale(0.96);
|
|
21987
|
+
}
|
|
21988
|
+
|
|
21989
|
+
// Manage keyboard focus state
|
|
21986
21990
|
&:not([data-disabled])[data-focus-visible],
|
|
21987
21991
|
&:not([data-disabled])[data-force-focus-visible] {
|
|
21988
21992
|
color: var(--hover-color);
|
|
@@ -21999,6 +22003,10 @@ const F7 = I.span`
|
|
|
21999
22003
|
&:not([data-disabled])[data-force-focused] {
|
|
22000
22004
|
outline: var(--border-color) solid 1px;
|
|
22001
22005
|
}
|
|
22006
|
+
&:not([data-disabled])[data-focused][data-hovered],
|
|
22007
|
+
&:not([data-disabled])[data-force-focused][data-hovered] {
|
|
22008
|
+
outline: var(--hover-border-color) solid 1px;
|
|
22009
|
+
}
|
|
22002
22010
|
|
|
22003
22011
|
// Manage the size variations
|
|
22004
22012
|
&[data-size="small"] {
|
|
@@ -25823,29 +25831,33 @@ function hk({
|
|
|
25823
25831
|
routerOptions: a,
|
|
25824
25832
|
onClick: u,
|
|
25825
25833
|
isDisabled: i,
|
|
25826
|
-
|
|
25834
|
+
style: o,
|
|
25835
|
+
className: l,
|
|
25836
|
+
...s
|
|
25827
25837
|
}) {
|
|
25828
25838
|
return /* @__PURE__ */ h(
|
|
25829
25839
|
By,
|
|
25830
25840
|
{
|
|
25831
|
-
...
|
|
25841
|
+
...s,
|
|
25832
25842
|
textValue: e,
|
|
25833
25843
|
style: { outline: "none", textDecoration: "none" },
|
|
25834
25844
|
href: r,
|
|
25835
25845
|
routerOptions: a,
|
|
25836
25846
|
onAction: u,
|
|
25837
25847
|
isDisabled: i,
|
|
25838
|
-
children: (
|
|
25848
|
+
children: (d) => /* @__PURE__ */ h(
|
|
25839
25849
|
ud,
|
|
25840
25850
|
{
|
|
25841
25851
|
text: e,
|
|
25842
|
-
"data-hovered":
|
|
25843
|
-
"data-pressed":
|
|
25844
|
-
"data-focused":
|
|
25845
|
-
"data-focus-visible":
|
|
25852
|
+
"data-hovered": d.isHovered,
|
|
25853
|
+
"data-pressed": d.isPressed,
|
|
25854
|
+
"data-focused": d.isFocused,
|
|
25855
|
+
"data-focus-visible": d.isFocusVisible,
|
|
25846
25856
|
iconLeft: n,
|
|
25847
25857
|
iconRight: t,
|
|
25848
|
-
disabled: i
|
|
25858
|
+
disabled: i,
|
|
25859
|
+
style: o,
|
|
25860
|
+
className: l
|
|
25849
25861
|
}
|
|
25850
25862
|
)
|
|
25851
25863
|
}
|
|
@@ -30,5 +30,13 @@ export type Props = {
|
|
|
30
30
|
* Example : `{ replace: true }`
|
|
31
31
|
*/
|
|
32
32
|
routerOptions?: any;
|
|
33
|
+
/**
|
|
34
|
+
* Additional style to apply to the menu item
|
|
35
|
+
*/
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
/**
|
|
38
|
+
* Additional class name to apply to the menu item
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
33
41
|
};
|
|
34
|
-
export default function MenuItem({ text, iconRight, iconLeft, href, routerOptions, onClick, isDisabled, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export default function MenuItem({ text, iconRight, iconLeft, href, routerOptions, onClick, isDisabled, style, className, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED