enefit-design-system 0.0.8 → 0.0.11

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.
@@ -0,0 +1,6 @@
1
+ @custom-media --xs (min-width: 320px);
2
+ @custom-media --sm (min-width: 360px);
3
+ @custom-media --md (min-width: 768px);
4
+ @custom-media --lg (min-width: 1024px);
5
+ @custom-media --xl (min-width: 1152px);
6
+ @custom-media --2xl (min-width: 1680px);
package/dist/index.d.ts CHANGED
@@ -3,12 +3,13 @@
3
3
  import { JSX as JSX_2 } from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { SVGProps } from 'react';
6
+ import { default as tailwind } from '../output/variables/tailwind.json';
6
7
 
7
8
  export declare function Heading({ variant, as, className, children, ...props }: {
8
9
  variant: 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'leadtext' | 'subheadline';
9
10
  as?: React.ElementType;
10
11
  className?: string;
11
- children: ReactNode;
12
+ children?: ReactNode;
12
13
  [key: string]: any;
13
14
  }): JSX_2.Element;
14
15
 
@@ -1574,19 +1575,21 @@ export declare function Label({ size, weight, className, children, ...props }: {
1574
1575
  size?: 'tiny' | 'small' | 'default' | 'large';
1575
1576
  weight?: 400 | 600;
1576
1577
  className?: string;
1577
- children: ReactNode;
1578
+ children?: ReactNode;
1578
1579
  [key: string]: any;
1579
1580
  }): JSX_2.Element;
1580
1581
 
1582
+ export { tailwind }
1583
+
1581
1584
  declare function Text_2({ variant, size, weight, italic, underline, as, className, children, ...props }: {
1582
1585
  variant?: 'p' | 'line';
1583
1586
  size?: 'tiny' | 'small' | 'default' | 'large';
1584
- weight?: 400 | 600;
1587
+ weight?: 400 | 600 | '400' | '600';
1585
1588
  italic?: boolean;
1586
1589
  underline?: boolean;
1587
1590
  as?: React.ElementType;
1588
1591
  className?: string;
1589
- children: ReactNode;
1592
+ children?: ReactNode;
1590
1593
  [key: string]: any;
1591
1594
  }): JSX_2.Element;
1592
1595
  export { Text_2 as Text }