digital-rabbit-cl 3.3.2-rc.0 → 3.3.3-rc.0

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.
@@ -24,6 +24,15 @@ export interface ButtonProps extends Pick<BaseComponentProps, 'className' | 'sty
24
24
  * Outline style variant
25
25
  */
26
26
  outline?: boolean;
27
+ /**
28
+ * Ghost variant — no background, no border, just padded text. Hover dims
29
+ * via opacity unless `hoverTextColor` is provided. Takes precedence over
30
+ * `outline` if both are set.
31
+ *
32
+ * TODO: replace `outline` + `ghost` booleans with a single
33
+ * `variant: 'primary' | 'outline' | 'ghost'` prop in the next major bump.
34
+ */
35
+ ghost?: boolean;
27
36
  /**
28
37
  * Button type attribute
29
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iB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,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CACrE,CAAC;CACH;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -6,6 +6,7 @@ export interface UseButtonStylesParams {
6
6
  hoverColor?: string;
7
7
  hoverTextColor?: string;
8
8
  outline: boolean;
9
+ ghost?: boolean;
9
10
  theme: Theme;
10
11
  }
11
12
  export interface ButtonStyles {
@@ -14,5 +15,5 @@ export interface ButtonStyles {
14
15
  color: string;
15
16
  opacity: number;
16
17
  }
17
- export declare const useButtonStyles: ({ isActive, disabled, color: colorProp, hoverColor, hoverTextColor, outline, theme, }: UseButtonStylesParams) => ButtonStyles;
18
+ export declare const useButtonStyles: ({ isActive, disabled, color: colorProp, hoverColor, hoverTextColor, outline, ghost, theme, }: UseButtonStylesParams) => ButtonStyles;
18
19
  //# sourceMappingURL=useButtonStyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,uFAQ7B,qBAAqB,KAAG,YA4D1B,CAAC"}
1
+ {"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,8FAS7B,qBAAqB,KAAG,YAqE1B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ import { BaseComponentProps, SizeVariant } from '../../types/component-props';
3
+ export interface CollapsibleProps extends BaseComponentProps {
4
+ /** Content shown in the always-visible header row. */
5
+ header: React.ReactNode;
6
+ /** Initial open state (uncontrolled). Defaults to false. */
7
+ defaultOpen?: boolean;
8
+ /** Controlled open state. When provided, `onOpenChange` should also be supplied. */
9
+ open?: boolean;
10
+ /** Called when the user toggles the disclosure. Receives the next open state. */
11
+ onOpenChange?: (open: boolean) => void;
12
+ /** Apply themed border around the disclosure. Defaults to false. */
13
+ border?: boolean;
14
+ /** Hide the built-in chevron button (caller must render their own toggle then). */
15
+ hideChevron?: boolean;
16
+ /** Padding inside the header row. Overrides the size-derived default. */
17
+ headerPadding?: string;
18
+ /** Padding inside the body when open. Overrides the size-derived default. */
19
+ bodyPadding?: string;
20
+ /**
21
+ * Controls the chevron button dimensions and default header/body padding.
22
+ * 'default' preserves the original appearance. Defaults to 'default'.
23
+ */
24
+ size?: SizeVariant;
25
+ /** Additional styles applied directly to the chevron button (e.g. padding, margin, opacity). */
26
+ chevronStyle?: React.CSSProperties;
27
+ }
28
+ declare const Collapsible: React.FC<CollapsibleProps>;
29
+ export default Collapsible;
30
+ //# sourceMappingURL=Collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/Collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE/D,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,sDAAsD;IACtD,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oFAAoF;IACpF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iFAAiF;IACjF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mFAAmF;IACnF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,gGAAgG;IAChG,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC;AAgCD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqG3C,CAAC;AAuBF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from './Collapsible';
2
+ export type { CollapsibleProps } from './Collapsible';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}