@20minutes/hela 0.1.32 → 0.1.34

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 (38) hide show
  1. package/dist/components/atoms/Skeleton/Skeleton.d.ts +2 -1
  2. package/dist/components/atoms/Typography/Heading/Heading.d.ts +7 -0
  3. package/dist/components/atoms/Typography/Heading/index.d.ts +1 -0
  4. package/dist/components/atoms/Typography/Text/Text.d.ts +7 -0
  5. package/dist/components/atoms/Typography/Text/index.d.ts +1 -0
  6. package/dist/components/atoms/Typography/Typography.d.ts +5 -8
  7. package/dist/components/molecules/Card/CardExtraLarge/CardExtraLarge.d.ts +2 -2
  8. package/dist/components/molecules/Card/CardExtraSmall/CardExtraSmall.d.ts +2 -2
  9. package/dist/components/molecules/Card/CardHeader/CardHeader.d.ts +2 -2
  10. package/dist/components/molecules/Card/CardLarge/CardLarge.d.ts +2 -2
  11. package/dist/components/molecules/Card/CardMedium/CardMedium.d.ts +2 -2
  12. package/dist/components/molecules/Card/CardMostRead/CardMostRead.d.ts +2 -2
  13. package/dist/components/molecules/Card/CardOverview/CardOverview.d.ts +3 -2
  14. package/dist/components/molecules/Card/CardSmall/CardSmall.d.ts +2 -2
  15. package/dist/components/molecules/Horoscope/index.d.ts +0 -1
  16. package/dist/constants/cssProperties/index.d.ts +1 -0
  17. package/dist/constants/cssProperties/typography.d.ts +7 -0
  18. package/dist/constants/systemProps/index.d.ts +1 -0
  19. package/dist/constants/systemProps/typographySystemProps.d.ts +2 -0
  20. package/dist/constants/tokenVariables.d.ts +182 -0
  21. package/dist/helpers/systemPropsHelper/index.d.ts +3 -2
  22. package/dist/helpers/systemPropsHelper/typographySystemClassName.d.ts +4 -0
  23. package/dist/index.es.js +5743 -5538
  24. package/dist/index.umd.js +51 -51
  25. package/dist/scss/abstracts/variables/_index.scss +0 -1
  26. package/dist/scss/abstracts/variables/_token-variables.scss +88 -1
  27. package/dist/style.css +1 -1
  28. package/dist/types/CssProperties/index.d.ts +1 -0
  29. package/dist/types/CssProperties/typography.d.ts +4 -0
  30. package/dist/types/SystemProps/TypographySystemProps.d.ts +9 -0
  31. package/dist/types/SystemProps/index.d.ts +1 -0
  32. package/dist/types/TokenTypes.d.ts +4 -0
  33. package/package.json +7 -7
  34. package/dist/components/atoms/Typography/Heading.d.ts +0 -8
  35. package/dist/components/atoms/Typography/Text.d.ts +0 -8
  36. package/dist/components/molecules/Horoscope/HoroscopeHomepageContent/HoroscopeHomepageContent.d.ts +0 -12
  37. package/dist/components/molecules/Horoscope/HoroscopeHomepageContent/index.d.ts +0 -1
  38. package/dist/scss/abstracts/variables/_fontstack.scss +0 -18
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ import { FlexProps } from '../../../components';
3
+ export interface SkeletonProps extends FlexProps {
3
4
  variant: 'button' | 'icon' | 'connexion';
4
5
  }
5
6
  export declare const Skeleton: React.FC<SkeletonProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { HeadingSizeType, TypeWithMediaQueriesType } from '../../../../types';
