@simpleapps-com/augur-web 0.1.4 → 0.1.6
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/breadcrumb.cjs +18 -95
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.js +9 -86
- package/dist/breadcrumb.js.map +1 -1
- package/dist/breadcrumbs.cjs +41 -0
- package/dist/breadcrumbs.cjs.map +1 -0
- package/dist/breadcrumbs.d.cts +16 -0
- package/dist/breadcrumbs.d.ts +16 -0
- package/dist/breadcrumbs.js +41 -0
- package/dist/breadcrumbs.js.map +1 -0
- package/dist/chunk-32HMF5CX.cjs +98 -0
- package/dist/chunk-32HMF5CX.cjs.map +1 -0
- package/dist/chunk-3RVGVJDI.cjs +27 -0
- package/dist/chunk-3RVGVJDI.cjs.map +1 -0
- package/dist/chunk-CK53LO3J.cjs +25 -0
- package/dist/chunk-CK53LO3J.cjs.map +1 -0
- package/dist/chunk-DAU3SFHM.js +28 -0
- package/dist/chunk-DAU3SFHM.js.map +1 -0
- package/dist/chunk-DZ6HBEMA.js +27 -0
- package/dist/chunk-DZ6HBEMA.js.map +1 -0
- package/dist/chunk-FHS7SJEQ.js +25 -0
- package/dist/chunk-FHS7SJEQ.js.map +1 -0
- package/dist/chunk-GPDD67CJ.js +27 -0
- package/dist/chunk-GPDD67CJ.js.map +1 -0
- package/dist/chunk-KHJX4Q3S.js +98 -0
- package/dist/chunk-KHJX4Q3S.js.map +1 -0
- package/dist/chunk-ND6U4UQQ.js +134 -0
- package/dist/chunk-ND6U4UQQ.js.map +1 -0
- package/dist/chunk-NWGXDXRV.cjs +28 -0
- package/dist/chunk-NWGXDXRV.cjs.map +1 -0
- package/dist/chunk-Q6H6D3AN.cjs +134 -0
- package/dist/chunk-Q6H6D3AN.cjs.map +1 -0
- package/dist/chunk-VMOQCPK5.cjs +27 -0
- package/dist/chunk-VMOQCPK5.cjs.map +1 -0
- package/dist/form-field.cjs +10 -0
- package/dist/form-field.cjs.map +1 -0
- package/dist/form-field.d.cts +13 -0
- package/dist/form-field.d.ts +13 -0
- package/dist/form-field.js +10 -0
- package/dist/form-field.js.map +1 -0
- package/dist/form-input.cjs +35 -0
- package/dist/form-input.cjs.map +1 -0
- package/dist/form-input.d.cts +11 -0
- package/dist/form-input.d.ts +11 -0
- package/dist/form-input.js +35 -0
- package/dist/form-input.js.map +1 -0
- package/dist/form-select.cjs +61 -0
- package/dist/form-select.cjs.map +1 -0
- package/dist/form-select.d.cts +20 -0
- package/dist/form-select.d.ts +20 -0
- package/dist/form-select.js +61 -0
- package/dist/form-select.js.map +1 -0
- package/dist/form-textarea.cjs +35 -0
- package/dist/form-textarea.cjs.map +1 -0
- package/dist/form-textarea.d.cts +11 -0
- package/dist/form-textarea.d.ts +11 -0
- package/dist/form-textarea.js +35 -0
- package/dist/form-textarea.js.map +1 -0
- package/dist/input.cjs +4 -23
- package/dist/input.cjs.map +1 -1
- package/dist/input.js +3 -22
- package/dist/input.js.map +1 -1
- package/dist/label.cjs +4 -20
- package/dist/label.cjs.map +1 -1
- package/dist/label.js +3 -19
- package/dist/label.js.map +1 -1
- package/dist/select.cjs +24 -131
- package/dist/select.cjs.map +1 -1
- package/dist/select.js +11 -118
- package/dist/select.js.map +1 -1
- package/dist/textarea.cjs +4 -22
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.js +3 -21
- package/dist/textarea.js.map +1 -1
- package/package.json +27 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkVMOQCPK5cjs = require('./chunk-VMOQCPK5.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkNWGXDXRVcjs = require('./chunk-NWGXDXRV.cjs');
|
|
9
|
+
require('./chunk-CK53LO3J.cjs');
|
|
10
|
+
|
|
11
|
+
// src/form-input.tsx
|
|
12
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
13
|
+
var _web = require('@simpleapps-com/augur-utils/web');
|
|
14
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
15
|
+
var FormInput = React.forwardRef(
|
|
16
|
+
({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {
|
|
17
|
+
const htmlFor = _nullishCoalesce(_nullishCoalesce(id, () => ( name)), () => ( ""));
|
|
18
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
+
_chunkVMOQCPK5cjs.FormField,
|
|
20
|
+
{
|
|
21
|
+
label,
|
|
22
|
+
htmlFor,
|
|
23
|
+
required,
|
|
24
|
+
error,
|
|
25
|
+
className: _web.cn.call(void 0, gridSpan, className),
|
|
26
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNWGXDXRVcjs.Input, { ref, id: htmlFor, name, ...props })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
FormInput.displayName = "FormInput";
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.FormInput = FormInput;
|
|
35
|
+
//# sourceMappingURL=form-input.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-input.cjs","../src/form-input.tsx"],"names":[],"mappings":"AAAA,2cAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACA;ACRA,2EAAuB;AACvB,sDAAmB;AAwBX,+CAAA;AAZR,IAAM,UAAA,EAAkB,KAAA,CAAA,UAAA;AAAA,EACtB,CAAC,EAAE,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU,QAAA,EAAU,SAAA,EAAW,EAAA,EAAI,IAAA,EAAM,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,GAAQ;AAC5E,IAAA,MAAM,QAAA,oCAAU,EAAA,UAAM,MAAA,UAAQ,IAAA;AAE9B,IAAA,uBACE,6BAAA;AAAA,MAAC,2BAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,OAAA;AAAA,QACA,QAAA;AAAA,QACA,KAAA;AAAA,QACA,SAAA,EAAW,qBAAA,QAAG,EAAU,SAAS,CAAA;AAAA,QAEjC,QAAA,kBAAA,6BAAA,uBAAC,EAAA,EAAM,GAAA,EAAU,EAAA,EAAI,OAAA,EAAS,IAAA,EAAa,GAAG,MAAA,CAAO;AAAA,MAAA;AAAA,IACvD,CAAA;AAAA,EAEJ;AACF,CAAA;AACA,SAAA,CAAU,YAAA,EAAc,WAAA;ADDxB;AACE;AACF,8BAAC","file":"/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-input.cjs","sourcesContent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport { Input } from \"./input\";\n\nexport interface FormInputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n label: string;\n error?: string;\n required?: boolean;\n gridSpan?: string;\n}\n\nconst FormInput = React.forwardRef<HTMLInputElement, FormInputProps>(\n ({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {\n const htmlFor = id ?? name ?? \"\";\n\n return (\n <FormField\n label={label}\n htmlFor={htmlFor}\n required={required}\n error={error}\n className={cn(gridSpan, className)}\n >\n <Input ref={ref} id={htmlFor} name={name} {...props} />\n </FormField>\n );\n },\n);\nFormInput.displayName = \"FormInput\";\n\nexport { FormInput };\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
gridSpan?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
+
|
|
11
|
+
export { FormInput, type FormInputProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
gridSpan?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
+
|
|
11
|
+
export { FormInput, type FormInputProps };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
FormField
|
|
5
|
+
} from "./chunk-GPDD67CJ.js";
|
|
6
|
+
import {
|
|
7
|
+
Input
|
|
8
|
+
} from "./chunk-DAU3SFHM.js";
|
|
9
|
+
import "./chunk-FHS7SJEQ.js";
|
|
10
|
+
|
|
11
|
+
// src/form-input.tsx
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var FormInput = React.forwardRef(
|
|
16
|
+
({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {
|
|
17
|
+
const htmlFor = id ?? name ?? "";
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
FormField,
|
|
20
|
+
{
|
|
21
|
+
label,
|
|
22
|
+
htmlFor,
|
|
23
|
+
required,
|
|
24
|
+
error,
|
|
25
|
+
className: cn(gridSpan, className),
|
|
26
|
+
children: /* @__PURE__ */ jsx(Input, { ref, id: htmlFor, name, ...props })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
FormInput.displayName = "FormInput";
|
|
32
|
+
export {
|
|
33
|
+
FormInput
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=form-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/form-input.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport { Input } from \"./input\";\n\nexport interface FormInputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n label: string;\n error?: string;\n required?: boolean;\n gridSpan?: string;\n}\n\nconst FormInput = React.forwardRef<HTMLInputElement, FormInputProps>(\n ({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {\n const htmlFor = id ?? name ?? \"\";\n\n return (\n <FormField\n label={label}\n htmlFor={htmlFor}\n required={required}\n error={error}\n className={cn(gridSpan, className)}\n >\n <Input ref={ref} id={htmlFor} name={name} {...props} />\n </FormField>\n );\n },\n);\nFormInput.displayName = \"FormInput\";\n\nexport { FormInput };\n"],"mappings":";;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,UAAU;AAwBX;AAZR,IAAM,YAAkB;AAAA,EACtB,CAAC,EAAE,OAAO,OAAO,UAAU,UAAU,WAAW,IAAI,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC5E,UAAM,UAAU,MAAM,QAAQ;AAE9B,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW,GAAG,UAAU,SAAS;AAAA,QAEjC,8BAAC,SAAM,KAAU,IAAI,SAAS,MAAa,GAAG,OAAO;AAAA;AAAA,IACvD;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkQ6H6D3ANcjs = require('./chunk-Q6H6D3AN.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkVMOQCPK5cjs = require('./chunk-VMOQCPK5.cjs');
|
|
13
|
+
require('./chunk-CK53LO3J.cjs');
|
|
14
|
+
|
|
15
|
+
// src/form-select.tsx
|
|
16
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
17
|
+
var _web = require('@simpleapps-com/augur-utils/web');
|
|
18
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
19
|
+
var FormSelect = React.forwardRef(
|
|
20
|
+
({
|
|
21
|
+
label,
|
|
22
|
+
error,
|
|
23
|
+
required,
|
|
24
|
+
name,
|
|
25
|
+
value,
|
|
26
|
+
onValueChange,
|
|
27
|
+
options,
|
|
28
|
+
placeholder,
|
|
29
|
+
className,
|
|
30
|
+
disabled
|
|
31
|
+
}, ref) => {
|
|
32
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
+
_chunkVMOQCPK5cjs.FormField,
|
|
34
|
+
{
|
|
35
|
+
label,
|
|
36
|
+
htmlFor: name,
|
|
37
|
+
required,
|
|
38
|
+
error,
|
|
39
|
+
className: _web.cn.call(void 0, className),
|
|
40
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
41
|
+
_chunkQ6H6D3ANcjs.Select,
|
|
42
|
+
{
|
|
43
|
+
name,
|
|
44
|
+
value,
|
|
45
|
+
onValueChange,
|
|
46
|
+
disabled,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ6H6D3ANcjs.SelectTrigger, { ref, id: name, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ6H6D3ANcjs.SelectValue, { placeholder }) }),
|
|
49
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ6H6D3ANcjs.SelectContent, { children: options.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ6H6D3ANcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
FormSelect.displayName = "FormSelect";
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
exports.FormSelect = FormSelect;
|
|
61
|
+
//# sourceMappingURL=form-select.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-select.cjs","../src/form-select.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACA;ACZA,2EAAuB;AACvB,sDAAmB;AA+CX,+CAAA;AAxBR,IAAM,WAAA,EAAmB,KAAA,CAAA,UAAA;AAAA,EACvB,CACE;AAAA,IACE,KAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,IAAA;AAAA,IACA,KAAA;AAAA,IACA,aAAA;AAAA,IACA,OAAA;AAAA,IACA,WAAA;AAAA,IACA,SAAA;AAAA,IACA;AAAA,EACF,CAAA,EACA,GAAA,EAAA,GACG;AACH,IAAA,uBACE,6BAAA;AAAA,MAAC,2BAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,OAAA,EAAS,IAAA;AAAA,QACT,QAAA;AAAA,QACA,KAAA;AAAA,QACA,SAAA,EAAW,qBAAA,SAAY,CAAA;AAAA,QAEvB,QAAA,kBAAA,8BAAA;AAAA,UAAC,wBAAA;AAAA,UAAA;AAAA,YACC,IAAA;AAAA,YACA,KAAA;AAAA,YACA,aAAA;AAAA,YACA,QAAA;AAAA,YAEA,QAAA,EAAA;AAAA,8BAAA,6BAAA,+BAAC,EAAA,EAAc,GAAA,EAAU,EAAA,EAAI,IAAA,EAC3B,QAAA,kBAAA,6BAAA,6BAAC,EAAA,EAAY,YAAA,CAA0B,EAAA,CACzC,CAAA;AAAA,8BACA,6BAAA,+BAAC,EAAA,EACE,QAAA,EAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,MAAA,EAAA,mBACZ,6BAAA,4BAAC,EAAA,EAA8B,KAAA,EAAO,MAAA,CAAO,KAAA,EAC1C,QAAA,EAAA,MAAA,CAAO,MAAA,CAAA,EADO,MAAA,CAAO,KAExB,CACD,EAAA,CACH;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IACF,CAAA;AAAA,EAEJ;AACF,CAAA;AACA,UAAA,CAAW,YAAA,EAAc,YAAA;ADdzB;AACE;AACF,gCAAC","file":"/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-select.cjs","sourcesContent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport {\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n} from \"./select\";\n\nexport interface FormSelectProps {\n label: string;\n error?: string;\n required?: boolean;\n name: string;\n value?: string;\n onValueChange?: (value: string) => void;\n options: { label: string; value: string }[];\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n}\n\nconst FormSelect = React.forwardRef<HTMLButtonElement, FormSelectProps>(\n (\n {\n label,\n error,\n required,\n name,\n value,\n onValueChange,\n options,\n placeholder,\n className,\n disabled,\n },\n ref,\n ) => {\n return (\n <FormField\n label={label}\n htmlFor={name}\n required={required}\n error={error}\n className={cn(className)}\n >\n <Select\n name={name}\n value={value}\n onValueChange={onValueChange}\n disabled={disabled}\n >\n <SelectTrigger ref={ref} id={name}>\n <SelectValue placeholder={placeholder} />\n </SelectTrigger>\n <SelectContent>\n {options.map((option) => (\n <SelectItem key={option.value} value={option.value}>\n {option.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </FormField>\n );\n },\n);\nFormSelect.displayName = \"FormSelect\";\n\nexport { FormSelect };\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormSelectProps {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
options: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const FormSelect: React.ForwardRefExoticComponent<FormSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
export { FormSelect, type FormSelectProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormSelectProps {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
options: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const FormSelect: React.ForwardRefExoticComponent<FormSelectProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
|
|
20
|
+
export { FormSelect, type FormSelectProps };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
Select,
|
|
5
|
+
SelectContent,
|
|
6
|
+
SelectItem,
|
|
7
|
+
SelectTrigger,
|
|
8
|
+
SelectValue
|
|
9
|
+
} from "./chunk-ND6U4UQQ.js";
|
|
10
|
+
import {
|
|
11
|
+
FormField
|
|
12
|
+
} from "./chunk-GPDD67CJ.js";
|
|
13
|
+
import "./chunk-FHS7SJEQ.js";
|
|
14
|
+
|
|
15
|
+
// src/form-select.tsx
|
|
16
|
+
import * as React from "react";
|
|
17
|
+
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var FormSelect = React.forwardRef(
|
|
20
|
+
({
|
|
21
|
+
label,
|
|
22
|
+
error,
|
|
23
|
+
required,
|
|
24
|
+
name,
|
|
25
|
+
value,
|
|
26
|
+
onValueChange,
|
|
27
|
+
options,
|
|
28
|
+
placeholder,
|
|
29
|
+
className,
|
|
30
|
+
disabled
|
|
31
|
+
}, ref) => {
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
FormField,
|
|
34
|
+
{
|
|
35
|
+
label,
|
|
36
|
+
htmlFor: name,
|
|
37
|
+
required,
|
|
38
|
+
error,
|
|
39
|
+
className: cn(className),
|
|
40
|
+
children: /* @__PURE__ */ jsxs(
|
|
41
|
+
Select,
|
|
42
|
+
{
|
|
43
|
+
name,
|
|
44
|
+
value,
|
|
45
|
+
onValueChange,
|
|
46
|
+
disabled,
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ jsx(SelectTrigger, { ref, id: name, children: /* @__PURE__ */ jsx(SelectValue, { placeholder }) }),
|
|
49
|
+
/* @__PURE__ */ jsx(SelectContent, { children: options.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
FormSelect.displayName = "FormSelect";
|
|
58
|
+
export {
|
|
59
|
+
FormSelect
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=form-select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/form-select.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport {\n Select,\n SelectTrigger,\n SelectValue,\n SelectContent,\n SelectItem,\n} from \"./select\";\n\nexport interface FormSelectProps {\n label: string;\n error?: string;\n required?: boolean;\n name: string;\n value?: string;\n onValueChange?: (value: string) => void;\n options: { label: string; value: string }[];\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n}\n\nconst FormSelect = React.forwardRef<HTMLButtonElement, FormSelectProps>(\n (\n {\n label,\n error,\n required,\n name,\n value,\n onValueChange,\n options,\n placeholder,\n className,\n disabled,\n },\n ref,\n ) => {\n return (\n <FormField\n label={label}\n htmlFor={name}\n required={required}\n error={error}\n className={cn(className)}\n >\n <Select\n name={name}\n value={value}\n onValueChange={onValueChange}\n disabled={disabled}\n >\n <SelectTrigger ref={ref} id={name}>\n <SelectValue placeholder={placeholder} />\n </SelectTrigger>\n <SelectContent>\n {options.map((option) => (\n <SelectItem key={option.value} value={option.value}>\n {option.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </FormField>\n );\n },\n);\nFormSelect.displayName = \"FormSelect\";\n\nexport { FormSelect };\n"],"mappings":";;;;;;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,UAAU;AA+CX,SAOI,KAPJ;AAxBR,IAAM,aAAmB;AAAA,EACvB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GACA,QACG;AACH,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,SAAS;AAAA,QACT;AAAA,QACA;AAAA,QACA,WAAW,GAAG,SAAS;AAAA,QAEvB;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YAEA;AAAA,kCAAC,iBAAc,KAAU,IAAI,MAC3B,8BAAC,eAAY,aAA0B,GACzC;AAAA,cACA,oBAAC,iBACE,kBAAQ,IAAI,CAAC,WACZ,oBAAC,cAA8B,OAAO,OAAO,OAC1C,iBAAO,SADO,OAAO,KAExB,CACD,GACH;AAAA;AAAA;AAAA,QACF;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunk3RVGVJDIcjs = require('./chunk-3RVGVJDI.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkVMOQCPK5cjs = require('./chunk-VMOQCPK5.cjs');
|
|
9
|
+
require('./chunk-CK53LO3J.cjs');
|
|
10
|
+
|
|
11
|
+
// src/form-textarea.tsx
|
|
12
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
13
|
+
var _web = require('@simpleapps-com/augur-utils/web');
|
|
14
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
15
|
+
var FormTextarea = React.forwardRef(
|
|
16
|
+
({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {
|
|
17
|
+
const htmlFor = _nullishCoalesce(_nullishCoalesce(id, () => ( name)), () => ( ""));
|
|
18
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
+
_chunkVMOQCPK5cjs.FormField,
|
|
20
|
+
{
|
|
21
|
+
label,
|
|
22
|
+
htmlFor,
|
|
23
|
+
required,
|
|
24
|
+
error,
|
|
25
|
+
className: _web.cn.call(void 0, gridSpan, className),
|
|
26
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3RVGVJDIcjs.Textarea, { ref, id: htmlFor, name, ...props })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
FormTextarea.displayName = "FormTextarea";
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.FormTextarea = FormTextarea;
|
|
35
|
+
//# sourceMappingURL=form-textarea.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-textarea.cjs","../src/form-textarea.tsx"],"names":[],"mappings":"AAAA,2cAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACA;ACRA,2EAAuB;AACvB,sDAAmB;AAwBX,+CAAA;AAZR,IAAM,aAAA,EAAqB,KAAA,CAAA,UAAA;AAAA,EACzB,CAAC,EAAE,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU,QAAA,EAAU,SAAA,EAAW,EAAA,EAAI,IAAA,EAAM,GAAG,MAAM,CAAA,EAAG,GAAA,EAAA,GAAQ;AAC5E,IAAA,MAAM,QAAA,oCAAU,EAAA,UAAM,MAAA,UAAQ,IAAA;AAE9B,IAAA,uBACE,6BAAA;AAAA,MAAC,2BAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,OAAA;AAAA,QACA,QAAA;AAAA,QACA,KAAA;AAAA,QACA,SAAA,EAAW,qBAAA,QAAG,EAAU,SAAS,CAAA;AAAA,QAEjC,QAAA,kBAAA,6BAAA,0BAAC,EAAA,EAAS,GAAA,EAAU,EAAA,EAAI,OAAA,EAAS,IAAA,EAAa,GAAG,MAAA,CAAO;AAAA,MAAA;AAAA,IAC1D,CAAA;AAAA,EAEJ;AACF,CAAA;AACA,YAAA,CAAa,YAAA,EAAc,cAAA;ADD3B;AACE;AACF,oCAAC","file":"/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/form-textarea.cjs","sourcesContent":[null,"\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport { Textarea } from \"./textarea\";\n\nexport interface FormTextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {\n label: string;\n error?: string;\n required?: boolean;\n gridSpan?: string;\n}\n\nconst FormTextarea = React.forwardRef<HTMLTextAreaElement, FormTextareaProps>(\n ({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {\n const htmlFor = id ?? name ?? \"\";\n\n return (\n <FormField\n label={label}\n htmlFor={htmlFor}\n required={required}\n error={error}\n className={cn(gridSpan, className)}\n >\n <Textarea ref={ref} id={htmlFor} name={name} {...props} />\n </FormField>\n );\n },\n);\nFormTextarea.displayName = \"FormTextarea\";\n\nexport { FormTextarea };\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
gridSpan?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const FormTextarea: React.ForwardRefExoticComponent<FormTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
+
|
|
11
|
+
export { FormTextarea, type FormTextareaProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormTextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
label: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
gridSpan?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const FormTextarea: React.ForwardRefExoticComponent<FormTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
+
|
|
11
|
+
export { FormTextarea, type FormTextareaProps };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
Textarea
|
|
5
|
+
} from "./chunk-DZ6HBEMA.js";
|
|
6
|
+
import {
|
|
7
|
+
FormField
|
|
8
|
+
} from "./chunk-GPDD67CJ.js";
|
|
9
|
+
import "./chunk-FHS7SJEQ.js";
|
|
10
|
+
|
|
11
|
+
// src/form-textarea.tsx
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var FormTextarea = React.forwardRef(
|
|
16
|
+
({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {
|
|
17
|
+
const htmlFor = id ?? name ?? "";
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
FormField,
|
|
20
|
+
{
|
|
21
|
+
label,
|
|
22
|
+
htmlFor,
|
|
23
|
+
required,
|
|
24
|
+
error,
|
|
25
|
+
className: cn(gridSpan, className),
|
|
26
|
+
children: /* @__PURE__ */ jsx(Textarea, { ref, id: htmlFor, name, ...props })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
FormTextarea.displayName = "FormTextarea";
|
|
32
|
+
export {
|
|
33
|
+
FormTextarea
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=form-textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/form-textarea.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@simpleapps-com/augur-utils/web\";\nimport { FormField } from \"./form-field\";\nimport { Textarea } from \"./textarea\";\n\nexport interface FormTextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {\n label: string;\n error?: string;\n required?: boolean;\n gridSpan?: string;\n}\n\nconst FormTextarea = React.forwardRef<HTMLTextAreaElement, FormTextareaProps>(\n ({ label, error, required, gridSpan, className, id, name, ...props }, ref) => {\n const htmlFor = id ?? name ?? \"\";\n\n return (\n <FormField\n label={label}\n htmlFor={htmlFor}\n required={required}\n error={error}\n className={cn(gridSpan, className)}\n >\n <Textarea ref={ref} id={htmlFor} name={name} {...props} />\n </FormField>\n );\n },\n);\nFormTextarea.displayName = \"FormTextarea\";\n\nexport { FormTextarea };\n"],"mappings":";;;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,UAAU;AAwBX;AAZR,IAAM,eAAqB;AAAA,EACzB,CAAC,EAAE,OAAO,OAAO,UAAU,UAAU,WAAW,IAAI,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC5E,UAAM,UAAU,MAAM,QAAQ;AAE9B,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW,GAAG,UAAU,SAAS;AAAA,QAEjC,8BAAC,YAAS,KAAU,IAAI,SAAS,MAAa,GAAG,OAAO;AAAA;AAAA,IAC1D;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;","names":[]}
|
package/dist/input.cjs
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
|
-
// src/input.tsx
|
|
5
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
6
|
-
var _web = require('@simpleapps-com/augur-utils/web');
|
|
7
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
-
var Input = React.forwardRef(
|
|
9
|
-
({ className, type, ...props }, ref) => {
|
|
10
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11
|
-
"input",
|
|
12
|
-
{
|
|
13
|
-
type,
|
|
14
|
-
className: _web.cn.call(void 0,
|
|
15
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
|
-
className
|
|
17
|
-
),
|
|
18
|
-
ref,
|
|
19
|
-
...props
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
Input.displayName = "Input";
|
|
25
4
|
|
|
5
|
+
var _chunkNWGXDXRVcjs = require('./chunk-NWGXDXRV.cjs');
|
|
26
6
|
|
|
27
|
-
|
|
7
|
+
|
|
8
|
+
exports.Input = _chunkNWGXDXRVcjs.Input;
|
|
28
9
|
//# sourceMappingURL=input.cjs.map
|
package/dist/input.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/input.cjs"
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/input.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wCAAC","file":"/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/input.cjs"}
|
package/dist/input.js
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var Input = React.forwardRef(
|
|
9
|
-
({ className, type, ...props }, ref) => {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
"input",
|
|
12
|
-
{
|
|
13
|
-
type,
|
|
14
|
-
className: cn(
|
|
15
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
|
-
className
|
|
17
|
-
),
|
|
18
|
-
ref,
|
|
19
|
-
...props
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
Input.displayName = "Input";
|
|
3
|
+
import {
|
|
4
|
+
Input
|
|
5
|
+
} from "./chunk-DAU3SFHM.js";
|
|
25
6
|
export {
|
|
26
7
|
Input
|
|
27
8
|
};
|
package/dist/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/label.cjs
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
|
-
// src/label.tsx
|
|
5
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
6
|
-
var _reactlabel = require('@radix-ui/react-label'); var LabelPrimitive = _interopRequireWildcard(_reactlabel);
|
|
7
|
-
var _classvarianceauthority = require('class-variance-authority');
|
|
8
|
-
var _web = require('@simpleapps-com/augur-utils/web');
|
|
9
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
-
var labelVariants = _classvarianceauthority.cva.call(void 0,
|
|
11
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
12
|
-
);
|
|
13
|
-
var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14
|
-
LabelPrimitive.Root,
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
className: _web.cn.call(void 0, labelVariants(), className),
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
));
|
|
21
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
22
4
|
|
|
5
|
+
var _chunkCK53LO3Jcjs = require('./chunk-CK53LO3J.cjs');
|
|
23
6
|
|
|
24
|
-
|
|
7
|
+
|
|
8
|
+
exports.Label = _chunkCK53LO3Jcjs.Label;
|
|
25
9
|
//# sourceMappingURL=label.cjs.map
|
package/dist/label.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/label.cjs"
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/label.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wCAAC","file":"/home/runner/work/augur-packages/augur-packages/packages/augur-web/dist/label.cjs"}
|
package/dist/label.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
|
-
import { cn } from "@simpleapps-com/augur-utils/web";
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var labelVariants = cva(
|
|
11
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
12
|
-
);
|
|
13
|
-
var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
14
|
-
LabelPrimitive.Root,
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
className: cn(labelVariants(), className),
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
));
|
|
21
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
3
|
+
import {
|
|
4
|
+
Label
|
|
5
|
+
} from "./chunk-FHS7SJEQ.js";
|
|
22
6
|
export {
|
|
23
7
|
Label
|
|
24
8
|
};
|
package/dist/label.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|