@utrecht/component-library-react 8.0.4 → 9.0.1

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.
@@ -4,8 +4,11 @@
4
4
  * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
  import { HTMLAttributes } from 'react';
7
+ declare const APPEARANCE_VALUES: readonly ["lead", "small"];
8
+ export type ParagraphAppearance = (typeof APPEARANCE_VALUES)[number];
9
+ export declare const isParagraphAppearance: <T>(x: unknown) => x is T;
7
10
  export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
8
- appearance?: string | 'lead' | 'small';
11
+ appearance?: ParagraphAppearance;
9
12
  /**
10
13
  *
11
14
  * @deprecated Use `appearance="lead"` instead
@@ -20,4 +23,5 @@ export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
20
23
  export declare const Paragraph: import("react").ForwardRefExoticComponent<ParagraphProps & {
21
24
  children?: import("react").ReactNode | undefined;
22
25
  } & import("react").RefAttributes<HTMLParagraphElement>>;
26
+ export {};
23
27
  //# sourceMappingURL=Paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../src/Paragraph.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAA4B,cAAc,EAAqB,MAAM,OAAO,CAAC;AAEpF,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;;wDA6BrB,CAAC"}
1
+ {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../src/Paragraph.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAA4B,cAAc,EAAqB,MAAM,OAAO,CAAC;AAOpF,QAAA,MAAM,iBAAiB,4BAA6B,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,qBAAqB,GAP/B,CAAC,KAAM,OAAO,KAAG,CAAC,KAO4C,CAAC;AAElE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC1E,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;;wDAiCrB,CAAC"}
@@ -4,8 +4,11 @@
4
4
  * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
  import { HTMLAttributes } from 'react';
7
+ declare const APPEARANCE_VALUES: readonly ["lead", "small"];
8
+ export type ParagraphAppearance = (typeof APPEARANCE_VALUES)[number];
9
+ export declare const isParagraphAppearance: <T>(x: unknown) => x is T;
7
10
  export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
8
- appearance?: string | 'lead' | 'small';
11
+ appearance?: ParagraphAppearance;
9
12
  /**
10
13
  *
11
14
  * @deprecated Use `appearance="lead"` instead
@@ -20,4 +23,5 @@ export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
20
23
  export declare const Paragraph: import("react").ForwardRefExoticComponent<ParagraphProps & {
21
24
  children?: import("react").ReactNode | undefined;
22
25
  } & import("react").RefAttributes<HTMLParagraphElement>>;
26
+ export {};
23
27
  //# sourceMappingURL=Paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../src/Paragraph.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAA4B,cAAc,EAAqB,MAAM,OAAO,CAAC;AAEpF,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;;wDA6BrB,CAAC"}
1
+ {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../src/Paragraph.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAA4B,cAAc,EAAqB,MAAM,OAAO,CAAC;AAOpF,QAAA,MAAM,iBAAiB,4BAA6B,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,qBAAqB,GAP/B,CAAC,KAAM,OAAO,KAAG,CAAC,KAO4C,CAAC;AAElE,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC1E,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,SAAS;;wDAiCrB,CAAC"}
@@ -1,11 +1,10 @@
1
+ import css from '@utrecht/vega-visualization-css/dist/index.mjs';
1
2
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
3
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
  import clsx from 'clsx';
5
6
  import { Vega } from 'react-vega';
6
7
 
7
- var css = ".utrecht-vega-visualization{display:inline-block}";
8
-
9
8
  var insertStyle = function insertStyle(css) {
10
9
  if (typeof document !== 'undefined') {
11
10
  var head = document.head || document.getElementsByTagName('head')[0];
@@ -1 +1 @@
1
- {"version":3,"file":"VegaVisualization.mjs","sources":["../../../../components/vega-visualization/dist/index.mjs"],"sourcesContent":["export default \".utrecht-vega-visualization{display:inline-block}\";\n"],"names":[],"mappings":";;;;;;AAAA,UAAe,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"VegaVisualization.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}