@rinzai/zen 0.0.16 → 0.1.1

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.
Files changed (55) hide show
  1. package/dist/badge/index.d.ts +9 -10
  2. package/dist/badge/index.d.ts.map +1 -1
  3. package/dist/button/index.d.ts +8 -8
  4. package/dist/button/index.d.ts.map +1 -1
  5. package/dist/collapse/index.d.ts +1 -2
  6. package/dist/collapse/index.d.ts.map +1 -1
  7. package/dist/dropdown/index.d.ts +2 -2
  8. package/dist/dropdown/index.d.ts.map +1 -1
  9. package/dist/icons/chevron-down.d.ts +1 -1
  10. package/dist/icons/chevron-up.d.ts +1 -1
  11. package/dist/icons/icon.types.d.ts +2 -3
  12. package/dist/icons/icon.types.d.ts.map +1 -1
  13. package/dist/icons/search.d.ts +1 -1
  14. package/dist/icons/x-mark.d.ts +1 -1
  15. package/dist/index.css +1 -0
  16. package/dist/index.d.ts +1 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2524 -0
  19. package/dist/input/index.d.ts +2 -3
  20. package/dist/input/index.d.ts.map +1 -1
  21. package/dist/popover/index.d.ts +1 -2
  22. package/dist/popover/index.d.ts.map +1 -1
  23. package/dist/toggle/index.d.ts +2 -2
  24. package/dist/toggle/index.d.ts.map +1 -1
  25. package/dist/utils/cva.d.ts +4 -3
  26. package/dist/utils/cva.d.ts.map +1 -1
  27. package/dist/utils/cx.d.ts +1 -1
  28. package/dist/utils/cx.d.ts.map +1 -1
  29. package/dist/utils/useClickOutside.d.ts +1 -1
  30. package/dist/utils/useClickOutside.d.ts.map +1 -1
  31. package/dist/zen/index.d.ts +191 -0
  32. package/dist/zen/index.d.ts.map +1 -0
  33. package/package.json +87 -83
  34. package/dist/badge/index.stories.d.ts +0 -5
  35. package/dist/badge/index.stories.d.ts.map +0 -1
  36. package/dist/button/index.stories.d.ts +0 -4
  37. package/dist/button/index.stories.d.ts.map +0 -1
  38. package/dist/collapse/index.stories.d.ts +0 -4
  39. package/dist/collapse/index.stories.d.ts.map +0 -1
  40. package/dist/component/index.d.ts +0 -13
  41. package/dist/component/index.d.ts.map +0 -1
  42. package/dist/component/index.stories.d.ts +0 -25
  43. package/dist/component/index.stories.d.ts.map +0 -1
  44. package/dist/container/index.d.ts +0 -5
  45. package/dist/container/index.d.ts.map +0 -1
  46. package/dist/container/index.stories.d.ts +0 -5
  47. package/dist/container/index.stories.d.ts.map +0 -1
  48. package/dist/dropdown/index.stories.d.ts +0 -7
  49. package/dist/dropdown/index.stories.d.ts.map +0 -1
  50. package/dist/input/index.stories.d.ts +0 -4
  51. package/dist/input/index.stories.d.ts.map +0 -1
  52. package/dist/style.css +0 -1
  53. package/dist/toggle/index.stories.d.ts +0 -4
  54. package/dist/toggle/index.stories.d.ts.map +0 -1
  55. package/dist/zen.js +0 -2662
@@ -1,5 +1,4 @@
1
- import { ComponentProps } from '../component';
1
+ import { ComponentProps } from '../zen';
2
2
  export default function Input(props: InputProps): import("react/jsx-runtime").JSX.Element;
3
- export interface InputProps extends ComponentProps<'input'> {
4
- }
3
+ export type InputProps = ComponentProps<'input'>;
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/input/index.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAgB9C;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC;CAAG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/input/index.tsx"],"names":[],"mappings":"AAAA,OAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAe9C;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- declare const Popover: (props: PopoverProps) => JSX.Element;
1
+ declare const Popover: (props: PopoverProps) => import("react/jsx-runtime").JSX.Element;
3
2
  export default Popover;
4
3
  export interface PopoverProps {
5
4
  placement?: Placement;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/popover/index.tsx"],"names":[],"mappings":";AAQA,QAAA,MAAM,OAAO,UAAW,YAAY,KAAG,WAoFtC,CAAC;AACF,eAAe,OAAO,CAAC;AAEvB,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACnC;AACD,KAAK,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAC5F,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AACrD,KAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,OAAO,GACP,aAAa,GACb,WAAW,GACX,MAAM,GACN,YAAY,GACZ,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/popover/index.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,OAAO,UAAW,YAAY,4CAqFnC,CAAC;AACF,eAAe,OAAO,CAAC;AAEvB,MAAM,WAAW,YAAY;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;CACnC;AACD,KAAK,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAC5F,KAAK,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AACrD,KAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,OAAO,GACP,aAAa,GACb,WAAW,GACX,MAAM,GACN,YAAY,GACZ,UAAU,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ComponentProps } from '../component';
