@telia/teddy 0.1.15 → 0.1.17
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/button/button.cjs +29 -26
- package/dist/components/button/button.d.ts +2 -0
- package/dist/components/button/button.js +29 -26
- package/dist/components/expandable-card/expandable-card-button.d.ts +2 -0
- package/dist/components/expandable-card/index.d.ts +2 -0
- package/dist/components/icon/index.cjs +2 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/index.js +3 -1
- package/dist/components/icon/utils.cjs +7 -0
- package/dist/components/icon/utils.d.ts +1 -0
- package/dist/components/icon/utils.js +7 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/scroll-area-button.d.ts +4 -2
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/text-field-button.d.ts +2 -0
- package/dist/components/toast/toast-root.cjs +74 -73
- package/dist/components/toast/toast-root.js +74 -73
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +256 -248
- package/package.json +1 -1
|
@@ -4,81 +4,82 @@ 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_mi6fm_1";
|
|
8
|
+
const scaleInAnimation = "_scaleInAnimation_mi6fm_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-
|
|
10
|
+
"teddy-button": "_teddy-button_mi6fm_18",
|
|
11
|
+
"teddy-button--sm": "_teddy-button--sm_mi6fm_53",
|
|
12
|
+
"teddy-button--icon-only": "_teddy-button--icon-only_mi6fm_56",
|
|
13
|
+
"teddy-button--md": "_teddy-button--md_mi6fm_59",
|
|
14
|
+
"teddy-button--lg": "_teddy-button--lg_mi6fm_65",
|
|
15
|
+
"teddy-button--full-width": "_teddy-button--full-width_mi6fm_71",
|
|
16
|
+
"teddy-button--primary": "_teddy-button--primary_mi6fm_74",
|
|
17
|
+
"teddy-button--disabled": "_teddy-button--disabled_mi6fm_78",
|
|
18
|
+
"teddy-button--primary-negative": "_teddy-button--primary-negative_mi6fm_84",
|
|
19
|
+
"teddy-button--secondary": "_teddy-button--secondary_mi6fm_96",
|
|
20
|
+
"teddy-button--secondary-negative": "_teddy-button--secondary-negative_mi6fm_107",
|
|
21
|
+
"teddy-button--expressive": "_teddy-button--expressive_mi6fm_118",
|
|
22
|
+
"teddy-button--expressive-negative": "_teddy-button--expressive-negative_mi6fm_128",
|
|
23
|
+
"teddy-button--negative": "_teddy-button--negative_mi6fm_140",
|
|
24
|
+
"teddy-button--destructive": "_teddy-button--destructive_mi6fm_147",
|
|
25
|
+
"teddy-button--destructive-negative": "_teddy-button--destructive-negative_mi6fm_157",
|
|
26
|
+
"teddy-button--tertiary-purple": "_teddy-button--tertiary-purple_mi6fm_167",
|
|
27
|
+
"teddy-button--tertiary-purple-negative": "_teddy-button--tertiary-purple-negative_mi6fm_180",
|
|
28
|
+
"teddy-button--list-item": "_teddy-button--list-item_mi6fm_195",
|
|
29
|
+
"teddy-button--text-negative": "_teddy-button--text-negative_mi6fm_214",
|
|
30
|
+
"teddy-button--text": "_teddy-button--text_mi6fm_214",
|
|
31
|
+
"teddy-button--dashed-border": "_teddy-button--dashed-border_mi6fm_261",
|
|
32
|
+
"teddy-button__loading": "_teddy-button__loading_mi6fm_265",
|
|
32
33
|
fadeInAnimation,
|
|
33
|
-
"teddy-button__spinner": "_teddy-
|
|
34
|
-
"teddy-toast": "_teddy-
|
|
35
|
-
"teddy-toast__title": "_teddy-
|
|
36
|
-
"teddy-toast__description": "_teddy-
|
|
37
|
-
"teddy-toast__icon": "_teddy-
|
|
38
|
-
"teddy-toast__close-button": "_teddy-toast__close-
|
|
39
|
-
"teddy-toast__close-button--sm": "_teddy-toast__close-button--
|
|
40
|
-
"teddy-toast__close-button--icon-only": "_teddy-toast__close-button--icon-
|
|
41
|
-
"teddy-toast__close-button--md": "_teddy-toast__close-button--
|
|
42
|
-
"teddy-toast__close-button--lg": "_teddy-toast__close-button--
|
|
43
|
-
"teddy-toast__close-button--full-width": "_teddy-toast__close-button--full-
|
|
44
|
-
"teddy-toast__close-button--primary": "_teddy-toast__close-button--
|
|
45
|
-
"teddy-toast__close-button--disabled": "_teddy-toast__close-button--
|
|
46
|
-
"teddy-toast__close-button--primary-negative": "_teddy-toast__close-button--primary-
|
|
47
|
-
"teddy-toast__close-button--secondary": "_teddy-toast__close-button--
|
|
48
|
-
"teddy-toast__close-button--secondary-negative": "_teddy-toast__close-button--secondary-
|
|
49
|
-
"teddy-toast__close-button--expressive": "_teddy-toast__close-button--
|
|
50
|
-
"teddy-toast__close-button--expressive-negative": "_teddy-toast__close-button--expressive-
|
|
51
|
-
"teddy-toast--disabled": "_teddy-toast--
|
|
52
|
-
"teddy-toast__content": "_teddy-
|
|
53
|
-
"teddy-toast__loading": "_teddy-
|
|
54
|
-
"teddy-toast--success": "_teddy-toast--
|
|
55
|
-
"teddy-toast--info": "_teddy-toast--
|
|
56
|
-
"teddy-toast--warning": "_teddy-toast--
|
|
57
|
-
"teddy-toast--error": "_teddy-toast--
|
|
58
|
-
"teddy-toast__action-button": "_teddy-toast__action-
|
|
59
|
-
"teddy-toast__cancel-button": "_teddy-toast__cancel-
|
|
60
|
-
"teddy-toast__action-button--sm": "_teddy-toast__action-button--
|
|
61
|
-
"teddy-toast__cancel-button--sm": "_teddy-toast__cancel-button--
|
|
62
|
-
"teddy-toast__cancel-button--icon-only": "_teddy-toast__cancel-button--icon-
|
|
63
|
-
"teddy-toast__action-button--md": "_teddy-toast__action-button--
|
|
64
|
-
"teddy-toast__cancel-button--md": "_teddy-toast__cancel-button--
|
|
65
|
-
"teddy-toast__action-button--lg": "_teddy-toast__action-button--
|
|
66
|
-
"teddy-toast__cancel-button--lg": "_teddy-toast__cancel-button--
|
|
67
|
-
"teddy-toast__action-button--full-width": "_teddy-toast__action-button--full-
|
|
68
|
-
"teddy-toast__cancel-button--full-width": "_teddy-toast__cancel-button--full-
|
|
69
|
-
"teddy-toast__action-button--primary": "_teddy-toast__action-button--
|
|
70
|
-
"teddy-toast__cancel-button--primary": "_teddy-toast__cancel-button--
|
|
71
|
-
"teddy-toast__cancel-button--disabled": "_teddy-toast__cancel-button--
|
|
72
|
-
"teddy-toast__action-button--primary-negative": "_teddy-toast__action-button--primary-
|
|
73
|
-
"teddy-toast__cancel-button--primary-negative": "_teddy-toast__cancel-button--primary-
|
|
74
|
-
"teddy-toast__action-button--secondary": "_teddy-toast__action-button--
|
|
75
|
-
"teddy-toast__cancel-button--secondary": "_teddy-toast__cancel-button--
|
|
76
|
-
"teddy-toast__action-button--secondary-negative": "_teddy-toast__action-button--secondary-
|
|
77
|
-
"teddy-toast__cancel-button--secondary-negative": "_teddy-toast__cancel-button--secondary-
|
|
78
|
-
"teddy-toast__action-button--expressive": "_teddy-toast__action-button--
|
|
79
|
-
"teddy-toast__cancel-button--expressive": "_teddy-toast__cancel-button--
|
|
80
|
-
"teddy-toast__action-button--expressive-negative": "_teddy-toast__action-button--expressive-
|
|
81
|
-
"teddy-toast__cancel-button--expressive-negative": "_teddy-toast__cancel-button--expressive-
|
|
34
|
+
"teddy-button__spinner": "_teddy-button__spinner_mi6fm_276",
|
|
35
|
+
"teddy-toast": "_teddy-toast_mi6fm_283",
|
|
36
|
+
"teddy-toast__title": "_teddy-toast__title_mi6fm_295",
|
|
37
|
+
"teddy-toast__description": "_teddy-toast__description_mi6fm_299",
|
|
38
|
+
"teddy-toast__icon": "_teddy-toast__icon_mi6fm_304",
|
|
39
|
+
"teddy-toast__close-button": "_teddy-toast__close-button_mi6fm_313",
|
|
40
|
+
"teddy-toast__close-button--sm": "_teddy-toast__close-button--sm_mi6fm_360",
|
|
41
|
+
"teddy-toast__close-button--icon-only": "_teddy-toast__close-button--icon-only_mi6fm_363",
|
|
42
|
+
"teddy-toast__close-button--md": "_teddy-toast__close-button--md_mi6fm_366",
|
|
43
|
+
"teddy-toast__close-button--lg": "_teddy-toast__close-button--lg_mi6fm_372",
|
|
44
|
+
"teddy-toast__close-button--full-width": "_teddy-toast__close-button--full-width_mi6fm_378",
|
|
45
|
+
"teddy-toast__close-button--primary": "_teddy-toast__close-button--primary_mi6fm_381",
|
|
46
|
+
"teddy-toast__close-button--disabled": "_teddy-toast__close-button--disabled_mi6fm_385",
|
|
47
|
+
"teddy-toast__close-button--primary-negative": "_teddy-toast__close-button--primary-negative_mi6fm_391",
|
|
48
|
+
"teddy-toast__close-button--secondary": "_teddy-toast__close-button--secondary_mi6fm_403",
|
|
49
|
+
"teddy-toast__close-button--secondary-negative": "_teddy-toast__close-button--secondary-negative_mi6fm_414",
|
|
50
|
+
"teddy-toast__close-button--expressive": "_teddy-toast__close-button--expressive_mi6fm_425",
|
|
51
|
+
"teddy-toast__close-button--expressive-negative": "_teddy-toast__close-button--expressive-negative_mi6fm_435",
|
|
52
|
+
"teddy-toast--disabled": "_teddy-toast--disabled_mi6fm_447",
|
|
53
|
+
"teddy-toast__content": "_teddy-toast__content_mi6fm_460",
|
|
54
|
+
"teddy-toast__loading": "_teddy-toast__loading_mi6fm_463",
|
|
55
|
+
"teddy-toast--success": "_teddy-toast--success_mi6fm_467",
|
|
56
|
+
"teddy-toast--info": "_teddy-toast--info_mi6fm_479",
|
|
57
|
+
"teddy-toast--warning": "_teddy-toast--warning_mi6fm_491",
|
|
58
|
+
"teddy-toast--error": "_teddy-toast--error_mi6fm_503",
|
|
59
|
+
"teddy-toast__action-button": "_teddy-toast__action-button_mi6fm_515",
|
|
60
|
+
"teddy-toast__cancel-button": "_teddy-toast__cancel-button_mi6fm_516",
|
|
61
|
+
"teddy-toast__action-button--sm": "_teddy-toast__action-button--sm_mi6fm_563",
|
|
62
|
+
"teddy-toast__cancel-button--sm": "_teddy-toast__cancel-button--sm_mi6fm_564",
|
|
63
|
+
"teddy-toast__cancel-button--icon-only": "_teddy-toast__cancel-button--icon-only_mi6fm_567",
|
|
64
|
+
"teddy-toast__action-button--md": "_teddy-toast__action-button--md_mi6fm_572",
|
|
65
|
+
"teddy-toast__cancel-button--md": "_teddy-toast__cancel-button--md_mi6fm_573",
|
|
66
|
+
"teddy-toast__action-button--lg": "_teddy-toast__action-button--lg_mi6fm_581",
|
|
67
|
+
"teddy-toast__cancel-button--lg": "_teddy-toast__cancel-button--lg_mi6fm_582",
|
|
68
|
+
"teddy-toast__action-button--full-width": "_teddy-toast__action-button--full-width_mi6fm_590",
|
|
69
|
+
"teddy-toast__cancel-button--full-width": "_teddy-toast__cancel-button--full-width_mi6fm_591",
|
|
70
|
+
"teddy-toast__action-button--primary": "_teddy-toast__action-button--primary_mi6fm_594",
|
|
71
|
+
"teddy-toast__cancel-button--primary": "_teddy-toast__cancel-button--primary_mi6fm_595",
|
|
72
|
+
"teddy-toast__cancel-button--disabled": "_teddy-toast__cancel-button--disabled_mi6fm_599",
|
|
73
|
+
"teddy-toast__action-button--primary-negative": "_teddy-toast__action-button--primary-negative_mi6fm_607",
|
|
74
|
+
"teddy-toast__cancel-button--primary-negative": "_teddy-toast__cancel-button--primary-negative_mi6fm_608",
|
|
75
|
+
"teddy-toast__action-button--secondary": "_teddy-toast__action-button--secondary_mi6fm_622",
|
|
76
|
+
"teddy-toast__cancel-button--secondary": "_teddy-toast__cancel-button--secondary_mi6fm_623",
|
|
77
|
+
"teddy-toast__action-button--secondary-negative": "_teddy-toast__action-button--secondary-negative_mi6fm_636",
|
|
78
|
+
"teddy-toast__cancel-button--secondary-negative": "_teddy-toast__cancel-button--secondary-negative_mi6fm_637",
|
|
79
|
+
"teddy-toast__action-button--expressive": "_teddy-toast__action-button--expressive_mi6fm_650",
|
|
80
|
+
"teddy-toast__cancel-button--expressive": "_teddy-toast__cancel-button--expressive_mi6fm_651",
|
|
81
|
+
"teddy-toast__action-button--expressive-negative": "_teddy-toast__action-button--expressive-negative_mi6fm_663",
|
|
82
|
+
"teddy-toast__cancel-button--expressive-negative": "_teddy-toast__cancel-button--expressive-negative_mi6fm_664",
|
|
82
83
|
scaleInAnimation
|
|
83
84
|
};
|
|
84
85
|
const rootClassName = "teddy-toast";
|
package/dist/main.cjs
CHANGED
|
@@ -37,6 +37,7 @@ const components_fieldErrorText_fieldErrorText = require("./components/field-err
|
|
|
37
37
|
const components_helperText_helperText = require("./components/helper-text/helper-text.cjs");
|
|
38
38
|
const iconsHref = require("./assets/sprite.269ba410-teddy.svg");
|
|
39
39
|
const components_icon_icon = require("./components/icon/icon.cjs");
|
|
40
|
+
const components_icon_utils = require("./components/icon/utils.cjs");
|
|
40
41
|
const components_icon_AllIcons = require("./components/icon/AllIcons.cjs");
|
|
41
42
|
const components_input_index = require("./components/input/index.cjs");
|
|
42
43
|
const components_label_label = require("./components/label/label.cjs");
|
|
@@ -99,6 +100,7 @@ exports.FieldErrorText = components_fieldErrorText_fieldErrorText.FieldErrorText
|
|
|
99
100
|
exports.HelperText = components_helperText_helperText.HelperText;
|
|
100
101
|
exports.iconsHref = iconsHref;
|
|
101
102
|
exports.Icon = components_icon_icon.Icon;
|
|
103
|
+
exports.isIconName = components_icon_utils.isIconName;
|
|
102
104
|
exports.AllIcons = components_icon_AllIcons;
|
|
103
105
|
exports.InputGroup = components_input_index.InputGroup;
|
|
104
106
|
exports.Label = components_label_label.Label;
|
package/dist/main.js
CHANGED
|
@@ -35,6 +35,7 @@ import { FieldErrorText } from "./components/field-error-text/field-error-text.j
|
|
|
35
35
|
import { HelperText } from "./components/helper-text/helper-text.js";
|
|
36
36
|
import { default as default2 } from "./assets/sprite.269ba410-teddy.svg";
|
|
37
37
|
import { Icon } from "./components/icon/icon.js";
|
|
38
|
+
import { isIconName } from "./components/icon/utils.js";
|
|
38
39
|
import { default as default3 } from "./components/icon/AllIcons.js";
|
|
39
40
|
import { InputGroup } from "./components/input/index.js";
|
|
40
41
|
import { Label } from "./components/label/label.js";
|
|
@@ -114,6 +115,7 @@ export {
|
|
|
114
115
|
v2 as breakpoint,
|
|
115
116
|
v3 as color,
|
|
116
117
|
default2 as iconsHref,
|
|
118
|
+
isIconName,
|
|
117
119
|
v4 as motion,
|
|
118
120
|
v5 as shadow,
|
|
119
121
|
v6 as spacing,
|