@pismo/marola 0.0.1-alpha.16 → 0.0.1-alpha.17

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 (50) hide show
  1. package/dist/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
  2. package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
  3. package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
  4. package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
  5. package/dist/assets/Chip.css +1 -1
  6. package/dist/assets/Input.css +1 -1
  7. package/dist/assets/PageHeader.css +1 -1
  8. package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
  9. package/dist/components/Button/Button.js +1 -1
  10. package/dist/components/Chip/Chip.js +1 -1
  11. package/dist/components/Dialog/CloseIconButton.js +1 -1
  12. package/dist/components/Dialog/Dialog.js +4 -4
  13. package/dist/components/IconButton/IconButton.js +1 -1
  14. package/dist/components/Input/Input.js +51 -51
  15. package/dist/components/PageHeader/PageHeader.js +23 -23
  16. package/dist/components/Select/Select.js +5 -5
  17. package/dist/components/Snackbar/Snackbar.js +4 -4
  18. package/dist/components/Tabs/Tab.js +3 -3
  19. package/dist/components/Tabs/TabPanel.js +1 -1
  20. package/dist/components/Tabs/Tabs.js +3 -3
  21. package/dist/components/Toggle/Toggle.js +1 -1
  22. package/dist/components/Tooltip/Tooltip.js +3 -3
  23. package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
  24. package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
  25. package/dist/main.d.ts +4 -1
  26. package/dist/main.js +8 -8
  27. package/dist/marola.css +1 -0
  28. package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
  29. package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
  30. package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
  31. package/package.json +2 -2
  32. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  33. package/dist/components/Advice/Advice.stories.js +0 -48
  34. package/dist/components/Button/Button.stories.js +0 -40
  35. package/dist/components/Chip/Chip.stories.js +0 -59
  36. package/dist/components/Chip/chip.test.js +0 -17303
  37. package/dist/components/Dialog/Dialog.stories.js +0 -59
  38. package/dist/components/Input/Input.stories.js +0 -106
  39. package/dist/components/InputSearch/InputSearch.stories.js +0 -73
  40. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
  41. package/dist/components/PageHeader/PageHeader.stories.js +0 -49
  42. package/dist/components/Select/Select.stories.js +0 -89
  43. package/dist/components/Snackbar/Snackbar.stories.js +0 -62
  44. package/dist/components/Toggle/Toggle.stories.js +0 -33
  45. package/dist/components/Typography/Typography.stories.js +0 -30
  46. package/dist/components/Typography/typography.test.js +0 -234
  47. package/dist/magic-string.es-O_8lTkE3.js +0 -738
  48. package/dist/react.esm-DGd9_oKA.js +0 -11126
  49. package/dist/utils/styleStrings.test.js +0 -41
  50. package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
