@hyphen/hyphen-components 8.0.0 → 8.0.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 (42) hide show
  1. package/dist/css/fonts.css +5 -3
  2. package/dist/css/fonts.css.map +1 -0
  3. package/dist/css/index.css +117 -111
  4. package/dist/css/index.css.map +1 -0
  5. package/dist/css/reset.css +5 -3
  6. package/dist/css/reset.css.map +1 -0
  7. package/dist/css/utilities.css +9 -7
  8. package/dist/css/utilities.css.map +1 -0
  9. package/dist/css/variables.css +11 -9
  10. package/dist/css/variables.css.map +1 -0
  11. package/dist/hyphen-components.cjs.development.js +6 -6
  12. package/dist/hyphen-components.cjs.development.js.map +1 -1
  13. package/dist/hyphen-components.cjs.production.min.js +1 -1
  14. package/dist/hyphen-components.cjs.production.min.js.map +1 -1
  15. package/dist/hyphen-components.esm.js +6 -6
  16. package/dist/hyphen-components.esm.js.map +1 -1
  17. package/package.json +4 -4
  18. package/src/components/Badge/Badge.module.scss +1 -1
  19. package/src/components/Button/Button.module.scss +1 -1
  20. package/src/components/CheckboxInput/components/Checkbox.module.scss +2 -2
  21. package/src/components/Drawer/Drawer.module.scss +1 -1
  22. package/src/components/DropdownMenu/DropdownMenu.tsx +6 -8
  23. package/src/components/Modal/Modal.module.scss +1 -1
  24. package/src/components/RadioGroup/RadioInput/RadioInput.module.scss +2 -2
  25. package/src/components/SelectInput/SelectInput.module.scss +1 -1
  26. package/src/components/SelectInputInset/SelectInputInset.module.scss +1 -1
  27. package/src/components/SelectInputNative/SelectInputNative.module.scss +1 -1
  28. package/src/components/Switch/Switch.module.scss +1 -1
  29. package/src/components/TextInput/TextInput.module.scss +1 -1
  30. package/src/components/TextInputInset/TextInputInset.module.scss +1 -1
  31. package/src/components/TextareaInput/TextareaInput.module.scss +1 -1
  32. package/src/components/TextareaInputInset/TextareaInputInset.module.scss +1 -1
  33. package/src/components/Toggle/Toggle.module.scss +1 -1
  34. package/src/components/ToggleGroup/ToggleGroup.module.scss +1 -1
  35. package/src/styles/display.scss +1 -1
  36. package/src/styles/flex.scss +1 -1
  37. package/src/styles/overflow.scss +2 -0
  38. package/src/styles/position.scss +2 -0
  39. package/src/styles/text-align.scss +2 -0
  40. package/src/styles/utilities.scss +10 -9
  41. package/src/styles/variables/index.scss +2 -1
  42. package/src/styles/white-space.scss +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyphen/hyphen-components",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "@hyphen"
@@ -56,7 +56,7 @@
56
56
  "react-select": "^5.10.0",
57
57
  "react-select-event": "^5.5.1",
58
58
  "uuid": "^11.1.1",
59
- "@hyphen/hyphen-design-tokens": "^8.0.0"
59
+ "@hyphen/hyphen-design-tokens": "^8.0.1"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/core": "^7.27.4",
@@ -87,7 +87,7 @@
87
87
  "clean-webpack-plugin": "^4.0.0",
88
88
  "cross-env": "^7.0.3",
89
89
  "css-loader": "^6.11.0",
90
- "css-minimizer-webpack-plugin": "^5.0.1",
90
+ "css-minimizer-webpack-plugin": "^8.0.0",
91
91
  "cssnano": "^6.1.2",
92
92
  "csstype": "^3.1.3",
93
93
  "eslint": "^8.57.0",
@@ -102,7 +102,7 @@
102
102
  "jest-preview": "^0.3.1",
103
103
  "mini-css-extract-plugin": "^2.9.1",
104
104
  "playwright": "^1.60.0",
105
- "postcss": "^8.5.18",
105
+ "postcss": "^8.5.23",
106
106
  "postcss-loader": "^7.3.4",
107
107
  "postcss-modules": "^6.0.0",
