@cimpress-ui/react 1.19.2 → 1.20.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.
Files changed (35) hide show
  1. package/dist/commonjs/components/nav-list/nav-list.d.ts +34 -0
  2. package/dist/commonjs/components/nav-list/nav-list.d.ts.map +1 -0
  3. package/dist/commonjs/components/nav-list/nav-list.js +44 -0
  4. package/dist/commonjs/components/nav-list/nav-list.js.map +1 -0
  5. package/dist/commonjs/components/switch/switch.d.ts +26 -0
  6. package/dist/commonjs/components/switch/switch.d.ts.map +1 -0
  7. package/dist/commonjs/components/switch/switch.js +36 -0
  8. package/dist/commonjs/components/switch/switch.js.map +1 -0
  9. package/dist/commonjs/index.d.ts +2 -1
  10. package/dist/commonjs/index.d.ts.map +1 -1
  11. package/dist/commonjs/index.js +2 -1
  12. package/dist/commonjs/index.js.map +1 -1
  13. package/dist/esm/components/nav-list/nav-list.d.ts +34 -0
  14. package/dist/esm/components/nav-list/nav-list.d.ts.map +1 -0
  15. package/dist/esm/components/nav-list/nav-list.js +36 -0
  16. package/dist/esm/components/nav-list/nav-list.js.map +1 -0
  17. package/dist/esm/components/switch/switch.d.ts +26 -0
  18. package/dist/esm/components/switch/switch.d.ts.map +1 -0
  19. package/dist/esm/components/switch/switch.js +30 -0
  20. package/dist/esm/components/switch/switch.js.map +1 -0
  21. package/dist/esm/index.d.ts +2 -1
  22. package/dist/esm/index.d.ts.map +1 -1
  23. package/dist/esm/index.js +2 -1
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist-styles/core.css +1 -1
  26. package/dist-styles/styles.css +1 -1
  27. package/package.json +1 -1
  28. package/dist/commonjs/components/toggle/toggle.d.ts +0 -14
  29. package/dist/commonjs/components/toggle/toggle.d.ts.map +0 -1
  30. package/dist/commonjs/components/toggle/toggle.js +0 -32
  31. package/dist/commonjs/components/toggle/toggle.js.map +0 -1
  32. package/dist/esm/components/toggle/toggle.d.ts +0 -14
  33. package/dist/esm/components/toggle/toggle.d.ts.map +0 -1
  34. package/dist/esm/components/toggle/toggle.js +0 -26
  35. package/dist/esm/components/toggle/toggle.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Href, NavigationProps, StringLikeChildren } from '../types.js';