@@ -1,234 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { r as c, s as p, c as i } from "../../react.esm-DGd9_oKA.js";
3
- import "../Chip/Chip.js";
4
- import "../Button/Button.js";
5
- import "react";
6
- import "../Dialog/Backdrop.js";
7
- import { Typography as d } from "./Typography.js";
8
- import "../IconButton/IconButton.js";
9
- import "../Select/Select.js";
10
- import "../Table/Table.js";
11
- import "../Tabs/Tabs.js";
12
- import { assertClassesApplied as h } from "../../test-utils/assertStyles.js";
13
- import { d as a, a as m, i as n, g as u } from "../../vi.Y_w82WR8-XVYrIxgm.js";
14
- a("Typography", () => {
15
- m(() => {
16
- i();
17
- });
18
- const t = ({
19
- expectedTag: o,
20
- expectedClasses: s,
21
- component: l
22
- }) => {
23
- c(l);
24
- const r = p.getByText("test");
25
- u(r.tagName).toBe(o), h(s, r);
26
- };
27
- n("should render default style and element if no props", () => {
28
- t({
29
- expectedTag: "SPAN",
30
- expectedClasses: ["body"],
31
- component: /* @__PURE__ */ e(d, { children: "test" })
32
- });
33
- }), a("elements", () => {
34
- n("should render as a h1", () => {
35
- t({
36
- expectedTag: "H1",
37
- expectedClasses: ["h1"],
38
- component: /* @__PURE__ */ e(d, { element: "h1", children: "test" })
39
- });
40
- }), n("should render as a h2", () => {
41
- t({
42
- expectedTag: "H2",
43
- expectedClasses: ["h2"],
44
- component: /* @__PURE__ */ e(d, { element: "h2", children: "test" })
45
- });
46
- }), n("should render as a h3", () => {
47
- t({
48
- expectedTag: "H3",
49
- expectedClasses: ["h3"],
50
- component: /* @__PURE__ */ e(d, { element: "h3", children: "test" })
51
- });
52
- }), n("should render as a h4", () => {
53
- t({
54
- expectedTag: "H4",
55
- expectedClasses: ["h4"],
56
- component: /* @__PURE__ */ e(d, { element: "h4", children: "test" })
57
- });
58
- }), n("should render as a h5 but with h4 styling", () => {
59
- t({
60
- expectedTag: "H5",
61
- expectedClasses: ["h4"],
62
- component: /* @__PURE__ */ e(d, { element: "h5", children: "test" })
63
- });
64
- }), n("should render as a h6 but with h4 styling", () => {
65
- t({
66
- expectedTag: "H6",
67
- expectedClasses: ["h4"],
68
- component: /* @__PURE__ */ e(d, { element: "h6", children: "test" })
69
- });
70
- }), n("should render as a p and default styling", () => {
71
- t({
72
- expectedTag: "P",
73
- expectedClasses: ["body"],
74
- component: /* @__PURE__ */ e(d, { element: "p", children: "test" })
75
- });
76
- }), n("should render as a p and default styling", () => {
77
- t({
78
- expectedTag: "P",
79
- expectedClasses: ["body"],
80
- component: /* @__PURE__ */ e(d, { element: "p", children: "test" })
81
- });
82
- }), n("should render element td and assume variant table-body", () => {
83
- t({
84
- expectedTag: "TD",
85
- expectedClasses: ["table__body"],
86
- component: /* @__PURE__ */ e("table", { children: /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(d, { element: "td", children: "test" }) }) }) })
87
- });
88
- }), n("should render element th and assume variant table-header", () => {
89
- t({
90
- expectedTag: "TH",
91
- expectedClasses: ["table__header"],
92
- component: /* @__PURE__ */ e("table", { children: /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(d, { element: "th", children: "test" }) }) }) })
93
- });
94
- });
95
- }), a("variants", () => {
96
- n("should render variant body-large", () => {
97
- t({
98
- expectedTag: "SPAN",
99
- expectedClasses: ["body", "body--large"],
100
- component: /* @__PURE__ */ e(d, { variant: "body-large", children: "test" })
101
- });
102
- }), n("should render variant body-medium", () => {
103
- t({
104
- expectedTag: "SPAN",
105
- expectedClasses: ["body", "body--medium"],
106
- component: /* @__PURE__ */ e(d, { variant: "body-medium", children: "test" })
107
- });
108
- }), n("should render variant body", () => {
109
- t({
110
- expectedTag: "SPAN",
111
- expectedClasses: ["body", "body--medium"],
112
- component: /* @__PURE__ */ e(d, { variant: "body-medium", children: "test" })
113
- });
114
- }), n("should render variant body-small", () => {
115
- t({
116
- expectedTag: "SPAN",
117
- expectedClasses: ["body", "body--small"],
118
- component: /* @__PURE__ */ e(d, { variant: "body-small", children: "test" })
119
- });
120
- }), n("should render variant body-tiny", () => {
121
- t({
122
- expectedTag: "SPAN",
123
- expectedClasses: ["body", "body--tiny"],
124
- component: /* @__PURE__ */ e(d, { variant: "body-tiny", children: "test" })
125
- });
126
- }), n("should render variant quote", () => {
127
- t({
128
- expectedTag: "SPAN",
129
- expectedClasses: ["quote"],
130
- component: /* @__PURE__ */ e(d, { variant: "quote", children: "test" })
131
- });
132
- }), n("should render variant quote large", () => {
133
- t({
134
- expectedTag: "SPAN",
135
- expectedClasses: ["quote", "quote--large"],
136
- component: /* @__PURE__ */ e(d, { variant: "quote-large", children: "test" })
137
- });
138
- }), n("should render variant form input", () => {
139
- t({
140
- expectedTag: "SPAN",
141
- expectedClasses: ["form__input"],
142
- component: /* @__PURE__ */ e(d, { variant: "form-input", children: "test" })
143
- });
144
- }), n("should render variant form label", () => {
145
- t({
146
- expectedTag: "SPAN",
147
- expectedClasses: ["form__label"],
148
- component: /* @__PURE__ */ e(d, { variant: "form-label", children: "test" })
149
- });
150
- }), n("should render variant form hint", () => {
151
- t({
152
- expectedTag: "SPAN",
153
- expectedClasses: ["form__hint"],
154
- component: /* @__PURE__ */ e(d, { variant: "form-hint", children: "test" })
155
- });
156
- }), n("should render variant form dropdown", () => {
157
- t({
158
- expectedTag: "SPAN",
159
- expectedClasses: ["form__dropdown"],
160
- component: /* @__PURE__ */ e(d, { variant: "form-dropdown", children: "test" })
161
- });
162
- }), n("should render variant table header", () => {
163
- t({
164
- expectedTag: "SPAN",
165
- expectedClasses: ["table__header"],
166
- component: /* @__PURE__ */ e(d, { variant: "table-header", children: "test" })
167
- });
168
- }), n("should render variant table body", () => {
169
- t({
170
- expectedTag: "SPAN",
171
- expectedClasses: ["table__body"],
172
- component: /* @__PURE__ */ e(d, { variant: "table-body", children: "test" })
173
- });
174
- }), n("should render variant table body secondary", () => {
175
- t({
176
- expectedTag: "SPAN",
177
- expectedClasses: ["table__body", "table__body--secondary"],
178
- component: /* @__PURE__ */ e(d, { variant: "table-body-secondary", children: "test" })
179
- });
180
- }), n("should render variant button", () => {
181
- t({
182
- expectedTag: "SPAN",
183
- expectedClasses: ["button"],
184
- component: /* @__PURE__ */ e(d, { variant: "button", children: "test" })
185
- });
186
- }), n("should render variant link (has no CSS)", () => {
187
- t({
188
- expectedTag: "SPAN",
189
- expectedClasses: null,
190
- component: /* @__PURE__ */ e(d, { variant: "link", children: "test" })
191
- });
192
- });
193
- }), a("elements with variants", () => {
194
- n("should render variant h4 even with element h1", () => {
195
- t({
196
- expectedTag: "H1",
197
- expectedClasses: ["h4"],
198
- component: /* @__PURE__ */ e(d, { variant: "h4", element: "h1", children: "test" })
199
- });
200
- });
201
- }), a("modifiers", () => {
202
- n("should apply bold", () => {
203
- t({
204
- expectedTag: "SPAN",
205
- expectedClasses: ["body", "body--bold"],
206
- component: /* @__PURE__ */ e(d, { bold: !0, children: "test" })
207
- });
208
- }), n("should apply underline", () => {
209
- t({
210
- expectedTag: "SPAN",
211
- expectedClasses: ["body", "body--underlined"],
212
- component: /* @__PURE__ */ e(d, { underline: !0, children: "test" })
213
- });
214
- }), n("should apply strikethrough", () => {
215
- t({
216
- expectedTag: "SPAN",
217
- expectedClasses: ["body", "body--strikethrough"],
218
- component: /* @__PURE__ */ e(d, { strikethrough: !0, children: "test" })
219
- });
220
- }), n("should apply all strikethrough, bold and underline", () => {
221
- t({
222
- expectedTag: "SPAN",
223
- expectedClasses: ["body", "body--strikethrough", "body--bold", "body--underlined"],
224
- component: /* @__PURE__ */ e(d, { bold: !0, underline: !0, strikethrough: !0, children: "test" })
225
- });
226
- }), n("should apply all modifiers to variants that support it (body) even if element is specified", () => {
227
- t({
228
- expectedTag: "P",
229
- expectedClasses: ["body", "body--large", "body--strikethrough", "body--bold", "body--underlined"],
230
- component: /* @__PURE__ */ e(d, { variant: "body-large", element: "p", bold: !0, underline: !0, strikethrough: !0, children: "test" })
231
- });
232
- });
233
- });
234
- });