@raystack/apsara 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/v1/components/calendar/calendar.module.css.cjs +1 -1
- package/dist/v1/components/calendar/calendar.module.css.js +1 -1
- package/dist/v1/components/calendar/range-picker.cjs +25 -7
- package/dist/v1/components/calendar/range-picker.cjs.map +1 -1
- package/dist/v1/components/calendar/range-picker.d.ts +2 -1
- package/dist/v1/components/calendar/range-picker.d.ts.map +1 -1
- package/dist/v1/components/calendar/range-picker.js +25 -7
- package/dist/v1/components/calendar/range-picker.js.map +1 -1
- package/dist/v1/components/chip/chip.cjs +2 -2
- package/dist/v1/components/chip/chip.cjs.map +1 -1
- package/dist/v1/components/chip/chip.d.ts +2 -1
- package/dist/v1/components/chip/chip.d.ts.map +1 -1
- package/dist/v1/components/chip/chip.js +2 -2
- package/dist/v1/components/chip/chip.js.map +1 -1
- package/dist/v1/components/data-table/components/search.cjs +4 -3
- package/dist/v1/components/data-table/components/search.cjs.map +1 -1
- package/dist/v1/components/data-table/components/search.d.ts +1 -1
- package/dist/v1/components/data-table/components/search.d.ts.map +1 -1
- package/dist/v1/components/data-table/components/search.js +4 -3
- package/dist/v1/components/data-table/components/search.js.map +1 -1
- package/dist/v1/components/data-table/data-table.d.ts +1 -2
- package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
- package/dist/v1/components/dialog/dialog.cjs +4 -3
- package/dist/v1/components/dialog/dialog.cjs.map +1 -1
- package/dist/v1/components/dialog/dialog.d.ts +3 -2
- package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
- package/dist/v1/components/dialog/dialog.js +4 -3
- package/dist/v1/components/dialog/dialog.js.map +1 -1
- package/dist/v1/components/empty-state/empty-state.cjs +4 -1
- package/dist/v1/components/empty-state/empty-state.cjs.map +1 -1
- package/dist/v1/components/empty-state/empty-state.d.ts +3 -2
- package/dist/v1/components/empty-state/empty-state.d.ts.map +1 -1
- package/dist/v1/components/empty-state/empty-state.js +4 -1
- package/dist/v1/components/empty-state/empty-state.js.map +1 -1
- package/dist/v1/components/empty-state/empty-state.module.css.cjs +1 -1
- package/dist/v1/components/empty-state/empty-state.module.css.js +1 -1
- package/dist/v1/components/input-field/input-field.cjs +6 -5
- package/dist/v1/components/input-field/input-field.cjs.map +1 -1
- package/dist/v1/components/input-field/input-field.d.ts +1 -4
- package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
- package/dist/v1/components/input-field/input-field.js +6 -5
- package/dist/v1/components/input-field/input-field.js.map +1 -1
- package/dist/v1/components/search/search.cjs +5 -4
- package/dist/v1/components/search/search.cjs.map +1 -1
- package/dist/v1/components/search/search.d.ts +3 -6
- package/dist/v1/components/search/search.d.ts.map +1 -1
- package/dist/v1/components/search/search.js +5 -4
- package/dist/v1/components/search/search.js.map +1 -1
- package/dist/v1/components/sidebar/sidebar.cjs +12 -7
- package/dist/v1/components/sidebar/sidebar.cjs.map +1 -1
- package/dist/v1/components/sidebar/sidebar.d.ts +1 -0
- package/dist/v1/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/v1/components/sidebar/sidebar.js +13 -8
- package/dist/v1/components/sidebar/sidebar.js.map +1 -1
- package/dist/v1/components/text-area/text-area.cjs +2 -2
- package/dist/v1/components/text-area/text-area.cjs.map +1 -1
- package/dist/v1/components/text-area/text-area.d.ts.map +1 -1
- package/dist/v1/components/text-area/text-area.js +2 -2
- package/dist/v1/components/text-area/text-area.js.map +1 -1
- package/dist/v1/icons/assets/buildings-filled.svg.cjs +42 -0
- package/dist/v1/icons/assets/buildings-filled.svg.cjs.map +1 -0
- package/dist/v1/icons/assets/buildings-filled.svg.js +21 -0
- package/dist/v1/icons/assets/buildings-filled.svg.js.map +1 -0
- package/dist/v1/icons/index.cjs +2 -0
- package/dist/v1/icons/index.cjs.map +1 -1
- package/dist/v1/icons/index.d.ts +1 -0
- package/dist/v1/icons/index.d.ts.map +1 -1
- package/dist/v1/icons/index.js +1 -0
- package/dist/v1/icons/index.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,14 @@ var tooltip = require('../tooltip/tooltip.cjs');
|
|
|
8
8
|
var sidebar_module = require('./sidebar.module.css.cjs');
|
|
9
9
|
var clsx = require('../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.cjs');
|
|
10
10
|
|
|
11
|
+
const SidebarContext = React.createContext({ isCollapsed: false });
|
|
11
12
|
const root = index$1.cva(sidebar_module.default.root);
|
|
12
|
-
const SidebarRoot = React.forwardRef(({ className, position = "left", open, onOpenChange, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(tooltip.TooltipProvider, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? "expanded" : "collapsed", open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, asChild: true, children: jsxRuntime.jsxRuntimeExports.jsxs("aside", { children: [jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === "left" ? "right" : "left", asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidebar_module.default.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const SidebarRoot = React.forwardRef(({ className, position = "left", open, onOpenChange, hideCollapsedItemTooltip, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(SidebarContext.Provider, { value: { isCollapsed: !open, hideCollapsedItemTooltip }, children: jsxRuntime.jsxRuntimeExports.jsx(tooltip.TooltipProvider, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? "expanded" : "collapsed", open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, asChild: true, children: jsxRuntime.jsxRuntimeExports.jsxs("aside", { children: [jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === "left" ? "right" : "left", asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidebar_module.default.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
|
|
14
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
onOpenChange?.(!open);
|
|
17
|
+
}
|
|
18
|
+
} }) }), children] }) }) }) })));
|
|
18
19
|
const SidebarHeader = React.forwardRef(({ className, logo, title, onLogoClick, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs("div", { ref: ref, className: sidebar_module.default.header, role: "banner", ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidebar_module.default.logo, onClick: onLogoClick, role: onLogoClick ? "button" : undefined, tabIndex: onLogoClick ? 0 : undefined, onKeyDown: (e) => {
|
|
19
20
|
if (onLogoClick && (e.key === "Enter" || e.key === " ")) {
|
|
20
21
|
e.preventDefault();
|
|
@@ -23,7 +24,11 @@ const SidebarHeader = React.forwardRef(({ className, logo, title, onLogoClick, .
|
|
|
23
24
|
}, style: { cursor: onLogoClick ? "pointer" : undefined }, children: logo }), jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidebar_module.default.title, role: "heading", "aria-level": 1, children: title })] })));
|
|
24
25
|
const SidebarMain = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx("div", { ref: ref, className: sidebar_module.default.main, role: "group", "aria-label": "Main navigation", ...props, children: children })));
|
|
25
26
|
const SidebarFooter = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx("div", { ref: ref, className: sidebar_module.default.footer, role: "group", "aria-label": "Footer navigation", ...props, children: children })));
|
|
26
|
-
const SidebarItem = React.forwardRef(({ classNames, icon, children, active, disabled, ...props }, ref) =>
|
|
27
|
+
const SidebarItem = React.forwardRef(({ classNames, icon, children, active, disabled, ...props }, ref) => {
|
|
28
|
+
const { isCollapsed, hideCollapsedItemTooltip } = React.useContext(SidebarContext); // To prevent prop drillng
|
|
29
|
+
const itemContent = (jsxRuntime.jsxRuntimeExports.jsxs("a", { ref: ref, className: clsx.clsx(sidebar_module.default["nav-item"], classNames?.root), "data-active": active, "data-disabled": disabled, role: "menuitem", "aria-current": active ? "page" : undefined, "aria-disabled": disabled, ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("span", { className: clsx.clsx(sidebar_module.default["nav-icon"], classNames?.icon), "aria-hidden": "true", children: icon }), jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidebar_module.default["nav-text"], children: children })] }));
|
|
30
|
+
return (isCollapsed && !hideCollapsedItemTooltip) ? (jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: children, side: "right", children: itemContent })) : itemContent;
|
|
31
|
+
});
|
|
27
32
|
const SidebarNavigationGroup = React.forwardRef(({ className, name, icon, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs("section", { ref: ref, className: className, "aria-label": name, ...props, children: [jsxRuntime.jsxRuntimeExports.jsxs("div", { className: sidebar_module.default["nav-group-header"], children: [icon && jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidebar_module.default["nav-icon"], children: icon }), jsxRuntime.jsxRuntimeExports.jsx("span", { className: sidebar_module.default["nav-group-name"], children: name })] }), jsxRuntime.jsxRuntimeExports.jsx("div", { className: sidebar_module.default["nav-group-items"], role: "list", children: children })] })));
|
|
28
33
|
SidebarRoot.displayName = "Sidebar.Root";
|
|
29
34
|
SidebarHeader.displayName = "Sidebar.Header";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.cjs","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"sourcesContent":["import * as Collapsible from \"@radix-ui/react-collapsible\";\nimport { cva } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n ComponentRef,\n forwardRef,\n ReactNode,\n} from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidebar.module.css\";\nimport clsx from \"clsx\";\n\nconst root = cva(styles.root);\n\ninterface SidebarProps\n extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: \"left\" | \"right\";\n}\n\ninterface SidebarHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n}\n\ninterface SidebarItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n disabled?: boolean;\n classNames?: {\n root?: string;\n icon?: string;\n text?: string;\n };\n}\n\ninterface SidebarFooterProps extends ComponentPropsWithoutRef<\"div\"> {}\n\ninterface SidebarNavigationGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n name: string;\n icon?: ReactNode;\n}\n\nconst SidebarRoot = forwardRef<\n ComponentRef<typeof Collapsible.Root>,\n SidebarProps\n>(\n (\n { className, position = \"left\", open, onOpenChange, children, ...props },\n ref\n ) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? \"expanded\" : \"collapsed\"}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n asChild\n >\n <aside>\n <Tooltip\n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === \"left\" ? \"right\" : \"left\"}\n asChild\n >\n <div\n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n </aside>\n </Collapsible.Root>\n </TooltipProvider>\n )\n);\n\nconst SidebarHeader = forwardRef<HTMLDivElement, SidebarHeaderProps>(\n ({ className, logo, title, onLogoClick, ...props }, ref) => (\n <div ref={ref} className={styles.header} role=\"banner\" {...props}>\n <div\n className={styles.logo}\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === \"Enter\" || e.key === \" \")) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? \"pointer\" : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>\n {title}\n </div>\n </div>\n )\n);\n\nconst SidebarMain = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<\"div\">>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarFooter = forwardRef<HTMLDivElement, SidebarFooterProps>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarItem = forwardRef<HTMLAnchorElement, SidebarItemProps>(\n ({ classNames, icon, children, active, disabled, ...props }, ref) => (\n <a\n ref={ref}\n className={clsx(styles[\"nav-item\"], classNames?.root)}\n data-active={active}\n data-disabled={disabled}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n aria-disabled={disabled}\n {...props}\n >\n <span\n className={clsx(styles[\"nav-icon\"], classNames?.icon)}\n aria-hidden=\"true\"\n >\n {icon}\n </span>\n <span className={styles[\"nav-text\"]}>{children}</span>\n </a>\n )\n);\n\nconst SidebarNavigationGroup = forwardRef<\n HTMLElement,\n SidebarNavigationGroupProps\n>(({ className, name, icon, children, ...props }, ref) => (\n <section ref={ref} className={className} aria-label={name} {...props}>\n <div className={styles[\"nav-group-header\"]}>\n {icon && <span className={styles[\"nav-icon\"]}>{icon}</span>}\n <span className={styles[\"nav-group-name\"]}>{name}</span>\n </div>\n <div className={styles[\"nav-group-items\"]} role=\"list\">\n {children}\n </div>\n </section>\n));\n\nSidebarRoot.displayName = \"Sidebar.Root\";\nSidebarHeader.displayName = \"Sidebar.Header\";\nSidebarMain.displayName = \"Sidebar.Main\";\nSidebarFooter.displayName = \"Sidebar.Footer\";\nSidebarItem.displayName = \"Sidebar.Item\";\nSidebarNavigationGroup.displayName = \"Sidebar.Group\";\n\nexport const Sidebar = Object.assign(SidebarRoot, {\n Header: SidebarHeader,\n Main: SidebarMain,\n Footer: SidebarFooter,\n Item: SidebarItem,\n Group: SidebarNavigationGroup,\n});\n"],"names":["cva","styles","forwardRef","_jsx","TooltipProvider","Collapsible.Root","_jsxs","Tooltip","clsx"],"mappings":";;;;;;;;;;AAaA,MAAM,IAAI,GAAGA,WAAG,CAACC,sBAAM,CAAC,IAAI,CAAC,CAAC;AA+B9B,MAAM,WAAW,GAAGC,gBAAU,CAI5B,CACE,EAAE,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EACxE,GAAG,MAEHC,gCAAC,CAAAC,uBAAe,cACdD,gCAAC,CAAAE,UAAgB,IACf,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,EACf,eAAA,EAAA,QAAQ,gBACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAoB,mBAChB,IAAI,EACnB,IAAI,EAAC,YAAY,EACb,GAAA,KAAK,EACT,OAAO,EAEP,IAAA,EAAA,QAAA,EAAAC,iCA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AI,EAAA,CAAQ,IACpD,EACNE,gCAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEF,sBAAM,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAC,MAAM,EACnD,QAAA,EAAA,QAAQ,GACL,CACE,EAAA,CAAA,CACX,CAAC,CAAC;AAEH,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,sBAAsB,CAAC,WAAW,GAAG,eAAe,CAAC;MAExC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AAChD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,sBAAsB;AAC9B,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"sidebar.cjs","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"sourcesContent":["import * as Collapsible from \"@radix-ui/react-collapsible\";\nimport { cva } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n ComponentRef,\n forwardRef,\n ReactNode,\n createContext,\n useContext\n} from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidebar.module.css\";\nimport clsx from \"clsx\";\n\ninterface SidebarContextValue {\n isCollapsed: boolean;\n hideCollapsedItemTooltip?: boolean;\n}\n\nconst SidebarContext = createContext<SidebarContextValue>({ isCollapsed: false });\n\nconst root = cva(styles.root);\n\ninterface SidebarProps\n extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: \"left\" | \"right\";\n hideCollapsedItemTooltip?: boolean;\n}\n\ninterface SidebarHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n}\n\ninterface SidebarItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n disabled?: boolean;\n classNames?: {\n root?: string;\n icon?: string;\n text?: string;\n };\n}\n\ninterface SidebarFooterProps extends ComponentPropsWithoutRef<\"div\"> {}\n\ninterface SidebarNavigationGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n name: string;\n icon?: ReactNode;\n}\n\nconst SidebarRoot = forwardRef<\n ComponentRef<typeof Collapsible.Root>,\n SidebarProps\n>(\n (\n { className, position = \"left\", open, onOpenChange, hideCollapsedItemTooltip, children, ...props },\n ref\n ) => (\n <SidebarContext.Provider value={{ isCollapsed: !open, hideCollapsedItemTooltip }}>\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? \"expanded\" : \"collapsed\"}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n asChild\n >\n <aside>\n <Tooltip\n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === \"left\" ? \"right\" : \"left\"}\n asChild\n >\n <div\n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n </aside>\n </Collapsible.Root>\n </TooltipProvider>\n </SidebarContext.Provider>\n )\n);\n\nconst SidebarHeader = forwardRef<HTMLDivElement, SidebarHeaderProps>(\n ({ className, logo, title, onLogoClick, ...props }, ref) => (\n <div ref={ref} className={styles.header} role=\"banner\" {...props}>\n <div\n className={styles.logo}\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === \"Enter\" || e.key === \" \")) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? \"pointer\" : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>\n {title}\n </div>\n </div>\n )\n);\n\nconst SidebarMain = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<\"div\">>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarFooter = forwardRef<HTMLDivElement, SidebarFooterProps>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarItem = forwardRef<HTMLAnchorElement, SidebarItemProps>(\n ({ classNames, icon, children, active, disabled, ...props }, ref) => {\n const { isCollapsed, hideCollapsedItemTooltip } = useContext(SidebarContext);// To prevent prop drillng\n \n const itemContent = (\n <a\n ref={ref}\n className={clsx(styles[\"nav-item\"], classNames?.root)}\n data-active={active}\n data-disabled={disabled}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n aria-disabled={disabled}\n {...props}\n >\n <span\n className={clsx(styles[\"nav-icon\"], classNames?.icon)}\n aria-hidden=\"true\"\n >\n {icon}\n </span>\n <span className={styles[\"nav-text\"]}>{children}</span>\n </a>\n );\n\n return (isCollapsed && !hideCollapsedItemTooltip) ? (\n <Tooltip message={children} side=\"right\">\n {itemContent}\n </Tooltip>\n ) : itemContent;\n }\n);\n\nconst SidebarNavigationGroup = forwardRef<\n HTMLElement,\n SidebarNavigationGroupProps\n>(({ className, name, icon, children, ...props }, ref) => (\n <section ref={ref} className={className} aria-label={name} {...props}>\n <div className={styles[\"nav-group-header\"]}>\n {icon && <span className={styles[\"nav-icon\"]}>{icon}</span>}\n <span className={styles[\"nav-group-name\"]}>{name}</span>\n </div>\n <div className={styles[\"nav-group-items\"]} role=\"list\">\n {children}\n </div>\n </section>\n));\n\nSidebarRoot.displayName = \"Sidebar.Root\";\nSidebarHeader.displayName = \"Sidebar.Header\";\nSidebarMain.displayName = \"Sidebar.Main\";\nSidebarFooter.displayName = \"Sidebar.Footer\";\nSidebarItem.displayName = \"Sidebar.Item\";\nSidebarNavigationGroup.displayName = \"Sidebar.Group\";\n\nexport const Sidebar = Object.assign(SidebarRoot, {\n Header: SidebarHeader,\n Main: SidebarMain,\n Footer: SidebarFooter,\n Item: SidebarItem,\n Group: SidebarNavigationGroup,\n});\n"],"names":["createContext","cva","styles","forwardRef","_jsx","TooltipProvider","Collapsible.Root","_jsxs","Tooltip","useContext","clsx"],"mappings":";;;;;;;;;;AAoBA,MAAM,cAAc,GAAGA,mBAAa,CAAsB,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;AAElF,MAAM,IAAI,GAAGC,WAAG,CAACC,sBAAM,CAAC,IAAI,CAAC,CAAC;AAgC9B,MAAM,WAAW,GAAGC,gBAAU,CAI5B,CACE,EAAE,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,wBAAwB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAClG,GAAG,MAEHC,gCAAC,CAAA,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,YAC9EA,gCAAC,CAAAC,uBAAe,cACdD,gCAAC,CAAAE,UAAgB,EAAA,EACf,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,eAAA,EACf,QAAQ,EACX,YAAA,EAAA,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAAA,YAAA,EACf,oBAAoB,EAAA,e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, ReactNode } from "react";
|
|
3
3
|
interface SidebarProps extends ComponentPropsWithoutRef<typeof Collapsible.Root> {
|
|
4
4
|
position?: "left" | "right";
|
|
5
|
+
hideCollapsedItemTooltip?: boolean;
|
|
5
6
|
}
|
|
6
7
|
interface SidebarHeaderProps extends ComponentPropsWithoutRef<"div"> {
|
|
7
8
|
logo: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EACL,wBAAwB,EAGxB,SAAS,
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,6BAA6B,CAAC;AAE3D,OAAO,EACL,wBAAwB,EAGxB,SAAS,EAGV,MAAM,OAAO,CAAC;AAef,UAAU,YACR,SAAQ,wBAAwB,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC;IACzD,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,UAAU,kBAAmB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IAClE,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,UAAU,gBAAiB,SAAQ,wBAAwB,CAAC,GAAG,CAAC;IAC9D,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,UAAU,kBAAmB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAEvE,UAAU,2BAA4B,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAiKD,eAAO,MAAM,OAAO;;;;;;CAMlB,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
2
|
import { Root } from '../../node_modules/.pnpm/@radix-ui_react-collapsible@1.1.2_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18._hjslo7xm5vmo3b4sx344jkbtcq/node_modules/@radix-ui/react-collapsible/dist/index.js';
|
|
3
3
|
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
4
|
+
import { createContext, forwardRef, useContext } from 'react';
|
|
5
5
|
import { TooltipProvider, Tooltip } from '../tooltip/tooltip.js';
|
|
6
6
|
import styles from './sidebar.module.css.js';
|
|
7
7
|
import { clsx } from '../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js';
|
|
8
8
|
|
|
9
|
+
const SidebarContext = createContext({ isCollapsed: false });
|
|
9
10
|
const root = cva(styles.root);
|
|
10
|
-
const SidebarRoot = forwardRef(({ className, position = "left", open, onOpenChange, children, ...props }, ref) => (jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsx(Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? "expanded" : "collapsed", open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, asChild: true, children: jsxRuntimeExports.jsxs("aside", { children: [jsxRuntimeExports.jsx(Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === "left" ? "right" : "left", asChild: true, children: jsxRuntimeExports.jsx("div", { className: styles.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const SidebarRoot = forwardRef(({ className, position = "left", open, onOpenChange, hideCollapsedItemTooltip, children, ...props }, ref) => (jsxRuntimeExports.jsx(SidebarContext.Provider, { value: { isCollapsed: !open, hideCollapsedItemTooltip }, children: jsxRuntimeExports.jsx(TooltipProvider, { children: jsxRuntimeExports.jsx(Root, { ref: ref, className: root({ className }), "data-position": position, "data-state": open ? "expanded" : "collapsed", open: open, onOpenChange: onOpenChange, "aria-label": "Navigation Sidebar", "aria-expanded": open, role: "navigation", ...props, asChild: true, children: jsxRuntimeExports.jsxs("aside", { children: [jsxRuntimeExports.jsx(Tooltip, { message: open ? "Click to collapse" : "Click to expand", side: position === "left" ? "right" : "left", asChild: true, children: jsxRuntimeExports.jsx("div", { className: styles.resizeHandle, onClick: () => onOpenChange?.(!open), role: "button", tabIndex: 0, "aria-label": open ? "Collapse sidebar" : "Expand sidebar", onKeyDown: (e) => {
|
|
12
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
13
|
+
e.preventDefault();
|
|
14
|
+
onOpenChange?.(!open);
|
|
15
|
+
}
|
|
16
|
+
} }) }), children] }) }) }) })));
|
|
16
17
|
const SidebarHeader = forwardRef(({ className, logo, title, onLogoClick, ...props }, ref) => (jsxRuntimeExports.jsxs("div", { ref: ref, className: styles.header, role: "banner", ...props, children: [jsxRuntimeExports.jsx("div", { className: styles.logo, onClick: onLogoClick, role: onLogoClick ? "button" : undefined, tabIndex: onLogoClick ? 0 : undefined, onKeyDown: (e) => {
|
|
17
18
|
if (onLogoClick && (e.key === "Enter" || e.key === " ")) {
|
|
18
19
|
e.preventDefault();
|
|
@@ -21,7 +22,11 @@ const SidebarHeader = forwardRef(({ className, logo, title, onLogoClick, ...prop
|
|
|
21
22
|
}, style: { cursor: onLogoClick ? "pointer" : undefined }, children: logo }), jsxRuntimeExports.jsx("div", { className: styles.title, role: "heading", "aria-level": 1, children: title })] })));
|
|
22
23
|
const SidebarMain = forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsx("div", { ref: ref, className: styles.main, role: "group", "aria-label": "Main navigation", ...props, children: children })));
|
|
23
24
|
const SidebarFooter = forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsx("div", { ref: ref, className: styles.footer, role: "group", "aria-label": "Footer navigation", ...props, children: children })));
|
|
24
|
-
const SidebarItem = forwardRef(({ classNames, icon, children, active, disabled, ...props }, ref) =>
|
|
25
|
+
const SidebarItem = forwardRef(({ classNames, icon, children, active, disabled, ...props }, ref) => {
|
|
26
|
+
const { isCollapsed, hideCollapsedItemTooltip } = useContext(SidebarContext); // To prevent prop drillng
|
|
27
|
+
const itemContent = (jsxRuntimeExports.jsxs("a", { ref: ref, className: clsx(styles["nav-item"], classNames?.root), "data-active": active, "data-disabled": disabled, role: "menuitem", "aria-current": active ? "page" : undefined, "aria-disabled": disabled, ...props, children: [jsxRuntimeExports.jsx("span", { className: clsx(styles["nav-icon"], classNames?.icon), "aria-hidden": "true", children: icon }), jsxRuntimeExports.jsx("span", { className: styles["nav-text"], children: children })] }));
|
|
28
|
+
return (isCollapsed && !hideCollapsedItemTooltip) ? (jsxRuntimeExports.jsx(Tooltip, { message: children, side: "right", children: itemContent })) : itemContent;
|
|
29
|
+
});
|
|
25
30
|
const SidebarNavigationGroup = forwardRef(({ className, name, icon, children, ...props }, ref) => (jsxRuntimeExports.jsxs("section", { ref: ref, className: className, "aria-label": name, ...props, children: [jsxRuntimeExports.jsxs("div", { className: styles["nav-group-header"], children: [icon && jsxRuntimeExports.jsx("span", { className: styles["nav-icon"], children: icon }), jsxRuntimeExports.jsx("span", { className: styles["nav-group-name"], children: name })] }), jsxRuntimeExports.jsx("div", { className: styles["nav-group-items"], role: "list", children: children })] })));
|
|
26
31
|
SidebarRoot.displayName = "Sidebar.Root";
|
|
27
32
|
SidebarHeader.displayName = "Sidebar.Header";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.js","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"sourcesContent":["import * as Collapsible from \"@radix-ui/react-collapsible\";\nimport { cva } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n ComponentRef,\n forwardRef,\n ReactNode,\n} from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidebar.module.css\";\nimport clsx from \"clsx\";\n\nconst root = cva(styles.root);\n\ninterface SidebarProps\n extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: \"left\" | \"right\";\n}\n\ninterface SidebarHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n}\n\ninterface SidebarItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n disabled?: boolean;\n classNames?: {\n root?: string;\n icon?: string;\n text?: string;\n };\n}\n\ninterface SidebarFooterProps extends ComponentPropsWithoutRef<\"div\"> {}\n\ninterface SidebarNavigationGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n name: string;\n icon?: ReactNode;\n}\n\nconst SidebarRoot = forwardRef<\n ComponentRef<typeof Collapsible.Root>,\n SidebarProps\n>(\n (\n { className, position = \"left\", open, onOpenChange, children, ...props },\n ref\n ) => (\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? \"expanded\" : \"collapsed\"}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n asChild\n >\n <aside>\n <Tooltip\n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === \"left\" ? \"right\" : \"left\"}\n asChild\n >\n <div\n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n </aside>\n </Collapsible.Root>\n </TooltipProvider>\n )\n);\n\nconst SidebarHeader = forwardRef<HTMLDivElement, SidebarHeaderProps>(\n ({ className, logo, title, onLogoClick, ...props }, ref) => (\n <div ref={ref} className={styles.header} role=\"banner\" {...props}>\n <div\n className={styles.logo}\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === \"Enter\" || e.key === \" \")) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? \"pointer\" : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>\n {title}\n </div>\n </div>\n )\n);\n\nconst SidebarMain = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<\"div\">>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarFooter = forwardRef<HTMLDivElement, SidebarFooterProps>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarItem = forwardRef<HTMLAnchorElement, SidebarItemProps>(\n ({ classNames, icon, children, active, disabled, ...props }, ref) => (\n <a\n ref={ref}\n className={clsx(styles[\"nav-item\"], classNames?.root)}\n data-active={active}\n data-disabled={disabled}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n aria-disabled={disabled}\n {...props}\n >\n <span\n className={clsx(styles[\"nav-icon\"], classNames?.icon)}\n aria-hidden=\"true\"\n >\n {icon}\n </span>\n <span className={styles[\"nav-text\"]}>{children}</span>\n </a>\n )\n);\n\nconst SidebarNavigationGroup = forwardRef<\n HTMLElement,\n SidebarNavigationGroupProps\n>(({ className, name, icon, children, ...props }, ref) => (\n <section ref={ref} className={className} aria-label={name} {...props}>\n <div className={styles[\"nav-group-header\"]}>\n {icon && <span className={styles[\"nav-icon\"]}>{icon}</span>}\n <span className={styles[\"nav-group-name\"]}>{name}</span>\n </div>\n <div className={styles[\"nav-group-items\"]} role=\"list\">\n {children}\n </div>\n </section>\n));\n\nSidebarRoot.displayName = \"Sidebar.Root\";\nSidebarHeader.displayName = \"Sidebar.Header\";\nSidebarMain.displayName = \"Sidebar.Main\";\nSidebarFooter.displayName = \"Sidebar.Footer\";\nSidebarItem.displayName = \"Sidebar.Item\";\nSidebarNavigationGroup.displayName = \"Sidebar.Group\";\n\nexport const Sidebar = Object.assign(SidebarRoot, {\n Header: SidebarHeader,\n Main: SidebarMain,\n Footer: SidebarFooter,\n Item: SidebarItem,\n Group: SidebarNavigationGroup,\n});\n"],"names":["_jsx","Collapsible.Root","_jsxs"],"mappings":";;;;;;;;AAaA,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AA+B9B,MAAM,WAAW,GAAG,UAAU,CAI5B,CACE,EAAE,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EACxE,GAAG,MAEHA,qBAAC,CAAA,eAAe,cACdA,qBAAC,CAAAC,IAAgB,IACf,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,EACf,eAAA,EAAA,QAAQ,gBACX,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EACf,YAAA,EAAA,oBAAo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SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAA,QAAA,EAAG,IAAI,EAAA,CAAQ,IACpD,EACNA,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAC,MAAM,EACnD,QAAA,EAAA,QAAQ,GACL,CACE,EAAA,CAAA,CACX,CAAC,CAAC;AAEH,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,sBAAsB,CAAC,WAAW,GAAG,eAAe,CAAC;MAExC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AAChD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,sBAAsB;AAC9B,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"sidebar.js","sources":["../../../../v1/components/sidebar/sidebar.tsx"],"sourcesContent":["import * as Collapsible from \"@radix-ui/react-collapsible\";\nimport { cva } from \"class-variance-authority\";\nimport {\n ComponentPropsWithoutRef,\n ComponentRef,\n forwardRef,\n ReactNode,\n createContext,\n useContext\n} from \"react\";\n\nimport { Tooltip, TooltipProvider } from \"../tooltip\";\nimport styles from \"./sidebar.module.css\";\nimport clsx from \"clsx\";\n\ninterface SidebarContextValue {\n isCollapsed: boolean;\n hideCollapsedItemTooltip?: boolean;\n}\n\nconst SidebarContext = createContext<SidebarContextValue>({ isCollapsed: false });\n\nconst root = cva(styles.root);\n\ninterface SidebarProps\n extends ComponentPropsWithoutRef<typeof Collapsible.Root> {\n position?: \"left\" | \"right\";\n hideCollapsedItemTooltip?: boolean;\n}\n\ninterface SidebarHeaderProps extends ComponentPropsWithoutRef<\"div\"> {\n logo: ReactNode;\n title: string;\n onLogoClick?: () => void;\n}\n\ninterface SidebarItemProps extends ComponentPropsWithoutRef<\"a\"> {\n icon: ReactNode;\n active?: boolean;\n disabled?: boolean;\n classNames?: {\n root?: string;\n icon?: string;\n text?: string;\n };\n}\n\ninterface SidebarFooterProps extends ComponentPropsWithoutRef<\"div\"> {}\n\ninterface SidebarNavigationGroupProps extends ComponentPropsWithoutRef<\"div\"> {\n name: string;\n icon?: ReactNode;\n}\n\nconst SidebarRoot = forwardRef<\n ComponentRef<typeof Collapsible.Root>,\n SidebarProps\n>(\n (\n { className, position = \"left\", open, onOpenChange, hideCollapsedItemTooltip, children, ...props },\n ref\n ) => (\n <SidebarContext.Provider value={{ isCollapsed: !open, hideCollapsedItemTooltip }}>\n <TooltipProvider>\n <Collapsible.Root\n ref={ref}\n className={root({ className })}\n data-position={position}\n data-state={open ? \"expanded\" : \"collapsed\"}\n open={open}\n onOpenChange={onOpenChange}\n aria-label=\"Navigation Sidebar\"\n aria-expanded={open}\n role=\"navigation\"\n {...props}\n asChild\n >\n <aside>\n <Tooltip\n message={open ? \"Click to collapse\" : \"Click to expand\"}\n side={position === \"left\" ? \"right\" : \"left\"}\n asChild\n >\n <div\n className={styles.resizeHandle}\n onClick={() => onOpenChange?.(!open)}\n role=\"button\"\n tabIndex={0}\n aria-label={open ? \"Collapse sidebar\" : \"Expand sidebar\"}\n onKeyDown={(e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpenChange?.(!open);\n }\n }}\n />\n </Tooltip>\n {children}\n </aside>\n </Collapsible.Root>\n </TooltipProvider>\n </SidebarContext.Provider>\n )\n);\n\nconst SidebarHeader = forwardRef<HTMLDivElement, SidebarHeaderProps>(\n ({ className, logo, title, onLogoClick, ...props }, ref) => (\n <div ref={ref} className={styles.header} role=\"banner\" {...props}>\n <div\n className={styles.logo}\n onClick={onLogoClick}\n role={onLogoClick ? \"button\" : undefined}\n tabIndex={onLogoClick ? 0 : undefined}\n onKeyDown={(e) => {\n if (onLogoClick && (e.key === \"Enter\" || e.key === \" \")) {\n e.preventDefault();\n onLogoClick();\n }\n }}\n style={{ cursor: onLogoClick ? \"pointer\" : undefined }}\n >\n {logo}\n </div>\n <div className={styles.title} role=\"heading\" aria-level={1}>\n {title}\n </div>\n </div>\n )\n);\n\nconst SidebarMain = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<\"div\">>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.main}\n role=\"group\"\n aria-label=\"Main navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarFooter = forwardRef<HTMLDivElement, SidebarFooterProps>(\n ({ className, children, ...props }, ref) => (\n <div\n ref={ref}\n className={styles.footer}\n role=\"group\"\n aria-label=\"Footer navigation\"\n {...props}\n >\n {children}\n </div>\n )\n);\n\nconst SidebarItem = forwardRef<HTMLAnchorElement, SidebarItemProps>(\n ({ classNames, icon, children, active, disabled, ...props }, ref) => {\n const { isCollapsed, hideCollapsedItemTooltip } = useContext(SidebarContext);// To prevent prop drillng\n \n const itemContent = (\n <a\n ref={ref}\n className={clsx(styles[\"nav-item\"], classNames?.root)}\n data-active={active}\n data-disabled={disabled}\n role=\"menuitem\"\n aria-current={active ? \"page\" : undefined}\n aria-disabled={disabled}\n {...props}\n >\n <span\n className={clsx(styles[\"nav-icon\"], classNames?.icon)}\n aria-hidden=\"true\"\n >\n {icon}\n </span>\n <span className={styles[\"nav-text\"]}>{children}</span>\n </a>\n );\n\n return (isCollapsed && !hideCollapsedItemTooltip) ? (\n <Tooltip message={children} side=\"right\">\n {itemContent}\n </Tooltip>\n ) : itemContent;\n }\n);\n\nconst SidebarNavigationGroup = forwardRef<\n HTMLElement,\n SidebarNavigationGroupProps\n>(({ className, name, icon, children, ...props }, ref) => (\n <section ref={ref} className={className} aria-label={name} {...props}>\n <div className={styles[\"nav-group-header\"]}>\n {icon && <span className={styles[\"nav-icon\"]}>{icon}</span>}\n <span className={styles[\"nav-group-name\"]}>{name}</span>\n </div>\n <div className={styles[\"nav-group-items\"]} role=\"list\">\n {children}\n </div>\n </section>\n));\n\nSidebarRoot.displayName = \"Sidebar.Root\";\nSidebarHeader.displayName = \"Sidebar.Header\";\nSidebarMain.displayName = \"Sidebar.Main\";\nSidebarFooter.displayName = \"Sidebar.Footer\";\nSidebarItem.displayName = \"Sidebar.Item\";\nSidebarNavigationGroup.displayName = \"Sidebar.Group\";\n\nexport const Sidebar = Object.assign(SidebarRoot, {\n Header: SidebarHeader,\n Main: SidebarMain,\n Footer: SidebarFooter,\n Item: SidebarItem,\n Group: SidebarNavigationGroup,\n});\n"],"names":["_jsx","Collapsible.Root","_jsxs"],"mappings":";;;;;;;;AAoBA,MAAM,cAAc,GAAG,aAAa,CAAsB,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;AAElF,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAgC9B,MAAM,WAAW,GAAG,UAAU,CAI5B,CACE,EAAE,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,wBAAwB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAClG,GAAG,MAEHA,qBAAC,CAAA,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,wBAAwB,EAAE,YAC9EA,qBAAC,CAAA,eAAe,cACdA,qBAAC,CAAAC,IAAgB,EAAA,EACf,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,EAAA,eAAA,EACf,QAAQ,EACX,YAAA,EAAA,IAAI,GAAG,UAAU,GAAG,WAAW,EAC3C,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAAA,YAAA,EACf,oBAAoB,EAAA,eAAA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A,EAAA,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,gBAAc,IAAI,EAAA,GAAM,KAAK,EAClE,QAAA,EAAA,CAAAA,sBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EACvC,QAAA,EAAA,CAAA,IAAI,IAAIF,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAA,QAAA,EAAG,IAAI,EAAA,CAAQ,EAC3DA,qBAAM,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAA,QAAA,EAAG,IAAI,EAAA,CAAQ,IACpD,EACNA,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAC,MAAM,EACnD,QAAA,EAAA,QAAQ,GACL,CACE,EAAA,CAAA,CACX,CAAC,CAAC;AAEH,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,aAAa,CAAC,WAAW,GAAG,gBAAgB,CAAC;AAC7C,WAAW,CAAC,WAAW,GAAG,cAAc,CAAC;AACzC,sBAAsB,CAAC,WAAW,GAAG,eAAe,CAAC;MAExC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;AAChD,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,MAAM,EAAE,aAAa;AACrB,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,KAAK,EAAE,sBAAsB;AAC9B,CAAA;;;;"}
|
|
@@ -34,8 +34,8 @@ const textArea = index.cva(textArea_module.default.textarea, {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
const TextArea = React__namespace.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, ...props }, ref) => {
|
|
38
|
-
return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.container, style: { width }, children: [label && (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.labelContainer, children: [jsxRuntime.jsxRuntimeExports.jsxs("label", { className: clsx.clsx(textArea_module.default.label, disabled && textArea_module.default.labelDisabled), children: [label, !required && jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: infoTooltip, side: "right", children: jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.helpIcon, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.InfoCircledIcon, {}) }) }))] })), jsxRuntime.jsxRuntimeExports.jsx("textarea", { className: index.cx(textArea({ error }), disabled && textArea_module.default.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, ...props }), helperText && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: clsx.clsx(textArea_module.default.helperText, error && textArea_module.default.helperTextError, disabled && textArea_module.default.helperTextDisabled), children: helperText }))] }));
|
|
37
|
+
const TextArea = React__namespace.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, placeholder, ...props }, ref) => {
|
|
38
|
+
return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.container, style: { width }, children: [label && (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: textArea_module.default.labelContainer, children: [jsxRuntime.jsxRuntimeExports.jsxs("label", { className: clsx.clsx(textArea_module.default.label, disabled && textArea_module.default.labelDisabled), children: [label, !required && jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntime.jsxRuntimeExports.jsx(tooltip.Tooltip, { message: infoTooltip, side: "right", children: jsxRuntime.jsxRuntimeExports.jsx("span", { className: textArea_module.default.helpIcon, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.InfoCircledIcon, {}) }) }))] })), jsxRuntime.jsxRuntimeExports.jsx("textarea", { className: index.cx(textArea({ error }), disabled && textArea_module.default.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, placeholder: placeholder, ...props }), helperText && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: clsx.clsx(textArea_module.default.helperText, error && textArea_module.default.helperTextError, disabled && textArea_module.default.helperTextDisabled), children: helperText }))] }));
|
|
39
39
|
});
|
|
40
40
|
TextArea.displayName = "TextArea";
|
|
41
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.cjs","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["cva","styles","React","_jsxs","clsx","_jsx","Tooltip","InfoCircledIcon","cx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAEA,uBAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAGC,gBAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;
|
|
1
|
+
{"version":3,"file":"text-area.cjs","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, placeholder, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n placeholder={placeholder}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["cva","styles","React","_jsxs","clsx","_jsx","Tooltip","InfoCircledIcon","cx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAEA,uBAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAGC,gBAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,E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I,gCACE,CAAA,MAAA,EAAA,EAAA,SAAS,EAAED,SAAI,CACbH,uBAAM,CAAC,UAAU,EACjB,KAAK,IAAIA,uBAAM,CAAC,eAAe,EAC/B,QAAQ,IAAIA,uBAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../v1/components/text-area/text-area.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAa1D,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACpE;AAED,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../v1/components/text-area/text-area.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAa1D,MAAM,WAAW,aAAc,SAAQ,iBAAiB,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACpE;AAED,QAAA,MAAM,QAAQ,2FA+Cb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -13,8 +13,8 @@ const textArea = cva(styles.textarea, {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
const TextArea = React.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, ...props }, ref) => {
|
|
17
|
-
return (jsxRuntimeExports.jsxs("div", { className: styles.container, style: { width }, children: [label && (jsxRuntimeExports.jsxs("div", { className: styles.labelContainer, children: [jsxRuntimeExports.jsxs("label", { className: clsx(styles.label, disabled && styles.labelDisabled), children: [label, !required && jsxRuntimeExports.jsx("span", { className: styles.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntimeExports.jsx(Tooltip, { message: infoTooltip, side: "right", children: jsxRuntimeExports.jsx("span", { className: styles.helpIcon, children: jsxRuntimeExports.jsx(InfoCircledIcon, {}) }) }))] })), jsxRuntimeExports.jsx("textarea", { className: cx(textArea({ error }), disabled && styles.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, ...props }), helperText && (jsxRuntimeExports.jsx("span", { className: clsx(styles.helperText, error && styles.helperTextError, disabled && styles.helperTextDisabled), children: helperText }))] }));
|
|
16
|
+
const TextArea = React.forwardRef(({ className, style, label, required, infoTooltip, helperText, error, disabled, width = "100%", value, onChange, placeholder, ...props }, ref) => {
|
|
17
|
+
return (jsxRuntimeExports.jsxs("div", { className: styles.container, style: { width }, children: [label && (jsxRuntimeExports.jsxs("div", { className: styles.labelContainer, children: [jsxRuntimeExports.jsxs("label", { className: clsx(styles.label, disabled && styles.labelDisabled), children: [label, !required && jsxRuntimeExports.jsx("span", { className: styles.optional, children: "(optional)" })] }), infoTooltip && (jsxRuntimeExports.jsx(Tooltip, { message: infoTooltip, side: "right", children: jsxRuntimeExports.jsx("span", { className: styles.helpIcon, children: jsxRuntimeExports.jsx(InfoCircledIcon, {}) }) }))] })), jsxRuntimeExports.jsx("textarea", { className: cx(textArea({ error }), disabled && styles.disabled, className), ref: ref, value: value, onChange: onChange, required: required, disabled: disabled, placeholder: placeholder, ...props }), helperText && (jsxRuntimeExports.jsx("span", { className: clsx(styles.helperText, error && styles.helperTextError, disabled && styles.helperTextDisabled), children: helperText }))] }));
|
|
18
18
|
});
|
|
19
19
|
TextArea.displayName = "TextArea";
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.js","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AASA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;AACF,CAAA,CAAC,CAAC;AAcH,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;
|
|
1
|
+
{"version":3,"file":"text-area.js","sources":["../../../../v1/components/text-area/text-area.tsx"],"sourcesContent":["import { InfoCircledIcon } from \"@radix-ui/react-icons\";\nimport { Tooltip } from \"../tooltip\";\nimport { cva, cx } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\n\nimport styles from \"./text-area.module.css\";\n\nconst textArea = cva(styles.textarea, {\n variants: {\n error: {\n true: styles.error\n }\n }\n});\n\nexport interface TextAreaProps extends PropsWithChildren<HTMLAttributes<HTMLTextAreaElement>> {\n label?: string;\n required?: boolean;\n infoTooltip?: string;\n helperText?: string;\n error?: boolean;\n disabled?: boolean;\n width?: string | number;\n value?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n}\n\nconst TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ className, style, label, required, infoTooltip, helperText, error, disabled, width = \"100%\", value, onChange, placeholder, ...props }, ref) => {\n return (\n <div className={styles.container} style={{ width }}>\n {label && (\n <div className={styles.labelContainer}>\n <label className={clsx(styles.label, disabled && styles.labelDisabled)}>\n {label}\n {!required && <span className={styles.optional}>(optional)</span>}\n </label>\n {infoTooltip && (\n <Tooltip message={infoTooltip} side=\"right\">\n <span className={styles.helpIcon}>\n <InfoCircledIcon />\n </span>\n </Tooltip>\n )}\n </div>\n )}\n <textarea\n className={cx(\n textArea({ error }),\n disabled && styles.disabled,\n className\n )}\n ref={ref}\n value={value}\n onChange={onChange}\n required={required}\n disabled={disabled}\n placeholder={placeholder}\n {...props}\n />\n {helperText && (\n <span \n className={clsx(\n styles.helperText, \n error && styles.helperTextError,\n disabled && styles.helperTextDisabled\n )}\n >\n {helperText}\n </span>\n )}\n </div>\n );\n }\n);\n\nTextArea.displayName = \"TextArea\";\n\nexport { TextArea };\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AASA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC,KAAK;AACnB,SAAA;AACF,KAAA;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ACZ,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EAAA,GACpB,KAAK,EACT,CAAA,EACD,UAAU,KACTA,qBACE,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,UAAU,EACjB,KAAK,IAAI,MAAM,CAAC,eAAe,EAC/B,QAAQ,IAAI,MAAM,CAAC,kBAAkB,CACtC,EAEA,QAAA,EAAA,UAAU,GACN,CACR,CAAA,EAAA,CACG,EACN;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
function _interopNamespaceDefault(e) {
|
|
6
|
+
var n = Object.create(null);
|
|
7
|
+
if (e) {
|
|
8
|
+
Object.keys(e).forEach(function (k) {
|
|
9
|
+
if (k !== 'default') {
|
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return e[k]; }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
n.default = e;
|
|
19
|
+
return Object.freeze(n);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
23
|
+
|
|
24
|
+
var _path;
|
|
25
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
26
|
+
var SvgBuildingsFilled = function SvgBuildingsFilled(props) {
|
|
27
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
width: 16,
|
|
30
|
+
height: 16,
|
|
31
|
+
fill: "none",
|
|
32
|
+
viewBox: "0 0 16 16"
|
|
33
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
34
|
+
fill: "currentColor",
|
|
35
|
+
fillRule: "evenodd",
|
|
36
|
+
d: "M.8 2.2a.6.6 0 0 1 .6-.6h8.4a.6.6 0 1 1 0 1.2h-.2v11a.6.6 0 0 1-.6.6H7.8a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 0-.6-.6h-2a.6.6 0 0 0-.6.6v2a.6.6 0 0 1-.6.6h-2a.6.6 0 1 1 0-1.2h.2V2.8h-.2a.6.6 0 0 1-.6-.6m2.4 2.2a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4zm2.8-2.8a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4zm4.6-2.4a.6.6 0 0 0-.6.6v8.2a.8.8 0 0 0 .8.8h3a.6.6 0 1 0 0-1.2h-.2V6h.2a.6.6 0 1 0 0-1.2zm.4 2.8a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4z",
|
|
37
|
+
clipRule: "evenodd"
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
exports.ReactComponent = SvgBuildingsFilled;
|
|
42
|
+
//# sourceMappingURL=buildings-filled.svg.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildings-filled.svg.cjs","sources":["../../../../v1/icons/assets/buildings-filled.svg"],"sourcesContent":["var img = \"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.800049 2.19998C0.800049 2.04085 0.863263 1.88823 0.975785 1.77571C1.08831 1.66319 1.24092 1.59998 1.40005 1.59998H9.80005C9.95918 1.59998 10.1118 1.66319 10.2243 1.77571C10.3368 1.88823 10.4 2.04085 10.4 2.19998C10.4 2.35911 10.3368 2.51172 10.2243 2.62424C10.1118 2.73676 9.95918 2.79998 9.80005 2.79998H9.60005V13.8C9.60005 13.9591 9.53683 14.1117 9.42431 14.2242C9.31179 14.3368 9.15918 14.4 9.00005 14.4H7.80005C7.64092 14.4 7.48831 14.3368 7.37578 14.2242C7.26326 14.1117 7.20005 13.9591 7.20005 13.8V11.8C7.20005 11.6408 7.13683 11.4882 7.02431 11.3757C6.91179 11.2632 6.75918 11.2 6.60005 11.2H4.60005C4.44092 11.2 4.28831 11.2632 4.17578 11.3757C4.06326 11.4882 4.00005 11.6408 4.00005 11.8V13.8C4.00005 13.9591 3.93683 14.1117 3.82431 14.2242C3.71179 14.3368 3.55918 14.4 3.40005 14.4H1.40005C1.24092 14.4 1.08831 14.3368 0.975785 14.2242C0.863263 14.1117 0.800049 13.9591 0.800049 13.8C0.800049 13.6408 0.863263 13.4882 0.975785 13.3757C1.08831 13.2632 1.24092 13.2 1.40005 13.2H1.60005V2.79998H1.40005C1.24092 2.79998 1.08831 2.73676 0.975785 2.62424C0.863263 2.51172 0.800049 2.35911 0.800049 2.19998ZM3.20005 4.39998C3.20005 4.29389 3.24219 4.19215 3.31721 4.11713C3.39222 4.04212 3.49396 3.99998 3.60005 3.99998H4.40005C4.50614 3.99998 4.60788 4.04212 4.68289 4.11713C4.75791 4.19215 4.80005 4.29389 4.80005 4.39998V5.19998C4.80005 5.30606 4.75791 5.4078 4.68289 5.48282C4.60788 5.55783 4.50614 5.59998 4.40005 5.59998H3.60005C3.49396 5.59998 3.39222 5.55783 3.31721 5.48282C3.24219 5.4078 3.20005 5.30606 3.20005 5.19998V4.39998ZM3.60005 7.19998C3.49396 7.19998 3.39222 7.24212 3.31721 7.31713C3.24219 7.39215 3.20005 7.49389 3.20005 7.59998V8.39998C3.20005 8.50606 3.24219 8.6078 3.31721 8.68282C3.39222 8.75783 3.49396 8.79998 3.60005 8.79998H4.40005C4.50614 8.79998 4.60788 8.75783 4.68289 8.68282C4.75791 8.6078 4.80005 8.50606 4.80005 8.39998V7.59998C4.80005 7.49389 4.75791 7.39215 4.68289 7.31713C4.60788 7.24212 4.50614 7.19998 4.40005 7.19998H3.60005ZM6.40005 4.39998C6.40005 4.29389 6.44219 4.19215 6.51721 4.11713C6.59222 4.04212 6.69396 3.99998 6.80005 3.99998H7.60005C7.70613 3.99998 7.80788 4.04212 7.88289 4.11713C7.95791 4.19215 8.00005 4.29389 8.00005 4.39998V5.19998C8.00005 5.30606 7.95791 5.4078 7.88289 5.48282C7.80788 5.55783 7.70613 5.59998 7.60005 5.59998H6.80005C6.69396 5.59998 6.59222 5.55783 6.51721 5.48282C6.44219 5.4078 6.40005 5.30606 6.40005 5.19998V4.39998ZM6.80005 7.19998C6.69396 7.19998 6.59222 7.24212 6.51721 7.31713C6.44219 7.39215 6.40005 7.49389 6.40005 7.59998V8.39998C6.40005 8.50606 6.44219 8.6078 6.51721 8.68282C6.59222 8.75783 6.69396 8.79998 6.80005 8.79998H7.60005C7.70613 8.79998 7.80788 8.75783 7.88289 8.68282C7.95791 8.6078 8.00005 8.50606 8.00005 8.39998V7.59998C8.00005 7.49389 7.95791 7.39215 7.88289 7.31713C7.80788 7.24212 7.70613 7.19998 7.60005 7.19998H6.80005ZM11.4 4.79998C11.2409 4.79998 11.0883 4.86319 10.9758 4.97571C10.8633 5.08823 10.8 5.24085 10.8 5.39998V13.6C10.8 13.8121 10.8843 14.0156 11.0344 14.1657C11.1844 14.3157 11.3879 14.4 11.6 14.4H14.6C14.7592 14.4 14.9118 14.3368 15.0243 14.2242C15.1368 14.1117 15.2 13.9591 15.2 13.8C15.2 13.6408 15.1368 13.4882 15.0243 13.3757C14.9118 13.2632 14.7592 13.2 14.6 13.2H14.4V5.99998H14.6C14.7592 5.99998 14.9118 5.93676 15.0243 5.82424C15.1368 5.71172 15.2 5.55911 15.2 5.39998C15.2 5.24085 15.1368 5.08823 15.0243 4.97571C14.9118 4.86319 14.7592 4.79998 14.6 4.79998H11.4ZM11.8 7.59998C11.8 7.49389 11.8422 7.39215 11.9172 7.31713C11.9922 7.24212 12.094 7.19998 12.2 7.19998H13C13.1061 7.19998 13.2079 7.24212 13.2829 7.31713C13.3579 7.39215 13.4 7.49389 13.4 7.59998V8.39998C13.4 8.50606 13.3579 8.6078 13.2829 8.68282C13.2079 8.75783 13.1061 8.79998 13 8.79998H12.2C12.094 8.79998 11.9922 8.75783 11.9172 8.68282C11.8422 8.6078 11.8 8.50606 11.8 8.39998V7.59998ZM12.2 10.4C12.094 10.4 11.9922 10.4421 11.9172 10.5171C11.8422 10.5921 11.8 10.6939 11.8 10.8V11.6C11.8 11.7061 11.8422 11.8078 11.9172 11.8828C11.9922 11.9578 12.094 12 12.2 12H13C13.1061 12 13.2079 11.9578 13.2829 11.8828C13.3579 11.8078 13.4 11.7061 13.4 11.6V10.8C13.4 10.6939 13.3579 10.5921 13.2829 10.5171C13.2079 10.4421 13.1061 10.4 13 10.4H12.2Z' fill='currentColor'/%3e%3c/svg%3e\";\n export default img;"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,KAAK,CAAC;AACV,SAAS,QAAQ,GAAG,EAA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(n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
|
+
var SvgBuildingsFilled = function SvgBuildingsFilled(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: 16,
|
|
9
|
+
height: 16,
|
|
10
|
+
fill: "none",
|
|
11
|
+
viewBox: "0 0 16 16"
|
|
12
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
d: "M.8 2.2a.6.6 0 0 1 .6-.6h8.4a.6.6 0 1 1 0 1.2h-.2v11a.6.6 0 0 1-.6.6H7.8a.6.6 0 0 1-.6-.6v-2a.6.6 0 0 0-.6-.6h-2a.6.6 0 0 0-.6.6v2a.6.6 0 0 1-.6.6h-2a.6.6 0 1 1 0-1.2h.2V2.8h-.2a.6.6 0 0 1-.6-.6m2.4 2.2a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4zm2.8-2.8a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4zm4.6-2.4a.6.6 0 0 0-.6.6v8.2a.8.8 0 0 0 .8.8h3a.6.6 0 1 0 0-1.2h-.2V6h.2a.6.6 0 1 0 0-1.2zm.4 2.8a.4.4 0 0 1 .4-.4h.8a.4.4 0 0 1 .4.4v.8a.4.4 0 0 1-.4.4h-.8a.4.4 0 0 1-.4-.4zm.4 2.8a.4.4 0 0 0-.4.4v.8a.4.4 0 0 0 .4.4h.8a.4.4 0 0 0 .4-.4v-.8a.4.4 0 0 0-.4-.4z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
})));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { SvgBuildingsFilled as ReactComponent };
|
|
21
|
+
//# sourceMappingURL=buildings-filled.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildings-filled.svg.js","sources":["../../../../v1/icons/assets/buildings-filled.svg"],"sourcesContent":["var img = \"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.800049 2.19998C0.800049 2.04085 0.863263 1.88823 0.975785 1.77571C1.08831 1.66319 1.24092 1.59998 1.40005 1.59998H9.80005C9.95918 1.59998 10.1118 1.66319 10.2243 1.77571C10.3368 1.88823 10.4 2.04085 10.4 2.19998C10.4 2.35911 10.3368 2.51172 10.2243 2.62424C10.1118 2.73676 9.95918 2.79998 9.80005 2.79998H9.60005V13.8C9.60005 13.9591 9.53683 14.1117 9.42431 14.2242C9.31179 14.3368 9.15918 14.4 9.00005 14.4H7.80005C7.64092 14.4 7.48831 14.3368 7.37578 14.2242C7.26326 14.1117 7.20005 13.9591 7.20005 13.8V11.8C7.20005 11.6408 7.13683 11.4882 7.02431 11.3757C6.91179 11.2632 6.75918 11.2 6.60005 11.2H4.60005C4.44092 11.2 4.28831 11.2632 4.17578 11.3757C4.06326 11.4882 4.00005 11.6408 4.00005 11.8V13.8C4.00005 13.9591 3.93683 14.1117 3.82431 14.2242C3.71179 14.3368 3.55918 14.4 3.40005 14.4H1.40005C1.24092 14.4 1.08831 14.3368 0.975785 14.2242C0.863263 14.1117 0.800049 13.9591 0.800049 13.8C0.800049 13.6408 0.863263 13.4882 0.975785 13.3757C1.08831 13.2632 1.24092 13.2 1.40005 13.2H1.60005V2.79998H1.40005C1.24092 2.79998 1.08831 2.73676 0.975785 2.62424C0.863263 2.51172 0.800049 2.35911 0.800049 2.19998ZM3.20005 4.39998C3.20005 4.29389 3.24219 4.19215 3.31721 4.11713C3.39222 4.04212 3.49396 3.99998 3.60005 3.99998H4.40005C4.50614 3.99998 4.60788 4.04212 4.68289 4.11713C4.75791 4.19215 4.80005 4.29389 4.80005 4.39998V5.19998C4.80005 5.30606 4.75791 5.4078 4.68289 5.48282C4.60788 5.55783 4.50614 5.59998 4.40005 5.59998H3.60005C3.49396 5.59998 3.39222 5.55783 3.31721 5.48282C3.24219 5.4078 3.20005 5.30606 3.20005 5.19998V4.39998ZM3.60005 7.19998C3.49396 7.19998 3.39222 7.24212 3.31721 7.31713C3.24219 7.39215 3.20005 7.49389 3.20005 7.59998V8.39998C3.20005 8.50606 3.24219 8.6078 3.31721 8.68282C3.39222 8.75783 3.49396 8.79998 3.60005 8.79998H4.40005C4.50614 8.79998 4.60788 8.75783 4.68289 8.68282C4.75791 8.6078 4.80005 8.50606 4.80005 8.39998V7.59998C4.80005 7.49389 4.75791 7.39215 4.68289 7.31713C4.60788 7.24212 4.50614 7.19998 4.40005 7.19998H3.60005ZM6.40005 4.39998C6.40005 4.29389 6.44219 4.19215 6.51721 4.11713C6.59222 4.04212 6.69396 3.99998 6.80005 3.99998H7.60005C7.70613 3.99998 7.80788 4.04212 7.88289 4.11713C7.95791 4.19215 8.00005 4.29389 8.00005 4.39998V5.19998C8.00005 5.30606 7.95791 5.4078 7.88289 5.48282C7.80788 5.55783 7.70613 5.59998 7.60005 5.59998H6.80005C6.69396 5.59998 6.59222 5.55783 6.51721 5.48282C6.44219 5.4078 6.40005 5.30606 6.40005 5.19998V4.39998ZM6.80005 7.19998C6.69396 7.19998 6.59222 7.24212 6.51721 7.31713C6.44219 7.39215 6.40005 7.49389 6.40005 7.59998V8.39998C6.40005 8.50606 6.44219 8.6078 6.51721 8.68282C6.59222 8.75783 6.69396 8.79998 6.80005 8.79998H7.60005C7.70613 8.79998 7.80788 8.75783 7.88289 8.68282C7.95791 8.6078 8.00005 8.50606 8.00005 8.39998V7.59998C8.00005 7.49389 7.95791 7.39215 7.88289 7.31713C7.80788 7.24212 7.70613 7.19998 7.60005 7.19998H6.80005ZM11.4 4.79998C11.2409 4.79998 11.0883 4.86319 10.9758 4.97571C10.8633 5.08823 10.8 5.24085 10.8 5.39998V13.6C10.8 13.8121 10.8843 14.0156 11.0344 14.1657C11.1844 14.3157 11.3879 14.4 11.6 14.4H14.6C14.7592 14.4 14.9118 14.3368 15.0243 14.2242C15.1368 14.1117 15.2 13.9591 15.2 13.8C15.2 13.6408 15.1368 13.4882 15.0243 13.3757C14.9118 13.2632 14.7592 13.2 14.6 13.2H14.4V5.99998H14.6C14.7592 5.99998 14.9118 5.93676 15.0243 5.82424C15.1368 5.71172 15.2 5.55911 15.2 5.39998C15.2 5.24085 15.1368 5.08823 15.0243 4.97571C14.9118 4.86319 14.7592 4.79998 14.6 4.79998H11.4ZM11.8 7.59998C11.8 7.49389 11.8422 7.39215 11.9172 7.31713C11.9922 7.24212 12.094 7.19998 12.2 7.19998H13C13.1061 7.19998 13.2079 7.24212 13.2829 7.31713C13.3579 7.39215 13.4 7.49389 13.4 7.59998V8.39998C13.4 8.50606 13.3579 8.6078 13.2829 8.68282C13.2079 8.75783 13.1061 8.79998 13 8.79998H12.2C12.094 8.79998 11.9922 8.75783 11.9172 8.68282C11.8422 8.6078 11.8 8.50606 11.8 8.39998V7.59998ZM12.2 10.4C12.094 10.4 11.9922 10.4421 11.9172 10.5171C11.8422 10.5921 11.8 10.6939 11.8 10.8V11.6C11.8 11.7061 11.8422 11.8078 11.9172 11.8828C11.9922 11.9578 12.094 12 12.2 12H13C13.1061 12 13.2079 11.9578 13.2829 11.8828C13.3579 11.8078 13.4 11.7061 13.4 11.6V10.8C13.4 10.6939 13.3579 10.5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AAC,CAAC;AACP;;;;"}
|
package/dist/v1/icons/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var bellSlash = require('./assets/bell-slash.svg.cjs');
|
|
4
4
|
var bell = require('./assets/bell.svg.cjs');
|
|
5
|
+
var buildingsFilled = require('./assets/buildings-filled.svg.cjs');
|
|
5
6
|
var checkCircleFilled = require('./assets/check-circle-filled.svg.cjs');
|
|
6
7
|
var coinColored = require('./assets/coin-colored.svg.cjs');
|
|
7
8
|
var coin = require('./assets/coin.svg.cjs');
|
|
@@ -15,6 +16,7 @@ var sidebar = require('./assets/sidebar.svg.cjs');
|
|
|
15
16
|
|
|
16
17
|
exports.BellSlashIcon = bellSlash.ReactComponent;
|
|
17
18
|
exports.BellIcon = bell.ReactComponent;
|
|
19
|
+
exports.BuildingsFilledIcon = buildingsFilled.ReactComponent;
|
|
18
20
|
exports.CheckCircleFilledIcon = checkCircleFilled.ReactComponent;
|
|
19
21
|
exports.CoinColoredIcon = coinColored.ReactComponent;
|
|
20
22
|
exports.CoinIcon = coin.ReactComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/v1/icons/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ReactComponent as BellSlashIcon } from "./assets/bell-slash.svg";
|
|
2
2
|
export { ReactComponent as BellIcon } from "./assets/bell.svg";
|
|
3
|
+
export { ReactComponent as BuildingsFilledIcon } from "./assets/buildings-filled.svg";
|
|
3
4
|
export { ReactComponent as CheckCircleFilledIcon } from "./assets/check-circle-filled.svg";
|
|
4
5
|
export { ReactComponent as CoinColoredIcon } from "./assets/coin-colored.svg";
|
|
5
6
|
export { ReactComponent as CoinIcon } from "./assets/coin.svg";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v1/icons/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../v1/icons/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/v1/icons/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ReactComponent as BellSlashIcon } from './assets/bell-slash.svg.js';
|
|
2
2
|
export { ReactComponent as BellIcon } from './assets/bell.svg.js';
|
|
3
|
+
export { ReactComponent as BuildingsFilledIcon } from './assets/buildings-filled.svg.js';
|
|
3
4
|
export { ReactComponent as CheckCircleFilledIcon } from './assets/check-circle-filled.svg.js';
|
|
4
5
|
export { ReactComponent as CoinColoredIcon } from './assets/coin-colored.svg.js';
|
|
5
6
|
export { ReactComponent as CoinIcon } from './assets/coin.svg.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|