@stndrds/constants 0.1.0-alpha.14
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/README.md +210 -0
- package/dist/index.d.mts +1774 -0
- package/dist/index.d.ts +1774 -0
- package/dist/index.js +2820 -0
- package/dist/index.mjs +2723 -0
- package/package.json +49 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1774 @@
|
|
|
1
|
+
declare const ICONS: readonly ["a-arrow-down", "a-arrow-up", "academic-hat", "accessibility", "activity-square", "activity", "add-queue", "aeroplane", "air-conditioner", "airplay", "airpods", "alarm-check", "alarm-minus", "alarm-plus", "alarm-smoke", "alarm-snooze", "alarm-x", "alarm", "album", "align-bottom", "align-horizontal", "align-left", "align-right", "align-top", "align-vertical", "alt", "ambulance", "ampersand-square", "ampersand", "ampersands", "anchor", "angry-circle", "angry-ghost", "angry-square", "annoyed-circle", "annoyed-ghost", "annoyed-square", "aperture", "api", "ar", "archive", "arrow-diagonal-one", "arrow-diagonal-two", "arrow-down-circle", "arrow-down-left-circle", "arrow-down-left-square", "arrow-down-left-waves", "arrow-down-left", "arrow-down-right-circle", "arrow-down-right-square", "arrow-down-right-waves", "arrow-down-right", "arrow-down-square", "arrow-down-waves", "arrow-down", "arrow-left-circle", "arrow-left-right", "arrow-left-square", "arrow-left-waves", "arrow-left", "arrow-long-down-left", "arrow-long-down-right", "arrow-long-down", "arrow-long-left", "arrow-long-right", "arrow-long-up-left", "arrow-long-up-right", "arrow-long-up", "arrow-right-circle", "arrow-right-square", "arrow-right-waves", "arrow-right", "arrow-up-circle", "arrow-up-down", "arrow-up-left-circle", "arrow-up-left-square", "arrow-up-left-waves", "arrow-up-left", "arrow-up-right-circle", "arrow-up-right-square", "arrow-up-right-waves", "arrow-up-right", "arrow-up-square", "arrow-up-waves", "arrow-up", "asterisk-circle", "asterisk-diamond", "asterisk-hexagon", "asterisk-octagon", "asterisk-square", "asterisk-waves", "at", "atom", "baby", "backpack", "badge", "baggage-claim", "ban", "bank", "baseball", "bath", "battery-charging-four", "battery-charging-one", "battery-charging-three", "battery-charging-two", "battery-charging", "battery-check", "battery-empty", "battery-full", "battery-minus", "battery-plus", "battery-x", "bell-check", "bell-home", "bell-minus", "bell-on", "bell-plus", "bell-slash", "bell-snooze", "bell-user", "bell-x", "bell", "binoculars", "bitcoin-circle", "bitcoin-diamond", "bitcoin-hexagon", "bitcoin-octagon", "bitcoin-square", "bitcoin-waves", "bitcoin", "bluetooth", "boat", "book-check", "book-dot", "book-home", "book-image", "book-minus", "book-open", "book-plus", "book-slash", "book-snooze", "book-user", "book-x", "book", "bookmark-check", "bookmark-dot", "bookmark-home", "bookmark-minus", "bookmark-plus", "bookmark-slash", "bookmark-snooze", "bookmark-user", "bookmark-x", "bookmark", "bounding-box", "bowl", "box", "brand-chrome", "brand-codepen", "brand-codesandbox", "brand-dribbble", "brand-facebook", "brand-figma", "brand-framer", "brand-github", "brand-gitlab", "brand-google", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-pocket", "brand-slack", "brand-spotify", "brand-telegram", "brand-threads", "brand-trello", "brand-twitch", "brand-twitter", "brand-x", "brand-youtube", "briefcase-conveyor-belt", "briefcase", "brightness-high", "brightness-low", "bubbles", "building-one", "building", "cable-car", "cake", "calendar-check", "calendar-down", "calendar-minus", "calendar-plus", "calendar-slash", "calendar-up", "calendar-x", "calendar", "camera-slash", "camera", "campfire", "cannabis", "caravan", "cart-check", "cart-minus", "cart-plus", "cart-x", "cart", "cast-screen", "center-focus", "chart-area", "chart-bar-big", "chart-bar-decreasing", "chart-bar-increasing", "chart-bar-one", "chart-bar-stacked", "chart-bar", "chart-bubble", "chart-candlestick", "chart-column-big", "chart-column-decreasing", "chart-column-increasing", "chart-column-stacked", "chart-column", "chart-gantt", "chart-graph", "chart-line", "chart-network", "chart-no-axes-column-decreasing", "chart-no-axes-column-increasing", "chart-no-axes-column", "chart-no-axes-combined", "chart-no-axes-gantt", "chart-pie-one", "chart-pie-two", "chart-pie", "chart-scatter", "chart-spline", "chat-check", "chat-dots", "chat-messages", "chat-minus", "chat-plus", "chat-x", "chat", "check-circle-one", "check-circle", "check-diamond", "check-hexagon", "check-octagon", "check-square-one", "check-square", "check-waves", "check", "chevron-double-down-left", "chevron-double-down-right", "chevron-double-down", "chevron-double-left", "chevron-double-right", "chevron-double-up-left", "chevron-double-up-right", "chevron-double-up", "chevron-down-circle", "chevron-down-left-circle", "chevron-down-left-square", "chevron-down-left-waves", "chevron-down-left", "chevron-down-right-circle", "chevron-down-right-square", "chevron-down-right-waves", "chevron-down-right", "chevron-down-square", "chevron-down-waves", "chevron-down", "chevron-left-circle", "chevron-left-square", "chevron-left-waves", "chevron-left", "chevron-right-circle", "chevron-right-square", "chevron-right-waves", "chevron-right", "chevron-up-circle", "chevron-up-down", "chevron-up-left-circle", "chevron-up-left-square", "chevron-up-left-waves", "chevron-up-left", "chevron-up-right-circle", "chevron-up-right-square", "chevron-up-right-waves", "chevron-up-right", "chevron-up-square", "chevron-up-waves", "chevron-up", "chip", "cigarette-off", "cigarette", "circle-dashed", "circle-half-circle", "circle-half", "circle-notch", "circle", "click", "clipboard", "clock-circle", "clock-diamond", "clock-eight", "clock-eleven", "clock-five", "clock-four", "clock-hand", "clock-hexagon", "clock-nine", "clock-octagon", "clock-one", "clock-seven", "clock-six", "clock-square", "clock-ten", "clock-three", "clock-twelve", "clock-two", "clock-waves", "cloud-download", "cloud-drizzle", "cloud-fog", "cloud-hail", "cloud-lightning", "cloud-moon-rain", "cloud-moon", "cloud-off", "cloud-rain-wind", "cloud-rain", "cloud-snow", "cloud-sun-rain", "cloud-sun", "cloud-upload", "cloud", "cloudy", "cocktail", "code-circle", "code-diamond", "code-hexagon", "code-octagon", "code-square", "code-waves", "code", "coffee", "cog-four", "cog-one", "cog-three", "cog-two", "cog", "columns", "command", "compass", "components", "confetti", "config-vertical", "config", "contactless-circle", "contactless", "controller", "cookie", "copy", "copyleft", "copyright-slash", "copyright", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "credit-card-check", "credit-card-minus", "credit-card-plus", "credit-card-x", "credit-card", "croissant", "crop", "crosshair", "cupcake", "danger-circle", "danger-diamond", "danger-hexagon", "danger-octagon", "danger-square", "danger-triangle", "danger-waves", "danger", "database", "daze-circle", "daze-ghost", "daze-square", "delete", "desktop", "diamond", "dice-five", "dice-four", "dice-one", "dice-six", "dice-three", "dice-two", "dislike", "divide", "dollar-circle", "dollar-diamond", "dollar-hexagon", "dollar-octagon", "dollar-square", "dollar-waves", "dollar", "door-closed-locked", "door-closed", "door-open", "dots-circle", "dots-diamond", "dots-hexagon", "dots-octagon", "dots-square", "dots-vertical-circle", "dots-vertical-diamond", "dots-vertical-hexagon", "dots-vertical-octagon", "dots-vertical-square", "dots-vertical-waves", "dots-vertical", "dots-waves", "dots", "download", "drop", "droplet-off", "droplet", "droplets", "ear-slash", "ear", "earth", "eclipse", "edit-one", "edit", "egg", "eight-circle", "eight-diamond", "eight-hexagon", "eight-octagon", "eight-square", "eight-waves", "eight", "elevator", "envelope-open", "envelope", "euro-circle", "euro-diamond", "euro-hexagon", "euro-octagon", "euro-square", "euro-waves", "euro", "exclude", "external-link", "eye-slash", "eye", "face-id", "fat-arrow-down-left", "fat-arrow-down-right", "fat-arrow-down", "fat-arrow-left", "fat-arrow-right", "fat-arrow-up-left", "fat-arrow-up-right", "fat-arrow-up", "fat-corner-down-left", "fat-corner-down-right", "fat-corner-left-down", "fat-corner-left-up", "fat-corner-right-down", "fat-corner-right-up", "fat-corner-up-left", "fat-corner-up-right", "female", "file-check", "file-minus", "file-plus", "file-text", "file-x", "file", "film", "filter-one", "filter", "fine-tune", "fire", "five-circle", "five-diamond", "five-hexagon", "five-octagon", "five-square", "five-waves", "five", "flag-one", "flag", "flame-kindling", "flame", "flask", "flower-2", "flower", "folder-check", "folder-heart", "folder-kanban", "folder-minus", "folder-one", "folder-plus", "folder-slash", "folder-two", "folder-x", "folder", "forward-circle", "forward-diamond", "forward-hexagon", "forward-octagon", "forward-square", "forward-waves", "forward", "four-circle", "four-diamond", "four-hexagon", "four-octagon", "four-square", "four-waves", "four", "frame", "funny-circle", "funny-ghost", "funny-square", "gift", "git-branch", "git-circle", "git-commit", "git-diamond", "git-diff", "git-hexagon", "git-merge", "git-octagon", "git-pull-request", "git-square", "git-waves", "glasses", "globe", "grid-one", "grid", "hand", "hard-drive", "hash-circle", "hash-diamond", "hash-hexagon", "hash-octagon", "hash-square", "hash-waves", "hash", "haze", "heading-five", "heading-four", "heading-one", "heading-six", "heading-three", "heading-two", "heading", "headphones", "heart-broken", "heart-check", "heart-circle", "heart-diamond", "heart-dot", "heart-hexagon", "heart-home", "heart-minus", "heart-octagon", "heart-plus", "heart-slash", "heart-snooze", "heart-square", "heart-user", "heart-waves", "heart-x", "heart", "hexagon", "home-check", "home-minus", "home-plus", "home-smile", "home-x", "home", "image-circle", "image-rectangle", "image", "inbox-archive", "inbox-check", "inbox-down", "inbox-minus", "inbox-plus", "inbox-up", "inbox-x", "inbox", "incognito", "indifferent-circle", "indifferent-ghost", "indifferent-square", "infinity", "info-circle", "info-diamond", "info-hexagon", "info-octagon", "info-square", "info-triangle", "info-waves", "info", "intersect", "kanban", "key", "keyboard-brightness-high", "keyboard-brightness-low", "keyboard", "label", "lamp", "layers-one", "layers-three", "layers-two", "layout", "leaf", "leaves", "letter-a-circle", "letter-a-diamond", "letter-a-hexagon", "letter-a-octagon", "letter-a-square", "letter-a-waves", "letter-a", "letter-b-circle", "letter-b-diamond", "letter-b-hexagon", "letter-b-octagon", "letter-b-square", "letter-b-waves", "letter-b", "letter-c-circle", "letter-c-diamond", "letter-c-hexagon", "letter-c-octagon", "letter-c-square", "letter-c-waves", "letter-c", "letter-d-circle", "letter-d-diamond", "letter-d-hexagon", "letter-d-octagon", "letter-d-square", "letter-d-waves", "letter-d", "letter-e-circle", "letter-e-diamond", "letter-e-hexagon", "letter-e-octagon", "letter-e-square", "letter-e-waves", "letter-e", "letter-f-circle", "letter-f-diamond", "letter-f-hexagon", "letter-f-octagon", "letter-f-square", "letter-f-waves", "letter-f", "letter-g-circle", "letter-g-diamond", "letter-g-hexagon", "letter-g-octagon", "letter-g-square", "letter-g-waves", "letter-g", "letter-h-circle", "letter-h-diamond", "letter-h-hexagon", "letter-h-octagon", "letter-h-square", "letter-h-waves", "letter-h", "letter-i-circle", "letter-i-diamond", "letter-i-hexagon", "letter-i-octagon", "letter-i-square", "letter-i-waves", "letter-i", "letter-j-circle", "letter-j-diamond", "letter-j-hexagon", "letter-j-octagon", "letter-j-square", "letter-j-waves", "letter-j", "letter-k-circle", "letter-k-diamond", "letter-k-hexagon", "letter-k-octagon", "letter-k-square", "letter-k-waves", "letter-k", "letter-l-circle", "letter-l-diamond", "letter-l-hexagon", "letter-l-octagon", "letter-l-square", "letter-l-waves", "letter-l", "letter-m-circle", "letter-m-diamond", "letter-m-hexagon", "letter-m-octagon", "letter-m-square", "letter-m-waves", "letter-m", "letter-n-circle", "letter-n-diamond", "letter-n-hexagon", "letter-n-octagon", "letter-n-square", "letter-n-waves", "letter-n", "letter-o-circle", "letter-o-diamond", "letter-o-hexagon", "letter-o-octagon", "letter-o-square", "letter-o-waves", "letter-o", "letter-p-circle", "letter-p-diamond", "letter-p-hexagon", "letter-p-octagon", "letter-p-square", "letter-p-waves", "letter-p", "letter-q-circle", "letter-q-diamond", "letter-q-hexagon", "letter-q-octagon", "letter-q-square", "letter-q-waves", "letter-q", "letter-r-circle", "letter-r-diamond", "letter-r-hexagon", "letter-r-octagon", "letter-r-square", "letter-r-waves", "letter-r", "letter-s-circle", "letter-s-diamond", "letter-s-hexagon", "letter-s-octagon", "letter-s-square", "letter-s-waves", "letter-s", "letter-t-circle", "letter-t-diamond", "letter-t-hexagon", "letter-t-octagon", "letter-t-square", "letter-t-waves", "letter-t", "letter-u-circle", "letter-u-diamond", "letter-u-hexagon", "letter-u-octagon", "letter-u-square", "letter-u-waves", "letter-u", "letter-v-circle", "letter-v-diamond", "letter-v-hexagon", "letter-v-octagon", "letter-v-square", "letter-v-waves", "letter-v", "letter-w-circle", "letter-w-diamond", "letter-w-hexagon", "letter-w-octagon", "letter-w-square", "letter-w-waves", "letter-w", "letter-x-circle", "letter-x-diamond", "letter-x-hexagon", "letter-x-octagon", "letter-x-square", "letter-x-waves", "letter-x", "letter-y-circle", "letter-y-diamond", "letter-y-hexagon", "letter-y-octagon", "letter-y-square", "letter-y-waves", "letter-y", "letter-z-circle", "letter-z-diamond", "letter-z-hexagon", "letter-z-octagon", "letter-z-square", "letter-z-waves", "letter-z", "lightning-off", "lightning", "like", "line-chart-circle", "line-chart-diamond", "line-chart-hexagon", "line-chart-octagon", "line-chart-square", "line-chart-waves", "link-one", "link-two", "link", "list-check", "list-number", "list", "location-check", "location-home", "location-minus", "location-plus", "location-selected", "location-slash", "location-snooze", "location-user", "location-x", "location", "lock-circle", "lock-diamond", "lock-hexagon", "lock-keyhole", "lock-octagon", "lock-open-keyhole", "lock-open-password", "lock-open", "lock-password", "lock-square", "lock-waves", "lock", "login", "logout", "magnet", "male", "map", "mask", "math-square", "math", "maximize-one", "maximize", "menu", "message-check", "message-dots", "message-minus", "message-plus", "message-reply", "message-x", "message", "microphone-slash", "microphone", "minimize-one", "minimize", "minus-circle", "minus-diamond", "minus-hexagon", "minus-octagon", "minus-square", "minus-waves", "minus", "mobile-signal-five", "mobile-signal-four", "mobile-signal-one", "mobile-signal-three", "mobile-signal-two", "mobile", "moon-star", "moon", "mountain-snow", "mountain", "mouse-pointer", "move-diagonal-one", "move-diagonal", "move-horizontal", "move-vertical", "move", "music-circle", "music-diamond", "music-hexagon", "music-octagon", "music-square", "music-waves", "music", "myna", "navigation-one", "navigation", "nine-circle", "nine-diamond", "nine-hexagon", "nine-octagon", "nine-square", "nine-waves", "nine", "notification", "octagon", "one-circle", "one-diamond", "one-hexagon", "one-octagon", "one-square", "one-waves", "one", "option", "package", "paint", "panel-bottom-close", "panel-bottom-inactive", "panel-bottom-open", "panel-bottom", "panel-left-close", "panel-left-inactive", "panel-left-open", "panel-left", "panel-right-close", "panel-right-inactive", "panel-right-open", "panel-right", "panel-top-close", "panel-top-inactive", "panel-top-open", "panel-top", "paperclip", "parking", "password", "path", "pause-circle", "pause-diamond", "pause-hexagon", "pause-octagon", "pause-square", "pause-waves", "pause", "pen", "pencil", "percentage-circle", "percentage-diamond", "percentage-hexagon", "percentage-octagon", "percentage-square", "percentage-waves", "percentage", "pin", "pizza", "planet", "play-circle", "play-diamond", "play-hexagon", "play-octagon", "play-square", "play-waves", "play", "plus-circle", "plus-diamond", "plus-hexagon", "plus-octagon", "plus-square", "plus-waves", "plus", "pokeball", "power", "presentation", "printer", "puzzle", "question-circle", "question-diamond", "question-hexagon", "question-octagon", "question-square", "question-waves", "question", "radio", "rainbow", "reception-bell", "record", "rectangle-vertical", "rectangle", "redo", "refresh-alt", "refresh", "repeat", "rewind-circle", "rewind-diamond", "rewind-hexagon", "rewind-octagon", "rewind-square", "rewind-waves", "rewind", "rhombus", "ribbon", "rocket", "room-service", "rows", "rss", "ruler", "rupee-circle", "rupee-diamond", "rupee-hexagon", "rupee-octagon", "rupee-square", "rupee-waves", "rupee", "sad-circle", "sad-ghost", "sad-square", "save", "scan", "scissors", "sea-waves", "search-check", "search-circle", "search-diamond", "search-dot", "search-hexagon", "search-home", "search-minus", "search-octagon", "search-plus", "search-slash", "search-snooze", "search-square", "search-user", "search-waves", "search-x", "search", "select-multiple", "send", "servers", "seven-circle", "seven-diamond", "seven-hexagon", "seven-octagon", "seven-square", "seven-waves", "seven", "share", "shell", "shield-check", "shield-crossed", "shield-minus", "shield-one", "shield-plus", "shield-slash", "shield-two", "shield-x", "shield", "shooting-star", "shopping-bag", "shovel", "shrub", "shuffle-alt", "shuffle", "sidebar-alt", "sidebar", "signal-circle", "signal-diamond", "signal-hexagon", "signal-octagon", "signal-square", "signal-waves", "signal", "six-circle", "six-diamond", "six-hexagon", "six-octagon", "six-square", "six-waves", "six", "skip-back", "skip-forward", "slash-circle", "slash-diamond", "slash-hexagon", "slash-octagon", "slash-square", "slash-waves", "smile-circle", "smile-ghost", "smile-square", "snow", "snowflake", "sofa", "sort", "sparkles", "speaker", "spinner-one", "spinner", "sprout", "square-chart-gantt", "square-dashed-kanban", "square-dashed", "square-half", "square-kanban", "square", "star", "stop-circle", "stop-diamond", "stop-hexagon", "stop-octagon", "stop-square", "stop-waves", "stop", "store", "subtract", "sun-dim", "sun-medium", "sun-snow", "sun", "sunrise", "sunset", "support", "swatches", "table", "tablet", "tag-plus", "tag", "tally-five", "tally-four", "tally-one", "tally-three", "tally-two", "target", "telephone-call", "telephone-forward", "telephone-in", "telephone-missed", "telephone-out", "telephone-slash", "telephone", "tent-tree", "tent", "terminal", "text-align-center", "text-align-left", "text-align-right", "text-justify", "thermometer-snowflake", "thermometer-sun", "thermometer", "three-circle", "three-diamond", "three-hexagon", "three-octagon", "three-square", "three-waves", "three", "ticket-slash", "ticket", "toggle-left", "toggle-right", "tool", "tornado", "train", "trash-one", "trash-two", "trash", "tree-deciduous", "tree-palm", "tree-pine", "tree", "trees", "trending-down", "trending-up-down", "trending-up", "triangle", "truck", "tv", "two-circle", "two-diamond", "two-hexagon", "two-octagon", "two-square", "two-waves", "two", "type-bold", "type-italic", "type-text", "type-underline", "umbrella-off", "umbrella", "undo", "union", "unlink", "upload", "user-check", "user-circle", "user-diamond", "user-hexagon", "user-minus", "user-octagon", "user-plus", "user-settings", "user-square", "user-waves", "user-x", "user", "users-group", "users", "video-slash", "video", "volume-check", "volume-high", "volume-low", "volume-minus", "volume-none", "volume-plus", "volume-slash", "volume-x", "watch", "waves", "webcam", "wheel", "wheelchair", "wifi-check", "wifi-low", "wifi-medium", "wifi-minus", "wifi-plus", "wifi-slash", "wifi-x", "wifi", "wind-arrow-down", "wind", "winds", "wine", "wink-circle", "wink-ghost", "wink-square", "wrench", "x-circle", "x-diamond", "x-hexagon", "x-octagon", "x-square", "x-triangle", "x-waves", "x", "yen-circle", "yen-diamond", "yen-hexagon", "yen-octagon", "yen-square", "yen-waves", "yen", "zap-off", "zap", "zero-circle", "zero-diamond", "zero-hexagon", "zero-octagon", "zero-square", "zero-waves", "zero"];
|
|
2
|
+
type IconName = (typeof ICONS)[number];
|
|
3
|
+
declare function getIconByAttrType(attributeType: string): IconName | undefined;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Default icons for each attribute type
|
|
7
|
+
*/
|
|
8
|
+
declare const DEFAULT_ATTRIBUTE_ICONS: Record<string, IconName>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the default icon for an attribute type
|
|
11
|
+
* @param type - The attribute type
|
|
12
|
+
* @returns The icon name, or "circle" as fallback
|
|
13
|
+
*/
|
|
14
|
+
declare function getDefaultAttributeIcon(type: string): IconName;
|
|
15
|
+
|
|
16
|
+
interface Color {
|
|
17
|
+
/** Background color - works on both light and dark mode */
|
|
18
|
+
background: string;
|
|
19
|
+
/** Border color - subtle, works on both modes */
|
|
20
|
+
border: string;
|
|
21
|
+
/** Text color - high contrast, readable on the background */
|
|
22
|
+
text: string;
|
|
23
|
+
/** Icon color - vibrant, the main accent */
|
|
24
|
+
icon: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Universal color palette designed to work in both light and dark modes.
|
|
28
|
+
*
|
|
29
|
+
* Design principles:
|
|
30
|
+
* - Background: Semi-transparent with alpha for adaptability
|
|
31
|
+
* - Border: Medium saturation, visible on both modes
|
|
32
|
+
* - Text: Same as icon for consistency (vibrant, readable)
|
|
33
|
+
* - Icon: The main vibrant color, good contrast on both modes
|
|
34
|
+
*/
|
|
35
|
+
declare const COLORS: {
|
|
36
|
+
readonly gray: {
|
|
37
|
+
readonly background: "rgba(107, 114, 128, 0.15)";
|
|
38
|
+
readonly border: "rgba(107, 114, 128, 0.3)";
|
|
39
|
+
readonly text: "#6B7280";
|
|
40
|
+
readonly icon: "#6B7280";
|
|
41
|
+
};
|
|
42
|
+
readonly slate: {
|
|
43
|
+
readonly background: "rgba(100, 116, 139, 0.15)";
|
|
44
|
+
readonly border: "rgba(100, 116, 139, 0.3)";
|
|
45
|
+
readonly text: "#64748B";
|
|
46
|
+
readonly icon: "#64748B";
|
|
47
|
+
};
|
|
48
|
+
readonly blue: {
|
|
49
|
+
readonly background: "rgba(59, 130, 246, 0.15)";
|
|
50
|
+
readonly border: "rgba(59, 130, 246, 0.3)";
|
|
51
|
+
readonly text: "#3B82F6";
|
|
52
|
+
readonly icon: "#3B82F6";
|
|
53
|
+
};
|
|
54
|
+
readonly sky: {
|
|
55
|
+
readonly background: "rgba(14, 165, 233, 0.15)";
|
|
56
|
+
readonly border: "rgba(14, 165, 233, 0.3)";
|
|
57
|
+
readonly text: "#0EA5E9";
|
|
58
|
+
readonly icon: "#0EA5E9";
|
|
59
|
+
};
|
|
60
|
+
readonly indigo: {
|
|
61
|
+
readonly background: "rgba(99, 102, 241, 0.15)";
|
|
62
|
+
readonly border: "rgba(99, 102, 241, 0.3)";
|
|
63
|
+
readonly text: "#6366F1";
|
|
64
|
+
readonly icon: "#6366F1";
|
|
65
|
+
};
|
|
66
|
+
readonly green: {
|
|
67
|
+
readonly background: "rgba(34, 197, 94, 0.15)";
|
|
68
|
+
readonly border: "rgba(34, 197, 94, 0.3)";
|
|
69
|
+
readonly text: "#22C55E";
|
|
70
|
+
readonly icon: "#22C55E";
|
|
71
|
+
};
|
|
72
|
+
readonly emerald: {
|
|
73
|
+
readonly background: "rgba(16, 185, 129, 0.15)";
|
|
74
|
+
readonly border: "rgba(16, 185, 129, 0.3)";
|
|
75
|
+
readonly text: "#10B981";
|
|
76
|
+
readonly icon: "#10B981";
|
|
77
|
+
};
|
|
78
|
+
readonly teal: {
|
|
79
|
+
readonly background: "rgba(20, 184, 166, 0.15)";
|
|
80
|
+
readonly border: "rgba(20, 184, 166, 0.3)";
|
|
81
|
+
readonly text: "#14B8A6";
|
|
82
|
+
readonly icon: "#14B8A6";
|
|
83
|
+
};
|
|
84
|
+
readonly red: {
|
|
85
|
+
readonly background: "rgba(239, 68, 68, 0.15)";
|
|
86
|
+
readonly border: "rgba(239, 68, 68, 0.3)";
|
|
87
|
+
readonly text: "#EF4444";
|
|
88
|
+
readonly icon: "#EF4444";
|
|
89
|
+
};
|
|
90
|
+
readonly rose: {
|
|
91
|
+
readonly background: "rgba(244, 63, 94, 0.15)";
|
|
92
|
+
readonly border: "rgba(244, 63, 94, 0.3)";
|
|
93
|
+
readonly text: "#F43F5E";
|
|
94
|
+
readonly icon: "#F43F5E";
|
|
95
|
+
};
|
|
96
|
+
readonly yellow: {
|
|
97
|
+
readonly background: "rgba(234, 179, 8, 0.15)";
|
|
98
|
+
readonly border: "rgba(234, 179, 8, 0.3)";
|
|
99
|
+
readonly text: "#EAB308";
|
|
100
|
+
readonly icon: "#EAB308";
|
|
101
|
+
};
|
|
102
|
+
readonly amber: {
|
|
103
|
+
readonly background: "rgba(245, 158, 11, 0.15)";
|
|
104
|
+
readonly border: "rgba(245, 158, 11, 0.3)";
|
|
105
|
+
readonly text: "#F59E0B";
|
|
106
|
+
readonly icon: "#F59E0B";
|
|
107
|
+
};
|
|
108
|
+
readonly orange: {
|
|
109
|
+
readonly background: "rgba(249, 115, 22, 0.15)";
|
|
110
|
+
readonly border: "rgba(249, 115, 22, 0.3)";
|
|
111
|
+
readonly text: "#F97316";
|
|
112
|
+
readonly icon: "#F97316";
|
|
113
|
+
};
|
|
114
|
+
readonly purple: {
|
|
115
|
+
readonly background: "rgba(168, 85, 247, 0.15)";
|
|
116
|
+
readonly border: "rgba(168, 85, 247, 0.3)";
|
|
117
|
+
readonly text: "#A855F7";
|
|
118
|
+
readonly icon: "#A855F7";
|
|
119
|
+
};
|
|
120
|
+
readonly violet: {
|
|
121
|
+
readonly background: "rgba(139, 92, 246, 0.15)";
|
|
122
|
+
readonly border: "rgba(139, 92, 246, 0.3)";
|
|
123
|
+
readonly text: "#8B5CF6";
|
|
124
|
+
readonly icon: "#8B5CF6";
|
|
125
|
+
};
|
|
126
|
+
readonly fuchsia: {
|
|
127
|
+
readonly background: "rgba(217, 70, 239, 0.15)";
|
|
128
|
+
readonly border: "rgba(217, 70, 239, 0.3)";
|
|
129
|
+
readonly text: "#D946EF";
|
|
130
|
+
readonly icon: "#D946EF";
|
|
131
|
+
};
|
|
132
|
+
readonly pink: {
|
|
133
|
+
readonly background: "rgba(236, 72, 153, 0.15)";
|
|
134
|
+
readonly border: "rgba(236, 72, 153, 0.3)";
|
|
135
|
+
readonly text: "#EC4899";
|
|
136
|
+
readonly icon: "#EC4899";
|
|
137
|
+
};
|
|
138
|
+
readonly cyan: {
|
|
139
|
+
readonly background: "rgba(6, 182, 212, 0.15)";
|
|
140
|
+
readonly border: "rgba(6, 182, 212, 0.3)";
|
|
141
|
+
readonly text: "#06B6D4";
|
|
142
|
+
readonly icon: "#06B6D4";
|
|
143
|
+
};
|
|
144
|
+
readonly lime: {
|
|
145
|
+
readonly background: "rgba(132, 204, 22, 0.15)";
|
|
146
|
+
readonly border: "rgba(132, 204, 22, 0.3)";
|
|
147
|
+
readonly text: "#84CC16";
|
|
148
|
+
readonly icon: "#84CC16";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
type ColorId = keyof typeof COLORS;
|
|
152
|
+
type ColorBackground = (typeof COLORS)[ColorId]["background"];
|
|
153
|
+
type ColorBorder = (typeof COLORS)[ColorId]["border"];
|
|
154
|
+
type ColorText = (typeof COLORS)[ColorId]["text"];
|
|
155
|
+
type ColorIcon = (typeof COLORS)[ColorId]["icon"];
|
|
156
|
+
/**
|
|
157
|
+
* Get color configuration by ID
|
|
158
|
+
*/
|
|
159
|
+
declare const getColor: (id: string) => Color | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Get all available colors
|
|
162
|
+
*/
|
|
163
|
+
declare const getAllColors: () => Color[];
|
|
164
|
+
/**
|
|
165
|
+
* Get all color IDs
|
|
166
|
+
*/
|
|
167
|
+
declare const getColorIds: () => ColorId[];
|
|
168
|
+
/**
|
|
169
|
+
* Type guard to check if a string is a valid color ID
|
|
170
|
+
*/
|
|
171
|
+
declare const isValidColorId: (id: string) => id is ColorId;
|
|
172
|
+
/**
|
|
173
|
+
* Color groups for semantic usage
|
|
174
|
+
*/
|
|
175
|
+
declare const COLOR_GROUPS: {
|
|
176
|
+
readonly neutral: readonly ["gray", "slate"];
|
|
177
|
+
readonly primary: readonly ["blue", "indigo", "sky"];
|
|
178
|
+
readonly success: readonly ["green", "emerald", "teal", "lime"];
|
|
179
|
+
readonly danger: readonly ["red", "rose"];
|
|
180
|
+
readonly warning: readonly ["yellow", "amber", "orange"];
|
|
181
|
+
readonly info: readonly ["blue", "cyan", "sky"];
|
|
182
|
+
readonly special: readonly ["purple", "violet", "fuchsia"];
|
|
183
|
+
readonly accent: readonly ["pink"];
|
|
184
|
+
};
|
|
185
|
+
type ColorGroup = keyof typeof COLOR_GROUPS;
|
|
186
|
+
type ColorGroupColors<T extends ColorGroup> = (typeof COLOR_GROUPS)[T][number];
|
|
187
|
+
/**
|
|
188
|
+
* Get colors by semantic group
|
|
189
|
+
*/
|
|
190
|
+
declare const getColorsByGroup: (group: ColorGroup) => ColorId[];
|
|
191
|
+
/**
|
|
192
|
+
* Recommended colors for status groups
|
|
193
|
+
*/
|
|
194
|
+
declare const STATUS_COLORS: {
|
|
195
|
+
readonly idle: readonly ["gray", "slate"];
|
|
196
|
+
readonly in_progress: readonly ["blue", "indigo", "sky", "cyan", "purple"];
|
|
197
|
+
readonly finished: readonly ["green", "emerald", "teal"];
|
|
198
|
+
readonly cancelled: readonly ["red", "rose"];
|
|
199
|
+
readonly warning: readonly ["yellow", "amber", "orange"];
|
|
200
|
+
};
|
|
201
|
+
type StatusColorGroup = keyof typeof STATUS_COLORS;
|
|
202
|
+
|
|
203
|
+
interface Country {
|
|
204
|
+
name: string;
|
|
205
|
+
iso2: string;
|
|
206
|
+
iso3: string;
|
|
207
|
+
numericCode: string;
|
|
208
|
+
phoneCode: string;
|
|
209
|
+
/** Max digits for national phone number (without country code) */
|
|
210
|
+
phoneMaxDigits?: number;
|
|
211
|
+
/** National trunk prefix (e.g., "0" for France) */
|
|
212
|
+
phoneTrunkPrefix?: string;
|
|
213
|
+
}
|
|
214
|
+
declare const COUNTRIES: {
|
|
215
|
+
readonly FR: {
|
|
216
|
+
readonly name: "France";
|
|
217
|
+
readonly iso2: "FR";
|
|
218
|
+
readonly iso3: "FRA";
|
|
219
|
+
readonly numericCode: "250";
|
|
220
|
+
readonly phoneCode: "+33";
|
|
221
|
+
readonly phoneMaxDigits: 10;
|
|
222
|
+
readonly phoneTrunkPrefix: "0";
|
|
223
|
+
};
|
|
224
|
+
readonly US: {
|
|
225
|
+
readonly name: "United States";
|
|
226
|
+
readonly iso2: "US";
|
|
227
|
+
readonly iso3: "USA";
|
|
228
|
+
readonly numericCode: "840";
|
|
229
|
+
readonly phoneCode: "+1";
|
|
230
|
+
readonly phoneMaxDigits: 10;
|
|
231
|
+
readonly phoneTrunkPrefix: "";
|
|
232
|
+
};
|
|
233
|
+
readonly GB: {
|
|
234
|
+
readonly name: "United Kingdom";
|
|
235
|
+
readonly iso2: "GB";
|
|
236
|
+
readonly iso3: "GBR";
|
|
237
|
+
readonly numericCode: "826";
|
|
238
|
+
readonly phoneCode: "+44";
|
|
239
|
+
readonly phoneMaxDigits: 11;
|
|
240
|
+
readonly phoneTrunkPrefix: "0";
|
|
241
|
+
};
|
|
242
|
+
readonly DE: {
|
|
243
|
+
readonly name: "Germany";
|
|
244
|
+
readonly iso2: "DE";
|
|
245
|
+
readonly iso3: "DEU";
|
|
246
|
+
readonly numericCode: "276";
|
|
247
|
+
readonly phoneCode: "+49";
|
|
248
|
+
readonly phoneMaxDigits: 11;
|
|
249
|
+
readonly phoneTrunkPrefix: "0";
|
|
250
|
+
};
|
|
251
|
+
readonly ES: {
|
|
252
|
+
readonly name: "Spain";
|
|
253
|
+
readonly iso2: "ES";
|
|
254
|
+
readonly iso3: "ESP";
|
|
255
|
+
readonly numericCode: "724";
|
|
256
|
+
readonly phoneCode: "+34";
|
|
257
|
+
readonly phoneMaxDigits: 9;
|
|
258
|
+
readonly phoneTrunkPrefix: "";
|
|
259
|
+
};
|
|
260
|
+
readonly IT: {
|
|
261
|
+
readonly name: "Italy";
|
|
262
|
+
readonly iso2: "IT";
|
|
263
|
+
readonly iso3: "ITA";
|
|
264
|
+
readonly numericCode: "380";
|
|
265
|
+
readonly phoneCode: "+39";
|
|
266
|
+
readonly phoneMaxDigits: 10;
|
|
267
|
+
readonly phoneTrunkPrefix: "0";
|
|
268
|
+
};
|
|
269
|
+
readonly BE: {
|
|
270
|
+
readonly name: "Belgium";
|
|
271
|
+
readonly iso2: "BE";
|
|
272
|
+
readonly iso3: "BEL";
|
|
273
|
+
readonly numericCode: "056";
|
|
274
|
+
readonly phoneCode: "+32";
|
|
275
|
+
readonly phoneMaxDigits: 9;
|
|
276
|
+
readonly phoneTrunkPrefix: "0";
|
|
277
|
+
};
|
|
278
|
+
readonly CH: {
|
|
279
|
+
readonly name: "Switzerland";
|
|
280
|
+
readonly iso2: "CH";
|
|
281
|
+
readonly iso3: "CHE";
|
|
282
|
+
readonly numericCode: "756";
|
|
283
|
+
readonly phoneCode: "+41";
|
|
284
|
+
readonly phoneMaxDigits: 10;
|
|
285
|
+
readonly phoneTrunkPrefix: "0";
|
|
286
|
+
};
|
|
287
|
+
readonly NL: {
|
|
288
|
+
readonly name: "Netherlands";
|
|
289
|
+
readonly iso2: "NL";
|
|
290
|
+
readonly iso3: "NLD";
|
|
291
|
+
readonly numericCode: "528";
|
|
292
|
+
readonly phoneCode: "+31";
|
|
293
|
+
readonly phoneMaxDigits: 9;
|
|
294
|
+
readonly phoneTrunkPrefix: "0";
|
|
295
|
+
};
|
|
296
|
+
readonly PT: {
|
|
297
|
+
readonly name: "Portugal";
|
|
298
|
+
readonly iso2: "PT";
|
|
299
|
+
readonly iso3: "PRT";
|
|
300
|
+
readonly numericCode: "620";
|
|
301
|
+
readonly phoneCode: "+351";
|
|
302
|
+
readonly phoneMaxDigits: 9;
|
|
303
|
+
readonly phoneTrunkPrefix: "";
|
|
304
|
+
};
|
|
305
|
+
readonly CA: {
|
|
306
|
+
readonly name: "Canada";
|
|
307
|
+
readonly iso2: "CA";
|
|
308
|
+
readonly iso3: "CAN";
|
|
309
|
+
readonly numericCode: "124";
|
|
310
|
+
readonly phoneCode: "+1";
|
|
311
|
+
readonly phoneMaxDigits: 10;
|
|
312
|
+
readonly phoneTrunkPrefix: "";
|
|
313
|
+
};
|
|
314
|
+
readonly AU: {
|
|
315
|
+
readonly name: "Australia";
|
|
316
|
+
readonly iso2: "AU";
|
|
317
|
+
readonly iso3: "AUS";
|
|
318
|
+
readonly numericCode: "036";
|
|
319
|
+
readonly phoneCode: "+61";
|
|
320
|
+
readonly phoneMaxDigits: 9;
|
|
321
|
+
readonly phoneTrunkPrefix: "0";
|
|
322
|
+
};
|
|
323
|
+
readonly AT: {
|
|
324
|
+
readonly name: "Austria";
|
|
325
|
+
readonly iso2: "AT";
|
|
326
|
+
readonly iso3: "AUT";
|
|
327
|
+
readonly numericCode: "040";
|
|
328
|
+
readonly phoneCode: "+43";
|
|
329
|
+
readonly phoneMaxDigits: 11;
|
|
330
|
+
readonly phoneTrunkPrefix: "0";
|
|
331
|
+
};
|
|
332
|
+
readonly SE: {
|
|
333
|
+
readonly name: "Sweden";
|
|
334
|
+
readonly iso2: "SE";
|
|
335
|
+
readonly iso3: "SWE";
|
|
336
|
+
readonly numericCode: "752";
|
|
337
|
+
readonly phoneCode: "+46";
|
|
338
|
+
readonly phoneMaxDigits: 10;
|
|
339
|
+
readonly phoneTrunkPrefix: "0";
|
|
340
|
+
};
|
|
341
|
+
readonly NO: {
|
|
342
|
+
readonly name: "Norway";
|
|
343
|
+
readonly iso2: "NO";
|
|
344
|
+
readonly iso3: "NOR";
|
|
345
|
+
readonly numericCode: "578";
|
|
346
|
+
readonly phoneCode: "+47";
|
|
347
|
+
readonly phoneMaxDigits: 8;
|
|
348
|
+
readonly phoneTrunkPrefix: "";
|
|
349
|
+
};
|
|
350
|
+
readonly DK: {
|
|
351
|
+
readonly name: "Denmark";
|
|
352
|
+
readonly iso2: "DK";
|
|
353
|
+
readonly iso3: "DNK";
|
|
354
|
+
readonly numericCode: "208";
|
|
355
|
+
readonly phoneCode: "+45";
|
|
356
|
+
readonly phoneMaxDigits: 8;
|
|
357
|
+
readonly phoneTrunkPrefix: "";
|
|
358
|
+
};
|
|
359
|
+
readonly FI: {
|
|
360
|
+
readonly name: "Finland";
|
|
361
|
+
readonly iso2: "FI";
|
|
362
|
+
readonly iso3: "FIN";
|
|
363
|
+
readonly numericCode: "246";
|
|
364
|
+
readonly phoneCode: "+358";
|
|
365
|
+
readonly phoneMaxDigits: 10;
|
|
366
|
+
readonly phoneTrunkPrefix: "0";
|
|
367
|
+
};
|
|
368
|
+
readonly IE: {
|
|
369
|
+
readonly name: "Ireland";
|
|
370
|
+
readonly iso2: "IE";
|
|
371
|
+
readonly iso3: "IRL";
|
|
372
|
+
readonly numericCode: "372";
|
|
373
|
+
readonly phoneCode: "+353";
|
|
374
|
+
readonly phoneMaxDigits: 10;
|
|
375
|
+
readonly phoneTrunkPrefix: "0";
|
|
376
|
+
};
|
|
377
|
+
readonly PL: {
|
|
378
|
+
readonly name: "Poland";
|
|
379
|
+
readonly iso2: "PL";
|
|
380
|
+
readonly iso3: "POL";
|
|
381
|
+
readonly numericCode: "616";
|
|
382
|
+
readonly phoneCode: "+48";
|
|
383
|
+
readonly phoneMaxDigits: 9;
|
|
384
|
+
readonly phoneTrunkPrefix: "";
|
|
385
|
+
};
|
|
386
|
+
readonly CZ: {
|
|
387
|
+
readonly name: "Czech Republic";
|
|
388
|
+
readonly iso2: "CZ";
|
|
389
|
+
readonly iso3: "CZE";
|
|
390
|
+
readonly numericCode: "203";
|
|
391
|
+
readonly phoneCode: "+420";
|
|
392
|
+
readonly phoneMaxDigits: 9;
|
|
393
|
+
readonly phoneTrunkPrefix: "";
|
|
394
|
+
};
|
|
395
|
+
readonly GR: {
|
|
396
|
+
readonly name: "Greece";
|
|
397
|
+
readonly iso2: "GR";
|
|
398
|
+
readonly iso3: "GRC";
|
|
399
|
+
readonly numericCode: "300";
|
|
400
|
+
readonly phoneCode: "+30";
|
|
401
|
+
readonly phoneMaxDigits: 10;
|
|
402
|
+
readonly phoneTrunkPrefix: "";
|
|
403
|
+
};
|
|
404
|
+
readonly RO: {
|
|
405
|
+
readonly name: "Romania";
|
|
406
|
+
readonly iso2: "RO";
|
|
407
|
+
readonly iso3: "ROU";
|
|
408
|
+
readonly numericCode: "642";
|
|
409
|
+
readonly phoneCode: "+40";
|
|
410
|
+
readonly phoneMaxDigits: 10;
|
|
411
|
+
readonly phoneTrunkPrefix: "0";
|
|
412
|
+
};
|
|
413
|
+
readonly HU: {
|
|
414
|
+
readonly name: "Hungary";
|
|
415
|
+
readonly iso2: "HU";
|
|
416
|
+
readonly iso3: "HUN";
|
|
417
|
+
readonly numericCode: "348";
|
|
418
|
+
readonly phoneCode: "+36";
|
|
419
|
+
readonly phoneMaxDigits: 9;
|
|
420
|
+
readonly phoneTrunkPrefix: "06";
|
|
421
|
+
};
|
|
422
|
+
readonly LU: {
|
|
423
|
+
readonly name: "Luxembourg";
|
|
424
|
+
readonly iso2: "LU";
|
|
425
|
+
readonly iso3: "LUX";
|
|
426
|
+
readonly numericCode: "442";
|
|
427
|
+
readonly phoneCode: "+352";
|
|
428
|
+
readonly phoneMaxDigits: 9;
|
|
429
|
+
readonly phoneTrunkPrefix: "";
|
|
430
|
+
};
|
|
431
|
+
readonly SK: {
|
|
432
|
+
readonly name: "Slovakia";
|
|
433
|
+
readonly iso2: "SK";
|
|
434
|
+
readonly iso3: "SVK";
|
|
435
|
+
readonly numericCode: "703";
|
|
436
|
+
readonly phoneCode: "+421";
|
|
437
|
+
readonly phoneMaxDigits: 9;
|
|
438
|
+
readonly phoneTrunkPrefix: "0";
|
|
439
|
+
};
|
|
440
|
+
readonly BG: {
|
|
441
|
+
readonly name: "Bulgaria";
|
|
442
|
+
readonly iso2: "BG";
|
|
443
|
+
readonly iso3: "BGR";
|
|
444
|
+
readonly numericCode: "100";
|
|
445
|
+
readonly phoneCode: "+359";
|
|
446
|
+
readonly phoneMaxDigits: 9;
|
|
447
|
+
readonly phoneTrunkPrefix: "0";
|
|
448
|
+
};
|
|
449
|
+
readonly HR: {
|
|
450
|
+
readonly name: "Croatia";
|
|
451
|
+
readonly iso2: "HR";
|
|
452
|
+
readonly iso3: "HRV";
|
|
453
|
+
readonly numericCode: "191";
|
|
454
|
+
readonly phoneCode: "+385";
|
|
455
|
+
readonly phoneMaxDigits: 9;
|
|
456
|
+
readonly phoneTrunkPrefix: "0";
|
|
457
|
+
};
|
|
458
|
+
readonly SI: {
|
|
459
|
+
readonly name: "Slovenia";
|
|
460
|
+
readonly iso2: "SI";
|
|
461
|
+
readonly iso3: "SVN";
|
|
462
|
+
readonly numericCode: "705";
|
|
463
|
+
readonly phoneCode: "+386";
|
|
464
|
+
readonly phoneMaxDigits: 8;
|
|
465
|
+
readonly phoneTrunkPrefix: "0";
|
|
466
|
+
};
|
|
467
|
+
readonly EE: {
|
|
468
|
+
readonly name: "Estonia";
|
|
469
|
+
readonly iso2: "EE";
|
|
470
|
+
readonly iso3: "EST";
|
|
471
|
+
readonly numericCode: "233";
|
|
472
|
+
readonly phoneCode: "+372";
|
|
473
|
+
readonly phoneMaxDigits: 8;
|
|
474
|
+
readonly phoneTrunkPrefix: "";
|
|
475
|
+
};
|
|
476
|
+
readonly LV: {
|
|
477
|
+
readonly name: "Latvia";
|
|
478
|
+
readonly iso2: "LV";
|
|
479
|
+
readonly iso3: "LVA";
|
|
480
|
+
readonly numericCode: "428";
|
|
481
|
+
readonly phoneCode: "+371";
|
|
482
|
+
readonly phoneMaxDigits: 8;
|
|
483
|
+
readonly phoneTrunkPrefix: "";
|
|
484
|
+
};
|
|
485
|
+
readonly LT: {
|
|
486
|
+
readonly name: "Lithuania";
|
|
487
|
+
readonly iso2: "LT";
|
|
488
|
+
readonly iso3: "LTU";
|
|
489
|
+
readonly numericCode: "440";
|
|
490
|
+
readonly phoneCode: "+370";
|
|
491
|
+
readonly phoneMaxDigits: 8;
|
|
492
|
+
readonly phoneTrunkPrefix: "";
|
|
493
|
+
};
|
|
494
|
+
readonly IS: {
|
|
495
|
+
readonly name: "Iceland";
|
|
496
|
+
readonly iso2: "IS";
|
|
497
|
+
readonly iso3: "ISL";
|
|
498
|
+
readonly numericCode: "352";
|
|
499
|
+
readonly phoneCode: "+354";
|
|
500
|
+
readonly phoneMaxDigits: 7;
|
|
501
|
+
readonly phoneTrunkPrefix: "";
|
|
502
|
+
};
|
|
503
|
+
readonly MT: {
|
|
504
|
+
readonly name: "Malta";
|
|
505
|
+
readonly iso2: "MT";
|
|
506
|
+
readonly iso3: "MLT";
|
|
507
|
+
readonly numericCode: "470";
|
|
508
|
+
readonly phoneCode: "+356";
|
|
509
|
+
readonly phoneMaxDigits: 8;
|
|
510
|
+
readonly phoneTrunkPrefix: "";
|
|
511
|
+
};
|
|
512
|
+
readonly CY: {
|
|
513
|
+
readonly name: "Cyprus";
|
|
514
|
+
readonly iso2: "CY";
|
|
515
|
+
readonly iso3: "CYP";
|
|
516
|
+
readonly numericCode: "196";
|
|
517
|
+
readonly phoneCode: "+357";
|
|
518
|
+
readonly phoneMaxDigits: 8;
|
|
519
|
+
readonly phoneTrunkPrefix: "";
|
|
520
|
+
};
|
|
521
|
+
readonly MC: {
|
|
522
|
+
readonly name: "Monaco";
|
|
523
|
+
readonly iso2: "MC";
|
|
524
|
+
readonly iso3: "MCO";
|
|
525
|
+
readonly numericCode: "492";
|
|
526
|
+
readonly phoneCode: "+377";
|
|
527
|
+
readonly phoneMaxDigits: 8;
|
|
528
|
+
readonly phoneTrunkPrefix: "";
|
|
529
|
+
};
|
|
530
|
+
readonly MX: {
|
|
531
|
+
readonly name: "Mexico";
|
|
532
|
+
readonly iso2: "MX";
|
|
533
|
+
readonly iso3: "MEX";
|
|
534
|
+
readonly numericCode: "484";
|
|
535
|
+
readonly phoneCode: "+52";
|
|
536
|
+
readonly phoneMaxDigits: 10;
|
|
537
|
+
readonly phoneTrunkPrefix: "";
|
|
538
|
+
};
|
|
539
|
+
readonly BR: {
|
|
540
|
+
readonly name: "Brazil";
|
|
541
|
+
readonly iso2: "BR";
|
|
542
|
+
readonly iso3: "BRA";
|
|
543
|
+
readonly numericCode: "076";
|
|
544
|
+
readonly phoneCode: "+55";
|
|
545
|
+
readonly phoneMaxDigits: 11;
|
|
546
|
+
readonly phoneTrunkPrefix: "";
|
|
547
|
+
};
|
|
548
|
+
readonly AR: {
|
|
549
|
+
readonly name: "Argentina";
|
|
550
|
+
readonly iso2: "AR";
|
|
551
|
+
readonly iso3: "ARG";
|
|
552
|
+
readonly numericCode: "032";
|
|
553
|
+
readonly phoneCode: "+54";
|
|
554
|
+
readonly phoneMaxDigits: 10;
|
|
555
|
+
readonly phoneTrunkPrefix: "";
|
|
556
|
+
};
|
|
557
|
+
readonly CL: {
|
|
558
|
+
readonly name: "Chile";
|
|
559
|
+
readonly iso2: "CL";
|
|
560
|
+
readonly iso3: "CHL";
|
|
561
|
+
readonly numericCode: "152";
|
|
562
|
+
readonly phoneCode: "+56";
|
|
563
|
+
readonly phoneMaxDigits: 9;
|
|
564
|
+
readonly phoneTrunkPrefix: "";
|
|
565
|
+
};
|
|
566
|
+
readonly CO: {
|
|
567
|
+
readonly name: "Colombia";
|
|
568
|
+
readonly iso2: "CO";
|
|
569
|
+
readonly iso3: "COL";
|
|
570
|
+
readonly numericCode: "170";
|
|
571
|
+
readonly phoneCode: "+57";
|
|
572
|
+
readonly phoneMaxDigits: 10;
|
|
573
|
+
readonly phoneTrunkPrefix: "";
|
|
574
|
+
};
|
|
575
|
+
readonly PE: {
|
|
576
|
+
readonly name: "Peru";
|
|
577
|
+
readonly iso2: "PE";
|
|
578
|
+
readonly iso3: "PER";
|
|
579
|
+
readonly numericCode: "604";
|
|
580
|
+
readonly phoneCode: "+51";
|
|
581
|
+
readonly phoneMaxDigits: 9;
|
|
582
|
+
readonly phoneTrunkPrefix: "";
|
|
583
|
+
};
|
|
584
|
+
readonly VE: {
|
|
585
|
+
readonly name: "Venezuela";
|
|
586
|
+
readonly iso2: "VE";
|
|
587
|
+
readonly iso3: "VEN";
|
|
588
|
+
readonly numericCode: "862";
|
|
589
|
+
readonly phoneCode: "+58";
|
|
590
|
+
readonly phoneMaxDigits: 10;
|
|
591
|
+
readonly phoneTrunkPrefix: "";
|
|
592
|
+
};
|
|
593
|
+
readonly EC: {
|
|
594
|
+
readonly name: "Ecuador";
|
|
595
|
+
readonly iso2: "EC";
|
|
596
|
+
readonly iso3: "ECU";
|
|
597
|
+
readonly numericCode: "218";
|
|
598
|
+
readonly phoneCode: "+593";
|
|
599
|
+
readonly phoneMaxDigits: 9;
|
|
600
|
+
readonly phoneTrunkPrefix: "";
|
|
601
|
+
};
|
|
602
|
+
readonly UY: {
|
|
603
|
+
readonly name: "Uruguay";
|
|
604
|
+
readonly iso2: "UY";
|
|
605
|
+
readonly iso3: "URY";
|
|
606
|
+
readonly numericCode: "858";
|
|
607
|
+
readonly phoneCode: "+598";
|
|
608
|
+
readonly phoneMaxDigits: 8;
|
|
609
|
+
readonly phoneTrunkPrefix: "";
|
|
610
|
+
};
|
|
611
|
+
readonly PY: {
|
|
612
|
+
readonly name: "Paraguay";
|
|
613
|
+
readonly iso2: "PY";
|
|
614
|
+
readonly iso3: "PRY";
|
|
615
|
+
readonly numericCode: "600";
|
|
616
|
+
readonly phoneCode: "+595";
|
|
617
|
+
readonly phoneMaxDigits: 9;
|
|
618
|
+
readonly phoneTrunkPrefix: "";
|
|
619
|
+
};
|
|
620
|
+
readonly BO: {
|
|
621
|
+
readonly name: "Bolivia";
|
|
622
|
+
readonly iso2: "BO";
|
|
623
|
+
readonly iso3: "BOL";
|
|
624
|
+
readonly numericCode: "068";
|
|
625
|
+
readonly phoneCode: "+591";
|
|
626
|
+
readonly phoneMaxDigits: 8;
|
|
627
|
+
readonly phoneTrunkPrefix: "";
|
|
628
|
+
};
|
|
629
|
+
readonly CR: {
|
|
630
|
+
readonly name: "Costa Rica";
|
|
631
|
+
readonly iso2: "CR";
|
|
632
|
+
readonly iso3: "CRI";
|
|
633
|
+
readonly numericCode: "188";
|
|
634
|
+
readonly phoneCode: "+506";
|
|
635
|
+
readonly phoneMaxDigits: 8;
|
|
636
|
+
readonly phoneTrunkPrefix: "";
|
|
637
|
+
};
|
|
638
|
+
readonly PA: {
|
|
639
|
+
readonly name: "Panama";
|
|
640
|
+
readonly iso2: "PA";
|
|
641
|
+
readonly iso3: "PAN";
|
|
642
|
+
readonly numericCode: "591";
|
|
643
|
+
readonly phoneCode: "+507";
|
|
644
|
+
readonly phoneMaxDigits: 8;
|
|
645
|
+
readonly phoneTrunkPrefix: "";
|
|
646
|
+
};
|
|
647
|
+
readonly CN: {
|
|
648
|
+
readonly name: "China";
|
|
649
|
+
readonly iso2: "CN";
|
|
650
|
+
readonly iso3: "CHN";
|
|
651
|
+
readonly numericCode: "156";
|
|
652
|
+
readonly phoneCode: "+86";
|
|
653
|
+
readonly phoneMaxDigits: 11;
|
|
654
|
+
readonly phoneTrunkPrefix: "";
|
|
655
|
+
};
|
|
656
|
+
readonly JP: {
|
|
657
|
+
readonly name: "Japan";
|
|
658
|
+
readonly iso2: "JP";
|
|
659
|
+
readonly iso3: "JPN";
|
|
660
|
+
readonly numericCode: "392";
|
|
661
|
+
readonly phoneCode: "+81";
|
|
662
|
+
readonly phoneMaxDigits: 11;
|
|
663
|
+
readonly phoneTrunkPrefix: "0";
|
|
664
|
+
};
|
|
665
|
+
readonly IN: {
|
|
666
|
+
readonly name: "India";
|
|
667
|
+
readonly iso2: "IN";
|
|
668
|
+
readonly iso3: "IND";
|
|
669
|
+
readonly numericCode: "356";
|
|
670
|
+
readonly phoneCode: "+91";
|
|
671
|
+
readonly phoneMaxDigits: 10;
|
|
672
|
+
readonly phoneTrunkPrefix: "";
|
|
673
|
+
};
|
|
674
|
+
readonly KR: {
|
|
675
|
+
readonly name: "South Korea";
|
|
676
|
+
readonly iso2: "KR";
|
|
677
|
+
readonly iso3: "KOR";
|
|
678
|
+
readonly numericCode: "410";
|
|
679
|
+
readonly phoneCode: "+82";
|
|
680
|
+
readonly phoneMaxDigits: 11;
|
|
681
|
+
readonly phoneTrunkPrefix: "0";
|
|
682
|
+
};
|
|
683
|
+
readonly SG: {
|
|
684
|
+
readonly name: "Singapore";
|
|
685
|
+
readonly iso2: "SG";
|
|
686
|
+
readonly iso3: "SGP";
|
|
687
|
+
readonly numericCode: "702";
|
|
688
|
+
readonly phoneCode: "+65";
|
|
689
|
+
readonly phoneMaxDigits: 8;
|
|
690
|
+
readonly phoneTrunkPrefix: "";
|
|
691
|
+
};
|
|
692
|
+
readonly HK: {
|
|
693
|
+
readonly name: "Hong Kong";
|
|
694
|
+
readonly iso2: "HK";
|
|
695
|
+
readonly iso3: "HKG";
|
|
696
|
+
readonly numericCode: "344";
|
|
697
|
+
readonly phoneCode: "+852";
|
|
698
|
+
readonly phoneMaxDigits: 8;
|
|
699
|
+
readonly phoneTrunkPrefix: "";
|
|
700
|
+
};
|
|
701
|
+
readonly TW: {
|
|
702
|
+
readonly name: "Taiwan";
|
|
703
|
+
readonly iso2: "TW";
|
|
704
|
+
readonly iso3: "TWN";
|
|
705
|
+
readonly numericCode: "158";
|
|
706
|
+
readonly phoneCode: "+886";
|
|
707
|
+
readonly phoneMaxDigits: 10;
|
|
708
|
+
readonly phoneTrunkPrefix: "0";
|
|
709
|
+
};
|
|
710
|
+
readonly TH: {
|
|
711
|
+
readonly name: "Thailand";
|
|
712
|
+
readonly iso2: "TH";
|
|
713
|
+
readonly iso3: "THA";
|
|
714
|
+
readonly numericCode: "764";
|
|
715
|
+
readonly phoneCode: "+66";
|
|
716
|
+
readonly phoneMaxDigits: 9;
|
|
717
|
+
readonly phoneTrunkPrefix: "0";
|
|
718
|
+
};
|
|
719
|
+
readonly MY: {
|
|
720
|
+
readonly name: "Malaysia";
|
|
721
|
+
readonly iso2: "MY";
|
|
722
|
+
readonly iso3: "MYS";
|
|
723
|
+
readonly numericCode: "458";
|
|
724
|
+
readonly phoneCode: "+60";
|
|
725
|
+
readonly phoneMaxDigits: 10;
|
|
726
|
+
readonly phoneTrunkPrefix: "0";
|
|
727
|
+
};
|
|
728
|
+
readonly ID: {
|
|
729
|
+
readonly name: "Indonesia";
|
|
730
|
+
readonly iso2: "ID";
|
|
731
|
+
readonly iso3: "IDN";
|
|
732
|
+
readonly numericCode: "360";
|
|
733
|
+
readonly phoneCode: "+62";
|
|
734
|
+
readonly phoneMaxDigits: 12;
|
|
735
|
+
readonly phoneTrunkPrefix: "0";
|
|
736
|
+
};
|
|
737
|
+
readonly PH: {
|
|
738
|
+
readonly name: "Philippines";
|
|
739
|
+
readonly iso2: "PH";
|
|
740
|
+
readonly iso3: "PHL";
|
|
741
|
+
readonly numericCode: "608";
|
|
742
|
+
readonly phoneCode: "+63";
|
|
743
|
+
readonly phoneMaxDigits: 10;
|
|
744
|
+
readonly phoneTrunkPrefix: "0";
|
|
745
|
+
};
|
|
746
|
+
readonly VN: {
|
|
747
|
+
readonly name: "Vietnam";
|
|
748
|
+
readonly iso2: "VN";
|
|
749
|
+
readonly iso3: "VNM";
|
|
750
|
+
readonly numericCode: "704";
|
|
751
|
+
readonly phoneCode: "+84";
|
|
752
|
+
readonly phoneMaxDigits: 10;
|
|
753
|
+
readonly phoneTrunkPrefix: "0";
|
|
754
|
+
};
|
|
755
|
+
readonly PK: {
|
|
756
|
+
readonly name: "Pakistan";
|
|
757
|
+
readonly iso2: "PK";
|
|
758
|
+
readonly iso3: "PAK";
|
|
759
|
+
readonly numericCode: "586";
|
|
760
|
+
readonly phoneCode: "+92";
|
|
761
|
+
readonly phoneMaxDigits: 10;
|
|
762
|
+
readonly phoneTrunkPrefix: "0";
|
|
763
|
+
};
|
|
764
|
+
readonly BD: {
|
|
765
|
+
readonly name: "Bangladesh";
|
|
766
|
+
readonly iso2: "BD";
|
|
767
|
+
readonly iso3: "BGD";
|
|
768
|
+
readonly numericCode: "050";
|
|
769
|
+
readonly phoneCode: "+880";
|
|
770
|
+
readonly phoneMaxDigits: 10;
|
|
771
|
+
readonly phoneTrunkPrefix: "0";
|
|
772
|
+
};
|
|
773
|
+
readonly IL: {
|
|
774
|
+
readonly name: "Israel";
|
|
775
|
+
readonly iso2: "IL";
|
|
776
|
+
readonly iso3: "ISR";
|
|
777
|
+
readonly numericCode: "376";
|
|
778
|
+
readonly phoneCode: "+972";
|
|
779
|
+
readonly phoneMaxDigits: 10;
|
|
780
|
+
readonly phoneTrunkPrefix: "0";
|
|
781
|
+
};
|
|
782
|
+
readonly AE: {
|
|
783
|
+
readonly name: "United Arab Emirates";
|
|
784
|
+
readonly iso2: "AE";
|
|
785
|
+
readonly iso3: "ARE";
|
|
786
|
+
readonly numericCode: "784";
|
|
787
|
+
readonly phoneCode: "+971";
|
|
788
|
+
readonly phoneMaxDigits: 9;
|
|
789
|
+
readonly phoneTrunkPrefix: "";
|
|
790
|
+
};
|
|
791
|
+
readonly SA: {
|
|
792
|
+
readonly name: "Saudi Arabia";
|
|
793
|
+
readonly iso2: "SA";
|
|
794
|
+
readonly iso3: "SAU";
|
|
795
|
+
readonly numericCode: "682";
|
|
796
|
+
readonly phoneCode: "+966";
|
|
797
|
+
readonly phoneMaxDigits: 9;
|
|
798
|
+
readonly phoneTrunkPrefix: "";
|
|
799
|
+
};
|
|
800
|
+
readonly TR: {
|
|
801
|
+
readonly name: "Turkey";
|
|
802
|
+
readonly iso2: "TR";
|
|
803
|
+
readonly iso3: "TUR";
|
|
804
|
+
readonly numericCode: "792";
|
|
805
|
+
readonly phoneCode: "+90";
|
|
806
|
+
readonly phoneMaxDigits: 10;
|
|
807
|
+
readonly phoneTrunkPrefix: "0";
|
|
808
|
+
};
|
|
809
|
+
readonly NZ: {
|
|
810
|
+
readonly name: "New Zealand";
|
|
811
|
+
readonly iso2: "NZ";
|
|
812
|
+
readonly iso3: "NZL";
|
|
813
|
+
readonly numericCode: "554";
|
|
814
|
+
readonly phoneCode: "+64";
|
|
815
|
+
readonly phoneMaxDigits: 10;
|
|
816
|
+
readonly phoneTrunkPrefix: "0";
|
|
817
|
+
};
|
|
818
|
+
readonly ZA: {
|
|
819
|
+
readonly name: "South Africa";
|
|
820
|
+
readonly iso2: "ZA";
|
|
821
|
+
readonly iso3: "ZAF";
|
|
822
|
+
readonly numericCode: "710";
|
|
823
|
+
readonly phoneCode: "+27";
|
|
824
|
+
readonly phoneMaxDigits: 9;
|
|
825
|
+
readonly phoneTrunkPrefix: "0";
|
|
826
|
+
};
|
|
827
|
+
readonly EG: {
|
|
828
|
+
readonly name: "Egypt";
|
|
829
|
+
readonly iso2: "EG";
|
|
830
|
+
readonly iso3: "EGY";
|
|
831
|
+
readonly numericCode: "818";
|
|
832
|
+
readonly phoneCode: "+20";
|
|
833
|
+
readonly phoneMaxDigits: 10;
|
|
834
|
+
readonly phoneTrunkPrefix: "0";
|
|
835
|
+
};
|
|
836
|
+
readonly NG: {
|
|
837
|
+
readonly name: "Nigeria";
|
|
838
|
+
readonly iso2: "NG";
|
|
839
|
+
readonly iso3: "NGA";
|
|
840
|
+
readonly numericCode: "566";
|
|
841
|
+
readonly phoneCode: "+234";
|
|
842
|
+
readonly phoneMaxDigits: 10;
|
|
843
|
+
readonly phoneTrunkPrefix: "0";
|
|
844
|
+
};
|
|
845
|
+
readonly KE: {
|
|
846
|
+
readonly name: "Kenya";
|
|
847
|
+
readonly iso2: "KE";
|
|
848
|
+
readonly iso3: "KEN";
|
|
849
|
+
readonly numericCode: "404";
|
|
850
|
+
readonly phoneCode: "+254";
|
|
851
|
+
readonly phoneMaxDigits: 9;
|
|
852
|
+
readonly phoneTrunkPrefix: "0";
|
|
853
|
+
};
|
|
854
|
+
readonly MA: {
|
|
855
|
+
readonly name: "Morocco";
|
|
856
|
+
readonly iso2: "MA";
|
|
857
|
+
readonly iso3: "MAR";
|
|
858
|
+
readonly numericCode: "504";
|
|
859
|
+
readonly phoneCode: "+212";
|
|
860
|
+
readonly phoneMaxDigits: 9;
|
|
861
|
+
readonly phoneTrunkPrefix: "0";
|
|
862
|
+
};
|
|
863
|
+
readonly TN: {
|
|
864
|
+
readonly name: "Tunisia";
|
|
865
|
+
readonly iso2: "TN";
|
|
866
|
+
readonly iso3: "TUN";
|
|
867
|
+
readonly numericCode: "788";
|
|
868
|
+
readonly phoneCode: "+216";
|
|
869
|
+
readonly phoneMaxDigits: 8;
|
|
870
|
+
readonly phoneTrunkPrefix: "";
|
|
871
|
+
};
|
|
872
|
+
readonly DZ: {
|
|
873
|
+
readonly name: "Algeria";
|
|
874
|
+
readonly iso2: "DZ";
|
|
875
|
+
readonly iso3: "DZA";
|
|
876
|
+
readonly numericCode: "012";
|
|
877
|
+
readonly phoneCode: "+213";
|
|
878
|
+
readonly phoneMaxDigits: 9;
|
|
879
|
+
readonly phoneTrunkPrefix: "0";
|
|
880
|
+
};
|
|
881
|
+
readonly QA: {
|
|
882
|
+
readonly name: "Qatar";
|
|
883
|
+
readonly iso2: "QA";
|
|
884
|
+
readonly iso3: "QAT";
|
|
885
|
+
readonly numericCode: "634";
|
|
886
|
+
readonly phoneCode: "+974";
|
|
887
|
+
readonly phoneMaxDigits: 8;
|
|
888
|
+
readonly phoneTrunkPrefix: "";
|
|
889
|
+
};
|
|
890
|
+
readonly KW: {
|
|
891
|
+
readonly name: "Kuwait";
|
|
892
|
+
readonly iso2: "KW";
|
|
893
|
+
readonly iso3: "KWT";
|
|
894
|
+
readonly numericCode: "414";
|
|
895
|
+
readonly phoneCode: "+965";
|
|
896
|
+
readonly phoneMaxDigits: 8;
|
|
897
|
+
readonly phoneTrunkPrefix: "";
|
|
898
|
+
};
|
|
899
|
+
readonly OM: {
|
|
900
|
+
readonly name: "Oman";
|
|
901
|
+
readonly iso2: "OM";
|
|
902
|
+
readonly iso3: "OMN";
|
|
903
|
+
readonly numericCode: "512";
|
|
904
|
+
readonly phoneCode: "+968";
|
|
905
|
+
readonly phoneMaxDigits: 8;
|
|
906
|
+
readonly phoneTrunkPrefix: "";
|
|
907
|
+
};
|
|
908
|
+
readonly BH: {
|
|
909
|
+
readonly name: "Bahrain";
|
|
910
|
+
readonly iso2: "BH";
|
|
911
|
+
readonly iso3: "BHR";
|
|
912
|
+
readonly numericCode: "048";
|
|
913
|
+
readonly phoneCode: "+973";
|
|
914
|
+
readonly phoneMaxDigits: 8;
|
|
915
|
+
readonly phoneTrunkPrefix: "";
|
|
916
|
+
};
|
|
917
|
+
readonly LB: {
|
|
918
|
+
readonly name: "Lebanon";
|
|
919
|
+
readonly iso2: "LB";
|
|
920
|
+
readonly iso3: "LBN";
|
|
921
|
+
readonly numericCode: "422";
|
|
922
|
+
readonly phoneCode: "+961";
|
|
923
|
+
readonly phoneMaxDigits: 8;
|
|
924
|
+
readonly phoneTrunkPrefix: "0";
|
|
925
|
+
};
|
|
926
|
+
readonly JO: {
|
|
927
|
+
readonly name: "Jordan";
|
|
928
|
+
readonly iso2: "JO";
|
|
929
|
+
readonly iso3: "JOR";
|
|
930
|
+
readonly numericCode: "400";
|
|
931
|
+
readonly phoneCode: "+962";
|
|
932
|
+
readonly phoneMaxDigits: 9;
|
|
933
|
+
readonly phoneTrunkPrefix: "0";
|
|
934
|
+
};
|
|
935
|
+
readonly RU: {
|
|
936
|
+
readonly name: "Russia";
|
|
937
|
+
readonly iso2: "RU";
|
|
938
|
+
readonly iso3: "RUS";
|
|
939
|
+
readonly numericCode: "643";
|
|
940
|
+
readonly phoneCode: "+7";
|
|
941
|
+
readonly phoneMaxDigits: 10;
|
|
942
|
+
readonly phoneTrunkPrefix: "";
|
|
943
|
+
};
|
|
944
|
+
readonly UA: {
|
|
945
|
+
readonly name: "Ukraine";
|
|
946
|
+
readonly iso2: "UA";
|
|
947
|
+
readonly iso3: "UKR";
|
|
948
|
+
readonly numericCode: "804";
|
|
949
|
+
readonly phoneCode: "+380";
|
|
950
|
+
readonly phoneMaxDigits: 9;
|
|
951
|
+
readonly phoneTrunkPrefix: "0";
|
|
952
|
+
};
|
|
953
|
+
readonly BY: {
|
|
954
|
+
readonly name: "Belarus";
|
|
955
|
+
readonly iso2: "BY";
|
|
956
|
+
readonly iso3: "BLR";
|
|
957
|
+
readonly numericCode: "112";
|
|
958
|
+
readonly phoneCode: "+375";
|
|
959
|
+
readonly phoneMaxDigits: 9;
|
|
960
|
+
readonly phoneTrunkPrefix: "";
|
|
961
|
+
};
|
|
962
|
+
readonly KZ: {
|
|
963
|
+
readonly name: "Kazakhstan";
|
|
964
|
+
readonly iso2: "KZ";
|
|
965
|
+
readonly iso3: "KAZ";
|
|
966
|
+
readonly numericCode: "398";
|
|
967
|
+
readonly phoneCode: "+7";
|
|
968
|
+
readonly phoneMaxDigits: 10;
|
|
969
|
+
readonly phoneTrunkPrefix: "";
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
type CountryIso2 = keyof typeof COUNTRIES;
|
|
973
|
+
type CountryIso3 = (typeof COUNTRIES)[CountryIso2]["iso3"];
|
|
974
|
+
type CountryPhoneCode = (typeof COUNTRIES)[CountryIso2]["phoneCode"];
|
|
975
|
+
type CountryName = (typeof COUNTRIES)[CountryIso2]["name"];
|
|
976
|
+
type CountryNumericCode = (typeof COUNTRIES)[CountryIso2]["numericCode"];
|
|
977
|
+
declare const getCountryByIso2: (iso2: string) => Country | undefined;
|
|
978
|
+
declare const getCountryByIso3: (iso3: string) => Country | undefined;
|
|
979
|
+
declare const getAllCountries: () => Country[];
|
|
980
|
+
declare const getCountryPhoneCode: (iso2: string) => string;
|
|
981
|
+
declare const getPhoneMaxDigits: (iso2: string) => number;
|
|
982
|
+
declare const getPhoneTrunkPrefix: (iso2: string) => string;
|
|
983
|
+
/**
|
|
984
|
+
* Type guard to check if a string is a valid ISO2 country code
|
|
985
|
+
*/
|
|
986
|
+
declare const isValidIso2: (code: string) => code is CountryIso2;
|
|
987
|
+
/**
|
|
988
|
+
* Type guard to check if a string is a valid ISO3 country code
|
|
989
|
+
*/
|
|
990
|
+
declare const isValidIso3: (code: string) => code is CountryIso3;
|
|
991
|
+
|
|
992
|
+
interface Currency {
|
|
993
|
+
code: string;
|
|
994
|
+
name: string;
|
|
995
|
+
symbol: string;
|
|
996
|
+
decimals: number;
|
|
997
|
+
}
|
|
998
|
+
declare const CURRENCIES: {
|
|
999
|
+
readonly USD: {
|
|
1000
|
+
readonly code: "USD";
|
|
1001
|
+
readonly name: "US Dollar";
|
|
1002
|
+
readonly symbol: "$";
|
|
1003
|
+
readonly decimals: 2;
|
|
1004
|
+
};
|
|
1005
|
+
readonly EUR: {
|
|
1006
|
+
readonly code: "EUR";
|
|
1007
|
+
readonly name: "Euro";
|
|
1008
|
+
readonly symbol: "€";
|
|
1009
|
+
readonly decimals: 2;
|
|
1010
|
+
};
|
|
1011
|
+
readonly GBP: {
|
|
1012
|
+
readonly code: "GBP";
|
|
1013
|
+
readonly name: "British Pound";
|
|
1014
|
+
readonly symbol: "£";
|
|
1015
|
+
readonly decimals: 2;
|
|
1016
|
+
};
|
|
1017
|
+
readonly JPY: {
|
|
1018
|
+
readonly code: "JPY";
|
|
1019
|
+
readonly name: "Japanese Yen";
|
|
1020
|
+
readonly symbol: "¥";
|
|
1021
|
+
readonly decimals: 0;
|
|
1022
|
+
};
|
|
1023
|
+
readonly CNY: {
|
|
1024
|
+
readonly code: "CNY";
|
|
1025
|
+
readonly name: "Chinese Yuan";
|
|
1026
|
+
readonly symbol: "¥";
|
|
1027
|
+
readonly decimals: 2;
|
|
1028
|
+
};
|
|
1029
|
+
readonly CHF: {
|
|
1030
|
+
readonly code: "CHF";
|
|
1031
|
+
readonly name: "Swiss Franc";
|
|
1032
|
+
readonly symbol: "CHF";
|
|
1033
|
+
readonly decimals: 2;
|
|
1034
|
+
};
|
|
1035
|
+
readonly SEK: {
|
|
1036
|
+
readonly code: "SEK";
|
|
1037
|
+
readonly name: "Swedish Krona";
|
|
1038
|
+
readonly symbol: "kr";
|
|
1039
|
+
readonly decimals: 2;
|
|
1040
|
+
};
|
|
1041
|
+
readonly NOK: {
|
|
1042
|
+
readonly code: "NOK";
|
|
1043
|
+
readonly name: "Norwegian Krone";
|
|
1044
|
+
readonly symbol: "kr";
|
|
1045
|
+
readonly decimals: 2;
|
|
1046
|
+
};
|
|
1047
|
+
readonly DKK: {
|
|
1048
|
+
readonly code: "DKK";
|
|
1049
|
+
readonly name: "Danish Krone";
|
|
1050
|
+
readonly symbol: "kr";
|
|
1051
|
+
readonly decimals: 2;
|
|
1052
|
+
};
|
|
1053
|
+
readonly PLN: {
|
|
1054
|
+
readonly code: "PLN";
|
|
1055
|
+
readonly name: "Polish Zloty";
|
|
1056
|
+
readonly symbol: "zł";
|
|
1057
|
+
readonly decimals: 2;
|
|
1058
|
+
};
|
|
1059
|
+
readonly CZK: {
|
|
1060
|
+
readonly code: "CZK";
|
|
1061
|
+
readonly name: "Czech Koruna";
|
|
1062
|
+
readonly symbol: "Kč";
|
|
1063
|
+
readonly decimals: 2;
|
|
1064
|
+
};
|
|
1065
|
+
readonly HUF: {
|
|
1066
|
+
readonly code: "HUF";
|
|
1067
|
+
readonly name: "Hungarian Forint";
|
|
1068
|
+
readonly symbol: "Ft";
|
|
1069
|
+
readonly decimals: 0;
|
|
1070
|
+
};
|
|
1071
|
+
readonly RON: {
|
|
1072
|
+
readonly code: "RON";
|
|
1073
|
+
readonly name: "Romanian Leu";
|
|
1074
|
+
readonly symbol: "lei";
|
|
1075
|
+
readonly decimals: 2;
|
|
1076
|
+
};
|
|
1077
|
+
readonly BGN: {
|
|
1078
|
+
readonly code: "BGN";
|
|
1079
|
+
readonly name: "Bulgarian Lev";
|
|
1080
|
+
readonly symbol: "лв";
|
|
1081
|
+
readonly decimals: 2;
|
|
1082
|
+
};
|
|
1083
|
+
readonly HRK: {
|
|
1084
|
+
readonly code: "HRK";
|
|
1085
|
+
readonly name: "Croatian Kuna";
|
|
1086
|
+
readonly symbol: "kn";
|
|
1087
|
+
readonly decimals: 2;
|
|
1088
|
+
};
|
|
1089
|
+
readonly ISK: {
|
|
1090
|
+
readonly code: "ISK";
|
|
1091
|
+
readonly name: "Icelandic Krona";
|
|
1092
|
+
readonly symbol: "kr";
|
|
1093
|
+
readonly decimals: 0;
|
|
1094
|
+
};
|
|
1095
|
+
readonly RUB: {
|
|
1096
|
+
readonly code: "RUB";
|
|
1097
|
+
readonly name: "Russian Ruble";
|
|
1098
|
+
readonly symbol: "₽";
|
|
1099
|
+
readonly decimals: 2;
|
|
1100
|
+
};
|
|
1101
|
+
readonly UAH: {
|
|
1102
|
+
readonly code: "UAH";
|
|
1103
|
+
readonly name: "Ukrainian Hryvnia";
|
|
1104
|
+
readonly symbol: "₴";
|
|
1105
|
+
readonly decimals: 2;
|
|
1106
|
+
};
|
|
1107
|
+
readonly TRY: {
|
|
1108
|
+
readonly code: "TRY";
|
|
1109
|
+
readonly name: "Turkish Lira";
|
|
1110
|
+
readonly symbol: "₺";
|
|
1111
|
+
readonly decimals: 2;
|
|
1112
|
+
};
|
|
1113
|
+
readonly CAD: {
|
|
1114
|
+
readonly code: "CAD";
|
|
1115
|
+
readonly name: "Canadian Dollar";
|
|
1116
|
+
readonly symbol: "CA$";
|
|
1117
|
+
readonly decimals: 2;
|
|
1118
|
+
};
|
|
1119
|
+
readonly MXN: {
|
|
1120
|
+
readonly code: "MXN";
|
|
1121
|
+
readonly name: "Mexican Peso";
|
|
1122
|
+
readonly symbol: "MX$";
|
|
1123
|
+
readonly decimals: 2;
|
|
1124
|
+
};
|
|
1125
|
+
readonly BRL: {
|
|
1126
|
+
readonly code: "BRL";
|
|
1127
|
+
readonly name: "Brazilian Real";
|
|
1128
|
+
readonly symbol: "R$";
|
|
1129
|
+
readonly decimals: 2;
|
|
1130
|
+
};
|
|
1131
|
+
readonly ARS: {
|
|
1132
|
+
readonly code: "ARS";
|
|
1133
|
+
readonly name: "Argentine Peso";
|
|
1134
|
+
readonly symbol: "AR$";
|
|
1135
|
+
readonly decimals: 2;
|
|
1136
|
+
};
|
|
1137
|
+
readonly CLP: {
|
|
1138
|
+
readonly code: "CLP";
|
|
1139
|
+
readonly name: "Chilean Peso";
|
|
1140
|
+
readonly symbol: "CL$";
|
|
1141
|
+
readonly decimals: 0;
|
|
1142
|
+
};
|
|
1143
|
+
readonly COP: {
|
|
1144
|
+
readonly code: "COP";
|
|
1145
|
+
readonly name: "Colombian Peso";
|
|
1146
|
+
readonly symbol: "COL$";
|
|
1147
|
+
readonly decimals: 0;
|
|
1148
|
+
};
|
|
1149
|
+
readonly PEN: {
|
|
1150
|
+
readonly code: "PEN";
|
|
1151
|
+
readonly name: "Peruvian Sol";
|
|
1152
|
+
readonly symbol: "S/";
|
|
1153
|
+
readonly decimals: 2;
|
|
1154
|
+
};
|
|
1155
|
+
readonly UYU: {
|
|
1156
|
+
readonly code: "UYU";
|
|
1157
|
+
readonly name: "Uruguayan Peso";
|
|
1158
|
+
readonly symbol: "UY$";
|
|
1159
|
+
readonly decimals: 2;
|
|
1160
|
+
};
|
|
1161
|
+
readonly AUD: {
|
|
1162
|
+
readonly code: "AUD";
|
|
1163
|
+
readonly name: "Australian Dollar";
|
|
1164
|
+
readonly symbol: "A$";
|
|
1165
|
+
readonly decimals: 2;
|
|
1166
|
+
};
|
|
1167
|
+
readonly NZD: {
|
|
1168
|
+
readonly code: "NZD";
|
|
1169
|
+
readonly name: "New Zealand Dollar";
|
|
1170
|
+
readonly symbol: "NZ$";
|
|
1171
|
+
readonly decimals: 2;
|
|
1172
|
+
};
|
|
1173
|
+
readonly HKD: {
|
|
1174
|
+
readonly code: "HKD";
|
|
1175
|
+
readonly name: "Hong Kong Dollar";
|
|
1176
|
+
readonly symbol: "HK$";
|
|
1177
|
+
readonly decimals: 2;
|
|
1178
|
+
};
|
|
1179
|
+
readonly SGD: {
|
|
1180
|
+
readonly code: "SGD";
|
|
1181
|
+
readonly name: "Singapore Dollar";
|
|
1182
|
+
readonly symbol: "S$";
|
|
1183
|
+
readonly decimals: 2;
|
|
1184
|
+
};
|
|
1185
|
+
readonly KRW: {
|
|
1186
|
+
readonly code: "KRW";
|
|
1187
|
+
readonly name: "South Korean Won";
|
|
1188
|
+
readonly symbol: "₩";
|
|
1189
|
+
readonly decimals: 0;
|
|
1190
|
+
};
|
|
1191
|
+
readonly INR: {
|
|
1192
|
+
readonly code: "INR";
|
|
1193
|
+
readonly name: "Indian Rupee";
|
|
1194
|
+
readonly symbol: "₹";
|
|
1195
|
+
readonly decimals: 2;
|
|
1196
|
+
};
|
|
1197
|
+
readonly IDR: {
|
|
1198
|
+
readonly code: "IDR";
|
|
1199
|
+
readonly name: "Indonesian Rupiah";
|
|
1200
|
+
readonly symbol: "Rp";
|
|
1201
|
+
readonly decimals: 0;
|
|
1202
|
+
};
|
|
1203
|
+
readonly MYR: {
|
|
1204
|
+
readonly code: "MYR";
|
|
1205
|
+
readonly name: "Malaysian Ringgit";
|
|
1206
|
+
readonly symbol: "RM";
|
|
1207
|
+
readonly decimals: 2;
|
|
1208
|
+
};
|
|
1209
|
+
readonly PHP: {
|
|
1210
|
+
readonly code: "PHP";
|
|
1211
|
+
readonly name: "Philippine Peso";
|
|
1212
|
+
readonly symbol: "₱";
|
|
1213
|
+
readonly decimals: 2;
|
|
1214
|
+
};
|
|
1215
|
+
readonly THB: {
|
|
1216
|
+
readonly code: "THB";
|
|
1217
|
+
readonly name: "Thai Baht";
|
|
1218
|
+
readonly symbol: "฿";
|
|
1219
|
+
readonly decimals: 2;
|
|
1220
|
+
};
|
|
1221
|
+
readonly VND: {
|
|
1222
|
+
readonly code: "VND";
|
|
1223
|
+
readonly name: "Vietnamese Dong";
|
|
1224
|
+
readonly symbol: "₫";
|
|
1225
|
+
readonly decimals: 0;
|
|
1226
|
+
};
|
|
1227
|
+
readonly TWD: {
|
|
1228
|
+
readonly code: "TWD";
|
|
1229
|
+
readonly name: "Taiwan Dollar";
|
|
1230
|
+
readonly symbol: "NT$";
|
|
1231
|
+
readonly decimals: 0;
|
|
1232
|
+
};
|
|
1233
|
+
readonly PKR: {
|
|
1234
|
+
readonly code: "PKR";
|
|
1235
|
+
readonly name: "Pakistani Rupee";
|
|
1236
|
+
readonly symbol: "₨";
|
|
1237
|
+
readonly decimals: 2;
|
|
1238
|
+
};
|
|
1239
|
+
readonly BDT: {
|
|
1240
|
+
readonly code: "BDT";
|
|
1241
|
+
readonly name: "Bangladeshi Taka";
|
|
1242
|
+
readonly symbol: "৳";
|
|
1243
|
+
readonly decimals: 2;
|
|
1244
|
+
};
|
|
1245
|
+
readonly AED: {
|
|
1246
|
+
readonly code: "AED";
|
|
1247
|
+
readonly name: "UAE Dirham";
|
|
1248
|
+
readonly symbol: "د.إ";
|
|
1249
|
+
readonly decimals: 2;
|
|
1250
|
+
};
|
|
1251
|
+
readonly SAR: {
|
|
1252
|
+
readonly code: "SAR";
|
|
1253
|
+
readonly name: "Saudi Riyal";
|
|
1254
|
+
readonly symbol: "﷼";
|
|
1255
|
+
readonly decimals: 2;
|
|
1256
|
+
};
|
|
1257
|
+
readonly ILS: {
|
|
1258
|
+
readonly code: "ILS";
|
|
1259
|
+
readonly name: "Israeli Shekel";
|
|
1260
|
+
readonly symbol: "₪";
|
|
1261
|
+
readonly decimals: 2;
|
|
1262
|
+
};
|
|
1263
|
+
readonly QAR: {
|
|
1264
|
+
readonly code: "QAR";
|
|
1265
|
+
readonly name: "Qatari Riyal";
|
|
1266
|
+
readonly symbol: "﷼";
|
|
1267
|
+
readonly decimals: 2;
|
|
1268
|
+
};
|
|
1269
|
+
readonly KWD: {
|
|
1270
|
+
readonly code: "KWD";
|
|
1271
|
+
readonly name: "Kuwaiti Dinar";
|
|
1272
|
+
readonly symbol: "د.ك";
|
|
1273
|
+
readonly decimals: 3;
|
|
1274
|
+
};
|
|
1275
|
+
readonly BHD: {
|
|
1276
|
+
readonly code: "BHD";
|
|
1277
|
+
readonly name: "Bahraini Dinar";
|
|
1278
|
+
readonly symbol: "د.ب";
|
|
1279
|
+
readonly decimals: 3;
|
|
1280
|
+
};
|
|
1281
|
+
readonly OMR: {
|
|
1282
|
+
readonly code: "OMR";
|
|
1283
|
+
readonly name: "Omani Rial";
|
|
1284
|
+
readonly symbol: "﷼";
|
|
1285
|
+
readonly decimals: 3;
|
|
1286
|
+
};
|
|
1287
|
+
readonly JOD: {
|
|
1288
|
+
readonly code: "JOD";
|
|
1289
|
+
readonly name: "Jordanian Dinar";
|
|
1290
|
+
readonly symbol: "د.ا";
|
|
1291
|
+
readonly decimals: 3;
|
|
1292
|
+
};
|
|
1293
|
+
readonly LBP: {
|
|
1294
|
+
readonly code: "LBP";
|
|
1295
|
+
readonly name: "Lebanese Pound";
|
|
1296
|
+
readonly symbol: "ل.ل";
|
|
1297
|
+
readonly decimals: 0;
|
|
1298
|
+
};
|
|
1299
|
+
readonly ZAR: {
|
|
1300
|
+
readonly code: "ZAR";
|
|
1301
|
+
readonly name: "South African Rand";
|
|
1302
|
+
readonly symbol: "R";
|
|
1303
|
+
readonly decimals: 2;
|
|
1304
|
+
};
|
|
1305
|
+
readonly EGP: {
|
|
1306
|
+
readonly code: "EGP";
|
|
1307
|
+
readonly name: "Egyptian Pound";
|
|
1308
|
+
readonly symbol: "£";
|
|
1309
|
+
readonly decimals: 2;
|
|
1310
|
+
};
|
|
1311
|
+
readonly NGN: {
|
|
1312
|
+
readonly code: "NGN";
|
|
1313
|
+
readonly name: "Nigerian Naira";
|
|
1314
|
+
readonly symbol: "₦";
|
|
1315
|
+
readonly decimals: 2;
|
|
1316
|
+
};
|
|
1317
|
+
readonly KES: {
|
|
1318
|
+
readonly code: "KES";
|
|
1319
|
+
readonly name: "Kenyan Shilling";
|
|
1320
|
+
readonly symbol: "KSh";
|
|
1321
|
+
readonly decimals: 2;
|
|
1322
|
+
};
|
|
1323
|
+
readonly MAD: {
|
|
1324
|
+
readonly code: "MAD";
|
|
1325
|
+
readonly name: "Moroccan Dirham";
|
|
1326
|
+
readonly symbol: "د.م.";
|
|
1327
|
+
readonly decimals: 2;
|
|
1328
|
+
};
|
|
1329
|
+
readonly TND: {
|
|
1330
|
+
readonly code: "TND";
|
|
1331
|
+
readonly name: "Tunisian Dinar";
|
|
1332
|
+
readonly symbol: "د.ت";
|
|
1333
|
+
readonly decimals: 3;
|
|
1334
|
+
};
|
|
1335
|
+
readonly DZD: {
|
|
1336
|
+
readonly code: "DZD";
|
|
1337
|
+
readonly name: "Algerian Dinar";
|
|
1338
|
+
readonly symbol: "د.ج";
|
|
1339
|
+
readonly decimals: 2;
|
|
1340
|
+
};
|
|
1341
|
+
readonly NIS: {
|
|
1342
|
+
readonly code: "NIS";
|
|
1343
|
+
readonly name: "Israeli New Shekel";
|
|
1344
|
+
readonly symbol: "₪";
|
|
1345
|
+
readonly decimals: 2;
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
type CurrencyCode = keyof typeof CURRENCIES;
|
|
1349
|
+
type CurrencySymbol = (typeof CURRENCIES)[CurrencyCode]["symbol"];
|
|
1350
|
+
type CurrencyName = (typeof CURRENCIES)[CurrencyCode]["name"];
|
|
1351
|
+
declare const getCurrency: (code: string) => Currency | undefined;
|
|
1352
|
+
declare const getAllCurrencies: () => Currency[];
|
|
1353
|
+
declare const getCurrencySymbol: (code: string) => string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Type guard to check if a string is a valid currency code
|
|
1356
|
+
*/
|
|
1357
|
+
declare const isValidCurrencyCode: (code: string) => code is CurrencyCode;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* File size constants in bytes for intuitive file size validation
|
|
1361
|
+
*
|
|
1362
|
+
* @example
|
|
1363
|
+
* ```typescript
|
|
1364
|
+
* import { FILE_SIZE } from "@stndrds/constants";
|
|
1365
|
+
*
|
|
1366
|
+
* file({ name: "avatar" })
|
|
1367
|
+
* .maxSize(FILE_SIZE.MB_5) // 5 MB
|
|
1368
|
+
* .build();
|
|
1369
|
+
* ```
|
|
1370
|
+
*/
|
|
1371
|
+
declare const BYTES: {
|
|
1372
|
+
/** 1 byte */
|
|
1373
|
+
readonly B_1: 1;
|
|
1374
|
+
/** 10 bytes */
|
|
1375
|
+
readonly B_10: 10;
|
|
1376
|
+
/** 100 bytes */
|
|
1377
|
+
readonly B_100: 100;
|
|
1378
|
+
/** 512 bytes */
|
|
1379
|
+
readonly B_512: 512;
|
|
1380
|
+
};
|
|
1381
|
+
declare const KILOBYTES: {
|
|
1382
|
+
/** 1 KB (1,024 bytes) */
|
|
1383
|
+
readonly KB_1: 1024;
|
|
1384
|
+
/** 2 KB (2,048 bytes) */
|
|
1385
|
+
readonly KB_2: number;
|
|
1386
|
+
/** 5 KB (5,120 bytes) */
|
|
1387
|
+
readonly KB_5: number;
|
|
1388
|
+
/** 10 KB (10,240 bytes) */
|
|
1389
|
+
readonly KB_10: number;
|
|
1390
|
+
/** 50 KB (51,200 bytes) */
|
|
1391
|
+
readonly KB_50: number;
|
|
1392
|
+
/** 100 KB (102,400 bytes) */
|
|
1393
|
+
readonly KB_100: number;
|
|
1394
|
+
/** 500 KB (512,000 bytes) */
|
|
1395
|
+
readonly KB_500: number;
|
|
1396
|
+
};
|
|
1397
|
+
declare const MEGABYTES: {
|
|
1398
|
+
/** 1 MB (1,048,576 bytes) */
|
|
1399
|
+
readonly MB_1: number;
|
|
1400
|
+
/** 2 MB (2,097,152 bytes) */
|
|
1401
|
+
readonly MB_2: number;
|
|
1402
|
+
/** 5 MB (5,242,880 bytes) */
|
|
1403
|
+
readonly MB_5: number;
|
|
1404
|
+
/** 10 MB (10,485,760 bytes) */
|
|
1405
|
+
readonly MB_10: number;
|
|
1406
|
+
/** 20 MB (20,971,520 bytes) */
|
|
1407
|
+
readonly MB_20: number;
|
|
1408
|
+
/** 25 MB (26,214,400 bytes) */
|
|
1409
|
+
readonly MB_25: number;
|
|
1410
|
+
/** 50 MB (52,428,800 bytes) */
|
|
1411
|
+
readonly MB_50: number;
|
|
1412
|
+
/** 100 MB (104,857,600 bytes) */
|
|
1413
|
+
readonly MB_100: number;
|
|
1414
|
+
/** 200 MB (209,715,200 bytes) */
|
|
1415
|
+
readonly MB_200: number;
|
|
1416
|
+
/** 500 MB (524,288,000 bytes) */
|
|
1417
|
+
readonly MB_500: number;
|
|
1418
|
+
};
|
|
1419
|
+
declare const GIGABYTES: {
|
|
1420
|
+
/** 1 GB (1,073,741,824 bytes) */
|
|
1421
|
+
readonly GB_1: number;
|
|
1422
|
+
/** 2 GB (2,147,483,648 bytes) */
|
|
1423
|
+
readonly GB_2: number;
|
|
1424
|
+
/** 5 GB (5,368,709,120 bytes) */
|
|
1425
|
+
readonly GB_5: number;
|
|
1426
|
+
/** 10 GB (10,737,418,240 bytes) */
|
|
1427
|
+
readonly GB_10: number;
|
|
1428
|
+
};
|
|
1429
|
+
/**
|
|
1430
|
+
* All file size constants
|
|
1431
|
+
*
|
|
1432
|
+
* @example
|
|
1433
|
+
* ```typescript
|
|
1434
|
+
* import { FILE_SIZE } from "@stndrds/constants";
|
|
1435
|
+
*
|
|
1436
|
+
* // Small images
|
|
1437
|
+
* avatar.maxSize(FILE_SIZE.MB_2);
|
|
1438
|
+
*
|
|
1439
|
+
* // Documents
|
|
1440
|
+
* document.maxSize(FILE_SIZE.MB_10);
|
|
1441
|
+
*
|
|
1442
|
+
* // Large media files
|
|
1443
|
+
* video.maxSize(FILE_SIZE.GB_1);
|
|
1444
|
+
* ```
|
|
1445
|
+
*/
|
|
1446
|
+
declare const FILE_SIZE: {
|
|
1447
|
+
/** 1 GB (1,073,741,824 bytes) */
|
|
1448
|
+
readonly GB_1: number;
|
|
1449
|
+
/** 2 GB (2,147,483,648 bytes) */
|
|
1450
|
+
readonly GB_2: number;
|
|
1451
|
+
/** 5 GB (5,368,709,120 bytes) */
|
|
1452
|
+
readonly GB_5: number;
|
|
1453
|
+
/** 10 GB (10,737,418,240 bytes) */
|
|
1454
|
+
readonly GB_10: number;
|
|
1455
|
+
/** 1 MB (1,048,576 bytes) */
|
|
1456
|
+
readonly MB_1: number;
|
|
1457
|
+
/** 2 MB (2,097,152 bytes) */
|
|
1458
|
+
readonly MB_2: number;
|
|
1459
|
+
/** 5 MB (5,242,880 bytes) */
|
|
1460
|
+
readonly MB_5: number;
|
|
1461
|
+
/** 10 MB (10,485,760 bytes) */
|
|
1462
|
+
readonly MB_10: number;
|
|
1463
|
+
/** 20 MB (20,971,520 bytes) */
|
|
1464
|
+
readonly MB_20: number;
|
|
1465
|
+
/** 25 MB (26,214,400 bytes) */
|
|
1466
|
+
readonly MB_25: number;
|
|
1467
|
+
/** 50 MB (52,428,800 bytes) */
|
|
1468
|
+
readonly MB_50: number;
|
|
1469
|
+
/** 100 MB (104,857,600 bytes) */
|
|
1470
|
+
readonly MB_100: number;
|
|
1471
|
+
/** 200 MB (209,715,200 bytes) */
|
|
1472
|
+
readonly MB_200: number;
|
|
1473
|
+
/** 500 MB (524,288,000 bytes) */
|
|
1474
|
+
readonly MB_500: number;
|
|
1475
|
+
/** 1 KB (1,024 bytes) */
|
|
1476
|
+
readonly KB_1: 1024;
|
|
1477
|
+
/** 2 KB (2,048 bytes) */
|
|
1478
|
+
readonly KB_2: number;
|
|
1479
|
+
/** 5 KB (5,120 bytes) */
|
|
1480
|
+
readonly KB_5: number;
|
|
1481
|
+
/** 10 KB (10,240 bytes) */
|
|
1482
|
+
readonly KB_10: number;
|
|
1483
|
+
/** 50 KB (51,200 bytes) */
|
|
1484
|
+
readonly KB_50: number;
|
|
1485
|
+
/** 100 KB (102,400 bytes) */
|
|
1486
|
+
readonly KB_100: number;
|
|
1487
|
+
/** 500 KB (512,000 bytes) */
|
|
1488
|
+
readonly KB_500: number;
|
|
1489
|
+
/** 1 byte */
|
|
1490
|
+
readonly B_1: 1;
|
|
1491
|
+
/** 10 bytes */
|
|
1492
|
+
readonly B_10: 10;
|
|
1493
|
+
/** 100 bytes */
|
|
1494
|
+
readonly B_100: 100;
|
|
1495
|
+
/** 512 bytes */
|
|
1496
|
+
readonly B_512: 512;
|
|
1497
|
+
};
|
|
1498
|
+
/**
|
|
1499
|
+
* Recommended max sizes for common file types
|
|
1500
|
+
*/
|
|
1501
|
+
declare const RECOMMENDED_MAX_SIZES: {
|
|
1502
|
+
/** Avatar/Profile pictures: 2 MB */
|
|
1503
|
+
readonly AVATAR: number;
|
|
1504
|
+
/** General images: 5 MB */
|
|
1505
|
+
readonly IMAGE: number;
|
|
1506
|
+
/** Documents (PDF, Word, etc.): 10 MB */
|
|
1507
|
+
readonly DOCUMENT: number;
|
|
1508
|
+
/** Presentations: 25 MB */
|
|
1509
|
+
readonly PRESENTATION: number;
|
|
1510
|
+
/** Audio files: 50 MB */
|
|
1511
|
+
readonly AUDIO: number;
|
|
1512
|
+
/** Video files: 500 MB */
|
|
1513
|
+
readonly VIDEO: number;
|
|
1514
|
+
/** Large archives: 1 GB */
|
|
1515
|
+
readonly ARCHIVE: number;
|
|
1516
|
+
};
|
|
1517
|
+
/**
|
|
1518
|
+
* Convert bytes to human-readable format
|
|
1519
|
+
*
|
|
1520
|
+
* @example
|
|
1521
|
+
* ```typescript
|
|
1522
|
+
* formatBytes(1024) // "1 KB"
|
|
1523
|
+
* formatBytes(1048576) // "1 MB"
|
|
1524
|
+
* formatBytes(1073741824) // "1 GB"
|
|
1525
|
+
* ```
|
|
1526
|
+
*/
|
|
1527
|
+
declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
1528
|
+
/**
|
|
1529
|
+
* Convert megabytes to bytes
|
|
1530
|
+
*
|
|
1531
|
+
* @example
|
|
1532
|
+
* ```typescript
|
|
1533
|
+
* mbToBytes(5) // 5242880 (5 MB in bytes)
|
|
1534
|
+
* ```
|
|
1535
|
+
*/
|
|
1536
|
+
declare const mbToBytes: (mb: number) => number;
|
|
1537
|
+
/**
|
|
1538
|
+
* Convert gigabytes to bytes
|
|
1539
|
+
*
|
|
1540
|
+
* @example
|
|
1541
|
+
* ```typescript
|
|
1542
|
+
* gbToBytes(1) // 1073741824 (1 GB in bytes)
|
|
1543
|
+
* ```
|
|
1544
|
+
*/
|
|
1545
|
+
declare const gbToBytes: (gb: number) => number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Convert bytes to megabytes
|
|
1548
|
+
*
|
|
1549
|
+
* @example
|
|
1550
|
+
* ```typescript
|
|
1551
|
+
* bytesToMb(5242880) // 5
|
|
1552
|
+
* ```
|
|
1553
|
+
*/
|
|
1554
|
+
declare const bytesToMb: (bytes: number) => number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Convert bytes to gigabytes
|
|
1557
|
+
*
|
|
1558
|
+
* @example
|
|
1559
|
+
* ```typescript
|
|
1560
|
+
* bytesToGb(1073741824) // 1
|
|
1561
|
+
* ```
|
|
1562
|
+
*/
|
|
1563
|
+
declare const bytesToGb: (bytes: number) => number;
|
|
1564
|
+
/**
|
|
1565
|
+
* Check if file size is within limit
|
|
1566
|
+
*
|
|
1567
|
+
* @example
|
|
1568
|
+
* ```typescript
|
|
1569
|
+
* isWithinSizeLimit(1048576, FILE_SIZE.MB_5) // true
|
|
1570
|
+
* isWithinSizeLimit(6291456, FILE_SIZE.MB_5) // false
|
|
1571
|
+
* ```
|
|
1572
|
+
*/
|
|
1573
|
+
declare const isWithinSizeLimit: (bytes: number, maxBytes: number) => boolean;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Common MIME types for file validation
|
|
1577
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
1578
|
+
*/
|
|
1579
|
+
declare const IMAGE_MIME_TYPES: {
|
|
1580
|
+
readonly JPEG: "image/jpeg";
|
|
1581
|
+
readonly PNG: "image/png";
|
|
1582
|
+
readonly GIF: "image/gif";
|
|
1583
|
+
readonly WEBP: "image/webp";
|
|
1584
|
+
readonly SVG: "image/svg+xml";
|
|
1585
|
+
readonly BMP: "image/bmp";
|
|
1586
|
+
readonly TIFF: "image/tiff";
|
|
1587
|
+
readonly ICO: "image/x-icon";
|
|
1588
|
+
readonly HEIC: "image/heic";
|
|
1589
|
+
readonly HEIF: "image/heif";
|
|
1590
|
+
};
|
|
1591
|
+
declare const IMAGE_MIME_TYPES_ARRAY: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif")[];
|
|
1592
|
+
declare const DOCUMENT_MIME_TYPES: {
|
|
1593
|
+
readonly PDF: "application/pdf";
|
|
1594
|
+
readonly DOC: "application/msword";
|
|
1595
|
+
readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1596
|
+
readonly XLS: "application/vnd.ms-excel";
|
|
1597
|
+
readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1598
|
+
readonly PPT: "application/vnd.ms-powerpoint";
|
|
1599
|
+
readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
1600
|
+
readonly ODT: "application/vnd.oasis.opendocument.text";
|
|
1601
|
+
readonly ODS: "application/vnd.oasis.opendocument.spreadsheet";
|
|
1602
|
+
readonly ODP: "application/vnd.oasis.opendocument.presentation";
|
|
1603
|
+
readonly RTF: "application/rtf";
|
|
1604
|
+
readonly TXT: "text/plain";
|
|
1605
|
+
readonly CSV: "text/csv";
|
|
1606
|
+
readonly MARKDOWN: "text/markdown";
|
|
1607
|
+
};
|
|
1608
|
+
declare const DOCUMENT_MIME_TYPES_ARRAY: ("application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown")[];
|
|
1609
|
+
declare const ARCHIVE_MIME_TYPES: {
|
|
1610
|
+
readonly ZIP: "application/zip";
|
|
1611
|
+
readonly RAR: "application/vnd.rar";
|
|
1612
|
+
readonly TAR: "application/x-tar";
|
|
1613
|
+
readonly GZIP: "application/gzip";
|
|
1614
|
+
readonly "7Z": "application/x-7z-compressed";
|
|
1615
|
+
readonly BZ2: "application/x-bzip2";
|
|
1616
|
+
};
|
|
1617
|
+
declare const ARCHIVE_MIME_TYPES_ARRAY: ("application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2")[];
|
|
1618
|
+
declare const AUDIO_MIME_TYPES: {
|
|
1619
|
+
readonly MP3: "audio/mpeg";
|
|
1620
|
+
readonly WAV: "audio/wav";
|
|
1621
|
+
readonly OGG: "audio/ogg";
|
|
1622
|
+
readonly AAC: "audio/aac";
|
|
1623
|
+
readonly FLAC: "audio/flac";
|
|
1624
|
+
readonly M4A: "audio/mp4";
|
|
1625
|
+
readonly WEBM: "audio/webm";
|
|
1626
|
+
};
|
|
1627
|
+
declare const AUDIO_MIME_TYPES_ARRAY: ("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm")[];
|
|
1628
|
+
declare const VIDEO_MIME_TYPES: {
|
|
1629
|
+
readonly MP4: "video/mp4";
|
|
1630
|
+
readonly WEBM: "video/webm";
|
|
1631
|
+
readonly OGG: "video/ogg";
|
|
1632
|
+
readonly AVI: "video/x-msvideo";
|
|
1633
|
+
readonly MOV: "video/quicktime";
|
|
1634
|
+
readonly MKV: "video/x-matroska";
|
|
1635
|
+
readonly FLV: "video/x-flv";
|
|
1636
|
+
readonly WMV: "video/x-ms-wmv";
|
|
1637
|
+
readonly MPEG: "video/mpeg";
|
|
1638
|
+
};
|
|
1639
|
+
declare const VIDEO_MIME_TYPES_ARRAY: ("video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
1640
|
+
declare const CODE_MIME_TYPES: {
|
|
1641
|
+
readonly JAVASCRIPT: "text/javascript";
|
|
1642
|
+
readonly TYPESCRIPT: "text/typescript";
|
|
1643
|
+
readonly JSON: "application/json";
|
|
1644
|
+
readonly XML: "application/xml";
|
|
1645
|
+
readonly HTML: "text/html";
|
|
1646
|
+
readonly CSS: "text/css";
|
|
1647
|
+
readonly PYTHON: "text/x-python";
|
|
1648
|
+
readonly JAVA: "text/x-java-source";
|
|
1649
|
+
readonly C: "text/x-c";
|
|
1650
|
+
readonly CPP: "text/x-c++";
|
|
1651
|
+
readonly YAML: "application/x-yaml";
|
|
1652
|
+
readonly SQL: "application/sql";
|
|
1653
|
+
};
|
|
1654
|
+
declare const CODE_MIME_TYPES_ARRAY: ("text/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql")[];
|
|
1655
|
+
declare const FONT_MIME_TYPES: {
|
|
1656
|
+
readonly TTF: "font/ttf";
|
|
1657
|
+
readonly OTF: "font/otf";
|
|
1658
|
+
readonly WOFF: "font/woff";
|
|
1659
|
+
readonly WOFF2: "font/woff2";
|
|
1660
|
+
readonly EOT: "application/vnd.ms-fontobject";
|
|
1661
|
+
};
|
|
1662
|
+
declare const FONT_MIME_TYPES_ARRAY: ("font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject")[];
|
|
1663
|
+
declare const OTHER_MIME_TYPES: {
|
|
1664
|
+
readonly BINARY: "application/octet-stream";
|
|
1665
|
+
readonly FORM_DATA: "multipart/form-data";
|
|
1666
|
+
readonly JSON_LD: "application/ld+json";
|
|
1667
|
+
readonly XHTML: "application/xhtml+xml";
|
|
1668
|
+
};
|
|
1669
|
+
/**
|
|
1670
|
+
* All image MIME types
|
|
1671
|
+
*/
|
|
1672
|
+
declare const IMAGES: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif")[];
|
|
1673
|
+
/**
|
|
1674
|
+
* All document MIME types
|
|
1675
|
+
*/
|
|
1676
|
+
declare const DOCUMENTS: ("application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown")[];
|
|
1677
|
+
/**
|
|
1678
|
+
* All archive MIME types
|
|
1679
|
+
*/
|
|
1680
|
+
declare const ARCHIVES: ("application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2")[];
|
|
1681
|
+
/**
|
|
1682
|
+
* All audio MIME types
|
|
1683
|
+
*/
|
|
1684
|
+
declare const AUDIO: ("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm")[];
|
|
1685
|
+
/**
|
|
1686
|
+
* All video MIME types
|
|
1687
|
+
*/
|
|
1688
|
+
declare const VIDEO: ("video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
1689
|
+
/**
|
|
1690
|
+
* All code MIME types
|
|
1691
|
+
*/
|
|
1692
|
+
declare const CODE: ("text/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql")[];
|
|
1693
|
+
/**
|
|
1694
|
+
* All font MIME types
|
|
1695
|
+
*/
|
|
1696
|
+
declare const FONTS: ("font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject")[];
|
|
1697
|
+
/**
|
|
1698
|
+
* Common web-safe image formats (JPEG, PNG, GIF, WebP)
|
|
1699
|
+
*/
|
|
1700
|
+
declare const WEB_IMAGES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp"];
|
|
1701
|
+
/**
|
|
1702
|
+
* Common office document formats (PDF, Word, Excel, PowerPoint)
|
|
1703
|
+
*/
|
|
1704
|
+
declare const OFFICE_DOCUMENTS: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation"];
|
|
1705
|
+
/**
|
|
1706
|
+
* Media files (images, audio, video)
|
|
1707
|
+
*/
|
|
1708
|
+
declare const MEDIA: readonly ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
1709
|
+
/**
|
|
1710
|
+
* All MIME types combined
|
|
1711
|
+
*/
|
|
1712
|
+
declare const ALL_MIME_TYPES: readonly ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown" | "application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg" | "text/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql" | "font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject" | "application/octet-stream" | "multipart/form-data" | "application/ld+json" | "application/xhtml+xml")[];
|
|
1713
|
+
/**
|
|
1714
|
+
* Union type of all valid MIME types
|
|
1715
|
+
*/
|
|
1716
|
+
type MimeType = (typeof ALL_MIME_TYPES)[number];
|
|
1717
|
+
/**
|
|
1718
|
+
* Union type of all image MIME types
|
|
1719
|
+
*/
|
|
1720
|
+
type ImageMimeType = (typeof IMAGE_MIME_TYPES_ARRAY)[number];
|
|
1721
|
+
/**
|
|
1722
|
+
* Union type of all document MIME types
|
|
1723
|
+
*/
|
|
1724
|
+
type DocumentMimeType = (typeof DOCUMENT_MIME_TYPES_ARRAY)[number];
|
|
1725
|
+
/**
|
|
1726
|
+
* Union type of all archive MIME types
|
|
1727
|
+
*/
|
|
1728
|
+
type ArchiveMimeType = (typeof ARCHIVE_MIME_TYPES_ARRAY)[number];
|
|
1729
|
+
/**
|
|
1730
|
+
* Union type of all audio MIME types
|
|
1731
|
+
*/
|
|
1732
|
+
type AudioMimeType = (typeof AUDIO_MIME_TYPES_ARRAY)[number];
|
|
1733
|
+
/**
|
|
1734
|
+
* Union type of all video MIME types
|
|
1735
|
+
*/
|
|
1736
|
+
type VideoMimeType = (typeof VIDEO_MIME_TYPES_ARRAY)[number];
|
|
1737
|
+
/**
|
|
1738
|
+
* Union type of all code MIME types
|
|
1739
|
+
*/
|
|
1740
|
+
type CodeMimeType = (typeof CODE_MIME_TYPES_ARRAY)[number];
|
|
1741
|
+
/**
|
|
1742
|
+
* Union type of all font MIME types
|
|
1743
|
+
*/
|
|
1744
|
+
type FontMimeType = (typeof FONT_MIME_TYPES_ARRAY)[number];
|
|
1745
|
+
/**
|
|
1746
|
+
* Check if a MIME type is an image
|
|
1747
|
+
*/
|
|
1748
|
+
declare const isImageMimeType: (mimeType: string) => boolean;
|
|
1749
|
+
/**
|
|
1750
|
+
* Check if a MIME type is a document
|
|
1751
|
+
*/
|
|
1752
|
+
declare const isDocumentMimeType: (mimeType: string) => boolean;
|
|
1753
|
+
/**
|
|
1754
|
+
* Check if a MIME type is an archive
|
|
1755
|
+
*/
|
|
1756
|
+
declare const isArchiveMimeType: (mimeType: string) => boolean;
|
|
1757
|
+
/**
|
|
1758
|
+
* Check if a MIME type is audio
|
|
1759
|
+
*/
|
|
1760
|
+
declare const isAudioMimeType: (mimeType: string) => boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* Check if a MIME type is video
|
|
1763
|
+
*/
|
|
1764
|
+
declare const isVideoMimeType: (mimeType: string) => boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* Check if a MIME type is code
|
|
1767
|
+
*/
|
|
1768
|
+
declare const isCodeMimeType: (mimeType: string) => boolean;
|
|
1769
|
+
/**
|
|
1770
|
+
* Get file extension from MIME type
|
|
1771
|
+
*/
|
|
1772
|
+
declare const getExtensionFromMimeType: (mimeType: string) => string | null;
|
|
1773
|
+
|
|
1774
|
+
export { ALL_MIME_TYPES, ARCHIVES, ARCHIVE_MIME_TYPES, ARCHIVE_MIME_TYPES_ARRAY, AUDIO, AUDIO_MIME_TYPES, AUDIO_MIME_TYPES_ARRAY, type ArchiveMimeType, type AudioMimeType, BYTES, CODE, CODE_MIME_TYPES, CODE_MIME_TYPES_ARRAY, COLORS, COLOR_GROUPS, COUNTRIES, CURRENCIES, type CodeMimeType, type Color, type ColorBackground, type ColorBorder, type ColorGroup, type ColorGroupColors, type ColorIcon, type ColorId, type ColorText, type Country, type CountryIso2, type CountryIso3, type CountryName, type CountryNumericCode, type CountryPhoneCode, type Currency, type CurrencyCode, type CurrencyName, type CurrencySymbol, DEFAULT_ATTRIBUTE_ICONS, DOCUMENTS, DOCUMENT_MIME_TYPES, DOCUMENT_MIME_TYPES_ARRAY, type DocumentMimeType, FILE_SIZE, FONTS, FONT_MIME_TYPES, FONT_MIME_TYPES_ARRAY, type FontMimeType, GIGABYTES, ICONS, IMAGES, IMAGE_MIME_TYPES, IMAGE_MIME_TYPES_ARRAY, type IconName, type ImageMimeType, KILOBYTES, MEDIA, MEGABYTES, type MimeType, OFFICE_DOCUMENTS, OTHER_MIME_TYPES, RECOMMENDED_MAX_SIZES, STATUS_COLORS, type StatusColorGroup, VIDEO, VIDEO_MIME_TYPES, VIDEO_MIME_TYPES_ARRAY, type VideoMimeType, WEB_IMAGES, bytesToGb, bytesToMb, formatBytes, gbToBytes, getAllColors, getAllCountries, getAllCurrencies, getColor, getColorIds, getColorsByGroup, getCountryByIso2, getCountryByIso3, getCountryPhoneCode, getCurrency, getCurrencySymbol, getDefaultAttributeIcon, getExtensionFromMimeType, getIconByAttrType, getPhoneMaxDigits, getPhoneTrunkPrefix, isArchiveMimeType, isAudioMimeType, isCodeMimeType, isDocumentMimeType, isImageMimeType, isValidColorId, isValidCurrencyCode, isValidIso2, isValidIso3, isVideoMimeType, isWithinSizeLimit, mbToBytes };
|