@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,41 +0,0 @@
|
|
|
1
|
-
import { bemify as a, getBEMBase as e, getBEMBlock as r } from "./styleStrings.js";
|
|
2
|
-
import { d as s, i as o, g as t } from "../vi.Y_w82WR8-XVYrIxgm.js";
|
|
3
|
-
s("styleStrings", () => {
|
|
4
|
-
s("bemify", () => {
|
|
5
|
-
o("returns just a block if a block was only given", () => {
|
|
6
|
-
t(a("foo", ["bar"])).toEqual("foo");
|
|
7
|
-
}), o("returns just a block and modifier if no elements for that block", () => {
|
|
8
|
-
t(a("foo-baz", ["bar"])).toEqual("foo--baz");
|
|
9
|
-
}), o("returns just block and element if it is a block with elements", () => {
|
|
10
|
-
t(a("bar-baz", ["bar"])).toEqual("bar__baz");
|
|
11
|
-
}), o("returns block, element and modifier if it has all three parts", () => {
|
|
12
|
-
t(a("bar-baz-qux", ["bar"])).toEqual("bar__baz--qux");
|
|
13
|
-
}), o("accepts alternative types for the generic variants type", () => {
|
|
14
|
-
t(a("abc-def", ["abc"])).toEqual("abc__def");
|
|
15
|
-
});
|
|
16
|
-
}), s("getBEMBase", () => {
|
|
17
|
-
o("returns the base BEM of a Block with no elements or modifiers", () => {
|
|
18
|
-
t(e("foo")).toEqual("foo");
|
|
19
|
-
}), o("returns the base BEM of a Block with an element but no modifiers", () => {
|
|
20
|
-
t(e("foo__bar")).toEqual("foo__bar");
|
|
21
|
-
}), o("returns the base BEM of a Block with no elements but a modifier", () => {
|
|
22
|
-
t(e("foo--baz")).toEqual("foo");
|
|
23
|
-
}), o("returns the base BEM of a Block with an element and a modifier", () => {
|
|
24
|
-
t(e("foo__bar--baz")).toEqual("foo__bar");
|
|
25
|
-
}), o("returns empty if given nothing", () => {
|
|
26
|
-
t(e("")).toEqual("");
|
|
27
|
-
});
|
|
28
|
-
}), s("getBEMBlock", () => {
|
|
29
|
-
o("returns the block part of a full BEM style string", () => {
|
|
30
|
-
t(r("foo__bar--baz")).toEqual("foo");
|
|
31
|
-
}), o("returns the block part of a BEM style string that has just block and element", () => {
|
|
32
|
-
t(r("foo__bar")).toEqual("foo");
|
|
33
|
-
}), o("returns the block part of a BEM style string that has just block and modifier", () => {
|
|
34
|
-
t(r("foo--baz")).toEqual("foo");
|
|
35
|
-
}), o("returns the block part of a BEM style string that has just a block", () => {
|
|
36
|
-
t(r("foo")).toEqual("foo");
|
|
37
|
-
}), o("returns nothing if nothing passed in", () => {
|
|
38
|
-
t(r("")).toEqual("");
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
});
|