cetec-design-system 4.10.0-0 → 4.11.0-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 +326 -55
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +15 -4
- package/dist/preset.js +92 -0
- package/dist/preset.js.map +1 -1
- package/dist/specs/recipes.json +11 -0
- package/dist/styles.css +115 -4
- package/dist/types/index.d.ts +256 -0
- package/package.json +1 -1
- package/src/recipes/printPreview.ts +99 -0
- package/src/recipes/recipes-slot.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -974,7 +974,7 @@ const spinnerVariantKeys = [
|
|
|
974
974
|
"inverse",
|
|
975
975
|
"centered"
|
|
976
976
|
];
|
|
977
|
-
const getVariantProps$
|
|
977
|
+
const getVariantProps$B = (variants) => ({ ...spinnerDefaultVariants, ...compact(variants) });
|
|
978
978
|
const spinner = /* @__PURE__ */ Object.assign(spinnerFn, {
|
|
979
979
|
__recipe__: false,
|
|
980
980
|
__name__: "spinner",
|
|
@@ -999,7 +999,7 @@ const spinner = /* @__PURE__ */ Object.assign(spinnerFn, {
|
|
|
999
999
|
splitVariantProps(props) {
|
|
1000
1000
|
return splitProps$1(props, spinnerVariantKeys);
|
|
1001
1001
|
},
|
|
1002
|
-
getVariantProps: getVariantProps$
|
|
1002
|
+
getVariantProps: getVariantProps$B
|
|
1003
1003
|
});
|
|
1004
1004
|
const tagFn = /* @__PURE__ */ createRecipe("tag", {
|
|
1005
1005
|
"variant": "default",
|
|
@@ -1667,7 +1667,7 @@ const toggleFn = memo((props = {}) => {
|
|
|
1667
1667
|
return Object.fromEntries(toggleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
1668
1668
|
});
|
|
1669
1669
|
const toggleVariantKeys = [];
|
|
1670
|
-
const getVariantProps$
|
|
1670
|
+
const getVariantProps$A = (variants) => ({ ...toggleDefaultVariants, ...compact(variants) });
|
|
1671
1671
|
const toggle = /* @__PURE__ */ Object.assign(toggleFn, {
|
|
1672
1672
|
__recipe__: false,
|
|
1673
1673
|
__name__: "toggle",
|
|
@@ -1678,7 +1678,7 @@ const toggle = /* @__PURE__ */ Object.assign(toggleFn, {
|
|
|
1678
1678
|
splitVariantProps(props) {
|
|
1679
1679
|
return splitProps$1(props, toggleVariantKeys);
|
|
1680
1680
|
},
|
|
1681
|
-
getVariantProps: getVariantProps$
|
|
1681
|
+
getVariantProps: getVariantProps$A
|
|
1682
1682
|
});
|
|
1683
1683
|
const alertDefaultVariants = {
|
|
1684
1684
|
"tone": "info"
|
|
@@ -1721,7 +1721,7 @@ const alertFn = memo((props = {}) => {
|
|
|
1721
1721
|
const alertVariantKeys = [
|
|
1722
1722
|
"tone"
|
|
1723
1723
|
];
|
|
1724
|
-
const getVariantProps$
|
|
1724
|
+
const getVariantProps$z = (variants) => ({ ...alertDefaultVariants, ...compact(variants) });
|
|
1725
1725
|
const alert = /* @__PURE__ */ Object.assign(alertFn, {
|
|
1726
1726
|
__recipe__: false,
|
|
1727
1727
|
__name__: "alert",
|
|
@@ -1740,7 +1740,7 @@ const alert = /* @__PURE__ */ Object.assign(alertFn, {
|
|
|
1740
1740
|
splitVariantProps(props) {
|
|
1741
1741
|
return splitProps$1(props, alertVariantKeys);
|
|
1742
1742
|
},
|
|
1743
|
-
getVariantProps: getVariantProps$
|
|
1743
|
+
getVariantProps: getVariantProps$z
|
|
1744
1744
|
});
|
|
1745
1745
|
const autocompleteDefaultVariants = {
|
|
1746
1746
|
"size": "md",
|
|
@@ -1797,7 +1797,7 @@ const autocompleteVariantKeys = [
|
|
|
1797
1797
|
"layer",
|
|
1798
1798
|
"size"
|
|
1799
1799
|
];
|
|
1800
|
-
const getVariantProps$
|
|
1800
|
+
const getVariantProps$y = (variants) => ({ ...autocompleteDefaultVariants, ...compact(variants) });
|
|
1801
1801
|
const autocomplete = /* @__PURE__ */ Object.assign(autocompleteFn, {
|
|
1802
1802
|
__recipe__: false,
|
|
1803
1803
|
__name__: "autocomplete",
|
|
@@ -1819,7 +1819,7 @@ const autocomplete = /* @__PURE__ */ Object.assign(autocompleteFn, {
|
|
|
1819
1819
|
splitVariantProps(props) {
|
|
1820
1820
|
return splitProps$1(props, autocompleteVariantKeys);
|
|
1821
1821
|
},
|
|
1822
|
-
getVariantProps: getVariantProps$
|
|
1822
|
+
getVariantProps: getVariantProps$y
|
|
1823
1823
|
});
|
|
1824
1824
|
const avatarDefaultVariants = {
|
|
1825
1825
|
"size": "md",
|
|
@@ -1856,7 +1856,7 @@ const avatarVariantKeys = [
|
|
|
1856
1856
|
"size",
|
|
1857
1857
|
"shape"
|
|
1858
1858
|
];
|
|
1859
|
-
const getVariantProps$
|
|
1859
|
+
const getVariantProps$x = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) });
|
|
1860
1860
|
const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
|
|
1861
1861
|
__recipe__: false,
|
|
1862
1862
|
__name__: "avatar",
|
|
@@ -1881,7 +1881,7 @@ const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
|
|
|
1881
1881
|
splitVariantProps(props) {
|
|
1882
1882
|
return splitProps$1(props, avatarVariantKeys);
|
|
1883
1883
|
},
|
|
1884
|
-
getVariantProps: getVariantProps$
|
|
1884
|
+
getVariantProps: getVariantProps$x
|
|
1885
1885
|
});
|
|
1886
1886
|
const badgeDefaultVariants = {
|
|
1887
1887
|
"size": "md",
|
|
@@ -1908,7 +1908,7 @@ const badgeVariantKeys = [
|
|
|
1908
1908
|
"dot",
|
|
1909
1909
|
"variant"
|
|
1910
1910
|
];
|
|
1911
|
-
const getVariantProps$
|
|
1911
|
+
const getVariantProps$w = (variants) => ({ ...badgeDefaultVariants, ...compact(variants) });
|
|
1912
1912
|
const badge = /* @__PURE__ */ Object.assign(badgeFn, {
|
|
1913
1913
|
__recipe__: false,
|
|
1914
1914
|
__name__: "badge",
|
|
@@ -1944,7 +1944,7 @@ const badge = /* @__PURE__ */ Object.assign(badgeFn, {
|
|
|
1944
1944
|
splitVariantProps(props) {
|
|
1945
1945
|
return splitProps$1(props, badgeVariantKeys);
|
|
1946
1946
|
},
|
|
1947
|
-
getVariantProps: getVariantProps$
|
|
1947
|
+
getVariantProps: getVariantProps$w
|
|
1948
1948
|
});
|
|
1949
1949
|
const breadcrumbsDefaultVariants = {};
|
|
1950
1950
|
const breadcrumbsCompoundVariants = [];
|
|
@@ -1971,7 +1971,7 @@ const breadcrumbsFn = memo((props = {}) => {
|
|
|
1971
1971
|
return Object.fromEntries(breadcrumbsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
1972
1972
|
});
|
|
1973
1973
|
const breadcrumbsVariantKeys = [];
|
|
1974
|
-
const getVariantProps$
|
|
1974
|
+
const getVariantProps$v = (variants) => ({ ...breadcrumbsDefaultVariants, ...compact(variants) });
|
|
1975
1975
|
const breadcrumbs = /* @__PURE__ */ Object.assign(breadcrumbsFn, {
|
|
1976
1976
|
__recipe__: false,
|
|
1977
1977
|
__name__: "breadcrumbs",
|
|
@@ -1982,7 +1982,7 @@ const breadcrumbs = /* @__PURE__ */ Object.assign(breadcrumbsFn, {
|
|
|
1982
1982
|
splitVariantProps(props) {
|
|
1983
1983
|
return splitProps$1(props, breadcrumbsVariantKeys);
|
|
1984
1984
|
},
|
|
1985
|
-
getVariantProps: getVariantProps$
|
|
1985
|
+
getVariantProps: getVariantProps$v
|
|
1986
1986
|
});
|
|
1987
1987
|
const buttonDefaultVariants = {
|
|
1988
1988
|
"variant": "standard",
|
|
@@ -2013,7 +2013,7 @@ const buttonVariantKeys = [
|
|
|
2013
2013
|
"before",
|
|
2014
2014
|
"after"
|
|
2015
2015
|
];
|
|
2016
|
-
const getVariantProps$
|
|
2016
|
+
const getVariantProps$u = (variants) => ({ ...buttonDefaultVariants, ...compact(variants) });
|
|
2017
2017
|
const button = /* @__PURE__ */ Object.assign(buttonFn, {
|
|
2018
2018
|
__recipe__: false,
|
|
2019
2019
|
__name__: "button",
|
|
@@ -2047,7 +2047,7 @@ const button = /* @__PURE__ */ Object.assign(buttonFn, {
|
|
|
2047
2047
|
splitVariantProps(props) {
|
|
2048
2048
|
return splitProps$1(props, buttonVariantKeys);
|
|
2049
2049
|
},
|
|
2050
|
-
getVariantProps: getVariantProps$
|
|
2050
|
+
getVariantProps: getVariantProps$u
|
|
2051
2051
|
});
|
|
2052
2052
|
const calendarDefaultVariants = {
|
|
2053
2053
|
"type": "days"
|
|
@@ -2086,7 +2086,7 @@ const calendarFn = memo((props = {}) => {
|
|
|
2086
2086
|
const calendarVariantKeys = [
|
|
2087
2087
|
"type"
|
|
2088
2088
|
];
|
|
2089
|
-
const getVariantProps$
|
|
2089
|
+
const getVariantProps$t = (variants) => ({ ...calendarDefaultVariants, ...compact(variants) });
|
|
2090
2090
|
const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
|
|
2091
2091
|
__recipe__: false,
|
|
2092
2092
|
__name__: "calendar",
|
|
@@ -2103,7 +2103,7 @@ const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
|
|
|
2103
2103
|
splitVariantProps(props) {
|
|
2104
2104
|
return splitProps$1(props, calendarVariantKeys);
|
|
2105
2105
|
},
|
|
2106
|
-
getVariantProps: getVariantProps$
|
|
2106
|
+
getVariantProps: getVariantProps$t
|
|
2107
2107
|
});
|
|
2108
2108
|
const checkboxDefaultVariants = {};
|
|
2109
2109
|
const checkboxCompoundVariants = [];
|
|
@@ -2130,7 +2130,7 @@ const checkboxFn = memo((props = {}) => {
|
|
|
2130
2130
|
return Object.fromEntries(checkboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
2131
2131
|
});
|
|
2132
2132
|
const checkboxVariantKeys = [];
|
|
2133
|
-
const getVariantProps$
|
|
2133
|
+
const getVariantProps$s = (variants) => ({ ...checkboxDefaultVariants, ...compact(variants) });
|
|
2134
2134
|
const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
|
|
2135
2135
|
__recipe__: false,
|
|
2136
2136
|
__name__: "checkbox",
|
|
@@ -2141,7 +2141,7 @@ const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
|
|
|
2141
2141
|
splitVariantProps(props) {
|
|
2142
2142
|
return splitProps$1(props, checkboxVariantKeys);
|
|
2143
2143
|
},
|
|
2144
|
-
getVariantProps: getVariantProps$
|
|
2144
|
+
getVariantProps: getVariantProps$s
|
|
2145
2145
|
});
|
|
2146
2146
|
const chipDefaultVariants = {
|
|
2147
2147
|
"size": "md"
|
|
@@ -2179,7 +2179,7 @@ const chipVariantKeys = [
|
|
|
2179
2179
|
"after",
|
|
2180
2180
|
"dismissable"
|
|
2181
2181
|
];
|
|
2182
|
-
const getVariantProps$
|
|
2182
|
+
const getVariantProps$r = (variants) => ({ ...chipDefaultVariants, ...compact(variants) });
|
|
2183
2183
|
const chip = /* @__PURE__ */ Object.assign(chipFn, {
|
|
2184
2184
|
__recipe__: false,
|
|
2185
2185
|
__name__: "chip",
|
|
@@ -2206,7 +2206,7 @@ const chip = /* @__PURE__ */ Object.assign(chipFn, {
|
|
|
2206
2206
|
splitVariantProps(props) {
|
|
2207
2207
|
return splitProps$1(props, chipVariantKeys);
|
|
2208
2208
|
},
|
|
2209
|
-
getVariantProps: getVariantProps$
|
|
2209
|
+
getVariantProps: getVariantProps$r
|
|
2210
2210
|
});
|
|
2211
2211
|
const codeBlockDefaultVariants = {
|
|
2212
2212
|
"tone": "default",
|
|
@@ -2275,7 +2275,7 @@ const codeBlockVariantKeys = [
|
|
|
2275
2275
|
"collapsed",
|
|
2276
2276
|
"actionGutter"
|
|
2277
2277
|
];
|
|
2278
|
-
const getVariantProps$
|
|
2278
|
+
const getVariantProps$q = (variants) => ({ ...codeBlockDefaultVariants, ...compact(variants) });
|
|
2279
2279
|
const codeBlock = /* @__PURE__ */ Object.assign(codeBlockFn, {
|
|
2280
2280
|
__recipe__: false,
|
|
2281
2281
|
__name__: "codeBlock",
|
|
@@ -2311,7 +2311,7 @@ const codeBlock = /* @__PURE__ */ Object.assign(codeBlockFn, {
|
|
|
2311
2311
|
splitVariantProps(props) {
|
|
2312
2312
|
return splitProps$1(props, codeBlockVariantKeys);
|
|
2313
2313
|
},
|
|
2314
|
-
getVariantProps: getVariantProps$
|
|
2314
|
+
getVariantProps: getVariantProps$q
|
|
2315
2315
|
});
|
|
2316
2316
|
const dateMenusDefaultVariants = {};
|
|
2317
2317
|
const dateMenusCompoundVariants = [];
|
|
@@ -2334,7 +2334,7 @@ const dateMenusFn = memo((props = {}) => {
|
|
|
2334
2334
|
return Object.fromEntries(dateMenusSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
2335
2335
|
});
|
|
2336
2336
|
const dateMenusVariantKeys = [];
|
|
2337
|
-
const getVariantProps$
|
|
2337
|
+
const getVariantProps$p = (variants) => ({ ...dateMenusDefaultVariants, ...compact(variants) });
|
|
2338
2338
|
const dateMenus = /* @__PURE__ */ Object.assign(dateMenusFn, {
|
|
2339
2339
|
__recipe__: false,
|
|
2340
2340
|
__name__: "dateMenus",
|
|
@@ -2345,7 +2345,7 @@ const dateMenus = /* @__PURE__ */ Object.assign(dateMenusFn, {
|
|
|
2345
2345
|
splitVariantProps(props) {
|
|
2346
2346
|
return splitProps$1(props, dateMenusVariantKeys);
|
|
2347
2347
|
},
|
|
2348
|
-
getVariantProps: getVariantProps$
|
|
2348
|
+
getVariantProps: getVariantProps$p
|
|
2349
2349
|
});
|
|
2350
2350
|
const dateTimeMenusDefaultVariants = {};
|
|
2351
2351
|
const dateTimeMenusCompoundVariants = [];
|
|
@@ -2368,7 +2368,7 @@ const dateTimeMenusFn = memo((props = {}) => {
|
|
|
2368
2368
|
return Object.fromEntries(dateTimeMenusSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
2369
2369
|
});
|
|
2370
2370
|
const dateTimeMenusVariantKeys = [];
|
|
2371
|
-
const getVariantProps$
|
|
2371
|
+
const getVariantProps$o = (variants) => ({ ...dateTimeMenusDefaultVariants, ...compact(variants) });
|
|
2372
2372
|
const dateTimeMenus = /* @__PURE__ */ Object.assign(dateTimeMenusFn, {
|
|
2373
2373
|
__recipe__: false,
|
|
2374
2374
|
__name__: "dateTimeMenus",
|
|
@@ -2379,7 +2379,7 @@ const dateTimeMenus = /* @__PURE__ */ Object.assign(dateTimeMenusFn, {
|
|
|
2379
2379
|
splitVariantProps(props) {
|
|
2380
2380
|
return splitProps$1(props, dateTimeMenusVariantKeys);
|
|
2381
2381
|
},
|
|
2382
|
-
getVariantProps: getVariantProps$
|
|
2382
|
+
getVariantProps: getVariantProps$o
|
|
2383
2383
|
});
|
|
2384
2384
|
const drawerDefaultVariants = {
|
|
2385
2385
|
"side": "right",
|
|
@@ -2426,7 +2426,7 @@ const drawerVariantKeys = [
|
|
|
2426
2426
|
"size",
|
|
2427
2427
|
"scrollable"
|
|
2428
2428
|
];
|
|
2429
|
-
const getVariantProps$
|
|
2429
|
+
const getVariantProps$n = (variants) => ({ ...drawerDefaultVariants, ...compact(variants) });
|
|
2430
2430
|
const drawer = /* @__PURE__ */ Object.assign(drawerFn, {
|
|
2431
2431
|
__recipe__: false,
|
|
2432
2432
|
__name__: "drawer",
|
|
@@ -2453,7 +2453,7 @@ const drawer = /* @__PURE__ */ Object.assign(drawerFn, {
|
|
|
2453
2453
|
splitVariantProps(props) {
|
|
2454
2454
|
return splitProps$1(props, drawerVariantKeys);
|
|
2455
2455
|
},
|
|
2456
|
-
getVariantProps: getVariantProps$
|
|
2456
|
+
getVariantProps: getVariantProps$n
|
|
2457
2457
|
});
|
|
2458
2458
|
const filterFieldDefaultVariants = {};
|
|
2459
2459
|
const filterFieldCompoundVariants = [];
|
|
@@ -2500,7 +2500,7 @@ const filterFieldFn = memo((props = {}) => {
|
|
|
2500
2500
|
return Object.fromEntries(filterFieldSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
2501
2501
|
});
|
|
2502
2502
|
const filterFieldVariantKeys = [];
|
|
2503
|
-
const getVariantProps$
|
|
2503
|
+
const getVariantProps$m = (variants) => ({ ...filterFieldDefaultVariants, ...compact(variants) });
|
|
2504
2504
|
const filterField = /* @__PURE__ */ Object.assign(filterFieldFn, {
|
|
2505
2505
|
__recipe__: false,
|
|
2506
2506
|
__name__: "filterField",
|
|
@@ -2511,7 +2511,7 @@ const filterField = /* @__PURE__ */ Object.assign(filterFieldFn, {
|
|
|
2511
2511
|
splitVariantProps(props) {
|
|
2512
2512
|
return splitProps$1(props, filterFieldVariantKeys);
|
|
2513
2513
|
},
|
|
2514
|
-
getVariantProps: getVariantProps$
|
|
2514
|
+
getVariantProps: getVariantProps$m
|
|
2515
2515
|
});
|
|
2516
2516
|
const filterMenuDefaultVariants = {
|
|
2517
2517
|
"layer": "elevated"
|
|
@@ -2550,7 +2550,7 @@ const filterMenuFn = memo((props = {}) => {
|
|
|
2550
2550
|
const filterMenuVariantKeys = [
|
|
2551
2551
|
"layer"
|
|
2552
2552
|
];
|
|
2553
|
-
const getVariantProps$
|
|
2553
|
+
const getVariantProps$l = (variants) => ({ ...filterMenuDefaultVariants, ...compact(variants) });
|
|
2554
2554
|
const filterMenu = /* @__PURE__ */ Object.assign(filterMenuFn, {
|
|
2555
2555
|
__recipe__: false,
|
|
2556
2556
|
__name__: "filterMenu",
|
|
@@ -2566,7 +2566,7 @@ const filterMenu = /* @__PURE__ */ Object.assign(filterMenuFn, {
|
|
|
2566
2566
|
splitVariantProps(props) {
|
|
2567
2567
|
return splitProps$1(props, filterMenuVariantKeys);
|
|
2568
2568
|
},
|
|
2569
|
-
getVariantProps: getVariantProps$
|
|
2569
|
+
getVariantProps: getVariantProps$l
|
|
2570
2570
|
});
|
|
2571
2571
|
const filterTokenDefaultVariants = {};
|
|
2572
2572
|
const filterTokenCompoundVariants = [];
|
|
@@ -2613,7 +2613,7 @@ const filterTokenFn = memo((props = {}) => {
|
|
|
2613
2613
|
return Object.fromEntries(filterTokenSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
2614
2614
|
});
|
|
2615
2615
|
const filterTokenVariantKeys = [];
|
|
2616
|
-
const getVariantProps$
|
|
2616
|
+
const getVariantProps$k = (variants) => ({ ...filterTokenDefaultVariants, ...compact(variants) });
|
|
2617
2617
|
const filterToken = /* @__PURE__ */ Object.assign(filterTokenFn, {
|
|
2618
2618
|
__recipe__: false,
|
|
2619
2619
|
__name__: "filterToken",
|
|
@@ -2624,7 +2624,7 @@ const filterToken = /* @__PURE__ */ Object.assign(filterTokenFn, {
|
|
|
2624
2624
|
splitVariantProps(props) {
|
|
2625
2625
|
return splitProps$1(props, filterTokenVariantKeys);
|
|
2626
2626
|
},
|
|
2627
|
-
getVariantProps: getVariantProps$
|
|
2627
|
+
getVariantProps: getVariantProps$k
|
|
2628
2628
|
});
|
|
2629
2629
|
const formFieldDefaultVariants = {
|
|
2630
2630
|
"layout": "default",
|
|
@@ -2653,7 +2653,7 @@ const formFieldVariantKeys = [
|
|
|
2653
2653
|
"layout",
|
|
2654
2654
|
"size"
|
|
2655
2655
|
];
|
|
2656
|
-
const getVariantProps$
|
|
2656
|
+
const getVariantProps$j = (variants) => ({ ...formFieldDefaultVariants, ...compact(variants) });
|
|
2657
2657
|
const formField = /* @__PURE__ */ Object.assign(formFieldFn, {
|
|
2658
2658
|
__recipe__: false,
|
|
2659
2659
|
__name__: "formField",
|
|
@@ -2675,7 +2675,7 @@ const formField = /* @__PURE__ */ Object.assign(formFieldFn, {
|
|
|
2675
2675
|
splitVariantProps(props) {
|
|
2676
2676
|
return splitProps$1(props, formFieldVariantKeys);
|
|
2677
2677
|
},
|
|
2678
|
-
getVariantProps: getVariantProps$
|
|
2678
|
+
getVariantProps: getVariantProps$j
|
|
2679
2679
|
});
|
|
2680
2680
|
const iconButtonDefaultVariants = {
|
|
2681
2681
|
"variant": "standard",
|
|
@@ -2704,7 +2704,7 @@ const iconButtonVariantKeys = [
|
|
|
2704
2704
|
"variant",
|
|
2705
2705
|
"size"
|
|
2706
2706
|
];
|
|
2707
|
-
const getVariantProps$
|
|
2707
|
+
const getVariantProps$i = (variants) => ({ ...iconButtonDefaultVariants, ...compact(variants) });
|
|
2708
2708
|
const iconButton = /* @__PURE__ */ Object.assign(iconButtonFn, {
|
|
2709
2709
|
__recipe__: false,
|
|
2710
2710
|
__name__: "iconButton",
|
|
@@ -2732,7 +2732,7 @@ const iconButton = /* @__PURE__ */ Object.assign(iconButtonFn, {
|
|
|
2732
2732
|
splitVariantProps(props) {
|
|
2733
2733
|
return splitProps$1(props, iconButtonVariantKeys);
|
|
2734
2734
|
},
|
|
2735
|
-
getVariantProps: getVariantProps$
|
|
2735
|
+
getVariantProps: getVariantProps$i
|
|
2736
2736
|
});
|
|
2737
2737
|
const inlineNoteDefaultVariants = {
|
|
2738
2738
|
"tone": "info"
|
|
@@ -2759,7 +2759,7 @@ const inlineNoteFn = memo((props = {}) => {
|
|
|
2759
2759
|
const inlineNoteVariantKeys = [
|
|
2760
2760
|
"tone"
|
|
2761
2761
|
];
|
|
2762
|
-
const getVariantProps$
|
|
2762
|
+
const getVariantProps$h = (variants) => ({ ...inlineNoteDefaultVariants, ...compact(variants) });
|
|
2763
2763
|
const inlineNote = /* @__PURE__ */ Object.assign(inlineNoteFn, {
|
|
2764
2764
|
__recipe__: false,
|
|
2765
2765
|
__name__: "inlineNote",
|
|
@@ -2778,7 +2778,7 @@ const inlineNote = /* @__PURE__ */ Object.assign(inlineNoteFn, {
|
|
|
2778
2778
|
splitVariantProps(props) {
|
|
2779
2779
|
return splitProps$1(props, inlineNoteVariantKeys);
|
|
2780
2780
|
},
|
|
2781
|
-
getVariantProps: getVariantProps$
|
|
2781
|
+
getVariantProps: getVariantProps$h
|
|
2782
2782
|
});
|
|
2783
2783
|
const kbdDefaultVariants = {
|
|
2784
2784
|
"variant": "default"
|
|
@@ -2801,7 +2801,7 @@ const kbdFn = memo((props = {}) => {
|
|
|
2801
2801
|
const kbdVariantKeys = [
|
|
2802
2802
|
"variant"
|
|
2803
2803
|
];
|
|
2804
|
-
const getVariantProps$
|
|
2804
|
+
const getVariantProps$g = (variants) => ({ ...kbdDefaultVariants, ...compact(variants) });
|
|
2805
2805
|
const kbd = /* @__PURE__ */ Object.assign(kbdFn, {
|
|
2806
2806
|
__recipe__: false,
|
|
2807
2807
|
__name__: "kbd",
|
|
@@ -2817,7 +2817,7 @@ const kbd = /* @__PURE__ */ Object.assign(kbdFn, {
|
|
|
2817
2817
|
splitVariantProps(props) {
|
|
2818
2818
|
return splitProps$1(props, kbdVariantKeys);
|
|
2819
2819
|
},
|
|
2820
|
-
getVariantProps: getVariantProps$
|
|
2820
|
+
getVariantProps: getVariantProps$g
|
|
2821
2821
|
});
|
|
2822
2822
|
const listItemGroupDefaultVariants = {
|
|
2823
2823
|
"density": "compact"
|
|
@@ -2844,7 +2844,7 @@ const listItemGroupFn = memo((props = {}) => {
|
|
|
2844
2844
|
const listItemGroupVariantKeys = [
|
|
2845
2845
|
"density"
|
|
2846
2846
|
];
|
|
2847
|
-
const getVariantProps$
|
|
2847
|
+
const getVariantProps$f = (variants) => ({ ...listItemGroupDefaultVariants, ...compact(variants) });
|
|
2848
2848
|
const listItemGroup = /* @__PURE__ */ Object.assign(listItemGroupFn, {
|
|
2849
2849
|
__recipe__: false,
|
|
2850
2850
|
__name__: "listItemGroup",
|
|
@@ -2861,7 +2861,7 @@ const listItemGroup = /* @__PURE__ */ Object.assign(listItemGroupFn, {
|
|
|
2861
2861
|
splitVariantProps(props) {
|
|
2862
2862
|
return splitProps$1(props, listItemGroupVariantKeys);
|
|
2863
2863
|
},
|
|
2864
|
-
getVariantProps: getVariantProps$
|
|
2864
|
+
getVariantProps: getVariantProps$f
|
|
2865
2865
|
});
|
|
2866
2866
|
const listItemDefaultVariants = {
|
|
2867
2867
|
"variant": "default",
|
|
@@ -2921,7 +2921,7 @@ const listItemVariantKeys = [
|
|
|
2921
2921
|
"iconBefore",
|
|
2922
2922
|
"iconAfter"
|
|
2923
2923
|
];
|
|
2924
|
-
const getVariantProps$
|
|
2924
|
+
const getVariantProps$e = (variants) => ({ ...listItemDefaultVariants, ...compact(variants) });
|
|
2925
2925
|
const listItem = /* @__PURE__ */ Object.assign(listItemFn, {
|
|
2926
2926
|
__recipe__: false,
|
|
2927
2927
|
__name__: "listItem",
|
|
@@ -2956,7 +2956,7 @@ const listItem = /* @__PURE__ */ Object.assign(listItemFn, {
|
|
|
2956
2956
|
splitVariantProps(props) {
|
|
2957
2957
|
return splitProps$1(props, listItemVariantKeys);
|
|
2958
2958
|
},
|
|
2959
|
-
getVariantProps: getVariantProps$
|
|
2959
|
+
getVariantProps: getVariantProps$e
|
|
2960
2960
|
});
|
|
2961
2961
|
const menuDefaultVariants = {
|
|
2962
2962
|
"density": "compact",
|
|
@@ -3003,7 +3003,7 @@ const menuVariantKeys = [
|
|
|
3003
3003
|
"panel",
|
|
3004
3004
|
"scrollable"
|
|
3005
3005
|
];
|
|
3006
|
-
const getVariantProps$
|
|
3006
|
+
const getVariantProps$d = (variants) => ({ ...menuDefaultVariants, ...compact(variants) });
|
|
3007
3007
|
const menu = /* @__PURE__ */ Object.assign(menuFn, {
|
|
3008
3008
|
__recipe__: false,
|
|
3009
3009
|
__name__: "menu",
|
|
@@ -3030,7 +3030,7 @@ const menu = /* @__PURE__ */ Object.assign(menuFn, {
|
|
|
3030
3030
|
splitVariantProps(props) {
|
|
3031
3031
|
return splitProps$1(props, menuVariantKeys);
|
|
3032
3032
|
},
|
|
3033
|
-
getVariantProps: getVariantProps$
|
|
3033
|
+
getVariantProps: getVariantProps$d
|
|
3034
3034
|
});
|
|
3035
3035
|
const modalDefaultVariants = {
|
|
3036
3036
|
"size": "md",
|
|
@@ -3079,7 +3079,7 @@ const modalVariantKeys = [
|
|
|
3079
3079
|
"size",
|
|
3080
3080
|
"position"
|
|
3081
3081
|
];
|
|
3082
|
-
const getVariantProps$
|
|
3082
|
+
const getVariantProps$c = (variants) => ({ ...modalDefaultVariants, ...compact(variants) });
|
|
3083
3083
|
const modal = /* @__PURE__ */ Object.assign(modalFn, {
|
|
3084
3084
|
__recipe__: false,
|
|
3085
3085
|
__name__: "modal",
|
|
@@ -3103,7 +3103,7 @@ const modal = /* @__PURE__ */ Object.assign(modalFn, {
|
|
|
3103
3103
|
splitVariantProps(props) {
|
|
3104
3104
|
return splitProps$1(props, modalVariantKeys);
|
|
3105
3105
|
},
|
|
3106
|
-
getVariantProps: getVariantProps$
|
|
3106
|
+
getVariantProps: getVariantProps$c
|
|
3107
3107
|
});
|
|
3108
3108
|
const pageBannerDefaultVariants = {
|
|
3109
3109
|
"tone": "info"
|
|
@@ -3138,7 +3138,7 @@ const pageBannerFn = memo((props = {}) => {
|
|
|
3138
3138
|
const pageBannerVariantKeys = [
|
|
3139
3139
|
"tone"
|
|
3140
3140
|
];
|
|
3141
|
-
const getVariantProps$
|
|
3141
|
+
const getVariantProps$b = (variants) => ({ ...pageBannerDefaultVariants, ...compact(variants) });
|
|
3142
3142
|
const pageBanner = /* @__PURE__ */ Object.assign(pageBannerFn, {
|
|
3143
3143
|
__recipe__: false,
|
|
3144
3144
|
__name__: "pageBanner",
|
|
@@ -3157,7 +3157,7 @@ const pageBanner = /* @__PURE__ */ Object.assign(pageBannerFn, {
|
|
|
3157
3157
|
splitVariantProps(props) {
|
|
3158
3158
|
return splitProps$1(props, pageBannerVariantKeys);
|
|
3159
3159
|
},
|
|
3160
|
-
getVariantProps: getVariantProps$
|
|
3160
|
+
getVariantProps: getVariantProps$b
|
|
3161
3161
|
});
|
|
3162
3162
|
const popoverDefaultVariants = {
|
|
3163
3163
|
"size": "md",
|
|
@@ -3217,7 +3217,7 @@ const popoverVariantKeys = [
|
|
|
3217
3217
|
"size",
|
|
3218
3218
|
"tone"
|
|
3219
3219
|
];
|
|
3220
|
-
const getVariantProps$
|
|
3220
|
+
const getVariantProps$a = (variants) => ({ ...popoverDefaultVariants, ...compact(variants) });
|
|
3221
3221
|
const popover = /* @__PURE__ */ Object.assign(popoverFn, {
|
|
3222
3222
|
__recipe__: false,
|
|
3223
3223
|
__name__: "popover",
|
|
@@ -3249,6 +3249,56 @@ const popover = /* @__PURE__ */ Object.assign(popoverFn, {
|
|
|
3249
3249
|
splitVariantProps(props) {
|
|
3250
3250
|
return splitProps$1(props, popoverVariantKeys);
|
|
3251
3251
|
},
|
|
3252
|
+
getVariantProps: getVariantProps$a
|
|
3253
|
+
});
|
|
3254
|
+
const printPreviewDefaultVariants = {};
|
|
3255
|
+
const printPreviewCompoundVariants = [];
|
|
3256
|
+
const printPreviewSlotNames = [
|
|
3257
|
+
[
|
|
3258
|
+
"root",
|
|
3259
|
+
"printPreview__root"
|
|
3260
|
+
],
|
|
3261
|
+
[
|
|
3262
|
+
"stack",
|
|
3263
|
+
"printPreview__stack"
|
|
3264
|
+
],
|
|
3265
|
+
[
|
|
3266
|
+
"page",
|
|
3267
|
+
"printPreview__page"
|
|
3268
|
+
],
|
|
3269
|
+
[
|
|
3270
|
+
"sheet",
|
|
3271
|
+
"printPreview__sheet"
|
|
3272
|
+
],
|
|
3273
|
+
[
|
|
3274
|
+
"overlay",
|
|
3275
|
+
"printPreview__overlay"
|
|
3276
|
+
],
|
|
3277
|
+
[
|
|
3278
|
+
"marginArea",
|
|
3279
|
+
"printPreview__marginArea"
|
|
3280
|
+
],
|
|
3281
|
+
[
|
|
3282
|
+
"margins",
|
|
3283
|
+
"printPreview__margins"
|
|
3284
|
+
]
|
|
3285
|
+
];
|
|
3286
|
+
const printPreviewSlotFns = /* @__PURE__ */ printPreviewSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, printPreviewDefaultVariants, getSlotCompoundVariant(printPreviewCompoundVariants, slotName))]);
|
|
3287
|
+
const printPreviewFn = memo((props = {}) => {
|
|
3288
|
+
return Object.fromEntries(printPreviewSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
|
|
3289
|
+
});
|
|
3290
|
+
const printPreviewVariantKeys = [];
|
|
3291
|
+
const getVariantProps$9 = (variants) => ({ ...printPreviewDefaultVariants, ...compact(variants) });
|
|
3292
|
+
const printPreview = /* @__PURE__ */ Object.assign(printPreviewFn, {
|
|
3293
|
+
__recipe__: false,
|
|
3294
|
+
__name__: "printPreview",
|
|
3295
|
+
raw: (props) => props,
|
|
3296
|
+
classNameMap: {},
|
|
3297
|
+
variantKeys: printPreviewVariantKeys,
|
|
3298
|
+
variantMap: {},
|
|
3299
|
+
splitVariantProps(props) {
|
|
3300
|
+
return splitProps$1(props, printPreviewVariantKeys);
|
|
3301
|
+
},
|
|
3252
3302
|
getVariantProps: getVariantProps$9
|
|
3253
3303
|
});
|
|
3254
3304
|
const radioDefaultVariants = {};
|
|
@@ -24038,6 +24088,216 @@ const PageBanner = (props) => {
|
|
|
24038
24088
|
}
|
|
24039
24089
|
);
|
|
24040
24090
|
};
|
|
24091
|
+
const CSS_PIXELS_PER_UNIT = {
|
|
24092
|
+
in: 96,
|
|
24093
|
+
mm: 96 / 25.4,
|
|
24094
|
+
pt: 96 / 72
|
|
24095
|
+
};
|
|
24096
|
+
const toCssPixels = (value, unit) => value * CSS_PIXELS_PER_UNIT[unit];
|
|
24097
|
+
const resolvePageBox = (size2, orientation, margins = 0) => {
|
|
24098
|
+
let width = toCssPixels(size2.width, size2.unit);
|
|
24099
|
+
let height = toCssPixels(size2.height, size2.unit);
|
|
24100
|
+
const isLandscape = width > height;
|
|
24101
|
+
if (orientation === "landscape" && !isLandscape || orientation === "portrait" && isLandscape) {
|
|
24102
|
+
[width, height] = [height, width];
|
|
24103
|
+
}
|
|
24104
|
+
const sides = typeof margins === "number" ? { top: margins, right: margins, bottom: margins, left: margins } : margins;
|
|
24105
|
+
return {
|
|
24106
|
+
width,
|
|
24107
|
+
height,
|
|
24108
|
+
margins: {
|
|
24109
|
+
top: toCssPixels(sides.top, size2.unit),
|
|
24110
|
+
right: toCssPixels(sides.right, size2.unit),
|
|
24111
|
+
bottom: toCssPixels(sides.bottom, size2.unit),
|
|
24112
|
+
left: toCssPixels(sides.left, size2.unit)
|
|
24113
|
+
}
|
|
24114
|
+
};
|
|
24115
|
+
};
|
|
24116
|
+
const computeScale = (fit, available, largestPage) => {
|
|
24117
|
+
if (typeof fit === "number") return fit;
|
|
24118
|
+
if (!available || !largestPage) return null;
|
|
24119
|
+
if (available.width <= 0 || largestPage.width <= 0) return null;
|
|
24120
|
+
const widthScale = available.width / largestPage.width;
|
|
24121
|
+
if (fit === "width") return widthScale;
|
|
24122
|
+
const heightScale = available.height / largestPage.height;
|
|
24123
|
+
return Math.min(widthScale, heightScale);
|
|
24124
|
+
};
|
|
24125
|
+
const PrintPreviewContext = createContext(null);
|
|
24126
|
+
const PrintPageContext = createContext(
|
|
24127
|
+
null
|
|
24128
|
+
);
|
|
24129
|
+
const PrintPreview = (props) => {
|
|
24130
|
+
const { fit = "page", children, ref, ...rest } = props;
|
|
24131
|
+
const [className, otherProps] = splitProps(rest);
|
|
24132
|
+
const classes = useMemo(() => printPreview(), []);
|
|
24133
|
+
const rootRef = useRef(null);
|
|
24134
|
+
const [available, setAvailable] = useState(null);
|
|
24135
|
+
const [pages, setPages] = useState(() => /* @__PURE__ */ new Map());
|
|
24136
|
+
const setRootRef = useCallback(
|
|
24137
|
+
(node) => {
|
|
24138
|
+
rootRef.current = node;
|
|
24139
|
+
if (typeof ref === "function") ref(node);
|
|
24140
|
+
else if (ref) ref.current = node;
|
|
24141
|
+
},
|
|
24142
|
+
[ref]
|
|
24143
|
+
);
|
|
24144
|
+
useLayoutEffect(() => {
|
|
24145
|
+
const node = rootRef.current;
|
|
24146
|
+
if (!node) return;
|
|
24147
|
+
const measure = () => {
|
|
24148
|
+
const style = getComputedStyle(node);
|
|
24149
|
+
const width = node.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
|
24150
|
+
const height = node.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
|
24151
|
+
setAvailable(
|
|
24152
|
+
(current) => (current == null ? void 0 : current.width) === width && current.height === height ? current : { width, height }
|
|
24153
|
+
);
|
|
24154
|
+
};
|
|
24155
|
+
measure();
|
|
24156
|
+
const observer = new ResizeObserver(measure);
|
|
24157
|
+
observer.observe(node);
|
|
24158
|
+
return () => observer.disconnect();
|
|
24159
|
+
}, []);
|
|
24160
|
+
const registerPage = useCallback((id, size2) => {
|
|
24161
|
+
setPages((current) => {
|
|
24162
|
+
const existing = current.get(id);
|
|
24163
|
+
if ((existing == null ? void 0 : existing.width) === size2.width && existing.height === size2.height) {
|
|
24164
|
+
return current;
|
|
24165
|
+
}
|
|
24166
|
+
const next = new Map(current);
|
|
24167
|
+
next.set(id, size2);
|
|
24168
|
+
return next;
|
|
24169
|
+
});
|
|
24170
|
+
}, []);
|
|
24171
|
+
const unregisterPage = useCallback((id) => {
|
|
24172
|
+
setPages((current) => {
|
|
24173
|
+
if (!current.has(id)) return current;
|
|
24174
|
+
const next = new Map(current);
|
|
24175
|
+
next.delete(id);
|
|
24176
|
+
return next;
|
|
24177
|
+
});
|
|
24178
|
+
}, []);
|
|
24179
|
+
const largestPage = useMemo(() => {
|
|
24180
|
+
if (pages.size === 0) return null;
|
|
24181
|
+
let width = 0;
|
|
24182
|
+
let height = 0;
|
|
24183
|
+
pages.forEach((size2) => {
|
|
24184
|
+
width = Math.max(width, size2.width);
|
|
24185
|
+
height = Math.max(height, size2.height);
|
|
24186
|
+
});
|
|
24187
|
+
return { width, height };
|
|
24188
|
+
}, [pages]);
|
|
24189
|
+
const scale = computeScale(fit, available, largestPage);
|
|
24190
|
+
const contextValue = useMemo(
|
|
24191
|
+
() => ({ scale, registerPage, unregisterPage, classes }),
|
|
24192
|
+
[scale, registerPage, unregisterPage, classes]
|
|
24193
|
+
);
|
|
24194
|
+
return /* @__PURE__ */ jsx(PrintPreviewContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
24195
|
+
Box,
|
|
24196
|
+
{
|
|
24197
|
+
...dsComponent("PrintPreview"),
|
|
24198
|
+
ref: setRootRef,
|
|
24199
|
+
tabIndex: 0,
|
|
24200
|
+
className: cx(classes.root, className),
|
|
24201
|
+
...otherProps,
|
|
24202
|
+
children: /* @__PURE__ */ jsx(Box, { className: classes.stack, children })
|
|
24203
|
+
}
|
|
24204
|
+
) });
|
|
24205
|
+
};
|
|
24206
|
+
const PrintPage = (props) => {
|
|
24207
|
+
const {
|
|
24208
|
+
size: size2,
|
|
24209
|
+
orientation,
|
|
24210
|
+
margins,
|
|
24211
|
+
showMargins = false,
|
|
24212
|
+
overlay,
|
|
24213
|
+
children,
|
|
24214
|
+
style,
|
|
24215
|
+
...rest
|
|
24216
|
+
} = props;
|
|
24217
|
+
const [className, otherProps] = splitProps(rest);
|
|
24218
|
+
const preview = useContext(PrintPreviewContext);
|
|
24219
|
+
const previewClasses = preview == null ? void 0 : preview.classes;
|
|
24220
|
+
const classes = useMemo(
|
|
24221
|
+
() => previewClasses ?? printPreview(),
|
|
24222
|
+
[previewClasses]
|
|
24223
|
+
);
|
|
24224
|
+
const id = useId$1();
|
|
24225
|
+
const { width, height, unit } = size2;
|
|
24226
|
+
const sides = typeof margins === "object" ? margins : {
|
|
24227
|
+
top: margins ?? 0,
|
|
24228
|
+
right: margins ?? 0,
|
|
24229
|
+
bottom: margins ?? 0,
|
|
24230
|
+
left: margins ?? 0
|
|
24231
|
+
};
|
|
24232
|
+
const { top, right, bottom, left } = sides;
|
|
24233
|
+
const pageBox = useMemo(
|
|
24234
|
+
() => resolvePageBox({ width, height, unit }, orientation, {
|
|
24235
|
+
top,
|
|
24236
|
+
right,
|
|
24237
|
+
bottom,
|
|
24238
|
+
left
|
|
24239
|
+
}),
|
|
24240
|
+
[width, height, unit, orientation, top, right, bottom, left]
|
|
24241
|
+
);
|
|
24242
|
+
const registerPage = preview == null ? void 0 : preview.registerPage;
|
|
24243
|
+
const unregisterPage = preview == null ? void 0 : preview.unregisterPage;
|
|
24244
|
+
useLayoutEffect(() => {
|
|
24245
|
+
if (!registerPage || !unregisterPage) return;
|
|
24246
|
+
registerPage(id, { width: pageBox.width, height: pageBox.height });
|
|
24247
|
+
return () => unregisterPage(id);
|
|
24248
|
+
}, [id, pageBox.width, pageBox.height, registerPage, unregisterPage]);
|
|
24249
|
+
const measuring = preview !== null && preview.scale === null;
|
|
24250
|
+
const scale = preview ? preview.scale ?? 1 : 1;
|
|
24251
|
+
const pageContext = useMemo(
|
|
24252
|
+
() => ({ ...pageBox, scale }),
|
|
24253
|
+
[pageBox, scale]
|
|
24254
|
+
);
|
|
24255
|
+
const pageStyle = {
|
|
24256
|
+
"--print-scale": scale,
|
|
24257
|
+
"--print-page-w": `${String(pageBox.width)}px`,
|
|
24258
|
+
"--print-page-h": `${String(pageBox.height)}px`,
|
|
24259
|
+
"--print-margin-top": `${String(pageBox.margins.top)}px`,
|
|
24260
|
+
"--print-margin-right": `${String(pageBox.margins.right)}px`,
|
|
24261
|
+
"--print-margin-bottom": `${String(pageBox.margins.bottom)}px`,
|
|
24262
|
+
"--print-margin-left": `${String(pageBox.margins.left)}px`,
|
|
24263
|
+
...style
|
|
24264
|
+
};
|
|
24265
|
+
return /* @__PURE__ */ jsx(PrintPageContext.Provider, { value: pageContext, children: /* @__PURE__ */ jsxs(
|
|
24266
|
+
Box,
|
|
24267
|
+
{
|
|
24268
|
+
...dsComponent("PrintPage"),
|
|
24269
|
+
className: cx(classes.page, className),
|
|
24270
|
+
"data-measuring": measuring || void 0,
|
|
24271
|
+
style: pageStyle,
|
|
24272
|
+
...otherProps,
|
|
24273
|
+
children: [
|
|
24274
|
+
/* @__PURE__ */ jsxs(Box, { className: classes.sheet, children: [
|
|
24275
|
+
children,
|
|
24276
|
+
overlay !== void 0 && /* @__PURE__ */ jsx(Box, { className: classes.overlay, children: overlay })
|
|
24277
|
+
] }),
|
|
24278
|
+
showMargins && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24279
|
+
/* @__PURE__ */ jsx(Box, { className: classes.marginArea, "aria-hidden": true }),
|
|
24280
|
+
/* @__PURE__ */ jsx(Box, { className: classes.margins, "aria-hidden": true })
|
|
24281
|
+
] })
|
|
24282
|
+
]
|
|
24283
|
+
}
|
|
24284
|
+
) });
|
|
24285
|
+
};
|
|
24286
|
+
const pageSizes = {
|
|
24287
|
+
letter: { width: 8.5, height: 11, unit: "in" },
|
|
24288
|
+
legal: { width: 8.5, height: 14, unit: "in" },
|
|
24289
|
+
tabloid: { width: 11, height: 17, unit: "in" },
|
|
24290
|
+
halfLetter: { width: 5.5, height: 8.5, unit: "in" },
|
|
24291
|
+
a3: { width: 297, height: 420, unit: "mm" },
|
|
24292
|
+
a4: { width: 210, height: 297, unit: "mm" },
|
|
24293
|
+
a5: { width: 148, height: 210, unit: "mm" },
|
|
24294
|
+
a6: { width: 105, height: 148, unit: "mm" },
|
|
24295
|
+
label4x6: { width: 4, height: 6, unit: "in" },
|
|
24296
|
+
label4x3: { width: 4, height: 3, unit: "in" },
|
|
24297
|
+
label4x2: { width: 4, height: 2, unit: "in" },
|
|
24298
|
+
label3x2: { width: 3, height: 2, unit: "in" },
|
|
24299
|
+
label2x1: { width: 2, height: 1, unit: "in" }
|
|
24300
|
+
};
|
|
24041
24301
|
const Radio = (props) => {
|
|
24042
24302
|
const fieldContext = useFieldContext();
|
|
24043
24303
|
const {
|
|
@@ -27299,6 +27559,13 @@ const PopoverArrow = (props) => {
|
|
|
27299
27559
|
}
|
|
27300
27560
|
);
|
|
27301
27561
|
};
|
|
27562
|
+
const usePrintPage = () => {
|
|
27563
|
+
const context2 = useContext(PrintPageContext);
|
|
27564
|
+
if (!context2) {
|
|
27565
|
+
throw new Error("usePrintPage must be used within a <PrintPage>");
|
|
27566
|
+
}
|
|
27567
|
+
return context2;
|
|
27568
|
+
};
|
|
27302
27569
|
const useToast = () => useToastApi();
|
|
27303
27570
|
export {
|
|
27304
27571
|
Alert,
|
|
@@ -27375,6 +27642,8 @@ export {
|
|
|
27375
27642
|
PopoverMedia,
|
|
27376
27643
|
PopoverTitle,
|
|
27377
27644
|
PopoverTrigger,
|
|
27645
|
+
PrintPage,
|
|
27646
|
+
PrintPreview,
|
|
27378
27647
|
Radio,
|
|
27379
27648
|
RadioGroup,
|
|
27380
27649
|
RadioInput,
|
|
@@ -27413,6 +27682,7 @@ export {
|
|
|
27413
27682
|
getHighlightedTextParts,
|
|
27414
27683
|
hasMatchingItems,
|
|
27415
27684
|
isItemMatch,
|
|
27685
|
+
pageSizes,
|
|
27416
27686
|
splitProps,
|
|
27417
27687
|
useChipGroup,
|
|
27418
27688
|
useClipboard,
|
|
@@ -27430,6 +27700,7 @@ export {
|
|
|
27430
27700
|
useModalWrapperContext,
|
|
27431
27701
|
useOverflowItems,
|
|
27432
27702
|
usePopoverContext,
|
|
27703
|
+
usePrintPage,
|
|
27433
27704
|
useTabPanelActive,
|
|
27434
27705
|
useTabsContext,
|
|
27435
27706
|
useTheme,
|