design-zystem 1.0.358 → 1.0.359
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/ui/index.d.mts +1 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +9 -2
- package/dist/ui/index.mjs +9 -2
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -325,6 +325,7 @@ declare const buttonVariants: (props?: ({
|
|
|
325
325
|
size?: "s" | "xs" | "m" | "l" | null | undefined;
|
|
326
326
|
iconOnly?: boolean | null | undefined;
|
|
327
327
|
fullWidth?: boolean | null | undefined;
|
|
328
|
+
rounded?: boolean | null | undefined;
|
|
328
329
|
elevated?: boolean | null | undefined;
|
|
329
330
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
330
331
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -325,6 +325,7 @@ declare const buttonVariants: (props?: ({
|
|
|
325
325
|
size?: "s" | "xs" | "m" | "l" | null | undefined;
|
|
326
326
|
iconOnly?: boolean | null | undefined;
|
|
327
327
|
fullWidth?: boolean | null | undefined;
|
|
328
|
+
rounded?: boolean | null | undefined;
|
|
328
329
|
elevated?: boolean | null | undefined;
|
|
329
330
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
330
331
|
interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
package/dist/ui/index.js
CHANGED
|
@@ -1245,7 +1245,7 @@ var Spinner = ({ size = "m", color, className }) => /* @__PURE__ */ (0, import_j
|
|
|
1245
1245
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1246
1246
|
var buttonVariants = (0, import_class_variance_authority7.cva)(
|
|
1247
1247
|
cn(
|
|
1248
|
-
"relative inline-flex select-none items-center justify-center gap-2 whitespace-nowrap
|
|
1248
|
+
"relative inline-flex select-none items-center justify-center gap-2 whitespace-nowrap border border-transparent font-bold font-sans outline-none",
|
|
1249
1249
|
"transition-[filter,transform] duration-150",
|
|
1250
1250
|
"hover:brightness-90 active:scale-[0.98] active:brightness-75",
|
|
1251
1251
|
"disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:brightness-100 disabled:active:scale-100",
|
|
@@ -1270,6 +1270,10 @@ var buttonVariants = (0, import_class_variance_authority7.cva)(
|
|
|
1270
1270
|
true: "w-full",
|
|
1271
1271
|
false: ""
|
|
1272
1272
|
},
|
|
1273
|
+
rounded: {
|
|
1274
|
+
true: "rounded-full",
|
|
1275
|
+
false: "rounded-[6px]"
|
|
1276
|
+
},
|
|
1273
1277
|
/** Ombre portée d'un bouton qui flotte au-dessus du contenu, calibrée pour les petits diamètres. */
|
|
1274
1278
|
elevated: {
|
|
1275
1279
|
true: "shadow-[0_4px_3px_0_rgba(0,0,0,0.1),0_11px_7px_0_rgba(0,0,0,0.1)]",
|
|
@@ -1280,6 +1284,7 @@ var buttonVariants = (0, import_class_variance_authority7.cva)(
|
|
|
1280
1284
|
size: "m",
|
|
1281
1285
|
iconOnly: false,
|
|
1282
1286
|
fullWidth: false,
|
|
1287
|
+
rounded: false,
|
|
1283
1288
|
elevated: false
|
|
1284
1289
|
}
|
|
1285
1290
|
}
|
|
@@ -1295,6 +1300,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
1295
1300
|
variant = "solid",
|
|
1296
1301
|
size,
|
|
1297
1302
|
fullWidth,
|
|
1303
|
+
rounded,
|
|
1298
1304
|
elevated,
|
|
1299
1305
|
isLoading = false,
|
|
1300
1306
|
disabled,
|
|
@@ -1308,6 +1314,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
1308
1314
|
"variant",
|
|
1309
1315
|
"size",
|
|
1310
1316
|
"fullWidth",
|
|
1317
|
+
"rounded",
|
|
1311
1318
|
"elevated",
|
|
1312
1319
|
"isLoading",
|
|
1313
1320
|
"disabled",
|
|
@@ -1322,7 +1329,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
1322
1329
|
disabled: disabled || isLoading,
|
|
1323
1330
|
"aria-busy": isLoading || void 0,
|
|
1324
1331
|
className: cn(
|
|
1325
|
-
buttonVariants({ size, iconOnly, fullWidth, elevated }),
|
|
1332
|
+
buttonVariants({ size, iconOnly, fullWidth, rounded, elevated }),
|
|
1326
1333
|
THEME_VARIANT_CLASSES[variant][theme],
|
|
1327
1334
|
className
|
|
1328
1335
|
)
|
package/dist/ui/index.mjs
CHANGED
|
@@ -1058,7 +1058,7 @@ var Spinner = ({ size = "m", color, className }) => /* @__PURE__ */ jsx12(
|
|
|
1058
1058
|
import { Fragment, jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1059
1059
|
var buttonVariants = cva7(
|
|
1060
1060
|
cn(
|
|
1061
|
-
"relative inline-flex select-none items-center justify-center gap-2 whitespace-nowrap
|
|
1061
|
+
"relative inline-flex select-none items-center justify-center gap-2 whitespace-nowrap border border-transparent font-bold font-sans outline-none",
|
|
1062
1062
|
"transition-[filter,transform] duration-150",
|
|
1063
1063
|
"hover:brightness-90 active:scale-[0.98] active:brightness-75",
|
|
1064
1064
|
"disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:brightness-100 disabled:active:scale-100",
|
|
@@ -1083,6 +1083,10 @@ var buttonVariants = cva7(
|
|
|
1083
1083
|
true: "w-full",
|
|
1084
1084
|
false: ""
|
|
1085
1085
|
},
|
|
1086
|
+
rounded: {
|
|
1087
|
+
true: "rounded-full",
|
|
1088
|
+
false: "rounded-[6px]"
|
|
1089
|
+
},
|
|
1086
1090
|
/** Ombre portée d'un bouton qui flotte au-dessus du contenu, calibrée pour les petits diamètres. */
|
|
1087
1091
|
elevated: {
|
|
1088
1092
|
true: "shadow-[0_4px_3px_0_rgba(0,0,0,0.1),0_11px_7px_0_rgba(0,0,0,0.1)]",
|
|
@@ -1093,6 +1097,7 @@ var buttonVariants = cva7(
|
|
|
1093
1097
|
size: "m",
|
|
1094
1098
|
iconOnly: false,
|
|
1095
1099
|
fullWidth: false,
|
|
1100
|
+
rounded: false,
|
|
1096
1101
|
elevated: false
|
|
1097
1102
|
}
|
|
1098
1103
|
}
|
|
@@ -1108,6 +1113,7 @@ var Button = forwardRef10(
|
|
|
1108
1113
|
variant = "solid",
|
|
1109
1114
|
size,
|
|
1110
1115
|
fullWidth,
|
|
1116
|
+
rounded,
|
|
1111
1117
|
elevated,
|
|
1112
1118
|
isLoading = false,
|
|
1113
1119
|
disabled,
|
|
@@ -1121,6 +1127,7 @@ var Button = forwardRef10(
|
|
|
1121
1127
|
"variant",
|
|
1122
1128
|
"size",
|
|
1123
1129
|
"fullWidth",
|
|
1130
|
+
"rounded",
|
|
1124
1131
|
"elevated",
|
|
1125
1132
|
"isLoading",
|
|
1126
1133
|
"disabled",
|
|
@@ -1135,7 +1142,7 @@ var Button = forwardRef10(
|
|
|
1135
1142
|
disabled: disabled || isLoading,
|
|
1136
1143
|
"aria-busy": isLoading || void 0,
|
|
1137
1144
|
className: cn(
|
|
1138
|
-
buttonVariants({ size, iconOnly, fullWidth, elevated }),
|
|
1145
|
+
buttonVariants({ size, iconOnly, fullWidth, rounded, elevated }),
|
|
1139
1146
|
THEME_VARIANT_CLASSES[variant][theme],
|
|
1140
1147
|
className
|
|
1141
1148
|
)
|