@nxgt/material 3.75.0 → 3.76.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/CHANGELOG.md +40 -0
- package/README.md +37 -1
- package/dist/{alert-dialog-BfO_ri-N.js → alert-dialog-653apk3f.js} +8 -7
- package/dist/{async-slice-roMAJVzG.js → async-slice-CXLbQuOc.js} +1 -1
- package/dist/{bubble-input-B7BVd9fX.js → bubble-input-CQwVSoU3.js} +30 -29
- package/dist/{button-DgenqmpS.js → button-3op3rtZh.js} +5 -4
- package/dist/calculator-BaSMe0SK.js +1189 -0
- package/dist/calculator-announce-DRd2c6Dq.js +89 -0
- package/dist/calculator-context-BugcKuVG.js +10 -0
- package/dist/calculator-field.js +172 -0
- package/dist/calculator-panel-announce-AZSnZUSr.js +29 -0
- package/dist/calculator-segment-BlJE1LaS.js +22 -0
- package/dist/calculator.js +2 -0
- package/dist/charts.js +3 -3
- package/dist/{chip-CiDczNxO.js → chip-MuKDwtkG.js} +2 -2
- package/dist/{code-editor-CohlhFsA.js → code-editor-Bp2RrdNx.js} +13 -13
- package/dist/code-editor.js +37 -37
- package/dist/{code-language-items-Cs8GLYDp.js → code-language-items-B7WR5ua_.js} +19 -24
- package/dist/components/base-content.css +9 -4
- package/dist/components/ui/collections/server-table/server-table-phone-row.css +10 -3
- package/dist/{components-zJdfH4im.js → components-Ci3Zo8kC.js} +15837 -17245
- package/dist/components.js +37 -28
- package/dist/conversion-variant-BDFAxqe9.js +529 -0
- package/dist/copy-to-clipboard-Be5Ffvs_.js +7 -0
- package/dist/currency-B-r3ig11.js +16 -0
- package/dist/currency-field-BJ9rSrif.js +285 -0
- package/dist/{number.utils-BG_eEt5g.js → date.utils-DUvqcjan.js} +1 -7
- package/dist/dialog-Bm5LvVlB.js +166 -0
- package/dist/dist-BZe2evxL.js +139 -0
- package/dist/dist-CxhKjOYm.js +28 -0
- package/dist/dist-DHdUUM1w.js +241 -0
- package/dist/{dist-C4wtXCjf.js → dist-DOK3zo5C.js} +33 -32
- package/dist/dist-DWZXlCZR.js +182 -0
- package/dist/dist-DkQbkF9T.js +33 -0
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-CzR6JP31.js → dropdown-menu-xlZ6NYUA.js} +160 -159
- package/dist/editor.js +299 -298
- package/dist/{empty-state-DjHGMp5F.js → empty-state-C0kviQdW.js} +2 -2
- package/dist/{field-blur-CdASxjL7.js → field-blur-DkiZOVNV.js} +178 -180
- package/dist/{field-blur-context-kZ4SD7xu.js → field-blur-context-BLGgf_3z.js} +2 -2
- package/dist/financial-variant-BsZEa5sF.js +459 -0
- package/dist/{hooks-Dqq8O3Az.js → hooks-Dg94jPRq.js} +12 -12
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-BPKqte4a.js → hover-card-B1g55Hi6.js} +44 -43
- package/dist/i18n.js +3 -3
- package/dist/icon-badge-BcW66bRk.js +17 -0
- package/dist/{icon-button-Cr-DyDGg.js → icon-button-Cogxy1cy.js} +5 -4
- package/dist/{in-dialog-Vwkyp-M5.js → in-dialog-D61Yeaol.js} +2 -1
- package/dist/input-CC2joTjB.js +56 -0
- package/dist/key-layout-cR79xfGE.js +38 -0
- package/dist/lib/calculator/index.d.ts +16 -0
- package/dist/lib/calculator-field/index.d.ts +12 -0
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -2
- package/dist/lib/components/ui/feedback/moment/moment-body.d.ts +17 -2
- package/dist/lib/components/ui/feedback/moment/moment-passive.d.ts +13 -0
- package/dist/lib/components/ui/feedback/moment/moment.d.ts +16 -2
- package/dist/lib/components/ui/fields/calculator-field/apply-calculated.d.ts +17 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field-content.d.ts +16 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field-trigger.d.ts +4 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field.d.ts +12 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-field.types.d.ts +31 -0
- package/dist/lib/components/ui/fields/calculator-field/calculator-form-field.d.ts +4 -0
- package/dist/lib/components/ui/fields/calculator-field/index.d.ts +3 -0
- package/dist/lib/components/ui/fields/calculator-field/use-calculator-field.d.ts +15 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +7 -1
- package/dist/lib/components/ui/layout/app-shell/app-sidebar-context.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-announce.d.ts +27 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-clipboard.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-context.d.ts +49 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-feedback.d.ts +18 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-keyboard.d.ts +30 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-storage.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/calculator-variant-steps.d.ts +16 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.d.ts +11 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.selectors.d.ts +23 -0
- package/dist/lib/components/ui/widgets/calculator/calculator.slice.d.ts +1881 -0
- package/dist/lib/components/ui/widgets/calculator/currency.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/engine.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/index.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-announcer.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-display.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-key.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-keypad.d.ts +8 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-loading.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-memory.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-announce.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-panel-body.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-screen.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-segment.d.ts +21 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-shell.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-switcher.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-tape.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/calculator-tools.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/partials/keypad-navigation.d.ts +24 -0
- package/dist/lib/components/ui/widgets/calculator/types.d.ts +102 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-clipboard.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-conversion.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-feedback.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-keyboard.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-persistence.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-pos.d.ts +25 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-press.d.ts +26 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-tape.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-value.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator-variant.d.ts +23 -0
- package/dist/lib/components/ui/widgets/calculator/use-calculator.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/use-engine-settings.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-fields.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-labels.d.ts +17 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-math.d.ts +31 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-names.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-panel.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-rates.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-result.d.ts +15 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-state.d.ts +36 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/conversion-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/conversion/use-conversion.d.ts +24 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-change.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-figures.d.ts +43 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-format.d.ts +12 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan-math.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-loan.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-margin.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-math.d.ts +10 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-panel.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-parts.d.ts +35 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-table.d.ts +7 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/financial/financial-vat.d.ts +4 -0
- package/dist/lib/components/ui/widgets/calculator/variants/key-layout.d.ts +51 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-announce.d.ts +16 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-aside.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-display.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-fields.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-layout.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-line.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-state.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-tender.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket-data.d.ts +41 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-ticket.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-totals.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-types.d.ts +76 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-vat.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/pos/pos-view.d.ts +28 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-announce.d.ts +19 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-base.d.ts +11 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-bitpad.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-display.d.ts +9 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-layout.d.ts +6 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-readouts.d.ts +14 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-reduce.d.ts +29 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-state.d.ts +22 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-toolbar.d.ts +5 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/programmer/programmer-word.d.ts +15 -0
- package/dist/lib/components/ui/widgets/calculator/variants/registry.d.ts +21 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-layout.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-names.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-toolbar.d.ts +2 -0
- package/dist/lib/components/ui/widgets/calculator/variants/scientific/scientific-variant.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/standard/standard-layout.d.ts +3 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-loader.d.ts +34 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-logic.d.ts +40 -0
- package/dist/lib/components/ui/widgets/calculator/variants/variant-types.d.ts +62 -0
- package/dist/lib/i18n/resources/en/en.d.ts +412 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +412 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +412 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +412 -0
- package/dist/lib/i18n/resources/resources.d.ts +824 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +4 -3
- package/dist/main.js +50 -40
- package/dist/map.js +66 -65
- package/dist/material.css +1 -1
- package/dist/native-select-w_FlBLHV.js +40 -0
- package/dist/number.utils-CSueQZcv.js +7 -0
- package/dist/pdf-reader.js +1 -1
- package/dist/percent-field-lahyDJDG.js +14 -0
- package/dist/picker-surface-CV09H7Nb.js +1220 -0
- package/dist/popover-Cd7DkND4.js +233 -0
- package/dist/pos-types-DKCkOTYy.js +49 -0
- package/dist/pos-variant-GrUfbTTP.js +603 -0
- package/dist/print.js +1 -1
- package/dist/programmer-variant-eKJNKENL.js +501 -0
- package/dist/programmer-word-CNCF7DJF.js +15 -0
- package/dist/{public-DC9VQw4Z.js → public-y6g4ddxd.js} +895 -892
- package/dist/{rich-code-block-DBSL9zEN.js → rich-code-block-CRQ0iyLb.js} +5 -5
- package/dist/scientific-variant-2y3UxAAU.js +149 -0
- package/dist/{sortable-provider-C4tk5esY.js → sortable-provider-DdiI3Fwk.js} +2 -2
- package/dist/{spinner-B2MubVWb.js → spinner-C1QIewWv.js} +133 -159
- package/dist/standard-layout-BuSRr3TY.js +40 -0
- package/dist/tabs-DzEqMb1W.js +383 -0
- package/dist/{icon-badge-B9uvDoyY.js → text-field-BAdY-kpO.js} +20 -34
- package/dist/theme-picker.js +3 -3
- package/dist/{theme-toggle-BInlu21G.js → theme-toggle-C_VeiiCm.js} +2 -2
- package/dist/toggle-FeCCJqbg.js +40 -0
- package/dist/{toggle-group-DXXlqid2.js → toggle-group-CVMxEpWi.js} +1 -1
- package/dist/{toolbar-items-CRJSx1MU.js → toolbar-items-D310xDuM.js} +333 -554
- package/dist/{translate-material-pVlPJ1v4.js → translate-material-BypJJ1l5.js} +1 -1
- package/dist/{translator-BoYCward.js → translator-DJkf4J7t.js} +824 -0
- package/dist/{typography-B6YMbCge.js → typography-CYEquVeb.js} +1 -1
- package/dist/{use-chat-composer-BvWQogJe.js → use-chat-composer-DMXu9E1O.js} +4198 -4600
- package/dist/{use-heading-spy-B_Z4ArDh.js → use-heading-spy-DJR8YYm6.js} +19 -19
- package/dist/{use-material-translation-CIS2n3RB.js → use-material-translation-CD6QoVal.js} +1 -1
- package/dist/{use-return-focus-DNQtADAR.js → use-return-focus-Cevw_6yq.js} +106 -105
- package/dist/useLatest-C2PnQEeD.js +8 -0
- package/docs/README.md +1 -0
- package/docs/components/feedback-and-status.md +10 -1
- package/docs/components/form-fields.md +1 -0
- package/docs/components/rich-widgets.md +108 -0
- package/docs/getting-started.md +1 -0
- package/docs/guides/calculator.md +468 -0
- package/docs/guides/forms.md +4 -2
- package/docs/guides/i18n.md +5 -0
- package/docs/previews/rich-widgets-calculator-conversion.webp +0 -0
- package/docs/previews/rich-widgets-calculator-point-of-sale.webp +0 -0
- package/docs/previews/rich-widgets-calculator.webp +0 -0
- package/docs/roadmap.md +9 -3
- package/docs/troubleshooting.md +134 -0
- package/lib/components/base-content.css +9 -4
- package/lib/components/ui/collections/server-table/server-table-phone-row.css +10 -3
- package/lib/components/ui/widgets/calculator/calculator-bands.css +146 -0
- package/lib/components/ui/widgets/calculator/calculator-display.css +83 -0
- package/lib/components/ui/widgets/calculator/calculator-keys.css +118 -0
- package/lib/components/ui/widgets/calculator/calculator-pos-ticket.css +185 -0
- package/lib/components/ui/widgets/calculator/calculator-pos.css +38 -0
- package/lib/components/ui/widgets/calculator/calculator-tape.css +71 -0
- package/lib/components/ui/widgets/calculator/calculator.css +97 -0
- package/lib/components/ui/widgets/calculator/variants/conversion/conversion.css +98 -0
- package/lib/components/ui/widgets/calculator/variants/financial/financial.css +162 -0
- package/lib/components/ui/widgets/calculator/variants/programmer/programmer.css +162 -0
- package/package.json +17 -3
- package/dist/dialog-AGsB3bv4.js +0 -219
- package/dist/dist-B7RjY7SL.js +0 -158
- package/dist/dist-lmHmz_bu.js +0 -419
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/* The point of sale's ticket, payment and Charge button. */
|
|
2
|
+
.nxgt-pos-ticket {
|
|
3
|
+
min-width: 0;
|
|
4
|
+
padding: 0.75rem 1rem;
|
|
5
|
+
border-radius: 1.5rem;
|
|
6
|
+
}
|
|
7
|
+
.nxgt-pos-ticket-head {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
}
|
|
13
|
+
.nxgt-pos-heading {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 0.5rem;
|
|
17
|
+
margin: 0;
|
|
18
|
+
font-size: 1rem;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
.nxgt-pos-count {
|
|
22
|
+
min-width: 1.5rem;
|
|
23
|
+
padding-inline: 0.5rem;
|
|
24
|
+
border-radius: 9999px;
|
|
25
|
+
background: var(--secondary-container);
|
|
26
|
+
font-size: 0.8125rem;
|
|
27
|
+
text-align: center;
|
|
28
|
+
font-variant-numeric: tabular-nums;
|
|
29
|
+
}
|
|
30
|
+
.nxgt-pos-fold {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
min-width: 2rem;
|
|
35
|
+
min-height: 2rem;
|
|
36
|
+
border: 0;
|
|
37
|
+
border-radius: 9999px;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.nxgt-pos-fold:focus-visible,
|
|
43
|
+
.nxgt-pos-bill:focus-visible {
|
|
44
|
+
outline: 2px solid var(--ring);
|
|
45
|
+
outline-offset: 2px;
|
|
46
|
+
}
|
|
47
|
+
.nxgt-pos-ticket[data-collapsed] .nxgt-pos-ticket-body {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
.nxgt-pos-empty {
|
|
51
|
+
margin: 0.5rem 0;
|
|
52
|
+
color: var(--muted-foreground);
|
|
53
|
+
}
|
|
54
|
+
.nxgt-pos-lines {
|
|
55
|
+
margin: 0.25rem 0;
|
|
56
|
+
padding: 0;
|
|
57
|
+
list-style: none;
|
|
58
|
+
}
|
|
59
|
+
.nxgt-pos-line {
|
|
60
|
+
display: grid;
|
|
61
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 0.5rem;
|
|
64
|
+
padding-block: 0.25rem;
|
|
65
|
+
}
|
|
66
|
+
.nxgt-pos-line-name {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
overflow-wrap: anywhere;
|
|
71
|
+
}
|
|
72
|
+
.nxgt-pos-line-name small {
|
|
73
|
+
color: var(--muted-foreground);
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
}
|
|
76
|
+
.nxgt-pos-amount,
|
|
77
|
+
.nxgt-pos-row dd {
|
|
78
|
+
margin: 0;
|
|
79
|
+
font-variant-numeric: tabular-nums;
|
|
80
|
+
text-align: end;
|
|
81
|
+
}
|
|
82
|
+
.nxgt-pos-totals {
|
|
83
|
+
margin: 0.5rem 0 0;
|
|
84
|
+
padding-top: 0.5rem;
|
|
85
|
+
border-top: 1px solid var(--border);
|
|
86
|
+
}
|
|
87
|
+
.nxgt-pos-row {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
gap: 0.5rem;
|
|
92
|
+
min-height: 1.5rem;
|
|
93
|
+
}
|
|
94
|
+
.nxgt-pos-row dt {
|
|
95
|
+
color: var(--muted-foreground);
|
|
96
|
+
}
|
|
97
|
+
.nxgt-pos-row[data-row="total"] {
|
|
98
|
+
font-size: 1.25rem;
|
|
99
|
+
font-weight: 600;
|
|
100
|
+
}
|
|
101
|
+
.nxgt-pos-row[data-row="total"] dt {
|
|
102
|
+
color: inherit;
|
|
103
|
+
}
|
|
104
|
+
.nxgt-pos-tender {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 0.5rem;
|
|
108
|
+
}
|
|
109
|
+
.nxgt-pos-bills {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
gap: var(--calc-gap);
|
|
113
|
+
}
|
|
114
|
+
.nxgt-pos-bill {
|
|
115
|
+
flex: 1 1 4.5rem;
|
|
116
|
+
min-height: 2.75rem;
|
|
117
|
+
padding-inline: 0.75rem;
|
|
118
|
+
border: 0;
|
|
119
|
+
border-radius: 9999px;
|
|
120
|
+
background: var(--secondary-container);
|
|
121
|
+
color: var(--foreground);
|
|
122
|
+
font: inherit;
|
|
123
|
+
font-weight: 500;
|
|
124
|
+
font-variant-numeric: tabular-nums;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
touch-action: manipulation;
|
|
127
|
+
}
|
|
128
|
+
.nxgt-pos-settlement {
|
|
129
|
+
margin: 0;
|
|
130
|
+
min-height: 1.5rem;
|
|
131
|
+
font-size: 1.125rem;
|
|
132
|
+
font-weight: 600;
|
|
133
|
+
font-variant-numeric: tabular-nums;
|
|
134
|
+
}
|
|
135
|
+
.nxgt-pos-settlement[data-status="short"] {
|
|
136
|
+
color: var(--error-text);
|
|
137
|
+
}
|
|
138
|
+
.nxgt-pos-charge {
|
|
139
|
+
width: 100%;
|
|
140
|
+
max-width: 100%;
|
|
141
|
+
min-height: 3.5rem;
|
|
142
|
+
padding-inline: 1.5rem;
|
|
143
|
+
border: 0;
|
|
144
|
+
border-radius: 9999px;
|
|
145
|
+
background: var(--primary);
|
|
146
|
+
color: var(--primary-foreground);
|
|
147
|
+
font: inherit;
|
|
148
|
+
font-size: 1.25rem;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
font-variant-numeric: tabular-nums;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
touch-action: manipulation;
|
|
153
|
+
}
|
|
154
|
+
.nxgt-pos-charge:disabled {
|
|
155
|
+
background: var(--muted);
|
|
156
|
+
color: var(--muted-foreground);
|
|
157
|
+
cursor: not-allowed;
|
|
158
|
+
}
|
|
159
|
+
.nxgt-pos-charge:focus-visible {
|
|
160
|
+
outline: 2px solid var(--ring);
|
|
161
|
+
outline-offset: 2px;
|
|
162
|
+
}
|
|
163
|
+
@container nxgt-calc (min-width: 600px) {
|
|
164
|
+
.nxgt-pos-fold {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
.nxgt-pos-ticket[data-collapsed] .nxgt-pos-ticket-body {
|
|
168
|
+
display: block;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@media (pointer: coarse) {
|
|
172
|
+
.nxgt-pos-fold,
|
|
173
|
+
.nxgt-pos-bill,
|
|
174
|
+
.nxgt-pos-charge {
|
|
175
|
+
min-width: 2.75rem;
|
|
176
|
+
min-height: 2.75rem;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
@media (forced-colors: active) {
|
|
180
|
+
.nxgt-pos-bill,
|
|
181
|
+
.nxgt-pos-ticket,
|
|
182
|
+
.nxgt-pos-charge {
|
|
183
|
+
border: 1px solid ButtonText;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* The point-of-sale variant: the amount, the fields and the keys on one side,
|
|
2
|
+
* the ticket and the payment on the other (below on a phone, beside from 600). */
|
|
3
|
+
.nxgt-calc[data-variant="pos"] .nxgt-calc-body {
|
|
4
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5
|
+
}
|
|
6
|
+
.nxgt-calc-aside {
|
|
7
|
+
min-width: 0;
|
|
8
|
+
}
|
|
9
|
+
.nxgt-pos-side {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.75rem;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
}
|
|
15
|
+
.nxgt-pos-display .nxgt-calc-result[data-field="quantity"],
|
|
16
|
+
.nxgt-pos-display .nxgt-calc-result[data-field="discount"] {
|
|
17
|
+
color: var(--primary);
|
|
18
|
+
}
|
|
19
|
+
.nxgt-pos-total {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: baseline;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
.nxgt-pos-total strong {
|
|
26
|
+
color: var(--foreground);
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
}
|
|
29
|
+
.nxgt-pos-fields {
|
|
30
|
+
justify-content: flex-start;
|
|
31
|
+
}
|
|
32
|
+
@container nxgt-calc (min-width: 600px) {
|
|
33
|
+
.nxgt-calc[data-variant="pos"] .nxgt-calc-body {
|
|
34
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
35
|
+
gap: 1.5rem;
|
|
36
|
+
align-items: start;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Tape: closed unless opened, always there beside the keypad from 720 */
|
|
2
|
+
.nxgt-calc-tape {
|
|
3
|
+
display: none;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
max-height: 100%;
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
}
|
|
11
|
+
.nxgt-calc[data-tape-open] .nxgt-calc-tape {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
.nxgt-calc-tape-head {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 0.25rem;
|
|
18
|
+
padding-inline: 0.25rem;
|
|
19
|
+
}
|
|
20
|
+
.nxgt-calc-tape-title {
|
|
21
|
+
margin: 0;
|
|
22
|
+
font-size: 1rem;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
}
|
|
25
|
+
.nxgt-calc-tape-empty {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0.5rem;
|
|
28
|
+
font-size: 0.875rem;
|
|
29
|
+
}
|
|
30
|
+
.nxgt-calc-entries {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 0.5rem;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
list-style: none;
|
|
37
|
+
}
|
|
38
|
+
.nxgt-calc-entry {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: flex-end;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
padding: 0.5rem 0.75rem;
|
|
44
|
+
border-radius: 1rem;
|
|
45
|
+
}
|
|
46
|
+
.nxgt-calc-entry button {
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0;
|
|
50
|
+
border-radius: 0.375rem;
|
|
51
|
+
background: none;
|
|
52
|
+
color: inherit;
|
|
53
|
+
font: inherit;
|
|
54
|
+
font-variant-numeric: tabular-nums;
|
|
55
|
+
overflow-wrap: anywhere;
|
|
56
|
+
text-align: right;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
.nxgt-calc-entry-expression {
|
|
60
|
+
color: var(--muted-foreground);
|
|
61
|
+
font-size: 0.875rem;
|
|
62
|
+
}
|
|
63
|
+
.nxgt-calc-entry-result {
|
|
64
|
+
font-size: 1.125rem;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
}
|
|
67
|
+
/* Below 720 the open tape takes the keypad's place (the tools row and the
|
|
68
|
+
* history toggle stay on screen); from 720 it is always beside it. */
|
|
69
|
+
.nxgt-calc[data-tape-open] .nxgt-calc-keys {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Calculator (`@nxgt/material/calculator`). Opt-in: the app imports
|
|
2
|
+
* `@nxgt/material/calculator.css` after styles.css; styles.css does not carry
|
|
3
|
+
* it. No inline style and no runtime <style>: everything
|
|
4
|
+
* that depends on the width is a container query on `.nxgt-calc`, so the
|
|
5
|
+
* server's first frame is already the right one.
|
|
6
|
+
*
|
|
7
|
+
* Bands of the calculator's own width: under 360 compact, 360-599 phone,
|
|
8
|
+
* 600-899 tablet, 900 and up desktop; the tape moves beside the keypad from
|
|
9
|
+
* 720. Direction B Expressive: shaped keys (a squircle for digits, pills for
|
|
10
|
+
* operators and "=", rounded squares for utilities), a large tonal display. */
|
|
11
|
+
@import "./calculator-display.css";
|
|
12
|
+
@import "./calculator-keys.css";
|
|
13
|
+
@import "./calculator-tape.css";
|
|
14
|
+
@import "./calculator-bands.css";
|
|
15
|
+
@import "./calculator-pos.css";
|
|
16
|
+
@import "./calculator-pos-ticket.css";
|
|
17
|
+
@import "./variants/financial/financial.css";
|
|
18
|
+
@import "./variants/programmer/programmer.css";
|
|
19
|
+
@import "./variants/conversion/conversion.css";
|
|
20
|
+
|
|
21
|
+
.nxgt-calc {
|
|
22
|
+
container: nxgt-calc / inline-size;
|
|
23
|
+
display: block;
|
|
24
|
+
width: 100%;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
color: var(--foreground);
|
|
27
|
+
}
|
|
28
|
+
.nxgt-calc-tabs {
|
|
29
|
+
gap: 0.75rem;
|
|
30
|
+
}
|
|
31
|
+
.nxgt-calc-switcher {
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
}
|
|
35
|
+
.nxgt-calc-panel {
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
38
|
+
.nxgt-calc-body {
|
|
39
|
+
--calc-gap: 0.5rem;
|
|
40
|
+
--calc-key: 3.25rem;
|
|
41
|
+
--calc-radius: 2rem;
|
|
42
|
+
--calc-result: 3rem;
|
|
43
|
+
position: relative;
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: minmax(0, 1fr);
|
|
46
|
+
gap: 0.75rem;
|
|
47
|
+
padding-block-start: 0.5rem;
|
|
48
|
+
}
|
|
49
|
+
.nxgt-calc-main {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 0.75rem;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
.nxgt-calc-grow {
|
|
56
|
+
flex: 1 1 auto;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* The body of a variant that is still loading: a display and a keypad of
|
|
60
|
+
skeleton keys, the same size as Standard's, so the frame does not jump when
|
|
61
|
+
the variant lands. A failed load keeps the shape, still, with its message. */
|
|
62
|
+
.nxgt-calc-loading-display {
|
|
63
|
+
min-block-size: calc(var(--calc-result) + 3rem);
|
|
64
|
+
border-radius: var(--calc-radius);
|
|
65
|
+
}
|
|
66
|
+
.nxgt-calc-loading-pad {
|
|
67
|
+
display: grid;
|
|
68
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
69
|
+
gap: var(--calc-gap);
|
|
70
|
+
}
|
|
71
|
+
.nxgt-calc-loading-pad > * {
|
|
72
|
+
block-size: var(--calc-key);
|
|
73
|
+
border-radius: var(--calc-radius);
|
|
74
|
+
}
|
|
75
|
+
.nxgt-calc-loading-message {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
gap: 0.75rem;
|
|
81
|
+
min-block-size: calc(var(--calc-result) + 3rem);
|
|
82
|
+
padding: 0.5rem;
|
|
83
|
+
border-radius: var(--calc-radius);
|
|
84
|
+
background: var(--muted);
|
|
85
|
+
color: var(--foreground);
|
|
86
|
+
text-align: center;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
}
|
|
89
|
+
.nxgt-calc-loading[data-state="failed"] [data-slot="skeleton"] {
|
|
90
|
+
animation: none;
|
|
91
|
+
opacity: 0.5;
|
|
92
|
+
}
|
|
93
|
+
@media (prefers-reduced-motion: reduce) {
|
|
94
|
+
.nxgt-calc-loading [data-slot="skeleton"] {
|
|
95
|
+
animation: none;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* Conversion: a category, a value, two units and the answer. Direction B
|
|
2
|
+
* Expressive: a tonal result card with the answer large in the primary colour,
|
|
3
|
+
* a tonal swap button. Sizes follow the calculator's own width (a container
|
|
4
|
+
* query on .nxgt-calc), so the server's first frame is already right. */
|
|
5
|
+
.nxgt-conv {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 0.875rem;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
}
|
|
11
|
+
.nxgt-conv-field {
|
|
12
|
+
display: grid;
|
|
13
|
+
gap: 0.375rem;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
}
|
|
16
|
+
.nxgt-conv-units {
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: minmax(0, 1fr);
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
}
|
|
22
|
+
.nxgt-conv-units > .nxgt-conv-swap {
|
|
23
|
+
justify-self: center;
|
|
24
|
+
}
|
|
25
|
+
.nxgt-conv-result {
|
|
26
|
+
min-width: 0;
|
|
27
|
+
padding: 1rem 1.25rem;
|
|
28
|
+
border-radius: var(--calc-radius, 2rem);
|
|
29
|
+
background: var(--muted);
|
|
30
|
+
}
|
|
31
|
+
.nxgt-conv-value {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
align-items: baseline;
|
|
35
|
+
justify-content: flex-end;
|
|
36
|
+
gap: 0.5rem;
|
|
37
|
+
min-width: 0;
|
|
38
|
+
color: var(--primary);
|
|
39
|
+
font-size: 2.25rem;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
line-height: 1.15;
|
|
42
|
+
letter-spacing: -0.02em;
|
|
43
|
+
font-variant-numeric: tabular-nums;
|
|
44
|
+
overflow-wrap: anywhere;
|
|
45
|
+
text-align: right;
|
|
46
|
+
}
|
|
47
|
+
.nxgt-conv-value[data-size="long"] {
|
|
48
|
+
font-size: 1.5rem;
|
|
49
|
+
}
|
|
50
|
+
.nxgt-conv-unit {
|
|
51
|
+
color: var(--muted-foreground);
|
|
52
|
+
font-size: 1.125rem;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
letter-spacing: 0;
|
|
55
|
+
}
|
|
56
|
+
.nxgt-conv-note {
|
|
57
|
+
margin: 0;
|
|
58
|
+
color: var(--muted-foreground);
|
|
59
|
+
font-size: 0.875rem;
|
|
60
|
+
}
|
|
61
|
+
.nxgt-conv-error {
|
|
62
|
+
margin: 0;
|
|
63
|
+
color: var(--destructive);
|
|
64
|
+
font-size: 0.875rem;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
}
|
|
67
|
+
.nxgt-conv-note.nxgt-conv-error {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 0.5rem;
|
|
72
|
+
}
|
|
73
|
+
@container nxgt-calc (min-width: 480px) {
|
|
74
|
+
.nxgt-conv-units {
|
|
75
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
76
|
+
align-items: end;
|
|
77
|
+
}
|
|
78
|
+
.nxgt-conv-value {
|
|
79
|
+
font-size: 3rem;
|
|
80
|
+
}
|
|
81
|
+
.nxgt-conv-value[data-size="long"] {
|
|
82
|
+
font-size: 2rem;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@media (pointer: coarse) {
|
|
86
|
+
.nxgt-conv-swap {
|
|
87
|
+
min-width: 2.75rem;
|
|
88
|
+
min-height: 2.75rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
@media (forced-colors: active) {
|
|
92
|
+
.nxgt-conv-result {
|
|
93
|
+
border: 1px solid ButtonText;
|
|
94
|
+
}
|
|
95
|
+
.nxgt-conv-value {
|
|
96
|
+
color: CanvasText;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/* Financial: the four calculations in sub-tabs. Direction B Expressive: a
|
|
2
|
+
* tonal results card with the answer large, pill choices, a captioned table.
|
|
3
|
+
* Sizes follow the calculator's own width (a container query on .nxgt-calc). */
|
|
4
|
+
.nxgt-fin-tabs {
|
|
5
|
+
gap: 0.75rem;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
}
|
|
8
|
+
.nxgt-fin-tabs .nxgt-fin-tablist {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
11
|
+
width: 100%;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
}
|
|
14
|
+
.nxgt-fin-tabs .nxgt-fin-tablist [role="tab"] {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
padding-inline: 0.25rem;
|
|
17
|
+
font-size: 0.8125rem;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
.nxgt-fin-body {
|
|
22
|
+
min-width: 0;
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
.nxgt-fin-body[hidden] {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
.nxgt-fin-panel {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: 1rem;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
}
|
|
34
|
+
.nxgt-fin-panel > .nxgt-calc-segment {
|
|
35
|
+
align-self: flex-start;
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
flex-wrap: wrap;
|
|
38
|
+
border-radius: 1.25rem;
|
|
39
|
+
}
|
|
40
|
+
.nxgt-fin-fields {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-template-columns: minmax(0, 1fr);
|
|
43
|
+
gap: 0.75rem;
|
|
44
|
+
}
|
|
45
|
+
.nxgt-fin-field {
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
.nxgt-fin-results {
|
|
49
|
+
min-width: 0;
|
|
50
|
+
padding: 1rem;
|
|
51
|
+
border-radius: var(--calc-radius, 2rem);
|
|
52
|
+
background: var(--muted);
|
|
53
|
+
}
|
|
54
|
+
.nxgt-fin-hint,
|
|
55
|
+
.nxgt-fin-error {
|
|
56
|
+
margin: 0;
|
|
57
|
+
color: var(--muted-foreground);
|
|
58
|
+
font-size: 0.875rem;
|
|
59
|
+
}
|
|
60
|
+
.nxgt-fin-error {
|
|
61
|
+
color: var(--destructive);
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
}
|
|
64
|
+
.nxgt-fin-figures {
|
|
65
|
+
display: grid;
|
|
66
|
+
gap: 0.5rem;
|
|
67
|
+
margin: 0;
|
|
68
|
+
}
|
|
69
|
+
.nxgt-fin-figures > div {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-wrap: wrap;
|
|
72
|
+
align-items: baseline;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
column-gap: 0.75rem;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
}
|
|
77
|
+
.nxgt-fin-figures dt {
|
|
78
|
+
color: var(--muted-foreground);
|
|
79
|
+
font-size: 0.875rem;
|
|
80
|
+
}
|
|
81
|
+
.nxgt-fin-figures dd {
|
|
82
|
+
margin: 0;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
font-size: 1.125rem;
|
|
85
|
+
font-variant-numeric: tabular-nums;
|
|
86
|
+
overflow-wrap: anywhere;
|
|
87
|
+
text-align: right;
|
|
88
|
+
}
|
|
89
|
+
.nxgt-fin-figures > div[data-main] {
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
align-items: flex-end;
|
|
92
|
+
padding-block-end: 0.5rem;
|
|
93
|
+
border-block-end: 1px solid var(--border);
|
|
94
|
+
}
|
|
95
|
+
.nxgt-fin-figures > div[data-main] dd {
|
|
96
|
+
color: var(--primary);
|
|
97
|
+
font-size: 1.75rem;
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
letter-spacing: -0.02em;
|
|
100
|
+
}
|
|
101
|
+
.nxgt-fin-table-wrap {
|
|
102
|
+
max-width: 100%;
|
|
103
|
+
overflow-x: auto;
|
|
104
|
+
border-radius: 1rem;
|
|
105
|
+
background: var(--muted);
|
|
106
|
+
}
|
|
107
|
+
.nxgt-fin-table-wrap:focus-visible {
|
|
108
|
+
outline: 2px solid var(--ring);
|
|
109
|
+
outline-offset: 2px;
|
|
110
|
+
}
|
|
111
|
+
.nxgt-fin-table {
|
|
112
|
+
width: 100%;
|
|
113
|
+
border-collapse: collapse;
|
|
114
|
+
font-size: 0.75rem;
|
|
115
|
+
font-variant-numeric: tabular-nums;
|
|
116
|
+
}
|
|
117
|
+
.nxgt-fin-table caption {
|
|
118
|
+
padding: 0.5rem 0.5rem 0.25rem;
|
|
119
|
+
color: var(--muted-foreground);
|
|
120
|
+
font-size: 0.8125rem;
|
|
121
|
+
text-align: start;
|
|
122
|
+
}
|
|
123
|
+
.nxgt-fin-table th,
|
|
124
|
+
.nxgt-fin-table td {
|
|
125
|
+
padding: 0.25rem 0.375rem;
|
|
126
|
+
text-align: right;
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
}
|
|
129
|
+
.nxgt-fin-table thead th {
|
|
130
|
+
color: var(--muted-foreground);
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
}
|
|
133
|
+
.nxgt-fin-table tbody tr:nth-child(even) {
|
|
134
|
+
background: color-mix(in oklab, var(--foreground) 4%, transparent);
|
|
135
|
+
}
|
|
136
|
+
.nxgt-fin-table tbody th {
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
}
|
|
139
|
+
@container nxgt-calc (min-width: 480px) {
|
|
140
|
+
.nxgt-fin-fields {
|
|
141
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
142
|
+
}
|
|
143
|
+
.nxgt-fin-table {
|
|
144
|
+
font-size: 0.875rem;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@container nxgt-calc (min-width: 720px) {
|
|
148
|
+
.nxgt-fin-fields {
|
|
149
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
@media (pointer: coarse) {
|
|
153
|
+
.nxgt-fin-tabs .nxgt-fin-tablist [role="tab"] {
|
|
154
|
+
min-height: 2.75rem;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
@media (forced-colors: active) {
|
|
158
|
+
.nxgt-fin-results,
|
|
159
|
+
.nxgt-fin-table-wrap {
|
|
160
|
+
border: 1px solid ButtonText;
|
|
161
|
+
}
|
|
162
|
+
}
|