@telia/teddy 0.7.44 → 0.7.45
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.
|
@@ -5,13 +5,14 @@ const React = require("react");
|
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-ribbon": "_teddy-
|
|
9
|
-
"teddy-ribbon--rounded": "_teddy-ribbon--
|
|
10
|
-
"teddy-ribbon--backgroundColor-orange-50": "_teddy-ribbon--backgroundColor-orange-
|
|
11
|
-
"teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-
|
|
12
|
-
"teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-
|
|
13
|
-
"teddy-ribbon--
|
|
14
|
-
"teddy-ribbon--iconPlacement-
|
|
8
|
+
"teddy-ribbon": "_teddy-ribbon_8vv9b_2",
|
|
9
|
+
"teddy-ribbon--rounded": "_teddy-ribbon--rounded_8vv9b_6",
|
|
10
|
+
"teddy-ribbon--backgroundColor-orange-50": "_teddy-ribbon--backgroundColor-orange-50_8vv9b_9",
|
|
11
|
+
"teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-100_8vv9b_12",
|
|
12
|
+
"teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-50_8vv9b_15",
|
|
13
|
+
"teddy-ribbon--backgroundColor-purple-50": "_teddy-ribbon--backgroundColor-purple-50_8vv9b_18",
|
|
14
|
+
"teddy-ribbon--iconPlacement-top": "_teddy-ribbon--iconPlacement-top_8vv9b_26",
|
|
15
|
+
"teddy-ribbon--iconPlacement-center": "_teddy-ribbon--iconPlacement-center_8vv9b_29"
|
|
15
16
|
};
|
|
16
17
|
const rootClassName = "teddy-ribbon";
|
|
17
18
|
const Root = React.forwardRef(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
3
|
export declare const rootClassName = "teddy-ribbon";
|
|
4
|
-
export type RootProps = React.ComponentPropsWithoutRef<
|
|
5
|
-
variant?: 'orange-100' | 'green-50' | 'orange-50';
|
|
6
|
-
iconPlacement?:
|
|
4
|
+
export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
5
|
+
variant?: 'orange-100' | 'green-50' | 'orange-50' | 'purple-50';
|
|
6
|
+
iconPlacement?: 'top' | 'center';
|
|
7
7
|
rounded: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
-
variant?: "orange-100" | "green-50" | "orange-50" | undefined;
|
|
10
|
+
variant?: "orange-100" | "green-50" | "orange-50" | "purple-50" | undefined;
|
|
11
11
|
iconPlacement?: "center" | "top" | undefined;
|
|
12
12
|
rounded: boolean;
|
|
13
13
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,13 +3,14 @@ import React__default from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { Flex } from "../flex/flex.js";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-ribbon": "_teddy-
|
|
7
|
-
"teddy-ribbon--rounded": "_teddy-ribbon--
|
|
8
|
-
"teddy-ribbon--backgroundColor-orange-50": "_teddy-ribbon--backgroundColor-orange-
|
|
9
|
-
"teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-
|
|
10
|
-
"teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-
|
|
11
|
-
"teddy-ribbon--
|
|
12
|
-
"teddy-ribbon--iconPlacement-
|
|
6
|
+
"teddy-ribbon": "_teddy-ribbon_8vv9b_2",
|
|
7
|
+
"teddy-ribbon--rounded": "_teddy-ribbon--rounded_8vv9b_6",
|
|
8
|
+
"teddy-ribbon--backgroundColor-orange-50": "_teddy-ribbon--backgroundColor-orange-50_8vv9b_9",
|
|
9
|
+
"teddy-ribbon--backgroundColor-orange-100": "_teddy-ribbon--backgroundColor-orange-100_8vv9b_12",
|
|
10
|
+
"teddy-ribbon--backgroundColor-green-50": "_teddy-ribbon--backgroundColor-green-50_8vv9b_15",
|
|
11
|
+
"teddy-ribbon--backgroundColor-purple-50": "_teddy-ribbon--backgroundColor-purple-50_8vv9b_18",
|
|
12
|
+
"teddy-ribbon--iconPlacement-top": "_teddy-ribbon--iconPlacement-top_8vv9b_26",
|
|
13
|
+
"teddy-ribbon--iconPlacement-center": "_teddy-ribbon--iconPlacement-center_8vv9b_29"
|
|
13
14
|
};
|
|
14
15
|
const rootClassName = "teddy-ribbon";
|
|
15
16
|
const Root = React__default.forwardRef(
|
package/dist/style.css
CHANGED
|
@@ -5222,30 +5222,34 @@
|
|
|
5222
5222
|
._teddy-radio-card-group__card-group-label--required_upgkn_177::before {
|
|
5223
5223
|
content: "* ";
|
|
5224
5224
|
}@layer ribbon {
|
|
5225
|
-
._teddy-
|
|
5225
|
+
._teddy-ribbon_8vv9b_2 {
|
|
5226
5226
|
padding: var(--teddy-spacing-150);
|
|
5227
5227
|
width: 100%;
|
|
5228
5228
|
}
|
|
5229
|
-
._teddy-ribbon--
|
|
5229
|
+
._teddy-ribbon--rounded_8vv9b_6 {
|
|
5230
5230
|
border-radius: var(--teddy-border-radius-md);
|
|
5231
5231
|
}
|
|
5232
|
-
._teddy-ribbon--backgroundColor-orange-
|
|
5232
|
+
._teddy-ribbon--backgroundColor-orange-50_8vv9b_9 {
|
|
5233
5233
|
background-color: var(--teddy-color-orange-50);
|
|
5234
5234
|
}
|
|
5235
|
-
._teddy-ribbon--backgroundColor-orange-
|
|
5235
|
+
._teddy-ribbon--backgroundColor-orange-100_8vv9b_12 {
|
|
5236
5236
|
background-color: var(--teddy-color-orange-100);
|
|
5237
5237
|
}
|
|
5238
|
-
._teddy-ribbon--backgroundColor-green-
|
|
5238
|
+
._teddy-ribbon--backgroundColor-green-50_8vv9b_15 {
|
|
5239
5239
|
background-color: var(--teddy-color-green-50);
|
|
5240
5240
|
}
|
|
5241
|
-
._teddy-
|
|
5241
|
+
._teddy-ribbon--backgroundColor-purple-50_8vv9b_18 {
|
|
5242
|
+
background-color: var(--teddy-color-purple-50);
|
|
5243
|
+
color: var(--teddy-color-purple-800);
|
|
5244
|
+
}
|
|
5245
|
+
._teddy-ribbon_8vv9b_2 svg {
|
|
5242
5246
|
flex-shrink: 0;
|
|
5243
5247
|
margin-right: var(--teddy-spacing-100);
|
|
5244
5248
|
}
|
|
5245
|
-
._teddy-ribbon--iconPlacement-
|
|
5249
|
+
._teddy-ribbon--iconPlacement-top_8vv9b_26 svg {
|
|
5246
5250
|
align-self: flex-start;
|
|
5247
5251
|
}
|
|
5248
|
-
._teddy-ribbon--iconPlacement-
|
|
5252
|
+
._teddy-ribbon--iconPlacement-center_8vv9b_29 svg {
|
|
5249
5253
|
align-self: center;
|
|
5250
5254
|
}
|
|
5251
5255
|
}._teddy-expandable-card_1qwo3_1 {
|