@graphcommerce/ecommerce-ui 9.0.0-canary.107 → 9.0.0-canary.108

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @graphcommerce/ecommerce-ui
2
2
 
3
+ ## 9.0.0-canary.108
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2424](https://github.com/graphcommerce-org/graphcommerce/pull/2424) [`66b4188`](https://github.com/graphcommerce-org/graphcommerce/commit/66b418809ad4db2a465c4112ff9850ce0cfe611c) - Omit disableUnderline prop for ‘outlined’ variant, because its not supported. ([@carlocarels90](https://github.com/carlocarels90))
8
+
9
+ - [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`cb8d2f0`](https://github.com/graphcommerce-org/graphcommerce/commit/cb8d2f0059d64242260e30ce34655868f204ef4c) - Made all component prop types exported ([@bramvanderholst](https://github.com/bramvanderholst))
10
+
11
+ - [#2438](https://github.com/graphcommerce-org/graphcommerce/pull/2438) [`49937fd`](https://github.com/graphcommerce-org/graphcommerce/commit/49937fd765338e25899d427ee4d799fa7978faeb) - Allow changing various props for internal components ([@bramvanderholst](https://github.com/bramvanderholst))
12
+
3
13
  ## 9.0.0-canary.107
4
14
 
5
15
  ### Patch Changes
@@ -8,7 +8,7 @@ export type ApolloErrorSnackbarProps = {
8
8
  } & Pick<ErrorSnackbarProps, 'action' | 'onClose'>
9
9
 
10
10
  export function ApolloErrorSnackbar(props: ApolloErrorSnackbarProps) {
11
- const { error, action, ...passedProps } = props
11
+ const { error, ...passedProps } = props
12
12
 
13
13
  if (!error) return null
14
14
 
@@ -3,7 +3,7 @@ import { Button, IconSvg, iconChevronRight } from '@graphcommerce/next-ui'
3
3
  import type { ComposedSubmitRenderComponentProps } from '@graphcommerce/react-hook-form'
4
4
  import { forwardRef } from 'react'
5
5
 
6
- type ComposedSubmitButtonProps = ComposedSubmitRenderComponentProps &
6
+ export type ComposedSubmitButtonProps = ComposedSubmitRenderComponentProps &
7
7
  Omit<ButtonProps, 'loading' | 'onSubmit'>
8
8
 
9
9
  /** Makes a ComposedSubmitRenderComponent rendered as a LinkOrButton */
@@ -3,7 +3,7 @@ import { IconSvg, LinkOrButton, iconChevronRight } from '@graphcommerce/next-ui'
3
3
  import type { ComposedSubmitRenderComponentProps } from '@graphcommerce/react-hook-form'
4
4
  import { forwardRef } from 'react'
5
5
 
6
- type ComposedLinkOrButtonProps = ComposedSubmitRenderComponentProps &
6
+ export type ComposedLinkOrButtonProps = ComposedSubmitRenderComponentProps &
7
7
  Omit<LinkOrButtonProps, 'loading'>
8
8
 
9
9
  /** Makes a ComposedSubmitRenderComponent rendered as a LinkOrButton */
@@ -49,6 +49,13 @@ export function NumberFieldElement<T extends FieldValues>(props: NumberFieldElem
49
49
 
50
50
  const classes = withState({ size })
51
51
 
52
+ let InputPropsFiltered = InputProps
53
+
54
+ if (variant === 'outlined' && 'disableUnderline' in InputPropsFiltered) {
55
+ const { disableUnderline, ...filteredInputProps } = InputPropsFiltered
56
+ InputPropsFiltered = filteredInputProps
57
+ }
58
+
52
59
  if (required && !rules.required) {
53
60
  rules.required = i18n._(/* i18n */ 'This field is required')
54
61
  }
@@ -111,7 +118,7 @@ export function NumberFieldElement<T extends FieldValues>(props: NumberFieldElem
111
118
  ]}
112
119
  autoComplete='off'
113
120
  InputProps={{
114
- ...InputProps,
121
+ ...InputPropsFiltered,
115
122
  startAdornment: (
116
123
  <Fab
117
124
  aria-label={i18n._(/* i18n */ 'Decrease')}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/ecommerce-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.107",
5
+ "version": "9.0.0-canary.108",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,12 +12,12 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.107",
16
- "@graphcommerce/graphql": "^9.0.0-canary.107",
17
- "@graphcommerce/next-ui": "^9.0.0-canary.107",
18
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.107",
19
- "@graphcommerce/react-hook-form": "^9.0.0-canary.107",
20
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.107",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.108",
16
+ "@graphcommerce/graphql": "^9.0.0-canary.108",
17
+ "@graphcommerce/next-ui": "^9.0.0-canary.108",
18
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.108",
19
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.108",
20
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.108",
21
21
  "@lingui/core": "^4.2.1",
22
22
  "@lingui/macro": "^4.2.1",
23
23
  "@lingui/react": "^4.2.1",