entasis 0.5.0 → 0.6.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.
@@ -16,6 +16,7 @@
16
16
  * earlier edge forms; edge forms combine; `static` is a modifier)
17
17
  * - `shimmer*` (`shimmer` / `shimmer-none` exclude each other; `once` and
18
18
  * `reverse` are modifiers; `shimmer-color|duration|spread|angle-*` are scales)
19
+ * - `state-layer` / `state-layer-none` exclude each other
19
20
  * - `rounded-<step>-concentric` / `rounded-t|b-<step>-concentric` (join the core corner groups), the container side
20
21
  * needing nothing here — a `rounded-<step>` publishes its radius to its children by itself
21
22
  * - `duration-*` / `ease-*` motion tokens
@@ -30,4 +31,111 @@
30
31
  * falsy values, so no separate clsx pass is needed.
31
32
  */
32
33
  import type { ClassValue } from './types.js';
34
+ export declare const mergeConfig: {
35
+ extend: {
36
+ theme: {
37
+ spacing: string[];
38
+ };
39
+ classGroups: {
40
+ raised: (string | {
41
+ raised: string[];
42
+ })[];
43
+ lift: (string | {
44
+ lift: string[];
45
+ })[];
46
+ 'h-control': {
47
+ 'h-control': string[];
48
+ }[];
49
+ 'h-row': {
50
+ 'h-row': string[];
51
+ }[];
52
+ 'min-h-row': {
53
+ 'min-h-row': string[];
54
+ }[];
55
+ 'size-icon': {
56
+ 'size-icon': string[];
57
+ }[];
58
+ 'min-size-hit': {
59
+ 'min-size-hit': string[];
60
+ }[];
61
+ 'ps-indent': {
62
+ 'ps-indent': string[];
63
+ }[];
64
+ duration: {
65
+ duration: string[];
66
+ }[];
67
+ ease: {
68
+ ease: string[];
69
+ }[];
70
+ h: {
71
+ h: string[];
72
+ }[];
73
+ w: {
74
+ w: string[];
75
+ }[];
76
+ 'scroll-fade': (string | {
77
+ 'scroll-fade': string[];
78
+ })[];
79
+ 'scroll-fade-t': string[];
80
+ 'scroll-fade-b': string[];
81
+ 'scroll-fade-start': {
82
+ 'scroll-fade': string[];
83
+ }[];
84
+ 'scroll-fade-end': {
85
+ 'scroll-fade': string[];
86
+ }[];
87
+ shimmer: string[];
88
+ 'state-layer': string[];
89
+ 'shimmer-color': {
90
+ 'shimmer-color': {
91
+ readonly $v: "isAny";
92
+ }[];
93
+ }[];
94
+ 'shimmer-duration': {
95
+ 'shimmer-duration': {
96
+ readonly $v: "isAny";
97
+ }[];
98
+ }[];
99
+ 'shimmer-spread': {
100
+ 'shimmer-spread': {
101
+ readonly $v: "isAny";
102
+ }[];
103
+ }[];
104
+ 'shimmer-angle': {
105
+ 'shimmer-angle': {
106
+ readonly $v: "isAny";
107
+ }[];
108
+ }[];
109
+ rounded: {
110
+ rounded: ((value: string) => boolean)[];
111
+ }[];
112
+ 'rounded-t': {
113
+ 'rounded-t': ((value: string) => boolean)[];
114
+ }[];
115
+ 'rounded-b': {
116
+ 'rounded-b': ((value: string) => boolean)[];
117
+ }[];
118
+ };
119
+ conflictingClassGroups: {
120
+ raised: string[];
121
+ lift: string[];
122
+ shadow: string[];
123
+ 'h-control': string[];
124
+ 'h-row': string[];
125
+ h: string[];
126
+ 'size-icon': string[];
127
+ w: string[];
128
+ size: string[];
129
+ 'min-size-hit': string[];
130
+ 'min-h-row': string[];
131
+ 'min-w': string[];
132
+ 'min-h': string[];
133
+ 'ps-indent': string[];
134
+ ps: string[];
135
+ px: string[];
136
+ p: string[];
137
+ 'scroll-fade': string[];
138
+ };
139
+ };
140
+ };
33
141
  export declare const cn: (...inputs: ClassValue[]) => string;
@@ -16,6 +16,7 @@
16
16
  * earlier edge forms; edge forms combine; `static` is a modifier)
17
17
  * - `shimmer*` (`shimmer` / `shimmer-none` exclude each other; `once` and
18
18
  * `reverse` are modifiers; `shimmer-color|duration|spread|angle-*` are scales)
19
+ * - `state-layer` / `state-layer-none` exclude each other
19
20
  * - `rounded-<step>-concentric` / `rounded-t|b-<step>-concentric` (join the core corner groups), the container side
20
21
  * needing nothing here — a `rounded-<step>` publishes its radius to its children by itself
21
22
  * - `duration-*` / `ease-*` motion tokens
@@ -44,7 +45,7 @@ const SEMANTIC_SPACING = [
44
45
  'layout-lg',
45
46
  'layout-xl'
46
47
  ];
47
- const merge = createCn({
48
+ export const mergeConfig = {
48
49
  extend: {
49
50
  theme: {
50
51
  spacing: SEMANTIC_SPACING
@@ -74,6 +75,8 @@ const merge = createCn({
74
75
  'scroll-fade-start': [{ 'scroll-fade': ['s', 'l'] }],
75
76
  'scroll-fade-end': [{ 'scroll-fade': ['e', 'r'] }],
76
77
  shimmer: ['shimmer', 'shimmer-none'],
78
+ // The overlay is a ::before, so only its own off switch can remove it.
79
+ 'state-layer': ['state-layer', 'state-layer-none'],
77
80
  'shimmer-color': [{ 'shimmer-color': [validators.isAny] }],
78
81
  'shimmer-duration': [{ 'shimmer-duration': [validators.isAny] }],
79
82
  'shimmer-spread': [{ 'shimmer-spread': [validators.isAny] }],
@@ -110,5 +113,6 @@ const merge = createCn({
110
113
  'scroll-fade': ['scroll-fade-t', 'scroll-fade-b', 'scroll-fade-start', 'scroll-fade-end']
111
114
  }
112
115
  }
113
- });
116
+ };
117
+ const merge = createCn(mergeConfig);
114
118
  export const cn = (...inputs) => merge(...inputs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entasis",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev",