@plumeria/core 10.1.0 → 10.1.2

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.
Files changed (2) hide show
  1. package/lib/csstype.d.ts +47 -43
  2. package/package.json +1 -1
package/lib/csstype.d.ts CHANGED
@@ -1,47 +1,13 @@
1
1
  /**
2
- * Based on Meta's StyleX CSS type definitions (MIT License)
3
- * https://github.com/facebook/stylex
4
- * Extended from src/types/StyleXCSSTypes.js
2
+ * Based on Meta's StyleX CSS type definitions.
3
+ * Extended from src/types/StyleXCSSTypes.js (https://github.com/facebook/stylex)
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
5
9
  */
6
10
 
7
- type CSSCursor =
8
- | 'auto'
9
- | 'default'
10
- | 'none'
11
- | 'context-menu'
12
- | 'help'
13
- | 'pointer'
14
- | 'progress'
15
- | 'wait'
16
- | 'cell'
17
- | 'crosshair'
18
- | 'text'
19
- | 'vertical-text'
20
- | 'alias'
21
- | 'copy'
22
- | 'move'
23
- | 'no-drop'
24
- | 'not-allowed'
25
- | 'e-resize'
26
- | 'n-resize'
27
- | 'ne-resize'
28
- | 'nw-resize'
29
- | 's-resize'
30
- | 'se-resize'
31
- | 'sw-resize'
32
- | 'w-resize'
33
- | 'ew-resize'
34
- | 'ns-resize'
35
- | 'nesw-resize'
36
- | 'nwse-resize'
37
- | 'col-resize'
38
- | 'row-resize'
39
- | 'all-scroll'
40
- | 'zoom-in'
41
- | 'zoom-out'
42
- | 'grab'
43
- | 'grabbing';
44
-
45
11
  type alignContent =
46
12
  | 'center'
47
13
  | 'start'
@@ -101,6 +67,7 @@ type animationTimingFunction = singleTimingFunction;
101
67
  type appearance = 'auto' | 'none' | 'textfield' | string;
102
68
  type backdropFilter = 'none' | string;
103
69
  type backfaceVisibility = 'visible' | 'hidden';
70
+ type background = finalBgLayer;
104
71
  type backgroundAttachment = attachment;
105
72
  type backgroundBlendMode = blendMode;
106
73
  type backgroundClip = box | 'text';
@@ -239,7 +206,43 @@ type contain = 'none' | 'strict' | 'content' | string;
239
206
  type content = string;
240
207
  type counterIncrement = string | 'none';
241
208
  type counterReset = string | 'none';
242
- type cursor = CSSCursor;
209
+ type cursor =
210
+ | 'auto'
211
+ | 'default'
212
+ | 'none'
213
+ | 'context-menu'
214
+ | 'help'
215
+ | 'pointer'
216
+ | 'progress'
217
+ | 'wait'
218
+ | 'cell'
219
+ | 'crosshair'
220
+ | 'text'
221
+ | 'vertical-text'
222
+ | 'alias'
223
+ | 'copy'
224
+ | 'move'
225
+ | 'no-drop'
226
+ | 'not-allowed'
227
+ | 'e-resize'
228
+ | 'n-resize'
229
+ | 'ne-resize'
230
+ | 'nw-resize'
231
+ | 's-resize'
232
+ | 'se-resize'
233
+ | 'sw-resize'
234
+ | 'w-resize'
235
+ | 'ew-resize'
236
+ | 'ns-resize'
237
+ | 'nesw-resize'
238
+ | 'nwse-resize'
239
+ | 'col-resize'
240
+ | 'row-resize'
241
+ | 'all-scroll'
242
+ | 'zoom-in'
243
+ | 'zoom-out'
244
+ | 'grab'
245
+ | 'grabbing';
243
246
  type direction = 'ltr' | 'rtl';
244
247
  type display =
245
248
  | 'none'
@@ -989,6 +992,7 @@ type NamedColor =
989
992
  | 'yellowgreen';
990
993
  type color = NamedColor | (string & {});
991
994
  type compositeOperator = 'add' | 'subtract' | 'intersect' | 'exclude';
995
+ type finalBgLayer = attachment | box | backgroundColor;
992
996
  type geometryBox = shapeBox | 'fill-box' | 'stroke-box' | 'view-box';
993
997
  type gridLine = 'auto' | string;
994
998
  type lengthPercentage = number | string;
@@ -1125,7 +1129,7 @@ export type CSSType = Readonly<{
1125
1129
 
1126
1130
  backdropFilter?: all | backdropFilter;
1127
1131
  backfaceVisibility?: all | backfaceVisibility;
1128
- background?: all | string;
1132
+ background?: all | background;
1129
1133
  backgroundAttachment?: all | OptionalArray<backgroundAttachment>;
1130
1134
  backgroundBlendMode?: all | OptionalArray<backgroundBlendMode>;
1131
1135
  backgroundClip?: all | OptionalArray<backgroundClip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "description": "A styling system that disappears.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",