@jobber/design 0.28.6 → 0.29.1

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/CHANGELOG.md CHANGED
@@ -8,6 +8,25 @@ menu: Changelog
8
8
  All notable changes to this project will be documented in this file.
9
9
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
10
10
 
11
+ ## [0.29.1](https://github.com/GetJobber/atlantis/compare/@jobber/design@0.29.0...@jobber/design@0.29.1) (2023-02-24)
12
+
13
+ **Note:** Version bump only for package @jobber/design
14
+
15
+
16
+
17
+
18
+
19
+ # [0.29.0](https://github.com/GetJobber/atlantis/compare/@jobber/design@0.28.6...@jobber/design@0.29.0) (2023-02-23)
20
+
21
+
22
+ ### Features
23
+
24
+ * **components:** Add new "range slider" icons ([#1062](https://github.com/GetJobber/atlantis/issues/1062)) ([3c7e05d](https://github.com/GetJobber/atlantis/commit/3c7e05da1b9e5c113a3cc832ce10970de153d8b6))
25
+
26
+
27
+
28
+
29
+
11
30
  ## [0.28.6](https://github.com/GetJobber/atlantis/compare/@jobber/design@0.28.5...@jobber/design@0.28.6) (2023-02-23)
12
31
 
13
32
  **Note:** Version bump only for package @jobber/design
@@ -1,83 +1,9 @@
1
- import { Meta } from "@storybook/addon-docs";
1
+ import { Description, Meta } from "@storybook/addon-docs";
2
+ import Readme from "./README.mdx";
2
3
 
3
- <Meta title="Packages/Design" />
4
+ <Meta
5
+ title="Packages/Design"
6
+ parameters={{ previewTabs: { canvas: { hidden: true } } }}
7
+ />
4
8
 
5
- # Foundation
6
-
7
- Foundational colors and rhythm for the Jobber Atlantis Design System
8
-
9
- ## Installation
10
-
11
- ```sh
12
- npm install @jobber/design
13
- ```
14
-
15
- ## Usage
16
-
17
- `@jobber/design` ships `foundation.css`. It also provides utilities for getting
18
- icons svg path.
19
-
20
- ### CSS
21
-
22
- #### Foundation
23
-
24
- Import the `@jobber/design` stylesheet into your own css
25
-
26
- ```css
27
- @import "~@jobber/design/foundation.css";
28
-
29
- .myLabel {
30
- color: var(--color-blue);
31
- padding: var(--space-base);
32
- }
33
- ```
34
-
35
- For web, if `design/foundation.css` is already included you do not need to
36
- import it for every css file. For React Native, you need to import
37
- `design/foundation.css` in every css files that needs it.
38
-
39
- #### icons
40
-
41
- Import the `getIcon` utility into your JavaScript/Typescript file
42
-
43
- ```tsx
44
- import { getIcon } from "@jobber/design";
45
-
46
- const { svgClassNames, paths, viewBox } = getIcon({
47
- name: "dashboard",
48
- color: "green",
49
- size: "large",
50
- });
51
- ```
52
-
53
- You can also get the type definitions for `IconNames`, `IconColorNames`, and
54
- `IconSizes` from `@jobber/design`
55
-
56
- ```tsx
57
- import type { IconNames, IconColorNames, IconSizes } from "@jobber/design";
58
- ```
59
-
60
- If you need the actual css files for icons, you can import them from
61
- `@jobber/design/icons`. You may not need these files for the web but they might
62
- be required for React Native
63
-
64
- ```css
65
- @import "@jobber/design/foundation.css";
66
- @import "@jobber/design/icons/Icon";
67
- @import "@jobber/design/icons/Sizes";
68
- @import "@jobber/design/icons/Colors";
69
- ```
70
-
71
- ### PostCSS
72
-
73
- Inject `@jobber/foundation` into your css with `postcss`
74
-
75
- ```js
76
- module.exports = {
77
- plugins: [
78
- require("postcss-preset-env")({
79
- importFrom: ["@jobber/design"],
80
- }),
81
- ],
82
- };
83
- ```
9
+ <Readme />
@@ -1,6 +1,8 @@
1
1
  export declare const iconMap: {
2
2
  height: number;
3
3
  icons: {
4
+ sliderStart: string[];
5
+ sliderCenter: string[];
4
6
  sparkles: string[];
5
7
  syncAlert: string[];
6
8
  apps: string[];
package/dist/index.js CHANGED
@@ -77,6 +77,16 @@ styleInject(css_248z$2);
77
77
  var iconMap = {
78
78
  "height": 1024,
79
79
  "icons": {
80
+ "sliderStart": [
81
+ "M627.503 97.83c-16.661-16.662-43.678-16.662-60.339 0s-16.661 43.677 0 60.34l12.497 12.497h-110.327c-23.565 0-42.667 19.103-42.667 42.667s19.102 42.667 42.667 42.667h110.327l-12.497 12.497c-16.661 16.663-16.661 43.677 0 60.34s43.678 16.662 60.339 0l85.333-85.333c0 0 12.497-8.837 12.497-30.17 0-17.067-8.333-27.224-12.497-30.17l-85.333-85.333z",
82
+ "M170.667 426.667c-47.128 0-85.333 38.204-85.333 85.333v213.333c0 47.13 38.205 85.333 85.333 85.333h682.667c47.13 0 85.333-38.204 85.333-85.333v-213.333c0-47.13-38.204-85.333-85.333-85.333h-682.667zM170.667 512h682.667v213.333h-682.667v-213.333z",
83
+ "M298.667 298.667c23.564 0 42.667 19.103 42.667 42.667v554.667c0 23.565-19.103 42.667-42.667 42.667s-42.667-19.102-42.667-42.667v-554.667c0-23.564 19.103-42.667 42.667-42.667z"
84
+ ],
85
+ "sliderCenter": [
86
+ "M926.17 243.503c7.812-7.811 11.959-17.896 12.45-28.123l0.047-2.441-0.004-0.059c-0.055-5.62-1.203-10.98-3.234-15.879-2.082-5.033-5.167-9.747-9.259-13.838l-85.333-85.333c-16.661-16.662-43.678-16.662-60.339 0s-16.661 43.677 0 60.34l12.497 12.497h-110.327c-23.565 0-42.667 19.103-42.667 42.667s19.102 42.667 42.667 42.667h110.327l-12.497 12.497c-16.661 16.663-16.661 43.677 0 60.34s43.678 16.662 60.339 0l85.333-85.333z",
87
+ "M469.333 426.667v-85.333c0-23.564 19.102-42.667 42.667-42.667s42.667 19.103 42.667 42.667v85.333h298.667c47.13 0 85.333 38.204 85.333 85.333v213.333c0 47.13-38.204 85.333-85.333 85.333h-298.667v85.333c0 23.565-19.102 42.667-42.667 42.667s-42.667-19.102-42.667-42.667v-85.333h-298.667c-47.128 0-85.333-38.204-85.333-85.333v-213.333c0-47.13 38.205-85.333 85.333-85.333h298.667zM469.333 512h-298.667v213.333h298.667v-213.333zM554.667 512v213.333h298.667v-213.333h-298.667z",
88
+ "M341.333 256h-110.327l12.497 12.497c16.662 16.663 16.662 43.677 0 60.34s-43.677 16.662-60.34 0l-85.333-85.333c-4.090-4.091-7.177-8.806-9.259-13.838-2.086-5.030-3.238-10.547-3.238-16.332s1.152-11.302 3.238-16.332c2.067-4.995 5.123-9.678 9.169-13.747l0.090-0.091 85.333-85.333c16.663-16.662 43.677-16.662 60.34 0s16.662 43.677 0 60.34l-12.497 12.497h110.327c23.564 0 42.667 19.103 42.667 42.667s-19.102 42.667-42.667 42.667z"
89
+ ],
80
90
  "sparkles": [
81
91
  "M256 85.333c23.565 0 42.667 19.103 42.667 42.667v42.667l42.667 42.667h42.667c23.565 0 42.667 19.103 42.667 42.667s-19.101 42.667-42.667 42.667h-42.667l-42.667 42.667v42.667c0 23.564-19.101 42.667-42.667 42.667s-42.667-19.103-42.667-42.667v-42.667l-42.667-42.667h-42.667c-23.565 0-42.667-19.103-42.667-42.667s19.101-42.667 42.667-42.667h42.667l42.667-42.667v-42.667c0-23.564 19.101-42.667 42.667-42.667z",
82
92
  "M298.667 597.333c23.565 0 42.667 19.102 42.667 42.667v42.667l42.667 42.667h42.667c23.565 0 42.667 19.102 42.667 42.667s-19.102 42.667-42.667 42.667h-42.667l-42.667 42.667v42.667c0 23.565-19.101 42.667-42.667 42.667s-42.667-19.102-42.667-42.667v-42.667l-42.667-42.667h-42.667c-23.565 0-42.667-19.102-42.667-42.667s19.101-42.667 42.667-42.667h42.667l42.667-42.667v-42.667c0-23.565 19.101-42.667 42.667-42.667z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/design",
3
- "version": "0.28.6",
3
+ "version": "0.29.1",
4
4
  "description": "Design foundation for the Jobber Atlantis Design System",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -56,5 +56,5 @@
56
56
  "typed-css-modules": "^0.7.0",
57
57
  "typescript": "^3.8.3"
58
58
  },
59
- "gitHead": "7ab54785782cf943fc117250e7bb9dc19b2c25ef"
59
+ "gitHead": "1721cceed6e6f141beb75cc4a5c79fa519e9bbc5"
60
60
  }