@akinon/pz-gpay 1.16.3 → 1.17.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @akinon/pz-gpay
2
2
 
3
+ ## 1.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Update README files
8
+ - Add containerClassName to GPayOption component
9
+
10
+ ## 1.17.0
11
+
3
12
  ## 1.16.3
4
13
 
5
14
  ## 1.16.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-gpay",
3
- "version": "1.16.3",
3
+ "version": "1.17.1",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
package/readme.md CHANGED
@@ -33,6 +33,7 @@ export default GarantiPayRedirect;
33
33
  | Properties | Type | Description |
34
34
  |----------------------|--------|--------------------------------------------|
35
35
  | translations | object | The translations of the component. |
36
+ | containerClassName | string | The CSS class to apply to the container. |
36
37
  | titleClassName | string | The CSS class to apply to the title. |
37
38
  | descriptionClassName | string | The CSS class to apply to the description. |
38
39
  | buttonClassName | string | The CSS class to apply to the button. |
@@ -17,6 +17,7 @@ import { Button } from '@akinon/next/components/button';
17
17
  const gpayFormSchema = yup.object();
18
18
 
19
19
  enum Elements {
20
+ container,
20
21
  title,
21
22
  description,
22
23
  button
@@ -71,7 +72,7 @@ export function GPayOption(props: GpayOptionProps) {
71
72
  return (
72
73
  <form
73
74
  id="gpay_payment"
74
- className="p-5 space-y-5 lg:p-10"
75
+ className={props.containerClassName ?? 'p-5 space-y-5 lg:p-10'}
75
76
  onSubmit={handleSubmit(onSubmit)}
76
77
  >
77
78
  <h1 className={twMerge('text-2xl font-bold', props.titleClassName)}>