@norges-domstoler/dds-components 0.0.0-dev-20240822073709 → 0.0.0-dev-20240822123620

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.
package/dist/index.d.mts CHANGED
@@ -136,7 +136,7 @@ type LabelTypographyType = 'supportingStyleLabel01';
136
136
  type OtherTypographyType = TypographyHeadingType | TypographyBodyType | TypographyLeadType | TypographySupportingType;
137
137
  type TypographyType = AnchorTypographyType | LabelTypographyType | OtherTypographyType;
138
138
  type StaticTypographyType = OtherTypographyType | LabelTypographyType;
139
- type HyphenTypographyType = 'body-sans-01' | 'body-sans-02' | 'body-sans-03' | 'body-sans-04' | 'heading-sans-01' | 'heading-sans-02' | 'heading-sans-03' | 'heading-sans-04' | 'heading-sans-05' | 'heading-sans-06' | 'heading-sans-07' | 'heading-sans-08' | 'lead-sans-01' | 'lead-sans-02' | 'lead-sans-03' | 'lead-sans-04' | 'lead-sans-05' | 'supporting-style-helpertext-01' | 'supporting-style-placeholdertext-01' | 'supporting-style-placeholdertext-02' | 'supporting-style-placeholdertext-03' | 'supporting-style-tiny-01' | 'supporting-style-tiny-02' | 'a' | 'supporting-style-label-01';
139
+ type HyphenTypographyType = 'body-sans-01' | 'body-sans-02' | 'body-sans-03' | 'body-sans-04' | 'heading-sans-01' | 'heading-sans-02' | 'heading-sans-03' | 'heading-sans-04' | 'heading-sans-05' | 'heading-sans-06' | 'heading-sans-07' | 'heading-sans-08' | 'lead-sans-01' | 'lead-sans-02' | 'lead-sans-03' | 'lead-sans-04' | 'lead-sans-05' | 'supporting-style-helper-text-01' | 'supporting-style-placeholder-text-01' | 'supporting-style-placeholder-text-02' | 'supporting-style-placeholder-text-03' | 'supporting-style-tiny-01' | 'supporting-style-tiny-02' | 'a' | 'supporting-style-label-01';
140
140
  type InlineElement = 'a' | 'abbr' | 'audio' | 'b' | 'bdi' | 'bdo' | 'big' | 'br' | 'button' | 'canvas' | 'cite' | 'code' | 'data' | 'datalist' | 'del' | 'dfn' | 'em' | 'embed' | 'i' | 'iframe' | 'img' | 'input' | 'ins' | 'kbd' | 'label' | 'map' | 'mark' | 'meter' | 'noscript' | 'object' | 'output' | 'picture' | 'progress' | 'q' | 'ruby' | 's' | 'samp' | 'script' | 'select' | 'slot' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'svg' | 'template' | 'textarea' | 'time' | 'u' | 'var' | 'video' | 'wbr';
