@iota/apps-ui-kit 0.11.0 → 0.13.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.
- package/CHANGELOG.md +27 -0
- package/dist/index.d.ts +43 -14
- package/dist/index.es.js +1281 -1214
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -15
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -8
- package/src/lib/components/atoms/badge/Badge.tsx +18 -2
- package/src/lib/components/atoms/button/Button.tsx +1 -1
- package/src/lib/components/atoms/checkbox/Checkbox.tsx +2 -2
- package/src/lib/components/atoms/divider/Divider.tsx +2 -3
- package/src/lib/components/atoms/info-box/InfoBox.tsx +1 -1
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +20 -5
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +89 -21
- package/src/lib/components/molecules/card/CardAction.tsx +2 -2
- package/src/lib/components/molecules/card/CardBody.tsx +1 -1
- package/src/lib/components/molecules/display-stats/DisplayStats.tsx +2 -2
- package/src/lib/components/molecules/input/Input.tsx +2 -2
- package/src/lib/components/molecules/input/InputWrapper.tsx +3 -2
- package/src/lib/components/molecules/select/Select.tsx +1 -2
- package/src/lib/components/molecules/table-cell/TableCell.tsx +6 -0
- package/src/lib/components/organisms/accordion/Accordion.tsx +10 -1
- package/src/lib/components/organisms/table/Table.tsx +31 -3
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/interactive.constants.ts +19 -0
- package/src/lib/styles/base.css +3 -2
- package/src/lib/tailwind/base.presets.ts +2 -2
- package/src/lib/tailwind/plugins.ts +14 -0
- package/src/storybook/stories/atoms/Panel.stories.tsx +1 -1
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
import plugin from 'tailwindcss/plugin';
|
|
5
|
+
import {
|
|
6
|
+
INTERACTIVE_ELEMENT_SELECTOR,
|
|
7
|
+
ROW_LINK_ATTRIBUTE,
|
|
8
|
+
} from '../constants/interactive.constants';
|
|
5
9
|
|
|
6
10
|
export const firefoxPlugin = plugin(({ addVariant }) => {
|
|
7
11
|
addVariant('firefox', '@-moz-document url-prefix()');
|
|
@@ -10,3 +14,13 @@ export const firefoxPlugin = plugin(({ addVariant }) => {
|
|
|
10
14
|
export const namesVariant = plugin(({ addVariant }) => {
|
|
11
15
|
addVariant('names', '&:is(.names *)');
|
|
12
16
|
});
|
|
17
|
+
|
|
18
|
+
export const tableRowVariants = plugin(({ addVariant }) => {
|
|
19
|
+
const innerLink = `a:not([${ROW_LINK_ATTRIBUTE}])`;
|
|
20
|
+
addVariant(
|
|
21
|
+
'row-hover',
|
|
22
|
+
`&:hover:not(:has(:is(${INTERACTIVE_ELEMENT_SELECTOR}):not([${ROW_LINK_ATTRIBUTE}]):hover))`,
|
|
23
|
+
);
|
|
24
|
+
addVariant('inner-link', `& ${innerLink}`);
|
|
25
|
+
addVariant('inner-link-hover', `& ${innerLink}:hover`);
|
|
26
|
+
});
|
|
@@ -12,7 +12,7 @@ const meta: Meta<typeof Panel> = {
|
|
|
12
12
|
<Panel {...props}>
|
|
13
13
|
<div className="flex flex-col items-start gap-2">
|
|
14
14
|
<Title title="Title" subtitle="subtitle" />
|
|
15
|
-
<div className="
|
|
15
|
+
<div className="px-md--rs pb-sm--rs">
|
|
16
16
|
<Address text="0x0d7...3f34" isCopyable />
|
|
17
17
|
<Address text="0x0d7...3f35" isCopyable />
|
|
18
18
|
<Address text="0x0d7...3f36" isCopyable />
|