@uappi/public-sdk 1.9.0 → 1.10.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.
@@ -10,7 +10,7 @@ export const ColorTheme = defineComponent({
10
10
  },
11
11
  },
12
12
  setup(props, { slots }) {
13
- function applyColors() {
13
+ function applyColors() {
14
14
  if (!props.variables?.colors) return;
15
15
 
16
16
  document.documentElement.style.setProperty(
@@ -53,6 +53,98 @@ export const ColorTheme = defineComponent({
53
53
  '--primary-text-decorative',
54
54
  props.variables.colors.PrimaryTextDecorative,
55
55
  );
56
+ document.documentElement.style.setProperty(
57
+ '--neutral-background',
58
+ props.variables.colors.NeutralBackground,
59
+ );
60
+ document.documentElement.style.setProperty(
61
+ '--neutral-text-high',
62
+ props.variables.colors.NeutralTextHigh,
63
+ );
64
+ document.documentElement.style.setProperty(
65
+ '--neutral-text-medium',
66
+ props.variables.colors.NeutralTextMedium,
67
+ );
68
+ document.documentElement.style.setProperty(
69
+ '--neutral-text-low',
70
+ props.variables.colors.NeutralTextLow,
71
+ );
72
+ document.documentElement.style.setProperty(
73
+ '--neutral-text-disabled',
74
+ props.variables.colors.NeutralTextDisabled,
75
+ );
76
+ document.documentElement.style.setProperty(
77
+ '--neutral-surface',
78
+ props.variables.colors.NeutralSurface,
79
+ );
80
+ document.documentElement.style.setProperty(
81
+ '--neutral-surface-hover',
82
+ props.variables.colors.NeutralSurfaceHover,
83
+ );
84
+ document.documentElement.style.setProperty(
85
+ '--neutral-surface-disabled',
86
+ props.variables.colors.NeutralSurfaceDisabled,
87
+ );
88
+ document.documentElement.style.setProperty(
89
+ '--neutral-border',
90
+ props.variables.colors.NeutralBorder,
91
+ );
92
+ document.documentElement.style.setProperty(
93
+ '--success-surface',
94
+ props.variables.colors.SuccessSurface,
95
+ );
96
+ document.documentElement.style.setProperty(
97
+ '--success-border',
98
+ props.variables.colors.SuccessBorder,
99
+ );
100
+ document.documentElement.style.setProperty(
101
+ '--success-surface-low',
102
+ props.variables.colors.SuccessSurfaceLow,
103
+ );
104
+ document.documentElement.style.setProperty(
105
+ '--warning-surface',
106
+ props.variables.colors.WarningSurface,
107
+ );
108
+ document.documentElement.style.setProperty(
109
+ '--warning-border',
110
+ props.variables.colors.WarningBorder,
111
+ );
112
+ document.documentElement.style.setProperty(
113
+ '--warning-surface-low',
114
+ props.variables.colors.WarningSurfaceLow,
115
+ );
116
+ document.documentElement.style.setProperty(
117
+ '--error-surface',
118
+ props.variables.colors.ErrorSurface,
119
+ );
120
+ document.documentElement.style.setProperty(
121
+ '--error-border',
122
+ props.variables.colors.ErrorBorder,
123
+ );
124
+ document.documentElement.style.setProperty(
125
+ '--error-surface-low',
126
+ props.variables.colors.ErrorSurfaceLow,
127
+ );
128
+ document.documentElement.style.setProperty(
129
+ '--info-border',
130
+ props.variables.colors.InfoBorder,
131
+ );
132
+ document.documentElement.style.setProperty(
133
+ '--info-surface',
134
+ props.variables.colors.InfoSurface,
135
+ );
136
+ document.documentElement.style.setProperty(
137
+ '--info-surface-low',
138
+ props.variables.colors.InfoSurfaceLow,
139
+ );
140
+ document.documentElement.style.setProperty(
141
+ '--link-interactive-default',
142
+ props.variables.colors.LinkInteractiveDefault,
143
+ );
144
+ document.documentElement.style.setProperty(
145
+ '--link-interactive-hover',
146
+ props.variables.colors.LinkInteractiveHover,
147
+ );
56
148
  }
57
149
 
58
150
  function applyFont() {
@@ -1,9 +1,14 @@
1
1
  export interface CSSVariables {
2
- font?: {
2
+ desktopHeader: string;
3
+ mobileHeader: string;
4
+ desktopFooter: string;
5
+ mobileFooter: string;
6
+ privacyPolicyUrl: string;
7
+ font: {
3
8
  family: string;
4
9
  link: string;
5
10
  };
6
- colors?: {
11
+ colors: {
7
12
  CheckoutCTADefault: string;
8
13
  CheckoutCTAHover: string;
9
14
  CheckoutCTAText: string;
@@ -14,5 +19,28 @@ export interface CSSVariables {
14
19
  PrimarySurfaceDisabled: string;
15
20
  PrimarySurfaceLow: string;
16
21
  PrimaryTextDecorative: string;
22
+ NeutralBackground: string;
23
+ NeutralTextHigh: string;
24
+ NeutralTextMedium: string;
25
+ NeutralTextLow: string;
26
+ NeutralTextDisabled: string;
27
+ NeutralSurface: string;
28
+ NeutralSurfaceHover: string;
29
+ NeutralSurfaceDisabled: string;
30
+ NeutralBorder: string;
31
+ SuccessSurface: string;
32
+ SuccessBorder: string;
33
+ SuccessSurfaceLow: string;
34
+ WarningSurface: string;
35
+ WarningBorder: string;
36
+ WarningSurfaceLow: string;
37
+ ErrorSurface: string;
38
+ ErrorBorder: string;
39
+ ErrorSurfaceLow: string;
40
+ InfoBorder: string;
41
+ InfoSurface: string;
42
+ InfoSurfaceLow: string;
43
+ LinkInteractiveDefault: string;
44
+ LinkInteractiveHover: string;
17
45
  };
18
46
  }
@@ -361,7 +361,7 @@ export interface CustomerOrderPayment {
361
361
  customerCardId: null;
362
362
  paymentType: Exclude<PaymentCode, 'multiple-payment'>;
363
363
  paymentProof: string;
364
- paymentExpirationDate: string;
364
+ paymentExpirationDate: string | null;
365
365
  paymentOptionId: number;
366
366
  parentPaymentOptionId: null;
367
367
  paymentOptionLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uappi/public-sdk",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Pacotes públicos para desenvolvimento do ecossistema Uappi",
5
5
  "main": "main.ts",
6
6
  "scripts": {