@jobber/design 0.63.0 → 0.64.0
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 +29 -15
- package/dist/{icons/iconMap.d.ts → assets/icon.map.d.ts} +166 -165
- package/{foundation.native.d.ts → dist/assets/tokens.all.colors.d.ts} +55 -143
- package/{foundation.android.d.ts → dist/assets/tokens.android.d.ts} +175 -175
- package/dist/assets/tokens.color.d.ts +80 -0
- package/dist/assets/tokens.dark.d.ts +79 -0
- package/{foundation.ios.d.ts → dist/assets/tokens.ios.d.ts} +175 -175
- package/dist/assets/tokens.semantic.d.ts +46 -0
- package/{foundation.d.ts → dist/assets/tokens.web.d.ts} +178 -171
- package/dist/color.css +79 -0
- package/dist/colors.cjs +79 -0
- package/dist/colors.mjs +79 -0
- package/dist/dark.mode.css +115 -0
- package/dist/dark.theme.css +78 -0
- package/dist/foundation.css +369 -0
- package/dist/icon.map.js +562 -0
- package/dist/iconStyles/iconColors.d.ts +148 -0
- package/dist/iconStyles/iconSizes.d.ts +16 -0
- package/dist/iconStyles/iconStyles.mobile.d.ts +1 -0
- package/dist/iconStyles/iconStyles.web.d.ts +2 -0
- package/dist/index.cjs +2462 -0
- package/dist/index.d.ts +50 -3
- package/dist/index.mjs +2447 -0
- package/dist/semantic.css +45 -0
- package/package.json +60 -41
- package/rollup.config.mjs +19 -0
- package/dist/icons/Icon.css.d.ts +0 -40
- package/dist/icons/IconColors.css.d.ts +0 -52
- package/dist/icons/Sizes.css.d.ts +0 -7
- package/dist/icons/getIcon.d.ts +0 -31
- package/dist/icons/getIcon.test.d.ts +0 -1
- package/dist/icons/iconStyles.d.ts +0 -278
- package/dist/index.js +0 -1305
- package/foundation.android.js +0 -352
- package/foundation.css +0 -440
- package/foundation.ios.js +0 -352
- package/foundation.js +0 -317
- package/foundation.native.js +0 -352
- package/foundation.scss +0 -319
- package/icons/Icon.css +0 -125
- package/icons/IconColors.css +0 -193
- package/icons/Sizes.css +0 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { webIconStyles } from "./iconStyles/iconStyles.web";
|
|
2
|
+
import { mobileIconStyles } from "./iconStyles/iconStyles.mobile";
|
|
3
|
+
import { iconSizes } from "./iconStyles/iconSizes";
|
|
4
|
+
import { iconColors } from "./iconStyles/iconColors";
|
|
5
|
+
import iconMap from "./assets/icon.map";
|
|
6
|
+
import webTokens from "./assets/tokens.web";
|
|
7
|
+
import androidTokens from "./assets/tokens.android";
|
|
8
|
+
import iosTokens from "./assets/tokens.ios";
|
|
9
|
+
import colors from "./assets/tokens.color";
|
|
10
|
+
import allColors from "./assets/tokens.all.colors";
|
|
11
|
+
import semantic from "./assets/tokens.semantic";
|
|
12
|
+
import darkTokens from "./assets/tokens.dark";
|
|
13
|
+
type WebTokens = typeof webTokens;
|
|
14
|
+
type MobileTokens = typeof androidTokens;
|
|
15
|
+
export { webTokens as tokens, webTokens, allColors, androidTokens, darkTokens, iosTokens, iconMap, webIconStyles, mobileIconStyles, iconSizes, iconColors, type WebTokens, type MobileTokens, colors, semantic, };
|
|
16
|
+
interface IconProps {
|
|
17
|
+
/** The icon to show. */
|
|
18
|
+
readonly name: keyof typeof iconMap.icons | ExtraIconNames;
|
|
19
|
+
/**
|
|
20
|
+
* Changes the size to small or large.
|
|
21
|
+
* @default base
|
|
22
|
+
*/
|
|
23
|
+
readonly size?: keyof typeof iconSizes.tokens;
|
|
24
|
+
/**
|
|
25
|
+
* Determines the color of the icon. Some icons have a default system color
|
|
26
|
+
* like quotes, jobs, and invoices. Others that doesn't have a system color
|
|
27
|
+
* falls back to greyBlueDark.
|
|
28
|
+
*/
|
|
29
|
+
readonly color?: keyof typeof iconColors.tokens;
|
|
30
|
+
}
|
|
31
|
+
interface GetIconProps extends IconProps {
|
|
32
|
+
platform: "web" | "mobile";
|
|
33
|
+
format?: "css" | "js";
|
|
34
|
+
}
|
|
35
|
+
export declare function getIcon({ name, color, platform, size, format, }: GetIconProps): {
|
|
36
|
+
readonly svgStyle: {
|
|
37
|
+
fill?: string | undefined;
|
|
38
|
+
width: string | number;
|
|
39
|
+
height: string | number;
|
|
40
|
+
};
|
|
41
|
+
readonly pathStyle: {
|
|
42
|
+
fill: string;
|
|
43
|
+
};
|
|
44
|
+
readonly paths: string[];
|
|
45
|
+
readonly viewBox: string;
|
|
46
|
+
};
|
|
47
|
+
export type ExtraIconNames = "longArrowUp" | "longArrowDown" | "longArrowRight" | "longArrowLeft" | "remove" | "thumbsDown" | "truck";
|
|
48
|
+
export type IconNames = keyof typeof iconMap.icons | ExtraIconNames;
|
|
49
|
+
export type IconSizes = keyof typeof iconSizes.tokens;
|
|
50
|
+
export type IconColorNames = keyof typeof iconColors.tokens;
|