@uva-glass/component-library 1.0.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.
Files changed (111) hide show
  1. package/README.md +3 -0
  2. package/dist/SelectListbox.module-wZfvJXBJ.js +22 -0
  3. package/dist/SelectListbox.module-wZfvJXBJ.js.map +1 -0
  4. package/dist/assets/Button.css +1 -0
  5. package/dist/assets/Card.css +1 -0
  6. package/dist/assets/ClipboardButton.css +1 -0
  7. package/dist/assets/Icon.css +1 -0
  8. package/dist/assets/IconButton.css +1 -0
  9. package/dist/assets/InfoMessage.css +1 -0
  10. package/dist/assets/SectionNotification.css +1 -0
  11. package/dist/assets/SelectListbox.css +1 -0
  12. package/dist/clsx-DB4S2d7J.js +23 -0
  13. package/dist/clsx-DB4S2d7J.js.map +1 -0
  14. package/dist/components/Button/Button.d.ts +8 -0
  15. package/dist/components/Button/Button.js +28 -0
  16. package/dist/components/Button/Button.js.map +1 -0
  17. package/dist/components/Button/Button.stories.d.ts +5 -0
  18. package/dist/components/Button/Button.stories.js +25 -0
  19. package/dist/components/Button/Button.stories.js.map +1 -0
  20. package/dist/components/Button/index.d.ts +1 -0
  21. package/dist/components/Button/index.js +5 -0
  22. package/dist/components/Button/index.js.map +1 -0
  23. package/dist/components/Card/Card.d.ts +10 -0
  24. package/dist/components/Card/Card.js +41 -0
  25. package/dist/components/Card/Card.js.map +1 -0
  26. package/dist/components/Card/Card.stories.d.ts +8 -0
  27. package/dist/components/Card/Card.stories.js +49 -0
  28. package/dist/components/Card/Card.stories.js.map +1 -0
  29. package/dist/components/Card/index.d.ts +1 -0
  30. package/dist/components/Card/index.js +5 -0
  31. package/dist/components/Card/index.js.map +1 -0
  32. package/dist/components/Icon/Icon.d.ts +11 -0
  33. package/dist/components/Icon/Icon.js +10 -0
  34. package/dist/components/Icon/Icon.js.map +1 -0
  35. package/dist/components/Icon/Icon.stories.d.ts +6 -0
  36. package/dist/components/Icon/Icon.stories.js +41 -0
  37. package/dist/components/Icon/Icon.stories.js.map +1 -0
  38. package/dist/components/Icon/icons/index.d.ts +152 -0
  39. package/dist/components/Icon/icons/index.js +57 -0
  40. package/dist/components/Icon/icons/index.js.map +1 -0
  41. package/dist/components/Icon/index.d.ts +1 -0
  42. package/dist/components/Icon/index.js +5 -0
  43. package/dist/components/Icon/index.js.map +1 -0
  44. package/dist/components/IconButton/IconButton.d.ts +9 -0
  45. package/dist/components/IconButton/IconButton.js +30 -0
  46. package/dist/components/IconButton/IconButton.js.map +1 -0
  47. package/dist/components/IconButton/IconButton.stories.d.ts +5 -0
  48. package/dist/components/IconButton/IconButton.stories.js +48 -0
  49. package/dist/components/IconButton/IconButton.stories.js.map +1 -0
  50. package/dist/components/IconButton/index.d.ts +1 -0
  51. package/dist/components/IconButton/index.js +5 -0
  52. package/dist/components/IconButton/index.js.map +1 -0
  53. package/dist/components/InfoMessage/InfoMassage.stories.d.ts +5 -0
  54. package/dist/components/InfoMessage/InfoMassage.stories.js +23 -0
  55. package/dist/components/InfoMessage/InfoMassage.stories.js.map +1 -0
  56. package/dist/components/InfoMessage/InfoMessage.d.ts +7 -0
  57. package/dist/components/InfoMessage/InfoMessage.js +25 -0
  58. package/dist/components/InfoMessage/InfoMessage.js.map +1 -0
  59. package/dist/components/InfoMessage/index.d.ts +1 -0
  60. package/dist/components/InfoMessage/index.js +5 -0
  61. package/dist/components/InfoMessage/index.js.map +1 -0
  62. package/dist/components/SectionNotification/SectionNotification.d.ts +6 -0
  63. package/dist/components/SectionNotification/SectionNotification.js +20 -0
  64. package/dist/components/SectionNotification/SectionNotification.js.map +1 -0
  65. package/dist/components/SectionNotification/SectionNotification.stories.d.ts +6 -0
  66. package/dist/components/SectionNotification/SectionNotification.stories.js +21 -0
  67. package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -0
  68. package/dist/components/SectionNotification/index.d.ts +1 -0
  69. package/dist/components/SectionNotification/index.js +5 -0
  70. package/dist/components/SectionNotification/index.js.map +1 -0
  71. package/dist/components/SelectListbox/SelectListBox.stories.d.ts +9 -0
  72. package/dist/components/SelectListbox/SelectListBox.stories.js +117 -0
  73. package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -0
  74. package/dist/components/SelectListbox/SelectListbox.d.ts +45 -0
  75. package/dist/components/SelectListbox/SelectListbox.js +38 -0
  76. package/dist/components/SelectListbox/SelectListbox.js.map +1 -0
  77. package/dist/components/SelectListbox/SelectProvider.d.ts +28 -0
  78. package/dist/components/SelectListbox/SelectProvider.js +42 -0
  79. package/dist/components/SelectListbox/SelectProvider.js.map +1 -0
  80. package/dist/components/SelectListbox/components/SelectButton.d.ts +10 -0
  81. package/dist/components/SelectListbox/components/SelectButton.js +69 -0
  82. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -0
  83. package/dist/components/SelectListbox/components/SelectContainer.d.ts +3 -0
  84. package/dist/components/SelectListbox/components/SelectContainer.js +22 -0
  85. package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -0
  86. package/dist/components/SelectListbox/components/SelectOption.d.ts +10 -0
  87. package/dist/components/SelectListbox/components/SelectOption.js +55 -0
  88. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -0
  89. package/dist/components/SelectListbox/components/SelectOptionBox.d.ts +8 -0
  90. package/dist/components/SelectListbox/components/SelectOptionBox.js +33 -0
  91. package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -0
  92. package/dist/components/SelectListbox/index.d.ts +1 -0
  93. package/dist/components/SelectListbox/index.js +5 -0
  94. package/dist/components/SelectListbox/index.js.map +1 -0
  95. package/dist/components/index.d.ts +7 -0
  96. package/dist/components/index.js +17 -0
  97. package/dist/components/index.js.map +1 -0
  98. package/dist/components/storyComponents/ClipboardButton/ClipboardButton.d.ts +5 -0
  99. package/dist/components/storyComponents/ClipboardButton/ClipboardButton.js +46 -0
  100. package/dist/components/storyComponents/ClipboardButton/ClipboardButton.js.map +1 -0
  101. package/dist/components/storyComponents/ClipboardButton/index.d.ts +1 -0
  102. package/dist/components/storyComponents/ClipboardButton/index.js +5 -0
  103. package/dist/components/storyComponents/ClipboardButton/index.js.map +1 -0
  104. package/dist/index-CZx-Vhwf.js +17360 -0
  105. package/dist/index-CZx-Vhwf.js.map +1 -0
  106. package/dist/index.d.ts +1 -0
  107. package/dist/index.js +17 -0
  108. package/dist/index.js.map +1 -0
  109. package/dist/vite-env.d.js +2 -0
  110. package/dist/vite-env.d.js.map +1 -0
  111. package/package.json +90 -0
