@raystack/apsara 0.30.2 → 0.31.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/label/label.cjs +3 -0
- package/dist/label/label.cjs.map +1 -1
- package/dist/label/label.d.ts +3 -0
- package/dist/label/label.d.ts.map +1 -1
- package/dist/label/label.js +3 -0
- package/dist/label/label.js.map +1 -1
- package/dist/popover/popover.cjs +3 -0
- package/dist/popover/popover.cjs.map +1 -1
- package/dist/popover/popover.d.ts +3 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.js +3 -0
- package/dist/popover/popover.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v1/components/label/index.d.ts +2 -0
- package/dist/v1/components/label/index.d.ts.map +1 -0
- package/dist/v1/components/label/label.cjs +28 -0
- package/dist/v1/components/label/label.cjs.map +1 -0
- package/dist/v1/components/label/label.d.ts +14 -0
- package/dist/v1/components/label/label.d.ts.map +1 -0
- package/dist/v1/components/label/label.js +26 -0
- package/dist/v1/components/label/label.js.map +1 -0
- package/dist/v1/components/label/label.module.css.cjs +8 -0
- package/dist/v1/components/label/label.module.css.cjs.map +1 -0
- package/dist/v1/components/label/label.module.css.js +4 -0
- package/dist/v1/components/label/label.module.css.js.map +1 -0
- package/dist/v1/components/popover/popover.cjs +2 -2
- package/dist/v1/components/popover/popover.cjs.map +1 -1
- package/dist/v1/components/popover/popover.d.ts +6 -2
- package/dist/v1/components/popover/popover.d.ts.map +1 -1
- package/dist/v1/components/popover/popover.js +2 -2
- package/dist/v1/components/popover/popover.js.map +1 -1
- package/dist/v1/components/popover/popover.module.css.cjs +1 -1
- package/dist/v1/components/popover/popover.module.css.js +1 -1
- package/dist/v1/index.cjs +4 -0
- package/dist/v1/index.cjs.map +1 -1
- package/dist/v1/index.d.ts +2 -0
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +2 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/label/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
5
|
+
var label_module = require('./label.module.css.cjs');
|
|
6
|
+
|
|
7
|
+
const label = index.cva(label_module.default.label, {
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
small: label_module.default["label-small"],
|
|
11
|
+
medium: label_module.default["label-medium"],
|
|
12
|
+
large: label_module.default["label-large"],
|
|
13
|
+
},
|
|
14
|
+
required: {
|
|
15
|
+
true: label_module.default["label-required"],
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "small",
|
|
20
|
+
required: false,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
function Label({ children, className, size, required, requiredIndicator = "*", htmlFor, ...props }) {
|
|
24
|
+
return (jsxRuntime.jsxRuntimeExports.jsxs("label", { className: label({ size, required, className }), htmlFor: htmlFor, ...props, children: [children, required && (jsxRuntime.jsxRuntimeExports.jsx("span", { className: label_module.default["required-indicator"], "aria-hidden": "true", role: "presentation", children: requiredIndicator }))] }));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
exports.Label = Label;
|
|
28
|
+
//# sourceMappingURL=label.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.cjs","sources":["../../../../v1/components/label/label.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n required: {\n true: styles[\"label-required\"],\n }\n },\n defaultVariants: {\n size: \"small\",\n required: false,\n },\n});\n\ninterface LabelProps extends PropsWithChildren<VariantProps<typeof label>>, \n Omit<HTMLAttributes<HTMLLabelElement>, 'required'> {\n required?: boolean;\n requiredIndicator?: string;\n htmlFor?: string;\n}\n\nexport function Label({ \n children, \n className, \n size, \n required, \n requiredIndicator = \"*\",\n htmlFor,\n ...props \n}: LabelProps) {\n return (\n <label\n className={label({ size, required, className })}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <span \n className={styles[\"required-indicator\"]} \n aria-hidden=\"true\"\n role=\"presentation\"\n >\n {requiredIndicator}\n </span>\n )}\n </label>\n );\n}\n\nexport type { LabelProps }; "],"names":["cva","styles","_jsxs","_jsx"],"mappings":";;;;;;AAIA,MAAM,KAAK,GAAGA,SAAG,CAACC,oBAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAEA,oBAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAEA,oBAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAEA,oBAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AASG,SAAU,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,iBAAiB,GAAG,GAAG,EACvB,OAAO,EACP,GAAG,KAAK,EACG,EAAA;IACX,QACEC,6CACE,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC/C,OAAO,EAAE,OAAO,EAAA,GACZ,KAAK,EAER,QAAA,EAAA,CAAA,QAAQ,EACR,QAAQ,KACPC,gCACE,CAAA,MAAA,EAAA,EAAA,SAAS,EAAEF,oBAAM,CAAC,oBAAoB,CAAC,EAAA,aAAA,EAC3B,MAAM,EAClB,IAAI,EAAC,cAAc,EAAA,QAAA,EAElB,iBAAiB,EACb,CAAA,CACR,CACK,EAAA,CAAA,EACR;AACJ;;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
3
|
+
declare const label: (props?: ({
|
|
4
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
|
+
required?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface LabelProps extends PropsWithChildren<VariantProps<typeof label>>, Omit<HTMLAttributes<HTMLLabelElement>, 'required'> {
|
|
8
|
+
required?: boolean;
|
|
9
|
+
requiredIndicator?: string;
|
|
10
|
+
htmlFor?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function Label({ children, className, size, required, requiredIndicator, htmlFor, ...props }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type { LabelProps };
|
|
14
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../v1/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1D,QAAA,MAAM,KAAK;;;mFAeT,CAAC;AAEH,UAAU,UAAW,SAAQ,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,EACxE,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,iBAAuB,EACvB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,UAAU,2CAmBZ;AAED,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
3
|
+
import styles from './label.module.css.js';
|
|
4
|
+
|
|
5
|
+
const label = cva(styles.label, {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
small: styles["label-small"],
|
|
9
|
+
medium: styles["label-medium"],
|
|
10
|
+
large: styles["label-large"],
|
|
11
|
+
},
|
|
12
|
+
required: {
|
|
13
|
+
true: styles["label-required"],
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
size: "small",
|
|
18
|
+
required: false,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
function Label({ children, className, size, required, requiredIndicator = "*", htmlFor, ...props }) {
|
|
22
|
+
return (jsxRuntimeExports.jsxs("label", { className: label({ size, required, className }), htmlFor: htmlFor, ...props, children: [children, required && (jsxRuntimeExports.jsx("span", { className: styles["required-indicator"], "aria-hidden": "true", role: "presentation", children: requiredIndicator }))] }));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { Label };
|
|
26
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sources":["../../../../v1/components/label/label.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { HTMLAttributes, PropsWithChildren } from \"react\";\nimport styles from \"./label.module.css\";\n\nconst label = cva(styles.label, {\n variants: {\n size: {\n small: styles[\"label-small\"],\n medium: styles[\"label-medium\"],\n large: styles[\"label-large\"],\n },\n required: {\n true: styles[\"label-required\"],\n }\n },\n defaultVariants: {\n size: \"small\",\n required: false,\n },\n});\n\ninterface LabelProps extends PropsWithChildren<VariantProps<typeof label>>, \n Omit<HTMLAttributes<HTMLLabelElement>, 'required'> {\n required?: boolean;\n requiredIndicator?: string;\n htmlFor?: string;\n}\n\nexport function Label({ \n children, \n className, \n size, \n required, \n requiredIndicator = \"*\",\n htmlFor,\n ...props \n}: LabelProps) {\n return (\n <label\n className={label({ size, required, className })}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <span \n className={styles[\"required-indicator\"]} \n aria-hidden=\"true\"\n role=\"presentation\"\n >\n {requiredIndicator}\n </span>\n )}\n </label>\n );\n}\n\nexport type { LabelProps }; "],"names":["_jsxs","_jsx"],"mappings":";;;;AAIA,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC5B,YAAA,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;AAC9B,YAAA,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC;AAC7B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AASG,SAAU,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,iBAAiB,GAAG,GAAG,EACvB,OAAO,EACP,GAAG,KAAK,EACG,EAAA;IACX,QACEA,kCACE,SAAS,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAC/C,OAAO,EAAE,OAAO,EAAA,GACZ,KAAK,EAER,QAAA,EAAA,CAAA,QAAQ,EACR,QAAQ,KACPC,qBACE,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EAAA,aAAA,EAC3B,MAAM,EAClB,IAAI,EAAC,cAAc,EAAA,QAAA,EAElB,iBAAiB,EACb,CAAA,CACR,CACK,EAAA,CAAA,EACR;AACJ;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styles = {"label":"label-module_label__OIkuZ","label-small":"label-module_label-small__rSsvR","label-medium":"label-module_label-medium__Y34uy","label-large":"label-module_label-large__jBmWr","required-indicator":"label-module_required-indicator__N79vb","label___small":"label-module_label-small__rSsvR","label___medium":"label-module_label-medium__Y34uy","label___large":"label-module_label-large__jBmWr","required___indicator":"label-module_required-indicator__N79vb"};
|
|
6
|
+
|
|
7
|
+
exports.default = styles;
|
|
8
|
+
//# sourceMappingURL=label.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var styles = {"label":"label-module_label__OIkuZ","label-small":"label-module_label-small__rSsvR","label-medium":"label-module_label-medium__Y34uy","label-large":"label-module_label-large__jBmWr","required-indicator":"label-module_required-indicator__N79vb","label___small":"label-module_label-small__rSsvR","label___medium":"label-module_label-medium__Y34uy","label___large":"label-module_label-large__jBmWr","required___indicator":"label-module_required-indicator__N79vb"};
|
|
2
|
+
|
|
3
|
+
export { styles as default };
|
|
4
|
+
//# sourceMappingURL=label.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
+
var React = require('react');
|
|
4
5
|
var index = require('../../node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@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-popover/dist/index.cjs');
|
|
5
6
|
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
6
|
-
var React = require('react');
|
|
7
7
|
var popover_module = require('./popover.module.css.cjs');
|
|
8
8
|
|
|
9
9
|
const popoverContent = index$1.cva(popover_module.default.popover);
|
|
10
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, align: align, sideOffset: sideOffset, className: popoverContent({ className }), ...props }) })));
|
|
10
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ariaLabel = "Popover content", collisionPadding = 3, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, align: align, sideOffset: sideOffset, collisionPadding: collisionPadding, avoidCollisions: true, className: popoverContent({ className }), role: "dialog", "aria-modal": "true", "aria-label": ariaLabel, ...props, children: props.children }) })));
|
|
11
11
|
PopoverContent.displayName = index.Content.displayName;
|
|
12
12
|
const Popover = Object.assign(index.Root, {
|
|
13
13
|
Trigger: index.Trigger,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.cjs","sources":["../../../../v1/components/popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva } from \"class-variance-authority\";\
|
|
1
|
+
{"version":3,"file":"popover.cjs","sources":["../../../../v1/components/popover/popover.tsx"],"sourcesContent":["import React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva } from \"class-variance-authority\";\n\nimport styles from \"./popover.module.css\";\n\nconst popoverContent = cva(styles.popover);\n\ninterface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {\n ariaLabel?: string;\n}\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n PopoverContentProps\n>(({ \n className, \n align = \"center\", \n sideOffset = 4, \n ariaLabel = \"Popover content\",\n collisionPadding = 3,\n ...props \n}, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n collisionPadding={collisionPadding}\n avoidCollisions\n className={popoverContent({ className })}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={ariaLabel}\n {...props}\n >\n {props.children}\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["cva","styles","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;;;AAMA,MAAM,cAAc,GAAGA,WAAG,CAACC,sBAAM,CAAC,OAAO,CAAC,CAAC;AAM3C,MAAM,cAAc,GAAG,KAAK,CAAC,UAAU,CAGrC,CAAC,EACD,SAAS,EACT,KAAK,GAAG,QAAQ,EAChB,UAAU,GAAG,CAAC,EACd,SAAS,GAAG,iBAAiB,EAC7B,gBAAgB,GAAG,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,GAAG,MACJC,iCAACC,YAAuB,EACtB,EAAA,QAAA,EAAAD,gCAAA,CAACE,aAAwB,EACvB,EAAA,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EACf,IAAA,EAAA,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EACxC,IAAI,EAAC,QAAQ,EAAA,YAAA,EACF,MAAM,EACL,YAAA,EAAA,SAAS,KACjB,KAAK,EAAA,QAAA,EAER,KAAK,CAAC,QAAQ,GACU,EACH,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,aAAwB,CAAC,WAAW,CAAC;AAErD,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,UAAqB,EAAE;IAC1D,OAAO,EAAEC,aAAwB;IACjC,KAAK,EAAEC,WAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
}
|
|
3
6
|
export declare const Popover: React.FC<PopoverPrimitive.PopoverProps> & {
|
|
4
7
|
Trigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
8
|
Close: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
Content: React.ForwardRefExoticComponent<
|
|
9
|
+
Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
10
|
};
|
|
11
|
+
export {};
|
|
8
12
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../v1/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../v1/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAO5D,UAAU,mBAAoB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAgCD,eAAO,MAAM,OAAO;;;;CAIlB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
+
import React__default from 'react';
|
|
2
3
|
import { Portal as $cb5cc270b50c6fcd$export$602eac185826482c, Content as $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, Root as $cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, Trigger as $cb5cc270b50c6fcd$export$41fb9f06171c75f4, Close as $cb5cc270b50c6fcd$export$f39c2d165cd861fe } from '../../node_modules/.pnpm/@radix-ui_react-popover@1.0.6_@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-popover/dist/index.js';
|
|
3
4
|
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
4
|
-
import React__default from 'react';
|
|
5
5
|
import styles from './popover.module.css.js';
|
|
6
6
|
|
|
7
7
|
const popoverContent = cva(styles.popover);
|
|
8
|
-
const PopoverContent = React__default.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { ref: ref, align: align, sideOffset: sideOffset, className: popoverContent({ className }), ...props }) })));
|
|
8
|
+
const PopoverContent = React__default.forwardRef(({ className, align = "center", sideOffset = 4, ariaLabel = "Popover content", collisionPadding = 3, ...props }, ref) => (jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { ref: ref, align: align, sideOffset: sideOffset, collisionPadding: collisionPadding, avoidCollisions: true, className: popoverContent({ className }), role: "dialog", "aria-modal": "true", "aria-label": ariaLabel, ...props, children: props.children }) })));
|
|
9
9
|
PopoverContent.displayName = $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;
|
|
10
10
|
const Popover = Object.assign($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, {
|
|
11
11
|
Trigger: $cb5cc270b50c6fcd$export$41fb9f06171c75f4,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sources":["../../../../v1/components/popover/popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva } from \"class-variance-authority\";\
|
|
1
|
+
{"version":3,"file":"popover.js","sources":["../../../../v1/components/popover/popover.tsx"],"sourcesContent":["import React from \"react\";\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport { cva } from \"class-variance-authority\";\n\nimport styles from \"./popover.module.css\";\n\nconst popoverContent = cva(styles.popover);\n\ninterface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {\n ariaLabel?: string;\n}\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n PopoverContentProps\n>(({ \n className, \n align = \"center\", \n sideOffset = 4, \n ariaLabel = \"Popover content\",\n collisionPadding = 3,\n ...props \n}, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n collisionPadding={collisionPadding}\n avoidCollisions\n className={popoverContent({ className })}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={ariaLabel}\n {...props}\n >\n {props.children}\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n Trigger: PopoverPrimitive.Trigger,\n Close: PopoverPrimitive.Close,\n Content: PopoverContent,\n});\n"],"names":["React","_jsx","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Close"],"mappings":";;;;;;AAMA,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAM3C,MAAM,cAAc,GAAGA,cAAK,CAAC,UAAU,CAGrC,CAAC,EACD,SAAS,EACT,KAAK,GAAG,QAAQ,EAChB,UAAU,GAAG,CAAC,EACd,SAAS,GAAG,iBAAiB,EAC7B,gBAAgB,GAAG,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,GAAG,MACJC,sBAACC,yCAAuB,EACtB,EAAA,QAAA,EAAAD,qBAAA,CAACE,yCAAwB,EACvB,EAAA,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EACf,IAAA,EAAA,SAAS,EAAE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,EACxC,IAAI,EAAC,QAAQ,EAAA,YAAA,EACF,MAAM,EACL,YAAA,EAAA,SAAS,KACjB,KAAK,EAAA,QAAA,EAER,KAAK,CAAC,QAAQ,GACU,EACH,CAAA,CAC3B,CAAC,CAAC;AACH,cAAc,CAAC,WAAW,GAAGA,yCAAwB,CAAC,WAAW,CAAC;AAErD,MAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAACC,yCAAqB,EAAE;IAC1D,OAAO,EAAEC,yCAAwB;IACjC,KAAK,EAAEC,yCAAsB;AAC7B,IAAA,OAAO,EAAE,cAAc;AACxB,CAAA;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var styles = {"popover":"popover-module_popover__1hjjS"};
|
|
5
|
+
var styles = {"popover":"popover-module_popover__1hjjS","slideUpAndFade":"popover-module_slideUpAndFade__VxgQh"};
|
|
6
6
|
|
|
7
7
|
exports.default = styles;
|
|
8
8
|
//# sourceMappingURL=popover.module.css.cjs.map
|
package/dist/v1/index.cjs
CHANGED
|
@@ -23,6 +23,7 @@ var iconButton = require('./components/icon-button/icon-button.cjs');
|
|
|
23
23
|
var indicator = require('./components/indicator/indicator.cjs');
|
|
24
24
|
var inputField = require('./components/input-field/input-field.cjs');
|
|
25
25
|
var link = require('./components/link/link.cjs');
|
|
26
|
+
var popover = require('./components/popover/popover.cjs');
|
|
26
27
|
var radio = require('./components/radio/radio.cjs');
|
|
27
28
|
var separator = require('./components/separator/separator.cjs');
|
|
28
29
|
var search = require('./components/search/search.cjs');
|
|
@@ -34,6 +35,7 @@ var tabs = require('./components/tabs/tabs.cjs');
|
|
|
34
35
|
var text = require('./components/text/text.cjs');
|
|
35
36
|
var textArea = require('./components/text-area/text-area.cjs');
|
|
36
37
|
var list = require('./components/list/list.cjs');
|
|
38
|
+
var label = require('./components/label/label.cjs');
|
|
37
39
|
var switcher = require('./components/theme-provider/switcher.cjs');
|
|
38
40
|
var theme = require('./components/theme-provider/theme.cjs');
|
|
39
41
|
var toast = require('./components/toast/toast.cjs');
|
|
@@ -65,6 +67,7 @@ exports.IconButton = iconButton.IconButton;
|
|
|
65
67
|
exports.Indicator = indicator.Indicator;
|
|
66
68
|
exports.InputField = inputField.InputField;
|
|
67
69
|
exports.Link = link.Link;
|
|
70
|
+
exports.Popover = popover.Popover;
|
|
68
71
|
exports.Radio = radio.Radio;
|
|
69
72
|
exports.Separator = separator.Separator;
|
|
70
73
|
exports.Search = search.Search;
|
|
@@ -76,6 +79,7 @@ exports.Tabs = tabs.Tabs;
|
|
|
76
79
|
exports.Text = text.Text;
|
|
77
80
|
exports.TextArea = textArea.TextArea;
|
|
78
81
|
exports.List = list.List;
|
|
82
|
+
exports.Label = label.Label;
|
|
79
83
|
exports.ThemeSwitcher = switcher.ThemeSwitcher;
|
|
80
84
|
exports.ThemeProvider = theme.ThemeProvider;
|
|
81
85
|
exports.useTheme = theme.useTheme;
|
package/dist/v1/index.cjs.map
CHANGED
|
@@ -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/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { IconButton } from "./components/icon-button";
|
|
|
20
20
|
export { Indicator } from "./components/indicator";
|
|
21
21
|
export { InputField } from "./components/input-field";
|
|
22
22
|
export { Link } from "./components/link";
|
|
23
|
+
export { Popover } from "./components/popover";
|
|
23
24
|
export { Radio } from "./components/radio";
|
|
24
25
|
export { Separator } from "./components/separator";
|
|
25
26
|
export { Search } from "./components/search";
|
|
@@ -31,6 +32,7 @@ export { Tabs } from "./components/tabs";
|
|
|
31
32
|
export { Text } from "./components/text";
|
|
32
33
|
export { TextArea } from "./components/text-area";
|
|
33
34
|
export { List } from "./components/list";
|
|
35
|
+
export { Label } from "./components/label";
|
|
34
36
|
export { ThemeProvider, ThemeProviderProps, ThemeSwitcher, useTheme, } from "./components/theme-provider";
|
|
35
37
|
export { toast, ToastContainer } from "./components/toast";
|
|
36
38
|
export { Tooltip, TooltipProvider } from "./components/tooltip";
|
package/dist/v1/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../v1/index.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,UA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,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/v1/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export { IconButton } from './components/icon-button/icon-button.js';
|
|
|
21
21
|
export { Indicator } from './components/indicator/indicator.js';
|
|
22
22
|
export { InputField } from './components/input-field/input-field.js';
|
|
23
23
|
export { Link } from './components/link/link.js';
|
|
24
|
+
export { Popover } from './components/popover/popover.js';
|
|
24
25
|
export { Radio } from './components/radio/radio.js';
|
|
25
26
|
export { Separator } from './components/separator/separator.js';
|
|
26
27
|
export { Search } from './components/search/search.js';
|
|
@@ -32,6 +33,7 @@ export { Tabs } from './components/tabs/tabs.js';
|
|
|
32
33
|
export { Text } from './components/text/text.js';
|
|
33
34
|
export { TextArea } from './components/text-area/text-area.js';
|
|
34
35
|
export { List } from './components/list/list.js';
|
|
36
|
+
export { Label } from './components/label/label.js';
|
|
35
37
|
export { ThemeSwitcher } from './components/theme-provider/switcher.js';
|
|
36
38
|
export { ThemeProvider, useTheme } from './components/theme-provider/theme.js';
|
|
37
39
|
export { ToastContainer, toast } from './components/toast/toast.js';
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|