@veevarts/design-system 2.0.0 → 2.1.0-beta.10
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/index.cjs +8 -8
- package/dist/index.js +7040 -5277
- package/dist/patterns/ActivityTimeline/ActivityTimeline.d.ts +3 -0
- package/dist/patterns/ActivityTimeline/index.d.ts +2 -0
- package/dist/patterns/ActivityTimeline/styles.d.ts +15 -0
- package/dist/patterns/ActivityTimeline/types.d.ts +15 -0
- package/dist/patterns/AdminTable/AdminTable.d.ts +1 -0
- package/dist/patterns/AdminTable/styles.d.ts +6 -0
- package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +1 -0
- package/dist/patterns/AmountList/AmountList.d.ts +3 -0
- package/dist/patterns/AmountList/index.d.ts +2 -0
- package/dist/patterns/AmountList/styles.d.ts +23 -0
- package/dist/patterns/AmountList/types.d.ts +26 -0
- package/dist/patterns/CardList/CardList.d.ts +3 -0
- package/dist/patterns/CardList/index.d.ts +2 -0
- package/dist/patterns/CardList/styles.d.ts +16 -0
- package/dist/patterns/CardList/types.d.ts +19 -0
- package/dist/patterns/CardStack/CardStack.d.ts +7 -0
- package/dist/patterns/CardStack/index.d.ts +2 -0
- package/dist/patterns/CardStack/styles.d.ts +2 -0
- package/dist/patterns/CellText/CellText.d.ts +16 -0
- package/dist/patterns/CellText/index.d.ts +2 -0
- package/dist/patterns/CellText/styles.d.ts +7 -0
- package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
- package/dist/patterns/FilterSelect/index.d.ts +2 -0
- package/dist/patterns/FilterSelect/styles.d.ts +14 -0
- package/dist/patterns/FilterSelect/types.d.ts +13 -0
- package/dist/patterns/InstallmentFundAssignment/InstallmentFundAssignment.d.ts +1 -1
- package/dist/patterns/InstallmentFundAssignment/types.d.ts +3 -0
- package/dist/patterns/InstallmentSchedule/InstallmentSchedule.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/index.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/types.d.ts +62 -3
- package/dist/patterns/InstallmentSchedule/utils.d.ts +33 -0
- package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
- package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
- package/dist/patterns/KeyValueRows/index.d.ts +2 -0
- package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
- package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
- package/dist/patterns/LineItemRows/index.d.ts +2 -0
- package/dist/patterns/LineItemRows/styles.d.ts +13 -0
- package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
- package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
- package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
- package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
- package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
- package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
- package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
- package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
- package/dist/patterns/PillTabs/ids.d.ts +9 -0
- package/dist/patterns/PillTabs/index.d.ts +3 -0
- package/dist/patterns/PillTabs/styles.d.ts +10 -0
- package/dist/patterns/PillTabs/types.d.ts +13 -0
- package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/type.d.ts +1 -1
- package/dist/patterns/{EventDetails → Programs/EventDetails}/EventDetails.d.ts +3 -1
- package/dist/patterns/{OfferCard → Programs/OfferCard}/OfferCard.d.ts +1 -1
- package/dist/patterns/{OfferCard → Programs/OfferCard}/types.d.ts +7 -0
- package/dist/patterns/Programs/ProgramListItem/ProgramListItem.d.ts +17 -0
- package/dist/patterns/Programs/ProgramListItem/index.d.ts +2 -0
- package/dist/patterns/Programs/index.d.ts +5 -0
- package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
- package/dist/patterns/RecordCard/index.d.ts +2 -0
- package/dist/patterns/RecordCard/styles.d.ts +15 -0
- package/dist/patterns/RecordCard/types.d.ts +17 -0
- package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
- package/dist/patterns/RecordHeader/index.d.ts +2 -0
- package/dist/patterns/RecordHeader/styles.d.ts +43 -0
- package/dist/patterns/RecordHeader/types.d.ts +30 -0
- package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
- package/dist/patterns/RecordLayout/index.d.ts +2 -0
- package/dist/patterns/RecordLayout/styles.d.ts +8 -0
- package/dist/patterns/RecordLayout/types.d.ts +6 -0
- package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
- package/dist/patterns/RecordTotals/index.d.ts +2 -0
- package/dist/patterns/RecordTotals/styles.d.ts +19 -0
- package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
- package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
- package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
- package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
- package/dist/patterns/SplitPaymentSummary/index.d.ts +1 -1
- package/dist/patterns/SplitPaymentSummary/types.d.ts +18 -0
- package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
- package/dist/patterns/StatTiles/index.d.ts +2 -0
- package/dist/patterns/StatTiles/styles.d.ts +8 -0
- package/dist/patterns/StatTiles/types.d.ts +12 -0
- package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
- package/dist/patterns/Summary/components/ActionBar.d.ts +2 -0
- package/dist/patterns/Summary/components/GrandTotalRow.d.ts +1 -0
- package/dist/patterns/Summary/components/ItemRow.d.ts +1 -0
- package/dist/patterns/Summary/components/SummaryBody.d.ts +4 -1
- package/dist/patterns/Summary/components/TotalsLineRow.d.ts +3 -2
- package/dist/patterns/Summary/types.d.ts +40 -9
- package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
- package/dist/patterns/TileSelect/TileSelect.d.ts +65 -1
- package/dist/patterns/TileSelect/index.d.ts +1 -1
- package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
- package/dist/patterns/index.d.ts +45 -11
- package/dist/patterns/shared/hasContent.d.ts +2 -0
- package/dist/patterns/shared/index.d.ts +1 -0
- package/dist/patterns/shared/motion.d.ts +6 -0
- package/dist/patterns/shared/recordTone.d.ts +9 -0
- package/dist/patterns/shared/rem.d.ts +4 -0
- package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
- package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
- package/dist/tailwind/index.cjs +17 -1
- package/dist/tailwind/index.d.ts +39 -0
- package/dist/tailwind/index.mjs +17 -1
- package/dist/test/ReducedMotion.d.ts +4 -0
- package/dist/test/RootFontSize.d.ts +5 -0
- package/dist/test/container-width.d.ts +14 -0
- package/dist/test/contrast.d.ts +1 -0
- package/dist/test/px-classes.d.ts +2 -0
- package/dist/test/root-font-size.d.ts +8 -0
- package/dist/tokens/pos-surface.d.ts +7 -0
- package/package.json +1 -1
- /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/CatalogItemCard.d.ts +0 -0
- /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/index.d.ts +0 -0
- /package/dist/patterns/{EventDetails → Programs/EventDetails}/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/animations.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/currency.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/index.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/offers.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardEmpty.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardError.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardList.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardSkeleton.d.ts +0 -0
- /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/index.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/SessionTimeline.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/index.d.ts +0 -0
- /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/type.d.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Money } from '../../utils/money';
|
|
3
|
+
import { RecordTone } from '../shared/recordTone';
|
|
3
4
|
export type { Money } from '../../utils/money';
|
|
4
5
|
/**
|
|
5
6
|
* A generic, parametrizable detail row rendered under a line item — an icon +
|
|
@@ -56,6 +57,12 @@ export interface SummaryLineItem {
|
|
|
56
57
|
* show an auto-renewal note and a pay-by-installments line.
|
|
57
58
|
*/
|
|
58
59
|
details?: SummaryItemDetail[];
|
|
60
|
+
/** Pre-formatted list price, rendered struck through before `amount`. */
|
|
61
|
+
originalAmount?: string;
|
|
62
|
+
/** Node rendered under the amount, right-aligned (e.g. a `StatusChip`). */
|
|
63
|
+
trailing?: ReactNode;
|
|
64
|
+
/** Tints the whole row with the tone's fill. */
|
|
65
|
+
tone?: RecordTone;
|
|
59
66
|
}
|
|
60
67
|
/** The "Pay Service fee" radio-toggle row. */
|
|
61
68
|
export interface SummaryServiceFee {
|
|
@@ -66,18 +73,18 @@ export interface SummaryServiceFee {
|
|
|
66
73
|
/** Fires when the row/radio is toggled. */
|
|
67
74
|
onToggle?: () => void;
|
|
68
75
|
}
|
|
69
|
-
/** A plain totals row (Subtotal, Taxes). */
|
|
76
|
+
/** A plain totals row (Subtotal, Discounts, Taxes). */
|
|
70
77
|
export interface SummaryTotalRow {
|
|
71
78
|
/** Stable key for `data-testid` (e.g. 'subtotal', 'taxes'). */
|
|
72
79
|
key: string;
|
|
73
80
|
label: ReactNode;
|
|
74
81
|
amount: Money;
|
|
82
|
+
/** Stable id; when set and `onRemoveTotalRow` exists, the row shows the remove control (e.g. one row per removable discount). */
|
|
83
|
+
id?: string;
|
|
75
84
|
}
|
|
76
85
|
/**
|
|
77
|
-
* A post-total row — the same flat shape as {@link SummaryTotalRow}
|
|
78
|
-
*
|
|
79
|
-
* trash remove control the line items use. Kept as its own interface so the
|
|
80
|
-
* pre-total `rows` — where an id/remove has no meaning — stay untouched.
|
|
86
|
+
* A post-total row — the same flat shape as {@link SummaryTotalRow}; rows with
|
|
87
|
+
* an `id` show the trash remove control when `onRemovePostTotalRow` exists.
|
|
81
88
|
*/
|
|
82
89
|
export interface SummaryPostTotalRow extends SummaryTotalRow {
|
|
83
90
|
/** Stable id; when set and `onRemovePostTotalRow` exists, the row shows the remove control. */
|
|
@@ -94,6 +101,8 @@ export interface SummaryPrimaryAction {
|
|
|
94
101
|
export interface SummaryLabels {
|
|
95
102
|
/** Aria label for the per-item remove control. Default "Remove item". */
|
|
96
103
|
removeAriaLabel?: string;
|
|
104
|
+
/** Aria label for the per-totals-row remove control. Default "Remove discount". */
|
|
105
|
+
removeTotalRowAriaLabel?: string;
|
|
97
106
|
/** Aria label for the per-post-total-row remove control. Default "Remove applied code". */
|
|
98
107
|
removePostTotalRowAriaLabel?: string;
|
|
99
108
|
/** Aria label for the collapse/expand press target. Default "Toggle summary". */
|
|
@@ -132,6 +141,8 @@ export interface SummaryClassNames {
|
|
|
132
141
|
cta?: string;
|
|
133
142
|
/** The caption rendered under the CTA. */
|
|
134
143
|
ctaCaption?: string;
|
|
144
|
+
/** The error rendered next to the CTA. */
|
|
145
|
+
ctaError?: string;
|
|
135
146
|
/** Mobile compact bottom-bar. */
|
|
136
147
|
mobileBar?: string;
|
|
137
148
|
/** Mobile cart button. */
|
|
@@ -150,7 +161,11 @@ export interface SummaryProps {
|
|
|
150
161
|
items?: SummaryLineItem[];
|
|
151
162
|
/** Optional "Pay Service fee" radio-toggle row. */
|
|
152
163
|
serviceFee?: SummaryServiceFee;
|
|
153
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Plain totals rows rendered above the Total (Subtotal, Discounts, Taxes).
|
|
166
|
+
* Rows with an `id` show the trash remove control when `onRemoveTotalRow`
|
|
167
|
+
* is provided (same gating as the item remove, incl. `showRemoveButton`).
|
|
168
|
+
*/
|
|
154
169
|
rows?: SummaryTotalRow[];
|
|
155
170
|
/** The emphasized Total row (label default "Total"). */
|
|
156
171
|
total: {
|
|
@@ -182,9 +197,16 @@ export interface SummaryProps {
|
|
|
182
197
|
*/
|
|
183
198
|
ctaCaption?: ReactNode;
|
|
184
199
|
/**
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
200
|
+
* An optional error (e.g. a rejected request) shown in danger text next to
|
|
201
|
+
* the CTA: under it in the card layout, ABOVE it in the mobile bottom bar,
|
|
202
|
+
* where the sticky CTA sits at the screen edge and a message under it would
|
|
203
|
+
* hug the edge and sit beneath the thumb. Rendered as `role="alert"`.
|
|
204
|
+
*/
|
|
205
|
+
ctaError?: ReactNode;
|
|
206
|
+
/**
|
|
207
|
+
* Whether the remove (trash) controls are shown — per-item, per-totals-row
|
|
208
|
+
* and per-post-total-row alike. Defaults to `true`; pass `false` to hide them
|
|
209
|
+
* even when `onRemoveItem` / `onRemoveTotalRow` / `onRemovePostTotalRow` are wired. Independent
|
|
188
210
|
* of the handlers so a host can keep them but suppress the controls.
|
|
189
211
|
*/
|
|
190
212
|
showRemoveButton?: boolean;
|
|
@@ -213,6 +235,8 @@ export interface SummaryProps {
|
|
|
213
235
|
primaryAction?: SummaryPrimaryAction;
|
|
214
236
|
/** When provided, item rows show a red trash remove control. */
|
|
215
237
|
onRemoveItem?: (id: string) => void;
|
|
238
|
+
/** When provided, totals rows (above the Total) with an `id` show the same red trash remove control. */
|
|
239
|
+
onRemoveTotalRow?: (id: string) => void;
|
|
216
240
|
/** When provided, post-total rows with an `id` show the same red trash remove control. */
|
|
217
241
|
onRemovePostTotalRow?: (id: string) => void;
|
|
218
242
|
/**
|
|
@@ -231,6 +255,13 @@ export interface SummaryProps {
|
|
|
231
255
|
/** Rendered when there are no items. */
|
|
232
256
|
emptyState?: ReactNode;
|
|
233
257
|
labels?: SummaryLabels;
|
|
258
|
+
/**
|
|
259
|
+
* Visual density. `'compact'` drops the card's title and the prices row, removes the
|
|
260
|
+
* `{qty} x` prefix, separates items with dividers, renders the totals rows
|
|
261
|
+
* small and muted and a smaller Total without a divider above it (e.g. a POS
|
|
262
|
+
* cart panel). Defaults to `'default'`.
|
|
263
|
+
*/
|
|
264
|
+
density?: 'default' | 'compact';
|
|
234
265
|
'data-testid'?: string;
|
|
235
266
|
className?: string;
|
|
236
267
|
/** Per-slot class overrides (Design-System `classNames` convention). */
|
|
@@ -25,6 +25,7 @@ export interface TableSkeletonProps {
|
|
|
25
25
|
barHeight?: number;
|
|
26
26
|
/** Right-aligns the last column's bar, for a trailing numeric or actions column. */
|
|
27
27
|
alignLastRight?: boolean;
|
|
28
|
+
appearance?: 'pulse' | 'shimmer';
|
|
28
29
|
className?: string;
|
|
29
30
|
classNames?: TableSkeletonClassNames;
|
|
30
31
|
'data-testid'?: string;
|
|
@@ -11,9 +11,47 @@ export interface TileSelectOption {
|
|
|
11
11
|
icon: string | React.ReactNode;
|
|
12
12
|
/** Disable the tile (greyed out, no click). */
|
|
13
13
|
isDisabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* One line of supporting copy. Rendered only by `variant="compact"`,
|
|
16
|
+
* for an option that ended up in the "More" menu, where the label
|
|
17
|
+
* alone ("Other") rarely says enough.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* `variant="compact"` only: keep this option in the "More" menu at
|
|
22
|
+
* every width, however much room the track has. For an action that is
|
|
23
|
+
* secondary by decision rather than by measurement — a payments picker
|
|
24
|
+
* that wants "Other" one click away so the methods people actually
|
|
25
|
+
* reach for own the row.
|
|
26
|
+
*
|
|
27
|
+
* The menu is rendered whenever an option asks for it, so this also
|
|
28
|
+
* overrides the rule that suppresses a menu holding a single option.
|
|
29
|
+
*/
|
|
30
|
+
alwaysInMenu?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* `variant="compact"` only: what this option is worth keeping on the
|
|
33
|
+
* track. When the pill runs out of room the LOWEST priority folds into
|
|
34
|
+
* the menu first; equal priorities fold from the end of the list.
|
|
35
|
+
* Default `0`.
|
|
36
|
+
*
|
|
37
|
+
* Display order is untouched — this decides what survives a squeeze,
|
|
38
|
+
* not where anything sits. A payments picker can list "Other" before
|
|
39
|
+
* "Split payment" and still lose "Other" first, because splitting a
|
|
40
|
+
* payment is the rarer, weightier thing to reach for.
|
|
41
|
+
*/
|
|
42
|
+
priority?: number;
|
|
14
43
|
/** Override per-tile test id; defaults to `${dataTestId}-${key}`. */
|
|
15
44
|
'data-testid'?: string;
|
|
16
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* `'tiles'` — the icon-over-label grid, with a `<Select>` dropdown under
|
|
48
|
+
* `md`. The picker is the subject of the step.
|
|
49
|
+
*
|
|
50
|
+
* `'compact'` — a segmented pill of label-only toggles at every width,
|
|
51
|
+
* keeping every option the track can hold and folding the rest into a
|
|
52
|
+
* "More" menu rather than scrolling. The picker is a control among others.
|
|
53
|
+
*/
|
|
54
|
+
export type TileSelectVariant = 'tiles' | 'compact';
|
|
17
55
|
export interface TileSelectProps {
|
|
18
56
|
/** Options to render in order. */
|
|
19
57
|
options: readonly TileSelectOption[];
|
|
@@ -30,7 +68,33 @@ export interface TileSelectProps {
|
|
|
30
68
|
* heading element.
|
|
31
69
|
*/
|
|
32
70
|
ariaLabel?: string;
|
|
33
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* How the options render. Default `'tiles'`.
|
|
73
|
+
* See {@link TileSelectVariant}.
|
|
74
|
+
*/
|
|
75
|
+
variant?: TileSelectVariant;
|
|
76
|
+
/**
|
|
77
|
+
* `variant="compact"` only: a CAP on how many options stay on the pill.
|
|
78
|
+
* Unset by default, and normally best left that way — the pill already
|
|
79
|
+
* measures the track and keeps every option that fits, folding only
|
|
80
|
+
* what is left over. Set it when a surface wants a shorter row than
|
|
81
|
+
* its width allows.
|
|
82
|
+
*
|
|
83
|
+
* The cap gives way in one case: when honouring it would leave a single
|
|
84
|
+
* option in the menu that the track had room for. A "More" button is
|
|
85
|
+
* wider than most labels, so that fold costs space and buys a click.
|
|
86
|
+
*/
|
|
87
|
+
maxVisible?: number;
|
|
88
|
+
/**
|
|
89
|
+
* `variant="compact"` only: label for the overflow trigger. Shown
|
|
90
|
+
* until an option inside the menu is selected, after which the
|
|
91
|
+
* trigger carries that option's label. Translatable. Default `'More'`.
|
|
92
|
+
*/
|
|
93
|
+
moreLabel?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Grid columns on >= sm. Default `3`. Mobile collapses to 2.
|
|
96
|
+
* Ignored by `variant="compact"`, which is a single strip.
|
|
97
|
+
*/
|
|
34
98
|
columnsDesktop?: 2 | 3 | 4;
|
|
35
99
|
columnsMobile?: 1 | 2;
|
|
36
100
|
className?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TileSelect } from './TileSelect';
|
|
2
|
-
export type { TileSelectProps, TileSelectOption } from './TileSelect';
|
|
2
|
+
export type { TileSelectProps, TileSelectOption, TileSelectVariant } from './TileSelect';
|
|
@@ -10,6 +10,7 @@ export type ToolbarButtonProps = Omit<ComponentPropsWithoutRef<typeof Button>, '
|
|
|
10
10
|
* count straight through without guarding it.
|
|
11
11
|
*/
|
|
12
12
|
count?: number;
|
|
13
|
+
appearance?: 'pill' | 'outline';
|
|
13
14
|
/** Forwarded as `data-testid`. */
|
|
14
15
|
testId?: string;
|
|
15
16
|
};
|
|
@@ -23,6 +24,7 @@ export declare const ToolbarButton: React.ForwardRefExoticComponent<Omit<Omit<Om
|
|
|
23
24
|
* count straight through without guarding it.
|
|
24
25
|
*/
|
|
25
26
|
count?: number;
|
|
27
|
+
appearance?: "pill" | "outline";
|
|
26
28
|
/** Forwarded as `data-testid`. */
|
|
27
29
|
testId?: string;
|
|
28
30
|
} & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export { DonationAmounts } from './DonationAmounts';
|
|
|
13
13
|
export type { DonationAmountsProps, DonationAmount, SelectedDonation, DonationLabels } from './DonationAmounts';
|
|
14
14
|
export { ExpireCartTimer } from './ExpireCartTimer';
|
|
15
15
|
export type { ExpireCartTimerProps } from './ExpireCartTimer';
|
|
16
|
-
export { EventDetails } from './EventDetails';
|
|
17
|
-
export type { EventDetailsProps } from './EventDetails';
|
|
18
|
-
export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './OfferCard';
|
|
19
|
-
export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './OfferCard';
|
|
16
|
+
export { EventDetails } from './Programs/EventDetails';
|
|
17
|
+
export type { EventDetailsProps } from './Programs/EventDetails';
|
|
18
|
+
export { OfferCard, OfferCardList, OfferCardSkeleton, OfferCardError, OfferCardEmpty, offerListVariants, offerCardVariants, formatCurrency as formatOfferCurrency, parseCurrency as parseOfferCurrency, } from './Programs/OfferCard';
|
|
19
|
+
export type { Offer, OfferSelection, OfferCardLabels, OfferCardErrorLabels, OfferCardClassNames, OfferCardListClassNames, OfferCardSkeletonClassNames, OfferCardErrorClassNames, OfferCardEmptyClassNames, OfferCardSlots, OfferCardProps, OfferCardListProps, OfferCardSkeletonProps, OfferCardErrorProps, OfferCardEmptyProps, } from './Programs/OfferCard';
|
|
20
20
|
export { RevenueDistributionCard, RevenueDistributionSkeleton, RevenueDistributionError, RevenueDistributionEmpty, formatAmount as formatRevenueAmount, formatCurrency as formatRevenueCurrency, getCurrencySymbol, parseCurrency as parseRevenueCurrency, calculateAllocationDifference, generateDistributionId, } from './RevenueDistribution';
|
|
21
21
|
export type { GlAccount, Distribution, RevenueDistributionLabels, RevenueDistributionErrorLabels, RevenueDistributionEmptyLabels, RevenueDistributionCardClassNames, RevenueDistributionSkeletonClassNames, RevenueDistributionErrorClassNames, RevenueDistributionEmptyClassNames, RevenueDistributionCardProps, RevenueDistributionSkeletonProps, RevenueDistributionErrorProps, RevenueDistributionEmptyProps, } from './RevenueDistribution';
|
|
22
22
|
export { InstallmentFundAssignment, InstallmentFundAssignmentSkeleton } from './InstallmentFundAssignment';
|
|
@@ -31,8 +31,10 @@ export { MembershipSelectCards } from './MembershipSelectCards';
|
|
|
31
31
|
export type * from './MembershipSelectCards';
|
|
32
32
|
export { ItemCard } from './ItemCard';
|
|
33
33
|
export type * from './ItemCard';
|
|
34
|
-
export { CatalogItemCard } from './CatalogItemCard';
|
|
35
|
-
export type * from './CatalogItemCard';
|
|
34
|
+
export { CatalogItemCard } from './Programs/CatalogItemCard';
|
|
35
|
+
export type * from './Programs/CatalogItemCard';
|
|
36
|
+
export { ProgramListItem } from './Programs/ProgramListItem';
|
|
37
|
+
export type * from './Programs/ProgramListItem';
|
|
36
38
|
export { FeedbackState, EmptyState, ErrorState, LoadingState, SuccessState } from './FeedbackState';
|
|
37
39
|
export type * from './FeedbackState';
|
|
38
40
|
export { Toggle } from './Toggle';
|
|
@@ -41,8 +43,8 @@ export { TicketSelection } from './TicketSelection';
|
|
|
41
43
|
export type * from './TicketSelection';
|
|
42
44
|
export { FilterPopover } from './FilterPopover';
|
|
43
45
|
export type * from './FilterPopover';
|
|
44
|
-
export { SessionTimeline } from './SessionTimeline';
|
|
45
|
-
export type * from './SessionTimeline';
|
|
46
|
+
export { SessionTimeline } from './Programs/SessionTimeline';
|
|
47
|
+
export type * from './Programs/SessionTimeline';
|
|
46
48
|
export { PageHeader } from './PageHeader';
|
|
47
49
|
export type { PageHeaderProps, PageHeaderClassNames } from './PageHeader';
|
|
48
50
|
export { StatusChip } from './StatusChip';
|
|
@@ -78,11 +80,11 @@ export type { CheckTenderFormProps, CheckTenderValue, CheckTenderLabels } from '
|
|
|
78
80
|
export { OtherTenderForm } from './OtherTenderForm';
|
|
79
81
|
export type { OtherTenderFormProps, OtherTenderValue, OtherTenderLabels, OtherTenderMethodOption, } from './OtherTenderForm';
|
|
80
82
|
export { SplitPaymentSummary } from './SplitPaymentSummary';
|
|
81
|
-
export type { SplitPaymentSummaryProps, SplitPaymentSummaryLabels, TenderRow, TenderRowStatus, TenderRowType, } from './SplitPaymentSummary';
|
|
83
|
+
export type { SplitPaymentSummaryProps, SplitPaymentSummaryLabels, SplitPaymentSummaryVariant, TenderRow, TenderRowStatus, TenderRowType, } from './SplitPaymentSummary';
|
|
82
84
|
export { ModalShell, ModalShellHeader, ModalShellFooter } from './ModalShell';
|
|
83
85
|
export type { ModalShellProps, ModalShellHeaderProps, ModalShellFooterProps } from './ModalShell';
|
|
84
86
|
export { TileSelect } from './TileSelect';
|
|
85
|
-
export type { TileSelectProps, TileSelectOption } from './TileSelect';
|
|
87
|
+
export type { TileSelectProps, TileSelectOption, TileSelectVariant } from './TileSelect';
|
|
86
88
|
export { PaymentTotalBanner } from './PaymentTotalBanner';
|
|
87
89
|
export type { PaymentTotalBannerProps } from './PaymentTotalBanner';
|
|
88
90
|
export { LoadingOverlay } from './LoadingOverlay';
|
|
@@ -99,7 +101,7 @@ export { Summary } from './Summary';
|
|
|
99
101
|
export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPostTotalRow, SummaryPrimaryAction, SummaryLabels, } from './Summary';
|
|
100
102
|
export { WizardShell } from './WizardShell';
|
|
101
103
|
export type { WizardShellProps, WizardStep, WizardStepState, WizardShellPrimaryAction, WizardShellSecondaryAction, WizardShellTotalRow, WizardShellLabels, } from './WizardShell';
|
|
102
|
-
export type { TenderError, DestinationLine, DestinationStatus } from './shared';
|
|
104
|
+
export type { TenderError, DestinationLine, DestinationStatus, RecordTone } from './shared';
|
|
103
105
|
export { LineItemList } from './LineItemList';
|
|
104
106
|
export type { LineItemListProps, LineItemView, ItemSelection, LineItemState, LineItemRestockView, ItemDisposition, AmountOnlyView, LineItemListLabels, } from './LineItemList';
|
|
105
107
|
export { MetaCard } from './MetaCard';
|
|
@@ -120,3 +122,35 @@ export { PinField } from './PinField';
|
|
|
120
122
|
export type { PinFieldProps, PinFieldLabels } from './PinField';
|
|
121
123
|
export { OutcomeView } from './OutcomeView';
|
|
122
124
|
export type { OutcomeViewProps, OutcomeViewLabels, ReceiptChannel } from './OutcomeView';
|
|
125
|
+
export { FilterSelect } from './FilterSelect';
|
|
126
|
+
export type { FilterSelectProps, FilterSelectOption } from './FilterSelect';
|
|
127
|
+
export { LoadMoreFooter } from './LoadMoreFooter';
|
|
128
|
+
export type { LoadMoreFooterProps, LoadMoreStatus } from './LoadMoreFooter';
|
|
129
|
+
export { CardList } from './CardList';
|
|
130
|
+
export type { CardListProps, CardListItem } from './CardList';
|
|
131
|
+
export { RecordHeader } from './RecordHeader';
|
|
132
|
+
export type { RecordHeaderProps, RecordHeaderStat } from './RecordHeader';
|
|
133
|
+
export { RecordLayout } from './RecordLayout';
|
|
134
|
+
export type { RecordLayoutProps } from './RecordLayout';
|
|
135
|
+
export { StatTiles } from './StatTiles';
|
|
136
|
+
export type { StatTilesProps, StatTileItem } from './StatTiles';
|
|
137
|
+
export { PillTabs, pillTabId, pillTabPanelId, pillTabPanelProps } from './PillTabs';
|
|
138
|
+
export type { PillTabsProps, PillTabItem } from './PillTabs';
|
|
139
|
+
export { AmountList } from './AmountList';
|
|
140
|
+
export type { AmountListProps, AmountListRow } from './AmountList';
|
|
141
|
+
export { ActivityTimeline } from './ActivityTimeline';
|
|
142
|
+
export type { ActivityTimelineProps, ActivityTimelineEvent } from './ActivityTimeline';
|
|
143
|
+
export { RelatedRecordList } from './RelatedRecordList';
|
|
144
|
+
export type { RelatedRecordListProps, RelatedRecordRow } from './RelatedRecordList';
|
|
145
|
+
export { RecordCard } from './RecordCard';
|
|
146
|
+
export type { RecordCardProps, RecordCardVariant, RecordCardBody } from './RecordCard';
|
|
147
|
+
export { CardStack } from './CardStack';
|
|
148
|
+
export type { CardStackProps, CardStackLayout } from './CardStack';
|
|
149
|
+
export { KeyValueRows } from './KeyValueRows';
|
|
150
|
+
export type { KeyValueRowsProps, KeyValueRow, KeyValueRowsDensity } from './KeyValueRows';
|
|
151
|
+
export { LineItemRows } from './LineItemRows';
|
|
152
|
+
export type { LineItemRowsProps, LineItemRow } from './LineItemRows';
|
|
153
|
+
export { RecordTotals } from './RecordTotals';
|
|
154
|
+
export type { RecordTotalsProps, RecordTotalsRow } from './RecordTotals';
|
|
155
|
+
export { CellText, ChipStack } from './CellText';
|
|
156
|
+
export type { CellTextProps, CellTextVariant, ChipStackProps } from './CellText';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const POS_REDUCE_MOTION_ATTRIBUTE = "data-pos-reduce-motion";
|
|
2
|
+
export declare const stillTransitionClass = "motion-reduce:transition-none [html[data-pos-reduce-motion=true]_&]:transition-none";
|
|
3
|
+
export declare const stillAnimationClass = "motion-reduce:animate-none [html[data-pos-reduce-motion=true]_&]:animate-none";
|
|
4
|
+
export declare const shimmerClass = "rounded-[0.375rem] bg-[linear-gradient(90deg,#F0F0F1_0,#F9F9FA_12.5rem,#F0F0F1_25rem)] bg-[length:50rem_100%] animate-record-shimmer motion-reduce:animate-none [html[data-pos-reduce-motion=true]_&]:animate-none";
|
|
5
|
+
export declare function prefersReducedMotion(): boolean;
|
|
6
|
+
export declare function useReducedMotion(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export type RecordTone = 'ok' | 'warn' | 'danger' | 'info' | 'violet' | 'neutral';
|
|
3
|
+
export interface RecordTonePair {
|
|
4
|
+
fg: string;
|
|
5
|
+
bg: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const RECORD_TONE: Record<RecordTone, RecordTonePair>;
|
|
8
|
+
export type SignedAmountTone = 'positive' | 'negative' | 'neutral';
|
|
9
|
+
export declare function amountToneStyle(tone: SignedAmountTone | undefined): CSSProperties | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps the text a cashier typed into a money input separate from the number
|
|
3
|
+
* the host holds.
|
|
4
|
+
*
|
|
5
|
+
* A money input whose display is `String(value)` loses what the cashier is
|
|
6
|
+
* mid-way through typing: `'40.'` parses to `40` and is re-rendered as `'40'`,
|
|
7
|
+
* so the next `0` produces `'400'` and `'40.00'` ends up read as 4000. The hook
|
|
8
|
+
* keeps the typed string and shows it while it still parses to `value` (the
|
|
9
|
+
* echo of the cashier's own keystroke). When the host holds a number the draft
|
|
10
|
+
* does not represent (a reset, a prefill, a host that ignores the keystroke),
|
|
11
|
+
* the input shows `format(value)` instead, so the host stays in control.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Whether `text` is one amount, possibly partial, in a currency with
|
|
15
|
+
* `fractionDigits` minor digits: digits, then at most one `.` or `,` followed
|
|
16
|
+
* by at most `fractionDigits` digits (`''`, `'40'`, `'40.'`, `'40,5'`, `'.5'`).
|
|
17
|
+
* Anything else would show one amount while emitting another, because
|
|
18
|
+
* `parseFloat` reads only a prefix and `,` is the decimal separator: `'40.5.9'`
|
|
19
|
+
* and `'4a'` would emit 40.5 and 4, and `'1,000'` would emit 1. Callers reject
|
|
20
|
+
* such a keystroke instead of storing it, so the input keeps what it showed.
|
|
21
|
+
*/
|
|
22
|
+
export declare const isDecimalDraft: (text: string, fractionDigits: number) => boolean;
|
|
23
|
+
/** Parses a typed amount (`'40.5'`, `'40,5'`, `'40.'`); `null` when there is no number yet (`''`, `'.'`, `','`). */
|
|
24
|
+
export declare const parseDecimalDraft: (draft: string) => number | null;
|
|
25
|
+
export interface DecimalDraft {
|
|
26
|
+
/** The text to show in the input. */
|
|
27
|
+
draft: string;
|
|
28
|
+
/** Stores the text the cashier typed. */
|
|
29
|
+
setDraft: (next: string) => void;
|
|
30
|
+
/** Rewrites the draft in its canonical form (`'40.'` → `'40'`) without changing its value. */
|
|
31
|
+
normalize: () => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const useDecimalDraft: (value: number | null | undefined, format: (value: number | null | undefined) => string) => DecimalDraft;
|
package/dist/tailwind/index.cjs
CHANGED
|
@@ -274,6 +274,9 @@ var posSurfaceTokens = {
|
|
|
274
274
|
line: "#E7E7E9",
|
|
275
275
|
/** `--line2`: the lighter hairline under list rows and above the role bar. */
|
|
276
276
|
"line-2": "#F1F1F3",
|
|
277
|
+
hair: "#F0F0F1",
|
|
278
|
+
page: "#FBFBFB",
|
|
279
|
+
field: "#E5E5E5",
|
|
277
280
|
/** `--okb` / `--okf` */
|
|
278
281
|
"ok-fill": "#EAF3DE",
|
|
279
282
|
ok: "#3B6D11",
|
|
@@ -288,6 +291,10 @@ var posSurfaceTokens = {
|
|
|
288
291
|
/** `--ib` / `--if` */
|
|
289
292
|
"info-fill": "#EAF1FC",
|
|
290
293
|
info: "#1D4FA8",
|
|
294
|
+
"violet-fill": "#F1ECFB",
|
|
295
|
+
violet: "#6D28D9",
|
|
296
|
+
"neutral-fill": "#F4F4F5",
|
|
297
|
+
neutral: "#52525B",
|
|
291
298
|
/** `.btn-dstr` — the fill behind an irreversible confirmation. */
|
|
292
299
|
destructive: "#A32D2D"
|
|
293
300
|
};
|
|
@@ -314,7 +321,16 @@ var tailwindTheme = {
|
|
|
314
321
|
spacing,
|
|
315
322
|
fontSize: typography.fontSize,
|
|
316
323
|
fontWeight: typography.fontWeight,
|
|
317
|
-
lineHeight: typography.lineHeight
|
|
324
|
+
lineHeight: typography.lineHeight,
|
|
325
|
+
keyframes: {
|
|
326
|
+
"record-shimmer": {
|
|
327
|
+
"0%": { backgroundPosition: "-25rem 0" },
|
|
328
|
+
"100%": { backgroundPosition: "25rem 0" }
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
animation: {
|
|
332
|
+
"record-shimmer": "record-shimmer 1.3s linear infinite"
|
|
333
|
+
}
|
|
318
334
|
};
|
|
319
335
|
function deepMerge(target, source) {
|
|
320
336
|
if (!source || typeof source !== "object") {
|
package/dist/tailwind/index.d.ts
CHANGED
|
@@ -120,6 +120,19 @@ export declare const tailwindTheme: {
|
|
|
120
120
|
readonly normal: "1.5";
|
|
121
121
|
readonly relaxed: "1.75";
|
|
122
122
|
};
|
|
123
|
+
keyframes: {
|
|
124
|
+
'record-shimmer': {
|
|
125
|
+
'0%': {
|
|
126
|
+
backgroundPosition: string;
|
|
127
|
+
};
|
|
128
|
+
'100%': {
|
|
129
|
+
backgroundPosition: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
animation: {
|
|
134
|
+
'record-shimmer': string;
|
|
135
|
+
};
|
|
123
136
|
};
|
|
124
137
|
/**
|
|
125
138
|
* Deep merge utility for objects
|
|
@@ -322,6 +335,19 @@ export declare const veevartPreset: {
|
|
|
322
335
|
readonly normal: "1.5";
|
|
323
336
|
readonly relaxed: "1.75";
|
|
324
337
|
};
|
|
338
|
+
keyframes: {
|
|
339
|
+
'record-shimmer': {
|
|
340
|
+
'0%': {
|
|
341
|
+
backgroundPosition: string;
|
|
342
|
+
};
|
|
343
|
+
'100%': {
|
|
344
|
+
backgroundPosition: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
animation: {
|
|
349
|
+
'record-shimmer': string;
|
|
350
|
+
};
|
|
325
351
|
};
|
|
326
352
|
};
|
|
327
353
|
darkMode: "class";
|
|
@@ -554,5 +580,18 @@ export declare const tokens: {
|
|
|
554
580
|
readonly normal: "1.5";
|
|
555
581
|
readonly relaxed: "1.75";
|
|
556
582
|
};
|
|
583
|
+
keyframes: {
|
|
584
|
+
'record-shimmer': {
|
|
585
|
+
'0%': {
|
|
586
|
+
backgroundPosition: string;
|
|
587
|
+
};
|
|
588
|
+
'100%': {
|
|
589
|
+
backgroundPosition: string;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
animation: {
|
|
594
|
+
'record-shimmer': string;
|
|
595
|
+
};
|
|
557
596
|
};
|
|
558
597
|
};
|
package/dist/tailwind/index.mjs
CHANGED
|
@@ -235,6 +235,9 @@ var posSurfaceTokens = {
|
|
|
235
235
|
line: "#E7E7E9",
|
|
236
236
|
/** `--line2`: the lighter hairline under list rows and above the role bar. */
|
|
237
237
|
"line-2": "#F1F1F3",
|
|
238
|
+
hair: "#F0F0F1",
|
|
239
|
+
page: "#FBFBFB",
|
|
240
|
+
field: "#E5E5E5",
|
|
238
241
|
/** `--okb` / `--okf` */
|
|
239
242
|
"ok-fill": "#EAF3DE",
|
|
240
243
|
ok: "#3B6D11",
|
|
@@ -249,6 +252,10 @@ var posSurfaceTokens = {
|
|
|
249
252
|
/** `--ib` / `--if` */
|
|
250
253
|
"info-fill": "#EAF1FC",
|
|
251
254
|
info: "#1D4FA8",
|
|
255
|
+
"violet-fill": "#F1ECFB",
|
|
256
|
+
violet: "#6D28D9",
|
|
257
|
+
"neutral-fill": "#F4F4F5",
|
|
258
|
+
neutral: "#52525B",
|
|
252
259
|
/** `.btn-dstr` — the fill behind an irreversible confirmation. */
|
|
253
260
|
destructive: "#A32D2D"
|
|
254
261
|
};
|
|
@@ -275,7 +282,16 @@ var tailwindTheme = {
|
|
|
275
282
|
spacing,
|
|
276
283
|
fontSize: typography.fontSize,
|
|
277
284
|
fontWeight: typography.fontWeight,
|
|
278
|
-
lineHeight: typography.lineHeight
|
|
285
|
+
lineHeight: typography.lineHeight,
|
|
286
|
+
keyframes: {
|
|
287
|
+
"record-shimmer": {
|
|
288
|
+
"0%": { backgroundPosition: "-25rem 0" },
|
|
289
|
+
"100%": { backgroundPosition: "25rem 0" }
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
animation: {
|
|
293
|
+
"record-shimmer": "record-shimmer 1.3s linear infinite"
|
|
294
|
+
}
|
|
279
295
|
};
|
|
280
296
|
function deepMerge(target, source) {
|
|
281
297
|
if (!source || typeof source !== "object") {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class FakeResizeObserver {
|
|
2
|
+
static width: number;
|
|
3
|
+
static instances: FakeResizeObserver[];
|
|
4
|
+
disconnected: boolean;
|
|
5
|
+
private readonly callback;
|
|
6
|
+
private readonly targets;
|
|
7
|
+
constructor(callback: ResizeObserverCallback);
|
|
8
|
+
observe(target: Element): void;
|
|
9
|
+
unobserve(): void;
|
|
10
|
+
disconnect(): void;
|
|
11
|
+
emit(width: number): void;
|
|
12
|
+
}
|
|
13
|
+
export declare function stubContainerWidth(width: number): void;
|
|
14
|
+
export declare function resizeContainers(width: number): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function contrastRatio(a: string, b: string): number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export declare const LARGE_TEXT_ROOT = "137.5%";
|
|
3
|
+
export declare const LARGE_TEXT_SCALE = 1.375;
|
|
4
|
+
export declare const withRootFontSize: (size: string) => (Story: ComponentType) => import('react').FunctionComponentElement<{
|
|
5
|
+
size: string;
|
|
6
|
+
children?: import('react').ReactNode;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const fontSizePx: (element: Element) => number;
|
|
@@ -25,6 +25,9 @@ export declare const posSurfaceTokens: {
|
|
|
25
25
|
readonly line: "#E7E7E9";
|
|
26
26
|
/** `--line2`: the lighter hairline under list rows and above the role bar. */
|
|
27
27
|
readonly 'line-2': "#F1F1F3";
|
|
28
|
+
readonly hair: "#F0F0F1";
|
|
29
|
+
readonly page: "#FBFBFB";
|
|
30
|
+
readonly field: "#E5E5E5";
|
|
28
31
|
/** `--okb` / `--okf` */
|
|
29
32
|
readonly 'ok-fill': "#EAF3DE";
|
|
30
33
|
readonly ok: "#3B6D11";
|
|
@@ -39,6 +42,10 @@ export declare const posSurfaceTokens: {
|
|
|
39
42
|
/** `--ib` / `--if` */
|
|
40
43
|
readonly 'info-fill': "#EAF1FC";
|
|
41
44
|
readonly info: "#1D4FA8";
|
|
45
|
+
readonly 'violet-fill': "#F1ECFB";
|
|
46
|
+
readonly violet: "#6D28D9";
|
|
47
|
+
readonly 'neutral-fill': "#F4F4F5";
|
|
48
|
+
readonly neutral: "#52525B";
|
|
42
49
|
/** `.btn-dstr` — the fill behind an irreversible confirmation. */
|
|
43
50
|
readonly destructive: "#A32D2D";
|
|
44
51
|
};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts
RENAMED
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts
RENAMED
|
File without changes
|
/package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|