108
108
  "react": "^18.3.1",
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  /*
4
4
  * Trims the padding on whichever side carries a graphic rather than a text label,
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  :root {
4
4
  --button-box-shadow-focus: 0 0 0 4px var(--color-base-grey-300);
@@ -1,5 +1,5 @@
1
- @import '../../../styles/mixins';
2
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '../../../styles/mixins' as *;
2
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
3
3
 
4
4
  $sm-dimension: 20px;
5
5
  $md-dimension: 24px;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  .drawer {
4
4
  top: 0;
@@ -37,7 +37,7 @@ const DropdownMenuItem = React.forwardRef<
37
37
  />
38
38
  );
39
39
  });
40
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
40
+ DropdownMenuItem.displayName = 'DropdownMenuItem';
41
41
 
42
42
  const DropdownMenuContent = React.forwardRef<
43
43
  React.ElementRef<typeof DropdownMenuPrimitive.Content>,
@@ -58,7 +58,7 @@ const DropdownMenuContent = React.forwardRef<
58
58
  />
59
59
  </DropdownMenuPrimitive.Portal>
60
60
  ));
61
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
61
+ DropdownMenuContent.displayName = 'DropdownMenuContent';
62
62
 
63
63
  const DropdownMenuLabel = React.forwardRef<
64
64
  React.ElementRef<typeof DropdownMenuPrimitive.Label>,
@@ -76,7 +76,7 @@ const DropdownMenuLabel = React.forwardRef<
76
76
  {...props}
77
77
  />
78
78
  ));
79
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
79
+ DropdownMenuLabel.displayName = 'DropdownMenuLabel';
80
80
 
81
81
  const DropdownMenuSeparator = React.forwardRef<
82
82
  React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
@@ -95,7 +95,7 @@ const DropdownMenuSeparator = React.forwardRef<
95
95
  {...props}
96
96
  />
97
97
  ));
98
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
98
+ DropdownMenuSeparator.displayName = 'DropdownMenuSeparator';
99
99
 
100
100
  const DropdownMenuShortcut = ({
101
101
  className,
@@ -133,8 +133,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
133
133
  <Icon name="caret-sm-right" className="m-left-auto" />
134
134
  </DropdownMenuPrimitive.SubTrigger>
135
135
  ));
136
- DropdownMenuSubTrigger.displayName =
137
- DropdownMenuPrimitive.SubTrigger.displayName;
136
+ DropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger';
138
137
 
139
138
  const DropdownMenuSubContent = React.forwardRef<
140
139
  React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
@@ -149,8 +148,7 @@ const DropdownMenuSubContent = React.forwardRef<
149
148
  {...props}
150
149
  />
151
150
  ));
152
- DropdownMenuSubContent.displayName =
153
- DropdownMenuPrimitive.SubContent.displayName;
151
+ DropdownMenuSubContent.displayName = 'DropdownMenuSubContent';
154
152
 
155
153
  export {
156
154
  DropdownMenu,
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  .modal-close {
4
4
  border: none;
@@ -1,5 +1,5 @@
1
- @import '../../../styles/mixins';
2
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '../../../styles/mixins' as *;
2
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
3
3
 
4
4
  $sm-dimension: 16px;
5
5
  $md-dimension: 20px;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
  // The following styles required the :global tag since they need to be applied to react-select elements for which we do not own the markup
3
3
 
4
4
  @mixin react-select-icon {
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin floating-label-minimize-md {
4
4
  opacity: 0.75;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  %disabled-base {
4
4
  background-color: var(--color-background-disabled);
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin thumb-size-sm {
4
4
  width: calc(var(--size-spacing-2xl) - 4px);
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin size-sm {
4
4
  border-radius: var(
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin floating-label-minimize-md {
4
4
  opacity: 0.75;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin size-sm {
4
4
  border-radius: var(
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  @mixin floating-label-minimize-md {
4
4
  opacity: 0.75;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  .item {
4
4
  line-height: 1;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  .item {
4
4
  line-height: 1;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables.scss';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  .display-inherit {
4
4
  display: inherit;
@@ -1,4 +1,4 @@
1
- @import '@hyphen/hyphen-design-tokens/build/scss/variables.scss';
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
2
 
3
3
  // min-width and min-height needed because of this
4
4
  // https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size
@@ -1,3 +1,5 @@
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
+
1
3
  .overflow-visible { overflow: visible; }
2
4
  .overflow-hidden { overflow: hidden; }
3
5
  .overflow-clip { overflow: clip; }
@@ -1,3 +1,5 @@
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
+
1
3
  .position-absolute { position: absolute; }
2
4
  .position-fixed { position: fixed; }
3
5
  .position-relative { position: relative; }
@@ -1,3 +1,5 @@
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
+
1
3
  .text-align-left { text-align: left; }
2
4
  .text-align-right { text-align: right; }
3
5
  .text-align-center { text-align: center; }
@@ -1,13 +1,14 @@
1
+ @use './animation';
2
+ @use './cursor';
3
+ @use './display';
4
+ @use './flex';
5
+ @use './overflow';
6
+ @use './text-align';
7
+ @use './white-space';
8
+ @use './position';
9
+ @use './transform';
10
+
1
11
  @import '@hyphen/hyphen-design-tokens/build/utilities/utilities.css';
2
- @import './animation';
3
- @import './cursor';
4
- @import './display';
5
- @import './flex';
6
- @import './overflow';
7
- @import './text-align';
8
- @import './white-space';
9
- @import './position';
10
- @import './transform';
11
12
 
12
13
  .sr-only {
13
14
  position: absolute;
@@ -1,3 +1,4 @@
1
+ @use './forms';
2
+
1
3
  @import '@hyphen/hyphen-design-tokens/build/css/variables.css';
2
4
  @import '@hyphen/hyphen-design-tokens/build/css/variables-root-dark.css';
3
- @import './forms';
@@ -1,3 +1,5 @@
1
+ @use '@hyphen/hyphen-design-tokens/build/scss/variables' as *;
2
+
1
3
  .ws-normal { white-space: normal; }
2
4
  .ws-nowrap { white-space: nowrap; }
3
5
  .ws-pre { white-space: pre; }