@dataesr/dsfr-plus 0.4.1 → 0.5.0

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.
@@ -2,12 +2,13 @@ import { Argument } from 'classnames';
2
2
  import { OnlyAs, PolymorphicComponent } from 'react-polymorphed';
3
3
  type TextTags = 'p' | 'span';
4
4
  type TextSizes = 'xs' | 'sm' | 'md' | 'lg' | 'lead';
5
- type TextProps = React.PropsWithChildren<{
5
+ type TextPropsPartial = React.PropsWithChildren<{
6
6
  alt?: boolean;
7
7
  bold?: boolean;
8
8
  className?: Argument;
9
9
  size?: TextSizes;
10
10
  }>;
11
- export declare const Text: PolymorphicComponent<"p", TextProps, OnlyAs<TextTags>>;
11
+ export type TextProps = PolymorphicComponent<"p", TextPropsPartial, OnlyAs<TextTags>>;
12
+ export declare const Text: TextProps;
12
13
  export {};
13
14
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACvC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC,CAAA;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAgBvE,CAAC"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAAA,OAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC;AAC7B,KAAK,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEpD,KAAK,gBAAgB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC9C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEtF,eAAO,MAAM,IAAI,EAAE,SAgBlB,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export * from './colors';
2
+ export * from './headings';
3
+ export * from './polymophic';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@dataesr/dsfr-plus",
3
3
  "private": false,
4
- "version": "0.4.1",
4
+ "version": "0.5.0",
5
5
  "type": "module",
6
6
  "main": "./dist/dsfr-plus.es.js",
7
7
  "module": "./dist/dsfr-plus.es.js",
8
+ "types": "./dist/index.d.ts",
8
9
  "exports": {
9
10
  ".": {
10
11
  "types": "./dist/index.d.ts",