@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.
Files changed (42) hide show
  1. package/README.md +29 -15
  2. package/dist/{icons/iconMap.d.ts → assets/icon.map.d.ts} +166 -165
  3. package/{foundation.native.d.ts → dist/assets/tokens.all.colors.d.ts} +55 -143
  4. package/{foundation.android.d.ts → dist/assets/tokens.android.d.ts} +175 -175
  5. package/dist/assets/tokens.color.d.ts +80 -0
  6. package/dist/assets/tokens.dark.d.ts +79 -0
  7. package/{foundation.ios.d.ts → dist/assets/tokens.ios.d.ts} +175 -175
  8. package/dist/assets/tokens.semantic.d.ts +46 -0
  9. package/{foundation.d.ts → dist/assets/tokens.web.d.ts} +178 -171
  10. package/dist/color.css +79 -0
  11. package/dist/colors.cjs +79 -0
  12. package/dist/colors.mjs +79 -0
  13. package/dist/dark.mode.css +115 -0
  14. package/dist/dark.theme.css +78 -0
  15. package/dist/foundation.css +369 -0
  16. package/dist/icon.map.js +562 -0
  17. package/dist/iconStyles/iconColors.d.ts +148 -0
  18. package/dist/iconStyles/iconSizes.d.ts +16 -0
  19. package/dist/iconStyles/iconStyles.mobile.d.ts +1 -0
  20. package/dist/iconStyles/iconStyles.web.d.ts +2 -0
  21. package/dist/index.cjs +2462 -0
  22. package/dist/index.d.ts +50 -3
  23. package/dist/index.mjs +2447 -0
  24. package/dist/semantic.css +45 -0
  25. package/package.json +60 -41
  26. package/rollup.config.mjs +19 -0
  27. package/dist/icons/Icon.css.d.ts +0 -40
  28. package/dist/icons/IconColors.css.d.ts +0 -52
  29. package/dist/icons/Sizes.css.d.ts +0 -7
  30. package/dist/icons/getIcon.d.ts +0 -31
  31. package/dist/icons/getIcon.test.d.ts +0 -1
  32. package/dist/icons/iconStyles.d.ts +0 -278
  33. package/dist/index.js +0 -1305
  34. package/foundation.android.js +0 -352
  35. package/foundation.css +0 -440
  36. package/foundation.ios.js +0 -352
  37. package/foundation.js +0 -317
  38. package/foundation.native.js +0 -352
  39. package/foundation.scss +0 -319
  40. package/icons/Icon.css +0 -125
  41. package/icons/IconColors.css +0 -193
  42. package/icons/Sizes.css +0 -16
package/dist/index.d.ts CHANGED
@@ -1,3 +1,50 @@
1
- export { getIcon, IconNames, IconColorNames, IconSizes, iconClassMap, sizesClassMap, colorsClassMap, } from "./icons/getIcon";
2
- export { iconStyles } from "./icons/iconStyles";
3
- export { tokens } from "../foundation";
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;