@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.ts +38 -17
  3. package/dist/index.es.js +1827 -1803
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/index.umd.js +38 -38
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/style.css +1 -1
  8. package/package.json +1 -3
  9. package/src/lib/components/atoms/badge/Badge.tsx +1 -1
  10. package/src/lib/components/atoms/button/button-variants/ButtonPill.tsx +1 -1
  11. package/src/lib/components/atoms/button/button-variants/ButtonUnstyled.tsx +1 -1
  12. package/src/lib/components/atoms/button/button-variants/buttonVariants.types.ts +1 -1
  13. package/src/lib/components/atoms/info-box/InfoBox.tsx +2 -1
  14. package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +3 -2
  15. package/src/lib/components/atoms/label-text/LabelText.tsx +2 -1
  16. package/src/lib/components/atoms/list-item/ListItem.tsx +2 -2
  17. package/src/lib/components/atoms/snackbar/Snackbar.tsx +1 -1
  18. package/src/lib/components/atoms/tooltip/Tooltip.tsx +3 -3
  19. package/src/lib/components/molecules/account/Account.tsx +21 -3
  20. package/src/lib/components/molecules/address/Address.tsx +1 -1
  21. package/src/lib/components/molecules/card/CardAction.tsx +1 -1
  22. package/src/lib/components/molecules/card/CardBody.tsx +3 -3
  23. package/src/lib/components/molecules/chip/Chip.tsx +1 -1
  24. package/src/lib/components/molecules/display-stats/DisplayStats.tsx +41 -3
  25. package/src/lib/components/molecules/input/Input.tsx +5 -4
  26. package/src/lib/components/molecules/input/InputWrapper.tsx +1 -1
  27. package/src/lib/components/molecules/input/TextArea.tsx +3 -2
  28. package/src/lib/components/molecules/input/input.types.ts +3 -3
  29. package/src/lib/components/molecules/navbar-item/NavbarItemHorizontal.tsx +2 -2
  30. package/src/lib/components/molecules/navbar-item/NavbarItemVertical.tsx +2 -2
  31. package/src/lib/components/molecules/search/Search.tsx +2 -9
  32. package/src/lib/components/molecules/segmented-button/SegmentedButton.tsx +2 -2
  33. package/src/lib/components/molecules/select/Select.tsx +2 -3
  34. package/src/lib/components/molecules/table-cell/TableCell.tsx +2 -2
  35. package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +1 -1
  36. package/src/lib/components/molecules/title/Title.tsx +2 -1
  37. package/src/lib/components/organisms/accordion/Accordion.tsx +2 -2
  38. package/src/lib/components/organisms/dialog/Dialog.tsx +20 -1
  39. package/src/lib/components/organisms/navbar/Navbar.tsx +2 -1
  40. package/src/lib/components/organisms/navbar/NavbarSlideout.tsx +3 -2
  41. package/src/lib/components/organisms/table/Table.tsx +4 -10
  42. package/src/lib/components/organisms/table/TableContext.tsx +2 -1
  43. package/src/lib/tailwind/base.presets.ts +1 -1
  44. package/src/lib/tailwind/constants/fontSizes.constants.ts +1 -1
  45. package/src/lib/tailwind/helpers.ts +1 -1
  46. package/src/lib/tailwind/types.ts +1 -1
  47. package/src/storybook/blocks/TypeSet.tsx +1 -1
  48. package/src/storybook/stories/atoms/Snackbar.stories.tsx +2 -1
  49. package/src/storybook/stories/molecules/Card.stories.tsx +1 -4
  50. package/src/storybook/stories/molecules/Dropdown.stories.tsx +1 -1
  51. package/src/storybook/stories/molecules/Input.stories.tsx +2 -1
  52. package/src/storybook/stories/molecules/Search.stories.tsx +2 -1
  53. package/src/storybook/stories/molecules/SegmentedButton.stories.tsx +2 -1
  54. package/src/storybook/stories/molecules/Select.stories.tsx +2 -1
  55. package/src/storybook/stories/organisms/Navbar.stories.tsx +2 -1
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) 2024 IOTA Stiftung
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { ScreenSize } from '../enums';
4
+ import type { ScreenSize } from '../enums';
5
5
 
6
6
  export const pxToRem = (px: number, base: number = 16) => `${px / base}rem`;
7
7
 
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) 2024 IOTA Stiftung
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
- import { ScreenSize } from '../enums';
4
+ import type { ScreenSize } from '../enums';
5
5
 
6
6
  export type ScreenBreakpoints = Record<ScreenSize, number>;
@@ -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 { Snackbar, SnackbarProps, SnackbarType, Button } from '@/components/atoms';
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,
@@ -3,7 +3,7 @@
3
3
 
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
5
  import { Dropdown, ListItem } from '@/components';
6
- import { ComponentProps } from 'react';
6
+ import type { ComponentProps } from 'react';
7
7
 
8
8
  const meta = {
9
9
  component: Dropdown,
@@ -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, useCallback, useEffect, useState } from 'react';
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 { ListItem, Search, SearchBarType, Suggestion } from '@/components';
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, useState } from 'react';
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 { Select, SelectOption } from '@/components/molecules/select/Select';
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 { Navbar, NavbarSlideout, NavbarItemWithId, NavbarProps } from '@/components';
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[] = [