3
+ export interface UNSTABLE_NavListProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Displays a vertical navigation list.
8
+ */
9
+ export declare function UNSTABLE_NavList({ children }: UNSTABLE_NavListProps): import("react/jsx-runtime").JSX.Element;
10
+ export interface UNSTABLE_NavListItemProps extends NavigationProps {
11
+ children: StringLikeChildren;
12
+ icon?: ReactNode;
13
+ href?: Href;
14
+ isCurrent?: boolean;
15
+ isDisabled?: boolean;
16
+ }
17
+ /**
18
+ * Displays a single navigation item.
19
+ */
20
+ export declare function UNSTABLE_NavListItem({ children, icon, href, isCurrent, isDisabled, routerOptions, ...props }: UNSTABLE_NavListItemProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface UNSTABLE_NavListGroupProps {
22
+ children: ReactNode;
23
+ label: StringLikeChildren;
24
+ icon?: ReactNode;
25
+ isExpanded?: boolean;
26
+ defaultExpanded?: boolean;
27
+ onExpandedChange?: (isExpanded: boolean) => void;
28
+ isDisabled?: boolean;
29
+ }
30
+ /**
31
+ * Displays an expandable navigation item group.
32
+ */
33
+ export declare function UNSTABLE_NavListGroup({ children, label, icon, isExpanded, defaultExpanded, onExpandedChange, isDisabled, }: UNSTABLE_NavListGroupProps): import("react/jsx-runtime").JSX.Element;
34
+ //# sourceMappingURL=nav-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-list.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-list/nav-list.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAG7E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAEnE;AAiBD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAmB3B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,UAAU,EACV,eAAuB,EACvB,gBAAgB,EAChB,UAAU,GACX,EAAE,0BAA0B,2CA0B5B"}
@@ -0,0 +1,44 @@
1
+ 'use client';
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.UNSTABLE_NavList = UNSTABLE_NavList;
8
+ exports.UNSTABLE_NavListItem = UNSTABLE_NavListItem;
9
+ exports.UNSTABLE_NavListGroup = UNSTABLE_NavListGroup;
10
+ const jsx_runtime_1 = require("react/jsx-runtime");
11
+ const utils_1 = require("@react-aria/utils");
12
+ const utils_2 = require("@react-stately/utils");
13
+ const clsx_1 = __importDefault(require("clsx"));
14
+ const react_1 = require("react");
15
+ const react_aria_components_1 = require("react-aria-components");
16
+ const index_js_1 = require("../../icons/index.js");
17
+ const text_js_1 = require("../typography/text.js");
18
+ /**
19
+ * Displays a vertical navigation list.
20
+ */
21
+ function UNSTABLE_NavList({ children }) {
22
+ return (0, jsx_runtime_1.jsx)("ul", { className: "cim-nav-list", children: children });
23
+ }
24
+ const NavListRowContext = (0, react_1.createContext)(null);
25
+ function NavListRow({ children }) {
26
+ const navListRowContext = (0, react_1.useContext)(NavListRowContext);
27
+ const newDepth = navListRowContext == null ? 0 : navListRowContext.depth + 1;
28
+ return ((0, jsx_runtime_1.jsx)(NavListRowContext.Provider, { value: { depth: newDepth }, children: (0, jsx_runtime_1.jsx)("li", { className: "cim-nav-list-row", style: { '--cim-nav-list-depth': newDepth }, children: children }) }));
29
+ }
30
+ /**
31
+ * Displays a single navigation item.
32
+ */
33
+ function UNSTABLE_NavListItem({ children, icon, href, isCurrent, isDisabled, routerOptions, ...props }) {
34
+ return ((0, jsx_runtime_1.jsx)(NavListRow, { children: (0, jsx_runtime_1.jsxs)(react_aria_components_1.Link, { ...props, className: "cim-nav-list-item", href: href, routerOptions: routerOptions, "aria-current": isCurrent ? 'page' : undefined, isDisabled: isDisabled, "data-active": isCurrent || undefined, children: [icon, (0, jsx_runtime_1.jsx)(text_js_1.Text, { as: "span", variant: "medium", UNSAFE_className: "cim-nav-list-item-label", children: children })] }) }));
35
+ }
36
+ /**
37
+ * Displays an expandable navigation item group.
38
+ */
39
+ function UNSTABLE_NavListGroup({ children, label, icon, isExpanded, defaultExpanded = false, onExpandedChange, isDisabled, }) {
40
+ const groupId = (0, utils_1.useId)();
41
+ const [expanded, setExpanded] = (0, utils_2.useControlledState)(isExpanded, defaultExpanded, onExpandedChange);
42
+ return ((0, jsx_runtime_1.jsxs)(NavListRow, { children: [(0, jsx_runtime_1.jsxs)(react_aria_components_1.Button, { className: "cim-nav-list-item", onPress: () => setExpanded(!expanded), "aria-controls": groupId, "aria-expanded": expanded, isDisabled: isDisabled, children: [icon, (0, jsx_runtime_1.jsx)(text_js_1.Text, { as: "span", variant: "medium", UNSAFE_className: "cim-nav-list-item-label", children: label }), (0, jsx_runtime_1.jsx)(index_js_1.IconChevronDown, { UNSAFE_className: (0, clsx_1.default)('cim-nav-list-group-icon', expanded && 'cim-nav-list-group-icon-expanded') })] }), (0, jsx_runtime_1.jsx)("ul", { id: groupId, className: "cim-nav-list-group-content", hidden: !expanded, children: children })] }));
43
+ }
44
+ //# sourceMappingURL=nav-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-list.js","sourceRoot":"","sources":["../../../../src/components/nav-list/nav-list.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AAkBb,4CAEC;AA4BD,oDA2BC;AAeD,sDAkCC;;AA1HD,6CAA0C;AAC1C,gDAA0D;AAC1D,gDAAwB;AACxB,iCAAkE;AAClE,iEAA6E;AAC7E,mDAAuD;AAEvD,mDAA6C;AAM7C;;GAEG;AACH,SAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAyB;IAClE,OAAO,+BAAI,SAAS,EAAC,cAAc,YAAE,QAAQ,GAAM,CAAC;AACtD,CAAC;AAED,MAAM,iBAAiB,GAAG,IAAA,qBAAa,EAA2B,IAAI,CAAC,CAAC;AAExE,SAAS,UAAU,CAAC,EAAE,QAAQ,EAA2B;IACvD,MAAM,iBAAiB,GAAG,IAAA,kBAAU,EAAC,iBAAiB,CAAC,CAAC;IACxD,MAAM,QAAQ,GAAG,iBAAiB,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,GAAG,CAAC,CAAC;IAE7E,OAAO,CACL,uBAAC,iB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E,UAAU,aAErB,IAAI,EACL,uBAAC,cAAI,IAAC,EAAE,EAAC,MAAM,EAAC,OAAO,EAAC,QAAQ,EAAC,gBAAgB,EAAC,yBAAyB,YACxE,KAAK,GACD,EACP,uBAAC,0BAAe,IACd,gBAAgB,EAAE,IAAA,cAAI,EAAC,yBAAyB,EAAE,QAAQ,IAAI,kCAAkC,CAAC,GACjG,IACQ,EACZ,+BAAI,EAAE,EAAE,OAAO,EAAE,SAAS,EAAC,4BAA4B,EAAC,MAAM,EAAE,CAAC,QAAQ,YACtE,QAAQ,GACN,IACM,CACd,CAAC;AACJ,CAAC","sourcesContent":["'use client';\n\nimport { useId } from '@react-aria/utils';\nimport { useControlledState } from '@react-stately/utils';\nimport clsx from 'clsx';\nimport { createContext, useContext, type ReactNode } from 'react';\nimport { Button as RACButton, Link as RACLink } from 'react-aria-components';\nimport { IconChevronDown } from '../../icons/index.js';\nimport type { Href, NavigationProps, StringLikeChildren } from '../types.js';\nimport { Text } from '../typography/text.js';\n\nexport interface UNSTABLE_NavListProps {\n children: ReactNode;\n}\n\n/**\n * Displays a vertical navigation list.\n */\nexport function UNSTABLE_NavList({ children }: UNSTABLE_NavListProps) {\n return <ul className=\"cim-nav-list\">{children}</ul>;\n}\n\nconst NavListRowContext = createContext<{ depth: number } | null>(null);\n\nfunction NavListRow({ children }: { children: ReactNode }) {\n const navListRowContext = useContext(NavListRowContext);\n const newDepth = navListRowContext == null ? 0 : navListRowContext.depth + 1;\n\n return (\n <NavListRowContext.Provider value={{ depth: newDepth }}>\n <li className=\"cim-nav-list-row\" style={{ '--cim-nav-list-depth': newDepth } as React.CSSProperties}>\n {children}\n </li>\n </NavListRowContext.Provider>\n );\n}\n\nexport interface UNSTABLE_NavListItemProps extends NavigationProps {\n children: StringLikeChildren;\n icon?: ReactNode;\n href?: Href;\n isCurrent?: boolean;\n isDisabled?: boolean;\n}\n\n/**\n * Displays a single navigation item.\n */\nexport function UNSTABLE_NavListItem({\n children,\n icon,\n href,\n isCurrent,\n isDisabled,\n routerOptions,\n ...props\n}: UNSTABLE_NavListItemProps) {\n return (\n <NavListRow>\n <RACLink\n {...props}\n className=\"cim-nav-list-item\"\n href={href}\n routerOptions={routerOptions}\n aria-current={isCurrent ? 'page' : undefined}\n isDisabled={isDisabled}\n data-active={isCurrent || undefined}\n >\n {icon}\n <Text as=\"span\" variant=\"medium\" UNSAFE_className=\"cim-nav-list-item-label\">\n {children}\n </Text>\n </RACLink>\n </NavListRow>\n );\n}\n\nexport interface UNSTABLE_NavListGroupProps {\n children: ReactNode;\n label: StringLikeChildren;\n icon?: ReactNode;\n isExpanded?: boolean;\n defaultExpanded?: boolean;\n onExpandedChange?: (isExpanded: boolean) => void;\n isDisabled?: boolean;\n}\n\n/**\n * Displays an expandable navigation item group.\n */\nexport function UNSTABLE_NavListGroup({\n children,\n label,\n icon,\n isExpanded,\n defaultExpanded = false,\n onExpandedChange,\n isDisabled,\n}: UNSTABLE_NavListGroupProps) {\n const groupId = useId();\n const [expanded, setExpanded] = useControlledState(isExpanded, defaultExpanded, onExpandedChange);\n\n return (\n <NavListRow>\n <RACButton\n className=\"cim-nav-list-item\"\n onPress={() => setExpanded(!expanded)}\n aria-controls={groupId}\n aria-expanded={expanded}\n isDisabled={isDisabled}\n >\n {icon}\n <Text as=\"span\" variant=\"medium\" UNSAFE_className=\"cim-nav-list-item-label\">\n {label}\n </Text>\n <IconChevronDown\n UNSAFE_className={clsx('cim-nav-list-group-icon', expanded && 'cim-nav-list-group-icon-expanded')}\n />\n </RACButton>\n <ul id={groupId} className=\"cim-nav-list-group-content\" hidden={!expanded}>\n {children}\n </ul>\n </NavListRow>\n );\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import { type SwitchProps as RACSwitchProps } from 'react-aria-components';
2
+ import type { AriaLabelingProps, CommonProps, StringLikeChildren } from '../types.js';
3
+ export interface SwitchProps extends CommonProps, AriaLabelingProps, Pick<RACSwitchProps, 'onChange' | 'isSelected' | 'isDisabled' | 'isReadOnly' | 'defaultSelected' | 'autoFocus' | 'form' | 'name' | 'value'> {
4
+ /** The label rendered next to the switch. */
5
+ children?: StringLikeChildren;
6
+ /** A description for the switch. Provides a hint such as specific requirements for which setting to choose. */
7
+ description?: string;
8
+ /**
9
+ * Controls where the label is rendered relative to the switch.
10
+ * @default 'end'
11
+ */
12
+ labelPosition?: 'top' | 'start' | 'end';
13
+ /**
14
+ * Whether the switch should take up the whole available width. Enabling this option will add space between the switch and its label.
15
+ * @default false
16
+ */
17
+ fullWidth?: boolean;
18
+ }
19
+ /**
20
+ * Allows users to turn a setting on or off.
21
+ *
22
+ * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).
23
+ */
24
+ declare const _Switch: (props: SwitchProps & import("react").RefAttributes<HTMLLabelElement> & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null;
25
+ export { _Switch as Switch };
26
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,WAAW,IAAI,cAAc,EAEnC,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtF,MAAM,WAAW,WACf,SACE,WAAW,EACX,iBAAiB,EACjB,IAAI,CACF,cAAc,EACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,iBAAiB,GACjB,WAAW,GACX,MAAM,GACN,MAAM,GACN,OAAO,CACV;IACH,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,+GAA+G;IAC/G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAoED;;;;GAIG;AACH,QAAA,MAAM,OAAO,+JAA+C,CAAC;AAE7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAC"}
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Switch = void 0;
8
+ const jsx_runtime_1 = require("react/jsx-runtime");
9
+ const utils_1 = require("@react-aria/utils");
10
+ const clsx_1 = __importDefault(require("clsx"));
11
+ const react_aria_components_1 = require("react-aria-components");
12
+ const forward_ref_js_1 = require("../../forward-ref.js");
13
+ const index_js_1 = require("../../icons/index.js");
14
+ const use_production_warning_js_1 = require("../../utils/use-production-warning.js");
15
+ const with_style_props_js_1 = require("../../with-style-props.js");
16
+ const form_field_js_1 = require("../internal/form-field/form-field.js");
17
+ const text_js_1 = require("../typography/text.js");
18
+ function Switch({ children, description, labelPosition = 'end', fullWidth = false, 'aria-describedby': ariaDescribedBy, UNSAFE_className, UNSAFE_style, ...props }, ref) {
19
+ const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;
20
+ (0, use_production_warning_js_1.useProductionWarning)(() => {
21
+ if (!children && !ariaLabel && !ariaLabelledBy) {
22
+ console.warn('Switch requires one of children / aria-label / aria-labelledby for accessibility');
23
+ }
24
+ }, [children, ariaLabel, ariaLabelledBy]);
25
+ const descriptionId = (0, utils_1.useSlotId)([Boolean(description)]);
26
+ const label = ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children && ((0, jsx_runtime_1.jsx)(text_js_1.Text, { as: "span", variant: "medium", children: children })) }));
27
+ return ((0, jsx_runtime_1.jsx)(react_aria_components_1.Provider, { values: [[react_aria_components_1.TextContext, { slots: { description: { id: descriptionId } } }]], children: (0, jsx_runtime_1.jsxs)("div", { className: (0, clsx_1.default)('cim-switch', UNSAFE_className), style: UNSAFE_style, "data-label-position": labelPosition, "data-full-width": fullWidth || undefined, children: [(0, jsx_runtime_1.jsxs)(react_aria_components_1.Switch, { ...props, className: "cim-switch-control-wrapper", ref: ref, "aria-describedby": descriptionId || ariaDescribedBy ? [descriptionId, ariaDescribedBy].join(' ') : undefined, children: [labelPosition !== 'end' && label, (0, jsx_runtime_1.jsx)("div", { className: "cim-switch-track-wrapper", "aria-hidden": true, children: (0, jsx_runtime_1.jsxs)("div", { className: "cim-switch-track", children: [(0, jsx_runtime_1.jsx)(index_js_1.IconCheckBold, { UNSAFE_className: "cim-switch-icon-on" }), (0, jsx_runtime_1.jsx)(index_js_1.IconCloseBold, { UNSAFE_className: "cim-switch-icon-off" }), (0, jsx_runtime_1.jsx)("div", { className: "cim-switch-track-head" })] }) }), labelPosition === 'end' && label] }), (0, jsx_runtime_1.jsx)(form_field_js_1.FormFieldDescription, { children: description })] }) }));
28
+ }
29
+ /**
30
+ * Allows users to turn a setting on or off.
31
+ *
32
+ * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).
33
+ */
34
+ const _Switch = (0, with_style_props_js_1.withStyleProps)((0, forward_ref_js_1.forwardRef)(Switch), 'Switch');
35
+ exports.Switch = _Switch;
36
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;AAEb,6CAA8C;AAC9C,gDAAwB;AAExB,iEAK+B;AAC/B,yDAAkD;AAClD,mDAAoE;AACpE,qFAA6E;AAC7E,mEAA2D;AAC3D,wEAA4E;AAE5E,mDAA6C;AAkC7C,SAAS,MAAM,CACb,EACE,QAAQ,EACR,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,KAAK,EACjB,kBAAkB,EAAE,eAAe,EACnC,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACI,EACd,GAAmC;IAEnC,MAAM,EAAE,YA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AG,EACvD,uBAAC,wBAAa,IAAC,gBAAgB,EAAC,qBAAqB,GAAG,EACxD,gCAAK,SAAS,EAAC,uBAAuB,GAAG,IACrC,GACF,EAEL,aAAa,KAAK,KAAK,IAAI,KAAK,IACvB,EAEZ,uBAAC,oCAAoB,cAAE,WAAW,GAAwB,IACtD,GACM,CACf,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,OAAO,GAAG,IAAA,oCAAc,EAAC,IAAA,2BAAU,EAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,CAAC;AAEzC,yBAAM","sourcesContent":["'use client';\n\nimport { useSlotId } from '@react-aria/utils';\nimport clsx from 'clsx';\nimport type { ForwardedRef } from 'react';\nimport {\n Provider as RACProvider,\n Switch as RACSwitch,\n type SwitchProps as RACSwitchProps,\n TextContext as RACTextContext,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { IconCheckBold, IconCloseBold } from '../../icons/index.js';\nimport { useProductionWarning } from '../../utils/use-production-warning.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription } from '../internal/form-field/form-field.js';\nimport type { AriaLabelingProps, CommonProps, StringLikeChildren } from '../types.js';\nimport { Text } from '../typography/text.js';\n\nexport interface SwitchProps\n extends\n CommonProps,\n AriaLabelingProps,\n Pick<\n RACSwitchProps,\n | 'onChange'\n | 'isSelected'\n | 'isDisabled'\n | 'isReadOnly'\n | 'defaultSelected'\n | 'autoFocus'\n | 'form'\n | 'name'\n | 'value'\n > {\n /** The label rendered next to the switch. */\n children?: StringLikeChildren;\n /** A description for the switch. Provides a hint such as specific requirements for which setting to choose. */\n description?: string;\n /**\n * Controls where the label is rendered relative to the switch.\n * @default 'end'\n */\n labelPosition?: 'top' | 'start' | 'end';\n /**\n * Whether the switch should take up the whole available width. Enabling this option will add space between the switch and its label.\n * @default false\n */\n fullWidth?: boolean;\n}\n\nfunction Switch(\n {\n children,\n description,\n labelPosition = 'end',\n fullWidth = false,\n 'aria-describedby': ariaDescribedBy,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: SwitchProps,\n ref: ForwardedRef<HTMLLabelElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useProductionWarning(() => {\n if (!children && !ariaLabel && !ariaLabelledBy) {\n console.warn('Switch requires one of children / aria-label / aria-labelledby for accessibility');\n }\n }, [children, ariaLabel, ariaLabelledBy]);\n\n const descriptionId = useSlotId([Boolean(description)]);\n\n const label = (\n <>\n {children && (\n <Text as=\"span\" variant=\"medium\">\n {children}\n </Text>\n )}\n </>\n );\n\n return (\n <RACProvider values={[[RACTextContext, { slots: { description: { id: descriptionId } } }]]}>\n <div\n className={clsx('cim-switch', UNSAFE_className)}\n style={UNSAFE_style}\n data-label-position={labelPosition}\n data-full-width={fullWidth || undefined}\n >\n <RACSwitch\n {...props}\n className=\"cim-switch-control-wrapper\"\n ref={ref}\n aria-describedby={descriptionId || ariaDescribedBy ? [descriptionId, ariaDescribedBy].join(' ') : undefined}\n >\n {labelPosition !== 'end' && label}\n\n <div className=\"cim-switch-track-wrapper\" aria-hidden>\n <div className=\"cim-switch-track\">\n <IconCheckBold UNSAFE_className=\"cim-switch-icon-on\" />\n <IconCloseBold UNSAFE_className=\"cim-switch-icon-off\" />\n <div className=\"cim-switch-track-head\" />\n </div>\n </div>\n\n {labelPosition === 'end' && label}\n </RACSwitch>\n\n <FormFieldDescription>{description}</FormFieldDescription>\n </div>\n </RACProvider>\n );\n}\n\n/**\n * Allows users to turn a setting on or off.\n *\n * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).\n */\nconst _Switch = withStyleProps(forwardRef(Switch), 'Switch');\n\nexport { _Switch as Switch };\n"]}
@@ -39,6 +39,7 @@ export * from './components/text-inputs/text-area.js';
39
39
  export * from './components/breadcrumbs/breadcrumbs.js';
40
40
  export * from './components/tooltip/tooltip.js';
41
41
  export * from './components/popover/popover.js';
42
+ export * from './components/switch/switch.js';
42
43
  export * from './components/table/table-container.js';
43
44
  export * from './components/table/table.js';
44
45
  export * from './components/table/table-header.js';
@@ -75,7 +76,6 @@ export * from './utils/use-is-mobile.js';
75
76
  export * from './components/visually-hidden/visually-hidden.js';
76
77
  export * from './components/file-picker/file-picker.js';
77
78
  export * from './components/container/container.js';
78
- export * from './components/toggle/toggle.js';
79
79
  export * from './components/toast/toast-region.js';
80
80
  export { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';
81
81
  export type { UNSTABLE_ToastOptions } from './components/toast/types.js';
@@ -88,4 +88,5 @@ export * from './components/hidden/hidden.js';
88
88
  export * from './components/app-header/nav-button.js';
89
89
  export * from './components/top-nav/top-nav.js';
90
90
  export * from './components/page-layout/page-layout.js';
91
+ export * from './components/nav-list/nav-list.js';
91
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5F,cAAc,iCAAiC,CAAC;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,cAAc,sCAAsC,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC"}
@@ -55,6 +55,7 @@ __exportStar(require("./components/text-inputs/text-area.js"), exports);
55
55
  __exportStar(require("./components/breadcrumbs/breadcrumbs.js"), exports);
56
56
  __exportStar(require("./components/tooltip/tooltip.js"), exports);
57
57
  __exportStar(require("./components/popover/popover.js"), exports);
58
+ __exportStar(require("./components/switch/switch.js"), exports);
58
59
  __exportStar(require("./components/table/table-container.js"), exports);
59
60
  __exportStar(require("./components/table/table.js"), exports);
60
61
  __exportStar(require("./components/table/table-header.js"), exports);
@@ -86,7 +87,6 @@ __exportStar(require("./utils/use-is-mobile.js"), exports);
86
87
  __exportStar(require("./components/visually-hidden/visually-hidden.js"), exports);
87
88
  __exportStar(require("./components/file-picker/file-picker.js"), exports);
88
89
  __exportStar(require("./components/container/container.js"), exports);
89
- __exportStar(require("./components/toggle/toggle.js"), exports);
90
90
  __exportStar(require("./components/toast/toast-region.js"), exports);
91
91
  var toast_queue_js_1 = require("./components/toast/toast-queue.js");
92
92
  Object.defineProperty(exports, "UNSTABLE_toastQueue", { enumerable: true, get: function () { return toast_queue_js_1.UNSTABLE_toastQueue; } });
@@ -98,4 +98,5 @@ __exportStar(require("./components/hidden/hidden.js"), exports);
98
98
  __exportStar(require("./components/app-header/nav-button.js"), exports);
99
99
  __exportStar(require("./components/top-nav/top-nav.js"), exports);
100
100
  __exportStar(require("./components/page-layout/page-layout.js"), exports);
101
+ __exportStar(require("./components/nav-list/nav-list.js"), exports);
101
102
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.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ACpD,gEAA8C;AAC9C,wEAAsD;AACtD,kEAAgD;AAChD,0EAAwD","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/copy/copy-button.js';\nexport * from './components/copy/copy-inline.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/drawer/drawer.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/progress-bar/progress-bar.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/slider/slider.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/search-field.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\nexport * from './components/internal/x-button/x-button.js';\n\nexport * from './utils/use-is-mobile.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/stepper/stepper.js';\nexport * from './components/stepper/stepper-item.js';\nexport type { StepperStatus } from './components/stepper/types.js';\nexport * from './components/app-shell/app-shell.js';\nexport * from './components/app-header/side-nav.js';\nexport * from './components/hidden/hidden.js';\nexport * from './components/app-header/nav-button.js';\nexport * from './components/top-nav/top-nav.js';\nexport * from './components/page-layout/page-layout.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,4EAA0D;AAC1D,wEAAsD;AACtD,8EAA4D;AAC5D,8DAA4C;AAC5C,gEAA8C;AAC9C,qEAAmD;AACnD,qEAAmD;AACnD,0EAAwD;AACxD,kEAAgD;AAChD,4DAA0C;AAC1C,oEAAkD;AAClD,0EAAwD;AACxD,sEAAoD;AACpD,mEAAiD;AACjD,mEAAiD;AACjD,0EAAwD;AACxD,0EAAwD;AACxD,wEAAsD;AACtD,8EAA4D;AAE5D,kEAAgD;AAChD,gEAA8C;AAC9C,4DAA0C;AAC1C,sEAAoD;AACpD,4DAA0C;AAC1C,4EAA0D;AAC1D,4EAA0D;AAC1D,wEAAsD;AACtD,4EAA0D;AAC1D,8DAA4C;AAC5C,oEAAkD;AAClD,gEAA8C;AAC9C,gEAA8C;AAC9C,kEAAgD;AAChD,2EAAyD;AACzD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kEAAgD;AAChD,kEAAgD;AAChD,gEAA8C;AAC9C,wEAAsD;AACtD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,0EAAwD;AACxD,mEAAiD;AACjD,uEAAqD;AACrD,wEAAsD;AACtD,2EAAyD;AACzD,gFAA8D;AAC9D,0EAAwD;AAGxD,4DAA0C;AAC1C,0DAAwC;AACxC,gEAA8C;AAC9C,sEAAoD;AACpD,8EAA4D;AAC5D,mFAAiE;AACjE,oFAAkE;AAClE,+DAA6C;AAE7C,kEAAgD;AAChD,sEAAoD;AAEpD,kEAAgD;AAChD,kEAAgD;AAoBhD,kEAAgD;AAChD,wEAAsD;AAEtD,6EAA2D;AAE3D,2DAAyC;AAEzC,2BAA2B;AAC3B,kFAAgE;AAChE,0EAAwD;AACxD,sEAAoD;AACpD,qEAAmD;AACnD,oEAAkG;AAAzF,qHAAA,mBAAmB,OAAA;AAE5B,kEAAgD;AAChD,uEAAqD;AAErD,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,wEAAsD;AACtD,kEAAgD;AAChD,0EAAwD;AACxD,oEAAkD","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/copy/copy-button.js';\nexport * from './components/copy/copy-inline.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/drawer/drawer.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/progress-bar/progress-bar.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/slider/slider.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/search-field.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/switch/switch.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\nexport * from './components/internal/x-button/x-button.js';\n\nexport * from './utils/use-is-mobile.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/stepper/stepper.js';\nexport * from './components/stepper/stepper-item.js';\nexport type { StepperStatus } from './components/stepper/types.js';\nexport * from './components/app-shell/app-shell.js';\nexport * from './components/app-header/side-nav.js';\nexport * from './components/hidden/hidden.js';\nexport * from './components/app-header/nav-button.js';\nexport * from './components/top-nav/top-nav.js';\nexport * from './components/page-layout/page-layout.js';\nexport * from './components/nav-list/nav-list.js';\n"]}
@@ -0,0 +1,34 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Href, NavigationProps, StringLikeChildren } from '../types.js';
3
+ export interface UNSTABLE_NavListProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Displays a vertical navigation list.
8
+ */
9
+ export declare function UNSTABLE_NavList({ children }: UNSTABLE_NavListProps): import("react/jsx-runtime").JSX.Element;
10
+ export interface UNSTABLE_NavListItemProps extends NavigationProps {
11
+ children: StringLikeChildren;
12
+ icon?: ReactNode;
13
+ href?: Href;
14
+ isCurrent?: boolean;
15
+ isDisabled?: boolean;
16
+ }
17
+ /**
18
+ * Displays a single navigation item.
19
+ */
20
+ export declare function UNSTABLE_NavListItem({ children, icon, href, isCurrent, isDisabled, routerOptions, ...props }: UNSTABLE_NavListItemProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface UNSTABLE_NavListGroupProps {
22
+ children: ReactNode;
23
+ label: StringLikeChildren;
24
+ icon?: ReactNode;
25
+ isExpanded?: boolean;
26
+ defaultExpanded?: boolean;
27
+ onExpandedChange?: (isExpanded: boolean) => void;
28
+ isDisabled?: boolean;
29
+ }
30
+ /**
31
+ * Displays an expandable navigation item group.
32
+ */
33
+ export declare function UNSTABLE_NavListGroup({ children, label, icon, isExpanded, defaultExpanded, onExpandedChange, isDisabled, }: UNSTABLE_NavListGroupProps): import("react/jsx-runtime").JSX.Element;
34
+ //# sourceMappingURL=nav-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav-list.d.ts","sourceRoot":"","sources":["../../../../src/components/nav-list/nav-list.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAG7E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAEnE;AAiBD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,yBAAyB,2CAmB3B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,UAAU,EACV,eAAuB,EACvB,gBAAgB,EAChB,UAAU,GACX,EAAE,0BAA0B,2CA0B5B"}
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useId } from '@react-aria/utils';
4
+ import { useControlledState } from '@react-stately/utils';
5
+ import clsx from 'clsx';
6
+ import { createContext, useContext } from 'react';
7
+ import { Button as RACButton, Link as RACLink } from 'react-aria-components';
8
+ import { IconChevronDown } from '../../icons/index.js';
9
+ import { Text } from '../typography/text.js';
10
+ /**
11
+ * Displays a vertical navigation list.
12
+ */
13
+ export function UNSTABLE_NavList({ children }) {
14
+ return _jsx("ul", { className: "cim-nav-list", children: children });
15
+ }
16
+ const NavListRowContext = createContext(null);
17
+ function NavListRow({ children }) {
18
+ const navListRowContext = useContext(NavListRowContext);
19
+ const newDepth = navListRowContext == null ? 0 : navListRowContext.depth + 1;
20
+ return (_jsx(NavListRowContext.Provider, { value: { depth: newDepth }, children: _jsx("li", { className: "cim-nav-list-row", style: { '--cim-nav-list-depth': newDepth }, children: children }) }));
21
+ }
22
+ /**
23
+ * Displays a single navigation item.
24
+ */
25
+ export function UNSTABLE_NavListItem({ children, icon, href, isCurrent, isDisabled, routerOptions, ...props }) {
26
+ return (_jsx(NavListRow, { children: _jsxs(RACLink, { ...props, className: "cim-nav-list-item", href: href, routerOptions: routerOptions, "aria-current": isCurrent ? 'page' : undefined, isDisabled: isDisabled, "data-active": isCurrent || undefined, children: [icon, _jsx(Text, { as: "span", variant: "medium", UNSAFE_className: "cim-nav-list-item-label", children: children })] }) }));
27
+ }
28
+ /**
29
+ * Displays an expandable navigation item group.
30
+ */
31
+ export function UNSTABLE_NavListGroup({ children, label, icon, isExpanded, defaultExpanded = false, onExpandedChange, isDisabled, }) {
32
+ const groupId = useId();
33
+ const [expanded, setExpanded] = useControlledState(isExpanded, defaultExpanded, onExpandedChange);
34
+ return (_jsxs(NavListRow, { children: [_jsxs(RACButton, { className: "cim-nav-list-item", onPress: () => setExpanded(!expanded), "aria-controls": groupId, "aria-expanded": expanded, isDisabled: isDisabled, children: [icon, _jsx(Text, { as: "span", variant: "medium", UNSAFE_className: "cim-nav-list-item-label", children: label }), _jsx(IconChevronDown, { UNSAFE_className: clsx('cim-nav-list-group-icon', expanded && 'cim-nav-list-group-icon-expanded') })] }), _jsx("ul", { id: groupId, className: "cim-nav-list-group-content", hidden: !expanded, children: children })] }));
35
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EAAE,EAAE,OAAO,EAAE,SAAS,EAAC,4BAA4B,EAAC,MAAM,EAAE,CAAC,QAAQ,YACtE,QAAQ,GACN,IACM,CACd,CAAC;AACJ,CAAC","sourcesContent":["'use client';\n\nimport { useId } from '@react-aria/utils';\nimport { useControlledState } from '@react-stately/utils';\nimport clsx from 'clsx';\nimport { createContext, useContext, type ReactNode } from 'react';\nimport { Button as RACButton, Link as RACLink } from 'react-aria-components';\nimport { IconChevronDown } from '../../icons/index.js';\nimport type { Href, NavigationProps, StringLikeChildren } from '../types.js';\nimport { Text } from '../typography/text.js';\n\nexport interface UNSTABLE_NavListProps {\n children: ReactNode;\n}\n\n/**\n * Displays a vertical navigation list.\n */\nexport function UNSTABLE_NavList({ children }: UNSTABLE_NavListProps) {\n return <ul className=\"cim-nav-list\">{children}</ul>;\n}\n\nconst NavListRowContext = createContext<{ depth: number } | null>(null);\n\nfunction NavListRow({ children }: { children: ReactNode }) {\n const navListRowContext = useContext(NavListRowContext);\n const newDepth = navListRowContext == null ? 0 : navListRowContext.depth + 1;\n\n return (\n <NavListRowContext.Provider value={{ depth: newDepth }}>\n <li className=\"cim-nav-list-row\" style={{ '--cim-nav-list-depth': newDepth } as React.CSSProperties}>\n {children}\n </li>\n </NavListRowContext.Provider>\n );\n}\n\nexport interface UNSTABLE_NavListItemProps extends NavigationProps {\n children: StringLikeChildren;\n icon?: ReactNode;\n href?: Href;\n isCurrent?: boolean;\n isDisabled?: boolean;\n}\n\n/**\n * Displays a single navigation item.\n */\nexport function UNSTABLE_NavListItem({\n children,\n icon,\n href,\n isCurrent,\n isDisabled,\n routerOptions,\n ...props\n}: UNSTABLE_NavListItemProps) {\n return (\n <NavListRow>\n <RACLink\n {...props}\n className=\"cim-nav-list-item\"\n href={href}\n routerOptions={routerOptions}\n aria-current={isCurrent ? 'page' : undefined}\n isDisabled={isDisabled}\n data-active={isCurrent || undefined}\n >\n {icon}\n <Text as=\"span\" variant=\"medium\" UNSAFE_className=\"cim-nav-list-item-label\">\n {children}\n </Text>\n </RACLink>\n </NavListRow>\n );\n}\n\nexport interface UNSTABLE_NavListGroupProps {\n children: ReactNode;\n label: StringLikeChildren;\n icon?: ReactNode;\n isExpanded?: boolean;\n defaultExpanded?: boolean;\n onExpandedChange?: (isExpanded: boolean) => void;\n isDisabled?: boolean;\n}\n\n/**\n * Displays an expandable navigation item group.\n */\nexport function UNSTABLE_NavListGroup({\n children,\n label,\n icon,\n isExpanded,\n defaultExpanded = false,\n onExpandedChange,\n isDisabled,\n}: UNSTABLE_NavListGroupProps) {\n const groupId = useId();\n const [expanded, setExpanded] = useControlledState(isExpanded, defaultExpanded, onExpandedChange);\n\n return (\n <NavListRow>\n <RACButton\n className=\"cim-nav-list-item\"\n onPress={() => setExpanded(!expanded)}\n aria-controls={groupId}\n aria-expanded={expanded}\n isDisabled={isDisabled}\n >\n {icon}\n <Text as=\"span\" variant=\"medium\" UNSAFE_className=\"cim-nav-list-item-label\">\n {label}\n </Text>\n <IconChevronDown\n UNSAFE_className={clsx('cim-nav-list-group-icon', expanded && 'cim-nav-list-group-icon-expanded')}\n />\n </RACButton>\n <ul id={groupId} className=\"cim-nav-list-group-content\" hidden={!expanded}>\n {children}\n </ul>\n </NavListRow>\n );\n}\n"]}
@@ -0,0 +1,26 @@
1
+ import { type SwitchProps as RACSwitchProps } from 'react-aria-components';
2
+ import type { AriaLabelingProps, CommonProps, StringLikeChildren } from '../types.js';
3
+ export interface SwitchProps extends CommonProps, AriaLabelingProps, Pick<RACSwitchProps, 'onChange' | 'isSelected' | 'isDisabled' | 'isReadOnly' | 'defaultSelected' | 'autoFocus' | 'form' | 'name' | 'value'> {
4
+ /** The label rendered next to the switch. */
5
+ children?: StringLikeChildren;
6
+ /** A description for the switch. Provides a hint such as specific requirements for which setting to choose. */
7
+ description?: string;
8
+ /**
9
+ * Controls where the label is rendered relative to the switch.
10
+ * @default 'end'
11
+ */
12
+ labelPosition?: 'top' | 'start' | 'end';
13
+ /**
14
+ * Whether the switch should take up the whole available width. Enabling this option will add space between the switch and its label.
15
+ * @default false
16
+ */
17
+ fullWidth?: boolean;
18
+ }
19
+ /**
20
+ * Allows users to turn a setting on or off.
21
+ *
22
+ * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).
23
+ */
24
+ declare const _Switch: (props: SwitchProps & import("react").RefAttributes<HTMLLabelElement> & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null;
25
+ export { _Switch as Switch };
26
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,WAAW,IAAI,cAAc,EAEnC,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtF,MAAM,WAAW,WACf,SACE,WAAW,EACX,iBAAiB,EACjB,IAAI,CACF,cAAc,EACZ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,iBAAiB,GACjB,WAAW,GACX,MAAM,GACN,MAAM,GACN,OAAO,CACV;IACH,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,+GAA+G;IAC/G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAoED;;;;GAIG;AACH,QAAA,MAAM,OAAO,+JAA+C,CAAC;AAE7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useSlotId } from '@react-aria/utils';
4
+ import clsx from 'clsx';
5
+ import { Provider as RACProvider, Switch as RACSwitch, TextContext as RACTextContext, } from 'react-aria-components';
6
+ import { forwardRef } from '../../forward-ref.js';
7
+ import { IconCheckBold, IconCloseBold } from '../../icons/index.js';
8
+ import { useProductionWarning } from '../../utils/use-production-warning.js';
9
+ import { withStyleProps } from '../../with-style-props.js';
10
+ import { FormFieldDescription } from '../internal/form-field/form-field.js';
11
+ import { Text } from '../typography/text.js';
12
+ function Switch({ children, description, labelPosition = 'end', fullWidth = false, 'aria-describedby': ariaDescribedBy, UNSAFE_className, UNSAFE_style, ...props }, ref) {
13
+ const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;
14
+ useProductionWarning(() => {
15
+ if (!children && !ariaLabel && !ariaLabelledBy) {
16
+ console.warn('Switch requires one of children / aria-label / aria-labelledby for accessibility');
17
+ }
18
+ }, [children, ariaLabel, ariaLabelledBy]);
19
+ const descriptionId = useSlotId([Boolean(description)]);
20
+ const label = (_jsx(_Fragment, { children: children && (_jsx(Text, { as: "span", variant: "medium", children: children })) }));
21
+ return (_jsx(RACProvider, { values: [[RACTextContext, { slots: { description: { id: descriptionId } } }]], children: _jsxs("div", { className: clsx('cim-switch', UNSAFE_className), style: UNSAFE_style, "data-label-position": labelPosition, "data-full-width": fullWidth || undefined, children: [_jsxs(RACSwitch, { ...props, className: "cim-switch-control-wrapper", ref: ref, "aria-describedby": descriptionId || ariaDescribedBy ? [descriptionId, ariaDescribedBy].join(' ') : undefined, children: [labelPosition !== 'end' && label, _jsx("div", { className: "cim-switch-track-wrapper", "aria-hidden": true, children: _jsxs("div", { className: "cim-switch-track", children: [_jsx(IconCheckBold, { UNSAFE_className: "cim-switch-icon-on" }), _jsx(IconCloseBold, { UNSAFE_className: "cim-switch-icon-off" }), _jsx("div", { className: "cim-switch-track-head" })] }) }), labelPosition === 'end' && label] }), _jsx(FormFieldDescription, { children: description })] }) }));
22
+ }
23
+ /**
24
+ * Allows users to turn a setting on or off.
25
+ *
26
+ * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).
27
+ */
28
+ const _Switch = withStyleProps(forwardRef(Switch), 'Switch');
29
+ export { _Switch as Switch };
30
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../../src/components/switch/switch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EACL,QAAQ,IAAI,WAAW,EACvB,MAAM,IAAI,SAAS,EAEnB,WAAW,IAAI,cAAc,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAkC7C,SAAS,MAAM,CACb,EACE,QAAQ,EACR,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,KAAK,EACjB,kBAAkB,EAAE,eAAe,EACnC,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACI,EACd,GAAmC;IAEnC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,oBAAoB,CAAC,GAAG,EAAE;QACxB,IAAI,CAAC,QAAQ,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAC/C,OAAO,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;QACnG,CAAC;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,c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C;AAE7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAC","sourcesContent":["'use client';\n\nimport { useSlotId } from '@react-aria/utils';\nimport clsx from 'clsx';\nimport type { ForwardedRef } from 'react';\nimport {\n Provider as RACProvider,\n Switch as RACSwitch,\n type SwitchProps as RACSwitchProps,\n TextContext as RACTextContext,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { IconCheckBold, IconCloseBold } from '../../icons/index.js';\nimport { useProductionWarning } from '../../utils/use-production-warning.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription } from '../internal/form-field/form-field.js';\nimport type { AriaLabelingProps, CommonProps, StringLikeChildren } from '../types.js';\nimport { Text } from '../typography/text.js';\n\nexport interface SwitchProps\n extends\n CommonProps,\n AriaLabelingProps,\n Pick<\n RACSwitchProps,\n | 'onChange'\n | 'isSelected'\n | 'isDisabled'\n | 'isReadOnly'\n | 'defaultSelected'\n | 'autoFocus'\n | 'form'\n | 'name'\n | 'value'\n > {\n /** The label rendered next to the switch. */\n children?: StringLikeChildren;\n /** A description for the switch. Provides a hint such as specific requirements for which setting to choose. */\n description?: string;\n /**\n * Controls where the label is rendered relative to the switch.\n * @default 'end'\n */\n labelPosition?: 'top' | 'start' | 'end';\n /**\n * Whether the switch should take up the whole available width. Enabling this option will add space between the switch and its label.\n * @default false\n */\n fullWidth?: boolean;\n}\n\nfunction Switch(\n {\n children,\n description,\n labelPosition = 'end',\n fullWidth = false,\n 'aria-describedby': ariaDescribedBy,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: SwitchProps,\n ref: ForwardedRef<HTMLLabelElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useProductionWarning(() => {\n if (!children && !ariaLabel && !ariaLabelledBy) {\n console.warn('Switch requires one of children / aria-label / aria-labelledby for accessibility');\n }\n }, [children, ariaLabel, ariaLabelledBy]);\n\n const descriptionId = useSlotId([Boolean(description)]);\n\n const label = (\n <>\n {children && (\n <Text as=\"span\" variant=\"medium\">\n {children}\n </Text>\n )}\n </>\n );\n\n return (\n <RACProvider values={[[RACTextContext, { slots: { description: { id: descriptionId } } }]]}>\n <div\n className={clsx('cim-switch', UNSAFE_className)}\n style={UNSAFE_style}\n data-label-position={labelPosition}\n data-full-width={fullWidth || undefined}\n >\n <RACSwitch\n {...props}\n className=\"cim-switch-control-wrapper\"\n ref={ref}\n aria-describedby={descriptionId || ariaDescribedBy ? [descriptionId, ariaDescribedBy].join(' ') : undefined}\n >\n {labelPosition !== 'end' && label}\n\n <div className=\"cim-switch-track-wrapper\" aria-hidden>\n <div className=\"cim-switch-track\">\n <IconCheckBold UNSAFE_className=\"cim-switch-icon-on\" />\n <IconCloseBold UNSAFE_className=\"cim-switch-icon-off\" />\n <div className=\"cim-switch-track-head\" />\n </div>\n </div>\n\n {labelPosition === 'end' && label}\n </RACSwitch>\n\n <FormFieldDescription>{description}</FormFieldDescription>\n </div>\n </RACProvider>\n );\n}\n\n/**\n * Allows users to turn a setting on or off.\n *\n * See [switch usage guidelines](https://ui.cimpress.io/components/switch/).\n */\nconst _Switch = withStyleProps(forwardRef(Switch), 'Switch');\n\nexport { _Switch as Switch };\n"]}
@@ -39,6 +39,7 @@ export * from './components/text-inputs/text-area.js';
39
39
  export * from './components/breadcrumbs/breadcrumbs.js';
40
40
  export * from './components/tooltip/tooltip.js';
41
41
  export * from './components/popover/popover.js';
42
+ export * from './components/switch/switch.js';
42
43
  export * from './components/table/table-container.js';
43
44
  export * from './components/table/table.js';
44
45
  export * from './components/table/table-header.js';
@@ -75,7 +76,6 @@ export * from './utils/use-is-mobile.js';
75
76
  export * from './components/visually-hidden/visually-hidden.js';
76
77
  export * from './components/file-picker/file-picker.js';
77
78
  export * from './components/container/container.js';
78
- export * from './components/toggle/toggle.js';
79
79
  export * from './components/toast/toast-region.js';
80
80
  export { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';
81
81
  export type { UNSTABLE_ToastOptions } from './components/toast/types.js';
@@ -88,4 +88,5 @@ export * from './components/hidden/hidden.js';
88
88
  export * from './components/app-header/nav-button.js';
89
89
  export * from './components/top-nav/top-nav.js';
90
90
  export * from './components/page-layout/page-layout.js';
91
+ export * from './components/nav-list/nav-list.js';
91
92
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5F,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC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from './components/text-inputs/text-area.js';
38
38
  export * from './components/breadcrumbs/breadcrumbs.js';
39
39
  export * from './components/tooltip/tooltip.js';
40
40
  export * from './components/popover/popover.js';
41
+ export * from './components/switch/switch.js';
41
42
  export * from './components/table/table-container.js';
42
43
  export * from './components/table/table.js';
43
44
  export * from './components/table/table-header.js';
@@ -69,7 +70,6 @@ export * from './utils/use-is-mobile.js';
69
70
  export * from './components/visually-hidden/visually-hidden.js';
70
71
  export * from './components/file-picker/file-picker.js';
71
72
  export * from './components/container/container.js';
72
- export * from './components/toggle/toggle.js';
73
73
  export * from './components/toast/toast-region.js';
74
74
  export { UNSTABLE_toastQueue } from './components/toast/toast-queue.js';
75
75
  export * from './components/stepper/stepper.js';
@@ -80,4 +80,5 @@ export * from './components/hidden/hidden.js';
80
80
  export * from './components/app-header/nav-button.js';
81
81
  export * from './components/top-nav/top-nav.js';
82
82
  export * from './components/page-layout/page-layout.js';
83
+ export * from './components/nav-list/nav-list.js';
83
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6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AAc,4CAA4C,CAAC;AAE3D,cAAc,0BAA0B,CAAC;AAEzC,2BAA2B;AAC3B,cAAc,iDAAiD,CAAC;AAChE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAA4B,MAAM,mCAAmC,CAAC;AAElG,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/copy/copy-button.js';\nexport * from './components/copy/copy-inline.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/drawer/drawer.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/progress-bar/progress-bar.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/slider/slider.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/search-field.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\nexport * from './components/internal/x-button/x-button.js';\n\nexport * from './utils/use-is-mobile.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toggle/toggle.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/stepper/stepper.js';\nexport * from './components/stepper/stepper-item.js';\nexport type { StepperStatus } from './components/stepper/types.js';\nexport * from './components/app-shell/app-shell.js';\nexport * from './components/app-header/side-nav.js';\nexport * from './components/hidden/hidden.js';\nexport * from './components/app-header/nav-button.js';\nexport * from './components/top-nav/top-nav.js';\nexport * from './components/page-layout/page-layout.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAE5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,c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,EAAE,mBAAmB,EAA4B,MAAM,mCAAmC,CAAC;AAElG,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/alert/alert.js';\nexport * from './components/alert-dialog/alert-dialog.js';\nexport * from './components/app-header/app-header.js';\nexport * from './components/app-header/simple-auth-tool.js';\nexport * from './components/badge/badge.js';\nexport * from './components/button/button.js';\nexport * from './components/button/link-button.js';\nexport * from './components/button/icon-button.js';\nexport * from './components/button/icon-link-button.js';\nexport * from './components/callout/callout.js';\nexport * from './components/card/card.js';\nexport * from './components/checkbox/checkbox.js';\nexport * from './components/checkbox/checkbox-group.js';\nexport * from './components/combo-box/combo-box.js';\nexport * from './components/copy/copy-button.js';\nexport * from './components/copy/copy-inline.js';\nexport * from './components/date-picker/date-picker.js';\nexport * from './components/dialog-root/dialog-root.js';\nexport * from './components/disclosure/disclosure.js';\nexport * from './components/disclosure/disclosure-group.js';\nexport type { DisclosureSize, DisclosureVariant } from './components/disclosure/context.js';\nexport * from './components/divider/divider.js';\nexport * from './components/drawer/drawer.js';\nexport * from './components/form/form.js';\nexport * from './components/link-tabs/link-tabs.js';\nexport * from './components/menu/menu.js';\nexport * from './components/modal-dialog/modal-dialog.js';\nexport * from './components/number-field/number-field.js';\nexport * from './components/pagination/pagination.js';\nexport * from './components/progress-bar/progress-bar.js';\nexport * from './components/radio/radio.js';\nexport * from './components/radio/radio-group.js';\nexport * from './components/select/select.js';\nexport * from './components/slider/slider.js';\nexport * from './components/spinner/spinner.js';\nexport * from './components/text-inputs/search-field.js';\nexport * from './components/text-inputs/text-field.js';\nexport * from './components/text-inputs/text-area.js';\nexport * from './components/breadcrumbs/breadcrumbs.js';\nexport * from './components/tooltip/tooltip.js';\nexport * from './components/popover/popover.js';\nexport * from './components/switch/switch.js';\nexport * from './components/table/table-container.js';\nexport * from './components/table/table.js';\nexport * from './components/table/table-header.js';\nexport * from './components/table/table-header-row.js';\nexport * from './components/table/table-header-cell.js';\nexport * from './components/table/table-body.js';\nexport * from './components/table/table-body-row.js';\nexport * from './components/table/table-body-cell.js';\nexport * from './components/table/table-row-selector.js';\nexport * from './components/table/table-all-rows-selector.js';\nexport * from './components/table/table-empty-state.js';\nexport type { RowSelectionMode as TableRowSelectionMode } from './components/table/contexts/table-state.js';\nexport type { ColumnContentAlignment as TableColumnContentAlignment } from './components/table/contexts/column-collection.js';\nexport * from './components/tabs/tabs.js';\nexport * from './components/tag/tag.js';\nexport * from './components/tag/tag-group.js';\nexport * from './components/tag-field/tag-field.js';\nexport * from './components/toggle-button/toggle-button.js';\nexport * from './components/toggle-button/toggle-icon-button.js';\nexport * from './components/toggle-button/toggle-button-group.js';\nexport * from './components/file-trigger.js';\n\nexport * from './components/spacing/box/box.js';\nexport * from './components/spacing/stack/stack.js';\n\nexport * from './components/typography/text.js';\nexport * from './components/typography/link.js';\n\nexport type { ForegroundTone } from './utils/style/types.js';\n\nexport type {\n CollectionItem,\n Direction,\n FieldError,\n HoverEvent,\n Key,\n Selection,\n PressEvent,\n RouterConfig,\n Href,\n RouterOptions,\n ValidationResult,\n} from './components/types.js';\nexport type { Spacing, Responsive } from './components/spacing/types.js';\nexport type { StyleProps } from './with-style-props.js';\n\nexport * from './providers/ssr/ssr-provider.js';\nexport * from './providers/router/router-provider.js';\n\nexport * from './components/internal/x-button/x-button.js';\n\nexport * from './utils/use-is-mobile.js';\n\n// Unfinished exports below\nexport * from './components/visually-hidden/visually-hidden.js';\nexport * from './components/file-picker/file-picker.js';\nexport * from './components/container/container.js';\nexport * from './components/toast/toast-region.js';\nexport { UNSTABLE_toastQueue, type UNSTABLE_ToastQueue } from './components/toast/toast-queue.js';\nexport type { UNSTABLE_ToastOptions } from './components/toast/types.js';\nexport * from './components/stepper/stepper.js';\nexport * from './components/stepper/stepper-item.js';\nexport type { StepperStatus } from './components/stepper/types.js';\nexport * from './components/app-shell/app-shell.js';\nexport * from './components/app-header/side-nav.js';\nexport * from './components/hidden/hidden.js';\nexport * from './components/app-header/nav-button.js';\nexport * from './components/top-nav/top-nav.js';\nexport * from './components/page-layout/page-layout.js';\nexport * from './components/nav-list/nav-list.js';\n"]}