@aic-kits/react 0.16.6 → 0.16.7

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/index.js CHANGED
@@ -7195,143 +7195,142 @@ const u8 = /^(\d+|\d*\.\d+)(px)$/, c8 = (r, a) => {
7195
7195
  throw new Error("Invalid itemWidth, must be a Size or a number or a valid pixel value");
7196
7196
  }
7197
7197
  return a;
7198
- }, d8 = Pe(
7199
- ({
7200
- items: r,
7201
- renderItem: a,
7202
- showPagination: i = !0,
7203
- showNavigation: d = !0,
7204
- autoPlay: c = !1,
7205
- autoScroll: h = !1,
7206
- initialIndex: m = 0,
7207
- onIndexChange: x,
7208
- keyExtractor: v,
7209
- itemSpacing: w,
7210
- itemsPerView: L = 1,
7211
- itemWidth: $,
7212
- ...I
7213
- }, z) => {
7214
- const B = ne(), T = B.__hd__.carousel, [O, W] = me(0), D = lt(null), V = lt(null), j = lt(!1), X = !!h, Y = X ? 1 : Math.max(1, L), ie = X ? void 0 : c8(B, $), _e = B.spaces[w || T.container.defaultItemSpacing] || 0, ue = X ? !1 : i, fe = X ? !1 : d, se = Math.max(0, r.length - Y), xt = Math.ceil(r.length / Y), St = typeof c == "object" && c.delay || 3e3, $e = st((ct) => {
7215
- const He = Math.max(0, Math.min(ct, se));
7216
- if (He !== O && (W(He), x == null || x(He)), D.current && !X) {
7217
- let sn = `calc(-${He * (100 / Y)}% - ${He * _e}px)`;
7218
- ie && (sn = `calc(-${He} * (${ie}px + ${_e}px))`), D.current.style.transform = `translateX(${sn})`;
7219
- }
7220
- }, [
7221
- se,
7222
- O,
7223
- x,
7224
- X,
7225
- Y,
7226
- _e,
7227
- ie
7228
- ]), $t = st(() => {
7229
- $e(Math.min(O + Y, se));
7230
- }, [O, $e, Y, se]), qt = st(() => {
7231
- $e(Math.max(O - Y, 0));
7232
- }, [O, $e, Y]);
7233
- Gr(z, () => ({
7234
- goToIndex: $e,
7235
- goToNext: $t,
7236
- goToPrev: qt
7237
- // You can add other methods from CarouselHandle here if needed
7238
- }));
7239
- const Te = st(() => {
7240
- V.current && clearTimeout(V.current);
7241
- }, []), vt = () => {
7242
- j.current = !0, c && !X && Te(), X && D.current && (D.current.style.animationPlayState = "paused");
7243
- }, En = () => {
7244
- if (j.current = !1, c && !X) {
7245
- Te();
7246
- const ct = (O + 1) % r.length, He = Math.min(ct, se);
7247
- V.current = setTimeout(
7248
- () => $e(He),
7249
- St
7250
- );
7251
- }
7252
- X && D.current && (D.current.style.animationPlayState = "running");
7253
- }, Ft = Math.floor(O / Y), De = (ct) => {
7254
- $e(ct * Y);
7255
- };
7256
- return ze(() => {
7257
- if (!c || X || j.current) {
7258
- Te();
7259
- return;
7260
- }
7198
+ };
7199
+ function d8({
7200
+ items: r,
7201
+ renderItem: a,
7202
+ showPagination: i = !0,
7203
+ showNavigation: d = !0,
7204
+ autoPlay: c = !1,
7205
+ autoScroll: h = !1,
7206
+ initialIndex: m = 0,
7207
+ onIndexChange: x,
7208
+ keyExtractor: v,
7209
+ itemSpacing: w,
7210
+ itemsPerView: L = 1,
7211
+ itemWidth: $,
7212
+ ...I
7213
+ }, z) {
7214
+ const B = ne(), T = B.__hd__.carousel, [O, W] = me(0), D = lt(null), V = lt(null), j = lt(!1), X = !!h, Y = X ? 1 : Math.max(1, L), ie = X ? void 0 : c8(B, $), _e = B.spaces[w || T.container.defaultItemSpacing] || 0, ue = X ? !1 : i, fe = X ? !1 : d, se = Math.max(0, r.length - Y), xt = Math.ceil(r.length / Y), St = typeof c == "object" && c.delay || 3e3, $e = st((ct) => {
7215
+ const He = Math.max(0, Math.min(ct, se));
7216
+ if (He !== O && (W(He), x == null || x(He)), D.current && !X) {
7217
+ let sn = `calc(-${He * (100 / Y)}% - ${He * _e}px)`;
7218
+ ie && (sn = `calc(-${He} * (${ie}px + ${_e}px))`), D.current.style.transform = `translateX(${sn})`;
7219
+ }
7220
+ }, [
7221
+ se,
7222
+ O,
7223
+ x,
7224
+ X,
7225
+ Y,
7226
+ _e,
7227
+ ie
7228
+ ]), $t = st(() => {
7229
+ $e(Math.min(O + Y, se));
7230
+ }, [O, $e, Y, se]), qt = st(() => {
7231
+ $e(Math.max(O - Y, 0));
7232
+ }, [O, $e, Y]);
7233
+ Gr(z, () => ({
7234
+ goToIndex: $e,
7235
+ goToNext: $t,
7236
+ goToPrev: qt
7237
+ // You can add other methods from CarouselHandle here if needed
7238
+ }));
7239
+ const Te = st(() => {
7240
+ V.current && clearTimeout(V.current);
7241
+ }, []), vt = () => {
7242
+ j.current = !0, c && !X && Te(), X && D.current && (D.current.style.animationPlayState = "paused");
7243
+ }, En = () => {
7244
+ if (j.current = !1, c && !X) {
7245
+ Te();
7261
7246
  const ct = (O + 1) % r.length, He = Math.min(ct, se);
7262
- return V.current = setTimeout(
7247
+ V.current = setTimeout(
7263
7248
  () => $e(He),
7264
7249
  St
7265
- ), Te;
7266
- }, [
7267
- O,
7268
- c,
7269
- St,
7270
- $e,
7271
- Te,
7272
- X,
7273
- r.length,
7274
- se
7275
- ]), ze(() => {
7276
- ut() || $e(m);
7277
- }, []), /* @__PURE__ */ ge(
7278
- M,
7279
- {
7280
- fw: !0,
7281
- overflow: "hidden",
7282
- onMouseEnter: vt,
7283
- onMouseLeave: En,
7284
- display: "flex",
7285
- flexDirection: "column",
7286
- alignItems: "center",
7287
- ...I,
7288
- children: [
7289
- /* @__PURE__ */ ge(M, { display: "flex", justifyContent: fe ? "space-between" : "center", alignItems: "center", fw: !0, children: [
7290
- fe && r.length > Y && /* @__PURE__ */ y(
7291
- Ll,
7292
- {
7293
- isLeft: !0,
7294
- onPrev: qt,
7295
- onNext: $t
7296
- }
7297
- ),
7298
- /* @__PURE__ */ y(
7299
- s8,
7300
- {
7301
- itemsWrapperRef: D,
7302
- itemSpacing: w,
7303
- activeIndex: O,
7304
- items: r,
7305
- renderItem: a,
7306
- keyExtractor: v,
7307
- autoScroll: h,
7308
- itemsPerView: Y,
7309
- itemWidth: ie
7310
- }
7311
- ),
7312
- fe && r.length > Y && /* @__PURE__ */ y(
7313
- Ll,
7314
- {
7315
- isLeft: !1,
7316
- onPrev: qt,
7317
- onNext: $t
7318
- }
7319
- )
7320
- ] }),
7321
- ue && xt > 1 && /* @__PURE__ */ y(
7322
- l8,
7250
+ );
7251
+ }
7252
+ X && D.current && (D.current.style.animationPlayState = "running");
7253
+ }, Ft = Math.floor(O / Y), De = (ct) => {
7254
+ $e(ct * Y);
7255
+ };
7256
+ return ze(() => {
7257
+ if (!c || X || j.current) {
7258
+ Te();
7259
+ return;
7260
+ }
7261
+ const ct = (O + 1) % r.length, He = Math.min(ct, se);
7262
+ return V.current = setTimeout(
7263
+ () => $e(He),
7264
+ St
7265
+ ), Te;
7266
+ }, [
7267
+ O,
7268
+ c,
7269
+ St,
7270
+ $e,
7271
+ Te,
7272
+ X,
7273
+ r.length,
7274
+ se
7275
+ ]), ze(() => {
7276
+ ut() || $e(m);
7277
+ }, []), /* @__PURE__ */ ge(
7278
+ M,
7279
+ {
7280
+ fw: !0,
7281
+ overflow: "hidden",
7282
+ onMouseEnter: vt,
7283
+ onMouseLeave: En,
7284
+ display: "flex",
7285
+ flexDirection: "column",
7286
+ alignItems: "center",
7287
+ ...I,
7288
+ children: [
7289
+ /* @__PURE__ */ ge(M, { display: "flex", justifyContent: fe ? "space-between" : "center", alignItems: "center", fw: !0, children: [
7290
+ fe && r.length > Y && /* @__PURE__ */ y(
7291
+ Ll,
7292
+ {
7293
+ isLeft: !0,
7294
+ onPrev: qt,
7295
+ onNext: $t
7296
+ }
7297
+ ),
7298
+ /* @__PURE__ */ y(
7299
+ s8,
7300
+ {
7301
+ itemsWrapperRef: D,
7302
+ itemSpacing: w,
7303
+ activeIndex: O,
7304
+ items: r,
7305
+ renderItem: a,
7306
+ keyExtractor: v,
7307
+ autoScroll: h,
7308
+ itemsPerView: Y,
7309
+ itemWidth: ie
7310
+ }
7311
+ ),
7312
+ fe && r.length > Y && /* @__PURE__ */ y(
7313
+ Ll,
7323
7314
  {
7324
- itemsCount: xt,
7325
- activeIndex: Ft,
7326
- onDotClick: De
7315
+ isLeft: !1,
7316
+ onPrev: qt,
7317
+ onNext: $t
7327
7318
  }
7328
7319
  )
7329
- ]
7330
- }
7331
- );
7332
- }
7333
- );
7334
- d8.displayName = "Carousel";
7320
+ ] }),
7321
+ ue && xt > 1 && /* @__PURE__ */ y(
7322
+ l8,
7323
+ {
7324
+ itemsCount: xt,
7325
+ activeIndex: Ft,
7326
+ onDotClick: De
7327
+ }
7328
+ )
7329
+ ]
7330
+ }
7331
+ );
7332
+ }
7333
+ const J8 = Pe(d8);
7335
7334
  function f8({
7336
7335
  renderContent: r,
7337
7336
  isExpanded: a
@@ -7410,7 +7409,7 @@ function p8({
7410
7409
  }
7411
7410
  );
7412
7411
  }
7413
- function J8({
7412
+ function Q8({
7414
7413
  renderHeader: r,
7415
7414
  renderContent: a,
7416
7415
  initialExpanded: i = !1,
@@ -7477,7 +7476,7 @@ const au = (r, a, i, d) => i ? r.colors[i] : d === "solid" ? a === "white" ? r.c
7477
7476
  /* Use medium weight for tags by default, can be customized via theme if needed */
7478
7477
  font-weight: ${({ theme: r }) => r.__hd__.text.fontWeights.medium};
7479
7478
  line-height: 1; /* Ensure tight line height for tags */
7480
- `, Q8 = ({
7479
+ `, j8 = ({
7481
7480
  variant: r,
7482
7481
  color: a,
7483
7482
  textColor: i,
@@ -7546,7 +7545,7 @@ const au = (r, a, i, d) => i ? r.colors[i] : d === "solid" ? a === "white" ? r.c
7546
7545
  ]
7547
7546
  }
7548
7547
  );
7549
- }, j8 = ({
7548
+ }, e_ = ({
7550
7549
  label: r,
7551
7550
  checked: a,
7552
7551
  onChange: i,
@@ -7886,7 +7885,7 @@ function w8({
7886
7885
  insetBoxShadow: I
7887
7886
  };
7888
7887
  }
7889
- const e_ = ({
7888
+ const t_ = ({
7890
7889
  // Generic type for value
7891
7890
  options: r,
7892
7891
  value: a,
@@ -8310,7 +8309,7 @@ const Vr = le(_t)`
8310
8309
  };
8311
8310
  })
8312
8311
  };
8313
- }, t_ = ({
8312
+ }, n_ = ({
8314
8313
  count: r = 1,
8315
8314
  page: a = 1,
8316
8315
  onChange: i,
@@ -8408,7 +8407,7 @@ const Vr = le(_t)`
8408
8407
  /* Indeterminate: animation controls width and position */
8409
8408
  animation: ${I8} 2s infinite linear alternate;
8410
8409
  `}
8411
- `, n_ = ({
8410
+ `, r_ = ({
8412
8411
  value: r,
8413
8412
  color: a,
8414
8413
  size: i,
@@ -8448,14 +8447,14 @@ const Vr = le(_t)`
8448
8447
  );
8449
8448
  };
8450
8449
  export {
8451
- J8 as Accordion,
8450
+ Q8 as Accordion,
8452
8451
  Ct as Art,
8453
8452
  q8 as Base,
8454
8453
  M as Box,
8455
8454
  l2 as Brand,
8456
8455
  $l as Button,
8457
- d8 as Carousel,
8458
- j8 as Checkbox,
8456
+ J8 as Carousel,
8457
+ e_ as Checkbox,
8459
8458
  Qm as DEFAULT_VIMEO_CONFIG,
8460
8459
  Bm as Divider,
8461
8460
  u2 as Emoji,
@@ -8469,19 +8468,19 @@ export {
8469
8468
  qm as Input,
8470
8469
  X8 as List,
8471
8470
  Im as Loading,
8472
- t_ as Pagination,
8471
+ n_ as Pagination,
8473
8472
  R8 as PaginationItem,
8474
- n_ as Progress,
8473
+ r_ as Progress,
8475
8474
  Kr as RESPONSIVE_BREAKPOINTS,
8476
8475
  Zg as RESPONSIVE_BREAKPOINT_KEYS,
8477
8476
  vm as SUPPORTED_RICH_TEXT_TAGS,
8478
- e_ as Select,
8477
+ t_ as Select,
8479
8478
  x8 as SelectDropdownItem,
8480
8479
  y8 as SelectInputDisplay,
8481
8480
  nu as Skeleton,
8482
8481
  n2 as StyledBox,
8483
8482
  Am as Svg,
8484
- Q8 as Tag,
8483
+ j8 as Tag,
8485
8484
  Re as Text,
8486
8485
  V8 as ThemeProvider,
8487
8486
  _t as Touchable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aic-kits/react",
3
- "version": "0.16.6",
3
+ "version": "0.16.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -46,5 +46,5 @@
46
46
  "vite-plugin-dts": "^4.3.0",
47
47
  "vitest": "^2.1.8"
48
48
  },
49
- "gitHead": "d93a4669fde7611bf93201117bc4ac6febe4e186"
49
+ "gitHead": "6b55048a41eea8fa6f00558cff95a4cdc2df0cac"
50
50
  }