@agilys-system/design-system 1.0.10 → 1.0.12
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.
|
@@ -2315,9 +2315,9 @@ const bt = T(
|
|
|
2315
2315
|
},
|
|
2316
2316
|
size: {
|
|
2317
2317
|
sm: "h-9 px-3 text-sm",
|
|
2318
|
-
md: "h-
|
|
2319
|
-
lg: "h-
|
|
2320
|
-
icon: "size-
|
|
2318
|
+
md: "h-10 px-4",
|
|
2319
|
+
lg: "h-11 px-6 text-base",
|
|
2320
|
+
icon: "size-10 p-0 shrink-0"
|
|
2321
2321
|
},
|
|
2322
2322
|
fullWidth: {
|
|
2323
2323
|
true: "w-full"
|
|
@@ -2380,7 +2380,14 @@ const bt = T(
|
|
|
2380
2380
|
]
|
|
2381
2381
|
}
|
|
2382
2382
|
),
|
|
2383
|
-
!a && s && /* @__PURE__ */ o(
|
|
2383
|
+
!a && s && /* @__PURE__ */ o(
|
|
2384
|
+
"span",
|
|
2385
|
+
{
|
|
2386
|
+
className: "size-6 shrink-0 [&>svg]:size-full",
|
|
2387
|
+
"aria-hidden": "true",
|
|
2388
|
+
children: s
|
|
2389
|
+
}
|
|
2390
|
+
),
|
|
2384
2391
|
p ? /* @__PURE__ */ o("span", { className: "size-5 shrink-0 [&>svg]:size-full", children: i }) : i
|
|
2385
2392
|
]
|
|
2386
2393
|
}
|
|
@@ -3227,7 +3234,7 @@ const Kt = S(
|
|
|
3227
3234
|
);
|
|
3228
3235
|
Kt.displayName = "Pagination";
|
|
3229
3236
|
const Jt = T(
|
|
3230
|
-
"flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[
|
|
3237
|
+
"flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.25)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",
|
|
3231
3238
|
{
|
|
3232
3239
|
variants: {
|
|
3233
3240
|
hasError: {
|
|
@@ -3253,55 +3260,83 @@ const Jt = T(
|
|
|
3253
3260
|
...c
|
|
3254
3261
|
}, p) => {
|
|
3255
3262
|
const b = xe(), f = d ?? b, j = typeof l == "string" ? l : l == null ? void 0 : l.message, N = !!j, g = `${f}-error`;
|
|
3256
|
-
return /* @__PURE__ */ v(
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3263
|
+
return /* @__PURE__ */ v(
|
|
3264
|
+
"div",
|
|
3265
|
+
{
|
|
3266
|
+
className: h(
|
|
3267
|
+
"flex w-full min-w-0 flex-col gap-1.5",
|
|
3268
|
+
t
|
|
3269
|
+
),
|
|
3270
|
+
children: [
|
|
3271
|
+
r && /* @__PURE__ */ o(
|
|
3272
|
+
C,
|
|
3273
|
+
{
|
|
3274
|
+
as: "label",
|
|
3275
|
+
htmlFor: f,
|
|
3276
|
+
variant: "body",
|
|
3277
|
+
className: "text-neutral-text-primary",
|
|
3278
|
+
children: r
|
|
3279
|
+
}
|
|
3264
3280
|
),
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
"
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
"aria-invalid": N || void 0,
|
|
3281
|
-
"aria-describedby": N ? g : void 0,
|
|
3282
|
-
className: h(
|
|
3283
|
-
"w-full min-w-0 flex-1 bg-transparent font-sans text-base leading-6 text-neutral-text-primary placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed",
|
|
3284
|
-
e
|
|
3281
|
+
/* @__PURE__ */ v(
|
|
3282
|
+
"div",
|
|
3283
|
+
{
|
|
3284
|
+
className: h(
|
|
3285
|
+
Jt({ hasError: N }),
|
|
3286
|
+
i && "pointer-events-none opacity-50"
|
|
3287
|
+
),
|
|
3288
|
+
children: [
|
|
3289
|
+
n && /* @__PURE__ */ o(
|
|
3290
|
+
"span",
|
|
3291
|
+
{
|
|
3292
|
+
className: "flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
|
|
3293
|
+
"aria-hidden": "true",
|
|
3294
|
+
children: n
|
|
3295
|
+
}
|
|
3285
3296
|
),
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3297
|
+
/* @__PURE__ */ o(
|
|
3298
|
+
"input",
|
|
3299
|
+
{
|
|
3300
|
+
ref: p,
|
|
3301
|
+
id: f,
|
|
3302
|
+
disabled: i,
|
|
3303
|
+
"aria-invalid": N || void 0,
|
|
3304
|
+
"aria-describedby": N ? g : void 0,
|
|
3305
|
+
className: h(
|
|
3306
|
+
"w-full min-w-0 flex-1 bg-transparent font-sans text-xs leading-relaxed font-normal text-black placeholder:font-sans placeholder:text-xs placeholder:leading-relaxed placeholder:font-normal placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",
|
|
3307
|
+
e
|
|
3308
|
+
),
|
|
3309
|
+
...c
|
|
3310
|
+
}
|
|
3295
3311
|
),
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3312
|
+
a && /* @__PURE__ */ o(
|
|
3313
|
+
"span",
|
|
3314
|
+
{
|
|
3315
|
+
className: h(
|
|
3316
|
+
"flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
|
|
3317
|
+
s && "rounded-md bg-lightGray p-1"
|
|
3318
|
+
),
|
|
3319
|
+
"aria-hidden": "true",
|
|
3320
|
+
children: a
|
|
3321
|
+
}
|
|
3322
|
+
)
|
|
3323
|
+
]
|
|
3324
|
+
}
|
|
3325
|
+
),
|
|
3326
|
+
N && /* @__PURE__ */ o(
|
|
3327
|
+
C,
|
|
3328
|
+
{
|
|
3329
|
+
as: "span",
|
|
3330
|
+
id: g,
|
|
3331
|
+
role: "alert",
|
|
3332
|
+
variant: "caption",
|
|
3333
|
+
className: "text-danger-60",
|
|
3334
|
+
children: j
|
|
3335
|
+
}
|
|
3336
|
+
)
|
|
3337
|
+
]
|
|
3338
|
+
}
|
|
3339
|
+
);
|
|
3305
3340
|
}
|
|
3306
3341
|
);
|
|
3307
3342
|
Xt.displayName = "Input";
|