@raystack/apsara 0.43.0 → 0.44.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/select/select-content.cjs +15 -0
- package/dist/v1/components/select/select-content.cjs.map +1 -0
- package/dist/v1/components/select/select-content.d.ts +3 -0
- package/dist/v1/components/select/select-content.d.ts.map +1 -0
- package/dist/v1/components/select/select-content.js +13 -0
- package/dist/v1/components/select/select-content.js.map +1 -0
- package/dist/v1/components/select/select-item.cjs +26 -0
- package/dist/v1/components/select/select-item.cjs.map +1 -0
- package/dist/v1/components/select/select-item.d.ts +7 -0
- package/dist/v1/components/select/select-item.d.ts.map +1 -0
- package/dist/v1/components/select/select-item.js +24 -0
- package/dist/v1/components/select/select-item.js.map +1 -0
- package/dist/v1/components/select/select-root.cjs +44 -0
- package/dist/v1/components/select/select-root.cjs.map +1 -0
- package/dist/v1/components/select/select-root.d.ts +15 -0
- package/dist/v1/components/select/select-root.d.ts.map +1 -0
- package/dist/v1/components/select/select-root.js +41 -0
- package/dist/v1/components/select/select-root.js.map +1 -0
- package/dist/v1/components/select/select-trigger.cjs +38 -0
- package/dist/v1/components/select/select-trigger.cjs.map +1 -0
- package/dist/v1/components/select/select-trigger.d.ts +26 -0
- package/dist/v1/components/select/select-trigger.d.ts.map +1 -0
- package/dist/v1/components/select/select-trigger.js +36 -0
- package/dist/v1/components/select/select-trigger.js.map +1 -0
- package/dist/v1/components/select/select-value.cjs +18 -0
- package/dist/v1/components/select/select-value.cjs.map +1 -0
- package/dist/v1/components/select/select-value.d.ts +3 -0
- package/dist/v1/components/select/select-value.d.ts.map +1 -0
- package/dist/v1/components/select/select-value.js +16 -0
- package/dist/v1/components/select/select-value.js.map +1 -0
- package/dist/v1/components/select/select.cjs +11 -81
- package/dist/v1/components/select/select.cjs.map +1 -1
- package/dist/v1/components/select/select.d.ts +16 -43
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/select/select.js +7 -58
- package/dist/v1/components/select/select.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
6
|
+
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
7
|
+
var select_module = require('./select.module.css.cjs');
|
|
8
|
+
|
|
9
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, className: index$1.cx(select_module.default.content, className), position: position, onPointerDownOutside: e => {
|
|
10
|
+
e.stopPropagation();
|
|
11
|
+
}, ...props, children: jsxRuntime.jsxRuntimeExports.jsx(index.Viewport, { children: children }) }) })));
|
|
12
|
+
SelectContent.displayName = index.Content.displayName;
|
|
13
|
+
|
|
14
|
+
exports.SelectContent = SelectContent;
|
|
15
|
+
//# sourceMappingURL=select-content.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-content.cjs","sources":["../../../../v1/components/select/select-content.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cx } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\n\nexport const SelectContent = forwardRef<\n ElementRef<typeof SelectPrimitive.Content>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cx(styles.content, className)}\n position={position}\n onPointerDownOutside={e => {\n e.stopPropagation();\n }}\n {...props}>\n <SelectPrimitive.Viewport>{children}</SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n"],"names":["forwardRef","_jsx","SelectPrimitive.Portal","SelectPrimitive.Content","cx","styles","SelectPrimitive.Viewport"],"mappings":";;;;;;;;AAKa,MAAA,aAAa,GAAGA,gBAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC5DC,gCAAC,CAAAC,YAAsB,cACrBD,gCAAC,CAAAE,aAAuB,EACtB,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAEC,UAAE,CAACC,qBAAM,CAAC,OAAO,EAAE,SAAS,CAAC,EACxC,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,CAAC,IAAG;YACxB,CAAC,CAAC,eAAe,EAAE,CAAC;AACtB,SAAC,EACG,GAAA,KAAK,EACT,QAAA,EAAAJ,gCAAA,CAACK,cAAwB,EAAE,EAAA,QAAA,EAAA,QAAQ,EAA4B,CAAA,EAAA,CACvC,EACH,CAAA,CAC1B,EAAE;AACH,aAAa,CAAC,WAAW,GAAGH,aAAuB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
+
export declare const SelectContent: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
//# sourceMappingURL=select-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-content.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select-content.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,eAAO,MAAM,aAAa,4LAgBxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Portal, Content as Content2, Viewport } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
|
|
4
|
+
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
5
|
+
import styles from './select.module.css.js';
|
|
6
|
+
|
|
7
|
+
const SelectContent = forwardRef(({ className, children, position = "popper", ...props }, ref) => (jsxRuntimeExports.jsx(Portal, { children: jsxRuntimeExports.jsx(Content2, { ref: ref, className: cx(styles.content, className), position: position, onPointerDownOutside: e => {
|
|
8
|
+
e.stopPropagation();
|
|
9
|
+
}, ...props, children: jsxRuntimeExports.jsx(Viewport, { children: children }) }) })));
|
|
10
|
+
SelectContent.displayName = Content2.displayName;
|
|
11
|
+
|
|
12
|
+
export { SelectContent };
|
|
13
|
+
//# sourceMappingURL=select-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-content.js","sources":["../../../../v1/components/select/select-content.tsx"],"sourcesContent":["import { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cx } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\n\nexport const SelectContent = forwardRef<\n ElementRef<typeof SelectPrimitive.Content>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cx(styles.content, className)}\n position={position}\n onPointerDownOutside={e => {\n e.stopPropagation();\n }}\n {...props}>\n <SelectPrimitive.Viewport>{children}</SelectPrimitive.Viewport>\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n"],"names":["_jsx","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Viewport"],"mappings":";;;;;;AAKa,MAAA,aAAa,GAAG,UAAU,CAGrC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,MAC5DA,qBAAC,CAAAC,MAAsB,cACrBD,qBAAC,CAAAE,QAAuB,EACtB,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,EACxC,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,CAAC,IAAG;YACxB,CAAC,CAAC,eAAe,EAAE,CAAC;AACtB,SAAC,EACG,GAAA,KAAK,EACT,QAAA,EAAAF,qBAAA,CAACG,QAAwB,EAAE,EAAA,QAAA,EAAA,QAAQ,EAA4B,CAAA,EAAA,CACvC,EACH,CAAA,CAC1B,EAAE;AACH,aAAa,CAAC,WAAW,GAAGD,QAAuB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
6
|
+
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
7
|
+
var select_module = require('./select.module.css.cjs');
|
|
8
|
+
var text = require('../text/text.cjs');
|
|
9
|
+
var selectRoot = require('./select-root.cjs');
|
|
10
|
+
|
|
11
|
+
const SelectItem = React.forwardRef(({ className, textProps = {}, children, value, leadingIcon, ...props }, ref) => {
|
|
12
|
+
const { registerIcon, unregisterIcon } = selectRoot.useSelectContext();
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
if (!leadingIcon)
|
|
15
|
+
return;
|
|
16
|
+
registerIcon(value, leadingIcon);
|
|
17
|
+
return () => {
|
|
18
|
+
unregisterIcon(value);
|
|
19
|
+
};
|
|
20
|
+
}, [value, leadingIcon]);
|
|
21
|
+
return (jsxRuntime.jsxRuntimeExports.jsxs(index.Item, { ref: ref, value: value, className: index$1.cx(select_module.default.menuitem, className), ...props, children: [leadingIcon && jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.itemIcon, children: leadingIcon }), jsxRuntime.jsxRuntimeExports.jsx(index.ItemText, { children: jsxRuntime.jsxRuntimeExports.jsx(text.Text, { ...textProps, children: children }) })] }));
|
|
22
|
+
});
|
|
23
|
+
SelectItem.displayName = index.Item.displayName;
|
|
24
|
+
|
|
25
|
+
exports.SelectItem = SelectItem;
|
|
26
|
+
//# sourceMappingURL=select-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.cjs","sources":["../../../../v1/components/select/select-item.tsx"],"sourcesContent":["import {\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n useEffect,\n} from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cx } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\nimport { Text, TextBaseProps } from \"../text\";\nimport { useSelectContext } from \"./select-root\";\n\nexport const SelectItem = forwardRef<\n ElementRef<typeof SelectPrimitive.Item>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextBaseProps;\n leadingIcon?: React.ReactNode;\n }\n>(\n (\n { className, textProps = {}, children, value, leadingIcon, ...props },\n ref,\n ) => {\n const { registerIcon, unregisterIcon } = useSelectContext();\n\n useEffect(() => {\n if (!leadingIcon) return;\n\n registerIcon(value, leadingIcon);\n return () => {\n unregisterIcon(value);\n };\n }, [value, leadingIcon]);\n\n return (\n <SelectPrimitive.Item\n ref={ref}\n value={value}\n className={cx(styles.menuitem, className)}\n {...props}>\n {leadingIcon && <div className={styles.itemIcon}>{leadingIcon}</div>}\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n },\n);\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n"],"names":["forwardRef","useSelectContext","useEffect","_jsxs","SelectPrimitive.Item","cx","styles","_jsx","SelectPrimitive.ItemText","Text"],"mappings":";;;;;;;;;;AAYa,MAAA,UAAU,GAAGA,gBAAU,CAOlC,CACE,EAAE,SAAS,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,KACD;IACF,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAGC,2BAAgB,EAAE,CAAC;IAE5DC,eAAS,CAAC,MAAK;AACb,QAAA,IAAI,CAAC,WAAW;YAAE,OAAO;AAEzB,QAAA,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AACjC,QAAA,OAAO,MAAK;YACV,cAAc,CAAC,KAAK,CAAC,CAAC;AACxB,SAAC,CAAC;AACJ,KAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAEzB,QACEC,iCAAC,CAAAC,UAAoB,IACnB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAEC,UAAE,CAACC,qBAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAA,GACrC,KAAK,EAAA,QAAA,EAAA,CACR,WAAW,IAAIC,gCAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAED,qBAAM,CAAC,QAAQ,EAAG,QAAA,EAAA,WAAW,EAAO,CAAA,EACpEC,gCAAC,CAAAC,cAAwB,EAAA,EAAA,QAAA,EACvBD,gCAAC,CAAAE,SAAI,EAAK,EAAA,GAAA,SAAS,EAAG,QAAA,EAAA,QAAQ,EAAQ,CAAA,EAAA,CACb,CACN,EAAA,CAAA,EACvB;AACJ,CAAC,EACD;AACF,UAAU,CAAC,WAAW,GAAGL,UAAoB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
+
import { TextBaseProps } from "../text";
|
|
3
|
+
export declare const SelectItem: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4
|
+
textProps?: TextBaseProps | undefined;
|
|
5
|
+
leadingIcon?: React.ReactNode;
|
|
6
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
//# sourceMappingURL=select-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select-item.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,OAAO,EAAQ,aAAa,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,UAAU;;kBAIL,MAAM,SAAS;kDA+BhC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { forwardRef, useEffect } from 'react';
|
|
3
|
+
import { Item, ItemText } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
|
|
4
|
+
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
5
|
+
import styles from './select.module.css.js';
|
|
6
|
+
import { Text } from '../text/text.js';
|
|
7
|
+
import { useSelectContext } from './select-root.js';
|
|
8
|
+
|
|
9
|
+
const SelectItem = forwardRef(({ className, textProps = {}, children, value, leadingIcon, ...props }, ref) => {
|
|
10
|
+
const { registerIcon, unregisterIcon } = useSelectContext();
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (!leadingIcon)
|
|
13
|
+
return;
|
|
14
|
+
registerIcon(value, leadingIcon);
|
|
15
|
+
return () => {
|
|
16
|
+
unregisterIcon(value);
|
|
17
|
+
};
|
|
18
|
+
}, [value, leadingIcon]);
|
|
19
|
+
return (jsxRuntimeExports.jsxs(Item, { ref: ref, value: value, className: cx(styles.menuitem, className), ...props, children: [leadingIcon && jsxRuntimeExports.jsx("div", { className: styles.itemIcon, children: leadingIcon }), jsxRuntimeExports.jsx(ItemText, { children: jsxRuntimeExports.jsx(Text, { ...textProps, children: children }) })] }));
|
|
20
|
+
});
|
|
21
|
+
SelectItem.displayName = Item.displayName;
|
|
22
|
+
|
|
23
|
+
export { SelectItem };
|
|
24
|
+
//# sourceMappingURL=select-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.js","sources":["../../../../v1/components/select/select-item.tsx"],"sourcesContent":["import {\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n useEffect,\n} from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cx } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\nimport { Text, TextBaseProps } from \"../text\";\nimport { useSelectContext } from \"./select-root\";\n\nexport const SelectItem = forwardRef<\n ElementRef<typeof SelectPrimitive.Item>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextBaseProps;\n leadingIcon?: React.ReactNode;\n }\n>(\n (\n { className, textProps = {}, children, value, leadingIcon, ...props },\n ref,\n ) => {\n const { registerIcon, unregisterIcon } = useSelectContext();\n\n useEffect(() => {\n if (!leadingIcon) return;\n\n registerIcon(value, leadingIcon);\n return () => {\n unregisterIcon(value);\n };\n }, [value, leadingIcon]);\n\n return (\n <SelectPrimitive.Item\n ref={ref}\n value={value}\n className={cx(styles.menuitem, className)}\n {...props}>\n {leadingIcon && <div className={styles.itemIcon}>{leadingIcon}</div>}\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n );\n },\n);\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n"],"names":["_jsxs","SelectPrimitive.Item","_jsx","SelectPrimitive.ItemText"],"mappings":";;;;;;;;AAYa,MAAA,UAAU,GAAG,UAAU,CAOlC,CACE,EAAE,SAAS,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EACrE,GAAG,KACD;IACF,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAE5D,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,CAAC,WAAW;YAAE,OAAO;AAEzB,QAAA,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AACjC,QAAA,OAAO,MAAK;YACV,cAAc,CAAC,KAAK,CAAC,CAAC;AACxB,SAAC,CAAC;AACJ,KAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAEzB,QACEA,sBAAC,CAAAC,IAAoB,IACnB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAA,GACrC,KAAK,EAAA,QAAA,EAAA,CACR,WAAW,IAAIC,qBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAG,QAAA,EAAA,WAAW,EAAO,CAAA,EACpEA,qBAAC,CAAAC,QAAwB,EAAA,EAAA,QAAA,EACvBD,qBAAC,CAAA,IAAI,EAAK,EAAA,GAAA,SAAS,EAAG,QAAA,EAAA,QAAQ,EAAQ,CAAA,EAAA,CACb,CACN,EAAA,CAAA,EACvB;AACJ,CAAC,EACD;AACF,UAAU,CAAC,WAAW,GAAGD,IAAoB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Root context to manage the Select control
|
|
9
|
+
@remarks Only for internal usage.
|
|
10
|
+
*/
|
|
11
|
+
const SelectContext = React.createContext(undefined);
|
|
12
|
+
const useSelectContext = () => {
|
|
13
|
+
const context = React.useContext(SelectContext);
|
|
14
|
+
if (!context) {
|
|
15
|
+
throw new Error("useSelectContext must be used within a SelectProvider");
|
|
16
|
+
}
|
|
17
|
+
return context;
|
|
18
|
+
};
|
|
19
|
+
const SelectRoot = ({ children, value, onValueChange, defaultValue, ...props }) => {
|
|
20
|
+
const [internalValue, setInternalValue] = React.useState(defaultValue);
|
|
21
|
+
const icons = React.useRef({});
|
|
22
|
+
const computedValue = value ?? internalValue;
|
|
23
|
+
const icon = computedValue && icons.current?.[computedValue];
|
|
24
|
+
const setValue = (_value) => {
|
|
25
|
+
onValueChange?.(_value);
|
|
26
|
+
setInternalValue(_value);
|
|
27
|
+
};
|
|
28
|
+
const registerIcon = React.useCallback((value, icon) => {
|
|
29
|
+
icons.current = { ...icons.current, [value]: icon };
|
|
30
|
+
}, []);
|
|
31
|
+
const unregisterIcon = React.useCallback(value => {
|
|
32
|
+
const { [value]: _, ...rest } = icons.current;
|
|
33
|
+
icons.current = rest;
|
|
34
|
+
}, []);
|
|
35
|
+
return (jsxRuntime.jsxRuntimeExports.jsx(SelectContext.Provider, { value: {
|
|
36
|
+
registerIcon,
|
|
37
|
+
unregisterIcon,
|
|
38
|
+
value: { value: computedValue, icon },
|
|
39
|
+
}, children: jsxRuntime.jsxRuntimeExports.jsx(index.Root, { value: computedValue, onValueChange: setValue, ...props, children: children }) }));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.SelectRoot = SelectRoot;
|
|
43
|
+
exports.useSelectContext = useSelectContext;
|
|
44
|
+
//# sourceMappingURL=select-root.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-root.cjs","sources":["../../../../v1/components/select/select-root.tsx"],"sourcesContent":["import {\n createContext,\n ReactNode,\n useCallback,\n useContext,\n useRef,\n useState,\n} from \"react\";\n\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\n\ntype IconType = Record<string, ReactNode>;\ntype ValueType = {\n value?: string;\n icon?: ReactNode;\n};\ntype SelectContextValue = {\n value: ValueType;\n registerIcon: (value: string, icon: ReactNode) => void;\n unregisterIcon: (value: string) => void;\n};\n\n/*\nRoot context to manage the Select control\n@remarks Only for internal usage.\n*/\nconst SelectContext = createContext<SelectContextValue | undefined>(undefined);\n\nexport const useSelectContext = () => {\n const context = useContext(SelectContext);\n if (!context) {\n throw new Error(\"useSelectContext must be used within a SelectProvider\");\n }\n return context;\n};\n\nexport const SelectRoot = ({\n children,\n value,\n onValueChange,\n defaultValue,\n ...props\n}: SelectPrimitive.SelectProps) => {\n const [internalValue, setInternalValue] = useState<string | undefined>(\n defaultValue,\n );\n const icons = useRef<IconType>({});\n\n const computedValue = value ?? internalValue;\n const icon = computedValue && icons.current?.[computedValue];\n\n const setValue = (_value: string) => {\n onValueChange?.(_value);\n setInternalValue(_value);\n };\n\n const registerIcon = useCallback<SelectContextValue[\"registerIcon\"]>(\n (value, icon) => {\n icons.current = { ...icons.current, [value]: icon };\n },\n [],\n );\n const unregisterIcon = useCallback<SelectContextValue[\"unregisterIcon\"]>(\n value => {\n const { [value]: _, ...rest } = icons.current;\n icons.current = rest;\n },\n [],\n );\n\n return (\n <SelectContext.Provider\n value={{\n registerIcon,\n unregisterIcon,\n value: { value: computedValue, icon },\n }}>\n <SelectPrimitive.Root\n value={computedValue}\n onValueChange={setValue}\n {...props}>\n {children}\n </SelectPrimitive.Root>\n </SelectContext.Provider>\n );\n};\n"],"names":["createContext","useContext","useState","useRef","useCallback","_jsx","SelectPrimitive.Root"],"mappings":";;;;;;AAsBA;;;AAGE;AACF,MAAM,aAAa,GAAGA,mBAAa,CAAiC,SAAS,CAAC,CAAC;AAExE,MAAM,gBAAgB,GAAG,MAAK;AACnC,IAAA,MAAM,OAAO,GAAGC,gBAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE;AACZ,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;AACD,IAAA,OAAO,OAAO,CAAC;AACjB,EAAE;AAEW,MAAA,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,GAAG,KAAK,EACoB,KAAI;IAChC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAGC,cAAQ,CAChD,YAAY,CACb,CAAC;AACF,IAAA,MAAM,KAAK,GAAGC,YAAM,CAAW,EAAE,CAAC,CAAC;AAEnC,IAAA,MAAM,aAAa,GAAG,KAAK,IAAI,aAAa,CAAC;IAC7C,MAAM,IAAI,GAAG,aAAa,IAAI,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC,CAAC;AAE7D,IAAA,MAAM,QAAQ,GAAG,CAAC,MAAc,KAAI;AAClC,QAAA,aAAa,GAAG,MAAM,CAAC,CAAC;QACxB,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC3B,KAAC,CAAC;IAEF,MAAM,YAAY,GAAGC,iBAAW,CAC9B,CAAC,KAAK,EAAE,IAAI,KAAI;AACd,QAAA,KAAK,CAAC,OAAO,GAAG,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,CAAC;KACrD,EACD,EAAE,CACH,CAAC;AACF,IAAA,MAAM,cAAc,GAAGA,iBAAW,CAChC,KAAK,IAAG;AACN,QAAA,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC;AAC9C,QAAA,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;KACtB,EACD,EAAE,CACH,CAAC;AAEF,IAAA,QACEC,gCAAC,CAAA,aAAa,CAAC,QAAQ,EAAA,EACrB,KAAK,EAAE;YACL,YAAY;YACZ,cAAc;AACd,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;AACtC,SAAA,EAAA,QAAA,EACDA,iCAACC,UAAoB,EACnB,EAAA,KAAK,EAAE,aAAa,EACpB,aAAa,EAAE,QAAQ,KACnB,KAAK,EAAA,QAAA,EACR,QAAQ,EACY,CAAA,EAAA,CACA,EACzB;AACJ;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
type ValueType = {
|
|
4
|
+
value?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
type SelectContextValue = {
|
|
8
|
+
value: ValueType;
|
|
9
|
+
registerIcon: (value: string, icon: ReactNode) => void;
|
|
10
|
+
unregisterIcon: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useSelectContext: () => SelectContextValue;
|
|
13
|
+
export declare const SelectRoot: ({ children, value, onValueChange, defaultValue, ...props }: SelectPrimitive.SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=select-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-root.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select-root.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAKV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AACF,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACvD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAQF,eAAO,MAAM,gBAAgB,0BAM5B,CAAC;AAEF,eAAO,MAAM,UAAU,+DAMpB,gBAAgB,WAAW,4CA2C7B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { createContext, useContext, useState, useRef, useCallback } from 'react';
|
|
3
|
+
import { Root as Root2 } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Root context to manage the Select control
|
|
7
|
+
@remarks Only for internal usage.
|
|
8
|
+
*/
|
|
9
|
+
const SelectContext = createContext(undefined);
|
|
10
|
+
const useSelectContext = () => {
|
|
11
|
+
const context = useContext(SelectContext);
|
|
12
|
+
if (!context) {
|
|
13
|
+
throw new Error("useSelectContext must be used within a SelectProvider");
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
};
|
|
17
|
+
const SelectRoot = ({ children, value, onValueChange, defaultValue, ...props }) => {
|
|
18
|
+
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
19
|
+
const icons = useRef({});
|
|
20
|
+
const computedValue = value ?? internalValue;
|
|
21
|
+
const icon = computedValue && icons.current?.[computedValue];
|
|
22
|
+
const setValue = (_value) => {
|
|
23
|
+
onValueChange?.(_value);
|
|
24
|
+
setInternalValue(_value);
|
|
25
|
+
};
|
|
26
|
+
const registerIcon = useCallback((value, icon) => {
|
|
27
|
+
icons.current = { ...icons.current, [value]: icon };
|
|
28
|
+
}, []);
|
|
29
|
+
const unregisterIcon = useCallback(value => {
|
|
30
|
+
const { [value]: _, ...rest } = icons.current;
|
|
31
|
+
icons.current = rest;
|
|
32
|
+
}, []);
|
|
33
|
+
return (jsxRuntimeExports.jsx(SelectContext.Provider, { value: {
|
|
34
|
+
registerIcon,
|
|
35
|
+
unregisterIcon,
|
|
36
|
+
value: { value: computedValue, icon },
|
|
37
|
+
}, children: jsxRuntimeExports.jsx(Root2, { value: computedValue, onValueChange: setValue, ...props, children: children }) }));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { SelectRoot, useSelectContext };
|
|
41
|
+
//# sourceMappingURL=select-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-root.js","sources":["../../../../v1/components/select/select-root.tsx"],"sourcesContent":["import {\n createContext,\n ReactNode,\n useCallback,\n useContext,\n useRef,\n useState,\n} from \"react\";\n\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\n\ntype IconType = Record<string, ReactNode>;\ntype ValueType = {\n value?: string;\n icon?: ReactNode;\n};\ntype SelectContextValue = {\n value: ValueType;\n registerIcon: (value: string, icon: ReactNode) => void;\n unregisterIcon: (value: string) => void;\n};\n\n/*\nRoot context to manage the Select control\n@remarks Only for internal usage.\n*/\nconst SelectContext = createContext<SelectContextValue | undefined>(undefined);\n\nexport const useSelectContext = () => {\n const context = useContext(SelectContext);\n if (!context) {\n throw new Error(\"useSelectContext must be used within a SelectProvider\");\n }\n return context;\n};\n\nexport const SelectRoot = ({\n children,\n value,\n onValueChange,\n defaultValue,\n ...props\n}: SelectPrimitive.SelectProps) => {\n const [internalValue, setInternalValue] = useState<string | undefined>(\n defaultValue,\n );\n const icons = useRef<IconType>({});\n\n const computedValue = value ?? internalValue;\n const icon = computedValue && icons.current?.[computedValue];\n\n const setValue = (_value: string) => {\n onValueChange?.(_value);\n setInternalValue(_value);\n };\n\n const registerIcon = useCallback<SelectContextValue[\"registerIcon\"]>(\n (value, icon) => {\n icons.current = { ...icons.current, [value]: icon };\n },\n [],\n );\n const unregisterIcon = useCallback<SelectContextValue[\"unregisterIcon\"]>(\n value => {\n const { [value]: _, ...rest } = icons.current;\n icons.current = rest;\n },\n [],\n );\n\n return (\n <SelectContext.Provider\n value={{\n registerIcon,\n unregisterIcon,\n value: { value: computedValue, icon },\n }}>\n <SelectPrimitive.Root\n value={computedValue}\n onValueChange={setValue}\n {...props}>\n {children}\n </SelectPrimitive.Root>\n </SelectContext.Provider>\n );\n};\n"],"names":["_jsx","SelectPrimitive.Root"],"mappings":";;;;AAsBA;;;AAGE;AACF,MAAM,aAAa,GAAG,aAAa,CAAiC,SAAS,CAAC,CAAC;AAExE,MAAM,gBAAgB,GAAG,MAAK;AACnC,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE;AACZ,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;KAC1E;AACD,IAAA,OAAO,OAAO,CAAC;AACjB,EAAE;AAEW,MAAA,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,GAAG,KAAK,EACoB,KAAI;IAChC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAChD,YAAY,CACb,CAAC;AACF,IAAA,MAAM,KAAK,GAAG,MAAM,CAAW,EAAE,CAAC,CAAC;AAEnC,IAAA,MAAM,aAAa,GAAG,KAAK,IAAI,aAAa,CAAC;IAC7C,MAAM,IAAI,GAAG,aAAa,IAAI,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC,CAAC;AAE7D,IAAA,MAAM,QAAQ,GAAG,CAAC,MAAc,KAAI;AAClC,QAAA,aAAa,GAAG,MAAM,CAAC,CAAC;QACxB,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC3B,KAAC,CAAC;IAEF,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,KAAK,EAAE,IAAI,KAAI;AACd,QAAA,KAAK,CAAC,OAAO,GAAG,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,CAAC;KACrD,EACD,EAAE,CACH,CAAC;AACF,IAAA,MAAM,cAAc,GAAG,WAAW,CAChC,KAAK,IAAG;AACN,QAAA,MAAM,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC;AAC9C,QAAA,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;KACtB,EACD,EAAE,CACH,CAAC;AAEF,IAAA,QACEA,qBAAC,CAAA,aAAa,CAAC,QAAQ,EAAA,EACrB,KAAK,EAAE;YACL,YAAY;YACZ,cAAc;AACd,YAAA,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;AACtC,SAAA,EAAA,QAAA,EACDA,sBAACC,KAAoB,EACnB,EAAA,KAAK,EAAE,aAAa,EACpB,aAAa,EAAE,QAAQ,KACnB,KAAK,EAAA,QAAA,EACR,QAAQ,EACY,CAAA,EAAA,CACA,EACzB;AACJ;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var reactIcons_esm = require('../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
|
|
6
|
+
var index = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
7
|
+
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
8
|
+
var select_module = require('./select.module.css.cjs');
|
|
9
|
+
|
|
10
|
+
const trigger = index$1.cva(select_module.default.trigger, {
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
small: select_module.default["trigger-small"],
|
|
14
|
+
medium: select_module.default["trigger-medium"],
|
|
15
|
+
},
|
|
16
|
+
variant: {
|
|
17
|
+
outline: select_module.default["trigger-outline"],
|
|
18
|
+
text: select_module.default["trigger-text"],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: {
|
|
22
|
+
size: "medium",
|
|
23
|
+
variant: "outline",
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
const SelectTrigger = React.forwardRef(({ size, variant, className, children, iconProps = {}, "aria-label": ariaLabel, style, stopPropagation = false, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(index.Trigger, { ref: ref, className: trigger({ size, variant, className }), "aria-label": ariaLabel || "Select option", style: {
|
|
27
|
+
...style,
|
|
28
|
+
display: "flex",
|
|
29
|
+
justifyContent: "space-between",
|
|
30
|
+
}, onPointerDown: e => {
|
|
31
|
+
if (stopPropagation) {
|
|
32
|
+
e.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
}, ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.triggerContent, children: children }), jsxRuntime.jsxRuntimeExports.jsx(index.Icon, { asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.ChevronDownIcon, { className: select_module.default.triggerIcon, "aria-hidden": "true", ...iconProps }) })] })));
|
|
35
|
+
SelectTrigger.displayName = index.Trigger.displayName;
|
|
36
|
+
|
|
37
|
+
exports.SelectTrigger = SelectTrigger;
|
|
38
|
+
//# sourceMappingURL=select-trigger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-trigger.cjs","sources":["../../../../v1/components/select/select-trigger.tsx"],"sourcesContent":["import {\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n PropsWithChildren,\n} from \"react\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\n\nexport interface AriaProps {\n \"aria-label\"?: string;\n \"aria-describedby\"?: string;\n \"aria-required\"?: boolean;\n \"aria-invalid\"?: boolean;\n}\n\nexport interface TriggerStyleProps {\n style?: React.CSSProperties;\n className?: string;\n stopPropagation?: boolean;\n}\n\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-small\"],\n medium: styles[\"trigger-medium\"],\n },\n variant: {\n outline: styles[\"trigger-outline\"],\n text: styles[\"trigger-text\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n variant: \"outline\",\n },\n});\n\nexport const SelectTrigger = forwardRef<\n ElementRef<typeof SelectPrimitive.Trigger>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n } & AriaProps &\n TriggerStyleProps\n>(\n (\n {\n size,\n variant,\n className,\n children,\n iconProps = {},\n \"aria-label\": ariaLabel,\n style,\n stopPropagation = false,\n ...props\n },\n ref,\n ) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, variant, className })}\n aria-label={ariaLabel || \"Select option\"}\n style={{\n ...style,\n display: \"flex\",\n justifyContent: \"space-between\",\n }}\n onPointerDown={e => {\n if (stopPropagation) {\n e.stopPropagation();\n }\n }}\n {...props}>\n <div className={styles.triggerContent}>{children}</div>\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon\n className={styles.triggerIcon}\n aria-hidden=\"true\"\n {...iconProps}\n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n"],"names":["cva","styles","forwardRef","_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","ChevronDownIcon"],"mappings":";;;;;;;;;AA6BA,MAAM,OAAO,GAAGA,WAAG,CAACC,qBAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,qBAAM,CAAC,eAAe,CAAC;AAC9B,YAAA,MAAM,EAAEA,qBAAM,CAAC,gBAAgB,CAAC;AACjC,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAEA,qBAAM,CAAC,iBAAiB,CAAC;AAClC,YAAA,IAAI,EAAEA,qBAAM,CAAC,cAAc,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CAAC,CAAC;AAEI,MAAM,aAAa,GAAGC,gBAAU,CAQrC,CACE,EACE,IAAI,EACJ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,eAAe,GAAG,KAAK,EACvB,GAAG,KAAK,EACT,EACD,GAAG,MAEHC,iCAAC,CAAAC,aAAuB,EACtB,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAA,YAAA,EACpC,SAAS,IAAI,eAAe,EACxC,KAAK,EAAE;AACL,QAAA,GAAG,KAAK;AACR,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,cAAc,EAAE,eAAe;AAChC,KAAA,EACD,aAAa,EAAE,CAAC,IAAG;QACjB,IAAI,eAAe,EAAE;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;SACrB;AACH,KAAC,KACG,KAAK,EAAA,QAAA,EAAA,CACTC,gCAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEJ,qBAAM,CAAC,cAAc,EAAA,QAAA,EAAG,QAAQ,EAAO,CAAA,EACvDI,gCAAC,CAAAC,UAAoB,EAAA,EAAC,OAAO,EAAA,IAAA,EAAA,QAAA,EAC3BD,iCAACE,8BAAe,EAAA,EACd,SAAS,EAAEN,qBAAM,CAAC,WAAW,EACjB,aAAA,EAAA,MAAM,KACd,SAAS,EAAA,CACb,GACmB,CACC,EAAA,CAAA,CAC3B,EACD;AACF,aAAa,CAAC,WAAW,GAAGG,aAAuB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
export interface AriaProps {
|
|
4
|
+
"aria-label"?: string;
|
|
5
|
+
"aria-describedby"?: string;
|
|
6
|
+
"aria-required"?: boolean;
|
|
7
|
+
"aria-invalid"?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface TriggerStyleProps {
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
className?: string;
|
|
12
|
+
stopPropagation?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface IconProps extends React.SVGAttributes<SVGElement> {
|
|
15
|
+
children?: never;
|
|
16
|
+
color?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const SelectTrigger: import("react").ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
19
|
+
size?: "small" | "medium" | null | undefined;
|
|
20
|
+
variant?: "text" | "outline" | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
22
|
+
children?: import("react").ReactNode;
|
|
23
|
+
} & {
|
|
24
|
+
iconProps?: IconProps | undefined;
|
|
25
|
+
} & AriaProps & TriggerStyleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
//# sourceMappingURL=select-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-trigger.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select-trigger.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,MAAM,WAAW,SAAS;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,aAAa;;;;;;;qFA+CzB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { ChevronDownIcon } from '../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
|
|
4
|
+
import { Trigger, Icon } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
|
|
5
|
+
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
6
|
+
import styles from './select.module.css.js';
|
|
7
|
+
|
|
8
|
+
const trigger = cva(styles.trigger, {
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
small: styles["trigger-small"],
|
|
12
|
+
medium: styles["trigger-medium"],
|
|
13
|
+
},
|
|
14
|
+
variant: {
|
|
15
|
+
outline: styles["trigger-outline"],
|
|
16
|
+
text: styles["trigger-text"],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
size: "medium",
|
|
21
|
+
variant: "outline",
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const SelectTrigger = forwardRef(({ size, variant, className, children, iconProps = {}, "aria-label": ariaLabel, style, stopPropagation = false, ...props }, ref) => (jsxRuntimeExports.jsxs(Trigger, { ref: ref, className: trigger({ size, variant, className }), "aria-label": ariaLabel || "Select option", style: {
|
|
25
|
+
...style,
|
|
26
|
+
display: "flex",
|
|
27
|
+
justifyContent: "space-between",
|
|
28
|
+
}, onPointerDown: e => {
|
|
29
|
+
if (stopPropagation) {
|
|
30
|
+
e.stopPropagation();
|
|
31
|
+
}
|
|
32
|
+
}, ...props, children: [jsxRuntimeExports.jsx("div", { className: styles.triggerContent, children: children }), jsxRuntimeExports.jsx(Icon, { asChild: true, children: jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles.triggerIcon, "aria-hidden": "true", ...iconProps }) })] })));
|
|
33
|
+
SelectTrigger.displayName = Trigger.displayName;
|
|
34
|
+
|
|
35
|
+
export { SelectTrigger };
|
|
36
|
+
//# sourceMappingURL=select-trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-trigger.js","sources":["../../../../v1/components/select/select-trigger.tsx"],"sourcesContent":["import {\n ComponentPropsWithoutRef,\n ElementRef,\n forwardRef,\n PropsWithChildren,\n} from \"react\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport styles from \"./select.module.css\";\n\nexport interface AriaProps {\n \"aria-label\"?: string;\n \"aria-describedby\"?: string;\n \"aria-required\"?: boolean;\n \"aria-invalid\"?: boolean;\n}\n\nexport interface TriggerStyleProps {\n style?: React.CSSProperties;\n className?: string;\n stopPropagation?: boolean;\n}\n\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-small\"],\n medium: styles[\"trigger-medium\"],\n },\n variant: {\n outline: styles[\"trigger-outline\"],\n text: styles[\"trigger-text\"],\n },\n },\n defaultVariants: {\n size: \"medium\",\n variant: \"outline\",\n },\n});\n\nexport const SelectTrigger = forwardRef<\n ElementRef<typeof SelectPrimitive.Trigger>,\n ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n } & AriaProps &\n TriggerStyleProps\n>(\n (\n {\n size,\n variant,\n className,\n children,\n iconProps = {},\n \"aria-label\": ariaLabel,\n style,\n stopPropagation = false,\n ...props\n },\n ref,\n ) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, variant, className })}\n aria-label={ariaLabel || \"Select option\"}\n style={{\n ...style,\n display: \"flex\",\n justifyContent: \"space-between\",\n }}\n onPointerDown={e => {\n if (stopPropagation) {\n e.stopPropagation();\n }\n }}\n {...props}>\n <div className={styles.triggerContent}>{children}</div>\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon\n className={styles.triggerIcon}\n aria-hidden=\"true\"\n {...iconProps}\n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n ),\n);\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n"],"names":["_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon"],"mappings":";;;;;;;AA6BA,MAAM,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE;AAClC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC;AAC9B,YAAA,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;AACjC,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,MAAM,CAAC,iBAAiB,CAAC;AAClC,YAAA,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,OAAO,EAAE,SAAS;AACnB,KAAA;AACF,CAAA,CAAC,CAAC;AAEI,MAAM,aAAa,GAAG,UAAU,CAQrC,CACE,EACE,IAAI,EACJ,OAAO,EACP,SAAS,EACT,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,eAAe,GAAG,KAAK,EACvB,GAAG,KAAK,EACT,EACD,GAAG,MAEHA,sBAAC,CAAAC,OAAuB,EACtB,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,EAAA,YAAA,EACpC,SAAS,IAAI,eAAe,EACxC,KAAK,EAAE;AACL,QAAA,GAAG,KAAK;AACR,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,cAAc,EAAE,eAAe;AAChC,KAAA,EACD,aAAa,EAAE,CAAC,IAAG;QACjB,IAAI,eAAe,EAAE;YACnB,CAAC,CAAC,eAAe,EAAE,CAAC;SACrB;AACH,KAAC,KACG,KAAK,EAAA,QAAA,EAAA,CACTC,qBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,cAAc,EAAA,QAAA,EAAG,QAAQ,EAAO,CAAA,EACvDA,qBAAC,CAAAC,IAAoB,EAAA,EAAC,OAAO,EAAA,IAAA,EAAA,QAAA,EAC3BD,sBAAC,eAAe,EAAA,EACd,SAAS,EAAE,MAAM,CAAC,WAAW,EACjB,aAAA,EAAA,MAAM,KACd,SAAS,EAAA,CACb,GACmB,CACC,EAAA,CAAA,CAC3B,EACD;AACF,aAAa,CAAC,WAAW,GAAGD,OAAuB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index$1 = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
6
|
+
var select_module = require('./select.module.css.cjs');
|
|
7
|
+
var selectRoot = require('./select-root.cjs');
|
|
8
|
+
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
9
|
+
|
|
10
|
+
const SelectValue = React.forwardRef(({ children, ...props }, ref) => {
|
|
11
|
+
const { value } = selectRoot.useSelectContext();
|
|
12
|
+
const leadingIcon = value?.icon;
|
|
13
|
+
return (jsxRuntime.jsxRuntimeExports.jsxs("div", { className: index.cx(select_module.default.valueContent), children: [leadingIcon && jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.leadingIcon, children: leadingIcon }), jsxRuntime.jsxRuntimeExports.jsx(index$1.Value, { ref: ref, ...props, children: children })] }));
|
|
14
|
+
});
|
|
15
|
+
SelectValue.displayName = index$1.Value.displayName;
|
|
16
|
+
|
|
17
|
+
exports.SelectValue = SelectValue;
|
|
18
|
+
//# sourceMappingURL=select-value.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-value.cjs","sources":["../../../../v1/components/select/select-value.tsx"],"sourcesContent":["import { ElementRef, forwardRef } from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport styles from \"./select.module.css\";\nimport { useSelectContext } from \"./select-root\";\nimport { cx } from \"class-variance-authority\";\n\nexport const SelectValue = forwardRef<\n ElementRef<typeof SelectPrimitive.Value>,\n SelectPrimitive.SelectValueProps\n>(({ children, ...props }, ref) => {\n const { value } = useSelectContext();\n const leadingIcon = value?.icon;\n\n return (\n <div className={cx(styles.valueContent)}>\n {leadingIcon && <div className={styles.leadingIcon}>{leadingIcon}</div>}\n <SelectPrimitive.Value ref={ref} {...props}>\n {children}\n </SelectPrimitive.Value>\n </div>\n );\n});\nSelectValue.displayName = SelectPrimitive.Value.displayName;\n"],"names":["forwardRef","useSelectContext","_jsxs","cx","styles","_jsx","SelectPrimitive.Value"],"mappings":";;;;;;;;;AAMa,MAAA,WAAW,GAAGA,gBAAU,CAGnC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAChC,IAAA,MAAM,EAAE,KAAK,EAAE,GAAGC,2BAAgB,EAAE,CAAC;AACrC,IAAA,MAAM,WAAW,GAAG,KAAK,EAAE,IAAI,CAAC;AAEhC,IAAA,QACEC,iCAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEC,QAAE,CAACC,qBAAM,CAAC,YAAY,CAAC,aACpC,WAAW,IAAIC,0CAAK,SAAS,EAAED,qBAAM,CAAC,WAAW,EAAG,QAAA,EAAA,WAAW,GAAO,EACvEC,gCAAA,CAACC,aAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,KAAM,KAAK,EAAA,QAAA,EACvC,QAAQ,EACa,CAAA,CAAA,EAAA,CACpB,EACN;AACJ,CAAC,EAAE;AACH,WAAW,CAAC,WAAW,GAAGA,aAAqB,CAAC,WAAW;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-value.d.ts","sourceRoot":"","sources":["../../../../v1/components/select/select-value.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,eAAO,MAAM,WAAW,8HAetB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Value } from '../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.js';
|
|
4
|
+
import styles from './select.module.css.js';
|
|
5
|
+
import { useSelectContext } from './select-root.js';
|
|
6
|
+
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
7
|
+
|
|
8
|
+
const SelectValue = forwardRef(({ children, ...props }, ref) => {
|
|
9
|
+
const { value } = useSelectContext();
|
|
10
|
+
const leadingIcon = value?.icon;
|
|
11
|
+
return (jsxRuntimeExports.jsxs("div", { className: cx(styles.valueContent), children: [leadingIcon && jsxRuntimeExports.jsx("div", { className: styles.leadingIcon, children: leadingIcon }), jsxRuntimeExports.jsx(Value, { ref: ref, ...props, children: children })] }));
|
|
12
|
+
});
|
|
13
|
+
SelectValue.displayName = Value.displayName;
|
|
14
|
+
|
|
15
|
+
export { SelectValue };
|
|
16
|
+
//# sourceMappingURL=select-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-value.js","sources":["../../../../v1/components/select/select-value.tsx"],"sourcesContent":["import { ElementRef, forwardRef } from \"react\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport styles from \"./select.module.css\";\nimport { useSelectContext } from \"./select-root\";\nimport { cx } from \"class-variance-authority\";\n\nexport const SelectValue = forwardRef<\n ElementRef<typeof SelectPrimitive.Value>,\n SelectPrimitive.SelectValueProps\n>(({ children, ...props }, ref) => {\n const { value } = useSelectContext();\n const leadingIcon = value?.icon;\n\n return (\n <div className={cx(styles.valueContent)}>\n {leadingIcon && <div className={styles.leadingIcon}>{leadingIcon}</div>}\n <SelectPrimitive.Value ref={ref} {...props}>\n {children}\n </SelectPrimitive.Value>\n </div>\n );\n});\nSelectValue.displayName = SelectPrimitive.Value.displayName;\n"],"names":["_jsxs","_jsx","SelectPrimitive.Value"],"mappings":";;;;;;;AAMa,MAAA,WAAW,GAAG,UAAU,CAGnC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AAChC,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAC;AACrC,IAAA,MAAM,WAAW,GAAG,KAAK,EAAE,IAAI,CAAC;AAEhC,IAAA,QACEA,sBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,aACpC,WAAW,IAAIC,+BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAG,QAAA,EAAA,WAAW,GAAO,EACvEA,qBAAA,CAACC,KAAqB,EAAC,EAAA,GAAG,EAAE,GAAG,KAAM,KAAK,EAAA,QAAA,EACvC,QAAQ,EACa,CAAA,CAAA,EAAA,CACpB,EACN;AACJ,CAAC,EAAE;AACH,WAAW,CAAC,WAAW,GAAGA,KAAqB,CAAC,WAAW;;;;"}
|
|
@@ -1,92 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
-
var reactIcons_esm = require('../../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
|
|
5
3
|
var index = require('../../node_modules/.pnpm/@radix-ui_react-select@2.1.1_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-select/dist/index.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
4
|
+
var selectTrigger = require('./select-trigger.cjs');
|
|
5
|
+
var selectContent = require('./select-content.cjs');
|
|
6
|
+
var selectItem = require('./select-item.cjs');
|
|
7
|
+
var selectValue = require('./select-value.cjs');
|
|
8
|
+
var selectRoot = require('./select-root.cjs');
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
-
|
|
30
|
-
const trigger = index$1.cva(select_module.default.trigger, {
|
|
31
|
-
variants: {
|
|
32
|
-
size: {
|
|
33
|
-
small: select_module.default["trigger-small"],
|
|
34
|
-
medium: select_module.default["trigger-medium"],
|
|
35
|
-
},
|
|
36
|
-
variant: {
|
|
37
|
-
outline: select_module.default["trigger-outline"],
|
|
38
|
-
text: select_module.default["trigger-text"],
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
defaultVariants: {
|
|
42
|
-
size: "medium",
|
|
43
|
-
variant: "outline",
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
const SelectTrigger = React__namespace.forwardRef(({ size, variant, className, children, iconProps = {}, 'aria-label': ariaLabel, style, stopPropagation = false, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(index.Trigger, { ref: ref, className: trigger({ size, variant, className }), "aria-label": ariaLabel || 'Select option', role: "combobox", style: {
|
|
47
|
-
...style,
|
|
48
|
-
display: 'flex',
|
|
49
|
-
justifyContent: 'space-between'
|
|
50
|
-
}, onPointerDown: (e) => {
|
|
51
|
-
if (stopPropagation) {
|
|
52
|
-
e.stopPropagation();
|
|
53
|
-
}
|
|
54
|
-
}, ...props, children: [jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.triggerContent, children: children }), jsxRuntime.jsxRuntimeExports.jsx(index.Icon, { asChild: true, children: jsxRuntime.jsxRuntimeExports.jsx(reactIcons_esm.ChevronDownIcon, { className: select_module.default.triggerIcon, "aria-hidden": "true", ...iconProps }) })] })));
|
|
55
|
-
SelectTrigger.displayName = index.Trigger.displayName;
|
|
56
|
-
const content = index$1.cva(select_module.default.content);
|
|
57
|
-
const SelectContent = React__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, className: content({ className }), position: position, role: "listbox", onPointerDownOutside: (e) => {
|
|
58
|
-
e.stopPropagation();
|
|
59
|
-
}, ...props, children: children }) })));
|
|
60
|
-
SelectContent.displayName = index.Content.displayName;
|
|
61
|
-
const menuitem = index$1.cva(select_module.default.menuitem);
|
|
62
|
-
const SelectIconContext = React__namespace.createContext({
|
|
63
|
-
icons: {},
|
|
64
|
-
registerIcon: () => { }
|
|
65
|
-
});
|
|
66
|
-
const SelectRoot = ({ children, disabled, ...props }) => {
|
|
67
|
-
const [icons, setIcons] = React__namespace.useState({});
|
|
68
|
-
const registerIcon = React__namespace.useCallback((value, icon) => {
|
|
69
|
-
setIcons(prev => ({ ...prev, [value]: icon }));
|
|
70
|
-
}, []);
|
|
71
|
-
return (jsxRuntime.jsxRuntimeExports.jsx(SelectIconContext.Provider, { value: { icons, registerIcon }, children: jsxRuntime.jsxRuntimeExports.jsx(index.Root, { disabled: disabled, ...props, children: children }) }));
|
|
72
|
-
};
|
|
73
|
-
const SelectItem = React__namespace.forwardRef(({ className, textProps = {}, children, leadingIcon, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsxs(index.Item, { ref: ref, className: menuitem({ className }), role: "option", ...props, children: [leadingIcon && jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.itemIcon, children: leadingIcon }), jsxRuntime.jsxRuntimeExports.jsx(index.ItemText, { children: jsxRuntime.jsxRuntimeExports.jsx(text.Text, { ...textProps, children: children }) })] })));
|
|
74
|
-
SelectItem.displayName = index.Item.displayName;
|
|
75
|
-
const separator = index$1.cva(select_module.default.separator);
|
|
76
|
-
const SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Separator, { ref: ref, className: separator({ className }), ...props })));
|
|
77
|
-
SelectSeparator.displayName = index.Separator.displayName;
|
|
78
|
-
const SelectValue = React__namespace.forwardRef(({ leadingIcon, children, placeholder, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Value, { ref: ref, placeholder: placeholder, ...props, children: jsxRuntime.jsxRuntimeExports.jsxs("div", { className: select_module.default.valueContent, title: typeof children === 'string' ? children : undefined, children: [leadingIcon && jsxRuntime.jsxRuntimeExports.jsx("div", { className: select_module.default.leadingIcon, children: leadingIcon }), children] }) })));
|
|
79
|
-
SelectValue.displayName = index.Value.displayName;
|
|
80
|
-
const Select = Object.assign(SelectRoot, {
|
|
10
|
+
const Select = Object.assign(selectRoot.SelectRoot, {
|
|
81
11
|
Group: index.Group,
|
|
82
|
-
Value: SelectValue,
|
|
12
|
+
Value: selectValue.SelectValue,
|
|
83
13
|
ScrollUpButton: index.ScrollDownButton,
|
|
84
14
|
ScrollDownButton: index.ScrollDownButton,
|
|
85
15
|
Viewport: index.Viewport,
|
|
86
|
-
Trigger: SelectTrigger,
|
|
87
|
-
Content: SelectContent,
|
|
88
|
-
Item: SelectItem,
|
|
89
|
-
Separator:
|
|
16
|
+
Trigger: selectTrigger.SelectTrigger,
|
|
17
|
+
Content: selectContent.SelectContent,
|
|
18
|
+
Item: selectItem.SelectItem,
|
|
19
|
+
Separator: index.Separator,
|
|
90
20
|
});
|
|
91
21
|
|
|
92
22
|
exports.Select = Select;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.cjs","sources":["../../../../v1/components/select/select.tsx"],"sourcesContent":["import { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { Text } from \"../text\";\nimport { TextProps } from \"../text/text\";\nimport styles from \"./select.module.css\";\n\ninterface AriaProps {\n 'aria-label'?: string;\n 'aria-describedby'?: string;\n 'aria-required'?: boolean;\n 'aria-invalid'?: boolean;\n}\n\ninterface TriggerStyleProps {\n style?: React.CSSProperties;\n className?: string;\n stopPropagation?: boolean;\n}\n\nexport interface IconProps extends React.SVGAttributes<SVGElement> {\n children?: never;\n color?: string;\n}\n\ninterface SelectValueProps extends SelectPrimitive.SelectValueProps {\n leadingIcon?: React.ReactNode;\n placeholder?: string;\n}\n\nconst trigger = cva(styles.trigger, {\n variants: {\n size: {\n small: styles[\"trigger-small\"],\n medium: styles[\"trigger-medium\"],\n },\n variant: {\n outline: styles[\"trigger-outline\"],\n text: styles[\"trigger-text\"],\n }\n },\n defaultVariants: {\n size: \"medium\",\n variant: \"outline\",\n },\n});\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> &\n React.PropsWithChildren<VariantProps<typeof trigger>> & {\n iconProps?: IconProps;\n } &\n AriaProps &\n TriggerStyleProps\n>(({ \n size, \n variant, \n className, \n children, \n iconProps = {}, \n 'aria-label': ariaLabel,\n style,\n stopPropagation = false,\n ...props \n}, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={trigger({ size, variant, className })}\n aria-label={ariaLabel || 'Select option'}\n role=\"combobox\"\n style={{\n ...style,\n display: 'flex',\n justifyContent: 'space-between'\n }}\n onPointerDown={(e) => {\n if (stopPropagation) {\n e.stopPropagation();\n }\n }}\n {...props}\n >\n <div className={styles.triggerContent}>\n {children}\n </div>\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon \n className={styles.triggerIcon} \n aria-hidden=\"true\"\n {...iconProps} \n />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst content = cva(styles.content);\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> &\n React.PropsWithChildren<VariantProps<typeof content>>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={content({ className })}\n position={position}\n role=\"listbox\"\n onPointerDownOutside={(e) => {\n e.stopPropagation();\n }}\n {...props}\n >\n {children}\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst menuitem = cva(styles.menuitem);\n\nconst SelectIconContext = React.createContext<{\n icons: Record<string, React.ReactNode>;\n registerIcon: (value: string, icon: React.ReactNode) => void;\n}>({\n icons: {},\n registerIcon: () => {}\n});\n\ninterface SelectRootProps extends SelectPrimitive.SelectProps {\n disabled?: boolean;\n}\n\nconst SelectRoot = ({ children, disabled, ...props }: SelectRootProps) => {\n const [icons, setIcons] = React.useState<Record<string, React.ReactNode>>({});\n \n const registerIcon = React.useCallback((value: string, icon: React.ReactNode) => {\n setIcons(prev => ({ ...prev, [value]: icon }));\n }, []);\n \n return (\n <SelectIconContext.Provider value={{ icons, registerIcon }}>\n <SelectPrimitive.Root disabled={disabled} {...props}>\n {children}\n </SelectPrimitive.Root>\n </SelectIconContext.Provider>\n );\n};\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> & {\n textProps?: TextProps;\n leadingIcon?: React.ReactNode;\n }\n>(({ className, textProps = {}, children, leadingIcon, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={menuitem({ className })}\n role=\"option\"\n {...props}\n >\n {leadingIcon && <div className={styles.itemIcon}>{leadingIcon}</div>}\n <SelectPrimitive.ItemText>\n <Text {...textProps}>{children}</Text>\n </SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst separator = cva(styles.separator);\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={separator({ className })}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nconst SelectValue = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Value>,\n SelectValueProps\n>(({ leadingIcon, children, placeholder, ...props }, ref) => (\n <SelectPrimitive.Value \n ref={ref} \n placeholder={placeholder}\n {...props}\n >\n <div \n className={styles.valueContent}\n title={typeof children === 'string' ? children : undefined}\n >\n {leadingIcon && <div className={styles.leadingIcon}>{leadingIcon}</div>}\n {children}\n </div>\n </SelectPrimitive.Value>\n));\nSelectValue.displayName = SelectPrimitive.Value.displayName;\n\nexport const Select = Object.assign(SelectRoot, {\n Group: SelectPrimitive.Group,\n Value: SelectValue,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectSeparator,\n});\n"],"names":["cva","styles","React","_jsxs","SelectPrimitive.Trigger","_jsx","SelectPrimitive.Icon","ChevronDownIcon","SelectPrimitive.Portal","SelectPrimitive.Content","SelectPrimitive.Root","SelectPrimitive.Item","SelectPrimitive.ItemText","Text","SelectPrimitive.Separator","SelectPrimitive.Value","SelectPrimitive.Group","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"select.cjs","sources":["../../../../v1/components/select/select.tsx"],"sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { SelectTrigger } from \"./select-trigger\";\nimport { SelectContent } from \"./select-content\";\nimport { SelectItem } from \"./select-item\";\nimport { SelectValue } from \"./select-value\";\nimport { SelectRoot } from \"./select-root\";\n\nexport const Select = Object.assign(SelectRoot, {\n Group: SelectPrimitive.Group,\n Value: SelectValue,\n ScrollUpButton: SelectPrimitive.ScrollDownButton,\n ScrollDownButton: SelectPrimitive.ScrollDownButton,\n Viewport: SelectPrimitive.Viewport,\n Trigger: SelectTrigger,\n Content: SelectContent,\n Item: SelectItem,\n Separator: SelectPrimitive.Separator,\n});\n"],"names":["SelectRoot","SelectPrimitive.Group","SelectValue","SelectPrimitive.ScrollDownButton","SelectPrimitive.Viewport","SelectTrigger","SelectContent","SelectItem","SelectPrimitive.Separator"],"mappings":";;;;;;;;;MAOa,MAAM,GAAG,MAAM,CAAC,MAAM,CAACA,qBAAU,EAAE;IAC9C,KAAK,EAAEC,WAAqB;AAC5B,IAAA,KAAK,EAAEC,uBAAW;IAClB,cAAc,EAAEC,sBAAgC;IAChD,gBAAgB,EAAEA,sBAAgC;IAClD,QAAQ,EAAEC,cAAwB;AAClC,IAAA,OAAO,EAAEC,2BAAa;AACtB,IAAA,OAAO,EAAEC,2BAAa;AACtB,IAAA,IAAI,EAAEC,qBAAU;IAChB,SAAS,EAAEC,eAAyB;AACrC,CAAA;;;;"}
|