@kaizen/tailwind 0.6.5 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind-presets.d.ts","sourceRoot":"","sources":["../src/tailwind-presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAMtD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;AACtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,mBAAmB,CAAA;CAC3B;AAGD,eAAO,MAAM,mBAAmB,EAAE,mBA6GjC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,oBAEpB,CAAA"}
1
+ {"version":3,"file":"tailwind-presets.d.ts","sourceRoot":"","sources":["../src/tailwind-presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAItD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;AACtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,mBAAmB,CAAA;CAC3B;AAGD,eAAO,MAAM,mBAAmB,EAAE,mBA2FjC,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,oBAEpB,CAAA"}
@@ -13,9 +13,7 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Preset = exports.kaizenTailwindTheme = void 0;
15
15
  var design_tokens_1 = require("@kaizen/design-tokens");
16
- var kz_height_1 = require("./kz-height");
17
16
  var kz_spacing_1 = require("./kz-spacing");
18
- var kz_width_1 = require("./kz-width");
19
17
  // Note: changing any token will require to to run build:ts from the root `design-tokens`
20
18
  exports.kaizenTailwindTheme = {
21
19
  colors: __assign(__assign({ transparent: "transparent", current: "currentColor", inherit: "inherit" }, design_tokens_1.defaultTheme.color), design_tokens_1.defaultTheme.dataViz),
@@ -92,28 +90,10 @@ exports.kaizenTailwindTheme = {
92
90
  "letter-spacing-normal": "normal",
93
91
  },
94
92
  // A mix of layout styles
95
- maxWidth: kz_width_1.kzWidth,
96
- width: kz_width_1.kzWidth,
97
- maxHeight: kz_height_1.kzHeight,
98
- height: kz_height_1.kzHeight,
99
93
  screens: {
100
94
  md: design_tokens_1.defaultTheme.layout.breakpoints.medium,
101
- lg: design_tokens_1.defaultTheme.layout.breakpoints.large,
102
- "md-max": { max: design_tokens_1.defaultTheme.layout.breakpoints.medium },
103
- "lg-max": { max: design_tokens_1.defaultTheme.layout.breakpoints.large }, // => @media (min-width: 1080px) { ... }
95
+ lg: design_tokens_1.defaultTheme.layout.breakpoints.large, // => @media (min-width: 1080px) { ... }
104
96
  },
105
- // TODO: These work in TW Play but not in our Storybook config.
106
- // Add these when we get them working in Storybook.
107
- // ringWidth: {
108
- // "default-width": `${defaultTheme.border.focusRing.borderWidth}`,
109
- // },
110
- // ringOffsetWidth: {
111
- // "default-width": "2px",
112
- // },
113
- // ringColor: {
114
- // "default-color": `${defaultTheme.color.blue[500]}`,
115
- // },
116
- // ringOffsetColor: {},
117
97
  };
118
98
  exports.Preset = {
119
99
  theme: exports.kaizenTailwindTheme,
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind-presets.js","sourceRoot":"","sources":["../src/tailwind-presets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,uDAAoD;AACpD,yCAAsC;AACtC,2CAAwC;AACxC,uCAAoC;AAOpC,yFAAyF;AAC5E,QAAA,mBAAmB,GAAwB;IACtD,MAAM,sBACJ,WAAW,EAAE,aAAa,EAC1B,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,SAAS,IACf,4BAAY,CAAC,KAAK,GAClB,4BAAY,CAAC,OAAO,CACxB;IACD,OAAO,EAAE,sBAAS;IAClB,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC,KAAK,CAAC,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AE,4BAAY,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM;QAC1C,EAAE,EAAE,4BAAY,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,wCAAwC;KACpF;CACF,CAAA;AAEY,QAAA,MAAM,GAAyB;IAC1C,KAAK,EAAE,2BAAmB;CAC3B,CAAA"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kaizen/tailwind",
3
- "version": "0.6.5",
3
+ "version": "1.0.0",
4
4
  "description": "Kaizen Tailwind presets",
5
5
  "scripts": {
6
6
  "build": "yarn clean && yarn prepublish",
7
7
  "build:ts": "tsc --project tsconfig.dist.json",
8
8
  "build:watch": "yarn clean && yarn prepublish --watch",
9
9
  "prepublish": "tsc --project tsconfig.dist.json",
10
- "clean": "rimraf '**/*.d.ts' '**/*.js' '**/*.map'"
10
+ "clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
@@ -28,16 +28,14 @@
28
28
  "private": false,
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@kaizen/design-tokens": "^10.3.5",
31
+ "@kaizen/design-tokens": "^10.3.7",
32
32
  "classnames": "^2.3.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@kaizen/draft-divider": "^2.2.8",
36
- "rimraf": "^4.4.1",
37
- "tailwindcss": "^3.3.1"
35
+ "@kaizen/draft-divider": "^2.2.9",
36
+ "tailwindcss": "^3.3.2"
38
37
  },
39
38
  "peerDependencies": {
40
39
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0"
41
- },
42
- "gitHead": "ad5ee169bcb549e866fa37ce9f930c64723e9c13"
40
+ }
43
41
  }