1
+ import { ComponentProps } from '../zen';
2
2
  export interface ToggleProps extends Omit<ComponentProps<'input'>, 'onChange'> {
3
- onChange: (e: boolean) => void;
3
+ onChange?: (e: boolean) => void;
4
4
  }
5
5
  export default function Toggle(props: ToggleProps): import("react/jsx-runtime").JSX.Element;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/toggle/index.tsx"],"names":[],"mappings":"AACA,OAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC1E,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAyBhD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/toggle/index.tsx"],"names":[],"mappings":"AACA,OAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC1E,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,WAAW,2CAsBhD"}
@@ -1,4 +1,5 @@
1
- import { ClassValue } from '../utils/cx';
1
+ import { ClassValue } from './cx';
2
+ import { FunctionComponent } from 'react';
2
3
  type ClassProp = {
3
4
  class: ClassValue;
4
5
  className?: never;
@@ -11,7 +12,7 @@ type ClassProp = {
11
12
  };
12
13
  type OmitUndefined<T> = T extends undefined ? never : T;
13
14
  type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T;
14
- export type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, 'class' | 'className'>;
15
+ export type VariantProps<Component extends FunctionComponent> = Omit<OmitUndefined<Parameters<Component>[0]>, 'class' | 'className'>;
15
16
  type ConfigSchema = Record<string, Record<string, ClassValue>>;
16
17
  type ConfigVariants<T extends ConfigSchema> = {
17
18
  [Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | null | undefined;
@@ -25,6 +26,6 @@ type Config<T> = T extends ConfigSchema ? {
25
26
  compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & ClassProp : ClassProp)[];
26
27
  } : never;
27
28
  type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
28
- export declare const cva: <T>(base?: ClassValue, config?: Config<T> | undefined) => (props?: Props<T> | undefined) => string;
29
+ export declare const cva: <T>(base?: ClassValue, config?: Config<T>) => (props?: Props<T>) => string;
29
30
  export {};
30
31
  //# sourceMappingURL=cva.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cva.d.ts","sourceRoot":"","sources":["../../packages/utils/cva.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAM,MAAM,eAAe,CAAC;AAE/C,KAAK,SAAS,GACR;IACI,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;CACrB,GACD;IACI,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,UAAU,CAAC;CACzB,GACD;IACI,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC;AACR,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACxD,KAAK,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,CAAC,CAAC;AAEnE,MAAM,MAAM,YAAY,CAAC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IAAI,IAAI,CACpE,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EACvC,OAAO,GAAG,WAAW,CACxB,CAAC;AAOF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAE/D,KAAK,cAAc,CAAC,CAAC,SAAS,YAAY,IAAI;KACzC,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAC9E,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,SAAS,YAAY,IAAI;KAC9C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS;CAC7G,CAAC;AAEF,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GACjC;IACI,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,eAAe,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,YAAY,GACpC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GACxD,SAAS,CAAC,EAAE,CAAC;CACtB,GACD,KAAK,CAAC;AAEZ,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,GAAG,aACD,UAAU,6EAoDpB,CAAC"}
1
+ {"version":3,"file":"cva.d.ts","sourceRoot":"","sources":["../../packages/utils/cva.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAM,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,KAAK,SAAS,GACR;IACI,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,CAAC;CACrB,GACD;IACI,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,EAAE,UAAU,CAAC;CACzB,GACD;IACI,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC;AACR,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACxD,KAAK,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,CAAC,CAAC;AAEnE,MAAM,MAAM,YAAY,CAAC,SAAS,SAAS,iBAAiB,IAAI,IAAI,CAChE,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EACvC,OAAO,GAAG,WAAW,CACxB,CAAC;AAOF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAE/D,KAAK,cAAc,CAAC,CAAC,SAAS,YAAY,IAAI;KACzC,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS;CAC9E,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,SAAS,YAAY,IAAI;KAC9C,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS;CAC7G,CAAC;AAEF,KAAK,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GACjC;IACI,QAAQ,CAAC,EAAE,CAAC,CAAC;IACb,eAAe,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,YAAY,GACpC,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GACxD,SAAS,CAAC,EAAE,CAAC;CACtB,GACD,KAAK,CAAC;AAEZ,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,GAAG,GACX,CAAC,SAAS,UAAU,WAAW,MAAM,CAAC,CAAC,CAAC,cAChC,KAAK,CAAC,CAAC,CAAC,WAmDhB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const cx: (...args: ClassValue[]) => string;
2
2
  export type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
3
- export type ClassDictionary = Record<string, any>;
3
+ export type ClassDictionary = Record<string, unknown>;
4
4
  export type ClassArray = ClassValue[];
5
5
  //# sourceMappingURL=cx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../packages/utils/cx.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,YAAa,UAAU,EAAE,KAAG,MAmB1C,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;AACrG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../packages/utils/cx.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,YAAa,UAAU,EAAE,KAAG,MAmB1C,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,CAAC;AACrG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { RefObject } from 'react';
2
- export default function useClickOutside(ref: RefObject<any>, handler: (outside: boolean) => void): void | (() => void);
2
+ export default function useClickOutside<TElement extends HTMLElement>(ref: RefObject<TElement>, handler: (outside: boolean) => void): () => () => void;
3
3
  //# sourceMappingURL=useClickOutside.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../packages/utils/useClickOutside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAWrH"}
1
+ {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../packages/utils/useClickOutside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,QAAQ,SAAS,WAAW,EAChE,GAAG,EAAE,SAAS,CAAC,QAAQ,CAAC,EACxB,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,oBActC"}
@@ -0,0 +1,191 @@
1
+ import { default as React } from 'react';
2
+ declare const zen: {
3
+ a: React.FunctionComponent<ComponentProps<"a">>;
4
+ abbr: React.FunctionComponent<ComponentProps<"abbr">>;
5
+ address: React.FunctionComponent<ComponentProps<"address">>;
6
+ area: React.FunctionComponent<ComponentProps<"area">>;
7
+ article: React.FunctionComponent<ComponentProps<"article">>;
8
+ aside: React.FunctionComponent<ComponentProps<"aside">>;
9
+ audio: React.FunctionComponent<ComponentProps<"audio">>;
10
+ b: React.FunctionComponent<ComponentProps<"b">>;
11
+ base: React.FunctionComponent<ComponentProps<"base">>;
12
+ bdi: React.FunctionComponent<ComponentProps<"bdi">>;
13
+ bdo: React.FunctionComponent<ComponentProps<"bdo">>;
14
+ big: React.FunctionComponent<ComponentProps<"big">>;
15
+ blockquote: React.FunctionComponent<ComponentProps<"blockquote">>;
16
+ body: React.FunctionComponent<ComponentProps<"body">>;
17
+ br: React.FunctionComponent<ComponentProps<"br">>;
18
+ button: React.FunctionComponent<ComponentProps<"button">>;
19
+ canvas: React.FunctionComponent<ComponentProps<"canvas">>;
20
+ caption: React.FunctionComponent<ComponentProps<"caption">>;
21
+ center: React.FunctionComponent<ComponentProps<"center">>;
22
+ cite: React.FunctionComponent<ComponentProps<"cite">>;
23
+ code: React.FunctionComponent<ComponentProps<"code">>;
24
+ col: React.FunctionComponent<ComponentProps<"col">>;
25
+ colgroup: React.FunctionComponent<ComponentProps<"colgroup">>;
26
+ data: React.FunctionComponent<ComponentProps<"data">>;
27
+ datalist: React.FunctionComponent<ComponentProps<"datalist">>;
28
+ dd: React.FunctionComponent<ComponentProps<"dd">>;
29
+ del: React.FunctionComponent<ComponentProps<"del">>;
30
+ details: React.FunctionComponent<ComponentProps<"details">>;
31
+ dfn: React.FunctionComponent<ComponentProps<"dfn">>;
32
+ dialog: React.FunctionComponent<ComponentProps<"dialog">>;
33
+ div: React.FunctionComponent<ComponentProps<"div">>;
34
+ dl: React.FunctionComponent<ComponentProps<"dl">>;
35
+ dt: React.FunctionComponent<ComponentProps<"dt">>;
36
+ em: React.FunctionComponent<ComponentProps<"em">>;
37
+ embed: React.FunctionComponent<ComponentProps<"embed">>;
38
+ fieldset: React.FunctionComponent<ComponentProps<"fieldset">>;
39
+ figcaption: React.FunctionComponent<ComponentProps<"figcaption">>;
40
+ figure: React.FunctionComponent<ComponentProps<"figure">>;
41
+ footer: React.FunctionComponent<ComponentProps<"footer">>;
42
+ form: React.FunctionComponent<ComponentProps<"form">>;
43
+ h1: React.FunctionComponent<ComponentProps<"h1">>;
44
+ h2: React.FunctionComponent<ComponentProps<"h2">>;
45
+ h3: React.FunctionComponent<ComponentProps<"h3">>;
46
+ h4: React.FunctionComponent<ComponentProps<"h4">>;
47
+ h5: React.FunctionComponent<ComponentProps<"h5">>;
48
+ h6: React.FunctionComponent<ComponentProps<"h6">>;
49
+ head: React.FunctionComponent<ComponentProps<"head">>;
50
+ header: React.FunctionComponent<ComponentProps<"header">>;
51
+ hgroup: React.FunctionComponent<ComponentProps<"hgroup">>;
52
+ hr: React.FunctionComponent<ComponentProps<"hr">>;
53
+ html: React.FunctionComponent<ComponentProps<"html">>;
54
+ i: React.FunctionComponent<ComponentProps<"i">>;
55
+ iframe: React.FunctionComponent<ComponentProps<"iframe">>;
56
+ img: React.FunctionComponent<ComponentProps<"img">>;
57
+ input: React.FunctionComponent<ComponentProps<"input">>;
58
+ ins: React.FunctionComponent<ComponentProps<"ins">>;
59
+ kbd: React.FunctionComponent<ComponentProps<"kbd">>;
60
+ keygen: React.FunctionComponent<ComponentProps<"keygen">>;
61
+ label: React.FunctionComponent<ComponentProps<"label">>;
62
+ legend: React.FunctionComponent<ComponentProps<"legend">>;
63
+ li: React.FunctionComponent<ComponentProps<"li">>;
64
+ link: React.FunctionComponent<ComponentProps<"link">>;
65
+ main: React.FunctionComponent<ComponentProps<"main">>;
66
+ map: React.FunctionComponent<ComponentProps<"map">>;
67
+ mark: React.FunctionComponent<ComponentProps<"mark">>;
68
+ menu: React.FunctionComponent<ComponentProps<"menu">>;
69
+ menuitem: React.FunctionComponent<ComponentProps<"menuitem">>;
70
+ meta: React.FunctionComponent<ComponentProps<"meta">>;
71
+ meter: React.FunctionComponent<ComponentProps<"meter">>;
72
+ nav: React.FunctionComponent<ComponentProps<"nav">>;
73
+ noindex: React.FunctionComponent<ComponentProps<"noindex">>;
74
+ noscript: React.FunctionComponent<ComponentProps<"noscript">>;
75
+ object: React.FunctionComponent<ComponentProps<"object">>;
76
+ ol: React.FunctionComponent<ComponentProps<"ol">>;
77
+ optgroup: React.FunctionComponent<ComponentProps<"optgroup">>;
78
+ option: React.FunctionComponent<ComponentProps<"option">>;
79
+ output: React.FunctionComponent<ComponentProps<"output">>;
80
+ p: React.FunctionComponent<ComponentProps<"p">>;
81
+ param: React.FunctionComponent<ComponentProps<"param">>;
82
+ picture: React.FunctionComponent<ComponentProps<"picture">>;
83
+ pre: React.FunctionComponent<ComponentProps<"pre">>;
84
+ progress: React.FunctionComponent<ComponentProps<"progress">>;
85
+ q: React.FunctionComponent<ComponentProps<"q">>;
86
+ rp: React.FunctionComponent<ComponentProps<"rp">>;
87
+ rt: React.FunctionComponent<ComponentProps<"rt">>;
88
+ ruby: React.FunctionComponent<ComponentProps<"ruby">>;
89
+ s: React.FunctionComponent<ComponentProps<"s">>;
90
+ samp: React.FunctionComponent<ComponentProps<"samp">>;
91
+ search: React.FunctionComponent<ComponentProps<"search">>;
92
+ slot: React.FunctionComponent<ComponentProps<"slot">>;
93
+ script: React.FunctionComponent<ComponentProps<"script">>;
94
+ section: React.FunctionComponent<ComponentProps<"section">>;
95
+ select: React.FunctionComponent<ComponentProps<"select">>;
96
+ small: React.FunctionComponent<ComponentProps<"small">>;
97
+ source: React.FunctionComponent<ComponentProps<"source">>;
98
+ span: React.FunctionComponent<ComponentProps<"span">>;
99
+ strong: React.FunctionComponent<ComponentProps<"strong">>;
100
+ style: React.FunctionComponent<ComponentProps<"style">>;
101
+ sub: React.FunctionComponent<ComponentProps<"sub">>;
102
+ summary: React.FunctionComponent<ComponentProps<"summary">>;
103
+ sup: React.FunctionComponent<ComponentProps<"sup">>;
104
+ table: React.FunctionComponent<ComponentProps<"table">>;
105
+ template: React.FunctionComponent<ComponentProps<"template">>;
106
+ tbody: React.FunctionComponent<ComponentProps<"tbody">>;
107
+ td: React.FunctionComponent<ComponentProps<"td">>;
108
+ textarea: React.FunctionComponent<ComponentProps<"textarea">>;
109
+ tfoot: React.FunctionComponent<ComponentProps<"tfoot">>;
110
+ th: React.FunctionComponent<ComponentProps<"th">>;
111
+ thead: React.FunctionComponent<ComponentProps<"thead">>;
112
+ time: React.FunctionComponent<ComponentProps<"time">>;
113
+ title: React.FunctionComponent<ComponentProps<"title">>;
114
+ tr: React.FunctionComponent<ComponentProps<"tr">>;
115
+ track: React.FunctionComponent<ComponentProps<"track">>;
116
+ u: React.FunctionComponent<ComponentProps<"u">>;
117
+ ul: React.FunctionComponent<ComponentProps<"ul">>;
118
+ var: React.FunctionComponent<ComponentProps<"var">>;
119
+ video: React.FunctionComponent<ComponentProps<"video">>;
120
+ wbr: React.FunctionComponent<ComponentProps<"wbr">>;
121
+ webview: React.FunctionComponent<ComponentProps<"webview">>;
122
+ svg: React.FunctionComponent<ComponentProps<"svg">>;
123
+ animate: React.FunctionComponent<ComponentProps<"animate">>;
124
+ animateMotion: React.FunctionComponent<ComponentProps<"animateMotion">>;
125
+ animateTransform: React.FunctionComponent<ComponentProps<"animateTransform">>;
126
+ circle: React.FunctionComponent<ComponentProps<"circle">>;
127
+ clipPath: React.FunctionComponent<ComponentProps<"clipPath">>;
128
+ defs: React.FunctionComponent<ComponentProps<"defs">>;
129
+ desc: React.FunctionComponent<ComponentProps<"desc">>;
130
+ ellipse: React.FunctionComponent<ComponentProps<"ellipse">>;
131
+ feBlend: React.FunctionComponent<ComponentProps<"feBlend">>;
132
+ feColorMatrix: React.FunctionComponent<ComponentProps<"feColorMatrix">>;
133
+ feComponentTransfer: React.FunctionComponent<ComponentProps<"feComponentTransfer">>;
134
+ feComposite: React.FunctionComponent<ComponentProps<"feComposite">>;
135
+ feConvolveMatrix: React.FunctionComponent<ComponentProps<"feConvolveMatrix">>;
136
+ feDiffuseLighting: React.FunctionComponent<ComponentProps<"feDiffuseLighting">>;
137
+ feDisplacementMap: React.FunctionComponent<ComponentProps<"feDisplacementMap">>;
138
+ feDistantLight: React.FunctionComponent<ComponentProps<"feDistantLight">>;
139
+ feDropShadow: React.FunctionComponent<ComponentProps<"feDropShadow">>;
140
+ feFlood: React.FunctionComponent<ComponentProps<"feFlood">>;
141
+ feFuncA: React.FunctionComponent<ComponentProps<"feFuncA">>;
142
+ feFuncB: React.FunctionComponent<ComponentProps<"feFuncB">>;
143
+ feFuncG: React.FunctionComponent<ComponentProps<"feFuncG">>;
144
+ feFuncR: React.FunctionComponent<ComponentProps<"feFuncR">>;
145
+ feGaussianBlur: React.FunctionComponent<ComponentProps<"feGaussianBlur">>;
146
+ feImage: React.FunctionComponent<ComponentProps<"feImage">>;
147
+ feMerge: React.FunctionComponent<ComponentProps<"feMerge">>;
148
+ feMergeNode: React.FunctionComponent<ComponentProps<"feMergeNode">>;
149
+ feMorphology: React.FunctionComponent<ComponentProps<"feMorphology">>;
150
+ feOffset: React.FunctionComponent<ComponentProps<"feOffset">>;
151
+ fePointLight: React.FunctionComponent<ComponentProps<"fePointLight">>;
152
+ feSpecularLighting: React.FunctionComponent<ComponentProps<"feSpecularLighting">>;
153
+ feSpotLight: React.FunctionComponent<ComponentProps<"feSpotLight">>;
154
+ feTile: React.FunctionComponent<ComponentProps<"feTile">>;
155
+ feTurbulence: React.FunctionComponent<ComponentProps<"feTurbulence">>;
156
+ filter: React.FunctionComponent<ComponentProps<"filter">>;
157
+ foreignObject: React.FunctionComponent<ComponentProps<"foreignObject">>;
158
+ g: React.FunctionComponent<ComponentProps<"g">>;
159
+ image: React.FunctionComponent<ComponentProps<"image">>;
160
+ line: React.FunctionComponent<ComponentProps<"line">>;
161
+ linearGradient: React.FunctionComponent<ComponentProps<"linearGradient">>;
162
+ marker: React.FunctionComponent<ComponentProps<"marker">>;
163
+ mask: React.FunctionComponent<ComponentProps<"mask">>;
164
+ metadata: React.FunctionComponent<ComponentProps<"metadata">>;
165
+ mpath: React.FunctionComponent<ComponentProps<"mpath">>;
166
+ path: React.FunctionComponent<ComponentProps<"path">>;
167
+ pattern: React.FunctionComponent<ComponentProps<"pattern">>;
168
+ polygon: React.FunctionComponent<ComponentProps<"polygon">>;
169
+ polyline: React.FunctionComponent<ComponentProps<"polyline">>;
170
+ radialGradient: React.FunctionComponent<ComponentProps<"radialGradient">>;
171
+ rect: React.FunctionComponent<ComponentProps<"rect">>;
172
+ set: React.FunctionComponent<ComponentProps<"set">>;
173
+ stop: React.FunctionComponent<ComponentProps<"stop">>;
174
+ switch: React.FunctionComponent<ComponentProps<"switch">>;
175
+ symbol: React.FunctionComponent<ComponentProps<"symbol">>;
176
+ text: React.FunctionComponent<ComponentProps<"text">>;
177
+ textPath: React.FunctionComponent<ComponentProps<"textPath">>;
178
+ tspan: React.FunctionComponent<ComponentProps<"tspan">>;
179
+ use: React.FunctionComponent<ComponentProps<"use">>;
180
+ view: React.FunctionComponent<ComponentProps<"view">>;
181
+ };
182
+ export default zen;
183
+ type TagProp<Tag extends React.ElementType> = {
184
+ tag?: Tag;
185
+ asChild?: boolean;
186
+ };
187
+ export type ComponentProps<Tag extends React.ElementType> = React.PropsWithChildren<TagProp<Tag>> & Omit<React.ComponentPropsWithRef<Tag>, keyof TagProp<Tag>> & {
188
+ visible?: boolean;
189
+ };
190
+ export type BaseType = <Tag extends React.ElementType = 'div'>(props: ComponentProps<Tag>) => React.ReactNode;
191
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/zen/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA0BpE,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAeR,CAAC;AACF,eAAe,GAAG,CAAC;AACnB,KAAK,OAAO,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC7F,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AACN,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,83 +1,87 @@
1
- {
2
- "name": "@rinzai/zen",
3
- "version": "0.0.16",
4
- "type": "module",
5
- "types": "./dist/index.d.ts",
6
- "module": "./dist/zen.js",
7
- "files": [
8
- "dist"
9
- ],
10
- "exports": {
11
- ".": {
12
- "import": "./dist/zen.js",
13
- "require": "./dist/zen.js",
14
- "types": "./dist/index.d.ts"
15
- },
16
- "./dist/style.css": {
17
- "import": "./dist/style.css",
18
- "require": "./dist/style.css"
19
- }
20
- },
21
- "scripts": {
22
- "build": "vite build",
23
- "lint": "eslint packages/**/*.{ts,tsx}",
24
- "lint:fix": "eslint --fix packages/**/*.{ts,tsx}",
25
- "format": "prettier --write packages/**/*.{ts,tsx,css} --config ./.prettierrc",
26
- "prepare": "husky install",
27
- "dev": "storybook dev -p 6006",
28
- "build-storybook": "storybook build"
29
- },
30
- "dependencies": {
31
- "@floating-ui/react-dom": "^2.0.4",
32
- "@tanstack/react-virtual": "^3.0.1",
33
- "react": "^18.2.0",
34
- "react-dom": "^18.2.0"
35
- },
36
- "devDependencies": {
37
- "@storybook/addon-essentials": "^7.6.6",
38
- "@storybook/addon-interactions": "^7.6.6",
39
- "@storybook/addon-links": "^7.6.6",
40
- "@storybook/addon-themes": "^7.6.6",
41
- "@storybook/blocks": "^7.6.6",
42
- "@storybook/react": "^7.6.6",
43
- "@storybook/react-vite": "^7.6.6",
44
- "@types/react": "^18.2.45",
45
- "@types/react-dom": "^18.2.18",
46
- "@typescript-eslint/eslint-plugin": "^6.15.0",
47
- "@typescript-eslint/parser": "^6.15.0",
48
- "@vitejs/plugin-react-swc": "^3.5.0",
49
- "autoprefixer": "^10.4.16",
50
- "eslint": "^8.56.0",
51
- "eslint-config-prettier": "^9.1.0",
52
- "eslint-plugin-prettier": "^5.1.0",
53
- "eslint-plugin-react": "^7.33.2",
54
- "eslint-plugin-simple-import-sort": "^10.0.0",
55
- "eslint-plugin-storybook": "^0.6.15",
56
- "husky": "^8.0.3",
57
- "postcss": "^8.4.32",
58
- "prettier": "^3.1.1",
59
- "prettier-plugin-tailwindcss": "^0.5.9",
60
- "storybook": "^7.6.6",
61
- "tailwindcss": "^3.4.0",
62
- "typescript": "^5.3.3",
63
- "vite": "^5.0.10",
64
- "vite-plugin-css-injected-by-js": "^3.3.1",
65
- "vite-plugin-dts": "^3.6.4",
66
- "vite-tsconfig-paths": "^4.2.2"
67
- },
68
- "husky": {
69
- "hooks": {
70
- "pre-commit": "lint-staged"
71
- }
72
- },
73
- "peerDependencies": {
74
- "react": "^18.2.0",
75
- "react-dom": "^18.2.0"
76
- },
77
- "lint-staged": {
78
- "components/**/*.{js,jsx,ts,tsx}": [
79
- "npx eslint",
80
- "npm run format"
81
- ]
82
- }
83
- }
1
+ {
2
+ "name": "@rinzai/zen",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "types": "./dist/index.d.ts",
6
+ "module": "./dist/index.js",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.js"
15
+ },
16
+ "./css": {
17
+ "import": "./dist/index.css",
18
+ "require": "./dist/index.css"
19
+ }
20
+ },
21
+ "scripts": {
22
+ "build": "vite build",
23
+ "lint": "eslint packages/**/*.{ts,tsx}",
24
+ "lint:fix": "eslint --fix packages/**/*.{ts,tsx}",
25
+ "format": "prettier --write packages/**/*.{ts,tsx,css} --config ./.prettierrc",
26
+ "prepare": "husky",
27
+ "dev": "storybook dev -p 6006",
28
+ "build-storybook": "storybook build",
29
+ "prepublishOnly": "npm run build"
30
+ },
31
+ "dependencies": {
32
+ "@floating-ui/react-dom": "^2.1.2",
33
+ "@tanstack/react-virtual": "^3.11.1",
34
+ "react": "^19.0.0",
35
+ "react-dom": "^19.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@eslint/js": "^9.16.0",
39
+ "@storybook/addon-essentials": "^8.4.7",
40
+ "@storybook/addon-interactions": "^8.4.7",
41
+ "@storybook/addon-links": "^8.4.7",
42
+ "@storybook/addon-themes": "^8.4.7",
43
+ "@storybook/blocks": "^8.1.10",
44
+ "@storybook/react": "^8.1.10",
45
+ "@storybook/react-vite": "^8.4.7",
46
+ "@types/react": "^19.0.1",
47
+ "@types/react-dom": "^19.0.2",
48
+ "@typescript-eslint/eslint-plugin": "^8.18.0",
49
+ "@typescript-eslint/parser": "^8.18.0",
50
+ "@vitejs/plugin-react": "^4.3.4",
51
+ "autoprefixer": "^10.4.20",
52
+ "babel-plugin-react-compiler": "^19.0.0-beta-37ed2a7-20241206",
53
+ "eslint": "^9.16.0",
54
+ "eslint-config-prettier": "^9.1.0",
55
+ "eslint-plugin-prettier": "^5.2.1",
56
+ "eslint-plugin-react": "^7.37.2",
57
+ "eslint-plugin-simple-import-sort": "^12.1.1",
58
+ "eslint-plugin-storybook": "^0.11.1",
59
+ "globals": "^15.13.0",
60
+ "husky": "^9.1.7",
61
+ "postcss": "^8.4.49",
62
+ "prettier": "^3.4.2",
63
+ "prettier-plugin-tailwindcss": "^0.6.9",
64
+ "storybook": "^8.4.7",
65
+ "tailwindcss": "^3.4.16",
66
+ "typescript": "^5.7.2",
67
+ "typescript-eslint": "^8.18.0",
68
+ "vite": "^6",
69
+ "vite-plugin-dts": "^4",
70
+ "vite-tsconfig-paths": "^5"
71
+ },
72
+ "husky": {
73
+ "hooks": {
74
+ "pre-commit": "lint-staged"
75
+ }
76
+ },
77
+ "peerDependencies": {
78
+ "react": "^19.0.0",
79
+ "react-dom": "^19.0.0"
80
+ },
81
+ "lint-staged": {
82
+ "components/**/*.{js,jsx,ts,tsx}": [
83
+ "npx eslint",
84
+ "npm run format"
85
+ ]
86
+ }
87
+ }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("./index").BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
- export default _default;
4
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("./index").BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/badge/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAI1B,wBAIwB;AAKxB,eAAO,MAAM,OAAO,gLAAoB,CAAC"}
@@ -1,4 +0,0 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ButtonProps>;
2
- export default _default;
3
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ButtonProps>;
4
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/button/index.stories.tsx"],"names":[],"mappings":";AAGA,wBAGyB;AAGzB,eAAO,MAAM,OAAO,8HAAoB,CAAC"}
@@ -1,4 +0,0 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").CollapseProps<unknown>>;
2
- export default _default;
3
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").CollapseProps<unknown>>;
4
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/collapse/index.stories.tsx"],"names":[],"mappings":";AAOA,wBAI2B;AAkB3B,eAAO,MAAM,OAAO,yIAAoB,CAAC"}
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Component: BaseType;
3
- export default Component;
4
- type TagProp<Tag extends React.ElementType> = {
5
- tag?: Tag;
6
- asChild?: boolean;
7
- };
8
- export type ComponentProps<Tag extends React.ElementType> = React.PropsWithChildren<TagProp<Tag>> & Omit<React.ComponentPropsWithRef<Tag>, keyof TagProp<Tag>> & {
9
- visible?: boolean;
10
- };
11
- export type ComponentRef<Tag extends React.ElementType> = React.ComponentPropsWithRef<Tag>['ref'];
12
- export type BaseType = <Tag extends React.ElementType = 'div'>(props: ComponentProps<Tag>, ref: ComponentRef<Tag>) => React.ReactNode;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/component/index.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,SAAS,EAAE,QAuBhB,CAAC;AACF,eAAe,SAAS,CAAC;AAEzB,KAAK,OAAO,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC7F,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AACN,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AAClG,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACzD,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,EAC1B,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,KACrB,KAAK,CAAC,SAAS,CAAC"}
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
3
- tag?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
4
- asChild?: boolean | undefined;
5
- } & {
6
- children?: React.ReactNode;
7
- } & Omit<any, keyof {
8
- tag?: Tag | undefined;
9
- asChild?: boolean | undefined;
10
- }> & {
11
- visible?: boolean | undefined;
12
- }>;
13
- export default _default;
14
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
15
- tag?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
16
- asChild?: boolean | undefined;
17
- } & {
18
- children?: React.ReactNode;
19
- } & Omit<any, keyof {
20
- tag?: Tag | undefined;
21
- asChild?: boolean | undefined;
22
- }> & {
23
- visible?: boolean | undefined;
24
- }>;
25
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/component/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;AAI1B,wBAI4B;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;EAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { ComponentProps } from '../component';
2
- import React from 'react';
3
- declare const Container: React.ForwardRefExoticComponent<Omit<ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export default Container;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/container/index.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,QAAA,MAAM,SAAS,2GAEb,CAAC;AACH,eAAe,SAAS,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("../component").ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
- export default _default;
4
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("../component").ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/container/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAI1B,wBAI4B;AAK5B,eAAO,MAAM,OAAO,gMAAoB,CAAC"}
@@ -1,7 +0,0 @@
1
- import { StoryFn } from '@storybook/react';
2
- import Dropdown from './index';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, (import("./index").MultiSelectProps | import("./index").SingleSelectProps) & (import("./index").MutableDropdownProps | import("./index").ImmutableDropdownProps) & import("./index").DropdownProps & Omit<import("../component").ComponentProps<"input">, "onChange">>;
4
- export default _default;
5
- export declare const SingleSelect: StoryFn<typeof Dropdown>;
6
- export declare const MultiSelect: StoryFn<typeof Dropdown>;
7
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/dropdown/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,QAAQ,MAAM,SAAS,CAAC;;AAE/B,wBAG2B;AAE3B,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,OAAO,QAAQ,CAKjD,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,OAAO,QAAQ,CAgBhD,CAAC"}
@@ -1,4 +0,0 @@
1
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").InputProps>;
2
- export default _default;
3
- export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").InputProps>;
4
- //# sourceMappingURL=index.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/input/index.stories.tsx"],"names":[],"mappings":";AAKA,wBAIwB;AAKxB,eAAO,MAAM,OAAO,6HAAoB,CAAC"}