@edu-tosel/design 1.0.300 → 1.0.302

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": "@edu-tosel/design",
3
- "version": "1.0.300",
3
+ "version": "1.0.302",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
@@ -4,7 +4,62 @@ import type { PluginAPI } from "tailwindcss/types/config";
4
4
 
5
5
  // import twElements from "tw-elements/dist/plugin";
6
6
  // import tailwindcssDirectionalShadows from "tailwindcss-directional-shadows";
7
- import safelist from "./src/style/config/safelist";
7
+
8
+ const colors = [
9
+ "red",
10
+ "orange",
11
+ "amber",
12
+ "yellow",
13
+ "lime",
14
+ "green",
15
+ "emerald",
16
+ "teal",
17
+ "cyan",
18
+ "sky",
19
+ "blue",
20
+ "indigo",
21
+ "violet",
22
+ "purple",
23
+ "fuchsia",
24
+ "pink",
25
+ "rose",
26
+ "slate",
27
+ "gray",
28
+ "zinc",
29
+ "neutral",
30
+ "stone",
31
+ ];
32
+ const intensities = [
33
+ "50",
34
+ "100",
35
+ "200",
36
+ "300",
37
+ "400",
38
+ "500",
39
+ "600",
40
+ "700",
41
+ "800",
42
+ "900",
43
+ ];
44
+ const variants = ["hover"];
45
+ const safelist = [
46
+ ...colors.flatMap((color) =>
47
+ intensities.map((intensity) => `bg-${color}-${intensity}`)
48
+ ),
49
+ ...colors.flatMap((color) =>
50
+ intensities.map((intensity) => `text-${color}-${intensity}`)
51
+ ),
52
+ ...variants.flatMap((variant) =>
53
+ colors.flatMap((color) =>
54
+ intensities.map((intensity) => `${variant}:bg-${color}-${intensity}`)
55
+ )
56
+ ),
57
+ ...variants.flatMap((variant) =>
58
+ colors.flatMap((color) =>
59
+ intensities.map((intensity) => `${variant}:text-${color}-${intensity}`)
60
+ )
61
+ ),
62
+ ];
8
63
 
9
64
  export default {
10
65
  content: [
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.300
1
+ 1.0.302
@@ -1,2 +0,0 @@
1
- declare const safelist: string[];
2
- export default safelist;
@@ -1,48 +0,0 @@
1
- const colors = [
2
- "red",
3
- "orange",
4
- "amber",
5
- "yellow",
6
- "lime",
7
- "green",
8
- "emerald",
9
- "teal",
10
- "cyan",
11
- "sky",
12
- "blue",
13
- "indigo",
14
- "violet",
15
- "purple",
16
- "fuchsia",
17
- "pink",
18
- "rose",
19
- "slate",
20
- "gray",
21
- "zinc",
22
- "neutral",
23
- "stone",
24
- ];
25
- const intensities = [
26
- "50",
27
- "100",
28
- "200",
29
- "300",
30
- "400",
31
- "500",
32
- "600",
33
- "700",
34
- "800",
35
- "900",
36
- ];
37
- const variants = ["hover"];
38
- const safelist = [
39
- // bg-{color}-{intensity}
40
- ...colors.flatMap((color) => intensities.map((intensity) => `bg-${color}-${intensity}`)),
41
- // text-{color}-{intensity}
42
- ...colors.flatMap((color) => intensities.map((intensity) => `text-${color}-${intensity}`)),
43
- // hover:bg-{color}-{intensity}
44
- ...variants.flatMap((variant) => colors.flatMap((color) => intensities.map((intensity) => `${variant}:bg-${color}-${intensity}`))),
45
- // hover:text-{color}-{intensity}
46
- ...variants.flatMap((variant) => colors.flatMap((color) => intensities.map((intensity) => `${variant}:text-${color}-${intensity}`))),
47
- ];
48
- export default safelist;