@mindlogic-ai/logician-ui 4.0.0-alpha.25 → 4.0.0-alpha.26

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 (78) hide show
  1. package/dist/components/Badge/Badge.d.ts +1 -1
  2. package/dist/components/Badge/Badge.d.ts.map +1 -1
  3. package/dist/components/Badge/index.d.ts +1 -1
  4. package/dist/components/Badge/index.d.ts.map +1 -1
  5. package/dist/components/Button/Button.d.ts +1 -1
  6. package/dist/components/Button/Button.d.ts.map +1 -1
  7. package/dist/components/Button/index.d.ts +1 -1
  8. package/dist/components/Button/index.d.ts.map +1 -1
  9. package/dist/components/Card/Card.d.ts +1 -1
  10. package/dist/components/Card/Card.d.ts.map +1 -1
  11. package/dist/components/Card/index.d.ts +1 -1
  12. package/dist/components/Card/index.d.ts.map +1 -1
  13. package/dist/components/Chip/Chip.d.ts +1 -1
  14. package/dist/components/Chip/Chip.d.ts.map +1 -1
  15. package/dist/components/Chip/index.d.ts +1 -1
  16. package/dist/components/Chip/index.d.ts.map +1 -1
  17. package/dist/components/Container/Container.d.ts +1 -1
  18. package/dist/components/Container/Container.d.ts.map +1 -1
  19. package/dist/components/Container/index.d.ts +1 -0
  20. package/dist/components/Container/index.d.ts.map +1 -1
  21. package/dist/components/ExpandableText/ExpandableText.d.ts +8 -8
  22. package/dist/components/IconButton/IconButton.d.ts +1 -1
  23. package/dist/components/IconButton/IconButton.d.ts.map +1 -1
  24. package/dist/components/IconButton/index.d.ts +1 -1
  25. package/dist/components/IconButton/index.d.ts.map +1 -1
  26. package/dist/components/Menu/Menu.d.ts +1 -1
  27. package/dist/components/Menu/MenuItem.d.ts +1 -1
  28. package/dist/components/Menu/MenuItem.d.ts.map +1 -1
  29. package/dist/components/SeeMoreButton/SeeMoreButton.d.ts +1 -1
  30. package/dist/components/SeeMoreButton/SeeMoreButton.d.ts.map +1 -1
  31. package/dist/components/Tag/Tag.d.ts +1 -1
  32. package/dist/components/Tag/Tag.d.ts.map +1 -1
  33. package/dist/components/Tag/index.d.ts +1 -1
  34. package/dist/components/Tag/index.d.ts.map +1 -1
  35. package/dist/components/Typography/Caption.d.ts +1 -1
  36. package/dist/components/Typography/Caption.d.ts.map +1 -1
  37. package/dist/components/Typography/H1.d.ts +1 -1
  38. package/dist/components/Typography/H1.d.ts.map +1 -1
  39. package/dist/components/Typography/H2.d.ts +1 -1
  40. package/dist/components/Typography/H2.d.ts.map +1 -1
  41. package/dist/components/Typography/H3.d.ts +1 -1
  42. package/dist/components/Typography/H3.d.ts.map +1 -1
  43. package/dist/components/Typography/H4.d.ts +1 -1
  44. package/dist/components/Typography/H4.d.ts.map +1 -1
  45. package/dist/components/Typography/H5.d.ts +1 -1
  46. package/dist/components/Typography/H5.d.ts.map +1 -1
  47. package/dist/components/Typography/Link.d.ts +1 -1
  48. package/dist/components/Typography/Link.d.ts.map +1 -1
  49. package/dist/components/Typography/Overline.d.ts +1 -1
  50. package/dist/components/Typography/Overline.d.ts.map +1 -1
  51. package/dist/components/Typography/Subtext.d.ts +1 -1
  52. package/dist/components/Typography/Subtext.d.ts.map +1 -1
  53. package/dist/components/Typography/Subtitle.d.ts +1 -1
  54. package/dist/components/Typography/Subtitle.d.ts.map +1 -1
  55. package/dist/components/Typography/Text.d.ts +1 -1
  56. package/dist/components/Typography/Text.d.ts.map +1 -1
  57. package/dist/index.d.ts +3 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +2 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.mjs +1 -0
  62. package/dist/index.mjs.map +1 -1
  63. package/dist/types/polymorphic.d.ts +17 -0
  64. package/dist/types/polymorphic.d.ts.map +1 -1
  65. package/dist/types/polymorphic.js +17 -0
  66. package/dist/types/polymorphic.js.map +1 -1
  67. package/dist/types/polymorphic.mjs +17 -0
  68. package/dist/types/polymorphic.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/src/components/Badge/index.ts +1 -1
  71. package/src/components/Button/index.tsx +1 -0
  72. package/src/components/Card/index.ts +1 -1
  73. package/src/components/Chip/index.ts +6 -1
  74. package/src/components/Container/index.ts +1 -0
  75. package/src/components/IconButton/index.tsx +1 -0
  76. package/src/components/Tag/index.ts +6 -1
  77. package/src/index.ts +26 -1
  78. package/src/types/polymorphic.ts +17 -0
