@agregio-solutions/design-system 1.14.0 → 1.14.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/dist/design-system.cjs +2 -2
- package/dist/design-system.js +2 -2
- package/package.json +1 -1
package/dist/design-system.cjs
CHANGED
|
@@ -107,7 +107,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Tr]+=1);function K1(e){return
|
|
|
107
107
|
cursor: pointer;
|
|
108
108
|
white-space: nowrap;
|
|
109
109
|
|
|
110
|
-
&[data-
|
|
110
|
+
&[data-fullwidth="true"] {
|
|
111
111
|
width: 100%;
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -365,7 +365,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Tr]+=1);function K1(e){return
|
|
|
365
365
|
--hover-background-color: transparent;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
`;function et({text:e,mode:t="primary",size:r="medium",nature:n="action",iconLeft:o,iconRight:i,type:a,onClick:l,disabled:s,fullWidth:c,...d}){const p=e==null||e==="";if(p&&!o&&!i)throw new Error("You must provide a text or an icon");if(o&&i)throw new Error("You can't provide both an iconLeft and an iconRight");return v.jsxs(Yh,{...d,type:a||"button","data-size":r,"data-nature":n,"data-mode":t,"data-has-icon-left":!!o,"data-has-icon-right":!!i,"data-has-no-text":p,"data-
|
|
368
|
+
`;function et({text:e,mode:t="primary",size:r="medium",nature:n="action",iconLeft:o,iconRight:i,type:a,onClick:l,disabled:s,fullWidth:c,...d}){const p=e==null||e==="";if(p&&!o&&!i)throw new Error("You must provide a text or an icon");if(o&&i)throw new Error("You can't provide both an iconLeft and an iconRight");return v.jsxs(Yh,{...d,type:a||"button","data-size":r,"data-nature":n,"data-mode":t,"data-has-icon-left":!!o,"data-has-icon-right":!!i,"data-has-no-text":p,"data-fullwidth":c,onPress:l,isDisabled:s,children:[!!o&&v.jsx(fa,{name:o,"data-size":r}),!p&&v.jsx(Eu,{"data-size":r,children:e}),!!i&&v.jsx(fa,{name:i,"data-size":r})]})}const Xh=K.span`
|
|
369
369
|
display: inline-flex;
|
|
370
370
|
align-items: center;
|
|
371
371
|
justify-content: center;
|
package/dist/design-system.js
CHANGED
|
@@ -9364,7 +9364,7 @@ const nv = {
|
|
|
9364
9364
|
cursor: pointer;
|
|
9365
9365
|
white-space: nowrap;
|
|
9366
9366
|
|
|
9367
|
-
&[data-
|
|
9367
|
+
&[data-fullwidth="true"] {
|
|
9368
9368
|
width: 100%;
|
|
9369
9369
|
}
|
|
9370
9370
|
|
|
@@ -9652,7 +9652,7 @@ function vt({
|
|
|
9652
9652
|
"data-has-icon-left": !!o,
|
|
9653
9653
|
"data-has-icon-right": !!i,
|
|
9654
9654
|
"data-has-no-text": f,
|
|
9655
|
-
"data-
|
|
9655
|
+
"data-fullwidth": c,
|
|
9656
9656
|
onPress: l,
|
|
9657
9657
|
isDisabled: s,
|
|
9658
9658
|
children: [
|
package/package.json
CHANGED