@hyphen/hyphen-components 2.12.0 → 2.12.2
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/css/index.css +3 -3
- package/dist/css/variables.css +0 -1
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +32 -33
- package/src/components/Box/Box.tsx +3 -1
- package/src/components/SelectInput/SelectInput.module.scss +14 -9
- package/src/components/TextInput/TextInput.module.scss +1 -4
- package/src/components/TextareaInput/TextareaInput.module.scss +1 -4
- package/src/styles/variables/forms.scss +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyphen/hyphen-components",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "@hyphen"
|
|
@@ -62,62 +62,61 @@
|
|
|
62
62
|
],
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/core": "^7.23.7",
|
|
65
|
-
"@chromatic-com/storybook": "^1.
|
|
65
|
+
"@chromatic-com/storybook": "^1.8.0",
|
|
66
66
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
67
|
-
"@size-limit/preset-small-lib": "^11.
|
|
68
|
-
"@storybook/addon-essentials": "^8.
|
|
69
|
-
"@storybook/addon-
|
|
70
|
-
"@storybook/
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/react": "^8.
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@
|
|
76
|
-
"@testing-library/jest-dom": "^6.2.1",
|
|
67
|
+
"@size-limit/preset-small-lib": "^11.1.4",
|
|
68
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
69
|
+
"@storybook/addon-themes": "^8.2.9",
|
|
70
|
+
"@storybook/blocks": "^8.2.9",
|
|
71
|
+
"@storybook/manager-api": "^8.2.9",
|
|
72
|
+
"@storybook/react": "^8.2.9",
|
|
73
|
+
"@storybook/react-vite": "^8.2.9",
|
|
74
|
+
"@storybook/theming": "^8.2.9",
|
|
75
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
77
76
|
"@testing-library/react": "^14.1.2",
|
|
78
77
|
"@testing-library/user-event": "^14.5.2",
|
|
79
|
-
"@tsconfig/recommended": "^1.0.
|
|
80
|
-
"@tsconfig/vite-react": "^3.0.
|
|
81
|
-
"@types/react": "^18.
|
|
78
|
+
"@tsconfig/recommended": "^1.0.7",
|
|
79
|
+
"@tsconfig/vite-react": "^3.0.2",
|
|
80
|
+
"@types/react": "^18.3.5",
|
|
82
81
|
"@types/react-datepicker": "^6.2.0",
|
|
83
|
-
"@types/react-dom": "^18.
|
|
82
|
+
"@types/react-dom": "^18.3.0",
|
|
84
83
|
"@types/react-modal": "^3.16.3",
|
|
85
|
-
"autoprefixer": "^10.4.
|
|
84
|
+
"autoprefixer": "^10.4.20",
|
|
86
85
|
"babel-loader": "^9.1.3",
|
|
87
|
-
"chromatic": "^11.
|
|
86
|
+
"chromatic": "^11.7.1",
|
|
88
87
|
"clean-webpack-plugin": "^4.0.0",
|
|
89
88
|
"cross-env": "^7.0.3",
|
|
90
89
|
"css-loader": "^6.9.0",
|
|
91
90
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
92
91
|
"cssnano": "^6.0.3",
|
|
93
92
|
"csstype": "^3.1.3",
|
|
94
|
-
"dts-cli": "^2.0.
|
|
93
|
+
"dts-cli": "^2.0.5",
|
|
95
94
|
"husky": "^8.0.3",
|
|
96
95
|
"identity-obj-proxy": "^3.0.0",
|
|
97
96
|
"jest-preview": "^0.3.1",
|
|
98
|
-
"mini-css-extract-plugin": "^2.
|
|
97
|
+
"mini-css-extract-plugin": "^2.9.1",
|
|
99
98
|
"postcss-loader": "^7.3.4",
|
|
100
|
-
"react": "^18.
|
|
101
|
-
"react-dom": "^18.
|
|
102
|
-
"react-is": "^18.
|
|
99
|
+
"react": "^18.3.1",
|
|
100
|
+
"react-dom": "^18.3.1",
|
|
101
|
+
"react-is": "^18.3.1",
|
|
103
102
|
"rollup-plugin-postcss": "^4.0.2",
|
|
104
103
|
"rollup-plugin-scss": "^4.0.0",
|
|
105
|
-
"sass": "^1.
|
|
104
|
+
"sass": "^1.77.8",
|
|
106
105
|
"sass-loader": "^13.3.3",
|
|
107
106
|
"semantic-release": "^23.0.0",
|
|
108
|
-
"size-limit": "^11.
|
|
109
|
-
"storybook": "^8.
|
|
107
|
+
"size-limit": "^11.1.4",
|
|
108
|
+
"storybook": "^8.2.9",
|
|
110
109
|
"ts-jest": "^29.1.2",
|
|
111
110
|
"tslib": "^2.6.2",
|
|
112
111
|
"typescript": "^5.3.3",
|
|
113
112
|
"url-loader": "^4.1.1",
|
|
114
|
-
"vite": "^5.
|
|
115
|
-
"webpack": "^5.
|
|
113
|
+
"vite": "^5.4.2",
|
|
114
|
+
"webpack": "^5.94.0",
|
|
116
115
|
"webpack-cli": "^5.1.4",
|
|
117
116
|
"webpack-fix-style-only-entries": "^0.6.1"
|
|
118
117
|
},
|
|
119
118
|
"optionalDependencies": {
|
|
120
|
-
"@rollup/rollup-linux-x64-gnu": "^4.
|
|
119
|
+
"@rollup/rollup-linux-x64-gnu": "^4.21.2"
|
|
121
120
|
},
|
|
122
121
|
"dependencies": {
|
|
123
122
|
"@hyphen/hyphen-design-tokens": "^4.9.0",
|
|
@@ -126,13 +125,13 @@
|
|
|
126
125
|
"classnames": "^2.5.1",
|
|
127
126
|
"date-fns": "^2.16.1",
|
|
128
127
|
"focus-trap-react": "^10.2.3",
|
|
129
|
-
"formik": "^2.4.
|
|
128
|
+
"formik": "^2.4.6",
|
|
130
129
|
"react-datepicker": "^6.3.0",
|
|
131
|
-
"react-focus-lock": "^2.
|
|
130
|
+
"react-focus-lock": "^2.13.2",
|
|
132
131
|
"react-modal": "^3.16.1",
|
|
133
132
|
"react-popper": "^2.3.0",
|
|
134
|
-
"react-remove-scroll": "^2.5.
|
|
135
|
-
"react-router-dom": "^6.
|
|
133
|
+
"react-remove-scroll": "^2.5.10",
|
|
134
|
+
"react-router-dom": "^6.26.1",
|
|
136
135
|
"react-select": "^5.8.0",
|
|
137
136
|
"react-select-event": "^5.5.1"
|
|
138
137
|
}
|
|
@@ -453,7 +453,9 @@ export const Box: FC<BoxProps> = forwardRef(
|
|
|
453
453
|
};
|
|
454
454
|
|
|
455
455
|
if (typeof direction === 'string') {
|
|
456
|
-
childGapDirection = {
|
|
456
|
+
childGapDirection = {
|
|
457
|
+
base: getChildGapMarginDirection(direction as CssFlexDirectionValue),
|
|
458
|
+
};
|
|
457
459
|
} else if (typeof direction === 'object' && direction !== null) {
|
|
458
460
|
childGapDirection = Object.keys(direction).reduce(
|
|
459
461
|
(acc, curr) => ({
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
@extend %react-select-icon;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// stylelint-disable
|
|
29
28
|
@mixin size-sm {
|
|
30
29
|
:global(.react-select__control) {
|
|
31
30
|
border-radius: var(
|
|
@@ -201,6 +200,16 @@
|
|
|
201
200
|
}
|
|
202
201
|
}
|
|
203
202
|
|
|
203
|
+
:global(.react-select__option--is-selected),
|
|
204
|
+
:global(.react-select__option--is-focused) {
|
|
205
|
+
background-color: var(--color-background-tertiary);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:global(.react-select__option),
|
|
209
|
+
:global(.react-select__single-value) {
|
|
210
|
+
color: var(--color-font-base);
|
|
211
|
+
}
|
|
212
|
+
|
|
204
213
|
:global(.react-select__control) {
|
|
205
214
|
line-height: var(
|
|
206
215
|
--form-control-line-height,
|
|
@@ -220,10 +229,7 @@
|
|
|
220
229
|
}
|
|
221
230
|
|
|
222
231
|
:global(.react-select__placeholder) {
|
|
223
|
-
color: var(
|
|
224
|
-
--form-control-placeholder-color,
|
|
225
|
-
var(--INTERNAL_form-control-placeholder-color)
|
|
226
|
-
);
|
|
232
|
+
color: var(--color-font-placeholder);
|
|
227
233
|
}
|
|
228
234
|
|
|
229
235
|
:global(.react-select__clear-indicator) {
|
|
@@ -253,16 +259,15 @@
|
|
|
253
259
|
|
|
254
260
|
&:global(.react-select__control--is-disabled) {
|
|
255
261
|
:global(.react-select__dropdown-indicator) {
|
|
256
|
-
color: var(
|
|
257
|
-
--form-control-placeholder-color,
|
|
258
|
-
var(--INTERNAL_form-control-placeholder-color)
|
|
259
|
-
);
|
|
262
|
+
color: var(--color-font-disabled);
|
|
260
263
|
}
|
|
261
264
|
}
|
|
262
265
|
}
|
|
263
266
|
|
|
264
267
|
:global(.react-select__menu) {
|
|
265
268
|
z-index: var(--size-z-index-popover);
|
|
269
|
+
background-color: var(--color-background-primary);
|
|
270
|
+
border-color: var(--color-border-default);
|
|
266
271
|
}
|
|
267
272
|
|
|
268
273
|
&.error {
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
--INTERNAL_form-control-description-color: var(--color-font-secondary);
|
|
51
51
|
--INTERNAL_form-control-icon-color: var(--color-base-grey-300);
|
|
52
52
|
--INTERNAL_form-control-icon-color-hover: var(--color-base-grey);
|
|
53
|
-
--INTERNAL_form-control-placeholder-color: var(--color-font-placeholder);
|
|
54
53
|
|
|
55
54
|
// ----RADIO GROUP----
|
|
56
55
|
--INTERNAL_form-control-radio-group-description-spacing: var(
|