@@ -1,3 +1,3 @@
1
1
  import { BadgeOwnProps } from './Badge.types';
2
- export declare const Badge: import("../../types/polymorphic").PolymorphicComponent<BadgeOwnProps, "span">;
2
+ export declare const Badge: import("../..").PolymorphicComponent<BadgeOwnProps, "span">;
3
3
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoC9C,eAAO,MAAM,KAAK,+EAAgD,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoC9C,eAAO,MAAM,KAAK,6DAAgD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { Badge } from './Badge';
2
2
  export { baseStyles as badgeStyles, variantStyles as badgeVariantStyles, } from './Badge.styles';
3
- export type { BadgeProps, BadgeVariant } from './Badge.types';
3
+ export type { BadgeOwnProps, BadgeProps, BadgeVariant } from './Badge.types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACL,UAAU,IAAI,WAAW,EACzB,aAAa,IAAI,kBAAkB,GACpC,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACL,UAAU,IAAI,WAAW,EACzB,aAAa,IAAI,kBAAkB,GACpC,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ButtonOwnProps } from './Button.types';
2
- export declare const Button: import("../../types/polymorphic").PolymorphicComponent<ButtonOwnProps, "button">;
2
+ export declare const Button: import("../..").PolymorphicComponent<ButtonOwnProps, "button">;
3
3
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAkE7D,eAAO,MAAM,MAAM,kFAA0C,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAe,MAAM,gBAAgB,CAAC;AAkE7D,eAAO,MAAM,MAAM,gEAA0C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { Button } from './Button';
2
2
  export { buttonColorPalettes, buttonColorPaletteStyles, buttonVariants, getButtonStyles, } from './Button.styles';
3
- export type { ButtonColorPalette, ButtonProps, ButtonVariant, } from './Button.types';
3
+ export type { ButtonColorPalette, ButtonOwnProps, ButtonProps, ButtonVariant, } from './Button.types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,aAAa,GACd,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,gBAAgB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { CardOwnProps } from './Card.types';
2
- export declare const Card: import("../../types/polymorphic").PolymorphicComponent<CardOwnProps, "div">;
2
+ export declare const Card: import("../..").PolymorphicComponent<CardOwnProps, "div">;
3
3
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAsC5C,eAAO,MAAM,IAAI,6EAA6C,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAsC5C,eAAO,MAAM,IAAI,2DAA6C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { Card } from './Card';
2
- export type { CardProps } from './Card.types';
2
+ export type { CardOwnProps, CardProps, CardVariant } from './Card.types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { ChipOwnProps } from './Chip.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Chip: import("../../types/polymorphic").PolymorphicComponent<ChipOwnProps, "span">;
3
+ export declare const Chip: import("../..").PolymorphicComponent<ChipOwnProps, "span">;
4
4
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAqC5C,yEAAyE;AACzE,eAAO,MAAM,IAAI,8EAA8C,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAqC5C,yEAAyE;AACzE,eAAO,MAAM,IAAI,4DAA8C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { Chip } from './Chip';
2
2
  export { colorSchemes, colorSchemeStyles, getChipStyles, variants, } from './Chip.styles';
