@frontify/fondue-components 0.1.0-beta.0 → 1.0.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.
@@ -1,5 +1,6 @@
1
- import '../src/styles.css';
1
+ import "@frontify/fondue-tokens/styles";
2
2
  import type { Preview } from '@storybook/react';
3
+ import '../src/styles.css';
3
4
  import DocumentationTemplate from './DocumentationTemplate.mdx';
4
5
 
5
6
  const preview: Preview = {
package/CHANGELOG.md CHANGED
@@ -1,7 +1,24 @@
1
1
  # @frontify/fondue-components
2
2
 
3
- ## 0.1.0-beta.0
3
+ ## 1.0.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - [#1731](https://github.com/Frontify/fondue/pull/1731) [`ef0519d`](https://github.com/Frontify/fondue/commit/ef0519d8021204b280b65812c98686b4ce3b909e) Thanks [@noahwaldner](https://github.com/noahwaldner)! - added export for the new components in fondue
7
+ - [#1807](https://github.com/Frontify/fondue/pull/1807) [`fc35a50`](https://github.com/Frontify/fondue/commit/fc35a509e641604eaf2a4b644c573929c3440be3) Thanks [@noahwaldner](https://github.com/noahwaldner)! - refactor: Finalized Monorepo transition, added subexport for new components, added contribution guidelines and readme
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1798](https://github.com/Frontify/fondue/pull/1798) [`99c8cea`](https://github.com/Frontify/fondue/commit/99c8cea49a6148206c127ebde6f559e17f5980bf) Thanks [@noahwaldner](https://github.com/noahwaldner)! - refactor: refactored button approach to size/variants
12
+
13
+ - [#1811](https://github.com/Frontify/fondue/pull/1811) [`4fa8007`](https://github.com/Frontify/fondue/commit/4fa8007bf973494ff4621f526d8f2919115f95ff) Thanks [@noahwaldner](https://github.com/noahwaldner)! - fix: housekeeping for v12 release
14
+
15
+ - [#1806](https://github.com/Frontify/fondue/pull/1806) [`246dfb8`](https://github.com/Frontify/fondue/commit/246dfb8112b68341de8cfd25a71cf3729848395d) Thanks [@noahwaldner](https://github.com/noahwaldner)! - feat: add packages sub-export to `@frontify/fondue`
16
+
17
+ - Updated dependencies [[`fc35a50`](https://github.com/Frontify/fondue/commit/fc35a509e641604eaf2a4b644c573929c3440be3), [`99c8cea`](https://github.com/Frontify/fondue/commit/99c8cea49a6148206c127ebde6f559e17f5980bf), [`246dfb8`](https://github.com/Frontify/fondue/commit/246dfb8112b68341de8cfd25a71cf3729848395d)]:
18
+ - @frontify/fondue-icons@0.2.0
19
+
20
+ ## 0.1.0
21
+
22
+ ### Minor Changes
23
+
24
+ - [#1731](https://github.com/Frontify/fondue/pull/1731) [`ef0519d`](https://github.com/Frontify/fondue/commit/ef0519d8021204b280b65812c98686b4ce3b909e) Thanks [@noahwaldner](https://github.com/noahwaldner)! - added export for the new components in fondue
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontify/fondue-components",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.0",
4
+ "version": "1.0.0",
5
5
  "homepage": "https://github.com/Frontify/fondue",
6
6
  "repository": {
7
7
  "type": "git",
@@ -18,7 +18,8 @@
18
18
  ".": {
19
19
  "types": "./dist/index.d.ts",
20
20
  "import": "./dist/fondue-components.js"
21
- }
21
+ },
22
+ "./styles": "./dist/style.css"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=18"
@@ -26,7 +27,7 @@
26
27
  "peerDependencies": {
27
28
  "react": "^18",
28
29
  "react-dom": "^18",
29
- "@frontify/fondue-icons": "^0.1.44"
30
+ "@frontify/fondue-icons": "^0.2.0"
30
31
  },
31
32
  "dependencies": {
32
33
  "@radix-ui/react-progress": "^1.0.3"
@@ -34,7 +35,7 @@
34
35
  "devDependencies": {
35
36
  "@etchteam/storybook-addon-status": "^4.2.4",
36
37
  "@frontify/eslint-config-react": "^0.17.6",
37
- "@frontify/fondue-tokens": "^3.4.0",
38
+ "@frontify/fondue-tokens": "^3.5.0",
38
39
  "@playwright/experimental-ct-react": "1.41.2",
39
40
  "@storybook/addon-a11y": "^8.0.8",
40
41
  "@storybook/addon-essentials": "^8.0.8",
@@ -71,7 +72,7 @@
71
72
  "vite-plugin-dts": "^3.8.1",
72
73
  "vite-tsconfig-paths": "^4.3.2",
73
74
  "vitest": "^1.4.0",
74
- "@frontify/fondue-icons": "^0.1.44"
75
+ "@frontify/fondue-icons": "^0.2.0"
75
76
  },
76
77
  "scripts": {
77
78
  "build": "vite build",
package/src/index.ts CHANGED
@@ -5,4 +5,3 @@ import './styles.css';
5
5
  export { Button } from './components/Button/Button';
6
6
  export { Divider } from './components/Divider/Divider';
7
7
  export { LoadingBar } from './components/LoadingBar/LoadingBar';
8
- export { Tag } from './components/Tag/Tag';
package/src/styles.css CHANGED
@@ -1,7 +1,5 @@
1
1
  /* (c) Copyright Frontify Ltd., all rights reserved. */
2
2
 
3
- @import '@frontify/fondue-tokens/styles';
4
-
5
3
  @tailwind base;
6
4
  @tailwind components;
7
5
  @tailwind utilities;
@@ -1,16 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- import { test, expect } from '@playwright/experimental-ct-react';
4
-
5
- import { Tag } from './Tag';
6
-
7
- test('should render without error', async ({ mount }) => {
8
- const component = await mount(<Tag>Test</Tag>);
9
- await expect(component).toContainText('Test');
10
- });
11
-
12
- test('should allow for the tag to have a border color and background color', async ({ mount }) => {
13
- const component = await mount(<Tag>Test</Tag>);
14
- await expect(component).toHaveCSS('background-color', 'rgb(240, 234, 250)');
15
- await expect(component).toHaveCSS('border-color', 'rgb(124, 87, 255)');
16
- });
@@ -1,29 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- import { type Meta, type StoryObj } from '@storybook/react';
4
-
5
- import { Tag } from './Tag';
6
-
7
- type Story = StoryObj<typeof Tag>;
8
- const meta: Meta<typeof Tag> = {
9
- component: Tag,
10
- tags: ['autodocs'],
11
- parameters: {
12
- status: {
13
- type: 'planned',
14
- },
15
- },
16
- };
17
- export default meta;
18
-
19
- export const Primary: Story = {
20
- args: {
21
- children: 'Tag',
22
- },
23
- };
24
-
25
- export const Secondary: Story = {
26
- args: {
27
- children: 'Tag',
28
- },
29
- };
@@ -1,18 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- import { type ReactNode } from 'react';
4
-
5
- type TagProps = {
6
- children: ReactNode;
7
- };
8
-
9
- export const Tag = ({ children }: TagProps) => {
10
- return (
11
- <div
12
- className="tw-text-text tw-bg-box-selected tw-border-box-selected-strong tw-border-2 tw-p-2 tw-rounded tw-w-fit"
13
- data-test-id="fondue-tag"
14
- >
15
- {children}
16
- </div>
17
- );
18
- };
@@ -1,13 +0,0 @@
1
- /* (c) Copyright Frontify Ltd., all rights reserved. */
2
-
3
- import { render } from '@testing-library/react';
4
- import { describe, expect, it } from 'vitest';
5
-
6
- import { Tag } from '../Tag';
7
-
8
- describe('Tag', () => {
9
- it('should render', () => {
10
- const { getByTestId } = render(<Tag>Tag</Tag>);
11
- expect(getByTestId('fondue-tag')).toBeInTheDocument();
12
- });
13
- });