@granto-umbrella/umbrella-components 3.0.6 → 3.0.7
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/umbrella-components.es.js +6 -0
- package/dist/umbrella-components.umd.js +4 -0
- package/package.json +1 -1
- package/src/components/molecules/TimeLine/TimeLine.mapper.ts +2 -2
- package/src/components/molecules/TimeLine/TimeLine.styles.ts +6 -0
- package/src/components/molecules/TimeLine/TimeLine.types.ts +2 -1
|
@@ -77554,6 +77554,9 @@ const nN1 = S.li`
|
|
|
77554
77554
|
`,
|
|
77555
77555
|
download: B`
|
|
77556
77556
|
background: ${v.branding.surface.disabled};
|
|
77557
|
+
`,
|
|
77558
|
+
issue: B`
|
|
77559
|
+
background: ${v.global.surface.status.online};
|
|
77557
77560
|
`
|
|
77558
77561
|
};
|
|
77559
77562
|
return t[a] ?? t.continued;
|
|
@@ -77572,6 +77575,9 @@ const nN1 = S.li`
|
|
|
77572
77575
|
`,
|
|
77573
77576
|
download: B`
|
|
77574
77577
|
border-color: ${v.branding.surface.enabled};
|
|
77578
|
+
`,
|
|
77579
|
+
issue: B`
|
|
77580
|
+
border-color: ${v.global.border.feedback.success};
|
|
77575
77581
|
`
|
|
77576
77582
|
};
|
|
77577
77583
|
return t[a] ?? t.continued;
|
|
@@ -2500,6 +2500,8 @@ gap: ${D.global.gap.lg};
|
|
|
2500
2500
|
background: ${v.global.surface.status.notification};
|
|
2501
2501
|
`,download:B`
|
|
2502
2502
|
background: ${v.branding.surface.disabled};
|
|
2503
|
+
`,issue:B`
|
|
2504
|
+
background: ${v.global.surface.status.online};
|
|
2503
2505
|
`};return t[a]??t.continued}}
|
|
2504
2506
|
|
|
2505
2507
|
${({$variant:a="continued"})=>{const t={continued:B`
|
|
@@ -2510,6 +2512,8 @@ gap: ${D.global.gap.lg};
|
|
|
2510
2512
|
border-color: ${v.global.border.feedback.error};
|
|
2511
2513
|
`,download:B`
|
|
2512
2514
|
border-color: ${v.branding.surface.enabled};
|
|
2515
|
+
`,issue:B`
|
|
2516
|
+
border-color: ${v.global.border.feedback.success};
|
|
2513
2517
|
`};return t[a]??t.continued}}
|
|
2514
2518
|
`,oR1=S.div`
|
|
2515
2519
|
background: #fff;
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ function toVariant(eventType: string): TimelineVariant {
|
|
|
5
5
|
if (eventType === 'subscription:partner_subscribe') return 'accepted';
|
|
6
6
|
if (eventType === 'subscription:partner_quote') return 'continued';
|
|
7
7
|
if (eventType === 'order:proposal_refused') return 'rejected';
|
|
8
|
+
if (eventType === 'issue:partner_issue') return 'issue';
|
|
8
9
|
return 'continued';
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -15,8 +16,7 @@ function buildTitle(ev: RemoteEvent): string {
|
|
|
15
16
|
return 'Subscrição realizada';
|
|
16
17
|
if (eventType === 'subscription:partner_quote') return 'Cotação processada';
|
|
17
18
|
if (eventType === 'order:proposal_refused') return 'Proposta recusada';
|
|
18
|
-
|
|
19
|
-
// Fallback genérico
|
|
19
|
+
if (eventType === 'issue:partner_issue') return 'Emissão realizada';
|
|
20
20
|
return data?.title ? String(data.title) : eventType;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -55,6 +55,9 @@ export const Dot = styled.span<{
|
|
|
55
55
|
download: css`
|
|
56
56
|
background: ${semanticColors.branding.surface.disabled};
|
|
57
57
|
`,
|
|
58
|
+
issue: css`
|
|
59
|
+
background: ${semanticColors.global.surface.status.online};
|
|
60
|
+
`,
|
|
58
61
|
};
|
|
59
62
|
return map[$variant as TimelineVariant] ?? map['continued'];
|
|
60
63
|
}}
|
|
@@ -73,6 +76,9 @@ export const Dot = styled.span<{
|
|
|
73
76
|
download: css`
|
|
74
77
|
border-color: ${semanticColors.branding.surface.enabled};
|
|
75
78
|
`,
|
|
79
|
+
issue: css`
|
|
80
|
+
border-color: ${semanticColors.global.border.feedback.success};
|
|
81
|
+
`,
|
|
76
82
|
};
|
|
77
83
|
return map[$variant as TimelineVariant] ?? map['continued'];
|
|
78
84
|
}}
|