@pismo/marola 0.0.1-alpha.16 → 0.0.1-alpha.18
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/{Button-B1umG8kJ.js → Button-2b1peDFT.js} +25 -26
- package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-BSW-Nd-y.js} +3 -3
- package/dist/{Popup-DFJQc_jn.js → Popup-B6ZSGIEI.js} +12 -13
- package/dist/{Portal-D__zvwbZ.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/{SelectButton-DWZ2BRaX.js → SelectButton-pciwIWcj.js} +24 -22
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/TextDisplay.css +1 -0
- package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-DVjg9PRh.js} +18 -19
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +31 -0
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +15 -16
- package/dist/components/Dialog/Dialog.stories.d.ts +3 -3
- package/dist/components/Icon/Icon.d.ts +10 -1
- package/dist/components/Icon/Icon.js +39 -25
- package/dist/components/Icon/Icon.stories.d.ts +16 -0
- package/dist/components/IconButton/Icon.stories.d.ts +15 -0
- package/dist/components/IconButton/IconButton.d.ts +14 -0
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +38 -39
- package/dist/components/PageHeader/PageHeader.js +23 -23
- package/dist/components/Pagination/Pagination.d.ts +24 -5
- package/dist/components/Pagination/Pagination.js +119 -116
- package/dist/components/Pagination/Pagination.stories.d.ts +17 -0
- package/dist/components/Select/Select.js +137 -138
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +10 -3
- package/dist/components/Skeleton/Skeleton.js +12 -15
- package/dist/components/Skeleton/Skeleton.stories.d.ts +14 -0
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +14 -0
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +16 -0
- package/dist/components/Snackbar/Snackbar.js +6 -7
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
- package/dist/components/SortTooltip/SortTooltip.d.ts +3 -1
- package/dist/components/SortTooltip/SortTooltip.js +27 -16
- package/dist/components/Stepper/Stepper.d.ts +11 -1
- package/dist/components/Stepper/Stepper.stories.d.ts +16 -0
- package/dist/components/Table/Table.js +38 -40
- package/dist/components/Tabs/Tab.d.ts +5 -0
- package/dist/components/Tabs/Tab.js +9 -10
- package/dist/components/Tabs/Tab.stories.d.ts +15 -0
- package/dist/components/Tabs/TabPanel.d.ts +4 -0
- package/dist/components/Tabs/TabPanel.js +13 -14
- package/dist/components/Tabs/TabPanel.stories.d.ts +14 -0
- package/dist/components/Tabs/Tabs.d.ts +5 -1
- package/dist/components/Tabs/Tabs.js +36 -37
- package/dist/components/Tabs/Tabs.stories.d.ts +14 -0
- package/dist/components/TextDisplay/TextDisplay.d.ts +23 -0
- package/dist/components/TextDisplay/TextDisplay.js +37 -0
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +13 -0
- package/dist/components/TextDisplay/textDisplay.test.d.ts +1 -0
- package/dist/components/Toggle/Toggle.js +7 -8
- package/dist/components/Tooltip/Tooltip.d.ts +18 -6
- package/dist/components/Tooltip/Tooltip.js +104 -92
- package/dist/components/Tooltip/Tooltip.stories.d.ts +33 -0
- package/dist/components/Typography/Typography.d.ts +2 -0
- package/dist/components/Typography/Typography.js +40 -29
- package/dist/components/Typography/Typography.stories.d.ts +1 -0
- package/dist/{index-CqjC7P5Y.js → index-CH45lKw7.js} +333 -307
- package/dist/{index-BJ8HbRCy.js → index-CjW42-M-.js} +5 -6
- package/dist/main.d.ts +5 -1
- package/dist/main.js +34 -32
- package/dist/marola.css +1 -0
- package/dist/{useButton-Bc8IAgyk.js → useButton-DNk3wrQp.js} +3 -4
- package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-xTG9piMa.js} +1 -1
- package/dist/{useList-ByMguSS_.js → useList-B0hog_3-.js} +48 -49
- package/package.json +2 -2
- package/dist/_commonjsHelpers-CT_km90n.js +0 -30
- package/dist/components/Advice/Advice.stories.js +0 -48
- package/dist/components/Button/Button.stories.js +0 -40
- package/dist/components/Chip/Chip.stories.js +0 -59
- package/dist/components/Chip/chip.test.js +0 -17303
- package/dist/components/Dialog/Dialog.stories.js +0 -59
- package/dist/components/Input/Input.stories.js +0 -106
- package/dist/components/InputSearch/InputSearch.stories.js +0 -73
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
- package/dist/components/PageHeader/PageHeader.stories.js +0 -49
- package/dist/components/Select/Select.stories.js +0 -89
- package/dist/components/Snackbar/Snackbar.stories.js +0 -62
- package/dist/components/Toggle/Toggle.stories.js +0 -33
- package/dist/components/Typography/Typography.stories.js +0 -30
- package/dist/components/Typography/typography.test.js +0 -234
- package/dist/magic-string.es-O_8lTkE3.js +0 -738
- package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +0 -26
- package/dist/react.esm-DGd9_oKA.js +0 -11126
- package/dist/utils/styleStrings.test.js +0 -41
- 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
|
-
});
|