@12-apps/discounts 1.15.0 → 1.16.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12-apps/discounts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/e2e/**"
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"typecheck": "tsc --noEmit"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@12-apps/app-shell": "^5.
|
|
44
|
+
"@12-apps/app-shell": "^5.13.1",
|
|
45
45
|
"@12-apps/forms-core": "^1.21.0",
|
|
46
46
|
"@12-apps/shared-helpers": "^2.1.0",
|
|
47
|
-
"@12-apps/ui": "^6.
|
|
47
|
+
"@12-apps/ui": "^6.58.0",
|
|
48
48
|
"@mui/icons-material": "^6.5.0",
|
|
49
49
|
"zod": "^4.3.5"
|
|
50
50
|
},
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
type KindListCardProps,
|
|
13
13
|
} from "@12-apps/ui/data-display/CardKit";
|
|
14
14
|
import { Chip } from "@12-apps/ui/data-display/Chip";
|
|
15
|
+
import { Stack } from "@12-apps/ui/mui/Stack";
|
|
15
16
|
import {
|
|
16
17
|
BaseListCard,
|
|
17
18
|
type ListCardCellConfig,
|
|
@@ -124,12 +125,17 @@ function RuleFacts({
|
|
|
124
125
|
<Fact
|
|
125
126
|
label={copy.screen.columns.window}
|
|
126
127
|
value={
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
// The state AND its dates: a phone-width row hides the window cell
|
|
129
|
+
// (FUT-3184), so "Sem prazo" or the period has to be readable here.
|
|
130
|
+
<Stack direction="row" spacing={1} alignItems="center" useFlexGap flexWrap="wrap">
|
|
131
|
+
<Chip
|
|
132
|
+
label={copy.labels.window[row.windowState] ?? row.windowState}
|
|
133
|
+
size="sm"
|
|
134
|
+
variant={row.windowState === "RUNNING" ? "filled" : "outlined"}
|
|
135
|
+
color={WINDOW_COLOR[row.windowState] ?? "neutral"}
|
|
136
|
+
/>
|
|
137
|
+
<span>{row.windowLabel}</span>
|
|
138
|
+
</Stack>
|
|
133
139
|
}
|
|
134
140
|
/>
|
|
135
141
|
<Fact label={copy.card.usage} value={`${row.usageCount} / ${cap}`} />
|