3
- export type { ChipColorScheme, ChipProps, ChipVariant } from './Chip.types';
3
+ export type { ChipColorScheme, ChipOwnProps, ChipProps, ChipVariant, } from './Chip.types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,SAAS,EACT,WAAW,GACZ,MAAM,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { ContainerOwnProps } from './Container.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Container: import("../../types/polymorphic").PolymorphicComponent<ContainerOwnProps, "div">;
3
+ export declare const Container: import("../..").PolymorphicComponent<ContainerOwnProps, "div">;
4
4
  //# sourceMappingURL=Container.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAsBtD,yEAAyE;AACzE,eAAO,MAAM,SAAS,kFAAuD,CAAC"}
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/components/Container/Container.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAsBtD,yEAAyE;AACzE,eAAO,MAAM,SAAS,gEAAuD,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { Container } from './Container';
2
+ export type { ContainerOwnProps, ContainerProps } from './Container.types';
2
3
  export * from './useContainerSize';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,cAAc,oBAAoB,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { TypographyProps } from '@/components/Typography';
2
2
  declare const TEXT_COMPONENTS: {
3
- readonly Text: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
4
- readonly Subtitle: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
5
- readonly Subtext: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
6
- readonly H1: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h1">;
7
- readonly H2: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h2">;
8
- readonly H3: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h3">;
9
- readonly H4: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h4">;
10
- readonly H5: import("../../types/polymorphic").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h5">;
3
+ readonly Text: import("../..").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
4
+ readonly Subtitle: import("../..").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
5
+ readonly Subtext: import("../..").PolymorphicComponent<import("@/components/Typography").TypographyOwnProps, "p">;
6
+ readonly H1: import("../..").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h1">;
7
+ readonly H2: import("../..").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h2">;
8
+ readonly H3: import("../..").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h3">;
9
+ readonly H4: import("../..").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h4">;
10
+ readonly H5: import("../..").PolymorphicComponent<import("@/components/Typography").HeadingOwnProps, "h5">;
11
11
  };
12
12
  export type TextComponentType = keyof typeof TEXT_COMPONENTS;