@@ -1,8 +1,6 @@
1
1
  import { ThemeConfig } from "tailwindcss/types/config"
2
2
  import { defaultTheme } from "@kaizen/design-tokens"
3
- import { kzHeight } from "./kz-height"
4
3
  import { kzSpacing } from "./kz-spacing"
5
- import { kzWidth } from "./kz-width"
6
4
 
7
5
  export type KaizenTailwindTheme = Partial<ThemeConfig>
8
6
  export interface KaizenTailwindPreset {
@@ -97,28 +95,10 @@ export const kaizenTailwindTheme: KaizenTailwindTheme = {
97
95
  "letter-spacing-normal": "normal",
98
96
  },
99
97
  // A mix of layout styles
100
- maxWidth: kzWidth,
101
- width: kzWidth,
102
- maxHeight: kzHeight,
103
- height: kzHeight,
104
98
  screens: {
105
99
  md: defaultTheme.layout.breakpoints.medium, // => @media (min-width: 768px) { ... }
106
100
  lg: defaultTheme.layout.breakpoints.large, // => @media (min-width: 1080px) { ... }
107
- "md-max": { max: defaultTheme.layout.breakpoints.medium }, // => @media (max-width: 768px) { ... }
108
- "lg-max": { max: defaultTheme.layout.breakpoints.large }, // => @media (min-width: 1080px) { ... }
109
101
  },
110
- // TODO: These work in TW Play but not in our Storybook config.
111
- // Add these when we get them working in Storybook.
112
- // ringWidth: {
113
- // "default-width": `${defaultTheme.border.focusRing.borderWidth}`,
114
- // },
115
- // ringOffsetWidth: {
116
- // "default-width": "2px",
117
- // },
118
- // ringColor: {
119
- // "default-color": `${defaultTheme.color.blue[500]}`,
120
- // },
121
- // ringOffsetColor: {},
122
102
  }
123
103
 
