@tipp/ui 1.2.4 → 1.2.6

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 (44) hide show
  1. package/dist/atoms/dialog.cjs +60 -7
  2. package/dist/atoms/dialog.cjs.map +1 -1
  3. package/dist/atoms/dialog.js +2 -1
  4. package/dist/atoms/heading.cjs +2 -2
  5. package/dist/atoms/heading.cjs.map +1 -1
  6. package/dist/atoms/heading.d.cts +1 -1
  7. package/dist/atoms/heading.d.ts +1 -1
  8. package/dist/atoms/heading.js +1 -1
  9. package/dist/atoms/index.cjs +3 -3
  10. package/dist/atoms/index.cjs.map +1 -1
  11. package/dist/atoms/index.js +59 -59
  12. package/dist/atoms/pagination.js +2 -2
  13. package/dist/chunk-ADJNYQL4.js +97 -0
  14. package/dist/chunk-ADJNYQL4.js.map +1 -0
  15. package/dist/chunk-CBIWAPI3.js +130 -0
  16. package/dist/chunk-CBIWAPI3.js.map +1 -0
  17. package/dist/chunk-DRMYFBAV.js +37 -0
  18. package/dist/chunk-DRMYFBAV.js.map +1 -0
  19. package/dist/chunk-HCN4TB55.js +340 -0
  20. package/dist/chunk-HCN4TB55.js.map +1 -0
  21. package/dist/chunk-IDUOBDMG.js +130 -0
  22. package/dist/chunk-IDUOBDMG.js.map +1 -0
  23. package/dist/chunk-QNASXACS.js +169 -0
  24. package/dist/chunk-QNASXACS.js.map +1 -0
  25. package/dist/chunk-SBZSSTJE.js +88 -0
  26. package/dist/chunk-SBZSSTJE.js.map +1 -0
  27. package/dist/chunk-Z4UWDJXZ.js +340 -0
  28. package/dist/chunk-Z4UWDJXZ.js.map +1 -0
  29. package/dist/index.cjs +3 -3
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +72 -72
  32. package/dist/molecules/date-picker/index.cjs +2 -2
  33. package/dist/molecules/date-picker/index.cjs.map +1 -1
  34. package/dist/molecules/date-picker/index.js +3 -3
  35. package/dist/molecules/expand-table/index.js +27 -27
  36. package/dist/molecules/expand-table/row.js +24 -24
  37. package/dist/molecules/index.cjs +2 -2
  38. package/dist/molecules/index.cjs.map +1 -1
  39. package/dist/molecules/index.js +29 -29
  40. package/dist/molecules/navigation.js +24 -24
  41. package/dist/molecules/tag-selector.js +25 -25
  42. package/package.json +1 -1
  43. package/src/atoms/dialog.tsx +5 -4
  44. package/src/atoms/heading.tsx +3 -3
@@ -1,7 +1,8 @@
1
1
  import * as RadixDialog from '@radix-ui/react-dialog';
2
2
  import { Cross1Icon } from '@radix-ui/react-icons';
3
- import { Flex, IconButton } from '@radix-ui/themes';
3
+ import { Flex } from '@radix-ui/themes';
4
4
  import { useEffect, useRef } from 'react';
5
+ import { Button } from './button';
5
6
 
6
7
  type ContentProps = RadixDialog.DialogContentProps & {
7
8
  width?: string;
@@ -48,9 +49,9 @@ function Content(props: ContentProps): React.ReactElement {
48
49
  >
49
50
  <Flex direction="column" style={{ position: 'relative' }}>
50
51
  <RadixDialog.Close asChild className="DialogClose">
51
- <IconButton variant="ghost">
52
- <Cross1Icon />
53
- </IconButton>
52
+ <Button color="gray" variant="transparent">
53
+ <Cross1Icon height="16px" width="16px" />
54
+ </Button>
54
55
  </RadixDialog.Close>
55
56
  {children}
56
57
  </Flex>
@@ -7,21 +7,21 @@ import { useMemo } from 'react';
7
7
  export { Heading as RadixHeading } from '@radix-ui/themes';
8
8
 
9
9
  export type HeadingProps = RadixHeadingProps & {
10
- variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
10
+ variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3' | 'heading4';
11
11
  };
12
12
 
13
13
  export function Heading(props: HeadingProps): React.ReactElement {
14
14
  const { size, children, variant, ...rest } = props;
15
15
  const radixSize = useMemo<RadixHeadingProps['size']>(() => {
16
16
  switch (variant) {
17
- case 'subtitle1':
18
- return '4';
19
17
  case 'heading1':
20
18
  return '7';
21
19
  case 'heading2':
22
20
  return '6';
23
21
  case 'heading3':
24
22
  return '5';
23
+ case 'heading4':
24
+ return '4';
25
25
  default:
26
26
  return size;
27
27
  }