@iota/apps-ui-kit 0.5.0 → 0.5.1
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 +11 -0
- package/dist/index.d.ts +38 -17
- package/dist/index.es.js +1827 -1803
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +38 -38
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -3
- package/src/lib/components/atoms/badge/Badge.tsx +1 -1
- package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +1 -1
- package/src/lib/components/atoms/button/button-variants/ButtonUnstyled.tsx +1 -1
- package/src/lib/components/atoms/button/button-variants/buttonVariants.types.ts +1 -1
- package/src/lib/components/atoms/info-box/InfoBox.tsx +2 -1
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +3 -2
- package/src/lib/components/atoms/label-text/LabelText.tsx +2 -1
- package/src/lib/components/atoms/list-item/ListItem.tsx +2 -2
- package/src/lib/components/atoms/snackbar/Snackbar.tsx +1 -1
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +3 -3
- package/src/lib/components/molecules/account/Account.tsx +21 -3
- package/src/lib/components/molecules/address/Address.tsx +1 -1
- package/src/lib/components/molecules/card/CardAction.tsx +1 -1
- package/src/lib/components/molecules/card/CardBody.tsx +3 -3
- package/src/lib/components/molecules/chip/Chip.tsx +1 -1
- package/src/lib/components/molecules/display-stats/DisplayStats.tsx +41 -3
- package/src/lib/components/molecules/input/Input.tsx +5 -4
- package/src/lib/components/molecules/input/InputWrapper.tsx +1 -1
- package/src/lib/components/molecules/input/TextArea.tsx +3 -2
- package/src/lib/components/molecules/input/input.types.ts +3 -3
- package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +2 -2
- package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +2 -2
- package/src/lib/components/molecules/search/Search.tsx +2 -9
- package/src/lib/components/molecules/segmented-button/SegmentedButton.tsx +2 -2
- package/src/lib/components/molecules/select/Select.tsx +2 -3
- package/src/lib/components/molecules/table-cell/TableCell.tsx +2 -2
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +1 -1
- package/src/lib/components/molecules/title/Title.tsx +2 -1
- package/src/lib/components/organisms/accordion/Accordion.tsx +2 -2
- package/src/lib/components/organisms/dialog/Dialog.tsx +20 -1
- package/src/lib/components/organisms/navbar/Navbar.tsx +2 -1
- package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +3 -2
- package/src/lib/components/organisms/table/Table.tsx +4 -10
- package/src/lib/components/organisms/table/TableContext.tsx +2 -1
- package/src/lib/tailwind/base.presets.ts +1 -1
- package/src/lib/tailwind/constants/fontSizes.constants.ts +1 -1
- package/src/lib/tailwind/helpers.ts +1 -1
- package/src/lib/tailwind/types.ts +1 -1
- package/src/storybook/blocks/TypeSet.tsx +1 -1
- package/src/storybook/stories/atoms/Snackbar.stories.tsx +2 -1
- package/src/storybook/stories/molecules/Card.stories.tsx +1 -4
- package/src/storybook/stories/molecules/Dropdown.stories.tsx +1 -1
- package/src/storybook/stories/molecules/Input.stories.tsx +2 -1
- package/src/storybook/stories/molecules/Search.stories.tsx +2 -1
- package/src/storybook/stories/molecules/SegmentedButton.stories.tsx +2 -1
- package/src/storybook/stories/molecules/Select.stories.tsx +2 -1
- package/src/storybook/stories/organisms/Navbar.stories.tsx +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { TypeSetItem } from './TypeSetItem';
|
|
5
5
|
import { getFontSizeLabelFromClass } from '../helpers';
|
|
6
|
-
import { TailwindCustomFonts } from '@/lib/tailwind/constants';
|
|
6
|
+
import type { TailwindCustomFonts } from '@/lib/tailwind/constants';
|
|
7
7
|
|
|
8
8
|
export interface TypeSetProps {
|
|
9
9
|
typeset: TailwindCustomFonts;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
6
|
-
import {
|
|
6
|
+
import type { SnackbarProps } from '@/components/atoms';
|
|
7
|
+
import { Snackbar, SnackbarType, Button } from '@/components/atoms';
|
|
7
8
|
|
|
8
9
|
const meta: Meta<SnackbarProps> = {
|
|
9
10
|
component: Snackbar,
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
import { IotaLogoSmall } from '@iota/apps-ui-icons';
|
|
6
|
+
import type { CardProps, CardImageProps, CardBodyProps, CardActionProps } from '@/components';
|
|
6
7
|
import {
|
|
7
8
|
Card,
|
|
8
|
-
CardProps,
|
|
9
9
|
CardImage,
|
|
10
|
-
CardImageProps,
|
|
11
10
|
CardAction,
|
|
12
11
|
CardBody,
|
|
13
|
-
CardBodyProps,
|
|
14
|
-
CardActionProps,
|
|
15
12
|
CardActionType,
|
|
16
13
|
CardType,
|
|
17
14
|
ImageType,
|
|
@@ -5,7 +5,8 @@ import type { Meta, StoryObj } from '@storybook/react';
|
|
|
5
5
|
|
|
6
6
|
import { Input, InputType } from '@/lib/components/molecules/input';
|
|
7
7
|
import { PlaceholderReplace } from '@iota/apps-ui-icons';
|
|
8
|
-
import { ComponentProps
|
|
8
|
+
import type { ComponentProps } from 'react';
|
|
9
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
9
10
|
import { ButtonPill } from '@/lib/components/atoms/button';
|
|
10
11
|
|
|
11
12
|
type CustomStoryProps = {
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
6
|
-
import {
|
|
6
|
+
import type { Suggestion } from '@/components';
|
|
7
|
+
import { ListItem, Search, SearchBarType } from '@/components';
|
|
7
8
|
import cx from 'classnames';
|
|
8
9
|
|
|
9
10
|
const meta: Meta<typeof Search> = {
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
SegmentedButton,
|
|
10
10
|
SegmentedButtonType,
|
|
11
11
|
} from '@/components';
|
|
12
|
-
import { ComponentProps
|
|
12
|
+
import type { ComponentProps } from 'react';
|
|
13
|
+
import { useState } from 'react';
|
|
13
14
|
import { PlaceholderReplace } from '@iota/apps-ui-icons';
|
|
14
15
|
|
|
15
16
|
const meta: Meta<typeof SegmentedButton> = {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
-
import {
|
|
5
|
+
import type { SelectOption } from '@/components/molecules/select/Select';
|
|
6
|
+
import { Select } from '@/components/molecules/select/Select';
|
|
6
7
|
import { useState } from 'react';
|
|
7
8
|
import { IotaLogoMark, PlaceholderReplace } from '@iota/apps-ui-icons';
|
|
8
9
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
5
|
import { Activity, Apps, Assets, Home } from '@iota/apps-ui-icons';
|
|
6
|
-
import {
|
|
6
|
+
import type { NavbarItemWithId, NavbarProps } from '@/components';
|
|
7
|
+
import { Navbar, NavbarSlideout } from '@/components';
|
|
7
8
|
import { useState } from 'react';
|
|
8
9
|
|
|
9
10
|
const NAVBAR_ITEMS: NavbarItemWithId[] = [
|