@norges-domstoler/dds-components 0.0.0-dev-20240607104628 → 0.0.0-dev-20240610074922
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.css +0 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -114,7 +114,7 @@ type Callback<T> = (e: T) => void;
|
|
|
114
114
|
declare function TextOverflowEllipsisWrapper({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
115
115
|
declare function TextOverflowEllipsisInner({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
116
116
|
|
|
117
|
-
type DDSTextColor = 'textOnAction' | 'textOnInverse' | 'textOnStatusDefault' | 'textOnStatusStrong' | 'textActionResting' | 'textActionHover' | 'textActionVisited' | 'textDefault' | 'textRequiredfield' | 'textSubtle' | 'textMedium' | 'iconOnAction' | 'iconOnInfoDefault' | 'iconOnSuccessDefault' | 'iconOnDangerDefault' | 'iconOnWarningDefault' | 'iconOnInfoStrong' | 'iconOnSuccessStrong' | 'iconOnDangerStrong' | 'iconOnWarningStrong' | 'iconOnInverse' | 'iconActionResting' | 'iconActionHover' | 'iconDefault' | 'iconSubtle' | 'iconMedium';
|
|
117
|
+
type DDSTextColor = 'textOnAction' | 'textOnInverse' | 'textOnStatusDefault' | 'textOnStatusStrong' | 'textActionResting' | 'textActionHover' | 'textActionVisited' | 'textDefault' | 'textRequiredfield' | 'textSubtle' | 'textMedium' | 'textOnNotification' | 'iconOnAction' | 'iconOnInfoDefault' | 'iconOnSuccessDefault' | 'iconOnDangerDefault' | 'iconOnWarningDefault' | 'iconOnInfoStrong' | 'iconOnSuccessStrong' | 'iconOnDangerStrong' | 'iconOnWarningStrong' | 'iconOnInverse' | 'iconActionResting' | 'iconActionHover' | 'iconDefault' | 'iconSubtle' | 'iconMedium';
|
|
118
118
|
type TextColor = DDSTextColor | Property.Color;
|
|
119
119
|
|
|
120
120
|
type TypographyBodySansType = 'bodySans01' | 'bodySans02' | 'bodySans03' | 'bodySans04';
|
package/dist/index.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ type Callback<T> = (e: T) => void;
|
|
|
114
114
|
declare function TextOverflowEllipsisWrapper({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
115
115
|
declare function TextOverflowEllipsisInner({ className, ...rest }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
116
116
|
|
|
117
|
-
type DDSTextColor = 'textOnAction' | 'textOnInverse' | 'textOnStatusDefault' | 'textOnStatusStrong' | 'textActionResting' | 'textActionHover' | 'textActionVisited' | 'textDefault' | 'textRequiredfield' | 'textSubtle' | 'textMedium' | 'iconOnAction' | 'iconOnInfoDefault' | 'iconOnSuccessDefault' | 'iconOnDangerDefault' | 'iconOnWarningDefault' | 'iconOnInfoStrong' | 'iconOnSuccessStrong' | 'iconOnDangerStrong' | 'iconOnWarningStrong' | 'iconOnInverse' | 'iconActionResting' | 'iconActionHover' | 'iconDefault' | 'iconSubtle' | 'iconMedium';
|
|
117
|
+
type DDSTextColor = 'textOnAction' | 'textOnInverse' | 'textOnStatusDefault' | 'textOnStatusStrong' | 'textActionResting' | 'textActionHover' | 'textActionVisited' | 'textDefault' | 'textRequiredfield' | 'textSubtle' | 'textMedium' | 'textOnNotification' | 'iconOnAction' | 'iconOnInfoDefault' | 'iconOnSuccessDefault' | 'iconOnDangerDefault' | 'iconOnWarningDefault' | 'iconOnInfoStrong' | 'iconOnSuccessStrong' | 'iconOnDangerStrong' | 'iconOnWarningStrong' | 'iconOnInverse' | 'iconActionResting' | 'iconActionHover' | 'iconDefault' | 'iconSubtle' | 'iconMedium';
|
|
118
118
|
type TextColor = DDSTextColor | Property.Color;
|
|
119
119
|
|
|
120
120
|
type TypographyBodySansType = 'bodySans01' | 'bodySans02' | 'bodySans03' | 'bodySans04';
|
package/dist/index.js
CHANGED
|
@@ -502,6 +502,7 @@ var textColors = {
|
|
|
502
502
|
textRequiredfield: "var(--dds-color-text-requiredfield)",
|
|
503
503
|
textSubtle: "var(--dds-color-text-subtle)",
|
|
504
504
|
textMedium: "var(--dds-color-text-medium)",
|
|
505
|
+
textOnNotification: "var(--dds-color-text-on-notification)",
|
|
505
506
|
iconOnAction: "var(--dds-color-icon-on-action)",
|
|
506
507
|
iconOnInfoDefault: "var(--dds-color-icon-on-info-default)",
|
|
507
508
|
iconOnSuccessDefault: "var(--dds-color-icon-on-success-default)",
|
|
@@ -530,6 +531,7 @@ var textColorsArray = [
|
|
|
530
531
|
"textRequiredfield",
|
|
531
532
|
"textSubtle",
|
|
532
533
|
"textMedium",
|
|
534
|
+
"textOnNotification",
|
|
533
535
|
"iconOnAction",
|
|
534
536
|
"iconOnInfoDefault",
|
|
535
537
|
"iconOnSuccessDefault",
|
|
@@ -2396,10 +2398,6 @@ var Typography = (0, import_react3.forwardRef)(
|
|
|
2396
2398
|
const { style: htmlPropsStyle, ...restHtmlProps } = htmlProps;
|
|
2397
2399
|
const as = propAs ? propAs : getElementType(typographyType);
|
|
2398
2400
|
const typographyCn = getTypographyCn(typographyType);
|
|
2399
|
-
const styleVariables = {
|
|
2400
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2401
|
-
["--dds-typography-color"]: color && getTextColor(color)
|
|
2402
|
-
};
|
|
2403
2401
|
let relProp;
|
|
2404
2402
|
let targetProp;
|
|
2405
2403
|
let externalLinkProp;
|
|
@@ -2439,7 +2437,7 @@ var Typography = (0, import_react3.forwardRef)(
|
|
|
2439
2437
|
style: {
|
|
2440
2438
|
...htmlPropsStyle,
|
|
2441
2439
|
...style,
|
|
2442
|
-
|
|
2440
|
+
color: color && getTextColor(color)
|
|
2443
2441
|
},
|
|
2444
2442
|
rel: relProp,
|
|
2445
2443
|
children: [
|