3
+ import { TypographyProps } from '../Typography';
4
+ export declare type HeadingProps<C extends React.ElementType = 'h1'> = TypographyProps<C> & {
5
+ size?: HeadingSizeType | TypeWithMediaQueriesType<HeadingSizeType>;
6
+ };
7
+ export declare const Heading: <C extends React.ElementType<any> = "h1">({ as, size, children, ...typographyProps }: HeadingProps<C>) => React.ReactElement<any, any> | null;
@@ -0,0 +1 @@
1
+ export * from './Heading';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { TextSizeType, TypeWithMediaQueriesType } from '../../../../types';
3
+ import { TypographyProps } from '../Typography';
4
+ export declare type TextProps<C extends React.ElementType = 'p'> = TypographyProps<C> & {
5
+ size?: TextSizeType | TypeWithMediaQueriesType<TextSizeType>;
6
+ };
7
+ export declare const Text: <C extends React.ElementType<any> = "p">({ as, size, children, ...typographyProps }: TextProps<C>) => React.ReactElement<any, any> | null;
@@ -0,0 +1 @@
1
+ export * from './Text';
@@ -1,8 +1,5 @@
1
- import * as React from 'react';
2
- import { ColorSchemeTheme } from '../../../types';
3
- export interface TypographyProps<HTMLElementType> extends React.HTMLAttributes<Partial<HTMLElementType>> {
4
- as?: keyof HTMLElementType;
5
- color?: ColorSchemeTheme;
6
- children?: React.ReactNode;
7
- }
8
- export declare const Typography: React.FC<TypographyProps<JSX.IntrinsicElements>>;
1
+ import React from 'react';
2
+ import { BoxProps } from '../../../components';
3
+ import type { TypographySystemProps } from '../../../types';
4
+ export declare type TypographyProps<C extends React.ElementType = 'p'> = BoxProps<C> & TypographySystemProps;
5
+ export declare const Typography: <C extends React.ElementType<any>>({ as, children, ...boxProps }: TypographyProps<C>) => React.ReactElement<any, any> | null;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, SignatureProps, SocialBarProps } from '../../../../components';
2
+ import { CardHeaderProps, FlexProps, SignatureProps, SocialBarProps } from '../../../../components';
3
3
  import { LayoutType } from '../../../../types';
