@uva-glass/component-library 3.16.1 → 3.17.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/assets/Backdrop.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/variables.css +3 -6
- package/dist/components/Backdrop/Backdrop.js +4 -4
- package/dist/components/Input/Input.js +15 -15
- package/dist/components/Input/Input.stories.js +15 -13
- package/dist/components/Input/Input.stories.js.map +1 -1
- package/package.json +1 -1
package/dist/assets/Backdrop.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._backdrop_8s6aa_1{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100;overflow:hidden}._backdrop_8s6aa_1:after{content:"";top:0;right:0;bottom:0;left:0;background-color:var(--color-uva-black);opacity:.5;pointer-events:none}@media (min-width: 28rem) and (min-height: 28rem){._backdrop_8s6aa_1{align-items:center;display:flex;justify-content:center}._backdrop_8s6aa_1:after{position:absolute}._backdrop_8s6aa_1>*{position:relative;z-index:1}}
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._input_whbfw_1{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid var(--color-black);color:var(--color-black);font-family:inherit;font-size:inherit;height:2rem;margin:0;padding:0 .5rem}._input--numeric_whbfw_13{text-align:right;width:8rem}._input--error_whbfw_18,._input_whbfw_1:invalid{border-color:var(--color-chilean-fire)}._input--full-with_whbfw_23{min-width:100%;width:0}._input_whbfw_1::placeholder{color:var(--color-grey-500);font-size:inherit;opacity:1}._input_whbfw_1[type=file]{border:none}._input_whbfw_1:disabled{color:var(--color-grey-500)}
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
--color-blue-400: #a3e7ff;
|
|
25
25
|
--color-blue-50: #e0f7ff;
|
|
26
26
|
--color-purple-400: #9747ff;
|
|
27
|
-
--color-black-transparent: rgba(0 0 0 / 50%);
|
|
28
27
|
--color-cobalt: #0d4da5;
|
|
29
28
|
--color-san-felix: #2c632e;
|
|
30
29
|
--color-uva-green: #49a74c;
|
|
@@ -41,9 +40,8 @@
|
|
|
41
40
|
--color-amour: #ffe5ec;
|
|
42
41
|
--color-dandelion: #ffde66;
|
|
43
42
|
--color-natural-wood: #fff6d6;
|
|
44
|
-
--color-uva-black: #
|
|
45
|
-
--color-
|
|
46
|
-
--color-electric-violet: #9747FF;
|
|
43
|
+
--color-uva-black: #1f1d20;
|
|
44
|
+
--color-electric-violet: #9747ff;
|
|
47
45
|
--color-lemon-grass: #99998a;
|
|
48
46
|
--color-vista-blue: #8feabb;
|
|
49
47
|
--color-medium-aquamarine: #62df9f;
|
|
@@ -52,6 +50,5 @@
|
|
|
52
50
|
--color-french-grey: #b3afb6;
|
|
53
51
|
--color-columbia-blue: #a1e7fc;
|
|
54
52
|
--color-light-cyan: #e1f8ff;
|
|
55
|
-
--color-
|
|
56
|
-
--color-natural-wool: #FFF6D6;
|
|
53
|
+
--color-natural-wool: #fff6d6;
|
|
57
54
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/Backdrop.css';const s = "
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/Backdrop.css';const s = "_backdrop_8s6aa_1", r = {
|
|
3
3
|
backdrop: s
|
|
4
|
-
},
|
|
4
|
+
}, d = ({ children: o, ...a }) => /* @__PURE__ */ c("div", { ...a, className: r.backdrop, children: o });
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as Backdrop
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=Backdrop.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
|
-
import '../../assets/Input.css';const
|
|
5
|
-
input:
|
|
6
|
-
"input--numeric": "_input--
|
|
7
|
-
"input--error": "_input--
|
|
8
|
-
"input--full-with": "_input--full-
|
|
9
|
-
},
|
|
10
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w } from "react";
|
|
3
|
+
import { c as _ } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import '../../assets/Input.css';const c = "_input_whbfw_1", t = {
|
|
5
|
+
input: c,
|
|
6
|
+
"input--numeric": "_input--numeric_whbfw_13",
|
|
7
|
+
"input--error": "_input--error_whbfw_18",
|
|
8
|
+
"input--full-with": "_input--full-with_whbfw_23"
|
|
9
|
+
}, a = w(function({ id: r, appearance: n, type: i = "text", isNumeric: u, fullWidth: p, ...o }, e) {
|
|
10
|
+
return /* @__PURE__ */ f(
|
|
11
11
|
"input",
|
|
12
12
|
{
|
|
13
13
|
...o,
|
|
14
14
|
ref: e,
|
|
15
|
-
id:
|
|
16
|
-
className:
|
|
17
|
-
[t["input--error"]]:
|
|
15
|
+
id: r,
|
|
16
|
+
className: _(t.input, {
|
|
17
|
+
[t["input--error"]]: n === "error",
|
|
18
18
|
[t["input--full-with"]]: p,
|
|
19
19
|
[t["input--numeric"]]: u
|
|
20
20
|
}),
|
|
21
|
-
type:
|
|
21
|
+
type: i
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
});
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
a as Input
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Input as
|
|
2
|
+
import { Input as a } from "./Input.js";
|
|
3
3
|
const r = `
|
|
4
4
|
// Has all HTMLInputElement props available except "className" and "style"
|
|
5
5
|
<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>
|
|
6
|
-
`,
|
|
6
|
+
`, d = {
|
|
7
7
|
title: "Atoms/Input",
|
|
8
|
-
component:
|
|
8
|
+
component: a,
|
|
9
9
|
argTypes: {
|
|
10
10
|
appearance: {
|
|
11
11
|
table: {
|
|
@@ -18,20 +18,22 @@ const r = `
|
|
|
18
18
|
},
|
|
19
19
|
args: {
|
|
20
20
|
id: "30daa7c7",
|
|
21
|
-
type: "text"
|
|
21
|
+
type: "text",
|
|
22
|
+
disabled: !1,
|
|
23
|
+
placeholder: ""
|
|
22
24
|
},
|
|
23
25
|
parameters: {
|
|
24
|
-
inspectComponent:
|
|
26
|
+
inspectComponent: a,
|
|
25
27
|
codeString: r
|
|
26
28
|
}
|
|
27
|
-
}, e = (
|
|
29
|
+
}, e = (t) => /* @__PURE__ */ n(a, { ...t }), p = e.bind({});
|
|
28
30
|
p.args = {};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
+
const l = e.bind({});
|
|
32
|
+
l.args = {
|
|
31
33
|
fullWidth: !0
|
|
32
34
|
};
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
+
const o = e.bind({});
|
|
36
|
+
o.args = {
|
|
35
37
|
isNumeric: !0
|
|
36
38
|
};
|
|
37
39
|
const s = e.bind({});
|
|
@@ -39,10 +41,10 @@ s.args = {
|
|
|
39
41
|
appearance: "error"
|
|
40
42
|
};
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
l as FullWidth,
|
|
43
45
|
p as InputExample,
|
|
44
|
-
|
|
46
|
+
o as Numeric,
|
|
45
47
|
s as WithErrorAppearance,
|
|
46
|
-
|
|
48
|
+
d as default
|
|
47
49
|
};
|
|
48
50
|
//# sourceMappingURL=Input.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.js","sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"names":["codeString","Input_stories","Input","Template","args","jsx","InputExample","FullWidth","Numeric","WithErrorAppearance"],"mappings":";;AAKA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IAEb;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,
|
|
1
|
+
{"version":3,"file":"Input.stories.js","sources":["../../../src/components/Input/Input.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { InputProps } from './Input';\n\nimport { Input } from './Input';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<Input id={id} type={type} aria-label={aria-label} onChange={onChangeFunction} value={value}/>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Input',\n component: Input,\n argTypes: {\n appearance: {\n table: {\n disable: true,\n },\n },\n type: {\n control: 'inline-radio',\n },\n },\n args: {\n id: '30daa7c7',\n type: 'text',\n disabled: false,\n placeholder: '',\n },\n parameters: {\n inspectComponent: Input,\n codeString: codeString,\n },\n} as Meta<InputProps>;\n\nconst Template: StoryFn<InputProps> = (args) => {\n return <Input {...args} />;\n};\n\nexport const InputExample = Template.bind({});\nInputExample.args = {};\n\nexport const FullWidth = Template.bind({});\nFullWidth.args = {\n fullWidth: true,\n};\n\nexport const Numeric = Template.bind({});\nNumeric.args = {\n isNumeric: true,\n};\n\nexport const WithErrorAppearance = Template.bind({});\nWithErrorAppearance.args = {\n appearance: 'error',\n};\n"],"names":["codeString","Input_stories","Input","Template","args","jsx","InputExample","FullWidth","Numeric","WithErrorAppearance"],"mappings":";;AAKA,MAAMA,IAAa;AAAA;AAAA;AAAA,GAMJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,YAAY;AAAA,MACV,OAAO;AAAA,QACL,SAAS;AAAA,MAAA;AAAA,IAEb;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EACA,MAAM;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAgC,CAACC,MAC9B,gBAAAC,EAACH,GAAO,EAAA,GAAGE,EAAM,CAAA,GAGbE,IAAeH,EAAS,KAAK,CAAE,CAAA;AAC5CG,EAAa,OAAO,CAAC;AAEd,MAAMC,IAAYJ,EAAS,KAAK,CAAE,CAAA;AACzCI,EAAU,OAAO;AAAA,EACf,WAAW;AACb;AAEO,MAAMC,IAAUL,EAAS,KAAK,CAAE,CAAA;AACvCK,EAAQ,OAAO;AAAA,EACb,WAAW;AACb;AAEO,MAAMC,IAAsBN,EAAS,KAAK,CAAE,CAAA;AACnDM,EAAoB,OAAO;AAAA,EACzB,YAAY;AACd;"}
|