inconel 0.1.15 → 0.1.16
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/cjs/components/InputRadio/InputRadio.cjs +2 -0
- package/dist/cjs/components/InputRadio/InputRadio.cjs.map +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/components/InputRadio/InputRadio.d.ts +19 -0
- package/dist/components/InputRadio/InputRadio.d.ts.map +1 -0
- package/dist/components/InputRadio/InputRadio.js +66 -0
- package/dist/components/InputRadio/InputRadio.js.map +1 -0
- package/dist/components/InputRadio/index.d.ts +3 -0
- package/dist/components/InputRadio/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +44 -42
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as c, jsx as i, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { useId as I } from "react";
|
|
3
|
+
import { classNames as e } from "../shared/classNames.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { ReadOnly as x } from "../ReadOnly/ReadOnly.js";
|
|
6
|
+
function y({
|
|
7
|
+
id: d,
|
|
8
|
+
name: n,
|
|
9
|
+
value: o,
|
|
10
|
+
className: p,
|
|
11
|
+
labelClassName: u,
|
|
12
|
+
inputClassName: m,
|
|
13
|
+
placeholder: f,
|
|
14
|
+
isSelected: r = !1,
|
|
15
|
+
label: t,
|
|
16
|
+
onChange: h,
|
|
17
|
+
onBlur: _,
|
|
18
|
+
disabled: l = !1,
|
|
19
|
+
readOnly: a = !1,
|
|
20
|
+
render: g = !0
|
|
21
|
+
}) {
|
|
22
|
+
const N = I(), s = String(d ?? `inconel-input-radio-${N.replace(/:/g, "")}`);
|
|
23
|
+
return g ? /* @__PURE__ */ c(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: e(
|
|
27
|
+
"inconel-input-radio",
|
|
28
|
+
r && "inconel-is-selected",
|
|
29
|
+
l && "inconel-is-disabled",
|
|
30
|
+
p
|
|
31
|
+
),
|
|
32
|
+
children: [
|
|
33
|
+
a ? /* @__PURE__ */ i(x, { value: o }) : /* @__PURE__ */ c(v, { children: [
|
|
34
|
+
/* @__PURE__ */ i(
|
|
35
|
+
"input",
|
|
36
|
+
{
|
|
37
|
+
id: s,
|
|
38
|
+
className: e("inconel-input-radio__input", m),
|
|
39
|
+
type: "radio",
|
|
40
|
+
name: n == null ? void 0 : String(n),
|
|
41
|
+
value: o ?? "",
|
|
42
|
+
placeholder: f,
|
|
43
|
+
checked: r,
|
|
44
|
+
disabled: l,
|
|
45
|
+
onChange: h,
|
|
46
|
+
onBlur: _
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ i("span", { className: "inconel-input-radio__control", "aria-hidden": "true" })
|
|
50
|
+
] }),
|
|
51
|
+
t && /* @__PURE__ */ i(
|
|
52
|
+
"label",
|
|
53
|
+
{
|
|
54
|
+
className: e("inconel-input-radio__label", u),
|
|
55
|
+
htmlFor: a ? void 0 : s,
|
|
56
|
+
children: t
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
) : null;
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
y as InputRadio
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=InputRadio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputRadio.js","sources":["../../../src/components/InputRadio/InputRadio.tsx"],"sourcesContent":["import {\n useId,\n type ChangeEvent,\n type FocusEvent,\n type ReactNode,\n} from 'react'\n\nimport { classNames } from '../shared/classNames'\nimport { ReadOnly } from '../ReadOnly'\nimport './styles.css'\n\nexport interface InputRadioProps {\n id?: string | number | null\n name?: string | number | null\n value?: string | number | null\n className?: string | null\n labelClassName?: string | null\n inputClassName?: string | null\n placeholder?: string\n isSelected?: boolean\n label?: ReactNode\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void\n onBlur?: (event: FocusEvent<HTMLInputElement>) => void\n disabled?: boolean\n readOnly?: boolean\n render?: boolean\n}\n\nexport function InputRadio({\n id,\n name,\n value,\n className,\n labelClassName,\n inputClassName,\n placeholder,\n isSelected = false,\n label,\n onChange,\n onBlur,\n disabled = false,\n readOnly = false,\n render = true,\n}: InputRadioProps) {\n const generatedId = useId()\n const inputId = String(id ?? `inconel-input-radio-${generatedId.replace(/:/g, '')}`)\n\n if (!render) return null\n\n return (\n <div\n className={classNames(\n 'inconel-input-radio',\n isSelected && 'inconel-is-selected',\n disabled && 'inconel-is-disabled',\n className,\n )}\n >\n {readOnly ? (\n <ReadOnly value={value} />\n ) : (\n <>\n <input\n id={inputId}\n className={classNames('inconel-input-radio__input', inputClassName)}\n type=\"radio\"\n name={name === null || name === undefined ? undefined : String(name)}\n value={value ?? ''}\n placeholder={placeholder}\n checked={isSelected}\n disabled={disabled}\n onChange={onChange}\n onBlur={onBlur}\n />\n <span className=\"inconel-input-radio__control\" aria-hidden=\"true\" />\n </>\n )}\n {label && (\n <label\n className={classNames('inconel-input-radio__label', labelClassName)}\n htmlFor={readOnly ? undefined : inputId}\n >\n {label}\n </label>\n )}\n </div>\n )\n}\n"],"names":["InputRadio","id","name","value","className","labelClassName","inputClassName","placeholder","isSelected","label","onChange","onBlur","disabled","readOnly","render","generatedId","useId","inputId","jsxs","classNames","jsx","ReadOnly","Fragment"],"mappings":";;;;;AA4BO,SAASA,EAAW;AAAA,EACzB,IAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EAC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cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA;AACzC,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -8,51 +8,52 @@ import { Badge as n } from "./components/Badge/Badge.js";
|
|
|
8
8
|
import { Button as s } from "./components/Button/Button.js";
|
|
9
9
|
import { Checkbox as b } from "./components/Checkbox/Checkbox.js";
|
|
10
10
|
import { CheckboxGroup as D } from "./components/CheckboxGroup/CheckboxGroup.js";
|
|
11
|
-
import { CurrencyInput as
|
|
11
|
+
import { CurrencyInput as h } from "./components/CurrencyInput/CurrencyInput.js";
|
|
12
12
|
import { CustomizableSwitch as F } from "./components/CustomizableSwitch/CustomizableSwitch.js";
|
|
13
13
|
import { DataGrid as M } from "./components/DataGrid/DataGrid.js";
|
|
14
14
|
import { DatePicker as U } from "./components/DatePicker/DatePicker.js";
|
|
15
15
|
import { DndFileUpload as w } from "./components/DndFileUpload/DndFileUpload.js";
|
|
16
16
|
import { DotLoader as G } from "./components/DotLoader/DotLoader.js";
|
|
17
|
-
import { DragDropUpload as
|
|
18
|
-
import { DropDownBox as
|
|
17
|
+
import { DragDropUpload as R } from "./components/DragDropUpload/DragDropUpload.js";
|
|
18
|
+
import { DropDownBox as y } from "./components/DropDownBox/DropDownBox.js";
|
|
19
19
|
import { ExcelTable as W } from "./components/ExcelTable/ExcelTable.js";
|
|
20
20
|
import { FileUpload as A } from "./components/FileUpload/FileUpload.js";
|
|
21
21
|
import { FileUploadText as H } from "./components/FileUploadText/FileUploadText.js";
|
|
22
22
|
import { Filter as q } from "./components/Filter/Filter.js";
|
|
23
23
|
import { HTMLTable as K } from "./components/HTMLTable/HTMLTable.js";
|
|
24
24
|
import { InconelProvider as Q } from "./adapters/InconelProvider.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
25
|
+
import { InputRadio as X } from "./components/InputRadio/InputRadio.js";
|
|
26
|
+
import { InputText as Z } from "./components/InputText/InputText.js";
|
|
27
|
+
import { Loader as $ } from "./components/Loader/Loader.js";
|
|
28
|
+
import { LoaderMini as ro } from "./components/LoaderMini/LoaderMini.js";
|
|
29
|
+
import { Modal as to } from "./components/Modal/Modal.js";
|
|
30
|
+
import { MultiSelect as xo } from "./components/MultiSelect/MultiSelect.js";
|
|
31
|
+
import { MultiSelectWithCheckbox as mo } from "./components/MultiSelectWithCheckbox/MultiSelectWithCheckbox.js";
|
|
32
|
+
import { Option as lo } from "./components/Option/Option.js";
|
|
33
|
+
import { OptionWithIcon as uo } from "./components/OptionWithIcon/OptionWithIcon.js";
|
|
34
|
+
import { RadioGroup as co } from "./components/RadioGroup/RadioGroup.js";
|
|
35
|
+
import { ReadOnly as To } from "./components/ReadOnly/ReadOnly.js";
|
|
36
|
+
import { SlideTabs as So } from "./components/SlideTabs/SlideTabs.js";
|
|
37
|
+
import { SocketStatus as Io } from "./components/SocketStatus/SocketStatus.js";
|
|
38
|
+
import { Switch as ko } from "./components/Switch/Switch.js";
|
|
39
|
+
import { Table as Co } from "./components/Table/Table.js";
|
|
40
|
+
import { Tabs as Lo } from "./components/Tabs/Tabs.js";
|
|
41
|
+
import { TextInput as go } from "./components/TextInput/TextInput.js";
|
|
42
|
+
import { Tooltip as Bo } from "./components/Tooltip/Tooltip.js";
|
|
43
|
+
import { useInconelAdapters as Oo } from "./adapters/context.js";
|
|
43
44
|
export {
|
|
44
45
|
n as Badge,
|
|
45
46
|
s as Button,
|
|
46
47
|
b as Checkbox,
|
|
47
48
|
D as CheckboxGroup,
|
|
48
|
-
|
|
49
|
+
h as CurrencyInput,
|
|
49
50
|
F as CustomizableSwitch,
|
|
50
51
|
M as DataGrid,
|
|
51
52
|
U as DatePicker,
|
|
52
53
|
w as DndFileUpload,
|
|
53
54
|
G as DotLoader,
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
R as DragDropUpload,
|
|
56
|
+
y as DropDownBox,
|
|
56
57
|
W as ExcelTable,
|
|
57
58
|
t as FieldFeedback,
|
|
58
59
|
A as FileUpload,
|
|
@@ -61,26 +62,27 @@ export {
|
|
|
61
62
|
K as HTMLTable,
|
|
62
63
|
Q as InconelProvider,
|
|
63
64
|
x as Input,
|
|
64
|
-
X as
|
|
65
|
-
Z as
|
|
66
|
-
$ as
|
|
67
|
-
ro as
|
|
68
|
-
to as
|
|
69
|
-
xo as
|
|
70
|
-
mo as
|
|
71
|
-
lo as
|
|
72
|
-
uo as
|
|
73
|
-
co as
|
|
65
|
+
X as InputRadio,
|
|
66
|
+
Z as InputText,
|
|
67
|
+
$ as Loader,
|
|
68
|
+
ro as LoaderMini,
|
|
69
|
+
to as Modal,
|
|
70
|
+
xo as MultiSelect,
|
|
71
|
+
mo as MultiSelectWithCheckbox,
|
|
72
|
+
lo as Option,
|
|
73
|
+
uo as OptionWithIcon,
|
|
74
|
+
co as RadioGroup,
|
|
75
|
+
To as ReadOnly,
|
|
74
76
|
m as Select,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
So as SlideTabs,
|
|
78
|
+
Io as SocketStatus,
|
|
77
79
|
l as Svg,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
ko as Switch,
|
|
81
|
+
Co as Table,
|
|
82
|
+
Lo as Tabs,
|
|
83
|
+
go as TextInput,
|
|
82
84
|
i as Textarea,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
Bo as Tooltip,
|
|
86
|
+
Oo as useInconelAdapters
|
|
85
87
|
};
|
|
86
88
|
//# sourceMappingURL=index.js.map
|
package/dist/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|