@hyphen/hyphen-components 7.7.0 → 7.8.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/dist/index.d.ts CHANGED
@@ -2004,14 +2004,14 @@ interface HeadingProps {
2004
2004
  className?: string;
2005
2005
  /**
2006
2006
  * A variant token identifier to use for the text variant. Available variants found:
2007
- * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/color/font.json).
2007
+ * [here](https://github.com/Hyphen/hyphen-components/blob/main/packages/design-tokens/tokens/color/font.json).
2008
2008
  */
2009
2009
  color?: FontColor;
2010
2010
  /**
2011
2011
  * By default, size is determined by the chosen tag (e.g. h1 is bigger than h2).
2012
2012
  * However, size can be set independently so that its size is appropriate for the surrounding content.
2013
2013
  * Available sizes found:
2014
- * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/size/font.json).
2014
+ * [here](https://github.com/Hyphen/hyphen-components/blob/main/packages/design-tokens/tokens/size/font.json).
2015
2015
  */
2016
2016
  size?: HeadingSize | ResponsiveProp<HeadingSize>;
2017
2017
  /**
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@hyphen/hyphen-components",
3
- "version": "7.7.0",
4
- "packageManager": "pnpm@10.20.0",
3
+ "version": "7.8.0",
5
4
  "license": "MIT",
6
5
  "author": {
7
6
  "name": "@hyphen"
@@ -16,34 +15,8 @@
16
15
  ],
17
16
  "repository": {
18
17
  "type": "git",
19
- "url": "git+https://github.com/Hyphen/hyphen-components.git"
20
- },
21
- "scripts": {
22
- "build": "cross-env IS_PUBLISHING=true tsup && cross-env IS_PUBLISHING=true webpack --config webpack.config.js && node scripts/create-cjs-shim.js",
23
- "build-storybook": "storybook build",
24
- "build-storybook-docs": "storybook build --docs",
25
- "storybook-docs": "storybook dev --docs",
26
- "lint": "eslint src --ext .ts,.tsx",
27
- "lint-fix": "eslint src --ext .ts,.tsx --fix",
28
- "size": "size-limit",
29
- "start": "tsup --watch",
30
- "storybook": "storybook dev -p 6006",
31
- "test": "jest --passWithNoTests",
32
- "test-watch": "jest --coverage --watch",
33
- "semantic-release": "semantic-release",
34
- "prepare": "pnpm run build",
35
- "chromatic": "chromatic --project-token=chpt_8fddffb5556f0b7 --only-changed"
36
- },
37
- "husky": {
38
- "hooks": {
39
- "pre-commit": "eslint src --ext .ts,.tsx"
40
- }
41
- },
42
- "prettier": {
43
- "printWidth": 80,
44
- "semi": true,
45
- "singleQuote": true,
46
- "trailingComma": "es5"
18
+ "url": "git+https://github.com/Hyphen/hyphen-components.git",
19
+ "directory": "packages/components"
47
20
  },
48
21
  "peerDependencies": {
49
22
  "react": ">=16"
@@ -64,7 +37,6 @@
64
37
  "dependencies": {
65
38
  "@daypicker/react": "^10.0.1",
66
39
  "@emotion/react": "^11.14.0",
67
- "@hyphen/hyphen-design-tokens": "^7.7.0",
68
40
  "@radix-ui/react-aspect-ratio": "^1.1.9",
69
41
  "@radix-ui/react-collapsible": "^1.1.13",
70
42
  "@radix-ui/react-dropdown-menu": "^2.1.17",
@@ -83,12 +55,12 @@
83
55
  "react-router-dom": "^6.30.4",
84
56
  "react-select": "^5.10.0",
85
57
  "react-select-event": "^5.5.1",
86
- "uuid": "^11.1.1"
58
+ "uuid": "^11.1.1",
59
+ "@hyphen/hyphen-design-tokens": "^7.8.0"
87
60
  },
88
61
  "devDependencies": {
89
62
  "@babel/core": "^7.27.4",
90
63
  "@chromatic-com/storybook": "^5.2.1",
91
- "@semantic-release/commit-analyzer": "^11.1.0",
92
64
  "@size-limit/preset-small-lib": "^11.2.0",
93
65
  "@storybook/addon-a11y": "10.4.2",
94
66
  "@storybook/addon-docs": "10.4.2",
@@ -124,7 +96,6 @@
124
96
  "eslint-plugin-react": "^7.34.0",
125
97
  "eslint-plugin-react-hooks": "^4.6.0",
126
98
  "eslint-plugin-storybook": "10.4.2",
127
- "husky": "^8.0.3",
128
99
  "identity-obj-proxy": "^3.0.0",
129
100
  "jest": "^29.7.0",
130
101
  "jest-environment-jsdom": "^30.2.0",
@@ -139,7 +110,6 @@
139
110
  "react-is": "^18.3.1",
140
111
  "sass": "^1.77.8",
141
112
  "sass-loader": "^13.3.3",
142
- "semantic-release": "^25.0.2",
143
113
  "size-limit": "^11.2.0",
144
114
  "storybook": "10.4.2",
145
115
  "ts-jest": "^29.4.6",
@@ -152,5 +122,19 @@
152
122
  "webpack": "^5.94.0",
153
123
  "webpack-cli": "^5.1.4",
154
124
  "webpack-fix-style-only-entries": "^0.6.1"
125
+ },
126
+ "scripts": {
127
+ "build": "cross-env IS_PUBLISHING=true tsup && cross-env IS_PUBLISHING=true webpack --config webpack.config.js && node scripts/create-cjs-shim.js",
128
+ "build-storybook": "storybook build",
129
+ "build-storybook-docs": "storybook build --docs",
130
+ "storybook-docs": "storybook dev --docs",
131
+ "lint": "eslint src --ext .ts,.tsx",
132
+ "lint-fix": "eslint src --ext .ts,.tsx --fix",
133
+ "size": "size-limit",
134
+ "start": "tsup --watch",
135
+ "storybook": "storybook dev -p 6006",
136
+ "test": "jest --passWithNoTests",
137
+ "test-watch": "jest --coverage --watch",
138
+ "chromatic": "chromatic --only-changed"
155
139
  }
156
- }
140
+ }
@@ -26,14 +26,14 @@ export interface HeadingProps {
26
26
  className?: string;
27
27
  /**
28
28
  * A variant token identifier to use for the text variant. Available variants found:
29
- * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/color/font.json).
29
+ * [here](https://github.com/Hyphen/hyphen-components/blob/main/packages/design-tokens/tokens/color/font.json).
30
30
  */
31
31
  color?: FontColor;
32
32
  /**
33
33
  * By default, size is determined by the chosen tag (e.g. h1 is bigger than h2).
34
34
  * However, size can be set independently so that its size is appropriate for the surrounding content.
35
35
  * Available sizes found:
36
- * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/size/font.json).
36
+ * [here](https://github.com/Hyphen/hyphen-components/blob/main/packages/design-tokens/tokens/size/font.json).
37
37
  */
38
38
  size?: HeadingSize | ResponsiveProp<HeadingSize>;
39
39
  /**
@@ -1,17 +1,19 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
2
 
3
- import HyphenLogoHorizontalRgbPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalRgbPositive';
4
- import HyphenLogoHorizontalRgbNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalRgbNegative';
5
- import HyphenLogoHorizontalBlack from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalBlack';
6
- import HyphenLogoHorizontalWhite from '@hyphen/hyphen-design-tokens/build/assets/images/react/HyphenLogoHorizontalWhite';
7
- import EnvLogoRgbPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/EnvLogoRgbPositive';
8
- import EnvLogoRgbNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/EnvLogoRgbNegative';
9
- import LinkLogoRgbPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/LinkLogoRgbPositive';
10
- import LinkLogoRgbNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/LinkLogoRgbNegative';
11
- import ToggleLogoHorizontalRgbPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/ToggleLogoHorizontalRgbPositive';
12
- import ToggleLogoHorizontalRgbNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/ToggleLogoHorizontalRgbNegative';
13
- import DeployLogoHorizontalPositive from '@hyphen/hyphen-design-tokens/build/assets/images/react/DeployLogoHorizontalPositive';
14
- import DeployLogoHorizontalNegative from '@hyphen/hyphen-design-tokens/build/assets/images/react/DeployLogoHorizontalNegative';
3
+ import logos from '@hyphen/hyphen-design-tokens/build/assets/images/react';
4
+
5
+ export const HyphenLogoHorizontalRgbPositive = logos['hyphen-logo-horizontal-rgb-positive'];
6
+ export const HyphenLogoHorizontalRgbNegative = logos['hyphen-logo-horizontal-rgb-negative'];
7
+ export const HyphenLogoHorizontalBlack = logos['hyphen-logo-horizontal-black'];
8
+ export const HyphenLogoHorizontalWhite = logos['hyphen-logo-horizontal-white'];
9
+ export const EnvLogoRgbPositive = logos['env-logo-rgb-positive'];
10
+ export const EnvLogoRgbNegative = logos['env-logo-rgb-negative'];
11
+ export const LinkLogoRgbPositive = logos['link-logo-rgb-positive'];
12
+ export const LinkLogoRgbNegative = logos['link-logo-rgb-negative'];
13
+ export const ToggleLogoHorizontalRgbPositive = logos['toggle-logo-horizontal-rgb-positive'];
14
+ export const ToggleLogoHorizontalRgbNegative = logos['toggle-logo-horizontal-rgb-negative'];
15
+ export const DeployLogoHorizontalPositive = logos['deploy-logo-horizontal-positive'];
16
+ export const DeployLogoHorizontalNegative = logos['deploy-logo-horizontal-negative'];
15
17
 
16
18
 
17
19
  import { Box } from '../components/Box/Box';
@@ -13,7 +13,7 @@ We use [Style Dictionary](https://amzn.github.io/style-dictionary/) to generate
13
13
 
14
14
  ## Source on Github
15
15
 
16
- [Hyphen Design Tokens](https://github.com/hyphen/hyphen-design-tokens) are available as an [npm package](https://www.npmjs.com/package/@hyphen/hyphen-design-tokens) so that you can create a Hyphen unified product experience for your platform of choice.
16
+ [Hyphen Design Tokens](https://github.com/Hyphen/hyphen-components/tree/main/packages/design-tokens) are available as an [npm package](https://www.npmjs.com/package/@hyphen/hyphen-design-tokens) so that you can create a Hyphen unified product experience for your platform of choice.
17
17
 
18
18
  ## Border Radius
19
19
 
@@ -7,6 +7,6 @@ import { Meta } from '@storybook/addon-docs/blocks';
7
7
  Welcome to the Hyphen Design System, whose purpose is to help us deliver high quality Hyphen branded applications, faster and better. It consists of the following:
8
8
 
9
9
  - [Hyphen Components](https://github.com/hyphen/hyphen-components) - an open source, react-based, component library for Hyphen applications and websites.
10
- - [Hyphen Design Tokens](https://github.com/hyphen/hyphen-design-tokens) - A central location to store shared attributes of the Hyphen Design System. These include things like color, fonts, spacing, and more.
10
+ - [Hyphen Design Tokens](https://github.com/Hyphen/hyphen-components/tree/main/packages/design-tokens) - A central location to store shared attributes of the Hyphen Design System. These include things like color, fonts, spacing, and more.
11
11
 
12
12
  ❤️ The Hyphen Team