4
- export interface CardExtraLargeProps {
4
+ export interface CardExtraLargeProps extends FlexProps {
5
5
  link: string;
6
6
  cardHeaderProps: CardHeaderProps;
7
7
  title: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, SocialBarProps } from '../../../../components';
3
- export interface CardExtraSmallProps {
2
+ import { CardHeaderProps, FlexProps, SocialBarProps } from '../../../../components';
3
+ export interface CardExtraSmallProps extends FlexProps {
4
4
  link: string;
5
5
  cardHeaderProps: CardHeaderProps;
6
6
  title: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ColorType } from '../../../../types';
3
- import { BoxProps } from '../../../../components';
4
- export interface CardHeaderProps extends BoxProps {
3
+ import { FlexProps } from '../../../../components';
4
+ export interface CardHeaderProps extends FlexProps {
5
5
  headline: string;
6
6
  color?: ColorType;
7
7
  subheader?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { SignatureProps, SocialBarProps } from '../../../../components';
2
+ import { FlexProps, SignatureProps, SocialBarProps } from '../../../../components';
3
3
  import { ColorType, LayoutType } from '../../../../types';
4
- export interface CardLargeProps {
4
+ export interface CardLargeProps extends FlexProps {
5
5
  link: string;
6
6
  headline: string;
7
7
  color: ColorType;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps, SocialBarProps } from '../../../../components';
2
+ import { CardHeaderProps, FlexProps, SocialBarProps } from '../../../../components';
3
3
  import { LayoutType } from '../../../../types';
4
- export interface CardMediumProps {
4
+ export interface CardMediumProps extends FlexProps {
5
5
  link: string;
6
6
  cardHeaderProps: CardHeaderProps;
7
7
  title: string;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { CardHeaderProps } from '../../../../components';
2
+ import { CardHeaderProps, FlexProps } from '../../../../components';
3
3
  import { LayoutType } from '../../../../types';
4
- export interface CardMostReadProps {
4
+ export interface CardMostReadProps extends FlexProps {
5
5
  link: string;
6
6
  cardHeaderProps: CardHeaderProps;
7
7
  cover?: string;
@@ -1,9 +1,10 @@
1
+ import { FlexProps } from '../../../../components';
1
2
  import { ColorType } from '../../../../types';
2
- export interface CardOverviewProps {
3
+ export interface CardOverviewProps extends FlexProps {
3
4
  cover: string;
4
5
  link: string;
5
6
  headline: string;
6
7
  title: string;
7
8
  color?: ColorType;
8
9
  }
9
- export declare function CardOverview({ link, cover, headline, title, color }: CardOverviewProps): JSX.Element;
10
+ export declare function CardOverview({ link, cover, headline, title, color, ...flexProps }: CardOverviewProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { CardHeaderProps } from '../../../../components';
2
+ import { CardHeaderProps, FlexProps } from '../../../../components';
3
3
  import { LayoutType } from '../../../../types';
4
- export interface CardSmallProps {
4
+ export interface CardSmallProps extends FlexProps {
5
5
  link: string;
6
6
  cardHeaderProps: CardHeaderProps;
7
7
  title: string;
@@ -1,4 +1,3 @@
1
1
  export * from './HoroscopeContent';
2
- export * from './HoroscopeHomepageContent';
3
2
  export * from './HoroscopeTiles';
4
3
  export * from './HoroscopeTopicCard';
@@ -1 +1,2 @@
1
+ export * from './typography';
1
2
  export * from './flexboxAndGridBox';
@@ -0,0 +1,7 @@
1
+ export declare const textDecorationList: readonly ["underline", "dotted", "wavy", "overline"];
2
+ export declare const textAlignList: readonly ["left", "center", "right", "justify"];
3
+ export declare const textTransformList: readonly ["capitalize", "uppercase", "lowercase"];
4
+ export declare const fontFamilyTokenNameList: readonly ("oswald" | "source-serif-pro")[];
5
+ export declare const fontWeightTokenNameList: readonly ("regular" | "bold")[];
6
+ export declare const headingSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xxl" | "xxl-2" | "xxl-3")[];
7
+ export declare const textSizeTokenNameList: readonly ("xs" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl")[];
@@ -1,5 +1,6 @@
1
1
  export * from './spacingSystemProps';
2
2
  export * from './colorSystemProps';
3
+ export * from './typographySystemProps';
3
4
  export * from './systemProps';
4
5
  export * from './flexOrGridItemSystemProps';
5
6
  export * from './flexOrGridBoxSystemProps';
@@ -0,0 +1,2 @@
1
+ import type { TypographySystemProps } from '../../types';
2
+ export declare const typographySystemProps: Record<keyof TypographySystemProps, string[]>;
@@ -118,6 +118,74 @@ export declare const tokenVariables: {
118
118
  };
119
119
  };
120
120
  };
121
+ 'font-family': {
122
+ base: {
123
+ value: string;
124
+ };
125
+ oswald: {
126
+ value: string;
127
+ };
128
+ 'source-serif-pro': {
129
+ value: string;
130
+ };
131
+ };
132
+ 'font-size': {
133
+ 'xxs-3': {
134
+ value: string;
135
+ };
136
+ 'xxs-2': {
137
+ value: string;
138
+ };
139
+ xxs: {
140
+ value: string;
141
+ };
142
+ xs: {
143
+ value: string;
144
+ };
145
+ s: {
146
+ value: string;
147
+ };
148
+ m: {
149
+ value: string;
150
+ };
151
+ l: {
152
+ value: string;
153
+ };
154
+ xl: {
155
+ value: string;
156
+ };
157
+ xxl: {
158
+ value: string;
159
+ };
160
+ 'xxl-2': {
161
+ value: string;
162
+ };
163
+ 'xxl-3': {
164
+ value: string;
165
+ };
166
+ 'xxl-4': {
167
+ value: string;
168
+ };
169
+ 'xxl-5': {
170
+ value: string;
171
+ };
172
+ };
173
+ 'font-weight': {
174
+ regular: {
175
+ value: string;
176
+ };
177
+ bold: {
178
+ value: string;
179
+ };
180
+ };
181
+ 'line-height': {
182
+ base: {
183
+ value: string;
184
+ };
185
+ large: {
186
+ value: string;
187
+ };
188
+ };
121
189
  spacing: {
122
190
  '0': {
123
191
  value: string;
@@ -150,4 +218,118 @@ export declare const tokenVariables: {
150
218
  value: string;
151
219
  };
152
220
  };
221
+ typography: {
222
+ heading: {
223
+ 'xxs-2': {
224
+ description: string;
225
+ fontSize: {
226
+ value: string;
227
+ };
228
+ };
229
+ xxs: {
230
+ description: string;
231
+ fontSize: {
232
+ value: string;
233
+ };
234
+ };
235
+ xs: {
236
+ description: string;
237
+ fontSize: {
238
+ value: string;
239
+ };
240
+ };
241
+ s: {
242
+ description: string;
243
+ fontSize: {
244
+ value: string;
245
+ };
246
+ };
247
+ m: {
248
+ description: string;
249
+ fontSize: {
250
+ value: string;
251
+ };
252
+ };
253
+ l: {
254
+ description: string;
255
+ fontSize: {
256
+ value: string;
257
+ };
258
+ };
259
+ xxl: {
260
+ description: string;
261
+ fontSize: {
262
+ value: string;
263
+ };
264
+ };
265
+ 'xxl-2': {
266
+ description: string;
267
+ fontSize: {
268
+ value: string;
269
+ };
270
+ };
271
+ 'xxl-3': {
272
+ description: string;
273
+ fontSize: {
274
+ value: string;
275
+ };
276
+ };
277
+ };
278
+ text: {
279
+ 'xxs-2': {
280
+ description: string;
281
+ fontSize: {
282
+ value: string;
283
+ };
284
+ };
285
+ xxs: {
286
+ description: string;
287
+ fontSize: {
288
+ value: string;
289
+ };
290
+ };
291
+ xs: {
292
+ description: string;
293
+ fontSize: {
294
+ value: string;
295
+ };
296
+ };
297
+ s: {
298
+ description: string;
299
+ fontSize: {
300
+ value: string;
301
+ };
302
+ };
303
+ m: {
304
+ description: string;
305
+ fontSize: {
306
+ value: string;
307
+ };
308
+ lineHeight: {
309
+ value: string;
310
+ };
311
+ };
312
+ l: {
313
+ description: string;
314
+ fontSize: {
315
+ value: string;
316
+ };
317
+ lineHeight: {
318
+ value: string;
319
+ };
320
+ };
321
+ xl: {
322
+ description: string;
323
+ fontSize: {
324
+ value: string;
325
+ };
326
+ };
327
+ xxl: {
328
+ description: string;
329
+ fontSize: {
330
+ value: string;
331
+ };
332
+ };
333
+ };
334
+ };
153
335
  };
@@ -1,8 +1,9 @@
1
- export * from './colorSystemClassName';
2
1
  export * from './classNameWithModifier';
3
2
  export * from './classNamesWithModifiers';
4
- export * from './spacingSystemClassName';
5
3
  export * from './omitSystemProps';
4
+ export * from './colorSystemClassName';
5
+ export * from './spacingSystemClassName';
6
+ export * from './typographySystemClassName';
6
7
  export * from './systemClassName';
7
8
  export * from './flexOrGridBoxItemClassName';
8
9
  export * from './flexOrGridBoxClassName';
@@ -0,0 +1,4 @@
1
+ import type { TypographySystemProps } from '../../types';
2
+ export declare const typographySystemClassName: <TProps extends TypographySystemProps>({ textAlign, weight, textTransform, textDecoration, italic, fontFamily, }: TProps & {
3
+ isHeading?: boolean | undefined;
4
+ }) => string;