@@ -0,0 +1,23 @@
1
+ function a(r) {
2
+ var f, n, t = "";
3
+ if (typeof r == "string" || typeof r == "number")
4
+ t += r;
5
+ else if (typeof r == "object")
6
+ if (Array.isArray(r)) {
7
+ var o = r.length;
8
+ for (f = 0; f < o; f++)
9
+ r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
10
+ } else
11
+ for (n in r)
12
+ r[n] && (t && (t += " "), t += n);
13
+ return t;
14
+ }
15
+ function i() {
16
+ for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++)
17
+ (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
18
+ return t;
19
+ }
20
+ export {
21
+ i as c
22
+ };
23
+ //# sourceMappingURL=clsx-DB4S2d7J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx-DB4S2d7J.js","sources":["../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","clsx"],"mappings":"AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAEC,GAAEC,IAAE;AAAG,MAAa,OAAOH,KAAjB,YAA8B,OAAOA,KAAjB;AAAmB,IAAAG,KAAGH;AAAA,WAAoB,OAAOA,KAAjB;AAAmB,QAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,UAAI,IAAEA,EAAE;AAAO,WAAIC,IAAE,GAAEA,IAAE,GAAEA;AAAI,QAAAD,EAAEC,CAAC,MAAIC,IAAEH,EAAEC,EAAEC,CAAC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAA,IAAE;AAAM,WAAIA,KAAKF;AAAE,QAAAA,EAAEE,CAAC,MAAIC,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;AAAQ,SAASC,IAAM;AAAC,WAAQJ,GAAEC,GAAEC,IAAE,GAAEC,IAAE,IAAG,IAAE,UAAU,QAAOD,IAAE,GAAEA;AAAI,KAACF,IAAE,UAAUE,CAAC,OAAKD,IAAEF,EAAEC,CAAC,OAAKG,MAAIA,KAAG,MAAKA,KAAGF;AAAG,SAAOE;AAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+
3
+ export type UIButtonVariant = 'primary' | 'secondary' | 'destructive' | 'blank';
4
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> {
5
+ variant: UIButtonVariant;
6
+ children: ReactNode;
7
+ }
8
+ export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,28 @@
1
+ import '../../assets/Button.css';
2
+ import { jsx as c } from "react/jsx-runtime";
3
+ import { c as _ } from "../../clsx-DB4S2d7J.js";
4
+ import { forwardRef as b } from "react";
5
+ const e = "_button_isgcr_3", t = {
6
+ "visually-hidden": "_visually-hidden_isgcr_1",
7
+ button: e,
8
+ "button--blank": "_button--blank_isgcr_37",
9
+ "button--primary": "_button--primary_isgcr_54",
10
+ "button--secondary": "_button--secondary_isgcr_70",
11
+ "button--destructive": "_button--destructive_isgcr_86"
12
+ }, m = b((o, r) => {
13
+ const { children: n, type: s = "button", variant: u, ...i } = o;
14
+ return /* @__PURE__ */ c(
15
+ "button",
16
+ {
17
+ ...i,
18
+ type: s,
19
+ ref: r,
20
+ className: _(t.button, t[`button--${u}`]),
21
+ children: n
22
+ }
23
+ );
24
+ });
25
+ export {
26
+ m as Button
27
+ };
28
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport type { ButtonHTMLAttributes, ReactNode } from 'react';\n\nimport styles from './Button.module.css';\n\nexport type UIButtonVariant = 'primary' | 'secondary' | 'destructive' | 'blank';\n\nexport interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> {\n variant: UIButtonVariant;\n children: ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>((props, forwardedRef) => {\n const { children, type = 'button', variant, ...restProps } = props;\n\n return (\n <button\n {...restProps}\n type={type}\n ref={forwardedRef}\n className={clsx(styles['button'], styles[`button--${variant}`])}\n >\n {children}\n </button>\n );\n});\n"],"names":["Button","forwardRef","props","forwardedRef","children","type","variant","restProps","jsx","clsx","styles"],"mappings":";;;;;;;;;;GAcaA,IAASC,EAA2C,CAACC,GAAOC,MAAiB;AACxF,QAAM,EAAE,UAAAC,GAAU,MAAAC,IAAO,UAAU,SAAAC,GAAS,GAAGC,EAAc,IAAAL;AAG3D,SAAA,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGD;AAAA,MACJ,MAAAF;AAAA,MACA,KAAKF;AAAA,MACL,WAAWM,EAAKC,EAAO,QAAWA,EAAO,WAAWJ,CAAO,EAAE,CAAC;AAAA,MAE7D,UAAAF;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from './Button';
2
+
3
+ declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, ButtonProps>;
4
+ export default _default;
5
+ export declare const ButtonExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ButtonProps>;
@@ -0,0 +1,25 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { f as a } from "../../index-CZx-Vhwf.js";
3
+ import { Button as t } from "./Button.js";
4
+ const m = {
5
+ title: "Atoms/Button",
6
+ component: t,
7
+ argTypes: {
8
+ variant: {
9
+ options: ["primary", "secondary", "destructive", "blank"],
10
+ control: { type: "radio" },
11
+ disabled: !1
12
+ }
13
+ }
14
+ }, e = (o) => /* @__PURE__ */ r(t, { ...o }), n = e.bind({});
15
+ n.args = {
16
+ variant: "primary",
17
+ children: "Click me!",
18
+ disabled: !1,
19
+ onClick: a()
20
+ };
21
+ export {
22
+ n as ButtonExample,
23
+ m as default
24
+ };
25
+ //# sourceMappingURL=Button.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.stories.js","sources":["../../../src/components/Button/Button.stories.tsx"],"sourcesContent":["import { fn } from '@storybook/test';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { ButtonProps } from './Button';\n\nimport { Button } from './Button';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Button',\n component: Button,\n argTypes: {\n variant: {\n options: ['primary', 'secondary', 'destructive', 'blank'],\n control: { type: 'radio' },\n disabled: false,\n },\n },\n} as Meta<ButtonProps>;\n\nconst Template: StoryFn<ButtonProps> = (args) => <Button {...args} />;\n\nexport const ButtonExample = Template.bind({});\nButtonExample.args = {\n variant: 'primary',\n children: 'Click me!',\n disabled: false,\n onClick: fn(),\n};\n"],"names":["Button_stories","Button","Template","args","jsx","ButtonExample","fn"],"mappings":";;;AAQA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS,CAAC,WAAW,aAAa,eAAe,OAAO;AAAA,MACxD,SAAS,EAAE,MAAM,QAAQ;AAAA,MACzB,UAAU;AAAA,IACZ;AAAA,EACF;AACF,GAEMC,IAAiC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAQ,GAAGE,EAAM,CAAA,GAEtDE,IAAgBH,EAAS,KAAK,EAAE;AAC7CG,EAAc,OAAO;AAAA,EACnB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAASC,EAAG;AACd;"}
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,5 @@
1
+ import { Button as r } from "./Button.js";
2
+ export {
3
+ r as Button
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,10 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+
3
+ export interface CardProps {
4
+ header?: ReactNode;
5
+ highContrast?: boolean;
6
+ notification?: ReactNode;
7
+ padding?: 'small' | 'regular' | 'large';
8
+ alignCenter?: boolean;
9
+ }
10
+ export declare const Card: ({ children, header, highContrast, notification, padding, alignCenter, }: PropsWithChildren<CardProps>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ import '../../assets/Card.css';
2
+ import { jsxs as s, jsx as d } from "react/jsx-runtime";
3
+ import { c as _ } from "../../clsx-DB4S2d7J.js";
4
+ import { SectionNotification as i } from "../SectionNotification/SectionNotification.js";
5
+ const n = "_card_vqoto_3", r = {
6
+ "visually-hidden": "_visually-hidden_vqoto_1",
7
+ card: n,
8
+ "card--regular": "_card--regular_vqoto_9",
9
+ "card--small": "_card--small_vqoto_14",
10
+ "card--large": "_card--large_vqoto_19",
11
+ "card-header": "_card-header_vqoto_24",
12
+ "card--high-contrast": "_card--high-contrast_vqoto_31",
13
+ "card--align-center": "_card--align-center_vqoto_35"
14
+ }, v = ({
15
+ children: e,
16
+ header: c,
17
+ highContrast: o,
18
+ notification: l,
19
+ padding: a = "regular",
20
+ alignCenter: t = !1
21
+ }) => /* @__PURE__ */ s(
22
+ "div",
23
+ {
24
+ className: _(r.card, {
25
+ [r["card--high-contrast"]]: o,
26
+ [r["card--regular"]]: a === "regular",
27
+ [r["card--small"]]: a === "small",
28
+ [r["card--large"]]: a === "large",
29
+ [r["card--align-center"]]: t
30
+ }),
31
+ children: [
32
+ l && /* @__PURE__ */ d(i, { children: l }),
33
+ c && /* @__PURE__ */ d("div", { className: r["card-header"], children: c }),
34
+ e
35
+ ]
36
+ }
37
+ );
38
+ export {
39
+ v as Card
40
+ };
41
+ //# sourceMappingURL=Card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.js","sources":["../../../src/components/Card/Card.tsx"],"sourcesContent":["import classNames from 'clsx';\n\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './Card.module.css';\n\nimport { SectionNotification } from 'components/SectionNotification';\n\nexport interface CardProps {\n header?: ReactNode;\n highContrast?: boolean;\n notification?: ReactNode;\n padding?: 'small' | 'regular' | 'large';\n alignCenter?: boolean;\n}\n\nexport const Card = ({\n children,\n header,\n highContrast,\n notification,\n padding = 'regular',\n alignCenter = false,\n}: PropsWithChildren<CardProps>) => (\n <div\n className={classNames(styles['card'], {\n [styles['card--high-contrast']]: highContrast,\n [styles['card--regular']]: padding === 'regular',\n [styles['card--small']]: padding === 'small',\n [styles['card--large']]: padding === 'large',\n [styles['card--align-center']]: alignCenter,\n })}\n >\n {notification && <SectionNotification>{notification}</SectionNotification>}\n {header && <div className={styles['card-header']}>{header}</div>}\n {children}\n </div>\n);\n"],"names":["Card","children","header","highContrast","notification","padding","alignCenter","jsxs","classNames","styles","jsx","SectionNotification"],"mappings":";;;;;;;;;;;;GAgBaA,IAAO,CAAC;AAAA,EACnB,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,aAAAC,IAAc;AAChB,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAWC,EAAO,MAAS;AAAA,MACpC,CAACA,EAAO,qBAAqB,CAAC,GAAGN;AAAA,MACjC,CAACM,EAAO,eAAe,CAAC,GAAGJ,MAAY;AAAA,MACvC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,aAAa,CAAC,GAAGJ,MAAY;AAAA,MACrC,CAACI,EAAO,oBAAoB,CAAC,GAAGH;AAAA,IAAA,CACjC;AAAA,IAEA,UAAA;AAAA,MAAgBF,KAAA,gBAAAM,EAACC,KAAqB,UAAaP,EAAA,CAAA;AAAA,MACnDF,KAAW,gBAAAQ,EAAA,OAAA,EAAI,WAAWD,EAAO,aAAa,GAAI,UAAOP,GAAA;AAAA,MACzDD;AAAA,IAAA;AAAA,EAAA;AACH;"}
@@ -0,0 +1,8 @@
1
+ import { CardProps } from './Card';
2
+ import { PropsWithChildren } from 'react';
3
+
4
+ declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, PropsWithChildren<CardProps>>;
5
+ export default _default;
6
+ export declare const CardExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<CardProps>>;
7
+ export declare const WithNotification: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<CardProps>>;
8
+ export declare const WithChildren: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<CardProps>>;
@@ -0,0 +1,49 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Card as a } from "./Card.js";
3
+ const c = {
4
+ title: "Atoms/Card",
5
+ component: a,
6
+ argTypes: {
7
+ highContrast: {
8
+ controle: "boolean"
9
+ },
10
+ padding: {
11
+ controle: {
12
+ type: "select",
13
+ options: ["small", "regular", "large"]
14
+ }
15
+ },
16
+ alignCenter: {
17
+ controle: "boolean"
18
+ },
19
+ children: {
20
+ control: "text"
21
+ }
22
+ }
23
+ }, e = (i) => /* @__PURE__ */ o(a, { ...i }), t = {
24
+ padding: "regular",
25
+ highContrast: !1,
26
+ alignCenter: !1,
27
+ header: "Example Header"
28
+ }, r = e.bind({});
29
+ r.args = {
30
+ ...t,
31
+ notification: ""
32
+ };
33
+ const n = e.bind({});
34
+ n.args = {
35
+ ...t,
36
+ notification: "This is an example notification"
37
+ };
38
+ const s = e.bind({});
39
+ s.args = {
40
+ ...t,
41
+ children: "Chuck Norris is the reason why Waldo is hiding Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV, Chuck Norris CAN eat soup with a fork Morgan Freeman is the only person that could narrate Chuck Norris's life, other than himself, The quickest way to a man's heart is with Chuck Norris' fist. Chuck Norris ran in Nascar and came in 1st place. Then again, Chuck Norris wins everything."
42
+ };
43
+ export {
44
+ r as CardExample,
45
+ s as WithChildren,
46
+ n as WithNotification,
47
+ c as default
48
+ };
49
+ //# sourceMappingURL=Card.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.stories.js","sources":["../../../src/components/Card/Card.stories.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { CardProps } from './Card';\n\nimport { Card } from './Card';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Card',\n component: Card,\n argTypes: {\n highContrast: {\n controle: 'boolean',\n },\n padding: {\n controle: {\n type: 'select',\n options: ['small', 'regular', 'large'],\n },\n },\n alignCenter: {\n controle: 'boolean',\n },\n children: {\n control: 'text',\n },\n },\n} as Meta<PropsWithChildren<CardProps>>;\n\nconst Template: StoryFn<PropsWithChildren<CardProps>> = (args) => <Card {...args} />;\n\nconst defaultArgs: Partial<PropsWithChildren<CardProps>> = {\n padding: 'regular',\n highContrast: false,\n alignCenter: false,\n header: 'Example Header',\n};\n\nexport const CardExample = Template.bind({});\nCardExample.args = {\n ...defaultArgs,\n notification: '',\n};\n\nexport const WithNotification = Template.bind({});\nWithNotification.args = {\n ...defaultArgs,\n notification: 'This is an example notification',\n};\n\nexport const WithChildren = Template.bind({});\nWithChildren.args = {\n ...defaultArgs,\n children:\n \"Chuck Norris is the reason why Waldo is hiding Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV, Chuck Norris CAN eat soup with a fork Morgan Freeman is the only person that could narrate Chuck Norris's life, other than himself, The quickest way to a man's heart is with Chuck Norris' fist. Chuck Norris ran in Nascar and came in 1st place. Then again, Chuck Norris wins everything.\",\n};\n"],"names":["Card_stories","Card","Template","args","jsx","defaultArgs","CardExample","WithNotification","WithChildren"],"mappings":";;AAOA,MAAeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,cAAc;AAAA,MACZ,UAAU;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,MACP,UAAU;AAAA,QACR,MAAM;AAAA,QACN,SAAS,CAAC,SAAS,WAAW,OAAO;AAAA,MACvC;AAAA,IACF;AAAA,IACA,aAAa;AAAA,MACX,UAAU;AAAA,IACZ;AAAA,IACA,UAAU;AAAA,MACR,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAkD,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAM,GAAGE,EAAM,CAAA,GAE5EE,IAAqD;AAAA,EACzD,SAAS;AAAA,EACT,cAAc;AAAA,EACd,aAAa;AAAA,EACb,QAAQ;AACV,GAEaC,IAAcJ,EAAS,KAAK,EAAE;AAC3CI,EAAY,OAAO;AAAA,EACjB,GAAGD;AAAA,EACH,cAAc;AAChB;AAEO,MAAME,IAAmBL,EAAS,KAAK,EAAE;AAChDK,EAAiB,OAAO;AAAA,EACtB,GAAGF;AAAA,EACH,cAAc;AAChB;AAEO,MAAMG,IAAeN,EAAS,KAAK,EAAE;AAC5CM,EAAa,OAAO;AAAA,EAClB,GAAGH;AAAA,EACH,UACE;AACJ;"}
@@ -0,0 +1 @@
1
+ export * from './Card';
@@ -0,0 +1,5 @@
1
+ import { Card as a } from "./Card.js";
2
+ export {
3
+ a as Card
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,11 @@
1
+ import { Icons } from './icons';
2
+ import { ReactNode, SVGAttributes } from 'react';
3
+
4
+ type IconName = keyof typeof Icons;
5
+ export interface IconProps extends Omit<SVGAttributes<SVGElement>, 'height' | 'width'> {
6
+ name: IconName;
7
+ size?: 16 | 20 | 24 | 32 | 48 | 64 | 96 | 128;
8
+ title?: string;
9
+ }
10
+ export declare const Icon: ({ name, size, title, ...restProps }: IconProps) => ReactNode;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Icons as i } from "./icons/index.js";
3
+ const d = 24, s = ({ name: t, size: o = d, title: r, ...n }) => {
4
+ const c = i[t];
5
+ return /* @__PURE__ */ e(c, { "aria-hidden": !0, height: o, width: o, title: r, ...n });
6
+ };
7
+ export {
8
+ s as Icon
9
+ };
10
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","sources":["../../../src/components/Icon/Icon.tsx"],"sourcesContent":["import type { ReactNode, SVGAttributes } from 'react';\n\nimport { Icons } from './icons';\n\ntype IconName = keyof typeof Icons;\n\nexport interface IconProps extends Omit<SVGAttributes<SVGElement>, 'height' | 'width'> {\n name: IconName;\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n size?: 16 | 20 | 24 | 32 | 48 | 64 | 96 | 128;\n title?: string;\n}\n\nconst defaultSize = 24;\n\nexport const Icon = ({ name, size = defaultSize, title, ...restProps }: IconProps): ReactNode => {\n const Icon = Icons[name];\n\n return <Icon aria-hidden={true} height={size} width={size} title={title} {...restProps} />;\n};\n"],"names":["defaultSize","Icon","name","size","title","restProps","Icons","jsx"],"mappings":";;AAaA,MAAMA,IAAc,IAEPC,IAAO,CAAC,EAAE,MAAAC,GAAM,MAAAC,IAAOH,GAAa,OAAAI,GAAO,GAAGC,QAAsC;AACzFJ,QAAAA,IAAOK,EAAMJ,CAAI;AAEhB,SAAA,gBAAAK,EAACN,GAAA,EAAK,eAAa,IAAM,QAAQE,GAAM,OAAOA,GAAM,OAAAC,GAAe,GAAGC,EAAW,CAAA;AAC1F;"}
@@ -0,0 +1,6 @@
1
+ import { IconProps } from './Icon';
2
+
3
+ declare const _default: import('@storybook/types').ComponentAnnotations<import('@storybook/react').ReactRenderer, IconProps>;
4
+ export default _default;
5
+ export declare const IconExample: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IconProps>;
6
+ export declare const IconOverview: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,41 @@
1
+ import '../../assets/Icon.css';
2
+ import { jsx as e, jsxs as r } from "react/jsx-runtime";
3
+ import { Icon as i } from "./Icon.js";
4
+ import { Icons as t } from "./icons/index.js";
5
+ import { ClipboardButton as c } from "../storyComponents/ClipboardButton/ClipboardButton.js";
6
+ const s = "_icon__wrapper_lse0u_1", p = "_icon__item_lse0u_13", n = {
7
+ icon__wrapper: s,
8
+ icon__item: p
9
+ }, w = {
10
+ title: "Atoms/Icon",
11
+ component: i
12
+ }, _ = (o) => /* @__PURE__ */ e(i, { ...o }), m = _.bind({});
13
+ m.args = {
14
+ name: "ArrowDownOnSquare",
15
+ size: 32
16
+ };
17
+ const x = () => /* @__PURE__ */ e(
18
+ "div",
19
+ {
20
+ style: {
21
+ display: "grid",
22
+ gridTemplateColumns: "repeat(4, 1fr)",
23
+ gridGap: "1rem",
24
+ padding: "1rem",
25
+ maxWidth: "1024px"
26
+ },
27
+ children: Object.keys(t).map((o) => /* @__PURE__ */ r("div", { className: n.icon__wrapper, children: [
28
+ /* @__PURE__ */ e(i, { name: o, size: 48 }),
29
+ /* @__PURE__ */ r("div", { className: n.icon__item, children: [
30
+ /* @__PURE__ */ e("span", { children: o }),
31
+ /* @__PURE__ */ e(c, { text: `<Icon icon={${o}} />` })
32
+ ] })
33
+ ] }, o))
34
+ }
35
+ );
36
+ export {
37
+ m as IconExample,
38
+ x as IconOverview,
39
+ w as default
40
+ };
41
+ //# sourceMappingURL=Icon.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.stories.js","sources":["../../../src/components/Icon/Icon.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { IconProps } from './Icon';\n\nimport { Icon } from './Icon';\nimport { Icons } from './icons';\nimport styles from './story.module.css';\n\nimport { ClipboardButton } from 'components/storyComponents/ClipboardButton/';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/Icon',\n component: Icon,\n} as Meta<IconProps>;\n\nconst Template: StoryFn<IconProps> = (args) => <Icon {...args} />;\n\nexport const IconExample = Template.bind({});\nIconExample.args = {\n name: 'ArrowDownOnSquare',\n size: 32,\n};\n\nexport const IconOverview = () => {\n return (\n <div\n style={{\n display: 'grid',\n gridTemplateColumns: 'repeat(4, 1fr)',\n gridGap: '1rem',\n padding: '1rem',\n maxWidth: '1024px',\n }}\n >\n {Object.keys(Icons).map((name) => (\n <div key={name} className={styles.icon__wrapper}>\n <Icon name={name as keyof typeof Icons} size={48} />\n <div className={styles.icon__item}>\n <span>{name}</span>\n <ClipboardButton text={`<Icon icon={${name}} />`} />\n </div>\n </div>\n ))}\n </div>\n );\n};\n"],"names":["Icon_stories","Icon","Template","args","jsx","IconExample","IconOverview","Icons","name","jsxs","styles","ClipboardButton"],"mappings":";;;;;;;GAUeA,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AACb,GAEMC,IAA+B,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAM,GAAGE,EAAM,CAAA,GAElDE,IAAcH,EAAS,KAAK,EAAE;AAC3CG,EAAY,OAAO;AAAA,EACjB,MAAM;AAAA,EACN,MAAM;AACR;AAEO,MAAMC,IAAe,MAExB,gBAAAF;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAO;AAAA,MACL,SAAS;AAAA,MACT,qBAAqB;AAAA,MACrB,SAAS;AAAA,MACT,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,IAEC,UAAA,OAAO,KAAKG,CAAK,EAAE,IAAI,CAACC,MACtB,gBAAAC,EAAA,OAAA,EAAe,WAAWC,EAAO,eAChC,UAAA;AAAA,MAAC,gBAAAN,EAAAH,GAAA,EAAK,MAAAO,GAAkC,MAAM,GAAI,CAAA;AAAA,MACjD,gBAAAC,EAAA,OAAA,EAAI,WAAWC,EAAO,YACrB,UAAA;AAAA,QAAA,gBAAAN,EAAC,UAAM,UAAKI,EAAA,CAAA;AAAA,QACX,gBAAAJ,EAAAO,GAAA,EAAgB,MAAM,eAAeH,CAAI,QAAQ;AAAA,MAAA,GACpD;AAAA,IAAA,EAAA,GALQA,CAMV,CACD;AAAA,EAAA;AAAA;"}
@@ -0,0 +1,152 @@
1
+ export declare const Icons: {
2
+ ArrowDownOnSquare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
3
+ title?: string | undefined;
4
+ }>;
5
+ ArrowLeftEndOnRectangle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
6
+ title?: string | undefined;
7
+ }>;
8
+ ArrowLeftStartOnRectangle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
9
+ title?: string | undefined;
10
+ }>;
11
+ ArrowSmallDownMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
12
+ title?: string | undefined;
13
+ }>;
14
+ ArrowSmallLeft: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
15
+ title?: string | undefined;
16
+ }>;
17
+ ArrowSmallRight: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
18
+ title?: string | undefined;
19
+ }>;
20
+ ArrowSmallUpMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
21
+ title?: string | undefined;
22
+ }>;
23
+ ArrowTopRightOnSquare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
24
+ title?: string | undefined;
25
+ }>;
26
+ ArrowUpOnSquare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
27
+ title?: string | undefined;
28
+ }>;
29
+ BrowserBlocked: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
30
+ title?: string | undefined;
31
+ }>;
32
+ BrowserBroken: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
33
+ title?: string | undefined;
34
+ }>;
35
+ CheckCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
36
+ title?: string | undefined;
37
+ }>;
38
+ CheckCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
39
+ title?: string | undefined;
40
+ }>;
41
+ CheveronDown: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
42
+ title?: string | undefined;
43
+ }>;
44
+ CheveronLeft: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
45
+ title?: string | undefined;
46
+ }>;
47
+ CheveronRight: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
48
+ title?: string | undefined;
49
+ }>;
50
+ CheveronUp: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
51
+ title?: string | undefined;
52
+ }>;
53
+ CheveronUpDown: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
54
+ title?: string | undefined;
55
+ }>;
56
+ Circle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
57
+ title?: string | undefined;
58
+ }>;
59
+ ClockCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
60
+ title?: string | undefined;
61
+ }>;
62
+ Cross: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
63
+ title?: string | undefined;
64
+ }>;
65
+ CrossCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
66
+ title?: string | undefined;
67
+ }>;
68
+ CrossCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
69
+ title?: string | undefined;
70
+ }>;
71
+ CubeTransparent: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
72
+ title?: string | undefined;
73
+ }>;
74
+ DocumentDuplicate: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
75
+ title?: string | undefined;
76
+ }>;
77
+ DocumentText: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
78
+ title?: string | undefined;
79
+ }>;
80
+ DotCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
81
+ title?: string | undefined;
82
+ }>;
83
+ ExclamationCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
84
+ title?: string | undefined;
85
+ }>;
86
+ ExclamationCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
87
+ title?: string | undefined;
88
+ }>;
89
+ ExclamationTriangleFill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
90
+ title?: string | undefined;
91
+ }>;
92
+ ExclamationTriangleMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
93
+ title?: string | undefined;
94
+ }>;
95
+ Hamburger: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
96
+ title?: string | undefined;
97
+ }>;
98
+ Heart: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
99
+ title?: string | undefined;
100
+ }>;
101
+ InformationCircle: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
102
+ title?: string | undefined;
103
+ }>;
104
+ InformationCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
105
+ title?: string | undefined;
106
+ }>;
107
+ Link: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
108
+ title?: string | undefined;
109
+ }>;
110
+ LinkSlash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
111
+ title?: string | undefined;
112
+ }>;
113
+ LockClosedFill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
114
+ title?: string | undefined;
115
+ }>;
116
+ LockOpenFill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
117
+ title?: string | undefined;
118
+ }>;
119
+ MinusCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
120
+ title?: string | undefined;
121
+ }>;
122
+ PencilSquare: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
123
+ title?: string | undefined;
124
+ }>;
125
+ Plus: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
126
+ title?: string | undefined;
127
+ }>;
128
+ QuestionMarkCircleFillMini: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
129
+ title?: string | undefined;
130
+ }>;
131
+ Sparkles: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
132
+ title?: string | undefined;
133
+ }>;
134
+ SwapSlash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
135
+ title?: string | undefined;
136
+ }>;
137
+ Swap: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
138
+ title?: string | undefined;
139
+ }>;
140
+ TrashStrikethrough: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
141
+ title?: string | undefined;
142
+ }>;
143
+ Trash: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
144
+ title?: string | undefined;
145
+ }>;
146
+ UserCheckFill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
147
+ title?: string | undefined;
148
+ }>;
149
+ UserMinusFill: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
150
+ title?: string | undefined;
151
+ }>;
152
+ };