@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.
@@ -1 +1 @@
1
- ._backdrop_k1x6d_1{bottom:0;left:0;position:fixed;right:0;top:0;z-index:100}@media (min-width: 28rem) and (min-height: 28rem){._backdrop_k1x6d_1{align-items:center;background:var(--color-black-transparent);display:flex;justify-content:center}}
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}}
@@ -1 +1 @@
1
- ._input_25til_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_25til_13{text-align:right;width:8rem}._input--error_25til_18,._input_25til_1:invalid{border-color:var(--color-chilean-fire)}._input--full-with_25til_23{min-width:100%;width:0}._input_25til_1::placeholder{color:var(--color-black-transparent);font-size:inherit;opacity:1}._input_25til_1[type=file]{border:none}._input_25til_1:disabled{color:var(--color-black-transparent)}
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: #1F1D20;
45
- --color-uva-red-transparent: rgba(189 0 50 / 10%);
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-lavender-transparent: rgba(235 235 236 / 50%);
56
- --color-natural-wool: #FFF6D6;
53
+ --color-natural-wool: #fff6d6;
57
54
  }
@@ -1,8 +1,8 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import '../../assets/Backdrop.css';const s = "_backdrop_k1x6d_1", a = {
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
- }, p = ({ children: o, ...c }) => /* @__PURE__ */ r("div", { ...c, className: a.backdrop, children: o });
4
+ }, d = ({ children: o, ...a }) => /* @__PURE__ */ c("div", { ...a, className: r.backdrop, children: o });
5
5
  export {
6
- p as Backdrop
6
+ d as Backdrop
7
7
  };
8
8
  //# sourceMappingURL=Backdrop.js.map
@@ -1,28 +1,28 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as _ } from "react";
3
- import { c } from "../../clsx-OuTLNxxd.js";
4
- import '../../assets/Input.css';const f = "_input_25til_1", t = {
5
- input: f,
6
- "input--numeric": "_input--numeric_25til_13",
7
- "input--error": "_input--error_25til_18",
8
- "input--full-with": "_input--full-with_25til_23"
9
- }, x = _(function({ id: i, appearance: r, type: n = "text", isNumeric: u, fullWidth: p, ...o }, e) {
10
- return /* @__PURE__ */ l(
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: i,
16
- className: c(t.input, {
17
- [t["input--error"]]: r === "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: n
21
+ type: i
22
22
  }
23
23
  );
24
24
  });
25
25
  export {
26
- x as Input
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 t } from "./Input.js";
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
- `, u = {
6
+ `, d = {
7
7
  title: "Atoms/Input",
8
- component: t,
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: t,
26
+ inspectComponent: a,
25
27
  codeString: r
26
28
  }
27
- }, e = (a) => /* @__PURE__ */ n(t, { ...a }), p = e.bind({});
29
+ }, e = (t) => /* @__PURE__ */ n(a, { ...t }), p = e.bind({});
28
30
  p.args = {};
29
- const o = e.bind({});
30
- o.args = {
31
+ const l = e.bind({});
32
+ l.args = {
31
33
  fullWidth: !0
32
34
  };
33
- const i = e.bind({});
34
- i.args = {
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
- o as FullWidth,
44
+ l as FullWidth,
43
45
  p as InputExample,
44
- i as Numeric,
46
+ o as Numeric,
45
47
  s as WithErrorAppearance,
46
- u as default
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,EACR;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;"}
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;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uva-glass/component-library",
3
3
  "author": "Team Glass - Frontend vrienden",
4
4
  "private": false,
5
- "version": "3.16.1",
5
+ "version": "3.17.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",