@okshaun/components 4.1.5 → 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 +308 -35
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +20 -4
- package/dist/{preset-jXQwQ5KL.js → preset-CsYXL2Bm.js} +95 -1
- 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 +127 -8
- package/dist/types/index.d.ts +266 -0
- package/package.json +1 -1
- package/src/recipes/printPreview.ts +101 -0
- package/src/recipes/recipes-slot.ts +1 -0
- package/dist/preset-jXQwQ5KL.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",
|
|
@@ -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": [
|
|
@@ -7831,6 +7831,99 @@ const modalRecipe = defineSlotRecipe({
|
|
|
7831
7831
|
position: "centered"
|
|
7832
7832
|
}
|
|
7833
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
|
+
});
|
|
7834
7927
|
const radioRecipe = defineSlotRecipe({
|
|
7835
7928
|
className: "radio",
|
|
7836
7929
|
jsx: ["Radio"],
|
|
@@ -8855,6 +8948,7 @@ const slotRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
8855
8948
|
listItemRecipe,
|
|
8856
8949
|
menuRecipe,
|
|
8857
8950
|
modalRecipe,
|
|
8951
|
+
printPreviewRecipe,
|
|
8858
8952
|
radioRecipe,
|
|
8859
8953
|
segmentedFieldsRecipe,
|
|
8860
8954
|
segmentedInputsRecipe,
|
|
@@ -9867,4 +9961,4 @@ export {
|
|
|
9867
9961
|
containerSizes as c,
|
|
9868
9962
|
okshaunPreset as o
|
|
9869
9963
|
};
|
|
9870
|
-
//# sourceMappingURL=preset-
|
|
9964
|
+
//# sourceMappingURL=preset-CsYXL2Bm.js.map
|