@okshaun/components 0.5.3 → 0.5.5
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/dist/index.d.ts +45 -0
- package/dist/index.js +198 -37
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +19 -4
- package/dist/preset.js +21 -12
- package/dist/preset.js.map +1 -1
- package/dist/sprite.symbol.html +1 -1
- package/package.json +1 -1
|
@@ -179,8 +179,6 @@
|
|
|
179
179
|
"color]___[value:text.brand",
|
|
180
180
|
"cursor]___[value:pointer",
|
|
181
181
|
"fontWeight]___[value:medium",
|
|
182
|
-
"width]___[value:24",
|
|
183
|
-
"height]___[value:24",
|
|
184
182
|
"gap]___[value:6",
|
|
185
183
|
"gap]___[value:2",
|
|
186
184
|
"gap]___[value:3",
|
|
@@ -199,6 +197,8 @@
|
|
|
199
197
|
"height]___[value:12",
|
|
200
198
|
"gap]___[value:12",
|
|
201
199
|
"marginInline]___[value:16",
|
|
200
|
+
"width]___[value:24",
|
|
201
|
+
"height]___[value:24",
|
|
202
202
|
"width]___[value:20",
|
|
203
203
|
"height]___[value:20",
|
|
204
204
|
"width]___[value:32",
|
|
@@ -213,6 +213,12 @@
|
|
|
213
213
|
"animationDuration]___[value:normal",
|
|
214
214
|
"animationTimingFunction]___[value:default",
|
|
215
215
|
"animationName]___[value:badgePopStandalone",
|
|
216
|
+
"justifyContent]___[value:flex-end",
|
|
217
|
+
"width]___[value:300px",
|
|
218
|
+
"marginBottom]___[value:2",
|
|
219
|
+
"fontSize]___[value:sm",
|
|
220
|
+
"fontWeight]___[value:semibold",
|
|
221
|
+
"textTransform]___[value:capitalize",
|
|
216
222
|
"opacity]___[value:0",
|
|
217
223
|
"opacity]___[value:1",
|
|
218
224
|
"position]___[value:absolute",
|
|
@@ -268,7 +274,15 @@
|
|
|
268
274
|
"iconAfter]___[value:plus]___[recipe:button",
|
|
269
275
|
"iconBefore]___[value:aa-placeholder]___[recipe:button",
|
|
270
276
|
"size]___[value:small]___[recipe:button",
|
|
271
|
-
"size]___[value:large]___[recipe:button"
|
|
277
|
+
"size]___[value:large]___[recipe:button",
|
|
278
|
+
"size]___[value:xlarge]___[recipe:button",
|
|
279
|
+
"iconBefore]___[value:plus]___[recipe:button",
|
|
280
|
+
"iconBefore]___[value:check]___[recipe:button",
|
|
281
|
+
"iconBefore]___[value:edit]___[recipe:button",
|
|
282
|
+
"iconAfter]___[value:arrow-square-out]___[recipe:button",
|
|
283
|
+
"iconAfter]___[value:arrow-right]___[recipe:button",
|
|
284
|
+
"iconBefore]___[value:arrow-left]___[recipe:button",
|
|
285
|
+
"iconBefore]___[value:trash]___[recipe:button"
|
|
272
286
|
],
|
|
273
287
|
"themeSwitcher": [],
|
|
274
288
|
"heading": [
|
|
@@ -295,7 +309,8 @@
|
|
|
295
309
|
"spinner": [
|
|
296
310
|
"size]___[value:small]___[recipe:spinner",
|
|
297
311
|
"size]___[value:standard]___[recipe:spinner",
|
|
298
|
-
"size]___[value:large]___[recipe:spinner"
|
|
312
|
+
"size]___[value:large]___[recipe:spinner",
|
|
313
|
+
"inverse]___[value:true]___[recipe:spinner"
|
|
299
314
|
],
|
|
300
315
|
"badge": [
|
|
301
316
|
"size]___[value:sm]___[recipe:badge",
|
package/dist/preset.js
CHANGED
|
@@ -4534,7 +4534,7 @@ const conditions = {
|
|
|
4534
4534
|
onlyOfType: "&:only-of-type",
|
|
4535
4535
|
peerFocus: ".peer:is(:focus, [data-focus]) ~ &",
|
|
4536
4536
|
peerHover: ".peer:is(:hover, [data-hover]) ~ &",
|
|
4537
|
-
peerActive: ".peer:is(:active, [data-active]) ~ &",
|
|
4537
|
+
peerActive: ".peer:is(:active, [data-active=true]) ~ &",
|
|
4538
4538
|
peerFocusWithin: ".peer:focus-within ~ &",
|
|
4539
4539
|
peerFocusVisible: ".peer:is(:focus-visible, [data-focus-visible]) ~ &",
|
|
4540
4540
|
peerDisabled: ".peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &",
|
|
@@ -4544,7 +4544,7 @@ const conditions = {
|
|
|
4544
4544
|
peerPlaceholderShown: ".peer:placeholder-shown ~ &",
|
|
4545
4545
|
groupFocus: ".group:is(:focus, [data-focus]) &",
|
|
4546
4546
|
groupHover: ".group:is(:hover, [data-hover]) &",
|
|
4547
|
-
groupActive: ".group:is(:active, [data-active]) &",
|
|
4547
|
+
groupActive: ".group:is(:active, [data-active=true]) &",
|
|
4548
4548
|
groupFocusWithin: ".group:focus-within &",
|
|
4549
4549
|
groupFocusVisible: ".group:is(:focus-visible, [data-focus-visible]) &",
|
|
4550
4550
|
groupDisabled: ".group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &",
|
|
@@ -5113,11 +5113,11 @@ const spinnerBase = {
|
|
|
5113
5113
|
borderWidth: "3",
|
|
5114
5114
|
borderStyle: "solid",
|
|
5115
5115
|
borderColor: "transparent",
|
|
5116
|
-
borderTopColor: "
|
|
5117
|
-
borderBottomColor: "
|
|
5116
|
+
borderTopColor: "icon",
|
|
5117
|
+
borderBottomColor: "icon",
|
|
5118
5118
|
animation: "spin",
|
|
5119
|
-
filter:
|
|
5120
|
-
mixBlendMode:
|
|
5119
|
+
// filter: 'invert(1)',
|
|
5120
|
+
// mixBlendMode: 'difference',
|
|
5121
5121
|
isolation: "isolate"
|
|
5122
5122
|
};
|
|
5123
5123
|
const spinnerVariants = {
|
|
@@ -5134,6 +5134,12 @@ const spinnerVariants = {
|
|
|
5134
5134
|
height: "32",
|
|
5135
5135
|
minHeight: "32"
|
|
5136
5136
|
}
|
|
5137
|
+
},
|
|
5138
|
+
inverse: {
|
|
5139
|
+
true: {
|
|
5140
|
+
borderTopColor: "icon.inverse",
|
|
5141
|
+
borderBottomColor: "icon.inverse"
|
|
5142
|
+
}
|
|
5137
5143
|
}
|
|
5138
5144
|
};
|
|
5139
5145
|
const spinnerRecipe = defineRecipe({
|
|
@@ -6526,9 +6532,6 @@ const menuBase = {
|
|
|
6526
6532
|
_focusVisible: {
|
|
6527
6533
|
bg: "surface.overlay.hovered"
|
|
6528
6534
|
},
|
|
6529
|
-
_active: {
|
|
6530
|
-
bg: "surface.overlay.hovered"
|
|
6531
|
-
},
|
|
6532
6535
|
_disabled: {
|
|
6533
6536
|
opacity: 0.5,
|
|
6534
6537
|
cursor: "not-allowed",
|
|
@@ -6567,7 +6570,7 @@ const menuBase = {
|
|
|
6567
6570
|
w: "24",
|
|
6568
6571
|
h: "24",
|
|
6569
6572
|
ml: "auto",
|
|
6570
|
-
color: "icon.
|
|
6573
|
+
color: "icon.decorative"
|
|
6571
6574
|
},
|
|
6572
6575
|
// Content wrapper (label + description)
|
|
6573
6576
|
menuItemContent: {
|
|
@@ -6698,15 +6701,21 @@ const chipBase = {
|
|
|
6698
6701
|
verticalAlign: "middle",
|
|
6699
6702
|
cursor: "pointer",
|
|
6700
6703
|
transitionDuration: "fast",
|
|
6701
|
-
transitionProperty: "background,
|
|
6704
|
+
transitionProperty: "background, color",
|
|
6702
6705
|
transitionTimingFunction: "default",
|
|
6703
6706
|
userSelect: "none",
|
|
6707
|
+
border: "none",
|
|
6704
6708
|
outlineWidth: 2,
|
|
6705
6709
|
outlineStyle: "solid",
|
|
6706
6710
|
outlineColor: "transparent",
|
|
6707
6711
|
bg: "bg.neutral",
|
|
6708
6712
|
color: "text",
|
|
6709
|
-
icon: {
|
|
6713
|
+
icon: {
|
|
6714
|
+
fill: "icon.decorative",
|
|
6715
|
+
transitionDuration: "fast",
|
|
6716
|
+
transitionProperty: "fill",
|
|
6717
|
+
transitionTimingFunction: "default"
|
|
6718
|
+
},
|
|
6710
6719
|
_hover: {
|
|
6711
6720
|
bg: "bg.neutral.hovered",
|
|
6712
6721
|
icon: { fill: "icon.decorative.hovered" }
|