124
104
  export const Preset: KaizenTailwindPreset = {
package/CHANGELOG.md DELETED
@@ -1,258 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [0.6.5](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.6.4...@kaizen/tailwind@0.6.5) (2023-04-06)
7
-
8
- **Note:** Version bump only for package @kaizen/tailwind
9
-
10
-
11
-
12
-
13
-
14
- ## [0.6.4](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.6.3...@kaizen/tailwind@0.6.4) (2023-03-31)
15
-
16
- **Note:** Version bump only for package @kaizen/tailwind
17
-
18
-
19
-
20
-
21
-
22
- ## [0.6.3](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.6.2...@kaizen/tailwind@0.6.3) (2023-03-29)
23
-
24
- **Note:** Version bump only for package @kaizen/tailwind
25
-
26
-
27
-
28
-
29
-
30
- ## [0.6.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.6.1...@kaizen/tailwind@0.6.2) (2023-03-29)
31
-
32
- **Note:** Version bump only for package @kaizen/tailwind
33
-
34
-
35
-
36
-
37
-
38
- ## [0.6.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.6.0...@kaizen/tailwind@0.6.1) (2023-03-23)
39
-
40
- **Note:** Version bump only for package @kaizen/tailwind
41
-
42
-
43
-
44
-
45
-
46
- # [0.6.0](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.5.2...@kaizen/tailwind@0.6.0) (2023-03-21)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * **tailwind:** remove w- from borderWidth utilities ([#3367](https://github.com/cultureamp/kaizen-design-system/issues/3367)) ([782b0ff](https://github.com/cultureamp/kaizen-design-system/commit/782b0ff4f4132c6e267b2a2127d0210267573dbd))
52
-
53
-
54
- ### BREAKING CHANGES
55
-
56
- * **tailwind:** Any border width utilities will need to be renamed without the `w-`. These include:
57
- border-w-? border-x-w-? border-y-w-? border-t-w-? border-b-w-? border-r-w-? border-l-w-?
58
-
59
- * docs(tailwind): adds card to border-width stories, explaining that other prefixes are available
60
-
61
-
62
-
63
-
64
-
65
- ## [0.5.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.5.1...@kaizen/tailwind@0.5.2) (2023-03-14)
66
-
67
- **Note:** Version bump only for package @kaizen/tailwind
68
-
69
-
70
-
71
-
72
-
73
- ## [0.5.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.5.0...@kaizen/tailwind@0.5.1) (2023-02-21)
74
-
75
- **Note:** Version bump only for package @kaizen/tailwind
76
-
77
-
78
-
79
-
80
-
81
- # [0.5.0](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.4.2...@kaizen/tailwind@0.5.0) (2023-02-20)
82
-
83
-
84
- ### Features
85
-
86
- * Backport new pixel-based spacing tokens to design tokens ([#3279](https://github.com/cultureamp/kaizen-design-system/issues/3279)) ([a13da27](https://github.com/cultureamp/kaizen-design-system/commit/a13da271af79daafa93a144109b60d00c9f6111a))
87
-
88
-
89
-
90
-
91
-
92
- ## [0.4.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.4.1...@kaizen/tailwind@0.4.2) (2023-02-17)
93
-
94
- **Note:** Version bump only for package @kaizen/tailwind
95
-
96
-
97
-
98
-
99
-
100
- ## [0.4.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.4.0...@kaizen/tailwind@0.4.1) (2023-02-17)
101
-
102
- **Note:** Version bump only for package @kaizen/tailwind
103
-
104
-
105
-
106
-
107
-
108
- # [0.4.0](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.3.4...@kaizen/tailwind@0.4.0) (2023-02-14)
109
-
110
-
111
- ### Features
112
-
113
- * **tailwind:** Add spacing token for 6px/.375 rem ([#3269](https://github.com/cultureamp/kaizen-design-system/issues/3269)) ([7020545](https://github.com/cultureamp/kaizen-design-system/commit/7020545a294bb072ca151e08ef8d1c628b32b4dd))
114
-
115
-
116
-
117
-
118
-
119
- ## [0.3.4](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.3.3...@kaizen/tailwind@0.3.4) (2023-02-13)
120
-
121
- **Note:** Version bump only for package @kaizen/tailwind
122
-
123
-
124
-
125
-
126
-
127
- ## [0.3.3](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.3.2...@kaizen/tailwind@0.3.3) (2023-02-12)
128
-
129
- **Note:** Version bump only for package @kaizen/tailwind
130
-
131
-
132
-
133
-
134
-
135
- ## [0.3.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.3.1...@kaizen/tailwind@0.3.2) (2023-01-31)
136
-
137
- **Note:** Version bump only for package @kaizen/tailwind
138
-
139
-
140
-
141
-
142
-
143
- ## [0.3.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.3.0...@kaizen/tailwind@0.3.1) (2023-01-31)
144
-
145
- **Note:** Version bump only for package @kaizen/tailwind
146
-
147
-
148
-
149
-
150
-
151
- # [0.3.0](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.7...@kaizen/tailwind@0.3.0) (2023-01-30)
152
-
153
-
154
- ### Features
155
-
156
- * (tailwind) Add prettier package ([#3175](https://github.com/cultureamp/kaizen-design-system/issues/3175)) ([077b1b3](https://github.com/cultureamp/kaizen-design-system/commit/077b1b3ed69f7490859aa54597bcafe9ac8440c5))
157
-
158
-
159
-
160
-
161
-
162
- ## [0.2.7](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.6...@kaizen/tailwind@0.2.7) (2023-01-18)
163
-
164
- **Note:** Version bump only for package @kaizen/tailwind
165
-
166
-
167
-
168
-
169
-
170
- ## [0.2.6](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.5...@kaizen/tailwind@0.2.6) (2023-01-18)
171
-
172
- **Note:** Version bump only for package @kaizen/tailwind
173
-
174
-
175
-
176
-
177
-
178
- ## [0.2.5](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.4...@kaizen/tailwind@0.2.5) (2023-01-18)
179
-
180
- **Note:** Version bump only for package @kaizen/tailwind
181
-
182
-
183
-
184
-
185
-
186
- ## [0.2.4](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.3...@kaizen/tailwind@0.2.4) (2023-01-05)
187
-
188
- **Note:** Version bump only for package @kaizen/tailwind
189
-
190
-
191
-
192
-
193
-
194
- ## [0.2.3](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.2...@kaizen/tailwind@0.2.3) (2023-01-04)
195
-
196
- **Note:** Version bump only for package @kaizen/tailwind
197
-
198
-
199
-
200
-
201
-
202
- ## [0.2.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.1...@kaizen/tailwind@0.2.2) (2023-01-04)
203
-
204
- **Note:** Version bump only for package @kaizen/tailwind
205
-
206
-
207
-
208
-
209
-
210
- ## [0.2.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.2.0...@kaizen/tailwind@0.2.1) (2023-01-04)
211
-
212
- **Note:** Version bump only for package @kaizen/tailwind
213
-
214
-
215
-
216
-
217
-
218
- # [0.2.0](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.1.3...@kaizen/tailwind@0.2.0) (2022-12-15)
219
-
220
-
221
- ### Features
222
-
223
- * update tokens presets ([#3165](https://github.com/cultureamp/kaizen-design-system/issues/3165)) ([ac963ef](https://github.com/cultureamp/kaizen-design-system/commit/ac963ef6bf5c30c345fc7f0911089b2ed4b15a49))
224
-
225
-
226
-
227
-
228
-
229
- ## [0.1.3](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.1.2...@kaizen/tailwind@0.1.3) (2022-12-15)
230
-
231
- **Note:** Version bump only for package @kaizen/tailwind
232
-
233
-
234
-
235
-
236
-
237
- ## [0.1.2](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.1.1...@kaizen/tailwind@0.1.2) (2022-12-09)
238
-
239
- **Note:** Version bump only for package @kaizen/tailwind
240
-
241
-
242
-
243
-
244
-
245
- ## [0.1.1](https://github.com/cultureamp/kaizen-design-system/compare/@kaizen/tailwind@0.1.0...@kaizen/tailwind@0.1.1) (2022-12-08)
246
-
247
- **Note:** Version bump only for package @kaizen/tailwind
248
-
249
-
250
-
251
-
252
-
253
- # 0.1.0 (2022-12-06)
254
-
255
-
256
- ### Features
257
-
258
- * add tailwind beta release ([#3136](https://github.com/cultureamp/kaizen-design-system/issues/3136)) ([cacff22](https://github.com/cultureamp/kaizen-design-system/commit/cacff220e18ebdc6c2e24f28d5e363ad0ae3bc31)), closes [#3116](https://github.com/cultureamp/kaizen-design-system/issues/3116) [#3121](https://github.com/cultureamp/kaizen-design-system/issues/3121)
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Culture Amp Pty Ltd
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,13 +0,0 @@
1
- export declare const kzWidth: {
2
- 0: string;
3
- 25: string;
4
- 33: string;
5
- 50: string;
6
- 75: string;
7
- 100: string;
8
- auto: string;
9
- min: string;
10
- max: string;
11
- fit: string;
12
- };
13
- //# sourceMappingURL=kz-width.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kz-width.d.ts","sourceRoot":"","sources":["../src/kz-width.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;CAWnB,CAAA"}
package/dist/kz-width.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.kzWidth = void 0;
4
- exports.kzWidth = {
5
- 0: "0",
6
- 25: "25%",
7
- 33: "33.333333%",
8
- 50: "50%",
9
- 75: "75%",
10
- 100: "100%",
11
- auto: "auto",
12
- min: "min-content",
13
- max: "max-content",
14
- fit: "fit-content",
15
- };
16
- //# sourceMappingURL=kz-width.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kz-width.js","sourceRoot":"","sources":["../src/kz-width.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,CAAC,EAAE,GAAG;IACN,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,aAAa;CACnB,CAAA"}
package/src/kz-width.ts DELETED
@@ -1,12 +0,0 @@
1
- export const kzWidth = {
2
- 0: "0",
3
- 25: "25%",
4
- 33: "33.333333%",
5
- 50: "50%",
6
- 75: "75%",
7
- 100: "100%",
8
- auto: "auto",
9
- min: "min-content",
10
- max: "max-content",
11
- fit: "fit-content",
12
- }