@okshaun/components 4.1.4 → 4.2.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.
- package/dist/index.js +314 -41
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +22 -6
- package/dist/{preset-BOoMi8ge.js → preset-CsYXL2Bm.js} +101 -5
- package/dist/preset-CsYXL2Bm.js.map +1 -0
- package/dist/preset.js +1 -1
- package/dist/specs/recipes.json +11 -0
- package/dist/sprite.symbol.html +1 -1
- package/dist/styles.css +131 -11
- package/dist/types/index.d.ts +266 -0
- package/package.json +1 -1
- package/src/recipes/avatar.ts +2 -2
- package/src/recipes/button.ts +1 -0
- package/src/recipes/printPreview.ts +101 -0
- package/src/recipes/recipes-slot.ts +1 -0
- package/src/recipes/skeleton.ts +2 -2
- package/src/recipes/tag.ts +1 -0
- package/dist/preset-BOoMi8ge.js.map +0 -1
|
@@ -183,7 +183,26 @@
|
|
|
183
183
|
"textStyle]___[value:body.sm",
|
|
184
184
|
"pointerEvents]___[value:none",
|
|
185
185
|
"textStyle]___[value:heading.xs]___[cond:sm",
|
|
186
|
+
"height]___[value:full",
|
|
187
|
+
"borderColor]___[value:neutral.30",
|
|
188
|
+
"paddingTop]___[value:12",
|
|
189
|
+
"fontSize]___[value:24",
|
|
190
|
+
"height]___[value:md",
|
|
191
|
+
"height]___[value:xs",
|
|
192
|
+
"padding]___[value:8",
|
|
193
|
+
"borderWidth]___[value:0",
|
|
186
194
|
"position]___[value:absolute",
|
|
195
|
+
"top]___[value:96",
|
|
196
|
+
"left]___[value:48",
|
|
197
|
+
"width]___[value:272",
|
|
198
|
+
"height]___[value:40",
|
|
199
|
+
"borderWidth]___[value:2",
|
|
200
|
+
"borderStyle]___[value:solid",
|
|
201
|
+
"borderColor]___[value:border.danger",
|
|
202
|
+
"flex]___[value:1",
|
|
203
|
+
"minHeight]___[value:0",
|
|
204
|
+
"gridTemplateColumns]___[value:repeat(3, minmax(0, 1fr))",
|
|
205
|
+
"borderBottomWidth]___[value:1",
|
|
187
206
|
"width]___[value:0",
|
|
188
207
|
"height]___[value:0",
|
|
189
208
|
"padding]___[value:0",
|
|
@@ -217,7 +236,6 @@
|
|
|
217
236
|
"maxWidth]___[value:3xl",
|
|
218
237
|
"lineHeight]___[value:none",
|
|
219
238
|
"fill]___[value:var(--oks-colors-bg-neutral-inverse)",
|
|
220
|
-
"flex]___[value:1",
|
|
221
239
|
"minWidth]___[value:0",
|
|
222
240
|
"paddingTop]___[value:16",
|
|
223
241
|
"paddingBottom]___[value:16",
|
|
@@ -232,7 +250,6 @@
|
|
|
232
250
|
"marginInline]___[value:8",
|
|
233
251
|
"marginBlock]___[value:12",
|
|
234
252
|
"fill]___[value:icon.decorative",
|
|
235
|
-
"padding]___[value:8",
|
|
236
253
|
"height]___[value:32",
|
|
237
254
|
"border]___[value:default",
|
|
238
255
|
"backgroundColor]___[value:blue.50",
|
|
@@ -283,7 +300,6 @@
|
|
|
283
300
|
"borderLeftStyle]___[value:solid",
|
|
284
301
|
"marginBlock]___[value:8",
|
|
285
302
|
"marginBlock]___[value:16",
|
|
286
|
-
"gridTemplateColumns]___[value:repeat(3, minmax(0, 1fr))",
|
|
287
303
|
"listStyleType]___[value:disc",
|
|
288
304
|
"paddingBlock]___[value:8",
|
|
289
305
|
"paddingInline]___[value:16",
|
|
@@ -341,7 +357,6 @@
|
|
|
341
357
|
"flexGrow]___[value:0",
|
|
342
358
|
"fontSize]___[value:16",
|
|
343
359
|
"fontSize]___[value:20",
|
|
344
|
-
"fontSize]___[value:24",
|
|
345
360
|
"fontSize]___[value:32",
|
|
346
361
|
"fontSize]___[value:40",
|
|
347
362
|
"fontSize]___[value:48",
|
|
@@ -823,7 +838,7 @@
|
|
|
823
838
|
"selected]___[value:false]___[recipe:listItem"
|
|
824
839
|
],
|
|
825
840
|
"icon": [
|
|
826
|
-
"size]___[value:
|
|
841
|
+
"size]___[value:6]___[recipe:icon",
|
|
827
842
|
"size]___[value:24]___[recipe:icon",
|
|
828
843
|
"size]___[value:20]___[recipe:icon",
|
|
829
844
|
"size]___[value:32]___[recipe:icon",
|
|
@@ -876,7 +891,6 @@
|
|
|
876
891
|
"size]___[value:5]___[cond:lg]___[recipe:icon",
|
|
877
892
|
"size]___[value:5]___[cond:xl]___[recipe:icon",
|
|
878
893
|
"size]___[value:5]___[cond:2xl]___[recipe:icon",
|
|
879
|
-
"size]___[value:6]___[recipe:icon",
|
|
880
894
|
"size]___[value:6]___[cond:xs]___[recipe:icon",
|
|
881
895
|
"size]___[value:6]___[cond:sm]___[recipe:icon",
|
|
882
896
|
"size]___[value:6]___[cond:md]___[recipe:icon",
|
|
@@ -911,6 +925,7 @@
|
|
|
911
925
|
"size]___[value:10]___[cond:lg]___[recipe:icon",
|
|
912
926
|
"size]___[value:10]___[cond:xl]___[recipe:icon",
|
|
913
927
|
"size]___[value:10]___[cond:2xl]___[recipe:icon",
|
|
928
|
+
"size]___[value:12]___[recipe:icon",
|
|
914
929
|
"size]___[value:12]___[cond:xs]___[recipe:icon",
|
|
915
930
|
"size]___[value:12]___[cond:sm]___[recipe:icon",
|
|
916
931
|
"size]___[value:12]___[cond:md]___[recipe:icon",
|
|
@@ -1524,6 +1539,7 @@
|
|
|
1524
1539
|
"size]___[value:fullPage]___[recipe:modal",
|
|
1525
1540
|
"position]___[value:top]___[recipe:modal"
|
|
1526
1541
|
],
|
|
1542
|
+
"printPreview": [],
|
|
1527
1543
|
"radioInput": [],
|
|
1528
1544
|
"radio": [],
|
|
1529
1545
|
"segmentedInputs": [
|
|
@@ -5020,10 +5020,10 @@ const skeletonRecipe = defineRecipe({
|
|
|
5020
5020
|
text: {
|
|
5021
5021
|
h: "4",
|
|
5022
5022
|
w: "full",
|
|
5023
|
-
borderRadius: "
|
|
5023
|
+
borderRadius: "999"
|
|
5024
5024
|
},
|
|
5025
5025
|
circular: {
|
|
5026
|
-
borderRadius: "
|
|
5026
|
+
borderRadius: "999",
|
|
5027
5027
|
aspectRatio: "square"
|
|
5028
5028
|
},
|
|
5029
5029
|
rounded: {
|
|
@@ -5060,6 +5060,7 @@ const tagRecipe = defineRecipe({
|
|
|
5060
5060
|
jsx: ["Tag"],
|
|
5061
5061
|
base: {
|
|
5062
5062
|
display: "flex",
|
|
5063
|
+
fontFamily: "sans",
|
|
5063
5064
|
alignItems: "center",
|
|
5064
5065
|
py: "0",
|
|
5065
5066
|
borderRadius: "2",
|
|
@@ -5994,7 +5995,7 @@ const avatarRecipe = defineSlotRecipe({
|
|
|
5994
5995
|
borderRadius: "999",
|
|
5995
5996
|
borderWidth: "2",
|
|
5996
5997
|
borderStyle: "solid",
|
|
5997
|
-
borderColor: "
|
|
5998
|
+
borderColor: "surface",
|
|
5998
5999
|
zIndex: "raised"
|
|
5999
6000
|
},
|
|
6000
6001
|
status: {
|
|
@@ -6007,7 +6008,7 @@ const avatarRecipe = defineSlotRecipe({
|
|
|
6007
6008
|
borderRadius: "999",
|
|
6008
6009
|
borderWidth: "2",
|
|
6009
6010
|
borderStyle: "solid",
|
|
6010
|
-
borderColor: "
|
|
6011
|
+
borderColor: "surface",
|
|
6011
6012
|
zIndex: "raised"
|
|
6012
6013
|
}
|
|
6013
6014
|
},
|
|
@@ -6374,6 +6375,7 @@ const buttonBaseStyles = {
|
|
|
6374
6375
|
userSelect: "none",
|
|
6375
6376
|
verticalAlign: "middle",
|
|
6376
6377
|
fontWeight: "medium",
|
|
6378
|
+
fontFamily: "sans",
|
|
6377
6379
|
borderWidth: "1",
|
|
6378
6380
|
borderStyle: "solid",
|
|
6379
6381
|
borderColor: "transparent",
|
|
@@ -7829,6 +7831,99 @@ const modalRecipe = defineSlotRecipe({
|
|
|
7829
7831
|
position: "centered"
|
|
7830
7832
|
}
|
|
7831
7833
|
});
|
|
7834
|
+
const printPreviewRecipe = defineSlotRecipe({
|
|
7835
|
+
className: "printPreview",
|
|
7836
|
+
jsx: ["PrintPreview", "PrintPage"],
|
|
7837
|
+
slots: ["root", "stack", "page", "sheet", "overlay", "marginArea", "margins"],
|
|
7838
|
+
base: {
|
|
7839
|
+
root: {
|
|
7840
|
+
position: "relative",
|
|
7841
|
+
w: "full",
|
|
7842
|
+
h: "full",
|
|
7843
|
+
overflow: "auto",
|
|
7844
|
+
// A scrollbar that appears would change the width and the fit scale.
|
|
7845
|
+
scrollbarGutter: "stable",
|
|
7846
|
+
bg: "surface.sunken",
|
|
7847
|
+
p: "24",
|
|
7848
|
+
_focusVisible: {
|
|
7849
|
+
outlineWidth: "2",
|
|
7850
|
+
outlineStyle: "solid",
|
|
7851
|
+
outlineColor: "border.focused",
|
|
7852
|
+
outlineOffset: "-2"
|
|
7853
|
+
}
|
|
7854
|
+
},
|
|
7855
|
+
stack: {
|
|
7856
|
+
display: "flex",
|
|
7857
|
+
flexDirection: "column",
|
|
7858
|
+
alignItems: "flex-start",
|
|
7859
|
+
gap: "24",
|
|
7860
|
+
w: "max-content",
|
|
7861
|
+
minW: "full"
|
|
7862
|
+
},
|
|
7863
|
+
page: {
|
|
7864
|
+
position: "relative",
|
|
7865
|
+
flexShrink: 0,
|
|
7866
|
+
// Auto margins center the page without clipping it when it overflows.
|
|
7867
|
+
mx: "auto",
|
|
7868
|
+
w: "calc(var(--print-page-w) * var(--print-scale))",
|
|
7869
|
+
h: "calc(var(--print-page-h) * var(--print-scale))",
|
|
7870
|
+
boxShadow: "raised",
|
|
7871
|
+
"&[data-measuring=true]": {
|
|
7872
|
+
visibility: "hidden"
|
|
7873
|
+
}
|
|
7874
|
+
},
|
|
7875
|
+
sheet: {
|
|
7876
|
+
position: "absolute",
|
|
7877
|
+
top: "0",
|
|
7878
|
+
left: "0",
|
|
7879
|
+
w: "var(--print-page-w)",
|
|
7880
|
+
h: "var(--print-page-h)",
|
|
7881
|
+
overflow: "hidden",
|
|
7882
|
+
// Paper is white in both themes. The token system has no light scope to
|
|
7883
|
+
// reset semantic colors inside dark mode, so these are primitives.
|
|
7884
|
+
bg: "neutral.0",
|
|
7885
|
+
color: "neutral.110",
|
|
7886
|
+
transform: "scale(var(--print-scale))",
|
|
7887
|
+
transformOrigin: "top left"
|
|
7888
|
+
},
|
|
7889
|
+
overlay: {
|
|
7890
|
+
position: "absolute",
|
|
7891
|
+
inset: "0",
|
|
7892
|
+
pointerEvents: "none"
|
|
7893
|
+
},
|
|
7894
|
+
// Stripes fill the margins. The padding is the margin, and the mask cuts
|
|
7895
|
+
// out the content box. Drawn outside the scaled sheet, so stripe width and
|
|
7896
|
+
// spacing stay the same at any zoom.
|
|
7897
|
+
marginArea: {
|
|
7898
|
+
position: "absolute",
|
|
7899
|
+
inset: "0",
|
|
7900
|
+
pt: "calc(var(--print-margin-top) * var(--print-scale))",
|
|
7901
|
+
pr: "calc(var(--print-margin-right) * var(--print-scale))",
|
|
7902
|
+
pb: "calc(var(--print-margin-bottom) * var(--print-scale))",
|
|
7903
|
+
pl: "calc(var(--print-margin-left) * var(--print-scale))",
|
|
7904
|
+
bgImage: "repeating-linear-gradient(-45deg, token(colors.border.info) 0 token(sizes.1), transparent token(sizes.1) token(sizes.8))",
|
|
7905
|
+
opacity: "0.3",
|
|
7906
|
+
// validate-ignore: no-hardcoded-design-values-in-recipes — mask alpha only, never painted
|
|
7907
|
+
mask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
|
|
7908
|
+
maskComposite: "exclude",
|
|
7909
|
+
// biome-ignore lint/style/useNamingConvention: vendor-prefixed CSS property
|
|
7910
|
+
WebkitMaskComposite: "xor",
|
|
7911
|
+
pointerEvents: "none"
|
|
7912
|
+
},
|
|
7913
|
+
// Drawn outside the scaled sheet so the guide stays one pixel wide.
|
|
7914
|
+
margins: {
|
|
7915
|
+
position: "absolute",
|
|
7916
|
+
top: "calc(var(--print-margin-top) * var(--print-scale))",
|
|
7917
|
+
right: "calc(var(--print-margin-right) * var(--print-scale))",
|
|
7918
|
+
bottom: "calc(var(--print-margin-bottom) * var(--print-scale))",
|
|
7919
|
+
left: "calc(var(--print-margin-left) * var(--print-scale))",
|
|
7920
|
+
borderWidth: "1",
|
|
7921
|
+
borderStyle: "dashed",
|
|
7922
|
+
borderColor: "border.info",
|
|
7923
|
+
pointerEvents: "none"
|
|
7924
|
+
}
|
|
7925
|
+
}
|
|
7926
|
+
});
|
|
7832
7927
|
const radioRecipe = defineSlotRecipe({
|
|
7833
7928
|
className: "radio",
|
|
7834
7929
|
jsx: ["Radio"],
|
|
@@ -8853,6 +8948,7 @@ const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8853
8948
|
listItemRecipe,
|
|
8854
8949
|
menuRecipe,
|
|
8855
8950
|
modalRecipe,
|
|
8951
|
+
printPreviewRecipe,
|
|
8856
8952
|
radioRecipe,
|
|
8857
8953
|
segmentedFieldsRecipe,
|
|
8858
8954
|
segmentedInputsRecipe,
|
|
@@ -9865,4 +9961,4 @@ export {
|
|
|
9865
9961
|
containerSizes as c,
|
|
9866
9962
|
okshaunPreset as o
|
|
9867
9963
|
};
|
|
9868
|
-
//# sourceMappingURL=preset-
|
|
9964
|
+
//# sourceMappingURL=preset-CsYXL2Bm.js.map
|