@uva-glass/component-library 3.52.7 → 3.52.9
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/Card.css +1 -1
- package/dist/assets/Column.css +1 -1
- package/dist/assets/ControlsButton.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/chunk-RW5PKMWM-Dn7TLZUE.js +11292 -0
- package/dist/chunk-RW5PKMWM-Dn7TLZUE.js.map +1 -0
- package/dist/client-CFLMKOFW.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +8 -8
- package/dist/components/Buttons/LinkButton.stories.js +10 -10
- package/dist/components/Buttons/MenuButton.stories.js +14 -14
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.d.ts +1 -0
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +36 -12
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +57 -114
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/Chip/Chip.stories.js +5 -5
- package/dist/components/ControlsButton/ControlsButton.js +50 -47
- package/dist/components/ControlsButton/ControlsButton.js.map +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +9 -9
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +5 -5
- package/dist/components/InputField/InputField.stories.js +11 -11
- package/dist/components/ModalDialog/ModalDialog.stories.js +12 -12
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +15 -15
- package/dist/components/Notification/Notification.stories.js +8 -8
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +4 -4
- package/dist/components/Periods/Periods.js +2 -1
- package/dist/components/Periods/Periods.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +3 -3
- package/dist/components/TextArea/TextArea.test.js +8 -8
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/index-DGI4ZxSQ.js +24456 -0
- package/dist/index-DGI4ZxSQ.js.map +1 -0
- package/dist/react-18-C6foUf2n.js +42 -0
- package/dist/react-18-C6foUf2n.js.map +1 -0
- package/dist/storybook__react.d.js +7466 -7955
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +18 -18
- package/dist/index-BJRrLdmi.js +0 -34071
- package/dist/index-BJRrLdmi.js.map +0 -1
- package/dist/index-fdIFY6eP.js +0 -11566
- package/dist/index-fdIFY6eP.js.map +0 -1
- package/dist/react-18-CJB15f47.js +0 -38
- package/dist/react-18-CJB15f47.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { f as a } from "../../index-DGI4ZxSQ.js";
|
|
3
3
|
import { TextArea as e } from "./TextArea.js";
|
|
4
4
|
const o = `
|
|
5
|
-
<TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `,
|
|
5
|
+
<TextArea label={label} maxCharacters={maxCharacters} defaultValue={string}/> `, b = {
|
|
6
6
|
title: "Atoms/TextArea",
|
|
7
7
|
component: e,
|
|
8
8
|
argTypes: { label: { control: "text" }, maxCharacters: { control: "number" } },
|
|
@@ -25,6 +25,6 @@ s.args = {
|
|
|
25
25
|
export {
|
|
26
26
|
m as TextAreaExample,
|
|
27
27
|
s as TextAreaSubtitleExample,
|
|
28
|
-
|
|
28
|
+
b as default
|
|
29
29
|
};
|
|
30
30
|
//# sourceMappingURL=TextArea.stories.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-ApPj4mI1.js";
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import { TextArea as
|
|
3
|
+
import { r as n, s as t, f as r } from "../../react.esm-BjO203QT.js";
|
|
4
|
+
import { u as s } from "../../index-BKK3EWVW.js";
|
|
5
|
+
import { TextArea as o } from "./TextArea.js";
|
|
6
6
|
describe("TextArea", () => {
|
|
7
7
|
it("should render correctly with label", () => {
|
|
8
|
-
|
|
8
|
+
n(/* @__PURE__ */ a(o, { onChange: jest.fn(), label: "Test Label" })), expect(t.getByText("Test Label")).toBeInTheDocument();
|
|
9
9
|
}), it("should call onChange when text is entered", () => {
|
|
10
10
|
const e = jest.fn();
|
|
11
|
-
|
|
11
|
+
n(/* @__PURE__ */ a(o, { onChange: e }));
|
|
12
12
|
const l = t.getByRole("textbox");
|
|
13
13
|
r.input(l, { target: { value: "Hello" } }), expect(e).toHaveBeenCalledWith("Hello");
|
|
14
14
|
}), it("should update character count", () => {
|
|
15
|
-
|
|
15
|
+
n(/* @__PURE__ */ a(o, { onChange: jest.fn(), label: "Test", maxCharacters: 10 }));
|
|
16
16
|
const e = t.getByRole("textbox");
|
|
17
17
|
r.input(e, { target: { value: "Test" } }), expect(t.getByText("4")).toBeInTheDocument(), expect(t.getByText("/ 10")).toBeInTheDocument();
|
|
18
18
|
}), it("should not exceed max characters limit", async () => {
|
|
19
19
|
const e = jest.fn();
|
|
20
|
-
|
|
20
|
+
n(/* @__PURE__ */ a(o, { onChange: e, maxCharacters: 5 }));
|
|
21
21
|
const l = t.getByRole("textbox");
|
|
22
|
-
await
|
|
22
|
+
await s.type(l, "ExceedsLimit"), expect(e).toHaveBeenCalled(), expect(e.mock.calls[e.mock.calls.length - 1][0].length).toBe(5);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=TextArea.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.test.js","sources":["../../../src/components/TextArea/TextArea.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, fireEvent } from '@testing-library/react';\nimport
|
|
1
|
+
{"version":3,"file":"TextArea.test.js","sources":["../../../src/components/TextArea/TextArea.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen, fireEvent } from '@testing-library/react';\nimport userEvent from '@testing-library/user-event';\n\nimport { TextArea } from './TextArea';\n\ndescribe('TextArea', () => {\n it('should render correctly with label', () => {\n render(<TextArea onChange={jest.fn()} label=\"Test Label\" />);\n expect(screen.getByText('Test Label')).toBeInTheDocument();\n });\n\n it('should call onChange when text is entered', () => {\n const handleChange = jest.fn();\n render(<TextArea onChange={handleChange} />);\n\n const textarea = screen.getByRole('textbox');\n fireEvent.input(textarea, { target: { value: 'Hello' } });\n expect(handleChange).toHaveBeenCalledWith('Hello');\n });\n\n it('should update character count', () => {\n render(<TextArea onChange={jest.fn()} label=\"Test\" maxCharacters={10} />);\n\n const textarea = screen.getByRole('textbox');\n fireEvent.input(textarea, { target: { value: 'Test' } });\n\n expect(screen.getByText('4')).toBeInTheDocument();\n expect(screen.getByText('/ 10')).toBeInTheDocument();\n });\n\n it('should not exceed max characters limit', async () => {\n const handleChange = jest.fn();\n render(<TextArea onChange={handleChange} maxCharacters={5} />);\n\n const textarea = screen.getByRole('textbox');\n\n await userEvent.type(textarea, 'ExceedsLimit');\n\n expect(handleChange).toHaveBeenCalled();\n // eslint-disable-next-line @typescript-eslint/no-magic-numbers\n expect(handleChange.mock.calls[handleChange.mock.calls.length - 1][0].length).toBe(5);\n });\n});\n"],"names":["render","jsx","TextArea","screen","handleChange","textarea","fireEvent","userEvent"],"mappings":";;;;;AAMA,SAAS,YAAY,MAAM;AACzB,KAAG,sCAAsC,MAAM;AAC7C,IAAAA,EAAO,gBAAAC,EAACC,KAAS,UAAU,KAAK,MAAM,OAAM,cAAa,CAAE,GAC3D,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,kBAAA;AAAA,EACzC,CAAC,GAED,GAAG,6CAA6C,MAAM;AACpD,UAAMC,IAAe,KAAK,GAAA;AAC1B,IAAAJ,EAAO,gBAAAC,EAACC,GAAA,EAAS,UAAUE,EAAA,CAAc,CAAE;AAE3C,UAAMC,IAAWF,EAAO,UAAU,SAAS;AAC3C,IAAAG,EAAU,MAAMD,GAAU,EAAE,QAAQ,EAAE,OAAO,QAAA,GAAW,GACxD,OAAOD,CAAY,EAAE,qBAAqB,OAAO;AAAA,EACnD,CAAC,GAED,GAAG,iCAAiC,MAAM;AACxC,IAAAJ,EAAO,gBAAAC,EAACC,GAAA,EAAS,UAAU,KAAK,GAAA,GAAM,OAAM,QAAO,eAAe,GAAA,CAAI,CAAE;AAExE,UAAMG,IAAWF,EAAO,UAAU,SAAS;AAC3C,IAAAG,EAAU,MAAMD,GAAU,EAAE,QAAQ,EAAE,OAAO,OAAA,GAAU,GAEvD,OAAOF,EAAO,UAAU,GAAG,CAAC,EAAE,kBAAA,GAC9B,OAAOA,EAAO,UAAU,MAAM,CAAC,EAAE,kBAAA;AAAA,EACnC,CAAC,GAED,GAAG,0CAA0C,YAAY;AACvD,UAAMC,IAAe,KAAK,GAAA;AAC1B,IAAAJ,oBAAQE,GAAA,EAAS,UAAUE,GAAc,eAAe,GAAG,CAAE;AAE7D,UAAMC,IAAWF,EAAO,UAAU,SAAS;AAE3C,UAAMI,EAAU,KAAKF,GAAU,cAAc,GAE7C,OAAOD,CAAY,EAAE,iBAAA,GAErB,OAAOA,EAAa,KAAK,MAAMA,EAAa,KAAK,MAAM,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;AAAA,EACtF,CAAC;AACH,CAAC;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { l } from "../../index-
|
|
2
|
+
import { f as l } from "../../index-DGI4ZxSQ.js";
|
|
3
3
|
import { ToggleSwitch as e } from "./ToggleSwitch.js";
|
|
4
4
|
const a = `
|
|
5
5
|
// Has all InputHTMLAttributes props available except "className" and "style"
|