@cgi-learning-hub/ui 0.0.1-dev.1709549999 → 0.0.1-dev.1709556521
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-BFguMDSu.cjs"),r={title:"Components/Inputs/TextInput",component:e.TextInput,argTypes:{
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),e=require("../../../TextInput-BFguMDSu.cjs"),r={title:"Components/Inputs/TextInput",component:e.TextInput,argTypes:{variant:{control:"select",description:"input rendering style",options:["standard","outlined","filled"],table:{defaultValue:{summary:"standard"},type:{summary:"string"}}}}},t=s=>d.jsx(e.TextInput,{...s}),n=t.bind({});n.args={label:"Default input"};const a=t.bind({});a.args={label:"Standard input",variant:"standard"};const l=t.bind({});l.args={label:"Outlined input",variant:"outlined"};const i=t.bind({});i.args={label:"Filled input",disabled:!1,variant:"filled"};exports.Default=n;exports.Filled=i;exports.Outlined=l;exports.Standard=a;exports.default=r;
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { T as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as n } from "../../../TextInput-DsSFDlNR.js";
|
|
3
3
|
const u = {
|
|
4
4
|
title: "Components/Inputs/TextInput",
|
|
5
|
-
component:
|
|
5
|
+
component: n,
|
|
6
6
|
argTypes: {
|
|
7
|
-
label: {
|
|
8
|
-
control: "text",
|
|
9
|
-
description: "input label",
|
|
10
|
-
table: {
|
|
11
|
-
type: { summary: "text" }
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
disabled: {
|
|
15
|
-
control: "boolean",
|
|
16
|
-
description: "input disabled state",
|
|
17
|
-
table: {
|
|
18
|
-
defaultValue: { summary: !1 },
|
|
19
|
-
type: { summary: "boolean" }
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
7
|
variant: {
|
|
23
8
|
control: "select",
|
|
24
9
|
description: "input rendering style",
|
|
@@ -27,32 +12,20 @@ const u = {
|
|
|
27
12
|
defaultValue: { summary: "standard" },
|
|
28
13
|
type: { summary: "string" }
|
|
29
14
|
}
|
|
30
|
-
},
|
|
31
|
-
type: {
|
|
32
|
-
control: "select",
|
|
33
|
-
description: "input type",
|
|
34
|
-
options: ["text", "number", "email", "password"],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: "text" },
|
|
37
|
-
type: { summary: "string" }
|
|
38
|
-
}
|
|
39
15
|
}
|
|
40
16
|
}
|
|
41
|
-
}, t = (a) => /* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
label: "Default input"
|
|
44
|
-
disabled: !1
|
|
17
|
+
}, t = (a) => /* @__PURE__ */ e(n, { ...a }), l = t.bind({});
|
|
18
|
+
l.args = {
|
|
19
|
+
label: "Default input"
|
|
45
20
|
};
|
|
46
|
-
const
|
|
47
|
-
|
|
21
|
+
const i = t.bind({});
|
|
22
|
+
i.args = {
|
|
48
23
|
label: "Standard input",
|
|
49
|
-
disabled: !1,
|
|
50
24
|
variant: "standard"
|
|
51
25
|
};
|
|
52
|
-
const
|
|
53
|
-
|
|
26
|
+
const s = t.bind({});
|
|
27
|
+
s.args = {
|
|
54
28
|
label: "Outlined input",
|
|
55
|
-
disabled: !1,
|
|
56
29
|
variant: "outlined"
|
|
57
30
|
};
|
|
58
31
|
const d = t.bind({});
|
|
@@ -62,9 +35,9 @@ d.args = {
|
|
|
62
35
|
variant: "filled"
|
|
63
36
|
};
|
|
64
37
|
export {
|
|
65
|
-
|
|
38
|
+
l as Default,
|
|
66
39
|
d as Filled,
|
|
67
|
-
|
|
68
|
-
|
|
40
|
+
s as Outlined,
|
|
41
|
+
i as Standard,
|
|
69
42
|
u as default
|
|
70
43
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1709556521",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|