@agility/plenum-ui 2.0.8 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -165,7 +165,7 @@ const _Button = (
165
165
  { "px-[17px] py-[9px] text-base": size === "lg" },
166
166
  { "px-[25px] py-[13px] text-base": size === "xl" },
167
167
  {
168
- "bg-violet-800 text-violet-100 hover:border-violet-700 hover:bg-violet-700 disabled:bg-violet-400 disabled:focus-visible:ring-0":
168
+ "bg-violet-800 text-white hover:border-violet-700 hover:bg-violet-700 disabled:bg-violet-400 disabled:focus-visible:ring-0":
169
169
  actionType === "primary"
170
170
  },
171
171
  {
@@ -1,56 +1,48 @@
1
+ /* eslint-disable no-undef */
2
+ const defaultTheme = require("tailwindcss/defaultTheme")
3
+
1
4
  /** @type {import('tailwindcss').Config} */
2
5
  module.exports = {
3
- mode: "development",
4
-
5
- content: [
6
- "./app/**/*.{js,ts,jsx,tsx}",
7
- "./pages/**/*.{js,ts,jsx,tsx}",
8
- "./components/**/*/.{js,ts,jsx,tsx}",
9
- "./stories/**/*.{js,ts,jsx,tsx}",
10
- "./.storybook/*.{js,ts,jsx,tsx}"
11
- ],
12
- safelist: [
13
- "text-xs",
14
- "text-sm",
15
- "text-base",
16
- "text-lg",
17
- "text-xl",
18
- "text-2xl",
19
- "text-3xl",
20
- "text-4xl",
21
- "text-5xl",
22
- "text-6xl",
23
- "font-thin",
24
- "font-extralight",
25
- "font-light",
26
- "font-normal",
27
- "font-medium",
28
- "font-semibold",
29
- "font-bold",
30
- "font-extrabold",
31
- "font-black",
32
- {
33
- pattern:
34
- /^(bg|text|border(-(t|r|b|l))?)-((gray)|(red)|(orange)|(yellow)|(blue)|(light-blue)|(cyan)|(green)|(purple)|(teal)|(violet)|(pink)|(rose))-(50|100|200|300|400|500|600|700|800|900)|(mx|my|m|px|py|p)-\d.$/
35
- }
36
- ],
6
+ content: ["./src/**/*.{js,ts,jsx,tsx}"],
37
7
  theme: {
38
- fontFamily: {
39
- mulish: ["Mulish", "sans-serif"]
8
+ screens: {
9
+ "6xs": "320px",
10
+ "3xs": "360px",
11
+ "2xs": "375px",
12
+ xs: "414px",
13
+ sm: "640px",
14
+ md: "768px",
15
+ lg: "1024px",
16
+ xl: "1173px",
17
+ "2xl": "1294px",
18
+ "3xl": "1424px",
19
+ "4xl": "1920px",
20
+ "5xl": "2560px"
40
21
  },
22
+
41
23
  extend: {
42
- backgroundImage: (theme) => ({
43
- "label-gradient-focus": "linear-gradient(to top, #FFF 10px, transparent 10px)",
44
- "label-gradient-idle": "linear-gradient(to top, #FFF 10px, transparent 10px)"
45
- }),
24
+ flex: {
25
+ "unset!": "unset !important"
26
+ },
27
+ boxShadow: {
28
+ "actions-bar": "0px 2px 4px rgba(0, 0, 0, 0.06)"
29
+ },
30
+ fontFamily: {
31
+ sans: ["TTInterphasesPro", "monospace"]
32
+ },
33
+
46
34
  gridTemplateColumns: {
47
35
  // Simple 16 column grid
48
- mainContainer: "max-content 1fr 1fr"
36
+ mainContainer: "max-content 1fr 1fr",
37
+ diffContainer: " 0.5fr 3fr",
38
+ moduleCard: "min-content 1fr"
49
39
  },
40
+
50
41
  gridTemplateRows: {
51
42
  // Simple 16 column grid
52
43
  header: "max-content 1fr 1fr"
53
44
  },
45
+
54
46
  colors: {
55
47
  "transparent-white-05": "rgba(255, 255, 255, 0.05)",
56
48
  "transparent-white-10": "rgba(255, 255, 255, 0.1)",
@@ -217,9 +209,11 @@ module.exports = {
217
209
  "rose-800": "#9F1239",
218
210
  "rose-900": "#881337"
219
211
  },
212
+
220
213
  fontWeight: {
221
214
  medium: 600
222
215
  },
216
+
223
217
  fontSize: {
224
218
  xs: ["0.75rem", "1rem"],
225
219
  sm: ["0.875rem", "1.25rem"],
@@ -235,11 +229,22 @@ module.exports = {
235
229
  "8xl": ["6rem", "6rem"],
236
230
  "9xl": ["8rem", "8rem"]
237
231
  },
232
+ transitionTimingFunction: {
233
+ "in-expo": "cubic-bezier(0.95, 0.05, 0.795, 0.035)",
234
+ "out-expo": "cubic-bezier(0.19, 1, 0.22, 1)",
235
+ "tab-underline": "cubic-bezier(.7,0,.28,1)"
236
+ },
237
+ transitionProperty: {
238
+ left: "left",
239
+ height: "height"
240
+ },
241
+
238
242
  animation: {
239
243
  enter: "fadeInLeft 300ms ease-out",
240
244
  exit: "fadeOutLeft 300ms ease-in forwards",
241
245
  quickBounce: "quickBounce 200ms ease-out forwards",
242
- fadeIn: "fadeIn 400ms ease-in-out forwards"
246
+ fadeIn: "fadeIn 400ms ease-in-out forwards",
247
+ drawLine: "drawLine 1s ease-tab-underline forwards"
243
248
  },
244
249
 
245
250
  keyframes: {
@@ -281,13 +286,21 @@ module.exports = {
281
286
  opacity: "0",
282
287
  transform: "translate(-2rem)"
283
288
  }
289
+ },
290
+ drawLine: {
291
+ "0%": {
292
+ width: "0%"
293
+ },
294
+ "100%": {
295
+ width: "100%"
296
+ }
284
297
  }
285
- },
286
- transitionProperty: {
287
- left: "left",
288
- height: "height"
289
298
  }
290
299
  }
291
300
  },
292
- plugins: [require("@tailwindcss/forms"), require("@tailwindcss/typography"), require("@headlessui/tailwindcss")]
301
+ plugins: [
302
+ require("@tailwindcss/forms"),
303
+ require("@tailwindcss/typography"),
304
+ require("@headlessui/tailwindcss")({ prefix: "ui" })
305
+ ]
293
306
  }