@patternfly/patternfly-doc-core 1.9.1 → 1.11.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/astro.config.mjs +3 -4
- package/cli/cli.ts +60 -19
- package/cli/convertToMDX.ts +77 -22
- package/dist/.assetsignore +2 -0
- package/dist/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +1 -0
- package/dist/{client/_astro/LiveExample.DZkxbJA_.js → _astro/LiveExample.DjPiO80i.js} +1 -1
- package/dist/_astro/client.DN8ES6L5.js +1 -0
- package/dist/_routes.json +20 -0
- package/dist/_worker.js/_@astrojs-ssr-adapter.mjs +2 -0
- package/dist/_worker.js/_astro-internal_middleware.mjs +21 -0
- package/dist/_worker.js/_noop-actions.mjs +4 -0
- package/dist/{server/chunks/AutoLinkHeader_C2GD0g-K.mjs → _worker.js/chunks/AutoLinkHeader_xh_mBOfs.mjs} +13 -14
- package/dist/{server/chunks/Button_BKhHR-ak.mjs → _worker.js/chunks/Button_ByndGYyw.mjs} +83 -13
- package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_DAbso55e.mjs} +3 -3
- package/dist/_worker.js/chunks/PropsTables_BZngJp47.mjs +6628 -0
- package/dist/_worker.js/chunks/_@astrojs-ssr-adapter_C9Nk07-M.mjs +1082 -0
- package/dist/_worker.js/chunks/angle-down-icon_yt3z9cvI.mjs +3686 -0
- package/dist/_worker.js/chunks/astro/server_BpfPtTmt.mjs +7278 -0
- package/dist/_worker.js/chunks/astro-designed-error-pages_4xWqsa9_.mjs +928 -0
- package/dist/_worker.js/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +107 -0
- package/dist/_worker.js/chunks/index_Dc2aKkl4.mjs +57 -0
- package/dist/{server/chunks/_@astrojs-ssr-adapter_CbICuCdt.mjs → _worker.js/chunks/index_DlGha6WC.mjs} +1295 -1817
- package/dist/_worker.js/chunks/noop-middleware_Ct44Kk5Y.mjs +10 -0
- package/dist/_worker.js/chunks/parse_EttCPxrw.mjs +271 -0
- package/dist/{server/chunks/path_Cvt6sEOY.mjs → _worker.js/chunks/path_C-ZOwaTP.mjs} +2 -1
- package/dist/{server/entry.mjs → _worker.js/index.js} +12 -19
- package/dist/_worker.js/manifest_DcBPbZXQ.mjs +100 -0
- package/dist/_worker.js/pages/_image.astro.mjs +24 -0
- package/dist/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
- package/dist/_worker.js/pages/index.astro.mjs +1 -0
- package/dist/{server → _worker.js}/pages/props.astro.mjs +3 -2
- package/dist/_worker.js/renderers.mjs +484 -0
- package/dist/cli/cli.js +46 -12
- package/dist/cli/convertToMDX.js +53 -16
- package/dist/components/accordion/index.html +60 -0
- package/dist/components/accordion/react/index.html +60 -0
- package/dist/components/all-components/index.html +47 -0
- package/dist/design-foundations/typography/index.html +198 -0
- package/dist/{client/design-foundations → design-foundations}/usage-and-behavior/index.html +4 -54
- package/dist/get-started/contribute/index.html +94 -0
- package/dist/index.html +43 -0
- package/package.json +12 -8
- package/public/.assetsignore +2 -0
- package/src/components/LiveExample.astro +2 -2
- package/src/components/LiveExample.tsx +38 -9
- package/src/pages/props.ts +2 -2
- package/wrangler.jsonc +14 -0
- package/dist/client/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Cainpjm5.js +0 -1
- package/dist/client/_astro/client.zs76E0tG.js +0 -1
- package/dist/client/components/accordion/index.html +0 -110
- package/dist/client/components/accordion/react/index.html +0 -110
- package/dist/client/components/all-components/index.html +0 -97
- package/dist/client/design-foundations/typography/index.html +0 -248
- package/dist/client/get-started/contribute/index.html +0 -144
- package/dist/client/index.html +0 -43
- package/dist/server/_@astrojs-ssr-adapter.mjs +0 -1
- package/dist/server/_noop-middleware.mjs +0 -3
- package/dist/server/chunks/PropsTables_PVzRHJNB.mjs +0 -1750
- package/dist/server/chunks/_astro_assets_DaYumpRZ.mjs +0 -1507
- package/dist/server/chunks/angle-down-icon_BO1Ed-9Z.mjs +0 -3288
- package/dist/server/chunks/astro/server_Cl9jPh4p.mjs +0 -2859
- package/dist/server/chunks/astro-designed-error-pages_BFveJFnQ.mjs +0 -282
- package/dist/server/chunks/consts_BmVDRGlB.mjs +0 -32
- package/dist/server/chunks/sharp_CbOL3WDk.mjs +0 -88
- package/dist/server/manifest_DxJLmW-j.mjs +0 -102
- package/dist/server/pages/_image.astro.mjs +0 -132
- package/dist/server/renderers.mjs +0 -308
- /package/dist/{client/PF-HorizontalLogo-Color.svg → PF-HorizontalLogo-Color.svg} +0 -0
- /package/dist/{client/PF-HorizontalLogo-Reverse.svg → PF-HorizontalLogo-Reverse.svg} +0 -0
- /package/dist/{client/_astro → _astro}/Button.BQCwQ5pE.js +0 -0
- /package/dist/{client/_astro → _astro}/CSSTable.DC79W1Ct.js +0 -0
- /package/dist/{client/_astro → _astro}/Content.B4M2qzJY.js +0 -0
- /package/dist/{client/_astro → _astro}/DropdownList.cxp03sS4.js +0 -0
- /package/dist/{client/_astro → _astro}/LiveExample.CxJsMvEq.css +0 -0
- /package/dist/{client/_astro → _astro}/Navigation.kbLxctIo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageContext.miTsIqVo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageSidebarBody.B0AJe8Hg.js +0 -0
- /package/dist/{client/_astro → _astro}/PageToggle.CMZ3C1v1.js +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/SearchInput.DhHo7yPx.js +0 -0
- /package/dist/{client/_astro → _astro}/SectionGallery.3ABpQwE4.js +0 -0
- /package/dist/{client/_astro → _astro}/Toolbar.CroDQcyv.js +0 -0
- /package/dist/{client/_astro → _astro}/ToolbarContent.UH3ZRlHp.js +0 -0
- /package/dist/{client/_astro → _astro}/_page_.Chv_bGyU.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.CtheD08_.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.D1z73Byz.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.DxJDkZPc.css +0 -0
- /package/dist/{client/_astro → _astro}/angle-left-icon.teo8GC0v.js +0 -0
- /package/dist/{client/_astro → _astro}/bars-icon.Dk6ua1rr.js +0 -0
- /package/dist/{client/_astro → _astro}/divider.tlrBPkzg.js +0 -0
- /package/dist/{client/_astro → _astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/github-icon.ByC5XEPt.js +0 -0
- /package/dist/{client/_astro → _astro}/index.BQFV5hT1.js +0 -0
- /package/dist/{client/_astro → _astro}/index.CAChmxYj.js +0 -0
- /package/dist/{client/_astro → _astro}/index.DYVB4vTo.js +0 -0
- /package/dist/{client/_astro → _astro}/index.eCxJ45ll.js +0 -0
- /package/dist/{client/_astro → _astro}/link-icon.BNHnRn73.js +0 -0
- /package/dist/{client/_astro → _astro}/page.BTC3Kf3x.js +0 -0
- /package/dist/{client/_astro → _astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
- /package/dist/{server/chunks/Accordion_BJka4Qvb.mjs → _worker.js/chunks/Accordion_BNafbla6.mjs} +0 -0
- /package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_CZsuyu9E.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CRhgTsiT.mjs → _worker.js/chunks/AllComponents_BrL9IHSc.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CjOtwUH6.mjs → _worker.js/chunks/AllComponents_CI7S6uwA.mjs} +0 -0
- /package/dist/{server/chunks/_astro_data-layer-content_D4Ib_RjR.mjs → _worker.js/chunks/_astro_assets_vBCb4v6U.mjs} +0 -0
- /package/dist/{server/chunks/content-assets_DleWbedO.mjs → _worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs} +0 -0
- /package/dist/{server/chunks/content-modules_fX1c2JRG.mjs → _worker.js/chunks/content-assets_XqCgPAV2.mjs} +0 -0
- /package/dist/{server/pages/_section_/_---page_.astro.mjs → _worker.js/chunks/content-modules_CKq2j9RQ.mjs} +0 -0
- /package/dist/{server/pages/_section_/_page_/_---tab_.astro.mjs → _worker.js/chunks/sharp_CNjr3bU4.mjs} +0 -0
- /package/dist/{server/pages/index.astro.mjs → _worker.js/pages/_section_/_---page_.astro.mjs} +0 -0
- /package/dist/{client/avatarImg.svg → avatarImg.svg} +0 -0
- /package/dist/{client/avatarImgDark.svg → avatarImgDark.svg} +0 -0
- /package/dist/{client/content → content}/typography/line-height.png +0 -0
- /package/dist/{client/favicon.svg → favicon.svg} +0 -0
|
@@ -1,8 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Component, useMemo, forwardRef } from 'react';
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import { a as requireReact, r as reactExports } from './index_Dc2aKkl4.mjs';
|
|
4
3
|
/* empty css */
|
|
5
4
|
|
|
5
|
+
/******************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
function __rest(s, e) {
|
|
23
|
+
var t = {};
|
|
24
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
25
|
+
t[p] = s[p];
|
|
26
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
27
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
28
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
29
|
+
t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
+
var e = new Error(message);
|
|
36
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var jsxRuntime = {exports: {}};
|
|
40
|
+
|
|
41
|
+
var reactJsxRuntime_production_min = {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-jsx-runtime.production.min.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
54
|
+
|
|
55
|
+
function requireReactJsxRuntime_production_min () {
|
|
56
|
+
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
57
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
58
|
+
var f=requireReact(),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
|
|
59
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
60
|
+
return reactJsxRuntime_production_min;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var hasRequiredJsxRuntime;
|
|
64
|
+
|
|
65
|
+
function requireJsxRuntime () {
|
|
66
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
67
|
+
hasRequiredJsxRuntime = 1;
|
|
68
|
+
{
|
|
69
|
+
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
70
|
+
}
|
|
71
|
+
return jsxRuntime.exports;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
75
|
+
|
|
6
76
|
/** Joins args into a className string
|
|
7
77
|
*
|
|
8
78
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
@@ -69,7 +139,7 @@ let currentId = 0;
|
|
|
69
139
|
*/
|
|
70
140
|
function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {
|
|
71
141
|
var _a;
|
|
72
|
-
return _a = class SVGIcon extends Component {
|
|
142
|
+
return _a = class SVGIcon extends reactExports.Component {
|
|
73
143
|
constructor() {
|
|
74
144
|
super(...arguments);
|
|
75
145
|
this.id = `icon-title-${currentId++}`;
|
|
@@ -79,7 +149,7 @@ function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath })
|
|
|
79
149
|
const classes = className ? `pf-v6-svg ${className}` : 'pf-v6-svg';
|
|
80
150
|
const hasTitle = Boolean(title);
|
|
81
151
|
const viewBox = [xOffset, yOffset, width, height].join(' ');
|
|
82
|
-
return (jsxs("svg", Object.assign({ className: classes, viewBox: viewBox, fill: "currentColor", "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img", width: "1em", height: "1em" }, props, { children: [hasTitle && jsx("title", { id: this.id, children: title }), jsx("path", { d: svgPath })] })));
|
|
152
|
+
return (jsxRuntimeExports.jsxs("svg", Object.assign({ className: classes, viewBox: viewBox, fill: "currentColor", "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img", width: "1em", height: "1em" }, props, { children: [hasTitle && jsxRuntimeExports.jsx("title", { id: this.id, children: title }), jsxRuntimeExports.jsx("path", { d: svgPath })] })));
|
|
83
153
|
}
|
|
84
154
|
},
|
|
85
155
|
_a.displayName = name,
|
|
@@ -463,7 +533,7 @@ const useOUIAProps = (componentType, id, ouiaSafe = true, variant) => ({
|
|
|
463
533
|
* @param {string} variant Optional variant to add to the generated ID
|
|
464
534
|
*/
|
|
465
535
|
const useOUIAId = (componentType, id, variant) => {
|
|
466
|
-
const defaultOUIAId = useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
536
|
+
const defaultOUIAId = reactExports.useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
467
537
|
return id !== null && id !== void 0 ? id : defaultOUIAId;
|
|
468
538
|
};
|
|
469
539
|
/**
|
|
@@ -557,7 +627,7 @@ var spinnerSize;
|
|
|
557
627
|
})(spinnerSize || (spinnerSize = {}));
|
|
558
628
|
const Spinner = (_a) => {
|
|
559
629
|
var { className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest(_a, ["className", "size", 'aria-valuetext', "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
560
|
-
return (jsx("svg", Object.assign({ className: css(styles$1.spinner, isInline ? styles$1.modifiers.inline : styles$1.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props, { children: jsx("circle", { className: styles$1.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" }) })));
|
|
630
|
+
return (jsxRuntimeExports.jsx("svg", Object.assign({ className: css(styles$1.spinner, isInline ? styles$1.modifiers.inline : styles$1.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props, { children: jsxRuntimeExports.jsx("circle", { className: styles$1.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" }) })));
|
|
561
631
|
};
|
|
562
632
|
Spinner.displayName = 'Spinner';
|
|
563
633
|
|
|
@@ -572,7 +642,7 @@ const styles = {
|
|
|
572
642
|
|
|
573
643
|
const Badge = (_a) => {
|
|
574
644
|
var { isRead = false, isDisabled = false, className = '', children = '', screenReaderText } = _a, props = __rest(_a, ["isRead", "isDisabled", "className", "children", "screenReaderText"]);
|
|
575
|
-
return (jsxs("span", Object.assign({}, props, { className: css(styles.badge, (isRead ? styles.modifiers.read : styles.modifiers.unread), isDisabled && styles.modifiers.disabled, className), children: [children, screenReaderText && jsx("span", { className: "pf-v6-screen-reader", children: screenReaderText })] })));
|
|
645
|
+
return (jsxRuntimeExports.jsxs("span", Object.assign({}, props, { className: css(styles.badge, (isRead ? styles.modifiers.read : styles.modifiers.unread), isDisabled && styles.modifiers.disabled, className), children: [children, screenReaderText && jsxRuntimeExports.jsx("span", { className: "pf-v6-screen-reader", children: screenReaderText })] })));
|
|
576
646
|
};
|
|
577
647
|
Badge.displayName = 'Badge';
|
|
578
648
|
|
|
@@ -627,13 +697,13 @@ const ButtonBase = (_a) => {
|
|
|
627
697
|
return 0;
|
|
628
698
|
}
|
|
629
699
|
};
|
|
630
|
-
const _icon = icon && (jsx("span", { className: css(styles$2.buttonIcon, children && styles$2.modifiers[isIconAlignedAtEnd ? 'end' : 'start']), children: icon }));
|
|
631
|
-
const _children = children && jsx("span", { className: css('pf-v6-c-button__text'), children: children });
|
|
700
|
+
const _icon = icon && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonIcon, children && styles$2.modifiers[isIconAlignedAtEnd ? 'end' : 'start']), children: icon }));
|
|
701
|
+
const _children = children && jsxRuntimeExports.jsx("span", { className: css('pf-v6-c-button__text'), children: children });
|
|
632
702
|
// We only want to render the aria-disabled attribute when true, similar to the disabled attribute natively.
|
|
633
703
|
const shouldRenderAriaDisabled = isAriaDisabled || (!isButtonElement && isDisabled);
|
|
634
|
-
return (jsxs(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), (shouldRenderAriaDisabled && { 'aria-disabled': true }), { "aria-label": ariaLabel, className: css(styles$2.button, styles$2.modifiers[variant], isBlock && styles$2.modifiers.block, isDisabled && !isButtonElement && styles$2.modifiers.disabled, isAriaDisabled && styles$2.modifiers.ariaDisabled, isClicked && styles$2.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$2.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$2.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$2.modifiers.progress, isLoading && styles$2.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$2.modifiers.noPadding, variant === ButtonVariant.stateful && styles$2.modifiers[state], size === ButtonSize.sm && styles$2.modifiers.small, size === ButtonSize.lg && styles$2.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps, { children: [isLoading && (jsx("span", { className: css(styles$2.buttonProgress), children: jsx(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }) })), isIconAlignedAtEnd ? (jsxs(Fragment, { children: [_children, _icon] })) : (jsxs(Fragment, { children: [_icon, _children] })), countOptions && (jsx("span", { className: css(styles$2.buttonCount, countOptions.className), children: jsx(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled, children: countOptions.count }) }))] })));
|
|
704
|
+
return (jsxRuntimeExports.jsxs(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), (shouldRenderAriaDisabled && { 'aria-disabled': true }), { "aria-label": ariaLabel, className: css(styles$2.button, styles$2.modifiers[variant], isBlock && styles$2.modifiers.block, isDisabled && !isButtonElement && styles$2.modifiers.disabled, isAriaDisabled && styles$2.modifiers.ariaDisabled, isClicked && styles$2.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$2.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$2.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$2.modifiers.progress, isLoading && styles$2.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$2.modifiers.noPadding, variant === ButtonVariant.stateful && styles$2.modifiers[state], size === ButtonSize.sm && styles$2.modifiers.small, size === ButtonSize.lg && styles$2.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps, { children: [isLoading && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonProgress), children: jsxRuntimeExports.jsx(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }) })), isIconAlignedAtEnd ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_children, _icon] })) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_icon, _children] })), countOptions && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonCount, countOptions.className), children: jsxRuntimeExports.jsx(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled, children: countOptions.count }) }))] })));
|
|
635
705
|
};
|
|
636
|
-
const Button = forwardRef((props, ref) => jsx(ButtonBase, Object.assign({ innerRef: ref }, props)));
|
|
706
|
+
const Button = reactExports.forwardRef((props, ref) => jsxRuntimeExports.jsx(ButtonBase, Object.assign({ innerRef: ref }, props)));
|
|
637
707
|
Button.displayName = 'Button';
|
|
638
708
|
|
|
639
|
-
export { Button as B, CheckCircleIcon as C, ExclamationTriangleIcon as E, InfoCircleIcon as I, KeyTypes as K, Spinner as S, ValidatedOptions as V, canUseDOM as a, createIcon as b, css as c, ExclamationCircleIcon as d, getOUIAProps as e, statusIcons as f, getDefaultOUIAId as g, ButtonVariant as h, Badge as i,
|
|
709
|
+
export { Button as B, CheckCircleIcon as C, ExclamationTriangleIcon as E, InfoCircleIcon as I, KeyTypes as K, Spinner as S, ValidatedOptions as V, __rest as _, canUseDOM as a, createIcon as b, css as c, ExclamationCircleIcon as d, getOUIAProps as e, statusIcons as f, getDefaultOUIAId as g, ButtonVariant as h, Badge as i, jsxRuntimeExports as j, getVerticalBreakpoint as k, getBreakpoint as l, formatBreakpointMods as m, t_global_breakpoint_2xl as n, t_global_breakpoint_xl as o, t_global_breakpoint_lg as p, t_global_breakpoint_md as q, toCamel as r, setBreakpointCssVars as s, trimLeft as t, useOUIAProps as u, getUniqueId as v, BellIcon as w, getLanguageDirection as x, clearTimeouts as y };
|
package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_DAbso55e.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import { S as Stack, a as StackItem, A as AutoLinkHeader } from './
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import { c as createComponent, a as createAstro, r as renderComponent, b as renderTemplate } from './astro/server_BpfPtTmt.mjs';
|
|
3
|
+
import { S as Stack, a as StackItem, A as AutoLinkHeader } from './AutoLinkHeader_xh_mBOfs.mjs';
|
|
4
4
|
|
|
5
5
|
const $$Astro = createAstro();
|
|
6
6
|
const $$CSSTable = createComponent(($$result, $$props, $$slots) => {
|