@norges-domstoler/dds-components 13.0.2 → 13.0.3

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.
@@ -1,9 +1,3 @@
1
- import { StaticTypographyType } from '../Typography';
2
- import { DescriptionListAppearance } from './DescriptionList';
3
- export declare const termTypographyTypes: {
4
- [k in DescriptionListAppearance]: StaticTypographyType;
5
- };
6
- export declare const descTypographyType: StaticTypographyType;
7
1
  export declare const descriptionListTokens: {
8
2
  term: {
9
3
  appearance: {
package/dist/cjs/index.js CHANGED
@@ -6424,11 +6424,6 @@ var Row = /*#__PURE__*/React.forwardRef(function (_a, ref) {
6424
6424
 
6425
6425
  var spacing$p = ddsDesignTokens.ddsBaseTokens.spacing,
6426
6426
  colors$g = ddsDesignTokens.ddsBaseTokens.colors;
6427
- var termTypographyTypes = {
6428
- bold: 'bodySans03',
6429
- small: 'bodySans01'
6430
- };
6431
- var descTypographyType = 'bodySans03';
6432
6427
  var term$1 = {
6433
6428
  appearance: {
6434
6429
  small: {
@@ -6479,7 +6474,7 @@ var DList = styled__default.default.dl.withConfig({
6479
6474
  componentId: "sc-1ob73hm-0"
6480
6475
  })(["margin:0;*::selection{", "}", " display:flex;flex-direction:column;&:not(:has(> dt):has(> dd)){flex-direction:", ";}flex-wrap:wrap;column-gap:", ";row-gap:0;& > dt:first-of-type{margin-top:", ";}& > dd:last-child{margin-bottom:", ";}dd + dt{margin-top:", ";}"], selection, function (_ref) {
6481
6476
  var appearance = _ref.appearance;
6482
- return appearance && styled.css(["dt{color:", ";", " ", "}"], term.appearance[appearance].color, getFontStyling(termTypographyTypes[appearance]), appearance === 'bold' && styled.css(["font-weight:600;"]));
6477
+ return appearance && styled.css(["dt{color:", ";", "}"], term.appearance[appearance].color, appearance === 'bold' && styled.css(["font-weight:600;"]));
6483
6478
  }, function (_ref2) {
6484
6479
  var _ref2$direction = _ref2.direction,
6485
6480
  direction = _ref2$direction === void 0 ? 'column' : _ref2$direction;
@@ -6523,7 +6518,7 @@ var DescriptionListTerm = /*#__PURE__*/React.forwardRef(function (_a, ref) {
6523
6518
  var DListDesc = styled__default.default.dd.withConfig({
6524
6519
  displayName: "DescriptionListDesc__DListDesc",
6525
6520
  componentId: "sc-1djcf0s-0"
6526
- })(["margin-inline-start:0;align-items:center;display:flex;color:", ";", " gap:", ";"], descriptionListTokens.desc.base.color, getFontStyling(descTypographyType), descriptionListTokens.desc.base.gap);
6521
+ })(["margin-inline-start:0;align-items:center;display:flex;color:", ";gap:", ";"], descriptionListTokens.desc.base.color, descriptionListTokens.desc.base.gap);
6527
6522
  var DescriptionListDesc = /*#__PURE__*/React.forwardRef(function (props, ref) {
6528
6523
  var children = props.children,
6529
6524
  icon = props.icon,
@@ -8,8 +8,7 @@ import '../../helpers/styling/focus.js';
8
8
  import '../../helpers/styling/danger.js';
9
9
  import { selection } from '../../helpers/styling/selection.js';
10
10
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
11
- import { getFontStyling } from '../Typography/Typography.utils.js';
12
- import { descriptionListTokens, termTypographyTypes } from './DescriptionList.tokens.js';
11
+ import { descriptionListTokens } from './DescriptionList.tokens.js';
13
12
 
14
13
  var term = descriptionListTokens.term,
15
14
  desc = descriptionListTokens.desc,
@@ -19,7 +18,7 @@ var DList = styled.dl.withConfig({
19
18
  componentId: "sc-1ob73hm-0"
20
19
  })(["margin:0;*::selection{", "}", " display:flex;flex-direction:column;&:not(:has(> dt):has(> dd)){flex-direction:", ";}flex-wrap:wrap;column-gap:", ";row-gap:0;& > dt:first-of-type{margin-top:", ";}& > dd:last-child{margin-bottom:", ";}dd + dt{margin-top:", ";}"], selection, function (_ref) {
21
20
  var appearance = _ref.appearance;
22
- return appearance && css(["dt{color:", ";", " ", "}"], term.appearance[appearance].color, getFontStyling(termTypographyTypes[appearance]), appearance === 'bold' && css(["font-weight:600;"]));
21
+ return appearance && css(["dt{color:", ";", "}"], term.appearance[appearance].color, appearance === 'bold' && css(["font-weight:600;"]));
23
22
  }, function (_ref2) {
24
23
  var _ref2$direction = _ref2.direction,
25
24
  direction = _ref2$direction === void 0 ? 'column' : _ref2$direction;
@@ -1,9 +1,3 @@
1
- import { StaticTypographyType } from '../Typography';
2
- import { DescriptionListAppearance } from './DescriptionList';
3
- export declare const termTypographyTypes: {
4
- [k in DescriptionListAppearance]: StaticTypographyType;
5
- };
6
- export declare const descTypographyType: StaticTypographyType;
7
1
  export declare const descriptionListTokens: {
8
2
  term: {
9
3
  appearance: {
@@ -2,11 +2,6 @@ import { ddsBaseTokens } from '@norges-domstoler/dds-design-tokens';
2
2
 
3
3
  var spacing = ddsBaseTokens.spacing,
4
4
  colors = ddsBaseTokens.colors;
5
- var termTypographyTypes = {
6
- bold: 'bodySans03',
7
- small: 'bodySans01'
8
- };
9
- var descTypographyType = 'bodySans03';
10
5
  var term = {
11
6
  appearance: {
12
7
  small: {
@@ -49,4 +44,4 @@ var descriptionListTokens = {
49
44
  group: group
50
45
  };
51
46
 
52
- export { descTypographyType, descriptionListTokens, termTypographyTypes };
47
+ export { descriptionListTokens };
@@ -2,15 +2,14 @@ import { __rest } from 'tslib';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import styled from 'styled-components';
5
- import { descriptionListTokens, descTypographyType } from './DescriptionList.tokens.js';
5
+ import { descriptionListTokens } from './DescriptionList.tokens.js';
6
6
  import { Icon } from '../Icon/Icon.js';
7
7
  import { getBaseHTMLProps } from '../../types/BaseComponentProps.js';
8
- import { getFontStyling } from '../Typography/Typography.utils.js';
9
8
 
10
9
  var DListDesc = styled.dd.withConfig({
11
10
  displayName: "DescriptionListDesc__DListDesc",
12
11
  componentId: "sc-1djcf0s-0"
13
- })(["margin-inline-start:0;align-items:center;display:flex;color:", ";", " gap:", ";"], descriptionListTokens.desc.base.color, getFontStyling(descTypographyType), descriptionListTokens.desc.base.gap);
12
+ })(["margin-inline-start:0;align-items:center;display:flex;color:", ";gap:", ";"], descriptionListTokens.desc.base.color, descriptionListTokens.desc.base.gap);
14
13
  var DescriptionListDesc = /*#__PURE__*/forwardRef(function (props, ref) {
15
14
  var children = props.children,
16
15
  icon = props.icon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",