@telia/teddy 0.1.16 → 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/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/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const iconsHref = require("../../assets/sprite.269ba410-teddy.svg");
|
|
4
4
|
const components_icon_icon = require("./icon.cjs");
|
|
5
|
+
const components_icon_utils = require("./utils.cjs");
|
|
5
6
|
const components_icon_AllIcons = require("./AllIcons.cjs");
|
|
6
7
|
exports.iconsHref = iconsHref;
|
|
7
8
|
exports.Icon = components_icon_icon.Icon;
|
|
9
|
+
exports.isIconName = components_icon_utils.isIconName;
|
|
8
10
|
exports.AllIcons = components_icon_AllIcons;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as default2 } from "../../assets/sprite.269ba410-teddy.svg";
|
|
2
2
|
import { Icon } from "./icon.js";
|
|
3
|
+
import { isIconName } from "./utils.js";
|
|
3
4
|
import { default as default3 } from "./AllIcons.js";
|
|
4
5
|
export {
|
|
5
6
|
default3 as AllIcons,
|
|
6
7
|
Icon,
|
|
7
|
-
default2 as iconsHref
|
|
8
|
+
default2 as iconsHref,
|
|
9
|
+
isIconName
|
|
8
10
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const icons_name = require("../../icons/name.cjs");
|
|
4
|
+
const isIconName = (value) => {
|
|
5
|
+
return value !== null && icons_name.iconNames.includes(value);
|
|
6
|
+
};
|
|
7
|
+
exports.isIconName = isIconName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isIconName: (value: string | null) => value is "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "close" | "error" | "focus" | "play" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
@@ -37,6 +37,7 @@ const components_fieldErrorText_fieldErrorText = require("./field-error-text/fie
|
|
|
37
37
|
const components_helperText_helperText = require("./helper-text/helper-text.cjs");
|
|
38
38
|
const iconsHref = require("../assets/sprite.269ba410-teddy.svg");
|
|
39
39
|
const components_icon_icon = require("./icon/icon.cjs");
|
|
40
|
+
const components_icon_utils = require("./icon/utils.cjs");
|
|
40
41
|
const components_icon_AllIcons = require("./icon/AllIcons.cjs");
|
|
41
42
|
const components_input_index = require("./input/index.cjs");
|
|
42
43
|
const components_label_label = require("./label/label.cjs");
|
|
@@ -92,6 +93,7 @@ exports.FieldErrorText = components_fieldErrorText_fieldErrorText.FieldErrorText
|
|
|
92
93
|
exports.HelperText = components_helperText_helperText.HelperText;
|
|
93
94
|
exports.iconsHref = iconsHref;
|
|
94
95
|
exports.Icon = components_icon_icon.Icon;
|
|
96
|
+
exports.isIconName = components_icon_utils.isIconName;
|
|
95
97
|
exports.AllIcons = components_icon_AllIcons;
|
|
96
98
|
exports.InputGroup = components_input_index.InputGroup;
|
|
97
99
|
exports.Label = components_label_label.Label;
|
package/dist/components/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import { FieldErrorText } from "./field-error-text/field-error-text.js";
|
|
|
35
35
|
import { HelperText } from "./helper-text/helper-text.js";
|
|
36
36
|
import { default as default2 } from "../assets/sprite.269ba410-teddy.svg";
|
|
37
37
|
import { Icon } from "./icon/icon.js";
|
|
38
|
+
import { isIconName } from "./icon/utils.js";
|
|
38
39
|
import { default as default3 } from "./icon/AllIcons.js";
|
|
39
40
|
import { InputGroup } from "./input/index.js";
|
|
40
41
|
import { Label } from "./label/label.js";
|
|
@@ -104,5 +105,6 @@ export {
|
|
|
104
105
|
Tooltip,
|
|
105
106
|
VisuallyHidden,
|
|
106
107
|
default2 as iconsHref,
|
|
108
|
+
isIconName,
|
|
107
109
|
toast
|
|
108
110
|
};
|
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,
|