jcicl 1.2.3 → 1.2.5

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/Pill/Pill.d.ts CHANGED
@@ -16,6 +16,7 @@ export interface PillProps {
16
16
  * Use `true` for the default textColor-based ring, or pass a CSS color for a custom ring.
17
17
  */
18
18
  ring?: boolean | string;
19
+ className?: string;
19
20
  }
20
21
  export declare const Pill: React.FC<PillProps & {
21
22
  children: React.ReactNode;
package/Pill/Pill.js CHANGED
@@ -1,34 +1,36 @@
1
- import { jsxs as g } from "react/jsx-runtime";
2
- import x from "../theme.js";
3
- import { useThemeColors as f } from "../ThemeContext.js";
4
- import { cn as h } from "../cn.js";
5
- const C = "font-['Roboto',sans-serif] font-medium cursor-default bg-[var(--pill-bg)] text-[var(--pill-color)]", y = "text-[13px] leading-[normal] px-[13px] py-[3px]", b = "text-base leading-none px-3.5 py-2", v = "inline-flex items-center gap-2", B = "shadow-[0_0_0_1px_var(--pill-ring)]", j = (n) => {
6
- const o = f(), {
1
+ import { jsxs as x } from "react/jsx-runtime";
2
+ import f from "../theme.js";
3
+ import { useThemeColors as h } from "../ThemeContext.js";
4
+ import { cn as C } from "../cn.js";
5
+ const y = "font-['Roboto',sans-serif] font-medium cursor-default bg-[var(--pill-bg)] text-[var(--pill-color)]", b = "text-[13px] leading-[normal] px-[13px] py-[3px]", v = "text-base leading-none px-3.5 py-2", B = "inline-flex items-center gap-2", k = "shadow-[0_0_0_1px_var(--pill-ring)]", w = (n) => {
6
+ const o = h(), {
7
7
  backgroundColor: t,
8
8
  textColor: c,
9
9
  type: r = "primary",
10
- squared: i = !1,
10
+ squared: a = !1,
11
11
  icon: l,
12
- size: a = "sm",
12
+ size: i = "sm",
13
13
  ring: e,
14
+ className: m,
14
15
  children: p
15
- } = n, m = t ?? (r === "secondary" ? o.themeIconBackgroundB : o.themeIconBackgroundA), d = c ?? (r === "secondary" ? o.themeIconColorB : x.colors.white), s = e === !0 ? o.themeColor : typeof e == "string" ? e : null, u = {
16
- "--pill-bg": m,
17
- "--pill-color": d,
16
+ } = n, d = t ?? (r === "secondary" ? o.themeIconBackgroundB : o.themeIconBackgroundA), u = c ?? (r === "secondary" ? o.themeIconColorB : f.colors.white), s = e === !0 ? o.themeColor : typeof e == "string" ? e : null, g = {
17
+ "--pill-bg": d,
18
+ "--pill-color": u,
18
19
  ...s && { "--pill-ring": s }
19
20
  };
20
- return /* @__PURE__ */ g(
21
+ return /* @__PURE__ */ x(
21
22
  "span",
22
23
  {
23
- className: h(
24
+ className: C(
24
25
  "jciclPillWrapper",
25
- C,
26
- a === "md" ? b : y,
27
- i ? "rounded" : "rounded-full",
28
- l !== void 0 && v,
29
- s && B
26
+ y,
27
+ i === "md" ? v : b,
28
+ a ? "rounded" : "rounded-full",
29
+ l !== void 0 && B,
30
+ s && k,
31
+ m
30
32
  ),
31
- style: u,
33
+ style: g,
32
34
  children: [
33
35
  l,
34
36
  p
@@ -37,6 +39,6 @@ const C = "font-['Roboto',sans-serif] font-medium cursor-default bg-[var(--pill-
37
39
  );
38
40
  };
39
41
  export {
40
- j as Pill,
41
- j as default
42
+ w as Pill,
43
+ w as default
42
44
  };
@@ -5,6 +5,13 @@ export interface ScrollContainerProps {
5
5
  direction?: 'vertical' | 'horizontal' | 'all' | 'none';
6
6
  styles?: React.CSSProperties;
7
7
  scrollColor?: string;
8
+ /** When the scrollbar auto-hides. 'never' (default) keeps it visible while content
9
+ * overflows; 'leave' shows it only while the pointer is over the container (hover). */
10
+ autoHide?: 'never' | 'scroll' | 'leave' | 'move';
11
+ /** Delay in ms before the scrollbar auto-hides (OverlayScrollbars default is 1300). */
12
+ autoHideDelay?: number;
13
+ /** Show/hide fade duration in ms (symmetric, both directions). Defaults to 150 (OverlayScrollbars default). */
14
+ fadeDurationMs?: number;
8
15
  }
9
16
  declare const ScrollContainer: React.FC<ScrollContainerProps & {
10
17
  children: React.ReactNode;