@telia/teddy 0.0.63 → 0.0.64
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/components/checkbox/checkbox-group-item.cjs +2 -2
- package/dist/components/checkbox/checkbox-group-item.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group-item.js +2 -2
- package/dist/components/checkbox/checkbox-group-label.cjs +2 -2
- package/dist/components/checkbox/checkbox-group-label.js +1 -1
- package/dist/components/checkbox/checkbox-group.cjs +1 -1
- package/dist/components/checkbox/checkbox-group.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.cjs +4 -4
- package/dist/components/checkbox/checkbox-indicator.js +1 -1
- package/dist/components/checkbox/{checkbox-label.cjs → checkbox-root.cjs} +3 -3
- package/dist/components/checkbox/{checkbox-label.d.ts → checkbox-root.d.ts} +2 -2
- package/dist/components/checkbox/{checkbox-label.js → checkbox-root.js} +3 -3
- package/dist/components/checkbox/checkbox-trigger.cjs +2 -2
- package/dist/components/checkbox/checkbox-trigger.js +1 -1
- package/dist/components/checkbox/index.cjs +5 -3
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +5 -3
- package/dist/components/navigation-menu/global-navigation/utils.cjs +10 -10
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +16 -0
- package/dist/components/navigation-menu/global-navigation/utils.js +10 -10
- package/dist/components/toast/toast-root.cjs +75 -73
- package/dist/components/toast/toast-root.js +75 -73
- package/dist/style.css +204 -179
- package/package.json +1 -1
|
@@ -4,79 +4,81 @@ import { Toaster } from "sonner";
|
|
|
4
4
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
5
5
|
import { Icon } from "../icon/icon.js";
|
|
6
6
|
import { Spinner } from "../spinner/spinner.js";
|
|
7
|
-
const fadeInAnimation = "
|
|
8
|
-
const scaleInAnimation = "
|
|
7
|
+
const fadeInAnimation = "_fadeInAnimation_r0i1g_1";
|
|
8
|
+
const scaleInAnimation = "_scaleInAnimation_r0i1g_1";
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-button": "_teddy-
|
|
11
|
-
"teddy-button--sm": "_teddy-button--
|
|
12
|
-
"teddy-button--icon-only": "_teddy-button--icon-
|
|
13
|
-
"teddy-button--md": "_teddy-button--
|
|
14
|
-
"teddy-button--lg": "_teddy-button--
|
|
15
|
-
"teddy-button--full-width": "_teddy-button--full-
|
|
16
|
-
"teddy-button--primary": "_teddy-button--
|
|
17
|
-
"teddy-button--disabled": "_teddy-button--
|
|
18
|
-
"teddy-button--primary-negative": "_teddy-button--primary-
|
|
19
|
-
"teddy-button--secondary": "_teddy-button--
|
|
20
|
-
"teddy-button--secondary-negative": "_teddy-button--secondary-
|
|
21
|
-
"teddy-button--expressive": "_teddy-button--
|
|
22
|
-
"teddy-button--expressive-negative": "_teddy-button--expressive-
|
|
23
|
-
"teddy-button--negative": "_teddy-button--
|
|
24
|
-
"teddy-button--destructive": "_teddy-button--
|
|
25
|
-
"teddy-button--destructive-negative": "_teddy-button--destructive-
|
|
26
|
-
"teddy-button--tertiary-purple": "_teddy-button--tertiary-
|
|
27
|
-
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-
|
|
28
|
-
"teddy-button--list-item": "_teddy-button--list-
|
|
29
|
-
"teddy-button--text-negative": "_teddy-button--text-
|
|
30
|
-
"teddy-button--text": "_teddy-button--
|
|
31
|
-
"teddy-button__loading": "_teddy-
|
|
10
|
+
"teddy-button": "_teddy-button_r0i1g_18",
|
|
11
|
+
"teddy-button--sm": "_teddy-button--sm_r0i1g_53",
|
|
12
|
+
"teddy-button--icon-only": "_teddy-button--icon-only_r0i1g_56",
|
|
13
|
+
"teddy-button--md": "_teddy-button--md_r0i1g_59",
|
|
14
|
+
"teddy-button--lg": "_teddy-button--lg_r0i1g_65",
|
|
15
|
+
"teddy-button--full-width": "_teddy-button--full-width_r0i1g_71",
|
|
16
|
+
"teddy-button--primary": "_teddy-button--primary_r0i1g_74",
|
|
17
|
+
"teddy-button--disabled": "_teddy-button--disabled_r0i1g_78",
|
|
18
|
+
"teddy-button--primary-negative": "_teddy-button--primary-negative_r0i1g_84",
|
|
19
|
+
"teddy-button--secondary": "_teddy-button--secondary_r0i1g_96",
|
|
20
|
+
"teddy-button--secondary-negative": "_teddy-button--secondary-negative_r0i1g_107",
|
|
21
|
+
"teddy-button--expressive": "_teddy-button--expressive_r0i1g_118",
|
|
22
|
+
"teddy-button--expressive-negative": "_teddy-button--expressive-negative_r0i1g_128",
|
|
23
|
+
"teddy-button--negative": "_teddy-button--negative_r0i1g_140",
|
|
24
|
+
"teddy-button--destructive": "_teddy-button--destructive_r0i1g_147",
|
|
25
|
+
"teddy-button--destructive-negative": "_teddy-button--destructive-negative_r0i1g_157",
|
|
26
|
+
"teddy-button--tertiary-purple": "_teddy-button--tertiary-purple_r0i1g_167",
|
|
27
|
+
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-negative_r0i1g_180",
|
|
28
|
+
"teddy-button--list-item": "_teddy-button--list-item_r0i1g_195",
|
|
29
|
+
"teddy-button--text-negative": "_teddy-button--text-negative_r0i1g_214",
|
|
30
|
+
"teddy-button--text": "_teddy-button--text_r0i1g_214",
|
|
31
|
+
"teddy-button__loading": "_teddy-button__loading_r0i1g_261",
|
|
32
32
|
fadeInAnimation,
|
|
33
|
-
"teddy-button__spinner": "_teddy-
|
|
34
|
-
"teddy-toast": "_teddy-
|
|
35
|
-
"teddy-toast__title": "_teddy-
|
|
36
|
-
"teddy-toast__description": "_teddy-
|
|
37
|
-
"teddy-
|
|
38
|
-
"teddy-toast__close-button
|
|
39
|
-
"teddy-toast__close-button--
|
|
40
|
-
"teddy-toast__close-button--
|
|
41
|
-
"teddy-toast__close-button--
|
|
42
|
-
"teddy-toast__close-button--
|
|
43
|
-
"teddy-toast__close-button--
|
|
44
|
-
"teddy-toast__close-button--
|
|
45
|
-
"teddy-toast__close-button--
|
|
46
|
-
"teddy-toast__close-button--
|
|
47
|
-
"teddy-toast__close-button--secondary
|
|
48
|
-
"teddy-toast__close-button--
|
|
49
|
-
"teddy-toast__close-button--expressive
|
|
50
|
-
"teddy-
|
|
51
|
-
"teddy-toast--
|
|
52
|
-
"teddy-
|
|
53
|
-
"teddy-
|
|
54
|
-
"teddy-toast--
|
|
55
|
-
"teddy-toast--
|
|
56
|
-
"teddy-
|
|
57
|
-
"teddy-
|
|
58
|
-
"teddy-toast__action-button
|
|
59
|
-
"teddy-toast__cancel-button
|
|
60
|
-
"teddy-
|
|
61
|
-
"teddy-
|
|
62
|
-
"teddy-toast__cancel-button--
|
|
63
|
-
"teddy-toast__action-button--
|
|
64
|
-
"teddy-toast__cancel-button--
|
|
65
|
-
"teddy-toast__action-button--
|
|
66
|
-
"teddy-toast__cancel-button--
|
|
67
|
-
"teddy-toast__action-button--
|
|
68
|
-
"teddy-toast__cancel-button--
|
|
69
|
-
"teddy-
|
|
70
|
-
"teddy-
|
|
71
|
-
"teddy-toast__cancel-button--
|
|
72
|
-
"teddy-toast__action-button--
|
|
73
|
-
"teddy-toast__cancel-button--
|
|
74
|
-
"teddy-toast__action-button--secondary
|
|
75
|
-
"teddy-toast__cancel-button--secondary
|
|
76
|
-
"teddy-toast__action-button--
|
|
77
|
-
"teddy-toast__cancel-button--
|
|
78
|
-
"teddy-toast__action-button--expressive
|
|
79
|
-
"teddy-toast__cancel-button--expressive
|
|
33
|
+
"teddy-button__spinner": "_teddy-button__spinner_r0i1g_272",
|
|
34
|
+
"teddy-toast": "_teddy-toast_r0i1g_279",
|
|
35
|
+
"teddy-toast__title": "_teddy-toast__title_r0i1g_291",
|
|
36
|
+
"teddy-toast__description": "_teddy-toast__description_r0i1g_295",
|
|
37
|
+
"teddy-toast__icon": "_teddy-toast__icon_r0i1g_300",
|
|
38
|
+
"teddy-toast__close-button": "_teddy-toast__close-button_r0i1g_309",
|
|
39
|
+
"teddy-toast__close-button--sm": "_teddy-toast__close-button--sm_r0i1g_356",
|
|
40
|
+
"teddy-toast__close-button--icon-only": "_teddy-toast__close-button--icon-only_r0i1g_359",
|
|
41
|
+
"teddy-toast__close-button--md": "_teddy-toast__close-button--md_r0i1g_362",
|
|
42
|
+
"teddy-toast__close-button--lg": "_teddy-toast__close-button--lg_r0i1g_368",
|
|
43
|
+
"teddy-toast__close-button--full-width": "_teddy-toast__close-button--full-width_r0i1g_374",
|
|
44
|
+
"teddy-toast__close-button--primary": "_teddy-toast__close-button--primary_r0i1g_377",
|
|
45
|
+
"teddy-toast__close-button--disabled": "_teddy-toast__close-button--disabled_r0i1g_381",
|
|
46
|
+
"teddy-toast__close-button--primary-negative": "_teddy-toast__close-button--primary-negative_r0i1g_387",
|
|
47
|
+
"teddy-toast__close-button--secondary": "_teddy-toast__close-button--secondary_r0i1g_399",
|
|
48
|
+
"teddy-toast__close-button--secondary-negative": "_teddy-toast__close-button--secondary-negative_r0i1g_410",
|
|
49
|
+
"teddy-toast__close-button--expressive": "_teddy-toast__close-button--expressive_r0i1g_421",
|
|
50
|
+
"teddy-toast__close-button--expressive-negative": "_teddy-toast__close-button--expressive-negative_r0i1g_431",
|
|
51
|
+
"teddy-toast--disabled": "_teddy-toast--disabled_r0i1g_443",
|
|
52
|
+
"teddy-toast__content": "_teddy-toast__content_r0i1g_456",
|
|
53
|
+
"teddy-toast__loading": "_teddy-toast__loading_r0i1g_459",
|
|
54
|
+
"teddy-toast--success": "_teddy-toast--success_r0i1g_463",
|
|
55
|
+
"teddy-toast--info": "_teddy-toast--info_r0i1g_475",
|
|
56
|
+
"teddy-toast--warning": "_teddy-toast--warning_r0i1g_487",
|
|
57
|
+
"teddy-toast--error": "_teddy-toast--error_r0i1g_499",
|
|
58
|
+
"teddy-toast__action-button": "_teddy-toast__action-button_r0i1g_511",
|
|
59
|
+
"teddy-toast__cancel-button": "_teddy-toast__cancel-button_r0i1g_512",
|
|
60
|
+
"teddy-toast__action-button--sm": "_teddy-toast__action-button--sm_r0i1g_559",
|
|
61
|
+
"teddy-toast__cancel-button--sm": "_teddy-toast__cancel-button--sm_r0i1g_560",
|
|
62
|
+
"teddy-toast__cancel-button--icon-only": "_teddy-toast__cancel-button--icon-only_r0i1g_563",
|
|
63
|
+
"teddy-toast__action-button--md": "_teddy-toast__action-button--md_r0i1g_568",
|
|
64
|
+
"teddy-toast__cancel-button--md": "_teddy-toast__cancel-button--md_r0i1g_569",
|
|
65
|
+
"teddy-toast__action-button--lg": "_teddy-toast__action-button--lg_r0i1g_577",
|
|
66
|
+
"teddy-toast__cancel-button--lg": "_teddy-toast__cancel-button--lg_r0i1g_578",
|
|
67
|
+
"teddy-toast__action-button--full-width": "_teddy-toast__action-button--full-width_r0i1g_586",
|
|
68
|
+
"teddy-toast__cancel-button--full-width": "_teddy-toast__cancel-button--full-width_r0i1g_587",
|
|
69
|
+
"teddy-toast__action-button--primary": "_teddy-toast__action-button--primary_r0i1g_590",
|
|
70
|
+
"teddy-toast__cancel-button--primary": "_teddy-toast__cancel-button--primary_r0i1g_591",
|
|
71
|
+
"teddy-toast__cancel-button--disabled": "_teddy-toast__cancel-button--disabled_r0i1g_595",
|
|
72
|
+
"teddy-toast__action-button--primary-negative": "_teddy-toast__action-button--primary-negative_r0i1g_603",
|
|
73
|
+
"teddy-toast__cancel-button--primary-negative": "_teddy-toast__cancel-button--primary-negative_r0i1g_604",
|
|
74
|
+
"teddy-toast__action-button--secondary": "_teddy-toast__action-button--secondary_r0i1g_618",
|
|
75
|
+
"teddy-toast__cancel-button--secondary": "_teddy-toast__cancel-button--secondary_r0i1g_619",
|
|
76
|
+
"teddy-toast__action-button--secondary-negative": "_teddy-toast__action-button--secondary-negative_r0i1g_632",
|
|
77
|
+
"teddy-toast__cancel-button--secondary-negative": "_teddy-toast__cancel-button--secondary-negative_r0i1g_633",
|
|
78
|
+
"teddy-toast__action-button--expressive": "_teddy-toast__action-button--expressive_r0i1g_646",
|
|
79
|
+
"teddy-toast__cancel-button--expressive": "_teddy-toast__cancel-button--expressive_r0i1g_647",
|
|
80
|
+
"teddy-toast__action-button--expressive-negative": "_teddy-toast__action-button--expressive-negative_r0i1g_659",
|
|
81
|
+
"teddy-toast__cancel-button--expressive-negative": "_teddy-toast__cancel-button--expressive-negative_r0i1g_660",
|
|
80
82
|
scaleInAnimation
|
|
81
83
|
};
|
|
82
84
|
const rootClassName = "teddy-toast";
|
|
@@ -96,7 +98,6 @@ const Root = ({ className, ...props }) => {
|
|
|
96
98
|
},
|
|
97
99
|
closeButton: true,
|
|
98
100
|
toastOptions: {
|
|
99
|
-
// unstyled: true,
|
|
100
101
|
className: classes,
|
|
101
102
|
classNames: {
|
|
102
103
|
error: clsx(styles[`${rootClassName}--error`], (_b = (_a = props.toastOptions) == null ? void 0 : _a.classNames) == null ? void 0 : _b.error),
|
|
@@ -108,7 +109,8 @@ const Root = ({ className, ...props }) => {
|
|
|
108
109
|
title: styles[`${rootClassName}__title`],
|
|
109
110
|
closeButton: styles[`${rootClassName}__close-button`],
|
|
110
111
|
actionButton: styles[`${rootClassName}__action-button`],
|
|
111
|
-
cancelButton: styles[`${rootClassName}__cancel-button`]
|
|
112
|
+
cancelButton: styles[`${rootClassName}__cancel-button`],
|
|
113
|
+
content: styles[`${rootClassName}__content`]
|
|
112
114
|
}
|
|
113
115
|
},
|
|
114
116
|
...props
|