@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-11 px-4",
2319
- lg: "h-12 px-6 text-base",
2320
- icon: "size-11 p-0 shrink-0"
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("span", { className: "size-6 shrink-0 [&>svg]:size-full", "aria-hidden": "true", children: s }),
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-[0px_4px_2px_0px_rgba(0,0,0,0.05)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",
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("div", { className: h("flex w-full min-w-0 flex-col gap-1.5", t), children: [
3257
- r && /* @__PURE__ */ o(C, { as: "label", htmlFor: f, variant: "body", className: "text-neutral-text-primary", children: r }),
3258
- /* @__PURE__ */ v(
3259
- "div",
3260
- {
3261
- className: h(
3262
- Jt({ hasError: N }),
3263
- i && "pointer-events-none opacity-50"
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
- children: [
3266
- n && /* @__PURE__ */ o(
3267
- "span",
3268
- {
3269
- className: "flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
3270
- "aria-hidden": "true",
3271
- children: n
3272
- }
3273
- ),
3274
- /* @__PURE__ */ o(
3275
- "input",
3276
- {
3277
- ref: p,
3278
- id: f,
3279
- disabled: i,
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
- ...c
3287
- }
3288
- ),
3289
- a && /* @__PURE__ */ o(
3290
- "span",
3291
- {
3292
- className: h(
3293
- "flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
3294
- s && "rounded-md bg-lightGray p-1"
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
- "aria-hidden": "true",
3297
- children: a
3298
- }
3299
- )
3300
- ]
3301
- }
3302
- ),
3303
- N && /* @__PURE__ */ o(C, { as: "span", id: g, role: "alert", variant: "caption", className: "text-danger-60", children: j })
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";