@molecule/app-styling 1.0.2 → 1.0.4
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/LICENSE +111 -24
- package/README.md +36 -36
- package/dist/utilities.d.ts +11 -0
- package/dist/utilities.d.ts.map +1 -1
- package/dist/utilities.js +11 -0
- package/dist/utilities.js.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -34,21 +35,33 @@
|
|
|
34
35
|
|
|
35
36
|
"Work" shall mean the work of authorship, whether in Source or
|
|
36
37
|
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
38
40
|
|
|
39
41
|
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
42
|
form, that is based on (or derived from) the Work and for which the
|
|
41
43
|
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
-
represent, as a whole, an original work of authorship.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
49
62
|
|
|
50
63
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
51
|
-
on behalf of whom a Contribution has been received by
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
52
65
|
subsequently incorporated within the Work.
|
|
53
66
|
|
|
54
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
@@ -61,8 +74,18 @@
|
|
|
61
74
|
3. Grant of Patent License. Subject to the terms and conditions of
|
|
62
75
|
this License, each Contributor hereby grants to You a perpetual,
|
|
63
76
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
64
|
-
|
|
65
|
-
and otherwise transfer the Work
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
66
89
|
|
|
67
90
|
4. Redistribution. You may reproduce and distribute copies of the
|
|
68
91
|
Work or Derivative Works thereof in any medium, with or without
|
|
@@ -84,23 +107,87 @@
|
|
|
84
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
85
108
|
distribution, then any Derivative Works that You distribute must
|
|
86
109
|
include a readable copy of the attribution notices contained
|
|
87
|
-
within such NOTICE file
|
|
88
|
-
|
|
89
|
-
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
90
138
|
|
|
91
139
|
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
-
names, trademarks, service marks, or product names of the Licensor
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
93
143
|
|
|
94
144
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
-
agreed to in writing, Licensor provides the Work
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
104
191
|
|
|
105
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
106
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -3,15 +3,11 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-10-16T23:38:16.166Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-styling
|
|
10
10
|
|
|
11
|
-
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
12
|
-
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
13
|
-
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
14
|
-
|
|
15
11
|
Styling interface and utilities for molecule.dev.
|
|
16
12
|
|
|
17
13
|
Framework-agnostic class-name merging ({@link cn}), variant generation
|
|
@@ -19,6 +15,10 @@ Framework-agnostic class-name merging ({@link cn}), variant generation
|
|
|
19
15
|
low-level plumbing that styling bonds (e.g. `@molecule/app-styling-tailwind`)
|
|
20
16
|
and ClassMap bonds build on.
|
|
21
17
|
|
|
18
|
+
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
19
|
+
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
20
|
+
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
21
|
+
|
|
22
22
|
## Quick Start
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
@@ -59,16 +59,6 @@ interface CVAConfig<T extends Record<string, Record<string, string>>> {
|
|
|
59
59
|
|
|
60
60
|
### Types
|
|
61
61
|
|
|
62
|
-
#### `ClassMerger`
|
|
63
|
-
|
|
64
|
-
A class-name merger: post-processes the joined class string produced by
|
|
65
|
-
`cn()` to resolve conflicts (e.g. `tailwind-merge`). Registered by a styling
|
|
66
|
-
bond via `setClassMerger` so the styling core stays framework-agnostic.
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
type ClassMerger = (className: string) => string
|
|
70
|
-
```
|
|
71
|
-
|
|
72
62
|
#### `ClassValue`
|
|
73
63
|
|
|
74
64
|
Class name value types accepted by {@link cn}.
|
|
@@ -84,19 +74,40 @@ type ClassValue =
|
|
|
84
74
|
| Record<string, boolean | undefined | null>
|
|
85
75
|
```
|
|
86
76
|
|
|
77
|
+
#### `ClassMerger`
|
|
78
|
+
|
|
79
|
+
A class-name merger: post-processes the joined class string produced by
|
|
80
|
+
`cn()` to resolve conflicts (e.g. `tailwind-merge`). Registered by a styling
|
|
81
|
+
bond via `setClassMerger` so the styling core stays framework-agnostic.
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
type ClassMerger = (className: string) => string
|
|
85
|
+
```
|
|
86
|
+
|
|
87
87
|
### Functions
|
|
88
88
|
|
|
89
|
-
#### `
|
|
89
|
+
#### `themeToCSS(theme)`
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
Maps a molecule theme to CSS custom properties.
|
|
92
92
|
|
|
93
93
|
```typescript
|
|
94
|
-
function
|
|
94
|
+
function themeToCSS(theme: ThemeLike): Record<string, string>
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
- `
|
|
97
|
+
- `theme` — A theme object with colors, spacing, typography, borderRadius, and shadows.
|
|
98
98
|
|
|
99
|
-
**Returns:**
|
|
99
|
+
**Returns:** A flat record of CSS custom properties (e.g. `{ '--color-primary': '#3b82f6' }`).
|
|
100
|
+
|
|
101
|
+
#### `setClassMerger(merger)`
|
|
102
|
+
|
|
103
|
+
Registers the class-name merger used by {@link cn} to resolve conflicting
|
|
104
|
+
classes. Styling bonds call this at startup; pass `null` to clear it.
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
function setClassMerger(merger: ClassMerger | null): void
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
- `merger` — Post-processes the joined class string, or `null` to disable merging.
|
|
100
111
|
|
|
101
112
|
#### `cn(classes)`
|
|
102
113
|
|
|
@@ -134,28 +145,17 @@ function cva(
|
|
|
134
145
|
|
|
135
146
|
**Returns:** A function that accepts variant props and returns the resolved class string.
|
|
136
147
|
|
|
137
|
-
#### `
|
|
138
|
-
|
|
139
|
-
Registers the class-name merger used by {@link cn} to resolve conflicting
|
|
140
|
-
classes. Styling bonds call this at startup; pass `null` to clear it.
|
|
141
|
-
|
|
142
|
-
```typescript
|
|
143
|
-
function setClassMerger(merger: ClassMerger | null): void
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
- `merger` — Post-processes the joined class string, or `null` to disable merging.
|
|
147
|
-
|
|
148
|
-
#### `themeToCSS(theme)`
|
|
148
|
+
#### `camelToKebab(str)`
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
Converts a camelCase string to kebab-case.
|
|
151
151
|
|
|
152
152
|
```typescript
|
|
153
|
-
function
|
|
153
|
+
function camelToKebab(str: string): string
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
- `
|
|
156
|
+
- `str` — The camelCase string to convert.
|
|
157
157
|
|
|
158
|
-
**Returns:**
|
|
158
|
+
**Returns:** The kebab-case version (e.g. `'borderRadius'` → `'border-radius'`).
|
|
159
159
|
|
|
160
160
|
## Available Providers
|
|
161
161
|
|
package/dist/utilities.d.ts
CHANGED
|
@@ -20,6 +20,15 @@ export declare const setClassMerger: (merger: ClassMerger | null) => void;
|
|
|
20
20
|
* `gap-*` classes are resolved by it; otherwise the joined string is returned
|
|
21
21
|
* as-is.
|
|
22
22
|
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* **ORDERING TRAP (bit a fleet QA repeatedly):** the merger keeps the LAST
|
|
25
|
+
* occurrence of any conflicting utility group. A responsive show/hide written
|
|
26
|
+
* as `cn(hidden, 'cm.flex')` silently DROPS the `hidden` — `cm.flex` and
|
|
27
|
+
* `hidden` are both `display` utilities, and `cm.flex` came last. Always put
|
|
28
|
+
* the conditional/breakpoint class LAST: `cn('cm.flex', 'hidden md:flex')`.
|
|
29
|
+
* The same rule covers `overflow-hidden` vs `overflow-x-auto`, `px-*` pairs,
|
|
30
|
+
* and every other tailwind-merge conflict group.
|
|
31
|
+
*
|
|
23
32
|
* @param classes - Class values to merge (strings, booleans, objects, arrays).
|
|
24
33
|
* @returns A single space-separated class string.
|
|
25
34
|
*
|
|
@@ -27,6 +36,8 @@ export declare const setClassMerger: (merger: ClassMerger | null) => void;
|
|
|
27
36
|
* ```typescript
|
|
28
37
|
* cn('btn', 'btn-primary', isActive && 'active')
|
|
29
38
|
* // => 'btn btn-primary active' (if isActive is true)
|
|
39
|
+
* cn('cm.flex', 'hidden md:flex') // hidden below md, flex above — CORRECT
|
|
40
|
+
* cn('hidden', 'cm.flex') // flex at EVERY width — the trap
|
|
30
41
|
* ```
|
|
31
42
|
*/
|
|
32
43
|
export declare const cn: (...classes: ClassValue[]) => string;
|
package/dist/utilities.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAWpE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,GAAG,IAAI,KAAG,IAE3D,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAWpE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,GAAG,IAAI,KAAG,IAE3D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,SAAS,UAAU,EAAE,KAAG,MAqB7C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAClE,MAAM,MAAM,EACZ,SAAS,SAAS,CAAC,CAAC,CAAC,MAEb,QAAQ,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAE,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,MAwCxE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAA"}
|
package/dist/utilities.js
CHANGED
|
@@ -29,6 +29,15 @@ export const setClassMerger = (merger) => {
|
|
|
29
29
|
* `gap-*` classes are resolved by it; otherwise the joined string is returned
|
|
30
30
|
* as-is.
|
|
31
31
|
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* **ORDERING TRAP (bit a fleet QA repeatedly):** the merger keeps the LAST
|
|
34
|
+
* occurrence of any conflicting utility group. A responsive show/hide written
|
|
35
|
+
* as `cn(hidden, 'cm.flex')` silently DROPS the `hidden` — `cm.flex` and
|
|
36
|
+
* `hidden` are both `display` utilities, and `cm.flex` came last. Always put
|
|
37
|
+
* the conditional/breakpoint class LAST: `cn('cm.flex', 'hidden md:flex')`.
|
|
38
|
+
* The same rule covers `overflow-hidden` vs `overflow-x-auto`, `px-*` pairs,
|
|
39
|
+
* and every other tailwind-merge conflict group.
|
|
40
|
+
*
|
|
32
41
|
* @param classes - Class values to merge (strings, booleans, objects, arrays).
|
|
33
42
|
* @returns A single space-separated class string.
|
|
34
43
|
*
|
|
@@ -36,6 +45,8 @@ export const setClassMerger = (merger) => {
|
|
|
36
45
|
* ```typescript
|
|
37
46
|
* cn('btn', 'btn-primary', isActive && 'active')
|
|
38
47
|
* // => 'btn btn-primary active' (if isActive is true)
|
|
48
|
+
* cn('cm.flex', 'hidden md:flex') // hidden below md, flex above — CORRECT
|
|
49
|
+
* cn('hidden', 'cm.flex') // flex at EVERY width — the trap
|
|
39
50
|
* ```
|
|
40
51
|
*/
|
|
41
52
|
export const cn = (...classes) => {
|
package/dist/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;GAMG;AACH,IAAI,WAAW,GAAuB,IAAI,CAAA;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAQ,EAAE;IACjE,WAAW,GAAG,MAAM,CAAA;AACtB,CAAC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../src/utilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;GAMG;AACH,IAAI,WAAW,GAAuB,IAAI,CAAA;AAE1C;;;;;GAKG;AACH,MAAM,CAAC,MA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C,aAAa,CAAC,CAAA;gBAC7B,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC3B,CAAC;QAED,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAA;IACvB,CAAC,CAAA;AACH,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAClD,OAAO,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;AACjE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-styling",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Styling interface and utilities for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/node": "26.
|
|
32
|
+
"@types/node": "26.6.5",
|
|
33
33
|
"typescript": "6.0.3",
|
|
34
|
-
"vitest": "4.1.
|
|
34
|
+
"vitest": "4.1.12"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|