13
13
  export type ExpandableTextProps = {
@@ -1,3 +1,3 @@
1
1
  import { IconButtonOwnProps } from './IconButton.types';
2
- export declare const IconButton: import("../../types/polymorphic").PolymorphicComponent<IconButtonOwnProps, "button">;
2
+ export declare const IconButton: import("../..").PolymorphicComponent<IconButtonOwnProps, "button">;
3
3
  //# sourceMappingURL=IconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,oBAAoB,CAAC;AA6CzE,eAAO,MAAM,UAAU,sFAAkD,CAAC"}
1
+ {"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAmB,MAAM,oBAAoB,CAAC;AA6CzE,eAAO,MAAM,UAAU,oEAAkD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { IconButton } from './IconButton';
2
2
  export { getIconButtonStyles, iconButtonColorPalettes, iconButtonColorPaletteStyles, iconButtonVariants, } from './IconButton.styles';
3
- export type { IconButtonColorPalette, IconButtonProps, IconButtonVariant, } from './IconButton.types';
3
+ export type { IconButtonColorPalette, IconButtonOwnProps, IconButtonProps, IconButtonVariant, } from './IconButton.types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,sBAAsB,EACtB,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
@@ -10,7 +10,7 @@ export declare const Menu: {
10
10
  List: import("react").ForwardRefExoticComponent<ChakraMenu.ContentProps & {
11
11
  portalled?: boolean;
12
12
  } & import("react").RefAttributes<HTMLDivElement>>;
13
- Item: import("../../types/polymorphic").PolymorphicComponent<import("./MenuItem.types").MenuItemOwnProps, "div">;
13
+ Item: import("../..").PolymorphicComponent<import("./MenuItem.types").MenuItemOwnProps, "div">;
14
14
  ItemGroup: import("react").ForwardRefExoticComponent<ChakraMenu.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>>;
15
15
  ItemGroupLabel: import("react").ForwardRefExoticComponent<ChakraMenu.ItemGroupLabelProps & import("react").RefAttributes<HTMLDivElement>>;
16
16
  ItemCommand: import("react").ForwardRefExoticComponent<ChakraMenu.CommandProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,3 +1,3 @@
1
1
  import { MenuItemOwnProps } from './MenuItem.types';
2
- export declare const MenuItem: import("../../types/polymorphic").PolymorphicComponent<MenuItemOwnProps, "div">;
2
+ export declare const MenuItem: import("../..").PolymorphicComponent<MenuItemOwnProps, "div">;
3
3
  //# sourceMappingURL=MenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAe,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA0CjE,eAAO,MAAM,QAAQ,iFAAqD,CAAC"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAe,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA0CjE,eAAO,MAAM,QAAQ,+DAAqD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { SeeMoreButtonOwnProps } from './SeeMoreButton.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const SeeMoreButton: import("../../types/polymorphic").PolymorphicComponent<SeeMoreButtonOwnProps, "button">;
3
+ export declare const SeeMoreButton: import("../..").PolymorphicComponent<SeeMoreButtonOwnProps, "button">;
4
4
  //# sourceMappingURL=SeeMoreButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SeeMoreButton.d.ts","sourceRoot":"","sources":["../../../src/components/SeeMoreButton/SeeMoreButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AA2B9D,yEAAyE;AACzE,eAAO,MAAM,aAAa,yFAC6B,CAAC"}
1
+ {"version":3,"file":"SeeMoreButton.d.ts","sourceRoot":"","sources":["../../../src/components/SeeMoreButton/SeeMoreButton.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AA2B9D,yEAAyE;AACzE,eAAO,MAAM,aAAa,uEAC6B,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TagOwnProps } from './Tag.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Tag: import("../../types/polymorphic").PolymorphicComponent<TagOwnProps, "span">;
3
+ export declare const Tag: import("../..").PolymorphicComponent<TagOwnProps, "span">;
4
4
  //# sourceMappingURL=Tag.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAoD1C,yEAAyE;AACzE,eAAO,MAAM,GAAG,6EAA4C,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAoD1C,yEAAyE;AACzE,eAAO,MAAM,GAAG,2DAA4C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Icon } from '@chakra-ui/react';
2
2
  export { Tag } from './Tag';
3
3
  export { getTagStyles, tagColorPalettes, tagColorPaletteStyles, tagVariants, } from './Tag.styles';
4
- export type { TagColorPalette, TagProps, TagVariant } from './Tag.types';
4
+ export type { TagColorPalette, TagOwnProps, TagProps, TagVariant, } from './Tag.types';
5
5
  export * from './TagCloseButton';
6
6
  export * from './TagLabel';
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzE,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAE3B;;GAEG;AACH,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,CAAC;AAE/B;;GAEG;AACH,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,eAAe,EACf,WAAW,EACX,QAAQ,EACR,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAE3B;;GAEG;AACH,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,CAAC;AAE/B;;GAEG;AACH,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TypographyOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Caption: import("../../types/polymorphic").PolymorphicComponent<TypographyOwnProps, "p">;
3
+ export declare const Caption: import("../..").PolymorphicComponent<TypographyOwnProps, "p">;
4
4
  //# sourceMappingURL=Caption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Caption.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Caption.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAmCxD,yEAAyE;AACzE,eAAO,MAAM,OAAO,iFAAoD,CAAC"}
1
+ {"version":3,"file":"Caption.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Caption.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAmCxD,yEAAyE;AACzE,eAAO,MAAM,OAAO,+DAAoD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HeadingOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const H1: import("../../types/polymorphic").PolymorphicComponent<HeadingOwnProps, "h1">;
3
+ export declare const H1: import("../..").PolymorphicComponent<HeadingOwnProps, "h1">;
4
4
  //# sourceMappingURL=H1.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H1.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,+EAA6C,CAAC"}
1
+ {"version":3,"file":"H1.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H1.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HeadingOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const H2: import("../../types/polymorphic").PolymorphicComponent<HeadingOwnProps, "h2">;
3
+ export declare const H2: import("../..").PolymorphicComponent<HeadingOwnProps, "h2">;
4
4
  //# sourceMappingURL=H2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H2.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,+EAA6C,CAAC"}
1
+ {"version":3,"file":"H2.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H2.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HeadingOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const H3: import("../../types/polymorphic").PolymorphicComponent<HeadingOwnProps, "h3">;
3
+ export declare const H3: import("../..").PolymorphicComponent<HeadingOwnProps, "h3">;
4
4
  //# sourceMappingURL=H3.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H3.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,+EAA6C,CAAC"}
1
+ {"version":3,"file":"H3.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H3.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HeadingOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const H4: import("../../types/polymorphic").PolymorphicComponent<HeadingOwnProps, "h4">;
3
+ export declare const H4: import("../..").PolymorphicComponent<HeadingOwnProps, "h4">;
4
4
  //# sourceMappingURL=H4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H4.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,+EAA6C,CAAC"}
1
+ {"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H4.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { HeadingOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const H5: import("../../types/polymorphic").PolymorphicComponent<HeadingOwnProps, "h5">;
3
+ export declare const H5: import("../..").PolymorphicComponent<HeadingOwnProps, "h5">;
4
4
  //# sourceMappingURL=H5.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H5.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,+EAA6C,CAAC"}
1
+ {"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H5.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAoBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
@@ -38,5 +38,5 @@ export declare const LINK_RAMP: {
38
38
  };
39
39
  };
40
40
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
41
- export declare const Link: import("../../types/polymorphic").PolymorphicComponent<LinkOwnProps, "a">;
41
+ export declare const Link: import("../..").PolymorphicComponent<LinkOwnProps, "a">;
42
42
  //# sourceMappingURL=Link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,WAAW,GAAG,GAAG,IAC5D,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAKZ,CAAC;AA8DX,yEAAyE;AACzE,eAAO,MAAM,IAAI,2EAA2C,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,WAAW,GAAG,GAAG,IAC5D,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAKZ,CAAC;AA8DX,yEAAyE;AACzE,eAAO,MAAM,IAAI,yDAA2C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TypographyOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Overline: import("../../types/polymorphic").PolymorphicComponent<TypographyOwnProps, "p">;
3
+ export declare const Overline: import("../..").PolymorphicComponent<TypographyOwnProps, "p">;
4
4
  //# sourceMappingURL=Overline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Overline.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Overline.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAiCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,iFAAqD,CAAC"}
1
+ {"version":3,"file":"Overline.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Overline.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAiCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,+DAAqD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TypographyOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Subtext: import("../../types/polymorphic").PolymorphicComponent<TypographyOwnProps, "p">;
3
+ export declare const Subtext: import("../..").PolymorphicComponent<TypographyOwnProps, "p">;
4
4
  //# sourceMappingURL=Subtext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subtext.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAqBxD,yEAAyE;AACzE,eAAO,MAAM,OAAO,iFAAoD,CAAC"}
1
+ {"version":3,"file":"Subtext.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAqBxD,yEAAyE;AACzE,eAAO,MAAM,OAAO,+DAAoD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TypographyOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Subtitle: import("../../types/polymorphic").PolymorphicComponent<TypographyOwnProps, "p">;
3
+ export declare const Subtitle: import("../..").PolymorphicComponent<TypographyOwnProps, "p">;
4
4
  //# sourceMappingURL=Subtitle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subtitle.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtitle.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,iFAAqD,CAAC"}
1
+ {"version":3,"file":"Subtitle.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtitle.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,+DAAqD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TypographyOwnProps } from './Typography.types';
2
2
  /** Type-level polymorphism over the same runtime — see `polymorphic`. */
3
- export declare const Text: import("../../types/polymorphic").PolymorphicComponent<TypographyOwnProps, "p">;
3
+ export declare const Text: import("../..").PolymorphicComponent<TypographyOwnProps, "p">;
4
4
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAwBxD,yEAAyE;AACzE,eAAO,MAAM,IAAI,iFAAiD,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAwBxD,yEAAyE;AACzE,eAAO,MAAM,IAAI,+DAAiD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -63,10 +63,12 @@ export * from './components/Tooltip';
63
63
  export * from './components/Tree';
64
64
  export * from './components/Workflow';
65
65
  export { Caption, H1, H2, H3, H4, H5, Link, LINK_RAMP, Overline, Subtext, Subtitle, Text, } from './components/Typography';
66
+ export type { CaptionProps, H1Props, H2Props, H3Props, H4Props, H5Props, HeadingOwnProps, HeadingProps, OverlineProps, SubtextProps, SubtitleProps, TextProps, TypographyOwnProps, TypographyProps, } from './components/Typography';
66
67
  export { useHasHover } from './hooks/useHasHover';
67
68
  export type { LanguageContextValue } from './hooks/useLanguage';
68
69
  export { LanguageContext, useLanguage } from './hooks/useLanguage';
69
70
  export { logicianConfig, system, theme } from './theme';
70
71
  export { colors, type SemanticColorToken, semanticTokens, } from './theme/colors';
71
- export type { PolymorphicProps, PolymorphicRef } from './types/polymorphic';
72
+ export type { PolymorphicComponent, PolymorphicProps, PolymorphicRef, } from './types/polymorphic';
73
+ export { polymorphic } from './types/polymorphic';
72
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/dist/index.js CHANGED
@@ -174,6 +174,7 @@ var useHasHover = require('./hooks/useHasHover.js');
174
174
  var useLanguage = require('./hooks/useLanguage.js');
175
175
  var index = require('./theme/index.js');
176
176
  var colors = require('./theme/colors.js');
177
+ var polymorphic = require('./types/polymorphic.js');
177
178
 
178
179
 
179
180
 
@@ -410,4 +411,5 @@ exports.system = index.system;
410
411
  exports.theme = index.theme;
411
412
  exports.colors = colors.colors;
412
413
  exports.semanticTokens = colors.semanticTokens;
414
+ exports.polymorphic = polymorphic.polymorphic;
413
415
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.mjs CHANGED
@@ -172,4 +172,5 @@ export { useHasHover } from './hooks/useHasHover.mjs';
172
172
  export { LanguageContext, useLanguage } from './hooks/useLanguage.mjs';
173
173
  export { logicianConfig, system, theme } from './theme/index.mjs';
174
174
  export { colors, semanticTokens } from './theme/colors.mjs';
175
+ export { polymorphic } from './types/polymorphic.mjs';
175
176
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -79,6 +79,23 @@ export type PolymorphicComponent<TOwn, TDefault extends ElementType> = (<TElemen
79
79
  * `displayName` stays on the implementation, where `react/display-name` can
80
80
  * see it — the lint rule is the thing that stops a component shipping without
81
81
  * one, and it cannot follow a name through this call.
82
+ *
83
+ * ## Consumers wrapping these components
84
+ *
85
+ * Call this the same way the components above do — a wrapper that pins the
86
+ * element back to its default undoes the polymorphism one layer up:
87
+ *
88
+ * ```ts
89
+ * export const ClickableCard = polymorphic<ClickableCardOwnProps, 'div'>(ClickableCardImpl);
90
+ * ```
91
+ *
92
+ * One thing to know: this is a runtime export, so a test that mocks
93
+ * `@mindlogic-ai/logician-ui` wholesale has to include it or the wrapper's
94
+ * module throws on import. The mock is `<T,>(Impl: T) => Impl` — this function
95
+ * is a type-level identity, so that IS the implementation. Casting against
96
+ * `PolymorphicComponent` instead works and needs no mock, but it costs the call
97
+ * site an `as unknown as` double cast, which is the kind of escape hatch a
98
+ * wrapper should not have to write.
82
99
  */
83
100
  export declare function polymorphic<TOwn, TDefault extends ElementType = 'button'>(Impl: unknown): PolymorphicComponent<TOwn, TDefault>;
84
101
  //# sourceMappingURL=polymorphic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../src/types/polymorphic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACX,YAAY,EACb,MAAM,OAAO,CAAC;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,gBAAgB,CAAC,QAAQ,SAAS,WAAW,EAAE,IAAI,IAAI,IAAI,GAAG;IACxE,2EAA2E;IAC3E,EAAE,CAAC,EAAE,QAAQ,CAAC;CACf,GAAG,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,WAAW,IACrD,qBAAqB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,IAAI,EAAE,QAAQ,SAAS,WAAW,IAAI,CAAC,CACtE,QAAQ,SAAS,WAAW,GAAG,QAAQ,EAEvC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAA;CAAE,KACzE,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,SAAS,WAAW,GAAG,QAAQ,EACvE,IAAI,EAAE,OAAO,GACZ,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAEtC"}
1
+ {"version":3,"file":"polymorphic.d.ts","sourceRoot":"","sources":["../../src/types/polymorphic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACX,YAAY,EACb,MAAM,OAAO,CAAC;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,gBAAgB,CAAC,QAAQ,SAAS,WAAW,EAAE,IAAI,IAAI,IAAI,GAAG;IACxE,2EAA2E;IAC3E,EAAE,CAAC,EAAE,QAAQ,CAAC;CACf,GAAG,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,WAAW,IACrD,qBAAqB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,IAAI,EAAE,QAAQ,SAAS,WAAW,IAAI,CAAC,CACtE,QAAQ,SAAS,WAAW,GAAG,QAAQ,EAEvC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAA;CAAE,KACzE,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,SAAS,WAAW,GAAG,QAAQ,EACvE,IAAI,EAAE,OAAO,GACZ,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAEtC"}
@@ -31,6 +31,23 @@
31
31
  * `displayName` stays on the implementation, where `react/display-name` can
32
32
  * see it — the lint rule is the thing that stops a component shipping without
33
33
  * one, and it cannot follow a name through this call.
34
+ *
35
+ * ## Consumers wrapping these components
36
+ *
37
+ * Call this the same way the components above do — a wrapper that pins the
38
+ * element back to its default undoes the polymorphism one layer up:
39
+ *
40
+ * ```ts
41
+ * export const ClickableCard = polymorphic<ClickableCardOwnProps, 'div'>(ClickableCardImpl);
42
+ * ```
43
+ *
44
+ * One thing to know: this is a runtime export, so a test that mocks
45
+ * `@mindlogic-ai/logician-ui` wholesale has to include it or the wrapper's
46
+ * module throws on import. The mock is `<T,>(Impl: T) => Impl` — this function
47
+ * is a type-level identity, so that IS the implementation. Casting against
48
+ * `PolymorphicComponent` instead works and needs no mock, but it costs the call
49
+ * site an `as unknown as` double cast, which is the kind of escape hatch a
50
+ * wrapper should not have to write.
34
51
  */
35
52
  function polymorphic(Impl) {
36
53
  return Impl;
@@ -1 +1 @@
1
- {"version":3,"file":"polymorphic.js","sources":["../../src/types/polymorphic.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AA6DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACG,SAAU,WAAW,CACzB,IAAa,EAAA;AAEb,IAAA,OAAO,IAA4C;AACrD;;;;"}
1
+ {"version":3,"file":"polymorphic.js","sources":["../../src/types/polymorphic.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AA6DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;AACG,SAAU,WAAW,CACzB,IAAa,EAAA;AAEb,IAAA,OAAO,IAA4C;AACrD;;;;"}
@@ -29,6 +29,23 @@
29
29
  * `displayName` stays on the implementation, where `react/display-name` can
30
30
  * see it — the lint rule is the thing that stops a component shipping without
31
31
  * one, and it cannot follow a name through this call.
32
+ *
33
+ * ## Consumers wrapping these components
34
+ *
35
+ * Call this the same way the components above do — a wrapper that pins the
36
+ * element back to its default undoes the polymorphism one layer up:
37
+ *
38
+ * ```ts
39
+ * export const ClickableCard = polymorphic<ClickableCardOwnProps, 'div'>(ClickableCardImpl);
40
+ * ```
41
+ *
42
+ * One thing to know: this is a runtime export, so a test that mocks
43
+ * `@mindlogic-ai/logician-ui` wholesale has to include it or the wrapper's
44
+ * module throws on import. The mock is `<T,>(Impl: T) => Impl` — this function
45
+ * is a type-level identity, so that IS the implementation. Casting against
46
+ * `PolymorphicComponent` instead works and needs no mock, but it costs the call
47
+ * site an `as unknown as` double cast, which is the kind of escape hatch a
48
+ * wrapper should not have to write.
32
49
  */
33
50
  function polymorphic(Impl) {
34
51
  return Impl;
@@ -1 +1 @@
1
- {"version":3,"file":"polymorphic.mjs","sources":["../../src/types/polymorphic.ts"],"sourcesContent":[null],"names":[],"mappings":";AA6DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACG,SAAU,WAAW,CACzB,IAAa,EAAA;AAEb,IAAA,OAAO,IAA4C;AACrD;;;;"}
1
+ {"version":3,"file":"polymorphic.mjs","sources":["../../src/types/polymorphic.ts"],"sourcesContent":[null],"names":[],"mappings":";AA6DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;AACG,SAAU,WAAW,CACzB,IAAa,EAAA;AAEb,IAAA,OAAO,IAA4C;AACrD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindlogic-ai/logician-ui",
3
- "version": "4.0.0-alpha.25",
3
+ "version": "4.0.0-alpha.26",
4
4
  "description": "A comprehensive React design system built on Chakra UI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3,4 +3,4 @@ export {
3
3
  baseStyles as badgeStyles,
4
4
  variantStyles as badgeVariantStyles,
5
5
  } from './Badge.styles';
6
- export type { BadgeProps, BadgeVariant } from './Badge.types';
6
+ export type { BadgeOwnProps, BadgeProps, BadgeVariant } from './Badge.types';
@@ -7,6 +7,7 @@ export {
7
7
  } from './Button.styles';
8
8
  export type {
9
9
  ButtonColorPalette,
10
+ ButtonOwnProps,
10
11
  ButtonProps,
11
12
  ButtonVariant,
12
13
  } from './Button.types';
@@ -1,2 +1,2 @@
1
1
  export { Card } from './Card';
2
- export type { CardProps } from './Card.types';
2
+ export type { CardOwnProps, CardProps, CardVariant } from './Card.types';
@@ -5,4 +5,9 @@ export {
5
5
  getChipStyles,
6
6
  variants,
7
7
  } from './Chip.styles';
8
- export type { ChipColorScheme, ChipProps, ChipVariant } from './Chip.types';
8
+ export type {
9
+ ChipColorScheme,
10
+ ChipOwnProps,
11
+ ChipProps,
12
+ ChipVariant,
13
+ } from './Chip.types';
@@ -1,2 +1,3 @@
1
1
  export { Container } from './Container';
2
+ export type { ContainerOwnProps, ContainerProps } from './Container.types';
2
3
  export * from './useContainerSize';
@@ -7,6 +7,7 @@ export {
7
7
  } from './IconButton.styles';
8
8
  export type {
9
9
  IconButtonColorPalette,
10
+ IconButtonOwnProps,
10
11
  IconButtonProps,
11
12
  IconButtonVariant,
12
13
  } from './IconButton.types';
@@ -7,7 +7,12 @@ export {
7
7
  tagColorPaletteStyles,
8
8
  tagVariants,
9
9
  } from './Tag.styles';
10
- export type { TagColorPalette, TagProps, TagVariant } from './Tag.types';
10
+ export type {
11
+ TagColorPalette,
12
+ TagOwnProps,
13
+ TagProps,
14
+ TagVariant,
15
+ } from './Tag.types';
11
16
  export * from './TagCloseButton';
12
17
  export * from './TagLabel';
13
18
 
package/src/index.ts CHANGED
@@ -105,6 +105,26 @@ export {
105
105
  Subtitle,
106
106
  Text,
107
107
  } from './components/Typography';
108
+ // …and their prop types, which the block above never exported — so a consumer
109
+ // could not type a wrapper over `H3`/`Text` at all. `LinkProps` is deliberately
110
+ // left out: the root already exports a `Link` component from elsewhere and the
111
+ // name would collide.
112
+ export type {
113
+ CaptionProps,
114
+ H1Props,
115
+ H2Props,
116
+ H3Props,
117
+ H4Props,
118
+ H5Props,
119
+ HeadingOwnProps,
120
+ HeadingProps,
121
+ OverlineProps,
122
+ SubtextProps,
123
+ SubtitleProps,
124
+ TextProps,
125
+ TypographyOwnProps,
126
+ TypographyProps,
127
+ } from './components/Typography';
108
128
 
109
129
  // Hooks
110
130
  export { useHasHover } from './hooks/useHasHover';
@@ -120,4 +140,9 @@ export {
120
140
  } from './theme/colors';
121
141
 
122
142
  // Shared Types
123
- export type { PolymorphicProps, PolymorphicRef } from './types/polymorphic';
143
+ export type {
144
+ PolymorphicComponent,
145
+ PolymorphicProps,
146
+ PolymorphicRef,
147
+ } from './types/polymorphic';
148
+ export { polymorphic } from './types/polymorphic';
@@ -89,6 +89,23 @@ export type PolymorphicComponent<TOwn, TDefault extends ElementType> = (<
89
89
  * `displayName` stays on the implementation, where `react/display-name` can
90
90
  * see it — the lint rule is the thing that stops a component shipping without
91
91
  * one, and it cannot follow a name through this call.
92
+ *
93
+ * ## Consumers wrapping these components
94
+ *
95
+ * Call this the same way the components above do — a wrapper that pins the
96
+ * element back to its default undoes the polymorphism one layer up:
97
+ *
98
+ * ```ts
99
+ * export const ClickableCard = polymorphic<ClickableCardOwnProps, 'div'>(ClickableCardImpl);
100
+ * ```
101
+ *
102
+ * One thing to know: this is a runtime export, so a test that mocks
103
+ * `@mindlogic-ai/logician-ui` wholesale has to include it or the wrapper's
104
+ * module throws on import. The mock is `<T,>(Impl: T) => Impl` — this function
105
+ * is a type-level identity, so that IS the implementation. Casting against
106
+ * `PolymorphicComponent` instead works and needs no mock, but it costs the call
107
+ * site an `as unknown as` double cast, which is the kind of escape hatch a
108
+ * wrapper should not have to write.
92
109
  */
93
110
  export function polymorphic<TOwn, TDefault extends ElementType = 'button'>(
94
111
  Impl: unknown