141
141
  type BaseTypographyProps = PropsWithChildren<{
142
142
  /**Spesifiserer om tekstelementet skal ha spacing definert i Elsa. Brukes hovedsakelig i artikler og lignende. **OBS!** har forskjellig virkning på ulike typografityper. `body` og `lead`-typer får margin på bunnen, `heading`-typer får margin på bunnen og padding på toppen mens `supportingStyles` får margin topp og bunn. */
package/dist/index.d.ts CHANGED
@@ -136,7 +136,7 @@ type LabelTypographyType = 'supportingStyleLabel01';
136
136
  type OtherTypographyType = TypographyHeadingType | TypographyBodyType | TypographyLeadType | TypographySupportingType;
137
137
  type TypographyType = AnchorTypographyType | LabelTypographyType | OtherTypographyType;
138
138
  type StaticTypographyType = OtherTypographyType | LabelTypographyType;
139
- type HyphenTypographyType = 'body-sans-01' | 'body-sans-02' | 'body-sans-03' | 'body-sans-04' | 'heading-sans-01' | 'heading-sans-02' | 'heading-sans-03' | 'heading-sans-04' | 'heading-sans-05' | 'heading-sans-06' | 'heading-sans-07' | 'heading-sans-08' | 'lead-sans-01' | 'lead-sans-02' | 'lead-sans-03' | 'lead-sans-04' | 'lead-sans-05' | 'supporting-style-helpertext-01' | 'supporting-style-placeholdertext-01' | 'supporting-style-placeholdertext-02' | 'supporting-style-placeholdertext-03' | 'supporting-style-tiny-01' | 'supporting-style-tiny-02' | 'a' | 'supporting-style-label-01';
139
+ type HyphenTypographyType = 'body-sans-01' | 'body-sans-02' | 'body-sans-03' | 'body-sans-04' | 'heading-sans-01' | 'heading-sans-02' | 'heading-sans-03' | 'heading-sans-04' | 'heading-sans-05' | 'heading-sans-06' | 'heading-sans-07' | 'heading-sans-08' | 'lead-sans-01' | 'lead-sans-02' | 'lead-sans-03' | 'lead-sans-04' | 'lead-sans-05' | 'supporting-style-helper-text-01' | 'supporting-style-placeholder-text-01' | 'supporting-style-placeholder-text-02' | 'supporting-style-placeholder-text-03' | 'supporting-style-tiny-01' | 'supporting-style-tiny-02' | 'a' | 'supporting-style-label-01';
140
140
  type InlineElement = 'a' | 'abbr' | 'audio' | 'b' | 'bdi' | 'bdo' | 'big' | 'br' | 'button' | 'canvas' | 'cite' | 'code' | 'data' | 'datalist' | 'del' | 'dfn' | 'em' | 'embed' | 'i' | 'iframe' | 'img' | 'input' | 'ins' | 'kbd' | 'label' | 'map' | 'mark' | 'meter' | 'noscript' | 'object' | 'output' | 'picture' | 'progress' | 'q' | 'ruby' | 's' | 'samp' | 'script' | 'select' | 'slot' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'svg' | 'template' | 'textarea' | 'time' | 'u' | 'var' | 'video' | 'wbr';
141
141
  type BaseTypographyProps = PropsWithChildren<{
142
142
  /**Spesifiserer om tekstelementet skal ha spacing definert i Elsa. Brukes hovedsakelig i artikler og lignende. **OBS!** har forskjellig virkning på ulike typografityper. `body` og `lead`-typer får margin på bunnen, `heading`-typer får margin på bunnen og padding på toppen mens `supportingStyles` får margin topp og bunn. */
package/dist/index.js CHANGED
@@ -453,14 +453,14 @@ var typographyStyles_default = {
453
453
  "heading-sans-08--margins": "typographyStyles_heading-sans-08--margins",
454
454
  "supporting-style-label-01": "typographyStyles_supporting-style-label-01",
455
455
  "supporting-style-label-01--margins": "typographyStyles_supporting-style-label-01--margins",
456
- "supporting-style-helpertext-01": "typographyStyles_supporting-style-helpertext-01",
457
- "supporting-style-helpertext-01--margins": "typographyStyles_supporting-style-helpertext-01--margins",
458
- "supporting-style-placeholdertext-01": "typographyStyles_supporting-style-placeholdertext-01",
459
- "supporting-style-placeholdertext-01--margins": "typographyStyles_supporting-style-placeholdertext-01--margins",
460
- "supporting-style-placeholdertext-02": "typographyStyles_supporting-style-placeholdertext-02",
461
- "supporting-style-placeholdertext-02--margins": "typographyStyles_supporting-style-placeholdertext-02--margins",
462
- "supporting-style-placeholdertext-03": "typographyStyles_supporting-style-placeholdertext-03",
463
- "supporting-style-placeholdertext-03--margins": "typographyStyles_supporting-style-placeholdertext-03--margins",
456
+ "supporting-style-helper-text-01": "typographyStyles_supporting-style-helper-text-01",
457
+ "supporting-style-helper-text-01--margins": "typographyStyles_supporting-style-helper-text-01--margins",
458
+ "supporting-style-placeholder-text-01": "typographyStyles_supporting-style-placeholder-text-01",
459
+ "supporting-style-placeholder-text-01--margins": "typographyStyles_supporting-style-placeholder-text-01--margins",
460
+ "supporting-style-placeholder-text-02": "typographyStyles_supporting-style-placeholder-text-02",
461
+ "supporting-style-placeholder-text-02--margins": "typographyStyles_supporting-style-placeholder-text-02--margins",
462
+ "supporting-style-placeholder-text-03": "typographyStyles_supporting-style-placeholder-text-03",
463
+ "supporting-style-placeholder-text-03--margins": "typographyStyles_supporting-style-placeholder-text-03--margins",
464
464
  "supporting-style-tiny-01": "typographyStyles_supporting-style-tiny-01",
465
465
  "supporting-style-tiny-01--margins": "typographyStyles_supporting-style-tiny-01--margins",
466
466
  "supporting-style-tiny-02": "typographyStyles_supporting-style-tiny-02",
@@ -5070,7 +5070,7 @@ var OverflowMenuListHeader = (0, import_react36.forwardRef)((props, ref) => {
5070
5070
  ref,
5071
5071
  ...props,
5072
5072
  className: cn(
5073
- typographyStyles_default["supporting-style-helpertext-01"],
5073
+ typographyStyles_default["supporting-style-helper-text-01"],
5074
5074
  typographyStyles_default["text-color--default"],
5075
5075
  OverflowMenu_default["group-header"]
5076
5076
  )
@@ -6066,7 +6066,7 @@ var InputMessage = (0, import_react52.forwardRef)(
6066
6066
  cn(
6067
6067
  className,
6068
6068
  InputMessage_default.container,
6069
- messageType === "error" && InputMessage_default["container--error"]
6069
+ isError && InputMessage_default["container--error"]
6070
6070
  ),
6071
6071
  htmlProps,
6072
6072
  rest
@@ -9311,7 +9311,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9311
9311
  alignItems: "center",
9312
9312
  flexWrap: "wrap",
9313
9313
  cursor: "pointer",
9314
- borderRadius: "var(--dds-border-radius-1)",
9314
+ borderRadius: "var(--dds-border-radius-input)",
9315
9315
  border: "1px solid",
9316
9316
  borderColor: "var(--dds-color-border-default)",
9317
9317
  backgroundColor: "var(--dds-color-surface-default)",
@@ -9384,7 +9384,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9384
9384
  boxSizing: "border-box",
9385
9385
  minWidth: 0,
9386
9386
  display: "flex",
9387
- borderRadius: "var(--dds-border-radius-1)",
9387
+ borderRadius: "var(--dds-border-radius-surface)",
9388
9388
  backgroundColor: "var(--dds-color-surface-medium)"
9389
9389
  }),
9390
9390
  multiValueLabel: (provided, state) => ({
@@ -9420,7 +9420,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9420
9420
  transition: "0.2s",
9421
9421
  border: "1px solid var(--dds-color-border-default)",
9422
9422
  backgroundColor: "var(--dds-color-surface-default)",
9423
- borderRadius: "var(--dds-border-radius-1)",
9423
+ borderRadius: "var(--dds-border-radius-surface)",
9424
9424
  marginBlock: "var(--dds-spacing-x0-25)"
9425
9425
  }),
9426
9426
  menuPortal: (provided) => ({
@@ -9472,6 +9472,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9472
9472
  clearIndicator: () => isReadOnly ? { display: "none" } : {
9473
9473
  display: "inline-flex",
9474
9474
  color: "var(--dds-color-icon-default)",
9475
+ borderRadius: "var(--dds-border-radius-button)",
9475
9476
  "@media (prefers-reduced-motion: no-preference)": {
9476
9477
  transition: "background-color 0.2s"
9477
9478
  },